// (C) 2020-2026 GoodData Corporation
export { ENUM_KEY_CODE };
/**
 * @deprecated use `event.key` or `event.code`. See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
 * @internal
 */
var ENUM_KEY_CODE;
(function (ENUM_KEY_CODE) {
    ENUM_KEY_CODE[ENUM_KEY_CODE["KEY_CODE_ENTER"] = 13] = "KEY_CODE_ENTER";
    ENUM_KEY_CODE[ENUM_KEY_CODE["KEY_CODE_ESCAPE"] = 27] = "KEY_CODE_ESCAPE";
})(ENUM_KEY_CODE || (ENUM_KEY_CODE = {}));
/**
 * @internal
 */
export function accessibilityConfigToAttributes(accessibilityConfig) {
    if (!accessibilityConfig) {
        return {};
    }
    return {
        "aria-label": accessibilityConfig.ariaLabel,
        "aria-labelledby": accessibilityConfig.ariaLabelledBy,
        "aria-describedby": accessibilityConfig.ariaDescribedBy,
        role: accessibilityConfig.role,
        "aria-expanded": accessibilityConfig.ariaExpanded,
        "aria-controls": accessibilityConfig.ariaControls,
        "aria-haspopup": accessibilityConfig.ariaHaspopup,
        "aria-pressed": accessibilityConfig.ariaPressed,
        "aria-checked": accessibilityConfig.ariaChecked,
        "aria-autocomplete": accessibilityConfig.ariaAutocomplete,
        "aria-activedescendant": accessibilityConfig.ariaActiveDescendant,
        "aria-current": accessibilityConfig.ariaCurrent,
        "aria-description": accessibilityConfig.ariaDescription,
    };
}
