@devup-ui/webpack-plugin 0.1.28 → 0.1.30

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.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@devup-ui/wasm"),t=function(){this.callback(null,e.getCss())};exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("node:path"),o=function(e){this.addContextDependency(t.resolve(this.rootContext,"src")),this.callback(null,e)};exports.default=o;
@@ -1 +1 @@
1
- {"version":3,"file":"css-loader.d.ts","sourceRoot":"","sources":["../src/css-loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAE1D,QAAA,MAAM,gBAAgB,EAAE,2BAEvB,CAAA;AACD,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"css-loader.d.ts","sourceRoot":"","sources":["../src/css-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAE1D,QAAA,MAAM,gBAAgB,EAAE,2BAGvB,CAAA;AACD,eAAe,gBAAgB,CAAA"}
@@ -1,7 +1,7 @@
1
- import { getCss as s } from "@devup-ui/wasm";
2
- const o = function() {
3
- this.callback(null, s());
1
+ import { resolve as e } from "node:path";
2
+ const s = function(t) {
3
+ this.addContextDependency(e(this.rootContext, "src")), this.callback(null, t);
4
4
  };
5
5
  export {
6
- o as default
6
+ s as default
7
7
  };
package/dist/devup-ui.css CHANGED
@@ -1,6 +1,6 @@
1
1
  :root[data-theme=light]{--menuActive:#EAE8FC;--success:#4CAF50;--background:#FFFFFF;--link:#006BFF;--cardBg:#F8F8F8;--buttonBlue:#266CCD;--third:#918AE9;--buttonBlueHover:#1453AC;--search:#9C50FF;--primary:#6159D4;--joinBg:#CDE2FA;--shadow:#87878740;--footerText:#51575F;--info:#2196F3;--secondary:#85A5F2;--captionBold:#878594;--base:#FFFFFF;--buttonBlueActive:#19498B;--negativeBase:#000000;--footerTitle:#A3A4B4;--footerBg:#E6E7ED;--text:#2F2F2F;--containerBackground:#FFFFFF;--title:#1A1A1A;--caption:#A9A8B4;--menuHover:#F6F4FF;--textReverse:#FFFFFF;--warning:#FF9800;--border:#E0E0E0;--error:#F44336;--codeBg:#3E3B41;}
2
2
  :root{--footerTitle:#A3A4B4;--shadow:#62626240;--secondary:#2A4586;--menuHover:#3C404B;--menuActive:#283259;--link:#006BFF;--primary:#737FE4;--buttonBlue:#0867AF;--text:#EDEDED;--footerBg:#2E303C;--warning:#FF9800;--title:#FAFAFA;--buttonBlueActive:#19498B;--captionBold:#878594;--background:#131313;--codeBg:#2E303C;--joinBg:#2F363E;--textReverse:#2F2F2F;--error:#F44336;--containerBackground:#1E1E1E;--cardBg:#28272B;--buttonBlueHover:#1453AC;--border:#333333;--third:#737FE4;--footerText:#FFFFFF;--success:#4CAF50;--info:#2196F3;--search:#6FA4FF;--base:#000000;--negativeBase:#FFFFFF;--caption:#787878;}
3
3
  .typo-body{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}.typo-bodyReg{font-family:Pretendard;font-size:16px;font-weight:400;line-height:1.5;letter-spacing:-0.03em}.typo-buttonL{font-family:Pretendard;font-size:17px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLbold{font-family:Pretendard;font-size:17px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLsemiB{font-family:Pretendard;font-size:17px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonM{font-family:Pretendard;font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonS{font-family:Pretendard;font-size:14px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-buttonSmid{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}.typo-caption{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-captionBold{font-family:Pretendard;font-size:14px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-code{font-family:D2Coding;font-size:13px;font-weight:700;line-height:1.5;letter-spacing:-0.03em}.typo-footerMenu{font-family:Pretendard;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-h1{font-family:Pretendard;font-size:38px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h2{font-family:Pretendard;font-size:36px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h3{font-family:Pretendard;font-size:32px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h4{font-family:Pretendard;font-size:28px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h5{font-family:Pretendard;font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6{font-family:Pretendard;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6Reg{font-family:Pretendard;font-size:18px;font-weight:400;line-height:1.3;letter-spacing:-0.03em}.typo-small{font-family:Pretendard;font-size:11px;font-weight:300;line-height:1.3;letter-spacing:-0.03em}.typo-smallBold{font-family:Pretendard;font-size:12px;font-weight:800;line-height:1.4;letter-spacing:-0.03em}.typo-textL{font-family:Pretendard;font-size:16px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}.typo-textS{font-family:Pretendard;font-size:15px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-textSbold{font-family:Pretendard;font-size:15px;font-weight:700;line-height:1.4;letter-spacing:-0.03em}
4
- @media (min-width:1280px){.typo-body{font-family:Pretendard;font-size:16px;font-weight:500;line-height:1.5;letter-spacing:-0.03em}.typo-buttonL{font-family:Pretendard;font-size:20px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLbold{font-family:Pretendard;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLsemiB{font-family:Pretendard;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonM{font-family:Pretendard;font-size:17px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonS{font-family:Pretendard;font-size:15px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonSmid{font-family:Pretendard;font-size:15px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}.typo-code{font-family:D2Coding;font-size:15px;font-weight:700;line-height:1.5;letter-spacing:-0.03em}.typo-footerMenu{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-h1{font-family:Pretendard;font-size:52px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h2{font-family:Pretendard;font-size:48px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h3{font-family:Pretendard;font-size:42px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h4{font-family:Pretendard;font-size:36px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h5{font-family:Pretendard;font-size:30px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6{font-family:Pretendard;font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6Reg{font-family:Pretendard;font-size:24px;font-weight:400;line-height:1.3;letter-spacing:-0.03em}.typo-small{font-family:Pretendard;font-size:12px;font-weight:400;line-height:1.4;letter-spacing:-0.03em}.typo-textL{font-family:Pretendard;font-size:18px;font-weight:500;line-height:1.5;letter-spacing:-0.03em}}.d8{align-items:center}.d6{display:flex}.d36{display:grid}.d7{flex-direction:column}.d135{justify-content:center}.d8{align-items:center}.d177{align-items:end}.d179{align-items:flex-end}.d172{background:#eccafa}.d180{background:var(--background)}.d17{background:var(--base)}.d114{background:var(--border)}.d85{background:var(--buttonBlue)}.d59{background:var(--cardBg)}.d100{background:var(--codeBg)}.d0{background:var(--containerBackground)}.d78{background:var(--footerBg)}.d131{background:var(--menuActive)}.d146{background:var(--menuHover)}.d103{background:var(--primary)}.d13{background:var(--secondary)}.d24{background:var(--text)}.d143{background:transparent}.d89{background-color:var(--joinBg)}.d90{background-image:var(--d91)}.d144{border:none}.d14{border-radius:100%}.d25{border-radius:100px}.d181{border-radius:16px}.d60{border-radius:20px}.d92{border-radius:40px 40px 0px 40px}.d104{border-radius:50%}.d132{border-radius:6px}.d147{border-radius:8px}.d190{border-right:1px solid var(--border, #E0E0E0)}.d167{border-top:1px solid var(--border, #E0E0E0)}.d182{box-shadow:0px 0px 6px 0px rgba(0, 0, 0, 0.18)}.d157{box-shadow:0px 2px 8px 0px var(--shadow, rgba(135, 135, 135, 0.25))}.d15{width:10px;height:10px;}.d186{width:16px;height:16px;}.d18{width:24px;height:24px;}.d57{width:32px;height:32px;}.d105{width:6px;height:6px;}.d175{width:80px;height:80px;}.d128{width:8px;height:8px;}.d82{color:#FFF}.d16{color:var(--base)}.d119{color:var(--caption)}.d63{color:var(--footerText)}.d62{color:var(--footerTitle)}.d107{color:var(--primary)}.d1{color:var(--text)}.d4{color:var(--title)}.d110{cursor:pointer}.d6{display:flex}.d125{display:none}.d54{flex:1}.d7{flex-direction:column}.d21{gap:10px}.d176{gap:12px}.d64{gap:14px}.d35{gap:16px}.d26{gap:20px}.d9{gap:24px}.d39{gap:40px}.d65{gap:4px}.d28{gap:50px}.d102{gap:6px}.d138{gap:8px}.d37{grid-template-columns:1fr}.d134{height:100%}.d115{height:1px}.d136{height:20px}.d140{height:28px}.d93{height:380px}.d2{height:50px}.d173{height:64px}.d68{justify-content:space-between}.d168{left:0px}.d123{margin-left:16px}.d178{margin-top:24px}.d19{mask-image:var(--d20)}.d169{max-height:calc(100vh - 50px)}.d159{max-width:100%}.d31{max-width:1224px}.d40{max-width:1232px}.d77{max-width:1280px}.d56{max-width:1440px}.d29{max-width:800px}.d30{margin-left:auto;margin-right:auto;}.d109{opacity:0.6}.d108{opacity:0.8}.d129{opacity:1}.d145{outline:none}.d183{overflow:hidden}.d97{overflow-x:auto}.d166{overflow-y:auto}.d127{padding:10px}.d27{padding:16px 40px}.d98{padding:20px}.d52{padding:20px 16px}.d101{padding:20px 30px}.d61{padding:24px}.d50{padding:40px 60px}.d112{padding:4px 10px}.d111{padding:4px 10px 4px 30px}.d133{padding:6px 10px}.d148{padding:8px 8px 6px}.d32{padding-bottom:100px}.d41{padding-bottom:16px}.d184{padding-bottom:24px}.d48{padding-top:100px}.d44{padding-top:16px}.d74{padding-top:20px}.d95{padding-top:40px}.d33{padding-top:80px}.d174{position:absolute}.d149{position:fixed}.d185{position:relative}.d150{position:sticky}.d122{padding-left:10px;padding-right:10px;}.d34{padding-left:12px;padding-right:12px;}.d46{padding-left:16px;padding-right:16px;}.d124{padding-left:24px;padding-right:24px;}.d55{padding-left:60px;padding-right:60px;}.d58{padding-left:8px;padding-right:8px;}.d164{padding-top:10px;padding-bottom:10px;}.d79{padding-top:30px;padding-bottom:30px;}.d47{padding-top:40px;padding-bottom:40px;}.d165{padding-top:4px;padding-bottom:4px;}.d113{padding-top:6px;padding-bottom:6px;}.d5{text-align:center}.d120{text-align:right}.d10{text-decoration:none}.d153{top:0px}.d170{top:50px}.d188{transform:rotate(-90deg)}.d187{transform:rotate(0deg)}.d154{transition:all, 0.2s}.d189{transition:transform 0.2s}.d99{width:100%}.d51{width:1014px}.d191{width:10px}.d69{width:164px}.d121{width:200px}.d53{width:220px}.d3{width:52px}.d155{z-index:1}.d171{z-index:100}.d142::placeholder{color:var(--caption)}.d84:hover{background:var(--buttonBlueHover)}.d130:hover{background:var(--menuHover)}.d23:hover{background:var(--title)}.d117:hover{text-decoration:underline}.d116:hover{text-decoration-color:var(--text)}.d83:active{background:var(--buttonBlueActive)}.d22:active{background:var(--negativeBase)}*[role=group]:hover .d12{background:var(--primary)}*[role=group]:hover .d118{color:var(--text)}*[role=group]:hover .d106{opacity:0.8}*[role=group]:active .d11{background:var(--third)}
4
+ @media (min-width:1280px){.typo-body{font-family:Pretendard;font-size:16px;font-weight:500;line-height:1.5;letter-spacing:-0.03em}.typo-buttonL{font-family:Pretendard;font-size:20px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLbold{font-family:Pretendard;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLsemiB{font-family:Pretendard;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonM{font-family:Pretendard;font-size:17px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonS{font-family:Pretendard;font-size:15px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonSmid{font-family:Pretendard;font-size:15px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}.typo-code{font-family:D2Coding;font-size:15px;font-weight:700;line-height:1.5;letter-spacing:-0.03em}.typo-footerMenu{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-h1{font-family:Pretendard;font-size:52px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h2{font-family:Pretendard;font-size:48px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h3{font-family:Pretendard;font-size:42px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h4{font-family:Pretendard;font-size:36px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h5{font-family:Pretendard;font-size:30px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6{font-family:Pretendard;font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6Reg{font-family:Pretendard;font-size:24px;font-weight:400;line-height:1.3;letter-spacing:-0.03em}.typo-small{font-family:Pretendard;font-size:12px;font-weight:400;line-height:1.4;letter-spacing:-0.03em}.typo-textL{font-family:Pretendard;font-size:18px;font-weight:500;line-height:1.5;letter-spacing:-0.03em}}.d8{align-items:center}.d6{display:flex}.d36{display:grid}.d7{flex-direction:column}.d135{justify-content:center}.d8{align-items:center}.d177{align-items:end}.d179{align-items:flex-end}.d172{background:#eccafa}.d180{background:var(--background)}.d17{background:var(--base)}.d113{background:var(--border)}.d90{background:var(--buttonBlue)}.d59{background:var(--cardBg)}.d85{background:var(--codeBg)}.d0{background:var(--containerBackground)}.d78{background:var(--footerBg)}.d131{background:var(--menuActive)}.d146{background:var(--menuHover)}.d102{background:var(--primary)}.d13{background:var(--secondary)}.d24{background:var(--text)}.d143{background:transparent}.d94{background-color:var(--joinBg)}.d95{background-image:var(--d96)}.d144{border:none}.d14{border-radius:100%}.d25{border-radius:100px}.d181{border-radius:16px}.d60{border-radius:20px}.d97{border-radius:40px 40px 0px 40px}.d103{border-radius:50%}.d132{border-radius:6px}.d147{border-radius:8px}.d190{border-right:1px solid var(--border, #E0E0E0)}.d167{border-top:1px solid var(--border, #E0E0E0)}.d182{box-shadow:0px 0px 6px 0px rgba(0, 0, 0, 0.18)}.d157{box-shadow:0px 2px 8px 0px var(--shadow, rgba(135, 135, 135, 0.25))}.d15{width:10px;height:10px;}.d186{width:16px;height:16px;}.d18{width:24px;height:24px;}.d57{width:32px;height:32px;}.d104{width:6px;height:6px;}.d175{width:80px;height:80px;}.d128{width:8px;height:8px;}.d81{color:#FFF}.d16{color:var(--base)}.d118{color:var(--caption)}.d63{color:var(--footerText)}.d62{color:var(--footerTitle)}.d106{color:var(--primary)}.d1{color:var(--text)}.d4{color:var(--title)}.d109{cursor:pointer}.d6{display:flex}.d125{display:none}.d54{flex:1}.d7{flex-direction:column}.d21{gap:10px}.d176{gap:12px}.d64{gap:14px}.d35{gap:16px}.d26{gap:20px}.d9{gap:24px}.d39{gap:40px}.d65{gap:4px}.d28{gap:50px}.d121{gap:6px}.d138{gap:8px}.d37{grid-template-columns:1fr}.d134{height:100%}.d114{height:1px}.d136{height:20px}.d140{height:28px}.d98{height:380px}.d2{height:50px}.d173{height:64px}.d68{justify-content:space-between}.d168{left:0px}.d123{margin-left:16px}.d178{margin-top:24px}.d19{mask-image:var(--d20)}.d169{max-height:calc(100vh - 50px)}.d159{max-width:100%}.d31{max-width:1224px}.d40{max-width:1232px}.d77{max-width:1280px}.d56{max-width:1440px}.d29{max-width:800px}.d30{margin-left:auto;margin-right:auto;}.d108{opacity:0.6}.d107{opacity:0.8}.d129{opacity:1}.d145{outline:none}.d183{overflow:hidden}.d82{overflow-x:auto}.d166{overflow-y:auto}.d127{padding:10px}.d27{padding:16px 40px}.d83{padding:20px}.d52{padding:20px 16px}.d86{padding:20px 30px}.d61{padding:24px}.d50{padding:40px 60px}.d111{padding:4px 10px}.d110{padding:4px 10px 4px 30px}.d133{padding:6px 10px}.d148{padding:8px 8px 6px}.d32{padding-bottom:100px}.d41{padding-bottom:16px}.d184{padding-bottom:24px}.d48{padding-top:100px}.d44{padding-top:16px}.d74{padding-top:20px}.d100{padding-top:40px}.d33{padding-top:80px}.d174{position:absolute}.d149{position:fixed}.d185{position:relative}.d150{position:sticky}.d122{padding-left:10px;padding-right:10px;}.d34{padding-left:12px;padding-right:12px;}.d46{padding-left:16px;padding-right:16px;}.d124{padding-left:24px;padding-right:24px;}.d55{padding-left:60px;padding-right:60px;}.d58{padding-left:8px;padding-right:8px;}.d164{padding-top:10px;padding-bottom:10px;}.d79{padding-top:30px;padding-bottom:30px;}.d47{padding-top:40px;padding-bottom:40px;}.d165{padding-top:4px;padding-bottom:4px;}.d112{padding-top:6px;padding-bottom:6px;}.d5{text-align:center}.d119{text-align:right}.d10{text-decoration:none}.d153{top:0px}.d170{top:50px}.d188{transform:rotate(-90deg)}.d187{transform:rotate(0deg)}.d154{transition:all, 0.2s}.d189{transition:transform 0.2s}.d84{width:100%}.d51{width:1014px}.d191{width:10px}.d69{width:164px}.d120{width:200px}.d53{width:220px}.d3{width:52px}.d155{z-index:1}.d171{z-index:100}.d142::placeholder{color:var(--caption)}.d89:hover{background:var(--buttonBlueHover)}.d130:hover{background:var(--menuHover)}.d23:hover{background:var(--title)}.d116:hover{text-decoration:underline}.d115:hover{text-decoration-color:var(--text)}.d88:active{background:var(--buttonBlueActive)}.d22:active{background:var(--negativeBase)}*[role=group]:hover .d12{background:var(--primary)}*[role=group]:hover .d117{color:var(--text)}*[role=group]:hover .d105{opacity:0.8}*[role=group]:active .d11{background:var(--third)}
5
5
  @media (min-width:480px){.d73{align-items:flex-end}.d67{flex-direction:row}.d66{gap:0px}.d76{gap:80px}.d141{height:42px}.d42{padding-bottom:40px}.d160{padding-left:20px}.d162{padding-right:20px}.d75{padding-top:0px}.d49{padding-top:150px}.d80{padding-top:60px;padding-bottom:60px;}.d72{text-align:right}.d70{width:204px}}
6
- @media (min-width:768px){.d86{align-items:flex-end}.d156{border-radius:16px}.d126{display:flex}.d71{display:none}.d139{gap:16px}.d38{grid-template-columns:1fr 1fr}.d137{height:42px}.d158{height:70px}.d94{justify-content:center}.d87{margin-left:auto}.d43{padding-bottom:120px}.d161{padding-left:40px}.d88{padding-right:100px}.d163{padding-right:40px}.d96{padding-top:0px}.d151{padding-top:20px}.d45{padding-top:40px}.d152{padding-left:16px;padding-right:16px;}.d81{text-align:left}}
6
+ @media (min-width:768px){.d91{align-items:flex-end}.d156{border-radius:16px}.d126{display:flex}.d71{display:none}.d139{gap:16px}.d38{grid-template-columns:1fr 1fr}.d137{height:42px}.d158{height:70px}.d99{justify-content:center}.d92{margin-left:auto}.d43{padding-bottom:120px}.d161{padding-left:40px}.d93{padding-right:100px}.d163{padding-right:40px}.d101{padding-top:0px}.d151{padding-top:20px}.d45{padding-top:40px}.d152{padding-left:16px;padding-right:16px;}.d87{text-align:left}}
package/dist/loader.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("node:fs"),d=require("@devup-ui/wasm"),l=function(c){const{plugin:o}=this.getOptions(),{package:r,cssFile:t}=o.options,s=this.async(),e=this.resourcePath;if(e.includes("node_modules/")||e.includes("@devup-ui/react")||!/\.[tj](s|sx)?$/.test(e)){s(null,c);return}this.addDependency(t);try{const{code:n,css:i}=d.codeExtract(e,c.toString(),r,t);i&&u.writeFileSync(t,i,{encoding:"utf-8"}),s(null,n)}catch(n){s(n)}};exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("node:fs"),l=require("@devup-ui/wasm"),a=function(c){const{plugin:i}=this.getOptions(),{package:r,cssFile:n}=i.options,t=this.async(),e=this.resourcePath;if(e.includes("node_modules/")||e.includes("@devup-ui/react")||!/\.[tj](s|sx)?$/.test(e)){t(null,c);return}try{const{code:s,css:o}=l.codeExtract(e,c.toString(),r,n);o&&u.writeFileSync(n,o,{encoding:"utf-8"}),t(null,s)}catch(s){t(s)}};exports.default=a;
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAE1D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,oBAAoB,CAAA;CAC7B;AAED,QAAA,MAAM,aAAa,EAAE,2BAA2B,CAAC,oBAAoB,CAmClE,CAAA;AACH,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAE1D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,oBAAoB,CAAA;CAC7B;AAED,QAAA,MAAM,aAAa,EAAE,2BAA2B,CAAC,oBAAoB,CAkClE,CAAA;AACH,eAAe,aAAa,CAAA"}
package/dist/loader.js CHANGED
@@ -1,24 +1,23 @@
1
1
  import { writeFileSync as a } from "node:fs";
2
- import { codeExtract as d } from "@devup-ui/wasm";
3
- const p = function(s) {
4
- const { plugin: i } = this.getOptions(), { package: r, cssFile: e } = i.options, c = this.async(), t = this.resourcePath;
2
+ import { codeExtract as l } from "@devup-ui/wasm";
3
+ const p = function(n) {
4
+ const { plugin: i } = this.getOptions(), { package: r, cssFile: o } = i.options, c = this.async(), t = this.resourcePath;
5
5
  if (t.includes("node_modules/") || t.includes("@devup-ui/react") || !/\.[tj](s|sx)?$/.test(t)) {
6
- c(null, s);
6
+ c(null, n);
7
7
  return;
8
8
  }
9
- this.addDependency(e);
10
9
  try {
11
- const { code: n, css: o } = d(
10
+ const { code: e, css: s } = l(
12
11
  t,
13
- s.toString(),
12
+ n.toString(),
14
13
  r,
15
- e
14
+ o
16
15
  );
17
- o && a(e, o, {
16
+ s && a(o, s, {
18
17
  encoding: "utf-8"
19
- }), c(null, n);
20
- } catch (n) {
21
- c(n);
18
+ }), c(null, e);
19
+ } catch (e) {
20
+ c(e);
22
21
  }
23
22
  };
24
23
  export {
package/dist/plugin.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var g=(o,e,t)=>e in o?m(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var d=(o,e,t)=>g(o,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("node:fs"),l=require("node:module"),u=require("node:path"),v=require("node:url"),a=require("@devup-ui/wasm");var s=typeof document<"u"?document.currentScript:null;const y=v.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href),P=u.dirname(y);class U{constructor({package:e="@devup-ui/react",cssFile:t=u.join(P,"devup-ui.css"),devupPath:r="devup.json",interfacePath:n=".df"}={}){d(this,"options");this.options={package:e,cssFile:t,devupPath:r,interfacePath:n}}writeDataFiles(){var t;a.registerTheme((t=JSON.parse(i.readFileSync(this.options.devupPath,"utf-8")))==null?void 0:t.theme);const e=a.getThemeInterface(this.options.package,"DevupThemeColors","DevupThemeTypography","DevupTheme");e&&(i.existsSync(this.options.interfacePath)||i.mkdirSync(this.options.interfacePath),i.writeFileSync(u.join(this.options.interfacePath,"theme.d.ts"),e,{encoding:"utf-8"})),i.writeFileSync(this.options.cssFile,a.getCss(),{encoding:"utf-8"})}apply(e){const t=i.existsSync(this.options.devupPath);if(t){try{this.writeDataFiles()}catch(n){console.error(n)}e.hooks.afterCompile.tap("DevupUIWebpackPlugin",n=>{n.fileDependencies.add(u.resolve(this.options.devupPath))})}let r=null;e.hooks.watchRun.tapAsync("DevupUIWebpackPlugin",(n,h)=>{t&&i.stat(this.options.devupPath,(p,f)=>{if(p){console.error(`Error checking ${this.options.devupPath}:`,p);return}const c=f.mtimeMs;r&&r!==c&&this.writeDataFiles(),r=c}),h()}),i.existsSync(this.options.cssFile)||i.writeFileSync(this.options.cssFile,"",{encoding:"utf-8"}),e.options.module.rules.push({test:this.options.cssFile,use:[{loader:l.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href).resolve("@devup-ui/webpack-plugin/css-loader")}]}),e.options.module.rules.push({test:/\.(tsx|ts|js|mjs|jsx)$/,exclude:/node_modules/,use:[{loader:l.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href).resolve("@devup-ui/webpack-plugin/loader"),options:{plugin:this}}]})}}exports.DevupUIWebpackPlugin=U;
1
+ "use strict";var m=Object.defineProperty;var g=(o,e,t)=>e in o?m(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var d=(o,e,t)=>g(o,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("node:fs"),l=require("node:module"),a=require("node:path"),v=require("node:url"),u=require("@devup-ui/wasm");var s=typeof document<"u"?document.currentScript:null;const y=v.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href),P=a.dirname(y);class U{constructor({package:e="@devup-ui/react",cssFile:t=a.join(P,"devup-ui.css"),devupPath:r="devup.json",interfacePath:n=".df"}={}){d(this,"options");this.options={package:e,cssFile:t,devupPath:r,interfacePath:n}}writeDataFiles(){var t;u.registerTheme((t=JSON.parse(i.readFileSync(this.options.devupPath,"utf-8")))==null?void 0:t.theme);const e=u.getThemeInterface(this.options.package,"DevupThemeColors","DevupThemeTypography","DevupTheme");e&&(i.existsSync(this.options.interfacePath)||i.mkdirSync(this.options.interfacePath),i.writeFileSync(a.join(this.options.interfacePath,"theme.d.ts"),e,{encoding:"utf-8"})),i.writeFileSync(this.options.cssFile,u.getCss(),{encoding:"utf-8"})}apply(e){const t=i.existsSync(this.options.devupPath);if(t){try{this.writeDataFiles()}catch(n){console.error(n)}e.hooks.afterCompile.tap("DevupUIWebpackPlugin",n=>{n.fileDependencies.add(a.resolve(this.options.devupPath))})}let r=null;e.hooks.watchRun.tapAsync("DevupUIWebpackPlugin",(n,h)=>{t&&i.stat(this.options.devupPath,(c,f)=>{if(c){console.error(`Error checking ${this.options.devupPath}:`,c);return}const p=f.mtimeMs;r&&r!==p&&this.writeDataFiles(),r=p}),h()}),i.existsSync(this.options.cssFile)||i.writeFileSync(this.options.cssFile,"",{encoding:"utf-8"}),e.options.module.rules.push({test:/\.(tsx|ts|js|mjs|jsx)$/,exclude:/node_modules/,enforce:"pre",use:[{loader:l.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href).resolve("@devup-ui/webpack-plugin/loader"),options:{plugin:this}}]},{test:this.options.cssFile,enforce:"post",use:[{loader:l.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href).resolve("@devup-ui/webpack-plugin/css-loader")}]})}}exports.DevupUIWebpackPlugin=U;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAKvC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,oBAAoB;IAC/B,OAAO,EAAE,2BAA2B,CAAA;gBAExB,EACV,OAAO,EAAE,UAA8B,EACvC,OAAwC,EACxC,SAAwB,EACxB,aAAqB,GACtB,GAAE,OAAO,CAAC,2BAA2B,CAAM;IAS5C,cAAc;IA0Bd,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAgEzB"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAKvC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,oBAAoB;IAC/B,OAAO,EAAE,2BAA2B,CAAA;gBAExB,EACV,OAAO,EAAE,UAA8B,EACvC,OAAwC,EACxC,SAAwB,EACxB,aAAqB,GACtB,GAAE,OAAO,CAAC,2BAA2B,CAAM;IAS5C,cAAc;IA0Bd,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAoEzB"}
package/dist/plugin.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var m = Object.defineProperty;
2
2
  var f = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var u = (i, e, t) => f(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { readFileSync as v, existsSync as p, mkdirSync as g, writeFileSync as n, stat as k } from "node:fs";
5
- import { createRequire as c } from "node:module";
3
+ var c = (i, e, t) => f(i, typeof e != "symbol" ? e + "" : e, t);
4
+ import { readFileSync as v, existsSync as p, mkdirSync as g, writeFileSync as r, stat as k } from "node:fs";
5
+ import { createRequire as u } from "node:module";
6
6
  import { dirname as P, join as h, resolve as D } from "node:path";
7
7
  import { fileURLToPath as y } from "node:url";
8
8
  import { registerTheme as F, getThemeInterface as T, getCss as w } from "@devup-ui/wasm";
@@ -14,7 +14,7 @@ class R {
14
14
  devupPath: o = "devup.json",
15
15
  interfacePath: s = ".df"
16
16
  } = {}) {
17
- u(this, "options");
17
+ c(this, "options");
18
18
  this.options = {
19
19
  package: e,
20
20
  cssFile: t,
@@ -33,13 +33,13 @@ class R {
33
33
  "DevupThemeTypography",
34
34
  "DevupTheme"
35
35
  );
36
- e && (p(this.options.interfacePath) || g(this.options.interfacePath), n(
36
+ e && (p(this.options.interfacePath) || g(this.options.interfacePath), r(
37
37
  h(this.options.interfacePath, "theme.d.ts"),
38
38
  e,
39
39
  {
40
40
  encoding: "utf-8"
41
41
  }
42
- )), n(this.options.cssFile, w(), {
42
+ )), r(this.options.cssFile, w(), {
43
43
  encoding: "utf-8"
44
44
  });
45
45
  }
@@ -57,37 +57,42 @@ class R {
57
57
  }
58
58
  let o = null;
59
59
  e.hooks.watchRun.tapAsync("DevupUIWebpackPlugin", (s, l) => {
60
- t && k(this.options.devupPath, (r, d) => {
61
- if (r) {
62
- console.error(`Error checking ${this.options.devupPath}:`, r);
60
+ t && k(this.options.devupPath, (n, d) => {
61
+ if (n) {
62
+ console.error(`Error checking ${this.options.devupPath}:`, n);
63
63
  return;
64
64
  }
65
65
  const a = d.mtimeMs;
66
66
  o && o !== a && this.writeDataFiles(), o = a;
67
67
  }), l();
68
- }), p(this.options.cssFile) || n(this.options.cssFile, "", { encoding: "utf-8" }), e.options.module.rules.push({
69
- test: this.options.cssFile,
70
- use: [
71
- {
72
- loader: c(import.meta.url).resolve(
73
- "@devup-ui/webpack-plugin/css-loader"
74
- )
75
- }
76
- ]
77
- }), e.options.module.rules.push({
78
- test: /\.(tsx|ts|js|mjs|jsx)$/,
79
- exclude: /node_modules/,
80
- use: [
81
- {
82
- loader: c(import.meta.url).resolve(
83
- "@devup-ui/webpack-plugin/loader"
84
- ),
85
- options: {
86
- plugin: this
68
+ }), p(this.options.cssFile) || r(this.options.cssFile, "", { encoding: "utf-8" }), e.options.module.rules.push(
69
+ {
70
+ test: /\.(tsx|ts|js|mjs|jsx)$/,
71
+ exclude: /node_modules/,
72
+ enforce: "pre",
73
+ use: [
74
+ {
75
+ loader: u(import.meta.url).resolve(
76
+ "@devup-ui/webpack-plugin/loader"
77
+ ),
78
+ options: {
79
+ plugin: this
80
+ }
87
81
  }
88
- }
89
- ]
90
- });
82
+ ]
83
+ },
84
+ {
85
+ test: this.options.cssFile,
86
+ enforce: "post",
87
+ use: [
88
+ {
89
+ loader: u(import.meta.url).resolve(
90
+ "@devup-ui/webpack-plugin/css-loader"
91
+ )
92
+ }
93
+ ]
94
+ }
95
+ );
91
96
  }
92
97
  }
93
98
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devup-ui/webpack-plugin",
3
3
  "type": "module",
4
- "version": "0.1.28",
4
+ "version": "0.1.30",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@devup-ui/wasm": "0.1.25"
31
+ "@devup-ui/wasm": "0.1.26"
32
32
  },
33
33
  "devDependencies": {
34
34
  "vite": "^6.0.11",