@tipp/ui 1.0.32 → 1.0.34

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 (108) hide show
  1. package/dist/atoms/drawer.cjs.map +1 -1
  2. package/dist/atoms/drawer.js +3 -3
  3. package/dist/atoms/index.cjs.map +1 -1
  4. package/dist/atoms/index.js +20 -20
  5. package/dist/atoms/toast.cjs.map +1 -1
  6. package/dist/atoms/toast.js +1 -1
  7. package/dist/charts/chart.cjs +20 -3
  8. package/dist/charts/chart.cjs.map +1 -1
  9. package/dist/charts/chart.d.cts +4 -4
  10. package/dist/charts/chart.d.ts +4 -4
  11. package/dist/charts/chart.js +1 -1
  12. package/dist/charts/index.cjs +20 -3
  13. package/dist/charts/index.cjs.map +1 -1
  14. package/dist/charts/index.d.cts +1 -1
  15. package/dist/charts/index.d.ts +1 -1
  16. package/dist/charts/index.js +1 -1
  17. package/dist/{chunk-MQDLXULL.js → chunk-6PO4YCXF.js} +6 -6
  18. package/dist/{chunk-PL3Q4UVY.js → chunk-7LEWTGAO.js} +1 -1
  19. package/dist/{chunk-PL3Q4UVY.js.map → chunk-7LEWTGAO.js.map} +1 -1
  20. package/dist/{chunk-3ANMLRG4.js → chunk-HRSVVVYJ.js} +2 -2
  21. package/dist/{chunk-APFZLTJJ.js → chunk-KOKLC6X2.js} +2 -2
  22. package/dist/chunk-L46ZSIX4.js +49 -0
  23. package/dist/chunk-L46ZSIX4.js.map +1 -0
  24. package/dist/chunk-NJ2U2TVS.js +38 -0
  25. package/dist/chunk-NJ2U2TVS.js.map +1 -0
  26. package/dist/{chunk-DDEH7MMD.js → chunk-UZUVEVLC.js} +29 -4
  27. package/dist/chunk-UZUVEVLC.js.map +1 -0
  28. package/dist/index.cjs +20 -3
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.cts +1 -1
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.js +37 -37
  33. package/dist/molecules/expand-table/index.js +13 -13
  34. package/dist/molecules/expand-table/row.js +11 -11
  35. package/dist/molecules/index.js +16 -16
  36. package/dist/molecules/navigation.js +11 -11
  37. package/dist/theme/theme-provider.cjs.map +1 -1
  38. package/dist/theme/theme-provider.d.cts +1 -1
  39. package/dist/theme/theme-provider.d.ts +1 -1
  40. package/dist/theme/theme-provider.js +1 -1
  41. package/package.json +1 -1
  42. package/src/atoms/toast.tsx +1 -1
  43. package/src/charts/chart.tsx +55 -8
  44. package/src/theme/theme-provider.tsx +1 -1
  45. package/dist/chunk-2HO6TD5Z.js +0 -77
  46. package/dist/chunk-2HO6TD5Z.js.map +0 -1
  47. package/dist/chunk-2ZVIXDUQ.js +0 -196
  48. package/dist/chunk-2ZVIXDUQ.js.map +0 -1
  49. package/dist/chunk-3HULX2N3.js +0 -206
  50. package/dist/chunk-3HULX2N3.js.map +0 -1
  51. package/dist/chunk-4K4S5TXK.js +0 -7
  52. package/dist/chunk-4K4S5TXK.js.map +0 -1
  53. package/dist/chunk-527BQG3X.js +0 -181
  54. package/dist/chunk-527BQG3X.js.map +0 -1
  55. package/dist/chunk-6O2MNTGU.js +0 -198
  56. package/dist/chunk-6O2MNTGU.js.map +0 -1
  57. package/dist/chunk-7HRYZ7NQ.js +0 -197
  58. package/dist/chunk-7HRYZ7NQ.js.map +0 -1
  59. package/dist/chunk-A5BAGKVO.js +0 -205
  60. package/dist/chunk-A5BAGKVO.js.map +0 -1
  61. package/dist/chunk-AGMMAML3.js +0 -1
  62. package/dist/chunk-AGMMAML3.js.map +0 -1
  63. package/dist/chunk-BFHWI7WD.js +0 -119
  64. package/dist/chunk-CAQ3H2HW.js +0 -197
  65. package/dist/chunk-CAQ3H2HW.js.map +0 -1
  66. package/dist/chunk-DCPLIZMO.js +0 -204
  67. package/dist/chunk-DCPLIZMO.js.map +0 -1
  68. package/dist/chunk-DDEH7MMD.js.map +0 -1
  69. package/dist/chunk-DXSXADVU.js +0 -206
  70. package/dist/chunk-DXSXADVU.js.map +0 -1
  71. package/dist/chunk-EIDBURAB.js +0 -190
  72. package/dist/chunk-EIDBURAB.js.map +0 -1
  73. package/dist/chunk-GMHV56NQ.js +0 -205
  74. package/dist/chunk-GMHV56NQ.js.map +0 -1
  75. package/dist/chunk-HBB3XS6O.js +0 -192
  76. package/dist/chunk-HBB3XS6O.js.map +0 -1
  77. package/dist/chunk-IYBDO5LG.js +0 -201
  78. package/dist/chunk-IYBDO5LG.js.map +0 -1
  79. package/dist/chunk-KO2GTLZU.js +0 -119
  80. package/dist/chunk-KO2GTLZU.js.map +0 -1
  81. package/dist/chunk-LAEQOKW7.js +0 -206
  82. package/dist/chunk-LAEQOKW7.js.map +0 -1
  83. package/dist/chunk-LBO3JR5R.js +0 -79
  84. package/dist/chunk-LBO3JR5R.js.map +0 -1
  85. package/dist/chunk-MQDLXULL.js.map +0 -1
  86. package/dist/chunk-OL2I33HW.js +0 -119
  87. package/dist/chunk-OL2I33HW.js.map +0 -1
  88. package/dist/chunk-OUSFDJNS.js +0 -119
  89. package/dist/chunk-OUSFDJNS.js.map +0 -1
  90. package/dist/chunk-P6F4CTYO.js +0 -79
  91. package/dist/chunk-P6F4CTYO.js.map +0 -1
  92. package/dist/chunk-PEQK7Z73.js +0 -206
  93. package/dist/chunk-PEQK7Z73.js.map +0 -1
  94. package/dist/chunk-QANLBULQ.js +0 -79
  95. package/dist/chunk-QANLBULQ.js.map +0 -1
  96. package/dist/chunk-QSSRR273.js +0 -206
  97. package/dist/chunk-QSSRR273.js.map +0 -1
  98. package/dist/chunk-R7J3TUC5.js +0 -119
  99. package/dist/chunk-R7J3TUC5.js.map +0 -1
  100. package/dist/chunk-RRKJ5G7Y.js +0 -199
  101. package/dist/chunk-RRKJ5G7Y.js.map +0 -1
  102. package/dist/chunk-XEQWFWBV.js +0 -203
  103. package/dist/chunk-XEQWFWBV.js.map +0 -1
  104. package/dist/chunk-XG4N7OQF.js +0 -104
  105. package/dist/chunk-XG4N7OQF.js.map +0 -1
  106. /package/dist/{chunk-BFHWI7WD.js.map → chunk-6PO4YCXF.js.map} +0 -0
  107. /package/dist/{chunk-3ANMLRG4.js.map → chunk-HRSVVVYJ.js.map} +0 -0
  108. /package/dist/{chunk-APFZLTJJ.js.map → chunk-KOKLC6X2.js.map} +0 -0
@@ -2,9 +2,7 @@ import {
2
2
  Row
3
3
  } from "../../chunk-XHNYNSZZ.js";
4
4
  import "../../chunk-2ANGYYEV.js";
5
- import "../../chunk-ILRUXI2E.js";
6
5
  import "../../chunk-JPIZP2PZ.js";
7
- import "../../chunk-355MU6BH.js";
8
6
  import "../../chunk-HYITAA4J.js";
9
7
  import "../../chunk-5H3YPCZK.js";
10
8
  import "../../chunk-FR2GDOU2.js";
@@ -12,7 +10,7 @@ import "../../chunk-74DX4CU7.js";
12
10
  import "../../chunk-OYM4XCHQ.js";
13
11
  import "../../chunk-YJ7ZFOYL.js";
14
12
  import "../../chunk-5ZITU5L7.js";
15
- import "../../chunk-365QMK4D.js";
13
+ import "../../chunk-ILRUXI2E.js";
16
14
  import "../../chunk-YO3BQW6S.js";
17
15
  import "../../chunk-6IVCARWS.js";
18
16
  import "../../chunk-6DJOIRMF.js";
@@ -20,13 +18,13 @@ import "../../chunk-FPD73OHW.js";
20
18
  import "../../chunk-ZKZDVS7G.js";
21
19
  import "../../chunk-MUNMDHRF.js";
22
20
  import "../../chunk-TVDKGMBI.js";
23
- import "../../chunk-O3T3TM3V.js";
21
+ import "../../chunk-355MU6BH.js";
24
22
  import "../../chunk-XQOL7UBI.js";
25
23
  import "../../chunk-TULWX7D6.js";
26
24
  import "../../chunk-XQOZWYUA.js";
27
25
  import "../../chunk-QGBUYEQN.js";
28
26
  import "../../chunk-5AVBYDPB.js";
29
- import "../../chunk-YTZSKMX3.js";
27
+ import "../../chunk-365QMK4D.js";
30
28
  import "../../chunk-4IKPNQV5.js";
31
29
  import "../../chunk-ACVANQJ4.js";
32
30
  import "../../chunk-2DZ2Y3JI.js";
@@ -36,18 +34,17 @@ import "../../chunk-25HMMI7R.js";
36
34
  import "../../chunk-2CVXGGI5.js";
37
35
  import "../../chunk-EGEQY3KT.js";
38
36
  import "../../chunk-HLOY6BIP.js";
39
- import "../../chunk-IQEEPHOY.js";
37
+ import "../../chunk-O3T3TM3V.js";
40
38
  import "../../chunk-JEHDCZQU.js";
41
39
  import "../../chunk-OHMOP5PV.js";
42
40
  import "../../chunk-KGLIAFTI.js";
43
41
  import "../../chunk-Q37G2GS6.js";
44
42
  import "../../chunk-VTJZMOSP.js";
45
43
  import "../../chunk-P6B2PNYI.js";
46
- import "../../chunk-3ANMLRG4.js";
47
- import "../../chunk-PL3Q4UVY.js";
48
- import "../../chunk-5XILGULJ.js";
44
+ import "../../chunk-L46ZSIX4.js";
45
+ import "../../chunk-NJ2U2TVS.js";
49
46
  import "../../chunk-O3DNDMV3.js";
50
- import "../../chunk-CZEGRZBK.js";
47
+ import "../../chunk-YTZSKMX3.js";
51
48
  import "../../chunk-ALOPZ54P.js";
52
49
  import "../../chunk-YGL6SWKN.js";
53
50
  import "../../chunk-4Y5BEXVN.js";
@@ -55,9 +52,12 @@ import "../../chunk-AQX7DQLI.js";
55
52
  import "../../chunk-B6XJN6EC.js";
56
53
  import "../../chunk-FYEASFUU.js";
57
54
  import "../../chunk-MIMJ7LON.js";
58
- import "../../chunk-4UZQXJQO.js";
55
+ import "../../chunk-IQEEPHOY.js";
56
+ import "../../chunk-7LEWTGAO.js";
59
57
  import "../../chunk-J242TTFH.js";
60
58
  import "../../chunk-EAXUQEO5.js";
59
+ import "../../chunk-CZEGRZBK.js";
60
+ import "../../chunk-4UZQXJQO.js";
61
61
  import "../../chunk-N552FDTV.js";
62
62
  export {
63
63
  Row
@@ -1,21 +1,18 @@
1
1
  import "../chunk-KHHXN3CH.js";
2
- import {
3
- Navigation
4
- } from "../chunk-IBR5PQVX.js";
5
2
  import {
6
3
  DatePicker
7
4
  } from "../chunk-HUS5VLHS.js";
8
5
  import {
9
6
  ExpandTable,
10
7
  createColumnHelper
11
- } from "../chunk-KT7IAGCF.js";
8
+ } from "../chunk-6PO4YCXF.js";
12
9
  import "../chunk-XHNYNSZZ.js";
13
- import "../chunk-BSTJBBEX.js";
14
10
  import "../chunk-NDUKDKGB.js";
11
+ import {
12
+ Navigation
13
+ } from "../chunk-IBR5PQVX.js";
15
14
  import "../chunk-2ANGYYEV.js";
16
- import "../chunk-ILRUXI2E.js";
17
15
  import "../chunk-JPIZP2PZ.js";
18
- import "../chunk-355MU6BH.js";
19
16
  import "../chunk-HYITAA4J.js";
20
17
  import "../chunk-5H3YPCZK.js";
21
18
  import "../chunk-FR2GDOU2.js";
@@ -23,7 +20,7 @@ import "../chunk-74DX4CU7.js";
23
20
  import "../chunk-OYM4XCHQ.js";
24
21
  import "../chunk-YJ7ZFOYL.js";
25
22
  import "../chunk-5ZITU5L7.js";
26
- import "../chunk-365QMK4D.js";
23
+ import "../chunk-ILRUXI2E.js";
27
24
  import "../chunk-YO3BQW6S.js";
28
25
  import "../chunk-6IVCARWS.js";
29
26
  import "../chunk-6DJOIRMF.js";
@@ -31,13 +28,13 @@ import "../chunk-FPD73OHW.js";
31
28
  import "../chunk-ZKZDVS7G.js";
32
29
  import "../chunk-MUNMDHRF.js";
33
30
  import "../chunk-TVDKGMBI.js";
34
- import "../chunk-O3T3TM3V.js";
31
+ import "../chunk-355MU6BH.js";
35
32
  import "../chunk-XQOL7UBI.js";
36
33
  import "../chunk-TULWX7D6.js";
37
34
  import "../chunk-XQOZWYUA.js";
38
35
  import "../chunk-QGBUYEQN.js";
39
36
  import "../chunk-5AVBYDPB.js";
40
- import "../chunk-YTZSKMX3.js";
37
+ import "../chunk-365QMK4D.js";
41
38
  import "../chunk-4IKPNQV5.js";
42
39
  import "../chunk-ACVANQJ4.js";
43
40
  import "../chunk-2DZ2Y3JI.js";
@@ -47,18 +44,17 @@ import "../chunk-25HMMI7R.js";
47
44
  import "../chunk-2CVXGGI5.js";
48
45
  import "../chunk-EGEQY3KT.js";
49
46
  import "../chunk-HLOY6BIP.js";
50
- import "../chunk-IQEEPHOY.js";
47
+ import "../chunk-O3T3TM3V.js";
51
48
  import "../chunk-JEHDCZQU.js";
52
49
  import "../chunk-OHMOP5PV.js";
53
50
  import "../chunk-KGLIAFTI.js";
54
51
  import "../chunk-Q37G2GS6.js";
55
52
  import "../chunk-VTJZMOSP.js";
56
53
  import "../chunk-P6B2PNYI.js";
57
- import "../chunk-3ANMLRG4.js";
58
- import "../chunk-PL3Q4UVY.js";
59
- import "../chunk-5XILGULJ.js";
54
+ import "../chunk-L46ZSIX4.js";
55
+ import "../chunk-NJ2U2TVS.js";
60
56
  import "../chunk-O3DNDMV3.js";
61
- import "../chunk-CZEGRZBK.js";
57
+ import "../chunk-YTZSKMX3.js";
62
58
  import "../chunk-ALOPZ54P.js";
63
59
  import "../chunk-YGL6SWKN.js";
64
60
  import "../chunk-4Y5BEXVN.js";
@@ -66,9 +62,13 @@ import "../chunk-AQX7DQLI.js";
66
62
  import "../chunk-B6XJN6EC.js";
67
63
  import "../chunk-FYEASFUU.js";
68
64
  import "../chunk-MIMJ7LON.js";
69
- import "../chunk-4UZQXJQO.js";
65
+ import "../chunk-IQEEPHOY.js";
66
+ import "../chunk-7LEWTGAO.js";
70
67
  import "../chunk-J242TTFH.js";
71
68
  import "../chunk-EAXUQEO5.js";
69
+ import "../chunk-CZEGRZBK.js";
70
+ import "../chunk-4UZQXJQO.js";
71
+ import "../chunk-BSTJBBEX.js";
72
72
  import "../chunk-N552FDTV.js";
73
73
  export {
74
74
  DatePicker,
@@ -2,9 +2,7 @@ import {
2
2
  Navigation
3
3
  } from "../chunk-IBR5PQVX.js";
4
4
  import "../chunk-2ANGYYEV.js";
5
- import "../chunk-ILRUXI2E.js";
6
5
  import "../chunk-JPIZP2PZ.js";
7
- import "../chunk-355MU6BH.js";
8
6
  import "../chunk-HYITAA4J.js";
9
7
  import "../chunk-5H3YPCZK.js";
10
8
  import "../chunk-FR2GDOU2.js";
@@ -12,7 +10,7 @@ import "../chunk-74DX4CU7.js";
12
10
  import "../chunk-OYM4XCHQ.js";
13
11
  import "../chunk-YJ7ZFOYL.js";
14
12
  import "../chunk-5ZITU5L7.js";
15
- import "../chunk-365QMK4D.js";
13
+ import "../chunk-ILRUXI2E.js";
16
14
  import "../chunk-YO3BQW6S.js";
17
15
  import "../chunk-6IVCARWS.js";
18
16
  import "../chunk-6DJOIRMF.js";
@@ -20,13 +18,13 @@ import "../chunk-FPD73OHW.js";
20
18
  import "../chunk-ZKZDVS7G.js";
21
19
  import "../chunk-MUNMDHRF.js";
22
20
  import "../chunk-TVDKGMBI.js";
23
- import "../chunk-O3T3TM3V.js";
21
+ import "../chunk-355MU6BH.js";
24
22
  import "../chunk-XQOL7UBI.js";
25
23
  import "../chunk-TULWX7D6.js";
26
24
  import "../chunk-XQOZWYUA.js";
27
25
  import "../chunk-QGBUYEQN.js";
28
26
  import "../chunk-5AVBYDPB.js";
29
- import "../chunk-YTZSKMX3.js";
27
+ import "../chunk-365QMK4D.js";
30
28
  import "../chunk-4IKPNQV5.js";
31
29
  import "../chunk-ACVANQJ4.js";
32
30
  import "../chunk-2DZ2Y3JI.js";
@@ -36,18 +34,17 @@ import "../chunk-25HMMI7R.js";
36
34
  import "../chunk-2CVXGGI5.js";
37
35
  import "../chunk-EGEQY3KT.js";
38
36
  import "../chunk-HLOY6BIP.js";
39
- import "../chunk-IQEEPHOY.js";
37
+ import "../chunk-O3T3TM3V.js";
40
38
  import "../chunk-JEHDCZQU.js";
41
39
  import "../chunk-OHMOP5PV.js";
42
40
  import "../chunk-KGLIAFTI.js";
43
41
  import "../chunk-Q37G2GS6.js";
44
42
  import "../chunk-VTJZMOSP.js";
45
43
  import "../chunk-P6B2PNYI.js";
46
- import "../chunk-3ANMLRG4.js";
47
- import "../chunk-PL3Q4UVY.js";
48
- import "../chunk-5XILGULJ.js";
44
+ import "../chunk-L46ZSIX4.js";
45
+ import "../chunk-NJ2U2TVS.js";
49
46
  import "../chunk-O3DNDMV3.js";
50
- import "../chunk-CZEGRZBK.js";
47
+ import "../chunk-YTZSKMX3.js";
51
48
  import "../chunk-ALOPZ54P.js";
52
49
  import "../chunk-YGL6SWKN.js";
53
50
  import "../chunk-4Y5BEXVN.js";
@@ -55,9 +52,12 @@ import "../chunk-AQX7DQLI.js";
55
52
  import "../chunk-B6XJN6EC.js";
56
53
  import "../chunk-FYEASFUU.js";
57
54
  import "../chunk-MIMJ7LON.js";
58
- import "../chunk-4UZQXJQO.js";
55
+ import "../chunk-IQEEPHOY.js";
56
+ import "../chunk-7LEWTGAO.js";
59
57
  import "../chunk-J242TTFH.js";
60
58
  import "../chunk-EAXUQEO5.js";
59
+ import "../chunk-CZEGRZBK.js";
60
+ import "../chunk-4UZQXJQO.js";
61
61
  import "../chunk-N552FDTV.js";
62
62
  export {
63
63
  Navigation
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/theme/theme-provider.tsx"],"sourcesContent":["import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactNode {\n return <Theme accentColor=\"iris\" radius=\"large\" {...props} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAsB;AASb;AADF,SAAS,cAAc,OAA4C;AACxE,SAAO,4CAAC,sCAAM,aAAY,QAAO,QAAO,WAAY,MAAO;AAC7D;","names":[]}
1
+ {"version":3,"sources":["../../src/theme/theme-provider.tsx"],"sourcesContent":["import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactElement {\n return <Theme accentColor=\"iris\" radius=\"large\" {...props} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAsB;AASb;AADF,SAAS,cAAc,OAA+C;AAC3E,SAAO,4CAAC,sCAAM,aAAY,QAAO,QAAO,WAAY,MAAO;AAC7D;","names":[]}
@@ -5,6 +5,6 @@ type ThemeProps = React__default.ComponentProps<typeof Theme>;
5
5
  interface ThemeProviderProps extends ThemeProps {
6
6
  children: React__default.ReactNode;
7
7
  }
8
- declare function ThemeProvider(props: ThemeProviderProps): React__default.ReactNode;
8
+ declare function ThemeProvider(props: ThemeProviderProps): React__default.ReactElement;
9
9
 
10
10
  export { ThemeProvider };
@@ -5,6 +5,6 @@ type ThemeProps = React__default.ComponentProps<typeof Theme>;
5
5
  interface ThemeProviderProps extends ThemeProps {
6
6
  children: React__default.ReactNode;
7
7
  }
8
- declare function ThemeProvider(props: ThemeProviderProps): React__default.ReactNode;
8
+ declare function ThemeProvider(props: ThemeProviderProps): React__default.ReactElement;
9
9
 
10
10
  export { ThemeProvider };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ThemeProvider
3
- } from "../chunk-PL3Q4UVY.js";
3
+ } from "../chunk-7LEWTGAO.js";
4
4
  import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  ThemeProvider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tipp/ui",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -19,7 +19,7 @@ function CloseButton({ closeToast }: CloseButtonProps): React.ReactNode {
19
19
  );
20
20
  }
21
21
 
22
- export function ToastContainer(props: ToastContainerProps): React.ReactNode {
22
+ export function ToastContainer(props: ToastContainerProps): React.ReactElement {
23
23
  return (
24
24
  <ToastifyToastContainer
25
25
  autoClose={5000}
@@ -1,17 +1,61 @@
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';
5
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';
6
39
  import chartTheme from './chart-theme.json';
7
40
 
8
- export { chartTheme };
41
+ echarts.use([
42
+ SVGRenderer,
43
+ PieChart,
44
+ LineChart,
45
+ TooltipComponent,
46
+ GridComponent,
47
+ LegendComponent,
48
+ ToolboxComponent,
49
+ AriaComponent,
50
+ AxisPointerComponent,
51
+ GridSimpleComponent,
52
+ ]);
9
53
 
10
54
  export type ChartProps = Omit<
11
- React.ComponentProps<typeof ReactECharts>,
55
+ React.ComponentProps<typeof ReactEChartsCore>,
12
56
  'option'
13
57
  > & {
14
- option: EChartOption;
58
+ option: EChartsOption;
15
59
  };
16
60
 
17
61
  export function Chart(props: ChartProps): JSX.Element {
@@ -22,7 +66,7 @@ export function Chart(props: ChartProps): JSX.Element {
22
66
  });
23
67
 
24
68
  const option = useMemo(() => {
25
- const baseOption: EChartOption = {
69
+ const baseOption: EChartsOption = {
26
70
  textStyle: { fontFamily: 'Noto Sans KR' },
27
71
  tooltip: { textStyle: { fontSize: 16 } },
28
72
  };
@@ -31,9 +75,10 @@ export function Chart(props: ChartProps): JSX.Element {
31
75
 
32
76
  return (
33
77
  <div ref={ref} style={{ width: '100%', height: '100%' }}>
34
- <ReactECharts
78
+ <ReactEChartsCore
79
+ echarts={echarts}
35
80
  opts={{ renderer: 'svg' }}
36
- style={{ width, height }}
81
+ style={{ height, width }}
37
82
  theme={chartTheme}
38
83
  {...props}
39
84
  option={option}
@@ -41,3 +86,5 @@ export function Chart(props: ChartProps): JSX.Element {
41
86
  </div>
42
87
  );
43
88
  }
89
+
90
+ export { chartTheme };
@@ -7,6 +7,6 @@ interface ThemeProviderProps extends ThemeProps {
7
7
  children: React.ReactNode;
8
8
  }
9
9
 
10
- export function ThemeProvider(props: ThemeProviderProps): React.ReactNode {
10
+ export function ThemeProvider(props: ThemeProviderProps): React.ReactElement {
11
11
  return <Theme accentColor="iris" radius="large" {...props} />;
12
12
  }
@@ -1,77 +0,0 @@
1
- import {
2
- __objRest,
3
- __spreadProps,
4
- __spreadValues
5
- } from "./chunk-N552FDTV.js";
6
-
7
- // src/atoms/form.tsx
8
- import * as RadixForm from "@radix-ui/react-form";
9
- import { forwardRef } from "react";
10
- import { jsx } from "react/jsx-runtime";
11
- var Root2 = forwardRef(
12
- (_a, ref) => {
13
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14
- return /* @__PURE__ */ jsx(
15
- RadixForm.Root,
16
- __spreadProps(__spreadValues({}, rest), {
17
- className: `FormRoot ${className || ""}`,
18
- ref,
19
- children
20
- })
21
- );
22
- }
23
- );
24
- Root2.displayName = "FORM_ROOT";
25
- var Field2 = forwardRef(
26
- (_a, ref) => {
27
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
28
- return /* @__PURE__ */ jsx(
29
- RadixForm.Field,
30
- __spreadProps(__spreadValues({}, rest), {
31
- className: `FormField ${className || ""}`,
32
- ref,
33
- children
34
- })
35
- );
36
- }
37
- );
38
- Field2.displayName = "FORM_FIELD";
39
- var Label2 = forwardRef(
40
- (_a, ref) => {
41
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
42
- return /* @__PURE__ */ jsx(
43
- RadixForm.Label,
44
- __spreadProps(__spreadValues({}, rest), {
45
- className: `FormLabel ${className || ""}`,
46
- ref,
47
- children
48
- })
49
- );
50
- }
51
- );
52
- Label2.displayName = "FORM_FIELD";
53
- var Message2 = forwardRef(
54
- (_a, ref) => {
55
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
56
- return /* @__PURE__ */ jsx(
57
- RadixForm.Message,
58
- __spreadProps(__spreadValues({}, rest), {
59
- className: `FormLabel ${className || ""}`,
60
- ref,
61
- children
62
- })
63
- );
64
- }
65
- );
66
- Message2.displayName = "FORM_FIELD";
67
- var Form = __spreadProps(__spreadValues({}, RadixForm.ValidityState), {
68
- Root: Root2,
69
- Field: Field2,
70
- Label: Label2,
71
- Message: Message2
72
- });
73
-
74
- export {
75
- Form
76
- };
77
- //# sourceMappingURL=chunk-2HO6TD5Z.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/atoms/form.tsx"],"sourcesContent":["import * as RadixForm from '@radix-ui/react-form';\nimport { forwardRef } from 'react';\n\nconst Root = forwardRef<HTMLFormElement, RadixForm.FormProps>(\n ({ children, className, ...rest }, ref) => {\n return (\n <RadixForm.Root\n {...rest}\n className={`FormRoot ${className || ''}`}\n ref={ref}\n >\n {children}\n </RadixForm.Root>\n );\n }\n);\n\nRoot.displayName = 'FORM_ROOT';\n\nconst Field = forwardRef<HTMLDivElement, RadixForm.FormFieldProps>(\n ({ children, className, ...rest }, ref) => {\n return (\n <RadixForm.Field\n {...rest}\n className={`FormField ${className || ''}`}\n ref={ref}\n >\n {children}\n </RadixForm.Field>\n );\n }\n);\nField.displayName = 'FORM_FIELD';\n\nconst Label = forwardRef<HTMLLabelElement, RadixForm.FormLabelProps>(\n ({ children, className, ...rest }, ref) => {\n return (\n <RadixForm.Label\n {...rest}\n className={`FormLabel ${className || ''}`}\n ref={ref}\n >\n {children}\n </RadixForm.Label>\n );\n }\n);\nLabel.displayName = 'FORM_FIELD';\n\nconst Message = forwardRef<HTMLSpanElement, RadixForm.FormMessageProps>(\n ({ children, className, ...rest }, ref) => {\n return (\n <RadixForm.Message\n {...rest}\n className={`FormLabel ${className || ''}`}\n ref={ref}\n >\n {children}\n </RadixForm.Message>\n );\n }\n);\nMessage.displayName = 'FORM_FIELD';\n\nexport const Form = {\n ...RadixForm.ValidityState,\n Root,\n Field,\n Label,\n Message,\n};\n"],"mappings":";;;;;;;AAAA,YAAY,eAAe;AAC3B,SAAS,kBAAkB;AAKrB;AAHN,IAAMA,QAAO;AAAA,EACX,CAAC,IAAkC,QAAQ;AAA1C,iBAAE,YAAU,UAJf,IAIG,IAA0B,iBAA1B,IAA0B,CAAxB,YAAU;AACX,WACE;AAAA,MAAW;AAAA,MAAV,iCACK,OADL;AAAA,QAEC,WAAW,YAAY,aAAa,EAAE;AAAA,QACtC;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEAA,MAAK,cAAc;AAEnB,IAAMC,SAAQ;AAAA,EACZ,CAAC,IAAkC,QAAQ;AAA1C,iBAAE,YAAU,UApBf,IAoBG,IAA0B,iBAA1B,IAA0B,CAAxB,YAAU;AACX,WACE;AAAA,MAAW;AAAA,MAAV,iCACK,OADL;AAAA,QAEC,WAAW,aAAa,aAAa,EAAE;AAAA,QACvC;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACAA,OAAM,cAAc;AAEpB,IAAMC,SAAQ;AAAA,EACZ,CAAC,IAAkC,QAAQ;AAA1C,iBAAE,YAAU,UAnCf,IAmCG,IAA0B,iBAA1B,IAA0B,CAAxB,YAAU;AACX,WACE;AAAA,MAAW;AAAA,MAAV,iCACK,OADL;AAAA,QAEC,WAAW,aAAa,aAAa,EAAE;AAAA,QACvC;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACAA,OAAM,cAAc;AAEpB,IAAMC,WAAU;AAAA,EACd,CAAC,IAAkC,QAAQ;AAA1C,iBAAE,YAAU,UAlDf,IAkDG,IAA0B,iBAA1B,IAA0B,CAAxB,YAAU;AACX,WACE;AAAA,MAAW;AAAA,MAAV,iCACK,OADL;AAAA,QAEC,WAAW,aAAa,aAAa,EAAE;AAAA,QACvC;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACAA,SAAQ,cAAc;AAEf,IAAM,OAAO,iCACL,0BADK;AAAA,EAElB,MAAAH;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AACF;","names":["Root","Field","Label","Message"]}
@@ -1,196 +0,0 @@
1
- // src/charts/chart.tsx
2
- import { useMemo } from "react";
3
- import { useResizeDetector } from "react-resize-detector";
4
- import { merge } from "lodash-es";
5
- import * as echarts from "echarts/core";
6
- import EChartsReactCore from "echarts-for-react/lib/core";
7
- import { PieChart, LineChart } from "echarts/charts";
8
- import { SVGRenderer } from "echarts/renderers";
9
- import {
10
- GridSimpleComponent,
11
- AxisPointerComponent,
12
- AriaComponent,
13
- TooltipComponent,
14
- GridComponent,
15
- LegendComponent,
16
- ToolboxComponent
17
- } from "echarts/components";
18
-
19
- // src/charts/chart-theme.json
20
- var chart_theme_default = {
21
- version: 1,
22
- themeName: "customed",
23
- theme: {
24
- seriesCnt: "5",
25
- backgroundColor: "rgba(0,0,0,0)",
26
- titleColor: "#1c2024",
27
- subtitleColor: "#8d8d8d",
28
- textColorShow: false,
29
- textColor: "#333",
30
- markTextColor: "#ffffff",
31
- color: [
32
- "#ffe629",
33
- "#3e63dd",
34
- "#ec9455",
35
- "#5bb98b",
36
- "#cb1d63",
37
- "#3ba272",
38
- "#fc8452",
39
- "#9a60b4",
40
- "#ea7ccc"
41
- ],
42
- borderColor: "#8d8d8d",
43
- borderWidth: 0,
44
- visualMapColor: ["#bf444c", "#d88273", "#f6efa6"],
45
- legendTextColor: "#1c2024",
46
- kColor: "#eb5454",
47
- kColor0: "#47b262",
48
- kBorderColor: "#eb5454",
49
- kBorderColor0: "#47b262",
50
- kBorderWidth: 1,
51
- lineWidth: 2,
52
- symbolSize: 4,
53
- symbol: "emptyCircle",
54
- symbolBorderWidth: 1,
55
- lineSmooth: false,
56
- graphLineWidth: 1,
57
- graphLineColor: "#aaa",
58
- mapLabelColor: "#000",
59
- mapLabelColorE: "rgb(100,0,0)",
60
- mapBorderColor: "#444",
61
- mapBorderColorE: "#444",
62
- mapBorderWidth: 0.5,
63
- mapBorderWidthE: 1,
64
- mapAreaColor: "#eee",
65
- mapAreaColorE: "rgba(255,215,0,0.8)",
66
- axes: [
67
- {
68
- type: "all",
69
- name: "\u901A\u7528\u5750\u6807\u8F74",
70
- axisLineShow: true,
71
- axisLineColor: "#6E7079",
72
- axisTickShow: true,
73
- axisTickColor: "#6E7079",
74
- axisLabelShow: true,
75
- axisLabelColor: "#6E7079",
76
- splitLineShow: true,
77
- splitLineColor: ["#E0E6F1"],
78
- splitAreaShow: false,
79
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
80
- },
81
- {
82
- type: "category",
83
- name: "\u7C7B\u76EE\u5750\u6807\u8F74",
84
- axisLineShow: true,
85
- axisLineColor: "#6E7079",
86
- axisTickShow: true,
87
- axisTickColor: "#6E7079",
88
- axisLabelShow: true,
89
- axisLabelColor: "#6E7079",
90
- splitLineShow: false,
91
- splitLineColor: ["#E0E6F1"],
92
- splitAreaShow: false,
93
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
94
- },
95
- {
96
- type: "value",
97
- name: "\u6570\u503C\u5750\u6807\u8F74",
98
- axisLineShow: false,
99
- axisLineColor: "#6E7079",
100
- axisTickShow: false,
101
- axisTickColor: "#6E7079",
102
- axisLabelShow: true,
103
- axisLabelColor: "#6E7079",
104
- splitLineShow: true,
105
- splitLineColor: ["#E0E6F1"],
106
- splitAreaShow: false,
107
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
108
- },
109
- {
110
- type: "log",
111
- name: "\u5BF9\u6570\u5750\u6807\u8F74",
112
- axisLineShow: false,
113
- axisLineColor: "#6E7079",
114
- axisTickShow: false,
115
- axisTickColor: "#6E7079",
116
- axisLabelShow: true,
117
- axisLabelColor: "#6E7079",
118
- splitLineShow: true,
119
- splitLineColor: ["#E0E6F1"],
120
- splitAreaShow: false,
121
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
122
- },
123
- {
124
- type: "time",
125
- name: "\u65F6\u95F4\u5750\u6807\u8F74",
126
- axisLineShow: true,
127
- axisLineColor: "#6E7079",
128
- axisTickShow: true,
129
- axisTickColor: "#6E7079",
130
- axisLabelShow: true,
131
- axisLabelColor: "#6E7079",
132
- splitLineShow: false,
133
- splitLineColor: ["#E0E6F1"],
134
- splitAreaShow: false,
135
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
136
- }
137
- ],
138
- axisSeperateSetting: true,
139
- toolboxColor: "#8d8d8d",
140
- toolboxEmphasisColor: "#1c2024",
141
- tooltipAxisColor: "#cccccc",
142
- tooltipAxisWidth: 1,
143
- timelineLineColor: "#dae1f5",
144
- timelineLineWidth: 2,
145
- timelineItemColor: "#a4b1d7",
146
- timelineItemColorE: "#ffffff",
147
- timelineCheckColor: "#316bf3",
148
- timelineCheckBorderColor: "#ffffff",
149
- timelineItemBorderWidth: 1,
150
- timelineControlColor: "#a4b1d7",
151
- timelineControlBorderColor: "#a4b1d7",
152
- timelineControlBorderWidth: 1,
153
- timelineLabelColor: "#a4b1d7"
154
- }
155
- };
156
-
157
- // src/charts/chart.tsx
158
- import { jsx } from "react/jsx-runtime";
159
- echarts.use([
160
- SVGRenderer,
161
- PieChart,
162
- LineChart,
163
- TooltipComponent,
164
- GridComponent,
165
- LegendComponent,
166
- ToolboxComponent,
167
- AriaComponent,
168
- AxisPointerComponent,
169
- GridSimpleComponent
170
- ]);
171
- function Chart(props) {
172
- const { width, height, ref } = useResizeDetector({
173
- handleHeight: false,
174
- refreshMode: "debounce",
175
- refreshRate: 100
176
- });
177
- const option = useMemo(() => {
178
- const baseOption = {
179
- // textStyle: { fontFamily: 'Noto Sans KR' },
180
- // tooltip: { textStyle: { fontSize: 16 } },
181
- };
182
- return merge(baseOption, props.option);
183
- }, [props.option]);
184
- return /* @__PURE__ */ jsx("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
185
- EChartsReactCore,
186
- {
187
- option
188
- }
189
- ) });
190
- }
191
-
192
- export {
193
- chart_theme_default,
194
- Chart
195
- };
196
- //# sourceMappingURL=chunk-2ZVIXDUQ.js.map