@tipp/ui 1.0.35 → 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 (63) hide show
  1. package/dist/atoms/field-error-wrapper.js +2 -2
  2. package/dist/atoms/index.js +32 -32
  3. package/dist/atoms/pagination.js +2 -2
  4. package/dist/charts/{chart.cjs → chart-default-props.cjs} +16 -83
  5. package/dist/charts/chart-default-props.cjs.map +1 -0
  6. package/dist/charts/chart-default-props.d.cts +85 -0
  7. package/dist/charts/chart-default-props.d.ts +85 -0
  8. package/dist/charts/chart-default-props.js +8 -0
  9. package/dist/charts/index.cjs +35 -104
  10. package/dist/charts/index.cjs.map +1 -1
  11. package/dist/charts/index.d.cts +1 -4
  12. package/dist/charts/index.d.ts +1 -4
  13. package/dist/charts/index.js +4 -8
  14. package/dist/{chunk-67K6SKIG.js → chunk-2QFSCWES.js} +12 -2
  15. package/dist/chunk-2QFSCWES.js.map +1 -0
  16. package/dist/{chunk-6PO4YCXF.js → chunk-KO2GTLZU.js} +4 -4
  17. package/dist/index.cjs +33 -75
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +1 -4
  20. package/dist/index.d.ts +1 -4
  21. package/dist/index.js +62 -66
  22. package/dist/molecules/expand-table/index.js +18 -18
  23. package/dist/molecules/expand-table/row.js +15 -15
  24. package/dist/molecules/index.js +19 -19
  25. package/dist/molecules/navigation.js +16 -16
  26. package/package.json +1 -6
  27. package/src/charts/chart-default-props.tsx +10 -0
  28. package/src/charts/index.ts +1 -1
  29. package/dist/chart-theme-BLAIiQPs.d.cts +0 -170
  30. package/dist/chart-theme-BLAIiQPs.d.ts +0 -170
  31. package/dist/charts/chart-test.cjs +0 -245
  32. package/dist/charts/chart-test.cjs.map +0 -1
  33. package/dist/charts/chart-test.d.cts +0 -11
  34. package/dist/charts/chart-test.d.ts +0 -11
  35. package/dist/charts/chart-test.js +0 -68
  36. package/dist/charts/chart-test.js.map +0 -1
  37. package/dist/charts/chart.cjs.map +0 -1
  38. package/dist/charts/chart.d.cts +0 -11
  39. package/dist/charts/chart.d.ts +0 -11
  40. package/dist/charts/chart.js +0 -12
  41. package/dist/chunk-3R2IB6WJ.js +0 -104
  42. package/dist/chunk-3R2IB6WJ.js.map +0 -1
  43. package/dist/chunk-5XILGULJ.js +0 -38
  44. package/dist/chunk-5XILGULJ.js.map +0 -1
  45. package/dist/chunk-67K6SKIG.js.map +0 -1
  46. package/dist/chunk-CHHLIPDN.js +0 -23
  47. package/dist/chunk-CHHLIPDN.js.map +0 -1
  48. package/dist/chunk-HRSVVVYJ.js +0 -49
  49. package/dist/chunk-HRSVVVYJ.js.map +0 -1
  50. package/dist/chunk-KOKLC6X2.js +0 -49
  51. package/dist/chunk-KOKLC6X2.js.map +0 -1
  52. package/dist/chunk-L46ZSIX4.js +0 -49
  53. package/dist/chunk-L46ZSIX4.js.map +0 -1
  54. package/dist/chunk-OCDOKW5S.js +0 -119
  55. package/dist/chunk-OCDOKW5S.js.map +0 -1
  56. package/dist/chunk-QOY42XM2.js +0 -59
  57. package/dist/chunk-QOY42XM2.js.map +0 -1
  58. package/dist/chunk-UZUVEVLC.js +0 -68
  59. package/dist/chunk-UZUVEVLC.js.map +0 -1
  60. package/src/charts/chart-test.tsx +0 -90
  61. package/src/charts/chart.tsx +0 -90
  62. /package/dist/charts/{chart.js.map → chart-default-props.js.map} +0 -0
  63. /package/dist/{chunk-6PO4YCXF.js.map → chunk-KO2GTLZU.js.map} +0 -0
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  FieldErrorWrapper
3
- } from "../chunk-CHHLIPDN.js";
4
- import "../chunk-25HMMI7R.js";
3
+ } from "../chunk-CNQ7RNNY.js";
5
4
  import "../chunk-O3XTRD7R.js";
5
+ import "../chunk-25HMMI7R.js";
6
6
  import "../chunk-N552FDTV.js";
7
7
  export {
8
8
  FieldErrorWrapper
@@ -1,10 +1,4 @@
1
1
  import "../chunk-2ANGYYEV.js";
2
- import {
3
- Strong
4
- } from "../chunk-74DX4CU7.js";
5
- import {
6
- Switch
7
- } from "../chunk-OYM4XCHQ.js";
8
2
  import {
9
3
  TabNav
10
4
  } from "../chunk-YJ7ZFOYL.js";
@@ -17,12 +11,6 @@ import {
17
11
  import {
18
12
  TextField
19
13
  } from "../chunk-JPIZP2PZ.js";
20
- import {
21
- Radio
22
- } from "../chunk-FPD73OHW.js";
23
- import {
24
- ScrollArea
25
- } from "../chunk-ZKZDVS7G.js";
26
14
  import {
27
15
  Section
28
16
  } from "../chunk-MUNMDHRF.js";
@@ -42,14 +30,14 @@ import {
42
30
  Spinner
43
31
  } from "../chunk-FR2GDOU2.js";
44
32
  import {
45
- Kbd
46
- } from "../chunk-TULWX7D6.js";
33
+ Strong
34
+ } from "../chunk-74DX4CU7.js";
47
35
  import {
48
- Link
49
- } from "../chunk-XQOZWYUA.js";
36
+ Switch
37
+ } from "../chunk-OYM4XCHQ.js";
50
38
  import {
51
39
  Pagination
52
- } from "../chunk-3R2IB6WJ.js";
40
+ } from "../chunk-FH5ZSMU2.js";
53
41
  import {
54
42
  Popover
55
43
  } from "../chunk-5AVBYDPB.js";
@@ -66,8 +54,11 @@ import {
66
54
  RadioGroup
67
55
  } from "../chunk-6DJOIRMF.js";
68
56
  import {
69
- Form
70
- } from "../chunk-2CVXGGI5.js";
57
+ Radio
58
+ } from "../chunk-FPD73OHW.js";
59
+ import {
60
+ ScrollArea
61
+ } from "../chunk-ZKZDVS7G.js";
71
62
  import {
72
63
  Grid
73
64
  } from "../chunk-EGEQY3KT.js";
@@ -81,11 +72,11 @@ import {
81
72
  Inset
82
73
  } from "../chunk-XQOL7UBI.js";
83
74
  import {
84
- Container
85
- } from "../chunk-Q37G2GS6.js";
75
+ Kbd
76
+ } from "../chunk-TULWX7D6.js";
86
77
  import {
87
- DataList
88
- } from "../chunk-VTJZMOSP.js";
78
+ Link
79
+ } from "../chunk-XQOZWYUA.js";
89
80
  import {
90
81
  Dialog
91
82
  } from "../chunk-P6B2PNYI.js";
@@ -117,19 +108,16 @@ import {
117
108
  } from "../chunk-2DZ2Y3JI.js";
118
109
  import {
119
110
  FieldErrorWrapper
120
- } from "../chunk-CHHLIPDN.js";
121
- import {
122
- Flex
123
- } from "../chunk-25HMMI7R.js";
111
+ } from "../chunk-CNQ7RNNY.js";
124
112
  import {
125
113
  Typo
126
114
  } from "../chunk-O3XTRD7R.js";
127
115
  import {
128
- Button
129
- } from "../chunk-AQX7DQLI.js";
116
+ Flex
117
+ } from "../chunk-25HMMI7R.js";
130
118
  import {
131
- Callout
132
- } from "../chunk-B6XJN6EC.js";
119
+ Form
120
+ } from "../chunk-2CVXGGI5.js";
133
121
  import {
134
122
  Card
135
123
  } from "../chunk-FYEASFUU.js";
@@ -148,7 +136,12 @@ import {
148
136
  import {
149
137
  Collapse
150
138
  } from "../chunk-KGLIAFTI.js";
151
- import "../chunk-4UZQXJQO.js";
139
+ import {
140
+ Container
141
+ } from "../chunk-Q37G2GS6.js";
142
+ import {
143
+ DataList
144
+ } from "../chunk-VTJZMOSP.js";
152
145
  import {
153
146
  AlertDialog
154
147
  } from "../chunk-J242TTFH.js";
@@ -167,6 +160,13 @@ import {
167
160
  import {
168
161
  Box
169
162
  } from "../chunk-4Y5BEXVN.js";
163
+ import {
164
+ Button
165
+ } from "../chunk-AQX7DQLI.js";
166
+ import {
167
+ Callout
168
+ } from "../chunk-B6XJN6EC.js";
169
+ import "../chunk-4UZQXJQO.js";
170
170
  import "../chunk-N552FDTV.js";
171
171
  export {
172
172
  AlertDialog,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Pagination
3
- } from "../chunk-3R2IB6WJ.js";
3
+ } from "../chunk-FH5ZSMU2.js";
4
4
  import "../chunk-O3DNDMV3.js";
5
- import "../chunk-25HMMI7R.js";
6
5
  import "../chunk-O3XTRD7R.js";
6
+ import "../chunk-25HMMI7R.js";
7
7
  import "../chunk-4UZQXJQO.js";
8
8
  import "../chunk-N552FDTV.js";
9
9
  export {
@@ -1,27 +1,8 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
- var __getProtoOf = Object.getPrototypeOf;
10
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
6
  var __export = (target, all) => {
26
7
  for (var name in all)
27
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -34,31 +15,14 @@ var __copyProps = (to, from, except, desc) => {
34
15
  }
35
16
  return to;
36
17
  };
37
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
38
- // If the importer is in node compatibility mode or this is not an ESM
39
- // file that has been converted to a CommonJS file using a Babel-
40
- // compatible transform (i.e. "__esModule" has not been set), then set
41
- // "default" to the CommonJS "module.exports" for node compatibility.
42
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
43
- mod
44
- ));
45
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
19
 
47
- // src/charts/chart.tsx
48
- var chart_exports = {};
49
- __export(chart_exports, {
50
- Chart: () => Chart,
51
- chartTheme: () => chart_theme_default
20
+ // src/charts/chart-default-props.tsx
21
+ var chart_default_props_exports = {};
22
+ __export(chart_default_props_exports, {
23
+ EchartDefaultProps: () => EchartDefaultProps
52
24
  });
53
- module.exports = __toCommonJS(chart_exports);
54
- var import_react = require("react");
55
- var import_react_resize_detector = require("react-resize-detector");
56
- var import_lodash_es = require("lodash-es");
57
- var echarts = __toESM(require("echarts/core"), 1);
58
- var import_core = __toESM(require("echarts-for-react/lib/core"), 1);
59
- var import_charts = require("echarts/charts");
60
- var import_renderers = require("echarts/renderers");
61
- var import_components = require("echarts/components");
25
+ module.exports = __toCommonJS(chart_default_props_exports);
62
26
 
63
27
  // src/charts/chart-theme.json
64
28
  var chart_theme_default = {
@@ -198,48 +162,17 @@ var chart_theme_default = {
198
162
  }
199
163
  };
200
164
 
201
- // src/charts/chart.tsx
202
- var import_jsx_runtime = require("react/jsx-runtime");
203
- echarts.use([
204
- import_renderers.SVGRenderer,
205
- import_charts.PieChart,
206
- import_charts.LineChart,
207
- import_components.TooltipComponent,
208
- import_components.GridComponent,
209
- import_components.LegendComponent,
210
- import_components.ToolboxComponent,
211
- import_components.AriaComponent,
212
- import_components.AxisPointerComponent,
213
- import_components.GridSimpleComponent
214
- ]);
215
- function Chart(props) {
216
- const { width, height, ref } = (0, import_react_resize_detector.useResizeDetector)({
217
- handleHeight: false,
218
- refreshMode: "debounce",
219
- refreshRate: 100
220
- });
221
- const option = (0, import_react.useMemo)(() => {
222
- const baseOption = {
223
- textStyle: { fontFamily: "Noto Sans KR" },
224
- tooltip: { textStyle: { fontSize: 16 } }
225
- };
226
- return (0, import_lodash_es.merge)(baseOption, props.option);
227
- }, [props.option]);
228
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
229
- import_core.default,
230
- __spreadProps(__spreadValues({
231
- echarts,
232
- opts: { renderer: "svg" },
233
- style: { height, width },
234
- theme: chart_theme_default
235
- }, props), {
236
- option
237
- })
238
- ) });
239
- }
165
+ // src/charts/chart-default-props.tsx
166
+ var EchartDefaultProps = {
167
+ opts: { renderer: "svg" },
168
+ theme: chart_theme_default,
169
+ option: {
170
+ textStyle: { fontFamily: "Noto Sans KR" },
171
+ tooltip: { textStyle: { fontSize: 16 } }
172
+ }
173
+ };
240
174
  // Annotate the CommonJS export names for ESM import in node:
241
175
  0 && (module.exports = {
242
- Chart,
243
- chartTheme
176
+ EchartDefaultProps
244
177
  });
245
- //# sourceMappingURL=chart.cjs.map
178
+ //# sourceMappingURL=chart-default-props.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/charts/chart-default-props.tsx","../../src/charts/chart-theme.json"],"sourcesContent":["import chartTheme from './chart-theme.json';\n\nexport const EchartDefaultProps = {\n opts: { renderer: 'svg' as const },\n theme: chartTheme,\n option: {\n textStyle: { fontFamily: 'Noto Sans KR' },\n tooltip: { textStyle: { fontSize: 16 } },\n },\n} as const;\n","{\n \"version\": 1,\n \"themeName\": \"customed\",\n \"theme\": {\n \"seriesCnt\": \"5\",\n \"backgroundColor\": \"rgba(0,0,0,0)\",\n \"titleColor\": \"#1c2024\",\n \"subtitleColor\": \"#8d8d8d\",\n \"textColorShow\": false,\n \"textColor\": \"#333\",\n \"markTextColor\": \"#ffffff\",\n \"color\": [\n \"#ffe629\",\n \"#3e63dd\",\n \"#ec9455\",\n \"#5bb98b\",\n \"#cb1d63\",\n \"#3ba272\",\n \"#fc8452\",\n \"#9a60b4\",\n \"#ea7ccc\"\n ],\n \"borderColor\": \"#8d8d8d\",\n \"borderWidth\": 0,\n \"visualMapColor\": [\"#bf444c\", \"#d88273\", \"#f6efa6\"],\n \"legendTextColor\": \"#1c2024\",\n \"kColor\": \"#eb5454\",\n \"kColor0\": \"#47b262\",\n \"kBorderColor\": \"#eb5454\",\n \"kBorderColor0\": \"#47b262\",\n \"kBorderWidth\": 1,\n \"lineWidth\": 2,\n \"symbolSize\": 4,\n \"symbol\": \"emptyCircle\",\n \"symbolBorderWidth\": 1,\n \"lineSmooth\": false,\n \"graphLineWidth\": 1,\n \"graphLineColor\": \"#aaa\",\n \"mapLabelColor\": \"#000\",\n \"mapLabelColorE\": \"rgb(100,0,0)\",\n \"mapBorderColor\": \"#444\",\n \"mapBorderColorE\": \"#444\",\n \"mapBorderWidth\": 0.5,\n \"mapBorderWidthE\": 1,\n \"mapAreaColor\": \"#eee\",\n \"mapAreaColorE\": \"rgba(255,215,0,0.8)\",\n \"axes\": [\n {\n \"type\": \"all\",\n \"name\": \"通用坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"category\",\n \"name\": \"类目坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"value\",\n \"name\": \"数值坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"log\",\n \"name\": \"对数坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"time\",\n \"name\": \"时间坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n }\n ],\n \"axisSeperateSetting\": true,\n \"toolboxColor\": \"#8d8d8d\",\n \"toolboxEmphasisColor\": \"#1c2024\",\n \"tooltipAxisColor\": \"#cccccc\",\n \"tooltipAxisWidth\": 1,\n \"timelineLineColor\": \"#dae1f5\",\n \"timelineLineWidth\": 2,\n \"timelineItemColor\": \"#a4b1d7\",\n \"timelineItemColorE\": \"#ffffff\",\n \"timelineCheckColor\": \"#316bf3\",\n \"timelineCheckBorderColor\": \"#ffffff\",\n \"timelineItemBorderWidth\": 1,\n \"timelineControlColor\": \"#a4b1d7\",\n \"timelineControlBorderColor\": \"#a4b1d7\",\n \"timelineControlBorderWidth\": 1,\n \"timelineLabelColor\": \"#a4b1d7\"\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA,EACE,SAAW;AAAA,EACX,WAAa;AAAA,EACb,OAAS;AAAA,IACP,WAAa;AAAA,IACb,iBAAmB;AAAA,IACnB,YA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A8B;AAAA,IAC9B,oBAAsB;AAAA,EACxB;AACF;;;ADrIO,IAAM,qBAAqB;AAAA,EAChC,MAAM,EAAE,UAAU,MAAe;AAAA,EACjC,OAAO;AAAA,EACP,QAAQ;AAAA,IACN,WAAW,EAAE,YAAY,eAAe;AAAA,IACxC,SAAS,EAAE,WAAW,EAAE,UAAU,GAAG,EAAE;AAAA,EACzC;AACF;","names":[]}
@@ -0,0 +1,85 @@
1
+ declare const EchartDefaultProps: {
2
+ readonly opts: {
3
+ readonly renderer: "svg";
4
+ };
5
+ readonly theme: {
6
+ version: number;
7
+ themeName: string;
8
+ theme: {
9
+ seriesCnt: string;
10
+ backgroundColor: string;
11
+ titleColor: string;
12
+ subtitleColor: string;
13
+ textColorShow: boolean;
14
+ textColor: string;
15
+ markTextColor: string;
16
+ color: string[];
17
+ borderColor: string;
18
+ borderWidth: number;
19
+ visualMapColor: string[];
20
+ legendTextColor: string;
21
+ kColor: string;
22
+ kColor0: string;
23
+ kBorderColor: string;
24
+ kBorderColor0: string;
25
+ kBorderWidth: number;
26
+ lineWidth: number;
27
+ symbolSize: number;
28
+ symbol: string;
29
+ symbolBorderWidth: number;
30
+ lineSmooth: boolean;
31
+ graphLineWidth: number;
32
+ graphLineColor: string;
33
+ mapLabelColor: string;
34
+ mapLabelColorE: string;
35
+ mapBorderColor: string;
36
+ mapBorderColorE: string;
37
+ mapBorderWidth: number;
38
+ mapBorderWidthE: number;
39
+ mapAreaColor: string;
40
+ mapAreaColorE: string;
41
+ axes: {
42
+ type: string;
43
+ name: string;
44
+ axisLineShow: boolean;
45
+ axisLineColor: string;
46
+ axisTickShow: boolean;
47
+ axisTickColor: string;
48
+ axisLabelShow: boolean;
49
+ axisLabelColor: string;
50
+ splitLineShow: boolean;
51
+ splitLineColor: string[];
52
+ splitAreaShow: boolean;
53
+ splitAreaColor: string[];
54
+ }[];
55
+ axisSeperateSetting: boolean;
56
+ toolboxColor: string;
57
+ toolboxEmphasisColor: string;
58
+ tooltipAxisColor: string;
59
+ tooltipAxisWidth: number;
60
+ timelineLineColor: string;
61
+ timelineLineWidth: number;
62
+ timelineItemColor: string;
63
+ timelineItemColorE: string;
64
+ timelineCheckColor: string;
65
+ timelineCheckBorderColor: string;
66
+ timelineItemBorderWidth: number;
67
+ timelineControlColor: string;
68
+ timelineControlBorderColor: string;
69
+ timelineControlBorderWidth: number;
70
+ timelineLabelColor: string;
71
+ };
72
+ };
73
+ readonly option: {
74
+ readonly textStyle: {
75
+ readonly fontFamily: "Noto Sans KR";
76
+ };
77
+ readonly tooltip: {
78
+ readonly textStyle: {
79
+ readonly fontSize: 16;
80
+ };
81
+ };
82
+ };
83
+ };
84
+
85
+ export { EchartDefaultProps };
@@ -0,0 +1,85 @@
1
+ declare const EchartDefaultProps: {
2
+ readonly opts: {
3
+ readonly renderer: "svg";
4
+ };
5
+ readonly theme: {
6
+ version: number;
7
+ themeName: string;
8
+ theme: {
9
+ seriesCnt: string;
10
+ backgroundColor: string;
11
+ titleColor: string;
12
+ subtitleColor: string;
13
+ textColorShow: boolean;
14
+ textColor: string;
15
+ markTextColor: string;
16
+ color: string[];
17
+ borderColor: string;
18
+ borderWidth: number;
19
+ visualMapColor: string[];
20
+ legendTextColor: string;
21
+ kColor: string;
22
+ kColor0: string;
23
+ kBorderColor: string;
24
+ kBorderColor0: string;
25
+ kBorderWidth: number;
26
+ lineWidth: number;
27
+ symbolSize: number;
28
+ symbol: string;
29
+ symbolBorderWidth: number;
30
+ lineSmooth: boolean;
31
+ graphLineWidth: number;
32
+ graphLineColor: string;
33
+ mapLabelColor: string;
34
+ mapLabelColorE: string;
35
+ mapBorderColor: string;
36
+ mapBorderColorE: string;
37
+ mapBorderWidth: number;
38
+ mapBorderWidthE: number;
39
+ mapAreaColor: string;
40
+ mapAreaColorE: string;
41
+ axes: {
42
+ type: string;
43
+ name: string;
44
+ axisLineShow: boolean;
45
+ axisLineColor: string;
46
+ axisTickShow: boolean;
47
+ axisTickColor: string;
48
+ axisLabelShow: boolean;
49
+ axisLabelColor: string;
50
+ splitLineShow: boolean;
51
+ splitLineColor: string[];
52
+ splitAreaShow: boolean;
53
+ splitAreaColor: string[];
54
+ }[];
55
+ axisSeperateSetting: boolean;
56
+ toolboxColor: string;
57
+ toolboxEmphasisColor: string;
58
+ tooltipAxisColor: string;
59
+ tooltipAxisWidth: number;
60
+ timelineLineColor: string;
61
+ timelineLineWidth: number;
62
+ timelineItemColor: string;
63
+ timelineItemColorE: string;
64
+ timelineCheckColor: string;
65
+ timelineCheckBorderColor: string;
66
+ timelineItemBorderWidth: number;
67
+ timelineControlColor: string;
68
+ timelineControlBorderColor: string;
69
+ timelineControlBorderWidth: number;
70
+ timelineLabelColor: string;
71
+ };
72
+ };
73
+ readonly option: {
74
+ readonly textStyle: {
75
+ readonly fontFamily: "Noto Sans KR";
76
+ };
77
+ readonly tooltip: {
78
+ readonly textStyle: {
79
+ readonly fontSize: 16;
80
+ };
81
+ };
82
+ };
83
+ };
84
+
85
+ export { EchartDefaultProps };
@@ -0,0 +1,8 @@
1
+ import {
2
+ EchartDefaultProps
3
+ } from "../chunk-2QFSCWES.js";
4
+ import "../chunk-N552FDTV.js";
5
+ export {
6
+ EchartDefaultProps
7
+ };
8
+ //# sourceMappingURL=chart-default-props.js.map
@@ -1,27 +1,8 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
- var __getProtoOf = Object.getPrototypeOf;
10
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
6
  var __export = (target, all) => {
26
7
  for (var name in all)
27
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -34,34 +15,38 @@ var __copyProps = (to, from, except, desc) => {
34
15
  }
35
16
  return to;
36
17
  };
37
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
38
- // If the importer is in node compatibility mode or this is not an ESM
39
- // file that has been converted to a CommonJS file using a Babel-
40
- // compatible transform (i.e. "__esModule" has not been set), then set
41
- // "default" to the CommonJS "module.exports" for node compatibility.
42
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
43
- mod
44
- ));
45
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
19
 
47
20
  // src/charts/index.ts
48
21
  var charts_exports = {};
49
22
  __export(charts_exports, {
50
- Chart: () => Chart,
51
- HorizontalBarChart: () => HorizontalBarChart,
52
- chartTheme: () => chart_theme_default
23
+ EchartDefaultProps: () => EchartDefaultProps,
24
+ HorizontalBarChart: () => HorizontalBarChart
53
25
  });
54
26
  module.exports = __toCommonJS(charts_exports);
55
27
 
56
- // src/charts/chart.tsx
57
- var import_react = require("react");
58
- var import_react_resize_detector = require("react-resize-detector");
59
- var import_lodash_es = require("lodash-es");
60
- var echarts = __toESM(require("echarts/core"), 1);
61
- var import_core = __toESM(require("echarts-for-react/lib/core"), 1);
62
- var import_charts = require("echarts/charts");
63
- var import_renderers = require("echarts/renderers");
64
- var import_components = require("echarts/components");
28
+ // src/charts/horizontal-bar-chart.tsx
29
+ var import_jsx_runtime = require("react/jsx-runtime");
30
+ function HorizontalBarChart(props) {
31
+ const { total, value, backgroundColor, barColor, height } = props;
32
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
33
+ "div",
34
+ {
35
+ className: "tipp_horizontal-bar-chart bar-wrapper",
36
+ style: { height, backgroundColor },
37
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ "div",
39
+ {
40
+ style: {
41
+ width: `${Math.round(value / total * 100)}%`,
42
+ height: "100%"
43
+ },
44
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
45
+ }
46
+ )
47
+ }
48
+ );
49
+ }
65
50
 
66
51
  // src/charts/chart-theme.json
67
52
  var chart_theme_default = {
@@ -201,72 +186,18 @@ var chart_theme_default = {
201
186
  }
202
187
  };
203
188
 
204
- // src/charts/chart.tsx
205
- var import_jsx_runtime = require("react/jsx-runtime");
206
- echarts.use([
207
- import_renderers.SVGRenderer,
208
- import_charts.PieChart,
209
- import_charts.LineChart,
210
- import_components.TooltipComponent,
211
- import_components.GridComponent,
212
- import_components.LegendComponent,
213
- import_components.ToolboxComponent,
214
- import_components.AriaComponent,
215
- import_components.AxisPointerComponent,
216
- import_components.GridSimpleComponent
217
- ]);
218
- function Chart(props) {
219
- const { width, height, ref } = (0, import_react_resize_detector.useResizeDetector)({
220
- handleHeight: false,
221
- refreshMode: "debounce",
222
- refreshRate: 100
223
- });
224
- const option = (0, import_react.useMemo)(() => {
225
- const baseOption = {
226
- textStyle: { fontFamily: "Noto Sans KR" },
227
- tooltip: { textStyle: { fontSize: 16 } }
228
- };
229
- return (0, import_lodash_es.merge)(baseOption, props.option);
230
- }, [props.option]);
231
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
232
- import_core.default,
233
- __spreadProps(__spreadValues({
234
- echarts,
235
- opts: { renderer: "svg" },
236
- style: { height, width },
237
- theme: chart_theme_default
238
- }, props), {
239
- option
240
- })
241
- ) });
242
- }
243
-
244
- // src/charts/horizontal-bar-chart.tsx
245
- var import_jsx_runtime2 = require("react/jsx-runtime");
246
- function HorizontalBarChart(props) {
247
- const { total, value, backgroundColor, barColor, height } = props;
248
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
249
- "div",
250
- {
251
- className: "tipp_horizontal-bar-chart bar-wrapper",
252
- style: { height, backgroundColor },
253
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
254
- "div",
255
- {
256
- style: {
257
- width: `${Math.round(value / total * 100)}%`,
258
- height: "100%"
259
- },
260
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
261
- }
262
- )
263
- }
264
- );
265
- }
189
+ // src/charts/chart-default-props.tsx
190
+ var EchartDefaultProps = {
191
+ opts: { renderer: "svg" },
192
+ theme: chart_theme_default,
193
+ option: {
194
+ textStyle: { fontFamily: "Noto Sans KR" },
195
+ tooltip: { textStyle: { fontSize: 16 } }
196
+ }
197
+ };
266
198
  // Annotate the CommonJS export names for ESM import in node:
267
199
  0 && (module.exports = {
268
- Chart,
269
- HorizontalBarChart,
270
- chartTheme
200
+ EchartDefaultProps,
201
+ HorizontalBarChart
271
202
  });
272
203
  //# sourceMappingURL=index.cjs.map