@tipp/ui 1.0.35 → 1.0.37

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 (62) hide show
  1. package/dist/charts/{chart.cjs → chart-default-props.cjs} +16 -83
  2. package/dist/charts/chart-default-props.cjs.map +1 -0
  3. package/dist/charts/chart-default-props.d.cts +85 -0
  4. package/dist/charts/chart-default-props.d.ts +85 -0
  5. package/dist/charts/chart-default-props.js +8 -0
  6. package/dist/charts/index.cjs +35 -104
  7. package/dist/charts/index.cjs.map +1 -1
  8. package/dist/charts/index.d.cts +1 -4
  9. package/dist/charts/index.d.ts +1 -4
  10. package/dist/charts/index.js +4 -8
  11. package/dist/{chunk-67K6SKIG.js → chunk-2QFSCWES.js} +12 -2
  12. package/dist/chunk-2QFSCWES.js.map +1 -0
  13. package/dist/{chunk-OCDOKW5S.js → chunk-KO2GTLZU.js} +7 -7
  14. package/dist/{chunk-6PO4YCXF.js → chunk-PMZKJZHU.js} +4 -4
  15. package/dist/chunk-PMZKJZHU.js.map +1 -0
  16. package/dist/chunk-PRQ7MDRT.js +119 -0
  17. package/dist/chunk-PRQ7MDRT.js.map +1 -0
  18. package/dist/chunk-REALQMTZ.js +117 -0
  19. package/dist/chunk-REALQMTZ.js.map +1 -0
  20. package/dist/index.cjs +33 -75
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +2 -5
  23. package/dist/index.d.ts +2 -5
  24. package/dist/index.js +15 -19
  25. package/dist/molecules/expand-table/index.cjs.map +1 -1
  26. package/dist/molecules/expand-table/index.d.cts +1 -1
  27. package/dist/molecules/expand-table/index.d.ts +1 -1
  28. package/dist/molecules/expand-table/index.js +2 -2
  29. package/dist/molecules/index.cjs.map +1 -1
  30. package/dist/molecules/index.d.cts +1 -1
  31. package/dist/molecules/index.d.ts +1 -1
  32. package/dist/molecules/index.js +5 -5
  33. package/package.json +1 -6
  34. package/src/charts/chart-default-props.tsx +10 -0
  35. package/src/charts/index.ts +1 -1
  36. package/src/molecules/expand-table/index.tsx +7 -2
  37. package/dist/chart-theme-BLAIiQPs.d.cts +0 -170
  38. package/dist/chart-theme-BLAIiQPs.d.ts +0 -170
  39. package/dist/charts/chart-test.cjs +0 -245
  40. package/dist/charts/chart-test.cjs.map +0 -1
  41. package/dist/charts/chart-test.d.cts +0 -11
  42. package/dist/charts/chart-test.d.ts +0 -11
  43. package/dist/charts/chart-test.js +0 -68
  44. package/dist/charts/chart-test.js.map +0 -1
  45. package/dist/charts/chart.cjs.map +0 -1
  46. package/dist/charts/chart.d.cts +0 -11
  47. package/dist/charts/chart.d.ts +0 -11
  48. package/dist/charts/chart.js +0 -12
  49. package/dist/chunk-5XILGULJ.js +0 -38
  50. package/dist/chunk-5XILGULJ.js.map +0 -1
  51. package/dist/chunk-67K6SKIG.js.map +0 -1
  52. package/dist/chunk-HRSVVVYJ.js +0 -49
  53. package/dist/chunk-HRSVVVYJ.js.map +0 -1
  54. package/dist/chunk-KOKLC6X2.js +0 -49
  55. package/dist/chunk-KOKLC6X2.js.map +0 -1
  56. package/dist/chunk-OCDOKW5S.js.map +0 -1
  57. package/dist/chunk-UZUVEVLC.js +0 -68
  58. package/dist/chunk-UZUVEVLC.js.map +0 -1
  59. package/src/charts/chart-test.tsx +0 -90
  60. package/src/charts/chart.tsx +0 -90
  61. /package/dist/charts/{chart.js.map → chart-default-props.js.map} +0 -0
  62. /package/dist/{chunk-6PO4YCXF.js.map → chunk-KO2GTLZU.js.map} +0 -0
@@ -1,68 +0,0 @@
1
- import {
2
- chart_theme_default
3
- } from "./chunk-67K6SKIG.js";
4
- import {
5
- __spreadProps,
6
- __spreadValues
7
- } from "./chunk-N552FDTV.js";
8
-
9
- // src/charts/chart.tsx
10
- import { useMemo } from "react";
11
- import { useResizeDetector } from "react-resize-detector";
12
- import { merge } from "lodash-es";
13
- import * as echarts from "echarts/core";
14
- import ReactEChartsCore from "echarts-for-react/lib/core";
15
- import { PieChart, LineChart } from "echarts/charts";
16
- import { SVGRenderer } from "echarts/renderers";
17
- import {
18
- GridSimpleComponent,
19
- AxisPointerComponent,
20
- AriaComponent,
21
- TooltipComponent,
22
- GridComponent,
23
- LegendComponent,
24
- ToolboxComponent
25
- } from "echarts/components";
26
- import { jsx } from "react/jsx-runtime";
27
- echarts.use([
28
- SVGRenderer,
29
- PieChart,
30
- LineChart,
31
- TooltipComponent,
32
- GridComponent,
33
- LegendComponent,
34
- ToolboxComponent,
35
- AriaComponent,
36
- AxisPointerComponent,
37
- GridSimpleComponent
38
- ]);
39
- function Chart(props) {
40
- const { width, height, ref } = useResizeDetector({
41
- handleHeight: false,
42
- refreshMode: "debounce",
43
- refreshRate: 100
44
- });
45
- const option = useMemo(() => {
46
- const baseOption = {
47
- textStyle: { fontFamily: "Noto Sans KR" },
48
- tooltip: { textStyle: { fontSize: 16 } }
49
- };
50
- return merge(baseOption, props.option);
51
- }, [props.option]);
52
- return /* @__PURE__ */ jsx("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
53
- ReactEChartsCore,
54
- __spreadProps(__spreadValues({
55
- echarts,
56
- opts: { renderer: "svg" },
57
- style: { height, width },
58
- theme: chart_theme_default
59
- }, props), {
60
- option
61
- })
62
- ) });
63
- }
64
-
65
- export {
66
- Chart
67
- };
68
- //# sourceMappingURL=chunk-UZUVEVLC.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/charts/chart.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\nimport { merge } from 'lodash-es';\nimport type { EChartsOption } from 'echarts';\nimport * as echarts from 'echarts/core';\nimport ReactEChartsCore from 'echarts-for-react/lib/core';\nimport { PieChart, LineChart } from 'echarts/charts';\nimport { SVGRenderer } from 'echarts/renderers';\nimport {\n GridSimpleComponent,\n // PolarComponent,\n // RadarComponent,\n // GeoComponent,\n // SingleAxisComponent,\n // ParallelComponent,\n // CalendarComponent,\n // GraphicComponent,\n AxisPointerComponent,\n // BrushComponent,\n // TimelineComponent,\n // MarkPointComponent,\n // MarkLineComponent,\n // MarkAreaComponent,\n // LegendScrollComponent,\n // LegendPlainComponent,\n // DataZoomComponent,\n // DataZoomInsideComponent,\n // DataZoomSliderComponent,\n // VisualMapComponent,\n // VisualMapContinuousComponent,\n // VisualMapPiecewiseComponent,\n AriaComponent,\n // TransformComponent,\n TooltipComponent,\n GridComponent,\n LegendComponent,\n ToolboxComponent,\n} from 'echarts/components';\nimport chartTheme from './chart-theme.json';\n\necharts.use([\n SVGRenderer,\n PieChart,\n LineChart,\n TooltipComponent,\n GridComponent,\n LegendComponent,\n ToolboxComponent,\n AriaComponent,\n AxisPointerComponent,\n GridSimpleComponent,\n]);\n\nexport type ChartProps = Omit<\n React.ComponentProps<typeof ReactEChartsCore>,\n 'option'\n> & {\n option: EChartsOption;\n};\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n const option = useMemo(() => {\n const baseOption: EChartsOption = {\n textStyle: { fontFamily: 'Noto Sans KR' },\n tooltip: { textStyle: { fontSize: 16 } },\n };\n return merge(baseOption, props.option);\n }, [props.option]);\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n <ReactEChartsCore\n echarts={echarts}\n opts={{ renderer: 'svg' }}\n style={{ height, width }}\n theme={chartTheme}\n {...props}\n option={option}\n />\n </div>\n );\n}\n\nexport { chartTheme };\n"],"mappings":";;;;;;;;;AAAA,SAAgB,eAAe;AAC/B,SAAS,yBAAyB;AAClC,SAAS,aAAa;AAEtB,YAAY,aAAa;AACzB,OAAO,sBAAsB;AAC7B,SAAS,UAAU,iBAAiB;AACpC,SAAS,mBAAmB;AAC5B;AAAA,EACE;AAAA,EAQA;AAAA,EAcA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAwCD;AArCE,YAAI;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AASM,SAAS,MAAM,OAAgC;AACpD,QAAM,EAAE,OAAO,QAAQ,IAAI,IAAI,kBAAkB;AAAA,IAC/C,cAAc;AAAA,IACd,aAAa;AAAA,IACb,aAAa;AAAA,EACf,CAAC;AAED,QAAM,SAAS,QAAQ,MAAM;AAC3B,UAAM,aAA4B;AAAA,MAChC,WAAW,EAAE,YAAY,eAAe;AAAA,MACxC,SAAS,EAAE,WAAW,EAAE,UAAU,GAAG,EAAE;AAAA,IACzC;AACA,WAAO,MAAM,YAAY,MAAM,MAAM;AAAA,EACvC,GAAG,CAAC,MAAM,MAAM,CAAC;AAEjB,SACE,oBAAC,SAAI,KAAU,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO,GACpD;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAM,EAAE,UAAU,MAAM;AAAA,MACxB,OAAO,EAAE,QAAQ,MAAM;AAAA,MACvB,OAAO;AAAA,OACH,QALL;AAAA,MAMC;AAAA;AAAA,EACF,GACF;AAEJ;","names":[]}
@@ -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 };