/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
const require_borderRadius = require('./borderRadius.cjs');
const require_borderWidth = require('./borderWidth.cjs');
const require_getNestedBorderRadiusUtilities = require('../utils/getNestedBorderRadiusUtilities.cjs');
let tailwindcss_plugin_js = require("tailwindcss/plugin.js");
tailwindcss_plugin_js = require_runtime.__toESM(tailwindcss_plugin_js);

//#region src/tailwind/plugins/nestedBorderRadius.ts
const nestedBorderRadiusPlugin = tailwindcss_plugin_js.default.withOptions(() => ({ addUtilities, theme, matchUtilities }) => {
	addUtilities(require_getNestedBorderRadiusUtilities.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(require_borderRadius.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(require_borderWidth.UDS_BORDER_WIDTH_THEME_KEY) });
});

//#endregion
exports.nestedBorderRadiusPlugin = nestedBorderRadiusPlugin;