@tipp/ui 1.0.41 → 1.0.43

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 (59) hide show
  1. package/dist/atoms/drawer.cjs +1 -1
  2. package/dist/atoms/drawer.cjs.map +1 -1
  3. package/dist/atoms/drawer.js +2 -2
  4. package/dist/atoms/dropdown-menu.cjs.map +1 -1
  5. package/dist/atoms/dropdown-menu.d.cts +1 -4
  6. package/dist/atoms/dropdown-menu.d.ts +1 -4
  7. package/dist/atoms/dropdown-menu.js +1 -1
  8. package/dist/atoms/field-error-wrapper.js +2 -2
  9. package/dist/atoms/index.cjs +79 -65
  10. package/dist/atoms/index.cjs.map +1 -1
  11. package/dist/atoms/index.d.cts +3 -2
  12. package/dist/atoms/index.d.ts +3 -2
  13. package/dist/atoms/index.js +36 -36
  14. package/dist/atoms/pagination.js +2 -2
  15. package/dist/atoms/select.cjs +44 -1
  16. package/dist/atoms/select.cjs.map +1 -1
  17. package/dist/atoms/select.d.cts +19 -1
  18. package/dist/atoms/select.d.ts +19 -1
  19. package/dist/atoms/select.js +1 -1
  20. package/dist/chunk-3WAQCV5A.js +119 -0
  21. package/dist/chunk-3WAQCV5A.js.map +1 -0
  22. package/dist/chunk-4WFMOFN2.js +34 -0
  23. package/dist/chunk-4WFMOFN2.js.map +1 -0
  24. package/dist/chunk-ABUIIUYC.js +35 -0
  25. package/dist/chunk-ABUIIUYC.js.map +1 -0
  26. package/dist/chunk-BVBX6IJ3.js +15 -0
  27. package/dist/chunk-BVBX6IJ3.js.map +1 -0
  28. package/dist/chunk-CN2EKN6C.js +119 -0
  29. package/dist/chunk-CN2EKN6C.js.map +1 -0
  30. package/dist/chunk-H6BDCW7U.js +27 -0
  31. package/dist/chunk-H6BDCW7U.js.map +1 -0
  32. package/dist/chunk-IMOA5HKH.js +27 -0
  33. package/dist/chunk-IMOA5HKH.js.map +1 -0
  34. package/dist/chunk-KDWHXPLO.js +27 -0
  35. package/dist/chunk-KDWHXPLO.js.map +1 -0
  36. package/dist/chunk-NBJOYJAF.js +49 -0
  37. package/dist/chunk-NBJOYJAF.js.map +1 -0
  38. package/dist/chunk-ONYSO7Y2.js +49 -0
  39. package/dist/chunk-ONYSO7Y2.js.map +1 -0
  40. package/dist/chunk-XG4N7OQF.js +104 -0
  41. package/dist/chunk-XG4N7OQF.js.map +1 -0
  42. package/dist/index.cjs +130 -116
  43. package/dist/index.cjs.map +1 -1
  44. package/dist/index.css +7 -2
  45. package/dist/index.css.map +1 -1
  46. package/dist/index.d.cts +3 -2
  47. package/dist/index.d.ts +3 -2
  48. package/dist/index.js +67 -67
  49. package/dist/molecules/expand-table/index.js +22 -22
  50. package/dist/molecules/expand-table/row.js +19 -19
  51. package/dist/molecules/index.js +23 -23
  52. package/dist/molecules/navigation.js +20 -20
  53. package/dist/theme/theme-provider.cjs +1 -1
  54. package/dist/theme/theme-provider.cjs.map +1 -1
  55. package/dist/theme/theme-provider.js +1 -1
  56. package/package.json +1 -1
  57. package/src/atoms/dropdown-menu.tsx +1 -1
  58. package/src/atoms/select.tsx +24 -1
  59. package/src/theme/theme-provider.tsx +1 -1
package/dist/index.cjs CHANGED
@@ -83,7 +83,7 @@ __export(src_exports, {
83
83
  Code: () => import_themes13.Code,
84
84
  Collapse: () => Collapse,
85
85
  Container: () => import_themes14.Container,
86
- Content: () => Content3,
86
+ Content: () => Content4,
87
87
  Cross1Icon: () => import_react_icons.Cross1Icon,
88
88
  DataList: () => import_themes15.DataList,
89
89
  DatePicker: () => DatePicker,
@@ -130,7 +130,7 @@ __export(src_exports, {
130
130
  ScrollArea: () => import_themes35.ScrollArea,
131
131
  Section: () => import_themes36.Section,
132
132
  SegmentedControl: () => import_themes37.SegmentedControl,
133
- Select: () => import_themes38.Select,
133
+ Select: () => Select,
134
134
  Separator: () => import_themes39.Separator,
135
135
  Skeleton: () => import_themes40.Skeleton,
136
136
  Spinner: () => import_themes49.Spinner,
@@ -465,6 +465,20 @@ var import_themes37 = require("@radix-ui/themes");
465
465
 
466
466
  // src/atoms/select.tsx
467
467
  var import_themes38 = require("@radix-ui/themes");
468
+ var import_react10 = require("react");
469
+ var import_jsx_runtime10 = require("react/jsx-runtime");
470
+ var Content2 = (0, import_react10.forwardRef)((props, ref) => {
471
+ const _a = props, { className, isNavigation } = _a, rest = __objRest(_a, ["className", "isNavigation"]);
472
+ const cls = (0, import_react10.useMemo)(() => {
473
+ const etc = isNavigation ? "nav-select" : "";
474
+ return [etc, className].join(" ");
475
+ }, [className, isNavigation]);
476
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes38.Select.Content, __spreadProps(__spreadValues({}, rest), { className: cls, ref }));
477
+ });
478
+ Content2.displayName = "Select.Content";
479
+ var Select = __spreadProps(__spreadValues({}, import_themes38.Select), {
480
+ Content: Content2
481
+ });
468
482
 
469
483
  // src/atoms/separator.tsx
470
484
  var import_themes39 = require("@radix-ui/themes");
@@ -489,12 +503,12 @@ var import_themes45 = require("@radix-ui/themes");
489
503
 
490
504
  // src/atoms/typo.tsx
491
505
  var import_themes46 = require("@radix-ui/themes");
492
- var import_react10 = require("react");
493
- var import_jsx_runtime10 = require("react/jsx-runtime");
494
- var Typo = (0, import_react10.forwardRef)(
506
+ var import_react11 = require("react");
507
+ var import_jsx_runtime11 = require("react/jsx-runtime");
508
+ var Typo = (0, import_react11.forwardRef)(
495
509
  (props, ref) => {
496
510
  const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
497
- const radixSize = (0, import_react10.useMemo)(() => {
511
+ const radixSize = (0, import_react11.useMemo)(() => {
498
512
  if (size !== void 0)
499
513
  return size;
500
514
  switch (variant) {
@@ -507,7 +521,7 @@ var Typo = (0, import_react10.forwardRef)(
507
521
  return "2";
508
522
  }
509
523
  }, [size, variant]);
510
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes46.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
524
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes46.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
511
525
  }
512
526
  );
513
527
  Typo.displayName = "Typo";
@@ -519,43 +533,43 @@ var import_themes47 = require("@radix-ui/themes");
519
533
  var import_themes48 = require("@radix-ui/themes");
520
534
 
521
535
  // src/atoms/collapse.tsx
522
- var import_react11 = require("react");
523
- var import_jsx_runtime11 = require("react/jsx-runtime");
536
+ var import_react12 = require("react");
537
+ var import_jsx_runtime12 = require("react/jsx-runtime");
524
538
  function Collapse(props) {
525
539
  const { children, closedHeight = "0" } = props;
526
- const [open, setOpen] = (0, import_react11.useState)(() => {
540
+ const [open, setOpen] = (0, import_react12.useState)(() => {
527
541
  return props.open || props.defaultOpen || false;
528
542
  });
529
- (0, import_react11.useEffect)(() => {
543
+ (0, import_react12.useEffect)(() => {
530
544
  if (props.open === void 0)
531
545
  return;
532
546
  setOpen(props.open);
533
547
  }, [props.open]);
534
- const ref = (0, import_react11.useRef)(null);
535
- (0, import_react11.useEffect)(() => {
548
+ const ref = (0, import_react12.useRef)(null);
549
+ (0, import_react12.useEffect)(() => {
536
550
  if (!ref.current)
537
551
  return;
538
552
  ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
539
553
  }, [closedHeight, open]);
540
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "collapse", ref, children });
554
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "collapse", ref, children });
541
555
  }
542
556
 
543
557
  // src/atoms/spinner.tsx
544
558
  var import_themes49 = require("@radix-ui/themes");
545
559
 
546
560
  // src/atoms/pagination.tsx
547
- var import_react12 = require("react");
561
+ var import_react13 = require("react");
548
562
 
549
563
  // src/icon.ts
550
564
  var import_react_icons = require("@radix-ui/react-icons");
551
565
 
552
566
  // src/atoms/pagination.tsx
553
- var import_jsx_runtime12 = require("react/jsx-runtime");
567
+ var import_jsx_runtime13 = require("react/jsx-runtime");
554
568
  function Pagination(props) {
555
569
  const { onChange, count = 0 } = props;
556
570
  const siblingCount = 2;
557
- const [page, setPage] = (0, import_react12.useState)(() => props.page || props.defaultPage || 1);
558
- const visibleItems = (0, import_react12.useMemo)(() => {
571
+ const [page, setPage] = (0, import_react13.useState)(() => props.page || props.defaultPage || 1);
572
+ const visibleItems = (0, import_react13.useMemo)(() => {
559
573
  let start = Math.max(1, page - siblingCount);
560
574
  let end = Math.min(count, page + siblingCount);
561
575
  if (page - siblingCount <= 0 && end < count) {
@@ -565,18 +579,18 @@ function Pagination(props) {
565
579
  }
566
580
  return Array.from({ length: end - start + 1 }, (_, i) => i + start);
567
581
  }, [count, page]);
568
- (0, import_react12.useEffect)(() => {
582
+ (0, import_react13.useEffect)(() => {
569
583
  onChange == null ? void 0 : onChange(page);
570
584
  }, [onChange, page]);
571
- (0, import_react12.useEffect)(() => {
585
+ (0, import_react13.useEffect)(() => {
572
586
  if (props.page) {
573
587
  setPage(props.page);
574
588
  }
575
589
  }, [props.page]);
576
- const onClickPrev = (0, import_react12.useCallback)(() => {
590
+ const onClickPrev = (0, import_react13.useCallback)(() => {
577
591
  setPage((prev) => Math.max(1, prev - 1));
578
592
  }, []);
579
- const onClickNext = (0, import_react12.useCallback)(() => {
593
+ const onClickNext = (0, import_react13.useCallback)(() => {
580
594
  setPage((prev) => Math.min(count, prev + 1));
581
595
  }, [count]);
582
596
  const moveButtonProps = {
@@ -588,24 +602,24 @@ function Pagination(props) {
588
602
  height: 24,
589
603
  width: 24
590
604
  };
591
- const prevDisabled = (0, import_react12.useMemo)(() => {
605
+ const prevDisabled = (0, import_react13.useMemo)(() => {
592
606
  return page - siblingCount <= 1;
593
607
  }, [page]);
594
- const nextDisabled = (0, import_react12.useMemo)(() => {
608
+ const nextDisabled = (0, import_react13.useMemo)(() => {
595
609
  return page + siblingCount >= count;
596
610
  }, [count, page]);
597
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_themes19.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
598
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
611
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_themes19.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
612
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
599
613
  import_themes24.IconButton,
600
614
  __spreadProps(__spreadValues({
601
615
  disabled: prevDisabled,
602
616
  onClick: onClickPrev
603
617
  }, moveButtonProps), {
604
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_icons.ChevronLeftIcon, __spreadValues({}, iconSize))
618
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_icons.ChevronLeftIcon, __spreadValues({}, iconSize))
605
619
  })
606
620
  ),
607
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_themes19.Flex, { gap: "1", children: visibleItems.map((item) => {
608
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
621
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes19.Flex, { gap: "1", children: visibleItems.map((item) => {
622
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
609
623
  "button",
610
624
  {
611
625
  className: `page-button ${item === page ? "active" : ""}`,
@@ -613,45 +627,45 @@ function Pagination(props) {
613
627
  setPage(item);
614
628
  },
615
629
  type: "button",
616
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Typo, { variant: "body", children: item })
630
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Typo, { variant: "body", children: item })
617
631
  },
618
632
  item
619
633
  );
620
634
  }) }),
621
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
635
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
622
636
  import_themes24.IconButton,
623
637
  __spreadProps(__spreadValues({
624
638
  disabled: nextDisabled,
625
639
  onClick: onClickNext
626
640
  }, moveButtonProps), {
627
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_icons.ChevronRightIcon, __spreadValues({}, iconSize))
641
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_icons.ChevronRightIcon, __spreadValues({}, iconSize))
628
642
  })
629
643
  )
630
644
  ] });
631
645
  }
632
646
 
633
647
  // src/atoms/field-error-wrapper.tsx
634
- var import_jsx_runtime13 = require("react/jsx-runtime");
648
+ var import_jsx_runtime14 = require("react/jsx-runtime");
635
649
  function FieldErrorWrapper({
636
650
  children,
637
651
  error
638
652
  }) {
639
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_themes19.Flex, { direction: "column", gap: "1", children: [
653
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_themes19.Flex, { direction: "column", gap: "1", children: [
640
654
  children,
641
- error ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
655
+ error ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
642
656
  ] });
643
657
  }
644
658
 
645
659
  // src/atoms/ellipsis-tooltip.tsx
646
- var import_react13 = require("react");
647
- var import_jsx_runtime14 = require("react/jsx-runtime");
660
+ var import_react14 = require("react");
661
+ var import_jsx_runtime15 = require("react/jsx-runtime");
648
662
  function EllipsisTooltip(props) {
649
663
  const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
650
- const ref = (0, import_react13.useRef)(null);
651
- const [tooltipDisplay, setTooltipDisplay] = (0, import_react13.useState)(
664
+ const ref = (0, import_react14.useRef)(null);
665
+ const [tooltipDisplay, setTooltipDisplay] = (0, import_react14.useState)(
652
666
  "none"
653
667
  );
654
- (0, import_react13.useEffect)(() => {
668
+ (0, import_react14.useEffect)(() => {
655
669
  if (ref.current) {
656
670
  const typo = ref.current;
657
671
  const mouseOver = () => {
@@ -666,7 +680,7 @@ function EllipsisTooltip(props) {
666
680
  ref.current.addEventListener("mouseleave", mouseOut);
667
681
  }
668
682
  }, [children]);
669
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes48.Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
683
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes48.Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
670
684
  Typo,
671
685
  __spreadProps(__spreadValues({}, rest), {
672
686
  ref,
@@ -689,21 +703,21 @@ var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
689
703
 
690
704
  // src/theme/theme-provider.tsx
691
705
  var import_themes50 = require("@radix-ui/themes");
692
- var import_jsx_runtime15 = require("react/jsx-runtime");
706
+ var import_jsx_runtime16 = require("react/jsx-runtime");
693
707
  function ThemeProvider(props) {
694
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes50.Theme, __spreadValues({ accentColor: "iris", radius: "large" }, props));
708
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes50.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
695
709
  }
696
710
 
697
711
  // src/atoms/toast.tsx
698
712
  var import_react_icons2 = require("@radix-ui/react-icons");
699
713
  var import_react_toastify = require("react-toastify");
700
714
  var import_react_toastify2 = require("react-toastify");
701
- var import_jsx_runtime16 = require("react/jsx-runtime");
715
+ var import_jsx_runtime17 = require("react/jsx-runtime");
702
716
  function CloseButton({ closeToast }) {
703
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes24.IconButton, { color: "gray", onClick: closeToast, variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_icons2.Cross1Icon, {}) });
717
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes24.IconButton, { color: "gray", onClick: closeToast, variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons2.Cross1Icon, {}) });
704
718
  }
705
719
  function ToastContainer(props) {
706
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
720
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
707
721
  import_react_toastify.ToastContainer,
708
722
  __spreadValues({
709
723
  autoClose: 5e3,
@@ -721,30 +735,30 @@ function ToastContainer(props) {
721
735
  }
722
736
 
723
737
  // src/atoms/drawer.tsx
724
- var import_jsx_runtime17 = require("react/jsx-runtime");
738
+ var import_jsx_runtime18 = require("react/jsx-runtime");
725
739
  function Root3(props) {
726
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog2.Root, __spreadValues({}, props));
740
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Dialog2.Root, __spreadValues({}, props));
727
741
  }
728
- function Content3(props) {
742
+ function Content4(props) {
729
743
  const _a = props, { position = "right", className } = _a, rest = __objRest(_a, ["position", "className"]);
730
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(ThemeProvider, { children: [
731
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
732
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
744
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Dialog2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(ThemeProvider, { children: [
745
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Dialog2.Overlay, { className: "DrawerOverlay" }),
746
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
733
747
  Dialog2.Content,
734
748
  __spreadValues({
735
749
  className: `DrawerContent ${position} ${className || ""}`
736
750
  }, rest)
737
751
  ),
738
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ToastContainer, {})
752
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ToastContainer, {})
739
753
  ] }) });
740
754
  }
741
755
  function Trigger2(props) {
742
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog2.Trigger, __spreadValues({ asChild: true }, props));
756
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Dialog2.Trigger, __spreadValues({ asChild: true }, props));
743
757
  }
744
758
  var Drawer = {
745
759
  Root: Dialog2.Root,
746
760
  Trigger: Trigger2,
747
- Content: Content3,
761
+ Content: Content4,
748
762
  Close: Dialog2.Close,
749
763
  Title: Dialog2.Title,
750
764
  Description: Dialog2.Description
@@ -752,12 +766,12 @@ var Drawer = {
752
766
 
753
767
  // src/atoms/form.tsx
754
768
  var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
755
- var import_react14 = require("react");
756
- var import_jsx_runtime18 = require("react/jsx-runtime");
757
- var Root5 = (0, import_react14.forwardRef)(
769
+ var import_react15 = require("react");
770
+ var import_jsx_runtime19 = require("react/jsx-runtime");
771
+ var Root5 = (0, import_react15.forwardRef)(
758
772
  (_a, ref) => {
759
773
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
760
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
774
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
761
775
  RadixForm.Root,
762
776
  __spreadProps(__spreadValues({}, rest), {
763
777
  className: `FormRoot ${className || ""}`,
@@ -768,10 +782,10 @@ var Root5 = (0, import_react14.forwardRef)(
768
782
  }
769
783
  );
770
784
  Root5.displayName = "FORM_ROOT";
771
- var Field2 = (0, import_react14.forwardRef)(
785
+ var Field2 = (0, import_react15.forwardRef)(
772
786
  (_a, ref) => {
773
787
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
774
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
788
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
775
789
  RadixForm.Field,
776
790
  __spreadProps(__spreadValues({}, rest), {
777
791
  className: `FormField ${className || ""}`,
@@ -782,10 +796,10 @@ var Field2 = (0, import_react14.forwardRef)(
782
796
  }
783
797
  );
784
798
  Field2.displayName = "FORM_FIELD";
785
- var Label2 = (0, import_react14.forwardRef)(
799
+ var Label2 = (0, import_react15.forwardRef)(
786
800
  (_a, ref) => {
787
801
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
788
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
802
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
789
803
  RadixForm.Label,
790
804
  __spreadProps(__spreadValues({}, rest), {
791
805
  className: `FormLabel ${className || ""}`,
@@ -796,10 +810,10 @@ var Label2 = (0, import_react14.forwardRef)(
796
810
  }
797
811
  );
798
812
  Label2.displayName = "FORM_Label";
799
- var Message2 = (0, import_react14.forwardRef)(
813
+ var Message2 = (0, import_react15.forwardRef)(
800
814
  (_a, ref) => {
801
815
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
802
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
816
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
803
817
  RadixForm.Message,
804
818
  __spreadProps(__spreadValues({}, rest), {
805
819
  className: `FormMessage ${className || ""}`,
@@ -821,15 +835,15 @@ var Form = {
821
835
 
822
836
  // src/molecules/expand-table/index.tsx
823
837
  var import_react_table2 = require("@tanstack/react-table");
824
- var import_react16 = require("react");
838
+ var import_react17 = require("react");
825
839
 
826
840
  // src/icons/down.tsx
827
841
  var React7 = __toESM(require("react"), 1);
828
- var import_jsx_runtime19 = require("react/jsx-runtime");
842
+ var import_jsx_runtime20 = require("react/jsx-runtime");
829
843
  var TriangleArrowDownIcon = React7.forwardRef(
830
844
  (_a, forwardedRef) => {
831
845
  var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
832
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
846
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
833
847
  "svg",
834
848
  __spreadProps(__spreadValues({
835
849
  fill: "none",
@@ -839,7 +853,7 @@ var TriangleArrowDownIcon = React7.forwardRef(
839
853
  xmlns: "http://www.w3.org/2000/svg"
840
854
  }, props), {
841
855
  ref: forwardedRef,
842
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
856
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
843
857
  "path",
844
858
  {
845
859
  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",
@@ -854,11 +868,11 @@ TriangleArrowDownIcon.displayName = "ArrowDownIcon";
854
868
 
855
869
  // src/icons/up.tsx
856
870
  var React8 = __toESM(require("react"), 1);
857
- var import_jsx_runtime20 = require("react/jsx-runtime");
871
+ var import_jsx_runtime21 = require("react/jsx-runtime");
858
872
  var TriangleArrowUpIcon = React8.forwardRef(
859
873
  (_a, forwardedRef) => {
860
874
  var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
861
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
875
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
862
876
  "svg",
863
877
  __spreadProps(__spreadValues({
864
878
  fill: "none",
@@ -868,7 +882,7 @@ var TriangleArrowUpIcon = React8.forwardRef(
868
882
  xmlns: "http://www.w3.org/2000/svg"
869
883
  }, props), {
870
884
  ref: forwardedRef,
871
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
885
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
872
886
  "path",
873
887
  {
874
888
  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",
@@ -883,22 +897,22 @@ TriangleArrowUpIcon.displayName = "ArrowUpIcon";
883
897
 
884
898
  // src/molecules/expand-table/row.tsx
885
899
  var import_react_table = require("@tanstack/react-table");
886
- var import_react15 = require("react");
887
- var import_jsx_runtime21 = require("react/jsx-runtime");
900
+ var import_react16 = require("react");
901
+ var import_jsx_runtime22 = require("react/jsx-runtime");
888
902
  function Row(props) {
889
903
  const { row, ExpandComp, gridColTemp } = props;
890
- const [open, setOpen] = (0, import_react15.useState)(false);
891
- const onClickRow = (0, import_react15.useCallback)(() => {
904
+ const [open, setOpen] = (0, import_react16.useState)(false);
905
+ const onClickRow = (0, import_react16.useCallback)(() => {
892
906
  var _a;
893
907
  (_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
894
908
  setOpen((prev) => !prev);
895
909
  }, [props, row.original]);
896
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
910
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
897
911
  "div",
898
912
  {
899
913
  className: `tr-wrapper ${ExpandComp ? "expandable" : ""}`,
900
914
  children: [
901
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
915
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
902
916
  "button",
903
917
  {
904
918
  className: "tr",
@@ -908,7 +922,7 @@ function Row(props) {
908
922
  children: row.getVisibleCells().map((cell) => {
909
923
  var _a, _b;
910
924
  const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
911
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
925
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
912
926
  "div",
913
927
  {
914
928
  className: "td",
@@ -918,7 +932,7 @@ function Row(props) {
918
932
  },
919
933
  children: [
920
934
  (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
921
- ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
935
+ ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
922
936
  cell.column.columnDef.meta.OpenBtn,
923
937
  {
924
938
  data: row.original,
@@ -934,7 +948,7 @@ function Row(props) {
934
948
  },
935
949
  `tr_${row.id}`
936
950
  ),
937
- ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ExpandComp, { row }) }) }) : null
951
+ ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ExpandComp, { row }) }) }) : null
938
952
  ]
939
953
  },
940
954
  `tr-wrapper_${row.id}`
@@ -942,10 +956,10 @@ function Row(props) {
942
956
  }
943
957
 
944
958
  // src/molecules/expand-table/index.tsx
945
- var import_jsx_runtime22 = require("react/jsx-runtime");
959
+ var import_jsx_runtime23 = require("react/jsx-runtime");
946
960
  function ExpandTable(props) {
947
961
  const { data, columns, ExpandComp, placeholder, onRowClick } = props;
948
- const [sorting, setSorting] = (0, import_react16.useState)([]);
962
+ const [sorting, setSorting] = (0, import_react17.useState)([]);
949
963
  const { getRowModel, getHeaderGroups } = (0, import_react_table2.useReactTable)({
950
964
  data: data || [],
951
965
  columns,
@@ -956,7 +970,7 @@ function ExpandTable(props) {
956
970
  },
957
971
  onSortingChange: setSorting
958
972
  });
959
- const gridColTemp = (0, import_react16.useMemo)(() => {
973
+ const gridColTemp = (0, import_react17.useMemo)(() => {
960
974
  return columns.map((col) => {
961
975
  var _a;
962
976
  if ((_a = col.meta) == null ? void 0 : _a.autoSize)
@@ -965,8 +979,8 @@ function ExpandTable(props) {
965
979
  }).join(" ");
966
980
  }, [columns]);
967
981
  const rowModels = getRowModel();
968
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "expand-table", children: [
969
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
982
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "expand-table", children: [
983
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
970
984
  "div",
971
985
  {
972
986
  className: "tr",
@@ -974,30 +988,30 @@ function ExpandTable(props) {
974
988
  children: headerGroup.headers.map((header) => {
975
989
  const sortable = header.column.getCanSort();
976
990
  const sortedState = header.column.getIsSorted();
977
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "th", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
991
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "th", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
978
992
  "button",
979
993
  {
980
994
  onClick: header.column.getToggleSortingHandler(),
981
995
  style: sortable ? { cursor: "pointer" } : void 0,
982
996
  type: "button",
983
997
  children: [
984
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typo, { variant: "body", children: (0, import_react_table2.flexRender)(
998
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typo, { variant: "body", children: (0, import_react_table2.flexRender)(
985
999
  header.column.columnDef.header,
986
1000
  header.getContext()
987
1001
  ) }),
988
- sortable ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1002
+ sortable ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
989
1003
  import_themes19.Flex,
990
1004
  {
991
1005
  direction: "column",
992
1006
  style: { marginLeft: "var(--space-2)" },
993
1007
  children: [
994
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1008
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
995
1009
  TriangleArrowUpIcon,
996
1010
  {
997
1011
  color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
998
1012
  }
999
1013
  ),
1000
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1014
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1001
1015
  TriangleArrowDownIcon,
1002
1016
  {
1003
1017
  color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
@@ -1013,10 +1027,10 @@ function ExpandTable(props) {
1013
1027
  },
1014
1028
  headerGroup.id
1015
1029
  )) }),
1016
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "tbody", children: [
1017
- rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_themes19.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
1030
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "tbody", children: [
1031
+ rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_themes19.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
1018
1032
  rowModels.rows.map((row) => {
1019
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1033
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1020
1034
  Row,
1021
1035
  {
1022
1036
  ExpandComp,
@@ -1032,14 +1046,14 @@ function ExpandTable(props) {
1032
1046
  }
1033
1047
 
1034
1048
  // src/molecules/navigation.tsx
1035
- var import_jsx_runtime23 = require("react/jsx-runtime");
1049
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1036
1050
  function Navigation({
1037
1051
  items,
1038
1052
  fontColor,
1039
1053
  backgroundColor,
1040
1054
  activeKey
1041
1055
  }) {
1042
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1056
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1043
1057
  import_themes19.Flex,
1044
1058
  {
1045
1059
  direction: "column",
@@ -1051,13 +1065,13 @@ function Navigation({
1051
1065
  },
1052
1066
  children: items == null ? void 0 : items.map((item) => {
1053
1067
  const { key, title, icon, itemRender, onClick, children } = item;
1054
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_themes19.Flex, { direction: "column", onClick, children: [
1055
- itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_themes19.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
1068
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes19.Flex, { direction: "column", onClick, children: [
1069
+ itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes19.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
1056
1070
  icon,
1057
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typo, { variant: "subtitle", children: title })
1071
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, { variant: "subtitle", children: title })
1058
1072
  ] }),
1059
1073
  children == null ? void 0 : children.map((menu) => {
1060
- return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1074
+ return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1061
1075
  Button,
1062
1076
  {
1063
1077
  className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
@@ -1081,14 +1095,14 @@ function Navigation({
1081
1095
  }
1082
1096
 
1083
1097
  // src/molecules/date-picker/index.tsx
1084
- var import_react17 = require("react");
1098
+ var import_react18 = require("react");
1085
1099
  var RDP = __toESM(require("react-datepicker"), 1);
1086
- var import_jsx_runtime24 = require("react/jsx-runtime");
1100
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1087
1101
  var ReactDatePicker = RDP.default.default || RDP.default || RDP;
1088
- var DatePicker = (0, import_react17.forwardRef)(
1102
+ var DatePicker = (0, import_react18.forwardRef)(
1089
1103
  (props, ref) => {
1090
1104
  const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
1091
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1105
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1092
1106
  ReactDatePicker,
1093
1107
  __spreadProps(__spreadValues({
1094
1108
  dateFormat: "yyyy/MM/dd",
@@ -1116,33 +1130,33 @@ var renderCustomHeader = (props) => {
1116
1130
  } = props;
1117
1131
  const year = date.getFullYear();
1118
1132
  const month = date.getMonth();
1119
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes19.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
1120
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1133
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes19.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
1134
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1121
1135
  import_themes24.IconButton,
1122
1136
  {
1123
1137
  disabled: prevMonthButtonDisabled,
1124
1138
  onClick: decreaseMonth,
1125
1139
  variant: "ghost",
1126
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.ChevronLeftIcon, {})
1140
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons.ChevronLeftIcon, {})
1127
1141
  }
1128
1142
  ),
1129
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes19.Flex, { gap: "3", children: [
1130
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
1143
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes19.Flex, { gap: "3", children: [
1144
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
1131
1145
  year,
1132
1146
  "\uB144"
1133
1147
  ] }),
1134
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
1148
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Heading2, { variant: "subtitle1", weight: "regular", children: [
1135
1149
  month + 1,
1136
1150
  "\uC6D4"
1137
1151
  ] })
1138
1152
  ] }),
1139
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1153
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1140
1154
  import_themes24.IconButton,
1141
1155
  {
1142
1156
  disabled: nextMonthButtonDisabled,
1143
1157
  onClick: increaseMonth,
1144
1158
  variant: "ghost",
1145
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_icons.ChevronRightIcon, {})
1159
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons.ChevronRightIcon, {})
1146
1160
  }
1147
1161
  )
1148
1162
  ] });
@@ -1155,22 +1169,22 @@ var import_themes51 = require("@radix-ui/themes");
1155
1169
  var uiProps = __toESM(require("@radix-ui/themes/dist/cjs/props/index.js"), 1);
1156
1170
 
1157
1171
  // src/charts/horizontal-bar-chart.tsx
1158
- var import_jsx_runtime25 = require("react/jsx-runtime");
1172
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1159
1173
  function HorizontalBarChart(props) {
1160
1174
  const { total, value, backgroundColor, barColor, height } = props;
1161
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1175
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1162
1176
  "div",
1163
1177
  {
1164
1178
  className: "tipp_horizontal-bar-chart bar-wrapper",
1165
1179
  style: { height, backgroundColor },
1166
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1180
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1167
1181
  "div",
1168
1182
  {
1169
1183
  style: {
1170
1184
  width: `${Math.round(value / total * 100)}%`,
1171
1185
  height: "100%"
1172
1186
  },
1173
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
1187
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "bar", style: { backgroundColor: barColor } })
1174
1188
  }
1175
1189
  )
1176
1190
  }