@bobbykim/manguito-theme 0.22.1 → 0.23.1
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.
- package/dist/core.cjs +2 -2
- package/dist/core.d.ts +518 -728
- package/dist/core.js +613 -570
- package/dist/mcl-theme.cjs +1 -1
- package/dist/mcl-theme.d.ts +1 -1
- package/dist/mcl-theme.js +76 -65
- package/package.json +12 -12
package/dist/mcl-theme.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function $(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var c={},h={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});function p(o,e){return{handler:o,config:e}}p.withOptions=function(o,e=()=>({})){const i=function(b){return{__options:b,handler:o(b),config:e(b)}};return i.__isOptionsFunction=!0,i.__pluginFunction=o,i.__configFunction=e,i};const s=p})(h);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o}});const p=s(h);function s(e){return e&&e.__esModule?e:{default:e}}const o=p.default})(c);let d=c;var S=(d.__esModule?d:{default:d}).default;const z=$(S),y=z.withOptions(()=>({addBase:n,theme:p,addComponents:s,addUtilities:o,e})=>{const i=p("colors"),b=Object.keys(i).reduce((l,t)=>{if(typeof i[t]=="string")return{...l,[`.mcl-list-${e(t)} li::before`]:{color:i[t]}};const a=Object.keys(i[t]);return{...l,...a.reduce((f,r)=>({...f,[`.mcl-list-${e(t)}-${r} li::before`]:{color:i[t][r]}}),{})}},{}),x=Object.keys(i).reduce((l,t)=>{if(["current","transparent","inherit"].includes(t))return;if(typeof i[t]=="string")return{...l,[`.mcl-link.text-${e(t)}`]:{"&:hover":{[`@apply text-${t}/60`]:{}}}};const f=Object.keys(i[t]);return{...l,...f.reduce((r,g)=>({...r,[`.mcl-link.text-${e(t)}-${g}`]:{"&:hover":{[`@apply text-${t}-${g}/60`]:{}}}}))}}),u=Object.keys(i).reduce((l,t)=>{if(typeof i[t]=="string")return{...l,[`.btn.btn-${e(t)}`]:{[`@apply bg-${t}`]:{},"&:hover":{"@apply bg-opacity-70":{}},"&:focus":{[`@apply ring-4 ring-${t}`]:{}}},[`.btn.btn-invert.btn-${e(t)}`]:{[`@apply border-2 bg-transparent border-${t} text-${t}`]:{},"&:hover":{[`@apply bg-${t} text-white bg-opacity-100`]:{}},"&:focus":{[`@apply bg-${t} text-white`]:{}}},[`.btn-group .btn.btn-${e(t)}`]:{"&:focus":{"@apply ring-0":{}}},[`.btn.btn-${e(t)}.btn-no-ring`]:{"&:focus":{"@apply ring-0":{}}},[`.btn.btn-progress.btn-${e(t)}`]:{[`@apply before:bg-${t} border-${t} text-${t} bg-transparent`]:{},"&:hover, &:focus":{"@apply text-white":{}}}};const a=Object.keys(i[t]);return{...l,...a.reduce((f,r)=>({...f,[`.btn.btn-${e(t)}-${r}`]:{[`@apply bg-${t}-${r}`]:{},"&:hover":{"@apply bg-opacity-70":{}},"&:focus":{[`@apply ring-4 ring-${t}-${r}`]:{}}},[`.btn.btn-invert.btn-${e(t)}-${r}`]:{[`@apply border-2 bg-white border-${t}-${r} text-${t}-${r}`]:{},"&:hover":{[`@apply bg-${t}-${r} text-white bg-opacity-100`]:{}},"&:focus":{[`@apply bg-${t}-${r} text-white`]:{}}},[`.btn-group .btn.btn-${e(t)}-${r}`]:{"&:focus":{"@apply ring-0":{}}},[`.btn.btn-progress.btn-${e(t)}-${r}`]:{[`@apply before:bg-${t}-${r} border-${t}-${r} text-${t}-${r} bg-transparent`]:{},"&:hover, &:focus":{"@apply text-white":{}}}}),{})}},{}),m=Object.keys(i).reduce((l,t)=>{if(typeof i[t]=="string")return{...l,[`.tooltip.tooltip-top.bg-${e(t)}`]:{[`@apply after:border-t-${t}`]:{}},[`.tooltip.tooltip-bottom.bg-${e(t)}`]:{[`@apply after:border-b-${t}`]:{}},[`.tooltip.tooltip-right.bg-${e(t)}`]:{[`@apply after:border-r-${t}`]:{}},[`.tooltip.tooltip-left.bg-${e(t)}`]:{[`@apply after:border-l-${t}`]:{}}};const a=Object.keys(i[t]);return{...l,...a.reduce((f,r)=>({...f,[`.tooltip.tooltip-top.bg-${e(t)}-${r}`]:{[`@apply after:border-t-${t}-${r}`]:{}},[`.tooltip.tooltip-bottom.bg-${e(t)}-${r}`]:{[`@apply after:border-b-${t}-${r}`]:{}},[`.tooltip.tooltip-right.bg-${e(t)}-${r}`]:{[`@apply after:border-r-${t}-${r}`]:{}},[`.tooltip.tooltip-left.bg-${e(t)}-${r}`]:{[`@apply after:border-l-${t}-${r}`]:{}}}))}},{});n({body:{fontSize:"1rem",lineHeight:"1.5"},h1:{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"48px"}},h2:{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"36px"}},h3:{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"20px"}},h4:{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"18px"}}}),s({".h1-sm":{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"36px"}},".h1-md":{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"48px"}},".h1-lg":{fontSize:"36px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"36px"},"@screen lg":{fontSize:"56px"}},".h1-xl":{fontSize:"56px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"56px"},"@screen lg":{fontSize:"72px"}},".h2-sm":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"24px"}},".h2-md":{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"36px"}},".h2-lg":{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"48px"}},".h2-xl":{fontSize:"48px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"48px"},"@screen lg":{fontSize:"60px"}},".h3-sm":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"16px"}},".h3-md":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"20px"}},".h3-lg":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"24px"}},".h3-xl":{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"36px"}},"h4-sm":{fontSize:"14px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"14px"},"@screen lg":{fontSize:"16px"}},"h4-md":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"18px"}},"h4-lg":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"20px"}},"h4-xl":{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"30px"}},".mcl-link":{color:p("colors.primary"),textDecoration:"underline","@apply transition-colors duration-200 ease-in":{},"&:hover":{"@apply text-primary/60":{}}},".mcl-list":{"list-style-position":"inside",padding:"0","margin-left":"1rem"},"ul .mcl-list":{"list-style":"none"},".mcl-list li":{"margin-bottom":"0.5rem"},".mcl-list li::before":{content:'"•"',"font-weight":"700",display:"inline-block",width:"1rem","margin-left":"-1rem"},".mcl-list.mcl-list-sm li::before":{"font-weight":"500"},".mcl-list.mcl-list-lg li::before":{"font-weight":"900"},".btn":{padding:"0.5rem 1rem",cursor:"pointer","font-size":"1rem",transition:"all 300ms linear",overflow:"hidden",display:"inline-block","font-weight":"bold","@apply outline-none ring-offset-white ring-offset-2 bg-primary text-center rounded":{},"&:hover":{"@apply bg-opacity-70":{}},"&:focus":{"@apply ring-4 ring-primary":{}}},".btn.btn-round":{"@apply rounded-full":{}},".btn.btn-full":{display:"block",width:"100%"},".btn.btn-sm":{padding:"0.25rem 0.5rem","font-size":"0.875rem"},".btn.btn-lg":{padding:"0.625rem 1.25rem","font-size":"1.125rem"},".btn-group":{"@apply inline-flex":{}},".btn-group.btn-group-span":{"@apply w-full":{}},".btn-group.btn-group-span .btn":{display:"block",width:"100%"},".btn-group .btn":{"@apply first:rounded-l last:rounded-r rounded-none ring-offset-0":{},"&:focus":{"@apply ring-0":{}}},".btn.btn-no-ring":{"@apply ring-offset-0":{},"&:focus":{"@apply ring-0":{}}},".btn.btn-invert":{"@apply border-2 border-primary text-primary bg-white":{},"&:hover":{"@apply bg-primary text-white bg-opacity-100":{}}},".btn.btn-progress":{position:"relative","&::before":{content:'""',position:"absolute",height:"100%",width:"0",bottom:"0",left:"0",transition:"width 300ms linear"},"@apply before:bg-primary border-2 border-primary text-primary bg-transparent":{}},".btn.btn-progress > *":{position:"relative"},".btn.btn-progress.btn-progress-r":{"&::before":{left:"100%",transition:"all 300ms linear"}},".btn.btn-progress:hover, .btn.btn-progress:focus":{"@apply text-white":{},"&::before":{width:"100%"}},".btn.btn-progress.btn-progress-r:hover, .btn.btn-progress.btn-progress-r:focus":{"&::before":{width:"100%",left:"0"}},".tooltip":{"@apply font-normal text-sm transition-opacity duration-200 p-2xs absolute rounded text-center drop-shadow-md":{}},".tooltip.tooltip-top":{left:"50%",bottom:"110%",transform:"translateX(-50%)","&::after":{content:'" "',position:"absolute",top:"100%",left:"50%","margin-left":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-t-dark-3 after:border-x-transparent after:border-b-transparent":{}},".tooltip.tooltip-bottom":{left:"50%",top:"110%",transform:"translateX(-50%)","&::after":{content:'" "',position:"absolute",bottom:"100%",left:"50%","margin-left":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-t-transparent after:border-x-transparent after:border-b-dark-3":{}},".tooltip.tooltip-left":{top:"50%",right:"110%",transform:"translateY(-50%)","&::after":{content:'" "',position:"absolute",top:"50%",left:"100%","margin-top":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-y-transparent after:border-r-transparent after:border-l-dark-3":{}},".tooltip.tooltip-right":{top:"50%",left:"110%",transform:"translateY(-50%)","&::after":{content:'" "',position:"absolute",top:"50%",right:"100%","margin-top":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-y-transparent after:border-l-transparent after:border-r-dark-3":{}}}),o(b),o(u),o(x),o(m)},(n={})=>{const p={primary:"#ec489a",secondary:"#00feda",success:"#78be20",info:"#00a3e0",warning:"#f1ac18",danger:"#cc2f2f","light-1":"#fafafa","light-2":"#f1f1f1","light-3":"#e8e8e8","light-4":"#d0d0d0","dark-1":"#747474","dark-2":"#484848","dark-3":"#1f2937","dark-4":"#191919"},s={"3xs":"4px","2xs":"8px",xs:"16px",sm:"24px",md:"32px",lg:"48px",xl:"64px","2xl":"96px","3xl":"128px"};return Object.keys(p).forEach(o=>{n.colors!==void 0&&n.colors[o]!==void 0&&(p[o]=n.colors[o])}),Object.keys(s).forEach(o=>{n.spacing!==void 0&&n.spacing[o]!==void 0&&(s[o]=n.spacing[o])}),{theme:{fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},container:{center:!0,screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},extend:{colors:p,spacing:s}}}});exports.mclTheme=y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function y(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var g={},d={},h;function w(){return h||(h=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});function p(o,e){return{handler:o,config:e}}p.withOptions=function(o,e=()=>({})){const i=function(b){return{__options:b,handler:o(b),config:e(b)}};return i.__isOptionsFunction=!0,i.__pluginFunction=o,i.__configFunction=e,i};const s=p}(d)),d}var x;function _(){return x||(x=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o}});const p=s(w());function s(e){return e&&e.__esModule?e:{default:e}}const o=p.default}(g)),g}var c,m;function H(){if(m)return c;m=1;let n=_();return c=(n.__esModule?n:{default:n}).default,c}var O=H();const W=y(O),P=W.withOptions(()=>({addBase:n,theme:p,addComponents:s,addUtilities:o,e})=>{const i=p("colors"),b=Object.keys(i).reduce((l,t)=>{if(typeof i[t]=="string")return{...l,[`.mcl-list-${e(t)} li::before`]:{color:i[t]}};const f=Object.keys(i[t]);return{...l,...f.reduce((a,r)=>({...a,[`.mcl-list-${e(t)}-${r} li::before`]:{color:i[t][r]}}),{})}},{}),$=Object.keys(i).reduce((l,t)=>{if(["current","transparent","inherit"].includes(t))return;if(typeof i[t]=="string")return{...l,[`.mcl-link.text-${e(t)}`]:{"&:hover":{[`@apply text-${t}/60`]:{}}}};const a=Object.keys(i[t]);return{...l,...a.reduce((r,u)=>({...r,[`.mcl-link.text-${e(t)}-${u}`]:{"&:hover":{[`@apply text-${t}-${u}/60`]:{}}}}))}}),S=Object.keys(i).reduce((l,t)=>{if(typeof i[t]=="string")return{...l,[`.btn.btn-${e(t)}`]:{[`@apply bg-${t}`]:{},"&:hover":{"@apply bg-opacity-70":{}},"&:focus":{[`@apply ring-4 ring-${t}`]:{}}},[`.btn.btn-invert.btn-${e(t)}`]:{[`@apply border-2 bg-transparent border-${t} text-${t}`]:{},"&:hover":{[`@apply bg-${t} text-white bg-opacity-100`]:{}},"&:focus":{[`@apply bg-${t} text-white`]:{}}},[`.btn-group .btn.btn-${e(t)}`]:{"&:focus":{"@apply ring-0":{}}},[`.btn.btn-${e(t)}.btn-no-ring`]:{"&:focus":{"@apply ring-0":{}}},[`.btn.btn-progress.btn-${e(t)}`]:{[`@apply before:bg-${t} border-${t} text-${t} bg-transparent`]:{},"&:hover, &:focus":{"@apply text-white":{}}}};const f=Object.keys(i[t]);return{...l,...f.reduce((a,r)=>({...a,[`.btn.btn-${e(t)}-${r}`]:{[`@apply bg-${t}-${r}`]:{},"&:hover":{"@apply bg-opacity-70":{}},"&:focus":{[`@apply ring-4 ring-${t}-${r}`]:{}}},[`.btn.btn-invert.btn-${e(t)}-${r}`]:{[`@apply border-2 bg-white border-${t}-${r} text-${t}-${r}`]:{},"&:hover":{[`@apply bg-${t}-${r} text-white bg-opacity-100`]:{}},"&:focus":{[`@apply bg-${t}-${r} text-white`]:{}}},[`.btn-group .btn.btn-${e(t)}-${r}`]:{"&:focus":{"@apply ring-0":{}}},[`.btn.btn-progress.btn-${e(t)}-${r}`]:{[`@apply before:bg-${t}-${r} border-${t}-${r} text-${t}-${r} bg-transparent`]:{},"&:hover, &:focus":{"@apply text-white":{}}}}),{})}},{}),z=Object.keys(i).reduce((l,t)=>{if(typeof i[t]=="string")return{...l,[`.tooltip.tooltip-top.bg-${e(t)}`]:{[`@apply after:border-t-${t}`]:{}},[`.tooltip.tooltip-bottom.bg-${e(t)}`]:{[`@apply after:border-b-${t}`]:{}},[`.tooltip.tooltip-right.bg-${e(t)}`]:{[`@apply after:border-r-${t}`]:{}},[`.tooltip.tooltip-left.bg-${e(t)}`]:{[`@apply after:border-l-${t}`]:{}}};const f=Object.keys(i[t]);return{...l,...f.reduce((a,r)=>({...a,[`.tooltip.tooltip-top.bg-${e(t)}-${r}`]:{[`@apply after:border-t-${t}-${r}`]:{}},[`.tooltip.tooltip-bottom.bg-${e(t)}-${r}`]:{[`@apply after:border-b-${t}-${r}`]:{}},[`.tooltip.tooltip-right.bg-${e(t)}-${r}`]:{[`@apply after:border-r-${t}-${r}`]:{}},[`.tooltip.tooltip-left.bg-${e(t)}-${r}`]:{[`@apply after:border-l-${t}-${r}`]:{}}}))}},{});n({body:{fontSize:"1rem",lineHeight:"1.5"},h1:{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"48px"}},h2:{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"36px"}},h3:{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"20px"}},h4:{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"18px"}}}),s({".h1-sm":{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"36px"}},".h1-md":{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"48px"}},".h1-lg":{fontSize:"36px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"36px"},"@screen lg":{fontSize:"56px"}},".h1-xl":{fontSize:"56px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"56px"},"@screen lg":{fontSize:"72px"}},".h2-sm":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"24px"}},".h2-md":{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"36px"}},".h2-lg":{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"48px"}},".h2-xl":{fontSize:"48px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"48px"},"@screen lg":{fontSize:"60px"}},".h3-sm":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"16px"}},".h3-md":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"20px"}},".h3-lg":{fontSize:"18px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"18px"},"@screen lg":{fontSize:"24px"}},".h3-xl":{fontSize:"30px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"30px"},"@screen lg":{fontSize:"36px"}},"h4-sm":{fontSize:"14px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"14px"},"@screen lg":{fontSize:"16px"}},"h4-md":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"18px"}},"h4-lg":{fontSize:"16px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"16px"},"@screen lg":{fontSize:"20px"}},"h4-xl":{fontSize:"24px",fontWeight:"bold",lineHeight:"1.2","@screen md":{fontSize:"24px"},"@screen lg":{fontSize:"30px"}},".mcl-link":{color:p("colors.primary"),textDecoration:"underline","@apply transition-colors duration-200 ease-in":{},"&:hover":{"@apply text-primary/60":{}}},".mcl-list":{"list-style-position":"inside",padding:"0","margin-left":"1rem"},"ul .mcl-list":{"list-style":"none"},".mcl-list li":{"margin-bottom":"0.5rem"},".mcl-list li::before":{content:'"•"',"font-weight":"700",display:"inline-block",width:"1rem","margin-left":"-1rem"},".mcl-list.mcl-list-sm li::before":{"font-weight":"500"},".mcl-list.mcl-list-lg li::before":{"font-weight":"900"},".btn":{padding:"0.5rem 1rem",cursor:"pointer","font-size":"1rem",transition:"all 300ms linear",overflow:"hidden",display:"inline-block","font-weight":"bold","@apply outline-none ring-offset-white ring-offset-2 bg-primary text-center rounded":{},"&:hover":{"@apply bg-opacity-70":{}},"&:focus":{"@apply ring-4 ring-primary":{}}},".btn.btn-round":{"@apply rounded-full":{}},".btn.btn-full":{display:"block",width:"100%"},".btn.btn-sm":{padding:"0.25rem 0.5rem","font-size":"0.875rem"},".btn.btn-lg":{padding:"0.625rem 1.25rem","font-size":"1.125rem"},".btn-group":{"@apply inline-flex":{}},".btn-group.btn-group-span":{"@apply w-full":{}},".btn-group.btn-group-span .btn":{display:"block",width:"100%"},".btn-group .btn":{"@apply first:rounded-l last:rounded-r rounded-none ring-offset-0":{},"&:focus":{"@apply ring-0":{}}},".btn.btn-no-ring":{"@apply ring-offset-0":{},"&:focus":{"@apply ring-0":{}}},".btn.btn-invert":{"@apply border-2 border-primary text-primary bg-white":{},"&:hover":{"@apply bg-primary text-white bg-opacity-100":{}}},".btn.btn-progress":{position:"relative","&::before":{content:'""',position:"absolute",height:"100%",width:"0",bottom:"0",left:"0",transition:"width 300ms linear"},"@apply before:bg-primary border-2 border-primary text-primary bg-transparent":{}},".btn.btn-progress > *":{position:"relative"},".btn.btn-progress.btn-progress-r":{"&::before":{left:"100%",transition:"all 300ms linear"}},".btn.btn-progress:hover, .btn.btn-progress:focus":{"@apply text-white":{},"&::before":{width:"100%"}},".btn.btn-progress.btn-progress-r:hover, .btn.btn-progress.btn-progress-r:focus":{"&::before":{width:"100%",left:"0"}},".tooltip":{"@apply font-normal text-sm transition-opacity duration-200 p-2xs absolute rounded text-center drop-shadow-md":{}},".tooltip.tooltip-top":{left:"50%",bottom:"110%",transform:"translateX(-50%)","&::after":{content:'" "',position:"absolute",top:"100%",left:"50%","margin-left":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-t-dark-3 after:border-x-transparent after:border-b-transparent":{}},".tooltip.tooltip-bottom":{left:"50%",top:"110%",transform:"translateX(-50%)","&::after":{content:'" "',position:"absolute",bottom:"100%",left:"50%","margin-left":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-t-transparent after:border-x-transparent after:border-b-dark-3":{}},".tooltip.tooltip-left":{top:"50%",right:"110%",transform:"translateY(-50%)","&::after":{content:'" "',position:"absolute",top:"50%",left:"100%","margin-top":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-y-transparent after:border-r-transparent after:border-l-dark-3":{}},".tooltip.tooltip-right":{top:"50%",left:"110%",transform:"translateY(-50%)","&::after":{content:'" "',position:"absolute",top:"50%",right:"100%","margin-top":"-5px","border-width":"5px","border-style":"solid"},"@apply after:border-y-transparent after:border-l-transparent after:border-r-dark-3":{}}}),o(b),o(S),o($),o(z)},(n={})=>{const p={primary:"#ec489a",secondary:"#00feda",success:"#78be20",info:"#00a3e0",warning:"#f1ac18",danger:"#cc2f2f","light-1":"#fafafa","light-2":"#f1f1f1","light-3":"#e8e8e8","light-4":"#d0d0d0","dark-1":"#747474","dark-2":"#484848","dark-3":"#1f2937","dark-4":"#191919"},s={"3xs":"4px","2xs":"8px",xs:"16px",sm:"24px",md:"32px",lg:"48px",xl:"64px","2xl":"96px","3xl":"128px"};return Object.keys(p).forEach(o=>{n.colors!==void 0&&n.colors[o]!==void 0&&(p[o]=n.colors[o])}),Object.keys(s).forEach(o=>{n.spacing!==void 0&&n.spacing[o]!==void 0&&(s[o]=n.spacing[o])}),{theme:{fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px"},container:{center:!0,screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},extend:{colors:p,spacing:s}}}});exports.mclTheme=P;
|
package/dist/mcl-theme.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PluginCreator } from 'tailwindcss/types/config';
|
|
|
4
4
|
export declare const mclTheme: {
|
|
5
5
|
(options: Partial<Config> | undefined): {
|
|
6
6
|
handler: PluginCreator;
|
|
7
|
-
config?: Partial<Config
|
|
7
|
+
config?: Partial<Config>;
|
|
8
8
|
};
|
|
9
9
|
__isOptionsFunction: true;
|
|
10
10
|
};
|
package/dist/mcl-theme.js
CHANGED
|
@@ -1,54 +1,65 @@
|
|
|
1
|
-
function
|
|
1
|
+
function y(n) {
|
|
2
2
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
3
3
|
}
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
handler: o,
|
|
17
|
-
config: e
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
p.withOptions = function(o, e = () => ({})) {
|
|
21
|
-
const i = function(b) {
|
|
4
|
+
var g = {}, d = {}, h;
|
|
5
|
+
function w() {
|
|
6
|
+
return h || (h = 1, function(n) {
|
|
7
|
+
Object.defineProperty(n, "__esModule", {
|
|
8
|
+
value: !0
|
|
9
|
+
}), Object.defineProperty(n, "default", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: function() {
|
|
12
|
+
return s;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
function p(o, e) {
|
|
22
16
|
return {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
config: e(b)
|
|
17
|
+
handler: o,
|
|
18
|
+
config: e
|
|
26
19
|
};
|
|
27
|
-
};
|
|
28
|
-
return i.__isOptionsFunction = !0, i.__pluginFunction = o, i.__configFunction = e, i;
|
|
29
|
-
};
|
|
30
|
-
const s = p;
|
|
31
|
-
})(h);
|
|
32
|
-
(function(n) {
|
|
33
|
-
Object.defineProperty(n, "__esModule", {
|
|
34
|
-
value: !0
|
|
35
|
-
}), Object.defineProperty(n, "default", {
|
|
36
|
-
enumerable: !0,
|
|
37
|
-
get: function() {
|
|
38
|
-
return o;
|
|
39
20
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
21
|
+
p.withOptions = function(o, e = () => ({})) {
|
|
22
|
+
const i = function(b) {
|
|
23
|
+
return {
|
|
24
|
+
__options: b,
|
|
25
|
+
handler: o(b),
|
|
26
|
+
config: e(b)
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
return i.__isOptionsFunction = !0, i.__pluginFunction = o, i.__configFunction = e, i;
|
|
45
30
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
31
|
+
const s = p;
|
|
32
|
+
}(d)), d;
|
|
33
|
+
}
|
|
34
|
+
var x;
|
|
35
|
+
function _() {
|
|
36
|
+
return x || (x = 1, function(n) {
|
|
37
|
+
Object.defineProperty(n, "__esModule", {
|
|
38
|
+
value: !0
|
|
39
|
+
}), Object.defineProperty(n, "default", {
|
|
40
|
+
enumerable: !0,
|
|
41
|
+
get: function() {
|
|
42
|
+
return o;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const p = /* @__PURE__ */ s(w());
|
|
46
|
+
function s(e) {
|
|
47
|
+
return e && e.__esModule ? e : {
|
|
48
|
+
default: e
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const o = p.default;
|
|
52
|
+
}(g)), g;
|
|
53
|
+
}
|
|
54
|
+
var c, m;
|
|
55
|
+
function H() {
|
|
56
|
+
if (m) return c;
|
|
57
|
+
m = 1;
|
|
58
|
+
let n = _();
|
|
59
|
+
return c = (n.__esModule ? n : { default: n }).default, c;
|
|
60
|
+
}
|
|
61
|
+
var W = H();
|
|
62
|
+
const O = /* @__PURE__ */ y(W), P = O.withOptions(
|
|
52
63
|
() => ({ addBase: n, theme: p, addComponents: s, addUtilities: o, e }) => {
|
|
53
64
|
const i = p("colors"), b = Object.keys(i).reduce((l, t) => {
|
|
54
65
|
if (typeof i[t] == "string")
|
|
@@ -58,12 +69,12 @@ const z = /* @__PURE__ */ $(S), y = z.withOptions(
|
|
|
58
69
|
color: i[t]
|
|
59
70
|
}
|
|
60
71
|
};
|
|
61
|
-
const
|
|
72
|
+
const f = Object.keys(i[t]);
|
|
62
73
|
return {
|
|
63
74
|
...l,
|
|
64
|
-
...
|
|
65
|
-
(
|
|
66
|
-
...
|
|
75
|
+
...f.reduce(
|
|
76
|
+
(a, r) => ({
|
|
77
|
+
...a,
|
|
67
78
|
[`.mcl-list-${e(t)}-${r} li::before`]: {
|
|
68
79
|
color: i[t][r]
|
|
69
80
|
}
|
|
@@ -71,7 +82,7 @@ const z = /* @__PURE__ */ $(S), y = z.withOptions(
|
|
|
71
82
|
{}
|
|
72
83
|
)
|
|
73
84
|
};
|
|
74
|
-
}, {}),
|
|
85
|
+
}, {}), $ = Object.keys(i).reduce(
|
|
75
86
|
(l, t) => {
|
|
76
87
|
if (["current", "transparent", "inherit"].includes(t))
|
|
77
88
|
return;
|
|
@@ -84,20 +95,20 @@ const z = /* @__PURE__ */ $(S), y = z.withOptions(
|
|
|
84
95
|
}
|
|
85
96
|
}
|
|
86
97
|
};
|
|
87
|
-
const
|
|
98
|
+
const a = Object.keys(i[t]);
|
|
88
99
|
return {
|
|
89
100
|
...l,
|
|
90
|
-
...
|
|
101
|
+
...a.reduce((r, u) => ({
|
|
91
102
|
...r,
|
|
92
|
-
[`.mcl-link.text-${e(t)}-${
|
|
103
|
+
[`.mcl-link.text-${e(t)}-${u}`]: {
|
|
93
104
|
"&:hover": {
|
|
94
|
-
[`@apply text-${t}-${
|
|
105
|
+
[`@apply text-${t}-${u}/60`]: {}
|
|
95
106
|
}
|
|
96
107
|
}
|
|
97
108
|
}))
|
|
98
109
|
};
|
|
99
110
|
}
|
|
100
|
-
),
|
|
111
|
+
), S = Object.keys(i).reduce((l, t) => {
|
|
101
112
|
if (typeof i[t] == "string")
|
|
102
113
|
return {
|
|
103
114
|
...l,
|
|
@@ -136,12 +147,12 @@ const z = /* @__PURE__ */ $(S), y = z.withOptions(
|
|
|
136
147
|
}
|
|
137
148
|
}
|
|
138
149
|
};
|
|
139
|
-
const
|
|
150
|
+
const f = Object.keys(i[t]);
|
|
140
151
|
return {
|
|
141
152
|
...l,
|
|
142
|
-
...
|
|
143
|
-
(
|
|
144
|
-
...
|
|
153
|
+
...f.reduce(
|
|
154
|
+
(a, r) => ({
|
|
155
|
+
...a,
|
|
145
156
|
[`.btn.btn-${e(t)}-${r}`]: {
|
|
146
157
|
[`@apply bg-${t}-${r}`]: {},
|
|
147
158
|
"&:hover": {
|
|
@@ -175,7 +186,7 @@ const z = /* @__PURE__ */ $(S), y = z.withOptions(
|
|
|
175
186
|
{}
|
|
176
187
|
)
|
|
177
188
|
};
|
|
178
|
-
}, {}),
|
|
189
|
+
}, {}), z = Object.keys(i).reduce((l, t) => {
|
|
179
190
|
if (typeof i[t] == "string")
|
|
180
191
|
return {
|
|
181
192
|
...l,
|
|
@@ -192,11 +203,11 @@ const z = /* @__PURE__ */ $(S), y = z.withOptions(
|
|
|
192
203
|
[`@apply after:border-l-${t}`]: {}
|
|
193
204
|
}
|
|
194
205
|
};
|
|
195
|
-
const
|
|
206
|
+
const f = Object.keys(i[t]);
|
|
196
207
|
return {
|
|
197
208
|
...l,
|
|
198
|
-
...
|
|
199
|
-
...
|
|
209
|
+
...f.reduce((a, r) => ({
|
|
210
|
+
...a,
|
|
200
211
|
[`.tooltip.tooltip-top.bg-${e(t)}-${r}`]: {
|
|
201
212
|
[`@apply after:border-t-${t}-${r}`]: {}
|
|
202
213
|
},
|
|
@@ -551,7 +562,7 @@ const z = /* @__PURE__ */ $(S), y = z.withOptions(
|
|
|
551
562
|
},
|
|
552
563
|
"@apply after:border-y-transparent after:border-l-transparent after:border-r-dark-3": {}
|
|
553
564
|
}
|
|
554
|
-
}), o(b), o(
|
|
565
|
+
}), o(b), o(S), o($), o(z);
|
|
555
566
|
},
|
|
556
567
|
(n = {}) => {
|
|
557
568
|
const p = {
|
|
@@ -611,5 +622,5 @@ const z = /* @__PURE__ */ $(S), y = z.withOptions(
|
|
|
611
622
|
}
|
|
612
623
|
);
|
|
613
624
|
export {
|
|
614
|
-
|
|
625
|
+
P as mclTheme
|
|
615
626
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobbykim/manguito-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "main theme file for manguito components library. Other MCL components will need to import this file to run.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"build": "vite build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vueuse/core": "^
|
|
32
|
-
"vue": "^3.
|
|
31
|
+
"@vueuse/core": "^12.0.0",
|
|
32
|
+
"vue": "^3.5.13"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@vitejs/plugin-vue": "^
|
|
36
|
-
"sass": "^1.
|
|
37
|
-
"tailwindcss": "^3.
|
|
38
|
-
"typescript": "^5.
|
|
39
|
-
"vite": "^
|
|
40
|
-
"vite-plugin-css-injected-by-js": "^3.5.
|
|
41
|
-
"vite-plugin-dts": "^3.
|
|
42
|
-
"vue-tsc": "^1.
|
|
35
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
36
|
+
"sass": "^1.82.0",
|
|
37
|
+
"tailwindcss": "^3.4.16",
|
|
38
|
+
"typescript": "^5.7.2",
|
|
39
|
+
"vite": "^6.0.3",
|
|
40
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
41
|
+
"vite-plugin-dts": "^4.3.0",
|
|
42
|
+
"vue-tsc": "^2.1.10"
|
|
43
43
|
},
|
|
44
44
|
"author": {
|
|
45
45
|
"name": "Bobby Kim",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"url": "https://github.com/bobbykim89/manguito-component-library.git"
|
|
52
52
|
},
|
|
53
53
|
"license": "MIT",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "afe5374be029e87ef182b284589763b138e7f100"
|
|
55
55
|
}
|