@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.
48 lines • 1.84 kB
JavaScript
import { CommonTriggerDataAttributes } from "../../utils/popupStateMapping.js";
export let ComboboxTriggerDataAttributes = function (ComboboxTriggerDataAttributes) {
/**
* Present when the corresponding popup is open.
*/
ComboboxTriggerDataAttributes[ComboboxTriggerDataAttributes["popupOpen"] = CommonTriggerDataAttributes.popupOpen] = "popupOpen";
/**
* Present when the trigger is pressed.
*/
ComboboxTriggerDataAttributes[ComboboxTriggerDataAttributes["pressed"] = CommonTriggerDataAttributes.pressed] = "pressed";
/**
* Present when the component is disabled.
*/
ComboboxTriggerDataAttributes["disabled"] = "data-disabled";
/**
* Present when the component is readonly.
*/
ComboboxTriggerDataAttributes["readonly"] = "data-readonly";
/**
* Present when the component is required.
*/
ComboboxTriggerDataAttributes["required"] = "data-required";
/**
* Present when the component is in valid state (when wrapped in Field.Root).
*/
ComboboxTriggerDataAttributes["valid"] = "data-valid";
/**
* Present when the component is in invalid state (when wrapped in Field.Root).
*/
ComboboxTriggerDataAttributes["invalid"] = "data-invalid";
/**
* Present when the component has been touched (when wrapped in Field.Root).
*/
ComboboxTriggerDataAttributes["touched"] = "data-touched";
/**
* Present when the component's value has changed (when wrapped in Field.Root).
*/
ComboboxTriggerDataAttributes["dirty"] = "data-dirty";
/**
* Present when the component has a value (when wrapped in Field.Root).
*/
ComboboxTriggerDataAttributes["filled"] = "data-filled";
/**
* Present when the trigger is focused (when wrapped in Field.Root).
*/
ComboboxTriggerDataAttributes["focused"] = "data-focused";
return ComboboxTriggerDataAttributes;
}({});