@tipp/ui 1.0.30 → 1.0.32
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/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.js +69 -69
- package/dist/atoms/pagination.js +3 -3
- package/dist/chart-theme-BLAIiQPs.d.cts +170 -0
- package/dist/chart-theme-BLAIiQPs.d.ts +170 -0
- package/dist/charts/chart-test.cjs +245 -0
- package/dist/charts/chart-test.cjs.map +1 -0
- package/dist/charts/chart-test.d.cts +11 -0
- package/dist/charts/chart-test.d.ts +11 -0
- package/dist/charts/chart-test.js +68 -0
- package/dist/charts/chart-test.js.map +1 -0
- package/dist/charts/chart.cjs +3 -20
- package/dist/charts/chart.cjs.map +1 -1
- package/dist/charts/chart.d.cts +6 -174
- package/dist/charts/chart.d.ts +6 -174
- package/dist/charts/chart.js +4 -2
- package/dist/charts/index.cjs +3 -20
- package/dist/charts/index.cjs.map +1 -1
- package/dist/charts/index.d.cts +3 -2
- package/dist/charts/index.d.ts +3 -2
- package/dist/charts/index.js +4 -2
- package/dist/chunk-67K6SKIG.js +142 -0
- package/dist/chunk-67K6SKIG.js.map +1 -0
- package/dist/chunk-DDEH7MMD.js +43 -0
- package/dist/chunk-DDEH7MMD.js.map +1 -0
- package/dist/index.cjs +3 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +86 -84
- package/dist/molecules/date-picker/index.js +2 -2
- package/dist/molecules/expand-table/index.js +32 -32
- package/dist/molecules/expand-table/row.js +29 -29
- package/dist/molecules/index.js +36 -36
- package/dist/molecules/navigation.js +30 -30
- package/package.json +1 -1
- package/src/charts/chart-test.tsx +90 -0
- package/src/charts/chart.tsx +8 -55
|
@@ -1,34 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Navigation
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-IBR5PQVX.js";
|
|
4
4
|
import "../chunk-2ANGYYEV.js";
|
|
5
|
+
import "../chunk-ILRUXI2E.js";
|
|
6
|
+
import "../chunk-JPIZP2PZ.js";
|
|
7
|
+
import "../chunk-355MU6BH.js";
|
|
8
|
+
import "../chunk-HYITAA4J.js";
|
|
9
|
+
import "../chunk-5H3YPCZK.js";
|
|
10
|
+
import "../chunk-FR2GDOU2.js";
|
|
5
11
|
import "../chunk-74DX4CU7.js";
|
|
6
12
|
import "../chunk-OYM4XCHQ.js";
|
|
7
13
|
import "../chunk-YJ7ZFOYL.js";
|
|
8
14
|
import "../chunk-5ZITU5L7.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-365QMK4D.js";
|
|
16
|
+
import "../chunk-YO3BQW6S.js";
|
|
17
|
+
import "../chunk-6IVCARWS.js";
|
|
18
|
+
import "../chunk-6DJOIRMF.js";
|
|
11
19
|
import "../chunk-FPD73OHW.js";
|
|
12
20
|
import "../chunk-ZKZDVS7G.js";
|
|
13
21
|
import "../chunk-MUNMDHRF.js";
|
|
14
22
|
import "../chunk-TVDKGMBI.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-5H3YPCZK.js";
|
|
18
|
-
import "../chunk-FR2GDOU2.js";
|
|
23
|
+
import "../chunk-O3T3TM3V.js";
|
|
24
|
+
import "../chunk-XQOL7UBI.js";
|
|
19
25
|
import "../chunk-TULWX7D6.js";
|
|
20
26
|
import "../chunk-XQOZWYUA.js";
|
|
21
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-QGBUYEQN.js";
|
|
22
28
|
import "../chunk-5AVBYDPB.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-YTZSKMX3.js";
|
|
30
|
+
import "../chunk-4IKPNQV5.js";
|
|
31
|
+
import "../chunk-ACVANQJ4.js";
|
|
32
|
+
import "../chunk-2DZ2Y3JI.js";
|
|
33
|
+
import "../chunk-CNQ7RNNY.js";
|
|
34
|
+
import "../chunk-O3XTRD7R.js";
|
|
35
|
+
import "../chunk-25HMMI7R.js";
|
|
27
36
|
import "../chunk-2CVXGGI5.js";
|
|
28
37
|
import "../chunk-EGEQY3KT.js";
|
|
29
38
|
import "../chunk-HLOY6BIP.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-IQEEPHOY.js";
|
|
40
|
+
import "../chunk-JEHDCZQU.js";
|
|
41
|
+
import "../chunk-OHMOP5PV.js";
|
|
42
|
+
import "../chunk-KGLIAFTI.js";
|
|
32
43
|
import "../chunk-Q37G2GS6.js";
|
|
33
44
|
import "../chunk-VTJZMOSP.js";
|
|
34
45
|
import "../chunk-P6B2PNYI.js";
|
|
@@ -36,28 +47,17 @@ import "../chunk-3ANMLRG4.js";
|
|
|
36
47
|
import "../chunk-PL3Q4UVY.js";
|
|
37
48
|
import "../chunk-5XILGULJ.js";
|
|
38
49
|
import "../chunk-O3DNDMV3.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-CHHLIPDN.js";
|
|
44
|
-
import "../chunk-25HMMI7R.js";
|
|
45
|
-
import "../chunk-O3XTRD7R.js";
|
|
50
|
+
import "../chunk-CZEGRZBK.js";
|
|
51
|
+
import "../chunk-ALOPZ54P.js";
|
|
52
|
+
import "../chunk-YGL6SWKN.js";
|
|
53
|
+
import "../chunk-4Y5BEXVN.js";
|
|
46
54
|
import "../chunk-AQX7DQLI.js";
|
|
47
55
|
import "../chunk-B6XJN6EC.js";
|
|
48
56
|
import "../chunk-FYEASFUU.js";
|
|
49
57
|
import "../chunk-MIMJ7LON.js";
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-JEHDCZQU.js";
|
|
52
|
-
import "../chunk-OHMOP5PV.js";
|
|
53
|
-
import "../chunk-KGLIAFTI.js";
|
|
58
|
+
import "../chunk-4UZQXJQO.js";
|
|
54
59
|
import "../chunk-J242TTFH.js";
|
|
55
60
|
import "../chunk-EAXUQEO5.js";
|
|
56
|
-
import "../chunk-CZEGRZBK.js";
|
|
57
|
-
import "../chunk-ALOPZ54P.js";
|
|
58
|
-
import "../chunk-YGL6SWKN.js";
|
|
59
|
-
import "../chunk-4Y5BEXVN.js";
|
|
60
|
-
import "../chunk-4UZQXJQO.js";
|
|
61
61
|
import "../chunk-N552FDTV.js";
|
|
62
62
|
export {
|
|
63
63
|
Navigation
|
package/package.json
CHANGED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { useResizeDetector } from 'react-resize-detector';
|
|
3
|
+
import { merge } from 'lodash-es';
|
|
4
|
+
import type { EChartsOption } from 'echarts';
|
|
5
|
+
import * as echarts from 'echarts/core';
|
|
6
|
+
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
|
7
|
+
import { PieChart, LineChart } from 'echarts/charts';
|
|
8
|
+
import { SVGRenderer } from 'echarts/renderers';
|
|
9
|
+
import {
|
|
10
|
+
GridSimpleComponent,
|
|
11
|
+
// PolarComponent,
|
|
12
|
+
// RadarComponent,
|
|
13
|
+
// GeoComponent,
|
|
14
|
+
// SingleAxisComponent,
|
|
15
|
+
// ParallelComponent,
|
|
16
|
+
// CalendarComponent,
|
|
17
|
+
// GraphicComponent,
|
|
18
|
+
AxisPointerComponent,
|
|
19
|
+
// BrushComponent,
|
|
20
|
+
// TimelineComponent,
|
|
21
|
+
// MarkPointComponent,
|
|
22
|
+
// MarkLineComponent,
|
|
23
|
+
// MarkAreaComponent,
|
|
24
|
+
// LegendScrollComponent,
|
|
25
|
+
// LegendPlainComponent,
|
|
26
|
+
// DataZoomComponent,
|
|
27
|
+
// DataZoomInsideComponent,
|
|
28
|
+
// DataZoomSliderComponent,
|
|
29
|
+
// VisualMapComponent,
|
|
30
|
+
// VisualMapContinuousComponent,
|
|
31
|
+
// VisualMapPiecewiseComponent,
|
|
32
|
+
AriaComponent,
|
|
33
|
+
// TransformComponent,
|
|
34
|
+
TooltipComponent,
|
|
35
|
+
GridComponent,
|
|
36
|
+
LegendComponent,
|
|
37
|
+
ToolboxComponent,
|
|
38
|
+
} from 'echarts/components';
|
|
39
|
+
import chartTheme from './chart-theme.json';
|
|
40
|
+
|
|
41
|
+
echarts.use([
|
|
42
|
+
SVGRenderer,
|
|
43
|
+
PieChart,
|
|
44
|
+
LineChart,
|
|
45
|
+
TooltipComponent,
|
|
46
|
+
GridComponent,
|
|
47
|
+
LegendComponent,
|
|
48
|
+
ToolboxComponent,
|
|
49
|
+
AriaComponent,
|
|
50
|
+
AxisPointerComponent,
|
|
51
|
+
GridSimpleComponent,
|
|
52
|
+
]);
|
|
53
|
+
|
|
54
|
+
export type ChartProps = Omit<
|
|
55
|
+
React.ComponentProps<typeof ReactEChartsCore>,
|
|
56
|
+
'option'
|
|
57
|
+
> & {
|
|
58
|
+
option: EChartsOption;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export function Chart(props: ChartProps): JSX.Element {
|
|
62
|
+
const { width, height, ref } = useResizeDetector({
|
|
63
|
+
handleHeight: false,
|
|
64
|
+
refreshMode: 'debounce',
|
|
65
|
+
refreshRate: 100,
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const option = useMemo(() => {
|
|
69
|
+
const baseOption: EChartsOption = {
|
|
70
|
+
textStyle: { fontFamily: 'Noto Sans KR' },
|
|
71
|
+
tooltip: { textStyle: { fontSize: 16 } },
|
|
72
|
+
};
|
|
73
|
+
return merge(baseOption, props.option);
|
|
74
|
+
}, [props.option]);
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<div ref={ref} style={{ width: '100%', height: '100%' }}>
|
|
78
|
+
<ReactEChartsCore
|
|
79
|
+
echarts={echarts}
|
|
80
|
+
opts={{ renderer: 'svg' }}
|
|
81
|
+
style={{ height, width }}
|
|
82
|
+
theme={chartTheme}
|
|
83
|
+
{...props}
|
|
84
|
+
option={option}
|
|
85
|
+
/>
|
|
86
|
+
</div>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export { chartTheme };
|
package/src/charts/chart.tsx
CHANGED
|
@@ -1,61 +1,17 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { useResizeDetector } from 'react-resize-detector';
|
|
3
|
+
import ReactECharts from 'echarts-for-react';
|
|
4
|
+
import type { EChartOption } from 'echarts';
|
|
3
5
|
import { merge } from 'lodash-es';
|
|
4
|
-
import type { EChartsOption } from 'echarts';
|
|
5
|
-
import * as echarts from 'echarts/core';
|
|
6
|
-
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
|
7
|
-
import { PieChart, LineChart } from 'echarts/charts';
|
|
8
|
-
import { SVGRenderer } from 'echarts/renderers';
|
|
9
|
-
import {
|
|
10
|
-
GridSimpleComponent,
|
|
11
|
-
// PolarComponent,
|
|
12
|
-
// RadarComponent,
|
|
13
|
-
// GeoComponent,
|
|
14
|
-
// SingleAxisComponent,
|
|
15
|
-
// ParallelComponent,
|
|
16
|
-
// CalendarComponent,
|
|
17
|
-
// GraphicComponent,
|
|
18
|
-
AxisPointerComponent,
|
|
19
|
-
// BrushComponent,
|
|
20
|
-
// TimelineComponent,
|
|
21
|
-
// MarkPointComponent,
|
|
22
|
-
// MarkLineComponent,
|
|
23
|
-
// MarkAreaComponent,
|
|
24
|
-
// LegendScrollComponent,
|
|
25
|
-
// LegendPlainComponent,
|
|
26
|
-
// DataZoomComponent,
|
|
27
|
-
// DataZoomInsideComponent,
|
|
28
|
-
// DataZoomSliderComponent,
|
|
29
|
-
// VisualMapComponent,
|
|
30
|
-
// VisualMapContinuousComponent,
|
|
31
|
-
// VisualMapPiecewiseComponent,
|
|
32
|
-
AriaComponent,
|
|
33
|
-
// TransformComponent,
|
|
34
|
-
TooltipComponent,
|
|
35
|
-
GridComponent,
|
|
36
|
-
LegendComponent,
|
|
37
|
-
ToolboxComponent,
|
|
38
|
-
} from 'echarts/components';
|
|
39
6
|
import chartTheme from './chart-theme.json';
|
|
40
7
|
|
|
41
|
-
|
|
42
|
-
SVGRenderer,
|
|
43
|
-
PieChart,
|
|
44
|
-
LineChart,
|
|
45
|
-
TooltipComponent,
|
|
46
|
-
GridComponent,
|
|
47
|
-
LegendComponent,
|
|
48
|
-
ToolboxComponent,
|
|
49
|
-
AriaComponent,
|
|
50
|
-
AxisPointerComponent,
|
|
51
|
-
GridSimpleComponent,
|
|
52
|
-
]);
|
|
8
|
+
export { chartTheme };
|
|
53
9
|
|
|
54
10
|
export type ChartProps = Omit<
|
|
55
|
-
React.ComponentProps<typeof
|
|
11
|
+
React.ComponentProps<typeof ReactECharts>,
|
|
56
12
|
'option'
|
|
57
13
|
> & {
|
|
58
|
-
option:
|
|
14
|
+
option: EChartOption;
|
|
59
15
|
};
|
|
60
16
|
|
|
61
17
|
export function Chart(props: ChartProps): JSX.Element {
|
|
@@ -66,7 +22,7 @@ export function Chart(props: ChartProps): JSX.Element {
|
|
|
66
22
|
});
|
|
67
23
|
|
|
68
24
|
const option = useMemo(() => {
|
|
69
|
-
const baseOption:
|
|
25
|
+
const baseOption: EChartOption = {
|
|
70
26
|
textStyle: { fontFamily: 'Noto Sans KR' },
|
|
71
27
|
tooltip: { textStyle: { fontSize: 16 } },
|
|
72
28
|
};
|
|
@@ -75,10 +31,9 @@ export function Chart(props: ChartProps): JSX.Element {
|
|
|
75
31
|
|
|
76
32
|
return (
|
|
77
33
|
<div ref={ref} style={{ width: '100%', height: '100%' }}>
|
|
78
|
-
<
|
|
79
|
-
echarts={echarts}
|
|
34
|
+
<ReactECharts
|
|
80
35
|
opts={{ renderer: 'svg' }}
|
|
81
|
-
style={{
|
|
36
|
+
style={{ width, height }}
|
|
82
37
|
theme={chartTheme}
|
|
83
38
|
{...props}
|
|
84
39
|
option={option}
|
|
@@ -86,5 +41,3 @@ export function Chart(props: ChartProps): JSX.Element {
|
|
|
86
41
|
</div>
|
|
87
42
|
);
|
|
88
43
|
}
|
|
89
|
-
|
|
90
|
-
export { chartTheme };
|