/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
import { getFocusRingStyles } from "../components/getFocusRingStyles.js";
import { getHitTargetStyles } from "../components/getHitTargetStyles.js";
import plugin from "tailwindcss/plugin.js";
//#region src/tailwind/plugins/a11y.ts
const a11yPlugin = plugin.withOptions(() => ({ addComponents }) => {
	addComponents(getHitTargetStyles());
	addComponents(getFocusRingStyles());
}, () => ({
	safelist: ["uds-hit-target", "uds-ring"],
	theme: { extend: {
		/**
		* Used in @ariakit/react https://ariakit.org/guide/styling#aria
		* By default, Tailwind offers all of these. Including in this config
		* to provide links to ariakit docs for ones that are shared between the two.
		* This is not exhaustive, and only includes the shared ones at the moment.
		* https://github.com/tailwindlabs/tailwindcss/blob/main/stubs/config.full.js#L17
		*/
		aria: {
			/** https://ariakit.org/guide/styling#aria-checked */
			checked: "checked=\"true\"",
			/** https://ariakit.org/guide/styling#aria-disabled */
			disabled: "disabled=\"true\"",
			/** https://ariakit.org/guide/styling#aria-expanded */
			expanded: "expanded=\"true\"",
			/** https://ariakit.org/guide/styling#aria-invalid */
			invalid: "aria-invalid=\"true\""
		},
		/**
		* Used in @ariakit/react https://ariakit.org/guide/styling#css-selectors
		* By default, Tailwind does not include any values for this option
		* https://github.com/tailwindlabs/tailwindcss/blob/main/stubs/config.full.js#L888
		*/
		data: {
			active: "active=\"true\"",
			"active-item": "active-item=\"true\"",
			autofill: "autofill=\"true\"",
			backdrop: "backdrop=\"true\"",
			enter: "enter=\"true\"",
			leave: "leave=\"true\"",
			"focus-visible": "focus-visible=\"true\""
		}
	} }
}));
//#endregion
export { a11yPlugin };

//# sourceMappingURL=a11y.js.map