From 786d4cf22d3d8df2111f0788154faf16e65e4b7f Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Sun, 5 Jan 2025 17:16:10 +0700 Subject: [PATCH 1/2] refactor: move prop meta schema to sdk PropMeta schema is not specific to react so moved it to agnostic sdk. --- .../props-section/props-section.stories.tsx | 3 +- .../props-section/use-props-logic.ts | 3 +- .../features/settings-panel/shared.tsx | 3 +- packages/generate-arg-types/package.json | 2 +- packages/generate-arg-types/src/arg-types.ts | 2 +- packages/generate-arg-types/src/cli.ts | 2 +- .../src/components/component-meta.ts | 3 +- packages/react-sdk/src/index.ts | 1 - .../src/__generated__/accordion.props.ts | 2 +- .../src/__generated__/checkbox.props.ts | 2 +- .../src/__generated__/collapsible.props.ts | 2 +- .../src/__generated__/dialog.props.ts | 2 +- .../src/__generated__/label.props.ts | 2 +- .../__generated__/navigation-menu.props.ts | 2 +- .../src/__generated__/popover.props.ts | 2 +- .../src/__generated__/radio-group.props.ts | 2 +- .../src/__generated__/select.props.ts | 2 +- .../src/__generated__/sheet.props.ts | 2901 ----------------- .../src/__generated__/switch.props.ts | 2 +- .../src/__generated__/tabs.props.ts | 2 +- .../src/__generated__/tooltip.props.ts | 2 +- .../src/__generated__/blockquote.props.ts | 2 +- .../src/__generated__/body.props.ts | 2 +- .../src/__generated__/bold.props.ts | 2 +- .../src/__generated__/box.props.ts | 2 +- .../src/__generated__/button.props.ts | 2 +- .../src/__generated__/checkbox.props.ts | 2 +- .../src/__generated__/code-text.props.ts | 2 +- .../src/__generated__/form.props.ts | 2 +- .../src/__generated__/fragment.props.ts | 2 +- .../src/__generated__/heading.props.ts | 2 +- .../src/__generated__/html-embed.props.ts | 2 +- .../src/__generated__/image.props.ts | 2 +- .../src/__generated__/input.props.ts | 2 +- .../src/__generated__/italic.props.ts | 2 +- .../src/__generated__/label.props.ts | 2 +- .../src/__generated__/link.props.ts | 2 +- .../src/__generated__/list-item.props.ts | 2 +- .../src/__generated__/list.props.ts | 2 +- .../src/__generated__/markdown-embed.props.ts | 2 +- .../src/__generated__/option.props.ts | 2 +- .../src/__generated__/paragraph.props.ts | 2 +- .../src/__generated__/radio-button.props.ts | 2 +- .../src/__generated__/rich-text-link.props.ts | 2 +- .../src/__generated__/select.props.ts | 2 +- .../src/__generated__/separator.props.ts | 2 +- .../src/__generated__/slot.props.ts | 2 +- .../src/__generated__/span.props.ts | 2 +- .../src/__generated__/subscript.props.ts | 2 +- .../src/__generated__/superscript.props.ts | 2 +- .../src/__generated__/text.props.ts | 2 +- .../src/__generated__/textarea.props.ts | 2 +- .../src/__generated__/time.props.ts | 2 +- .../__generated__/vimeo-play-button.props.ts | 2 +- .../vimeo-preview-image.props.ts | 2 +- .../src/__generated__/vimeo-spinner.props.ts | 2 +- .../src/__generated__/vimeo.props.ts | 2 +- .../src/__generated__/webhook-form.props.ts | 2 +- .../src/__generated__/xml-node.props.ts | 2 +- .../src/__generated__/xml-time.props.ts | 2 +- packages/sdk/src/index.ts | 1 + .../src => sdk/src/schema}/prop-meta.ts | 0 pnpm-lock.yaml | 4 +- 63 files changed, 61 insertions(+), 2966 deletions(-) delete mode 100644 packages/sdk-components-react-radix/src/__generated__/sheet.props.ts rename packages/{react-sdk/src => sdk/src/schema}/prop-meta.ts (100%) 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 8e040e1eee87..4aa40ac50000 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 f11fc11894af..edc6e1e0c2a5 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 85e7ef31a362..065a3583fb23 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 695a1a00bd23..5ae40f3a12aa 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 599fc2e84a22..2e94bff5466b 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 7afaedbc91b7..b68e4f90a68e 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 247dbb8fa754..00b4ed86df0f 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 = Partial< diff --git a/packages/react-sdk/src/index.ts b/packages/react-sdk/src/index.ts index 11ed1987c32d..f5c8bea1d9d6 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 c861b803c799..60a603f7e3ca 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 = { 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 0bd17e83e43b..28656bd38a8e 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 = { 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 2574b4e2003a..fa7e4c528165 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 = { 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 09995c2d764b..7411d35d61fa 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 = { 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 64a94be2bd88..00aec632b23a 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 = { 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 7ed2664948a6..28375cb8338a 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 = { 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 152cd82b4921..018fd218c435 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 = { 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 37885fce64a9..29185d5ed373 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 = { 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 57a12b9e0bea..d04541aee108 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 = { 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 ee5ae70de2a6..000000000000 --- 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 = { - 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 = {}; -export const propsSheetOverlay: Record = { - 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 = { - 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 = { - 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 = { - 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 = { - 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 26c7230eba08..b179bf152293 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 = { 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 31356b8c51cd..b56b935b37b4 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 = { 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 ce4bf7f4f772..0abea01d248a 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 = { delayDuration: { diff --git a/packages/sdk-components-react/src/__generated__/blockquote.props.ts b/packages/sdk-components-react/src/__generated__/blockquote.props.ts index 3e8306ac4524..1d56fdf46246 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 = { 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 b22b1021ebb6..36d0f94ab059 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 = { 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 b22b1021ebb6..36d0f94ab059 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 = { 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 fd4fe71d8db3..1b667e18fabb 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 = { 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 8d340b095291..9d56b91e30af 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 = { 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 0358e0677f14..ab4638000a91 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 = { 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 ec016e76f7a4..9a65215c844e 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 = { 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 42cffe6c02e1..da4cf58a262a 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 = { 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 10ee115b62d3..6898f60c0edd 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 = {}; diff --git a/packages/sdk-components-react/src/__generated__/heading.props.ts b/packages/sdk-components-react/src/__generated__/heading.props.ts index 45b52539ee90..1fa95244cf32 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 = { 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 96587c9b1a5f..5c590040c568 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 = { 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 be57b921d6a4..1c98d72bb671 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 = { 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 c1a6e66403cf..643afcd5af24 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 = { 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 b22b1021ebb6..36d0f94ab059 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 = { 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 f13380ad6cb8..2efc4531d7b4 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 = { 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 6dafc3f84738..a171c90d0a95 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 = { 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 14d929018970..5cada29f3c1c 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 = { 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 0d588af966b0..2363cf089913 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 = { about: { required: false, control: "text", type: "string" }, 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 affa69cb0169..5200927fd8e4 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 = { 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 75a27b26e0f6..9b0d7b691500 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 = { 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 b22b1021ebb6..36d0f94ab059 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 = { 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 0358e0677f14..ab4638000a91 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 = { 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 6dafc3f84738..a171c90d0a95 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 = { 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 6e07d779e255..2cdb45055545 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 = { 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 b22b1021ebb6..36d0f94ab059 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 = { 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 10ee115b62d3..6898f60c0edd 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 = {}; diff --git a/packages/sdk-components-react/src/__generated__/span.props.ts b/packages/sdk-components-react/src/__generated__/span.props.ts index b22b1021ebb6..36d0f94ab059 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 = { 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 b22b1021ebb6..36d0f94ab059 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 = { 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 b22b1021ebb6..36d0f94ab059 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 = { 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 434025d4af2b..d45752fda009 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 = { 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 ab7e7a490662..f8fa81bb8dbd 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 = { 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 9f507ebc6759..2329947b8fe5 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 = { 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 16c7263a3a04..2b0f2aecde07 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 = { 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 3dde01e6a640..cc9416769b60 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 = { 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 b22b1021ebb6..36d0f94ab059 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 = { 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 54743cc4b1b2..2bfc38871373 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 = { 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 4997f1c46003..21943ac32a69 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 = { 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 04549cb1476d..65402cc30fd0 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 = { 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 0e9c420c72ef..ed1b97216a81 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 = { dateStyle: { diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index 6bbb8dddd645..9f3ad7e33c89 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 a8f2857460ee..d6156d46b6af 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 From 434410d70c46bce09531874e84ac5009fedaa320 Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Sun, 5 Jan 2025 17:30:19 +0700 Subject: [PATCH 2/2] Remove unused props --- .../src/__generated__/local-date.props.ts | 301 ------------------ 1 file changed, 301 deletions(-) delete mode 100644 packages/sdk-components-react/src/__generated__/local-date.props.ts 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 64f8587a884d..000000000000 --- 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 = { - 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"], - }, -};