@hcore/core-ui-test 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -5,3 +5,23 @@
5
5
 
6
6
  ### npm install 명령어
7
7
  - npm i @hcore/core-ui-test
8
+
9
+ ```
10
+ src/
11
+ ├── components/
12
+ │ ├── HInput/
13
+ │ │ ├── index.ts
14
+ │ │ ├── index.d.ts
15
+ │ ├── HGrid/
16
+ │ │ ├── index.ts
17
+ │ │ ├── index.d.ts
18
+ │ ├── HChart
19
+ ├── index.ts
20
+ ├── index.d.ts
21
+ ```
22
+
23
+ ### d.ts 파일
24
+ - 실제 값을 정의하는게 아닌 타입만 선언
25
+ - declare : 값을 할당하는 것이 아닌 변수 정의
26
+
27
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hcore/core-ui-test",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "@core-ui 테스트",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,12 @@
1
+ // TEST
2
+ export type IGrid = {
3
+ type?: string;
4
+ name: string;
5
+ value?: string;
6
+ };
7
+
8
+ export const HGrid: (props: IGrid) => {
9
+ type: string;
10
+ name: string;
11
+ };
12
+
@@ -0,0 +1,9 @@
1
+ // TEST
2
+ const HGrid=(props)=>{
3
+ return {
4
+ rows: props.rows,
5
+ columns: props.columns
6
+ };
7
+ }
8
+
9
+ export { HGrid };
@@ -0,0 +1,30 @@
1
+ export const HInputText: (props: ITextUi) => {
2
+ type: string;
3
+ name: string;
4
+ }
5
+
6
+ export const HInputSelect: (props: ISelectUi) => {
7
+ type: string;
8
+ name: string;
9
+ }
10
+
11
+ type ITextUi = {
12
+ type?: string;
13
+ name: string;
14
+ value?: string;
15
+ width?: string;
16
+ label?: string;
17
+
18
+ };
19
+
20
+ type ISelectUi = {
21
+ type?: string
22
+ name?: string
23
+ value?: string
24
+ width?: string
25
+ label?: string
26
+ labelWidth?: string
27
+
28
+ }
29
+
30
+
@@ -0,0 +1,22 @@
1
+ const HInput=()=>{
2
+
3
+ const HInputText=(param)=> {
4
+ return {
5
+ type: param.type,
6
+ name: param.name
7
+ };
8
+ }
9
+
10
+ const HInputSelect=(param)=> {
11
+ return {
12
+ type: param.type,
13
+ name: param.name
14
+ };
15
+ }
16
+ return{
17
+ HInputText,
18
+ HInputSelect
19
+ }
20
+ }
21
+
22
+ export { HInput };
@@ -0,0 +1,12 @@
1
+ import { HInputText, HInputSelect } from './HInput';
2
+ import { HGrid } from './HGrid';
3
+
4
+ declare const hcore: {
5
+ HInput: {
6
+ HInputText: typeof HInputText;
7
+ HInputSelect: typeof HInputSelect;
8
+ };
9
+ HGrid: typeof HGrid;
10
+ };
11
+
12
+ export default hcore;
@@ -0,0 +1,4 @@
1
+ import { HInput } from 'components/HInput'
2
+ import { HGrid } from 'components/HGrid'
3
+
4
+ export{ HInput, HGrid }
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": "src",
4
+ "paths": {
5
+ "components/*": ["components/*"]
6
+ }
7
+ }
8
+ }
9
+
package/src/index.js DELETED
@@ -1,8 +0,0 @@
1
- function start(name) {
2
- return `Hello, ${name}!`;
3
- }
4
-
5
- module.exports = {
6
- start
7
- };
8
-