@x-plat/design-system 0.1.1

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 (165) hide show
  1. package/README.md +123 -0
  2. package/dist/attributes-DJIWir_0.d.cts +7 -0
  3. package/dist/attributes-DJIWir_0.d.ts +7 -0
  4. package/dist/breakpoints-DsXkJgdl.d.cts +35 -0
  5. package/dist/breakpoints-DsXkJgdl.d.ts +35 -0
  6. package/dist/colors-BG91q_uV.d.cts +133 -0
  7. package/dist/colors-BG91q_uV.d.ts +133 -0
  8. package/dist/components/Button/index.cjs +203 -0
  9. package/dist/components/Button/index.css +1231 -0
  10. package/dist/components/Button/index.d.cts +132 -0
  11. package/dist/components/Button/index.d.ts +132 -0
  12. package/dist/components/Button/index.js +176 -0
  13. package/dist/components/Card/index.cjs +56 -0
  14. package/dist/components/Card/index.css +27 -0
  15. package/dist/components/Card/index.d.cts +13 -0
  16. package/dist/components/Card/index.d.ts +13 -0
  17. package/dist/components/Card/index.js +29 -0
  18. package/dist/components/Chart/index.cjs +393 -0
  19. package/dist/components/Chart/index.css +4 -0
  20. package/dist/components/Chart/index.d.cts +10 -0
  21. package/dist/components/Chart/index.d.ts +10 -0
  22. package/dist/components/Chart/index.js +367 -0
  23. package/dist/components/CheckBox/index.cjs +1116 -0
  24. package/dist/components/CheckBox/index.css +598 -0
  25. package/dist/components/CheckBox/index.d.cts +132 -0
  26. package/dist/components/CheckBox/index.d.ts +132 -0
  27. package/dist/components/CheckBox/index.js +1089 -0
  28. package/dist/components/Chip/index.cjs +193 -0
  29. package/dist/components/Chip/index.css +1227 -0
  30. package/dist/components/Chip/index.d.cts +132 -0
  31. package/dist/components/Chip/index.d.ts +132 -0
  32. package/dist/components/Chip/index.js +166 -0
  33. package/dist/components/DatePicker/index.cjs +1653 -0
  34. package/dist/components/DatePicker/index.css +1417 -0
  35. package/dist/components/DatePicker/index.d.cts +56 -0
  36. package/dist/components/DatePicker/index.d.ts +56 -0
  37. package/dist/components/DatePicker/index.js +1613 -0
  38. package/dist/components/HtmlTypeWriter/index.cjs +172 -0
  39. package/dist/components/HtmlTypeWriter/index.css +23 -0
  40. package/dist/components/HtmlTypeWriter/index.d.cts +14 -0
  41. package/dist/components/HtmlTypeWriter/index.d.ts +14 -0
  42. package/dist/components/HtmlTypeWriter/index.js +135 -0
  43. package/dist/components/ImageSelector/index.cjs +1063 -0
  44. package/dist/components/ImageSelector/index.css +85 -0
  45. package/dist/components/ImageSelector/index.d.cts +10 -0
  46. package/dist/components/ImageSelector/index.d.ts +10 -0
  47. package/dist/components/ImageSelector/index.js +1026 -0
  48. package/dist/components/Input/index.cjs +410 -0
  49. package/dist/components/Input/index.css +74 -0
  50. package/dist/components/Input/index.d.cts +23 -0
  51. package/dist/components/Input/index.d.ts +23 -0
  52. package/dist/components/Input/index.js +372 -0
  53. package/dist/components/Modal/index.cjs +101 -0
  54. package/dist/components/Modal/index.css +39 -0
  55. package/dist/components/Modal/index.d.cts +16 -0
  56. package/dist/components/Modal/index.d.ts +16 -0
  57. package/dist/components/Modal/index.js +64 -0
  58. package/dist/components/PopOver/index.cjs +176 -0
  59. package/dist/components/PopOver/index.css +27 -0
  60. package/dist/components/PopOver/index.d.cts +15 -0
  61. package/dist/components/PopOver/index.d.ts +15 -0
  62. package/dist/components/PopOver/index.js +139 -0
  63. package/dist/components/Radio/index.cjs +257 -0
  64. package/dist/components/Radio/index.css +777 -0
  65. package/dist/components/Radio/index.d.cts +154 -0
  66. package/dist/components/Radio/index.d.ts +154 -0
  67. package/dist/components/Radio/index.js +219 -0
  68. package/dist/components/Select/index.cjs +1203 -0
  69. package/dist/components/Select/index.css +136 -0
  70. package/dist/components/Select/index.d.cts +44 -0
  71. package/dist/components/Select/index.d.ts +44 -0
  72. package/dist/components/Select/index.js +1165 -0
  73. package/dist/components/Swiper/index.cjs +144 -0
  74. package/dist/components/Swiper/index.d.cts +24 -0
  75. package/dist/components/Swiper/index.d.ts +24 -0
  76. package/dist/components/Swiper/index.js +128 -0
  77. package/dist/components/Switch/index.cjs +240 -0
  78. package/dist/components/Switch/index.css +780 -0
  79. package/dist/components/Switch/index.d.cts +131 -0
  80. package/dist/components/Switch/index.d.ts +131 -0
  81. package/dist/components/Switch/index.js +203 -0
  82. package/dist/components/Tab/index.cjs +122 -0
  83. package/dist/components/Tab/index.css +59 -0
  84. package/dist/components/Tab/index.d.cts +18 -0
  85. package/dist/components/Tab/index.d.ts +18 -0
  86. package/dist/components/Tab/index.js +85 -0
  87. package/dist/components/Table/index.cjs +384 -0
  88. package/dist/components/Table/index.css +4093 -0
  89. package/dist/components/Table/index.d.cts +174 -0
  90. package/dist/components/Table/index.d.ts +174 -0
  91. package/dist/components/Table/index.js +343 -0
  92. package/dist/components/TextArea/index.cjs +114 -0
  93. package/dist/components/TextArea/index.css +34 -0
  94. package/dist/components/TextArea/index.d.cts +6 -0
  95. package/dist/components/TextArea/index.d.ts +6 -0
  96. package/dist/components/TextArea/index.js +77 -0
  97. package/dist/components/Tooltip/index.cjs +210 -0
  98. package/dist/components/Tooltip/index.css +599 -0
  99. package/dist/components/Tooltip/index.d.cts +134 -0
  100. package/dist/components/Tooltip/index.d.ts +134 -0
  101. package/dist/components/Tooltip/index.js +173 -0
  102. package/dist/components/Video/index.cjs +269 -0
  103. package/dist/components/Video/index.css +71 -0
  104. package/dist/components/Video/index.d.cts +15 -0
  105. package/dist/components/Video/index.d.ts +15 -0
  106. package/dist/components/Video/index.js +232 -0
  107. package/dist/components/index.cjs +3221 -0
  108. package/dist/components/index.css +9972 -0
  109. package/dist/components/index.d.cts +23 -0
  110. package/dist/components/index.d.ts +23 -0
  111. package/dist/components/index.js +3167 -0
  112. package/dist/index.cjs +8216 -0
  113. package/dist/index.css +10087 -0
  114. package/dist/index.d.cts +31 -0
  115. package/dist/index.d.ts +31 -0
  116. package/dist/index.js +7855 -0
  117. package/dist/layout/Grid/FullGrid/index.cjs +54 -0
  118. package/dist/layout/Grid/FullGrid/index.css +21 -0
  119. package/dist/layout/Grid/FullGrid/index.d.cts +9 -0
  120. package/dist/layout/Grid/FullGrid/index.d.ts +9 -0
  121. package/dist/layout/Grid/FullGrid/index.js +27 -0
  122. package/dist/layout/Grid/FullScreen/index.cjs +54 -0
  123. package/dist/layout/Grid/FullScreen/index.css +23 -0
  124. package/dist/layout/Grid/FullScreen/index.d.cts +9 -0
  125. package/dist/layout/Grid/FullScreen/index.d.ts +9 -0
  126. package/dist/layout/Grid/FullScreen/index.js +27 -0
  127. package/dist/layout/Grid/GapGrid/index.cjs +32 -0
  128. package/dist/layout/Grid/GapGrid/index.d.cts +12 -0
  129. package/dist/layout/Grid/GapGrid/index.d.ts +12 -0
  130. package/dist/layout/Grid/GapGrid/index.js +11 -0
  131. package/dist/layout/Grid/Item/index.cjs +71 -0
  132. package/dist/layout/Grid/Item/index.css +19 -0
  133. package/dist/layout/Grid/Item/index.d.cts +20 -0
  134. package/dist/layout/Grid/Item/index.d.ts +20 -0
  135. package/dist/layout/Grid/Item/index.js +44 -0
  136. package/dist/layout/Grid/index.cjs +95 -0
  137. package/dist/layout/Grid/index.css +65 -0
  138. package/dist/layout/Grid/index.d.cts +5 -0
  139. package/dist/layout/Grid/index.d.ts +5 -0
  140. package/dist/layout/Grid/index.js +65 -0
  141. package/dist/layout/Header/index.cjs +45 -0
  142. package/dist/layout/Header/index.css +11 -0
  143. package/dist/layout/Header/index.d.cts +10 -0
  144. package/dist/layout/Header/index.d.ts +10 -0
  145. package/dist/layout/Header/index.js +18 -0
  146. package/dist/layout/Layout/index.cjs +44 -0
  147. package/dist/layout/Layout/index.css +23 -0
  148. package/dist/layout/Layout/index.d.cts +15 -0
  149. package/dist/layout/Layout/index.d.ts +15 -0
  150. package/dist/layout/Layout/index.js +17 -0
  151. package/dist/layout/SideBar/index.cjs +101 -0
  152. package/dist/layout/SideBar/index.css +10 -0
  153. package/dist/layout/SideBar/index.d.cts +16 -0
  154. package/dist/layout/SideBar/index.d.ts +16 -0
  155. package/dist/layout/SideBar/index.js +62 -0
  156. package/dist/layout/index.cjs +188 -0
  157. package/dist/layout/index.css +112 -0
  158. package/dist/layout/index.d.cts +8 -0
  159. package/dist/layout/index.d.ts +8 -0
  160. package/dist/layout/index.js +143 -0
  161. package/dist/tokens/index.cjs +6225 -0
  162. package/dist/tokens/index.d.cts +593 -0
  163. package/dist/tokens/index.d.ts +593 -0
  164. package/dist/tokens/index.js +5900 -0
  165. package/package.json +86 -0
@@ -0,0 +1,393 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/components/Chart/index.ts
31
+ var Chart_exports = {};
32
+ __export(Chart_exports, {
33
+ Chart: () => Chart_default
34
+ });
35
+ module.exports = __toCommonJS(Chart_exports);
36
+
37
+ // src/components/Chart/Chart.tsx
38
+ var import_react = __toESM(require("react"), 1);
39
+
40
+ // src/tokens/colors.ts
41
+ var colors = {
42
+ xplat: {
43
+ red: {
44
+ 50: "#FFF0F0",
45
+ 100: "#FFDDDE",
46
+ 200: "#FFC1C2",
47
+ 300: "#FF9698",
48
+ 400: "#FF5A5D",
49
+ 500: "#FF272B",
50
+ 600: "#F80409",
51
+ 700: "#D40105",
52
+ 800: "#AE0609",
53
+ 900: "#900C0F"
54
+ },
55
+ green: {
56
+ 50: "#E5F6EA",
57
+ 100: "#C1E7CC",
58
+ 200: "#98D8AC",
59
+ 300: "#6CCA8B",
60
+ 400: "#47BE72",
61
+ 500: "#10B259",
62
+ 600: "#00A34F",
63
+ 700: "#009143",
64
+ 800: "#007F38",
65
+ 900: "#006024"
66
+ },
67
+ orange: {
68
+ 50: "#FFF8EC",
69
+ 100: "#FFF0D3",
70
+ 200: "#FFDDA5",
71
+ 300: "#FFC46D",
72
+ 400: "#FF9F32",
73
+ 500: "#FF820A",
74
+ 600: "#FF6900",
75
+ 700: "#CC4B02",
76
+ 800: "#A13A0B",
77
+ 900: "#82320C"
78
+ },
79
+ yellow: {
80
+ 50: "#FFFDE7",
81
+ 100: "#FFFAC1",
82
+ 200: "#FFF186",
83
+ 300: "#FFE041",
84
+ 400: "#FFCC0D",
85
+ 500: "#F0B100",
86
+ 600: "#D18800",
87
+ 700: "#A66002",
88
+ 800: "#894B0A",
89
+ 900: "#743D0F"
90
+ },
91
+ blue: {
92
+ 50: "#F1F4FD",
93
+ 100: "#DFE7FA",
94
+ 200: "#C5D4F8",
95
+ 300: "#9EB8F2",
96
+ 400: "#7093EA",
97
+ 500: "#4D6DE3",
98
+ 600: "#3950D7",
99
+ 700: "#303EC5",
100
+ 800: "#2D35A0",
101
+ 900: "#29317F"
102
+ },
103
+ lightblue: {
104
+ 50: "#EEFAFF",
105
+ 100: "#D9F4FF",
106
+ 200: "#BBEDFF",
107
+ 300: "#8DE3FF",
108
+ 400: "#57D0FF",
109
+ 500: "#30B6FF",
110
+ 600: "#1999F7",
111
+ 700: "#1280E3",
112
+ 800: "#1566B8",
113
+ 900: "#175791"
114
+ },
115
+ purple: {
116
+ 50: "#FBF6FE",
117
+ 100: "#F5EAFD",
118
+ 200: "#EDD8FC",
119
+ 300: "#E0BAF8",
120
+ 400: "#CD8DF3",
121
+ 500: "#B961EB",
122
+ 600: "#A541DC",
123
+ 700: "#9230C5",
124
+ 800: "#782B9E",
125
+ 900: "#62247F"
126
+ },
127
+ pink: {
128
+ 50: "#FFF4FE",
129
+ 100: "#FFE7FD",
130
+ 200: "#FFCFFA",
131
+ 300: "#FEA9F1",
132
+ 400: "#FD75E7",
133
+ 500: "#F553DA",
134
+ 600: "#D821B6",
135
+ 700: "#B31892",
136
+ 800: "#921676",
137
+ 900: "#781761"
138
+ },
139
+ neutral: {
140
+ 50: "#FAFAFA",
141
+ 100: "#F5F5F5",
142
+ 200: "#E5E5E5",
143
+ 300: "#D4D4D4",
144
+ 400: "#A1A1A1",
145
+ 500: "#737373",
146
+ 600: "#525252",
147
+ 700: "#404040",
148
+ 800: "#262626",
149
+ 900: "#171717"
150
+ },
151
+ black: "#000000",
152
+ white: "#FFFFFF"
153
+ },
154
+ test: {
155
+ default: "#ffffff"
156
+ }
157
+ };
158
+
159
+ // src/components/Chart/Chart.tsx
160
+ var import_chart = require("chart.js");
161
+ var import_chartjs_plugin_datalabels = __toESM(require("chartjs-plugin-datalabels"), 1);
162
+ var import_react_chartjs_2 = require("react-chartjs-2");
163
+
164
+ // src/components/Chart/token/colorSet.ts
165
+ var presets = [
166
+ [
167
+ colors.xplat.red[100],
168
+ colors.xplat.red[200],
169
+ colors.xplat.red[300],
170
+ colors.xplat.red[400],
171
+ colors.xplat.red[500],
172
+ colors.xplat.red[600]
173
+ ],
174
+ [
175
+ colors.xplat.orange[100],
176
+ colors.xplat.orange[200],
177
+ colors.xplat.orange[300],
178
+ colors.xplat.orange[400],
179
+ colors.xplat.orange[500],
180
+ colors.xplat.orange[600]
181
+ ],
182
+ [
183
+ colors.xplat.yellow[100],
184
+ colors.xplat.yellow[200],
185
+ colors.xplat.yellow[300],
186
+ colors.xplat.yellow[400],
187
+ colors.xplat.yellow[500],
188
+ colors.xplat.yellow[600]
189
+ ],
190
+ [
191
+ colors.xplat.green[100],
192
+ colors.xplat.green[200],
193
+ colors.xplat.green[300],
194
+ colors.xplat.green[400],
195
+ colors.xplat.green[500],
196
+ colors.xplat.green[600]
197
+ ],
198
+ [
199
+ colors.xplat.blue[100],
200
+ colors.xplat.blue[200],
201
+ colors.xplat.blue[300],
202
+ colors.xplat.blue[400],
203
+ colors.xplat.blue[500],
204
+ colors.xplat.blue[600]
205
+ ],
206
+ [
207
+ colors.xplat.lightblue[100],
208
+ colors.xplat.lightblue[200],
209
+ colors.xplat.lightblue[300],
210
+ colors.xplat.lightblue[400],
211
+ colors.xplat.lightblue[500],
212
+ colors.xplat.lightblue[600]
213
+ ],
214
+ [
215
+ colors.xplat.purple[100],
216
+ colors.xplat.purple[200],
217
+ colors.xplat.purple[300],
218
+ colors.xplat.purple[400],
219
+ colors.xplat.purple[500],
220
+ colors.xplat.purple[600]
221
+ ],
222
+ [
223
+ colors.xplat.pink[100],
224
+ colors.xplat.pink[200],
225
+ colors.xplat.pink[300],
226
+ colors.xplat.pink[400],
227
+ colors.xplat.pink[500],
228
+ colors.xplat.pink[600]
229
+ ],
230
+ [
231
+ colors.xplat.orange[300],
232
+ colors.xplat.red[300],
233
+ colors.xplat.yellow[300],
234
+ colors.xplat.green[300],
235
+ colors.xplat.blue[300],
236
+ colors.xplat.lightblue[300]
237
+ ],
238
+ [
239
+ colors.xplat.orange[400],
240
+ colors.xplat.red[400],
241
+ colors.xplat.yellow[400],
242
+ colors.xplat.green[400],
243
+ colors.xplat.blue[400],
244
+ colors.xplat.lightblue[400]
245
+ ],
246
+ [
247
+ colors.xplat.orange[500],
248
+ colors.xplat.red[500],
249
+ colors.xplat.yellow[500],
250
+ colors.xplat.green[500],
251
+ colors.xplat.blue[500],
252
+ colors.xplat.lightblue[500]
253
+ ]
254
+ ];
255
+ var colorPresets = {
256
+ line: [
257
+ presets[0],
258
+ presets[1],
259
+ presets[2],
260
+ presets[3],
261
+ presets[4],
262
+ presets[5],
263
+ presets[6],
264
+ presets[7]
265
+ ],
266
+ bar: [
267
+ presets[0],
268
+ presets[1],
269
+ presets[2],
270
+ presets[3],
271
+ presets[4],
272
+ presets[5],
273
+ presets[6],
274
+ presets[7]
275
+ ],
276
+ doughnut: [presets[8], presets[9], presets[10]],
277
+ pie: [presets[8], presets[9], presets[10]]
278
+ };
279
+
280
+ // src/components/Chart/util.ts
281
+ var getChartColorPreset = (type) => {
282
+ const index = Math.floor(Math.random() * colorPresets[type].length);
283
+ return colorPresets[type][index];
284
+ };
285
+ var getIndexColorByPreset = (preset, index) => {
286
+ const idx = index % preset.length;
287
+ return preset[idx];
288
+ };
289
+
290
+ // src/components/Chart/Chart.tsx
291
+ var import_jsx_runtime = require("react/jsx-runtime");
292
+ import_chart.Chart.register(
293
+ import_chart.CategoryScale,
294
+ import_chart.LinearScale,
295
+ import_chart.PointElement,
296
+ import_chart.LineElement,
297
+ import_chart.BarElement,
298
+ import_chart.ArcElement,
299
+ import_chart.Title,
300
+ import_chart.Tooltip,
301
+ import_chart.Legend,
302
+ import_chartjs_plugin_datalabels.default
303
+ );
304
+ var Chart = (props) => {
305
+ const { type, data, labels } = props;
306
+ const chartRef = import_react.default.useRef(null);
307
+ const containerRef = import_react.default.useRef(null);
308
+ const datasets = import_react.default.useMemo(() => {
309
+ const pallette = getChartColorPreset(type);
310
+ return Object.entries(data).map(([key, values], index) => {
311
+ const uniqueColors = getIndexColorByPreset(pallette, index);
312
+ if (type === "pie" || type === "doughnut") {
313
+ return {
314
+ label: key,
315
+ data: values,
316
+ backgroundColor: uniqueColors
317
+ };
318
+ }
319
+ return {
320
+ label: key,
321
+ data: values,
322
+ backgroundColor: uniqueColors,
323
+ borderColor: uniqueColors,
324
+ maxBarThickness: 32
325
+ };
326
+ });
327
+ }, [data, type]);
328
+ const chartData = {
329
+ labels,
330
+ datasets
331
+ };
332
+ const options = {
333
+ plugins: {
334
+ legend: { display: false },
335
+ datalabels: { display: false },
336
+ tooltip: { enabled: true }
337
+ }
338
+ };
339
+ if (type === "line" || type === "bar") {
340
+ options.scales = {
341
+ y: {
342
+ beginAtZero: true,
343
+ drawBorder: false,
344
+ suggestedMax: Math.max(...Object.values(data).flat()) * 1.2,
345
+ ticks: {
346
+ maxTicksLimit: 7
347
+ }
348
+ },
349
+ x: {
350
+ grid: { display: false },
351
+ ticks: { display: false }
352
+ }
353
+ };
354
+ }
355
+ if (type === "pie" || type === "doughnut") {
356
+ options.plugins.datalabels = {
357
+ color: colors.xplat.white,
358
+ font: { weight: "bold" },
359
+ formatter: (value) => `${value}`
360
+ };
361
+ }
362
+ const renderChart = import_react.default.useMemo(() => {
363
+ switch (type) {
364
+ case "line":
365
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_chartjs_2.Line, { ref: chartRef, data: chartData, options });
366
+ case "bar":
367
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_chartjs_2.Bar, { ref: chartRef, data: chartData, options });
368
+ case "pie":
369
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_chartjs_2.Pie, { ref: chartRef, data: chartData, options });
370
+ case "doughnut":
371
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_chartjs_2.Doughnut, { ref: chartRef, data: chartData, options });
372
+ default:
373
+ return null;
374
+ }
375
+ }, [chartData, options, type]);
376
+ import_react.default.useEffect(() => {
377
+ if (!containerRef.current || !chartRef.current) return;
378
+ const observer = new ResizeObserver(() => {
379
+ requestAnimationFrame(() => {
380
+ chartRef.current?.resize();
381
+ });
382
+ });
383
+ observer.observe(containerRef.current);
384
+ return () => observer.disconnect();
385
+ }, []);
386
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "lib-xplat-chart", ref: containerRef, children: renderChart });
387
+ };
388
+ Chart.displayName = "Chart";
389
+ var Chart_default = Chart;
390
+ // Annotate the CommonJS export names for ESM import in node:
391
+ 0 && (module.exports = {
392
+ Chart
393
+ });
@@ -0,0 +1,4 @@
1
+ /* src/components/Chart/chart.scss */
2
+ .lib-xplat-chart {
3
+ width: 100%;
4
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+
3
+ interface BasicChartProps {
4
+ type: "line" | "bar" | "pie" | "doughnut";
5
+ data: Record<string, number[]>;
6
+ labels: string[];
7
+ }
8
+ declare const Chart: React.FC<BasicChartProps>;
9
+
10
+ export { Chart };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+
3
+ interface BasicChartProps {
4
+ type: "line" | "bar" | "pie" | "doughnut";
5
+ data: Record<string, number[]>;
6
+ labels: string[];
7
+ }
8
+ declare const Chart: React.FC<BasicChartProps>;
9
+
10
+ export { Chart };