@hcore/core-ui-test 1.1.6 → 1.1.12

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,24 +5,3 @@
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
-
28
- #### http://localhost:3000/ui?pcd=uitest
@@ -0,0 +1,2 @@
1
+ export declare const HGridTable: (props: string) => string;
2
+ export declare const HGridRow: (props: string) => string;
@@ -0,0 +1,6 @@
1
+ export const HGridTable = (props) => {
2
+ return `grid-table-${props}`;
3
+ };
4
+ export const HGridRow = (props) => {
5
+ return `grid-row-${props}`;
6
+ };
@@ -0,0 +1,2 @@
1
+ export * from './input';
2
+ export * from './grid';
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './input';
2
+ export * from './grid';
@@ -0,0 +1,2 @@
1
+ export declare const HInputText: (props: string) => string;
2
+ export declare const HInputSelect: (props: string) => string;
@@ -0,0 +1,6 @@
1
+ export const HInputText = (props) => {
2
+ return `input-text-${props}`;
3
+ };
4
+ export const HInputSelect = (props) => {
5
+ return `input-select-${props}`;
6
+ };
package/package.json CHANGED
@@ -1,13 +1,29 @@
1
- {
2
- "name": "@hcore/core-ui-test",
3
- "version": "1.1.6",
4
- "description": "@core-ui 테스트",
5
- "main": "src/index.js",
6
- "types": "src/index.d.ts",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
9
- },
10
- "keywords": [],
11
- "author": "",
12
- "license": "ISC"
13
- }
1
+ {
2
+ "name": "@hcore/core-ui-test",
3
+ "version": "1.1.12",
4
+ "description": "@core-ui 테스트",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "publish": "npm version patch --no-git-tag-version && npm publish --access public"
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.js",
17
+ "types": "./dist/index.d.ts"
18
+ },
19
+ "./input": {
20
+ "import": "./dist/input/index.js"
21
+ },
22
+ "./grid": {
23
+ "import": "./dist/grid/index.js"
24
+ }
25
+ },
26
+ "devDependencies": {
27
+ "typescript": "^5.8.3"
28
+ }
29
+ }
@@ -1,49 +0,0 @@
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
- export type ITextUi = {
12
- type?: string;
13
- name: string;
14
- value?: string;
15
- width?: string;
16
- label?: string;
17
- labelWidth?: string;
18
- required?: boolean;
19
- readOnly?: boolean;
20
- disabled?: boolean;
21
- event?: {
22
- change?: string;
23
- };
24
- placeholder?: string;
25
- class?: string;
26
- style?: string;
27
- };
28
-
29
- export type ISelectUi = {
30
- type?: string
31
- name?: string
32
- value?: string
33
- width?: string
34
- label?: string
35
- labelWidth?: string
36
- required?: boolean
37
- readOnly?: boolean
38
- disabled?: boolean
39
- event?: {
40
- change?: string
41
- }
42
- textField?: string
43
- valueField?: string
44
- data?: Array<any>
45
- // api?: htype.IHttpAPI
46
- codeKey?: string
47
- class?: string
48
- style?: string
49
- }
@@ -1,13 +0,0 @@
1
-
2
- export const HInputText=(param)=>{
3
- return {
4
- type: param.type,
5
- name: param.name
6
- };
7
- }
8
- export const HInputSelect=(param)=>{
9
- return {
10
- type: param.type,
11
- name: param.name
12
- };
13
- }
package/src/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { HInputText, HInputSelect } from './components/HInput';
package/src/index.js DELETED
@@ -1,3 +0,0 @@
1
- import { HInputText, HInputSelect } from './components/HInput';
2
-
3
- export { HInputText, HInputSelect };