@ncds/ui-admin 0.0.38 → 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.
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Tab = void 0;
7
- var _types = require("swiper/types");
7
+ var _swiper = require("swiper");
8
8
  var Tab = exports.Tab = /** @class */function () {
9
9
  function Tab(element) {
10
10
  this.swiper = null;
@@ -18,7 +18,7 @@ var Tab = exports.Tab = /** @class */function () {
18
18
  this.init();
19
19
  }
20
20
  Tab.prototype.init = function () {
21
- this.swiper = new _types.Swiper(this.element, {
21
+ this.swiper = new _swiper.Swiper(this.element, {
22
22
  slidesPerView: 'auto',
23
23
  spaceBetween: 8,
24
24
  grabCursor: true,
@@ -1,4 +1,4 @@
1
- import { Swiper } from 'swiper/types';
1
+ import { Swiper } from 'swiper';
2
2
  var Tab = /** @class */function () {
3
3
  function Tab(element) {
4
4
  this.swiper = null;
@@ -1,6 +1,6 @@
1
1
  import React, { ComponentProps } from 'react';
2
2
  import { Size } from '../../../constant/size';
3
- import { SideSlotType } from 'ui-admin/src/types/side-slot';
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 Icon, { IconName } from '@ncds/ui-admin-icon';
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 Icon = {
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?: Icon;
17
+ icon?: IconSlot;
18
18
  placeholder?: string;
19
19
  disabledPlaceholder?: boolean;
20
20
  hintText?: string;
@@ -179,6 +179,7 @@ button {
179
179
  width: 1px;
180
180
  height: 1px;
181
181
  clip: rect(0, 0, 0, 0);
182
+ z-index: -9999;
182
183
  }
183
184
 
184
185
  .bold {
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@ncds/ui-admin",
3
- "version": "0.0.38",
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:npm": "node build-npm.js",
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
- "eject": "react-scripts eject",
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,11 +105,11 @@
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",
107
112
  "webpack-cli": "^5.1.4",
108
- "webpack-dev-server": "^4.15.1",
109
- "webpack-spritesmith": "^1.1.0"
113
+ "webpack-dev-server": "^4.15.1"
110
114
  }
111
115
  }