@shmidko61/lc-ui-kit 0.0.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react/jsx-runtime"),O=require("./responsive-style.config-B2m9jVlX.cjs"),H=require("./responsive-style.utils-BdyoDkKg.cjs"),C="text-[length:var(--typography-font-size)] font-[var(--typography-font-weight)] leading-[var(--typography-line-height)] text-[var(--typography-color,var(--color-text-primary))] tracking-[var(--typography-letter-spacing)] [font-family:var(--typography-font-family,var(--font-family))] [font-style:var(--typography-font-style)] [height:var(--typography-height)] [margin-bottom:var(--typography-margin-bottom,0)] [margin-left:var(--typography-margin-left,0)] [margin-right:var(--typography-margin-right,0)] [margin-top:var(--typography-margin-top,0)] [max-height:var(--typography-max-height)] [max-width:var(--typography-max-width)] [min-height:var(--typography-min-height)] [min-width:var(--typography-min-width)] [padding-bottom:var(--typography-padding-bottom,0)] [padding-left:var(--typography-padding-left,0)] [padding-right:var(--typography-padding-right,0)] [padding-top:var(--typography-padding-top,0)] [text-align:var(--typography-text-align)] [text-decoration:var(--typography-text-decoration)] [text-overflow:var(--typography-text-overflow)] [text-transform:var(--typography-text-transform)] [vertical-align:var(--typography-vertical-align)] [white-space:var(--typography-white-space)] [width:var(--typography-width)] [word-break:var(--typography-word-break)]",o={color:"--typography-color",fontSize:"--typography-font-size",fontFamily:"--typography-font-family",fontStyle:"--typography-font-style",fontWeight:"--typography-font-weight",height:"--typography-height",letterSpacing:"--typography-letter-spacing",lineHeight:"--typography-line-height",marginBottom:"--typography-margin-bottom",marginLeft:"--typography-margin-left",marginRight:"--typography-margin-right",marginTop:"--typography-margin-top",maxHeight:"--typography-max-height",maxWidth:"--typography-max-width",minHeight:"--typography-min-height",minWidth:"--typography-min-width",paddingBottom:"--typography-padding-bottom",paddingLeft:"--typography-padding-left",paddingRight:"--typography-padding-right",paddingTop:"--typography-padding-top",textAlign:"--typography-text-align",textDecoration:"--typography-text-decoration",textOverflow:"--typography-text-overflow",textTransform:"--typography-text-transform",verticalAlign:"--typography-vertical-align",whiteSpace:"--typography-white-space",width:"--typography-width",wordBreak:"--typography-word-break"},U={[o.color]:"color",[o.fontSize]:"font-size",[o.fontFamily]:"font-family",[o.fontStyle]:"font-style",[o.fontWeight]:"font-weight",[o.height]:"height",[o.letterSpacing]:"letter-spacing",[o.lineHeight]:"line-height",[o.marginBottom]:"margin-bottom",[o.marginLeft]:"margin-left",[o.marginRight]:"margin-right",[o.marginTop]:"margin-top",[o.maxHeight]:"max-height",[o.maxWidth]:"max-width",[o.minHeight]:"min-height",[o.minWidth]:"min-width",[o.paddingBottom]:"padding-bottom",[o.paddingLeft]:"padding-left",[o.paddingRight]:"padding-right",[o.paddingTop]:"padding-top",[o.textAlign]:"text-align",[o.textDecoration]:"text-decoration",[o.textOverflow]:"text-overflow",[o.textTransform]:"text-transform",[o.verticalAlign]:"vertical-align",[o.whiteSpace]:"white-space",[o.width]:"width",[o.wordBreak]:"word-break"};function J(t){const e=[],i={...t.vars??{}};for(const a of O.responsiveBreakpoints)for(const[n,p]of Object.entries(t[a]?.vars??{})){const h=U[n];if(!h||p===void 0||p===null)continue;const g=`--${a}-${n.slice(2)}`;i[g]=p,e.push(`${a}:[${h}:var(${g})]`)}return{className:e.join(" "),style:Object.keys(i).length>0?i:void 0}}const _={h1:{base:{fontSize:"--typo-fs-h1-sm",fontWeight:"--typo-fw-h1-sm",lineHeight:"--typo-lh-h1-sm"},md:{fontSize:"--typo-fs-h1-md",fontWeight:"--typo-fw-h1-md",lineHeight:"--typo-lh-h1-md"},lg:{fontSize:"--typo-fs-h1-lg",fontWeight:"--typo-fw-h1-lg",lineHeight:"--typo-lh-h1-lg"}},h2:{base:{fontSize:"--typo-fs-h2-md",fontWeight:"--typo-fw-h2-md",lineHeight:"--typo-lh-h2-md"},lg:{fontSize:"--typo-fs-h2-lg",fontWeight:"--typo-fw-h2-lg",lineHeight:"--typo-lh-h2-lg"}},h3:{base:{fontSize:"--typo-fs-h3-md",fontWeight:"--typo-fw-h3-md",lineHeight:"--typo-lh-h3-md"},md:{fontSize:"--typo-fs-h3-lg",fontWeight:"--typo-fw-h3-lg",lineHeight:"--typo-lh-h3-lg"}},h4:{base:{fontSize:"--typo-fs-h4-md",fontWeight:"--typo-fw-h4-md",lineHeight:"--typo-lh-h4-md"},lg:{fontSize:"--typo-fs-h4-lg",fontWeight:"--typo-fw-h4-lg",lineHeight:"--typo-lh-h4-lg"}},sh:{base:{fontSize:"--typo-fs-h4-lg",fontWeight:"--typo-fw-h4-lg",lineHeight:"--typo-lh-h4-lg"}},b1:{base:{fontSize:"--typo-fs-b1-md",fontWeight:"--typo-fw-b1-md",lineHeight:"--typo-lh-b1-md"},lg:{fontSize:"--typo-fs-b1-lg",fontWeight:"--typo-fw-b1-lg",lineHeight:"--typo-lh-b1-lg"}},b2:{base:{fontSize:"--typo-fs-b2-md",fontWeight:"--typo-fw-b2-md",lineHeight:"--typo-lh-b2-md"},lg:{fontSize:"--typo-fs-b2-lg",fontWeight:"--typo-fw-b2-lg",lineHeight:"--typo-lh-b2-lg"}},b3:{base:{fontSize:"--typo-fs-b3-md",fontWeight:"--typo-fw-b3-md",lineHeight:"--typo-lh-b3-md"},lg:{fontSize:"--typo-fs-b3-lg",fontWeight:"--typo-fw-b3-lg",lineHeight:"--typo-lh-b3-lg"}},caption:{base:{fontSize:"--typo-fs-caption-lg",fontWeight:"--typo-fw-caption-lg",lineHeight:"--typo-lh-caption-lg"}},"caption-caps":{base:{fontSize:"--typo-fs-caption-lg",fontWeight:"--typo-fw-caption-lg",lineHeight:"--typo-lh-caption-lg"},className:"uppercase"}};function K({className:t,variant:e="b2"}={}){const i=_[e];return O.cn(C,i.className,t)}function Q(t){return{vars:A(t.base),md:t.md?{vars:A(t.md)}:void 0,lg:t.lg?{vars:A(t.lg)}:void 0}}function X({color:t,fontSize:e,fontWeight:i,lineHeight:a,verticalAlign:n,horizontalAlign:p,textTransform:h,textDecoration:g,textOverflow:y,whiteSpace:d,wordBreak:m,italic:c,fontFamily:v,width:b,minWidth:u,maxWidth:w,height:S,minHeight:x,maxHeight:z,p:W,m:k,md:r,lg:s,xl:f}){return{vars:P({color:t,fontSize:e,fontWeight:i,lineHeight:a,verticalAlign:n,horizontalAlign:p,textTransform:h,textDecoration:g,textOverflow:y,whiteSpace:d,wordBreak:m,italic:c,fontFamily:v,width:b,minWidth:u,maxWidth:w,height:S,minHeight:x,maxHeight:z,p:W,m:k}),md:r?{vars:P(r)}:void 0,lg:s?{vars:P(s)}:void 0,xl:f?{vars:P(f)}:void 0}}function Z(t,e){const i=new Set(Object.keys(e.vars??{})),a={colors:t.colors,typography:t.typography,vars:t.vars};for(const n of O.responsiveBreakpoints){for(const y of Object.keys(e[n]?.vars??{}))i.add(y);const p=t[n];if(!p)continue;const h=Object.fromEntries(Object.entries(p.vars??{}).filter(([y])=>!i.has(y))),g={colors:p.colors,typography:p.typography,vars:Object.keys(h).length>0?h:void 0};(g.colors||g.typography||g.vars)&&(a[n]=g)}return a}function A(t){return{[o.fontSize]:`var(${t.fontSize})`,[o.fontWeight]:`var(${t.fontWeight})`,[o.letterSpacing]:0,[o.lineHeight]:`var(${t.lineHeight})`}}function P({color:t,fontSize:e,fontWeight:i,lineHeight:a,verticalAlign:n,horizontalAlign:p,textTransform:h,textDecoration:g,textOverflow:y,whiteSpace:d,wordBreak:m,italic:c,fontFamily:v,width:b,minWidth:u,maxWidth:w,height:S,minHeight:x,maxHeight:z,p:W,m:k}){const r={},s=e,f=i,V=a;return t!==void 0&&(r[o.color]=H.normalizeCssTokenValue(t)),s!==void 0&&(r[o.fontSize]=H.normalizeCssTokenValue(s)),f!==void 0&&(r[o.fontWeight]=H.normalizeCssTokenValue(f)),V!==void 0&&(r[o.lineHeight]=H.normalizeCssTokenValue(V)),n!==void 0&&(r[o.verticalAlign]=n),p!==void 0&&(r[o.textAlign]=p),h!==void 0&&(r[o.textTransform]=it(h)),g!==void 0&&(r[o.textDecoration]=rt(g)),y!==void 0&&(r[o.textOverflow]=y),d!==void 0&&(r[o.whiteSpace]=d),m!==void 0&&(r[o.wordBreak]=nt(m)),c!==void 0&&(r[o.fontStyle]=c?"italic":"normal"),v!==void 0&&(r[o.fontFamily]=H.normalizeCssTokenValue(v)),b!==void 0&&(r[o.width]=T(b)),u!==void 0&&(r[o.minWidth]=T(u)),w!==void 0&&(r[o.maxWidth]=T(w)),S!==void 0&&(r[o.height]=T(S)),x!==void 0&&(r[o.minHeight]=T(x)),z!==void 0&&(r[o.maxHeight]=T(z)),Object.assign(r,tt({p:W,m:k})),Object.keys(r).length>0?r:void 0}function T(t){return typeof t=="number"?`${t}px`:t}function tt({p:t,m:e}){const i={},a=ot(t),n=et(e);return a.top!==void 0&&(i[o.paddingTop]=l(a.top)),a.right!==void 0&&(i[o.paddingRight]=l(a.right)),a.bottom!==void 0&&(i[o.paddingBottom]=l(a.bottom)),a.left!==void 0&&(i[o.paddingLeft]=l(a.left)),n.top!==void 0&&(i[o.marginTop]=l(n.top)),n.right!==void 0&&(i[o.marginRight]=l(n.right)),n.bottom!==void 0&&(i[o.marginBottom]=l(n.bottom)),n.left!==void 0&&(i[o.marginLeft]=l(n.left)),i}function ot(t){if(t===void 0)return{};if(Array.isArray(t)){const[i,a,n,p]=t;return{top:i,right:a,bottom:n,left:p}}if(typeof t!="object")return{top:t,right:t,bottom:t,left:t};const e=t;return{top:e.py??e.pt,right:e.px??e.pr,bottom:e.py??e.pb,left:e.px??e.pl}}function et(t){if(t===void 0)return{};if(Array.isArray(t)){const[i,a,n,p]=t;return{top:i,right:a,bottom:n,left:p}}if(typeof t!="object")return{top:t,right:t,bottom:t,left:t};const e=t;return{top:e.my??e.mt,right:e.mx??e.mr,bottom:e.my??e.mb,left:e.mx??e.ml}}function l(t){return typeof t=="number"?`${t}px`:t}function it(t){return t==="normal-case"?"none":t}function rt(t){return t==="no-underline"?"none":t}function nt(t){return{all:"break-all",keep:"keep-all",normal:"normal",word:"break-word"}[t]}function at({as:t,children:e,className:i,color:a,fontSize:n,fontWeight:p,lineHeight:h,verticalAlign:g,horizontalAlign:y,textTransform:d,textDecoration:m,textOverflow:c,whiteSpace:v,wordBreak:b,italic:u,fontFamily:w,width:S,minWidth:x,maxWidth:z,height:W,minHeight:k,maxHeight:r,p:s,m:f,md:V,lg:$,xl:L,style:B,variant:Y="b2",...D}){const E=t??"p",j=_[Y],F=Q(j),N=X({color:a,fontSize:n,fontWeight:p,lineHeight:h,verticalAlign:g,horizontalAlign:y,textTransform:d,textDecoration:m,textOverflow:c,whiteSpace:v,wordBreak:b,italic:u,fontFamily:w,width:S,minWidth:x,maxWidth:z,height:W,minHeight:k,maxHeight:r,p:s,m:f,md:V,lg:$,xl:L}),q=Z(F,N),G=H.mergeResponsiveStyleProps(q,N),R=J(G),I=R.style||B?{...R.style,...B}:void 0;return M.jsx(E,{className:O.cn(C,j.className,R.className,i),style:I,...D,children:e})}exports.Typography=at;exports.typographyVariants=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("react/jsx-runtime"),A=require("./responsive-style.config-B2m9jVlX.cjs"),d=require("./responsive-style.utils-BdyoDkKg.cjs"),$="text-[length:var(--typography-font-size)] font-[var(--typography-font-weight)] leading-[var(--typography-line-height)] text-[var(--typography-color,var(--color-text-primary))] tracking-[var(--typography-letter-spacing)] [display:var(--typography-display)] [font-family:var(--typography-font-family,var(--font-family))] [font-style:var(--typography-font-style)] [height:var(--typography-height)] [margin-bottom:var(--typography-margin-bottom,0)] [margin-left:var(--typography-margin-left,0)] [margin-right:var(--typography-margin-right,0)] [margin-top:var(--typography-margin-top,0)] [max-height:var(--typography-max-height)] [max-width:var(--typography-max-width)] [min-height:var(--typography-min-height)] [min-width:var(--typography-min-width)] [overflow:var(--typography-overflow)] [padding-bottom:var(--typography-padding-bottom,0)] [padding-left:var(--typography-padding-left,0)] [padding-right:var(--typography-padding-right,0)] [padding-top:var(--typography-padding-top,0)] [text-align:var(--typography-text-align)] [text-decoration:var(--typography-text-decoration)] [text-overflow:var(--typography-text-overflow)] [text-transform:var(--typography-text-transform)] [vertical-align:var(--typography-vertical-align)] [white-space:var(--typography-white-space)] [width:var(--typography-width)] [word-break:var(--typography-word-break)] [-webkit-box-orient:var(--typography-webkit-box-orient)] [-webkit-line-clamp:var(--typography-webkit-line-clamp)]",t={color:"--typography-color",display:"--typography-display",fontSize:"--typography-font-size",fontFamily:"--typography-font-family",fontStyle:"--typography-font-style",fontWeight:"--typography-font-weight",height:"--typography-height",letterSpacing:"--typography-letter-spacing",lineHeight:"--typography-line-height",marginBottom:"--typography-margin-bottom",marginLeft:"--typography-margin-left",marginRight:"--typography-margin-right",marginTop:"--typography-margin-top",maxHeight:"--typography-max-height",maxWidth:"--typography-max-width",minHeight:"--typography-min-height",minWidth:"--typography-min-width",overflow:"--typography-overflow",paddingBottom:"--typography-padding-bottom",paddingLeft:"--typography-padding-left",paddingRight:"--typography-padding-right",paddingTop:"--typography-padding-top",textAlign:"--typography-text-align",textDecoration:"--typography-text-decoration",textOverflow:"--typography-text-overflow",textTransform:"--typography-text-transform",verticalAlign:"--typography-vertical-align",whiteSpace:"--typography-white-space",width:"--typography-width",wordBreak:"--typography-word-break",webkitBoxOrient:"--typography-webkit-box-orient",webkitLineClamp:"--typography-webkit-line-clamp"},Q={[t.color]:"color",[t.display]:"display",[t.fontSize]:"font-size",[t.fontFamily]:"font-family",[t.fontStyle]:"font-style",[t.fontWeight]:"font-weight",[t.height]:"height",[t.letterSpacing]:"letter-spacing",[t.lineHeight]:"line-height",[t.marginBottom]:"margin-bottom",[t.marginLeft]:"margin-left",[t.marginRight]:"margin-right",[t.marginTop]:"margin-top",[t.maxHeight]:"max-height",[t.maxWidth]:"max-width",[t.minHeight]:"min-height",[t.minWidth]:"min-width",[t.overflow]:"overflow",[t.paddingBottom]:"padding-bottom",[t.paddingLeft]:"padding-left",[t.paddingRight]:"padding-right",[t.paddingTop]:"padding-top",[t.textAlign]:"text-align",[t.textDecoration]:"text-decoration",[t.textOverflow]:"text-overflow",[t.textTransform]:"text-transform",[t.verticalAlign]:"vertical-align",[t.whiteSpace]:"white-space",[t.width]:"width",[t.wordBreak]:"word-break",[t.webkitBoxOrient]:"-webkit-box-orient",[t.webkitLineClamp]:"-webkit-line-clamp"};function X(o){const e=[],r={...o.vars??{}};for(const n of A.responsiveBreakpoints)for(const[a,p]of Object.entries(o[n]?.vars??{})){const h=Q[a];if(!h||p===void 0||p===null)continue;const g=`--${n}-${a.slice(2)}`;r[g]=p,e.push(`${n}:[${h}:var(${g})]`)}return{className:e.join(" "),style:Object.keys(r).length>0?r:void 0}}const Y={h1:{base:{fontSize:"--typo-fs-h1-sm",fontWeight:"--typo-fw-h1-sm",lineHeight:"--typo-lh-h1-sm"},md:{fontSize:"--typo-fs-h1-md",fontWeight:"--typo-fw-h1-md",lineHeight:"--typo-lh-h1-md"},lg:{fontSize:"--typo-fs-h1-lg",fontWeight:"--typo-fw-h1-lg",lineHeight:"--typo-lh-h1-lg"}},h2:{base:{fontSize:"--typo-fs-h2-md",fontWeight:"--typo-fw-h2-md",lineHeight:"--typo-lh-h2-md"},lg:{fontSize:"--typo-fs-h2-lg",fontWeight:"--typo-fw-h2-lg",lineHeight:"--typo-lh-h2-lg"}},h3:{base:{fontSize:"--typo-fs-h3-md",fontWeight:"--typo-fw-h3-md",lineHeight:"--typo-lh-h3-md"},md:{fontSize:"--typo-fs-h3-lg",fontWeight:"--typo-fw-h3-lg",lineHeight:"--typo-lh-h3-lg"}},h4:{base:{fontSize:"--typo-fs-h4-md",fontWeight:"--typo-fw-h4-md",lineHeight:"--typo-lh-h4-md"},lg:{fontSize:"--typo-fs-h4-lg",fontWeight:"--typo-fw-h4-lg",lineHeight:"--typo-lh-h4-lg"}},sh:{base:{fontSize:"--typo-fs-h4-lg",fontWeight:"--typo-fw-h4-lg",lineHeight:"--typo-lh-h4-lg"}},b1:{base:{fontSize:"--typo-fs-b1-md",fontWeight:"--typo-fw-b1-md",lineHeight:"--typo-lh-b1-md"},lg:{fontSize:"--typo-fs-b1-lg",fontWeight:"--typo-fw-b1-lg",lineHeight:"--typo-lh-b1-lg"}},b2:{base:{fontSize:"--typo-fs-b2-md",fontWeight:"--typo-fw-b2-md",lineHeight:"--typo-lh-b2-md"},lg:{fontSize:"--typo-fs-b2-lg",fontWeight:"--typo-fw-b2-lg",lineHeight:"--typo-lh-b2-lg"}},b3:{base:{fontSize:"--typo-fs-b3-md",fontWeight:"--typo-fw-b3-md",lineHeight:"--typo-lh-b3-md"},lg:{fontSize:"--typo-fs-b3-lg",fontWeight:"--typo-fw-b3-lg",lineHeight:"--typo-lh-b3-lg"}},caption:{base:{fontSize:"--typo-fs-caption-lg",fontWeight:"--typo-fw-caption-lg",lineHeight:"--typo-lh-caption-lg"}},"caption-caps":{base:{fontSize:"--typo-fs-caption-lg",fontWeight:"--typo-fw-caption-lg",lineHeight:"--typo-lh-caption-lg"},className:"uppercase"}};function Z({className:o,variant:e="b2"}={}){const r=Y[e];return A.cn($,r.className,o)}function tt(o){return{vars:C(o.base),md:o.md?{vars:C(o.md)}:void 0,lg:o.lg?{vars:C(o.lg)}:void 0}}function ot({color:o,fontSize:e,fontWeight:r,letterSpacing:n,lineHeight:a,lineClamp:p,verticalAlign:h,horizontalAlign:g,textTransform:y,textDecoration:m,textOverflow:c,truncate:W,whiteSpace:v,wordBreak:b,italic:w,fontFamily:u,width:x,minWidth:S,maxWidth:k,height:z,minHeight:T,maxHeight:H,p:V,m:B,md:i,lg:s,xl:f}){return{vars:R({color:o,fontSize:e,fontWeight:r,letterSpacing:n,lineHeight:a,lineClamp:p,verticalAlign:h,horizontalAlign:g,textTransform:y,textDecoration:m,textOverflow:c,truncate:W,whiteSpace:v,wordBreak:b,italic:w,fontFamily:u,width:x,minWidth:S,maxWidth:k,height:z,minHeight:T,maxHeight:H,p:V,m:B}),md:i?{vars:R(i)}:void 0,lg:s?{vars:R(s)}:void 0,xl:f?{vars:R(f)}:void 0}}function et(o,e){const r=new Set(Object.keys(e.vars??{})),n={colors:o.colors,typography:o.typography,vars:o.vars};for(const a of A.responsiveBreakpoints){for(const y of Object.keys(e[a]?.vars??{}))r.add(y);const p=o[a];if(!p)continue;const h=Object.fromEntries(Object.entries(p.vars??{}).filter(([y])=>!r.has(y))),g={colors:p.colors,typography:p.typography,vars:Object.keys(h).length>0?h:void 0};(g.colors||g.typography||g.vars)&&(n[a]=g)}return n}function C(o){return{[t.fontSize]:`var(${o.fontSize})`,[t.fontWeight]:`var(${o.fontWeight})`,[t.letterSpacing]:0,[t.lineHeight]:`var(${o.lineHeight})`}}function it(o){return typeof o=="number"?`${o}px`:String(d.normalizeCssTokenValue(o))}function rt({lineClamp:o,truncate:e}){return o!==void 0?o==="none"?{[t.display]:"revert",[t.overflow]:"visible",[t.textOverflow]:"clip",[t.whiteSpace]:"normal",[t.webkitBoxOrient]:"unset",[t.webkitLineClamp]:"unset"}:{[t.display]:"-webkit-box",[t.overflow]:"hidden",[t.textOverflow]:"clip",[t.whiteSpace]:"normal",[t.webkitBoxOrient]:"vertical",[t.webkitLineClamp]:Math.max(1,Math.floor(o))}:e!==void 0?{[t.display]:"revert",[t.overflow]:e?"hidden":"visible",[t.textOverflow]:e?"ellipsis":"clip",[t.whiteSpace]:e?"nowrap":"normal",[t.webkitBoxOrient]:"unset",[t.webkitLineClamp]:"unset"}:{}}function R({color:o,fontSize:e,fontWeight:r,letterSpacing:n,lineHeight:a,lineClamp:p,verticalAlign:h,horizontalAlign:g,textTransform:y,textDecoration:m,textOverflow:c,truncate:W,whiteSpace:v,wordBreak:b,italic:w,fontFamily:u,width:x,minWidth:S,maxWidth:k,height:z,minHeight:T,maxHeight:H,p:V,m:B}){const i={},s=e,f=r,P=a;return o!==void 0&&(i[t.color]=d.normalizeCssTokenValue(o)),s!==void 0&&(i[t.fontSize]=d.normalizeCssTokenValue(s)),f!==void 0&&(i[t.fontWeight]=d.normalizeCssTokenValue(f)),P!==void 0&&(i[t.lineHeight]=d.normalizeCssTokenValue(P)),n!==void 0&&(i[t.letterSpacing]=it(n)),Object.assign(i,rt({lineClamp:p,truncate:W})),h!==void 0&&(i[t.verticalAlign]=h),g!==void 0&&(i[t.textAlign]=g),y!==void 0&&(i[t.textTransform]=gt(y)),m!==void 0&&(i[t.textDecoration]=ht(m)),c!==void 0&&(i[t.textOverflow]=c),v!==void 0&&(i[t.whiteSpace]=v),b!==void 0&&(i[t.wordBreak]=yt(b)),w!==void 0&&(i[t.fontStyle]=w?"italic":"normal"),u!==void 0&&(i[t.fontFamily]=d.normalizeCssTokenValue(u)),x!==void 0&&(i[t.width]=O(x)),S!==void 0&&(i[t.minWidth]=O(S)),k!==void 0&&(i[t.maxWidth]=O(k)),z!==void 0&&(i[t.height]=O(z)),T!==void 0&&(i[t.minHeight]=O(T)),H!==void 0&&(i[t.maxHeight]=O(H)),Object.assign(i,nt({p:V,m:B})),Object.keys(i).length>0?i:void 0}function O(o){return typeof o=="number"?`${o}px`:o}function nt({p:o,m:e}){const r={},n=at(o),a=pt(e);return n.top!==void 0&&(r[t.paddingTop]=l(n.top)),n.right!==void 0&&(r[t.paddingRight]=l(n.right)),n.bottom!==void 0&&(r[t.paddingBottom]=l(n.bottom)),n.left!==void 0&&(r[t.paddingLeft]=l(n.left)),a.top!==void 0&&(r[t.marginTop]=l(a.top)),a.right!==void 0&&(r[t.marginRight]=l(a.right)),a.bottom!==void 0&&(r[t.marginBottom]=l(a.bottom)),a.left!==void 0&&(r[t.marginLeft]=l(a.left)),r}function at(o){if(o===void 0)return{};if(Array.isArray(o)){const[r,n,a,p]=o;return{top:r,right:n,bottom:a,left:p}}if(typeof o!="object")return{top:o,right:o,bottom:o,left:o};const e=o;return{top:e.py??e.pt,right:e.px??e.pr,bottom:e.py??e.pb,left:e.px??e.pl}}function pt(o){if(o===void 0)return{};if(Array.isArray(o)){const[r,n,a,p]=o;return{top:r,right:n,bottom:a,left:p}}if(typeof o!="object")return{top:o,right:o,bottom:o,left:o};const e=o;return{top:e.my??e.mt,right:e.mx??e.mr,bottom:e.my??e.mb,left:e.mx??e.ml}}function l(o){return typeof o=="number"?`${o}px`:o}function gt(o){return o==="normal-case"?"none":o}function ht(o){return o==="no-underline"?"none":o}function yt(o){return{all:"break-all",keep:"keep-all",normal:"normal",word:"break-word"}[o]}function lt({as:o,children:e,className:r,color:n,fontSize:a,fontWeight:p,letterSpacing:h,lineHeight:g,lineClamp:y,verticalAlign:m,horizontalAlign:c,textTransform:W,textDecoration:v,textOverflow:b,truncate:w,whiteSpace:u,wordBreak:x,italic:S,fontFamily:k,width:z,minWidth:T,maxWidth:H,height:V,minHeight:B,maxHeight:i,p:s,m:f,md:P,lg:D,xl:E,style:L,variant:M="b2",...F}){const q=o??"p",N=Y[M],G=tt(N),_=ot({color:n,fontSize:a,fontWeight:p,letterSpacing:h,lineHeight:g,lineClamp:y,verticalAlign:m,horizontalAlign:c,textTransform:W,textDecoration:v,textOverflow:b,truncate:w,whiteSpace:u,wordBreak:x,italic:S,fontFamily:k,width:z,minWidth:T,maxWidth:H,height:V,minHeight:B,maxHeight:i,p:s,m:f,md:P,lg:D,xl:E}),I=et(G,_),U=d.mergeResponsiveStyleProps(I,_),j=X(U),J=j.style||L?{...j.style,...L}:void 0;return K.jsx(q,{className:A.cn($,N.className,j.className,r),style:J,...F,children:e})}exports.Typography=lt;exports.typographyVariants=Z;