@tipp/ui 1.0.37 → 1.0.38

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.
package/dist/index.cjs CHANGED
@@ -70,7 +70,7 @@ __export(src_exports, {
70
70
  Box: () => import_themes6.Box,
71
71
  Button: () => Button,
72
72
  Callout: () => import_themes8.Callout,
73
- Card: () => import_themes9.Card,
73
+ Card: () => Card,
74
74
  ChatBubbleIcon: () => import_react_icons.ChatBubbleIcon,
75
75
  Checkbox: () => Checkbox,
76
76
  CheckboxCards: () => import_themes11.CheckboxCards,
@@ -254,16 +254,30 @@ Button.displayName = "Button";
254
254
  var import_themes8 = require("@radix-ui/themes");
255
255
 
256
256
  // src/atoms/card.tsx
257
+ var import_react4 = require("react");
257
258
  var import_themes9 = require("@radix-ui/themes");
259
+ var import_jsx_runtime4 = require("react/jsx-runtime");
260
+ var Card = (0, import_react4.forwardRef)(
261
+ (props, forwardedRef) => {
262
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
263
+ import_themes9.Card,
264
+ __spreadProps(__spreadValues({}, props), {
265
+ "data-radius": props.borderRadius,
266
+ ref: forwardedRef
267
+ })
268
+ );
269
+ }
270
+ );
271
+ Card.displayName = "Card";
258
272
 
259
273
  // src/atoms/check-box.tsx
260
274
  var import_themes10 = require("@radix-ui/themes");
261
- var import_react4 = require("react");
262
- var import_jsx_runtime4 = require("react/jsx-runtime");
263
- var Checkbox = (0, import_react4.forwardRef)(
275
+ var import_react5 = require("react");
276
+ var import_jsx_runtime5 = require("react/jsx-runtime");
277
+ var Checkbox = (0, import_react5.forwardRef)(
264
278
  (props, ref) => {
265
279
  const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
266
- const radixSize = (0, import_react4.useMemo)(() => {
280
+ const radixSize = (0, import_react5.useMemo)(() => {
267
281
  switch (size) {
268
282
  case "small":
269
283
  return "1";
@@ -273,7 +287,7 @@ var Checkbox = (0, import_react4.forwardRef)(
273
287
  return "3";
274
288
  }
275
289
  }, [size]);
276
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_themes10.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
290
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_themes10.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
277
291
  }
278
292
  );
279
293
  Checkbox.displayName = "Checkbox";
@@ -283,11 +297,11 @@ var import_themes11 = require("@radix-ui/themes");
283
297
 
284
298
  // src/atoms/check-box-group.tsx
285
299
  var import_themes12 = require("@radix-ui/themes");
286
- var import_react5 = require("react");
287
- var import_jsx_runtime5 = require("react/jsx-runtime");
288
- var Root = (0, import_react5.forwardRef)((props, ref) => {
300
+ var import_react6 = require("react");
301
+ var import_jsx_runtime6 = require("react/jsx-runtime");
302
+ var Root = (0, import_react6.forwardRef)((props, ref) => {
289
303
  const _a = props, { children, size } = _a, rest = __objRest(_a, ["children", "size"]);
290
- const groupSize = (0, import_react5.useMemo)(() => {
304
+ const groupSize = (0, import_react6.useMemo)(() => {
291
305
  switch (size) {
292
306
  case "small":
293
307
  return "1";
@@ -298,7 +312,7 @@ var Root = (0, import_react5.forwardRef)((props, ref) => {
298
312
  return "2";
299
313
  }
300
314
  }, [size]);
301
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_themes12.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
315
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes12.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
302
316
  });
303
317
  Root.displayName = "CheckboxGroup.Root";
304
318
  var CheckboxGroup = {
@@ -332,12 +346,12 @@ var import_themes20 = require("@radix-ui/themes");
332
346
 
333
347
  // src/atoms/heading.tsx
334
348
  var import_themes21 = require("@radix-ui/themes");
335
- var import_react6 = require("react");
349
+ var import_react7 = require("react");
336
350
  var import_themes22 = require("@radix-ui/themes");
337
- var import_jsx_runtime6 = require("react/jsx-runtime");
351
+ var import_jsx_runtime7 = require("react/jsx-runtime");
338
352
  function Heading2(props) {
339
353
  const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
340
- const radixSize = (0, import_react6.useMemo)(() => {
354
+ const radixSize = (0, import_react7.useMemo)(() => {
341
355
  switch (variant) {
342
356
  case "subtitle1":
343
357
  return "4";
@@ -351,7 +365,7 @@ function Heading2(props) {
351
365
  return size;
352
366
  }
353
367
  }, [size, variant]);
354
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes21.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
368
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes21.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
355
369
  }
356
370
 
357
371
  // src/atoms/hover-card.tsx
@@ -368,12 +382,12 @@ var import_themes26 = require("@radix-ui/themes");
368
382
 
369
383
  // src/atoms/link.tsx
370
384
  var import_themes27 = require("@radix-ui/themes");
371
- var import_react7 = require("react");
385
+ var import_react8 = require("react");
372
386
  var import_themes28 = require("@radix-ui/themes");
373
- var import_jsx_runtime7 = require("react/jsx-runtime");
387
+ var import_jsx_runtime8 = require("react/jsx-runtime");
374
388
  function Link(props) {
375
389
  const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
376
- const radixSize = (0, import_react7.useMemo)(() => {
390
+ const radixSize = (0, import_react8.useMemo)(() => {
377
391
  switch (variant) {
378
392
  case "caption":
379
393
  return "1";
@@ -385,7 +399,7 @@ function Link(props) {
385
399
  return size;
386
400
  }
387
401
  }, [size, variant]);
388
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes27.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
402
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes27.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
389
403
  }
390
404
 
391
405
  // src/atoms/popover.tsx
@@ -441,12 +455,12 @@ var import_themes45 = require("@radix-ui/themes");
441
455
 
442
456
  // src/atoms/typo.tsx
443
457
  var import_themes46 = require("@radix-ui/themes");
444
- var import_react8 = require("react");
445
- var import_jsx_runtime8 = require("react/jsx-runtime");
446
- var Typo = (0, import_react8.forwardRef)(
458
+ var import_react9 = require("react");
459
+ var import_jsx_runtime9 = require("react/jsx-runtime");
460
+ var Typo = (0, import_react9.forwardRef)(
447
461
  (props, ref) => {
448
462
  const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
449
- const radixSize = (0, import_react8.useMemo)(() => {
463
+ const radixSize = (0, import_react9.useMemo)(() => {
450
464
  if (size !== void 0)
451
465
  return size;
452
466
  switch (variant) {
@@ -459,7 +473,7 @@ var Typo = (0, import_react8.forwardRef)(
459
473
  return "2";
460
474
  }
461
475
  }, [size, variant]);
462
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes46.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
476
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes46.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
463
477
  }
464
478
  );
465
479
  Typo.displayName = "Typo";
@@ -471,43 +485,43 @@ var import_themes47 = require("@radix-ui/themes");
471
485
  var import_themes48 = require("@radix-ui/themes");
472
486
 
473
487
  // src/atoms/collapse.tsx
474
- var import_react9 = require("react");
475
- var import_jsx_runtime9 = require("react/jsx-runtime");
488
+ var import_react10 = require("react");
489
+ var import_jsx_runtime10 = require("react/jsx-runtime");
476
490
  function Collapse(props) {
477
491
  const { children, closedHeight = "0" } = props;
478
- const [open, setOpen] = (0, import_react9.useState)(() => {
492
+ const [open, setOpen] = (0, import_react10.useState)(() => {
479
493
  return props.open || props.defaultOpen || false;
480
494
  });
481
- (0, import_react9.useEffect)(() => {
495
+ (0, import_react10.useEffect)(() => {
482
496
  if (props.open === void 0)
483
497
  return;
484
498
  setOpen(props.open);
485
499
  }, [props.open]);
486
- const ref = (0, import_react9.useRef)(null);
487
- (0, import_react9.useEffect)(() => {
500
+ const ref = (0, import_react10.useRef)(null);
501
+ (0, import_react10.useEffect)(() => {
488
502
  if (!ref.current)
489
503
  return;
490
504
  ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
491
505
  }, [closedHeight, open]);
492
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "collapse", ref, children });
506
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "collapse", ref, children });
493
507
  }
494
508
 
495
509
  // src/atoms/spinner.tsx
496
510
  var import_themes49 = require("@radix-ui/themes");
497
511
 
498
512
  // src/atoms/pagination.tsx
499
- var import_react10 = require("react");
513
+ var import_react11 = require("react");
500
514
 
501
515
  // src/icon.ts
502
516
  var import_react_icons = require("@radix-ui/react-icons");
503
517
 
504
518
  // src/atoms/pagination.tsx
505
- var import_jsx_runtime10 = require("react/jsx-runtime");
519
+ var import_jsx_runtime11 = require("react/jsx-runtime");
506
520
  function Pagination(props) {
507
521
  const { onChange, count = 0 } = props;
508
522
  const siblingCount = 2;
509
- const [page, setPage] = (0, import_react10.useState)(() => props.page || props.defaultPage || 1);
510
- const visibleItems = (0, import_react10.useMemo)(() => {
523
+ const [page, setPage] = (0, import_react11.useState)(() => props.page || props.defaultPage || 1);
524
+ const visibleItems = (0, import_react11.useMemo)(() => {
511
525
  let start = Math.max(1, page - siblingCount);
512
526
  let end = Math.min(count, page + siblingCount);
513
527
  if (page - siblingCount <= 0 && end < count) {
@@ -517,18 +531,18 @@ function Pagination(props) {
517
531
  }
518
532
  return Array.from({ length: end - start + 1 }, (_, i) => i + start);
519
533
  }, [count, page]);
520
- (0, import_react10.useEffect)(() => {
534
+ (0, import_react11.useEffect)(() => {
521
535
  onChange == null ? void 0 : onChange(page);
522
536
  }, [onChange, page]);
523
- (0, import_react10.useEffect)(() => {
537
+ (0, import_react11.useEffect)(() => {
524
538
  if (props.page) {
525
539
  setPage(props.page);
526
540
  }
527
541
  }, [props.page]);
528
- const onClickPrev = (0, import_react10.useCallback)(() => {
542
+ const onClickPrev = (0, import_react11.useCallback)(() => {
529
543
  setPage((prev) => Math.max(1, prev - 1));
530
544
  }, []);
531
- const onClickNext = (0, import_react10.useCallback)(() => {
545
+ const onClickNext = (0, import_react11.useCallback)(() => {
532
546
  setPage((prev) => Math.min(count, prev + 1));
533
547
  }, [count]);
534
548
  const moveButtonProps = {
@@ -540,24 +554,24 @@ function Pagination(props) {
540
554
  height: 24,
541
555
  width: 24
542
556
  };
543
- const prevDisabled = (0, import_react10.useMemo)(() => {
557
+ const prevDisabled = (0, import_react11.useMemo)(() => {
544
558
  return page - siblingCount <= 1;
545
559
  }, [page]);
546
- const nextDisabled = (0, import_react10.useMemo)(() => {
560
+ const nextDisabled = (0, import_react11.useMemo)(() => {
547
561
  return page + siblingCount >= count;
548
562
  }, [count, page]);
549
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_themes19.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
550
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
563
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_themes19.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
564
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
551
565
  import_themes24.IconButton,
552
566
  __spreadProps(__spreadValues({
553
567
  disabled: prevDisabled,
554
568
  onClick: onClickPrev
555
569
  }, moveButtonProps), {
556
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_icons.ChevronLeftIcon, __spreadValues({}, iconSize))
570
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_icons.ChevronLeftIcon, __spreadValues({}, iconSize))
557
571
  })
558
572
  ),
559
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes19.Flex, { gap: "1", children: visibleItems.map((item) => {
560
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
573
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes19.Flex, { gap: "1", children: visibleItems.map((item) => {
574
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
561
575
  "button",
562
576
  {
563
577
  className: `page-button ${item === page ? "active" : ""}`,
@@ -565,45 +579,45 @@ function Pagination(props) {
565
579
  setPage(item);
566
580
  },
567
581
  type: "button",
568
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Typo, { variant: "body", children: item })
582
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typo, { variant: "body", children: item })
569
583
  },
570
584
  item
571
585
  );
572
586
  }) }),
573
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
587
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
574
588
  import_themes24.IconButton,
575
589
  __spreadProps(__spreadValues({
576
590
  disabled: nextDisabled,
577
591
  onClick: onClickNext
578
592
  }, moveButtonProps), {
579
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_icons.ChevronRightIcon, __spreadValues({}, iconSize))
593
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_icons.ChevronRightIcon, __spreadValues({}, iconSize))
580
594
  })
581
595
  )
582
596
  ] });
583
597
  }
584
598
 
585
599
  // src/atoms/field-error-wrapper.tsx
586
- var import_jsx_runtime11 = require("react/jsx-runtime");
600
+ var import_jsx_runtime12 = require("react/jsx-runtime");
587
601
  function FieldErrorWrapper({
588
602
  children,
589
603
  error
590
604
  }) {
591
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_themes19.Flex, { direction: "column", gap: "1", children: [
605
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_themes19.Flex, { direction: "column", gap: "1", children: [
592
606
  children,
593
- error ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
607
+ error ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
594
608
  ] });
595
609
  }
596
610
 
597
611
  // src/atoms/ellipsis-tooltip.tsx
598
- var import_react11 = require("react");
599
- var import_jsx_runtime12 = require("react/jsx-runtime");
612
+ var import_react12 = require("react");
613
+ var import_jsx_runtime13 = require("react/jsx-runtime");
600
614
  function EllipsisTooltip(props) {
601
615
  const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
602
- const ref = (0, import_react11.useRef)(null);
603
- const [tooltipDisplay, setTooltipDisplay] = (0, import_react11.useState)(
616
+ const ref = (0, import_react12.useRef)(null);
617
+ const [tooltipDisplay, setTooltipDisplay] = (0, import_react12.useState)(
604
618
  "none"
605
619
  );
606
- (0, import_react11.useEffect)(() => {
620
+ (0, import_react12.useEffect)(() => {
607
621
  if (ref.current) {
608
622
  const typo = ref.current;
609
623
  const mouseOver = () => {
@@ -618,7 +632,7 @@ function EllipsisTooltip(props) {
618
632
  ref.current.addEventListener("mouseleave", mouseOut);
619
633
  }
620
634
  }, [children]);
621
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_themes48.Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
635
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes48.Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
622
636
  Typo,
623
637
  __spreadProps(__spreadValues({}, rest), {
624
638
  ref,
@@ -641,21 +655,21 @@ var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
641
655
 
642
656
  // src/theme/theme-provider.tsx
643
657
  var import_themes50 = require("@radix-ui/themes");
644
- var import_jsx_runtime13 = require("react/jsx-runtime");
658
+ var import_jsx_runtime14 = require("react/jsx-runtime");
645
659
  function ThemeProvider(props) {
646
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes50.Theme, __spreadValues({ accentColor: "iris", radius: "large" }, props));
660
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes50.Theme, __spreadValues({ accentColor: "iris", radius: "large" }, props));
647
661
  }
648
662
 
649
663
  // src/atoms/toast.tsx
650
664
  var import_react_icons2 = require("@radix-ui/react-icons");
651
665
  var import_react_toastify = require("react-toastify");
652
666
  var import_react_toastify2 = require("react-toastify");
653
- var import_jsx_runtime14 = require("react/jsx-runtime");
667
+ var import_jsx_runtime15 = require("react/jsx-runtime");
654
668
  function CloseButton({ closeToast }) {
655
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes24.IconButton, { color: "gray", onClick: closeToast, variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react_icons2.Cross1Icon, {}) });
669
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes24.IconButton, { color: "gray", onClick: closeToast, variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_icons2.Cross1Icon, {}) });
656
670
  }
657
671
  function ToastContainer(props) {
658
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
672
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
659
673
  import_react_toastify.ToastContainer,
660
674
  __spreadValues({
661
675
  autoClose: 5e3,
@@ -673,25 +687,25 @@ function ToastContainer(props) {
673
687
  }
674
688
 
675
689
  // src/atoms/drawer.tsx
676
- var import_jsx_runtime15 = require("react/jsx-runtime");
690
+ var import_jsx_runtime16 = require("react/jsx-runtime");
677
691
  function Root3(props) {
678
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Dialog2.Root, __spreadValues({}, props));
692
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog2.Root, __spreadValues({}, props));
679
693
  }
680
694
  function Content2(props) {
681
695
  const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
682
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Dialog2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ThemeProvider, { children: [
683
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
684
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
696
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ThemeProvider, { children: [
697
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
698
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
685
699
  Dialog2.Content,
686
700
  __spreadValues({
687
701
  className: `DrawerContent ${position} ${className || ""}`
688
702
  }, rest)
689
703
  ),
690
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ToastContainer, {})
704
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ToastContainer, {})
691
705
  ] }) });
692
706
  }
693
707
  function Trigger2(props) {
694
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Dialog2.Trigger, __spreadValues({ asChild: true }, props));
708
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Dialog2.Trigger, __spreadValues({ asChild: true }, props));
695
709
  }
696
710
  var Drawer = {
697
711
  Root: Dialog2.Root,
@@ -704,12 +718,12 @@ var Drawer = {
704
718
 
705
719
  // src/atoms/form.tsx
706
720
  var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
707
- var import_react12 = require("react");
708
- var import_jsx_runtime16 = require("react/jsx-runtime");
709
- var Root5 = (0, import_react12.forwardRef)(
721
+ var import_react13 = require("react");
722
+ var import_jsx_runtime17 = require("react/jsx-runtime");
723
+ var Root5 = (0, import_react13.forwardRef)(
710
724
  (_a, ref) => {
711
725
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
712
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
726
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
713
727
  RadixForm.Root,
714
728
  __spreadProps(__spreadValues({}, rest), {
715
729
  className: `FormRoot ${className || ""}`,
@@ -720,10 +734,10 @@ var Root5 = (0, import_react12.forwardRef)(
720
734
  }
721
735
  );
722
736
  Root5.displayName = "FORM_ROOT";
723
- var Field2 = (0, import_react12.forwardRef)(
737
+ var Field2 = (0, import_react13.forwardRef)(
724
738
  (_a, ref) => {
725
739
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
726
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
740
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
727
741
  RadixForm.Field,
728
742
  __spreadProps(__spreadValues({}, rest), {
729
743
  className: `FormField ${className || ""}`,
@@ -734,10 +748,10 @@ var Field2 = (0, import_react12.forwardRef)(
734
748
  }
735
749
  );
736
750
  Field2.displayName = "FORM_FIELD";
737
- var Label2 = (0, import_react12.forwardRef)(
751
+ var Label2 = (0, import_react13.forwardRef)(
738
752
  (_a, ref) => {
739
753
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
740
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
754
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
741
755
  RadixForm.Label,
742
756
  __spreadProps(__spreadValues({}, rest), {
743
757
  className: `FormLabel ${className || ""}`,
@@ -748,10 +762,10 @@ var Label2 = (0, import_react12.forwardRef)(
748
762
  }
749
763
  );
750
764
  Label2.displayName = "FORM_Label";
751
- var Message2 = (0, import_react12.forwardRef)(
765
+ var Message2 = (0, import_react13.forwardRef)(
752
766
  (_a, ref) => {
753
767
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
754
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
768
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
755
769
  RadixForm.Message,
756
770
  __spreadProps(__spreadValues({}, rest), {
757
771
  className: `FormMessage ${className || ""}`,
@@ -773,15 +787,15 @@ var Form = {
773
787
 
774
788
  // src/molecules/expand-table/index.tsx
775
789
  var import_react_table2 = require("@tanstack/react-table");
776
- var import_react14 = require("react");
790
+ var import_react15 = require("react");
777
791
 
778
792
  // src/icons/down.tsx
779
793
  var React7 = __toESM(require("react"), 1);
780
- var import_jsx_runtime17 = require("react/jsx-runtime");
794
+ var import_jsx_runtime18 = require("react/jsx-runtime");
781
795
  var TriangleArrowDownIcon = React7.forwardRef(
782
796
  (_a, forwardedRef) => {
783
797
  var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
784
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
798
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
785
799
  "svg",
786
800
  __spreadProps(__spreadValues({
787
801
  fill: "none",
@@ -791,7 +805,7 @@ var TriangleArrowDownIcon = React7.forwardRef(
791
805
  xmlns: "http://www.w3.org/2000/svg"
792
806
  }, props), {
793
807
  ref: forwardedRef,
794
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
808
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
795
809
  "path",
796
810
  {
797
811
  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",
@@ -806,11 +820,11 @@ TriangleArrowDownIcon.displayName = "ArrowDownIcon";
806
820
 
807
821
  // src/icons/up.tsx
808
822
  var React8 = __toESM(require("react"), 1);
809
- var import_jsx_runtime18 = require("react/jsx-runtime");
823
+ var import_jsx_runtime19 = require("react/jsx-runtime");
810
824
  var TriangleArrowUpIcon = React8.forwardRef(
811
825
  (_a, forwardedRef) => {
812
826
  var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
813
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
827
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
814
828
  "svg",
815
829
  __spreadProps(__spreadValues({
816
830
  fill: "none",
@@ -820,7 +834,7 @@ var TriangleArrowUpIcon = React8.forwardRef(
820
834
  xmlns: "http://www.w3.org/2000/svg"
821
835
  }, props), {
822
836
  ref: forwardedRef,
823
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
837
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
824
838
  "path",
825
839
  {
826
840
  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",
@@ -835,22 +849,22 @@ TriangleArrowUpIcon.displayName = "ArrowUpIcon";
835
849
 
836
850
  // src/molecules/expand-table/row.tsx
837
851
  var import_react_table = require("@tanstack/react-table");
838
- var import_react13 = require("react");
839
- var import_jsx_runtime19 = require("react/jsx-runtime");
852
+ var import_react14 = require("react");
853
+ var import_jsx_runtime20 = require("react/jsx-runtime");
840
854
  function Row(props) {
841
855
  const { row, ExpandComp, gridColTemp } = props;
842
- const [open, setOpen] = (0, import_react13.useState)(false);
843
- const onClickRow = (0, import_react13.useCallback)(() => {
856
+ const [open, setOpen] = (0, import_react14.useState)(false);
857
+ const onClickRow = (0, import_react14.useCallback)(() => {
844
858
  var _a;
845
859
  (_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
846
860
  setOpen((prev) => !prev);
847
861
  }, [props, row.original]);
848
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
862
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
849
863
  "div",
850
864
  {
851
865
  className: `tr-wrapper ${ExpandComp ? "expandable" : ""}`,
852
866
  children: [
853
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
867
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
854
868
  "button",
855
869
  {
856
870
  className: "tr",
@@ -860,7 +874,7 @@ function Row(props) {
860
874
  children: row.getVisibleCells().map((cell) => {
861
875
  var _a, _b;
862
876
  const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
863
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
877
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
864
878
  "div",
865
879
  {
866
880
  className: "td",
@@ -870,7 +884,7 @@ function Row(props) {
870
884
  },
871
885
  children: [
872
886
  (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
873
- ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
887
+ ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
874
888
  cell.column.columnDef.meta.OpenBtn,
875
889
  {
876
890
  data: row.original,
@@ -886,7 +900,7 @@ function Row(props) {
886
900
  },
887
901
  `tr_${row.id}`
888
902
  ),
889
- ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ExpandComp, { row }) }) }) : null
903
+ ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ExpandComp, { row }) }) }) : null
890
904
  ]
891
905
  },
892
906
  `tr-wrapper_${row.id}`
@@ -894,10 +908,10 @@ function Row(props) {
894
908
  }
895
909
 
896
910
  // src/molecules/expand-table/index.tsx
897
- var import_jsx_runtime20 = require("react/jsx-runtime");
911
+ var import_jsx_runtime21 = require("react/jsx-runtime");
898
912
  function ExpandTable(props) {
899
913
  const { data, columns, ExpandComp, placeholder, onRowClick } = props;
900
- const [sorting, setSorting] = (0, import_react14.useState)([]);
914
+ const [sorting, setSorting] = (0, import_react15.useState)([]);
901
915
  const { getRowModel, getHeaderGroups } = (0, import_react_table2.useReactTable)({
902
916
  data: data || [],
903
917
  columns,
@@ -908,7 +922,7 @@ function ExpandTable(props) {
908
922
  },
909
923
  onSortingChange: setSorting
910
924
  });
911
- const gridColTemp = (0, import_react14.useMemo)(() => {
925
+ const gridColTemp = (0, import_react15.useMemo)(() => {
912
926
  return columns.map((col) => {
913
927
  var _a;
914
928
  if ((_a = col.meta) == null ? void 0 : _a.autoSize)
@@ -917,8 +931,8 @@ function ExpandTable(props) {
917
931
  }).join(" ");
918
932
  }, [columns]);
919
933
  const rowModels = getRowModel();
920
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "expand-table", children: [
921
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
934
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "expand-table", children: [
935
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
922
936
  "div",
923
937
  {
924
938
  className: "tr",
@@ -926,30 +940,30 @@ function ExpandTable(props) {
926
940
  children: headerGroup.headers.map((header) => {
927
941
  const sortable = header.column.getCanSort();
928
942
  const sortedState = header.column.getIsSorted();
929
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "th", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
943
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "th", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
930
944
  "button",
931
945
  {
932
946
  onClick: header.column.getToggleSortingHandler(),
933
947
  style: sortable ? { cursor: "pointer" } : void 0,
934
948
  type: "button",
935
949
  children: [
936
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typo, { variant: "body", children: (0, import_react_table2.flexRender)(
950
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { variant: "body", children: (0, import_react_table2.flexRender)(
937
951
  header.column.columnDef.header,
938
952
  header.getContext()
939
953
  ) }),
940
- sortable ? /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
954
+ sortable ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
941
955
  import_themes19.Flex,
942
956
  {
943
957
  direction: "column",
944
958
  style: { marginLeft: "var(--space-2)" },
945
959
  children: [
946
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
960
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
947
961
  TriangleArrowUpIcon,
948
962
  {
949
963
  color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
950
964
  }
951
965
  ),
952
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
966
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
953
967
  TriangleArrowDownIcon,
954
968
  {
955
969
  color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
@@ -965,10 +979,10 @@ function ExpandTable(props) {
965
979
  },
966
980
  headerGroup.id
967
981
  )) }),
968
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "tbody", children: [
969
- rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes19.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
982
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "tbody", children: [
983
+ rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes19.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
970
984
  rowModels.rows.map((row) => {
971
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
985
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
972
986
  Row,
973
987
  {
974
988
  ExpandComp,
@@ -984,14 +998,14 @@ function ExpandTable(props) {
984
998
  }
985
999
 
986
1000
  // src/molecules/navigation.tsx
987
- var import_jsx_runtime21 = require("react/jsx-runtime");
1001
+ var import_jsx_runtime22 = require("react/jsx-runtime");
988
1002
  function Navigation({
989
1003
  items,
990
1004
  fontColor,
991
1005
  backgroundColor,
992
1006
  activeKey
993
1007
  }) {
994
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1008
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
995
1009
  import_themes19.Flex,
996
1010
  {
997
1011
  direction: "column",
@@ -1003,13 +1017,13 @@ function Navigation({
1003
1017
  },
1004
1018
  children: items == null ? void 0 : items.map((item) => {
1005
1019
  const { key, title, icon, itemRender, onClick, children } = item;
1006
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_themes19.Flex, { direction: "column", onClick, children: [
1007
- itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_themes19.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
1020
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_themes19.Flex, { direction: "column", onClick, children: [
1021
+ itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_themes19.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
1008
1022
  icon,
1009
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { variant: "subtitle", children: title })
1023
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typo, { variant: "subtitle", children: title })
1010
1024
  ] }),
1011
1025
  children == null ? void 0 : children.map((menu) => {
1012
- return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1026
+ return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1013
1027
  Button,
1014
1028
  {
1015
1029
  className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
@@ -1029,14 +1043,14 @@ function Navigation({
1029
1043
  }
1030
1044
 
1031
1045
  // src/molecules/date-picker/index.tsx
1032
- var import_react15 = require("react");
1046
+ var import_react16 = require("react");
1033
1047
  var RDP = __toESM(require("react-datepicker"), 1);
1034
- var import_jsx_runtime22 = require("react/jsx-runtime");
1048
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1035
1049
  var ReactDatePicker = RDP.default.default || RDP.default || RDP;
1036
- var DatePicker = (0, import_react15.forwardRef)(
1050
+ var DatePicker = (0, import_react16.forwardRef)(
1037
1051
  (props, ref) => {
1038
1052
  const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
1039
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1053
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1040
1054
  ReactDatePicker,
1041
1055
  __spreadProps(__spreadValues({
1042
1056
  dateFormat: "yyyy/MM/dd",
@@ -1064,33 +1078,33 @@ var renderCustomHeader = (props) => {
1064
1078
  } = props;
1065
1079
  const year = date.getFullYear();
1066
1080
  const month = date.getMonth();
1067
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_themes19.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
1068
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1081
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_themes19.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
1082
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1069
1083
  import_themes24.IconButton,
1070
1084
  {
1071
1085
  disabled: prevMonthButtonDisabled,
1072
1086
  onClick: decreaseMonth,
1073
1087
  variant: "ghost",
1074
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_icons.ChevronLeftIcon, {})
1088
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_icons.ChevronLeftIcon, {})
1075
1089
  }
1076
1090
  ),
1077
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_themes19.Flex, { gap: "3", children: [
1078
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
1091
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_themes19.Flex, { gap: "3", children: [
1092
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
1079
1093
  year,
1080
1094
  "\uB144"
1081
1095
  ] }),
1082
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
1096
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
1083
1097
  month + 1,
1084
1098
  "\uC6D4"
1085
1099
  ] })
1086
1100
  ] }),
1087
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1101
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1088
1102
  import_themes24.IconButton,
1089
1103
  {
1090
1104
  disabled: nextMonthButtonDisabled,
1091
1105
  onClick: increaseMonth,
1092
1106
  variant: "ghost",
1093
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_icons.ChevronRightIcon, {})
1107
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_icons.ChevronRightIcon, {})
1094
1108
  }
1095
1109
  )
1096
1110
  ] });
@@ -1103,22 +1117,22 @@ var import_themes51 = require("@radix-ui/themes");
1103
1117
  var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
1104
1118
 
1105
1119
  // src/charts/horizontal-bar-chart.tsx
1106
- var import_jsx_runtime23 = require("react/jsx-runtime");
1120
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1107
1121
  function HorizontalBarChart(props) {
1108
1122
  const { total, value, backgroundColor, barColor, height } = props;
1109
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1123
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1110
1124
  "div",
1111
1125
  {
1112
1126
  className: "tipp_horizontal-bar-chart bar-wrapper",
1113
1127
  style: { height, backgroundColor },
1114
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1128
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1115
1129
  "div",
1116
1130
  {
1117
1131
  style: {
1118
1132
  width: `${Math.round(value / total * 100)}%`,
1119
1133
  height: "100%"
1120
1134
  },
1121
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
1135
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
1122
1136
  }
1123
1137
  )
1124
1138
  }