/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
const require_plugin$1 = require("../node_modules/.bun/tailwindcss@3.4.19_7500dce058369e0a/node_modules/tailwindcss/plugin.cjs");
const require_entries = require("../packages/utils/dist/entries.cjs");
const require_composeTailwindPlugins = require("../utils/composeTailwindPlugins.cjs");
const require_mapValues = require("../packages/utils/dist/mapValues.cjs");
const require_assertUnreachable = require("../packages/utils/dist/assertUnreachable.cjs");
//#region ../tailwind-internal/dist/plugins/breakpoints.js
/*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
var import_plugin = /* @__PURE__ */ require_runtime.__toESM(require_plugin$1.require_plugin(), 1);
const UDS_BREAKPOINTS_THEME_KEY = "udsBreakpoints";
const getScreensTheme = (config, mergeTokensIntoTailwindTheme) => {
	const breakpoints = require_mapValues.mapValues(config, (breakpoint) => {
		switch (breakpoint.type) {
			case "px": return `${breakpoint.value}px`;
		}
		return require_assertUnreachable.assertUnreachable(breakpoint.type);
	});
	if (!mergeTokensIntoTailwindTheme) return { [UDS_BREAKPOINTS_THEME_KEY]: breakpoints };
	return {
		[UDS_BREAKPOINTS_THEME_KEY]: breakpoints,
		screens: breakpoints
	};
};
const breakpointsPlugin = import_plugin.default.withOptions(({ config }) => ({ addVariant }) => {
	const breakpoints = require_entries.entries(config.breakpoints).sort(([, { value: minWidthA }], [, { value: minWidthB }]) => minWidthA - minWidthB);
	for (const [name, { value: minWidth }] of breakpoints) addVariant(`uds-${name}`, `@media (min-width: ${minWidth}px)`);
}, ({ config, disableOverrideTailwindTheme }) => {
	const shouldNotMergeScreensTokensIntoTailwindTheme = require_composeTailwindPlugins.shouldNotMergeTokensIntoTailwindTheme(disableOverrideTailwindTheme, "screens");
	return { theme: { extend: { ...getScreensTheme(config.breakpoints, !shouldNotMergeScreensTokensIntoTailwindTheme) } } };
});
//#endregion
exports.breakpointsPlugin = breakpointsPlugin;
