enerdot-front-system 0.0.2 → 0.0.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 enerdot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,50 +1,25 @@
1
- # React + TypeScript + Vite
1
+ # Enerdot Frontend System
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+ 에너닷에서 공용으로 사용하는 디자인 시스템 컴포넌트, theme 등을 라이브러리로 제공합니다.
4
4
 
5
- Currently, two official plugins are available:
5
+ ## local dist 테스트
6
6
 
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
7
+ ```js
8
+ - yarn build //local dist 파일 생성
11
9
 
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
10
+ - npm link enerdot-front-system
13
11
 
14
- - Configure the top-level `parserOptions` property like this:
12
+ - 테스트 진행
15
13
 
16
- ```js
17
- export default tseslint.config({
18
- languageOptions: {
19
- // other options...
20
- parserOptions: {
21
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
22
- tsconfigRootDir: import.meta.dirname,
23
- },
24
- },
25
- })
14
+ - npm unlink enerdot-front-system
26
15
  ```
27
16
 
28
- - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29
- - Optionally add `...tseslint.configs.stylisticTypeChecked`
30
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
17
+ ## 라이브러리 업데이트 절차
31
18
 
32
19
  ```js
33
- // eslint.config.js
34
- import react from 'eslint-plugin-react'
35
-
36
- export default tseslint.config({
37
- // Set the react version
38
- settings: { react: { version: '18.3' } },
39
- plugins: {
40
- // Add the react plugin
41
- react,
42
- },
43
- rules: {
44
- // other rules...
45
- // Enable its recommended rules
46
- ...react.configs.recommended.rules,
47
- ...react.configs['jsx-runtime'].rules,
48
- },
49
- })
20
+ - npm login // 터미널에 npm 로그인 ( 한 번만 하면 됨 )
21
+
22
+ - npm whoami // 로그인 확인
23
+
24
+ - npm publish // npm 배포
50
25
  ```
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from '.';
2
+ export declare const PrimaryButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
+ export default PrimaryButton;
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from '.';
2
+ export declare const SecondaryButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
+ export default SecondaryButton;
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from '.';
2
+ export declare const TertiaryButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
+ export default TertiaryButton;
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from '.';
2
+ export declare const TextButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
+ export default TextButton;
@@ -10,5 +10,5 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
10
10
  /**theme - secondary, text만 지원 */
11
11
  isSelected?: boolean;
12
12
  }
13
- declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export default Button;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "enerdot-front-system",
3
3
  "private": false,
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "enerdot-front-system",
@@ -10,10 +10,10 @@
10
10
  "design-system"
11
11
  ],
12
12
  "main": "dist/index.cjs.js",
13
- "types": "dist/index.d.ts",
14
13
  "module": "dist/index.es.js",
14
+ "types": "dist/index.d.ts",
15
15
  "description": "enerdot frontend system",
16
- "license": "ISC",
16
+ "license": "MIT",
17
17
  "files": [
18
18
  "dist/**/*",
19
19
  "!dist/vite.config.d.ts",
@@ -25,7 +25,17 @@
25
25
  "dev": "vite",
26
26
  "build": "tsc -b && vite build",
27
27
  "lint": "eslint .",
28
- "preview": "vite preview"
28
+ "preview": "vite preview",
29
+ "prepare": "rm -rf dist && tsc && vite build",
30
+ "add:package": "yarn add ./enerdot-front-system-v0.0.4.tgz",
31
+ "reset:package": "yarn remove enerdot-front-system && yarn cache clean && rm -rf ./enerdot-front-system-v0.0.4.tgz && yarn add enerdot-front-system"
32
+ },
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "require": "./dist/index.cjs.js",
37
+ "import": "./dist/index.es.js"
38
+ }
29
39
  },
30
40
  "peerDependencies": {
31
41
  "react": "^18.3.1",
@@ -33,8 +43,7 @@
33
43
  "styled-components": "^6.1.14"
34
44
  },
35
45
  "dependencies": {
36
- "@eunbae/react-library-ex": "^0.0.4",
37
- "enerdot-front-system": "^0.0.1",
46
+ "enerdot-front-system": "./enerdot-front-system-v0.0.3.tgz",
38
47
  "react": "^18.3.1",
39
48
  "react-dom": "^18.3.1",
40
49
  "styled-components": "^6.1.14"
@@ -1,3 +0,0 @@
1
- import { ButtonProps } from '.';
2
- declare const PrimaryButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
- export default PrimaryButton;
@@ -1,3 +0,0 @@
1
- import { ButtonProps } from '.';
2
- declare const SecondaryButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
- export default SecondaryButton;
@@ -1,3 +0,0 @@
1
- import { ButtonProps } from '.';
2
- declare const TertiaryButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
- export default TertiaryButton;
@@ -1,3 +0,0 @@
1
- import { ButtonProps } from '.';
2
- declare const TextButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
- export default TextButton;
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { default as Button } from './components/Button';
2
- export * from './theme/color.style';
File without changes
File without changes
File without changes