@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
57 lines • 2.19 kB
JavaScript
import { CommonTriggerDataAttributes } from "../../utils/popupStateMapping.js";
export let ComboboxInputDataAttributes = function (ComboboxInputDataAttributes) {
/**
* Present when the corresponding popup is open.
*/
ComboboxInputDataAttributes[ComboboxInputDataAttributes["popupOpen"] = CommonTriggerDataAttributes.popupOpen] = "popupOpen";
/**
* Present when the input is pressed.
*/
ComboboxInputDataAttributes[ComboboxInputDataAttributes["pressed"] = CommonTriggerDataAttributes.pressed] = "pressed";
/**
* Present when the component is disabled.
*/
ComboboxInputDataAttributes["disabled"] = "data-disabled";
/**
* Present when the component is readonly.
*/
ComboboxInputDataAttributes["readonly"] = "data-readonly";
/**
* Indicates which side the corresponding popup is positioned relative to its anchor.
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start' | null}
*/
ComboboxInputDataAttributes["popupSide"] = "data-popup-side";
/**
* Present when the component is required.
*/
ComboboxInputDataAttributes["required"] = "data-required";
/**
* Present when the component is in valid state (when wrapped in Field.Root).
*/
ComboboxInputDataAttributes["valid"] = "data-valid";
/**
* Present when the component is in invalid state (when wrapped in Field.Root).
*/
ComboboxInputDataAttributes["invalid"] = "data-invalid";
/**
* Present when the component has been touched (when wrapped in Field.Root).
*/
ComboboxInputDataAttributes["touched"] = "data-touched";
/**
* Present when the component's value has changed (when wrapped in Field.Root).
*/
ComboboxInputDataAttributes["dirty"] = "data-dirty";
/**
* Present when the component has a value (when wrapped in Field.Root).
*/
ComboboxInputDataAttributes["filled"] = "data-filled";
/**
* Present when the input is focused (when wrapped in Field.Root).
*/
ComboboxInputDataAttributes["focused"] = "data-focused";
/**
* Present when the corresponding items list is empty.
*/
ComboboxInputDataAttributes["listEmpty"] = "data-list-empty";
return ComboboxInputDataAttributes;
}({});