"use strict";const i=require("react"),n=require("zod"),c=e=>typeof e=="function",a=(e,t)=>c(e)?e(t):e,h=e=>t=>t==null?void 0:e(t),u=e=>S(e)?e():e,S=e=>typeof e=="function",g=({initial:e,value:t,onChange:r})=>{const[l,s]=i.useState(t??e);return t!=null&&r!=null?[t,r]:[l,s]},m=({initial:e,value:t,onChange:r})=>{const[l,s]=i.useState(u(t??e));return t!=null&&r!=null?[t,r]:[l,s]},E=(e,t)=>{const[r,l]=i.useState(()=>{const s=localStorage.getItem(t);return s==null?u(e):JSON.parse(s)});return[r,s=>{l(s),localStorage.setItem(t,JSON.stringify(s))}]},L=Object.freeze(Object.defineProperty({__proto__:null,executeInitialSetter:u,executeSetter:a,isInitialSetter:S,isSetter:c,skipNull:h,usePassthrough:g,usePersisted:E,usePurePassthrough:m},Symbol.toStringTag,{value:"Module"})),o=["h1","h2","h3","h4","h5","p","small"],d=n.z.enum(o),f=e=>{const t=o.indexOf(e);return t===-1||t===o.length-1?e:o[t+1]},p=n.z.union([n.z.number(),n.z.enum(["normal","bold","bolder","lighter"])]),z=n.z.object({size:n.z.number(),weight:n.z.union([n.z.number(),n.z.string()]),lineHeight:n.z.number(),textTransform:n.z.string().optional()}),O={tiny:"small",small:"small",medium:"p",large:"h5",huge:"h2"},I={h1:"huge",h2:"huge",h3:"huge",h4:"large",h5:"small",p:"medium",small:"small"};exports.COMPONENT_SIZE_LEVELS=O;exports.LEVELS=o;exports.LEVEL_COMPONENT_SIZES=I;exports.downLevel=f;exports.executeInitialSetter=u;exports.executeSetter=a;exports.levelZ=d;exports.skipNull=h;exports.specZ=z;exports.state=L;exports.usePassthrough=g;exports.usePurePassthrough=m;exports.weightZ=p;
