atomsystem 0.1.12 → 0.1.14
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/{cli → app}/templates/GlobalNav/GlobalNav.tsx +5 -0
- package/{cli → app}/templates/Input/Input.tsx +1 -1
- package/cli/add.js +5 -3
- package/package.json +2 -2
- /package/{cli → app}/templates/Button/Button.tsx +0 -0
- /package/{cli → app}/templates/Card/Card.tsx +0 -0
- /package/{cli → app}/templates/CodeBlock/CodeBlock.tsx +0 -0
- /package/{cli → app}/templates/Theme/Theme.tsx +0 -0
|
@@ -59,7 +59,7 @@ export const Input = ({
|
|
|
59
59
|
<input
|
|
60
60
|
type="text"
|
|
61
61
|
className={clsx(
|
|
62
|
-
"transition-all border px-4 py-2 border-input-border-standard text-input-text-value rounded-input-rounded",
|
|
62
|
+
"transition-all border px-4 py-2 border-input-border-standard text-input-text-value rounded-input-rounded bg-input-background-standard",
|
|
63
63
|
value ? "bg-input-background-value" : "bg-input-background-standard ",
|
|
64
64
|
{ "placeholder:text-input-text-placeholder": true },
|
|
65
65
|
{ "focus:border-input-border-focus": true },
|
package/cli/add.js
CHANGED
|
@@ -6,10 +6,12 @@ import path from "path";
|
|
|
6
6
|
import { copyFileSync } from "fs";
|
|
7
7
|
import { fileURLToPath } from "url";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// 현재 실행중인 CLI 파일의 디렉토리 찾기
|
|
10
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
11
|
+
const __dirname = path.dirname(__filename);
|
|
10
12
|
|
|
11
13
|
// 컴포넌트 템플릿이 위치한 디렉토리
|
|
12
|
-
const templateDir = path.join(__dirname, "templates");
|
|
14
|
+
const templateDir = path.join(__dirname, "..", "app", "templates");
|
|
13
15
|
|
|
14
16
|
// 사용할 수 있는 컴포넌트 목록
|
|
15
17
|
const components = [
|
|
@@ -26,7 +28,7 @@ const args = process.argv.slice(2); // 'npx atomsystem-add Button -> [Button]'
|
|
|
26
28
|
const component = args[0] || "all"; // '사용자가 입력하지 않으면 기본적으로 'all''
|
|
27
29
|
|
|
28
30
|
function addComponent(comp) {
|
|
29
|
-
const componentPath = path.join(templateDir, `${comp}
|
|
31
|
+
const componentPath = path.join(templateDir, comp, `${comp}.tsx`);
|
|
30
32
|
const targetDir = path.join(process.cwd(), "app", "components", comp);
|
|
31
33
|
const targetPath = path.join(targetDir, `${comp}.tsx`);
|
|
32
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atomsystem",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"atomsystem-init": "cli/init.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"tokens",
|
|
12
12
|
"build",
|
|
13
13
|
"tailwind.config.ts",
|
|
14
|
-
"
|
|
14
|
+
"app/templates"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"dev": "npm run build:token && next dev",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|