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.

refactor: move prop meta schema to sdk (#4718)

Bogdan Chadkin3de8c87a0de6
diff --git a/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx b/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx
index 8e040e1eee..4aa40ac500 100644
--- a/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx
+++ b/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx
@@ -1,6 +1,5 @@
import { useState } from "react";
-import type { Instance, Prop, Asset, Page } from "@webstudio-is/sdk";
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta, Instance, Prop, Asset, Page } from "@webstudio-is/sdk";
import { textVariants } from "@webstudio-is/design-system";
import { PropsSection } from "./props-section";
import { usePropsLogic } from "./use-props-logic";
diff --git a/apps/builder/app/builder/features/settings-panel/props-section/use-props-logic.ts b/apps/builder/app/builder/features/settings-panel/props-section/use-props-logic.ts
index f11fc11894..edc6e1e0c2 100644
--- a/apps/builder/app/builder/features/settings-panel/props-section/use-props-logic.ts
+++ b/apps/builder/app/builder/features/settings-panel/props-section/use-props-logic.ts
@@ -1,7 +1,6 @@
import { nanoid } from "nanoid";
-import type { Instance, Prop } from "@webstudio-is/sdk";
+import type { PropMeta, Instance, Prop } from "@webstudio-is/sdk";
import {
- type PropMeta,
showAttribute,
textContentAttribute,
collectionComponent,
diff --git a/apps/builder/app/builder/features/settings-panel/shared.tsx b/apps/builder/app/builder/features/settings-panel/shared.tsx
index 85e7ef31a3..065a3583fb 100644
--- a/apps/builder/app/builder/features/settings-panel/shared.tsx
+++ b/apps/builder/app/builder/features/settings-panel/shared.tsx
@@ -11,12 +11,11 @@ import {
type ComponentProps,
} from "react";
import equal from "fast-deep-equal";
-import type { PropMeta } from "@webstudio-is/react-sdk";
import {
decodeDataSourceVariable,
encodeDataSourceVariable,
} from "@webstudio-is/sdk";
-import type { Prop, Asset } from "@webstudio-is/sdk";
+import type { PropMeta, Prop, Asset } from "@webstudio-is/sdk";
import { InfoCircleIcon, MinusIcon } from "@webstudio-is/icons";
import {
SmallIconButton,
diff --git a/packages/generate-arg-types/package.json b/packages/generate-arg-types/package.json
index 695a1a00bd..5ae40f3a12 100644
--- a/packages/generate-arg-types/package.json
+++ b/packages/generate-arg-types/package.json
@@ -10,7 +10,7 @@
},
"dependencies": {
"@webstudio-is/html-data": "workspace:*",
- "@webstudio-is/react-sdk": "workspace:*",
+ "@webstudio-is/sdk": "workspace:*",
"fast-glob": "^3.3.2",
"react-docgen-typescript": "^2.2.2",
"typescript": "5.7.2",
diff --git a/packages/generate-arg-types/src/arg-types.ts b/packages/generate-arg-types/src/arg-types.ts
index 599fc2e84a..2e94bff546 100644
--- a/packages/generate-arg-types/src/arg-types.ts
+++ b/packages/generate-arg-types/src/arg-types.ts
@@ -1,5 +1,5 @@
import type { PropItem } from "react-docgen-typescript";
-import { PropMeta } from "@webstudio-is/react-sdk";
+import { PropMeta } from "@webstudio-is/sdk";
export type FilterPredicate = (prop: PropItem) => boolean;
diff --git a/packages/generate-arg-types/src/cli.ts b/packages/generate-arg-types/src/cli.ts
index 7afaedbc91..b68e4f90a6 100755
--- a/packages/generate-arg-types/src/cli.ts
+++ b/packages/generate-arg-types/src/cli.ts
@@ -101,7 +101,7 @@ type CustomDescriptionsType = {
continue;
}
- let fileContent = `import type { PropMeta } from "@webstudio-is/react-sdk";\n`;
+ let fileContent = `import type { PropMeta } from "@webstudio-is/sdk";\n`;
if (componentDocs.length === 1) {
const argTypes = propsToArgTypes(
diff --git a/packages/react-sdk/src/components/component-meta.ts b/packages/react-sdk/src/components/component-meta.ts
index 247dbb8fa7..00b4ed86df 100644
--- a/packages/react-sdk/src/components/component-meta.ts
+++ b/packages/react-sdk/src/components/component-meta.ts
@@ -1,7 +1,6 @@
import { z } from "zod";
import type { HtmlTags } from "html-tags";
-import { Matchers } from "@webstudio-is/sdk";
-import { PropMeta } from "../prop-meta";
+import { Matchers, PropMeta } from "@webstudio-is/sdk";
import { EmbedTemplateStyleDecl, WsEmbedTemplate } from "../embed-template";
export type PresetStyle<Tag extends HtmlTags = HtmlTags> = Partial<
diff --git a/packages/react-sdk/src/index.ts b/packages/react-sdk/src/index.ts
index 11ed1987c3..f5c8bea1d9 100644
--- a/packages/react-sdk/src/index.ts
+++ b/packages/react-sdk/src/index.ts
@@ -2,7 +2,6 @@ export * from "./remix";
export * from "./css/index";
export * from "./core-components";
export * from "./components/components-utils";
-export { PropMeta } from "./prop-meta";
export {
type WsComponentPropsMeta,
type ComponentState,
diff --git a/packages/sdk-components-react-radix/src/__generated__/accordion.props.ts b/packages/sdk-components-react-radix/src/__generated__/accordion.props.ts
index c861b803c7..60a603f7e3 100644
--- a/packages/sdk-components-react-radix/src/__generated__/accordion.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/accordion.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsAccordion: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react-radix/src/__generated__/checkbox.props.ts b/packages/sdk-components-react-radix/src/__generated__/checkbox.props.ts
index 0bd17e83e4..28656bd38a 100644
--- a/packages/sdk-components-react-radix/src/__generated__/checkbox.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/checkbox.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsCheckbox: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react-radix/src/__generated__/collapsible.props.ts b/packages/sdk-components-react-radix/src/__generated__/collapsible.props.ts
index 2574b4e200..fa7e4c5281 100644
--- a/packages/sdk-components-react-radix/src/__generated__/collapsible.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/collapsible.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsCollapsible: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react-radix/src/__generated__/dialog.props.ts b/packages/sdk-components-react-radix/src/__generated__/dialog.props.ts
index 09995c2d76..7411d35d61 100644
--- a/packages/sdk-components-react-radix/src/__generated__/dialog.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/dialog.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsDialog: Record<string, PropMeta> = {
open: {
diff --git a/packages/sdk-components-react-radix/src/__generated__/label.props.ts b/packages/sdk-components-react-radix/src/__generated__/label.props.ts
index 64a94be2bd..00aec632b2 100644
--- a/packages/sdk-components-react-radix/src/__generated__/label.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/label.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react-radix/src/__generated__/navigation-menu.props.ts b/packages/sdk-components-react-radix/src/__generated__/navigation-menu.props.ts
index 7ed2664948..28375cb833 100644
--- a/packages/sdk-components-react-radix/src/__generated__/navigation-menu.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/navigation-menu.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsNavigationMenu: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react-radix/src/__generated__/popover.props.ts b/packages/sdk-components-react-radix/src/__generated__/popover.props.ts
index 152cd82b49..018fd218c4 100644
--- a/packages/sdk-components-react-radix/src/__generated__/popover.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/popover.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsPopover: Record<string, PropMeta> = {
open: {
diff --git a/packages/sdk-components-react-radix/src/__generated__/radio-group.props.ts b/packages/sdk-components-react-radix/src/__generated__/radio-group.props.ts
index 37885fce64..29185d5ed3 100644
--- a/packages/sdk-components-react-radix/src/__generated__/radio-group.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/radio-group.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsRadioGroup: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react-radix/src/__generated__/select.props.ts b/packages/sdk-components-react-radix/src/__generated__/select.props.ts
index 57a12b9e0b..d04541aee1 100644
--- a/packages/sdk-components-react-radix/src/__generated__/select.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/select.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsSelect: Record<string, PropMeta> = {
autoComplete: {
diff --git a/packages/sdk-components-react-radix/src/__generated__/sheet.props.ts b/packages/sdk-components-react-radix/src/__generated__/sheet.props.ts
deleted file mode 100644
index ee5ae70de2..0000000000
--- a/packages/sdk-components-react-radix/src/__generated__/sheet.props.ts
+++ /dev/null
@@ -1,2901 +0,0 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
-
-export const propsSheet: Record<string, PropMeta> = {
- open: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Show or hide the content of this component on the canvas. This will not affect the initial state of the component.",
- },
-};
-export const propsSheetTrigger: Record<string, PropMeta> = {};
-export const propsSheetOverlay: Record<string, PropMeta> = {
- about: { required: false, control: "text", type: "string" },
- accessKey: {
- required: false,
- control: "text",
- type: "string",
- description: "Keyboard shortcut to activate or add focus to the element.",
- },
- "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: "select",
- type: "string",
- options: ["list", "none", "inline", "both"],
- },
- "aria-braillelabel": {
- description:
- "Defines a string value that labels the current element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-brailleroledescription": {
- description:
- "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-busy": { required: false, control: "boolean", type: "boolean" },
- "aria-checked": {
- description:
- 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colcount": {
- description:
- "Defines the total number of columns in a table, grid, or treegrid.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-colindextext": {
- description: "Defines a human readable text alternative of aria-colindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colspan": {
- description:
- "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-controls": {
- description:
- "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
- 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.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-description": {
- description:
- "Defines a string value that describes or annotates the current element.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-details": {
- description:
- "Identifies the element that provides a detailed, extended description for the object.",
- 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.",
- 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.",
- 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.",
- 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.',
- 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.",
- required: false,
- control: "boolean",
- type: "boolean",
- },
- "aria-invalid": {
- description:
- "Indicates the entered value does not conform to the format expected by the application.",
- 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:
- "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-labelledby": {
- description:
- "Identifies the element (or elements) that labels the current element.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-pressed": {
- description: 'Indicates the current "pressed" state of toggle buttons.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-readonly": {
- description:
- "Indicates that the element is not editable, but is otherwise operable.",
- 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.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-rowindextext": {
- description: "Defines a human readable text alternative of aria-rowindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-rowspan": {
- description:
- "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-selected": {
- description: 'Indicates the current "selected" state of various widgets.',
- 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.",
- 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: "select",
- 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.",
- 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",
- },
- autoCapitalize: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Sets whether input is automatically capitalized when entered by user.",
- },
- autoCorrect: { required: false, control: "text", type: "string" },
- autoFocus: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
- },
- autoSave: { required: false, control: "text", type: "string" },
- className: { required: false, control: "text", type: "string" },
- color: {
- required: false,
- control: "color",
- type: "string",
- description:
- "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.",
- },
- content: {
- required: false,
- control: "text",
- type: "string",
- description:
- "A value associated with http-equiv orname depending on the context.",
- },
- contextMenu: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the ID of a menu element which willserve as the element's context menu.",
- },
- datatype: { required: false, control: "text", type: "string" },
- defaultValue: { required: false, control: "text", type: "string" },
- dir: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
- },
- draggable: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Defines whether the element can be dragged.",
- },
- hidden: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
- },
- id: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Often used with CSS to style a specific element. The value of this attribute must be unique.",
- },
- inputMode: {
- description:
- "Hints at the type of data that might be entered by the user while editing the element or its contents",
- required: false,
- control: "select",
- type: "string",
- options: [
- "search",
- "text",
- "none",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal",
- ],
- },
- is: {
- description:
- "Specify that a standard HTML element should behave like a defined custom built-in element",
- required: false,
- control: "text",
- type: "string",
- },
- itemID: { required: false, control: "text", type: "string" },
- itemProp: { required: false, control: "text", type: "string" },
- itemRef: { required: false, control: "text", type: "string" },
- itemScope: { required: false, control: "boolean", type: "boolean" },
- itemType: { required: false, control: "text", type: "string" },
- lang: {
- required: false,
- control: "text",
- type: "string",
- description: "Defines the language used in the element.",
- },
- nonce: { required: false, control: "text", type: "string" },
- prefix: { required: false, control: "text", type: "string" },
- property: { required: false, control: "text", type: "string" },
- radioGroup: { required: false, control: "text", type: "string" },
- rel: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Specifies the relationship of the target object to the link object.",
- },
- resource: { required: false, control: "text", type: "string" },
- results: { required: false, control: "number", type: "number" },
- rev: { required: false, control: "text", type: "string" },
- role: {
- required: false,
- control: "text",
- type: "string",
- defaultValue: "navigation",
- description:
- "Defines an explicit role for an element for use by assistive technologies.",
- },
- security: { required: false, control: "text", type: "string" },
- slot: {
- required: false,
- control: "text",
- type: "string",
- description: "Assigns a slot in a shadow DOM shadow tree to an element.",
- },
- spellCheck: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Indicates whether spell checking is allowed for the element.",
- },
- suppressContentEditableWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- suppressHydrationWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- tabIndex: {
- required: false,
- control: "number",
- type: "number",
- description:
- "Overrides the browser's default tab order and follows the one specified instead.",
- },
- title: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Text to be displayed in a tooltip when hovering over the element.",
- },
- translate: {
- required: false,
- control: "radio",
- type: "string",
- options: ["yes", "no"],
- description:
- "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.",
- },
- typeof: { required: false, control: "text", type: "string" },
- unselectable: {
- required: false,
- control: "radio",
- type: "string",
- options: ["on", "off"],
- },
- vocab: { required: false, control: "text", type: "string" },
-};
-export const propsSheetClose: Record<string, PropMeta> = {
- about: { required: false, control: "text", type: "string" },
- accessKey: {
- required: false,
- control: "text",
- type: "string",
- description: "Keyboard shortcut to activate or add focus to the element.",
- },
- "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: "select",
- type: "string",
- options: ["list", "none", "inline", "both"],
- },
- "aria-braillelabel": {
- description:
- "Defines a string value that labels the current element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-brailleroledescription": {
- description:
- "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-busy": { required: false, control: "boolean", type: "boolean" },
- "aria-checked": {
- description:
- 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colcount": {
- description:
- "Defines the total number of columns in a table, grid, or treegrid.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-colindextext": {
- description: "Defines a human readable text alternative of aria-colindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colspan": {
- description:
- "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-controls": {
- description:
- "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
- 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.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-description": {
- description:
- "Defines a string value that describes or annotates the current element.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-details": {
- description:
- "Identifies the element that provides a detailed, extended description for the object.",
- 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.",
- 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.",
- 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.",
- 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.',
- 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.",
- required: false,
- control: "boolean",
- type: "boolean",
- },
- "aria-invalid": {
- description:
- "Indicates the entered value does not conform to the format expected by the application.",
- 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:
- "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-labelledby": {
- description:
- "Identifies the element (or elements) that labels the current element.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-pressed": {
- description: 'Indicates the current "pressed" state of toggle buttons.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-readonly": {
- description:
- "Indicates that the element is not editable, but is otherwise operable.",
- 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.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-rowindextext": {
- description: "Defines a human readable text alternative of aria-rowindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-rowspan": {
- description:
- "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-selected": {
- description: 'Indicates the current "selected" state of various widgets.',
- 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.",
- 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: "select",
- 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.",
- 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",
- },
- autoCapitalize: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Sets whether input is automatically capitalized when entered by user.",
- },
- autoCorrect: { required: false, control: "text", type: "string" },
- autoFocus: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
- },
- autoSave: { required: false, control: "text", type: "string" },
- className: { required: false, control: "text", type: "string" },
- color: {
- required: false,
- control: "color",
- type: "string",
- description:
- "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.",
- },
- content: {
- required: false,
- control: "text",
- type: "string",
- description:
- "A value associated with http-equiv orname depending on the context.",
- },
- contextMenu: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the ID of a menu element which willserve as the element's context menu.",
- },
- datatype: { required: false, control: "text", type: "string" },
- defaultValue: { required: false, control: "text", type: "string" },
- dir: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
- },
- disabled: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Indicates whether the user can interact with the element.",
- },
- draggable: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Defines whether the element can be dragged.",
- },
- form: {
- required: false,
- control: "text",
- type: "string",
- description: "Indicates the form that is the owner of the element.",
- },
- formAction: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Indicates the action of the element, overriding the action defined inthe form.",
- },
- formEncType: {
- required: false,
- control: "text",
- type: "string",
- description:
- 'If the button/input is a submit button (e.g. type="submit"), this attribute sets the encoding type to use during form submission. If this attribute is specified, it overrides theenctype attribute of the button\'s form owner.',
- },
- formMethod: {
- required: false,
- control: "text",
- type: "string",
- description:
- 'If the button/input is a submit button (e.g. type="submit"), this attribute sets the submission method to use during form submission (GET, POST, etc.). If this attribute is specified, it overrides the method attribute of the button\'s form owner.',
- },
- formNoValidate: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- 'If the button/input is a submit button (e.g. type="submit"), this boolean attribute specifies that the form is not to be validatedwhen it is submitted. If this attribute is specified, it overrides thenovalidate attribute of the button\'s form owner.',
- },
- formTarget: {
- required: false,
- control: "text",
- type: "string",
- description:
- 'If the button/input is a submit button (e.g. type="submit"), this attribute specifies the browsing context (for example, tab, window, or inline frame) in which to display the response that is received aftersubmitting the form. If this attribute is specified, it overrides thetarget attribute of the button\'s form owner.',
- },
- hidden: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
- },
- id: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Often used with CSS to style a specific element. The value of this attribute must be unique.",
- },
- inputMode: {
- description:
- "Hints at the type of data that might be entered by the user while editing the element or its contents",
- required: false,
- control: "select",
- type: "string",
- options: [
- "search",
- "text",
- "none",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal",
- ],
- },
- is: {
- description:
- "Specify that a standard HTML element should behave like a defined custom built-in element",
- required: false,
- control: "text",
- type: "string",
- },
- itemID: { required: false, control: "text", type: "string" },
- itemProp: { required: false, control: "text", type: "string" },
- itemRef: { required: false, control: "text", type: "string" },
- itemScope: { required: false, control: "boolean", type: "boolean" },
- itemType: { required: false, control: "text", type: "string" },
- lang: {
- required: false,
- control: "text",
- type: "string",
- description: "Defines the language used in the element.",
- },
- name: {
- required: false,
- control: "text",
- type: "string",
- description:
- "This name is important when submitting form data to the server, as it identifies the data associated with the input. When multiple inputs share the same name attribute, they are treated as part of the same group (e.g., radio buttons or checkboxes).",
- },
- nonce: { required: false, control: "text", type: "string" },
- prefix: { required: false, control: "text", type: "string" },
- property: { required: false, control: "text", type: "string" },
- radioGroup: { required: false, control: "text", type: "string" },
- rel: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Specifies the relationship of the target object to the link object.",
- },
- resource: { required: false, control: "text", type: "string" },
- results: { required: false, control: "number", type: "number" },
- rev: { required: false, control: "text", type: "string" },
- role: {
- required: false,
- control: "text",
- type: "string",
- defaultValue: "navigation",
- description:
- "Defines an explicit role for an element for use by assistive technologies.",
- },
- security: { required: false, control: "text", type: "string" },
- slot: {
- required: false,
- control: "text",
- type: "string",
- description: "Assigns a slot in a shadow DOM shadow tree to an element.",
- },
- spellCheck: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Indicates whether spell checking is allowed for the element.",
- },
- suppressContentEditableWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- suppressHydrationWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- tabIndex: {
- required: false,
- control: "number",
- type: "number",
- description:
- "Overrides the browser's default tab order and follows the one specified instead.",
- },
- title: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Text to be displayed in a tooltip when hovering over the element.",
- },
- translate: {
- required: false,
- control: "radio",
- type: "string",
- options: ["yes", "no"],
- description:
- "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.",
- },
- type: {
- required: false,
- control: "radio",
- type: "string",
- options: ["button", "submit", "reset"],
- description: "Defines the type of the element.",
- },
- typeof: { required: false, control: "text", type: "string" },
- unselectable: {
- required: false,
- control: "radio",
- type: "string",
- options: ["on", "off"],
- },
- value: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines a default value which will be displayed in the element on pageload.",
- },
- vocab: { required: false, control: "text", type: "string" },
-};
-export const propsSheetTitle: Record<string, PropMeta> = {
- about: { required: false, control: "text", type: "string" },
- accessKey: {
- required: false,
- control: "text",
- type: "string",
- description: "Keyboard shortcut to activate or add focus to the element.",
- },
- "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: "select",
- type: "string",
- options: ["list", "none", "inline", "both"],
- },
- "aria-braillelabel": {
- description:
- "Defines a string value that labels the current element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-brailleroledescription": {
- description:
- "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-busy": { required: false, control: "boolean", type: "boolean" },
- "aria-checked": {
- description:
- 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colcount": {
- description:
- "Defines the total number of columns in a table, grid, or treegrid.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-colindextext": {
- description: "Defines a human readable text alternative of aria-colindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colspan": {
- description:
- "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-controls": {
- description:
- "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
- 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.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-description": {
- description:
- "Defines a string value that describes or annotates the current element.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-details": {
- description:
- "Identifies the element that provides a detailed, extended description for the object.",
- 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.",
- 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.",
- 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.",
- 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.',
- 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.",
- required: false,
- control: "boolean",
- type: "boolean",
- },
- "aria-invalid": {
- description:
- "Indicates the entered value does not conform to the format expected by the application.",
- 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:
- "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-labelledby": {
- description:
- "Identifies the element (or elements) that labels the current element.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-pressed": {
- description: 'Indicates the current "pressed" state of toggle buttons.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-readonly": {
- description:
- "Indicates that the element is not editable, but is otherwise operable.",
- 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.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-rowindextext": {
- description: "Defines a human readable text alternative of aria-rowindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-rowspan": {
- description:
- "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-selected": {
- description: 'Indicates the current "selected" state of various widgets.',
- 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.",
- 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: "select",
- 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.",
- 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",
- },
- autoCapitalize: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Sets whether input is automatically capitalized when entered by user.",
- },
- autoCorrect: { required: false, control: "text", type: "string" },
- autoFocus: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
- },
- autoSave: { required: false, control: "text", type: "string" },
- className: { required: false, control: "text", type: "string" },
- color: {
- required: false,
- control: "color",
- type: "string",
- description:
- "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.",
- },
- content: {
- required: false,
- control: "text",
- type: "string",
- description:
- "A value associated with http-equiv orname depending on the context.",
- },
- contextMenu: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the ID of a menu element which willserve as the element's context menu.",
- },
- datatype: { required: false, control: "text", type: "string" },
- defaultValue: { required: false, control: "text", type: "string" },
- dir: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
- },
- draggable: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Defines whether the element can be dragged.",
- },
- hidden: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
- },
- id: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Often used with CSS to style a specific element. The value of this attribute must be unique.",
- },
- inputMode: {
- description:
- "Hints at the type of data that might be entered by the user while editing the element or its contents",
- required: false,
- control: "select",
- type: "string",
- options: [
- "search",
- "text",
- "none",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal",
- ],
- },
- is: {
- description:
- "Specify that a standard HTML element should behave like a defined custom built-in element",
- required: false,
- control: "text",
- type: "string",
- },
- itemID: { required: false, control: "text", type: "string" },
- itemProp: { required: false, control: "text", type: "string" },
- itemRef: { required: false, control: "text", type: "string" },
- itemScope: { required: false, control: "boolean", type: "boolean" },
- itemType: { required: false, control: "text", type: "string" },
- lang: {
- required: false,
- control: "text",
- type: "string",
- description: "Defines the language used in the element.",
- },
- nonce: { required: false, control: "text", type: "string" },
- prefix: { required: false, control: "text", type: "string" },
- property: { required: false, control: "text", type: "string" },
- radioGroup: { required: false, control: "text", type: "string" },
- rel: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Specifies the relationship of the target object to the link object.",
- },
- resource: { required: false, control: "text", type: "string" },
- results: { required: false, control: "number", type: "number" },
- rev: { required: false, control: "text", type: "string" },
- role: {
- required: false,
- control: "text",
- type: "string",
- defaultValue: "navigation",
- description:
- "Defines an explicit role for an element for use by assistive technologies.",
- },
- security: { required: false, control: "text", type: "string" },
- slot: {
- required: false,
- control: "text",
- type: "string",
- description: "Assigns a slot in a shadow DOM shadow tree to an element.",
- },
- spellCheck: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Indicates whether spell checking is allowed for the element.",
- },
- suppressContentEditableWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- suppressHydrationWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- tabIndex: {
- required: false,
- control: "number",
- type: "number",
- description:
- "Overrides the browser's default tab order and follows the one specified instead.",
- },
- tag: {
- required: false,
- control: "select",
- type: "string",
- defaultValue: "nav",
- options: ["h2", "h3", "h1", "h4", "h5", "h6"],
- },
- title: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Text to be displayed in a tooltip when hovering over the element.",
- },
- translate: {
- required: false,
- control: "radio",
- type: "string",
- options: ["yes", "no"],
- description:
- "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.",
- },
- typeof: { required: false, control: "text", type: "string" },
- unselectable: {
- required: false,
- control: "radio",
- type: "string",
- options: ["on", "off"],
- },
- vocab: { required: false, control: "text", type: "string" },
-};
-export const propsSheetDescription: Record<string, PropMeta> = {
- about: { required: false, control: "text", type: "string" },
- accessKey: {
- required: false,
- control: "text",
- type: "string",
- description: "Keyboard shortcut to activate or add focus to the element.",
- },
- "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: "select",
- type: "string",
- options: ["list", "none", "inline", "both"],
- },
- "aria-braillelabel": {
- description:
- "Defines a string value that labels the current element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-brailleroledescription": {
- description:
- "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-busy": { required: false, control: "boolean", type: "boolean" },
- "aria-checked": {
- description:
- 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colcount": {
- description:
- "Defines the total number of columns in a table, grid, or treegrid.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-colindextext": {
- description: "Defines a human readable text alternative of aria-colindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colspan": {
- description:
- "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-controls": {
- description:
- "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
- 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.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-description": {
- description:
- "Defines a string value that describes or annotates the current element.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-details": {
- description:
- "Identifies the element that provides a detailed, extended description for the object.",
- 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.",
- 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.",
- 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.",
- 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.',
- 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.",
- required: false,
- control: "boolean",
- type: "boolean",
- },
- "aria-invalid": {
- description:
- "Indicates the entered value does not conform to the format expected by the application.",
- 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:
- "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-labelledby": {
- description:
- "Identifies the element (or elements) that labels the current element.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-pressed": {
- description: 'Indicates the current "pressed" state of toggle buttons.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-readonly": {
- description:
- "Indicates that the element is not editable, but is otherwise operable.",
- 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.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-rowindextext": {
- description: "Defines a human readable text alternative of aria-rowindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-rowspan": {
- description:
- "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-selected": {
- description: 'Indicates the current "selected" state of various widgets.',
- 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.",
- 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: "select",
- 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.",
- 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",
- },
- autoCapitalize: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Sets whether input is automatically capitalized when entered by user.",
- },
- autoCorrect: { required: false, control: "text", type: "string" },
- autoFocus: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
- },
- autoSave: { required: false, control: "text", type: "string" },
- className: { required: false, control: "text", type: "string" },
- color: {
- required: false,
- control: "color",
- type: "string",
- description:
- "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.",
- },
- content: {
- required: false,
- control: "text",
- type: "string",
- description:
- "A value associated with http-equiv orname depending on the context.",
- },
- contextMenu: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the ID of a menu element which willserve as the element's context menu.",
- },
- datatype: { required: false, control: "text", type: "string" },
- defaultValue: { required: false, control: "text", type: "string" },
- dir: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
- },
- draggable: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Defines whether the element can be dragged.",
- },
- hidden: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
- },
- id: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Often used with CSS to style a specific element. The value of this attribute must be unique.",
- },
- inputMode: {
- description:
- "Hints at the type of data that might be entered by the user while editing the element or its contents",
- required: false,
- control: "select",
- type: "string",
- options: [
- "search",
- "text",
- "none",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal",
- ],
- },
- is: {
- description:
- "Specify that a standard HTML element should behave like a defined custom built-in element",
- required: false,
- control: "text",
- type: "string",
- },
- itemID: { required: false, control: "text", type: "string" },
- itemProp: { required: false, control: "text", type: "string" },
- itemRef: { required: false, control: "text", type: "string" },
- itemScope: { required: false, control: "boolean", type: "boolean" },
- itemType: { required: false, control: "text", type: "string" },
- lang: {
- required: false,
- control: "text",
- type: "string",
- description: "Defines the language used in the element.",
- },
- nonce: { required: false, control: "text", type: "string" },
- prefix: { required: false, control: "text", type: "string" },
- property: { required: false, control: "text", type: "string" },
- radioGroup: { required: false, control: "text", type: "string" },
- rel: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Specifies the relationship of the target object to the link object.",
- },
- resource: { required: false, control: "text", type: "string" },
- results: { required: false, control: "number", type: "number" },
- rev: { required: false, control: "text", type: "string" },
- role: {
- required: false,
- control: "text",
- type: "string",
- defaultValue: "navigation",
- description:
- "Defines an explicit role for an element for use by assistive technologies.",
- },
- security: { required: false, control: "text", type: "string" },
- slot: {
- required: false,
- control: "text",
- type: "string",
- description: "Assigns a slot in a shadow DOM shadow tree to an element.",
- },
- spellCheck: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Indicates whether spell checking is allowed for the element.",
- },
- suppressContentEditableWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- suppressHydrationWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- tabIndex: {
- required: false,
- control: "number",
- type: "number",
- description:
- "Overrides the browser's default tab order and follows the one specified instead.",
- },
- title: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Text to be displayed in a tooltip when hovering over the element.",
- },
- translate: {
- required: false,
- control: "radio",
- type: "string",
- options: ["yes", "no"],
- description:
- "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.",
- },
- typeof: { required: false, control: "text", type: "string" },
- unselectable: {
- required: false,
- control: "radio",
- type: "string",
- options: ["on", "off"],
- },
- vocab: { required: false, control: "text", type: "string" },
-};
-export const propsSheetContent: Record<string, PropMeta> = {
- about: { required: false, control: "text", type: "string" },
- accessKey: {
- required: false,
- control: "text",
- type: "string",
- description: "Keyboard shortcut to activate or add focus to the element.",
- },
- "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: "select",
- type: "string",
- options: ["list", "none", "inline", "both"],
- },
- "aria-braillelabel": {
- description:
- "Defines a string value that labels the current element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-brailleroledescription": {
- description:
- "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-busy": { required: false, control: "boolean", type: "boolean" },
- "aria-checked": {
- description:
- 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colcount": {
- description:
- "Defines the total number of columns in a table, grid, or treegrid.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-colindextext": {
- description: "Defines a human readable text alternative of aria-colindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-colspan": {
- description:
- "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-controls": {
- description:
- "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
- 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.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-description": {
- description:
- "Defines a string value that describes or annotates the current element.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-details": {
- description:
- "Identifies the element that provides a detailed, extended description for the object.",
- 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.",
- 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.",
- 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.",
- 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.',
- 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.",
- required: false,
- control: "boolean",
- type: "boolean",
- },
- "aria-invalid": {
- description:
- "Indicates the entered value does not conform to the format expected by the application.",
- 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:
- "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-labelledby": {
- description:
- "Identifies the element (or elements) that labels the current element.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-pressed": {
- description: 'Indicates the current "pressed" state of toggle buttons.',
- required: false,
- control: "text",
- type: "string",
- },
- "aria-readonly": {
- description:
- "Indicates that the element is not editable, but is otherwise operable.",
- 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.",
- 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.",
- 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.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-rowindextext": {
- description: "Defines a human readable text alternative of aria-rowindex.",
- required: false,
- control: "text",
- type: "string",
- },
- "aria-rowspan": {
- description:
- "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
- required: false,
- control: "number",
- type: "number",
- },
- "aria-selected": {
- description: 'Indicates the current "selected" state of various widgets.',
- 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.",
- 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: "select",
- 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.",
- 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",
- },
- autoCapitalize: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Sets whether input is automatically capitalized when entered by user.",
- },
- autoCorrect: { required: false, control: "text", type: "string" },
- autoFocus: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Indicates that an element should be focused on page load, or when its parent dialog is displayed.",
- },
- autoSave: { required: false, control: "text", type: "string" },
- className: { required: false, control: "text", type: "string" },
- color: {
- required: false,
- control: "color",
- type: "string",
- description:
- "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.",
- },
- content: {
- required: false,
- control: "text",
- type: "string",
- description:
- "A value associated with http-equiv orname depending on the context.",
- },
- contextMenu: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the ID of a menu element which willserve as the element's context menu.",
- },
- datatype: { required: false, control: "text", type: "string" },
- defaultValue: { required: false, control: "text", type: "string" },
- dir: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",
- },
- draggable: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Defines whether the element can be dragged.",
- },
- hidden: {
- required: false,
- control: "boolean",
- type: "boolean",
- description:
- "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",
- },
- id: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Often used with CSS to style a specific element. The value of this attribute must be unique.",
- },
- inputMode: {
- description:
- "Hints at the type of data that might be entered by the user while editing the element or its contents",
- required: false,
- control: "select",
- type: "string",
- options: [
- "search",
- "text",
- "none",
- "tel",
- "url",
- "email",
- "numeric",
- "decimal",
- ],
- },
- is: {
- description:
- "Specify that a standard HTML element should behave like a defined custom built-in element",
- required: false,
- control: "text",
- type: "string",
- },
- itemID: { required: false, control: "text", type: "string" },
- itemProp: { required: false, control: "text", type: "string" },
- itemRef: { required: false, control: "text", type: "string" },
- itemScope: { required: false, control: "boolean", type: "boolean" },
- itemType: { required: false, control: "text", type: "string" },
- lang: {
- required: false,
- control: "text",
- type: "string",
- description: "Defines the language used in the element.",
- },
- nonce: { required: false, control: "text", type: "string" },
- prefix: { required: false, control: "text", type: "string" },
- property: { required: false, control: "text", type: "string" },
- radioGroup: { required: false, control: "text", type: "string" },
- rel: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Specifies the relationship of the target object to the link object.",
- },
- resource: { required: false, control: "text", type: "string" },
- results: { required: false, control: "number", type: "number" },
- rev: { required: false, control: "text", type: "string" },
- role: {
- required: false,
- control: "text",
- type: "string",
- defaultValue: "navigation",
- description:
- "Defines an explicit role for an element for use by assistive technologies.",
- },
- security: { required: false, control: "text", type: "string" },
- side: {
- required: false,
- control: "select",
- type: "string",
- defaultValue: "left",
- options: ["top", "right", "bottom", "left"],
- },
- slot: {
- required: false,
- control: "text",
- type: "string",
- description: "Assigns a slot in a shadow DOM shadow tree to an element.",
- },
- spellCheck: {
- required: false,
- control: "boolean",
- type: "boolean",
- description: "Indicates whether spell checking is allowed for the element.",
- },
- suppressContentEditableWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- suppressHydrationWarning: {
- required: false,
- control: "boolean",
- type: "boolean",
- },
- tabIndex: {
- required: false,
- control: "number",
- type: "number",
- description:
- "Overrides the browser's default tab order and follows the one specified instead.",
- },
- tag: {
- required: false,
- control: "radio",
- type: "string",
- defaultValue: "nav",
- options: ["div", "nav"],
- },
- title: {
- required: false,
- control: "text",
- type: "string",
- description:
- "Text to be displayed in a tooltip when hovering over the element.",
- },
- translate: {
- required: false,
- control: "radio",
- type: "string",
- options: ["yes", "no"],
- description:
- "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.",
- },
- typeof: { required: false, control: "text", type: "string" },
- unselectable: {
- required: false,
- control: "radio",
- type: "string",
- options: ["on", "off"],
- },
- vocab: { required: false, control: "text", type: "string" },
-};
diff --git a/packages/sdk-components-react-radix/src/__generated__/switch.props.ts b/packages/sdk-components-react-radix/src/__generated__/switch.props.ts
index 26c7230eba..b179bf1522 100644
--- a/packages/sdk-components-react-radix/src/__generated__/switch.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/switch.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsSwitch: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react-radix/src/__generated__/tabs.props.ts b/packages/sdk-components-react-radix/src/__generated__/tabs.props.ts
index 31356b8c51..b56b935b37 100644
--- a/packages/sdk-components-react-radix/src/__generated__/tabs.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/tabs.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsTabs: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react-radix/src/__generated__/tooltip.props.ts b/packages/sdk-components-react-radix/src/__generated__/tooltip.props.ts
index ce4bf7f4f7..0abea01d24 100644
--- a/packages/sdk-components-react-radix/src/__generated__/tooltip.props.ts
+++ b/packages/sdk-components-react-radix/src/__generated__/tooltip.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const propsTooltip: Record<string, PropMeta> = {
delayDuration: {
diff --git a/packages/sdk-components-react/src/__generated__/blockquote.props.ts b/packages/sdk-components-react/src/__generated__/blockquote.props.ts
index 3e8306ac45..1d56fdf462 100644
--- a/packages/sdk-components-react/src/__generated__/blockquote.props.ts
+++ b/packages/sdk-components-react/src/__generated__/blockquote.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/body.props.ts b/packages/sdk-components-react/src/__generated__/body.props.ts
index b22b1021eb..36d0f94ab0 100644
--- a/packages/sdk-components-react/src/__generated__/body.props.ts
+++ b/packages/sdk-components-react/src/__generated__/body.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/bold.props.ts b/packages/sdk-components-react/src/__generated__/bold.props.ts
index b22b1021eb..36d0f94ab0 100644
--- a/packages/sdk-components-react/src/__generated__/bold.props.ts
+++ b/packages/sdk-components-react/src/__generated__/bold.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/box.props.ts b/packages/sdk-components-react/src/__generated__/box.props.ts
index fd4fe71d8d..1b667e18fa 100644
--- a/packages/sdk-components-react/src/__generated__/box.props.ts
+++ b/packages/sdk-components-react/src/__generated__/box.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/button.props.ts b/packages/sdk-components-react/src/__generated__/button.props.ts
index 8d340b0952..9d56b91e30 100644
--- a/packages/sdk-components-react/src/__generated__/button.props.ts
+++ b/packages/sdk-components-react/src/__generated__/button.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/checkbox.props.ts b/packages/sdk-components-react/src/__generated__/checkbox.props.ts
index 0358e0677f..ab4638000a 100644
--- a/packages/sdk-components-react/src/__generated__/checkbox.props.ts
+++ b/packages/sdk-components-react/src/__generated__/checkbox.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/code-text.props.ts b/packages/sdk-components-react/src/__generated__/code-text.props.ts
index ec016e76f7..9a65215c84 100644
--- a/packages/sdk-components-react/src/__generated__/code-text.props.ts
+++ b/packages/sdk-components-react/src/__generated__/code-text.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/form.props.ts b/packages/sdk-components-react/src/__generated__/form.props.ts
index 42cffe6c02..da4cf58a26 100644
--- a/packages/sdk-components-react/src/__generated__/form.props.ts
+++ b/packages/sdk-components-react/src/__generated__/form.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/fragment.props.ts b/packages/sdk-components-react/src/__generated__/fragment.props.ts
index 10ee115b62..6898f60c0e 100644
--- a/packages/sdk-components-react/src/__generated__/fragment.props.ts
+++ b/packages/sdk-components-react/src/__generated__/fragment.props.ts
@@ -1,3 +1,3 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {};
diff --git a/packages/sdk-components-react/src/__generated__/heading.props.ts b/packages/sdk-components-react/src/__generated__/heading.props.ts
index 45b52539ee..1fa95244cf 100644
--- a/packages/sdk-components-react/src/__generated__/heading.props.ts
+++ b/packages/sdk-components-react/src/__generated__/heading.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/html-embed.props.ts b/packages/sdk-components-react/src/__generated__/html-embed.props.ts
index 96587c9b1a..5c590040c5 100644
--- a/packages/sdk-components-react/src/__generated__/html-embed.props.ts
+++ b/packages/sdk-components-react/src/__generated__/html-embed.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
className: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/image.props.ts b/packages/sdk-components-react/src/__generated__/image.props.ts
index be57b921d6..1c98d72bb6 100644
--- a/packages/sdk-components-react/src/__generated__/image.props.ts
+++ b/packages/sdk-components-react/src/__generated__/image.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/input.props.ts b/packages/sdk-components-react/src/__generated__/input.props.ts
index c1a6e66403..643afcd5af 100644
--- a/packages/sdk-components-react/src/__generated__/input.props.ts
+++ b/packages/sdk-components-react/src/__generated__/input.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/italic.props.ts b/packages/sdk-components-react/src/__generated__/italic.props.ts
index b22b1021eb..36d0f94ab0 100644
--- a/packages/sdk-components-react/src/__generated__/italic.props.ts
+++ b/packages/sdk-components-react/src/__generated__/italic.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/label.props.ts b/packages/sdk-components-react/src/__generated__/label.props.ts
index f13380ad6c..2efc4531d7 100644
--- a/packages/sdk-components-react/src/__generated__/label.props.ts
+++ b/packages/sdk-components-react/src/__generated__/label.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/link.props.ts b/packages/sdk-components-react/src/__generated__/link.props.ts
index 6dafc3f847..a171c90d0a 100644
--- a/packages/sdk-components-react/src/__generated__/link.props.ts
+++ b/packages/sdk-components-react/src/__generated__/link.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/list-item.props.ts b/packages/sdk-components-react/src/__generated__/list-item.props.ts
index 14d9290189..5cada29f3c 100644
--- a/packages/sdk-components-react/src/__generated__/list-item.props.ts
+++ b/packages/sdk-components-react/src/__generated__/list-item.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/list.props.ts b/packages/sdk-components-react/src/__generated__/list.props.ts
index 0d588af966..2363cf0899 100644
--- a/packages/sdk-components-react/src/__generated__/list.props.ts
+++ b/packages/sdk-components-react/src/__generated__/list.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/local-date.props.ts b/packages/sdk-components-react/src/__generated__/local-date.props.ts
deleted file mode 100644
index 64f8587a88..0000000000
--- a/packages/sdk-components-react/src/__generated__/local-date.props.ts
+++ /dev/null
@@ -1,301 +0,0 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
-
-export const props: Record<string, PropMeta> = {
- country: {
- required: true,
- control: "select",
- type: "string",
- options: [
- "AF",
- "AL",
- "DZ",
- "AS",
- "AD",
- "AO",
- "AI",
- "AQ",
- "AG",
- "AR",
- "AM",
- "AW",
- "AU",
- "AT",
- "AZ",
- "BS",
- "BH",
- "BD",
- "BB",
- "BY",
- "BE",
- "BZ",
- "BJ",
- "BM",
- "BT",
- "BO",
- "BA",
- "BW",
- "BR",
- "BN",
- "BG",
- "BF",
- "BI",
- "CV",
- "KH",
- "CM",
- "CA",
- "KY",
- "CF",
- "TD",
- "CL",
- "CN",
- "CO",
- "KM",
- "CG",
- "CD",
- "CR",
- "HR",
- "CU",
- "CY",
- "CZ",
- "DK",
- "DJ",
- "DM",
- "DO",
- "EC",
- "EG",
- "SV",
- "GQ",
- "ER",
- "EE",
- "SZ",
- "ET",
- "FJ",
- "FI",
- "FR",
- "GA",
- "GM",
- "GE",
- "DE",
- "GH",
- "GR",
- "GD",
- "GT",
- "GN",
- "GW",
- "GY",
- "HT",
- "HN",
- "HU",
- "IS",
- "IN",
- "ID",
- "IR",
- "IQ",
- "IE",
- "IL",
- "IT",
- "JM",
- "JP",
- "JO",
- "KZ",
- "KE",
- "KI",
- "KP",
- "KR",
- "KW",
- "KG",
- "LA",
- "LV",
- "LB",
- "LS",
- "LR",
- "LY",
- "LI",
- "LT",
- "LU",
- "MG",
- "MW",
- "MY",
- "MV",
- "ML",
- "MT",
- "MH",
- "MR",
- "MU",
- "MX",
- "FM",
- "MD",
- "MC",
- "MN",
- "ME",
- "MA",
- "MZ",
- "MM",
- "NA",
- "NR",
- "NP",
- "NL",
- "NZ",
- "NI",
- "NE",
- "NG",
- "NO",
- "OM",
- "PK",
- "PW",
- "PA",
- "PG",
- "PY",
- "PE",
- "PH",
- "PL",
- "PT",
- "QA",
- "RO",
- "RU",
- "RW",
- "KN",
- "LC",
- "VC",
- "WS",
- "SM",
- "ST",
- "SA",
- "SN",
- "RS",
- "SC",
- "SL",
- "SG",
- "SK",
- "SI",
- "SB",
- "SO",
- "ZA",
- "SS",
- "ES",
- "LK",
- "SD",
- "SR",
- "SE",
- "CH",
- "SY",
- "TW",
- "TJ",
- "TZ",
- "TH",
- "TL",
- "TG",
- "TO",
- "TT",
- "TN",
- "TR",
- "TM",
- "TV",
- "UG",
- "UA",
- "AE",
- "GB",
- "US",
- "UY",
- "UZ",
- "VU",
- "VA",
- "VE",
- "VN",
- "YE",
- "ZM",
- "ZW",
- ],
- },
- dateStyle: {
- required: true,
- control: "select",
- type: "string",
- options: ["full", "long", "medium", "short", "none"],
- },
- language: {
- required: true,
- control: "select",
- type: "string",
- options: [
- "af",
- "am",
- "ar",
- "az",
- "be",
- "bg",
- "bn",
- "bs",
- "ca",
- "cs",
- "cy",
- "da",
- "de",
- "el",
- "en",
- "es",
- "et",
- "eu",
- "fa",
- "fi",
- "fr",
- "ga",
- "gl",
- "gu",
- "he",
- "hi",
- "hr",
- "hu",
- "hy",
- "id",
- "is",
- "it",
- "ja",
- "ka",
- "kk",
- "km",
- "kn",
- "ko",
- "ky",
- "lb",
- "lt",
- "lv",
- "mk",
- "ml",
- "mn",
- "mr",
- "ms",
- "mt",
- "nb",
- "nl",
- "nn",
- "pl",
- "pt",
- "ro",
- "ru",
- "si",
- "sk",
- "sl",
- "sq",
- "sr",
- "sv",
- "sw",
- "ta",
- "te",
- "th",
- "tr",
- "uk",
- "ur",
- "uz",
- "vi",
- "zh",
- ],
- description: "Defines the script language used in the element.",
- },
- timeStyle: {
- required: true,
- control: "select",
- type: "string",
- options: ["full", "long", "medium", "short", "none"],
- },
-};
diff --git a/packages/sdk-components-react/src/__generated__/markdown-embed.props.ts b/packages/sdk-components-react/src/__generated__/markdown-embed.props.ts
index affa69cb01..5200927fd8 100644
--- a/packages/sdk-components-react/src/__generated__/markdown-embed.props.ts
+++ b/packages/sdk-components-react/src/__generated__/markdown-embed.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
className: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/option.props.ts b/packages/sdk-components-react/src/__generated__/option.props.ts
index 75a27b26e0..9b0d7b6915 100644
--- a/packages/sdk-components-react/src/__generated__/option.props.ts
+++ b/packages/sdk-components-react/src/__generated__/option.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/paragraph.props.ts b/packages/sdk-components-react/src/__generated__/paragraph.props.ts
index b22b1021eb..36d0f94ab0 100644
--- a/packages/sdk-components-react/src/__generated__/paragraph.props.ts
+++ b/packages/sdk-components-react/src/__generated__/paragraph.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/radio-button.props.ts b/packages/sdk-components-react/src/__generated__/radio-button.props.ts
index 0358e0677f..ab4638000a 100644
--- a/packages/sdk-components-react/src/__generated__/radio-button.props.ts
+++ b/packages/sdk-components-react/src/__generated__/radio-button.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/rich-text-link.props.ts b/packages/sdk-components-react/src/__generated__/rich-text-link.props.ts
index 6dafc3f847..a171c90d0a 100644
--- a/packages/sdk-components-react/src/__generated__/rich-text-link.props.ts
+++ b/packages/sdk-components-react/src/__generated__/rich-text-link.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/select.props.ts b/packages/sdk-components-react/src/__generated__/select.props.ts
index 6e07d779e2..2cdb450555 100644
--- a/packages/sdk-components-react/src/__generated__/select.props.ts
+++ b/packages/sdk-components-react/src/__generated__/select.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/separator.props.ts b/packages/sdk-components-react/src/__generated__/separator.props.ts
index b22b1021eb..36d0f94ab0 100644
--- a/packages/sdk-components-react/src/__generated__/separator.props.ts
+++ b/packages/sdk-components-react/src/__generated__/separator.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/slot.props.ts b/packages/sdk-components-react/src/__generated__/slot.props.ts
index 10ee115b62..6898f60c0e 100644
--- a/packages/sdk-components-react/src/__generated__/slot.props.ts
+++ b/packages/sdk-components-react/src/__generated__/slot.props.ts
@@ -1,3 +1,3 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {};
diff --git a/packages/sdk-components-react/src/__generated__/span.props.ts b/packages/sdk-components-react/src/__generated__/span.props.ts
index b22b1021eb..36d0f94ab0 100644
--- a/packages/sdk-components-react/src/__generated__/span.props.ts
+++ b/packages/sdk-components-react/src/__generated__/span.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/subscript.props.ts b/packages/sdk-components-react/src/__generated__/subscript.props.ts
index b22b1021eb..36d0f94ab0 100644
--- a/packages/sdk-components-react/src/__generated__/subscript.props.ts
+++ b/packages/sdk-components-react/src/__generated__/subscript.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/superscript.props.ts b/packages/sdk-components-react/src/__generated__/superscript.props.ts
index b22b1021eb..36d0f94ab0 100644
--- a/packages/sdk-components-react/src/__generated__/superscript.props.ts
+++ b/packages/sdk-components-react/src/__generated__/superscript.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/text.props.ts b/packages/sdk-components-react/src/__generated__/text.props.ts
index 434025d4af..d45752fda0 100644
--- a/packages/sdk-components-react/src/__generated__/text.props.ts
+++ b/packages/sdk-components-react/src/__generated__/text.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/textarea.props.ts b/packages/sdk-components-react/src/__generated__/textarea.props.ts
index ab7e7a4906..f8fa81bb8d 100644
--- a/packages/sdk-components-react/src/__generated__/textarea.props.ts
+++ b/packages/sdk-components-react/src/__generated__/textarea.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/time.props.ts b/packages/sdk-components-react/src/__generated__/time.props.ts
index 9f507ebc67..2329947b8f 100644
--- a/packages/sdk-components-react/src/__generated__/time.props.ts
+++ b/packages/sdk-components-react/src/__generated__/time.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
country: {
diff --git a/packages/sdk-components-react/src/__generated__/vimeo-play-button.props.ts b/packages/sdk-components-react/src/__generated__/vimeo-play-button.props.ts
index 16c7263a3a..2b0f2aecde 100644
--- a/packages/sdk-components-react/src/__generated__/vimeo-play-button.props.ts
+++ b/packages/sdk-components-react/src/__generated__/vimeo-play-button.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/vimeo-preview-image.props.ts b/packages/sdk-components-react/src/__generated__/vimeo-preview-image.props.ts
index 3dde01e6a6..cc9416769b 100644
--- a/packages/sdk-components-react/src/__generated__/vimeo-preview-image.props.ts
+++ b/packages/sdk-components-react/src/__generated__/vimeo-preview-image.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/vimeo-spinner.props.ts b/packages/sdk-components-react/src/__generated__/vimeo-spinner.props.ts
index b22b1021eb..36d0f94ab0 100644
--- a/packages/sdk-components-react/src/__generated__/vimeo-spinner.props.ts
+++ b/packages/sdk-components-react/src/__generated__/vimeo-spinner.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/vimeo.props.ts b/packages/sdk-components-react/src/__generated__/vimeo.props.ts
index 54743cc4b1..2bfc388713 100644
--- a/packages/sdk-components-react/src/__generated__/vimeo.props.ts
+++ b/packages/sdk-components-react/src/__generated__/vimeo.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/webhook-form.props.ts b/packages/sdk-components-react/src/__generated__/webhook-form.props.ts
index 4997f1c460..21943ac32a 100644
--- a/packages/sdk-components-react/src/__generated__/webhook-form.props.ts
+++ b/packages/sdk-components-react/src/__generated__/webhook-form.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
about: { required: false, control: "text", type: "string" },
diff --git a/packages/sdk-components-react/src/__generated__/xml-node.props.ts b/packages/sdk-components-react/src/__generated__/xml-node.props.ts
index 04549cb147..65402cc30f 100644
--- a/packages/sdk-components-react/src/__generated__/xml-node.props.ts
+++ b/packages/sdk-components-react/src/__generated__/xml-node.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
href: {
diff --git a/packages/sdk-components-react/src/__generated__/xml-time.props.ts b/packages/sdk-components-react/src/__generated__/xml-time.props.ts
index 0e9c420c72..ed1b97216a 100644
--- a/packages/sdk-components-react/src/__generated__/xml-time.props.ts
+++ b/packages/sdk-components-react/src/__generated__/xml-time.props.ts
@@ -1,4 +1,4 @@
-import type { PropMeta } from "@webstudio-is/react-sdk";
+import type { PropMeta } from "@webstudio-is/sdk";
export const props: Record<string, PropMeta> = {
dateStyle: {
diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts
index 6bbb8dddd6..9f3ad7e33c 100644
--- a/packages/sdk/src/index.ts
+++ b/packages/sdk/src/index.ts
@@ -10,6 +10,7 @@ export * from "./schema/style-source-selections";
export * from "./schema/styles";
export * from "./schema/deployment";
export * from "./schema/webstudio";
+export * from "./schema/prop-meta";
export * from "./instances-utils";
export * from "./page-utils";
diff --git a/packages/react-sdk/src/prop-meta.ts b/packages/sdk/src/schema/prop-meta.ts
similarity index 100%
rename from packages/react-sdk/src/prop-meta.ts
rename to packages/sdk/src/schema/prop-meta.ts
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a8f2857460..d6156d46b6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1458,9 +1458,9 @@ importers:
'@webstudio-is/html-data':
specifier: workspace:*
version: link:../html-data
- '@webstudio-is/react-sdk':
+ '@webstudio-is/sdk':
specifier: workspace:*
- version: link:../react-sdk
+ version: link:../sdk
fast-glob:
specifier: ^3.3.2
version: 3.3.2