@refinn/core-ui 0.1.2 → 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,78 +516,214 @@ var Badge = (0, import_react4.forwardRef)(
504
516
  );
505
517
  Badge.displayName = "Badge";
506
518
 
507
- // src/components/Button/Button.tsx
519
+ // src/components/Branding/Branding.tsx
508
520
  var import_react5 = require("react");
509
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
+
613
+ // src/components/Button/Button.tsx
614
+ var import_react7 = require("react");
615
+
616
+ // src/components/Loading/Loading.tsx
617
+ var import_react6 = require("react");
618
+ var import_jsx_runtime6 = require("react/jsx-runtime");
619
+ var Loading = (0, import_react6.forwardRef)(
620
+ (_a, ref) => {
621
+ var _b = _a, { size = "sm", isDark = false, className = "" } = _b, rest = __objRest(_b, ["size", "isDark", "className"]);
622
+ const containerClasses = [
623
+ isDark ? "text-white-100" : "text-blue-600",
624
+ className
625
+ ].filter(Boolean).join(" ");
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)(
627
+ "svg",
628
+ {
629
+ className: "animate-spin",
630
+ xmlns: "http://www.w3.org/2000/svg",
631
+ width: "18",
632
+ height: "18",
633
+ viewBox: "0 0 18 18",
634
+ fill: "none",
635
+ children: [
636
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
637
+ "path",
638
+ {
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",
640
+ stroke: "#F3F4F6",
641
+ "stroke-width": "2"
642
+ }
643
+ ),
644
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
645
+ "path",
646
+ {
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",
648
+ stroke: "#0193D7",
649
+ "stroke-width": "2"
650
+ }
651
+ )
652
+ ]
653
+ }
654
+ ) })) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
655
+ "svg",
656
+ {
657
+ className: "animate-spin",
658
+ width: size === "sm" ? 18 : 88,
659
+ height: size === "sm" ? 18 : 88,
660
+ viewBox: "0 0 20 20",
661
+ fill: "none",
662
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
663
+ "path",
664
+ {
665
+ d: "M10 2.5a7.5 7.5 0 1 0 7.5 7.5",
666
+ stroke: "currentColor",
667
+ strokeWidth: size === "sm" ? 2 : 1,
668
+ strokeLinecap: "round"
669
+ }
670
+ )
671
+ }
672
+ ) }));
673
+ }
674
+ );
675
+ Loading.displayName = "Loading";
676
+
677
+ // src/components/Button/Button.tsx
678
+ var import_jsx_runtime7 = require("react/jsx-runtime");
510
679
  var variantClasses = {
511
680
  primary: [
512
- "bg-btn-primary text-btn-primary-text",
513
- "hover:bg-btn-primary-hover",
514
- "active:bg-btn-primary-active",
515
- "focus-visible:ring-2 focus-visible:ring-btn-primary-ring focus-visible:ring-offset-2",
516
- "disabled:bg-btn-primary-disabled disabled:text-btn-primary-text-disabled"
681
+ "bg-blue-600 text-white-100",
682
+ "hover:bg-blue-700",
683
+ "active:bg-blue-800",
684
+ "focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
685
+ "disabled:bg-gray-100 disabled:text-gray-400"
517
686
  ].join(" "),
518
687
  secondary: [
519
- "bg-btn-secondary text-btn-secondary-text",
520
- "hover:bg-btn-secondary-hover",
521
- "active:bg-btn-secondary-active",
522
- "focus-visible:ring-2 focus-visible:ring-btn-secondary-ring focus-visible:ring-offset-2",
523
- "disabled:bg-btn-secondary-disabled disabled:text-btn-secondary-text-disabled"
688
+ "bg-gray-100 text-gray-900",
689
+ "hover:bg-gray-200",
690
+ "active:bg-gray-300",
691
+ "focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
692
+ "disabled:bg-gray-100 disabled:text-gray-400"
524
693
  ].join(" "),
525
694
  tertiary: [
526
- "bg-btn-tertiary text-btn-tertiary-text",
527
- "hover:bg-btn-tertiary-hover",
528
- "active:bg-btn-tertiary-active",
529
- "focus-visible:ring-2 focus-visible:ring-btn-tertiary-ring focus-visible:ring-offset-2",
530
- "disabled:bg-btn-tertiary-disabled disabled:text-btn-tertiary-text-disabled"
695
+ "bg-black-0 text-gray-900",
696
+ "hover:bg-gray-200",
697
+ "active:bg-gray-300",
698
+ "focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
699
+ "disabled:bg-gray-100 disabled:text-gray-400"
531
700
  ].join(" "),
532
701
  contrast: [
533
- "bg-btn-contrast text-btn-contrast-text",
534
- "hover:bg-btn-contrast-hover",
535
- "active:bg-btn-contrast-active",
536
- "focus-visible:ring-2 focus-visible:ring-btn-contrast-ring focus-visible:ring-offset-2",
537
- "disabled:bg-btn-contrast-disabled disabled:text-btn-contrast-text-disabled"
702
+ "bg-white-100 text-blue-600",
703
+ "hover:bg-white-90",
704
+ "active:bg-white-80",
705
+ "focus-visible:ring-2 focus-visible:ring-white-100 focus-visible:ring-offset-2",
706
+ "disabled:bg-gray-50 disabled:text-gray-400"
538
707
  ].join(" "),
539
708
  transparent: [
540
- "bg-btn-transparent text-btn-transparent-text",
541
- "hover:bg-btn-transparent-hover",
542
- "active:bg-btn-transparent-active",
543
- "focus-visible:ring-2 focus-visible:ring-btn-transparent-ring focus-visible:ring-offset-2",
544
- "disabled:bg-btn-transparent-disabled disabled:text-btn-transparent-text-disabled"
709
+ "bg-black-0 text-white-100",
710
+ "hover:bg-white-20",
711
+ "active:bg-white-30",
712
+ "focus-visible:ring-2 focus-visible:ring-white-100 focus-visible:bg-black-0 focus-visible:ring-offset-2",
713
+ "disabled:bg-black-0 disabled:text-white-40"
545
714
  ].join(" ")
546
715
  };
547
716
  var sizeClasses3 = {
548
- small: "h-32 px-12 text-sm gap-4",
549
- medium: "h-40 px-16 text-sm gap-6",
550
- large: "h-48 px-20 text-base gap-8",
551
- "extra-large": "h-56 px-24 text-lg gap-8"
717
+ sm: "px-16 py-6 text-label-medium",
718
+ md: "px-20 py-8 text-label-large",
719
+ lg: "px-24 py-12 text-label-large",
720
+ xl: "px-32 py-16 text-label-large"
552
721
  };
553
- function Spinner({ className }) {
554
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
555
- "svg",
556
- {
557
- className,
558
- width: "1em",
559
- height: "1em",
560
- viewBox: "0 0 20 20",
561
- fill: "none",
562
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
563
- "path",
564
- {
565
- d: "M10 2.5a7.5 7.5 0 1 0 7.5 7.5",
566
- stroke: "currentColor",
567
- strokeWidth: "2",
568
- strokeLinecap: "round"
569
- }
570
- )
571
- }
572
- );
573
- }
574
- var Button = (0, import_react5.forwardRef)(
722
+ var Button = (0, import_react7.forwardRef)(
575
723
  (_a, ref) => {
576
724
  var _b = _a, {
577
725
  variant = "primary",
578
- size = "medium",
726
+ size = "md",
579
727
  rounded = false,
580
728
  loading = false,
581
729
  disabled = false,
@@ -594,40 +742,32 @@ var Button = (0, import_react5.forwardRef)(
594
742
  "children",
595
743
  "className"
596
744
  ]);
597
- const isDisabled = disabled || loading;
745
+ const isDisabled = disabled;
598
746
  const classes = [
599
- "inline-flex items-center justify-center font-medium font-sans",
747
+ "inline-flex items-center justify-center gap-8",
600
748
  "transition-colors duration-150",
601
749
  "outline-none",
602
750
  "disabled:cursor-not-allowed",
751
+ loading ? "pointer-events-none" : "cursor-pointer",
603
752
  sizeClasses3[size],
604
753
  variantClasses[variant],
605
- rounded ? "rounded-full" : "rounded-lg",
754
+ rounded ? "rounded-full" : size === "sm" ? "rounded-6" : size === "xl" ? "rounded-12" : "rounded-8",
606
755
  className
607
756
  ].filter(Boolean).join(" ");
608
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
609
- "button",
610
- __spreadProps(__spreadValues({
611
- ref,
612
- disabled: isDisabled,
613
- className: classes
614
- }, rest), {
615
- children: [
616
- loading ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Spinner, { className: "animate-spin" }) : startIcon,
617
- children,
618
- !loading && endIcon
619
- ]
620
- })
621
- );
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,
759
+ children,
760
+ !loading && endIcon
761
+ ] }));
622
762
  }
623
763
  );
624
764
  Button.displayName = "Button";
625
765
 
626
766
  // src/components/BottomSheet/BottomSheet.tsx
627
- var import_react6 = __toESM(require("react"));
767
+ var import_react8 = __toESM(require("react"));
628
768
  var import_react_dom = require("react-dom");
629
- var import_jsx_runtime6 = require("react/jsx-runtime");
630
- var BottomSheet = (0, import_react6.forwardRef)(
769
+ var import_jsx_runtime8 = require("react/jsx-runtime");
770
+ var BottomSheet = (0, import_react8.forwardRef)(
631
771
  (_a, ref) => {
632
772
  var _b = _a, {
633
773
  isForceOpen = false,
@@ -654,10 +794,10 @@ var BottomSheet = (0, import_react6.forwardRef)(
654
794
  "modalDesc",
655
795
  "className"
656
796
  ]);
657
- const [isOpen, setIsOpen] = (0, import_react6.useState)(false);
658
- const [shouldRender, setShouldRender] = (0, import_react6.useState)(false);
659
- const [animate, setAnimate] = (0, import_react6.useState)(false);
660
- (0, import_react6.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)(() => {
661
801
  if (isOpen) {
662
802
  setShouldRender(true);
663
803
  setTimeout(() => setAnimate(true), 10);
@@ -667,14 +807,14 @@ var BottomSheet = (0, import_react6.forwardRef)(
667
807
  return () => clearTimeout(timer);
668
808
  }
669
809
  }, [isOpen]);
670
- (0, import_react6.useEffect)(() => {
810
+ (0, import_react8.useEffect)(() => {
671
811
  if (isForceOpen) {
672
812
  setIsOpen(true);
673
813
  } else {
674
814
  setIsOpen(false);
675
815
  }
676
816
  }, [isForceOpen]);
677
- const handleStartClick = (0, import_react6.useCallback)(
817
+ const handleStartClick = (0, import_react8.useCallback)(
678
818
  (e) => {
679
819
  var _a2, _b2;
680
820
  (_b2 = startModalBtn == null ? void 0 : (_a2 = startModalBtn.props).onClick) == null ? void 0 : _b2.call(_a2, e);
@@ -683,7 +823,7 @@ var BottomSheet = (0, import_react6.forwardRef)(
683
823
  },
684
824
  [startModalBtn]
685
825
  );
686
- const handleStopClick = (0, import_react6.useCallback)(
826
+ const handleStopClick = (0, import_react8.useCallback)(
687
827
  (e) => {
688
828
  var _a2, _b2;
689
829
  (_b2 = stopModalBtn == null ? void 0 : (_a2 = stopModalBtn.props).onClick) == null ? void 0 : _b2.call(_a2, e);
@@ -696,19 +836,19 @@ var BottomSheet = (0, import_react6.forwardRef)(
696
836
  setIsForceOpen == null ? void 0 : setIsForceOpen(false);
697
837
  setIsOpen(false);
698
838
  };
699
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { ref, style: { display: "contents" }, children: [
700
- startModalBtn && import_react6.default.cloneElement(startModalBtn, {
839
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { ref, style: { display: "contents" }, children: [
840
+ startModalBtn && import_react8.default.cloneElement(startModalBtn, {
701
841
  onClick: handleStartClick
702
842
  }),
703
843
  shouldRender && (0, import_react_dom.createPortal)(
704
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
844
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
705
845
  "div",
706
846
  {
707
847
  className: `fixed inset-0 z-50 flex items-end justify-center transition-opacity duration-300 ${animate ? "opacity-100" : "opacity-0"}`,
708
848
  "aria-modal": "true",
709
849
  role: "dialog",
710
850
  children: [
711
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
851
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
712
852
  "div",
713
853
  {
714
854
  className: "absolute inset-0 bg-black/40",
@@ -716,26 +856,26 @@ var BottomSheet = (0, import_react6.forwardRef)(
716
856
  "aria-label": "Close modal"
717
857
  }
718
858
  ),
719
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
859
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
720
860
  "div",
721
861
  {
722
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
723
863
  ${size === "sm" ? "h-auto max-h-auto" : size === "md" ? "h-full max-h-[85vh]" : "h-full max-h-screen rounded-t-none!"}
724
864
  ${animate ? "scale-100 translate-y-0" : "scale-95 translate-y-full"}`,
725
865
  children: [
726
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "w-full flex flex-row relative items-center pt-8 pb-16", children: [
727
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col px-8 max-w-225", children: [
728
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-heading-3 text-button-sheet-text-primary", children: modalTitle }),
729
- /* @__PURE__ */ (0, import_jsx_runtime6.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 })
730
870
  ] }),
731
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
871
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
732
872
  "i",
733
873
  {
734
874
  className: "fi fi-br-cross-small flex text-xl text-gray-600 w-44 h-44 absolute top-0 right-0 p-12",
735
875
  onClick: () => handleCloseClick()
736
876
  }
737
877
  ),
738
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
878
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
739
879
  "div",
740
880
  {
741
881
  className: "text-gray-600 text-xl absolute top-0 right-0 p-12",
@@ -744,9 +884,9 @@ var BottomSheet = (0, import_react6.forwardRef)(
744
884
  }
745
885
  )
746
886
  ] }),
747
- /* @__PURE__ */ (0, import_jsx_runtime6.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: [
748
888
  children,
749
- stopModalBtn && import_react6.default.cloneElement(stopModalBtn, {
889
+ stopModalBtn && import_react8.default.cloneElement(stopModalBtn, {
750
890
  onClick: handleStopClick
751
891
  }),
752
892
  afterStopBtn && afterStopBtn
@@ -765,17 +905,17 @@ var BottomSheet = (0, import_react6.forwardRef)(
765
905
  BottomSheet.displayName = "BottomSheet";
766
906
 
767
907
  // src/components/Checkbox/Checkbox.tsx
768
- var import_react7 = require("react");
769
- var import_jsx_runtime7 = require("react/jsx-runtime");
908
+ var import_react9 = require("react");
909
+ var import_jsx_runtime9 = require("react/jsx-runtime");
770
910
  function CheckIcon({ className }) {
771
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
911
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
772
912
  "svg",
773
913
  {
774
914
  className,
775
915
  viewBox: "0 0 16 16",
776
916
  fill: "none",
777
917
  "aria-hidden": "true",
778
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
918
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
779
919
  "path",
780
920
  {
781
921
  d: "M13.333 4.667 6 12l-3.333-3.333",
@@ -789,14 +929,14 @@ function CheckIcon({ className }) {
789
929
  );
790
930
  }
791
931
  function IndeterminateIcon({ className }) {
792
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
932
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
793
933
  "svg",
794
934
  {
795
935
  className,
796
936
  viewBox: "0 0 16 16",
797
937
  fill: "none",
798
938
  "aria-hidden": "true",
799
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
939
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
800
940
  "path",
801
941
  {
802
942
  d: "M3.333 8h9.334",
@@ -808,7 +948,7 @@ function IndeterminateIcon({ className }) {
808
948
  }
809
949
  );
810
950
  }
811
- var Checkbox = (0, import_react7.forwardRef)(
951
+ var Checkbox = (0, import_react9.forwardRef)(
812
952
  (_a, ref) => {
813
953
  var _b = _a, {
814
954
  label,
@@ -831,17 +971,17 @@ var Checkbox = (0, import_react7.forwardRef)(
831
971
  "id",
832
972
  "defaultChecked"
833
973
  ]);
834
- const reactId = (0, import_react7.useId)();
974
+ const reactId = (0, import_react9.useId)();
835
975
  const inputId = id != null ? id : reactId;
836
- const [isChecked, setIsChecked] = (0, import_react7.useState)(defaultChecked != null ? defaultChecked : false);
837
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
976
+ const [isChecked, setIsChecked] = (0, import_react9.useState)(defaultChecked != null ? defaultChecked : false);
977
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
838
978
  "label",
839
979
  {
840
980
  htmlFor: inputId,
841
981
  className: `flex select-none font-sans ${disabled ? "cursor-not-allowed" : "cursor-pointer"} ${className}`,
842
982
  children: [
843
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "relative mr-16", children: [
844
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
983
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "relative mr-16", children: [
984
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
845
985
  "input",
846
986
  __spreadValues({
847
987
  ref,
@@ -858,16 +998,16 @@ var Checkbox = (0, import_react7.forwardRef)(
858
998
  className: "sr-only"
859
999
  }, rest)
860
1000
  ),
861
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1001
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
862
1002
  "div",
863
1003
  {
864
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"}`,
865
- children: isChecked ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1005
+ children: isChecked ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
866
1006
  CheckIcon,
867
1007
  {
868
1008
  className: `h-20 ${contrast ? "text-static-icon-brand" : "text-white"}`
869
1009
  }
870
- ) : indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1010
+ ) : indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
871
1011
  IndeterminateIcon,
872
1012
  {
873
1013
  className: `h-20 ${contrast ? "text-static-icon-brand" : "text-white"}`
@@ -876,15 +1016,15 @@ var Checkbox = (0, import_react7.forwardRef)(
876
1016
  }
877
1017
  )
878
1018
  ] }),
879
- (label || description) && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "flex flex-col", children: [
880
- label && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1019
+ (label || description) && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex flex-col", children: [
1020
+ label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
881
1021
  "span",
882
1022
  {
883
1023
  className: `text-label-large ${disabled ? "text-checkbox-text-disabled" : contrast ? "text-checkbox-text-primary-inverse" : "text-checkbox-text-primary"}`,
884
1024
  children: label
885
1025
  }
886
1026
  ),
887
- description && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1027
+ description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
888
1028
  "span",
889
1029
  {
890
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"}`,
@@ -899,42 +1039,119 @@ var Checkbox = (0, import_react7.forwardRef)(
899
1039
  );
900
1040
  Checkbox.displayName = "Checkbox";
901
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
+
902
1117
  // src/components/Dialog/Dialog.tsx
903
- var import_react8 = __toESM(require("react"));
1118
+ var import_react11 = __toESM(require("react"));
904
1119
  var import_react_dom2 = require("react-dom");
905
- var import_jsx_runtime8 = require("react/jsx-runtime");
906
- var Dialog = (0, import_react8.forwardRef)(
1120
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1121
+ var Dialog = (0, import_react11.forwardRef)(
907
1122
  ({
908
1123
  isForceOpen = false,
909
1124
  setIsForceOpen,
910
1125
  isClosedAble = true,
1126
+ isCloseIcon = true,
911
1127
  children,
912
1128
  startModalBtn,
913
1129
  stopModalBtn,
914
1130
  afterStopBtn,
915
- p = "20"
1131
+ p = "20",
1132
+ maxW = "md"
916
1133
  }, ref) => {
917
- const [isOpen, setIsOpen] = (0, import_react8.useState)(false);
918
- const [shouldRender, setShouldRender] = (0, import_react8.useState)(false);
919
- const [animate, setAnimate] = (0, import_react8.useState)(false);
920
- (0, import_react8.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)(() => {
921
1138
  if (isOpen) {
922
- setShouldRender(true);
1139
+ setIsRender(true);
923
1140
  setTimeout(() => setAnimate(true), 10);
924
1141
  } else {
925
1142
  setAnimate(false);
926
- const timer = setTimeout(() => setShouldRender(false), 300);
1143
+ const timer = setTimeout(() => setIsRender(false), 300);
927
1144
  return () => clearTimeout(timer);
928
1145
  }
929
1146
  }, [isOpen]);
930
- (0, import_react8.useEffect)(() => {
1147
+ (0, import_react11.useEffect)(() => {
931
1148
  if (isForceOpen) {
932
1149
  setIsOpen(true);
933
1150
  } else {
934
1151
  setIsOpen(false);
935
1152
  }
936
1153
  }, [isForceOpen]);
937
- const handleStartClick = (0, import_react8.useCallback)(
1154
+ const handleStartClick = (0, import_react11.useCallback)(
938
1155
  (e) => {
939
1156
  var _a, _b;
940
1157
  (_b = startModalBtn == null ? void 0 : (_a = startModalBtn.props).onClick) == null ? void 0 : _b.call(_a, e);
@@ -943,7 +1160,7 @@ var Dialog = (0, import_react8.forwardRef)(
943
1160
  },
944
1161
  [startModalBtn]
945
1162
  );
946
- const handleStopClick = (0, import_react8.useCallback)(
1163
+ const handleStopClick = (0, import_react11.useCallback)(
947
1164
  (e) => {
948
1165
  var _a, _b;
949
1166
  (_b = stopModalBtn == null ? void 0 : (_a = stopModalBtn.props).onClick) == null ? void 0 : _b.call(_a, e);
@@ -956,19 +1173,19 @@ var Dialog = (0, import_react8.forwardRef)(
956
1173
  setIsForceOpen == null ? void 0 : setIsForceOpen(false);
957
1174
  setIsOpen(false);
958
1175
  };
959
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { ref, style: { display: "contents" }, children: [
960
- startModalBtn && import_react8.default.cloneElement(startModalBtn, {
1176
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("span", { ref, style: { display: "contents" }, children: [
1177
+ startModalBtn && import_react11.default.cloneElement(startModalBtn, {
961
1178
  onClick: handleStartClick
962
1179
  }),
963
- shouldRender && (0, import_react_dom2.createPortal)(
964
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1180
+ isRender && (0, import_react_dom2.createPortal)(
1181
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
965
1182
  "div",
966
1183
  {
967
1184
  className: `fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300 ${animate ? "opacity-100" : "opacity-0"}`,
968
1185
  "aria-modal": "true",
969
1186
  role: "dialog",
970
1187
  children: [
971
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1188
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
972
1189
  "div",
973
1190
  {
974
1191
  className: "absolute inset-0 bg-black/40",
@@ -976,13 +1193,35 @@ var Dialog = (0, import_react8.forwardRef)(
976
1193
  "aria-label": "Close modal"
977
1194
  }
978
1195
  ),
979
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1196
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
980
1197
  "div",
981
1198
  {
982
- 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"}`,
983
1200
  children: [
1201
+ isCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1202
+ "svg",
1203
+ {
1204
+ xmlns: "http://www.w3.org/2000/svg",
1205
+ width: "20",
1206
+ height: "20",
1207
+ viewBox: "0 0 20 20",
1208
+ fill: "none",
1209
+ className: "text-gray-900 flex h-20 w-20 items-center justify-center absolute right-16 top-16 cursor-pointer",
1210
+ onMouseDown: (e) => {
1211
+ e.preventDefault();
1212
+ handleCloseClick();
1213
+ },
1214
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1215
+ "path",
1216
+ {
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",
1218
+ fill: "#111827"
1219
+ }
1220
+ )
1221
+ }
1222
+ ),
984
1223
  children,
985
- stopModalBtn && import_react8.default.cloneElement(stopModalBtn, {
1224
+ stopModalBtn && import_react11.default.cloneElement(stopModalBtn, {
986
1225
  onClick: handleStopClick
987
1226
  }),
988
1227
  afterStopBtn && afterStopBtn
@@ -999,10 +1238,342 @@ var Dialog = (0, import_react8.forwardRef)(
999
1238
  );
1000
1239
  Dialog.displayName = "Dialog";
1001
1240
 
1002
- // src/components/Icon/Icon.tsx
1003
- var import_react9 = require("react");
1004
- var import_jsx_runtime9 = require("react/jsx-runtime");
1005
- var Icon = (0, import_react9.forwardRef)(
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
+
1573
+ // src/components/Icon/Icon.tsx
1574
+ var import_react14 = require("react");
1575
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1576
+ var Icon = (0, import_react14.forwardRef)(
1006
1577
  (_a, ref) => {
1007
1578
  var _b = _a, {
1008
1579
  name,
@@ -1030,7 +1601,7 @@ var Icon = (0, import_react9.forwardRef)(
1030
1601
  "material-symbols-outlined select-none shrink-0 inline-block leading-none",
1031
1602
  className
1032
1603
  ].filter(Boolean).join(" ");
1033
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1604
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1034
1605
  "span",
1035
1606
  __spreadProps(__spreadValues({
1036
1607
  ref,
@@ -1052,124 +1623,211 @@ var Icon = (0, import_react9.forwardRef)(
1052
1623
  );
1053
1624
  Icon.displayName = "Icon";
1054
1625
 
1055
- // src/components/Radio/Radio.tsx
1056
- var import_react10 = require("react");
1057
- var import_jsx_runtime10 = require("react/jsx-runtime");
1058
- var sizeClasses4 = {
1059
- small: {
1060
- box: "h-4 w-4",
1061
- dot: "h-1.5 w-1.5",
1062
- label: "text-sm leading-5",
1063
- description: "text-xs leading-4",
1064
- gap: "gap-2"
1065
- },
1066
- medium: {
1067
- box: "h-5 w-5",
1068
- dot: "h-2 w-2",
1069
- label: "text-base leading-6",
1070
- description: "text-sm leading-5",
1071
- gap: "gap-2.5"
1072
- }
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"
1073
1642
  };
1074
- var Radio = (0, import_react10.forwardRef)(
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)(
1075
1656
  (_a, ref) => {
1076
1657
  var _b = _a, {
1077
- size = "medium",
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
+
1694
+ // src/components/Radio/Radio.tsx
1695
+ var import_react16 = require("react");
1696
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1697
+ var Radio = (0, import_react16.forwardRef)(
1698
+ (_a, ref) => {
1699
+ var _b = _a, {
1700
+ size = "sm",
1078
1701
  label,
1079
1702
  description,
1080
1703
  error = false,
1081
- contrast = false,
1082
1704
  checked,
1083
1705
  defaultChecked,
1084
1706
  disabled = false,
1085
1707
  className = "",
1086
- id
1708
+ id,
1709
+ name
1087
1710
  } = _b, rest = __objRest(_b, [
1088
1711
  "size",
1089
1712
  "label",
1090
1713
  "description",
1091
1714
  "error",
1092
- "contrast",
1093
1715
  "checked",
1094
1716
  "defaultChecked",
1095
1717
  "disabled",
1096
1718
  "className",
1097
- "id"
1719
+ "id",
1720
+ "name"
1098
1721
  ]);
1099
- const reactId = (0, import_react10.useId)();
1722
+ const reactId = (0, import_react16.useId)();
1100
1723
  const inputId = id != null ? id : reactId;
1101
- const sz = sizeClasses4[size];
1102
- const circleBase = [
1103
- "relative inline-flex items-center justify-center shrink-0",
1104
- "rounded-full",
1105
- "border",
1106
- "transition-colors duration-150",
1107
- sz.box
1108
- ].join(" ");
1109
- let circleState;
1110
- if (disabled) {
1111
- circleState = checked ? "bg-radio-disabled-selected-bg border-radio-disabled-border" : "bg-radio-disabled-bg border-radio-disabled-border";
1112
- } else if (contrast) {
1113
- circleState = checked ? "bg-radio-contrast-selected-bg border-radio-contrast-selected-bg" : "bg-radio-contrast-bg border-radio-contrast-border";
1114
- } else if (error) {
1115
- circleState = checked ? "bg-radio-selected-bg border-radio-error-border" : "bg-radio-error-bg border-radio-error-border";
1116
- } else if (checked) {
1117
- circleState = "bg-radio-selected-bg border-radio-selected-border";
1118
- } else {
1119
- circleState = "bg-radio-bg border-radio-border hover:border-radio-hover-border";
1120
- }
1121
- const ringColor = error ? "peer-focus-visible:ring-radio-error-ring" : contrast ? "peer-focus-visible:ring-radio-contrast-ring" : "peer-focus-visible:ring-radio-ring";
1122
- const ringClasses = `peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2 ${ringColor}`;
1123
- let dotColor;
1124
- if (disabled) {
1125
- dotColor = "bg-radio-disabled-dot";
1126
- } else if (contrast) {
1127
- dotColor = "bg-radio-contrast-selected-dot";
1128
- } else {
1129
- dotColor = "bg-radio-selected-dot";
1130
- }
1131
- const labelColor = disabled ? "text-radio-label-disabled" : contrast ? "text-radio-contrast-label" : error ? "text-radio-label-error" : "text-radio-label";
1132
- const descriptionColor = disabled ? "text-radio-label-disabled" : contrast ? "text-radio-contrast-description" : "text-radio-description";
1133
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1134
- "label",
1724
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1725
+ "div",
1135
1726
  {
1136
- htmlFor: inputId,
1137
- className: [
1138
- "inline-flex items-start font-sans",
1139
- sz.gap,
1140
- disabled ? "cursor-not-allowed" : "cursor-pointer",
1141
- className
1142
- ].filter(Boolean).join(" "),
1143
- children: [
1144
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "relative inline-flex", children: [
1145
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1146
- "input",
1147
- __spreadValues({
1148
- ref,
1149
- id: inputId,
1150
- type: "radio",
1151
- checked,
1152
- defaultChecked,
1153
- disabled,
1154
- className: "peer absolute inset-0 h-full w-full cursor-[inherit] opacity-0"
1155
- }, rest)
1156
- ),
1157
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: [circleBase, circleState, ringClasses].join(" "), children: checked && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: `rounded-full ${sz.dot} ${dotColor}` }) })
1158
- ] }),
1159
- (label || description) && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "flex flex-col", children: [
1160
- label && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: `${sz.label} font-medium ${labelColor}`, children: label }),
1161
- description && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: `${sz.description} ${descriptionColor}`, children: description })
1162
- ] })
1163
- ]
1727
+ className: `${disabled ? "cursor-not-allowed" : "cursor-pointer"} ${className}`,
1728
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1729
+ "label",
1730
+ {
1731
+ htmlFor: inputId,
1732
+ className: `flex gap-4 ${disabled ? "pointer-events-none text-gray-400" : "text-gray-900 cursor-pointer"}`,
1733
+ children: [
1734
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
1735
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1736
+ "input",
1737
+ __spreadValues({
1738
+ ref,
1739
+ id: inputId,
1740
+ type: "radio",
1741
+ className: "sr-only peer",
1742
+ checked,
1743
+ defaultChecked,
1744
+ disabled,
1745
+ name
1746
+ }, rest)
1747
+ ),
1748
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1749
+ "div",
1750
+ {
1751
+ className: `relative box flex items-center justify-center rounded-full border-2 group bg-white
1752
+ ${size === "sm" ? "h-16 w-16 my-4 ml-3 mr-3" : "m-3 h-20 w-20 text-label-large"}
1753
+ ${error ? "border-red-500" : "border-gray-600 peer-checked:border-blue-600 peer-disabled:border-gray-400!"}
1754
+ `,
1755
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1756
+ "span",
1757
+ {
1758
+ className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2
1759
+ ${size === "sm" ? "h-8 w-8" : "h-10 w-10"}
1760
+ rounded-full bg-white group-peer-checked:bg-blue-600 group-peer-disabled:bg-white`
1761
+ }
1762
+ )
1763
+ }
1764
+ )
1765
+ ] }),
1766
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1767
+ "div",
1768
+ {
1769
+ className: `flex flex-col gap-1 ${size === "sm" ? "mt-2" : "mt-4"}`,
1770
+ children: [
1771
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1772
+ "p",
1773
+ {
1774
+ className: `
1775
+ ${size === "sm" ? "text-label-medium" : "text-label-large"}
1776
+ ${disabled ? "text-gray-400" : "text-gray-900"}
1777
+ `,
1778
+ children: label
1779
+ }
1780
+ ),
1781
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1782
+ "p",
1783
+ {
1784
+ className: `text-caption-caption ${disabled ? "text-gray-400" : error ? "text-red-600" : "text-gray-600"}`,
1785
+ children: description
1786
+ }
1787
+ )
1788
+ ]
1789
+ }
1790
+ )
1791
+ ]
1792
+ }
1793
+ )
1164
1794
  }
1165
1795
  );
1166
1796
  }
1167
1797
  );
1168
1798
  Radio.displayName = "Radio";
1169
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
+
1170
1828
  // src/components/Slider/Slider.tsx
1171
- var import_react11 = require("react");
1172
- var import_jsx_runtime11 = require("react/jsx-runtime");
1829
+ var import_react18 = require("react");
1830
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1173
1831
  var sizeConfig = {
1174
1832
  small: {
1175
1833
  trackH: "h-4",
@@ -1200,7 +1858,7 @@ var sizeConfig = {
1200
1858
  }
1201
1859
  };
1202
1860
  function ChevronGlyphs({ size, color }) {
1203
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1861
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1204
1862
  "svg",
1205
1863
  {
1206
1864
  width: size,
@@ -1210,7 +1868,7 @@ function ChevronGlyphs({ size, color }) {
1210
1868
  xmlns: "http://www.w3.org/2000/svg",
1211
1869
  "aria-hidden": "true",
1212
1870
  children: [
1213
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1871
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1214
1872
  "path",
1215
1873
  {
1216
1874
  d: "M4.75 3.25L2.25 6L4.75 8.75",
@@ -1220,7 +1878,7 @@ function ChevronGlyphs({ size, color }) {
1220
1878
  strokeLinejoin: "round"
1221
1879
  }
1222
1880
  ),
1223
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1881
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1224
1882
  "path",
1225
1883
  {
1226
1884
  d: "M7.25 3.25L9.75 6L7.25 8.75",
@@ -1234,7 +1892,7 @@ function ChevronGlyphs({ size, color }) {
1234
1892
  }
1235
1893
  );
1236
1894
  }
1237
- var Slider = (0, import_react11.forwardRef)(
1895
+ var Slider = (0, import_react18.forwardRef)(
1238
1896
  (_a, ref) => {
1239
1897
  var _b = _a, {
1240
1898
  size = "medium",
@@ -1269,15 +1927,15 @@ var Slider = (0, import_react11.forwardRef)(
1269
1927
  "onChange",
1270
1928
  "aria-label"
1271
1929
  ]);
1272
- const reactId = (0, import_react11.useId)();
1930
+ const reactId = (0, import_react18.useId)();
1273
1931
  const inputId = id != null ? id : reactId;
1274
1932
  const sz = sizeConfig[size];
1275
1933
  const ariaLabel = ariaLabelProp != null ? ariaLabelProp : typeof label === "string" ? void 0 : "Slider";
1276
1934
  const ariaDescriptionId = description ? `${inputId}-description` : void 0;
1277
1935
  const isControlled = controlledValue !== void 0;
1278
- const [internalValue, setInternalValue] = (0, import_react11.useState)(defaultValue != null ? defaultValue : min);
1936
+ const [internalValue, setInternalValue] = (0, import_react18.useState)(defaultValue != null ? defaultValue : min);
1279
1937
  const currentValue = isControlled ? controlledValue : internalValue;
1280
- const handleChange = (0, import_react11.useCallback)(
1938
+ const handleChange = (0, import_react18.useCallback)(
1281
1939
  (e) => {
1282
1940
  const val = Number(e.target.value);
1283
1941
  if (!isControlled) {
@@ -1297,13 +1955,13 @@ var Slider = (0, import_react11.forwardRef)(
1297
1955
  const descriptionColor = disabled ? "text-slider-label-disabled" : "text-slider-description";
1298
1956
  const thumbOffset = percent * sz.thumbPx / 100;
1299
1957
  const fillOffset = sz.thumbPx / 2 - thumbOffset;
1300
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1958
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1301
1959
  "div",
1302
1960
  {
1303
1961
  className: ["flex w-full flex-col gap-8 font-sans", className].filter(Boolean).join(" "),
1304
1962
  children: [
1305
- (label || showValue && !disabled) && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center justify-between", children: [
1306
- label && /* @__PURE__ */ (0, import_jsx_runtime11.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)(
1307
1965
  "label",
1308
1966
  {
1309
1967
  htmlFor: inputId,
@@ -1316,7 +1974,7 @@ var Slider = (0, import_react11.forwardRef)(
1316
1974
  children: label
1317
1975
  }
1318
1976
  ),
1319
- showValue && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1977
+ showValue && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1320
1978
  "span",
1321
1979
  {
1322
1980
  className: [sz.description, "tabular-nums", labelColor].join(" "),
@@ -1324,7 +1982,7 @@ var Slider = (0, import_react11.forwardRef)(
1324
1982
  }
1325
1983
  )
1326
1984
  ] }),
1327
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1985
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1328
1986
  "div",
1329
1987
  {
1330
1988
  className: [
@@ -1333,7 +1991,7 @@ var Slider = (0, import_react11.forwardRef)(
1333
1991
  disabled ? "cursor-not-allowed" : "cursor-pointer"
1334
1992
  ].join(" "),
1335
1993
  children: [
1336
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1994
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1337
1995
  "div",
1338
1996
  {
1339
1997
  className: [
@@ -1343,14 +2001,14 @@ var Slider = (0, import_react11.forwardRef)(
1343
2001
  ].join(" ")
1344
2002
  }
1345
2003
  ),
1346
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2004
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1347
2005
  "div",
1348
2006
  {
1349
2007
  className: ["absolute left-0 rounded-full", sz.trackH, fillBg].join(" "),
1350
2008
  style: { width: `calc(${percent}% + ${fillOffset}px)` }
1351
2009
  }
1352
2010
  ),
1353
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2011
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1354
2012
  "input",
1355
2013
  __spreadValues({
1356
2014
  ref,
@@ -1371,7 +2029,7 @@ var Slider = (0, import_react11.forwardRef)(
1371
2029
  ].join(" ")
1372
2030
  }, rest)
1373
2031
  ),
1374
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2032
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1375
2033
  "div",
1376
2034
  {
1377
2035
  className: [
@@ -1384,13 +2042,13 @@ var Slider = (0, import_react11.forwardRef)(
1384
2042
  !disabled && "peer-hover:shadow-medium"
1385
2043
  ].filter(Boolean).join(" "),
1386
2044
  style: { left: `calc(${percent}% - ${thumbOffset}px)` },
1387
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChevronGlyphs, { size: sz.iconPx, color: iconColor })
2045
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ChevronGlyphs, { size: sz.iconPx, color: iconColor })
1388
2046
  }
1389
2047
  )
1390
2048
  ]
1391
2049
  }
1392
2050
  ),
1393
- description && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2051
+ description && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1394
2052
  "span",
1395
2053
  {
1396
2054
  id: ariaDescriptionId,
@@ -1405,31 +2063,345 @@ var Slider = (0, import_react11.forwardRef)(
1405
2063
  );
1406
2064
  Slider.displayName = "Slider";
1407
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
+
1408
2380
  // src/components/Toast/Toast.tsx
1409
- var import_react12 = require("react");
1410
- var import_jsx_runtime12 = require("react/jsx-runtime");
2381
+ var import_react22 = require("react");
2382
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1411
2383
  function CheckCircleIcon({ className }) {
1412
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1413
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
1414
- /* @__PURE__ */ (0, import_jsx_runtime12.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" })
1415
2387
  ] });
1416
2388
  }
1417
2389
  function ProgressIcon({ className }) {
1418
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1419
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5", opacity: "0.3" }),
1420
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { d: "M10 2a8 8 0 0 1 8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", children: /* @__PURE__ */ (0, import_jsx_runtime12.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" }) })
1421
2393
  ] });
1422
2394
  }
1423
2395
  function ErrorIcon({ className }) {
1424
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1425
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
1426
- /* @__PURE__ */ (0, import_jsx_runtime12.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" })
1427
2399
  ] });
1428
2400
  }
1429
- function CloseIcon2({ className }) {
1430
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime12.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" }) });
1431
2403
  }
1432
- var defaultIcons2 = {
2404
+ var defaultIcons3 = {
1433
2405
  default: CheckCircleIcon,
1434
2406
  progress: ProgressIcon,
1435
2407
  error: ErrorIcon
@@ -1444,7 +2416,7 @@ var iconColorClasses = {
1444
2416
  progress: "text-toast-progress-icon",
1445
2417
  error: "text-toast-error-icon"
1446
2418
  };
1447
- var Toast = (0, import_react12.forwardRef)(
2419
+ var Toast = (0, import_react22.forwardRef)(
1448
2420
  (_a, ref) => {
1449
2421
  var _b = _a, {
1450
2422
  type = "default",
@@ -1463,7 +2435,7 @@ var Toast = (0, import_react12.forwardRef)(
1463
2435
  "children",
1464
2436
  "className"
1465
2437
  ]);
1466
- const DefaultIcon = defaultIcons2[type];
2438
+ const DefaultIcon = defaultIcons3[type];
1467
2439
  const classes = [
1468
2440
  "inline-flex items-center gap-12 font-sans",
1469
2441
  "rounded-xl px-16 py-12",
@@ -1472,10 +2444,10 @@ var Toast = (0, import_react12.forwardRef)(
1472
2444
  typeClasses[type],
1473
2445
  className
1474
2446
  ].filter(Boolean).join(" ");
1475
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: classes }, rest), { children: [
1476
- icon && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: `shrink-0 ${iconColorClasses[type]}`, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DefaultIcon, { className: "h-20 w-20" }) }),
1477
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "flex-1 text-sm font-medium leading-20 truncate", children }),
1478
- actionLabel && onAction && /* @__PURE__ */ (0, import_jsx_runtime12.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)(
1479
2451
  "button",
1480
2452
  {
1481
2453
  type: "button",
@@ -1484,20 +2456,156 @@ var Toast = (0, import_react12.forwardRef)(
1484
2456
  children: actionLabel
1485
2457
  }
1486
2458
  ),
1487
- onDismiss && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2459
+ onDismiss && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1488
2460
  "button",
1489
2461
  {
1490
2462
  type: "button",
1491
2463
  onClick: onDismiss,
1492
2464
  className: "shrink-0 p-4 rounded-md text-toast-dismiss hover:text-toast-dismiss-hover transition-colors",
1493
2465
  "aria-label": "Dismiss",
1494
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CloseIcon2, { className: "h-16 w-16" })
2466
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CloseIcon3, { className: "h-16 w-16" })
1495
2467
  }
1496
2468
  )
1497
2469
  ] }));
1498
2470
  }
1499
2471
  );
1500
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";
1501
2609
  // Annotate the CommonJS export names for ESM import in node:
1502
2610
  0 && (module.exports = {
1503
2611
  Accordion,
@@ -1505,11 +2613,23 @@ Toast.displayName = "Toast";
1505
2613
  Avatar,
1506
2614
  Badge,
1507
2615
  BottomSheet,
2616
+ Branding,
1508
2617
  Button,
1509
2618
  Checkbox,
2619
+ Chip,
1510
2620
  Dialog,
2621
+ Dropdown,
2622
+ FinancialLogo,
1511
2623
  Icon,
2624
+ Link,
2625
+ Loading,
1512
2626
  Radio,
2627
+ SegmentControl,
1513
2628
  Slider,
1514
- Toast
2629
+ Tab,
2630
+ TextArea,
2631
+ TextField,
2632
+ Toast,
2633
+ ToggleSwitch,
2634
+ Tooltip
1515
2635
  });