diginet-core-ui 1.3.79 → 1.3.80
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/components/accordion/css.js +2 -2
- package/components/accordion/details.js +3 -3
- package/components/accordion/group.js +3 -3
- package/components/accordion/index.js +5 -5
- package/components/accordion/summary.js +4 -4
- package/components/alert/index.js +8 -8
- package/components/alert/notify.js +4 -4
- package/components/avatar/index.js +11 -12
- package/components/badge/index.js +5 -5
- package/components/button/icon.js +9 -9
- package/components/button/index.js +10 -10
- package/components/button/more.js +181 -109
- package/components/button/ripple-effect.js +2 -2
- package/components/card/body.js +2 -2
- package/components/card/extra.js +2 -2
- package/components/card/footer.js +2 -2
- package/components/card/header.js +3 -3
- package/components/card/index.js +8 -8
- package/components/chart/Pie/index.js +37 -38
- package/components/chart/Pie-v2/Sectors.js +3 -3
- package/components/chart/Pie-v2/index.js +6 -6
- package/components/chart/bar/Bar.js +2 -2
- package/components/chart/bar/Labels.js +2 -3
- package/components/chart/bar/index.js +6 -6
- package/components/chart/bar-v2/Bar.js +3 -3
- package/components/chart/bar-v2/Labels.js +2 -3
- package/components/chart/bar-v2/index.js +6 -6
- package/components/chart/line/Labels.js +2 -3
- package/components/chart/line/Path.js +1 -1
- package/components/chart/line/Point.js +2 -2
- package/components/chart/line/Title.js +1 -1
- package/components/chart/line/index.js +6 -6
- package/components/chart/line-v2/Labels.js +2 -3
- package/components/chart/line-v2/Point.js +2 -2
- package/components/chart/line-v2/Title.js +1 -1
- package/components/chart/line-v2/index.js +6 -6
- package/components/check-text/index.js +2 -2
- package/components/check-text/interview-confirmation.js +2 -2
- package/components/check-text/interview-status.js +2 -2
- package/components/chip/attach.js +4 -4
- package/components/chip/index.js +5 -5
- package/components/collapse/index.js +1 -1
- package/components/divider/index.js +2 -2
- package/components/form-control/attachment/index.js +6 -6
- package/components/form-control/calendar/function.js +8 -8
- package/components/form-control/calendar/index.js +2 -2
- package/components/form-control/calendar/range.js +3 -3
- package/components/form-control/checkbox/index.js +5 -5
- package/components/form-control/control/index.js +2 -2
- package/components/form-control/date-picker/index.js +10 -10
- package/components/form-control/date-range-picker/index.js +8 -8
- package/components/form-control/dropdown/index.js +7 -7
- package/components/form-control/dropdown-box/index.js +6 -6
- package/components/form-control/form/index.js +1 -1
- package/components/form-control/form-group/index.js +1 -1
- package/components/form-control/helper-text/index.js +4 -4
- package/components/form-control/input-base/index.js +7 -7
- package/components/form-control/label/index.js +13 -13
- package/components/form-control/money-input/index.js +5 -5
- package/components/form-control/number-input/index.js +3 -3
- package/components/form-control/number-input/index2.js +36 -27
- package/components/form-control/phone-input/index.js +2 -2
- package/components/form-control/radio/index.js +4 -4
- package/components/form-control/text-input/index.js +4 -4
- package/components/form-control/time-picker/index.js +7 -7
- package/components/form-control/time-picker/swiper.js +1 -1
- package/components/form-control/toggle/index.js +4 -4
- package/components/form-view/helper-text.js +1 -1
- package/components/form-view/index.js +4 -4
- package/components/form-view/input.js +3 -3
- package/components/form-view/label.js +2 -2
- package/components/grid/Col.js +2 -2
- package/components/grid/Container.js +1 -1
- package/components/grid/Row.js +1 -1
- package/components/grid/index.js +5 -5
- package/components/image/index.js +5 -5
- package/components/index.js +83 -83
- package/components/list/list-item-action.js +1 -1
- package/components/list/list-item-icon.js +2 -2
- package/components/list/list-item-text.js +1 -1
- package/components/list/list-item.js +2 -2
- package/components/list/list.js +1 -1
- package/components/list/sub-header.js +2 -2
- package/components/modal/body.js +4 -4
- package/components/modal/footer.js +3 -3
- package/components/modal/header.js +5 -5
- package/components/modal/index.js +4 -4
- package/components/modal/modal.js +6 -6
- package/components/others/extra/index.js +2 -2
- package/components/others/import/index.js +1 -1
- package/components/others/scrollbar/index.js +1 -3
- package/components/paging/page-info.js +5 -5
- package/components/paging/page-selector.js +3 -3
- package/components/paging/page-selector2.js +5 -5
- package/components/paper/index.js +2 -2
- package/components/popover/body.js +4 -4
- package/components/popover/footer.js +4 -4
- package/components/popover/header.js +5 -5
- package/components/popover/index.js +4 -4
- package/components/popup/danger_popup.js +5 -5
- package/components/popup/index.js +6 -6
- package/components/popup/proposals_popup.js +5 -5
- package/components/popup/v2/index.js +9 -9
- package/components/progress/circular.js +169 -260
- package/components/progress/linear.js +2 -2
- package/components/rating/index.js +6 -6
- package/components/slider/slider-container.js +4 -4
- package/components/slider/slider-item.js +5 -5
- package/components/status/index.js +5 -5
- package/components/tab/tab-container.js +4 -4
- package/components/tab/tab-header.js +5 -5
- package/components/tab/tab-panel.js +4 -4
- package/components/tab/tab.js +8 -8
- package/components/tooltip/index.js +3 -3
- package/components/tooltip/portal.js +1 -1
- package/components/transfer/index.js +5 -5
- package/components/tree-view/css.js +2 -2
- package/components/tree-view/index.js +4 -4
- package/components/typography/index.js +3 -3
- package/global/index.js +1 -1
- package/icons/basic.js +1 -1
- package/icons/effect.js +5 -5
- package/icons/general/index.js +21 -21
- package/icons/index.js +2 -2
- package/icons/menu/index.js +2 -2
- package/icons/menu/v2/index.js +1 -1
- package/locale/index.js +1 -1
- package/package.json +1 -1
- package/readme.md +6 -0
- package/styles/animation.js +1 -1
- package/styles/colors.js +1 -1
- package/styles/font.js +3 -3
- package/styles/general.js +3 -2
- package/styles/typography.js +2 -2
- package/styles/utils.js +1 -1
- package/theme/index.js +3 -3
- package/theme/make-styles.js +1 -1
- package/theme/set-theme.js +1 -1
- package/theme/settings.js +6 -6
- package/theme/theme-provider.js +2 -2
- package/theme/theme.js +1 -1
- package/utils/array/array.js +3 -3
- package/utils/console.js +1 -1
- package/utils/date.js +2 -2
- package/utils/error/error.js +3 -3
- package/utils/error/errors.js +1 -1
- package/utils/handleBreakpoints.js +2 -2
- package/utils/index.js +28 -28
- package/utils/object/extend.js +1 -1
- package/utils/object/object.js +1 -1
- package/utils/render-portal.js +1 -1
- package/utils/renderHTML.js +1 -1
- package/utils/renderIcon.js +3 -3
- package/utils/sb-template.js +4 -4
- package/utils/string/capitalizeSentenceCase.js +1 -1
- package/utils/string/string.js +1 -1
- package/utils/useElementSize.js +1 -1
- package/utils/validate.js +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { useState, useRef, useEffect, memo, forwardRef } from 'react';
|
|
4
|
-
import PropTypes from
|
|
5
|
-
import Typography from
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import Typography from "../../typography";
|
|
6
6
|
import { jsx, css } from '@emotion/core';
|
|
7
7
|
import Circle from "./Circle";
|
|
8
8
|
import Sectors from "./Sectors";
|
|
@@ -36,7 +36,7 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
36
36
|
code = code + makeColorCode[Math.floor(Math.random() * 16)];
|
|
37
37
|
}
|
|
38
38
|
} while (colors.indexOf(code) >= 0);
|
|
39
|
-
colors.push(
|
|
39
|
+
colors.push('#' + ('000000' + code.toString(16)).slice(-6));
|
|
40
40
|
}
|
|
41
41
|
for (let i in data) {
|
|
42
42
|
data[i].color = colors[i];
|
|
@@ -55,37 +55,37 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
55
55
|
return zoom;
|
|
56
56
|
};
|
|
57
57
|
const Pie = Donut ? css`
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
58
|
+
position: relative;
|
|
59
|
+
display: flex;
|
|
60
|
+
margin: 0 auto;
|
|
61
|
+
width: ${compare()}px;
|
|
62
|
+
height: ${compare()}px;
|
|
63
|
+
&:before {
|
|
64
|
+
content: '';
|
|
65
|
+
position: absolute;
|
|
66
|
+
display: block;
|
|
67
|
+
position: absolute;
|
|
68
|
+
display: flex;
|
|
69
|
+
top: 50%;
|
|
70
|
+
width: 50%;
|
|
71
|
+
height: 50%;
|
|
72
|
+
left: 50%;
|
|
73
|
+
transform: translate(-50%, -50%);
|
|
74
|
+
border-radius: 50%;
|
|
75
|
+
background-color: #fff;
|
|
76
|
+
}
|
|
77
|
+
` : css`
|
|
78
|
+
position: relative;
|
|
79
|
+
display: flex;
|
|
80
|
+
margin: 0 auto;
|
|
81
|
+
width: ${compare()}px;
|
|
82
|
+
height: ${compare()}px;
|
|
83
|
+
`;
|
|
84
84
|
const PieMini = css`
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
border-radius: 100%;
|
|
86
|
+
width: ${ZoomIn()}px;
|
|
87
|
+
height: ${ZoomIn()}px;
|
|
88
|
+
`;
|
|
89
89
|
const total = data.reduce((prev, current) => current.quantity + prev, 0);
|
|
90
90
|
const center = viewBoxSize / 2;
|
|
91
91
|
const dataWithValue = data.filter(d => d.quantity > 0);
|
|
@@ -134,12 +134,12 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
134
134
|
};
|
|
135
135
|
useEffect(() => {
|
|
136
136
|
if (direction === 'bottom' && viewData) {
|
|
137
|
-
document.getElementById(`DGN-CUI-Container-PieChart`).style.display =
|
|
138
|
-
document.getElementById(`DGN-CUI-TableData-PieChart`).style.display =
|
|
137
|
+
document.getElementById(`DGN-CUI-Container-PieChart`).style.display = 'inherit';
|
|
138
|
+
document.getElementById(`DGN-CUI-TableData-PieChart`).style.display = 'flex';
|
|
139
139
|
}
|
|
140
140
|
if (direction === 'left' && viewData) {
|
|
141
|
-
document.getElementById(`DGN-CUI-Container-PieChart`).style.position =
|
|
142
|
-
document.getElementById(`DGN-CUI-TableData-PieChart`).style.position =
|
|
141
|
+
document.getElementById(`DGN-CUI-Container-PieChart`).style.position = 'relative';
|
|
142
|
+
document.getElementById(`DGN-CUI-TableData-PieChart`).style.position = 'fixed';
|
|
143
143
|
}
|
|
144
144
|
}, [direction, viewData]);
|
|
145
145
|
return jsx("div", {
|
|
@@ -170,7 +170,6 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
170
170
|
x: "50%",
|
|
171
171
|
y: "50%",
|
|
172
172
|
textAnchor: "middle",
|
|
173
|
-
background: "#fff",
|
|
174
173
|
dy: ".3em"
|
|
175
174
|
}, "0%"))), viewData ? jsx("ul", {
|
|
176
175
|
id: `DGN-CUI-TableData-PieChart`,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import Sector from
|
|
6
|
+
import Sector from "./Sector";
|
|
7
7
|
import { jsx, css } from '@emotion/core';
|
|
8
|
-
import { randomString } from
|
|
9
|
-
import { typography } from
|
|
8
|
+
import { randomString } from "../../../utils";
|
|
9
|
+
import { typography } from "../../../styles/typography";
|
|
10
10
|
const Sectors = ({
|
|
11
11
|
center,
|
|
12
12
|
data,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { useState, useRef, memo, forwardRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import Typography from
|
|
7
|
-
import { randomString } from
|
|
8
|
-
import { typography } from
|
|
9
|
-
import Circle from
|
|
10
|
-
import Sectors from
|
|
11
|
-
import Sector from
|
|
6
|
+
import Typography from "../../typography";
|
|
7
|
+
import { randomString } from "../../../utils";
|
|
8
|
+
import { typography } from "../../../styles/typography";
|
|
9
|
+
import Circle from "./Circle";
|
|
10
|
+
import Sectors from "./Sectors";
|
|
11
|
+
import Sector from "./Sector";
|
|
12
12
|
const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
13
13
|
expandOnHover,
|
|
14
14
|
renderSelectedItem,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { memo, useRef, forwardRef } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/core';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import Labels from
|
|
7
|
-
import { typography } from
|
|
6
|
+
import Labels from "./Labels";
|
|
7
|
+
import { typography } from "../../../styles/typography";
|
|
8
8
|
const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
9
9
|
// barsOpacity,
|
|
10
10
|
barsMargin,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import { typography } from
|
|
6
|
+
import theme from "../../../theme/settings";
|
|
7
|
+
import { typography } from "../../../styles/typography";
|
|
8
8
|
const Labels = ({
|
|
9
9
|
getX,
|
|
10
10
|
getY,
|
|
@@ -75,7 +75,6 @@ const Labels = ({
|
|
|
75
75
|
}, labelsFormatX(point.name))) : data.map((point, x) => jsx("foreignObject", {
|
|
76
76
|
key: x,
|
|
77
77
|
css: Label,
|
|
78
|
-
fill: labelsColor,
|
|
79
78
|
x: getX(point.x + unitWidth / TiLe()),
|
|
80
79
|
y: getY(0) + labelsHeightX,
|
|
81
80
|
width: "40",
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { memo, forwardRef } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
|
-
import Axis from
|
|
7
|
-
import Points from
|
|
8
|
-
import Labels from
|
|
9
|
-
import Grid from
|
|
10
|
-
import Bars from
|
|
11
|
-
import { randomString } from
|
|
6
|
+
import Axis from "./Axis";
|
|
7
|
+
import Points from "./Points";
|
|
8
|
+
import Labels from "./Labels";
|
|
9
|
+
import Grid from "./Grid";
|
|
10
|
+
import Bars from "./Bar";
|
|
11
|
+
import { randomString } from "../../../utils";
|
|
12
12
|
const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
13
13
|
labelsVisible,
|
|
14
14
|
labelsCharacterWidth,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { memo, useRef, forwardRef, useState } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/core';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import Labels from
|
|
7
|
-
import { randomString } from
|
|
8
|
-
import { typography } from
|
|
6
|
+
import Labels from "./Labels";
|
|
7
|
+
import { randomString } from "../../../utils";
|
|
8
|
+
import { typography } from "../../../styles/typography";
|
|
9
9
|
const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
10
10
|
// barsOpacity,
|
|
11
11
|
barsMargin,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import { typography } from
|
|
6
|
+
import theme from "../../../theme/settings";
|
|
7
|
+
import { typography } from "../../../styles/typography";
|
|
8
8
|
const Labels = ({
|
|
9
9
|
getX,
|
|
10
10
|
getY,
|
|
@@ -75,7 +75,6 @@ const Labels = ({
|
|
|
75
75
|
}, labelsFormatX(point.name))) : data.map((point, x) => jsx("foreignObject", {
|
|
76
76
|
key: x,
|
|
77
77
|
css: Label,
|
|
78
|
-
fill: labelsColor,
|
|
79
78
|
x: getX(point.x + unitWidth / TiLe()),
|
|
80
79
|
y: getY(0) + labelsHeightX,
|
|
81
80
|
width: "40",
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { memo, forwardRef } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
|
-
import Axis from
|
|
7
|
-
import Points from
|
|
8
|
-
import Labels from
|
|
9
|
-
import Grid from
|
|
10
|
-
import Bars from
|
|
11
|
-
import { randomString } from
|
|
6
|
+
import Axis from "./Axis";
|
|
7
|
+
import Points from "./Points";
|
|
8
|
+
import Labels from "./Labels";
|
|
9
|
+
import Grid from "./Grid";
|
|
10
|
+
import Bars from "./Bar";
|
|
11
|
+
import { randomString } from "../../../utils";
|
|
12
12
|
const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
13
13
|
labelsVisible,
|
|
14
14
|
labelsCharacterWidth,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import { typography } from
|
|
6
|
+
import theme from "../../../theme/settings";
|
|
7
|
+
import { typography } from "../../../styles/typography";
|
|
8
8
|
const Labels = ({
|
|
9
9
|
getX,
|
|
10
10
|
getY,
|
|
@@ -73,7 +73,6 @@ const Labels = ({
|
|
|
73
73
|
}, labelsFormatX(point.name))) : data.map((point, x) => jsx("foreignObject", {
|
|
74
74
|
key: x,
|
|
75
75
|
css: Label,
|
|
76
|
-
fill: labelsColor,
|
|
77
76
|
x: getX(point.x + unitWidth / TiLe()),
|
|
78
77
|
y: getY(0) + labelsHeightX,
|
|
79
78
|
width: "40",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import { typography } from
|
|
7
|
-
import { color as colors } from
|
|
6
|
+
import { typography } from "../../../styles/typography";
|
|
7
|
+
import { color as colors } from "../../../styles/colors";
|
|
8
8
|
const Points = ({
|
|
9
9
|
data,
|
|
10
10
|
getX,
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { memo, forwardRef } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
|
-
import Axis from
|
|
7
|
-
import Labels from
|
|
8
|
-
import Grid from
|
|
9
|
-
import Points from
|
|
6
|
+
import Axis from "./Axis";
|
|
7
|
+
import Labels from "./Labels";
|
|
8
|
+
import Grid from "./Grid";
|
|
9
|
+
import Points from "./Point";
|
|
10
10
|
// import Title from './Title';
|
|
11
|
-
import Path from
|
|
12
|
-
import { randomString } from
|
|
11
|
+
import Path from "./Path";
|
|
12
|
+
import { randomString } from "../../../utils";
|
|
13
13
|
const LineChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
14
14
|
labelsVisible,
|
|
15
15
|
labelsCharacterWidth,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import { typography } from
|
|
6
|
+
import theme from "../../../theme/settings";
|
|
7
|
+
import { typography } from "../../../styles/typography";
|
|
8
8
|
const Labels = ({
|
|
9
9
|
getX,
|
|
10
10
|
getY,
|
|
@@ -73,7 +73,6 @@ const Labels = ({
|
|
|
73
73
|
}, labelsFormatX(point.name))) : data.map((point, x) => jsx("foreignObject", {
|
|
74
74
|
key: x,
|
|
75
75
|
css: Label,
|
|
76
|
-
fill: labelsColor,
|
|
77
76
|
x: getX(point.x + unitWidth / TiLe()),
|
|
78
77
|
y: getY(0) + labelsHeightX,
|
|
79
78
|
width: "40",
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { jsx, css } from '@emotion/core';
|
|
7
|
-
import { randomString } from
|
|
8
|
-
import { typography } from
|
|
7
|
+
import { randomString } from "../../../utils";
|
|
8
|
+
import { typography } from "../../../styles/typography";
|
|
9
9
|
const Points = ({
|
|
10
10
|
data,
|
|
11
11
|
getX,
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { memo, forwardRef } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
|
-
import Axis from
|
|
7
|
-
import Labels from
|
|
8
|
-
import Grid from
|
|
9
|
-
import Points from
|
|
6
|
+
import Axis from "./Axis";
|
|
7
|
+
import Labels from "./Labels";
|
|
8
|
+
import Grid from "./Grid";
|
|
9
|
+
import Points from "./Point";
|
|
10
10
|
// import Title from './Title';
|
|
11
|
-
import Path from
|
|
12
|
-
import { randomString } from
|
|
11
|
+
import Path from "./Path";
|
|
12
|
+
import { randomString } from "../../../utils";
|
|
13
13
|
const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
14
14
|
labelsVisible,
|
|
15
15
|
labelsCharacterWidth,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { memo, useEffect, useRef, forwardRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import Typography from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
|
+
import Typography from "../typography";
|
|
8
8
|
const color = [`${theme.colors.info}`, `${theme.colors.success}`, `${theme.colors.warning}`, `${theme.colors.danger}`];
|
|
9
9
|
const colorNum = {
|
|
10
10
|
option0: 0,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { memo, useMemo, useEffect, useRef, forwardRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import Typography from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
|
+
import Typography from "../typography";
|
|
8
8
|
const color = [`${theme.colors.warning}`, `${theme.colors.success}`, `${theme.colors.danger}`];
|
|
9
9
|
const colorNum = {
|
|
10
10
|
Yes: 0,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { memo, useMemo, useEffect, useRef, forwardRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import theme from
|
|
7
|
-
import Typography from
|
|
6
|
+
import theme from "../../theme/settings";
|
|
7
|
+
import Typography from "../typography";
|
|
8
8
|
const color = [`${theme.colors.warning}`, `${theme.colors.success}`, `${theme.colors.danger}`];
|
|
9
9
|
const colorNum = {
|
|
10
10
|
Scheduled: 0,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { Fragment, memo, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import Chip from
|
|
7
|
-
import { Pdf, Word, Sheet, Presentation, Image, Compressed, Another } from
|
|
8
|
-
import { capitalize, getFileType } from
|
|
9
|
-
import { ButtonIcon, ModalSample, Slider, SliderItem } from
|
|
6
|
+
import Chip from "./";
|
|
7
|
+
import { Pdf, Word, Sheet, Presentation, Image, Compressed, Another } from "../../icons";
|
|
8
|
+
import { capitalize, getFileType } from "../../utils";
|
|
9
|
+
import { ButtonIcon, ModalSample, Slider, SliderItem } from "../";
|
|
10
10
|
const FileTypeIcon = {
|
|
11
11
|
Pdf,
|
|
12
12
|
Word,
|
package/components/chip/index.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { memo, useRef, forwardRef, useMemo, useImperativeHandle } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import { ButtonIcon, Typography } from
|
|
7
|
-
import Icon from
|
|
8
|
-
import { alignCenter, border, borderBox, flexRow, inlineFlex, justifyCenter, positionRelative, userSelectNone, cursorNotAllowed, positionAbsolute, overflowHidden } from
|
|
9
|
-
import { hexToRGBA } from
|
|
10
|
-
import { useTheme, useColor as colors } from
|
|
6
|
+
import { ButtonIcon, Typography } from "../";
|
|
7
|
+
import Icon from "../../icons";
|
|
8
|
+
import { alignCenter, border, borderBox, flexRow, inlineFlex, justifyCenter, positionRelative, userSelectNone, cursorNotAllowed, positionAbsolute, overflowHidden } from "../../styles/general";
|
|
9
|
+
import { hexToRGBA } from "../../styles/color-helper";
|
|
10
|
+
import { useTheme, useColor as colors } from "../../theme";
|
|
11
11
|
const {
|
|
12
12
|
colors: {
|
|
13
13
|
danger,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { forwardRef, memo, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/core';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { displayBlock, parseWidthHeight, positionRelative } from
|
|
6
|
+
import { displayBlock, parseWidthHeight, positionRelative } from "../../styles/general";
|
|
7
7
|
const Collapse = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
8
8
|
children,
|
|
9
9
|
className,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { memo, useMemo, useEffect, useRef, forwardRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { jsx, css } from '@emotion/core';
|
|
6
|
-
import { noBorder } from
|
|
7
|
-
import { color as colors } from
|
|
6
|
+
import { noBorder } from "../../styles/general";
|
|
7
|
+
import { color as colors } from "../../styles/colors";
|
|
8
8
|
const {
|
|
9
9
|
system: {
|
|
10
10
|
disabled: systemDisabled
|
|
@@ -4,12 +4,12 @@ import { memo, useMemo, useEffect, useState, useRef, forwardRef, useImperativeHa
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
import { jsx, css } from '@emotion/core';
|
|
7
|
-
import { ModalSample, Popup, Popover, List, ListItem, ListItemText, Slider, SliderItem, ScrollBar, LinearProgress, ButtonIcon, Notify } from
|
|
8
|
-
import { Pdf, Word, Sheet, Presentation, Compressed, Image, Another, View, Download, Delete, Attachment as AttachmentIcon } from
|
|
9
|
-
import { classNames, date as moment, getFileType } from
|
|
10
|
-
import { getGlobal } from
|
|
11
|
-
import { useTheme, makeStyles } from
|
|
12
|
-
import { alignCenter, border, borderBox, borderRadius4px, breakWord, cursorPointer, displayBlock, displayInlineBlock, displayNone, ellipsis, flexCol, flexRow, flexWrap, justifyBetween, justifyCenter, justifyStart, parseHeight, parseWidthHeight, pointerEventsNone, positionAbsolute, positionRelative, textCenter, textUppercase, userSelectNone } from
|
|
7
|
+
import { ModalSample, Popup, Popover, List, ListItem, ListItemText, Slider, SliderItem, ScrollBar, LinearProgress, ButtonIcon, Notify } from "../../";
|
|
8
|
+
import { Pdf, Word, Sheet, Presentation, Compressed, Image, Another, View, Download, Delete, Attachment as AttachmentIcon } from "../../../icons";
|
|
9
|
+
import { classNames, date as moment, getFileType } from "../../../utils";
|
|
10
|
+
import { getGlobal } from "../../../global";
|
|
11
|
+
import { useTheme, makeStyles } from "../../../theme";
|
|
12
|
+
import { alignCenter, border, borderBox, borderRadius4px, breakWord, cursorPointer, displayBlock, displayInlineBlock, displayNone, ellipsis, flexCol, flexRow, flexWrap, justifyBetween, justifyCenter, justifyStart, parseHeight, parseWidthHeight, pointerEventsNone, positionAbsolute, positionRelative, textCenter, textUppercase, userSelectNone } from "../../../styles/general";
|
|
13
13
|
const theme = useTheme();
|
|
14
14
|
const {
|
|
15
15
|
colors: {
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
import { css, jsx } from '@emotion/core';
|
|
5
5
|
import { render } from 'react-dom';
|
|
6
|
-
import { Button, ButtonIcon, Typography } from
|
|
7
|
-
import { getGlobal } from
|
|
8
|
-
import locale from
|
|
9
|
-
import theme from
|
|
10
|
-
import { date as moment } from
|
|
11
|
-
import { color as colors } from
|
|
12
|
-
import { typography } from
|
|
13
|
-
import { alignCenter, border, borderBox, borderRadius4px, cursorPointer, flexCol, flexRow, inlineFlex, justifyBetween, pointerEventsNone, positionAbsolute, positionRelative, textCenter, userSelectNone } from
|
|
6
|
+
import { Button, ButtonIcon, Typography } from "../..";
|
|
7
|
+
import { getGlobal } from "../../../global";
|
|
8
|
+
import locale from "../../../locale";
|
|
9
|
+
import theme from "../../../theme/settings";
|
|
10
|
+
import { date as moment } from "../../../utils";
|
|
11
|
+
import { color as colors } from "../../../styles/colors";
|
|
12
|
+
import { typography } from "../../../styles/typography";
|
|
13
|
+
import { alignCenter, border, borderBox, borderRadius4px, cursorPointer, flexCol, flexRow, inlineFlex, justifyBetween, pointerEventsNone, positionAbsolute, positionRelative, textCenter, userSelectNone } from "../../../styles/general";
|
|
14
14
|
const {
|
|
15
15
|
heading6
|
|
16
16
|
} = typography;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import { jsx } from '@emotion/core';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
7
|
-
import { date as moment } from
|
|
8
|
-
import { isAfterLimit, isBeforeLimit, onUpdateCalendar, renderHeader, renderNavigator, isValidDate, generateCalendarCSS } from
|
|
7
|
+
import { date as moment } from "../../../utils";
|
|
8
|
+
import { isAfterLimit, isBeforeLimit, onUpdateCalendar, renderHeader, renderNavigator, isValidDate, generateCalendarCSS } from "./function";
|
|
9
9
|
const Calendar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
10
10
|
actions,
|
|
11
11
|
className,
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
import { css, jsx } from '@emotion/core';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
7
|
-
import { Divider } from
|
|
8
|
-
import theme from
|
|
9
|
-
import { generateCalendarCSS, isValidDate, onUpdateCalendar, renderHeader, renderNavigator } from
|
|
7
|
+
import { Divider } from "../..";
|
|
8
|
+
import theme from "../../../theme/settings";
|
|
9
|
+
import { generateCalendarCSS, isValidDate, onUpdateCalendar, renderHeader, renderNavigator } from "./function";
|
|
10
10
|
const CalendarRange = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
11
11
|
actions,
|
|
12
12
|
defaultValue,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { css, jsx } from '@emotion/core';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { forwardRef, memo, useEffect, useRef, useState, useImperativeHandle, Fragment } from 'react';
|
|
6
|
-
import { Typography } from
|
|
7
|
-
import { alignCenter, alignStart, borderBox, cursorPointer, displayBlock, flexRow, positionAbsolute, positionRelative, cursorNoDrop, parseWidthHeight, border } from
|
|
8
|
-
import { classNames, randomString, refType as ref } from
|
|
9
|
-
import { color as colors } from
|
|
10
|
-
import theme from
|
|
6
|
+
import { Typography } from "../..";
|
|
7
|
+
import { alignCenter, alignStart, borderBox, cursorPointer, displayBlock, flexRow, positionAbsolute, positionRelative, cursorNoDrop, parseWidthHeight, border } from "../../../styles/general";
|
|
8
|
+
import { classNames, randomString, refType as ref } from "../../../utils";
|
|
9
|
+
import { color as colors } from "../../../styles/colors";
|
|
10
|
+
import theme from "../../../theme/settings";
|
|
11
11
|
const {
|
|
12
12
|
colors: {
|
|
13
13
|
system: {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import { forwardRef, memo, useImperativeHandle, useLayoutEffect, useRef } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/core';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import { displayBlock, pointerEventsNone, positionRelative, userSelectNone } from
|
|
8
|
-
import { color as colors } from
|
|
7
|
+
import { displayBlock, pointerEventsNone, positionRelative, userSelectNone } from "../../../styles/general";
|
|
8
|
+
import { color as colors } from "../../../styles/colors";
|
|
9
9
|
const {
|
|
10
10
|
semantic: {
|
|
11
11
|
danger
|
|
@@ -5,16 +5,16 @@ import { css, jsx } from '@emotion/core';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
7
7
|
import { render } from 'react-dom';
|
|
8
|
-
import { getGlobal } from
|
|
9
|
-
import { date as moment, capitalizeSentenceCase, randomString, updatePosition } from
|
|
10
|
-
import CalendarComp from
|
|
11
|
-
import ControlComp from
|
|
12
|
-
import { ButtonIcon, HelperText, InputBase, Label } from
|
|
13
|
-
import Button from
|
|
14
|
-
import Tooltip from
|
|
15
|
-
import { isValidDate } from
|
|
16
|
-
import { alignCenter, borderRadius4px, cursorPointer, displayBlock, displayNone, flexRow, justifyEnd, parseWidth, positionFixed } from
|
|
17
|
-
import theme from
|
|
8
|
+
import { getGlobal } from "../../../global";
|
|
9
|
+
import { date as moment, capitalizeSentenceCase, randomString, updatePosition } from "../../../utils";
|
|
10
|
+
import CalendarComp from "../calendar";
|
|
11
|
+
import ControlComp from "../control";
|
|
12
|
+
import { ButtonIcon, HelperText, InputBase, Label } from "../../index";
|
|
13
|
+
import Button from "../../button";
|
|
14
|
+
import Tooltip from "../../tooltip";
|
|
15
|
+
import { isValidDate } from "../calendar/function";
|
|
16
|
+
import { alignCenter, borderRadius4px, cursorPointer, displayBlock, displayNone, flexRow, justifyEnd, parseWidth, positionFixed } from "../../../styles/general";
|
|
17
|
+
import theme from "../../../theme/settings";
|
|
18
18
|
const {
|
|
19
19
|
colors: {
|
|
20
20
|
system: {
|