@ncds/ui-admin 0.0.10 → 0.0.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.
Files changed (37) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/dist/ui-admin/assets/styles/style.css +226 -36
  3. package/dist/ui-admin/index.d.ts +0 -10
  4. package/dist/ui-admin/index.d.ts.map +1 -1
  5. package/dist/ui-admin/index.js +0 -110
  6. package/dist/ui-admin/src/components/button/ButtonGroup.d.ts +1 -1
  7. package/dist/ui-admin/src/components/button/index.d.ts +0 -1
  8. package/dist/ui-admin/src/components/button/index.d.ts.map +1 -1
  9. package/dist/ui-admin/src/components/button/index.js +0 -11
  10. package/dist/ui-admin/src/components/date-picker/DatePicker.d.ts +13 -0
  11. package/dist/ui-admin/src/components/date-picker/DatePicker.d.ts.map +1 -0
  12. package/dist/ui-admin/src/components/date-picker/DatePicker.js +87 -0
  13. package/dist/ui-admin/src/components/index.d.ts +0 -4
  14. package/dist/ui-admin/src/components/index.d.ts.map +1 -1
  15. package/dist/ui-admin/src/components/index.js +0 -44
  16. package/dist/ui-admin/src/components/pagination/Pagination.d.ts +2 -1
  17. package/dist/ui-admin/src/components/pagination/Pagination.d.ts.map +1 -1
  18. package/dist/ui-admin/src/components/pagination/Pagination.js +10 -8
  19. package/dist/ui-admin/src/components/pagination/index.d.ts +0 -1
  20. package/dist/ui-admin/src/components/pagination/index.d.ts.map +1 -1
  21. package/dist/ui-admin/src/components/pagination/index.js +0 -11
  22. package/package.json +3 -1
  23. package/dist/ui-admin/src/components/input/index.d.ts +0 -3
  24. package/dist/ui-admin/src/components/input/index.d.ts.map +0 -1
  25. package/dist/ui-admin/src/components/input/index.js +0 -27
  26. package/dist/ui-admin/src/components/shared/hintText/index.d.ts +0 -2
  27. package/dist/ui-admin/src/components/shared/hintText/index.d.ts.map +0 -1
  28. package/dist/ui-admin/src/components/shared/hintText/index.js +0 -16
  29. package/dist/ui-admin/src/components/shared/index.d.ts +0 -3
  30. package/dist/ui-admin/src/components/shared/index.d.ts.map +0 -1
  31. package/dist/ui-admin/src/components/shared/index.js +0 -27
  32. package/dist/ui-admin/src/components/shared/label/index.d.ts +0 -2
  33. package/dist/ui-admin/src/components/shared/label/index.d.ts.map +0 -1
  34. package/dist/ui-admin/src/components/shared/label/index.js +0 -16
  35. package/dist/ui-admin/src/components/spinner/index.d.ts +0 -2
  36. package/dist/ui-admin/src/components/spinner/index.d.ts.map +0 -1
  37. package/dist/ui-admin/src/components/spinner/index.js +0 -16
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/pagination/Pagination.tsx"],"names":[],"mappings":"AAMA,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,KAAK,qBAAqB,GAAG,qBAAqB,GAAG;IACnD,EAAE,CAAC,EAAE,QAAQ,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,KAAK,qBAAqB,GAAG,qBAAqB,GAAG;IACnD,EAAE,EAAE,GAAG,CAAC;IACR,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,eAAe,GAAG,qBAAqB,GAAG,qBAAqB,CAAC;AAIrE,eAAO,MAAM,UAAU,wGASpB,eAAe,4CAuHjB,CAAC"}
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/pagination/Pagination.tsx"],"names":[],"mappings":"AAMA,KAAK,qBAAqB,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,KAAK,qBAAqB,GAAG,qBAAqB,GAAG;IACnD,EAAE,CAAC,EAAE,QAAQ,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,KAAK,qBAAqB,GAAG,qBAAqB,GAAG;IACnD,EAAE,EAAE,GAAG,CAAC;IACR,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,eAAe,GAAG,qBAAqB,GAAG,qBAAqB,CAAC;AAIrE,eAAO,MAAM,UAAU,oHAUpB,eAAe,4CAuHjB,CAAC"}
@@ -41,15 +41,17 @@ var Pagination = function (_a) {
41
41
  currentPage = _a.currentPage,
42
42
  _e = _a.as,
43
43
  as = _e === void 0 ? 'button' : _e,
44
+ _f = _a.breakPoint,
45
+ breakPoint = _f === void 0 ? 'pc' : _f,
44
46
  onPageChange = _a.onPageChange,
45
- restProps = __rest(_a, ["className", "totalCount", "itemCountPerPage", "pageCount", "currentPage", "as", "onPageChange"]);
47
+ restProps = __rest(_a, ["className", "totalCount", "itemCountPerPage", "pageCount", "currentPage", "as", "breakPoint", "onPageChange"]);
46
48
  var totalPage = Math.ceil(totalCount / itemCountPerPage);
47
- var _f = (0, _react.useState)(1),
48
- start = _f[0],
49
- setStart = _f[1];
50
- var _g = (0, _react.useState)(globalThis.innerWidth > _constant.MINIMUM_PC_SIZE),
51
- isPC = _g[0],
52
- setIsPC = _g[1];
49
+ var _g = (0, _react.useState)(1),
50
+ start = _g[0],
51
+ setStart = _g[1];
52
+ var _h = (0, _react.useState)(globalThis.innerWidth > _constant.MINIMUM_PC_SIZE),
53
+ isPC = _h[0],
54
+ setIsPC = _h[1];
53
55
  var noPrev = start === 1;
54
56
  var noNext = start + pageCount - 1 >= totalPage;
55
57
  var showJumpPageButton = totalPage > pageCount;
@@ -90,7 +92,7 @@ var Pagination = function (_a) {
90
92
  }, []);
91
93
  return (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
92
94
  children: (0, _jsxRuntime.jsxs)("div", __assign({
93
- className: (0, _classnames.default)('ncua-pagination', className)
95
+ className: (0, _classnames.default)('ncua-pagination', "ncua-pagination--".concat(breakPoint), className)
94
96
  }, {
95
97
  children: [showJumpPageButton && (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
96
98
  children: [(0, _NavButton.NavButton)({
@@ -1,3 +1,2 @@
1
- export * from './NavButton';
2
1
  export * from './Pagination';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/pagination/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/pagination/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -3,17 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _NavButton = require("./NavButton");
7
- Object.keys(_NavButton).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _NavButton[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _NavButton[key];
14
- }
15
- });
16
- });
17
6
  var _Pagination = require("./Pagination");
18
7
  Object.keys(_Pagination).forEach(function (key) {
19
8
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncds/ui-admin",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "nhn-commerce의 어드민 디자인 시스템입니다.",
5
5
  "scripts": {
6
6
  "barrel": "node barrel.js",
@@ -64,6 +64,7 @@
64
64
  "@ncds/types-layout": "^1.0.0",
65
65
  "@ncds/ui-admin-icon": "0.0.14",
66
66
  "classnames": "^2.3.2",
67
+ "react-flatpickr": "^4.0.10",
67
68
  "swiper": "^11.1.1"
68
69
  },
69
70
  "devDependencies": {
@@ -75,6 +76,7 @@
75
76
  "@types/node": "^20.4.5",
76
77
  "@types/react": "^18.2.18",
77
78
  "@types/react-dom": "^18.2.7",
79
+ "@types/react-flatpickr": "^3.8.11",
78
80
  "babel-loader": "^9.1.3",
79
81
  "babel-plugin-named-exports-order": "^0.0.2",
80
82
  "const": "*",
@@ -1,3 +0,0 @@
1
- export * from './InputBase';
2
- export * from './PasswordInput';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/input/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _InputBase = require("./InputBase");
7
- Object.keys(_InputBase).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _InputBase[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _InputBase[key];
14
- }
15
- });
16
- });
17
- var _PasswordInput = require("./PasswordInput");
18
- Object.keys(_PasswordInput).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _PasswordInput[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _PasswordInput[key];
25
- }
26
- });
27
- });
@@ -1,2 +0,0 @@
1
- export * from './HintText';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/hintText/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _HintText = require("./HintText");
7
- Object.keys(_HintText).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _HintText[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _HintText[key];
14
- }
15
- });
16
- });
@@ -1,3 +0,0 @@
1
- export * from './hintText';
2
- export * from './label';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _hintText = require("./hintText");
7
- Object.keys(_hintText).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _hintText[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _hintText[key];
14
- }
15
- });
16
- });
17
- var _label = require("./label");
18
- Object.keys(_label).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _label[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _label[key];
25
- }
26
- });
27
- });
@@ -1,2 +0,0 @@
1
- export * from './Label';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/label/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Label = require("./Label");
7
- Object.keys(_Label).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Label[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _Label[key];
14
- }
15
- });
16
- });
@@ -1,2 +0,0 @@
1
- export * from './Spinner';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/spinner/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Spinner = require("./Spinner");
7
- Object.keys(_Spinner).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Spinner[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _Spinner[key];
14
- }
15
- });
16
- });