"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("lodash.merge"),d=require("tailwindcss/plugin"),l=require("tailwindcss/lib/util/normalizeScreens");function c(e){return typeof e=="string"||typeof e=="number"}function t(e){return typeof e=="number"?`${e}px`:e}function o({maxWidth:e,padding:n}){return a({},c(e)&&{maxWidth:t(e)},c(n)&&{paddingLeft:t(n),paddingRight:t(n)})}const p=d(({addComponents:e,theme:n})=>{const u=l.normalizeScreens(n("screens")).map(({name:r})=>r),f=Object.entries(n("container.screens",{})),i=[];for(const[r,g]of f){if(r==="DEFAULT")continue;if(!u.includes(r))throw new Error(`[@pico-ui/container]: screen ${r} is not a configured screen name`);const s=o(g);JSON.stringify(s)!=="{}"&&i.push({[`@screen ${r}`]:s})}const m=n("container.screens.DEFAULT",{padding:"1rem"});e({".container":a({},{width:"100%"},n("container.center")&&{marginLeft:"auto",marginRight:"auto"},o(m),...i)})},{theme:{container:{center:!0}},corePlugins:{container:!1}}),h={container:{screens:{sm:{maxWidth:510,padding:0},md:{maxWidth:700},lg:{maxWidth:950},xl:{maxWidth:1200},"2xl":{maxWidth:1450}}},screens:{sm:"576px"}};exports.default=p;exports.picoUiContainers=h;