@ncds/ui-admin 1.0.0 → 1.0.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentProps } from 'react';
|
|
2
2
|
import { Size } from '../../../constant/size';
|
|
3
|
-
import { SideSlotType } from '
|
|
3
|
+
import { SideSlotType } from '../../types/side-slot';
|
|
4
4
|
export type ButtonGroupSize = Extract<Size, 'xs' | 'sm' | 'md' | 'lg'>;
|
|
5
5
|
interface SideCommon {
|
|
6
6
|
position?: 'leading' | 'trailing';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { IconName } from '@ncds/ui-admin-icon';
|
|
2
2
|
import { COLOR } from '@ncds/ui-admin/constant/color';
|
|
3
3
|
import { Size } from '@ncds/ui/constant/size';
|
|
4
4
|
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
@@ -8,13 +8,13 @@ export type OptionType = {
|
|
|
8
8
|
id: string | number;
|
|
9
9
|
label: string;
|
|
10
10
|
};
|
|
11
|
-
type
|
|
11
|
+
type IconSlot = {
|
|
12
12
|
icon: IconName;
|
|
13
13
|
color?: keyof typeof COLOR;
|
|
14
14
|
size?: number;
|
|
15
15
|
};
|
|
16
16
|
export interface SelectProps extends PropsWithChildren<BaseSelectProps> {
|
|
17
|
-
icon?:
|
|
17
|
+
icon?: IconSlot;
|
|
18
18
|
placeholder?: string;
|
|
19
19
|
disabledPlaceholder?: boolean;
|
|
20
20
|
hintText?: string;
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncds/ui-admin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "nhn-commerce의 어드민 디자인 시스템입니다.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"barrel": "node barrel.js",
|
|
7
7
|
"build": "webpack --node-env production",
|
|
8
|
-
"build:
|
|
8
|
+
"build:cdn": "rm -rf dist && webpack --node-env production --config webpack.cdn.config.js && node scripts/verify-build.js --type=cdn",
|
|
9
|
+
"build:npm": "rm -rf dist && node scripts/build-npm.js && node scripts/verify-build.js --type=npm",
|
|
9
10
|
"dev": "webpack serve --node-env development --open --hot",
|
|
10
11
|
"dev:html": "webpack serve --node-env development --open --config webpack.html.config.js",
|
|
11
|
-
"
|
|
12
|
-
"lint": "eslint \"**/*.ts*\"",
|
|
12
|
+
"lint": "eslint src/**/*.tsx src/**/*.ts",
|
|
13
13
|
"major": "yarn version --major",
|
|
14
14
|
"minor": "yarn version --minor",
|
|
15
15
|
"patch": "yarn version --patch",
|
|
16
16
|
"prestart": "cross-env NODE_ENV=production yarn run build",
|
|
17
|
-
"publish:npm": "npm publish --access=public",
|
|
17
|
+
"publish:npm": "yarn build:npm && npm publish --access=public",
|
|
18
|
+
"publish:cdn": "yarn build:cdn && node scripts/publish-cdn.js",
|
|
18
19
|
"start": "webpack --node-env development",
|
|
19
|
-
"test": "react-scripts test",
|
|
20
20
|
"tsc": "tsc --pretty --listFiles"
|
|
21
21
|
},
|
|
22
22
|
"author": {
|
|
@@ -65,6 +65,9 @@
|
|
|
65
65
|
"@ncds/types-layout": "^1.0.0",
|
|
66
66
|
"@ncds/ui-admin-icon": "0.0.16",
|
|
67
67
|
"classnames": "^2.3.2",
|
|
68
|
+
"lodash": "^4.17.21",
|
|
69
|
+
"lodash-es": "^4.17.21",
|
|
70
|
+
"moment": "^2.30.1",
|
|
68
71
|
"react-flatpickr": "^4.0.10",
|
|
69
72
|
"swiper": "^11.1.1"
|
|
70
73
|
},
|
|
@@ -74,6 +77,7 @@
|
|
|
74
77
|
"@babel/preset-env": "^7.22.9",
|
|
75
78
|
"@babel/preset-react": "^7.22.5",
|
|
76
79
|
"@babel/preset-typescript": "^7.22.5",
|
|
80
|
+
"@ncds/cdn-manager": "*",
|
|
77
81
|
"@types/node": "^20.4.5",
|
|
78
82
|
"@types/react": "^18.2.18",
|
|
79
83
|
"@types/react-dom": "^18.2.7",
|
|
@@ -101,6 +105,7 @@
|
|
|
101
105
|
"sass-loader": "^13.3.2",
|
|
102
106
|
"style-loader": "^3.3.3",
|
|
103
107
|
"ts-loader": "^9.4.4",
|
|
108
|
+
"ts-node": "^10.9.2",
|
|
104
109
|
"tsconfig": "*",
|
|
105
110
|
"typescript": "5.0.4",
|
|
106
111
|
"webpack": "^5.88.2",
|