import { parseValue, arbitrary } from "../../../../@twind_core@1.1.3_typescript@5.9.2/node_modules/@twind/core/core.js";
function presetContainerQueries() {
  return {
    theme: {
      containers: {
        xs: "20rem",
        sm: "24rem",
        md: "28rem",
        lg: "32rem",
        xl: "36rem",
        "2xl": "42rem",
        "3xl": "48rem",
        "4xl": "56rem",
        "5xl": "64rem",
        "6xl": "72rem",
        "7xl": "80rem"
      }
    },
    rules: [
      [
        "@container($|-|\\/)",
        ({ 1: $1, $$ }, context) => {
          let [value = "", name] = "/" == $1 ? [
            ,
            $$
          ] : parseValue($$), type = arbitrary(value, "", context) || value || "inline-size";
          return name ? {
            container: `${name} / ${type}`
          } : {
            "container-type": type
          };
        }
      ]
    ],
    variants: [
      [
        "@(.+)",
        (match, context) => {
          let [value, name] = parseValue(match[1]);
          if (value) {
            let minWidth = context.theme("containers", value) || arbitrary(value, "containers", context);
            return minWidth && `@container ${name ? name + " " : ""}(min-width:${minWidth})`;
          }
        }
      ]
    ]
  };
}
export {
  presetContainerQueries as default
};
//# sourceMappingURL=preset-container-queries.js.map
