@refinn/core-ui 0.1.3 → 0.1.4

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.js CHANGED
@@ -64,13 +64,25 @@ __export(index_exports, {
64
64
  Avatar: () => Avatar,
65
65
  Badge: () => Badge,
66
66
  BottomSheet: () => BottomSheet,
67
+ Branding: () => Branding,
67
68
  Button: () => Button,
68
69
  Checkbox: () => Checkbox,
70
+ Chip: () => Chip,
69
71
  Dialog: () => Dialog,
72
+ Dropdown: () => Dropdown,
73
+ FinancialLogo: () => FinancialLogo,
70
74
  Icon: () => Icon,
75
+ Link: () => Link,
76
+ Loading: () => Loading,
71
77
  Radio: () => Radio,
78
+ SegmentControl: () => SegmentControl,
72
79
  Slider: () => Slider,
73
- Toast: () => Toast
80
+ Tab: () => Tab,
81
+ TextArea: () => TextArea,
82
+ TextField: () => TextField,
83
+ Toast: () => Toast,
84
+ ToggleSwitch: () => ToggleSwitch,
85
+ Tooltip: () => Tooltip
74
86
  });
75
87
  module.exports = __toCommonJS(index_exports);
76
88
 
@@ -504,20 +516,114 @@ var Badge = (0, import_react4.forwardRef)(
504
516
  );
505
517
  Badge.displayName = "Badge";
506
518
 
519
+ // src/components/Branding/Branding.tsx
520
+ var import_react5 = require("react");
521
+ var import_jsx_runtime5 = require("react/jsx-runtime");
522
+ var Branding = (0, import_react5.forwardRef)(
523
+ (_a, ref) => {
524
+ var _b = _a, { type = "brand", className = "" } = _b, rest = __objRest(_b, ["type", "className"]);
525
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
526
+ "div",
527
+ __spreadProps(__spreadValues({
528
+ ref,
529
+ className: `${type === "black" ? "text-gray-900" : type === "white" ? "text-white-100" : "text-blue-600"} ${className}`
530
+ }, rest), {
531
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
532
+ "svg",
533
+ {
534
+ xmlns: "http://www.w3.org/2000/svg",
535
+ width: "89",
536
+ height: "20",
537
+ viewBox: "0 0 89 20",
538
+ fill: "currentColor",
539
+ children: [
540
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("g", { "clip-path": "url(#clip0_828_998)", children: [
541
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
542
+ "path",
543
+ {
544
+ "fill-rule": "evenodd",
545
+ "clip-rule": "evenodd",
546
+ d: "M16.7368 16.8241H16.7425L12.5943 11.7367C14.2529 11.1183 16.1138 9.64704 16.1138 6.12635C16.1138 -0.239164 10.023 0.0275032 10.0092 0.0275032H1.92874C1.91035 0.0275032 1.89311 0.0275032 1.87587 0.0275032C1.37851 0.0275032 0.901524 0.225077 0.549839 0.576762C0.198155 0.928447 0.000580351 1.40543 0.000580351 1.90279C0.000580351 2.40015 0.198155 2.87713 0.549839 3.22882C0.901524 3.5805 1.37851 3.77808 1.87587 3.77808C1.89426 3.77808 1.9115 3.77808 1.92874 3.77808H10.1149C10.7376 3.79195 11.3292 4.0526 11.7597 4.50268C12.1902 4.95277 12.4242 5.55543 12.4103 6.17808C12.3965 6.80073 12.1358 7.39236 11.6857 7.82284C11.2357 8.25331 10.633 8.48735 10.0103 8.47348H1.88621H1.87472C1.62814 8.47348 1.38398 8.52212 1.15623 8.61662C0.928482 8.71112 0.721611 8.84963 0.547468 9.0242C0.373325 9.19877 0.23533 9.40598 0.141388 9.63396C0.0474455 9.86194 -0.00059909 10.1062 5.6384e-06 10.3528C5.6384e-06 10.3528 5.6384e-06 10.3631 5.6384e-06 10.3677V17.9746C0.0121171 18.4636 0.214886 18.9286 0.565035 19.2701C0.915184 19.6117 1.38498 19.8029 1.87414 19.8029C2.36331 19.8029 2.8331 19.6117 3.18325 19.2701C3.5334 18.9286 3.73617 18.4636 3.74828 17.9746V12.1631H8.14943L13.8149 19.1643L13.8218 19.1585C14.1314 19.5449 14.5818 19.7925 15.0739 19.8468C15.566 19.9012 16.0596 19.7578 16.446 19.4482C16.8324 19.1386 17.08 18.6882 17.1343 18.1961C17.1886 17.704 17.0452 17.2104 16.7356 16.8241H16.7368Z",
547
+ fill: "currentColor"
548
+ }
549
+ ),
550
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
551
+ "path",
552
+ {
553
+ d: "M30.3851 15.1575C31.5816 13.5 34.0989 15.2805 32.9023 16.9379C31.9828 18.1966 30.3241 19.854 27.2241 19.823C23.6241 19.823 20.5575 16.7195 20.4736 12.6379C20.4671 12.5169 20.4671 12.3957 20.4736 12.2747C20.5621 8.18966 23.6241 5.08966 27.1931 5.08966H27.2241C30.815 5.08966 33.977 8.28162 33.977 12.4563C33.979 12.6584 33.9407 12.8588 33.8643 13.0459C33.7879 13.233 33.6749 13.4029 33.532 13.5458C33.3891 13.6887 33.2192 13.8017 33.0321 13.8781C32.845 13.9545 32.6446 13.9928 32.4425 13.9908H23.7851C24.3046 15.5667 25.6023 16.7494 27.223 16.7494H27.254C28.9736 16.7816 29.8943 15.8621 30.3851 15.1575ZM23.7851 10.9195H30.9115C30.9115 10.1828 29.346 8.16093 27.2333 8.16093C25.6023 8.16093 24.3046 9.34598 23.7851 10.9195Z",
554
+ fill: "currentColor"
555
+ }
556
+ ),
557
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
558
+ "path",
559
+ {
560
+ "fill-rule": "evenodd",
561
+ "clip-rule": "evenodd",
562
+ d: "M44.1379 5.09414H41.4805V4.56196C41.4808 4.16209 41.6398 3.77869 41.9225 3.49595C42.2052 3.2132 42.5886 3.05422 42.9885 3.05391H43.9977C44.398 3.05391 44.7818 2.89491 45.0649 2.61188C45.3479 2.32885 45.5069 1.94498 45.5069 1.54472C45.5069 1.14445 45.3479 0.760585 45.0649 0.477556C44.7818 0.194527 44.398 0.0355225 43.9977 0.0355225H41.9713V0.0435684C41.0274 0.0827094 40.1351 0.485118 39.4809 1.1667C38.8268 1.84829 38.4613 2.75632 38.4609 3.70104V5.08955H37.7402C37.3897 5.08955 37.0534 5.22881 36.8056 5.4767C36.5577 5.7246 36.4184 6.06081 36.4184 6.41138C36.4184 6.76196 36.5577 7.09817 36.8056 7.34607C37.0534 7.59396 37.3897 7.73322 37.7402 7.73322H38.4609V18.4229H38.4713C38.4925 18.806 38.6597 19.1665 38.9384 19.4303C39.2172 19.694 39.5864 19.841 39.9701 19.841C40.3539 19.841 40.7231 19.694 41.0018 19.4303C41.2806 19.1665 41.4477 18.806 41.469 18.4229H41.4793V7.73322H44.1379C44.4885 7.73322 44.8247 7.59396 45.0726 7.34607C45.3205 7.09817 45.4598 6.76196 45.4598 6.41138C45.4598 6.06081 45.3205 5.7246 45.0726 5.4767C44.8247 5.22881 44.4885 5.08955 44.1379 5.08955V5.09414Z",
563
+ fill: "currentColor"
564
+ }
565
+ ),
566
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
567
+ "path",
568
+ {
569
+ "fill-rule": "evenodd",
570
+ "clip-rule": "evenodd",
571
+ d: "M72.2724 10.154C72.2414 7.48161 70.0678 5.04368 67.3885 5.04368C66.4874 5.04385 65.6039 5.29338 64.8358 5.76464C64.0678 6.2359 63.4451 6.91052 63.0368 7.7138C63.0368 7.7138 63.0368 6.56437 63.0368 6.53334C63.0368 6.13307 62.8778 5.7492 62.5947 5.46617C62.3117 5.18314 61.9278 5.02414 61.5276 5.02414C61.1273 5.02414 60.7434 5.18314 60.4604 5.46617C60.1774 5.7492 60.0184 6.13307 60.0184 6.53334V18.4356H60.0287C60.0499 18.8188 60.2171 19.1793 60.4959 19.443C60.7746 19.7068 61.1438 19.8537 61.5276 19.8537C61.9113 19.8537 62.2805 19.7068 62.5593 19.443C62.838 19.1793 63.0052 18.8188 63.0264 18.4356H63.0368V11.1805L63.0483 11.1989C63.0483 9.47472 64.4414 7.80575 66.1598 7.80575C67.7758 7.80575 69.1046 9.32069 69.2563 10.8977V18.4368H69.2666C69.2879 18.82 69.455 19.1804 69.7338 19.4442C70.0126 19.7079 70.3817 19.8549 70.7655 19.8549C71.1493 19.8549 71.5184 19.7079 71.7972 19.4442C72.076 19.1804 72.2431 18.82 72.2644 18.4368H72.2747V10.154H72.2724Z",
572
+ fill: "currentColor"
573
+ }
574
+ ),
575
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
576
+ "path",
577
+ {
578
+ "fill-rule": "evenodd",
579
+ "clip-rule": "evenodd",
580
+ d: "M55.4322 2.2V1.96897H55.4126C55.2287 0.904602 53.7586 0.0758667 51.9724 0.0758667C50.1862 0.0758667 48.7161 0.905751 48.5322 1.96897H48.5126V4.4046H48.5241C48.6391 5.51035 50.1333 6.38621 51.9724 6.38621C53.8115 6.38621 55.3057 5.51035 55.4207 4.4046H55.431V4.27242L55.4322 2.2ZM54.1678 4.40575C54.1678 4.80115 53.1851 5.12184 51.9724 5.12184C50.7598 5.12184 49.777 4.80115 49.777 4.40575V3.53564C49.777 3.93104 50.7598 4.25173 51.9724 4.25173C53.1851 4.25173 54.1678 3.93104 54.1678 3.53564V4.40575ZM51.9724 3.09426C50.7598 3.09426 49.777 2.69196 49.777 2.19541C49.777 1.69885 50.7598 1.29541 51.9724 1.29541C53.1851 1.29541 54.1678 1.69771 54.1678 2.19541C54.1678 2.69311 53.1839 3.09426 51.9724 3.09426Z",
581
+ fill: "currentColor"
582
+ }
583
+ ),
584
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
585
+ "path",
586
+ {
587
+ "fill-rule": "evenodd",
588
+ "clip-rule": "evenodd",
589
+ d: "M55.4321 17.708V9.16092V9.08046C55.3689 7.94483 53.8482 7.03448 51.9781 7.03448C50.108 7.03448 48.5804 7.94598 48.5172 9.08046H48.5115V17.7012C48.5115 17.7012 48.5115 17.7115 48.5115 17.7161C48.5115 18.8862 50.0609 19.8356 51.9724 19.8356C53.8839 19.8356 55.4333 18.8874 55.4333 17.7161C55.4333 17.7161 55.4333 17.7058 55.4333 17.7012L55.4321 17.708ZM54.1678 17.8954C54.1678 18.2908 53.185 18.6115 51.9724 18.6115C50.7597 18.6115 49.777 18.2908 49.777 17.8954V17.0264C49.777 17.4218 50.7597 17.7425 51.9724 17.7425C53.185 17.7425 54.1678 17.4218 54.1678 17.0264V17.8954ZM54.1678 15.792C54.1678 16.1874 53.185 16.508 51.9724 16.508C50.7597 16.508 49.777 16.1874 49.777 15.792V14.923C49.777 15.3184 50.7597 15.6391 51.9724 15.6391C53.185 15.6391 54.1678 15.3184 54.1678 14.923V15.792ZM54.1678 13.6885C54.1678 14.0839 53.185 14.4046 51.9724 14.4046C50.7597 14.4046 49.777 14.0839 49.777 13.6885V12.8195C49.777 13.2149 50.7597 13.5356 51.9724 13.5356C53.185 13.5356 54.1678 13.2149 54.1678 12.8195V13.6885ZM54.1678 11.5161C54.1678 11.9115 53.185 12.2322 51.9724 12.2322C50.7597 12.2322 49.777 11.9115 49.777 11.5161V10.646C49.777 11.0414 50.7597 11.3621 51.9724 11.3621C53.185 11.3621 54.1678 11.0414 54.1678 10.646V11.5161ZM51.9724 10.0678C50.7597 10.0678 49.777 9.66552 49.777 9.16897C49.777 8.67242 50.7597 8.27012 51.9724 8.27012C53.185 8.27012 54.1678 8.67242 54.1678 9.16897C54.1678 9.66552 53.1839 10.0667 51.9724 10.0667V10.0678Z",
590
+ fill: "currentColor"
591
+ }
592
+ ),
593
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
594
+ "path",
595
+ {
596
+ "fill-rule": "evenodd",
597
+ "clip-rule": "evenodd",
598
+ d: "M88.8885 10.154C88.8574 7.48161 86.6839 5.04368 84.0046 5.04368C83.1039 5.04427 82.2209 5.294 81.4532 5.76524C80.6856 6.23648 80.0633 6.91086 79.6552 7.71379C79.6552 7.71379 79.6552 6.56437 79.6552 6.53333C79.6552 6.13307 79.4962 5.7492 79.2131 5.46617C78.9301 5.18314 78.5462 5.02414 78.146 5.02414C77.7457 5.02414 77.3618 5.18314 77.0788 5.46617C76.7958 5.7492 76.6368 6.13307 76.6368 6.53333V18.4356H76.6471C76.6684 18.8188 76.8355 19.1793 77.1143 19.443C77.393 19.7068 77.7622 19.8537 78.146 19.8537C78.5297 19.8537 78.8989 19.7068 79.1777 19.443C79.4564 19.1793 79.6236 18.8188 79.6448 18.4356H79.6552V11.1805L79.6667 11.1989C79.6667 9.47471 81.0598 7.80575 82.7781 7.80575C84.3942 7.80575 85.723 9.32069 85.8747 10.8977V18.4368H85.885C85.9063 18.8199 86.0734 19.1804 86.3522 19.4442C86.6309 19.7079 87.0001 19.8549 87.3839 19.8549C87.7676 19.8549 88.1368 19.7079 88.4156 19.4442C88.6943 19.1804 88.8615 18.8199 88.8827 18.4368H88.8931V10.154H88.8885Z",
599
+ fill: "currentColor"
600
+ }
601
+ )
602
+ ] }),
603
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("clipPath", { id: "clip0_828_998", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("rect", { width: "88.892", height: "20", fill: "currentColor" }) }) })
604
+ ]
605
+ }
606
+ )
607
+ })
608
+ );
609
+ }
610
+ );
611
+ Branding.displayName = "Branding";
612
+
507
613
  // src/components/Button/Button.tsx
508
- var import_react6 = require("react");
614
+ var import_react7 = require("react");
509
615
 
510
616
  // src/components/Loading/Loading.tsx
511
- var import_react5 = require("react");
512
- var import_jsx_runtime5 = require("react/jsx-runtime");
513
- var Loading = (0, import_react5.forwardRef)(
617
+ var import_react6 = require("react");
618
+ var import_jsx_runtime6 = require("react/jsx-runtime");
619
+ var Loading = (0, import_react6.forwardRef)(
514
620
  (_a, ref) => {
515
621
  var _b = _a, { size = "sm", isDark = false, className = "" } = _b, rest = __objRest(_b, ["size", "isDark", "className"]);
516
622
  const containerClasses = [
517
623
  isDark ? "text-white-100" : "text-blue-600",
518
624
  className
519
625
  ].filter(Boolean).join(" ");
520
- return size === "sm" && !isDark ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
626
+ return size === "sm" && !isDark ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
521
627
  "svg",
522
628
  {
523
629
  className: "animate-spin",
@@ -527,7 +633,7 @@ var Loading = (0, import_react5.forwardRef)(
527
633
  viewBox: "0 0 18 18",
528
634
  fill: "none",
529
635
  children: [
530
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
636
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
531
637
  "path",
532
638
  {
533
639
  d: "M1 9C1 6.87827 1.84286 4.84344 3.34315 3.34315C4.84344 1.84285 6.87827 1 9 1C11.1217 1 13.1566 1.84286 14.6569 3.34315C16.1571 4.84344 17 6.87827 17 9C17 11.1217 16.1571 13.1566 14.6569 14.6569C13.1566 16.1571 11.1217 17 9 17C6.87827 17 4.84344 16.1571 3.34315 14.6569C1.84285 13.1566 1 11.1217 1 9L1 9Z",
@@ -535,7 +641,7 @@ var Loading = (0, import_react5.forwardRef)(
535
641
  "stroke-width": "2"
536
642
  }
537
643
  ),
538
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
644
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
539
645
  "path",
540
646
  {
541
647
  d: "M1 9C1 7.31057 1.53484 5.6645 2.52786 4.29772C3.52089 2.93094 4.92112 1.91361 6.52787 1.39155C8.13461 0.869484 9.86539 0.869484 11.4721 1.39155C13.0789 1.91361 14.4791 2.93094 15.4721 4.29772",
@@ -545,7 +651,7 @@ var Loading = (0, import_react5.forwardRef)(
545
651
  )
546
652
  ]
547
653
  }
548
- ) })) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
654
+ ) })) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
549
655
  "svg",
550
656
  {
551
657
  className: "animate-spin",
@@ -553,7 +659,7 @@ var Loading = (0, import_react5.forwardRef)(
553
659
  height: size === "sm" ? 18 : 88,
554
660
  viewBox: "0 0 20 20",
555
661
  fill: "none",
556
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
662
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
557
663
  "path",
558
664
  {
559
665
  d: "M10 2.5a7.5 7.5 0 1 0 7.5 7.5",
@@ -569,7 +675,7 @@ var Loading = (0, import_react5.forwardRef)(
569
675
  Loading.displayName = "Loading";
570
676
 
571
677
  // src/components/Button/Button.tsx
572
- var import_jsx_runtime6 = require("react/jsx-runtime");
678
+ var import_jsx_runtime7 = require("react/jsx-runtime");
573
679
  var variantClasses = {
574
680
  primary: [
575
681
  "bg-blue-600 text-white-100",
@@ -613,7 +719,7 @@ var sizeClasses3 = {
613
719
  lg: "px-24 py-12 text-label-large",
614
720
  xl: "px-32 py-16 text-label-large"
615
721
  };
616
- var Button = (0, import_react6.forwardRef)(
722
+ var Button = (0, import_react7.forwardRef)(
617
723
  (_a, ref) => {
618
724
  var _b = _a, {
619
725
  variant = "primary",
@@ -648,8 +754,8 @@ var Button = (0, import_react6.forwardRef)(
648
754
  rounded ? "rounded-full" : size === "sm" ? "rounded-6" : size === "xl" ? "rounded-12" : "rounded-8",
649
755
  className
650
756
  ].filter(Boolean).join(" ");
651
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("button", __spreadProps(__spreadValues({ ref, disabled: isDisabled, className: classes }, rest), { children: [
652
- loading ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Loading, { size: "sm", isDark: variant === "primary" || variant === "transparent" }) : startIcon,
757
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("button", __spreadProps(__spreadValues({ ref, disabled: isDisabled, className: classes }, rest), { children: [
758
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Loading, { size: "sm", isDark: variant === "primary" || variant === "transparent" }) : startIcon,
653
759
  children,
654
760
  !loading && endIcon
655
761
  ] }));
@@ -658,10 +764,10 @@ var Button = (0, import_react6.forwardRef)(
658
764
  Button.displayName = "Button";
659
765
 
660
766
  // src/components/BottomSheet/BottomSheet.tsx
661
- var import_react7 = __toESM(require("react"));
767
+ var import_react8 = __toESM(require("react"));
662
768
  var import_react_dom = require("react-dom");
663
- var import_jsx_runtime7 = require("react/jsx-runtime");
664
- var BottomSheet = (0, import_react7.forwardRef)(
769
+ var import_jsx_runtime8 = require("react/jsx-runtime");
770
+ var BottomSheet = (0, import_react8.forwardRef)(
665
771
  (_a, ref) => {
666
772
  var _b = _a, {
667
773
  isForceOpen = false,
@@ -688,10 +794,10 @@ var BottomSheet = (0, import_react7.forwardRef)(
688
794
  "modalDesc",
689
795
  "className"
690
796
  ]);
691
- const [isOpen, setIsOpen] = (0, import_react7.useState)(false);
692
- const [shouldRender, setShouldRender] = (0, import_react7.useState)(false);
693
- const [animate, setAnimate] = (0, import_react7.useState)(false);
694
- (0, import_react7.useEffect)(() => {
797
+ const [isOpen, setIsOpen] = (0, import_react8.useState)(false);
798
+ const [shouldRender, setShouldRender] = (0, import_react8.useState)(false);
799
+ const [animate, setAnimate] = (0, import_react8.useState)(false);
800
+ (0, import_react8.useEffect)(() => {
695
801
  if (isOpen) {
696
802
  setShouldRender(true);
697
803
  setTimeout(() => setAnimate(true), 10);
@@ -701,14 +807,14 @@ var BottomSheet = (0, import_react7.forwardRef)(
701
807
  return () => clearTimeout(timer);
702
808
  }
703
809
  }, [isOpen]);
704
- (0, import_react7.useEffect)(() => {
810
+ (0, import_react8.useEffect)(() => {
705
811
  if (isForceOpen) {
706
812
  setIsOpen(true);
707
813
  } else {
708
814
  setIsOpen(false);
709
815
  }
710
816
  }, [isForceOpen]);
711
- const handleStartClick = (0, import_react7.useCallback)(
817
+ const handleStartClick = (0, import_react8.useCallback)(
712
818
  (e) => {
713
819
  var _a2, _b2;
714
820
  (_b2 = startModalBtn == null ? void 0 : (_a2 = startModalBtn.props).onClick) == null ? void 0 : _b2.call(_a2, e);
@@ -717,7 +823,7 @@ var BottomSheet = (0, import_react7.forwardRef)(
717
823
  },
718
824
  [startModalBtn]
719
825
  );
720
- const handleStopClick = (0, import_react7.useCallback)(
826
+ const handleStopClick = (0, import_react8.useCallback)(
721
827
  (e) => {
722
828
  var _a2, _b2;
723
829
  (_b2 = stopModalBtn == null ? void 0 : (_a2 = stopModalBtn.props).onClick) == null ? void 0 : _b2.call(_a2, e);
@@ -730,19 +836,19 @@ var BottomSheet = (0, import_react7.forwardRef)(
730
836
  setIsForceOpen == null ? void 0 : setIsForceOpen(false);
731
837
  setIsOpen(false);
732
838
  };
733
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { ref, style: { display: "contents" }, children: [
734
- startModalBtn && import_react7.default.cloneElement(startModalBtn, {
839
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { ref, style: { display: "contents" }, children: [
840
+ startModalBtn && import_react8.default.cloneElement(startModalBtn, {
735
841
  onClick: handleStartClick
736
842
  }),
737
843
  shouldRender && (0, import_react_dom.createPortal)(
738
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
844
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
739
845
  "div",
740
846
  {
741
847
  className: `fixed inset-0 z-50 flex items-end justify-center transition-opacity duration-300 ${animate ? "opacity-100" : "opacity-0"}`,
742
848
  "aria-modal": "true",
743
849
  role: "dialog",
744
850
  children: [
745
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
851
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
746
852
  "div",
747
853
  {
748
854
  className: "absolute inset-0 bg-black/40",
@@ -750,26 +856,26 @@ var BottomSheet = (0, import_react7.forwardRef)(
750
856
  "aria-label": "Close modal"
751
857
  }
752
858
  ),
753
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
859
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
754
860
  "div",
755
861
  {
756
862
  className: `flex flex-col z-10 w-full rounded-t-xl bg-white pt-8 pb-16 px-16 shadow-lg transform transition-all duration-300
757
863
  ${size === "sm" ? "h-auto max-h-auto" : size === "md" ? "h-full max-h-[85vh]" : "h-full max-h-screen rounded-t-none!"}
758
864
  ${animate ? "scale-100 translate-y-0" : "scale-95 translate-y-full"}`,
759
865
  children: [
760
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "w-full flex flex-row relative items-center pt-8 pb-16", children: [
761
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col px-8 max-w-225", children: [
762
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "text-heading-3 text-button-sheet-text-primary", children: modalTitle }),
763
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "text-body-small text-button-sheet-text-secondary", children: modalDesc })
866
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "w-full flex flex-row relative items-center pt-8 pb-16", children: [
867
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col px-8 max-w-225", children: [
868
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-heading-3 text-button-sheet-text-primary", children: modalTitle }),
869
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-body-small text-button-sheet-text-secondary", children: modalDesc })
764
870
  ] }),
765
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
871
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
766
872
  "i",
767
873
  {
768
874
  className: "fi fi-br-cross-small flex text-xl text-gray-600 w-44 h-44 absolute top-0 right-0 p-12",
769
875
  onClick: () => handleCloseClick()
770
876
  }
771
877
  ),
772
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
878
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
773
879
  "div",
774
880
  {
775
881
  className: "text-gray-600 text-xl absolute top-0 right-0 p-12",
@@ -778,9 +884,9 @@ var BottomSheet = (0, import_react7.forwardRef)(
778
884
  }
779
885
  )
780
886
  ] }),
781
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "w-full h-full grow overflow-y-auto overflow-x-visible", children: [
887
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "w-full h-full grow overflow-y-auto overflow-x-visible", children: [
782
888
  children,
783
- stopModalBtn && import_react7.default.cloneElement(stopModalBtn, {
889
+ stopModalBtn && import_react8.default.cloneElement(stopModalBtn, {
784
890
  onClick: handleStopClick
785
891
  }),
786
892
  afterStopBtn && afterStopBtn
@@ -799,17 +905,17 @@ var BottomSheet = (0, import_react7.forwardRef)(
799
905
  BottomSheet.displayName = "BottomSheet";
800
906
 
801
907
  // src/components/Checkbox/Checkbox.tsx
802
- var import_react8 = require("react");
803
- var import_jsx_runtime8 = require("react/jsx-runtime");
908
+ var import_react9 = require("react");
909
+ var import_jsx_runtime9 = require("react/jsx-runtime");
804
910
  function CheckIcon({ className }) {
805
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
911
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
806
912
  "svg",
807
913
  {
808
914
  className,
809
915
  viewBox: "0 0 16 16",
810
916
  fill: "none",
811
917
  "aria-hidden": "true",
812
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
918
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
813
919
  "path",
814
920
  {
815
921
  d: "M13.333 4.667 6 12l-3.333-3.333",
@@ -823,14 +929,14 @@ function CheckIcon({ className }) {
823
929
  );
824
930
  }
825
931
  function IndeterminateIcon({ className }) {
826
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
932
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
827
933
  "svg",
828
934
  {
829
935
  className,
830
936
  viewBox: "0 0 16 16",
831
937
  fill: "none",
832
938
  "aria-hidden": "true",
833
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
939
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
834
940
  "path",
835
941
  {
836
942
  d: "M3.333 8h9.334",
@@ -842,7 +948,7 @@ function IndeterminateIcon({ className }) {
842
948
  }
843
949
  );
844
950
  }
845
- var Checkbox = (0, import_react8.forwardRef)(
951
+ var Checkbox = (0, import_react9.forwardRef)(
846
952
  (_a, ref) => {
847
953
  var _b = _a, {
848
954
  label,
@@ -865,17 +971,17 @@ var Checkbox = (0, import_react8.forwardRef)(
865
971
  "id",
866
972
  "defaultChecked"
867
973
  ]);
868
- const reactId = (0, import_react8.useId)();
974
+ const reactId = (0, import_react9.useId)();
869
975
  const inputId = id != null ? id : reactId;
870
- const [isChecked, setIsChecked] = (0, import_react8.useState)(defaultChecked != null ? defaultChecked : false);
871
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
976
+ const [isChecked, setIsChecked] = (0, import_react9.useState)(defaultChecked != null ? defaultChecked : false);
977
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
872
978
  "label",
873
979
  {
874
980
  htmlFor: inputId,
875
981
  className: `flex select-none font-sans ${disabled ? "cursor-not-allowed" : "cursor-pointer"} ${className}`,
876
982
  children: [
877
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "relative mr-16", children: [
878
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
983
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "relative mr-16", children: [
984
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
879
985
  "input",
880
986
  __spreadValues({
881
987
  ref,
@@ -892,16 +998,16 @@ var Checkbox = (0, import_react8.forwardRef)(
892
998
  className: "sr-only"
893
999
  }, rest)
894
1000
  ),
895
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1001
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
896
1002
  "div",
897
1003
  {
898
1004
  className: `box m-6 flex h-20 w-20 rounded-md items-center justify-center border ${contrast ? isChecked || indeterminate ? "border-white bg-white" : "border-white" : isChecked || indeterminate ? "bg-static-icon-brand border-static-icon-brand" : "border-static-icon-primary"}`,
899
- children: isChecked ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1005
+ children: isChecked ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
900
1006
  CheckIcon,
901
1007
  {
902
1008
  className: `h-20 ${contrast ? "text-static-icon-brand" : "text-white"}`
903
1009
  }
904
- ) : indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1010
+ ) : indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
905
1011
  IndeterminateIcon,
906
1012
  {
907
1013
  className: `h-20 ${contrast ? "text-static-icon-brand" : "text-white"}`
@@ -910,15 +1016,15 @@ var Checkbox = (0, import_react8.forwardRef)(
910
1016
  }
911
1017
  )
912
1018
  ] }),
913
- (label || description) && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "flex flex-col", children: [
914
- label && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1019
+ (label || description) && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex flex-col", children: [
1020
+ label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
915
1021
  "span",
916
1022
  {
917
1023
  className: `text-label-large ${disabled ? "text-checkbox-text-disabled" : contrast ? "text-checkbox-text-primary-inverse" : "text-checkbox-text-primary"}`,
918
1024
  children: label
919
1025
  }
920
1026
  ),
921
- description && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1027
+ description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
922
1028
  "span",
923
1029
  {
924
1030
  className: `text-body-small ${error ? "text-checkbox-text-danger" : disabled ? "text-checkbox-text-disabled" : contrast ? "text-checkbox-text-primary-inverse" : "text-checkbox-text-secondary"}`,
@@ -933,11 +1039,86 @@ var Checkbox = (0, import_react8.forwardRef)(
933
1039
  );
934
1040
  Checkbox.displayName = "Checkbox";
935
1041
 
1042
+ // src/components/Chip/Chip.tsx
1043
+ var import_react10 = require("react");
1044
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1045
+ var sizeClasses4 = {
1046
+ sm: "h-32 text-label-medium px-12 py-6",
1047
+ md: "h-40 text-label-large px-16 py-10",
1048
+ lg: "h-48 text-label-large px-24 py-14"
1049
+ };
1050
+ var marginImgClasses = {
1051
+ sm: "-ml-10 -my-4 h-28 w-28",
1052
+ md: "-ml-12 -my-6 h-32 w-32",
1053
+ lg: "-ml-18 -my-8 h-32 w-32"
1054
+ };
1055
+ var isOutlinedClasses = {
1056
+ true: "border border-chip-border-enabled bg-chip-background-inverse",
1057
+ false: "border-0 bg-chip-background-enabled"
1058
+ };
1059
+ var isDarkClasses = {
1060
+ true: "!bg-chip-background-black-active !text-chip-text-inverse",
1061
+ false: "!bg-chip-background-active !text-chip-text-inverse"
1062
+ };
1063
+ var Chip = (0, import_react10.forwardRef)(
1064
+ (_a, ref) => {
1065
+ var _b = _a, {
1066
+ size = "md",
1067
+ src,
1068
+ alt = "",
1069
+ label,
1070
+ icon,
1071
+ isOutlined = false,
1072
+ isDark = false,
1073
+ defaultSelected = false,
1074
+ disabled = false,
1075
+ className = ""
1076
+ } = _b, rest = __objRest(_b, [
1077
+ "size",
1078
+ "src",
1079
+ "alt",
1080
+ "label",
1081
+ "icon",
1082
+ "isOutlined",
1083
+ "isDark",
1084
+ "defaultSelected",
1085
+ "disabled",
1086
+ "className"
1087
+ ]);
1088
+ const [selected, setSelected] = (0, import_react10.useState)(defaultSelected);
1089
+ const sz = sizeClasses4[size];
1090
+ const outlinedClass = isOutlinedClasses[String(isOutlined)];
1091
+ const darkClass = isDarkClasses[String(isDark)];
1092
+ const containerClasses = [
1093
+ "w-fit rounded-full flex flex-row gap-8 items-center justify-center text-chip-text-enabled",
1094
+ disabled ? "cursor-not-allowed" : "cursor-pointer",
1095
+ outlinedClass,
1096
+ sz,
1097
+ className,
1098
+ selected ? darkClass : ""
1099
+ ].filter(Boolean).join(" ");
1100
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1101
+ "div",
1102
+ __spreadProps(__spreadValues({
1103
+ ref,
1104
+ className: containerClasses
1105
+ }, rest), {
1106
+ onClick: () => !disabled && setSelected(!selected),
1107
+ children: [
1108
+ icon ? icon : src && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("img", { src, alt, className: `${marginImgClasses[size]} rounded-full` }),
1109
+ label
1110
+ ]
1111
+ })
1112
+ );
1113
+ }
1114
+ );
1115
+ Chip.displayName = "Chip";
1116
+
936
1117
  // src/components/Dialog/Dialog.tsx
937
- var import_react9 = __toESM(require("react"));
1118
+ var import_react11 = __toESM(require("react"));
938
1119
  var import_react_dom2 = require("react-dom");
939
- var import_jsx_runtime9 = require("react/jsx-runtime");
940
- var Dialog = (0, import_react9.forwardRef)(
1120
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1121
+ var Dialog = (0, import_react11.forwardRef)(
941
1122
  ({
942
1123
  isForceOpen = false,
943
1124
  setIsForceOpen,
@@ -947,12 +1128,13 @@ var Dialog = (0, import_react9.forwardRef)(
947
1128
  startModalBtn,
948
1129
  stopModalBtn,
949
1130
  afterStopBtn,
950
- p = "20"
1131
+ p = "20",
1132
+ maxW = "md"
951
1133
  }, ref) => {
952
- const [isOpen, setIsOpen] = (0, import_react9.useState)(false);
953
- const [isRender, setIsRender] = (0, import_react9.useState)(false);
954
- const [animate, setAnimate] = (0, import_react9.useState)(false);
955
- (0, import_react9.useEffect)(() => {
1134
+ const [isOpen, setIsOpen] = (0, import_react11.useState)(false);
1135
+ const [isRender, setIsRender] = (0, import_react11.useState)(false);
1136
+ const [animate, setAnimate] = (0, import_react11.useState)(false);
1137
+ (0, import_react11.useEffect)(() => {
956
1138
  if (isOpen) {
957
1139
  setIsRender(true);
958
1140
  setTimeout(() => setAnimate(true), 10);
@@ -962,14 +1144,14 @@ var Dialog = (0, import_react9.forwardRef)(
962
1144
  return () => clearTimeout(timer);
963
1145
  }
964
1146
  }, [isOpen]);
965
- (0, import_react9.useEffect)(() => {
1147
+ (0, import_react11.useEffect)(() => {
966
1148
  if (isForceOpen) {
967
1149
  setIsOpen(true);
968
1150
  } else {
969
1151
  setIsOpen(false);
970
1152
  }
971
1153
  }, [isForceOpen]);
972
- const handleStartClick = (0, import_react9.useCallback)(
1154
+ const handleStartClick = (0, import_react11.useCallback)(
973
1155
  (e) => {
974
1156
  var _a, _b;
975
1157
  (_b = startModalBtn == null ? void 0 : (_a = startModalBtn.props).onClick) == null ? void 0 : _b.call(_a, e);
@@ -978,7 +1160,7 @@ var Dialog = (0, import_react9.forwardRef)(
978
1160
  },
979
1161
  [startModalBtn]
980
1162
  );
981
- const handleStopClick = (0, import_react9.useCallback)(
1163
+ const handleStopClick = (0, import_react11.useCallback)(
982
1164
  (e) => {
983
1165
  var _a, _b;
984
1166
  (_b = stopModalBtn == null ? void 0 : (_a = stopModalBtn.props).onClick) == null ? void 0 : _b.call(_a, e);
@@ -991,19 +1173,19 @@ var Dialog = (0, import_react9.forwardRef)(
991
1173
  setIsForceOpen == null ? void 0 : setIsForceOpen(false);
992
1174
  setIsOpen(false);
993
1175
  };
994
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { ref, style: { display: "contents" }, children: [
995
- startModalBtn && import_react9.default.cloneElement(startModalBtn, {
1176
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { ref, style: { display: "contents" }, children: [
1177
+ startModalBtn && import_react11.default.cloneElement(startModalBtn, {
996
1178
  onClick: handleStartClick
997
1179
  }),
998
1180
  isRender && (0, import_react_dom2.createPortal)(
999
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1181
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1000
1182
  "div",
1001
1183
  {
1002
1184
  className: `fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300 ${animate ? "opacity-100" : "opacity-0"}`,
1003
1185
  "aria-modal": "true",
1004
1186
  role: "dialog",
1005
1187
  children: [
1006
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1188
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1007
1189
  "div",
1008
1190
  {
1009
1191
  className: "absolute inset-0 bg-black/40",
@@ -1011,12 +1193,12 @@ var Dialog = (0, import_react9.forwardRef)(
1011
1193
  "aria-label": "Close modal"
1012
1194
  }
1013
1195
  ),
1014
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1196
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1015
1197
  "div",
1016
1198
  {
1017
- className: `relative z-10 w-[calc(100%-40px)] max-w-md rounded-xl bg-white p-${p || "20"} shadow-lg transform transition-all duration-300 ${animate ? "scale-100 opacity-100" : "scale-95 opacity-0"}`,
1199
+ className: `relative z-10 w-[calc(100%-40px)] max-w-${maxW} rounded-xl bg-white p-${p || "20"} shadow-lg transform transition-all duration-300 ${animate ? "scale-100 opacity-100" : "scale-95 opacity-0"}`,
1018
1200
  children: [
1019
- isCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1201
+ isCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1020
1202
  "svg",
1021
1203
  {
1022
1204
  xmlns: "http://www.w3.org/2000/svg",
@@ -1029,7 +1211,7 @@ var Dialog = (0, import_react9.forwardRef)(
1029
1211
  e.preventDefault();
1030
1212
  handleCloseClick();
1031
1213
  },
1032
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1214
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1033
1215
  "path",
1034
1216
  {
1035
1217
  d: "M14.7119 6.0625L10.7744 10L14.7119 13.9375L13.9375 14.7119L10 10.7744L6.0625 14.7119L5.28809 13.9375L9.22559 10L5.28809 6.0625L6.0625 5.28809L10 9.22559L13.9375 5.28809L14.7119 6.0625Z",
@@ -1039,7 +1221,7 @@ var Dialog = (0, import_react9.forwardRef)(
1039
1221
  }
1040
1222
  ),
1041
1223
  children,
1042
- stopModalBtn && import_react9.default.cloneElement(stopModalBtn, {
1224
+ stopModalBtn && import_react11.default.cloneElement(stopModalBtn, {
1043
1225
  onClick: handleStopClick
1044
1226
  }),
1045
1227
  afterStopBtn && afterStopBtn
@@ -1056,10 +1238,342 @@ var Dialog = (0, import_react9.forwardRef)(
1056
1238
  );
1057
1239
  Dialog.displayName = "Dialog";
1058
1240
 
1241
+ // src/components/Dropdown/Dropdown.tsx
1242
+ var import_react12 = require("react");
1243
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1244
+ var IconDanger = () => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1245
+ "svg",
1246
+ {
1247
+ xmlns: "http://www.w3.org/2000/svg",
1248
+ width: "20",
1249
+ height: "20",
1250
+ viewBox: "0 0 20 20",
1251
+ fill: "none",
1252
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1253
+ "path",
1254
+ {
1255
+ d: "M10.0078 2.41699C11.0548 2.41699 12.0363 2.61407 12.9512 3.00879C13.8657 3.40341 14.6687 3.94646 15.3604 4.6377C16.0522 5.32922 16.5962 6.13426 16.9912 7.05176C17.386 7.96936 17.583 8.95002 17.583 9.99316C17.583 11.0363 17.3859 12.0187 16.9912 12.9404C16.5966 13.862 16.0536 14.6687 15.3623 15.3604C14.6708 16.0522 13.8657 16.5962 12.9482 16.9912C12.0306 17.386 11.05 17.583 10.0068 17.583C8.96373 17.583 7.9813 17.3859 7.05957 16.9912C6.13798 16.5966 5.33135 16.0536 4.63965 15.3623C3.94784 14.6708 3.40379 13.8642 3.00879 12.9434C2.61398 12.0228 2.41703 11.039 2.41699 9.99219C2.41699 8.94524 2.61407 7.96369 3.00879 7.04883C3.40341 6.13429 3.94646 5.33128 4.6377 4.63965C5.32922 3.94784 6.13581 3.40379 7.05664 3.00879C7.97723 2.61398 8.961 2.41703 10.0078 2.41699ZM10.0039 12.5967C9.83828 12.5968 9.69804 12.6527 9.58301 12.7646C9.46793 12.8769 9.41016 13.0159 9.41016 13.1816C9.4102 13.3472 9.46621 13.4875 9.57812 13.6025C9.69035 13.7177 9.83026 13.7754 9.99609 13.7754C10.1617 13.7753 10.302 13.7195 10.417 13.6074C10.5321 13.4952 10.5898 13.3562 10.5898 13.1904C10.5898 13.0246 10.534 12.8837 10.4219 12.7686C10.3097 12.6536 10.1697 12.5967 10.0039 12.5967ZM9.45801 11.0645H10.542V6.06445H9.45801V11.0645Z",
1256
+ fill: "#EF4444"
1257
+ }
1258
+ )
1259
+ }
1260
+ );
1261
+ function IconCheck({ className }) {
1262
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1263
+ "svg",
1264
+ {
1265
+ xmlns: "http://www.w3.org/2000/svg",
1266
+ width: "20",
1267
+ height: "20",
1268
+ viewBox: "0 0 20 20",
1269
+ fill: "none",
1270
+ className,
1271
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1272
+ "path",
1273
+ {
1274
+ d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
1275
+ fill: "#111827"
1276
+ }
1277
+ )
1278
+ }
1279
+ );
1280
+ }
1281
+ function ChevronDown({ className }) {
1282
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1283
+ "svg",
1284
+ {
1285
+ xmlns: "http://www.w3.org/2000/svg",
1286
+ width: "20",
1287
+ height: "20",
1288
+ viewBox: "0 0 20 20",
1289
+ fill: "none",
1290
+ className,
1291
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1292
+ "path",
1293
+ {
1294
+ d: "M14.7119 8.0625L10 12.7744L5.28809 8.0625L6.0625 7.28809L10 11.2256L13.9375 7.28809L14.7119 8.0625Z",
1295
+ fill: "#111827"
1296
+ }
1297
+ )
1298
+ }
1299
+ );
1300
+ }
1301
+ var Dropdown = ({
1302
+ error,
1303
+ label,
1304
+ placeholder,
1305
+ isDisabled = false,
1306
+ isSearchable = false,
1307
+ isTextCenter = false,
1308
+ value,
1309
+ setValue,
1310
+ dropDownItems = [
1311
+ { label: "Bonnie Green", value: "Bonnie Green" },
1312
+ { label: "Jese Leos", value: "Jese Leos" },
1313
+ { label: "Joseph Mcfall", value: "Joseph Mcfall" },
1314
+ { label: "John Smith", value: "John Smith" },
1315
+ { label: "Maria Garcia", value: "Maria Garcia" }
1316
+ ]
1317
+ }) => {
1318
+ const [isOpen, setIsOpen] = (0, import_react12.useState)(false);
1319
+ const [search, setSearch] = (0, import_react12.useState)("");
1320
+ const dropdownRef = (0, import_react12.useRef)(null);
1321
+ const filteredItems = dropDownItems.filter(
1322
+ (item) => item.label.toLowerCase().includes(search.toLowerCase())
1323
+ );
1324
+ (0, import_react12.useEffect)(() => {
1325
+ function handleClickOutside(event) {
1326
+ if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
1327
+ setIsOpen(false);
1328
+ }
1329
+ }
1330
+ document.addEventListener("mousedown", handleClickOutside);
1331
+ return () => {
1332
+ document.removeEventListener("mousedown", handleClickOutside);
1333
+ };
1334
+ }, []);
1335
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "w-full", children: [
1336
+ label ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1337
+ "p",
1338
+ {
1339
+ className: `text-label-medium text-left items-left font-medium mb-4 ${isDisabled ? "text-dropdown-text-disabled" : "text-dropdown-text-primary"}`,
1340
+ children: label
1341
+ }
1342
+ ) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {}),
1343
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "w-full flex flex-col relative", ref: dropdownRef, children: [
1344
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1345
+ "button",
1346
+ {
1347
+ onClick: () => !isDisabled && setIsOpen(!isOpen),
1348
+ className: `w-full rounded-md text-body-small px-16 py-10 text-center inline-flex gap-8 items-center border **:focus:outline-none focus:border-2 focus:px-15 focus:py-9
1349
+ ${isDisabled ? "pointer-events-none bg-dropdown-background-disabled text-dropdown-text-disabled border-dropdown-border-disabled" : error ? "border-red-600 bg-dropdown-background-enabled focus:border-red-600" : value ? "text-dropdown-text-primary bg-dropdown-background-enabled border-dropdown-border-enabled focus:border-dropdown-border-active " : "text-dropdown-text-secondary bg-dropdown-background-enabled border-dropdown-border-enabled focus:border-dropdown-border-active "} `,
1350
+ type: "button",
1351
+ children: [
1352
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: `grow ${isTextCenter ? "text-center" : "text-start"}`, children: value.label || placeholder }),
1353
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center gap-8", children: [
1354
+ isDisabled ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {}) : error ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(IconDanger, {}) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {}),
1355
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1356
+ ChevronDown,
1357
+ {
1358
+ className: `h-20 w-20 duration-300 ${isOpen ? "rotate-180" : ""}`
1359
+ }
1360
+ )
1361
+ ] })
1362
+ ]
1363
+ }
1364
+ ),
1365
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1366
+ "div",
1367
+ {
1368
+ id: "dropdownSearch",
1369
+ className: `${isOpen ? "flex" : "hidden"} top-[calc(100%+4px)] left-8 absolute z-10000 bg-white-100 rounded-lg shadow-base w-9/10 min-w-fit flex-col`,
1370
+ children: [
1371
+ isSearchable ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "p-3", children: [
1372
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("label", { htmlFor: "input-group-search", className: "sr-only", children: "Search" }),
1373
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "relative", children: [
1374
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "absolute inset-y-0 rtl:inset-r-0 inset-s-0 flex items-center ps-12 pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1375
+ "svg",
1376
+ {
1377
+ xmlns: "http://www.w3.org/2000/svg",
1378
+ width: "20",
1379
+ height: "20",
1380
+ viewBox: "0 0 20 20",
1381
+ fill: "none",
1382
+ children: [
1383
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1384
+ "mask",
1385
+ {
1386
+ id: "mask0_3218_5077",
1387
+ style: { maskType: "alpha" },
1388
+ maskUnits: "userSpaceOnUse",
1389
+ x: "0",
1390
+ y: "0",
1391
+ width: "20",
1392
+ height: "20",
1393
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("rect", { width: "20", height: "20", fill: "#D9D9D9" })
1394
+ }
1395
+ ),
1396
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("g", { mask: "url(#mask0_3218_5077)", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1397
+ "path",
1398
+ {
1399
+ d: "M15.8894 16.6476L10.9263 11.6842C10.5096 12.0005 10.0527 12.2454 9.55563 12.419C9.05855 12.5926 8.54556 12.6794 8.01667 12.6794C6.7182 12.6794 5.61354 12.2241 4.70271 11.3134C3.79202 10.4026 3.33667 9.29811 3.33667 8.00005C3.33667 6.702 3.79202 5.59755 4.70271 4.68672C5.61354 3.77603 6.71799 3.32068 8.01604 3.32068C9.3141 3.32068 10.4185 3.77603 11.3294 4.68672C12.2401 5.59755 12.6954 6.70221 12.6954 8.00068C12.6954 8.54554 12.606 9.06651 12.4271 9.56359C12.2481 10.0608 12.0058 10.5097 11.7002 10.9103L16.6633 15.8734L15.8894 16.6476ZM8.01604 11.5963C9.02035 11.5963 9.87077 11.248 10.5673 10.5513C11.264 9.85478 11.6123 9.00436 11.6123 8.00005C11.6123 6.99575 11.264 6.14533 10.5673 5.4488C9.87077 4.75214 9.02035 4.4038 8.01604 4.4038C7.01174 4.4038 6.16132 4.75214 5.46479 5.4488C4.76813 6.14533 4.41979 6.99575 4.41979 8.00005C4.41979 9.00436 4.76813 9.85478 5.46479 10.5513C6.16132 11.248 7.01174 11.5963 8.01604 11.5963Z",
1400
+ fill: "#111827"
1401
+ }
1402
+ ) })
1403
+ ]
1404
+ }
1405
+ ) }),
1406
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1407
+ "input",
1408
+ {
1409
+ type: "text",
1410
+ className: "block w-full p-8 ps-40 text-body-small text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-bubblegum focus:border-bubblegum",
1411
+ placeholder: "Search...",
1412
+ value: search,
1413
+ onChange: (e) => setSearch(e.target.value)
1414
+ }
1415
+ )
1416
+ ] })
1417
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {}),
1418
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1419
+ "ul",
1420
+ {
1421
+ className: "h-auto max-h-392 overflow-y-auto cursor-pointer",
1422
+ "aria-labelledby": "dropdownSearchButton",
1423
+ children: filteredItems.length > 0 ? filteredItems.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1424
+ "div",
1425
+ {
1426
+ onClick: () => {
1427
+ setValue(item);
1428
+ setSearch("");
1429
+ setIsOpen(false);
1430
+ },
1431
+ className: "relative text-gray-900 py-12 px-16 rounded-sm text-label-medium hover:bg-gray-100",
1432
+ children: [
1433
+ item.label,
1434
+ value.value === item.value && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(IconCheck, { className: "absolute h-20 w-20 right-24 top-2 translate-y-1/2" })
1435
+ ]
1436
+ }
1437
+ ) }, idx)) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("li", { className: "px-8 py-8 text-label-medium text-gray-900", children: "No results found" })
1438
+ }
1439
+ )
1440
+ ]
1441
+ }
1442
+ )
1443
+ ] }),
1444
+ error ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1445
+ "p",
1446
+ {
1447
+ className: `text-caption-caption text-left items-left text-dropdown-text-danger mt-4 ${isDisabled ? "hidden" : ""}`,
1448
+ children: error
1449
+ }
1450
+ ) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {})
1451
+ ] });
1452
+ };
1453
+ Dropdown.displayName = "Dropdown";
1454
+
1455
+ // src/components/FinancialLogo/FinancialLogo.tsx
1456
+ var import_react13 = require("react");
1457
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1458
+ var inlineClasses2 = {
1459
+ info: "bg-alert-inline-info-bg border-alert-inline-info-border text-alert-text-primary",
1460
+ success: "bg-alert-inline-success-bg border-alert-inline-success-border text-alert-text-primary",
1461
+ warning: "bg-alert-inline-warning-bg border-alert-inline-warning-border text-alert-text-primary",
1462
+ danger: "bg-alert-inline-danger-bg border-alert-inline-danger-border text-alert-text-primary",
1463
+ common: "bg-alert-inline-common-bg border-alert-inline-common-border text-alert-text-primary"
1464
+ };
1465
+ var pageClasses2 = {
1466
+ info: "bg-alert-page-info-bg text-alert-text-primary-inverse",
1467
+ success: "bg-alert-page-success-bg text-alert-text-primary-inverse",
1468
+ warning: "bg-alert-page-warning-bg text-alert-text-primary-inverse",
1469
+ danger: "bg-alert-page-danger-bg text-alert-text-primary-inverse",
1470
+ common: "bg-alert-page-common-bg text-alert-text-primary-inverse"
1471
+ };
1472
+ var actionsPageClasses2 = {
1473
+ info: "text-enabled-inverse",
1474
+ success: "text-enabled-inverse",
1475
+ warning: "text-enabled-dark",
1476
+ danger: "text-enabled-inverse",
1477
+ common: "text-enabled-inverse"
1478
+ };
1479
+ var inlineIconClasses2 = {
1480
+ info: "text-alert-inline-info-icon",
1481
+ success: "text-alert-inline-success-icon",
1482
+ warning: "text-alert-inline-warning-icon",
1483
+ danger: "text-alert-inline-danger-icon",
1484
+ common: "text-alert-inline-common-icon"
1485
+ };
1486
+ function InfoIcon2({ className }) {
1487
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM10 6h.01M9 10h1v4h1", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1488
+ }
1489
+ function SuccessIcon2({ className }) {
1490
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1491
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z", stroke: "currentColor", strokeWidth: "1.5" }),
1492
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
1493
+ ] });
1494
+ }
1495
+ function WarningIcon2({ className }) {
1496
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M8.57 3.22 1.53 15.5a1.67 1.67 0 0 0 1.43 2.5h14.08a1.67 1.67 0 0 0 1.43-2.5L11.43 3.22a1.67 1.67 0 0 0-2.86 0ZM10 7.5v3.33M10 14.17h.01", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1497
+ }
1498
+ function DangerIcon2({ className }) {
1499
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM12.5 7.5l-5 5M7.5 7.5l5 5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1500
+ }
1501
+ function CommonIcon({ className }) {
1502
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM10 6v4M10 14h.01", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1503
+ }
1504
+ function CloseIcon2({ className }) {
1505
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1506
+ }
1507
+ var defaultIcons2 = {
1508
+ info: InfoIcon2,
1509
+ success: SuccessIcon2,
1510
+ warning: WarningIcon2,
1511
+ danger: DangerIcon2,
1512
+ common: CommonIcon
1513
+ };
1514
+ var FinancialLogo = (0, import_react13.forwardRef)(
1515
+ (_a, ref) => {
1516
+ var _b = _a, {
1517
+ variant = "info",
1518
+ mode = "inline",
1519
+ title,
1520
+ description,
1521
+ action,
1522
+ icon,
1523
+ onClose,
1524
+ className = "",
1525
+ children
1526
+ } = _b, rest = __objRest(_b, [
1527
+ "variant",
1528
+ "mode",
1529
+ "title",
1530
+ "description",
1531
+ "action",
1532
+ "icon",
1533
+ "onClose",
1534
+ "className",
1535
+ "children"
1536
+ ]);
1537
+ const isPage = mode === "page";
1538
+ const variantClass = isPage ? pageClasses2[variant] : inlineClasses2[variant];
1539
+ const actionClass = isPage ? actionsPageClasses2[variant] : "text-enabled";
1540
+ const DefaultIcon = defaultIcons2[variant];
1541
+ const iconColorClass = isPage ? "" : inlineIconClasses2[variant];
1542
+ const descColorClass = isPage ? "text-alert-text-secondary-inverse" : "text-alert-text-secondary";
1543
+ const closeColorClass = isPage ? "text-alert-close-inverse hover:text-alert-close-inverse-hover" : "text-alert-close hover:text-alert-close-hover";
1544
+ const classes = [
1545
+ "flex items-start gap-12 font-sans",
1546
+ isPage ? "px-16 py-12" : "px-16 py-12 border-l-4 rounded-lg",
1547
+ variantClass,
1548
+ className
1549
+ ].filter(Boolean).join(" ");
1550
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: classes }, rest), { children: [
1551
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: `shrink-0 mt-2 ${iconColorClass}`, children: icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DefaultIcon, { className: "h-20 w-20" }) }),
1552
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex-1 min-w-0", children: [
1553
+ title && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-sm font-medium leading-20", children: title }),
1554
+ description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: `text-sm leading-20 ${descColorClass} ${title ? "mt-4" : ""}`, children: description }),
1555
+ children
1556
+ ] }),
1557
+ action && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: `${actionClass} underline text-sm font-medium`, children: action }),
1558
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1559
+ "button",
1560
+ {
1561
+ type: "button",
1562
+ onClick: onClose,
1563
+ className: `shrink-0 p-2 rounded transition-colors ${closeColorClass}`,
1564
+ "aria-label": "Close",
1565
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CloseIcon2, { className: "h-16 w-16" })
1566
+ }
1567
+ )
1568
+ ] }));
1569
+ }
1570
+ );
1571
+ FinancialLogo.displayName = "FinancialLogo";
1572
+
1059
1573
  // src/components/Icon/Icon.tsx
1060
- var import_react10 = require("react");
1061
- var import_jsx_runtime10 = require("react/jsx-runtime");
1062
- var Icon = (0, import_react10.forwardRef)(
1574
+ var import_react14 = require("react");
1575
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1576
+ var Icon = (0, import_react14.forwardRef)(
1063
1577
  (_a, ref) => {
1064
1578
  var _b = _a, {
1065
1579
  name,
@@ -1087,7 +1601,7 @@ var Icon = (0, import_react10.forwardRef)(
1087
1601
  "material-symbols-outlined select-none shrink-0 inline-block leading-none",
1088
1602
  className
1089
1603
  ].filter(Boolean).join(" ");
1090
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1604
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1091
1605
  "span",
1092
1606
  __spreadProps(__spreadValues({
1093
1607
  ref,
@@ -1109,10 +1623,78 @@ var Icon = (0, import_react10.forwardRef)(
1109
1623
  );
1110
1624
  Icon.displayName = "Icon";
1111
1625
 
1626
+ // src/components/Link/Link.tsx
1627
+ var import_react15 = require("react");
1628
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1629
+ var linkStyleClasses = {
1630
+ brand: "font-sans text-link-text-enabled",
1631
+ white: "font-sans text-link-text-enabled-inverse",
1632
+ black: "font-sans text-link-text-enabled-dark",
1633
+ brandLooped: "font-looped text-link-text-enabled",
1634
+ whiteLooped: "font-looped text-link-text-enabled-inverse",
1635
+ blackLooped: "font-looped text-link-text-enabled-dark"
1636
+ };
1637
+ var linkVariantClasses = {
1638
+ xs: "text-link-extra-small gap-2",
1639
+ sm: "text-link-small gap-2",
1640
+ md: "text-link-medium gap-2",
1641
+ lg: "text-link-large gap-4"
1642
+ };
1643
+ var iconVariantClasses = {
1644
+ xs: "w-20 h-20",
1645
+ sm: "w-20 h-20",
1646
+ md: "w-20 h-20",
1647
+ lg: "w-24 h-24"
1648
+ };
1649
+ function SuccessIcon3({ className }) {
1650
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1651
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z", stroke: "currentColor", strokeWidth: "1.5" }),
1652
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
1653
+ ] });
1654
+ }
1655
+ var Link = (0, import_react15.forwardRef)(
1656
+ (_a, ref) => {
1657
+ var _b = _a, {
1658
+ variant = "sm",
1659
+ isInline = false,
1660
+ linkStyle = "brand",
1661
+ text,
1662
+ href,
1663
+ icon = true,
1664
+ className = "",
1665
+ children
1666
+ } = _b, rest = __objRest(_b, [
1667
+ "variant",
1668
+ "isInline",
1669
+ "linkStyle",
1670
+ "text",
1671
+ "href",
1672
+ "icon",
1673
+ "className",
1674
+ "children"
1675
+ ]);
1676
+ const styleClass = linkStyleClasses[linkStyle];
1677
+ const variantClass = linkVariantClasses[variant];
1678
+ const iconClass = iconVariantClasses[variant];
1679
+ const classes = [
1680
+ "flex items-center",
1681
+ isInline ? "underline" : "",
1682
+ styleClass,
1683
+ variantClass,
1684
+ className
1685
+ ].filter(Boolean).join(" ");
1686
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "link", className: classes }, rest), { children: [
1687
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("a", { className: "", href, children: text }),
1688
+ icon && !isInline ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(SuccessIcon3, { className: iconClass }) : null
1689
+ ] }));
1690
+ }
1691
+ );
1692
+ Link.displayName = "Link";
1693
+
1112
1694
  // src/components/Radio/Radio.tsx
1113
- var import_react11 = require("react");
1114
- var import_jsx_runtime11 = require("react/jsx-runtime");
1115
- var Radio = (0, import_react11.forwardRef)(
1695
+ var import_react16 = require("react");
1696
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1697
+ var Radio = (0, import_react16.forwardRef)(
1116
1698
  (_a, ref) => {
1117
1699
  var _b = _a, {
1118
1700
  size = "sm",
@@ -1137,20 +1719,20 @@ var Radio = (0, import_react11.forwardRef)(
1137
1719
  "id",
1138
1720
  "name"
1139
1721
  ]);
1140
- const reactId = (0, import_react11.useId)();
1722
+ const reactId = (0, import_react16.useId)();
1141
1723
  const inputId = id != null ? id : reactId;
1142
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1724
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1143
1725
  "div",
1144
1726
  {
1145
1727
  className: `${disabled ? "cursor-not-allowed" : "cursor-pointer"} ${className}`,
1146
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1728
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1147
1729
  "label",
1148
1730
  {
1149
1731
  htmlFor: inputId,
1150
1732
  className: `flex gap-4 ${disabled ? "pointer-events-none text-gray-400" : "text-gray-900 cursor-pointer"}`,
1151
1733
  children: [
1152
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { children: [
1153
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1734
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
1735
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1154
1736
  "input",
1155
1737
  __spreadValues({
1156
1738
  ref,
@@ -1163,14 +1745,14 @@ var Radio = (0, import_react11.forwardRef)(
1163
1745
  name
1164
1746
  }, rest)
1165
1747
  ),
1166
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1748
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1167
1749
  "div",
1168
1750
  {
1169
1751
  className: `relative box flex items-center justify-center rounded-full border-2 group bg-white
1170
1752
  ${size === "sm" ? "h-16 w-16 my-4 ml-3 mr-3" : "m-3 h-20 w-20 text-label-large"}
1171
1753
  ${error ? "border-red-500" : "border-gray-600 peer-checked:border-blue-600 peer-disabled:border-gray-400!"}
1172
1754
  `,
1173
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1755
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1174
1756
  "span",
1175
1757
  {
1176
1758
  className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2
@@ -1181,12 +1763,12 @@ var Radio = (0, import_react11.forwardRef)(
1181
1763
  }
1182
1764
  )
1183
1765
  ] }),
1184
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1766
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1185
1767
  "div",
1186
1768
  {
1187
1769
  className: `flex flex-col gap-1 ${size === "sm" ? "mt-2" : "mt-4"}`,
1188
1770
  children: [
1189
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1771
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1190
1772
  "p",
1191
1773
  {
1192
1774
  className: `
@@ -1196,7 +1778,7 @@ var Radio = (0, import_react11.forwardRef)(
1196
1778
  children: label
1197
1779
  }
1198
1780
  ),
1199
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1781
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1200
1782
  "p",
1201
1783
  {
1202
1784
  className: `text-caption-caption ${disabled ? "text-gray-400" : error ? "text-red-600" : "text-gray-600"}`,
@@ -1215,9 +1797,37 @@ var Radio = (0, import_react11.forwardRef)(
1215
1797
  );
1216
1798
  Radio.displayName = "Radio";
1217
1799
 
1800
+ // src/components/SegmentControl/SegmentControl.tsx
1801
+ var import_react17 = require("react");
1802
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1803
+ var SegmentControl = (0, import_react17.forwardRef)(
1804
+ (_a, ref) => {
1805
+ var _b = _a, { size = "md", items, selected, setSelected, className = "" } = _b, rest = __objRest(_b, ["size", "items", "selected", "setSelected", "className"]);
1806
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1807
+ "div",
1808
+ __spreadProps(__spreadValues({
1809
+ ref,
1810
+ className: `bg-background-tertiary rounded-full flex flex-row items-center justify-center p-4 gap-4 ${className}`
1811
+ }, rest), {
1812
+ children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1813
+ "div",
1814
+ {
1815
+ onClick: () => setSelected == null ? void 0 : setSelected(item.value),
1816
+ className: `cursor-pointer rounded-full text-center grow
1817
+ ${size === "sm" ? "px-8 py-6 text-label-medium" : size === "md" ? "px-12 py-10 text-label-large" : "px-16 py-14 text-label-large"} ${selected === item.value ? "bg-segmented-control-background-active shadow-base text-segmented-control-text-primary hover:bg-segmented-control-background-active-hover" : "bg-segmented-control-background-enabled text-segmented-control-text-primary hover:bg-segmented-control-background-hover"} `,
1818
+ children: item.label
1819
+ },
1820
+ item.value
1821
+ ))
1822
+ })
1823
+ );
1824
+ }
1825
+ );
1826
+ SegmentControl.displayName = "SegmentControl";
1827
+
1218
1828
  // src/components/Slider/Slider.tsx
1219
- var import_react12 = require("react");
1220
- var import_jsx_runtime12 = require("react/jsx-runtime");
1829
+ var import_react18 = require("react");
1830
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1221
1831
  var sizeConfig = {
1222
1832
  small: {
1223
1833
  trackH: "h-4",
@@ -1248,7 +1858,7 @@ var sizeConfig = {
1248
1858
  }
1249
1859
  };
1250
1860
  function ChevronGlyphs({ size, color }) {
1251
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1861
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1252
1862
  "svg",
1253
1863
  {
1254
1864
  width: size,
@@ -1258,7 +1868,7 @@ function ChevronGlyphs({ size, color }) {
1258
1868
  xmlns: "http://www.w3.org/2000/svg",
1259
1869
  "aria-hidden": "true",
1260
1870
  children: [
1261
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1871
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1262
1872
  "path",
1263
1873
  {
1264
1874
  d: "M4.75 3.25L2.25 6L4.75 8.75",
@@ -1268,7 +1878,7 @@ function ChevronGlyphs({ size, color }) {
1268
1878
  strokeLinejoin: "round"
1269
1879
  }
1270
1880
  ),
1271
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1881
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1272
1882
  "path",
1273
1883
  {
1274
1884
  d: "M7.25 3.25L9.75 6L7.25 8.75",
@@ -1282,7 +1892,7 @@ function ChevronGlyphs({ size, color }) {
1282
1892
  }
1283
1893
  );
1284
1894
  }
1285
- var Slider = (0, import_react12.forwardRef)(
1895
+ var Slider = (0, import_react18.forwardRef)(
1286
1896
  (_a, ref) => {
1287
1897
  var _b = _a, {
1288
1898
  size = "medium",
@@ -1317,15 +1927,15 @@ var Slider = (0, import_react12.forwardRef)(
1317
1927
  "onChange",
1318
1928
  "aria-label"
1319
1929
  ]);
1320
- const reactId = (0, import_react12.useId)();
1930
+ const reactId = (0, import_react18.useId)();
1321
1931
  const inputId = id != null ? id : reactId;
1322
1932
  const sz = sizeConfig[size];
1323
1933
  const ariaLabel = ariaLabelProp != null ? ariaLabelProp : typeof label === "string" ? void 0 : "Slider";
1324
1934
  const ariaDescriptionId = description ? `${inputId}-description` : void 0;
1325
1935
  const isControlled = controlledValue !== void 0;
1326
- const [internalValue, setInternalValue] = (0, import_react12.useState)(defaultValue != null ? defaultValue : min);
1936
+ const [internalValue, setInternalValue] = (0, import_react18.useState)(defaultValue != null ? defaultValue : min);
1327
1937
  const currentValue = isControlled ? controlledValue : internalValue;
1328
- const handleChange = (0, import_react12.useCallback)(
1938
+ const handleChange = (0, import_react18.useCallback)(
1329
1939
  (e) => {
1330
1940
  const val = Number(e.target.value);
1331
1941
  if (!isControlled) {
@@ -1345,13 +1955,13 @@ var Slider = (0, import_react12.forwardRef)(
1345
1955
  const descriptionColor = disabled ? "text-slider-label-disabled" : "text-slider-description";
1346
1956
  const thumbOffset = percent * sz.thumbPx / 100;
1347
1957
  const fillOffset = sz.thumbPx / 2 - thumbOffset;
1348
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1958
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1349
1959
  "div",
1350
1960
  {
1351
1961
  className: ["flex w-full flex-col gap-8 font-sans", className].filter(Boolean).join(" "),
1352
1962
  children: [
1353
- (label || showValue && !disabled) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center justify-between", children: [
1354
- label && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1963
+ (label || showValue && !disabled) && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center justify-between", children: [
1964
+ label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1355
1965
  "label",
1356
1966
  {
1357
1967
  htmlFor: inputId,
@@ -1364,7 +1974,7 @@ var Slider = (0, import_react12.forwardRef)(
1364
1974
  children: label
1365
1975
  }
1366
1976
  ),
1367
- showValue && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1977
+ showValue && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1368
1978
  "span",
1369
1979
  {
1370
1980
  className: [sz.description, "tabular-nums", labelColor].join(" "),
@@ -1372,7 +1982,7 @@ var Slider = (0, import_react12.forwardRef)(
1372
1982
  }
1373
1983
  )
1374
1984
  ] }),
1375
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1985
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1376
1986
  "div",
1377
1987
  {
1378
1988
  className: [
@@ -1381,7 +1991,7 @@ var Slider = (0, import_react12.forwardRef)(
1381
1991
  disabled ? "cursor-not-allowed" : "cursor-pointer"
1382
1992
  ].join(" "),
1383
1993
  children: [
1384
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1994
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1385
1995
  "div",
1386
1996
  {
1387
1997
  className: [
@@ -1391,14 +2001,14 @@ var Slider = (0, import_react12.forwardRef)(
1391
2001
  ].join(" ")
1392
2002
  }
1393
2003
  ),
1394
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2004
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1395
2005
  "div",
1396
2006
  {
1397
2007
  className: ["absolute left-0 rounded-full", sz.trackH, fillBg].join(" "),
1398
2008
  style: { width: `calc(${percent}% + ${fillOffset}px)` }
1399
2009
  }
1400
2010
  ),
1401
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2011
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1402
2012
  "input",
1403
2013
  __spreadValues({
1404
2014
  ref,
@@ -1419,7 +2029,7 @@ var Slider = (0, import_react12.forwardRef)(
1419
2029
  ].join(" ")
1420
2030
  }, rest)
1421
2031
  ),
1422
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2032
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1423
2033
  "div",
1424
2034
  {
1425
2035
  className: [
@@ -1432,13 +2042,13 @@ var Slider = (0, import_react12.forwardRef)(
1432
2042
  !disabled && "peer-hover:shadow-medium"
1433
2043
  ].filter(Boolean).join(" "),
1434
2044
  style: { left: `calc(${percent}% - ${thumbOffset}px)` },
1435
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ChevronGlyphs, { size: sz.iconPx, color: iconColor })
2045
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChevronGlyphs, { size: sz.iconPx, color: iconColor })
1436
2046
  }
1437
2047
  )
1438
2048
  ]
1439
2049
  }
1440
2050
  ),
1441
- description && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2051
+ description && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1442
2052
  "span",
1443
2053
  {
1444
2054
  id: ariaDescriptionId,
@@ -1453,31 +2063,345 @@ var Slider = (0, import_react12.forwardRef)(
1453
2063
  );
1454
2064
  Slider.displayName = "Slider";
1455
2065
 
2066
+ // src/components/Tab/Tab.tsx
2067
+ var import_react19 = require("react");
2068
+ var import_jsx_runtime19 = require("react/jsx-runtime");
2069
+ var Tab = (0, import_react19.forwardRef)(
2070
+ (_a, ref) => {
2071
+ var _b = _a, {
2072
+ size = "md",
2073
+ label,
2074
+ value,
2075
+ isDisabled = false,
2076
+ selected,
2077
+ setSelected,
2078
+ className = ""
2079
+ } = _b, rest = __objRest(_b, [
2080
+ "size",
2081
+ "label",
2082
+ "value",
2083
+ "isDisabled",
2084
+ "selected",
2085
+ "setSelected",
2086
+ "className"
2087
+ ]);
2088
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2089
+ "div",
2090
+ __spreadProps(__spreadValues({
2091
+ ref,
2092
+ className: `flex items-center justify-center
2093
+ ${size === "md" ? "text-label-medium px-16 pt-12 pb-8" : "text-label-large p-16"}
2094
+ ${value === selected ? isDisabled ? "cursor-not-allowed text-gray-400 border-gray-100 border-b-2" : "text-blue-600 border-blue-600 border-b-2 cursor-pointer" : isDisabled ? "cursor-not-allowed text-gray-400" : "text-gray-600 hover:border-b-2 hover:border-gray-200 cursor-pointer"}
2095
+ ${className}`,
2096
+ onClick: () => !isDisabled && (setSelected == null ? void 0 : setSelected(value))
2097
+ }, rest), {
2098
+ children: label
2099
+ })
2100
+ );
2101
+ }
2102
+ );
2103
+ Tab.displayName = "Tab";
2104
+
2105
+ // src/components/TextArea/TextArea.tsx
2106
+ var import_react20 = require("react");
2107
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2108
+ var TextArea = (0, import_react20.forwardRef)(
2109
+ (_a, ref) => {
2110
+ var _b = _a, {
2111
+ maxText = 500,
2112
+ height = 100,
2113
+ error,
2114
+ label,
2115
+ placeholder,
2116
+ description,
2117
+ icon,
2118
+ isDisabled = false,
2119
+ isLoading = false,
2120
+ isVertify = false,
2121
+ isClearable = true,
2122
+ disabled,
2123
+ value,
2124
+ onChange
2125
+ } = _b, props = __objRest(_b, [
2126
+ "maxText",
2127
+ "height",
2128
+ "error",
2129
+ "label",
2130
+ "placeholder",
2131
+ "description",
2132
+ "icon",
2133
+ "isDisabled",
2134
+ "isLoading",
2135
+ "isVertify",
2136
+ "isClearable",
2137
+ "disabled",
2138
+ "value",
2139
+ "onChange"
2140
+ ]);
2141
+ const [isFocused, setIsFocused] = (0, import_react20.useState)(false);
2142
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "w-full flex flex-col gap-4", children: [
2143
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "w-full flex justify-between items-center ", children: [
2144
+ label ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2145
+ "p",
2146
+ {
2147
+ className: `text-label-medium text-left items-left ${isDisabled || disabled ? "text-gray-400" : "text-gray-900"}`,
2148
+ children: label
2149
+ }
2150
+ ) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, {}),
2151
+ maxText ? /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("p", { className: "text-gray-400 text-caption-caption", children: [
2152
+ " ",
2153
+ (value == null ? void 0 : value.length) || 0,
2154
+ " / ",
2155
+ maxText
2156
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, {})
2157
+ ] }),
2158
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "relative w-full", children: [
2159
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2160
+ "textarea",
2161
+ __spreadValues({
2162
+ ref,
2163
+ name: "text-input",
2164
+ placeholder,
2165
+ disabled: isDisabled || disabled || isLoading,
2166
+ onFocus: () => setIsFocused(true),
2167
+ onBlur: () => setIsFocused(false),
2168
+ value,
2169
+ onChange,
2170
+ className: `w-full min-h-${height} focus:min-h-${height - 2} pt-12 pb-8 pr-44 pl-16 focus:pt-11 focus:pb-7 focus:pr-43 focus:pl-15 border border-gray-300 text-base rounded-md focus:outline-none focus:ring-1 focus:m-1 focus:w-[calc(100%-2px)] ${isDisabled || disabled ? "bg-gray-50 text-gray-400" : error ? "bg-white text-gray-900 border-red-500 focus:border-red-500 focus:ring-red-500" : "bg-white text-gray-900 focus:border-blue-600 focus:ring-blue-600"}`
2171
+ }, props)
2172
+ ),
2173
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2174
+ Loading,
2175
+ {
2176
+ size: "sm",
2177
+ className: `absolute right-12 top-12`
2178
+ }
2179
+ ) : isClearable && isFocused && value ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2180
+ "svg",
2181
+ {
2182
+ xmlns: "http://www.w3.org/2000/svg",
2183
+ width: "20",
2184
+ height: "20",
2185
+ viewBox: "0 0 20 20",
2186
+ fill: "none",
2187
+ className: "text-gray-900 flex h-20 w-20 items-center justify-center absolute right-12 top-12",
2188
+ onMouseDown: (e) => {
2189
+ e.preventDefault();
2190
+ onChange == null ? void 0 : onChange({ target: { value: "" } });
2191
+ },
2192
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2193
+ "path",
2194
+ {
2195
+ d: "M14.7119 6.0625L10.7744 10L14.7119 13.9375L13.9375 14.7119L10 10.7744L6.0625 14.7119L5.28809 13.9375L9.22559 10L5.28809 6.0625L6.0625 5.28809L10 9.22559L13.9375 5.28809L14.7119 6.0625Z",
2196
+ fill: "#111827"
2197
+ }
2198
+ )
2199
+ }
2200
+ ) : isVertify ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2201
+ "svg",
2202
+ {
2203
+ xmlns: "http://www.w3.org/2000/svg",
2204
+ width: "20",
2205
+ height: "20",
2206
+ viewBox: "0 0 20 20",
2207
+ fill: "none",
2208
+ className: "text-green-600 flex h-20 w-20 items-center justify-center absolute right-12 top-12",
2209
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2210
+ "path",
2211
+ {
2212
+ "fill-rule": "evenodd",
2213
+ "clip-rule": "evenodd",
2214
+ d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
2215
+ fill: "#16A34A"
2216
+ }
2217
+ )
2218
+ }
2219
+ ) : error ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2220
+ "svg",
2221
+ {
2222
+ xmlns: "http://www.w3.org/2000/svg",
2223
+ width: "20",
2224
+ height: "20",
2225
+ viewBox: "0 0 20 20",
2226
+ fill: "none",
2227
+ className: "text-red-500 flex h-20 w-20 items-center justify-center absolute right-12 top-12",
2228
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2229
+ "path",
2230
+ {
2231
+ d: "M10.0078 2.41699C11.0548 2.41699 12.0363 2.61407 12.9512 3.00879C13.8657 3.40341 14.6687 3.94646 15.3604 4.6377C16.0522 5.32922 16.5962 6.13426 16.9912 7.05176C17.386 7.96936 17.583 8.95002 17.583 9.99316C17.583 11.0363 17.3859 12.0187 16.9912 12.9404C16.5966 13.862 16.0536 14.6687 15.3623 15.3604C14.6708 16.0522 13.8657 16.5962 12.9482 16.9912C12.0306 17.386 11.05 17.583 10.0068 17.583C8.96373 17.583 7.9813 17.3859 7.05957 16.9912C6.13798 16.5966 5.33135 16.0536 4.63965 15.3623C3.94784 14.6708 3.40379 13.8642 3.00879 12.9434C2.61398 12.0228 2.41703 11.039 2.41699 9.99219C2.41699 8.94524 2.61407 7.96369 3.00879 7.04883C3.40341 6.13429 3.94646 5.33128 4.6377 4.63965C5.32922 3.94784 6.13581 3.40379 7.05664 3.00879C7.97723 2.61398 8.961 2.41703 10.0078 2.41699ZM10.0039 12.5967C9.83828 12.5968 9.69804 12.6527 9.58301 12.7646C9.46793 12.8769 9.41016 13.0159 9.41016 13.1816C9.4102 13.3472 9.46621 13.4875 9.57812 13.6025C9.69035 13.7177 9.83026 13.7754 9.99609 13.7754C10.1617 13.7753 10.302 13.7195 10.417 13.6074C10.5321 13.4952 10.5898 13.3562 10.5898 13.1904C10.5898 13.0246 10.534 12.8837 10.4219 12.7686C10.3097 12.6536 10.1697 12.5967 10.0039 12.5967ZM9.45801 11.0645H10.542V6.06445H9.45801V11.0645Z",
2232
+ fill: "#EF4444"
2233
+ }
2234
+ )
2235
+ }
2236
+ ) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, {})
2237
+ ] }),
2238
+ error ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-caption-caption text-left items-left text-red-600", children: error }) : description ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-caption-caption text-left items-left text-gray-600", children: description }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, {})
2239
+ ] });
2240
+ }
2241
+ );
2242
+ TextArea.displayName = "TextArea";
2243
+
2244
+ // src/components/TextField/TextField.tsx
2245
+ var import_react21 = require("react");
2246
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2247
+ var TextField = (0, import_react21.forwardRef)(
2248
+ (_a, ref) => {
2249
+ var _b = _a, {
2250
+ inputSize,
2251
+ error,
2252
+ label,
2253
+ placeholder,
2254
+ description,
2255
+ icon,
2256
+ isDisabled = false,
2257
+ isLoading = false,
2258
+ isVertify = false,
2259
+ isUnrequired = false,
2260
+ isClearable = true,
2261
+ disabled,
2262
+ value,
2263
+ onChange
2264
+ } = _b, props = __objRest(_b, [
2265
+ "inputSize",
2266
+ "error",
2267
+ "label",
2268
+ "placeholder",
2269
+ "description",
2270
+ "icon",
2271
+ "isDisabled",
2272
+ "isLoading",
2273
+ "isVertify",
2274
+ "isUnrequired",
2275
+ "isClearable",
2276
+ "disabled",
2277
+ "value",
2278
+ "onChange"
2279
+ ]);
2280
+ const [isFocused, setIsFocused] = (0, import_react21.useState)(false);
2281
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "w-full flex flex-col gap-4", children: [
2282
+ label ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2283
+ "p",
2284
+ {
2285
+ className: `text-label-medium text-left items-left ${isDisabled || disabled ? "text-gray-400" : "text-gray-900"}`,
2286
+ children: [
2287
+ label,
2288
+ " ",
2289
+ isUnrequired && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-gray-400", children: `(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)` })
2290
+ ]
2291
+ }
2292
+ ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {}),
2293
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "relative w-full", children: [
2294
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2295
+ "input",
2296
+ __spreadValues({
2297
+ ref,
2298
+ name: "text-input",
2299
+ type: "text",
2300
+ placeholder,
2301
+ disabled: isDisabled || disabled || isLoading,
2302
+ onFocus: () => setIsFocused(true),
2303
+ onBlur: () => setIsFocused(false),
2304
+ value,
2305
+ onChange,
2306
+ className: `w-full ${inputSize === "md" ? "px-16 py-12 focus:px-15 focus:py-11" : "p-16 focus:p-15"} border border-gray-300 text-base rounded-md focus:outline-none focus:ring-1 focus:m-1 focus:w-[calc(100%-2px)] ${isDisabled || disabled ? "bg-gray-50 text-gray-400" : error ? "bg-white text-gray-900 border-red-500 focus:border-red-500 focus:ring-red-500" : "bg-white text-gray-900 focus:border-blue-600 focus:ring-blue-600"}`
2307
+ }, props)
2308
+ ),
2309
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2310
+ Loading,
2311
+ {
2312
+ size: "sm",
2313
+ className: `absolute right-16 top-1/2 -translate-y-1/2`
2314
+ }
2315
+ ) : isClearable && isFocused && value ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2316
+ "svg",
2317
+ {
2318
+ xmlns: "http://www.w3.org/2000/svg",
2319
+ width: "20",
2320
+ height: "20",
2321
+ viewBox: "0 0 20 20",
2322
+ fill: "none",
2323
+ className: "text-gray-900 flex h-20 w-20 items-center justify-center absolute right-16 top-1/2 -translate-y-1/2",
2324
+ onMouseDown: (e) => {
2325
+ e.preventDefault();
2326
+ onChange == null ? void 0 : onChange({ target: { value: "" } });
2327
+ },
2328
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2329
+ "path",
2330
+ {
2331
+ d: "M14.7119 6.0625L10.7744 10L14.7119 13.9375L13.9375 14.7119L10 10.7744L6.0625 14.7119L5.28809 13.9375L9.22559 10L5.28809 6.0625L6.0625 5.28809L10 9.22559L13.9375 5.28809L14.7119 6.0625Z",
2332
+ fill: "#111827"
2333
+ }
2334
+ )
2335
+ }
2336
+ ) : isVertify ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2337
+ "svg",
2338
+ {
2339
+ xmlns: "http://www.w3.org/2000/svg",
2340
+ width: "20",
2341
+ height: "20",
2342
+ viewBox: "0 0 20 20",
2343
+ fill: "none",
2344
+ className: "text-green-600 flex h-20 w-20 items-center justify-center absolute right-16 top-1/2 -translate-y-1/2",
2345
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2346
+ "path",
2347
+ {
2348
+ "fill-rule": "evenodd",
2349
+ "clip-rule": "evenodd",
2350
+ d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
2351
+ fill: "#16A34A"
2352
+ }
2353
+ )
2354
+ }
2355
+ ) : error ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2356
+ "svg",
2357
+ {
2358
+ xmlns: "http://www.w3.org/2000/svg",
2359
+ width: "20",
2360
+ height: "20",
2361
+ viewBox: "0 0 20 20",
2362
+ fill: "none",
2363
+ className: "text-red-500 flex h-20 w-20 items-center justify-center absolute right-16 top-1/2 -translate-y-1/2",
2364
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2365
+ "path",
2366
+ {
2367
+ d: "M10.0078 2.41699C11.0548 2.41699 12.0363 2.61407 12.9512 3.00879C13.8657 3.40341 14.6687 3.94646 15.3604 4.6377C16.0522 5.32922 16.5962 6.13426 16.9912 7.05176C17.386 7.96936 17.583 8.95002 17.583 9.99316C17.583 11.0363 17.3859 12.0187 16.9912 12.9404C16.5966 13.862 16.0536 14.6687 15.3623 15.3604C14.6708 16.0522 13.8657 16.5962 12.9482 16.9912C12.0306 17.386 11.05 17.583 10.0068 17.583C8.96373 17.583 7.9813 17.3859 7.05957 16.9912C6.13798 16.5966 5.33135 16.0536 4.63965 15.3623C3.94784 14.6708 3.40379 13.8642 3.00879 12.9434C2.61398 12.0228 2.41703 11.039 2.41699 9.99219C2.41699 8.94524 2.61407 7.96369 3.00879 7.04883C3.40341 6.13429 3.94646 5.33128 4.6377 4.63965C5.32922 3.94784 6.13581 3.40379 7.05664 3.00879C7.97723 2.61398 8.961 2.41703 10.0078 2.41699ZM10.0039 12.5967C9.83828 12.5968 9.69804 12.6527 9.58301 12.7646C9.46793 12.8769 9.41016 13.0159 9.41016 13.1816C9.4102 13.3472 9.46621 13.4875 9.57812 13.6025C9.69035 13.7177 9.83026 13.7754 9.99609 13.7754C10.1617 13.7753 10.302 13.7195 10.417 13.6074C10.5321 13.4952 10.5898 13.3562 10.5898 13.1904C10.5898 13.0246 10.534 12.8837 10.4219 12.7686C10.3097 12.6536 10.1697 12.5967 10.0039 12.5967ZM9.45801 11.0645H10.542V6.06445H9.45801V11.0645Z",
2368
+ fill: "#EF4444"
2369
+ }
2370
+ )
2371
+ }
2372
+ ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {})
2373
+ ] }),
2374
+ error ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption-caption text-left items-left text-red-600", children: error }) : description ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption-caption text-left items-left text-gray-600", children: description }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {})
2375
+ ] });
2376
+ }
2377
+ );
2378
+ TextField.displayName = "TextField";
2379
+
1456
2380
  // src/components/Toast/Toast.tsx
1457
- var import_react13 = require("react");
1458
- var import_jsx_runtime13 = require("react/jsx-runtime");
2381
+ var import_react22 = require("react");
2382
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1459
2383
  function CheckCircleIcon({ className }) {
1460
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1461
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
1462
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
2384
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
2385
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
2386
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
1463
2387
  ] });
1464
2388
  }
1465
2389
  function ProgressIcon({ className }) {
1466
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1467
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5", opacity: "0.3" }),
1468
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M10 2a8 8 0 0 1 8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("animateTransform", { attributeName: "transform", type: "rotate", from: "0 10 10", to: "360 10 10", dur: "1s", repeatCount: "indefinite" }) })
2390
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
2391
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5", opacity: "0.3" }),
2392
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M10 2a8 8 0 0 1 8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("animateTransform", { attributeName: "transform", type: "rotate", from: "0 10 10", to: "360 10 10", dur: "1s", repeatCount: "indefinite" }) })
1469
2393
  ] });
1470
2394
  }
1471
2395
  function ErrorIcon({ className }) {
1472
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1473
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
1474
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M10 6.5v4M10 13.5h.01", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
2396
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
2397
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
2398
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M10 6.5v4M10 13.5h.01", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
1475
2399
  ] });
1476
2400
  }
1477
- function CloseIcon2({ className }) {
1478
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
2401
+ function CloseIcon3({ className }) {
2402
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1479
2403
  }
1480
- var defaultIcons2 = {
2404
+ var defaultIcons3 = {
1481
2405
  default: CheckCircleIcon,
1482
2406
  progress: ProgressIcon,
1483
2407
  error: ErrorIcon
@@ -1492,7 +2416,7 @@ var iconColorClasses = {
1492
2416
  progress: "text-toast-progress-icon",
1493
2417
  error: "text-toast-error-icon"
1494
2418
  };
1495
- var Toast = (0, import_react13.forwardRef)(
2419
+ var Toast = (0, import_react22.forwardRef)(
1496
2420
  (_a, ref) => {
1497
2421
  var _b = _a, {
1498
2422
  type = "default",
@@ -1511,7 +2435,7 @@ var Toast = (0, import_react13.forwardRef)(
1511
2435
  "children",
1512
2436
  "className"
1513
2437
  ]);
1514
- const DefaultIcon = defaultIcons2[type];
2438
+ const DefaultIcon = defaultIcons3[type];
1515
2439
  const classes = [
1516
2440
  "inline-flex items-center gap-12 font-sans",
1517
2441
  "rounded-xl px-16 py-12",
@@ -1520,10 +2444,10 @@ var Toast = (0, import_react13.forwardRef)(
1520
2444
  typeClasses[type],
1521
2445
  className
1522
2446
  ].filter(Boolean).join(" ");
1523
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: classes }, rest), { children: [
1524
- icon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: `shrink-0 ${iconColorClasses[type]}`, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DefaultIcon, { className: "h-20 w-20" }) }),
1525
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "flex-1 text-sm font-medium leading-20 truncate", children }),
1526
- actionLabel && onAction && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2447
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: classes }, rest), { children: [
2448
+ icon && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: `shrink-0 ${iconColorClasses[type]}`, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DefaultIcon, { className: "h-20 w-20" }) }),
2449
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "flex-1 text-sm font-medium leading-20 truncate", children }),
2450
+ actionLabel && onAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1527
2451
  "button",
1528
2452
  {
1529
2453
  type: "button",
@@ -1532,20 +2456,156 @@ var Toast = (0, import_react13.forwardRef)(
1532
2456
  children: actionLabel
1533
2457
  }
1534
2458
  ),
1535
- onDismiss && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2459
+ onDismiss && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1536
2460
  "button",
1537
2461
  {
1538
2462
  type: "button",
1539
2463
  onClick: onDismiss,
1540
2464
  className: "shrink-0 p-4 rounded-md text-toast-dismiss hover:text-toast-dismiss-hover transition-colors",
1541
2465
  "aria-label": "Dismiss",
1542
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CloseIcon2, { className: "h-16 w-16" })
2466
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CloseIcon3, { className: "h-16 w-16" })
1543
2467
  }
1544
2468
  )
1545
2469
  ] }));
1546
2470
  }
1547
2471
  );
1548
2472
  Toast.displayName = "Toast";
2473
+
2474
+ // src/components/ToggleSwitch/ToggleSwitch.tsx
2475
+ var import_react23 = require("react");
2476
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2477
+ var ToggleSwitch = (0, import_react23.forwardRef)(
2478
+ (_a, ref) => {
2479
+ var _b = _a, {
2480
+ value,
2481
+ isDisabled = false,
2482
+ isSelected,
2483
+ setIsSelected,
2484
+ className = ""
2485
+ } = _b, rest = __objRest(_b, [
2486
+ "value",
2487
+ "isDisabled",
2488
+ "isSelected",
2489
+ "setIsSelected",
2490
+ "className"
2491
+ ]);
2492
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2493
+ "label",
2494
+ __spreadProps(__spreadValues({
2495
+ ref,
2496
+ className: `inline-flex items-center ${className}`
2497
+ }, rest), {
2498
+ children: [
2499
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2500
+ "input",
2501
+ {
2502
+ type: "checkbox",
2503
+ value,
2504
+ className: "sr-only peer",
2505
+ checked: isSelected,
2506
+ onChange: () => !isDisabled && (setIsSelected == null ? void 0 : setIsSelected(!isSelected))
2507
+ }
2508
+ ),
2509
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2510
+ "div",
2511
+ {
2512
+ className: `${isDisabled ? "opacity-40 cursor-not-allowed" : "cursor-pointer hover:bg-gray-300 hover:peer-checked:bg-green-700"} relative w-48 h-26 bg-gray-200 rounded-full peer-checked:after:translate-x-22 rtl:peer-checked:after:-translate-x-22 peer-checked:after:border-white after:content-[''] after:absolute after:top-4 after:left-4 after:bg-white after:border-gray-300 after:border after:rounded-full after:h-18 after:w-18 after:transition-all peer-checked:bg-green-600 `
2513
+ }
2514
+ )
2515
+ ]
2516
+ })
2517
+ );
2518
+ }
2519
+ );
2520
+ ToggleSwitch.displayName = "ToggleSwitch";
2521
+
2522
+ // src/components/Tooltip/Tooltip.tsx
2523
+ var import_react24 = require("react");
2524
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2525
+ var Tooltip = (0, import_react24.forwardRef)(
2526
+ (_a, ref) => {
2527
+ var _b = _a, {
2528
+ size = "md",
2529
+ children,
2530
+ headText,
2531
+ text,
2532
+ position = "top",
2533
+ className = ""
2534
+ } = _b, rest = __objRest(_b, [
2535
+ "size",
2536
+ "children",
2537
+ "headText",
2538
+ "text",
2539
+ "position",
2540
+ "className"
2541
+ ]);
2542
+ const wrapperRef = (0, import_react24.useRef)(null);
2543
+ const [isVisible, setIsVisible] = (0, import_react24.useState)(false);
2544
+ const [isHovered, setIsHovered] = (0, import_react24.useState)(false);
2545
+ (0, import_react24.useEffect)(() => {
2546
+ const handleClickOutside = (event) => {
2547
+ if (wrapperRef.current && !wrapperRef.current.contains(event.target)) {
2548
+ setIsVisible(false);
2549
+ setIsHovered(false);
2550
+ }
2551
+ };
2552
+ document.addEventListener("mousedown", handleClickOutside);
2553
+ return () => {
2554
+ document.removeEventListener("mousedown", handleClickOutside);
2555
+ };
2556
+ }, []);
2557
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2558
+ "div",
2559
+ __spreadProps(__spreadValues({
2560
+ className: `group relative inline-block ${className}`,
2561
+ ref
2562
+ }, rest), {
2563
+ children: [
2564
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2565
+ "div",
2566
+ {
2567
+ ref: wrapperRef,
2568
+ onClick: () => {
2569
+ if (isVisible) {
2570
+ setIsVisible(false);
2571
+ setIsHovered(false);
2572
+ } else {
2573
+ setIsVisible(true);
2574
+ }
2575
+ },
2576
+ onMouseEnter: () => setIsHovered(true),
2577
+ onMouseLeave: () => setIsHovered(false),
2578
+ children
2579
+ }
2580
+ ),
2581
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
2582
+ "div",
2583
+ {
2584
+ className: `min-w-100 max-w-300 whitespace-nowrap rounded bg-gray-900 text-white ${size === "lg" ? "text-body-regular py-12 px-16" : size === "md" ? "text-body-small px-12 pt-10 pb-8" : "text-body-small px-8 pt-6 pb-4"} ${position === "right" && `absolute left-full top-1/2 z-20 ml-8 -translate-y-1/2 ${isVisible || isHovered ? "opacity-100" : "opacity-0"}` || position === "top" && `absolute bottom-full left-1/2 z-20 mb-8 -translate-x-1/2 ${isVisible || isHovered ? "opacity-100" : "opacity-0"}` || position === "left" && `absolute right-full top-1/2 z-20 mr-8 -translate-y-1/2 ${isVisible || isHovered ? "opacity-100" : "opacity-0"}` || position === "bottom" && `absolute left-1/2 top-full z-20 mt-8 -translate-x-1/2 ${isVisible || isHovered ? "opacity-100" : "opacity-0"}`}`,
2585
+ children: [
2586
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2587
+ "span",
2588
+ {
2589
+ className: ` ${position === "right" && `absolute -left-3 top-1/2 -z-10 h-8 w-8 -translate-y-1/2 rotate-45 rounded-xs bg-black` || position === "top" && `absolute -bottom-3 left-1/2 -z-10 h-8 w-8 -translate-x-1/2 rotate-45 rounded-xs bg-black` || position === "left" && `absolute -right-3 top-1/2 -z-10 h-8 w-8 -translate-y-1/2 rotate-45 rounded-xs bg-black` || position === "bottom" && `absolute left-1/2 -top-3 -z-10 h-8 w-8 -translate-x-1/2 rotate-45 rounded-xs bg-black`} `
2590
+ }
2591
+ ),
2592
+ headText ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2593
+ "p",
2594
+ {
2595
+ className: `text-sm text-white font-semibold text-center ${text ? "mb-5" : ""}`,
2596
+ children: headText
2597
+ }
2598
+ ) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, {}),
2599
+ text ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "text-xs text-white font-normal text-center text-wrap", children: text }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, {})
2600
+ ]
2601
+ }
2602
+ )
2603
+ ]
2604
+ })
2605
+ );
2606
+ }
2607
+ );
2608
+ Tooltip.displayName = "Tooltip";
1549
2609
  // Annotate the CommonJS export names for ESM import in node:
1550
2610
  0 && (module.exports = {
1551
2611
  Accordion,
@@ -1553,11 +2613,23 @@ Toast.displayName = "Toast";
1553
2613
  Avatar,
1554
2614
  Badge,
1555
2615
  BottomSheet,
2616
+ Branding,
1556
2617
  Button,
1557
2618
  Checkbox,
2619
+ Chip,
1558
2620
  Dialog,
2621
+ Dropdown,
2622
+ FinancialLogo,
1559
2623
  Icon,
2624
+ Link,
2625
+ Loading,
1560
2626
  Radio,
2627
+ SegmentControl,
1561
2628
  Slider,
1562
- Toast
2629
+ Tab,
2630
+ TextArea,
2631
+ TextField,
2632
+ Toast,
2633
+ ToggleSwitch,
2634
+ Tooltip
1563
2635
  });