@devup-ui/webpack-plugin 0.1.14 → 0.1.16
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/devup-ui.css +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.js +14 -14
- package/package.json +2 -2
package/dist/devup-ui.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
:root{--error:#F44336;--buttonBlue:#266CCD;--base:#FFFFFF;--shadow:#87878740;--background:#FFFFFF;--third:#918AE9;--menuActive:#EAE8FC;--caption:#A9A8B4;--captionBold:#878594;--warning:#FF9800;--textReverse:#FFFFFF;--joinBg:#CDE2FA;--link:#006BFF;--codeBg:#3E3B41;--buttonBlueHover:#1453AC;--buttonBlueActive:#19498B;--menuHover:#F6F4FF;--border:#E0E0E0;--secondary:#85A5F2;--footerText:#51575F;--title:#1A1A1A;--primary:#6159D4;--success:#4CAF50;--containerBackground:#FFFFFF;--footerTitle:#A3A4B4;--footerBg:#E6E7ED;--search:#9C50FF;--text:#2F2F2F;--negativeBase:#000000;--info:#2196F3;--cardBg:#F8F8F8;}
|
|
2
2
|
:root[data-theme=dark]{--background:#131313;--shadow:#62626240;--buttonBlueHover:#1453AC;--footerTitle:#A3A4B4;--border:#333333;--info:#2196F3;--error:#F44336;--text:#EDEDED;--success:#4CAF50;--buttonBlue:#0867AF;--cardBg:#28272B;--title:#FAFAFA;--containerBackground:#1E1E1E;--third:#737FE4;--menuActive:#283259;--buttonBlueActive:#19498B;--captionBold:#878594;--codeBg:#2E303C;--textReverse:#2F2F2F;--negativeBase:#FFFFFF;--joinBg:#2F363E;--link:#006BFF;--secondary:#2A4586;--caption:#A9A8B4;--base:#000000;--search:#6FA4FF;--footerText:#FFFFFF;--footerBg:#2E303C;--warning:#FF9800;--primary:#737FE4;--menuHover:#3C404B;}
|
|
3
3
|
.typo-body{font-family:Pretendard;font-size:14px;font-weight:500;line-height:130%;letter-spacing:-0.42px}.typo-bodyReg{font-family:Pretendard;font-size:16px;font-weight:400;line-height:150%;letter-spacing:-0.48px}.typo-buttonL{font-family:Pretendard;font-size:17px;font-weight:800;line-height:130%;letter-spacing:-0.51px}.typo-buttonLbold{font-family:Pretendard;font-size:17px;font-weight:700;line-height:130%;letter-spacing:-0.51px}.typo-buttonLsemiB{font-family:Pretendard;font-size:17px;font-weight:600;line-height:130%;letter-spacing:-0.51px}.typo-buttonM{font-family:Pretendard;font-size:15px;font-weight:600;line-height:130%;letter-spacing:-0.45px}.typo-buttonS{font-family:Pretendard;font-size:14px;font-weight:800;line-height:130%;letter-spacing:-0.42px}.typo-buttonSmid{font-family:Pretendard;font-size:14px;font-weight:500;line-height:130%;letter-spacing:-0.42px}.typo-caption{font-family:Pretendard;font-size:14px;font-weight:500;line-height:140%;letter-spacing:-0.42px}.typo-captionBold{font-family:Pretendard;font-size:14px;font-weight:700;line-height:130%;letter-spacing:-0.42px}.typo-code{font-family:D2Coding;font-size:13px;font-weight:700;line-height:150%;letter-spacing:-0.39px}.typo-footerMenu{font-family:Pretendard;font-size:13px;font-weight:500;line-height:140%;letter-spacing:-0.39px}.typo-h1{font-family:Pretendard;font-size:38px;font-weight:800;line-height:130%;letter-spacing:-1.14px}.typo-h2{font-family:Pretendard;font-size:36px;font-weight:800;line-height:130%;letter-spacing:-1.08px}.typo-h3{font-family:Pretendard;font-size:32px;font-weight:700;line-height:130%;letter-spacing:-0.96px}.typo-h4{font-family:Pretendard;font-size:28px;font-weight:700;line-height:130%;letter-spacing:-0.84px}.typo-h5{font-family:Pretendard;font-size:24px;font-weight:600;line-height:130%;letter-spacing:-0.72px}.typo-h6{font-family:Pretendard;font-size:18px;font-weight:600;line-height:130%;letter-spacing:-0.54px}.typo-h6Reg{font-family:Pretendard;font-size:18px;font-weight:400;line-height:130%;letter-spacing:-0.54px}.typo-small{font-family:Pretendard;font-size:11px;font-weight:300;line-height:130%;letter-spacing:-0.33px}.typo-smallBold{font-family:Pretendard;font-size:12px;font-weight:800;line-height:140%;letter-spacing:-0.36px}.typo-textL{font-family:Pretendard;font-size:16px;font-weight:500;line-height:130%;letter-spacing:-0.48px}.typo-textS{font-family:Pretendard;font-size:13px;font-weight:500;line-height:140%;letter-spacing:-0.39px}.typo-textSbold{font-family:Pretendard;font-size:15px;font-weight:700;line-height:140%;letter-spacing:-0.45px}
|
|
4
|
-
@media (min-width:1280px){.typo-body{font-family:Pretendard;font-size:16px;font-weight:500;line-height:150%;letter-spacing:-0.48px}.typo-buttonL{font-family:Pretendard;font-size:20px;font-weight:800;line-height:130%;letter-spacing:-0.6px}.typo-buttonLbold{font-family:Pretendard;font-size:18px;font-weight:700;line-height:130%;letter-spacing:-0.54px}.typo-buttonLsemiB{font-family:Pretendard;font-size:18px;font-weight:600;line-height:130%;letter-spacing:-0.54px}.typo-buttonM{font-family:Pretendard;font-size:17px;font-weight:600;line-height:130%;letter-spacing:-0.51px}.typo-buttonS{font-family:Pretendard;font-size:15px;font-weight:700;line-height:130%;letter-spacing:-0.45px}.typo-buttonSmid{font-family:Pretendard;font-size:15px;font-weight:500;line-height:130%;letter-spacing:-0.45px}.typo-code{font-family:D2Coding;font-size:15px;font-weight:700;line-height:150%;letter-spacing:-0.45px}.typo-footerMenu{font-family:Pretendard;font-size:14px;font-weight:500;line-height:140%;letter-spacing:-0.42px}.typo-h1{font-family:Pretendard;font-size:52px;font-weight:800;line-height:130%;letter-spacing:-1.56px}.typo-h2{font-family:Pretendard;font-size:48px;font-weight:800;line-height:130%;letter-spacing:-1.44px}.typo-h3{font-family:Pretendard;font-size:42px;font-weight:700;line-height:130%;letter-spacing:-1.26px}.typo-h4{font-family:Pretendard;font-size:36px;font-weight:700;line-height:130%;letter-spacing:-1.08px}.typo-h5{font-family:Pretendard;font-size:30px;font-weight:600;line-height:130%;letter-spacing:-0.9px}.typo-h6{font-family:Pretendard;font-size:24px;font-weight:600;line-height:130%;letter-spacing:-0.72px}.typo-h6Reg{font-family:Pretendard;font-size:24px;font-weight:400;line-height:130%;letter-spacing:-0.72px}.typo-small{font-family:Pretendard;font-size:12px;font-weight:400;line-height:140%;letter-spacing:-0.36px}.typo-textL{font-family:Pretendard;font-size:18px;font-weight:500;line-height:150%;letter-spacing:-0.54px}.typo-textS{font-family:Pretendard;font-size:15px;font-weight:500;line-height:140%;letter-spacing:-0.45px}}.d6{align-items:center}.d4{display:flex}.d5{flex-direction:column}.d70{justify-content:center}.d6{align-items:center}.d45{align-items:flex-end}.
|
|
4
|
+
@media (min-width:1280px){.typo-body{font-family:Pretendard;font-size:16px;font-weight:500;line-height:150%;letter-spacing:-0.48px}.typo-buttonL{font-family:Pretendard;font-size:20px;font-weight:800;line-height:130%;letter-spacing:-0.6px}.typo-buttonLbold{font-family:Pretendard;font-size:18px;font-weight:700;line-height:130%;letter-spacing:-0.54px}.typo-buttonLsemiB{font-family:Pretendard;font-size:18px;font-weight:600;line-height:130%;letter-spacing:-0.54px}.typo-buttonM{font-family:Pretendard;font-size:17px;font-weight:600;line-height:130%;letter-spacing:-0.51px}.typo-buttonS{font-family:Pretendard;font-size:15px;font-weight:700;line-height:130%;letter-spacing:-0.45px}.typo-buttonSmid{font-family:Pretendard;font-size:15px;font-weight:500;line-height:130%;letter-spacing:-0.45px}.typo-code{font-family:D2Coding;font-size:15px;font-weight:700;line-height:150%;letter-spacing:-0.45px}.typo-footerMenu{font-family:Pretendard;font-size:14px;font-weight:500;line-height:140%;letter-spacing:-0.42px}.typo-h1{font-family:Pretendard;font-size:52px;font-weight:800;line-height:130%;letter-spacing:-1.56px}.typo-h2{font-family:Pretendard;font-size:48px;font-weight:800;line-height:130%;letter-spacing:-1.44px}.typo-h3{font-family:Pretendard;font-size:42px;font-weight:700;line-height:130%;letter-spacing:-1.26px}.typo-h4{font-family:Pretendard;font-size:36px;font-weight:700;line-height:130%;letter-spacing:-1.08px}.typo-h5{font-family:Pretendard;font-size:30px;font-weight:600;line-height:130%;letter-spacing:-0.9px}.typo-h6{font-family:Pretendard;font-size:24px;font-weight:600;line-height:130%;letter-spacing:-0.72px}.typo-h6Reg{font-family:Pretendard;font-size:24px;font-weight:400;line-height:130%;letter-spacing:-0.72px}.typo-small{font-family:Pretendard;font-size:12px;font-weight:400;line-height:140%;letter-spacing:-0.36px}.typo-textL{font-family:Pretendard;font-size:18px;font-weight:500;line-height:150%;letter-spacing:-0.54px}.typo-textS{font-family:Pretendard;font-size:15px;font-weight:500;line-height:140%;letter-spacing:-0.45px}}.d6{align-items:center}.d4{display:flex}.d5{flex-direction:column}.d70{justify-content:center}.d6{align-items:center}.d45{align-items:flex-end}.d54{background:var(--containerBackground)}.d47{background:var(--footerBg)}.d8{background:var(--secondary)}.d66{background:var(--buttonBlue)}.d31{background:var(--cardBg)}.d14{background:var(--text)}.d63{background:var(--codeBg)}.d71{background-color:var(--joinBg)}.d72{background-image:url(/discord-bg.svg)}.d73{border-radius:40px 40px 0px 40px}.d78{border-radius:16px}.d58{border-radius:1000px}.d32{border-radius:20px}.d9{border-radius:100%}.d15{border-radius:100px}.d55{box-shadow:0px 0px 8px 0px rgba(0, 0, 0, 0.25)}.d79{box-shadow:0px 2px 8px 0px var(--shadow, rgba(135, 135, 135, 0.25))}.d27{width:32px;height:32px;}.d10{width:10px;height:10px;}.d12{width:24px;height:24px;}.d11{color:var(--base)}.d41{color:var(--footerText)}.d2{color:var(--title)}.d40{color:var(--footerTitle)}.d50{color:#FFF}.d51{flex:1}.d29{flex:1 0 0}.d42{gap:14px}.d25{gap:16px}.d35{gap:40px}.d19{gap:50px}.d48{gap:80px}.d13{gap:10px}.d7{gap:24px}.d16{gap:20px}.d80{height:70px}.d0{height:50px}.d74{height:380px}.d75{height:42px}.d56{height:46px}.d44{justify-content:space-between}.d20{max-width:800px}.d22{max-width:1200px}.d65{max-width:1440px}.d43{min-width:240px}.d67{margin-left:auto}.d39{margin-top:150px}.d21{margin-left:auto;margin-right:auto;}.d60{opacity:0.6}.d33{padding:24px}.d61{padding:6px}.d52{padding:20px}.d49{padding:60px 320px}.d34{padding:30px 24px}.d17{padding:16px 40px}.d64{padding:20px 30px}.d59{padding:12px 34px}.d23{padding-bottom:100px}.d36{padding-bottom:120px}.d82{position:fixed}.d68{padding-right:100px}.d37{padding-top:40px}.d24{padding-top:80px}.d81{padding-left:40px;padding-right:40px;}.d77{padding-left:10px;padding-right:10px;}.d28{padding-left:8px;padding-right:8px;}.d76{padding-left:24px;padding-right:24px;}.d38{padding-top:40px;padding-bottom:40px;}.d3{text-align:center}.d46{text-align:right}.d83{top:20px}.d18{width:247px}.d62{width:520px}.d30{width:484px}.d26{width:805px}.d69{width:548px}.d1{width:52px}.d53{width:100%}.d57{width:162.67px}
|
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"),
|
|
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");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;
|
package/dist/plugin.js
CHANGED
|
@@ -3,14 +3,14 @@ var f = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var u = (i, e, t) => f(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { readFileSync as v, existsSync as p, mkdirSync as g, writeFileSync as n, stat as k } from "node:fs";
|
|
5
5
|
import { createRequire as c } from "node:module";
|
|
6
|
-
import { dirname as P, join as
|
|
7
|
-
import { fileURLToPath as
|
|
8
|
-
import { registerTheme as
|
|
9
|
-
const
|
|
10
|
-
class
|
|
6
|
+
import { dirname as P, join as l, resolve as D } from "node:path";
|
|
7
|
+
import { fileURLToPath as y } from "node:url";
|
|
8
|
+
import { registerTheme as F, getThemeInterface as T, getCss as w } from "@devup-ui/wasm";
|
|
9
|
+
const x = y(import.meta.url), b = P(x);
|
|
10
|
+
class R {
|
|
11
11
|
constructor({
|
|
12
12
|
package: e = "@devup-ui/react",
|
|
13
|
-
cssFile: t =
|
|
13
|
+
cssFile: t = l(b, "devup-ui.css"),
|
|
14
14
|
devupPath: o = "devup.json",
|
|
15
15
|
interfacePath: s = ".df"
|
|
16
16
|
}) {
|
|
@@ -24,21 +24,21 @@ class _ {
|
|
|
24
24
|
}
|
|
25
25
|
writeDataFiles() {
|
|
26
26
|
var t;
|
|
27
|
-
|
|
27
|
+
F(
|
|
28
28
|
(t = JSON.parse(v(this.options.devupPath, "utf-8"))) == null ? void 0 : t.theme
|
|
29
29
|
);
|
|
30
|
-
const e =
|
|
30
|
+
const e = T(
|
|
31
31
|
this.options.package,
|
|
32
32
|
"DevupThemeColors",
|
|
33
33
|
"DevupThemeTypography"
|
|
34
34
|
);
|
|
35
35
|
e && (p(this.options.interfacePath) || g(this.options.interfacePath), n(
|
|
36
|
-
|
|
36
|
+
l(this.options.interfacePath, "theme.d.ts"),
|
|
37
37
|
e,
|
|
38
38
|
{
|
|
39
39
|
encoding: "utf-8"
|
|
40
40
|
}
|
|
41
|
-
)), n(this.options.cssFile,
|
|
41
|
+
)), n(this.options.cssFile, w(), {
|
|
42
42
|
encoding: "utf-8"
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -51,11 +51,11 @@ class _ {
|
|
|
51
51
|
console.error(s);
|
|
52
52
|
}
|
|
53
53
|
e.hooks.afterCompile.tap("DevupUIWebpackPlugin", (s) => {
|
|
54
|
-
s.fileDependencies.add(this.options.devupPath);
|
|
54
|
+
s.fileDependencies.add(D(this.options.devupPath));
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
let o = null;
|
|
58
|
-
e.hooks.watchRun.tapAsync("DevupUIWebpackPlugin", (s,
|
|
58
|
+
e.hooks.watchRun.tapAsync("DevupUIWebpackPlugin", (s, h) => {
|
|
59
59
|
t && k(this.options.devupPath, (r, d) => {
|
|
60
60
|
if (r) {
|
|
61
61
|
console.error(`Error checking ${this.options.devupPath}:`, r);
|
|
@@ -63,7 +63,7 @@ class _ {
|
|
|
63
63
|
}
|
|
64
64
|
const a = d.mtimeMs;
|
|
65
65
|
o && o !== a && this.writeDataFiles(), o = a;
|
|
66
|
-
}),
|
|
66
|
+
}), h();
|
|
67
67
|
}), p(this.options.cssFile) || n(this.options.cssFile, "", { encoding: "utf-8" }), e.options.module.rules.push({
|
|
68
68
|
test: this.options.cssFile,
|
|
69
69
|
use: [
|
|
@@ -90,5 +90,5 @@ class _ {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
R as DevupUIWebpackPlugin
|
|
94
94
|
};
|
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.
|
|
4
|
+
"version": "0.1.16",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@devup-ui/wasm": "0.1.
|
|
30
|
+
"@devup-ui/wasm": "0.1.13"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"vite": "^6.0.7",
|