{"version":3,"file":"HtmlProps.cjs","names":[],"sources":["../../src/HtmlProps.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { HTMLAttributes } from \"react\";\n\nexport type HtmlProps = {\n  /**\n   * Used in [ARIA live regions](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions), the global aria-busy state indicates an element is being modified and that assistive technologies may want to wait until the changes are complete before informing the user about the update.\n   */\n  ariaBusy?: HTMLAttributes<HTMLElement>[\"aria-busy\"];\n  /**\n   * The `aria-checked` attribute indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n   *\n   * NOTE: Where possible use an HTML `<input>` element with `type=\"checkbox\"` and `type=\"radio\"` as these have built in semantics and do not require ARIA attributes.\n   */\n  ariaChecked?: HTMLAttributes<HTMLElement>[\"aria-checked\"];\n  /**\n   * The global `aria-controls` property identifies the element (or elements) whose contents or presence are controlled by the element on which this attribute is set.\n   *\n   * Value: A space-separated list of one or more ID values referencing the elements being controlled by the current element\n   */\n  ariaControls?: HTMLAttributes<HTMLElement>[\"aria-controls\"];\n  /**\n   * A non-null aria-current state on an element indicates that this element represents the current item within a container or set of related elements.\n   *\n   * Value:\n   * \n   * `page`\n      Represents the current page within a set of pages such as the link to the current document in a breadcrumb.\n\n      `step`\n      Represents the current step within a process such as the current step in an enumerated multi step checkout flow.\n\n      `location`\n      Represents the current location within an environment or context such as the image that is visually highlighted as the current component of a flow chart.\n\n      `date`\n      Represents the current date within a collection of dates such as the current date within a calendar.\n\n      `time`\n      Represents the current time within a set of times such as the current time within a timetable.\n\n      `true`\n      Represents the current item within a set.\n\n      `false` (default)\n        Does not represent the current item within a set.\n   */\n  ariaCurrent?: HTMLAttributes<HTMLElement>[\"aria-current\"];\n  /**\n   * The global `aria-describedby` attribute identifies the element (or elements) that describes the element on which the attribute is set.\n   *\n   * Value: The id or space-separated list of element ids that describe the current element.\n   *\n   * Note: The `aria-describedby` attribute is not designed to reference descriptions from external resources. It must reference elements in the same DOM document.\n   */\n  ariaDescribedBy?: HTMLAttributes<HTMLElement>[\"aria-describedby\"];\n  /**\n   * The `aria-errormessage` attribute on an object identifies the element that provides an error message for that object.\n   *\n   * Value: The value of the id of the element containing the error message for the current element\n   */\n  ariaErrorMessage?: HTMLAttributes<HTMLElement>[\"aria-errormessage\"];\n  /**\n   * The `aria-expanded` attribute is set on an element to indicate if a control is expanded or collapsed, and whether or not the controlled elements are displayed or hidden.\n   */\n  ariaExpanded?: HTMLAttributes<HTMLElement>[\"aria-expanded\"];\n  /**\n   * The `aria-haspopup` attribute indicates the availability and type of interactive popup element that can be triggered by the element on which the attribute is set.\n   */\n  ariaHasPopup?: HTMLAttributes<HTMLElement>[\"aria-haspopup\"];\n  ariaHidden?: HTMLAttributes<HTMLElement>[\"aria-hidden\"];\n  /**\n   * The `aria-label` attribute defines a string value that labels an interactive element.\n   */\n  ariaLabel?: HTMLAttributes<HTMLElement>[\"aria-label\"];\n  /**\n   * The `aria-labelledby` attribute identifies the element (or elements) that labels the element it is applied to.\n   *\n   * Value: Space separated list of one or more ID values referencing the elements that label the current element.\n   */\n  ariaLabelledBy?: HTMLAttributes<HTMLElement>[\"aria-labelledby\"];\n  /**\n   * The `aria-pressed` attribute indicates the current \"pressed\" state of a toggle button.\n   */\n  ariaPressed?: HTMLAttributes<HTMLElement>[\"aria-pressed\"];\n  /**\n   * The `id` attribute of the HTML element.\n   */\n  id?: HTMLAttributes<HTMLElement>[\"id\"];\n  /**\n   * The `tabindex` global attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable\n   *\n   * Note: Manipulating the natural tab order is generally advised against\n   */\n  tabIndex?: HTMLAttributes<HTMLElement>[\"tabIndex\"];\n  /**\n   * This prop puts a `data` attribute on an HTML element in this component with the value provided.\n   *\n   * @deprecated **WARNING:** You should be using Semantic Selectors instead of this property. This is a temporary measure for backwards compatibility with existing Selenium tests.\n   */\n  testId?: string;\n  /**\n   * This prop puts a `translate` attribute on an HTML element. It should be used to indicate whether text within the element should be translated.\n   */\n  translate?: \"yes\" | \"no\";\n};\n"],"mappings":"","ignoreList":[]}