@hcore/core-ui-test 1.0.2 → 1.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/README.md +21 -4
- package/package.json +2 -2
- package/src/components/HGrid/index.d.ts +12 -0
- package/src/components/HGrid/index.js +9 -0
- package/src/components/HInput/index.d.ts +30 -0
- package/src/components/HInput/index.js +22 -0
- package/src/components/index.d.ts +12 -0
- package/src/components/index.js +4 -0
- package/tsconfig.json +9 -0
- package/index.d.ts +0 -1
- package/src/index.js +0 -8
package/README.md
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
# core-ui-test
|
|
2
2
|
|
|
3
3
|
### npm publish 명령어
|
|
4
|
-
npm publish --access public
|
|
4
|
+
- npm publish --access public
|
|
5
5
|
|
|
6
6
|
### npm install 명령어
|
|
7
|
-
npm i @hcore/core-ui-test
|
|
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
|
+
|
|
8
27
|
|
|
9
|
-
### 타입스크립트 사용을 위해 package.json 에 추가
|
|
10
|
-
"types": "index.d.ts"
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hcore/core-ui-test",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "@core-ui 테스트",
|
|
5
5
|
"main": "src/index.js",
|
|
6
|
-
"types": "index.d.ts",
|
|
6
|
+
"types": "src/component/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
9
|
},
|
|
@@ -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;
|
package/tsconfig.json
ADDED
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function getName(name: string): string;
|