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.
- package/assets/fonts/SF-Pro-Display-Bold.otf +0 -0
- package/assets/fonts/SF-Pro-Display-Medium.otf +0 -0
- package/assets/fonts/SF-Pro-Display-Regular.otf +0 -0
- package/assets/images/icons/wifi.svg +3 -0
- package/assets/images/menu/dhr/MHRM09N0004.svg +14 -0
- package/assets/images/menu/dhr/MHRP09N0028.svg +6 -0
- package/assets/images/menu/dhr/MHRP09N0029.svg +14 -0
- package/assets/images/menu/dhr/MHRP09N0030.svg +4 -0
- package/assets/images/menu/dhr/MHRP09N0031.svg +5 -0
- package/assets/images/menu/dhr/MHRP29N0012.svg +7 -0
- package/assets/images/menu/dhr/MHRP29N0021.svg +8 -0
- package/assets/images/menu/dhr/MHRP29N0022.svg +9 -0
- package/assets/images/menu/dhr/MHRP29N0023.svg +22 -0
- package/assets/images/menu/dhr/MHRP39N0015.svg +5 -0
- package/assets/images/menu/dhr/TASK.svg +9 -0
- package/assets/images/menu/erp/D05.svg +8 -0
- package/assets/images/menu/erp/D06.svg +4 -0
- package/assets/images/menu/erp/D90R.svg +9 -0
- package/assets/images/menu/erp/DBC.svg +9 -0
- package/assets/images/menu/erp/{W05F0006.svg → W05F0006N0000.svg} +0 -0
- package/assets/images/menu/erp/{W05F0008.svg → W05F0008N0000.svg} +0 -0
- package/assets/images/menu/erp/{W05F4000.svg → W05F4000N0000.svg} +0 -0
- package/assets/images/menu/erp/{W06F0005.svg → W06F0005N0000.svg} +0 -0
- package/assets/images/menu/erp/{W06F0006.svg → W06F0006N0000.svg} +0 -0
- package/assets/images/menu/erp/{W06F0008.svg → W06F0008N0000.svg} +0 -0
- package/assets/images/menu/erp/W94F1000N0000.svg +9 -0
- package/assets/images/menu/erp/W94F1000N0001.svg +9 -0
- package/components/accordion/css.js +42 -33
- package/components/accordion/details.js +29 -17
- package/components/accordion/group.js +23 -23
- package/components/accordion/index.js +36 -27
- package/components/accordion/summary.js +10 -11
- package/components/alert/index.js +97 -91
- package/components/alert/notify.js +10 -8
- package/components/avatar/index.js +19 -17
- package/components/badge/index.js +122 -139
- package/components/button/icon.js +242 -334
- package/components/button/index.js +272 -427
- package/components/button/more.js +4 -5
- package/components/button/ripple-effect.js +4 -6
- package/components/card/body-card.js +4 -6
- package/components/card/card.js +4 -8
- package/components/card/index.js +4 -5
- package/components/chart/Pie/Sector.js +4 -5
- package/components/chart/Pie/Sectors.js +5 -5
- package/components/chart/Pie/index.js +8 -9
- package/components/chart/Pie-v2/Sector.js +4 -5
- package/components/chart/Pie-v2/Sectors.js +7 -8
- package/components/chart/Pie-v2/index.js +11 -16
- package/components/chart/bar/Bar.js +2 -3
- package/components/chart/bar/Labels.js +9 -11
- package/components/chart/bar/index.js +17 -9
- package/components/chart/bar-v2/Bar.js +2 -3
- package/components/chart/bar-v2/Labels.js +9 -11
- package/components/chart/bar-v2/index.js +17 -9
- package/components/chart/line/Labels.js +8 -10
- package/components/chart/line/Point.js +2 -3
- package/components/chart/line/index.js +17 -9
- package/components/chart/line-v2/Labels.js +8 -10
- package/components/chart/line-v2/Point.js +2 -3
- package/components/chart/line-v2/index.js +17 -9
- package/components/chip/attach.js +12 -16
- package/components/chip/index.js +8 -11
- package/components/collapse/index.js +4 -5
- package/components/divider/index.js +27 -14
- package/components/form-control/attachment/index.js +143 -87
- package/components/form-control/calendar/function.js +24 -23
- package/components/form-control/calendar/index.js +2 -4
- package/components/form-control/calendar/range.js +3 -4
- package/components/form-control/checkbox/index.js +85 -71
- package/components/form-control/control/index.js +4 -6
- package/components/form-control/date-picker/index-old.js +0 -2
- package/components/form-control/date-picker/index.js +39 -43
- package/components/form-control/date-range-picker/index.js +26 -28
- package/components/form-control/dropdown/index.js +173 -202
- package/components/form-control/dropdown-box/index.js +72 -49
- package/components/form-control/form-group/index.js +4 -5
- package/components/form-control/helper-text/index.js +4 -5
- package/components/form-control/input-base/index.js +28 -38
- package/components/form-control/label/index.js +23 -13
- package/components/form-control/money-input/index.js +6 -6
- package/components/form-control/number-input/index.js +12 -14
- package/components/form-control/phone-input/index.js +4 -5
- package/components/form-control/radio/index.js +7 -15
- package/components/form-control/text-input/index.js +14 -24
- package/components/form-control/time-picker/index.js +15 -26
- package/components/form-control/time-picker/swiper.js +2 -4
- package/components/form-control/toggle/index.js +22 -18
- package/components/form-view/helper-text.js +4 -5
- package/components/form-view/index.js +4 -5
- package/components/form-view/input.js +5 -7
- package/components/form-view/label.js +2 -6
- package/components/list/list-item-action.js +7 -8
- package/components/list/list-item-icon.js +4 -5
- package/components/list/list-item-text.js +4 -5
- package/components/list/list-item.js +4 -5
- package/components/list/list.js +4 -5
- package/components/list/sub-header.js +4 -5
- package/components/modal/body.js +4 -6
- package/components/modal/footer.js +4 -6
- package/components/modal/header.js +8 -14
- package/components/modal/index.js +4 -5
- package/components/modal/modal.js +6 -13
- package/components/others/extra/index.js +4 -8
- package/components/others/option-wrapper/index.js +57 -0
- package/components/others/scrollbar/index.js +4 -5
- package/components/paging/page-info.js +282 -231
- package/components/paging/page-selector.js +4 -7
- package/components/popover/index.js +6 -7
- package/components/popup/danger_popup.js +8 -18
- package/components/popup/index.js +26 -34
- package/components/popup/proposals_popup.js +9 -16
- package/components/popup/v2/danger-popup.js +4 -6
- package/components/popup/v2/index.js +116 -98
- package/components/popup/v2/info-popup.js +4 -6
- package/components/popup/v2/success-popup.js +4 -6
- package/components/popup/v2/warning-popup.js +4 -6
- package/components/popup/v2/yes-no-popup.js +4 -6
- package/components/progress/circular.js +17 -26
- package/components/progress/linear.js +11 -13
- package/components/rating/index.js +114 -233
- package/components/slider/slider-container.js +15 -10
- package/components/slider/slider-item.js +10 -12
- package/components/status/index.js +63 -57
- package/components/tab/tab-container.js +26 -24
- package/components/tab/tab-header.js +36 -27
- package/components/tab/tab-panel.js +32 -15
- package/components/tab/tab.js +79 -80
- package/components/tooltip/index.js +4 -4
- package/components/transfer/index.js +10 -11
- package/components/tree-view/css.js +2 -0
- package/components/tree-view/index.js +14 -13
- package/components/typography/index.js +6 -112
- package/css/styles.css +1 -1
- package/css/styles.css.map +1 -1
- package/global/index.js +2 -0
- package/icons/basic.js +1648 -959
- package/icons/effect.js +45 -103
- package/package.json +1 -1
- package/readme.md +66 -0
- package/styles/color-helper.js +7 -146
- package/styles/colors.js +6 -2
- package/styles/font.js +9 -0
- package/styles/general.js +100 -7
- package/styles/typography.js +25 -26
- package/theme/settings.js +9 -2
- package/theme/theme-provider.js +15 -7
- package/theme/with-styles.js +2 -4
- package/theme/with-theme.js +2 -4
- package/utils/isMobile.js +21 -0
- package/utils/renderHTML.js +4 -5
- package/utils/renderIcon.js +15 -11
- 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,
|
|
12
|
-
ref: ref
|
|
13
|
-
|
|
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,
|
|
12
|
-
ref: ref
|
|
13
|
-
|
|
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,
|
|
12
|
-
ref: ref
|
|
13
|
-
|
|
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,
|
|
15
|
-
ref: ref
|
|
16
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
55
|
-
};
|
|
49
|
+
labelStyle = typography.paragraph3;
|
|
56
50
|
rect = 20;
|
|
57
51
|
strokeWidth = 4;
|
|
58
52
|
break;
|
|
59
53
|
|
|
60
54
|
default:
|
|
61
|
-
labelStyle =
|
|
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
|
-
|
|
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",
|
|
174
|
+
return jsx("svg", { ...props,
|
|
184
175
|
css: containerCSS,
|
|
185
176
|
ref: ref
|
|
186
|
-
}
|
|
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",
|
|
307
|
+
return jsx("svg", { ...props,
|
|
317
308
|
css: containerCSS,
|
|
318
309
|
ref: ref
|
|
319
|
-
}
|
|
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,
|
|
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
|
-
|
|
353
|
+
showValue: true,
|
|
354
|
+
...props,
|
|
364
355
|
ref: ref
|
|
365
|
-
})
|
|
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",
|
|
99
|
+
return jsx("div", { ...props,
|
|
102
100
|
className: [unique.container, className].join(' ').trimEnd(),
|
|
103
101
|
css: containerCSS,
|
|
104
102
|
ref: ref
|
|
105
|
-
}
|
|
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",
|
|
214
|
+
return jsx("div", { ...props,
|
|
217
215
|
className: [unique.container, className].join(' ').trim(),
|
|
218
216
|
css: containerCSS,
|
|
219
217
|
ref: ref
|
|
220
|
-
}
|
|
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,
|
|
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
|
-
|
|
268
|
+
width: width,
|
|
269
|
+
...props,
|
|
272
270
|
ref: ref
|
|
273
|
-
})
|
|
271
|
+
}) : jsx(IndeterminateLinearProgress, {
|
|
274
272
|
background: background,
|
|
275
273
|
className: className,
|
|
276
274
|
color: color,
|
|
277
275
|
height: height,
|
|
278
|
-
width: width
|
|
279
|
-
|
|
276
|
+
width: width,
|
|
277
|
+
...props,
|
|
280
278
|
ref: ref
|
|
281
|
-
})
|
|
279
|
+
});
|
|
282
280
|
}));
|
|
283
281
|
LinearProgress.defaultProps = {
|
|
284
282
|
background: theme.colors.bgProgress,
|