diginet-core-ui 1.3.24 → 1.3.29

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 (153) hide show
  1. package/assets/fonts/SF-Pro-Display-Bold.otf +0 -0
  2. package/assets/fonts/SF-Pro-Display-Medium.otf +0 -0
  3. package/assets/fonts/SF-Pro-Display-Regular.otf +0 -0
  4. package/assets/images/icons/wifi.svg +3 -0
  5. package/assets/images/menu/dhr/MHRM09N0004.svg +14 -0
  6. package/assets/images/menu/dhr/MHRP09N0028.svg +6 -0
  7. package/assets/images/menu/dhr/MHRP09N0029.svg +14 -0
  8. package/assets/images/menu/dhr/MHRP09N0030.svg +4 -0
  9. package/assets/images/menu/dhr/MHRP09N0031.svg +5 -0
  10. package/assets/images/menu/dhr/MHRP29N0012.svg +7 -0
  11. package/assets/images/menu/dhr/MHRP29N0021.svg +8 -0
  12. package/assets/images/menu/dhr/MHRP29N0022.svg +9 -0
  13. package/assets/images/menu/dhr/MHRP29N0023.svg +22 -0
  14. package/assets/images/menu/dhr/MHRP39N0015.svg +5 -0
  15. package/assets/images/menu/dhr/TASK.svg +9 -0
  16. package/assets/images/menu/erp/D05.svg +8 -0
  17. package/assets/images/menu/erp/D06.svg +4 -0
  18. package/assets/images/menu/erp/D90R.svg +9 -0
  19. package/assets/images/menu/erp/DBC.svg +9 -0
  20. package/assets/images/menu/erp/{W05F0006.svg → W05F0006N0000.svg} +0 -0
  21. package/assets/images/menu/erp/{W05F0008.svg → W05F0008N0000.svg} +0 -0
  22. package/assets/images/menu/erp/{W05F4000.svg → W05F4000N0000.svg} +0 -0
  23. package/assets/images/menu/erp/{W06F0005.svg → W06F0005N0000.svg} +0 -0
  24. package/assets/images/menu/erp/{W06F0006.svg → W06F0006N0000.svg} +0 -0
  25. package/assets/images/menu/erp/{W06F0008.svg → W06F0008N0000.svg} +0 -0
  26. package/assets/images/menu/erp/W94F1000N0000.svg +9 -0
  27. package/assets/images/menu/erp/W94F1000N0001.svg +9 -0
  28. package/components/accordion/css.js +42 -33
  29. package/components/accordion/details.js +29 -17
  30. package/components/accordion/group.js +23 -23
  31. package/components/accordion/index.js +36 -27
  32. package/components/accordion/summary.js +10 -11
  33. package/components/alert/index.js +97 -91
  34. package/components/alert/notify.js +10 -8
  35. package/components/avatar/index.js +19 -17
  36. package/components/badge/index.js +122 -139
  37. package/components/button/icon.js +242 -334
  38. package/components/button/index.js +272 -427
  39. package/components/button/more.js +4 -5
  40. package/components/button/ripple-effect.js +4 -6
  41. package/components/card/body-card.js +4 -6
  42. package/components/card/card.js +4 -8
  43. package/components/card/index.js +4 -5
  44. package/components/chart/Pie/Sector.js +4 -5
  45. package/components/chart/Pie/Sectors.js +5 -5
  46. package/components/chart/Pie/index.js +8 -9
  47. package/components/chart/Pie-v2/Sector.js +4 -5
  48. package/components/chart/Pie-v2/Sectors.js +7 -8
  49. package/components/chart/Pie-v2/index.js +11 -16
  50. package/components/chart/bar/Bar.js +2 -3
  51. package/components/chart/bar/Labels.js +9 -11
  52. package/components/chart/bar/index.js +17 -9
  53. package/components/chart/bar-v2/Bar.js +2 -3
  54. package/components/chart/bar-v2/Labels.js +9 -11
  55. package/components/chart/bar-v2/index.js +17 -9
  56. package/components/chart/line/Labels.js +8 -10
  57. package/components/chart/line/Point.js +2 -3
  58. package/components/chart/line/index.js +17 -9
  59. package/components/chart/line-v2/Labels.js +8 -10
  60. package/components/chart/line-v2/Point.js +2 -3
  61. package/components/chart/line-v2/index.js +17 -9
  62. package/components/chip/attach.js +12 -16
  63. package/components/chip/index.js +8 -11
  64. package/components/collapse/index.js +4 -5
  65. package/components/divider/index.js +27 -14
  66. package/components/form-control/attachment/index.js +143 -87
  67. package/components/form-control/calendar/function.js +24 -23
  68. package/components/form-control/calendar/index.js +2 -4
  69. package/components/form-control/calendar/range.js +3 -4
  70. package/components/form-control/checkbox/index.js +85 -71
  71. package/components/form-control/control/index.js +4 -6
  72. package/components/form-control/date-picker/index-old.js +0 -2
  73. package/components/form-control/date-picker/index.js +39 -43
  74. package/components/form-control/date-range-picker/index.js +26 -28
  75. package/components/form-control/dropdown/index.js +173 -202
  76. package/components/form-control/dropdown-box/index.js +72 -49
  77. package/components/form-control/form-group/index.js +4 -5
  78. package/components/form-control/helper-text/index.js +4 -5
  79. package/components/form-control/input-base/index.js +28 -38
  80. package/components/form-control/label/index.js +23 -13
  81. package/components/form-control/money-input/index.js +6 -6
  82. package/components/form-control/number-input/index.js +12 -14
  83. package/components/form-control/phone-input/index.js +4 -5
  84. package/components/form-control/radio/index.js +7 -15
  85. package/components/form-control/text-input/index.js +14 -24
  86. package/components/form-control/time-picker/index.js +15 -26
  87. package/components/form-control/time-picker/swiper.js +2 -4
  88. package/components/form-control/toggle/index.js +22 -18
  89. package/components/form-view/helper-text.js +4 -5
  90. package/components/form-view/index.js +4 -5
  91. package/components/form-view/input.js +5 -7
  92. package/components/form-view/label.js +2 -6
  93. package/components/list/list-item-action.js +7 -8
  94. package/components/list/list-item-icon.js +4 -5
  95. package/components/list/list-item-text.js +4 -5
  96. package/components/list/list-item.js +4 -5
  97. package/components/list/list.js +4 -5
  98. package/components/list/sub-header.js +4 -5
  99. package/components/modal/body.js +4 -6
  100. package/components/modal/footer.js +4 -6
  101. package/components/modal/header.js +8 -14
  102. package/components/modal/index.js +4 -5
  103. package/components/modal/modal.js +6 -13
  104. package/components/others/extra/index.js +4 -8
  105. package/components/others/option-wrapper/index.js +57 -0
  106. package/components/others/scrollbar/index.js +4 -5
  107. package/components/paging/page-info.js +282 -231
  108. package/components/paging/page-selector.js +4 -7
  109. package/components/popover/index.js +6 -7
  110. package/components/popup/danger_popup.js +8 -18
  111. package/components/popup/index.js +26 -34
  112. package/components/popup/proposals_popup.js +9 -16
  113. package/components/popup/v2/danger-popup.js +4 -6
  114. package/components/popup/v2/index.js +116 -98
  115. package/components/popup/v2/info-popup.js +4 -6
  116. package/components/popup/v2/success-popup.js +4 -6
  117. package/components/popup/v2/warning-popup.js +4 -6
  118. package/components/popup/v2/yes-no-popup.js +4 -6
  119. package/components/progress/circular.js +17 -26
  120. package/components/progress/linear.js +11 -13
  121. package/components/rating/index.js +114 -233
  122. package/components/slider/slider-container.js +15 -10
  123. package/components/slider/slider-item.js +10 -12
  124. package/components/status/index.js +63 -57
  125. package/components/tab/tab-container.js +26 -24
  126. package/components/tab/tab-header.js +36 -27
  127. package/components/tab/tab-panel.js +32 -15
  128. package/components/tab/tab.js +79 -80
  129. package/components/tooltip/index.js +4 -4
  130. package/components/transfer/index.js +10 -11
  131. package/components/tree-view/css.js +2 -0
  132. package/components/tree-view/index.js +14 -13
  133. package/components/typography/index.js +6 -112
  134. package/css/styles.css +1 -1
  135. package/css/styles.css.map +1 -1
  136. package/global/index.js +2 -0
  137. package/icons/basic.js +1648 -959
  138. package/icons/effect.js +45 -103
  139. package/package.json +1 -1
  140. package/readme.md +66 -0
  141. package/styles/color-helper.js +7 -146
  142. package/styles/colors.js +6 -2
  143. package/styles/font.js +9 -0
  144. package/styles/general.js +100 -7
  145. package/styles/typography.js +25 -26
  146. package/theme/settings.js +9 -2
  147. package/theme/theme-provider.js +15 -7
  148. package/theme/with-styles.js +2 -4
  149. package/theme/with-theme.js +2 -4
  150. package/utils/isMobile.js +21 -0
  151. package/utils/renderHTML.js +4 -5
  152. package/utils/renderIcon.js +15 -11
  153. package/utils/updatePosition.js +2 -2
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /** @jsxRuntime classic */
4
2
 
5
3
  /** @jsx jsx */
@@ -8,10 +6,10 @@ import { memo, forwardRef } from 'react';
8
6
  import PopupV2 from '.';
9
7
  const InfoPopup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({ ...props
10
8
  }, ref) => {
11
- return jsx(PopupV2, _extends({
12
- ref: ref
13
- }, props, {
9
+ return jsx(PopupV2, {
10
+ ref: ref,
11
+ ...props,
14
12
  type: 'info'
15
- }));
13
+ });
16
14
  }));
17
15
  export default InfoPopup;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /** @jsxRuntime classic */
4
2
 
5
3
  /** @jsx jsx */
@@ -8,10 +6,10 @@ import { memo, forwardRef } from 'react';
8
6
  import PopupV2 from '.';
9
7
  const SuccessPopup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({ ...props
10
8
  }, ref) => {
11
- return jsx(PopupV2, _extends({
12
- ref: ref
13
- }, props, {
9
+ return jsx(PopupV2, {
10
+ ref: ref,
11
+ ...props,
14
12
  type: 'success'
15
- }));
13
+ });
16
14
  }));
17
15
  export default SuccessPopup;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /** @jsxRuntime classic */
4
2
 
5
3
  /** @jsx jsx */
@@ -8,10 +6,10 @@ import { memo, forwardRef } from 'react';
8
6
  import PopupV2 from '.';
9
7
  const WarningPopup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({ ...props
10
8
  }, ref) => {
11
- return jsx(PopupV2, _extends({
12
- ref: ref
13
- }, props, {
9
+ return jsx(PopupV2, {
10
+ ref: ref,
11
+ ...props,
14
12
  type: 'warning'
15
- }));
13
+ });
16
14
  }));
17
15
  export default WarningPopup;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /** @jsxRuntime classic */
4
2
 
5
3
  /** @jsx jsx */
@@ -11,10 +9,10 @@ const YesNoPopup = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
11
9
  onCancel,
12
10
  ...props
13
11
  }, ref) => {
14
- return jsx(PopupV2, _extends({
15
- ref: ref
16
- }, props, {
12
+ return jsx(PopupV2, {
13
+ ref: ref,
14
+ ...props,
17
15
  type: 'yesno'
18
- }));
16
+ });
19
17
  }));
20
18
  export default YesNoPopup;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /** @jsxRuntime classic */
4
2
 
5
3
  /** @jsx jsx */
@@ -7,6 +5,7 @@ import { css, jsx, keyframes } from '@emotion/core';
7
5
  import PropTypes from 'prop-types';
8
6
  import { forwardRef, memo, useMemo, useRef } from 'react';
9
7
  import theme from '../../theme/settings';
8
+ import { typography } from '../../styles/typography';
10
9
 
11
10
  const validatePercent = percent => {
12
11
  let per = +percent.toString().replace('%', '');
@@ -19,47 +18,41 @@ const getDimension = size => {
19
18
  switch (size) {
20
19
  case 'xl':
21
20
  case 'extraLarge':
22
- labelStyle = { ...theme.typography.h1
23
- };
21
+ labelStyle = typography.heading1;
24
22
  rect = 120;
25
23
  strokeWidth = 16;
26
24
  break;
27
25
 
28
26
  case 'lg':
29
27
  case 'large':
30
- labelStyle = { ...theme.typography.h2
31
- };
28
+ labelStyle = typography.heading2;
32
29
  rect = 80;
33
30
  strokeWidth = 12;
34
31
  break;
35
32
 
36
33
  case 'md':
37
34
  case 'medium':
38
- labelStyle = { ...theme.typography.p1
39
- };
35
+ labelStyle = typography.paragraph1;
40
36
  rect = 60;
41
37
  strokeWidth = 8;
42
38
  break;
43
39
 
44
40
  case 'sm':
45
41
  case 'small':
46
- labelStyle = { ...theme.typography.p2
47
- };
42
+ labelStyle = typography.paragraph2;
48
43
  rect = 40;
49
44
  strokeWidth = 6;
50
45
  break;
51
46
 
52
47
  case 'xs':
53
48
  case 'extraSmall':
54
- labelStyle = { ...theme.typography.p3
55
- };
49
+ labelStyle = typography.paragraph3;
56
50
  rect = 20;
57
51
  strokeWidth = 4;
58
52
  break;
59
53
 
60
54
  default:
61
- labelStyle = { ...theme.typography.h2
62
- };
55
+ labelStyle = typography.heading2;
63
56
  rect = 80;
64
57
  strokeWidth = 8;
65
58
  }
@@ -155,9 +148,7 @@ const Determinate = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
155
148
  `;
156
149
  const textCSS = css`
157
150
  fill : ${percentColor ? percentColor : color};
158
- font-family: ${dimension.labelStyle.fontFamily};
159
- font-size : ${dimension.labelStyle.fontSize};
160
- line-height: ${dimension.labelStyle.lineHeight};
151
+ ${dimension.labelStyle}
161
152
  text-anchor: middle;
162
153
  user-select: none;
163
154
  `;
@@ -180,10 +171,10 @@ const Determinate = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
180
171
  x: containerW / 2,
181
172
  y: containerW / 2 + containerW / 80
182
173
  }, validatePercent(percent), "%"), [color, percentColor, percent, size, strokeWidth, showValue, width]);
183
- return jsx("svg", _extends({}, props, {
174
+ return jsx("svg", { ...props,
184
175
  css: containerCSS,
185
176
  ref: ref
186
- }), CircleBackgroundMemo, CircleMainMemo, PercentTextMemo);
177
+ }, CircleBackgroundMemo, CircleMainMemo, PercentTextMemo);
187
178
  }));
188
179
  Determinate.defaultProps = {
189
180
  background: theme.colors.bgProgress,
@@ -313,10 +304,10 @@ const Indeterminate = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
313
304
  r: radius,
314
305
  ref: circleRef
315
306
  }), [color, size, strokeWidth, width]);
316
- return jsx("svg", _extends({}, props, {
307
+ return jsx("svg", { ...props,
317
308
  css: containerCSS,
318
309
  ref: ref
319
- }), CircleBackgroundMemo, CircleMainMemo);
310
+ }, CircleBackgroundMemo, CircleMainMemo);
320
311
  }));
321
312
  Indeterminate.defaultProps = {
322
313
  background: theme.colors.bgProgress,
@@ -354,17 +345,17 @@ const CircularProgress = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
354
345
  ...props
355
346
  }, ref) => {
356
347
  if (!ref) ref = useRef(null);
357
- return determinate ? jsx(DeterminateCircularProgress, _extends({
348
+ return determinate ? jsx(DeterminateCircularProgress, {
358
349
  direction: direction,
359
350
  duration: duration,
360
351
  percent: percent,
361
352
  percentColor: percentColor,
362
- showValue: true
363
- }, props, {
353
+ showValue: true,
354
+ ...props,
364
355
  ref: ref
365
- })) : jsx(IndeterminateCircularProgress, _extends({}, props, {
356
+ }) : jsx(IndeterminateCircularProgress, { ...props,
366
357
  ref: ref
367
- }));
358
+ });
368
359
  }));
369
360
  CircularProgress.defaultProps = {
370
361
  background: theme.colors.bgProgress,
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /** @jsxRuntime classic */
4
2
 
5
3
  /** @jsx jsx */
@@ -98,11 +96,11 @@ const Indeterminate = /*#__PURE__*/forwardRef(({
98
96
  className: unique.secondBar,
99
97
  ref: secondBarRef
100
98
  }), [color]);
101
- return jsx("div", _extends({}, props, {
99
+ return jsx("div", { ...props,
102
100
  className: [unique.container, className].join(' ').trimEnd(),
103
101
  css: containerCSS,
104
102
  ref: ref
105
- }), FirstBar, SecondBar);
103
+ }, FirstBar, SecondBar);
106
104
  });
107
105
  Indeterminate.defaultProps = {
108
106
  background: theme.colors.bgProgress,
@@ -213,11 +211,11 @@ const Determinate = /*#__PURE__*/forwardRef(({
213
211
  updateValuePosition(value);
214
212
  }
215
213
  }, [percent, showValue]);
216
- return jsx("div", _extends({}, props, {
214
+ return jsx("div", { ...props,
217
215
  className: [unique.container, className].join(' ').trim(),
218
216
  css: containerCSS,
219
217
  ref: ref
220
- }), Bar, Value);
218
+ }, Bar, Value);
221
219
  });
222
220
  Determinate.defaultProps = {
223
221
  background: theme.colors.bgProgress,
@@ -257,7 +255,7 @@ const LinearProgress = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
257
255
  ...props
258
256
  }, ref) => {
259
257
  if (!ref) ref = useRef(null);
260
- return determinate ? jsx(DeterminateLinearProgress, _extends({
258
+ return determinate ? jsx(DeterminateLinearProgress, {
261
259
  background: background,
262
260
  className: className,
263
261
  color: color,
@@ -267,18 +265,18 @@ const LinearProgress = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
267
265
  percentColor: percentColor,
268
266
  showValue: showValue,
269
267
  valuePosition: valuePosition,
270
- width: width
271
- }, props, {
268
+ width: width,
269
+ ...props,
272
270
  ref: ref
273
- })) : jsx(IndeterminateLinearProgress, _extends({
271
+ }) : jsx(IndeterminateLinearProgress, {
274
272
  background: background,
275
273
  className: className,
276
274
  color: color,
277
275
  height: height,
278
- width: width
279
- }, props, {
276
+ width: width,
277
+ ...props,
280
278
  ref: ref
281
- }));
279
+ });
282
280
  }));
283
281
  LinearProgress.defaultProps = {
284
282
  background: theme.colors.bgProgress,