Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Props panel refactoring (#1048)

Roman Pominovaac93f37022b
diff --git a/apps/builder/app/builder/features/props-panel/control.stories.tsx b/apps/builder/app/builder/features/props-panel/control.stories.tsx
deleted file mode 100644
index 2aab012b66..0000000000
--- a/apps/builder/app/builder/features/props-panel/control.stories.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import type { ComponentStoryObj } from "@storybook/react";
-import { Control } from "./control";
-
-export default {
- component: Control,
-};
-
-export const Primitive: ComponentStoryObj<typeof Control> = {
- args: {
- component: "Image",
- userProp: {
- name: "src",
- id: "ddf20afe-65a8-478e-a52d-1be2d2f70830",
- instanceId: "instanceId",
- type: "string",
- value: "",
- },
- },
-};
-
-export const Options: ComponentStoryObj<typeof Control> = {
- args: {
- component: "Image",
- userProp: {
- name: "loading",
- id: "ddf20afe-65a8-478e-a52d-1be2d2f70830",
- instanceId: "instanceId",
- type: "string",
- value: "",
- },
- },
-};
diff --git a/apps/builder/app/builder/features/props-panel/control.tsx b/apps/builder/app/builder/features/props-panel/control.tsx
deleted file mode 100644
index 7e5c918732..0000000000
--- a/apps/builder/app/builder/features/props-panel/control.tsx
+++ /dev/null
@@ -1,358 +0,0 @@
-import { computed } from "nanostores";
-import warnOnce from "warn-once";
-import { useMemo } from "react";
-import { useStore } from "@nanostores/react";
-import type { Instance, Prop } from "@webstudio-is/project-build";
-import { getComponentPropsMeta } from "@webstudio-is/react-sdk";
-import type { Asset } from "@webstudio-is/asset-uploader";
-import {
- Flex,
- DeprecatedLabel,
- Checkbox,
- Radio,
- RadioGroup,
- Select,
- Switch,
- TextField,
-} from "@webstudio-is/design-system";
-import { assetsStore } from "~/shared/nano-states";
-import { FloatingPanel } from "~/builder/shared/floating-panel";
-import { ImageManager } from "~/builder/shared/image-manager";
-import type { UserPropValue } from "./use-props-logic";
-import type { SetProperty } from "../style-panel/shared/use-style-data";
-
-const textControlTypes = ["text", "color", "number", "multiline-text"] as const;
-
-type TextControlProps = {
- type: typeof textControlTypes[number];
- value: string;
- onChange: (value: string) => void;
-};
-
-const TextControl = ({ value, type, onChange }: TextControlProps) => (
- <TextField
- type={type}
- placeholder="Value"
- name="value"
- value={value}
- onChange={(event) => {
- onChange(event.target.value);
- }}
- />
-);
-
-type CheckboxControlProps = {
- value: string;
- onChange: (value: string) => void;
- options: Array<string>;
- type: "check";
-};
-
-const CheckboxControl = ({
- value,
- options,
- onChange,
-}: CheckboxControlProps) => (
- <RadioGroup
- css={{ flexDirection: "column" }}
- name="value"
- value={value}
- onValueChange={onChange}
- >
- {options.map((option) => (
- <Flex align="center" gap="1" key={option}>
- <Checkbox value={option} />
- <DeprecatedLabel>{option}</DeprecatedLabel>
- </Flex>
- ))}
- </RadioGroup>
-);
-
-type RadioControlProps = {
- value: string;
- onChange: (value: string) => void;
- options: Array<string>;
- type: "radio";
-};
-
-const RadioControl = ({
- value,
- options,
-
- onChange,
-}: RadioControlProps) => (
- <RadioGroup
- css={{ flexDirection: "column" }}
- name="value"
- value={value}
- onValueChange={onChange}
- >
- {options.map((value) => (
- <Flex align="center" gap="1" key={value}>
- <Radio value={value} id={value} />
- <DeprecatedLabel htmlFor={value}>{value}</DeprecatedLabel>
- </Flex>
- ))}
- </RadioGroup>
-);
-
-const selectControlTypes = ["select"] as const;
-type SelectControlProps = {
- value: string;
- onChange: (value: string) => void;
-
- options: Array<string>;
- type: typeof selectControlTypes[number];
-};
-
-const SelectControl = ({
- value,
- options,
-
- onChange,
-}: SelectControlProps) => (
- <Select name="value" value={value} options={options} onChange={onChange} />
-);
-
-type BooleanControlProps = {
- defaultValue?: boolean;
- value: boolean;
- onChange: (value: boolean) => void;
-};
-
-const BooleanControl = ({
- value,
- defaultValue,
- onChange,
-}: BooleanControlProps) => (
- <Switch
- name="value"
- defaultChecked={Boolean(defaultValue)}
- checked={value === true}
- onCheckedChange={onChange}
- />
-);
-
-type ImageControlProps = {
- assetId: undefined | Asset["id"];
- onChange: (asset: Asset) => void;
-};
-
-const ImageControl = ({ assetId, onChange }: ImageControlProps) => {
- const assetStore = useMemo(() => {
- return computed(assetsStore, (assets) => {
- if (assetId === undefined) {
- return undefined;
- }
- return assets.get(assetId);
- });
- }, [assetId]);
- const asset = useStore(assetStore);
- return (
- <FloatingPanel
- title="Images"
- content={
- <ImageManager
- onChange={(asset) => {
- onChange(asset);
- }}
- />
- }
- >
- <TextField defaultValue={asset?.name ?? " - "} />
- </FloatingPanel>
- );
-};
-
-const NotImplemented = () => <div />;
-
-const includes = <T extends string>(arr: readonly T[], v: string): v is T => {
- return arr.includes(v as never);
-};
-
-const assertUnreachable = (_arg: never, errorMessage: string) => {
- throw new Error(errorMessage);
-};
-
-type ControlProps = {
- component: Instance["component"];
- userProp: Prop;
- onChangePropValue: (value: UserPropValue) => void;
- setCssProperty: SetProperty;
-};
-
-// eslint-disable-next-line func-style
-export function Control({
- component,
- userProp,
- onChangePropValue,
- setCssProperty,
-}: ControlProps) {
- const meta = getComponentPropsMeta(component)?.props;
-
- const argType = meta?.[userProp.name];
-
- // argType can be undefined in case of new property created
- const defaultValue = argType?.defaultValue ?? "";
- const rawControl = argType?.control || "text";
- const control =
- typeof rawControl === "string" ? { type: rawControl } : rawControl;
-
- if (control.type === "file-image") {
- const assetId = userProp.type === "asset" ? userProp.value : undefined;
-
- return (
- <ImageControl
- assetId={assetId}
- onChange={(asset) => {
- onChangePropValue({ type: "asset", value: asset.id });
-
- const { meta } = asset;
- if ("width" in meta && "height" in meta) {
- // @todo: change on own type, pass width/hight separately
- const aspectRatio = meta.width / meta.height;
-
- // @todo: own type, simlify width/height, until that use unit as before
- setCssProperty("aspectRatio")({
- type: "unit",
- value: aspectRatio,
- unit: "number",
- });
- }
- }}
- />
- );
- }
-
- if (userProp.type === "asset") {
- throw new Error(
- `userProp with id "${userProp.value}" has asset but no control exists to process it`
- );
- }
-
- if (includes(textControlTypes, control.type)) {
- const value = `${userProp.value}`;
-
- return (
- <TextControl
- value={value}
- onChange={(value) =>
- onChangePropValue({
- type: "string",
- value,
- })
- }
- type={control.type}
- />
- );
- }
-
- if (control.type === "boolean") {
- const value = Boolean(userProp.value);
-
- return (
- <BooleanControl
- value={value}
- onChange={(value) =>
- onChangePropValue({
- type: "boolean",
- value,
- })
- }
- defaultValue={Boolean(defaultValue)}
- />
- );
- }
-
- if (
- control.type === "radio" ||
- control.type === "check" ||
- control.type === "select" ||
- control.type === "inline-check" ||
- control.type === "inline-radio" ||
- control.type === "multi-select"
- ) {
- const options = control.options;
-
- const value = `${userProp.value}`;
-
- warnOnce(
- options == null,
- `options is not an array of strings for prop: ${userProp.name} component: ${component}`
- );
-
- const DEFAULT_OPTIONS: string[] = [];
-
- if (control.type === "radio" || control.type === "inline-radio") {
- return (
- <RadioControl
- value={value}
- onChange={(value) =>
- onChangePropValue({
- type: "string",
- value,
- })
- }
- options={options ?? DEFAULT_OPTIONS}
- type="radio"
- />
- );
- }
-
- if (
- control.type === "check" ||
- control.type === "inline-check" ||
- control.type === "multi-select"
- ) {
- return (
- <CheckboxControl
- value={value}
- onChange={(value) =>
- onChangePropValue({
- type: "string",
- value,
- })
- }
- options={options ?? DEFAULT_OPTIONS}
- type="check"
- />
- );
- }
-
- if (control.type === "select") {
- return (
- <SelectControl
- value={value}
- onChange={(value) =>
- onChangePropValue({
- type: "string",
- value,
- })
- }
- options={options ?? DEFAULT_OPTIONS}
- type={control.type}
- />
- );
- }
- }
-
- if (
- control.type === "object" ||
- control.type === "date" ||
- control.type === "range"
- ) {
- warnOnce(
- true,
- `Control type "${control.type}" is not implemented for prop: "${userProp.name}" in component "${component}"`
- );
- return <NotImplemented />;
- }
-
- assertUnreachable(control.type, `Unknown control type ${control.type}`);
-
- warnOnce(
- true,
- `Control type "${control.type}" is not implemented for prop: "${userProp.name}" in component "${component}"`
- );
- return <NotImplemented />;
-}
diff --git a/apps/builder/app/builder/features/props-panel/controls/boolean.tsx b/apps/builder/app/builder/features/props-panel/controls/boolean.tsx
new file mode 100644
index 0000000000..9047d38857
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/controls/boolean.tsx
@@ -0,0 +1,25 @@
+import { Button, Switch, Label, Flex } from "@webstudio-is/design-system";
+import { TrashIcon } from "@webstudio-is/icons";
+import { type ControlProps, getLabel } from "../shared";
+
+export const BooleanControl = ({
+ meta,
+ prop,
+ propName,
+ onChange,
+ onDelete,
+}: ControlProps<"boolean", "boolean">) => (
+ <div>
+ <Label>{getLabel(meta, propName)}</Label>
+ <Flex justify="between">
+ <Switch
+ name={propName}
+ checked={prop?.value ?? false}
+ onCheckedChange={(value) => onChange({ type: "boolean", value })}
+ />
+ {onDelete && (
+ <Button color="ghost" prefix={<TrashIcon />} onClick={onDelete} />
+ )}
+ </Flex>
+ </div>
+);
diff --git a/apps/builder/app/builder/features/props-panel/controls/check.tsx b/apps/builder/app/builder/features/props-panel/controls/check.tsx
new file mode 100644
index 0000000000..1104398718
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/controls/check.tsx
@@ -0,0 +1,65 @@
+import {
+ Text,
+ Flex,
+ Checkbox,
+ Button,
+ Label,
+} from "@webstudio-is/design-system";
+import { TrashIcon } from "@webstudio-is/icons";
+import { type ControlProps, getLabel } from "../shared";
+
+const add = (array: string[], item: string) => {
+ if (array.includes(item)) {
+ return array;
+ }
+ return [...array, item];
+};
+
+const remove = (array: string[], item: string) => {
+ if (array.includes(item) === false) {
+ return array;
+ }
+ return array.filter((arrayItem) => arrayItem !== item);
+};
+
+export const CheckControl = ({
+ meta,
+ prop,
+ propName,
+ onChange,
+ onDelete,
+}: ControlProps<"check" | "inline-check" | "multi-select", "string[]">) => {
+ // @todo: handle the case when `value` contains something that isn't in `options`?
+
+ const value = prop?.value ?? [];
+
+ return (
+ <div>
+ <Label>{getLabel(meta, propName)}</Label>
+ <Flex gap="1" justify="between">
+ {meta.options.map((option) => (
+ <Flex align="center" gap="1" key={option}>
+ <Checkbox
+ checked={value.includes(option)}
+ onCheckedChange={(checked) => {
+ onChange({
+ type: "string[]",
+ value: checked ? add(value, option) : remove(value, option),
+ });
+ }}
+ />
+ <Text>{value}</Text>
+ </Flex>
+ ))}
+ {onDelete && (
+ <Button
+ color="ghost"
+ prefix={<TrashIcon />}
+ onClick={onDelete}
+ css={{ flexShrink: 1 }}
+ />
+ )}
+ </Flex>
+ </div>
+ );
+};
diff --git a/apps/builder/app/builder/features/props-panel/controls/color.tsx b/apps/builder/app/builder/features/props-panel/controls/color.tsx
new file mode 100644
index 0000000000..4cff34ab50
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/controls/color.tsx
@@ -0,0 +1,33 @@
+import { TrashIcon } from "@webstudio-is/icons";
+import { TextField, Button, Label, Flex } from "@webstudio-is/design-system";
+import { type ControlProps, getLabel } from "../shared";
+
+export const ColorControl = ({
+ meta,
+ prop,
+ propName,
+ onChange,
+ onDelete,
+}: ControlProps<"color", "string">) => (
+ <div>
+ <Label>{getLabel(meta, propName)}</Label>
+ <Flex gap="1">
+ <TextField
+ name={propName}
+ value={prop?.value ?? ""}
+ onChange={(event) => {
+ onChange({ type: "string", value: event.target.value });
+ }}
+ css={{ flexGrow: 1 }}
+ />
+ {onDelete && (
+ <Button
+ color="ghost"
+ prefix={<TrashIcon />}
+ onClick={onDelete}
+ css={{ flexShrink: 1 }}
+ />
+ )}
+ </Flex>
+ </div>
+);
diff --git a/apps/builder/app/builder/features/props-panel/controls/combined.tsx b/apps/builder/app/builder/features/props-panel/controls/combined.tsx
new file mode 100644
index 0000000000..a3c8a37ef7
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/controls/combined.tsx
@@ -0,0 +1,141 @@
+import { TextControl } from "./text";
+import { ColorControl } from "./color";
+import { NumberControl } from "./number";
+import { CheckControl } from "./check";
+import { RadioControl } from "./radio";
+import { SelectControl } from "./select";
+import { BooleanControl } from "./boolean";
+import { FileImageControl } from "./file-image";
+import type { ControlProps } from "../shared";
+
+export const renderControl = ({
+ meta,
+ prop,
+ ...rest
+}: ControlProps<string, string>) => {
+ if (
+ meta.control === "text" &&
+ (prop === undefined || prop.type === "string")
+ ) {
+ return <TextControl meta={meta} prop={prop} {...rest} />;
+ }
+
+ if (
+ meta.control === "color" &&
+ (prop === undefined || prop.type === "string")
+ ) {
+ return <ColorControl meta={meta} prop={prop} {...rest} />;
+ }
+
+ if (
+ meta.control === "number" &&
+ (prop === undefined || prop.type === "number")
+ ) {
+ return <NumberControl meta={meta} prop={prop} {...rest} />;
+ }
+
+ if (
+ meta.control === "boolean" &&
+ (prop === undefined || prop.type === "boolean")
+ ) {
+ return <BooleanControl meta={meta} prop={prop} {...rest} />;
+ }
+
+ if (
+ (meta.control === "check" ||
+ meta.control === "inline-check" ||
+ meta.control === "multi-select") &&
+ (prop === undefined || prop.type === "string[]")
+ ) {
+ return <CheckControl meta={meta} prop={prop} {...rest} />;
+ }
+
+ if (
+ (meta.control === "radio" || meta.control === "inline-radio") &&
+ (prop === undefined || prop.type === "string")
+ ) {
+ return <RadioControl meta={meta} prop={prop} {...rest} />;
+ }
+
+ if (
+ meta.control === "select" &&
+ (prop === undefined || prop.type === "string")
+ ) {
+ return <SelectControl meta={meta} prop={prop} {...rest} />;
+ }
+
+ if (
+ meta.control === "file-image" &&
+ (prop === undefined || prop.type === "asset")
+ ) {
+ return <FileImageControl meta={meta} prop={prop} {...rest} />;
+ }
+
+ // Type in meta can be changed at some point without updating props in DB that are still using the old type
+ // In this case meta and prop will mismatch, but we try to guess a matching control based just on the prop type
+ if (prop) {
+ if (prop.type === "string") {
+ return (
+ <TextControl
+ meta={{
+ ...meta,
+ defaultValue: undefined,
+ control: "text",
+ type: "string",
+ }}
+ prop={prop}
+ {...rest}
+ />
+ );
+ }
+
+ if (prop.type === "number") {
+ return (
+ <NumberControl
+ meta={{
+ ...meta,
+ defaultValue: undefined,
+ control: "number",
+ type: "number",
+ }}
+ prop={prop}
+ {...rest}
+ />
+ );
+ }
+
+ if (prop.type === "boolean") {
+ return (
+ <BooleanControl
+ meta={{
+ ...meta,
+ defaultValue: undefined,
+ control: "boolean",
+ type: "boolean",
+ }}
+ prop={prop}
+ {...rest}
+ />
+ );
+ }
+
+ if (prop.type === "asset") {
+ return (
+ <FileImageControl
+ meta={{
+ ...meta,
+ defaultValue: undefined,
+ control: "file-image",
+ type: "string",
+ }}
+ prop={prop}
+ {...rest}
+ />
+ );
+ }
+ }
+
+ throw new Error(
+ `Unsupported combination of prop and control: name=${rest.propName}, type=${prop?.type}, control=${meta.control}`
+ );
+};
diff --git a/apps/builder/app/builder/features/props-panel/controls/file-image.tsx b/apps/builder/app/builder/features/props-panel/controls/file-image.tsx
new file mode 100644
index 0000000000..e688a3be5e
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/controls/file-image.tsx
@@ -0,0 +1,56 @@
+import { useMemo } from "react";
+import { computed } from "nanostores";
+import { useStore } from "@nanostores/react";
+import { Button, Label, Flex } from "@webstudio-is/design-system";
+import { TrashIcon } from "@webstudio-is/icons";
+import { assetsStore } from "~/shared/nano-states";
+import { FloatingPanel } from "~/builder/shared/floating-panel";
+import { ImageManager } from "~/builder/shared/image-manager";
+import { type ControlProps, getLabel } from "../shared";
+
+export const FileImageControl = ({
+ meta,
+ prop,
+ propName,
+ onChange,
+ onDelete,
+}: ControlProps<"file-image", "asset">) => {
+ const assetStore = useMemo(
+ () =>
+ computed(assetsStore, (assets) =>
+ prop ? assets.get(prop.value) : undefined
+ ),
+ [prop]
+ );
+ const asset = useStore(assetStore);
+
+ return (
+ <div>
+ <Label>{getLabel(meta, propName)}</Label>
+ <Flex gap="1">
+ <FloatingPanel
+ title="Images"
+ content={
+ <ImageManager
+ onChange={(asset) =>
+ onChange({ type: "asset", value: asset.id }, asset)
+ }
+ />
+ }
+ >
+ <Button color="neutral" css={{ flexGrow: 1, overflow: "hidden" }}>
+ {asset?.name ?? "Choose image"}
+ </Button>
+ </FloatingPanel>
+ {onDelete && (
+ <Button
+ color="ghost"
+ prefix={<TrashIcon />}
+ onClick={onDelete}
+ css={{ flexShrink: 1 }}
+ />
+ )}
+ </Flex>
+ </div>
+ );
+};
diff --git a/apps/builder/app/builder/features/props-panel/controls/number.tsx b/apps/builder/app/builder/features/props-panel/controls/number.tsx
new file mode 100644
index 0000000000..42809ccb8d
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/controls/number.tsx
@@ -0,0 +1,34 @@
+import { TrashIcon } from "@webstudio-is/icons";
+import { TextField, Button, Label, Flex } from "@webstudio-is/design-system";
+import { type ControlProps, getLabel } from "../shared";
+
+export const NumberControl = ({
+ meta,
+ prop,
+ propName,
+ onChange,
+ onDelete,
+}: ControlProps<"number", "number">) => (
+ <div>
+ <Label>{getLabel(meta, propName)}</Label>
+ <Flex gap="1">
+ <TextField
+ type="number"
+ name={propName}
+ value={prop ? prop.value : ""}
+ onChange={(event) => {
+ onChange({ type: "number", value: parseFloat(event.target.value) });
+ }}
+ css={{ flexGrow: 1 }}
+ />
+ {onDelete && (
+ <Button
+ color="ghost"
+ prefix={<TrashIcon />}
+ onClick={onDelete}
+ css={{ flexShrink: 1 }}
+ />
+ )}
+ </Flex>
+ </div>
+);
diff --git a/apps/builder/app/builder/features/props-panel/controls/radio.tsx b/apps/builder/app/builder/features/props-panel/controls/radio.tsx
new file mode 100644
index 0000000000..b089a524b0
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/controls/radio.tsx
@@ -0,0 +1,49 @@
+import {
+ Text,
+ Flex,
+ Button,
+ RadioGroup,
+ Radio,
+ Label,
+} from "@webstudio-is/design-system";
+import { TrashIcon } from "@webstudio-is/icons";
+import { type ControlProps, getLabel } from "../shared";
+
+export const RadioControl = ({
+ meta,
+ prop,
+ propName,
+ onChange,
+ onDelete,
+}: ControlProps<"radio" | "inline-radio", "string">) => {
+ // @todo: handle the case when `value` contains something that isn't in `options`?
+
+ return (
+ <div>
+ <Label>{getLabel(meta, propName)}</Label>
+ <Flex gap="1" justify="between">
+ <RadioGroup
+ css={{ flexDirection: "column" }}
+ name="value"
+ value={prop?.value}
+ onValueChange={(value) => onChange({ type: "string", value })}
+ >
+ {meta.options.map((value) => (
+ <Flex align="center" gap="1" key={value}>
+ <Radio value={value} />
+ <Text>{value}</Text>
+ </Flex>
+ ))}
+ </RadioGroup>
+ {onDelete && (
+ <Button
+ color="ghost"
+ prefix={<TrashIcon />}
+ onClick={onDelete}
+ css={{ flexShrink: 1 }}
+ />
+ )}
+ </Flex>
+ </div>
+ );
+};
diff --git a/apps/builder/app/builder/features/props-panel/controls/select.tsx b/apps/builder/app/builder/features/props-panel/controls/select.tsx
new file mode 100644
index 0000000000..3bcdf734af
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/controls/select.tsx
@@ -0,0 +1,36 @@
+import { Button, Select, Label, Flex } from "@webstudio-is/design-system";
+import { TrashIcon } from "@webstudio-is/icons";
+import { type ControlProps, getLabel } from "../shared";
+
+export const SelectControl = ({
+ meta,
+ prop,
+ propName,
+ onChange,
+ onDelete,
+}: ControlProps<"select", "string">) => {
+ // @todo: handle the case when `value` contains something that isn't in `options`?
+
+ return (
+ <div>
+ <Label>{getLabel(meta, propName)}</Label>
+ <Flex gap="1">
+ <Select
+ name={propName}
+ value={prop?.value}
+ options={meta.options}
+ onChange={(value) => onChange({ type: "string", value })}
+ css={{ flexGrow: 1 }}
+ />
+ {onDelete && (
+ <Button
+ color="ghost"
+ prefix={<TrashIcon />}
+ onClick={onDelete}
+ css={{ flexShrink: 1 }}
+ />
+ )}
+ </Flex>
+ </div>
+ );
+};
diff --git a/apps/builder/app/builder/features/props-panel/controls/text.tsx b/apps/builder/app/builder/features/props-panel/controls/text.tsx
new file mode 100644
index 0000000000..e4450a0a60
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/controls/text.tsx
@@ -0,0 +1,33 @@
+import { TrashIcon } from "@webstudio-is/icons";
+import { TextField, Label, Button, Flex } from "@webstudio-is/design-system";
+import { type ControlProps, getLabel } from "../shared";
+
+export const TextControl = ({
+ meta,
+ prop,
+ propName,
+ onChange,
+ onDelete,
+}: ControlProps<"text", "string">) => (
+ <div>
+ <Label>{getLabel(meta, propName)}</Label>
+ <Flex gap="1">
+ <TextField
+ name={propName}
+ value={prop?.value ?? ""}
+ onChange={(event) => {
+ onChange({ type: "string", value: event.target.value });
+ }}
+ css={{ flexGrow: 1 }}
+ />
+ {onDelete && (
+ <Button
+ color="ghost"
+ prefix={<TrashIcon />}
+ onClick={onDelete}
+ css={{ flexShrink: 1 }}
+ />
+ )}
+ </Flex>
+ </div>
+);
diff --git a/apps/builder/app/builder/features/props-panel/props-panel.stories.tsx b/apps/builder/app/builder/features/props-panel/props-panel.stories.tsx
deleted file mode 100644
index 7c1f8afa46..0000000000
--- a/apps/builder/app/builder/features/props-panel/props-panel.stories.tsx
+++ /dev/null
@@ -1,103 +0,0 @@
-import type { ComponentStory } from "@storybook/react";
-import type { Prop } from "@webstudio-is/project-build";
-import { getComponentPropsMeta } from "@webstudio-is/react-sdk";
-import { propsStore } from "~/shared/nano-states";
-import { PropsPanel } from "./props-panel";
-
-export default {
- title: "Props Panel",
- component: PropsPanel,
-};
-
-export const NoProps: ComponentStory<typeof PropsPanel> = () => {
- propsStore.set(
- new Map([
- [
- "disabled",
- {
- id: "disabled",
- instanceId: "1",
- name: "disabled",
- type: "boolean",
- value: true,
- },
- ],
- ])
- );
- return (
- <PropsPanel
- selectedInstance={{
- type: "instance",
- id: "1",
- component: "Button",
- children: [],
- }}
- // eslint-disable-next-line @typescript-eslint/no-empty-function
- publish={() => {}}
- />
- );
-};
-
-export const RequiredProps: ComponentStory<typeof PropsPanel> = () => {
- propsStore.set(new Map());
- return (
- <PropsPanel
- selectedInstance={{
- type: "instance",
- id: "1",
- component: "Link",
- children: [],
- }}
- // eslint-disable-next-line @typescript-eslint/no-empty-function
- publish={() => {}}
- />
- );
-};
-
-export const DefaultProps: ComponentStory<typeof PropsPanel> = () => {
- propsStore.set(new Map());
- return (
- <PropsPanel
- selectedInstance={{
- type: "instance",
- id: "1",
- component: "Button",
- children: [],
- }}
- // eslint-disable-next-line @typescript-eslint/no-empty-function
- publish={() => {}}
- />
- );
-};
-
-const meta = getComponentPropsMeta("Button")?.props ?? {};
-
-export const AllProps: ComponentStory<typeof PropsPanel> = () => {
- propsStore.set(
- new Map(
- Object.entries(meta).map(([name, value]) => {
- return [
- name,
- {
- id: name,
- instanceId: "3",
- name,
- value: value?.defaultValue ?? "",
- } as Prop,
- ];
- })
- )
- );
- return (
- <PropsPanel
- selectedInstance={{
- type: "instance",
- id: "3",
- component: "Heading",
- children: [],
- }}
- // eslint-disable-next-line @typescript-eslint/no-empty-function
- publish={() => {}}
- />
- );
-};
diff --git a/apps/builder/app/builder/features/props-panel/props-panel.tsx b/apps/builder/app/builder/features/props-panel/props-panel.tsx
index e9f747426b..c11d8cb15d 100644
--- a/apps/builder/app/builder/features/props-panel/props-panel.tsx
+++ b/apps/builder/app/builder/features/props-panel/props-panel.tsx
@@ -1,239 +1,167 @@
-import { useState } from "react";
import store from "immerhin";
import type { Instance, Prop } from "@webstudio-is/project-build";
-import { getComponentPropsMeta } from "@webstudio-is/react-sdk";
import {
theme,
Box,
Button,
- Grid,
- TextField,
- Tooltip,
useCombobox,
ComboboxPopper,
ComboboxPopperContent,
ComboboxPopperAnchor,
ComboboxListbox,
ComboboxListboxItem,
- DeprecatedIconButton,
+ TextField,
+ SmallIconButton,
} from "@webstudio-is/design-system";
-import {
- PlusIcon,
- TrashIcon,
- ExclamationTriangleIcon,
- ChevronDownIcon,
-} from "@webstudio-is/icons";
+import { ChevronDownIcon, PlusIcon } from "@webstudio-is/icons";
import type { Publish } from "~/shared/pubsub";
import { propsStore, useInstanceProps } from "~/shared/nano-states";
import { CollapsibleSection, ComponentInfo } from "~/builder/shared/inspector";
-import { Control } from "./control";
-import { usePropsLogic, type UserPropValue } from "./use-props-logic";
import {
useStyleData,
- type SetProperty,
-} from "../style-panel/shared/use-style-data";
+ type SetProperty as SetCssProperty,
+} from "~/builder/features/style-panel/shared/use-style-data";
+import { renderControl } from "./controls/combined";
+import { usePropsLogic, type NameAndLabel } from "./use-props-logic";
+import { type PropMeta, type PropValue, getLabel } from "./shared";
-type ComboboxProps = {
- isReadonly: boolean;
- isInvalid: boolean;
- items: Array<string>;
- value: string;
- onItemSelect: (value: string | null) => void;
- onSubmit: (value: string) => void;
- onInput: (value: string) => void;
-};
+import { useState } from "react";
+
+const itemToString = (item: NameAndLabel | null) =>
+ item ? getLabel(item, item.name) : "";
const Combobox = ({
- isReadonly,
- isInvalid,
- items: itemsProp,
- value,
+ items,
onItemSelect,
- onSubmit,
- onInput,
-}: ComboboxProps) => {
- const {
+}: {
+ items: NameAndLabel[];
+ onItemSelect: (item: NameAndLabel) => void;
+}) => {
+ const [inputValue, setInputValue] = useState("");
+
+ const combobox = useCombobox<NameAndLabel>({
items,
- getInputProps,
- getComboboxProps,
- getToggleButtonProps,
- getMenuProps,
- getItemProps,
- isOpen,
- } = useCombobox({
- items: itemsProp,
- value,
- selectedItem: value,
- itemToString: (item) => item ?? "",
+ itemToString,
onItemSelect,
+ selectedItem: undefined,
+
+ // this weird handling of value is needed to work around a limitation in useCombobox
+ // where it doesn't allow to leave both `value` and `selectedItem` empty/uncontrolled
+ value: { name: "", label: inputValue },
+ onInputChange: (value) => setInputValue(value ?? ""),
});
return (
<ComboboxPopper>
- <Box {...getComboboxProps()}>
+ <div {...combobox.getComboboxProps()}>
<ComboboxPopperAnchor>
<TextField
- {...getInputProps({
- onKeyPress: (event) => {
- if (event.key === "Enter") {
- onSubmit(event.currentTarget.value);
- }
- },
- onInput: (event) => {
- onInput(event.currentTarget.value);
- },
- })}
- name="prop"
+ {...combobox.getInputProps()}
placeholder="Property"
- readOnly={isReadonly}
- state={isInvalid ? "invalid" : undefined}
suffix={
- <DeprecatedIconButton {...getToggleButtonProps()}>
- <ChevronDownIcon />
- </DeprecatedIconButton>
+ <SmallIconButton
+ {...combobox.getToggleButtonProps()}
+ icon={<ChevronDownIcon />}
+ />
}
/>
</ComboboxPopperAnchor>
- <ComboboxPopperContent align="start" sideOffset={5}>
- <ComboboxListbox {...getMenuProps()}>
- {isOpen &&
- items.map((item, index) => {
- return (
- <ComboboxListboxItem
- {...getItemProps({ item, index })}
- key={index}
- >
- {item}
- </ComboboxListboxItem>
- );
- })}
+ <ComboboxPopperContent align="end" sideOffset={5}>
+ <ComboboxListbox {...combobox.getMenuProps()}>
+ {combobox.isOpen &&
+ combobox.items.map((item, index) => (
+ <ComboboxListboxItem
+ key={item.name}
+ selectable={false}
+ {...combobox.getItemProps({ item, index })}
+ >
+ {itemToString(item)}
+ </ComboboxListboxItem>
+ ))}
</ComboboxListbox>
</ComboboxPopperContent>
- </Box>
+ </div>
</ComboboxPopper>
);
};
-type PropertyProps = {
- userProp: Prop;
- component: Instance["component"];
- onChangePropName: (name: string) => void;
- onChangePropValue: (value: UserPropValue) => void;
- onDelete: () => void;
- setCssProperty: SetProperty;
- required: boolean;
- existingProps: string[];
-};
-
const Property = ({
- userProp,
+ meta,
+ prop,
+ propName,
component,
- onChangePropName,
- onChangePropValue,
+ onChange,
onDelete,
setCssProperty,
- required,
- existingProps,
-}: PropertyProps) => {
- const metaProps = getComponentPropsMeta(component)?.props ?? {};
-
- const argType = metaProps[userProp.name as keyof typeof metaProps];
- const isInvalid =
- userProp.name != null &&
- userProp.name.length > 0 &&
- typeof argType === "undefined" &&
- !userProp.name.match(/^data-(.)+/);
-
- const allProps = Object.keys(metaProps).filter(
- (propName) => existingProps.includes(propName) === false
- );
-
- const [error, setError] = useState<string | undefined>(undefined);
-
- return (
- <>
- {required ? (
- <TextField
- name="prop"
- placeholder="Property"
- readOnly={true}
- state={isInvalid ? "invalid" : undefined}
- value={argType?.name ?? userProp.name}
- />
- ) : (
- <Combobox
- items={allProps}
- value={userProp.name}
- onItemSelect={(name) => {
- if (name != null) {
- setError(undefined);
- onChangePropName(name);
- }
- }}
- onSubmit={(name) => {
- if (existingProps.includes(name) === false) {
- setError(undefined);
- onChangePropName(name);
- return;
- }
- setError(`Property "${name}" is already exists`);
- }}
- onInput={() => {
- setError(undefined);
- }}
- isInvalid={isInvalid || error !== undefined}
- isReadonly={required}
- />
- )}
- {isInvalid || error !== undefined ? (
- <Tooltip content={error ?? `Invalid property name: ${userProp.name}`}>
- <ExclamationTriangleIcon width={12} height={12} />
- </Tooltip>
- ) : (
- // requires matching complex union
- // skip for now and fix types later
- <Control
- component={component}
- userProp={userProp}
- onChangePropValue={onChangePropValue}
- setCssProperty={setCssProperty}
- />
- )}
- {required ? (
- <Box />
- ) : (
- <Button color="ghost" onClick={onDelete} prefix={<TrashIcon />} />
- )}
- </>
- );
-};
+}: {
+ prop: Prop | undefined;
+ propName: string;
+ meta: PropMeta;
+ component: Instance["component"];
+ onChange: (value: PropValue) => void;
+ onDelete?: () => void;
+ setCssProperty: SetCssProperty;
+}) => (
+ <Box css={{ mb: theme.spacing[9] }}>
+ {renderControl({
+ meta,
+ prop,
+ propName,
+ onDelete,
+ onChange: (propValue, asset) => {
+ onChange(propValue);
+
+ // @todo: better way to do this?
+ if (
+ component === "Image" &&
+ propName === "src" &&
+ asset &&
+ "width" in asset.meta &&
+ "height" in asset.meta
+ ) {
+ setCssProperty("aspectRatio")({
+ type: "unit",
+ unit: "number",
+ value: asset.meta.width / asset.meta.height,
+ });
+ }
+ },
+ })}
+ </Box>
+);
+
+const AddPropertyForm = ({
+ availableProps,
+ onPropSelected,
+}: {
+ availableProps: NameAndLabel[];
+ onPropSelected: (propName: string) => void;
+}) => (
+ <Box css={{ mb: theme.spacing[9] }}>
+ <Combobox
+ items={availableProps}
+ onItemSelect={(item) => onPropSelected(item.name)}
+ />
+ </Box>
+);
-type PropsPanelProps = {
+export const PropsPanel = ({
+ selectedInstance,
+ publish,
+}: {
publish: Publish;
selectedInstance: Instance;
-};
-
-export const PropsPanel = ({ selectedInstance, publish }: PropsPanelProps) => {
- const instanceId = selectedInstance.id;
- const instanceProps = useInstanceProps(instanceId);
+}) => {
+ const [addingProp, setAddingProp] = useState(false);
- const {
- userProps,
- addEmptyProp,
- handleChangePropName,
- handleChangePropValue,
- handleDeleteProp,
- initialProps,
- } = usePropsLogic({
- props: instanceProps,
- selectedInstance,
-
- updateProps: (update) => {
+ const logic = usePropsLogic({
+ props: useInstanceProps(selectedInstance.id),
+ instance: selectedInstance,
+ updateProp: (update) => {
store.createTransaction([propsStore], (props) => {
props.set(update.id, update);
});
},
-
deleteProp: (id) => {
store.createTransaction([propsStore], (props) => {
props.delete(id);
@@ -241,57 +169,62 @@ export const PropsPanel = ({ selectedInstance, publish }: PropsPanelProps) => {
},
});
- const { setProperty: setCssProperty } = useStyleData({
- selectedInstance,
- publish,
- });
-
- const addButton = (
- <Button
- color="ghost"
- onClick={(event) => {
- event.preventDefault();
- addEmptyProp();
- }}
- prefix={<PlusIcon />}
- />
- );
-
- const existingProps = userProps.map((userProp) => userProp.name);
+ const styleData = useStyleData({ selectedInstance, publish });
return (
<Box>
<Box css={{ p: theme.spacing[9] }}>
<ComponentInfo selectedInstance={selectedInstance} />
</Box>
- <CollapsibleSection
- label="Properties"
- rightSlot={addButton}
- isOpenDefault
- >
- <Grid
- gap={1}
- css={{
- gridTemplateColumns: "1fr minmax(0, 1fr) auto",
- alignItems: "center",
- }}
- >
- {userProps.map((userProp) => (
+ <CollapsibleSection label="Properties" isOpenDefault>
+ <div>
+ {logic.initialProps.map(({ prop, propName, meta }) => (
+ <Property
+ key={propName}
+ propName={propName}
+ prop={prop}
+ meta={meta}
+ component={selectedInstance.component}
+ onChange={(value) =>
+ logic.handleChange({ prop, propName }, value)
+ }
+ setCssProperty={styleData.setProperty}
+ />
+ ))}
+
+ {logic.addedProps.map(({ prop, propName, meta }) => (
<Property
- key={userProp.id}
- userProp={userProp}
+ key={propName}
+ propName={propName}
+ prop={prop}
+ meta={meta}
component={selectedInstance.component}
- onChangePropName={(name) => handleChangePropName(userProp, name)}
- onChangePropValue={(value) =>
- handleChangePropValue(userProp, value)
+ onChange={(value) =>
+ logic.handleChange({ prop, propName }, value)
}
- setCssProperty={setCssProperty}
- onDelete={() => handleDeleteProp(userProp)}
- required={initialProps.includes(userProp.name)}
- existingProps={existingProps}
+ onDelete={() => logic.handleDelete({ prop, propName })}
+ setCssProperty={styleData.setProperty}
/>
))}
- </Grid>
+
+ {addingProp && (
+ <AddPropertyForm
+ availableProps={logic.remainingProps}
+ onPropSelected={(propName) => {
+ setAddingProp(false);
+ logic.handleAdd(propName);
+ }}
+ />
+ )}
+
+ <Button
+ color="neutral"
+ prefix={<PlusIcon />}
+ onClick={() => setAddingProp(true)}
+ >
+ Add property
+ </Button>
+ </div>
</CollapsibleSection>
</Box>
);
diff --git a/apps/builder/app/builder/features/props-panel/shared.tsx b/apps/builder/app/builder/features/props-panel/shared.tsx
new file mode 100644
index 0000000000..f6b2c94dd2
--- /dev/null
+++ b/apps/builder/app/builder/features/props-panel/shared.tsx
@@ -0,0 +1,35 @@
+import type { WsComponentPropsMeta } from "@webstudio-is/react-sdk";
+import type { Prop } from "@webstudio-is/project-build";
+import type { Asset } from "@webstudio-is/asset-uploader";
+import { humanizeString } from "~/shared/string-utils";
+
+export type PropMeta = WsComponentPropsMeta["props"][string];
+
+export type PropValue = Prop extends infer T
+ ? T extends { value: unknown; type: unknown }
+ ? { value: T["value"]; type: T["type"] }
+ : never
+ : never;
+
+// Weird code is to make type distributive
+// https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types
+type PropMetaByControl<Control> = Control extends string
+ ? Extract<PropMeta, { control: Control }>
+ : never;
+
+type PropByType<Type> = Type extends string
+ ? Extract<Prop, { type: Type }>
+ : never;
+
+export type ControlProps<Control, PropType> = {
+ meta: PropMetaByControl<Control>;
+ // prop is optional because we don't have it when an intial prop is not set
+ // and we don't want to show user something like a 0 for number when it's in fact not set to any value
+ prop: PropByType<PropType> | undefined;
+ propName: string;
+ onChange: (value: PropValue, asset?: Asset) => void;
+ onDelete?: () => void;
+};
+
+export const getLabel = (meta: { label?: string }, fallback: string) =>
+ meta.label || humanizeString(fallback);
diff --git a/apps/builder/app/builder/features/props-panel/use-props-logic.test.ts b/apps/builder/app/builder/features/props-panel/use-props-logic.test.ts
deleted file mode 100644
index 4335db91ee..0000000000
--- a/apps/builder/app/builder/features/props-panel/use-props-logic.test.ts
+++ /dev/null
@@ -1,242 +0,0 @@
-import { jest, describe, test, expect } from "@jest/globals";
-import { renderHook, act } from "@testing-library/react-hooks";
-import type { Instance } from "@webstudio-is/project-build";
-import { nanoid } from "nanoid";
-import { usePropsLogic } from "./use-props-logic";
-
-const getSelectedInstance = (componentName: string): Instance => {
- return {
- type: "instance",
- id: nanoid(8),
- component: componentName,
- children: [],
- };
-};
-
-describe("usePropsLogic", () => {
- test("should return required props", () => {
- const { result } = renderHook(() =>
- usePropsLogic({
- props: [],
- selectedInstance: getSelectedInstance("Link"),
- updateProps: jest.fn(),
- deleteProp: jest.fn(),
- })
- );
- expect(result.current.userProps.length).toEqual(1);
- expect(result.current.userProps[0]).toMatchObject({
- name: "href",
- value: "",
- });
- });
-
- test("should return different default props for different instances", () => {
- const { result: res1 } = renderHook(() =>
- usePropsLogic({
- props: [],
- selectedInstance: getSelectedInstance("Heading"),
- updateProps: jest.fn(),
- deleteProp: jest.fn(),
- })
- );
- const { result: res2 } = renderHook(() =>
- usePropsLogic({
- props: [],
- selectedInstance: getSelectedInstance("Button"),
- updateProps: jest.fn(),
- deleteProp: jest.fn(),
- })
- );
- expect(res1.current.userProps[0]).toMatchObject({
- name: "tag",
- value: "h1",
- });
- expect(res2.current.userProps[0]).toMatchObject({
- name: "type",
- value: "submit",
- });
- });
-
- test("should return props with defaultValue set", () => {
- const { result } = renderHook(() =>
- usePropsLogic({
- props: [],
- selectedInstance: getSelectedInstance("Button"),
- updateProps: jest.fn(),
- deleteProp: jest.fn(),
- })
- );
- expect(result.current.userProps.length).toEqual(1);
- expect(result.current.userProps[0]).toMatchObject({
- name: "type",
- value: "submit",
- });
- });
-
- test("should dedupe by prop name and user props take precedence ", () => {
- const { result } = renderHook(() =>
- usePropsLogic({
- props: [
- {
- id: "default",
- instanceId: "instanceId",
- name: "type",
- type: "string",
- value: "submit",
- },
- ],
- selectedInstance: getSelectedInstance("Button"),
- updateProps: jest.fn(),
- deleteProp: jest.fn(),
- })
- );
- expect(result.current.userProps.length).toEqual(1);
- expect(result.current.userProps[0]).toMatchObject({
- name: "type",
- value: "submit",
- });
- });
-
- test("should add an empty prop", () => {
- const { result } = renderHook(() =>
- usePropsLogic({
- props: [],
- selectedInstance: getSelectedInstance("Box"),
- updateProps: jest.fn(),
- deleteProp: jest.fn(),
- })
- );
-
- expect(result.current.userProps.length).toEqual(1);
-
- act(() => {
- result.current.addEmptyProp();
- });
-
- expect(result.current.userProps.length).toEqual(2);
- expect(result.current.userProps[1]).toMatchObject({ name: "", value: "" });
- });
-
- // test("should respect initialProps ordering", () => {
- // const { result } = renderHook(() =>
- // usePropsLogic({
- // props: [
- // {
- // id: "22",
- // instanceId: "instanceId",
- // name: "aria-label",
- // type: "string",
- // value: "https://example.com",
- // required: false,
- // },
- // {
- // id: "0",
- // instanceId: "instanceId",
- // name: "alt",
- // type: "string",
- // value: "alt text",
- // required: true,
- // },
- // {
- // id: "1",
- // instanceId: "instanceId",
- // name: "width",
- // type: "number",
- // value: 101,
- // required: false,
- // },
- // {
- // id: "33",
- // instanceId: "instanceId",
- // name: "title",
- // type: "string",
- // value: "title text",
- // required: true,
- // },
- // {
- // id: "2",
- // instanceId: "instanceId",
- // name: "src",
- // type: "string",
- // value: "https://example.com",
- // required: true,
- // },
- // ],
- // selectedInstance: getSelectedInstance("Image"),
- // updateProps: jest.fn(),
- // deleteProp: jest.fn(),
- // })
- // );
-
- // const imgMeta = getComponentMeta("Image");
-
- // const propNames = result.current.userProps.map((userProp) => userProp.name);
-
- // expect(imgMeta?.initialProps).toEqual(
- // propNames.slice(0, imgMeta?.initialProps?.length ?? 0)
- // );
-
- // expect(propNames.slice(imgMeta?.initialProps?.length ?? 0)).toEqual(
- // result.current.userProps
- // .filter(
- // (userProp) => imgMeta?.initialProps?.includes(userProp.name) === false
- // )
- // .map((userProp) => userProp.name)
- // );
- // });
-
- // test("should return isInitial true for initial props", () => {
- // const { result } = renderHook(() =>
- // usePropsLogic({
- // props: [],
- // selectedInstance: getSelectedInstance("Image"),
- // updateProps: jest.fn(),
- // deleteProp: jest.fn(),
- // })
- // );
-
- // expect(
- // result.current.isInitial({
- // id: "2",
- // instanceId: "instanceId",
- // name: "src",
- // type: "string",
- // value: "https://example.com",
- // required: false,
- // })
- // ).toBe(true);
- // });
-
- // test("isInitial should respect required prop", () => {
- // const { result } = renderHook(() =>
- // usePropsLogic({
- // props: [],
- // selectedInstance: getSelectedInstance("Image"),
- // updateProps: jest.fn(),
- // deleteProp: jest.fn(),
- // })
- // );
-
- // expect(
- // result.current.isInitial({
- // id: "2",
- // instanceId: "instanceId",
- // name: "arial-label",
- // type: "string",
- // value: "https://example.com",
- // required: true,
- // })
- // ).toBe(true);
-
- // expect(
- // result.current.isInitial({
- // id: "2",
- // instanceId: "instanceId",
- // name: "arial-label",
- // type: "string",
- // value: "https://example.com",
- // required: false,
- // })
- // ).toBe(false);
- // });
-});
diff --git a/apps/builder/app/builder/features/props-panel/use-props-logic.ts b/apps/builder/app/builder/features/props-panel/use-props-logic.ts
index 22728f1d6e..1b8074dd73 100644
--- a/apps/builder/app/builder/features/props-panel/use-props-logic.ts
+++ b/apps/builder/app/builder/features/props-panel/use-props-logic.ts
@@ -1,156 +1,232 @@
import { useState } from "react";
import { nanoid } from "nanoid";
import type { Instance, Prop } from "@webstudio-is/project-build";
-import type { WsComponentPropsMeta } from "@webstudio-is/react-sdk";
import { getComponentPropsMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta, PropValue } from "./shared";
+
+type PropOrName = { prop?: Prop; propName: string };
+export type PropAndMeta = { prop?: Prop; propName: string; meta: PropMeta };
+export type NameAndLabel = { name: string; label?: string };
+
+// The value we set prop to when it's added
+//
+// If undefined is returned,
+// we will not add a prop in storage until we get an onChange from control.
+//
+// User may have this experience:
+// - they added a prop but didn't touch the control
+// - they closed props panel
+// - when they open props panel again, the prop is not there
+//
+// We want to avoid this if possible, but for some types like "asset" we can't
+export const getStartingValue = (meta: PropMeta): PropValue | undefined => {
+ if (meta.type === "string" && meta.control !== "file-image") {
+ return {
+ type: "string",
+ value: meta.defaultValue ?? "",
+ };
+ }
-export type UserPropValue = Prop extends infer T
- ? T extends { value: unknown; type: unknown }
- ? { value: T["value"]; type: T["type"] }
- : never
- : never;
-
-export const getValueFromPropMeta = (
- propValue?: WsComponentPropsMeta["props"][string]
-) => {
- let typedValue: UserPropValue = {
- type: "string",
- value: `${propValue?.defaultValue ?? ""}`,
- };
+ if (meta.type === "number") {
+ return {
+ type: "number",
+ value: meta.defaultValue ?? 0,
+ };
+ }
- if (propValue?.control === "boolean") {
- typedValue = {
+ if (meta.type === "boolean") {
+ return {
type: "boolean",
- value: propValue.defaultValue ?? false,
+ value: meta.defaultValue ?? false,
};
}
- if (propValue?.control === "number") {
- typedValue = {
- type: "number",
- value: propValue.defaultValue ?? 0,
+ if (meta.type === "string[]") {
+ return {
+ type: "string[]",
+ value: meta.defaultValue ?? [],
};
}
+};
- return typedValue;
+const getStartingProp = (
+ instanceId: Instance["id"],
+ meta: PropMeta,
+ name: string
+): Prop | undefined => {
+ const value = getStartingValue(meta);
+ return value && { id: nanoid(), instanceId, name, ...value };
+};
+
+const getDefaultMetaForType = (type: Prop["type"]): PropMeta => {
+ switch (type) {
+ case "string":
+ return { type: "string", control: "text", required: false };
+ case "number":
+ return { type: "number", control: "number", required: false };
+ case "boolean":
+ return { type: "boolean", control: "boolean", required: false };
+ case "asset":
+ return { type: "string", control: "file-image", required: false };
+ case "string[]":
+ throw new Error(
+ "A prop with type string[] must have a meta, we can't provide a default one because we need a list of options"
+ );
+ default:
+ throw new Error(`Usupported data type: ${type}`);
+ }
};
-type UsePropsLogic = {
+type UsePropsLogicInput = {
props: Prop[];
- selectedInstance: Instance;
- updateProps: (update: Prop) => void;
+ instance: Instance;
+ updateProp: (update: Prop) => void;
deleteProp: (id: Prop["id"]) => void;
};
-const getPropFromMetaProps = (
- instanceId: Instance["id"],
- metaProps: WsComponentPropsMeta["props"],
- name: string
-) => {
- const metaPropValue = metaProps[name];
- if (metaPropValue === undefined) {
- return undefined;
- }
- return {
- id: nanoid(),
- instanceId,
- name,
- ...getValueFromPropMeta(metaPropValue),
- };
+type UsePropsLogicOutput = {
+ /**
+ * Initial (not deletable) props
+ */
+ initialProps: PropAndMeta[];
+ /**
+ * Optional props that were added by user
+ */
+ addedProps: PropAndMeta[];
+ /**
+ * List of remaining props still available to add
+ */
+ remainingProps: NameAndLabel[];
+ handleAdd: (propName: string) => void;
+ handleChange: (prop: PropOrName, value: PropValue) => void;
+ handleDelete: (prop: PropOrName) => void;
+};
+
+const getAndDelete = <Value>(map: Map<string, Value>, key: string) => {
+ const value = map.get(key);
+ map.delete(key);
+ return value;
};
/**
- * usePropsLogic expects that key={selectedInstanceData.id} is used on the ancestor component
+ * usePropsLogic expects that key={instance.id} is used on the ancestor component
*/
export const usePropsLogic = ({
- props,
- selectedInstance,
- updateProps,
+ props: savedProps,
+ instance,
+ updateProp,
deleteProp,
-}: UsePropsLogic) => {
- const { id: instanceId, component } = selectedInstance;
+}: UsePropsLogicInput): UsePropsLogicOutput => {
+ const meta = getComponentPropsMeta(instance.component);
+ if (meta === undefined) {
+ throw new Error(`Could not get meta for compoent "${instance.component}"`);
+ }
- const meta = getComponentPropsMeta(component);
- const metaProps = meta?.props ?? {};
- const initialProps = meta?.initialProps ?? [];
+ // we will delete items from these maps as we categorize the props
+ const unprocessedSaved = new Map(savedProps.map((prop) => [prop.name, prop]));
+ const unprocessedKnown = new Map(Object.entries(meta.props));
- const initialPropsByName = new Map<string, Prop>();
- for (const name of initialProps) {
- const prop = getPropFromMetaProps(instanceId, metaProps, name);
- if (prop) {
- initialPropsByName.set(name, prop);
- }
- }
+ const initialProps: PropAndMeta[] = (meta.initialProps ?? []).map((name) => {
+ const saved = getAndDelete(unprocessedSaved, name);
+ const known = getAndDelete(unprocessedKnown, name);
- const [addedProps, setAddedProps] = useState<Prop[]>([]);
- const addedPropsById = new Map<string, Prop>();
- for (const prop of addedProps) {
- addedPropsById.set(prop.id, prop);
- }
+ if (known === undefined) {
+ throw new Error(
+ `The prop "${name}" is defined in meta.initialProps but not in meta.props`
+ );
+ }
- const propsById = new Map<string, Prop>();
- for (const prop of props) {
- if (initialPropsByName.has(prop.name)) {
- initialPropsByName.set(prop.name, prop);
- continue;
+ let prop = saved;
+
+ // For initial props, if prop is not saved, we want to show default value if available.
+ //
+ // Important to not use getStartingProp if default is not available
+ // beacuse user may have this experience:
+ // - they open props panel of an Image
+ // - they see 0 in the control for "width"
+ // - where 0 is a fallback when no default is available
+ // - they think that width is set to 0, but it's actually not set at all
+ //
+ if (prop === undefined && known.defaultValue !== undefined) {
+ prop = getStartingProp(instance.id, known, name);
}
- if (addedPropsById.has(prop.id)) {
- addedPropsById.set(prop.id, prop);
- continue;
+
+ return { prop, propName: name, meta: known };
+ });
+
+ // names of the props added by the user during the lifetime of the hook
+ const [newNames, setNewNames] = useState<Prop["name"][]>([]);
+
+ const oldAdded: PropAndMeta[] = Array.from(unprocessedSaved.values())
+ .filter((prop) => newNames.includes(prop.name) === false)
+ .map((prop) => {
+ const known = getAndDelete(unprocessedKnown, prop.name);
+ unprocessedSaved.delete(prop.name);
+ return {
+ prop,
+ propName: prop.name,
+
+ // @todo:
+ // if meta is undefined, this means it's a "custom attribute"
+ // but because custom attributes not implemented yet,
+ // we'll show it as a regular optional prop for now
+ meta: known ?? getDefaultMetaForType(prop.type),
+ };
+ });
+
+ const newAdded: PropAndMeta[] = newNames.map((name) => {
+ const saved = getAndDelete(unprocessedSaved, name);
+ const known = getAndDelete(unprocessedKnown, name);
+
+ if (known === undefined) {
+ throw new Error(`Cannot find meta for a newly added prop "${name}`);
}
- propsById.set(prop.id, prop);
+
+ return { prop: saved, propName: name, meta: known };
+ });
+
+ // can happen only if there is a bug
+ if (unprocessedSaved.size > 0) {
+ throw new Error(
+ `Expected all saved props to be processed, but there are ${unprocessedSaved.size} left`
+ );
}
- // maintain added props order until panel is closed
- // to prevent inputs jumping while user typing
- const userProps = [
- ...initialPropsByName.values(),
- ...propsById.values(),
- ...addedPropsById.values(),
- ];
-
- const handleChangePropName = (prop: Prop, name: string) => {
- // prevent changing name of required props
- if (initialProps.includes(prop.name)) {
- return;
+ const handleAdd = (propName: string) => {
+ const propMeta = unprocessedKnown.get(propName);
+ if (propMeta === undefined) {
+ throw new Error(`Attempting to add a prop not lised in remainingProps`);
+ }
+ const prop = getStartingProp(instance.id, propMeta, propName);
+ if (prop) {
+ updateProp(prop);
}
- const typedValue = getValueFromPropMeta(metaProps[name]);
- updateProps({ id: prop.id, instanceId, name, ...typedValue });
+ setNewNames((prev) => [...prev, propName]);
};
- const handleChangePropValue = (prop: Prop, value: UserPropValue) => {
- updateProps({ ...prop, ...value });
+ const handleChange = ({ prop, propName }: PropOrName, value: PropValue) => {
+ updateProp(
+ prop === undefined
+ ? { id: nanoid(), instanceId: instance.id, name: propName, ...value }
+ : { ...prop, ...value }
+ );
};
- const handleDeleteProp = (prop: Prop) => {
- // required prop should never be deleted
- if (initialProps.includes(prop.name)) {
- return;
+ const handleDelete = ({ prop, propName }: PropOrName) => {
+ if (prop) {
+ deleteProp(prop.id);
}
- const id = prop.id;
- deleteProp(id);
- setAddedProps((prev) => prev.filter((prop) => prop.id !== id));
- };
-
- const addEmptyProp = () => {
- setAddedProps((prev) => [
- ...prev,
- {
- id: nanoid(),
- instanceId,
- name: "",
- type: "string",
- value: "",
- },
- ]);
+ setNewNames((prev) => prev.filter((name) => propName !== name));
};
return {
- userProps,
- handleChangePropName,
- handleChangePropValue,
- handleDeleteProp,
- addEmptyProp,
initialProps,
+ addedProps: [...oldAdded, ...newAdded],
+ remainingProps: Array.from(unprocessedKnown.entries()).map(
+ ([name, { label }]) => ({ name, label })
+ ),
+ handleAdd,
+ handleChange,
+ handleDelete,
};
};
diff --git a/apps/builder/app/canvas/features/wrapper-component/wrapper-component.tsx b/apps/builder/app/canvas/features/wrapper-component/wrapper-component.tsx
index f6f602d9bb..f630586a0b 100644
--- a/apps/builder/app/canvas/features/wrapper-component/wrapper-component.tsx
+++ b/apps/builder/app/canvas/features/wrapper-component/wrapper-component.tsx
@@ -63,7 +63,7 @@ const setDataCollapsed = (element?: HTMLElement) => {
}
};
-type UserProps = Record<Prop["name"], string | number | boolean>;
+type UserProps = Record<Prop["name"], Prop["value"]>;
type WrapperComponentDevProps = {
instance: Instance;
diff --git a/packages/design-system/src/index.ts b/packages/design-system/src/index.ts
index d40b99fed9..1f3ab9683d 100644
--- a/packages/design-system/src/index.ts
+++ b/packages/design-system/src/index.ts
@@ -18,6 +18,8 @@ export * from "./components/popover";
export { MenuItemButton } from "./components/menu";
export * from "./components/switch";
export * from "./components/toolbar";
+export * from "./components/two-rows-icon-button-container";
+export * from "./components/small-icon-button";
// Not aligned
diff --git a/packages/generate-arg-types/src/arg-types.ts b/packages/generate-arg-types/src/arg-types.ts
index ba0c7f2a07..925aaed241 100644
--- a/packages/generate-arg-types/src/arg-types.ts
+++ b/packages/generate-arg-types/src/arg-types.ts
@@ -44,43 +44,64 @@ const matchers = {
export const getArgType = (propItem: PropItem): PropMeta | undefined => {
const { type, name, description, defaultValue } = propItem;
- const common = (typeName: string = type.name) => ({
- type: { name: typeName, required: propItem.required },
- ...(defaultValue?.value == null
- ? {}
- : { defaultValue: defaultValue.value }),
- ...(description ? { description } : {}),
- });
+ // eslint-disable-next-line @typescript-eslint/ban-types
+ const makePropMeta = (type: string, control: string, extra?: {}) =>
+ PropMeta.parse({
+ type,
+ required: propItem.required,
+ control,
+ ...(defaultValue?.value == null
+ ? {}
+ : { defaultValue: defaultValue.value }),
+ ...(description ? { description } : {}),
+ ...extra,
+ });
// args that end with background or color e.g. iconColor
- if (matchers.color && matchers.color.test(name) && type.name === "string") {
- return PropMeta.parse({ ...common(), control: "color" });
+ if (matchers.color.test(name) && type.name === "string") {
+ return makePropMeta("string", "color");
}
- switch (type.name) {
- case "boolean":
- case "Booleanish":
- return PropMeta.parse({ ...common("boolean"), control: "boolean" });
- case "number":
- return PropMeta.parse({ ...common("number"), control: "number" });
- case "enum": {
- const values = type.value.map(({ value }: { value: string }) =>
- // remove additional quotes from enum values
- value.replace(/^"(.*)"$/, "$1")
- );
- return PropMeta.parse({
- ...common("string"),
- control: {
- type: values.length <= 5 ? "radio" : "select",
- options: values,
- },
- });
+ try {
+ switch (type.name) {
+ case "boolean":
+ case "Booleanish":
+ return makePropMeta("boolean", "boolean");
+ case "number":
+ return makePropMeta("number", "number");
+ case "string | number":
+ case "number | string":
+ if (defaultValue?.value === "") {
+ return makePropMeta("number", "number", { defaultValue: undefined });
+ } else if (
+ defaultValue?.value == null ||
+ typeof defaultValue.value === "number"
+ ) {
+ return makePropMeta("number", "number");
+ } else {
+ return makePropMeta("string", "text");
+ }
+ case "enum": {
+ const options = type.value.map(({ value }: { value: string }) =>
+ // remove additional quotes from enum values
+ value.replace(/^"(.*)"$/, "$1")
+ );
+ return makePropMeta(
+ "string",
+ options.length <= 5 ? "radio" : "select",
+ { options }
+ );
+ }
+ case "function":
+ case "symbol":
+ return;
+ default:
+ // @todo: we need some checks here. for example type.name can be "ImageLoader"
+ return makePropMeta("string", "text");
}
- case "function":
- case "symbol":
- return;
- default:
- // @todo: we need some checks here. for example type.name can be "ImageLoader"
- return PropMeta.parse({ ...common(), control: "text" });
+ } catch (error) {
+ // eslint-disable-next-line no-console
+ console.log("Error while parsing prop:", propItem);
+ throw error;
}
};
diff --git a/packages/generate-arg-types/src/cli.ts b/packages/generate-arg-types/src/cli.ts
index cb427d4971..5cf032154c 100755
--- a/packages/generate-arg-types/src/cli.ts
+++ b/packages/generate-arg-types/src/cli.ts
@@ -4,7 +4,6 @@
import path from "path";
import { withCustomConfig } from "react-docgen-typescript";
import fg from "fast-glob";
-
import fs from "fs-extra";
import { propsToArgTypes } from "./arg-types";
@@ -41,21 +40,23 @@ const tsConfigParser = withCustomConfig(tsConfigPath, options);
// For each component file generate argTypes based on the propTypes
componentFiles.forEach((filePath) => {
- const generatedJsonDir = path.join(
- path.dirname(filePath),
- GENERATED_FILES_DIR
- );
+ const generatedDir = path.join(path.dirname(filePath), GENERATED_FILES_DIR);
- if (!fs.existsSync(generatedJsonDir)) {
- fs.mkdirSync(generatedJsonDir, { recursive: true });
+ if (!fs.existsSync(generatedDir)) {
+ fs.mkdirSync(generatedDir, { recursive: true });
}
- const generateJsonFile = `${path.basename(filePath, ".tsx")}.props.json`;
- const generateJsonPath = path.join(generatedJsonDir, generateJsonFile);
+ const generatedFile = `${path.basename(filePath, ".tsx")}.props.ts`;
+ const generatedPath = path.join(generatedDir, generatedFile);
const res = tsConfigParser.parse(filePath);
const argTypes = propsToArgTypes(res[0].props);
- fs.ensureFileSync(generateJsonPath);
- fs.writeJsonSync(generateJsonPath, argTypes, { spaces: 2 });
- console.log(`Done generating argTypes for ${generateJsonPath}`);
+ fs.ensureFileSync(generatedPath);
+ fs.writeFileSync(
+ generatedPath,
+ `import type { PropMeta } from "@webstudio-is/generate-arg-types";\n\nexport const props: Record<string, PropMeta> = ${JSON.stringify(
+ argTypes
+ )}`
+ );
+ console.log(`Done generating argTypes for ${generatedPath}`);
});
diff --git a/packages/generate-arg-types/src/types.ts b/packages/generate-arg-types/src/types.ts
index cf874651ad..f21bb46efe 100644
--- a/packages/generate-arg-types/src/types.ts
+++ b/packages/generate-arg-types/src/types.ts
@@ -1,120 +1,107 @@
import { z } from "zod";
-// We're trying to have the same API as Storybook's ArgTypes here
+// Note on Storybook compatibility!
+//
+// In the future we may need converter functions between Storybook's ArgTypes and PropMeta.
+// We should keep this in mind when designing the PropMeta type.
// https://storybook.js.org/docs/react/api/argtypes
// https://github.com/ComponentDriven/csf/blob/next/src/story.ts#L63
//
-// And have the same list of controls as Storybook (with some additions)
+// We want to have the same list of controls as Storybook (with some additions)
// https://storybook.js.org/docs/react/essentials/controls
-const dataType = <T extends string>(name: T) =>
- z.object({ name: z.literal(name), required: z.boolean() });
-
-const controlType = <T extends string>(name: T) =>
- z.union([z.literal(name), z.object({ type: z.literal(name) })]);
-
-const controlTypeWithOptions = <T extends string>(name: T) =>
- z.object({ type: z.literal(name), options: z.array(z.string()) });
-
const common = {
- /**
- * Label for the control (may not match the property name)
- */
- name: z.string().optional(),
+ label: z.string().optional(),
description: z.string().optional(),
+ required: z.boolean(),
};
const Number = z.object({
...common,
- type: dataType("number"),
- control: controlType("number"),
+ control: z.literal("number"),
+ type: z.literal("number"),
defaultValue: z.number().optional(),
});
const Range = z.object({
...common,
- type: dataType("number"),
- control: controlType("range"),
+ control: z.literal("range"),
+ type: z.literal("number"),
defaultValue: z.number().optional(),
});
const Text = z.object({
...common,
- type: z.object({
- // we don't specify a supported type here,
- // because we use Text as a fallback control for all sorts of types
- // for example: `boolean | "true" | "false" | "grammar" | "spelling"`
- name: z.string(),
- required: z.boolean(),
- }),
- control: controlType("text"),
- defaultValue: z.string().optional(),
-});
-
-// Discussed with Storybook team here:
-// https://discord.com/channels/486522875931656193/689023212519948302/1075001187776069682
-// https://github.com/storybookjs/storybook/issues/21100
-const MultilineText = z.object({
- ...common,
- type: dataType("string"),
- control: controlType("multiline-text"),
+ control: z.literal("text"),
+ type: z.literal("string"),
defaultValue: z.string().optional(),
+ /**
+ * The number of rows in <textarea>. If set to 0 an <input> will be used instead.
+ * In line with Storybook team's plan: https://github.com/storybookjs/storybook/issues/21100
+ */
+ rows: z.number().optional(),
});
const Color = z.object({
...common,
- type: dataType("string"),
- control: controlType("color"),
+ control: z.literal("color"),
+ type: z.literal("string"),
defaultValue: z.string().optional(),
});
const Boolean = z.object({
...common,
- type: dataType("boolean"),
- control: controlType("boolean"),
+ control: z.literal("boolean"),
+ type: z.literal("boolean"),
defaultValue: z.boolean().optional(),
});
const Radio = z.object({
...common,
- type: dataType("string"),
- control: controlTypeWithOptions("radio"),
+ control: z.literal("radio"),
+ type: z.literal("string"),
defaultValue: z.string().optional(),
+ options: z.array(z.string()),
});
const InlineRadio = z.object({
...common,
- type: dataType("string"),
- control: controlTypeWithOptions("inline-radio"),
+ control: z.literal("inline-radio"),
+ type: z.literal("string"),
defaultValue: z.string().optional(),
+ options: z.array(z.string()),
});
const Select = z.object({
...common,
- type: dataType("string"),
- control: controlTypeWithOptions("select"),
+ control: z.literal("select"),
+ type: z.literal("string"),
defaultValue: z.string().optional(),
+ options: z.array(z.string()),
});
-const MultiSelect = z.object({
+const Check = z.object({
...common,
- type: dataType("string[]"),
- control: controlTypeWithOptions("multi-select"),
+ control: z.literal("check"),
+ type: z.literal("string[]"),
defaultValue: z.array(z.string()).optional(),
+ options: z.array(z.string()),
});
-const Check = z.object({
+const InlineCheck = z.object({
...common,
- type: dataType("string[]"),
- control: controlTypeWithOptions("check"),
+ control: z.literal("inline-check"),
+ type: z.literal("string[]"),
defaultValue: z.array(z.string()).optional(),
+ options: z.array(z.string()),
});
-const InlineCheck = z.object({
+const MultiSelect = z.object({
...common,
- type: dataType("string[]"),
- control: controlTypeWithOptions("inline-check"),
+ control: z.literal("multi-select"),
+ type: z.literal("string[]"),
defaultValue: z.array(z.string()).optional(),
+ options: z.array(z.string()),
});
// @todo
@@ -122,8 +109,8 @@ const InlineCheck = z.object({
// to be in line with Storybook
const FileImage = z.object({
...common,
- type: dataType("string"),
- control: controlType("file-image"),
+ control: z.literal("file-image"),
+ type: z.literal("string"),
defaultValue: z.string().optional(),
});
@@ -131,29 +118,29 @@ const FileImage = z.object({
// can't use name "Object" for the variable because it causes bugs when Object.assign() is used in compiled output
const ObjectType = z.object({
...common,
- type: z.object({
- name: z.string(), // @todo not sure what type should be here
- required: z.boolean(),
- }),
- control: controlType("object"),
- defaultValue: z.any().optional(), // @todo maybe z.record(z.any())?
- ...common,
+ control: z.literal("object"),
+
+ // @todo not sure what type should be here
+ // (we don't support Object yet, added for completeness)
+ type: z.literal("Record<string, string>"),
+ defaultValue: z.record(z.string()).optional(),
});
// we neither generate date nor support it in props panel, listed here for completeness
const Date = z.object({
...common,
- type: dataType("string"), // @todo not sure we should use string here and for defaultValue
- control: controlType("date"),
+ control: z.literal("date"),
+
+ // @todo not sure what type should be here
+ // (we don't support Date yet, added for completeness)
+ type: z.literal("string"),
defaultValue: z.string().optional(),
- ...common,
});
export const PropMeta = z.union([
Number,
Range,
Text,
- MultilineText,
Color,
Boolean,
Radio,
diff --git a/packages/image/package.json b/packages/image/package.json
index 5c8ae060b4..01c27779bc 100644
--- a/packages/image/package.json
+++ b/packages/image/package.json
@@ -11,7 +11,7 @@
"checks": "pnpm typecheck && pnpm lint && pnpm test",
"dev": "build-package --watch",
"build": "build-package",
- "build:args": "generate-arg-types './src/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.json\"",
+ "build:args": "generate-arg-types './src/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
"storybook:run": "start-storybook -p 6006",
"storybook:build": "build-storybook",
@@ -19,7 +19,8 @@
},
"dependencies": {
"react": "^17.0.2",
- "warn-once": "^0.1.1"
+ "warn-once": "^0.1.1",
+ "@webstudio-is/generate-arg-types": "workspace:^"
},
"devDependencies": {
"@jest/globals": "^29.3.1",
@@ -27,7 +28,6 @@
"@storybook/react": "^6.5.14",
"@storybook/testing-library": "^0.0.13",
"@types/react": "^17.0.24",
- "@webstudio-is/generate-arg-types": "workspace:^",
"@webstudio-is/jest-config": "workspace:^",
"@webstudio-is/scripts": "workspace:^",
"@webstudio-is/storybook-config": "workspace:^",
diff --git a/packages/image/src/__generated__/image.props.json b/packages/image/src/__generated__/image.props.json
deleted file mode 100644
index 2769dd12db..0000000000
--- a/packages/image/src/__generated__/image.props.json
+++ /dev/null
@@ -1,867 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "alt": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "crossOrigin": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["", "anonymous", "use-credentials"]
- }
- },
- "decoding": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["async", "auto", "sync"]
- },
- "defaultValue": "async"
- },
- "height": {
- "type": {
- "name": "string | number",
- "required": false
- },
- "control": "text"
- },
- "loading": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["eager", "lazy"]
- },
- "defaultValue": "lazy"
- },
- "referrerPolicy": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "",
- "no-referrer",
- "no-referrer-when-downgrade",
- "origin",
- "origin-when-cross-origin",
- "same-origin",
- "strict-origin",
- "strict-origin-when-cross-origin",
- "unsafe-url"
- ]
- }
- },
- "sizes": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "src": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text",
- "defaultValue": ""
- },
- "srcSet": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "useMap": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "width": {
- "type": {
- "name": "string | number",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "quality": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "loader": {
- "type": {
- "name": "ImageLoader",
- "required": true
- },
- "control": "text"
- },
- "optimize": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean",
- "defaultValue": true
- }
-}
diff --git a/packages/image/src/__generated__/image.props.ts b/packages/image/src/__generated__/image.props.ts
new file mode 100644
index 0000000000..8c07ad2ece
--- /dev/null
+++ b/packages/image/src/__generated__/image.props.ts
@@ -0,0 +1,489 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ alt: { required: false, control: "text", type: "string" },
+ crossOrigin: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["", "anonymous", "use-credentials"],
+ },
+ decoding: {
+ required: false,
+ control: "radio",
+ type: "string",
+ defaultValue: "async",
+ options: ["async", "auto", "sync"],
+ },
+ height: { required: false, control: "number", type: "number" },
+ loading: {
+ required: false,
+ control: "radio",
+ type: "string",
+ defaultValue: "lazy",
+ options: ["eager", "lazy"],
+ },
+ referrerPolicy: {
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "",
+ "no-referrer",
+ "no-referrer-when-downgrade",
+ "origin",
+ "origin-when-cross-origin",
+ "same-origin",
+ "strict-origin",
+ "strict-origin-when-cross-origin",
+ "unsafe-url",
+ ],
+ },
+ sizes: { required: false, control: "text", type: "string" },
+ src: { required: false, control: "text", type: "string", defaultValue: "" },
+ srcSet: { required: false, control: "text", type: "string" },
+ useMap: { required: false, control: "text", type: "string" },
+ width: { required: false, control: "number", type: "number" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ quality: { required: false, control: "number", type: "number" },
+ loader: { required: true, control: "text", type: "string" },
+ optimize: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ defaultValue: true,
+ },
+};
diff --git a/packages/image/src/index.ts b/packages/image/src/index.ts
index 62882121e1..370ba45933 100644
--- a/packages/image/src/index.ts
+++ b/packages/image/src/index.ts
@@ -1,4 +1,18 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
export { Image } from "./image";
export type { ImageLoader } from "./image-optimize";
export * as loaders from "./image-loaders";
-export { default as imageProps } from "./__generated__/image.props.json";
+import { props } from "./__generated__/image.props";
+
+// "loader" is our internal prop not intended to show up in the props panel
+const { loader, ...publicProps } = props;
+
+export const imageProps: Record<string, PropMeta> = {
+ ...publicProps,
+ src: {
+ type: "string",
+ control: "file-image",
+ label: "Source",
+ required: false,
+ },
+};
diff --git a/packages/project-build/src/schema/props.ts b/packages/project-build/src/schema/props.ts
index 8dd8ac6182..7707c31088 100644
--- a/packages/project-build/src/schema/props.ts
+++ b/packages/project-build/src/schema/props.ts
@@ -30,6 +30,11 @@ export const Prop = z.union([
type: z.literal("asset"),
value: z.string(),
}),
+ z.object({
+ ...baseProp,
+ type: z.literal("string[]"),
+ value: z.array(z.string()),
+ }),
]);
export type Prop = z.infer<typeof Prop>;
diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.json
index eaed6cb9b2..c32e7b15a9 100644
--- a/packages/react-sdk/package.json
+++ b/packages/react-sdk/package.json
@@ -8,7 +8,7 @@
"scripts": {
"dev": "build-package --watch",
"build": "build-package",
- "build:args": "generate-arg-types './src/components/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.json\"",
+ "build:args": "generate-arg-types './src/components/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",
"typecheck": "tsc --noEmit",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
diff --git a/packages/react-sdk/src/app/custom-components/index.ts b/packages/react-sdk/src/app/custom-components/index.ts
index 016efd2f9b..e6a43ec561 100644
--- a/packages/react-sdk/src/app/custom-components/index.ts
+++ b/packages/react-sdk/src/app/custom-components/index.ts
@@ -10,13 +10,8 @@ export const customComponents = {
RichTextLink,
};
-export const customComponentPropsMetas = {
- Image: {
- props: {
- ...imageProps,
- src: { ...imageProps.src, control: "file-image", name: "Source" },
- },
- } as WsComponentPropsMeta,
+export const customComponentPropsMetas: Record<string, WsComponentPropsMeta> = {
+ Image: { props: imageProps },
};
// just for completeness, maybe we add soemthing here later
diff --git a/packages/react-sdk/src/components/__generated__/blockquote.props.json b/packages/react-sdk/src/components/__generated__/blockquote.props.json
deleted file mode 100644
index 27cb085bd0..0000000000
--- a/packages/react-sdk/src/components/__generated__/blockquote.props.json
+++ /dev/null
@@ -1,750 +0,0 @@
-{
- "cite": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/blockquote.props.ts b/packages/react-sdk/src/components/__generated__/blockquote.props.ts
new file mode 100644
index 0000000000..e3fc686607
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/blockquote.props.ts
@@ -0,0 +1,439 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ cite: { required: false, control: "text", type: "string" },
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/body.props.json b/packages/react-sdk/src/components/__generated__/body.props.json
deleted file mode 100644
index 81365a2bcd..0000000000
--- a/packages/react-sdk/src/components/__generated__/body.props.json
+++ /dev/null
@@ -1,743 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/body.props.ts b/packages/react-sdk/src/components/__generated__/body.props.ts
new file mode 100644
index 0000000000..6c67129777
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/body.props.ts
@@ -0,0 +1,438 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/bold.props.json b/packages/react-sdk/src/components/__generated__/bold.props.json
deleted file mode 100644
index 81365a2bcd..0000000000
--- a/packages/react-sdk/src/components/__generated__/bold.props.json
+++ /dev/null
@@ -1,743 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/bold.props.ts b/packages/react-sdk/src/components/__generated__/bold.props.ts
new file mode 100644
index 0000000000..6c67129777
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/bold.props.ts
@@ -0,0 +1,438 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/box.props.json b/packages/react-sdk/src/components/__generated__/box.props.json
deleted file mode 100644
index 8a42577198..0000000000
--- a/packages/react-sdk/src/components/__generated__/box.props.json
+++ /dev/null
@@ -1,765 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "tag": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "div",
- "address",
- "article",
- "aside",
- "figure",
- "footer",
- "header",
- "main",
- "nav",
- "section"
- ]
- },
- "defaultValue": "div"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/box.props.ts b/packages/react-sdk/src/components/__generated__/box.props.ts
new file mode 100644
index 0000000000..3fb234f501
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/box.props.ts
@@ -0,0 +1,456 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ tag: {
+ required: false,
+ control: "select",
+ type: "string",
+ defaultValue: "div",
+ options: [
+ "div",
+ "address",
+ "article",
+ "aside",
+ "figure",
+ "footer",
+ "header",
+ "main",
+ "nav",
+ "section",
+ ],
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/button.props.json b/packages/react-sdk/src/components/__generated__/button.props.json
deleted file mode 100644
index 84435a682d..0000000000
--- a/packages/react-sdk/src/components/__generated__/button.props.json
+++ /dev/null
@@ -1,824 +0,0 @@
-{
- "form": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoFocus": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "disabled": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "formAction": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "formEncType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "formMethod": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "formNoValidate": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "formTarget": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "name": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "type": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["button", "submit", "reset"]
- },
- "defaultValue": "submit"
- },
- "value": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/button.props.ts b/packages/react-sdk/src/components/__generated__/button.props.ts
new file mode 100644
index 0000000000..8fc5ce8b62
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/button.props.ts
@@ -0,0 +1,455 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ form: { required: false, control: "text", type: "string" },
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
+ disabled: { required: false, control: "boolean", type: "boolean" },
+ formAction: { required: false, control: "text", type: "string" },
+ formEncType: { required: false, control: "text", type: "string" },
+ formMethod: { required: false, control: "text", type: "string" },
+ formNoValidate: { required: false, control: "boolean", type: "boolean" },
+ formTarget: { required: false, control: "text", type: "string" },
+ name: { required: false, control: "text", type: "string" },
+ type: {
+ required: false,
+ control: "radio",
+ type: "string",
+ defaultValue: "submit",
+ options: ["button", "submit", "reset"],
+ },
+ value: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/code.props.json b/packages/react-sdk/src/components/__generated__/code.props.json
deleted file mode 100644
index 66f3324e15..0000000000
--- a/packages/react-sdk/src/components/__generated__/code.props.json
+++ /dev/null
@@ -1,751 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["inline", "list", "none", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inline": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean",
- "defaultValue": false
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/code.props.ts b/packages/react-sdk/src/components/__generated__/code.props.ts
new file mode 100644
index 0000000000..8c6a44796f
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/code.props.ts
@@ -0,0 +1,445 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ meta: { required: false, control: "text", type: "string" },
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["inline", "list", "none", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ inline: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ defaultValue: false,
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/form.props.json b/packages/react-sdk/src/components/__generated__/form.props.json
deleted file mode 100644
index 2cc9701caf..0000000000
--- a/packages/react-sdk/src/components/__generated__/form.props.json
+++ /dev/null
@@ -1,799 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "acceptCharset": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "action": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoComplete": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "encType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "method": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "name": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "noValidate": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "target": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/form.props.ts b/packages/react-sdk/src/components/__generated__/form.props.ts
new file mode 100644
index 0000000000..765b1a202f
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/form.props.ts
@@ -0,0 +1,446 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ acceptCharset: { required: false, control: "text", type: "string" },
+ action: { required: false, control: "text", type: "string" },
+ autoComplete: { required: false, control: "text", type: "string" },
+ encType: { required: false, control: "text", type: "string" },
+ method: { required: false, control: "text", type: "string" },
+ name: { required: false, control: "text", type: "string" },
+ noValidate: { required: false, control: "boolean", type: "boolean" },
+ target: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/heading.props.json b/packages/react-sdk/src/components/__generated__/heading.props.json
deleted file mode 100644
index 5e4ae4805d..0000000000
--- a/packages/react-sdk/src/components/__generated__/heading.props.json
+++ /dev/null
@@ -1,754 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "tag": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["h1", "h2", "h3", "h4", "h5", "h6"]
- },
- "defaultValue": "h1"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/heading.props.ts b/packages/react-sdk/src/components/__generated__/heading.props.ts
new file mode 100644
index 0000000000..1d3b4122d2
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/heading.props.ts
@@ -0,0 +1,445 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ tag: {
+ required: false,
+ control: "select",
+ type: "string",
+ defaultValue: "h1",
+ options: ["h1", "h2", "h3", "h4", "h5", "h6"],
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/image.props.json b/packages/react-sdk/src/components/__generated__/image.props.json
deleted file mode 100644
index 168b2dfc76..0000000000
--- a/packages/react-sdk/src/components/__generated__/image.props.json
+++ /dev/null
@@ -1,846 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "alt": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text",
- "defaultValue": ""
- },
- "crossOrigin": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["", "anonymous", "use-credentials"]
- }
- },
- "decoding": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["async", "auto", "sync"]
- }
- },
- "height": {
- "type": {
- "name": "string | number",
- "required": false
- },
- "control": "text",
- "defaultValue": ""
- },
- "loading": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["eager", "lazy"]
- }
- },
- "referrerPolicy": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "",
- "no-referrer",
- "no-referrer-when-downgrade",
- "origin",
- "origin-when-cross-origin",
- "same-origin",
- "strict-origin",
- "strict-origin-when-cross-origin",
- "unsafe-url"
- ]
- }
- },
- "sizes": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "src": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text",
- "defaultValue": ""
- },
- "srcSet": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "useMap": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "width": {
- "type": {
- "name": "string | number",
- "required": false
- },
- "control": "text",
- "defaultValue": ""
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/image.props.ts b/packages/react-sdk/src/components/__generated__/image.props.ts
new file mode 100644
index 0000000000..415f0447e6
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/image.props.ts
@@ -0,0 +1,479 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ alt: { required: false, control: "text", type: "string", defaultValue: "" },
+ crossOrigin: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["", "anonymous", "use-credentials"],
+ },
+ decoding: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["async", "auto", "sync"],
+ },
+ height: { required: false, control: "number", type: "number" },
+ loading: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["eager", "lazy"],
+ },
+ referrerPolicy: {
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "",
+ "no-referrer",
+ "no-referrer-when-downgrade",
+ "origin",
+ "origin-when-cross-origin",
+ "same-origin",
+ "strict-origin",
+ "strict-origin-when-cross-origin",
+ "unsafe-url",
+ ],
+ },
+ sizes: { required: false, control: "text", type: "string" },
+ src: { required: false, control: "text", type: "string", defaultValue: "" },
+ srcSet: { required: false, control: "text", type: "string" },
+ useMap: { required: false, control: "text", type: "string" },
+ width: { required: false, control: "number", type: "number" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/input.props.json b/packages/react-sdk/src/components/__generated__/input.props.json
deleted file mode 100644
index cc6ad63ea3..0000000000
--- a/packages/react-sdk/src/components/__generated__/input.props.json
+++ /dev/null
@@ -1,977 +0,0 @@
-{
- "form": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "pattern": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "accept": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "alt": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoComplete": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoFocus": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "capture": {
- "type": {
- "name": "boolean | \"user\" | \"environment\"",
- "required": false
- },
- "control": "text"
- },
- "checked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "crossOrigin": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "disabled": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "enterKeyHint": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["enter", "done", "go", "next", "previous", "search", "send"]
- }
- },
- "formAction": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "formEncType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "formMethod": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "formNoValidate": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "formTarget": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "height": {
- "type": {
- "name": "string | number",
- "required": false
- },
- "control": "text"
- },
- "list": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "max": {
- "type": {
- "name": "string | number",
- "required": false
- },
- "control": "text"
- },
- "maxLength": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "min": {
- "type": {
- "name": "string | number",
- "required": false
- },
- "control": "text"
- },
- "minLength": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "multiple": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "name": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "readOnly": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "required": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "size": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "src": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "step": {
- "type": {
- "name": "string | number",
- "required": false
- },
- "control": "text"
- },
- "type": {
- "type": {
- "name": "HTMLInputTypeAttribute",
- "required": false
- },
- "control": "text"
- },
- "value": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "width": {
- "type": {
- "name": "string | number",
- "required": false
- },
- "control": "text"
- },
- "onChange": {
- "type": {
- "name": "ChangeEventHandler<HTMLInputElement>",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "search",
- "email",
- "tel",
- "url",
- "none",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"step\" | \"date\" | \"true\" | \"false\" | \"page\" | \"location\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/input.props.ts b/packages/react-sdk/src/components/__generated__/input.props.ts
new file mode 100644
index 0000000000..a328e33f18
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/input.props.ts
@@ -0,0 +1,476 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ form: { required: false, control: "text", type: "string" },
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ pattern: { required: false, control: "text", type: "string" },
+ accept: { required: false, control: "text", type: "string" },
+ alt: { required: false, control: "text", type: "string" },
+ autoComplete: { required: false, control: "text", type: "string" },
+ autoFocus: { required: false, control: "boolean", type: "boolean" },
+ capture: { required: false, control: "text", type: "string" },
+ checked: { required: false, control: "boolean", type: "boolean" },
+ crossOrigin: { required: false, control: "text", type: "string" },
+ disabled: { required: false, control: "boolean", type: "boolean" },
+ enterKeyHint: {
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["enter", "done", "go", "next", "previous", "search", "send"],
+ },
+ formAction: { required: false, control: "text", type: "string" },
+ formEncType: { required: false, control: "text", type: "string" },
+ formMethod: { required: false, control: "text", type: "string" },
+ formNoValidate: { required: false, control: "boolean", type: "boolean" },
+ formTarget: { required: false, control: "text", type: "string" },
+ height: { required: false, control: "number", type: "number" },
+ list: { required: false, control: "text", type: "string" },
+ max: { required: false, control: "number", type: "number" },
+ maxLength: { required: false, control: "number", type: "number" },
+ min: { required: false, control: "number", type: "number" },
+ minLength: { required: false, control: "number", type: "number" },
+ multiple: { required: false, control: "boolean", type: "boolean" },
+ name: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ readOnly: { required: false, control: "boolean", type: "boolean" },
+ required: { required: false, control: "boolean", type: "boolean" },
+ size: { required: false, control: "number", type: "number" },
+ src: { required: false, control: "text", type: "string" },
+ step: { required: false, control: "number", type: "number" },
+ type: { required: false, control: "text", type: "string" },
+ value: { required: false, control: "text", type: "string" },
+ width: { required: false, control: "number", type: "number" },
+ onChange: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "search",
+ "email",
+ "tel",
+ "url",
+ "none",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/italic.props.json b/packages/react-sdk/src/components/__generated__/italic.props.json
deleted file mode 100644
index 81365a2bcd..0000000000
--- a/packages/react-sdk/src/components/__generated__/italic.props.json
+++ /dev/null
@@ -1,743 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/italic.props.ts b/packages/react-sdk/src/components/__generated__/italic.props.ts
new file mode 100644
index 0000000000..6c67129777
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/italic.props.ts
@@ -0,0 +1,438 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/link.props.json b/packages/react-sdk/src/components/__generated__/link.props.json
deleted file mode 100644
index 390814d818..0000000000
--- a/packages/react-sdk/src/components/__generated__/link.props.json
+++ /dev/null
@@ -1,820 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "download": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "href": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text",
- "defaultValue": ""
- },
- "hrefLang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "media": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "ping": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "rel": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "target": {
- "type": {
- "name": "HTMLAttributeAnchorTarget",
- "required": false
- },
- "control": "text"
- },
- "type": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "referrerPolicy": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "",
- "no-referrer",
- "no-referrer-when-downgrade",
- "origin",
- "origin-when-cross-origin",
- "same-origin",
- "strict-origin",
- "strict-origin-when-cross-origin",
- "unsafe-url"
- ]
- }
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/link.props.ts b/packages/react-sdk/src/components/__generated__/link.props.ts
new file mode 100644
index 0000000000..a4ab21e834
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/link.props.ts
@@ -0,0 +1,462 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ download: { required: false, control: "text", type: "string" },
+ href: { required: false, control: "text", type: "string", defaultValue: "" },
+ hrefLang: { required: false, control: "text", type: "string" },
+ media: { required: false, control: "text", type: "string" },
+ ping: { required: false, control: "text", type: "string" },
+ rel: { required: false, control: "text", type: "string" },
+ target: { required: false, control: "text", type: "string" },
+ type: { required: false, control: "text", type: "string" },
+ referrerPolicy: {
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "",
+ "no-referrer",
+ "no-referrer-when-downgrade",
+ "origin",
+ "origin-when-cross-origin",
+ "same-origin",
+ "strict-origin",
+ "strict-origin-when-cross-origin",
+ "unsafe-url",
+ ],
+ },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/list-item.props.json b/packages/react-sdk/src/components/__generated__/list-item.props.json
deleted file mode 100644
index 6682977da4..0000000000
--- a/packages/react-sdk/src/components/__generated__/list-item.props.json
+++ /dev/null
@@ -1,750 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "value": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/list-item.props.ts b/packages/react-sdk/src/components/__generated__/list-item.props.ts
new file mode 100644
index 0000000000..b340a3205d
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/list-item.props.ts
@@ -0,0 +1,439 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ value: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/list.props.json b/packages/react-sdk/src/components/__generated__/list.props.json
deleted file mode 100644
index 02fdcbd79c..0000000000
--- a/packages/react-sdk/src/components/__generated__/list.props.json
+++ /dev/null
@@ -1,775 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "reversed": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "start": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "type": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["a", "i", "1", "A", "I"]
- }
- },
- "ordered": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean",
- "defaultValue": false
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/list.props.ts b/packages/react-sdk/src/components/__generated__/list.props.ts
new file mode 100644
index 0000000000..87068cc196
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/list.props.ts
@@ -0,0 +1,452 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ reversed: { required: false, control: "boolean", type: "boolean" },
+ start: { required: false, control: "number", type: "number" },
+ type: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["a", "i", "1", "A", "I"],
+ },
+ ordered: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ defaultValue: false,
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/paragraph.props.json b/packages/react-sdk/src/components/__generated__/paragraph.props.json
deleted file mode 100644
index 81365a2bcd..0000000000
--- a/packages/react-sdk/src/components/__generated__/paragraph.props.json
+++ /dev/null
@@ -1,743 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/paragraph.props.ts b/packages/react-sdk/src/components/__generated__/paragraph.props.ts
new file mode 100644
index 0000000000..6c67129777
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/paragraph.props.ts
@@ -0,0 +1,438 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/rich-text-link.props.json b/packages/react-sdk/src/components/__generated__/rich-text-link.props.json
deleted file mode 100644
index 390814d818..0000000000
--- a/packages/react-sdk/src/components/__generated__/rich-text-link.props.json
+++ /dev/null
@@ -1,820 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "download": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "href": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text",
- "defaultValue": ""
- },
- "hrefLang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "media": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "ping": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "rel": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "target": {
- "type": {
- "name": "HTMLAttributeAnchorTarget",
- "required": false
- },
- "control": "text"
- },
- "type": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "referrerPolicy": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "",
- "no-referrer",
- "no-referrer-when-downgrade",
- "origin",
- "origin-when-cross-origin",
- "same-origin",
- "strict-origin",
- "strict-origin-when-cross-origin",
- "unsafe-url"
- ]
- }
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/rich-text-link.props.ts b/packages/react-sdk/src/components/__generated__/rich-text-link.props.ts
new file mode 100644
index 0000000000..a4ab21e834
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/rich-text-link.props.ts
@@ -0,0 +1,462 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ download: { required: false, control: "text", type: "string" },
+ href: { required: false, control: "text", type: "string", defaultValue: "" },
+ hrefLang: { required: false, control: "text", type: "string" },
+ media: { required: false, control: "text", type: "string" },
+ ping: { required: false, control: "text", type: "string" },
+ rel: { required: false, control: "text", type: "string" },
+ target: { required: false, control: "text", type: "string" },
+ type: { required: false, control: "text", type: "string" },
+ referrerPolicy: {
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "",
+ "no-referrer",
+ "no-referrer-when-downgrade",
+ "origin",
+ "origin-when-cross-origin",
+ "same-origin",
+ "strict-origin",
+ "strict-origin-when-cross-origin",
+ "unsafe-url",
+ ],
+ },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/separator.props.json b/packages/react-sdk/src/components/__generated__/separator.props.json
deleted file mode 100644
index 81365a2bcd..0000000000
--- a/packages/react-sdk/src/components/__generated__/separator.props.json
+++ /dev/null
@@ -1,743 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/separator.props.ts b/packages/react-sdk/src/components/__generated__/separator.props.ts
new file mode 100644
index 0000000000..6c67129777
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/separator.props.ts
@@ -0,0 +1,438 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/span.props.json b/packages/react-sdk/src/components/__generated__/span.props.json
deleted file mode 100644
index 81365a2bcd..0000000000
--- a/packages/react-sdk/src/components/__generated__/span.props.json
+++ /dev/null
@@ -1,743 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/span.props.ts b/packages/react-sdk/src/components/__generated__/span.props.ts
new file mode 100644
index 0000000000..6c67129777
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/span.props.ts
@@ -0,0 +1,438 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/subscript.props.json b/packages/react-sdk/src/components/__generated__/subscript.props.json
deleted file mode 100644
index 81365a2bcd..0000000000
--- a/packages/react-sdk/src/components/__generated__/subscript.props.json
+++ /dev/null
@@ -1,743 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/subscript.props.ts b/packages/react-sdk/src/components/__generated__/subscript.props.ts
new file mode 100644
index 0000000000..6c67129777
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/subscript.props.ts
@@ -0,0 +1,438 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/superscript.props.json b/packages/react-sdk/src/components/__generated__/superscript.props.json
deleted file mode 100644
index 81365a2bcd..0000000000
--- a/packages/react-sdk/src/components/__generated__/superscript.props.json
+++ /dev/null
@@ -1,743 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/superscript.props.ts b/packages/react-sdk/src/components/__generated__/superscript.props.ts
new file mode 100644
index 0000000000..6c67129777
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/superscript.props.ts
@@ -0,0 +1,438 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/__generated__/text-block.props.json b/packages/react-sdk/src/components/__generated__/text-block.props.json
deleted file mode 100644
index 81365a2bcd..0000000000
--- a/packages/react-sdk/src/components/__generated__/text-block.props.json
+++ /dev/null
@@ -1,743 +0,0 @@
-{
- "slot": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "style": {
- "type": {
- "name": "CSSProperties",
- "required": false
- },
- "control": "text"
- },
- "title": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "defaultChecked": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "defaultValue": {
- "type": {
- "name": "string | number | readonly string[]",
- "required": false
- },
- "control": "text"
- },
- "suppressContentEditableWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "suppressHydrationWarning": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "accessKey": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "className": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "contentEditable": {
- "type": {
- "name": "Booleanish | \"inherit\"",
- "required": false
- },
- "control": "text"
- },
- "contextMenu": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "dir": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "draggable": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "hidden": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "id": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "lang": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "placeholder": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "spellCheck": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "tabIndex": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "translate": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["yes", "no"]
- }
- },
- "radioGroup": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "role": {
- "type": {
- "name": "AriaRole",
- "required": false
- },
- "control": "text"
- },
- "about": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "datatype": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "inlist": {
- "type": {
- "name": "any",
- "required": false
- },
- "control": "text"
- },
- "prefix": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "property": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "resource": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "typeof": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "vocab": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCapitalize": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoCorrect": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "autoSave": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "color": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "color"
- },
- "itemProp": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemScope": {
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "itemType": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemID": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "itemRef": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "results": {
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "security": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "unselectable": {
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["on", "off"]
- }
- },
- "inputMode": {
- "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "none",
- "search",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal"
- ]
- }
- },
- "is": {
- "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-activedescendant": {
- "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-atomic": {
- "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-autocomplete": {
- "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["list", "none", "inline", "both"]
- }
- },
- "aria-busy": {
- "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-checked": {
- "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-colcount": {
- "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colindex": {
- "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-colspan": {
- "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-controls": {
- "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-current": {
- "description": "Indicates the element that represents the current item within a container or set of related elements.",
- "type": {
- "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\"",
- "required": false
- },
- "control": "text"
- },
- "aria-describedby": {
- "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-details": {
- "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-disabled": {
- "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-dropeffect": {
- "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": ["link", "none", "copy", "execute", "move", "popup"]
- }
- },
- "aria-errormessage": {
- "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-expanded": {
- "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-flowto": {
- "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-grabbed": {
- "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-haspopup": {
- "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
- "type": {
- "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\"",
- "required": false
- },
- "control": "text"
- },
- "aria-hidden": {
- "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-invalid": {
- "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\"",
- "required": false
- },
- "control": "text"
- },
- "aria-keyshortcuts": {
- "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-label": {
- "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-labelledby": {
- "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-level": {
- "description": "Defines the hierarchical level of an element within a structure.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-live": {
- "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["off", "assertive", "polite"]
- }
- },
- "aria-modal": {
- "description": "Indicates whether an element is modal when displayed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiline": {
- "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-multiselectable": {
- "description": "Indicates that the user may select more than one item from the current selectable descendants.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-orientation": {
- "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["horizontal", "vertical"]
- }
- },
- "aria-owns": {
- "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-placeholder": {
- "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-posinset": {
- "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-pressed": {
- "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",
- "type": {
- "name": "boolean | \"true\" | \"false\" | \"mixed\"",
- "required": false
- },
- "control": "text"
- },
- "aria-readonly": {
- "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-relevant": {
- "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "select",
- "options": [
- "text",
- "additions",
- "additions removals",
- "additions text",
- "all",
- "removals",
- "removals additions",
- "removals text",
- "text additions",
- "text removals"
- ]
- }
- },
- "aria-required": {
- "description": "Indicates that user input is required on the element before a form may be submitted.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-roledescription": {
- "description": "Defines a human-readable, author-localized description for the role of an element.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- },
- "aria-rowcount": {
- "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowindex": {
- "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-rowspan": {
- "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-selected": {
- "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",
- "type": {
- "name": "boolean",
- "required": false
- },
- "control": "boolean"
- },
- "aria-setsize": {
- "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-sort": {
- "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": {
- "type": "radio",
- "options": ["none", "ascending", "descending", "other"]
- }
- },
- "aria-valuemax": {
- "description": "Defines the maximum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuemin": {
- "description": "Defines the minimum allowed value for a range widget.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuenow": {
- "description": "Defines the current value for a range widget.\n@see aria-valuetext.",
- "type": {
- "name": "number",
- "required": false
- },
- "control": "number"
- },
- "aria-valuetext": {
- "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",
- "type": {
- "name": "string",
- "required": false
- },
- "control": "text"
- }
-}
diff --git a/packages/react-sdk/src/components/__generated__/text-block.props.ts b/packages/react-sdk/src/components/__generated__/text-block.props.ts
new file mode 100644
index 0000000000..6c67129777
--- /dev/null
+++ b/packages/react-sdk/src/components/__generated__/text-block.props.ts
@@ -0,0 +1,438 @@
+import type { PropMeta } from "@webstudio-is/generate-arg-types";
+
+export const props: Record<string, PropMeta> = {
+ slot: { required: false, control: "text", type: "string" },
+ style: { required: false, control: "text", type: "string" },
+ title: { required: false, control: "text", type: "string" },
+ defaultChecked: { required: false, control: "boolean", type: "boolean" },
+ defaultValue: { required: false, control: "text", type: "string" },
+ suppressContentEditableWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ suppressHydrationWarning: {
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ accessKey: { required: false, control: "text", type: "string" },
+ className: { required: false, control: "text", type: "string" },
+ contentEditable: { required: false, control: "text", type: "string" },
+ contextMenu: { required: false, control: "text", type: "string" },
+ dir: { required: false, control: "text", type: "string" },
+ draggable: { required: false, control: "boolean", type: "boolean" },
+ hidden: { required: false, control: "boolean", type: "boolean" },
+ id: { required: false, control: "text", type: "string" },
+ lang: { required: false, control: "text", type: "string" },
+ placeholder: { required: false, control: "text", type: "string" },
+ spellCheck: { required: false, control: "boolean", type: "boolean" },
+ tabIndex: { required: false, control: "number", type: "number" },
+ translate: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["yes", "no"],
+ },
+ radioGroup: { required: false, control: "text", type: "string" },
+ role: { required: false, control: "text", type: "string" },
+ about: { required: false, control: "text", type: "string" },
+ datatype: { required: false, control: "text", type: "string" },
+ inlist: { required: false, control: "text", type: "string" },
+ prefix: { required: false, control: "text", type: "string" },
+ property: { required: false, control: "text", type: "string" },
+ resource: { required: false, control: "text", type: "string" },
+ typeof: { required: false, control: "text", type: "string" },
+ vocab: { required: false, control: "text", type: "string" },
+ autoCapitalize: { required: false, control: "text", type: "string" },
+ autoCorrect: { required: false, control: "text", type: "string" },
+ autoSave: { required: false, control: "text", type: "string" },
+ color: { required: false, control: "color", type: "string" },
+ itemProp: { required: false, control: "text", type: "string" },
+ itemScope: { required: false, control: "boolean", type: "boolean" },
+ itemType: { required: false, control: "text", type: "string" },
+ itemID: { required: false, control: "text", type: "string" },
+ itemRef: { required: false, control: "text", type: "string" },
+ results: { required: false, control: "number", type: "number" },
+ security: { required: false, control: "text", type: "string" },
+ unselectable: {
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["on", "off"],
+ },
+ inputMode: {
+ description:
+ "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "none",
+ "search",
+ "tel",
+ "url",
+ "email",
+ "numeric",
+ "decimal",
+ ],
+ },
+ is: {
+ description:
+ "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-activedescendant": {
+ description:
+ "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-atomic": {
+ description:
+ "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-autocomplete": {
+ description:
+ "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["list", "none", "inline", "both"],
+ },
+ "aria-busy": {
+ description:
+ "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-checked": {
+ description:
+ 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-colcount": {
+ description:
+ "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colindex": {
+ description:
+ "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-colspan": {
+ description:
+ "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-controls": {
+ description:
+ "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-current": {
+ description:
+ "Indicates the element that represents the current item within a container or set of related elements.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-describedby": {
+ description:
+ "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-details": {
+ description:
+ "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-disabled": {
+ description:
+ "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-dropeffect": {
+ description:
+ "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",
+ required: false,
+ control: "select",
+ type: "string",
+ options: ["link", "none", "copy", "execute", "move", "popup"],
+ },
+ "aria-errormessage": {
+ description:
+ "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-expanded": {
+ description:
+ "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-flowto": {
+ description:
+ "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-grabbed": {
+ description:
+ 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-haspopup": {
+ description:
+ "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-hidden": {
+ description:
+ "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-invalid": {
+ description:
+ "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-keyshortcuts": {
+ description:
+ "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-label": {
+ description:
+ "Defines a string value that labels the current element.\n@see aria-labelledby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-labelledby": {
+ description:
+ "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-level": {
+ description:
+ "Defines the hierarchical level of an element within a structure.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-live": {
+ description:
+ "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["off", "assertive", "polite"],
+ },
+ "aria-modal": {
+ description: "Indicates whether an element is modal when displayed.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiline": {
+ description:
+ "Indicates whether a text box accepts multiple lines of input or only a single line.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-multiselectable": {
+ description:
+ "Indicates that the user may select more than one item from the current selectable descendants.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-orientation": {
+ description:
+ "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["horizontal", "vertical"],
+ },
+ "aria-owns": {
+ description:
+ "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-placeholder": {
+ description:
+ "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-posinset": {
+ description:
+ "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-pressed": {
+ description:
+ 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-readonly": {
+ description:
+ "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-relevant": {
+ description:
+ "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",
+ required: false,
+ control: "select",
+ type: "string",
+ options: [
+ "text",
+ "additions",
+ "additions removals",
+ "additions text",
+ "all",
+ "removals",
+ "removals additions",
+ "removals text",
+ "text additions",
+ "text removals",
+ ],
+ },
+ "aria-required": {
+ description:
+ "Indicates that user input is required on the element before a form may be submitted.",
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-roledescription": {
+ description:
+ "Defines a human-readable, author-localized description for the role of an element.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+ "aria-rowcount": {
+ description:
+ "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowindex": {
+ description:
+ "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-rowspan": {
+ description:
+ "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-selected": {
+ description:
+ 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',
+ required: false,
+ control: "boolean",
+ type: "boolean",
+ },
+ "aria-setsize": {
+ description:
+ "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-sort": {
+ description:
+ "Indicates if items in a table or grid are sorted in ascending or descending order.",
+ required: false,
+ control: "radio",
+ type: "string",
+ options: ["none", "ascending", "descending", "other"],
+ },
+ "aria-valuemax": {
+ description: "Defines the maximum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuemin": {
+ description: "Defines the minimum allowed value for a range widget.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuenow": {
+ description:
+ "Defines the current value for a range widget.\n@see aria-valuetext.",
+ required: false,
+ control: "number",
+ type: "number",
+ },
+ "aria-valuetext": {
+ description:
+ "Defines the human readable text alternative of aria-valuenow for a range widget.",
+ required: false,
+ control: "text",
+ type: "string",
+ },
+};
diff --git a/packages/react-sdk/src/components/blockquote.ws.tsx b/packages/react-sdk/src/components/blockquote.ws.tsx
index 642d0f298e..885956ae8e 100644
--- a/packages/react-sdk/src/components/blockquote.ws.tsx
+++ b/packages/react-sdk/src/components/blockquote.ws.tsx
@@ -1,6 +1,6 @@
import { BlockquoteIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/blockquote.props.json";
+import { props } from "./__generated__/blockquote.props";
const presetStyle = {
margin: {
@@ -49,7 +49,7 @@ export const meta: WsComponentMeta = {
children: ["Blockquote you can edit"],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
initialProps: ["tag"],
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/body.ws.tsx b/packages/react-sdk/src/components/body.ws.tsx
index ed8c664bc9..4f574b9df8 100644
--- a/packages/react-sdk/src/components/body.ws.tsx
+++ b/packages/react-sdk/src/components/body.ws.tsx
@@ -1,6 +1,6 @@
import { BodyIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/body.props.json";
+import { props } from "./__generated__/body.props";
const presetStyle = {
marginTop: {
@@ -59,6 +59,6 @@ export const meta: WsComponentMeta = {
presetStyle,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/bold.ws.tsx b/packages/react-sdk/src/components/bold.ws.tsx
index 5a85d8a99b..f720223e64 100644
--- a/packages/react-sdk/src/components/bold.ws.tsx
+++ b/packages/react-sdk/src/components/bold.ws.tsx
@@ -1,6 +1,6 @@
import { FontBoldIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/bold.props.json";
+import { props } from "./__generated__/bold.props";
export const meta: WsComponentMeta = {
type: "rich-text-child",
@@ -8,6 +8,6 @@ export const meta: WsComponentMeta = {
Icon: FontBoldIcon,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/box.ws.ts b/packages/react-sdk/src/components/box.ws.ts
index c8fcf5adc0..efd62db360 100644
--- a/packages/react-sdk/src/components/box.ws.ts
+++ b/packages/react-sdk/src/components/box.ws.ts
@@ -1,6 +1,6 @@
import { SquareIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/box.props.json";
+import { props } from "./__generated__/box.props";
const presetStyle = {
boxSizing: {
@@ -16,7 +16,7 @@ export const meta: WsComponentMeta = {
presetStyle,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
initialProps: ["tag"],
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/button.ws.tsx b/packages/react-sdk/src/components/button.ws.tsx
index 08c29f2806..fad61bd61d 100644
--- a/packages/react-sdk/src/components/button.ws.tsx
+++ b/packages/react-sdk/src/components/button.ws.tsx
@@ -1,6 +1,6 @@
import { ButtonIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/button.props.json";
+import { props } from "./__generated__/button.props";
export const meta: WsComponentMeta = {
type: "rich-text",
@@ -9,7 +9,7 @@ export const meta: WsComponentMeta = {
children: ["Button text you can edit"],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
initialProps: ["type"],
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/code.ws.tsx b/packages/react-sdk/src/components/code.ws.tsx
index 33f4ac4be0..769909789b 100644
--- a/packages/react-sdk/src/components/code.ws.tsx
+++ b/packages/react-sdk/src/components/code.ws.tsx
@@ -1,7 +1,7 @@
import { CodeIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
import { displayVarNamespace } from "./code";
-import props from "./__generated__/code.props.json";
+import { props } from "./__generated__/code.props";
const presetStyle: WsComponentMeta["presetStyle"] = {
display: {
@@ -40,7 +40,7 @@ export const meta: WsComponentMeta = {
children: ["Code you can edit"],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
initialProps: ["inline", "lang", "meta"],
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/form.ws.tsx b/packages/react-sdk/src/components/form.ws.tsx
index 5c52597351..af5ee1479d 100644
--- a/packages/react-sdk/src/components/form.ws.tsx
+++ b/packages/react-sdk/src/components/form.ws.tsx
@@ -1,6 +1,6 @@
import { FormIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/form.props.json";
+import { props } from "./__generated__/form.props";
const presetStyle = {
minHeight: {
@@ -21,6 +21,6 @@ export const meta: WsComponentMeta = {
presetStyle,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/heading.ws.tsx b/packages/react-sdk/src/components/heading.ws.tsx
index 441c18e8a9..376c2b694c 100644
--- a/packages/react-sdk/src/components/heading.ws.tsx
+++ b/packages/react-sdk/src/components/heading.ws.tsx
@@ -1,6 +1,6 @@
import { HeadingIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/heading.props.json";
+import { props } from "./__generated__/heading.props";
export const meta: WsComponentMeta = {
type: "rich-text",
@@ -9,7 +9,7 @@ export const meta: WsComponentMeta = {
children: ["Heading you can edit"],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
initialProps: ["tag"],
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/image.ws.tsx b/packages/react-sdk/src/components/image.ws.tsx
index ac31314ca6..9c37b3b40a 100644
--- a/packages/react-sdk/src/components/image.ws.tsx
+++ b/packages/react-sdk/src/components/image.ws.tsx
@@ -1,6 +1,6 @@
import { ImageIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/image.props.json";
+import { props } from "./__generated__/image.props";
const presetStyle = {
// Otherwise on new image insert onto canvas it can overfit screen size multiple times
@@ -24,10 +24,15 @@ export const meta: WsComponentMeta = {
presetStyle,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props: {
...props,
- src: { ...props.src, control: "file-image", name: "Source" },
+ src: {
+ type: "string",
+ control: "file-image",
+ label: "Source",
+ required: false,
+ },
},
initialProps: ["src", "width", "height", "alt", "loading"],
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/index.ts b/packages/react-sdk/src/components/index.ts
index 4e9b4e4136..7898ed9dec 100644
--- a/packages/react-sdk/src/components/index.ts
+++ b/packages/react-sdk/src/components/index.ts
@@ -197,7 +197,7 @@ const computeInitialProps = (
? Object.entries(props)
.filter(
([name, value]) =>
- value?.type.required && initialProps.includes(name) === false
+ value?.required && initialProps.includes(name) === false
)
.map(([name]) => name)
: [];
diff --git a/packages/react-sdk/src/components/input.ws.tsx b/packages/react-sdk/src/components/input.ws.tsx
index c0aa1f353d..26864cdbc4 100644
--- a/packages/react-sdk/src/components/input.ws.tsx
+++ b/packages/react-sdk/src/components/input.ws.tsx
@@ -1,6 +1,6 @@
import { InputIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/input.props.json";
+import { props } from "./__generated__/input.props";
export const meta: WsComponentMeta = {
type: "control",
@@ -8,6 +8,6 @@ export const meta: WsComponentMeta = {
Icon: InputIcon,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/italic.ws.tsx b/packages/react-sdk/src/components/italic.ws.tsx
index b0c17171e0..ca2184825a 100644
--- a/packages/react-sdk/src/components/italic.ws.tsx
+++ b/packages/react-sdk/src/components/italic.ws.tsx
@@ -1,6 +1,6 @@
import { FontItalicIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/italic.props.json";
+import { props } from "./__generated__/italic.props";
const presetStyle = {
fontStyle: {
@@ -16,6 +16,6 @@ export const meta: WsComponentMeta = {
presetStyle,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/link.ws.tsx b/packages/react-sdk/src/components/link.ws.tsx
index 97134407a0..ed3ca31a2a 100644
--- a/packages/react-sdk/src/components/link.ws.tsx
+++ b/packages/react-sdk/src/components/link.ws.tsx
@@ -1,6 +1,6 @@
import { Link2Icon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/link.props.json";
+import { props } from "./__generated__/link.props";
const presetStyle = {
minHeight: {
@@ -22,7 +22,7 @@ export const meta: WsComponentMeta = {
children: ["Link text you can edit"],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
initialProps: ["href"],
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/list-item.ws.tsx b/packages/react-sdk/src/components/list-item.ws.tsx
index f0627db3d1..03f70150ea 100644
--- a/packages/react-sdk/src/components/list-item.ws.tsx
+++ b/packages/react-sdk/src/components/list-item.ws.tsx
@@ -1,6 +1,6 @@
import { ListItemIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/list.props.json";
+import { props } from "./__generated__/list-item.props";
export const meta: WsComponentMeta = {
type: "rich-text",
@@ -9,6 +9,6 @@ export const meta: WsComponentMeta = {
children: ["List Item you can edit"],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/list.ws.tsx b/packages/react-sdk/src/components/list.ws.tsx
index 9c1ca889ed..2e19d2159c 100644
--- a/packages/react-sdk/src/components/list.ws.tsx
+++ b/packages/react-sdk/src/components/list.ws.tsx
@@ -1,6 +1,6 @@
import { ListIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/list.props.json";
+import { props } from "./__generated__/list.props";
const presetStyle = {
marginTop: {
@@ -25,7 +25,7 @@ export const meta: WsComponentMeta = {
children: [],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
initialProps: ["ordered", "type", "starts", "reversed"],
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/paragraph.ws.tsx b/packages/react-sdk/src/components/paragraph.ws.tsx
index 36cdd9790a..a384f250b5 100644
--- a/packages/react-sdk/src/components/paragraph.ws.tsx
+++ b/packages/react-sdk/src/components/paragraph.ws.tsx
@@ -1,6 +1,6 @@
import { TextAlignLeftIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/paragraph.props.json";
+import { props } from "./__generated__/paragraph.props";
export const meta: WsComponentMeta = {
type: "rich-text",
@@ -9,6 +9,6 @@ export const meta: WsComponentMeta = {
children: ["Pragraph you can edit"],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/rich-text-link.ws.tsx b/packages/react-sdk/src/components/rich-text-link.ws.tsx
index f39ef97406..a9cb055e01 100644
--- a/packages/react-sdk/src/components/rich-text-link.ws.tsx
+++ b/packages/react-sdk/src/components/rich-text-link.ws.tsx
@@ -1,6 +1,6 @@
import { Link2Icon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/rich-text-link.props.json";
+import { props } from "./__generated__/rich-text-link.props";
export const meta: WsComponentMeta = {
type: "rich-text-child",
@@ -8,6 +8,6 @@ export const meta: WsComponentMeta = {
Icon: Link2Icon,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/separator.ws.tsx b/packages/react-sdk/src/components/separator.ws.tsx
index 39e0797df7..43cbe164a8 100644
--- a/packages/react-sdk/src/components/separator.ws.tsx
+++ b/packages/react-sdk/src/components/separator.ws.tsx
@@ -1,6 +1,6 @@
import { DashIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/blockquote.props.json";
+import { props } from "./__generated__/separator.props";
const presetStyle = {
height: {
@@ -25,7 +25,7 @@ export const meta: WsComponentMeta = {
children: [],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
initialProps: [],
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/span.ws.tsx b/packages/react-sdk/src/components/span.ws.tsx
index b2069f8d06..f40ce7e3aa 100644
--- a/packages/react-sdk/src/components/span.ws.tsx
+++ b/packages/react-sdk/src/components/span.ws.tsx
@@ -1,6 +1,6 @@
import { BrushIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/span.props.json";
+import { props } from "./__generated__/span.props";
export const meta: WsComponentMeta = {
type: "rich-text-child",
@@ -8,6 +8,6 @@ export const meta: WsComponentMeta = {
Icon: BrushIcon,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/subscript.ws.tsx b/packages/react-sdk/src/components/subscript.ws.tsx
index a507b8b227..ca851534b8 100644
--- a/packages/react-sdk/src/components/subscript.ws.tsx
+++ b/packages/react-sdk/src/components/subscript.ws.tsx
@@ -1,6 +1,6 @@
import { SubscriptIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/subscript.props.json";
+import { props } from "./__generated__/subscript.props";
export const meta: WsComponentMeta = {
type: "rich-text-child",
@@ -8,6 +8,6 @@ export const meta: WsComponentMeta = {
Icon: SubscriptIcon,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/superscript.ws.tsx b/packages/react-sdk/src/components/superscript.ws.tsx
index 43c737c1cc..2ab5d4a1de 100644
--- a/packages/react-sdk/src/components/superscript.ws.tsx
+++ b/packages/react-sdk/src/components/superscript.ws.tsx
@@ -1,6 +1,6 @@
import { SuperscriptIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/superscript.props.json";
+import { props } from "./__generated__/superscript.props";
export const meta: WsComponentMeta = {
type: "rich-text-child",
@@ -8,6 +8,6 @@ export const meta: WsComponentMeta = {
Icon: SuperscriptIcon,
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/components/text-block.ws.tsx b/packages/react-sdk/src/components/text-block.ws.tsx
index 49afc33c0d..d279ba145d 100644
--- a/packages/react-sdk/src/components/text-block.ws.tsx
+++ b/packages/react-sdk/src/components/text-block.ws.tsx
@@ -1,6 +1,6 @@
import { TextIcon } from "@webstudio-is/icons";
import type { WsComponentMeta, WsComponentPropsMeta } from "./component-type";
-import props from "./__generated__/text-block.props.json";
+import { props } from "./__generated__/text-block.props";
const presetStyle = {
minHeight: {
@@ -18,6 +18,6 @@ export const meta: WsComponentMeta = {
children: ["Block of text you can edit"],
};
-export const propsMeta = {
+export const propsMeta: WsComponentPropsMeta = {
props,
-} as WsComponentPropsMeta;
+};
diff --git a/packages/react-sdk/src/props.ts b/packages/react-sdk/src/props.ts
index a6ad0e3641..00342f74ed 100644
--- a/packages/react-sdk/src/props.ts
+++ b/packages/react-sdk/src/props.ts
@@ -28,7 +28,7 @@ export const useInstanceProps = (instanceId: Instance["id"]) => {
const { propsByInstanceIdStore } = useContext(ReactSdkContext);
const propsByInstanceId = useStore(propsByInstanceIdStore);
const instanceProps = propsByInstanceId.get(instanceId);
- const instancePropsObject: Record<string, number | string | boolean> = {};
+ const instancePropsObject: Record<Prop["name"], Prop["value"]> = {};
if (instanceProps) {
for (const prop of instanceProps) {
if (prop.type !== "asset") {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index cc01e2c2e7..805010583f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -993,6 +993,9 @@ importers:
packages/image:
dependencies:
+ '@webstudio-is/generate-arg-types':
+ specifier: workspace:^
+ version: link:../generate-arg-types
react:
specifier: ^17.0.2
version: 17.0.2
@@ -1018,9 +1021,6 @@ importers:
'@types/react':
specifier: 17.0.47
version: 17.0.47
- '@webstudio-is/generate-arg-types':
- specifier: workspace:^
- version: link:../generate-arg-types
'@webstudio-is/jest-config':
specifier: workspace:^
version: link:../jest-config
@@ -5202,7 +5202,7 @@ packages:
react-refresh: 0.11.0
schema-utils: 3.1.1
source-map: 0.7.4
- webpack: 5.75.0([email protected])
+ webpack: 5.75.0
dev: true
@@ -7568,7 +7568,7 @@ packages:
react: 17.0.2
react-dom: 17.0.2([email protected])
typescript: 4.9.5
- webpack: 5.75.0([email protected])
+ webpack: 5.75.0
transitivePeerDependencies:
- '@storybook/mdx2-csf'
- bluebird
@@ -7851,7 +7851,7 @@ packages:
react-docgen-typescript: 2.2.2([email protected])
tslib: 2.5.0
typescript: 4.9.5
- webpack: 5.75.0([email protected])
+ webpack: 5.75.0
transitivePeerDependencies:
- supports-color
dev: true