@tipp/ui 1.0.34 → 1.0.36

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 (66) hide show
  1. package/dist/atoms/drawer.js +2 -2
  2. package/dist/atoms/index.js +59 -59
  3. package/dist/atoms/pagination.js +2 -2
  4. package/dist/atoms/toast.d.cts +1 -1
  5. package/dist/atoms/toast.d.ts +1 -1
  6. package/dist/charts/{chart.cjs → chart-default-props.cjs} +16 -83
  7. package/dist/charts/chart-default-props.cjs.map +1 -0
  8. package/dist/charts/chart-default-props.d.cts +85 -0
  9. package/dist/charts/chart-default-props.d.ts +85 -0
  10. package/dist/charts/chart-default-props.js +8 -0
  11. package/dist/charts/index.cjs +35 -104
  12. package/dist/charts/index.cjs.map +1 -1
  13. package/dist/charts/index.d.cts +1 -4
  14. package/dist/charts/index.d.ts +1 -4
  15. package/dist/charts/index.js +4 -8
  16. package/dist/{chunk-67K6SKIG.js → chunk-2QFSCWES.js} +12 -2
  17. package/dist/chunk-2QFSCWES.js.map +1 -0
  18. package/dist/{chunk-L46ZSIX4.js → chunk-EWB2KOLO.js} +4 -4
  19. package/dist/{chunk-6PO4YCXF.js → chunk-KO2GTLZU.js} +4 -4
  20. package/dist/index.cjs +33 -75
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +1 -4
  23. package/dist/index.d.ts +1 -4
  24. package/dist/index.js +73 -77
  25. package/dist/molecules/date-picker/index.js +2 -2
  26. package/dist/molecules/expand-table/index.js +26 -26
  27. package/dist/molecules/expand-table/row.js +24 -24
  28. package/dist/molecules/index.js +30 -30
  29. package/dist/molecules/navigation.js +24 -24
  30. package/package.json +1 -6
  31. package/src/charts/chart-default-props.tsx +10 -0
  32. package/src/charts/index.ts +1 -1
  33. package/dist/chart-theme-BLAIiQPs.d.cts +0 -170
  34. package/dist/chart-theme-BLAIiQPs.d.ts +0 -170
  35. package/dist/charts/chart-test.cjs +0 -245
  36. package/dist/charts/chart-test.cjs.map +0 -1
  37. package/dist/charts/chart-test.d.cts +0 -11
  38. package/dist/charts/chart-test.d.ts +0 -11
  39. package/dist/charts/chart-test.js +0 -68
  40. package/dist/charts/chart-test.js.map +0 -1
  41. package/dist/charts/chart.cjs.map +0 -1
  42. package/dist/charts/chart.d.cts +0 -11
  43. package/dist/charts/chart.d.ts +0 -11
  44. package/dist/charts/chart.js +0 -12
  45. package/dist/chunk-3R2IB6WJ.js +0 -104
  46. package/dist/chunk-3R2IB6WJ.js.map +0 -1
  47. package/dist/chunk-5XILGULJ.js +0 -38
  48. package/dist/chunk-5XILGULJ.js.map +0 -1
  49. package/dist/chunk-67K6SKIG.js.map +0 -1
  50. package/dist/chunk-CHHLIPDN.js +0 -23
  51. package/dist/chunk-CHHLIPDN.js.map +0 -1
  52. package/dist/chunk-HRSVVVYJ.js +0 -49
  53. package/dist/chunk-KOKLC6X2.js +0 -49
  54. package/dist/chunk-KOKLC6X2.js.map +0 -1
  55. package/dist/chunk-L46ZSIX4.js.map +0 -1
  56. package/dist/chunk-OCDOKW5S.js +0 -119
  57. package/dist/chunk-OCDOKW5S.js.map +0 -1
  58. package/dist/chunk-QOY42XM2.js +0 -59
  59. package/dist/chunk-QOY42XM2.js.map +0 -1
  60. package/dist/chunk-UZUVEVLC.js +0 -68
  61. package/dist/chunk-UZUVEVLC.js.map +0 -1
  62. package/src/charts/chart-test.tsx +0 -90
  63. package/src/charts/chart.tsx +0 -90
  64. /package/dist/charts/{chart.js.map → chart-default-props.js.map} +0 -0
  65. /package/dist/{chunk-HRSVVVYJ.js.map → chunk-EWB2KOLO.js.map} +0 -0
  66. /package/dist/{chunk-6PO4YCXF.js.map → chunk-KO2GTLZU.js.map} +0 -0
@@ -1,90 +0,0 @@
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 };
@@ -1,90 +0,0 @@
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 };