@tipp/ui 1.0.25 → 1.0.27

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 (71) hide show
  1. package/dist/atoms/form.cjs +136 -0
  2. package/dist/atoms/form.cjs.map +1 -0
  3. package/dist/atoms/form.d.cts +13 -0
  4. package/dist/atoms/form.d.ts +13 -0
  5. package/dist/atoms/form.js +8 -0
  6. package/dist/atoms/form.js.map +1 -0
  7. package/dist/atoms/index.cjs +71 -0
  8. package/dist/atoms/index.cjs.map +1 -1
  9. package/dist/atoms/index.d.cts +2 -0
  10. package/dist/atoms/index.d.ts +2 -0
  11. package/dist/atoms/index.js +13 -9
  12. package/dist/charts/index.js +1 -0
  13. package/dist/chunk-2ANGYYEV.js +1 -0
  14. package/dist/chunk-2ANGYYEV.js.map +1 -0
  15. package/dist/chunk-2CVXGGI5.js +79 -0
  16. package/dist/chunk-2CVXGGI5.js.map +1 -0
  17. package/dist/chunk-2HO6TD5Z.js +77 -0
  18. package/dist/chunk-2HO6TD5Z.js.map +1 -0
  19. package/dist/chunk-3R2IB6WJ.js +104 -0
  20. package/dist/chunk-3R2IB6WJ.js.map +1 -0
  21. package/dist/chunk-4K4S5TXK.js +7 -0
  22. package/dist/chunk-4K4S5TXK.js.map +1 -0
  23. package/dist/chunk-CHHLIPDN.js +23 -0
  24. package/dist/chunk-CHHLIPDN.js.map +1 -0
  25. package/dist/chunk-FH5ZSMU2.js +104 -0
  26. package/dist/chunk-FH5ZSMU2.js.map +1 -0
  27. package/dist/chunk-KO2GTLZU.js +119 -0
  28. package/dist/chunk-KO2GTLZU.js.map +1 -0
  29. package/dist/chunk-LBO3JR5R.js +79 -0
  30. package/dist/chunk-LBO3JR5R.js.map +1 -0
  31. package/dist/chunk-MQDLXULL.js +119 -0
  32. package/dist/chunk-MQDLXULL.js.map +1 -0
  33. package/dist/chunk-OCDOKW5S.js +119 -0
  34. package/dist/chunk-OCDOKW5S.js.map +1 -0
  35. package/dist/chunk-OUSFDJNS.js +119 -0
  36. package/dist/chunk-OUSFDJNS.js.map +1 -0
  37. package/dist/chunk-P6F4CTYO.js +79 -0
  38. package/dist/chunk-P6F4CTYO.js.map +1 -0
  39. package/dist/chunk-PSINRHYW.js +1 -0
  40. package/dist/chunk-PSINRHYW.js.map +1 -0
  41. package/dist/chunk-QANLBULQ.js +79 -0
  42. package/dist/chunk-QANLBULQ.js.map +1 -0
  43. package/dist/chunk-QOY42XM2.js +59 -0
  44. package/dist/chunk-QOY42XM2.js.map +1 -0
  45. package/dist/chunk-XG4N7OQF.js +104 -0
  46. package/dist/chunk-XG4N7OQF.js.map +1 -0
  47. package/dist/chunk-YL5VWNBV.js +91 -0
  48. package/dist/chunk-YL5VWNBV.js.map +1 -0
  49. package/dist/index.cjs +318 -47
  50. package/dist/index.cjs.map +1 -1
  51. package/dist/index.css +8 -0
  52. package/dist/index.css.map +1 -1
  53. package/dist/index.d.cts +3 -5
  54. package/dist/index.d.ts +3 -5
  55. package/dist/index.js +28 -13
  56. package/dist/molecules/expand-table/index.cjs +46 -336
  57. package/dist/molecules/expand-table/index.cjs.map +1 -1
  58. package/dist/molecules/expand-table/index.js +5 -4
  59. package/dist/molecules/expand-table/row.cjs +15 -372
  60. package/dist/molecules/expand-table/row.cjs.map +1 -1
  61. package/dist/molecules/expand-table/row.js +5 -4
  62. package/dist/molecules/index.cjs +80 -334
  63. package/dist/molecules/index.cjs.map +1 -1
  64. package/dist/molecules/index.js +10 -9
  65. package/dist/molecules/navigation.cjs +18 -298
  66. package/dist/molecules/navigation.cjs.map +1 -1
  67. package/dist/molecules/navigation.js +5 -4
  68. package/package.json +3 -31
  69. package/src/atoms/form.tsx +72 -0
  70. package/src/atoms/index.ts +2 -0
  71. package/src/index.ts +1 -0
@@ -68,89 +68,16 @@ module.exports = __toCommonJS(molecules_exports);
68
68
 
69
69
  // src/molecules/expand-table/index.tsx
70
70
  var import_react_table2 = require("@tanstack/react-table");
71
- var import_react13 = require("react");
71
+ var import_react6 = require("react");
72
72
 
73
- // src/atoms/alert-dialog.tsx
73
+ // src/atoms/button.tsx
74
74
  var import_themes = require("@radix-ui/themes");
75
-
76
- // src/atoms/aspect-ratio.tsx
77
- var import_themes2 = require("@radix-ui/themes");
78
-
79
- // src/atoms/avatar.tsx
80
- var import_themes3 = require("@radix-ui/themes");
81
75
  var import_react = require("react");
82
76
  var import_jsx_runtime = require("react/jsx-runtime");
83
- var Avatar = (0, import_react.forwardRef)(
84
- (props, ref) => {
85
- const _a = props, { children, size, variant = "soft" } = _a, rest = __objRest(_a, ["children", "size", "variant"]);
86
- const radixSize = (0, import_react.useMemo)(() => {
87
- switch (size) {
88
- case "small":
89
- return "1";
90
- case "medium":
91
- return "2";
92
- case "large":
93
- return "3";
94
- case "full":
95
- return "4";
96
- default:
97
- return size;
98
- }
99
- }, [size]);
100
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes3.Avatar, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, variant, children }));
101
- }
102
- );
103
- Avatar.displayName = "Avatar";
104
-
105
- // src/atoms/badge.tsx
106
- var import_themes4 = require("@radix-ui/themes");
107
- var import_react2 = require("react");
108
- var import_jsx_runtime2 = require("react/jsx-runtime");
109
- var Badge = (0, import_react2.forwardRef)(
110
- (props, ref) => {
111
- const _a = props, { size, color } = _a, rest = __objRest(_a, ["size", "color"]);
112
- const radixSize = (0, import_react2.useMemo)(() => {
113
- switch (size) {
114
- case "small":
115
- return "1";
116
- case "large":
117
- return "3";
118
- default:
119
- return "1";
120
- }
121
- }, [size]);
122
- const radixColor = (0, import_react2.useMemo)(() => {
123
- switch (color) {
124
- case "error":
125
- return "red";
126
- case "neutral":
127
- return "gray";
128
- case "success":
129
- return "green";
130
- case "accent":
131
- default:
132
- return void 0;
133
- }
134
- }, [color]);
135
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_themes4.Badge, __spreadProps(__spreadValues({}, rest), { color: radixColor, ref, size: radixSize }));
136
- }
137
- );
138
- Badge.displayName = "Badge";
139
-
140
- // src/atoms/blockquote.tsx
141
- var import_themes5 = require("@radix-ui/themes");
142
-
143
- // src/atoms/box.tsx
144
- var import_themes6 = require("@radix-ui/themes");
145
-
146
- // src/atoms/button.tsx
147
- var import_themes7 = require("@radix-ui/themes");
148
- var import_react3 = require("react");
149
- var import_jsx_runtime3 = require("react/jsx-runtime");
150
- var Button = (0, import_react3.forwardRef)(
77
+ var Button = (0, import_react.forwardRef)(
151
78
  (props, ref) => {
152
79
  const _a = props, { size } = _a, restProps = __objRest(_a, ["size"]);
153
- const radixSize = (0, import_react3.useMemo)(() => {
80
+ const radixSize = (0, import_react.useMemo)(() => {
154
81
  switch (size) {
155
82
  case "small":
156
83
  return "1";
@@ -162,99 +89,22 @@ var Button = (0, import_react3.forwardRef)(
162
89
  return "2";
163
90
  }
164
91
  }, [size]);
165
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes7.Button, __spreadProps(__spreadValues({}, restProps), { ref, size: radixSize }));
92
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Button, __spreadProps(__spreadValues({}, restProps), { ref, size: radixSize }));
166
93
  }
167
94
  );
168
95
  Button.displayName = "Button";
169
96
 
170
- // src/atoms/call-out.tsx
171
- var import_themes8 = require("@radix-ui/themes");
172
-
173
- // src/atoms/card.tsx
174
- var import_themes9 = require("@radix-ui/themes");
175
-
176
- // src/atoms/check-box.tsx
177
- var import_themes10 = require("@radix-ui/themes");
178
- var import_react4 = require("react");
179
- var import_jsx_runtime4 = require("react/jsx-runtime");
180
- var Checkbox = (0, import_react4.forwardRef)(
181
- (props, ref) => {
182
- const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
183
- const radixSize = (0, import_react4.useMemo)(() => {
184
- switch (size) {
185
- case "small":
186
- return "1";
187
- case "medium":
188
- return "2";
189
- case "large":
190
- return "3";
191
- }
192
- }, [size]);
193
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_themes10.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
194
- }
195
- );
196
- Checkbox.displayName = "Checkbox";
197
-
198
- // src/atoms/check-box-card.tsx
199
- var import_themes11 = require("@radix-ui/themes");
200
-
201
- // src/atoms/check-box-group.tsx
202
- var import_themes12 = require("@radix-ui/themes");
203
- var import_react5 = require("react");
204
- var import_jsx_runtime5 = require("react/jsx-runtime");
205
- var Root = (0, import_react5.forwardRef)((props, ref) => {
206
- const _a = props, { children, size } = _a, rest = __objRest(_a, ["children", "size"]);
207
- const groupSize = (0, import_react5.useMemo)(() => {
208
- switch (size) {
209
- case "small":
210
- return "1";
211
- case "large":
212
- return "3";
213
- case "medium":
214
- default:
215
- return "2";
216
- }
217
- }, [size]);
218
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_themes12.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
219
- });
220
- Root.displayName = "CheckboxGroup.Root";
221
- var CheckboxGroup = {
222
- Root,
223
- Item: import_themes12.CheckboxGroup.Item
224
- };
225
-
226
- // src/atoms/code.tsx
227
- var import_themes13 = require("@radix-ui/themes");
228
-
229
- // src/atoms/container.tsx
230
- var import_themes14 = require("@radix-ui/themes");
231
-
232
- // src/atoms/data-list.tsx
233
- var import_themes15 = require("@radix-ui/themes");
234
-
235
- // src/atoms/dialog.tsx
236
- var import_themes16 = require("@radix-ui/themes");
237
-
238
- // src/atoms/dropdown-menu.tsx
239
- var import_themes17 = require("@radix-ui/themes");
240
-
241
- // src/atoms/em.tsx
242
- var import_themes18 = require("@radix-ui/themes");
243
-
244
97
  // src/atoms/flex.tsx
245
- var import_themes19 = require("@radix-ui/themes");
246
-
247
- // src/atoms/grid.tsx
248
- var import_themes20 = require("@radix-ui/themes");
98
+ var import_themes2 = require("@radix-ui/themes");
249
99
 
250
100
  // src/atoms/heading.tsx
251
- var import_themes21 = require("@radix-ui/themes");
252
- var import_react6 = require("react");
253
- var import_themes22 = require("@radix-ui/themes");
254
- var import_jsx_runtime6 = require("react/jsx-runtime");
101
+ var import_themes3 = require("@radix-ui/themes");
102
+ var import_react2 = require("react");
103
+ var import_themes4 = require("@radix-ui/themes");
104
+ var import_jsx_runtime2 = require("react/jsx-runtime");
255
105
  function Heading2(props) {
256
106
  const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
257
- const radixSize = (0, import_react6.useMemo)(() => {
107
+ const radixSize = (0, import_react2.useMemo)(() => {
258
108
  switch (variant) {
259
109
  case "subtitle1":
260
110
  return "4";
@@ -268,86 +118,20 @@ function Heading2(props) {
268
118
  return size;
269
119
  }
270
120
  }, [size, variant]);
271
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes21.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
121
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_themes3.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
272
122
  }
273
123
 
274
- // src/atoms/hover-card.tsx
275
- var import_themes23 = require("@radix-ui/themes");
276
-
277
124
  // src/atoms/icon-button.tsx
278
- var import_themes24 = require("@radix-ui/themes");
279
-
280
- // src/atoms/inset.tsx
281
- var import_themes25 = require("@radix-ui/themes");
282
-
283
- // src/atoms/kbd.tsx
284
- var import_themes26 = require("@radix-ui/themes");
285
-
286
- // src/atoms/link.tsx
287
- var import_themes27 = require("@radix-ui/themes");
288
- var import_react7 = require("react");
289
- var import_themes28 = require("@radix-ui/themes");
290
- var import_jsx_runtime7 = require("react/jsx-runtime");
291
-
292
- // src/atoms/popover.tsx
293
- var import_themes29 = require("@radix-ui/themes");
294
-
295
- // src/atoms/progress.tsx
296
- var import_themes30 = require("@radix-ui/themes");
297
-
298
- // src/atoms/quote.tsx
299
- var import_themes31 = require("@radix-ui/themes");
300
-
301
- // src/atoms/radio.tsx
302
- var import_themes32 = require("@radix-ui/themes");
303
-
304
- // src/atoms/radio-cards.tsx
305
- var import_themes33 = require("@radix-ui/themes");
306
-
307
- // src/atoms/radio-group.tsx
308
- var import_themes34 = require("@radix-ui/themes");
309
-
310
- // src/atoms/scroll-area.tsx
311
- var import_themes35 = require("@radix-ui/themes");
312
-
313
- // src/atoms/section.tsx
314
- var import_themes36 = require("@radix-ui/themes");
315
-
316
- // src/atoms/segmented-control.tsx
317
- var import_themes37 = require("@radix-ui/themes");
318
-
319
- // src/atoms/select.tsx
320
- var import_themes38 = require("@radix-ui/themes");
321
-
322
- // src/atoms/separator.tsx
323
- var import_themes39 = require("@radix-ui/themes");
324
-
325
- // src/atoms/skeleton.tsx
326
- var import_themes40 = require("@radix-ui/themes");
327
-
328
- // src/atoms/strong.tsx
329
- var import_themes41 = require("@radix-ui/themes");
330
-
331
- // src/atoms/switch.tsx
332
- var import_themes42 = require("@radix-ui/themes");
333
-
334
- // src/atoms/tab-nav.tsx
335
- var import_themes43 = require("@radix-ui/themes");
336
-
337
- // src/atoms/tabs.tsx
338
- var import_themes44 = require("@radix-ui/themes");
339
-
340
- // src/atoms/text-area.tsx
341
- var import_themes45 = require("@radix-ui/themes");
125
+ var import_themes5 = require("@radix-ui/themes");
342
126
 
343
127
  // src/atoms/typo.tsx
344
- var import_themes46 = require("@radix-ui/themes");
345
- var import_react8 = require("react");
346
- var import_jsx_runtime8 = require("react/jsx-runtime");
347
- var Typo = (0, import_react8.forwardRef)(
128
+ var import_themes6 = require("@radix-ui/themes");
129
+ var import_react3 = require("react");
130
+ var import_jsx_runtime3 = require("react/jsx-runtime");
131
+ var Typo = (0, import_react3.forwardRef)(
348
132
  (props, ref) => {
349
133
  const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
350
- const radixSize = (0, import_react8.useMemo)(() => {
134
+ const radixSize = (0, import_react3.useMemo)(() => {
351
135
  if (size !== void 0)
352
136
  return size;
353
137
  switch (variant) {
@@ -360,81 +144,43 @@ var Typo = (0, import_react8.forwardRef)(
360
144
  return "2";
361
145
  }
362
146
  }, [size, variant]);
363
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes46.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
147
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes6.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
364
148
  }
365
149
  );
366
150
  Typo.displayName = "Typo";
367
151
 
368
- // src/atoms/text-field.tsx
369
- var import_themes47 = require("@radix-ui/themes");
370
-
371
- // src/atoms/tooltip.tsx
372
- var import_themes48 = require("@radix-ui/themes");
373
-
374
152
  // src/atoms/collapse.tsx
375
- var import_react9 = require("react");
376
- var import_jsx_runtime9 = require("react/jsx-runtime");
153
+ var import_react4 = require("react");
154
+ var import_jsx_runtime4 = require("react/jsx-runtime");
377
155
  function Collapse(props) {
378
156
  const { children, closedHeight = "0" } = props;
379
- const [open, setOpen] = (0, import_react9.useState)(() => {
157
+ const [open, setOpen] = (0, import_react4.useState)(() => {
380
158
  return props.open || props.defaultOpen || false;
381
159
  });
382
- (0, import_react9.useEffect)(() => {
160
+ (0, import_react4.useEffect)(() => {
383
161
  if (props.open === void 0)
384
162
  return;
385
163
  setOpen(props.open);
386
164
  }, [props.open]);
387
- const ref = (0, import_react9.useRef)(null);
388
- (0, import_react9.useEffect)(() => {
165
+ const ref = (0, import_react4.useRef)(null);
166
+ (0, import_react4.useEffect)(() => {
389
167
  if (!ref.current)
390
168
  return;
391
169
  ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
392
170
  }, [closedHeight, open]);
393
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "collapse", ref, children });
171
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "collapse", ref, children });
394
172
  }
395
173
 
396
- // src/atoms/spinner.tsx
397
- var import_themes49 = require("@radix-ui/themes");
398
-
399
- // src/atoms/pagination.tsx
400
- var import_react10 = require("react");
401
-
402
174
  // src/icon.ts
403
175
  var import_react_icons = require("@radix-ui/react-icons");
404
176
 
405
- // src/atoms/pagination.tsx
406
- var import_jsx_runtime10 = require("react/jsx-runtime");
407
-
408
- // src/atoms/field-error-wrapper.tsx
409
- var import_jsx_runtime11 = require("react/jsx-runtime");
410
-
411
- // src/atoms/ellipsis-tooltip.tsx
412
- var import_react11 = require("react");
413
- var import_jsx_runtime12 = require("react/jsx-runtime");
414
-
415
- // src/atoms/drawer.tsx
416
- var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
417
-
418
- // src/theme/theme-provider.tsx
419
- var import_themes50 = require("@radix-ui/themes");
420
- var import_jsx_runtime13 = require("react/jsx-runtime");
421
-
422
- // src/atoms/toast.tsx
423
- var import_react_icons2 = require("@radix-ui/react-icons");
424
- var import_react_toastify = require("react-toastify");
425
- var import_react_toastify2 = require("react-toastify");
426
- var import_jsx_runtime14 = require("react/jsx-runtime");
427
-
428
- // src/atoms/drawer.tsx
429
- var import_jsx_runtime15 = require("react/jsx-runtime");
430
-
431
177
  // src/icons/down.tsx
432
- var React7 = __toESM(require("react"), 1);
433
- var import_jsx_runtime16 = require("react/jsx-runtime");
434
- var TriangleArrowDownIcon = React7.forwardRef(
178
+ var React4 = __toESM(require("react"), 1);
179
+ var import_jsx_runtime5 = require("react/jsx-runtime");
180
+ var TriangleArrowDownIcon = React4.forwardRef(
435
181
  (_a, forwardedRef) => {
436
182
  var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
437
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
183
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
438
184
  "svg",
439
185
  __spreadProps(__spreadValues({
440
186
  fill: "none",
@@ -444,7 +190,7 @@ var TriangleArrowDownIcon = React7.forwardRef(
444
190
  xmlns: "http://www.w3.org/2000/svg"
445
191
  }, props), {
446
192
  ref: forwardedRef,
447
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
193
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
448
194
  "path",
449
195
  {
450
196
  d: "M7.10844 0.8125H0.891554C0.197392 0.8125 -0.177096 1.62672 0.274659 2.15377L3.3831 5.78029C3.70737 6.1586 4.29263 6.1586 4.6169 5.78029L7.72534 2.15377C8.1771 1.62672 7.80261 0.8125 7.10844 0.8125Z",
@@ -458,12 +204,12 @@ var TriangleArrowDownIcon = React7.forwardRef(
458
204
  TriangleArrowDownIcon.displayName = "ArrowDownIcon";
459
205
 
460
206
  // src/icons/up.tsx
461
- var React8 = __toESM(require("react"), 1);
462
- var import_jsx_runtime17 = require("react/jsx-runtime");
463
- var TriangleArrowUpIcon = React8.forwardRef(
207
+ var React5 = __toESM(require("react"), 1);
208
+ var import_jsx_runtime6 = require("react/jsx-runtime");
209
+ var TriangleArrowUpIcon = React5.forwardRef(
464
210
  (_a, forwardedRef) => {
465
211
  var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
466
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
212
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
467
213
  "svg",
468
214
  __spreadProps(__spreadValues({
469
215
  fill: "none",
@@ -473,7 +219,7 @@ var TriangleArrowUpIcon = React8.forwardRef(
473
219
  xmlns: "http://www.w3.org/2000/svg"
474
220
  }, props), {
475
221
  ref: forwardedRef,
476
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
222
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
477
223
  "path",
478
224
  {
479
225
  d: "M0.891555 6.1875L7.10845 6.1875C7.80261 6.1875 8.1771 5.37328 7.72534 4.84623L4.6169 1.21971C4.29263 0.841403 3.70737 0.841403 3.3831 1.21971L0.274659 4.84623C-0.177095 5.37328 0.197393 6.1875 0.891555 6.1875Z",
@@ -488,22 +234,22 @@ TriangleArrowUpIcon.displayName = "ArrowUpIcon";
488
234
 
489
235
  // src/molecules/expand-table/row.tsx
490
236
  var import_react_table = require("@tanstack/react-table");
491
- var import_react12 = require("react");
492
- var import_jsx_runtime18 = require("react/jsx-runtime");
237
+ var import_react5 = require("react");
238
+ var import_jsx_runtime7 = require("react/jsx-runtime");
493
239
  function Row(props) {
494
240
  const { row, ExpandComp, gridColTemp } = props;
495
- const [open, setOpen] = (0, import_react12.useState)(false);
496
- const onClickRow = (0, import_react12.useCallback)(() => {
241
+ const [open, setOpen] = (0, import_react5.useState)(false);
242
+ const onClickRow = (0, import_react5.useCallback)(() => {
497
243
  var _a;
498
244
  (_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
499
245
  setOpen((prev) => !prev);
500
246
  }, [props, row.original]);
501
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
247
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
502
248
  "div",
503
249
  {
504
250
  className: `tr-wrapper ${ExpandComp ? "expandable" : ""}`,
505
251
  children: [
506
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
252
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
507
253
  "button",
508
254
  {
509
255
  className: "tr",
@@ -513,7 +259,7 @@ function Row(props) {
513
259
  children: row.getVisibleCells().map((cell) => {
514
260
  var _a, _b;
515
261
  const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
516
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
262
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
517
263
  "div",
518
264
  {
519
265
  className: "td",
@@ -523,7 +269,7 @@ function Row(props) {
523
269
  },
524
270
  children: [
525
271
  (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
526
- ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
272
+ ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
527
273
  cell.column.columnDef.meta.OpenBtn,
528
274
  {
529
275
  data: row.original,
@@ -539,7 +285,7 @@ function Row(props) {
539
285
  },
540
286
  `tr_${row.id}`
541
287
  ),
542
- ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ExpandComp, { row }) }) }) : null
288
+ ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ExpandComp, { row }) }) }) : null
543
289
  ]
544
290
  },
545
291
  `tr-wrapper_${row.id}`
@@ -547,10 +293,10 @@ function Row(props) {
547
293
  }
548
294
 
549
295
  // src/molecules/expand-table/index.tsx
550
- var import_jsx_runtime19 = require("react/jsx-runtime");
296
+ var import_jsx_runtime8 = require("react/jsx-runtime");
551
297
  function ExpandTable(props) {
552
298
  const { data, columns, ExpandComp, placeholder, onRowClick } = props;
553
- const [sorting, setSorting] = (0, import_react13.useState)([]);
299
+ const [sorting, setSorting] = (0, import_react6.useState)([]);
554
300
  const { getRowModel, getHeaderGroups } = (0, import_react_table2.useReactTable)({
555
301
  data: data || [],
556
302
  columns,
@@ -561,7 +307,7 @@ function ExpandTable(props) {
561
307
  },
562
308
  onSortingChange: setSorting
563
309
  });
564
- const gridColTemp = (0, import_react13.useMemo)(() => {
310
+ const gridColTemp = (0, import_react6.useMemo)(() => {
565
311
  return columns.map((col) => {
566
312
  var _a;
567
313
  if ((_a = col.meta) == null ? void 0 : _a.autoSize)
@@ -570,8 +316,8 @@ function ExpandTable(props) {
570
316
  }).join(" ");
571
317
  }, [columns]);
572
318
  const rowModels = getRowModel();
573
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "expand-table", children: [
574
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
319
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "expand-table", children: [
320
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
575
321
  "div",
576
322
  {
577
323
  className: "tr",
@@ -579,30 +325,30 @@ function ExpandTable(props) {
579
325
  children: headerGroup.headers.map((header) => {
580
326
  const sortable = header.column.getCanSort();
581
327
  const sortedState = header.column.getIsSorted();
582
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "th", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
328
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "th", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
583
329
  "button",
584
330
  {
585
331
  onClick: header.column.getToggleSortingHandler(),
586
332
  style: sortable ? { cursor: "pointer" } : void 0,
587
333
  type: "button",
588
334
  children: [
589
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typo, { variant: "body", children: (0, import_react_table2.flexRender)(
335
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Typo, { variant: "body", children: (0, import_react_table2.flexRender)(
590
336
  header.column.columnDef.header,
591
337
  header.getContext()
592
338
  ) }),
593
- sortable ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
594
- import_themes19.Flex,
339
+ sortable ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
340
+ import_themes2.Flex,
595
341
  {
596
342
  direction: "column",
597
343
  style: { marginLeft: "var(--space-2)" },
598
344
  children: [
599
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
345
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
600
346
  TriangleArrowUpIcon,
601
347
  {
602
348
  color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
603
349
  }
604
350
  ),
605
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
351
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
606
352
  TriangleArrowDownIcon,
607
353
  {
608
354
  color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
@@ -618,10 +364,10 @@ function ExpandTable(props) {
618
364
  },
619
365
  headerGroup.id
620
366
  )) }),
621
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "tbody", children: [
622
- rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes19.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
367
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "tbody", children: [
368
+ rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes2.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
623
369
  rowModels.rows.map((row) => {
624
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
370
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
625
371
  Row,
626
372
  {
627
373
  ExpandComp,
@@ -637,15 +383,15 @@ function ExpandTable(props) {
637
383
  }
638
384
 
639
385
  // src/molecules/navigation.tsx
640
- var import_jsx_runtime20 = require("react/jsx-runtime");
386
+ var import_jsx_runtime9 = require("react/jsx-runtime");
641
387
  function Navigation({
642
388
  items,
643
389
  fontColor,
644
390
  backgroundColor,
645
391
  activeKey
646
392
  }) {
647
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
648
- import_themes19.Flex,
393
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
394
+ import_themes2.Flex,
649
395
  {
650
396
  direction: "column",
651
397
  gap: "4",
@@ -656,13 +402,13 @@ function Navigation({
656
402
  },
657
403
  children: items == null ? void 0 : items.map((item) => {
658
404
  const { key, title, icon, itemRender, onClick, children } = item;
659
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes19.Flex, { direction: "column", onClick, children: [
660
- itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes19.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
405
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_themes2.Flex, { direction: "column", onClick, children: [
406
+ itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_themes2.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
661
407
  icon,
662
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typo, { variant: "subtitle", children: title })
408
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Typo, { variant: "subtitle", children: title })
663
409
  ] }),
664
410
  children == null ? void 0 : children.map((menu) => {
665
- return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
411
+ return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
666
412
  Button,
667
413
  {
668
414
  className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
@@ -682,14 +428,14 @@ function Navigation({
682
428
  }
683
429
 
684
430
  // src/molecules/date-picker/index.tsx
685
- var import_react14 = require("react");
431
+ var import_react7 = require("react");
686
432
  var RDP = __toESM(require("react-datepicker"), 1);
687
- var import_jsx_runtime21 = require("react/jsx-runtime");
433
+ var import_jsx_runtime10 = require("react/jsx-runtime");
688
434
  var ReactDatePicker = RDP.default.default || RDP.default || RDP;
689
- var DatePicker = (0, import_react14.forwardRef)(
435
+ var DatePicker = (0, import_react7.forwardRef)(
690
436
  (props, ref) => {
691
437
  const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
692
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
438
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
693
439
  ReactDatePicker,
694
440
  __spreadProps(__spreadValues({
695
441
  dateFormat: "yyyy/MM/dd",
@@ -717,33 +463,33 @@ var renderCustomHeader = (props) => {
717
463
  } = props;
718
464
  const year = date.getFullYear();
719
465
  const month = date.getMonth();
720
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_themes19.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
721
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
722
- import_themes24.IconButton,
466
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_themes2.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
467
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
468
+ import_themes5.IconButton,
723
469
  {
724
470
  disabled: prevMonthButtonDisabled,
725
471
  onClick: decreaseMonth,
726
472
  variant: "ghost",
727
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_icons.ChevronLeftIcon, {})
473
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_icons.ChevronLeftIcon, {})
728
474
  }
729
475
  ),
730
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_themes19.Flex, { gap: "3", children: [
731
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
476
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_themes2.Flex, { gap: "3", children: [
477
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
732
478
  year,
733
479
  "\uB144"
734
480
  ] }),
735
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
481
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
736
482
  month + 1,
737
483
  "\uC6D4"
738
484
  ] })
739
485
  ] }),
740
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
741
- import_themes24.IconButton,
486
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
487
+ import_themes5.IconButton,
742
488
  {
743
489
  disabled: nextMonthButtonDisabled,
744
490
  onClick: increaseMonth,
745
491
  variant: "ghost",
746
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_icons.ChevronRightIcon, {})
492
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_icons.ChevronRightIcon, {})
747
493
  }
748
494
  )
749
495
  ] });