/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { __toESM } from "../_virtual/_rolldown/runtime.js";
import { require_plugin } from "../node_modules/.bun/tailwindcss@3.4.19_7500dce058369e0a/node_modules/tailwindcss/plugin.js";
import { UDS_BORDER_RADIUS_THEME_KEY } from "./borderRadius.js";
import { UDS_BORDER_WIDTH_THEME_KEY } from "./borderWidth.js";
import { getNestedBorderRadiusUtilities } from "../utils/getNestedBorderRadiusUtilities.js";
//#region ../tailwind-internal/dist/plugins/nestedBorderRadius.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
const nestedBorderRadiusPlugin = (/* @__PURE__ */ __toESM(require_plugin(), 1)).default.withOptions(() => ({ addUtilities, theme, matchUtilities }) => {
	addUtilities(getNestedBorderRadiusUtilities());
	/** Add utilities that set --radius variable for nested border radius calculations */
	matchUtilities({ "uds-nested-border-radius-size": (value) => ({ "--uds-nested-border-radius-size": value }) }, { values: theme(UDS_BORDER_RADIUS_THEME_KEY) });
	/** Add utilities that set --padding variable for nested border radius calculations */
	matchUtilities({ "uds-nested-border-radius-spacing": (value) => ({ "--uds-nested-border-radius-spacing": value }) }, { values: theme("spacing") });
	/** Add utilities that set --border-width variable for nested border radius calculations */
	matchUtilities({ "uds-nested-border-radius-width": (value) => ({ "--uds-nested-border-radius-width": value }) }, { values: theme(UDS_BORDER_WIDTH_THEME_KEY) });
});
//#endregion
export { nestedBorderRadiusPlugin };
