@refinn/core-ui 0.1.14 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -58,6 +58,7 @@ __export(index_exports, {
58
58
  Button: () => Button,
59
59
  Checkbox: () => Checkbox,
60
60
  Chip: () => Chip,
61
+ CurrencyField: () => CurrencyField,
61
62
  Dialog: () => Dialog,
62
63
  Drawer: () => Drawer,
63
64
  Dropdown: () => Dropdown,
@@ -215,35 +216,271 @@ var Accordion = (0, import_react.forwardRef)(
215
216
  Accordion.displayName = "Accordion";
216
217
 
217
218
  // src/components/AlertBanner/AlertBanner.tsx
219
+ var import_react5 = require("react");
220
+
221
+ // src/components/Button/Button.tsx
222
+ var import_react3 = require("react");
223
+
224
+ // src/components/Loading/Loading.tsx
218
225
  var import_react2 = require("react");
219
226
  var import_jsx_runtime2 = require("react/jsx-runtime");
220
- var pageClasses = {
221
- info: "bg-alert-page-info-bg text-alert-text-primary-inverse",
222
- success: "bg-alert-page-success-bg text-alert-text-primary-inverse",
223
- warning: "bg-alert-page-warning-bg text-alert-text-primary-inverse",
224
- danger: "bg-alert-page-danger-bg text-alert-text-primary-inverse",
225
- none: "bg-alert-page-common-bg text-alert-text-primary-inverse"
227
+ var Loading = (0, import_react2.forwardRef)(
228
+ (_a, ref) => {
229
+ var _b = _a, { size = "sm", isDark = false, className = "" } = _b, rest = __objRest(_b, ["size", "isDark", "className"]);
230
+ const containerClasses = [
231
+ isDark ? "text-white-100" : "text-blue-600",
232
+ className
233
+ ].filter(Boolean).join(" ");
234
+ return size === "sm" && !isDark ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
235
+ "svg",
236
+ {
237
+ className: "animate-spin",
238
+ xmlns: "http://www.w3.org/2000/svg",
239
+ width: "18",
240
+ height: "18",
241
+ viewBox: "0 0 18 18",
242
+ fill: "none",
243
+ children: [
244
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
245
+ "path",
246
+ {
247
+ 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",
248
+ stroke: "#F3F4F6",
249
+ strokeWidth: "2"
250
+ }
251
+ ),
252
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
253
+ "path",
254
+ {
255
+ 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",
256
+ stroke: "#0193D7",
257
+ strokeWidth: "2"
258
+ }
259
+ )
260
+ ]
261
+ }
262
+ ) })) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
263
+ "svg",
264
+ {
265
+ className: "animate-spin",
266
+ width: size === "sm" ? 18 : 88,
267
+ height: size === "sm" ? 18 : 88,
268
+ viewBox: "0 0 20 20",
269
+ fill: "none",
270
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
271
+ "path",
272
+ {
273
+ d: "M10 2.5a7.5 7.5 0 1 0 7.5 7.5",
274
+ stroke: "currentColor",
275
+ strokeWidth: size === "sm" ? 2 : 1,
276
+ strokeLinecap: "round"
277
+ }
278
+ )
279
+ }
280
+ ) }));
281
+ }
282
+ );
283
+ Loading.displayName = "Loading";
284
+
285
+ // src/components/Button/Button.tsx
286
+ var import_jsx_runtime3 = require("react/jsx-runtime");
287
+ var variantClasses = {
288
+ primary: [
289
+ "bg-blue-600 text-white-100",
290
+ "hover:bg-blue-700",
291
+ "active:bg-blue-800",
292
+ "focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
293
+ "disabled:bg-gray-100 disabled:text-gray-400"
294
+ ].join(" "),
295
+ secondary: [
296
+ "bg-gray-100 text-gray-900",
297
+ "hover:bg-gray-200",
298
+ "active:bg-gray-300",
299
+ "focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
300
+ "disabled:bg-gray-100 disabled:text-gray-400"
301
+ ].join(" "),
302
+ tertiary: [
303
+ "bg-black-0 text-gray-900",
304
+ "hover:bg-gray-200",
305
+ "active:bg-gray-300",
306
+ "focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
307
+ "disabled:bg-gray-100 disabled:text-gray-400"
308
+ ].join(" "),
309
+ contrast: [
310
+ "bg-white-100 text-blue-600",
311
+ "hover:bg-white-90",
312
+ "active:bg-white-80",
313
+ "focus-visible:ring-2 focus-visible:ring-white-100 focus-visible:ring-offset-2",
314
+ "disabled:bg-gray-50 disabled:text-gray-400"
315
+ ].join(" "),
316
+ transparent: [
317
+ "bg-black-0 text-white-100",
318
+ "hover:bg-white-20",
319
+ "active:bg-white-30",
320
+ "focus-visible:ring-2 focus-visible:ring-white-100 focus-visible:bg-black-0 focus-visible:ring-offset-2",
321
+ "disabled:bg-black-0 disabled:text-white-40"
322
+ ].join(" ")
226
323
  };
227
- var SectionClasses = {
228
- info: "bg-alert-banner-background-info-subtle text-alert-text-primary",
229
- success: "bg-alert-banner-background-success-subtle text-alert-text-primary",
230
- warning: "bg-alert-banner-background-warning-subtle text-alert-text-primary",
231
- danger: "bg-alert-banner-background-danger-subtle text-alert-text-primary",
232
- none: "bg-alert-banner-background-common-subtle text-alert-text-primary"
324
+ var sizeClasses = {
325
+ sm: "px-16 py-6 text-label-medium",
326
+ md: "px-20 py-8 text-label-large",
327
+ lg: "px-24 py-12 text-label-large",
328
+ xl: "px-32 py-16 text-label-large"
233
329
  };
234
- var inlineClasses = {
235
- info: "bg-alert-banner-background-transparent text-alert-text-primary",
236
- success: "bg-alert-banner-background-transparent text-alert-text-primary",
237
- warning: "bg-alert-banner-background-transparent text-alert-text-primary",
238
- danger: "bg-alert-banner-background-transparent text-alert-text-primary",
239
- none: "bg-alert-banner-background-transparent text-alert-text-primary"
330
+ var Button = (0, import_react3.forwardRef)(
331
+ (_a, ref) => {
332
+ var _b = _a, {
333
+ variant = "primary",
334
+ size = "md",
335
+ rounded = false,
336
+ loading = false,
337
+ disabled = false,
338
+ startIcon,
339
+ endIcon,
340
+ children,
341
+ className = ""
342
+ } = _b, rest = __objRest(_b, [
343
+ "variant",
344
+ "size",
345
+ "rounded",
346
+ "loading",
347
+ "disabled",
348
+ "startIcon",
349
+ "endIcon",
350
+ "children",
351
+ "className"
352
+ ]);
353
+ const isDisabled = disabled;
354
+ const classes = [
355
+ "inline-flex items-center justify-center gap-8",
356
+ "transition-colors duration-150",
357
+ "outline-none",
358
+ "disabled:cursor-not-allowed",
359
+ loading ? "pointer-events-none" : "cursor-pointer",
360
+ sizeClasses[size],
361
+ variantClasses[variant],
362
+ rounded ? "rounded-full" : size === "sm" ? "rounded-6" : size === "xl" ? "rounded-12" : "rounded-8",
363
+ className
364
+ ].filter(Boolean).join(" ");
365
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", __spreadProps(__spreadValues({ ref, disabled: isDisabled, className: classes }, rest), { children: [
366
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Loading, { size: "sm", isDark: variant === "primary" || variant === "transparent" }) : startIcon,
367
+ children,
368
+ !loading && endIcon
369
+ ] }));
370
+ }
371
+ );
372
+ Button.displayName = "Button";
373
+
374
+ // src/components/IconButton/IconButton.tsx
375
+ var import_react4 = require("react");
376
+ var import_jsx_runtime4 = require("react/jsx-runtime");
377
+ var sizeClasses2 = {
378
+ xs: "h-24 w-24",
379
+ s: "h-32 w-32",
380
+ m: "h-40 w-40",
381
+ l: "h-48 w-48"
240
382
  };
241
- var actionsPageClasses = {
242
- info: "text-enabled-inverse",
243
- success: "text-enabled-inverse",
244
- warning: "text-enabled-dark",
245
- danger: "text-enabled-inverse",
246
- none: "text-enabled-inverse"
383
+ var iconSizeClasses = {
384
+ xs: "h-16 w-16",
385
+ s: "h-20 w-20",
386
+ m: "h-24 w-24",
387
+ l: "h-24 w-24"
388
+ };
389
+ var surfaceBackgroundClasses = {
390
+ default: {
391
+ enabled: "bg-icon-button-background-enabled",
392
+ hover: "hover:bg-icon-button-background-hover",
393
+ active: "active:bg-icon-button-background-active"
394
+ },
395
+ dark: {
396
+ enabled: "bg-icon-button-background-dark-transparent-enabled",
397
+ hover: "hover:bg-icon-button-background-dark-transparent-hover",
398
+ active: "active:bg-icon-button-background-dark-transparent-active"
399
+ },
400
+ light: {
401
+ enabled: "bg-icon-button-background-light-transparent-enabled",
402
+ hover: "hover:bg-icon-button-background-light-transparent-hover",
403
+ active: "active:bg-icon-button-background-light-transparent-active"
404
+ }
405
+ };
406
+ var surfaceIconClasses = {
407
+ default: {
408
+ primary: "text-icon-button-icon-primary",
409
+ danger: "text-icon-button-icon-danger",
410
+ disabled: "text-icon-button-icon-disabled"
411
+ },
412
+ dark: {
413
+ primary: "text-icon-button-icon-inverse",
414
+ danger: "text-icon-button-icon-inverse-danger",
415
+ disabled: "text-icon-button-icon-inverse-disabled"
416
+ },
417
+ light: {
418
+ primary: "text-icon-button-icon-inverse",
419
+ danger: "text-icon-button-icon-inverse-danger",
420
+ disabled: "text-icon-button-icon-inverse-disabled"
421
+ }
422
+ };
423
+ var IconButton = (0, import_react4.forwardRef)(
424
+ (_a, ref) => {
425
+ var _b = _a, {
426
+ icon,
427
+ size = "s",
428
+ surface = "default",
429
+ transparent = false,
430
+ danger = false,
431
+ disabled = false,
432
+ className = ""
433
+ } = _b, rest = __objRest(_b, [
434
+ "icon",
435
+ "size",
436
+ "surface",
437
+ "transparent",
438
+ "danger",
439
+ "disabled",
440
+ "className"
441
+ ]);
442
+ const background = surfaceBackgroundClasses[surface];
443
+ const iconColor = surfaceIconClasses[surface];
444
+ const classes = [
445
+ "inline-flex shrink-0 items-center justify-center rounded-full transition-colors",
446
+ "focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-icon-button-border-focus",
447
+ sizeClasses2[size],
448
+ transparent ? "bg-icon-button-background-transparent" : background.enabled,
449
+ disabled ? `cursor-not-allowed ${iconColor.disabled}` : [
450
+ "cursor-pointer",
451
+ background.hover,
452
+ background.active,
453
+ danger ? iconColor.danger : iconColor.primary
454
+ ].join(" "),
455
+ className
456
+ ].filter(Boolean).join(" ");
457
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", __spreadProps(__spreadValues({ ref, type: "button", disabled, className: classes }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: `shrink-0 flex items-center justify-center ${iconSizeClasses[size]}`, children: icon }) }));
458
+ }
459
+ );
460
+ IconButton.displayName = "IconButton";
461
+
462
+ // src/components/AlertBanner/AlertBanner.tsx
463
+ var import_jsx_runtime5 = require("react/jsx-runtime");
464
+ var pageBgClasses = {
465
+ info: "bg-alert-page-info-bg",
466
+ success: "bg-alert-page-success-bg",
467
+ warning: "bg-alert-page-warning-bg",
468
+ danger: "bg-alert-page-danger-bg",
469
+ none: "bg-alert-page-common-bg"
470
+ };
471
+ var pageTextIsDark = {
472
+ info: false,
473
+ success: false,
474
+ warning: true,
475
+ danger: false,
476
+ none: false
477
+ };
478
+ var sectionBgClasses = {
479
+ info: "bg-alert-banner-background-info-subtle",
480
+ success: "bg-alert-banner-background-success-subtle",
481
+ warning: "bg-alert-banner-background-warning-subtle",
482
+ danger: "bg-alert-banner-background-danger-subtle",
483
+ none: "bg-alert-banner-background-common-subtle"
247
484
  };
248
485
  var inlineIconClasses = {
249
486
  info: "text-alert-inline-info-icon",
@@ -253,25 +490,25 @@ var inlineIconClasses = {
253
490
  none: "text-alert-inline-common-icon"
254
491
  };
255
492
  function InfoIcon({ className }) {
256
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime2.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" }) });
493
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM9 8.5h2V14H9V8.5ZM9 6h2v1.5H9V6Z" }) });
257
494
  }
258
495
  function SuccessIcon({ className }) {
259
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
260
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z", stroke: "currentColor", strokeWidth: "1.5" }),
261
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
262
- ] });
496
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.8 13.2 6.3 10.7 7.4 9.6 8.8 11 12.9 6.9 14 8 8.8 13.2Z" }) });
263
497
  }
264
498
  function WarningIcon({ className }) {
265
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime2.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" }) });
499
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.87 3.2a1 1 0 0 0-1.74 0L1.6 16.5A1 1 0 0 0 2.47 18h15.06a1 1 0 0 0 .87-1.5L10.87 3.2ZM9.1 8h1.8v4.2H9.1V8ZM9.1 13.3h1.8V15H9.1v-1.7Z" }) });
266
500
  }
267
501
  function DangerIcon({ className }) {
268
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime2.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" }) });
502
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM9 5.5h2V11H9V5.5ZM9 13h2v1.5H9V13Z" }) });
269
503
  }
270
- function NoneIcon({ className }) {
271
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
504
+ function NoneIcon() {
505
+ return null;
272
506
  }
273
507
  function CloseIcon({ className }) {
274
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
508
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
509
+ }
510
+ function ArrowRightIcon({ className }) {
511
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M4 10h12M11 5l5 5-5 5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
275
512
  }
276
513
  var defaultIcons = {
277
514
  info: InfoIcon,
@@ -280,14 +517,15 @@ var defaultIcons = {
280
517
  danger: DangerIcon,
281
518
  none: NoneIcon
282
519
  };
283
- var AlertBanner = (0, import_react2.forwardRef)(
520
+ var AlertBanner = (0, import_react5.forwardRef)(
284
521
  (_a, ref) => {
285
522
  var _b = _a, {
286
523
  variant = "info",
287
524
  mode = "inline",
288
525
  title,
289
526
  description,
290
- action,
527
+ buttonAction,
528
+ buttonLink,
291
529
  icon,
292
530
  onClose,
293
531
  className = "",
@@ -297,7 +535,8 @@ var AlertBanner = (0, import_react2.forwardRef)(
297
535
  "mode",
298
536
  "title",
299
537
  "description",
300
- "action",
538
+ "buttonAction",
539
+ "buttonLink",
301
540
  "icon",
302
541
  "onClose",
303
542
  "className",
@@ -305,49 +544,73 @@ var AlertBanner = (0, import_react2.forwardRef)(
305
544
  ]);
306
545
  const isPage = mode === "page";
307
546
  const isSection = mode === "section";
308
- const variantClass = isPage ? pageClasses[variant] : isSection ? SectionClasses[variant] : inlineClasses[variant];
309
- const actionClass = isPage ? actionsPageClasses[variant] : "text-enabled";
547
+ const isStacked = Boolean(buttonAction);
548
+ const pageIsDark = isPage && pageTextIsDark[variant];
549
+ const bgClass = isPage ? pageBgClasses[variant] : isSection ? sectionBgClasses[variant] : "bg-alert-banner-background-transparent";
310
550
  const DefaultIcon = defaultIcons[variant];
311
- const iconColorClass = isPage ? "" : inlineIconClasses[variant];
312
- const descColorClass = isPage ? "text-alert-text-secondary-inverse" : "text-alert-text-secondary";
313
- const closeColorClass = isPage ? "text-alert-close-inverse hover:text-alert-close-inverse-hover" : "text-alert-close hover:text-alert-close-hover";
314
- const classes = [
315
- "flex items-start gap-24 font-sans justify-between",
551
+ const iconColorClass = isPage ? pageIsDark ? "text-alert-text-primary" : "text-white-100" : inlineIconClasses[variant];
552
+ const titleColorClass = isPage ? pageIsDark ? "text-alert-text-primary" : "text-alert-text-primary-inverse" : "text-alert-text-primary";
553
+ const descColorClass = isPage ? pageIsDark ? "text-alert-text-secondary" : "text-alert-text-secondary-inverse" : "text-alert-text-secondary";
554
+ const linkColorClass = isPage ? pageIsDark ? "text-alert-text-primary" : "text-white-100" : "text-enabled";
555
+ const closeButtonSurface = isPage ? "dark" : "default";
556
+ const containerClasses = [
557
+ "flex font-sans",
558
+ isStacked ? "flex-col items-start gap-8" : "items-center gap-24",
316
559
  isPage ? "p-12" : isSection ? "p-12 rounded-md" : "p-0",
317
- variantClass,
560
+ bgClass,
318
561
  className
319
562
  ].filter(Boolean).join(" ");
320
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: classes }, rest), { children: [
321
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex items-start gap-8", children: [
322
- icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(DefaultIcon, { className: `h-20 w-20 ${iconColorClass}` }),
323
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex-1 min-w-0 flex flex-col", children: [
324
- title && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "text-label-medium", children: title }),
325
- description && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: `text-body-small ${descColorClass} ${title ? "mt-2" : ""} ${children ? "mb-8" : ""}`, children: description }),
563
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: containerClasses }, rest), { children: [
564
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: `flex w-full items-start gap-8 ${isStacked ? "" : "flex-1 min-w-0"}`, children: [
565
+ icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DefaultIcon, { className: `h-20 w-20 shrink-0 ${iconColorClass}` }),
566
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-1 min-w-0 flex flex-col gap-2", children: [
567
+ title && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: `text-label-medium ${titleColorClass}`, children: title }),
568
+ description && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: `text-body-small ${descColorClass}`, children: description }),
326
569
  children
327
- ] })
328
- ] }),
329
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: `flex ${children ? "items-start" : "self-center"} gap-24`, children: [
330
- (action == null ? void 0 : action[0]) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("a", { className: `${actionClass} underline text-sm font-medium`, href: action[1], children: action[0] }),
331
- onClose && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
332
- "button",
570
+ ] }),
571
+ !isStacked && buttonLink && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
572
+ "a",
573
+ {
574
+ href: buttonLink.href,
575
+ onClick: buttonLink.onClick,
576
+ className: `shrink-0 self-center text-link-small font-medium underline ${linkColorClass}`,
577
+ children: buttonLink.label
578
+ }
579
+ ),
580
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
581
+ IconButton,
333
582
  {
334
- type: "button",
583
+ size: "s",
584
+ surface: closeButtonSurface,
585
+ transparent: true,
335
586
  onClick: onClose,
336
- className: `shrink-0 p-2 rounded transition-colors ${closeColorClass}`,
337
- "aria-label": "Close",
338
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CloseIcon, { className: "h-16 w-16" })
587
+ className: "shrink-0",
588
+ "aria-label": "\u0E1B\u0E34\u0E14",
589
+ icon: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CloseIcon, { className: "h-16 w-16" })
339
590
  }
340
591
  )
341
- ] })
592
+ ] }),
593
+ isStacked && buttonAction && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex w-full items-start gap-12 pl-28", children: isPage ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Button, { variant: "secondary", size: "sm", onClick: buttonAction.onClick, children: buttonAction.label }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
594
+ "a",
595
+ {
596
+ href: buttonAction.href,
597
+ onClick: buttonAction.onClick,
598
+ className: "flex items-center gap-2 text-link-small font-medium text-enabled",
599
+ children: [
600
+ buttonAction.label,
601
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ArrowRightIcon, { className: "h-20 w-20" })
602
+ ]
603
+ }
604
+ ) })
342
605
  ] }));
343
606
  }
344
607
  );
345
608
  AlertBanner.displayName = "AlertBanner";
346
609
 
347
610
  // src/components/Avatar/Avatar.tsx
348
- var import_react3 = require("react");
349
- var import_jsx_runtime3 = require("react/jsx-runtime");
350
- var sizeClasses = {
611
+ var import_react6 = require("react");
612
+ var import_jsx_runtime6 = require("react/jsx-runtime");
613
+ var sizeClasses3 = {
351
614
  sm: { container: "h-24 w-24", text: "text-sm", status: "h-6 w-6", statusRing: "ring-1" },
352
615
  md: { container: "h-32 w-32", text: "text-base", status: "h-8 w-8", statusRing: "ring-[1.5px]" },
353
616
  lg: { container: "h-40 w-40", text: "text-lg", status: "h-10 w-10", statusRing: "ring-2" },
@@ -365,9 +628,9 @@ function getInitials(name) {
365
628
  return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();
366
629
  }
367
630
  function PersonIcon({ className }) {
368
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { className, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { d: "M10 10a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM3.75 17.5a6.25 6.25 0 0 1 12.5 0" }) });
631
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", { className, viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", { d: "M10 10a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5ZM3.75 17.5a6.25 6.25 0 0 1 12.5 0" }) });
369
632
  }
370
- var Avatar = (0, import_react3.forwardRef)(
633
+ var Avatar = (0, import_react6.forwardRef)(
371
634
  (_a, ref) => {
372
635
  var _b = _a, {
373
636
  size = "md",
@@ -386,7 +649,7 @@ var Avatar = (0, import_react3.forwardRef)(
386
649
  "status",
387
650
  "className"
388
651
  ]);
389
- const sz = sizeClasses[size];
652
+ const sz = sizeClasses3[size];
390
653
  const containerClasses = [
391
654
  "relative inline-flex items-center justify-center shrink-0 rounded-full",
392
655
  "bg-avatar-bg text-avatar-text font-medium font-sans",
@@ -397,7 +660,7 @@ var Avatar = (0, import_react3.forwardRef)(
397
660
  ].filter(Boolean).join(" ");
398
661
  let content;
399
662
  if (src) {
400
- content = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
663
+ content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
401
664
  "img",
402
665
  {
403
666
  src,
@@ -408,13 +671,13 @@ var Avatar = (0, import_react3.forwardRef)(
408
671
  } else if (icon) {
409
672
  content = icon;
410
673
  } else if (name) {
411
- content = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: sz.text, children: getInitials(name) });
674
+ content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: sz.text, children: getInitials(name) });
412
675
  } else {
413
- content = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PersonIcon, { className: `${sz.text} h-[60%] w-[60%]` });
676
+ content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PersonIcon, { className: `${sz.text} h-[60%] w-[60%]` });
414
677
  }
415
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: [
678
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: [
416
679
  content,
417
- status && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
680
+ status && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
418
681
  "span",
419
682
  {
420
683
  className: [
@@ -432,14 +695,14 @@ var Avatar = (0, import_react3.forwardRef)(
432
695
  Avatar.displayName = "Avatar";
433
696
 
434
697
  // src/components/Badge/Badge.tsx
435
- var import_react4 = require("react");
436
- var import_jsx_runtime4 = require("react/jsx-runtime");
437
- var sizeClasses2 = {
698
+ var import_react7 = require("react");
699
+ var import_jsx_runtime7 = require("react/jsx-runtime");
700
+ var sizeClasses4 = {
438
701
  sm: "h-20 px-8 py-2 text-label-small gap-4",
439
702
  md: "h-28 px-10 py-4 text-label-medium gap-4",
440
703
  lg: "h-32 px-14 py-6 text-label-large gap-6"
441
704
  };
442
- var iconSizeClasses = {
705
+ var iconSizeClasses2 = {
443
706
  sm: "h-16 w-16",
444
707
  md: "h-20 w-20",
445
708
  lg: "h-24 w-24"
@@ -473,7 +736,7 @@ var styleMap = {
473
736
  subtle: subtleClasses,
474
737
  bold: boldClasses
475
738
  };
476
- var Badge = (0, import_react4.forwardRef)(
739
+ var Badge = (0, import_react7.forwardRef)(
477
740
  (_a, ref) => {
478
741
  var _b = _a, {
479
742
  status = "common",
@@ -495,13 +758,13 @@ var Badge = (0, import_react4.forwardRef)(
495
758
  const classes = [
496
759
  "inline-flex items-center justify-center font-medium font-sans",
497
760
  "whitespace-nowrap select-none",
498
- sizeClasses2[size],
761
+ sizeClasses4[size],
499
762
  shape === "round" ? "rounded-full" : `rounded-${size}`,
500
763
  styleMap[badgeStyle][status],
501
764
  className
502
765
  ].filter(Boolean).join(" ");
503
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", __spreadProps(__spreadValues({ ref, className: classes }, rest), { children: [
504
- icon && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: `shrink-0 ${iconSizeClasses[size]}`, children: icon }),
766
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", __spreadProps(__spreadValues({ ref, className: classes }, rest), { children: [
767
+ icon && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: `shrink-0 ${iconSizeClasses2[size]}`, children: icon }),
505
768
  children
506
769
  ] }));
507
770
  }
@@ -509,18 +772,18 @@ var Badge = (0, import_react4.forwardRef)(
509
772
  Badge.displayName = "Badge";
510
773
 
511
774
  // src/components/Branding/Branding.tsx
512
- var import_react5 = require("react");
513
- var import_jsx_runtime5 = require("react/jsx-runtime");
514
- var Branding = (0, import_react5.forwardRef)(
775
+ var import_react8 = require("react");
776
+ var import_jsx_runtime8 = require("react/jsx-runtime");
777
+ var Branding = (0, import_react8.forwardRef)(
515
778
  (_a, ref) => {
516
779
  var _b = _a, { type = "brand", className = "" } = _b, rest = __objRest(_b, ["type", "className"]);
517
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
780
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
518
781
  "div",
519
782
  __spreadProps(__spreadValues({
520
783
  ref,
521
784
  className: `${type === "black" ? "text-gray-900" : type === "white" ? "text-white-100" : "text-blue-600"} ${className}`
522
785
  }, rest), {
523
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
786
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
524
787
  "svg",
525
788
  {
526
789
  xmlns: "http://www.w3.org/2000/svg",
@@ -529,8 +792,8 @@ var Branding = (0, import_react5.forwardRef)(
529
792
  viewBox: "0 0 89 20",
530
793
  fill: "currentColor",
531
794
  children: [
532
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("g", { clipPath: "url(#clip0_828_998)", children: [
533
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
795
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("g", { clipPath: "url(#clip0_828_998)", children: [
796
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
534
797
  "path",
535
798
  {
536
799
  fillRule: "evenodd",
@@ -539,14 +802,14 @@ var Branding = (0, import_react5.forwardRef)(
539
802
  fill: "currentColor"
540
803
  }
541
804
  ),
542
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
805
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
543
806
  "path",
544
807
  {
545
808
  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",
546
809
  fill: "currentColor"
547
810
  }
548
811
  ),
549
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
812
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
550
813
  "path",
551
814
  {
552
815
  fillRule: "evenodd",
@@ -555,7 +818,7 @@ var Branding = (0, import_react5.forwardRef)(
555
818
  fill: "currentColor"
556
819
  }
557
820
  ),
558
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
821
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
559
822
  "path",
560
823
  {
561
824
  fillRule: "evenodd",
@@ -564,7 +827,7 @@ var Branding = (0, import_react5.forwardRef)(
564
827
  fill: "currentColor"
565
828
  }
566
829
  ),
567
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
830
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
568
831
  "path",
569
832
  {
570
833
  fillRule: "evenodd",
@@ -573,7 +836,7 @@ var Branding = (0, import_react5.forwardRef)(
573
836
  fill: "currentColor"
574
837
  }
575
838
  ),
576
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
839
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
577
840
  "path",
578
841
  {
579
842
  fillRule: "evenodd",
@@ -582,7 +845,7 @@ var Branding = (0, import_react5.forwardRef)(
582
845
  fill: "currentColor"
583
846
  }
584
847
  ),
585
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
848
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
586
849
  "path",
587
850
  {
588
851
  fillRule: "evenodd",
@@ -592,7 +855,7 @@ var Branding = (0, import_react5.forwardRef)(
592
855
  }
593
856
  )
594
857
  ] }),
595
- /* @__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" }) }) })
858
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("clipPath", { id: "clip0_828_998", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("rect", { width: "88.892", height: "20", fill: "currentColor" }) }) })
596
859
  ]
597
860
  }
598
861
  )
@@ -602,171 +865,18 @@ var Branding = (0, import_react5.forwardRef)(
602
865
  );
603
866
  Branding.displayName = "Branding";
604
867
 
605
- // src/components/Button/Button.tsx
606
- var import_react7 = require("react");
607
-
608
- // src/components/Loading/Loading.tsx
609
- var import_react6 = require("react");
610
- var import_jsx_runtime6 = require("react/jsx-runtime");
611
- var Loading = (0, import_react6.forwardRef)(
612
- (_a, ref) => {
613
- var _b = _a, { size = "sm", isDark = false, className = "" } = _b, rest = __objRest(_b, ["size", "isDark", "className"]);
614
- const containerClasses = [
615
- isDark ? "text-white-100" : "text-blue-600",
616
- className
617
- ].filter(Boolean).join(" ");
618
- return size === "sm" && !isDark ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
619
- "svg",
620
- {
621
- className: "animate-spin",
622
- xmlns: "http://www.w3.org/2000/svg",
623
- width: "18",
624
- height: "18",
625
- viewBox: "0 0 18 18",
626
- fill: "none",
627
- children: [
628
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
629
- "path",
630
- {
631
- 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",
632
- stroke: "#F3F4F6",
633
- strokeWidth: "2"
634
- }
635
- ),
636
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
637
- "path",
638
- {
639
- 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",
640
- stroke: "#0193D7",
641
- strokeWidth: "2"
642
- }
643
- )
644
- ]
645
- }
646
- ) })) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", __spreadProps(__spreadValues({ ref, className: containerClasses }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
647
- "svg",
648
- {
649
- className: "animate-spin",
650
- width: size === "sm" ? 18 : 88,
651
- height: size === "sm" ? 18 : 88,
652
- viewBox: "0 0 20 20",
653
- fill: "none",
654
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
655
- "path",
656
- {
657
- d: "M10 2.5a7.5 7.5 0 1 0 7.5 7.5",
658
- stroke: "currentColor",
659
- strokeWidth: size === "sm" ? 2 : 1,
660
- strokeLinecap: "round"
661
- }
662
- )
663
- }
664
- ) }));
665
- }
666
- );
667
- Loading.displayName = "Loading";
668
-
669
- // src/components/Button/Button.tsx
670
- var import_jsx_runtime7 = require("react/jsx-runtime");
671
- var variantClasses = {
672
- primary: [
673
- "bg-blue-600 text-white-100",
674
- "hover:bg-blue-700",
675
- "active:bg-blue-800",
676
- "focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
677
- "disabled:bg-gray-100 disabled:text-gray-400"
678
- ].join(" "),
679
- secondary: [
680
- "bg-gray-100 text-gray-900",
681
- "hover:bg-gray-200",
682
- "active:bg-gray-300",
683
- "focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
684
- "disabled:bg-gray-100 disabled:text-gray-400"
685
- ].join(" "),
686
- tertiary: [
687
- "bg-black-0 text-gray-900",
688
- "hover:bg-gray-200",
689
- "active:bg-gray-300",
690
- "focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
691
- "disabled:bg-gray-100 disabled:text-gray-400"
692
- ].join(" "),
693
- contrast: [
694
- "bg-white-100 text-blue-600",
695
- "hover:bg-white-90",
696
- "active:bg-white-80",
697
- "focus-visible:ring-2 focus-visible:ring-white-100 focus-visible:ring-offset-2",
698
- "disabled:bg-gray-50 disabled:text-gray-400"
699
- ].join(" "),
700
- transparent: [
701
- "bg-black-0 text-white-100",
702
- "hover:bg-white-20",
703
- "active:bg-white-30",
704
- "focus-visible:ring-2 focus-visible:ring-white-100 focus-visible:bg-black-0 focus-visible:ring-offset-2",
705
- "disabled:bg-black-0 disabled:text-white-40"
706
- ].join(" ")
707
- };
708
- var sizeClasses3 = {
709
- sm: "px-16 py-6 text-label-medium",
710
- md: "px-20 py-8 text-label-large",
711
- lg: "px-24 py-12 text-label-large",
712
- xl: "px-32 py-16 text-label-large"
713
- };
714
- var Button = (0, import_react7.forwardRef)(
715
- (_a, ref) => {
716
- var _b = _a, {
717
- variant = "primary",
718
- size = "md",
719
- rounded = false,
720
- loading = false,
721
- disabled = false,
722
- startIcon,
723
- endIcon,
724
- children,
725
- className = ""
726
- } = _b, rest = __objRest(_b, [
727
- "variant",
728
- "size",
729
- "rounded",
730
- "loading",
731
- "disabled",
732
- "startIcon",
733
- "endIcon",
734
- "children",
735
- "className"
736
- ]);
737
- const isDisabled = disabled;
738
- const classes = [
739
- "inline-flex items-center justify-center gap-8",
740
- "transition-colors duration-150",
741
- "outline-none",
742
- "disabled:cursor-not-allowed",
743
- loading ? "pointer-events-none" : "cursor-pointer",
744
- sizeClasses3[size],
745
- variantClasses[variant],
746
- rounded ? "rounded-full" : size === "sm" ? "rounded-6" : size === "xl" ? "rounded-12" : "rounded-8",
747
- className
748
- ].filter(Boolean).join(" ");
749
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("button", __spreadProps(__spreadValues({ ref, disabled: isDisabled, className: classes }, rest), { children: [
750
- loading ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Loading, { size: "sm", isDark: variant === "primary" || variant === "transparent" }) : startIcon,
751
- children,
752
- !loading && endIcon
753
- ] }));
754
- }
755
- );
756
- Button.displayName = "Button";
757
-
758
868
  // src/components/Checkbox/Checkbox.tsx
759
- var import_react8 = require("react");
760
- var import_jsx_runtime8 = require("react/jsx-runtime");
869
+ var import_react9 = require("react");
870
+ var import_jsx_runtime9 = require("react/jsx-runtime");
761
871
  function CheckIcon({ className }) {
762
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
872
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
763
873
  "svg",
764
874
  {
765
875
  className,
766
876
  viewBox: "0 0 16 16",
767
877
  fill: "none",
768
878
  "aria-hidden": "true",
769
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
879
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
770
880
  "path",
771
881
  {
772
882
  d: "M13.333 4.667 6 12l-3.333-3.333",
@@ -780,14 +890,14 @@ function CheckIcon({ className }) {
780
890
  );
781
891
  }
782
892
  function IndeterminateIcon({ className }) {
783
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
893
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
784
894
  "svg",
785
895
  {
786
896
  className,
787
897
  viewBox: "0 0 16 16",
788
898
  fill: "none",
789
899
  "aria-hidden": "true",
790
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
900
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
791
901
  "path",
792
902
  {
793
903
  d: "M3.333 8h9.334",
@@ -811,7 +921,7 @@ var descriptionPaddingClasses = {
811
921
  s: "pl-24",
812
922
  m: "pl-28"
813
923
  };
814
- var Checkbox = (0, import_react8.forwardRef)(
924
+ var Checkbox = (0, import_react9.forwardRef)(
815
925
  (_a, ref) => {
816
926
  var _b = _a, {
817
927
  size = "s",
@@ -840,10 +950,10 @@ var Checkbox = (0, import_react8.forwardRef)(
840
950
  "defaultChecked",
841
951
  "onChange"
842
952
  ]);
843
- const reactId = (0, import_react8.useId)();
953
+ const reactId = (0, import_react9.useId)();
844
954
  const inputId = id != null ? id : reactId;
845
955
  const isControlled = checked !== void 0;
846
- const [uncontrolledChecked, setUncontrolledChecked] = (0, import_react8.useState)(
956
+ const [uncontrolledChecked, setUncontrolledChecked] = (0, import_react9.useState)(
847
957
  defaultChecked != null ? defaultChecked : false
848
958
  );
849
959
  const isChecked = isControlled ? checked : uncontrolledChecked;
@@ -877,15 +987,15 @@ var Checkbox = (0, import_react8.forwardRef)(
877
987
  const ringClass = error ? "peer-focus-visible:outline-checkbox-error-ring" : contrast ? "peer-focus-visible:outline-checkbox-contrast-ring" : "peer-focus-visible:outline-checkbox-ring";
878
988
  const labelColorClass = disabled ? "text-checkbox-label-disabled" : contrast ? "text-checkbox-contrast-label" : "text-checkbox-label";
879
989
  const descriptionColorClass = disabled ? "text-checkbox-label-disabled" : error ? "text-checkbox-label-error" : contrast ? "text-checkbox-contrast-description" : "text-checkbox-description";
880
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
990
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
881
991
  "label",
882
992
  {
883
993
  htmlFor: inputId,
884
994
  className: `inline-flex select-none flex-col font-sans ${disabled ? "cursor-not-allowed" : "cursor-pointer"} ${className}`,
885
995
  children: [
886
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-4", children: [
887
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "relative shrink-0", children: [
888
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
996
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-4", children: [
997
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "relative shrink-0", children: [
998
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
889
999
  "input",
890
1000
  __spreadValues({
891
1001
  ref,
@@ -902,16 +1012,16 @@ var Checkbox = (0, import_react8.forwardRef)(
902
1012
  className: "peer sr-only"
903
1013
  }, rest)
904
1014
  ),
905
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1015
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
906
1016
  "div",
907
1017
  {
908
1018
  className: `flex items-center justify-center rounded-md border transition-colors ${boxSizeClasses[size]} ${bgClass} ${borderClass} ${hoverClass} ${ringClass} peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2`,
909
- children: isChecked ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1019
+ children: isChecked ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
910
1020
  CheckIcon,
911
1021
  {
912
1022
  className: `${boxSizeClasses[size]} ${iconColorClass}`
913
1023
  }
914
- ) : indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1024
+ ) : indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
915
1025
  IndeterminateIcon,
916
1026
  {
917
1027
  className: `${boxSizeClasses[size]} ${iconColorClass}`
@@ -920,9 +1030,9 @@ var Checkbox = (0, import_react8.forwardRef)(
920
1030
  }
921
1031
  )
922
1032
  ] }),
923
- label && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: `${labelTextClasses[size]} ${labelColorClass}`, children: label })
1033
+ label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: `${labelTextClasses[size]} ${labelColorClass}`, children: label })
924
1034
  ] }),
925
- description && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1035
+ description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
926
1036
  "span",
927
1037
  {
928
1038
  className: `text-body-small ${descriptionPaddingClasses[size]} ${descriptionColorClass}`,
@@ -937,124 +1047,441 @@ var Checkbox = (0, import_react8.forwardRef)(
937
1047
  Checkbox.displayName = "Checkbox";
938
1048
 
939
1049
  // src/components/Chip/Chip.tsx
940
- var import_react9 = require("react");
941
- var import_jsx_runtime9 = require("react/jsx-runtime");
942
- var sizeClasses4 = {
943
- sm: "h-32 text-label-medium px-12 py-6",
944
- md: "h-40 text-label-large px-16 py-10",
945
- lg: "h-48 text-label-large px-24 py-14"
946
- };
947
- var marginImgClasses = {
948
- sm: "-ml-10 -my-4 h-28 w-28",
949
- md: "-ml-12 -my-6 h-32 w-32",
950
- lg: "-ml-18 -my-8 h-32 w-32"
1050
+ var import_react10 = require("react");
1051
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1052
+ var sizeBaseClasses = {
1053
+ sm: "min-h-32 min-w-56 gap-4 py-2 text-label-medium",
1054
+ md: "min-h-40 min-w-56 gap-8 py-4 text-label-large",
1055
+ lg: "min-h-48 min-w-96 gap-8 py-8 text-label-large"
951
1056
  };
952
- var isOutlinedClasses = {
953
- true: "border border-chip-border-enabled bg-chip-background-inverse",
954
- false: "border-0 bg-chip-background-enabled"
1057
+ var paddingXClasses = {
1058
+ sm: "px-12",
1059
+ md: "px-16",
1060
+ lg: "px-24"
955
1061
  };
956
- var isDarkClasses = {
957
- true: "!bg-chip-background-black-active !text-chip-text-inverse",
958
- false: "!bg-chip-background-active !text-chip-text-inverse"
1062
+ var bankLogoPaddingXClasses = {
1063
+ md: "pl-4 pr-16",
1064
+ lg: "pl-8 pr-16"
959
1065
  };
960
- var Chip = (0, import_react9.forwardRef)(
1066
+ function toneClasses(selected, outline, variant) {
1067
+ if (selected) {
1068
+ return variant === "dark" ? "bg-chip-background-black-active text-chip-text-inverse hover:bg-chip-background-black-active-hover group-disabled:bg-chip-background-active-disabled group-disabled:text-chip-text-inverse-disabled" : "bg-chip-background-active text-chip-text-inverse hover:bg-chip-background-active-hover group-disabled:bg-chip-background-active-disabled group-disabled:text-chip-text-inverse-disabled";
1069
+ }
1070
+ if (outline) {
1071
+ return "bg-chip-background-inverse text-chip-text-enabled border border-chip-border-enabled hover:bg-chip-background-hover hover:border-chip-border-hover group-disabled:text-chip-text-disabled";
1072
+ }
1073
+ return "bg-chip-background-enabled text-chip-text-enabled hover:bg-chip-background-hover group-disabled:bg-chip-background-disabled group-disabled:text-chip-text-disabled";
1074
+ }
1075
+ var Chip = (0, import_react10.forwardRef)(
961
1076
  (_a, ref) => {
962
1077
  var _b = _a, {
963
1078
  size = "md",
964
- src,
965
- alt = "",
966
1079
  label,
967
- icon,
968
- isOutlined = false,
969
- isDark = false,
970
- isSelected = false,
1080
+ variant = "brand",
1081
+ outline = false,
1082
+ selected,
1083
+ defaultSelected = false,
1084
+ onSelectedChange,
1085
+ startIcon,
1086
+ endIcon,
1087
+ bankLogoSrc,
1088
+ bankLogoAlt = "",
971
1089
  disabled = false,
1090
+ onClick,
972
1091
  className = ""
973
1092
  } = _b, rest = __objRest(_b, [
974
- "size",
975
- "src",
976
- "alt",
1093
+ "size",
977
1094
  "label",
978
- "icon",
979
- "isOutlined",
980
- "isDark",
981
- "isSelected",
1095
+ "variant",
1096
+ "outline",
1097
+ "selected",
1098
+ "defaultSelected",
1099
+ "onSelectedChange",
1100
+ "startIcon",
1101
+ "endIcon",
1102
+ "bankLogoSrc",
1103
+ "bankLogoAlt",
982
1104
  "disabled",
1105
+ "onClick",
983
1106
  "className"
984
1107
  ]);
985
- const sz = sizeClasses4[size];
986
- const outlinedClass = isOutlinedClasses[String(isOutlined)];
987
- const darkClass = isDarkClasses[String(isDark)];
988
- const containerClasses = [
989
- "w-fit rounded-full flex flex-row gap-8 items-center justify-center text-chip-text-enabled",
1108
+ const [uncontrolledSelected, setUncontrolledSelected] = (0, import_react10.useState)(defaultSelected);
1109
+ const isSelected = selected != null ? selected : uncontrolledSelected;
1110
+ const showBankLogo = Boolean(bankLogoSrc) && size !== "sm";
1111
+ const handleClick = (event) => {
1112
+ onClick == null ? void 0 : onClick(event);
1113
+ if (event.defaultPrevented) return;
1114
+ const next = !isSelected;
1115
+ if (selected === void 0) setUncontrolledSelected(next);
1116
+ onSelectedChange == null ? void 0 : onSelectedChange(next);
1117
+ };
1118
+ const wrapperClasses = [
1119
+ "group rounded-full border-2 border-transparent p-2 outline-none",
1120
+ "transition-colors",
990
1121
  disabled ? "cursor-not-allowed" : "cursor-pointer",
991
- outlinedClass,
992
- sz,
993
- className,
994
- isSelected ? darkClass : ""
1122
+ "focus-visible:border-chip-border-focus",
1123
+ className
995
1124
  ].filter(Boolean).join(" ");
996
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
997
- "div",
1125
+ const baseClasses = [
1126
+ "flex items-center justify-center rounded-full transition-colors",
1127
+ sizeBaseClasses[size],
1128
+ showBankLogo ? bankLogoPaddingXClasses[size] : paddingXClasses[size],
1129
+ toneClasses(isSelected, outline && !isSelected, variant)
1130
+ ].filter(Boolean).join(" ");
1131
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1132
+ "button",
998
1133
  __spreadProps(__spreadValues({
999
1134
  ref,
1000
- className: containerClasses
1135
+ type: "button",
1136
+ disabled,
1137
+ "aria-pressed": isSelected,
1138
+ onClick: handleClick,
1139
+ className: wrapperClasses
1001
1140
  }, rest), {
1002
- children: [
1003
- icon ? icon : src && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("img", { src, alt, className: `${marginImgClasses[size]} rounded-full` }),
1004
- label
1005
- ]
1141
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: baseClasses, children: [
1142
+ showBankLogo ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1143
+ "img",
1144
+ {
1145
+ src: bankLogoSrc,
1146
+ alt: bankLogoAlt,
1147
+ className: "size-32 shrink-0 rounded-full object-contain"
1148
+ }
1149
+ ) : startIcon,
1150
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "min-w-0 truncate", children: label }),
1151
+ !showBankLogo && endIcon
1152
+ ] })
1006
1153
  })
1007
1154
  );
1008
1155
  }
1009
1156
  );
1010
1157
  Chip.displayName = "Chip";
1011
1158
 
1012
- // src/components/Dialog/Dialog.tsx
1159
+ // src/components/CurrencyField/CurrencyField.tsx
1160
+ var import_react12 = require("react");
1161
+
1162
+ // src/components/TextField/TextField.tsx
1013
1163
  var import_react11 = require("react");
1014
- var import_react_dom = require("react-dom");
1164
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1165
+ var TextField = (0, import_react11.forwardRef)(
1166
+ (_a, ref) => {
1167
+ var _b = _a, {
1168
+ size = "md",
1169
+ error,
1170
+ label,
1171
+ placeholder,
1172
+ helperText,
1173
+ prefix,
1174
+ suffix,
1175
+ optional = false,
1176
+ success = false,
1177
+ pending = false,
1178
+ clearable = true,
1179
+ disabled = false,
1180
+ type,
1181
+ value,
1182
+ onChange,
1183
+ onFocus,
1184
+ onBlur,
1185
+ className
1186
+ } = _b, props = __objRest(_b, [
1187
+ "size",
1188
+ "error",
1189
+ "label",
1190
+ "placeholder",
1191
+ "helperText",
1192
+ "prefix",
1193
+ "suffix",
1194
+ "optional",
1195
+ "success",
1196
+ "pending",
1197
+ "clearable",
1198
+ "disabled",
1199
+ "type",
1200
+ "value",
1201
+ "onChange",
1202
+ "onFocus",
1203
+ "onBlur",
1204
+ "className"
1205
+ ]);
1206
+ const [isFocused, setIsFocused] = (0, import_react11.useState)(false);
1207
+ const isActive = isFocused && !!value;
1208
+ const iconButtonSize = size === "lg" ? "m" : "s";
1209
+ const inputRef = (0, import_react11.useRef)(null);
1210
+ (0, import_react11.useImperativeHandle)(ref, () => inputRef.current);
1211
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "w-full flex flex-col gap-4 font-sans", children: [
1212
+ label ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1213
+ "p",
1214
+ {
1215
+ className: `text-label-medium text-left items-left flex gap-4 ${disabled ? "text-text-field-text-disabled" : "text-text-field-text-primary"}`,
1216
+ children: [
1217
+ label,
1218
+ optional && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-text-field-text-secondary", children: `(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)` })
1219
+ ]
1220
+ }
1221
+ ) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {}),
1222
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1223
+ "div",
1224
+ {
1225
+ className: `flex items-center gap-8 w-full rounded-6 border ${size === "lg" ? "h-48 py-16" : "h-40 py-12"} px-16 ${disabled ? "cursor-not-allowed" : "cursor-text"} ${disabled ? "bg-text-field-background-disabled border-text-field-border-disabled" : error ? `bg-text-field-background-enabled border-text-field-border-danger ${isFocused ? "ring-1 ring-inset ring-text-field-border-danger" : ""}` : isActive ? "bg-text-field-background-enabled border-text-field-border-active ring-1 ring-inset ring-text-field-border-active" : isFocused ? "bg-text-field-background-enabled border-text-field-border-focus ring-1 ring-inset ring-text-field-border-focus" : "bg-text-field-background-enabled border-text-field-border-enabled hover:border-text-field-border-hover"} ${className != null ? className : ""}`,
1226
+ onMouseDown: (e) => {
1227
+ var _a2;
1228
+ if (e.target !== inputRef.current && !disabled) {
1229
+ e.preventDefault();
1230
+ (_a2 = inputRef.current) == null ? void 0 : _a2.focus();
1231
+ }
1232
+ },
1233
+ children: [
1234
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1235
+ "span",
1236
+ {
1237
+ className: `shrink-0 ${disabled ? "text-static-icon-disabled" : "text-static-icon-primary"}`,
1238
+ children: prefix
1239
+ }
1240
+ ),
1241
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1242
+ "input",
1243
+ __spreadValues({
1244
+ ref: inputRef,
1245
+ type: type || "text",
1246
+ placeholder,
1247
+ disabled: disabled || pending,
1248
+ onFocus: (e) => {
1249
+ setIsFocused(true);
1250
+ onFocus == null ? void 0 : onFocus(e);
1251
+ },
1252
+ onBlur: (e) => {
1253
+ setIsFocused(false);
1254
+ onBlur == null ? void 0 : onBlur(e);
1255
+ },
1256
+ value,
1257
+ onChange,
1258
+ className: `w-full min-w-0 text-body-small bg-transparent focus:outline-none placeholder:text-text-field-text-tertiary ${disabled ? "text-text-field-text-disabled" : "text-text-field-text-primary"}`
1259
+ }, props)
1260
+ ),
1261
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1262
+ "span",
1263
+ {
1264
+ className: `shrink-0 ${disabled ? "text-static-icon-disabled" : "text-static-icon-primary"}`,
1265
+ children: suffix
1266
+ }
1267
+ ),
1268
+ (pending || clearable || success || error) && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1269
+ "span",
1270
+ {
1271
+ className: `shrink-0 flex items-center justify-center ${size === "lg" ? "h-40 w-40" : "h-32 w-32"}`,
1272
+ children: pending ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Loading, { size: "sm" }) : clearable && isFocused && value ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1273
+ IconButton,
1274
+ {
1275
+ size: iconButtonSize,
1276
+ transparent: true,
1277
+ "aria-label": "\u0E25\u0E49\u0E32\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21",
1278
+ icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1279
+ "svg",
1280
+ {
1281
+ xmlns: "http://www.w3.org/2000/svg",
1282
+ width: "20",
1283
+ height: "20",
1284
+ viewBox: "0 0 20 20",
1285
+ fill: "none",
1286
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1287
+ "path",
1288
+ {
1289
+ 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",
1290
+ fill: "currentColor"
1291
+ }
1292
+ )
1293
+ }
1294
+ ),
1295
+ onMouseDown: (e) => {
1296
+ e.preventDefault();
1297
+ },
1298
+ onClick: () => {
1299
+ onChange == null ? void 0 : onChange({
1300
+ target: { value: "" }
1301
+ });
1302
+ }
1303
+ }
1304
+ ) : success ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1305
+ "svg",
1306
+ {
1307
+ xmlns: "http://www.w3.org/2000/svg",
1308
+ width: "20",
1309
+ height: "20",
1310
+ viewBox: "0 0 20 20",
1311
+ fill: "none",
1312
+ className: "text-accent-success flex h-20 w-20 items-center justify-center",
1313
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1314
+ "path",
1315
+ {
1316
+ fillRule: "evenodd",
1317
+ clipRule: "evenodd",
1318
+ d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
1319
+ fill: "currentColor"
1320
+ }
1321
+ )
1322
+ }
1323
+ ) : error ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1324
+ "svg",
1325
+ {
1326
+ xmlns: "http://www.w3.org/2000/svg",
1327
+ width: "20",
1328
+ height: "20",
1329
+ viewBox: "0 0 20 20",
1330
+ fill: "none",
1331
+ className: "text-text-field-text-danger flex h-20 w-20 items-center justify-center",
1332
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1333
+ "path",
1334
+ {
1335
+ 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",
1336
+ fill: "currentColor"
1337
+ }
1338
+ )
1339
+ }
1340
+ ) : null
1341
+ }
1342
+ )
1343
+ ]
1344
+ }
1345
+ ),
1346
+ error ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-caption-caption text-left items-left text-text-field-text-danger", children: error }) : helperText ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1347
+ "p",
1348
+ {
1349
+ className: `text-caption-caption text-left items-left ${disabled ? "text-text-field-text-disabled" : "text-text-field-text-secondary"}`,
1350
+ children: helperText
1351
+ }
1352
+ ) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {})
1353
+ ] });
1354
+ }
1355
+ );
1356
+ TextField.displayName = "TextField";
1015
1357
 
1016
- // src/components/IconButton/IconButton.tsx
1017
- var import_react10 = require("react");
1018
- var import_jsx_runtime10 = require("react/jsx-runtime");
1019
- var sizeClasses5 = {
1020
- xs: "h-24 w-24",
1021
- s: "h-32 w-32",
1022
- m: "h-40 w-40",
1023
- l: "h-48 w-48"
1024
- };
1025
- var iconSizeClasses2 = {
1026
- xs: "h-16 w-16",
1027
- s: "h-20 w-20",
1028
- m: "h-20 w-20",
1029
- l: "h-24 w-24"
1030
- };
1031
- var IconButton = (0, import_react10.forwardRef)(
1358
+ // src/components/CurrencyField/CurrencyField.tsx
1359
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1360
+ function toDigits(value) {
1361
+ if (value === void 0 || Number.isNaN(value)) return "";
1362
+ return String(Math.trunc(value)).replace(/[^\d]/g, "");
1363
+ }
1364
+ function formatDigits(digits) {
1365
+ if (!digits) return "";
1366
+ const normalized = digits.replace(/^0+(?=\d)/, "");
1367
+ return Number(normalized).toLocaleString("en-US");
1368
+ }
1369
+ var CurrencyField = (0, import_react12.forwardRef)(
1032
1370
  (_a, ref) => {
1033
- var _b = _a, { icon, size = "s", danger = false, disabled = false, className = "" } = _b, rest = __objRest(_b, ["icon", "size", "danger", "disabled", "className"]);
1034
- const classes = [
1035
- "inline-flex shrink-0 items-center justify-center rounded-full transition-colors",
1036
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-icon-button-border-focus",
1037
- sizeClasses5[size],
1038
- disabled ? "cursor-not-allowed text-icon-button-icon-disabled" : danger ? "cursor-pointer text-icon-button-icon-danger hover:bg-icon-button-background-hover active:bg-icon-button-background-active" : "cursor-pointer text-icon-button-icon-primary hover:bg-icon-button-background-hover active:bg-icon-button-background-active",
1371
+ var _b = _a, {
1372
+ value,
1373
+ onChange,
1374
+ min,
1375
+ minErrorText,
1376
+ max,
1377
+ maxErrorText,
1378
+ currencyIcon,
1379
+ error,
1380
+ onBlur,
1039
1381
  className
1040
- ].filter(Boolean).join(" ");
1041
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", __spreadProps(__spreadValues({ ref, type: "button", disabled, className: classes }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: `shrink-0 flex items-center justify-center ${iconSizeClasses2[size]}`, children: icon }) }));
1382
+ } = _b, props = __objRest(_b, [
1383
+ "value",
1384
+ "onChange",
1385
+ "min",
1386
+ "minErrorText",
1387
+ "max",
1388
+ "maxErrorText",
1389
+ "currencyIcon",
1390
+ "error",
1391
+ "onBlur",
1392
+ "className"
1393
+ ]);
1394
+ const inputRef = (0, import_react12.useRef)(null);
1395
+ (0, import_react12.useImperativeHandle)(ref, () => inputRef.current);
1396
+ const [displayValue, setDisplayValue] = (0, import_react12.useState)(
1397
+ () => formatDigits(toDigits(value))
1398
+ );
1399
+ const [touched, setTouched] = (0, import_react12.useState)(false);
1400
+ const pendingCursorRef = (0, import_react12.useRef)(null);
1401
+ (0, import_react12.useEffect)(() => {
1402
+ const externalDigits = toDigits(value);
1403
+ const currentDigits = displayValue.replace(/[^\d]/g, "");
1404
+ if (externalDigits !== currentDigits) {
1405
+ setDisplayValue(formatDigits(externalDigits));
1406
+ }
1407
+ }, [value]);
1408
+ (0, import_react12.useLayoutEffect)(() => {
1409
+ if (pendingCursorRef.current !== null && inputRef.current) {
1410
+ inputRef.current.setSelectionRange(
1411
+ pendingCursorRef.current,
1412
+ pendingCursorRef.current
1413
+ );
1414
+ pendingCursorRef.current = null;
1415
+ }
1416
+ }, [displayValue]);
1417
+ const handleChange = (event) => {
1418
+ var _a2;
1419
+ const input = event.target;
1420
+ const raw = input.value;
1421
+ const cursorPos = (_a2 = input.selectionStart) != null ? _a2 : raw.length;
1422
+ const digitsBeforeCursor = raw.slice(0, cursorPos).replace(/[^\d]/g, "").length;
1423
+ const digits2 = raw.replace(/[^\d]/g, "");
1424
+ const formatted = formatDigits(digits2);
1425
+ let newCursor = formatted.length;
1426
+ if (digitsBeforeCursor === 0) {
1427
+ newCursor = 0;
1428
+ } else {
1429
+ let count = 0;
1430
+ for (let i = 0; i < formatted.length; i += 1) {
1431
+ if (/\d/.test(formatted[i])) {
1432
+ count += 1;
1433
+ if (count === digitsBeforeCursor) {
1434
+ newCursor = i + 1;
1435
+ break;
1436
+ }
1437
+ }
1438
+ }
1439
+ }
1440
+ pendingCursorRef.current = newCursor;
1441
+ setDisplayValue(formatted);
1442
+ const normalized = digits2.replace(/^0+(?=\d)/, "");
1443
+ onChange == null ? void 0 : onChange(normalized === "" ? void 0 : Number(normalized));
1444
+ };
1445
+ const digits = displayValue.replace(/[^\d]/g, "");
1446
+ const numericValue = digits === "" ? void 0 : Number(digits);
1447
+ const belowMin = touched && min !== void 0 && numericValue !== void 0 && numericValue < min;
1448
+ const aboveMax = touched && max !== void 0 && numericValue !== void 0 && numericValue > max;
1449
+ const computedError = error != null ? error : belowMin ? minErrorText != null ? minErrorText : `\u0E08\u0E33\u0E19\u0E27\u0E19\u0E40\u0E07\u0E34\u0E19\u0E02\u0E31\u0E49\u0E19\u0E15\u0E48\u0E33\u0E04\u0E37\u0E2D ${min.toLocaleString("en-US")} \u0E1A\u0E32\u0E17` : aboveMax ? maxErrorText != null ? maxErrorText : `\u0E08\u0E33\u0E19\u0E27\u0E19\u0E40\u0E07\u0E34\u0E19\u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14\u0E04\u0E37\u0E2D ${max.toLocaleString("en-US")} \u0E1A\u0E32\u0E17` : void 0;
1450
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1451
+ TextField,
1452
+ __spreadValues({
1453
+ ref: inputRef,
1454
+ type: "text",
1455
+ inputMode: "tel",
1456
+ prefix: currencyIcon != null ? currencyIcon : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-body-small", children: "\u0E3F" }),
1457
+ value: displayValue,
1458
+ onChange: handleChange,
1459
+ onBlur: (event) => {
1460
+ setTouched(true);
1461
+ onBlur == null ? void 0 : onBlur(event);
1462
+ },
1463
+ error: computedError,
1464
+ className: `[&>input]:relative [&>input]:top-1 ${className != null ? className : ""}`
1465
+ }, props)
1466
+ );
1042
1467
  }
1043
1468
  );
1044
- IconButton.displayName = "IconButton";
1469
+ CurrencyField.displayName = "CurrencyField";
1045
1470
 
1046
1471
  // src/components/Dialog/Dialog.tsx
1047
- var import_jsx_runtime11 = require("react/jsx-runtime");
1472
+ var import_react13 = require("react");
1473
+ var import_react_dom = require("react-dom");
1474
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1048
1475
  function CloseIcon2({ className }) {
1049
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1476
+ 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" }) });
1050
1477
  }
1051
1478
  function WarningIcon2({ className }) {
1052
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M1 21h22L12 2 1 21Zm12-3h-2v-2h2v2Zm0-4h-2v-4h2v4Z" }) });
1479
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { d: "M1 21h22L12 2 1 21Zm12-3h-2v-2h2v2Zm0-4h-2v-4h2v4Z" }) });
1053
1480
  }
1054
1481
  function useMountTransition(open, duration = 300) {
1055
- const [mounted, setMounted] = (0, import_react11.useState)(open);
1056
- const [animate, setAnimate] = (0, import_react11.useState)(open);
1057
- (0, import_react11.useEffect)(() => {
1482
+ const [mounted, setMounted] = (0, import_react13.useState)(open);
1483
+ const [animate, setAnimate] = (0, import_react13.useState)(open);
1484
+ (0, import_react13.useEffect)(() => {
1058
1485
  if (open) {
1059
1486
  setMounted(true);
1060
1487
  let raf2 = 0;
@@ -1079,9 +1506,9 @@ function DialogAction({
1079
1506
  }) {
1080
1507
  if (!action) return null;
1081
1508
  const _a = action, { label, className = "" } = _a, rest = __objRest(_a, ["label", "className"]);
1082
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, __spreadProps(__spreadValues({ variant, size: "lg", className: `w-full lg:w-auto ${orderClass} ${className}` }, rest), { children: label }));
1509
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Button, __spreadProps(__spreadValues({ variant, size: "lg", className: `w-full lg:w-auto ${orderClass} ${className}` }, rest), { children: label }));
1083
1510
  }
1084
- var Dialog = (0, import_react11.forwardRef)(
1511
+ var Dialog = (0, import_react13.forwardRef)(
1085
1512
  (_a, ref) => {
1086
1513
  var _b = _a, {
1087
1514
  open,
@@ -1115,7 +1542,7 @@ var Dialog = (0, import_react11.forwardRef)(
1115
1542
  "className"
1116
1543
  ]);
1117
1544
  const { mounted, animate } = useMountTransition(open);
1118
- (0, import_react11.useEffect)(() => {
1545
+ (0, import_react13.useEffect)(() => {
1119
1546
  if (!open || !closable) return;
1120
1547
  const handleKeyDown = (e) => {
1121
1548
  if (e.key === "Escape") onOpenChange == null ? void 0 : onOpenChange(false);
@@ -1135,7 +1562,7 @@ var Dialog = (0, import_react11.forwardRef)(
1135
1562
  const mobileTransition = display === "centered" ? animate ? "scale-100 opacity-100" : "scale-95 opacity-0" : animate ? "translate-y-0" : "translate-y-full";
1136
1563
  const desktopTransition = animate ? "lg:scale-100 lg:opacity-100 lg:translate-y-0" : "lg:scale-95 lg:opacity-0 lg:translate-y-0";
1137
1564
  return (0, import_react_dom.createPortal)(
1138
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1565
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1139
1566
  "div",
1140
1567
  {
1141
1568
  className: [
@@ -1150,7 +1577,7 @@ var Dialog = (0, import_react11.forwardRef)(
1150
1577
  ].filter(Boolean).join(" "),
1151
1578
  role: "presentation",
1152
1579
  onMouseDown: handleBackdropMouseDown,
1153
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1580
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1154
1581
  "div",
1155
1582
  __spreadProps(__spreadValues({
1156
1583
  ref,
@@ -1170,53 +1597,53 @@ var Dialog = (0, import_react11.forwardRef)(
1170
1597
  onMouseDown: (e) => e.stopPropagation()
1171
1598
  }, rest), {
1172
1599
  children: [
1173
- artwork ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "relative shrink-0 bg-background-tertiary", children: [
1174
- closable && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "absolute right-24 top-20", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1600
+ artwork ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "relative shrink-0 bg-background-tertiary", children: [
1601
+ closable && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "absolute right-24 top-20", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1175
1602
  IconButton,
1176
1603
  {
1177
- icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CloseIcon2, { className: "h-24 w-24" }),
1604
+ icon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CloseIcon2, { className: "h-24 w-24" }),
1178
1605
  size: "m",
1606
+ surface: "dark",
1179
1607
  "aria-label": "\u0E1B\u0E34\u0E14",
1180
- onClick: handleClose,
1181
- className: "bg-icon-button-background-dark-transparent-enabled hover:bg-icon-button-background-dark-transparent-hover active:bg-icon-button-background-dark-transparent-active text-icon-button-icon-inverse!"
1608
+ onClick: handleClose
1182
1609
  }
1183
1610
  ) }),
1184
1611
  artwork
1185
1612
  ] }) : null,
1186
- showHeader && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex shrink-0 items-center gap-8 bg-dialog-background-primary px-16 pb-12 pt-16 lg:px-24 lg:pb-12 lg:pt-20", children: [
1187
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex min-w-0 flex-1 items-start gap-8", children: [
1188
- warning && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "flex shrink-0 items-center pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(WarningIcon2, { className: "h-20 w-20 text-dialog-icon-warning lg:h-24 lg:w-24" }) }),
1189
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1190
- title && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-heading-3 text-dialog-text-primary lg:text-heading-3-md", children: title }),
1191
- subtitle && !artwork && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-body-small text-dialog-text-secondary", children: subtitle })
1613
+ showHeader && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex shrink-0 items-center gap-8 bg-dialog-background-primary px-16 pb-12 pt-16 lg:px-24 lg:pb-12 lg:pt-20", children: [
1614
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex min-w-0 flex-1 items-start gap-8", children: [
1615
+ warning && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "flex shrink-0 items-center pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(WarningIcon2, { className: "h-20 w-20 text-dialog-icon-warning lg:h-24 lg:w-24" }) }),
1616
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1617
+ title && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-heading-3 text-dialog-text-primary lg:text-heading-3-md", children: title }),
1618
+ subtitle && !artwork && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-body-small text-dialog-text-secondary", children: subtitle })
1192
1619
  ] })
1193
1620
  ] }),
1194
- closable && !artwork && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
1195
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1621
+ closable && !artwork && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
1622
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1196
1623
  IconButton,
1197
1624
  {
1198
- icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CloseIcon2, { className: "h-20 w-20" }),
1625
+ icon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CloseIcon2, { className: "h-20 w-20" }),
1199
1626
  size: "s",
1200
1627
  "aria-label": "\u0E1B\u0E34\u0E14",
1201
1628
  onClick: handleClose,
1202
- className: "bg-icon-button-background-enabled lg:hidden!"
1629
+ className: "lg:hidden!"
1203
1630
  }
1204
1631
  ),
1205
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1632
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1206
1633
  IconButton,
1207
1634
  {
1208
- icon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CloseIcon2, { className: "h-24 w-24" }),
1635
+ icon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CloseIcon2, { className: "h-24 w-24" }),
1209
1636
  size: "m",
1210
1637
  "aria-label": "\u0E1B\u0E34\u0E14",
1211
1638
  onClick: handleClose,
1212
- className: "hidden! bg-icon-button-background-enabled lg:inline-flex!"
1639
+ className: "hidden! lg:inline-flex!"
1213
1640
  }
1214
1641
  )
1215
1642
  ] })
1216
1643
  ] }),
1217
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex-1 overflow-y-auto bg-dialog-background-primary px-16 py-12 text-body-small text-dialog-text-primary lg:px-24 lg:text-body-regular", children }),
1218
- showFooter && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex shrink-0 flex-col gap-8 bg-dialog-background-primary px-16 pb-16 pt-12 lg:flex-row lg:items-center lg:justify-end lg:px-24 lg:pb-24", children: [
1219
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1644
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "flex-1 overflow-y-auto bg-dialog-background-primary px-16 py-12 text-body-small text-dialog-text-primary lg:px-24 lg:text-body-regular", children }),
1645
+ showFooter && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex shrink-0 flex-col gap-8 bg-dialog-background-primary px-16 pb-16 pt-12 lg:flex-row lg:items-center lg:justify-end lg:px-24 lg:pb-24", children: [
1646
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1220
1647
  DialogAction,
1221
1648
  {
1222
1649
  action: dismiss,
@@ -1224,8 +1651,8 @@ var Dialog = (0, import_react11.forwardRef)(
1224
1651
  orderClass: `order-3 lg:order-1 ${splitDismissLeft ? "lg:mr-auto" : ""}`
1225
1652
  }
1226
1653
  ),
1227
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogAction, { action: secondary, variant: "secondary", orderClass: "order-1 lg:order-2" }),
1228
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogAction, { action: confirm, variant: "primary", orderClass: "order-2 lg:order-3" })
1654
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogAction, { action: secondary, variant: "secondary", orderClass: "order-1 lg:order-2" }),
1655
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogAction, { action: confirm, variant: "primary", orderClass: "order-2 lg:order-3" })
1229
1656
  ] })
1230
1657
  ]
1231
1658
  })
@@ -1239,16 +1666,16 @@ var Dialog = (0, import_react11.forwardRef)(
1239
1666
  Dialog.displayName = "Dialog";
1240
1667
 
1241
1668
  // src/components/Drawer/Drawer.tsx
1242
- var import_react12 = require("react");
1669
+ var import_react14 = require("react");
1243
1670
  var import_react_dom2 = require("react-dom");
1244
- var import_jsx_runtime12 = require("react/jsx-runtime");
1671
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1245
1672
  function CloseIcon3({ className }) {
1246
- 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" }) });
1673
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1247
1674
  }
1248
1675
  function useMountTransition2(open, duration = 300) {
1249
- const [mounted, setMounted] = (0, import_react12.useState)(open);
1250
- const [animate, setAnimate] = (0, import_react12.useState)(open);
1251
- (0, import_react12.useEffect)(() => {
1676
+ const [mounted, setMounted] = (0, import_react14.useState)(open);
1677
+ const [animate, setAnimate] = (0, import_react14.useState)(open);
1678
+ (0, import_react14.useEffect)(() => {
1252
1679
  if (open) {
1253
1680
  setMounted(true);
1254
1681
  let raf2 = 0;
@@ -1273,7 +1700,7 @@ function DrawerAction({
1273
1700
  }) {
1274
1701
  if (!action) return null;
1275
1702
  const _a = action, { label, className = "" } = _a, rest = __objRest(_a, ["label", "className"]);
1276
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1703
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1277
1704
  Button,
1278
1705
  __spreadProps(__spreadValues({
1279
1706
  variant,
@@ -1284,7 +1711,7 @@ function DrawerAction({
1284
1711
  })
1285
1712
  );
1286
1713
  }
1287
- var Drawer = (0, import_react12.forwardRef)(
1714
+ var Drawer = (0, import_react14.forwardRef)(
1288
1715
  (_a, ref) => {
1289
1716
  var _b = _a, {
1290
1717
  open,
@@ -1318,7 +1745,7 @@ var Drawer = (0, import_react12.forwardRef)(
1318
1745
  "className"
1319
1746
  ]);
1320
1747
  const { mounted, animate } = useMountTransition2(open);
1321
- (0, import_react12.useEffect)(() => {
1748
+ (0, import_react14.useEffect)(() => {
1322
1749
  if (!open || !closable) return;
1323
1750
  const handleKeyDown = (e) => {
1324
1751
  if (e.key === "Escape") onOpenChange == null ? void 0 : onOpenChange(false);
@@ -1335,7 +1762,7 @@ var Drawer = (0, import_react12.forwardRef)(
1335
1762
  const showFooter = Boolean(dismiss || secondary || confirm);
1336
1763
  const allActions = Boolean(dismiss && secondary && confirm);
1337
1764
  return (0, import_react_dom2.createPortal)(
1338
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1765
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1339
1766
  "div",
1340
1767
  {
1341
1768
  className: [
@@ -1346,7 +1773,7 @@ var Drawer = (0, import_react12.forwardRef)(
1346
1773
  ].filter(Boolean).join(" "),
1347
1774
  role: "presentation",
1348
1775
  onMouseDown: handleBackdropMouseDown,
1349
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1776
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1350
1777
  "div",
1351
1778
  __spreadProps(__spreadValues({
1352
1779
  ref,
@@ -1366,7 +1793,7 @@ var Drawer = (0, import_react12.forwardRef)(
1366
1793
  onMouseDown: (e) => e.stopPropagation()
1367
1794
  }, rest), {
1368
1795
  children: [
1369
- showHeader && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1796
+ showHeader && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
1370
1797
  "div",
1371
1798
  {
1372
1799
  className: [
@@ -1374,36 +1801,36 @@ var Drawer = (0, import_react12.forwardRef)(
1374
1801
  fullScreen ? "lg:gap-16 lg:px-112 lg:py-24" : "lg:px-24 lg:pb-16 lg:pt-20"
1375
1802
  ].join(" "),
1376
1803
  children: [
1377
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1378
- title && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-heading-3 text-dialog-text-primary lg:text-heading-3-md", children: title }),
1379
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-body-small text-dialog-text-secondary", children: subtitle })
1804
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1805
+ title && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-heading-3 text-dialog-text-primary lg:text-heading-3-md", children: title }),
1806
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-body-small text-dialog-text-secondary", children: subtitle })
1380
1807
  ] }),
1381
- closable && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
1382
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1808
+ closable && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
1809
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1383
1810
  IconButton,
1384
1811
  {
1385
- icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CloseIcon3, { className: "h-20 w-20" }),
1812
+ icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CloseIcon3, { className: "h-20 w-20" }),
1386
1813
  size: "s",
1387
1814
  "aria-label": "\u0E1B\u0E34\u0E14",
1388
1815
  onClick: handleClose,
1389
- className: "bg-icon-button-background-enabled lg:hidden!"
1816
+ className: "lg:hidden!"
1390
1817
  }
1391
1818
  ),
1392
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1819
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1393
1820
  IconButton,
1394
1821
  {
1395
- icon: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CloseIcon3, { className: "h-24 w-24" }),
1822
+ icon: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CloseIcon3, { className: "h-24 w-24" }),
1396
1823
  size: fullScreen ? "l" : "m",
1397
1824
  "aria-label": "\u0E1B\u0E34\u0E14",
1398
1825
  onClick: handleClose,
1399
- className: "hidden! bg-icon-button-background-enabled lg:inline-flex!"
1826
+ className: "hidden! lg:inline-flex!"
1400
1827
  }
1401
1828
  )
1402
1829
  ] })
1403
1830
  ]
1404
1831
  }
1405
1832
  ),
1406
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1833
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1407
1834
  "div",
1408
1835
  {
1409
1836
  className: [
@@ -1414,23 +1841,23 @@ var Drawer = (0, import_react12.forwardRef)(
1414
1841
  children
1415
1842
  }
1416
1843
  ),
1417
- showFooter && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1844
+ showFooter && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1418
1845
  "div",
1419
1846
  {
1420
1847
  className: [
1421
1848
  "flex shrink-0 flex-col gap-8 border-t border-border-subtle bg-dialog-background-primary px-16 pb-16 pt-12 lg:flex-row lg:items-center lg:justify-end",
1422
1849
  fullScreen ? "lg:gap-16 lg:px-112 lg:py-24" : "lg:px-24 lg:pb-24 lg:pt-16"
1423
1850
  ].join(" "),
1424
- children: allActions ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
1425
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DrawerAction, { action: dismiss, variant: "tertiary", orderClass: "order-3 lg:order-1" }),
1426
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "contents gap-8 lg:order-2 lg:ml-auto lg:flex lg:items-center", children: [
1427
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DrawerAction, { action: secondary, variant: "secondary", orderClass: "order-1" }),
1428
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DrawerAction, { action: confirm, variant: "primary", orderClass: "order-2" })
1851
+ children: allActions ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
1852
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DrawerAction, { action: dismiss, variant: "tertiary", orderClass: "order-3 lg:order-1" }),
1853
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "contents gap-8 lg:order-2 lg:ml-auto lg:flex lg:items-center", children: [
1854
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DrawerAction, { action: secondary, variant: "secondary", orderClass: "order-1" }),
1855
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DrawerAction, { action: confirm, variant: "primary", orderClass: "order-2" })
1429
1856
  ] })
1430
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
1431
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DrawerAction, { action: secondary, variant: "secondary", orderClass: "order-1 lg:order-2" }),
1432
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DrawerAction, { action: confirm, variant: "primary", orderClass: "order-2 lg:order-3" }),
1433
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DrawerAction, { action: dismiss, variant: "tertiary", orderClass: "order-3 lg:order-1" })
1857
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
1858
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DrawerAction, { action: secondary, variant: "secondary", orderClass: "order-1 lg:order-2" }),
1859
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DrawerAction, { action: confirm, variant: "primary", orderClass: "order-2 lg:order-3" }),
1860
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DrawerAction, { action: dismiss, variant: "tertiary", orderClass: "order-3 lg:order-1" })
1434
1861
  ] })
1435
1862
  }
1436
1863
  )
@@ -1446,9 +1873,9 @@ var Drawer = (0, import_react12.forwardRef)(
1446
1873
  Drawer.displayName = "Drawer";
1447
1874
 
1448
1875
  // src/components/Dropdown/Dropdown.tsx
1449
- var import_react13 = require("react");
1450
- var import_jsx_runtime13 = require("react/jsx-runtime");
1451
- var IconDanger = () => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1876
+ var import_react15 = require("react");
1877
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1878
+ var IconDanger = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1452
1879
  "svg",
1453
1880
  {
1454
1881
  xmlns: "http://www.w3.org/2000/svg",
@@ -1456,7 +1883,7 @@ var IconDanger = () => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1456
1883
  height: "20",
1457
1884
  viewBox: "0 0 20 20",
1458
1885
  fill: "none",
1459
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1886
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1460
1887
  "path",
1461
1888
  {
1462
1889
  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",
@@ -1466,7 +1893,7 @@ var IconDanger = () => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1466
1893
  }
1467
1894
  );
1468
1895
  function IconCheck({ className }) {
1469
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1896
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1470
1897
  "svg",
1471
1898
  {
1472
1899
  xmlns: "http://www.w3.org/2000/svg",
@@ -1475,7 +1902,7 @@ function IconCheck({ className }) {
1475
1902
  viewBox: "0 0 20 20",
1476
1903
  fill: "none",
1477
1904
  className,
1478
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1905
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1479
1906
  "path",
1480
1907
  {
1481
1908
  d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
@@ -1486,7 +1913,7 @@ function IconCheck({ className }) {
1486
1913
  );
1487
1914
  }
1488
1915
  function ChevronDown({ className }) {
1489
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1916
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1490
1917
  "svg",
1491
1918
  {
1492
1919
  xmlns: "http://www.w3.org/2000/svg",
@@ -1495,7 +1922,7 @@ function ChevronDown({ className }) {
1495
1922
  viewBox: "0 0 20 20",
1496
1923
  fill: "none",
1497
1924
  className,
1498
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1925
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1499
1926
  "path",
1500
1927
  {
1501
1928
  d: "M14.7119 8.0625L10 12.7744L5.28809 8.0625L6.0625 7.28809L10 11.2256L13.9375 7.28809L14.7119 8.0625Z",
@@ -1505,7 +1932,7 @@ function ChevronDown({ className }) {
1505
1932
  }
1506
1933
  );
1507
1934
  }
1508
- var Dropdown = (0, import_react13.forwardRef)(
1935
+ var Dropdown = (0, import_react15.forwardRef)(
1509
1936
  (_a, ref) => {
1510
1937
  var _b = _a, {
1511
1938
  size = "md",
@@ -1542,14 +1969,14 @@ var Dropdown = (0, import_react13.forwardRef)(
1542
1969
  ]);
1543
1970
  const isCombobox = variant === "combobox";
1544
1971
  const iconButtonSize = size === "lg" ? "m" : "s";
1545
- const [isOpen, setIsOpen] = (0, import_react13.useState)(false);
1546
- const [isFocused, setIsFocused] = (0, import_react13.useState)(false);
1547
- const [query, setQuery] = (0, import_react13.useState)(value.label || "");
1548
- const [filterText, setFilterText] = (0, import_react13.useState)("");
1549
- const dropdownRef = (0, import_react13.useRef)(null);
1550
- const inputRef = (0, import_react13.useRef)(null);
1551
- const listboxId = (0, import_react13.useId)();
1552
- const [prevLabel, setPrevLabel] = (0, import_react13.useState)(value.label);
1972
+ const [isOpen, setIsOpen] = (0, import_react15.useState)(false);
1973
+ const [isFocused, setIsFocused] = (0, import_react15.useState)(false);
1974
+ const [query, setQuery] = (0, import_react15.useState)(value.label || "");
1975
+ const [filterText, setFilterText] = (0, import_react15.useState)("");
1976
+ const dropdownRef = (0, import_react15.useRef)(null);
1977
+ const inputRef = (0, import_react15.useRef)(null);
1978
+ const listboxId = (0, import_react15.useId)();
1979
+ const [prevLabel, setPrevLabel] = (0, import_react15.useState)(value.label);
1553
1980
  if (value.label !== prevLabel) {
1554
1981
  setPrevLabel(value.label);
1555
1982
  setQuery(value.label || "");
@@ -1557,7 +1984,7 @@ var Dropdown = (0, import_react13.forwardRef)(
1557
1984
  const filteredItems = isCombobox ? dropDownItems.filter(
1558
1985
  (item) => item.label.toLowerCase().includes(filterText.toLowerCase())
1559
1986
  ) : dropDownItems;
1560
- (0, import_react13.useEffect)(() => {
1987
+ (0, import_react15.useEffect)(() => {
1561
1988
  function handleClickOutside(event) {
1562
1989
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
1563
1990
  setIsOpen(false);
@@ -1574,16 +2001,16 @@ var Dropdown = (0, import_react13.forwardRef)(
1574
2001
  ${!isCombobox ? disabled ? "text-dropdown-text-disabled cursor-not-allowed" : value ? "text-dropdown-text-primary cursor-pointer" : "text-dropdown-text-secondary cursor-pointer" : ""}
1575
2002
  ${disabled ? "pointer-events-none bg-dropdown-background-disabled border-dropdown-border-disabled" : error ? `bg-dropdown-background-enabled border-dropdown-border-danger ${isOpen ? "ring-1 ring-inset ring-dropdown-border-danger" : ""}` : isOpen ? "bg-dropdown-background-enabled border-dropdown-border-active ring-1 ring-inset ring-dropdown-border-active" : isFocused ? "bg-dropdown-background-enabled border-dropdown-border-focus ring-1 ring-inset ring-dropdown-border-focus" : "bg-dropdown-background-enabled border-dropdown-border-enabled hover:border-dropdown-border-hover"}
1576
2003
  ${className}`;
1577
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "w-full flex flex-col gap-4 font-sans", children: [
1578
- label ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2004
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "w-full flex flex-col gap-4 font-sans", children: [
2005
+ label ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1579
2006
  "p",
1580
2007
  {
1581
2008
  className: `text-label-medium text-left items-left font-medium ${disabled ? "text-dropdown-text-disabled" : "text-dropdown-text-primary"}`,
1582
2009
  children: label
1583
2010
  }
1584
- ) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {}),
1585
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "w-full flex flex-col relative", ref: dropdownRef, children: [
1586
- isCombobox ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2011
+ ) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {}),
2012
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "w-full flex flex-col relative", ref: dropdownRef, children: [
2013
+ isCombobox ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1587
2014
  "div",
1588
2015
  __spreadProps(__spreadValues({
1589
2016
  ref
@@ -1594,7 +2021,7 @@ var Dropdown = (0, import_react13.forwardRef)(
1594
2021
  },
1595
2022
  className: triggerClassName,
1596
2023
  children: [
1597
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2024
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1598
2025
  "input",
1599
2026
  {
1600
2027
  ref: inputRef,
@@ -1627,16 +2054,17 @@ var Dropdown = (0, import_react13.forwardRef)(
1627
2054
  className: `grow w-full min-w-0 bg-transparent focus:outline-none ${disabled ? "text-dropdown-text-disabled cursor-not-allowed" : "text-dropdown-text-primary cursor-text"}`
1628
2055
  }
1629
2056
  ),
1630
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex items-center gap-4", children: [
1631
- disabled ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {}) : error ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(IconDanger, {}) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {}),
1632
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2057
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center gap-4", children: [
2058
+ disabled ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {}) : error ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(IconDanger, {}) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {}),
2059
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1633
2060
  IconButton,
1634
2061
  {
1635
2062
  size: iconButtonSize,
2063
+ transparent: true,
1636
2064
  disabled,
1637
2065
  tabIndex: -1,
1638
2066
  "aria-label": "\u0E40\u0E1B\u0E34\u0E14/\u0E1B\u0E34\u0E14\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01",
1639
- icon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2067
+ icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1640
2068
  ChevronDown,
1641
2069
  {
1642
2070
  className: `h-20 w-20 duration-300 ${isOpen ? "rotate-180" : ""}`
@@ -1659,7 +2087,7 @@ var Dropdown = (0, import_react13.forwardRef)(
1659
2087
  ] })
1660
2088
  ]
1661
2089
  })
1662
- ) : /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2090
+ ) : /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1663
2091
  "div",
1664
2092
  __spreadProps(__spreadValues({
1665
2093
  ref
@@ -1692,23 +2120,24 @@ var Dropdown = (0, import_react13.forwardRef)(
1692
2120
  },
1693
2121
  className: `focus:outline-none ${triggerClassName}`,
1694
2122
  children: [
1695
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2123
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1696
2124
  "p",
1697
2125
  {
1698
2126
  className: `grow truncate ${textCenter ? "text-center" : "text-start"}`,
1699
2127
  children: value.label || placeholder
1700
2128
  }
1701
2129
  ),
1702
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex items-center gap-4", children: [
1703
- disabled ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {}) : error ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(IconDanger, {}) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {}),
1704
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2130
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center gap-4", children: [
2131
+ disabled ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {}) : error ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(IconDanger, {}) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {}),
2132
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1705
2133
  IconButton,
1706
2134
  {
1707
2135
  size: iconButtonSize,
2136
+ transparent: true,
1708
2137
  disabled,
1709
2138
  tabIndex: -1,
1710
2139
  "aria-label": "\u0E40\u0E1B\u0E34\u0E14/\u0E1B\u0E34\u0E14\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01",
1711
- icon: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2140
+ icon: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1712
2141
  ChevronDown,
1713
2142
  {
1714
2143
  className: `h-20 w-20 duration-300 ${isOpen ? "rotate-180" : ""}`
@@ -1725,17 +2154,17 @@ var Dropdown = (0, import_react13.forwardRef)(
1725
2154
  ]
1726
2155
  })
1727
2156
  ),
1728
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2157
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1729
2158
  "div",
1730
2159
  {
1731
2160
  className: `${isOpen ? "flex" : "hidden"} top-[calc(100%+4px)] left-0 absolute z-10000 bg-dropdown-background-enabled rounded-6 shadow-base w-full flex-col pt-4 overflow-hidden`,
1732
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2161
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1733
2162
  "ul",
1734
2163
  {
1735
2164
  id: isCombobox ? listboxId : void 0,
1736
2165
  role: isCombobox ? "listbox" : void 0,
1737
2166
  className: "h-auto max-h-200 overflow-y-auto cursor-pointer",
1738
- children: filteredItems.length > 0 ? filteredItems.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2167
+ children: filteredItems.length > 0 ? filteredItems.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1739
2168
  "div",
1740
2169
  {
1741
2170
  onClick: () => {
@@ -1745,46 +2174,46 @@ var Dropdown = (0, import_react13.forwardRef)(
1745
2174
  },
1746
2175
  className: "relative h-48 py-8 px-16 border-t border-gray-50 text-label-medium hover:bg-dropdown-background-hover active:bg-dropdown-background-active flex items-center justify-between gap-12",
1747
2176
  children: [
1748
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-label-medium text-dropdown-text-primary", children: item.label }),
1749
- value.value === item.value && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(IconCheck, { className: "h-20 w-20" })
2177
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "text-label-medium text-dropdown-text-primary", children: item.label }),
2178
+ value.value === item.value && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(IconCheck, { className: "h-20 w-20" })
1750
2179
  ]
1751
2180
  }
1752
- ) }, idx)) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { className: "px-16 py-8 text-label-medium text-dropdown-text-secondary", children: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23" })
2181
+ ) }, idx)) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("li", { className: "px-16 py-8 text-label-medium text-dropdown-text-secondary", children: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23" })
1753
2182
  }
1754
2183
  )
1755
2184
  }
1756
2185
  )
1757
2186
  ] }),
1758
- error ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-caption-caption text-left items-left text-dropdown-text-danger", children: error }) : helperText ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2187
+ error ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "text-caption-caption text-left items-left text-dropdown-text-danger", children: error }) : helperText ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1759
2188
  "p",
1760
2189
  {
1761
2190
  className: `text-caption-caption text-left items-left ${disabled ? "text-dropdown-text-disabled" : "text-dropdown-text-secondary"}`,
1762
2191
  children: helperText
1763
2192
  }
1764
- ) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {})
2193
+ ) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {})
1765
2194
  ] });
1766
2195
  }
1767
2196
  );
1768
2197
  Dropdown.displayName = "Dropdown";
1769
2198
 
1770
2199
  // src/components/FinancialLogo/FinancialLogo.tsx
1771
- var import_react14 = require("react");
1772
- var import_jsx_runtime14 = require("react/jsx-runtime");
1773
- var inlineClasses2 = {
2200
+ var import_react16 = require("react");
2201
+ var import_jsx_runtime16 = require("react/jsx-runtime");
2202
+ var inlineClasses = {
1774
2203
  info: "bg-alert-inline-info-bg border-alert-inline-info-border text-alert-text-primary",
1775
2204
  success: "bg-alert-inline-success-bg border-alert-inline-success-border text-alert-text-primary",
1776
2205
  warning: "bg-alert-inline-warning-bg border-alert-inline-warning-border text-alert-text-primary",
1777
2206
  danger: "bg-alert-inline-danger-bg border-alert-inline-danger-border text-alert-text-primary",
1778
2207
  common: "bg-alert-inline-common-bg border-alert-inline-common-border text-alert-text-primary"
1779
2208
  };
1780
- var pageClasses2 = {
2209
+ var pageClasses = {
1781
2210
  info: "bg-alert-page-info-bg text-alert-text-primary-inverse",
1782
2211
  success: "bg-alert-page-success-bg text-alert-text-primary-inverse",
1783
2212
  warning: "bg-alert-page-warning-bg text-alert-text-primary-inverse",
1784
2213
  danger: "bg-alert-page-danger-bg text-alert-text-primary-inverse",
1785
2214
  common: "bg-alert-page-common-bg text-alert-text-primary-inverse"
1786
2215
  };
1787
- var actionsPageClasses2 = {
2216
+ var actionsPageClasses = {
1788
2217
  info: "text-enabled-inverse",
1789
2218
  success: "text-enabled-inverse",
1790
2219
  warning: "text-enabled-dark",
@@ -1799,25 +2228,25 @@ var inlineIconClasses2 = {
1799
2228
  common: "text-alert-inline-common-icon"
1800
2229
  };
1801
2230
  function InfoIcon2({ className }) {
1802
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime14.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" }) });
2231
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime16.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" }) });
1803
2232
  }
1804
2233
  function SuccessIcon2({ className }) {
1805
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1806
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z", stroke: "currentColor", strokeWidth: "1.5" }),
1807
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
2234
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
2235
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z", stroke: "currentColor", strokeWidth: "1.5" }),
2236
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
1808
2237
  ] });
1809
2238
  }
1810
2239
  function WarningIcon3({ className }) {
1811
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime14.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" }) });
2240
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime16.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" }) });
1812
2241
  }
1813
2242
  function DangerIcon2({ className }) {
1814
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime14.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" }) });
2243
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime16.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" }) });
1815
2244
  }
1816
2245
  function CommonIcon({ className }) {
1817
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime14.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" }) });
2246
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime16.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" }) });
1818
2247
  }
1819
2248
  function CloseIcon4({ className }) {
1820
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
2249
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
1821
2250
  }
1822
2251
  var defaultIcons2 = {
1823
2252
  info: InfoIcon2,
@@ -1826,7 +2255,7 @@ var defaultIcons2 = {
1826
2255
  danger: DangerIcon2,
1827
2256
  common: CommonIcon
1828
2257
  };
1829
- var FinancialLogo = (0, import_react14.forwardRef)(
2258
+ var FinancialLogo = (0, import_react16.forwardRef)(
1830
2259
  (_a, ref) => {
1831
2260
  var _b = _a, {
1832
2261
  variant = "info",
@@ -1850,8 +2279,8 @@ var FinancialLogo = (0, import_react14.forwardRef)(
1850
2279
  "children"
1851
2280
  ]);
1852
2281
  const isPage = mode === "page";
1853
- const variantClass = isPage ? pageClasses2[variant] : inlineClasses2[variant];
1854
- const actionClass = isPage ? actionsPageClasses2[variant] : "text-enabled";
2282
+ const variantClass = isPage ? pageClasses[variant] : inlineClasses[variant];
2283
+ const actionClass = isPage ? actionsPageClasses[variant] : "text-enabled";
1855
2284
  const DefaultIcon = defaultIcons2[variant];
1856
2285
  const iconColorClass = isPage ? "" : inlineIconClasses2[variant];
1857
2286
  const descColorClass = isPage ? "text-alert-text-secondary-inverse" : "text-alert-text-secondary";
@@ -1862,22 +2291,22 @@ var FinancialLogo = (0, import_react14.forwardRef)(
1862
2291
  variantClass,
1863
2292
  className
1864
2293
  ].filter(Boolean).join(" ");
1865
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: classes }, rest), { children: [
1866
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: `shrink-0 mt-2 ${iconColorClass}`, children: icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DefaultIcon, { className: "h-20 w-20" }) }),
1867
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex-1 min-w-0", children: [
1868
- title && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-sm font-medium leading-20", children: title }),
1869
- description && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: `text-sm leading-20 ${descColorClass} ${title ? "mt-4" : ""}`, children: description }),
2294
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: classes }, rest), { children: [
2295
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: `shrink-0 mt-2 ${iconColorClass}`, children: icon != null ? icon : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DefaultIcon, { className: "h-20 w-20" }) }),
2296
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex-1 min-w-0", children: [
2297
+ title && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "text-sm font-medium leading-20", children: title }),
2298
+ description && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: `text-sm leading-20 ${descColorClass} ${title ? "mt-4" : ""}`, children: description }),
1870
2299
  children
1871
2300
  ] }),
1872
- action && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: `${actionClass} underline text-sm font-medium`, children: action }),
1873
- onClose && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2301
+ action && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: `${actionClass} underline text-sm font-medium`, children: action }),
2302
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1874
2303
  "button",
1875
2304
  {
1876
2305
  type: "button",
1877
2306
  onClick: onClose,
1878
2307
  className: `shrink-0 p-2 rounded transition-colors ${closeColorClass}`,
1879
2308
  "aria-label": "Close",
1880
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CloseIcon4, { className: "h-16 w-16" })
2309
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CloseIcon4, { className: "h-16 w-16" })
1881
2310
  }
1882
2311
  )
1883
2312
  ] }));
@@ -1886,9 +2315,9 @@ var FinancialLogo = (0, import_react14.forwardRef)(
1886
2315
  FinancialLogo.displayName = "FinancialLogo";
1887
2316
 
1888
2317
  // src/components/Icon/Icon.tsx
1889
- var import_react15 = require("react");
1890
- var import_jsx_runtime15 = require("react/jsx-runtime");
1891
- var Icon = (0, import_react15.forwardRef)(
2318
+ var import_react17 = require("react");
2319
+ var import_jsx_runtime17 = require("react/jsx-runtime");
2320
+ var Icon = (0, import_react17.forwardRef)(
1892
2321
  (_a, ref) => {
1893
2322
  var _b = _a, {
1894
2323
  name,
@@ -1916,7 +2345,7 @@ var Icon = (0, import_react15.forwardRef)(
1916
2345
  "material-symbols-outlined select-none shrink-0 inline-block leading-none",
1917
2346
  className
1918
2347
  ].filter(Boolean).join(" ");
1919
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2348
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1920
2349
  "span",
1921
2350
  __spreadProps(__spreadValues({
1922
2351
  ref,
@@ -1939,8 +2368,8 @@ var Icon = (0, import_react15.forwardRef)(
1939
2368
  Icon.displayName = "Icon";
1940
2369
 
1941
2370
  // src/components/Link/Link.tsx
1942
- var import_react16 = require("react");
1943
- var import_jsx_runtime16 = require("react/jsx-runtime");
2371
+ var import_react18 = require("react");
2372
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1944
2373
  var linkStyleClasses = {
1945
2374
  brand: "font-sans text-link-text-enabled",
1946
2375
  white: "font-sans text-link-text-enabled-inverse",
@@ -1962,12 +2391,12 @@ var iconVariantClasses = {
1962
2391
  lg: "w-24 h-24"
1963
2392
  };
1964
2393
  function SuccessIcon3({ className }) {
1965
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
1966
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z", stroke: "currentColor", strokeWidth: "1.5" }),
1967
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
2394
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
2395
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z", stroke: "currentColor", strokeWidth: "1.5" }),
2396
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
1968
2397
  ] });
1969
2398
  }
1970
- var Link = (0, import_react16.forwardRef)(
2399
+ var Link = (0, import_react18.forwardRef)(
1971
2400
  (_a, ref) => {
1972
2401
  var _b = _a, {
1973
2402
  variant = "sm",
@@ -1998,18 +2427,18 @@ var Link = (0, import_react16.forwardRef)(
1998
2427
  variantClass,
1999
2428
  className
2000
2429
  ].filter(Boolean).join(" ");
2001
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "link", className: classes }, rest), { children: [
2002
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("a", { href, target: "_blank", rel: "noopener noreferrer", children: text }),
2003
- icon && !isInline ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SuccessIcon3, { className: iconClass }) : null
2430
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "link", className: classes }, rest), { children: [
2431
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("a", { href, target: "_blank", rel: "noopener noreferrer", children: text }),
2432
+ icon && !isInline ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SuccessIcon3, { className: iconClass }) : null
2004
2433
  ] }));
2005
2434
  }
2006
2435
  );
2007
2436
  Link.displayName = "Link";
2008
2437
 
2009
2438
  // src/components/Radio/Radio.tsx
2010
- var import_react17 = require("react");
2011
- var import_jsx_runtime17 = require("react/jsx-runtime");
2012
- var Radio = (0, import_react17.forwardRef)(
2439
+ var import_react19 = require("react");
2440
+ var import_jsx_runtime19 = require("react/jsx-runtime");
2441
+ var Radio = (0, import_react19.forwardRef)(
2013
2442
  (_a, ref) => {
2014
2443
  var _b = _a, {
2015
2444
  size = "sm",
@@ -2034,20 +2463,20 @@ var Radio = (0, import_react17.forwardRef)(
2034
2463
  "id",
2035
2464
  "name"
2036
2465
  ]);
2037
- const reactId = (0, import_react17.useId)();
2466
+ const reactId = (0, import_react19.useId)();
2038
2467
  const inputId = id != null ? id : reactId;
2039
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2468
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2040
2469
  "div",
2041
2470
  {
2042
2471
  className: `${disabled ? "cursor-not-allowed" : "cursor-pointer"} ${className}`,
2043
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2472
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2044
2473
  "label",
2045
2474
  {
2046
2475
  htmlFor: inputId,
2047
2476
  className: `flex gap-4 ${disabled ? "pointer-events-none text-gray-400" : "text-gray-900 cursor-pointer"}`,
2048
2477
  children: [
2049
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
2050
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2478
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { children: [
2479
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2051
2480
  "input",
2052
2481
  __spreadValues({
2053
2482
  ref,
@@ -2060,14 +2489,14 @@ var Radio = (0, import_react17.forwardRef)(
2060
2489
  name
2061
2490
  }, rest)
2062
2491
  ),
2063
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2492
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2064
2493
  "div",
2065
2494
  {
2066
2495
  className: `relative box flex items-center justify-center rounded-full border-2 group bg-white
2067
2496
  ${size === "sm" ? "h-16 w-16 my-4 ml-3 mr-3" : "m-3 h-20 w-20 text-label-large"}
2068
2497
  ${error ? "border-red-500" : "border-gray-600 peer-checked:border-blue-600 peer-disabled:border-gray-400!"}
2069
2498
  `,
2070
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2499
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2071
2500
  "span",
2072
2501
  {
2073
2502
  className: `absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2
@@ -2078,12 +2507,12 @@ var Radio = (0, import_react17.forwardRef)(
2078
2507
  }
2079
2508
  )
2080
2509
  ] }),
2081
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2510
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2082
2511
  "div",
2083
2512
  {
2084
2513
  className: `flex flex-col gap-1 ${size === "sm" ? "mt-2" : "mt-4"}`,
2085
2514
  children: [
2086
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2515
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2087
2516
  "p",
2088
2517
  {
2089
2518
  className: `
@@ -2093,7 +2522,7 @@ var Radio = (0, import_react17.forwardRef)(
2093
2522
  children: label
2094
2523
  }
2095
2524
  ),
2096
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2525
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2097
2526
  "p",
2098
2527
  {
2099
2528
  className: `text-caption-caption ${disabled ? "text-gray-400" : error ? "text-red-600" : "text-gray-600"}`,
@@ -2113,27 +2542,45 @@ var Radio = (0, import_react17.forwardRef)(
2113
2542
  Radio.displayName = "Radio";
2114
2543
 
2115
2544
  // src/components/SegmentControl/SegmentControl.tsx
2116
- var import_react18 = require("react");
2117
- var import_jsx_runtime18 = require("react/jsx-runtime");
2118
- var SegmentControl = (0, import_react18.forwardRef)(
2545
+ var import_react20 = require("react");
2546
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2547
+ var itemSizeClasses = {
2548
+ sm: "min-h-32 px-8 py-6 text-label-medium",
2549
+ md: "min-h-40 px-12 py-8 text-label-large",
2550
+ lg: "min-h-48 px-16 py-8 text-label-large"
2551
+ };
2552
+ var SegmentControl = (0, import_react20.forwardRef)(
2119
2553
  (_a, ref) => {
2120
- var _b = _a, { size = "md", items, selected, setSelected, className = "" } = _b, rest = __objRest(_b, ["size", "items", "selected", "setSelected", "className"]);
2121
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2554
+ var _b = _a, { size = "md", items, selected, setSelected, onChange, className = "" } = _b, rest = __objRest(_b, ["size", "items", "selected", "setSelected", "onChange", "className"]);
2555
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2122
2556
  "div",
2123
2557
  __spreadProps(__spreadValues({
2124
2558
  ref,
2125
- className: `bg-background-tertiary rounded-full flex flex-row items-center justify-center p-4 gap-4 ${className}`
2559
+ className: `bg-background-tertiary rounded-full flex flex-row items-center p-4 gap-4 ${className}`
2126
2560
  }, rest), {
2127
- children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2128
- "div",
2129
- {
2130
- onClick: () => setSelected == null ? void 0 : setSelected(item.value),
2131
- className: `cursor-pointer rounded-full text-center grow
2132
- ${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"} `,
2133
- children: item.label
2134
- },
2135
- item.value
2136
- ))
2561
+ children: items.map((item) => {
2562
+ const isSelected = selected === item.value;
2563
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2564
+ "button",
2565
+ {
2566
+ type: "button",
2567
+ "aria-pressed": isSelected,
2568
+ onClick: () => {
2569
+ setSelected == null ? void 0 : setSelected(item.value);
2570
+ onChange == null ? void 0 : onChange(item.value);
2571
+ },
2572
+ className: "group flex-1 min-w-0 rounded-full border-2 border-transparent p-2 outline-none cursor-pointer transition-colors focus-visible:border-segmented-control-border-focus",
2573
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2574
+ "span",
2575
+ {
2576
+ className: `flex w-full items-center justify-center rounded-full text-center transition-colors ${itemSizeClasses[size]} ${isSelected ? "bg-segmented-control-background-active text-segmented-control-text-inverse shadow-small group-focus-visible:bg-segmented-control-background-active-focus group-focus-visible:text-segmented-control-text-primary" : "text-segmented-control-text-primary hover:bg-segmented-control-background-hover"}`,
2577
+ children: item.label
2578
+ }
2579
+ )
2580
+ },
2581
+ item.value
2582
+ );
2583
+ })
2137
2584
  })
2138
2585
  );
2139
2586
  }
@@ -2141,8 +2588,8 @@ var SegmentControl = (0, import_react18.forwardRef)(
2141
2588
  SegmentControl.displayName = "SegmentControl";
2142
2589
 
2143
2590
  // src/components/Slider/Slider.tsx
2144
- var import_react19 = require("react");
2145
- var import_jsx_runtime19 = require("react/jsx-runtime");
2591
+ var import_react21 = require("react");
2592
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2146
2593
  var sizeConfig = {
2147
2594
  small: {
2148
2595
  trackH: "h-4",
@@ -2173,7 +2620,7 @@ var sizeConfig = {
2173
2620
  }
2174
2621
  };
2175
2622
  function ChevronGlyphs({ size, color }) {
2176
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2623
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2177
2624
  "svg",
2178
2625
  {
2179
2626
  width: size,
@@ -2183,7 +2630,7 @@ function ChevronGlyphs({ size, color }) {
2183
2630
  xmlns: "http://www.w3.org/2000/svg",
2184
2631
  "aria-hidden": "true",
2185
2632
  children: [
2186
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2633
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2187
2634
  "path",
2188
2635
  {
2189
2636
  d: "M4.75 3.25L2.25 6L4.75 8.75",
@@ -2193,7 +2640,7 @@ function ChevronGlyphs({ size, color }) {
2193
2640
  strokeLinejoin: "round"
2194
2641
  }
2195
2642
  ),
2196
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2643
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2197
2644
  "path",
2198
2645
  {
2199
2646
  d: "M7.25 3.25L9.75 6L7.25 8.75",
@@ -2207,7 +2654,7 @@ function ChevronGlyphs({ size, color }) {
2207
2654
  }
2208
2655
  );
2209
2656
  }
2210
- var Slider = (0, import_react19.forwardRef)(
2657
+ var Slider = (0, import_react21.forwardRef)(
2211
2658
  (_a, ref) => {
2212
2659
  var _b = _a, {
2213
2660
  size = "medium",
@@ -2242,15 +2689,15 @@ var Slider = (0, import_react19.forwardRef)(
2242
2689
  "onChange",
2243
2690
  "aria-label"
2244
2691
  ]);
2245
- const reactId = (0, import_react19.useId)();
2692
+ const reactId = (0, import_react21.useId)();
2246
2693
  const inputId = id != null ? id : reactId;
2247
2694
  const sz = sizeConfig[size];
2248
2695
  const ariaLabel = ariaLabelProp != null ? ariaLabelProp : typeof label === "string" ? void 0 : "Slider";
2249
2696
  const ariaDescriptionId = description ? `${inputId}-description` : void 0;
2250
2697
  const isControlled = controlledValue !== void 0;
2251
- const [internalValue, setInternalValue] = (0, import_react19.useState)(defaultValue != null ? defaultValue : min);
2698
+ const [internalValue, setInternalValue] = (0, import_react21.useState)(defaultValue != null ? defaultValue : min);
2252
2699
  const currentValue = isControlled ? controlledValue : internalValue;
2253
- const handleChange = (0, import_react19.useCallback)(
2700
+ const handleChange = (0, import_react21.useCallback)(
2254
2701
  (e) => {
2255
2702
  const val = Number(e.target.value);
2256
2703
  if (!isControlled) {
@@ -2270,13 +2717,13 @@ var Slider = (0, import_react19.forwardRef)(
2270
2717
  const descriptionColor = disabled ? "text-slider-label-disabled" : "text-slider-description";
2271
2718
  const thumbOffset = percent * sz.thumbPx / 100;
2272
2719
  const fillOffset = sz.thumbPx / 2 - thumbOffset;
2273
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2720
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2274
2721
  "div",
2275
2722
  {
2276
2723
  className: ["flex w-full flex-col gap-8 font-sans", className].filter(Boolean).join(" "),
2277
2724
  children: [
2278
- (label || showValue && !disabled) && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center justify-between", children: [
2279
- label && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2725
+ (label || showValue && !disabled) && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center justify-between", children: [
2726
+ label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2280
2727
  "label",
2281
2728
  {
2282
2729
  htmlFor: inputId,
@@ -2289,7 +2736,7 @@ var Slider = (0, import_react19.forwardRef)(
2289
2736
  children: label
2290
2737
  }
2291
2738
  ),
2292
- showValue && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2739
+ showValue && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2293
2740
  "span",
2294
2741
  {
2295
2742
  className: [sz.description, "tabular-nums", labelColor].join(" "),
@@ -2297,7 +2744,7 @@ var Slider = (0, import_react19.forwardRef)(
2297
2744
  }
2298
2745
  )
2299
2746
  ] }),
2300
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2747
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2301
2748
  "div",
2302
2749
  {
2303
2750
  className: [
@@ -2306,7 +2753,7 @@ var Slider = (0, import_react19.forwardRef)(
2306
2753
  disabled ? "cursor-not-allowed" : "cursor-pointer"
2307
2754
  ].join(" "),
2308
2755
  children: [
2309
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2756
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2310
2757
  "div",
2311
2758
  {
2312
2759
  className: [
@@ -2316,14 +2763,14 @@ var Slider = (0, import_react19.forwardRef)(
2316
2763
  ].join(" ")
2317
2764
  }
2318
2765
  ),
2319
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2766
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2320
2767
  "div",
2321
2768
  {
2322
2769
  className: ["absolute left-0 rounded-full", sz.trackH, fillBg].join(" "),
2323
2770
  style: { width: `calc(${percent}% + ${fillOffset}px)` }
2324
2771
  }
2325
2772
  ),
2326
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2773
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2327
2774
  "input",
2328
2775
  __spreadValues({
2329
2776
  ref,
@@ -2344,7 +2791,7 @@ var Slider = (0, import_react19.forwardRef)(
2344
2791
  ].join(" ")
2345
2792
  }, rest)
2346
2793
  ),
2347
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2794
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2348
2795
  "div",
2349
2796
  {
2350
2797
  className: [
@@ -2357,13 +2804,13 @@ var Slider = (0, import_react19.forwardRef)(
2357
2804
  !disabled && "peer-hover:shadow-medium"
2358
2805
  ].filter(Boolean).join(" "),
2359
2806
  style: { left: `calc(${percent}% - ${thumbOffset}px)` },
2360
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ChevronGlyphs, { size: sz.iconPx, color: iconColor })
2807
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChevronGlyphs, { size: sz.iconPx, color: iconColor })
2361
2808
  }
2362
2809
  )
2363
2810
  ]
2364
2811
  }
2365
2812
  ),
2366
- description && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2813
+ description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2367
2814
  "span",
2368
2815
  {
2369
2816
  id: ariaDescriptionId,
@@ -2379,9 +2826,9 @@ var Slider = (0, import_react19.forwardRef)(
2379
2826
  Slider.displayName = "Slider";
2380
2827
 
2381
2828
  // src/components/Tab/Tab.tsx
2382
- var import_react20 = require("react");
2383
- var import_jsx_runtime20 = require("react/jsx-runtime");
2384
- var Tab = (0, import_react20.forwardRef)(
2829
+ var import_react22 = require("react");
2830
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2831
+ var Tab = (0, import_react22.forwardRef)(
2385
2832
  (_a, ref) => {
2386
2833
  var _b = _a, {
2387
2834
  size = "md",
@@ -2400,7 +2847,7 @@ var Tab = (0, import_react20.forwardRef)(
2400
2847
  "setSelected",
2401
2848
  "className"
2402
2849
  ]);
2403
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2850
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2404
2851
  "div",
2405
2852
  __spreadProps(__spreadValues({
2406
2853
  ref,
@@ -2418,9 +2865,9 @@ var Tab = (0, import_react20.forwardRef)(
2418
2865
  Tab.displayName = "Tab";
2419
2866
 
2420
2867
  // src/components/TextArea/TextArea.tsx
2421
- var import_react21 = require("react");
2422
- var import_jsx_runtime21 = require("react/jsx-runtime");
2423
- var TextArea = (0, import_react21.forwardRef)(
2868
+ var import_react23 = require("react");
2869
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2870
+ var TextArea = (0, import_react23.forwardRef)(
2424
2871
  (_a, ref) => {
2425
2872
  var _b = _a, {
2426
2873
  error,
@@ -2460,21 +2907,21 @@ var TextArea = (0, import_react21.forwardRef)(
2460
2907
  "className"
2461
2908
  ]);
2462
2909
  var _a2;
2463
- const [isFocused, setIsFocused] = (0, import_react21.useState)(false);
2910
+ const [isFocused, setIsFocused] = (0, import_react23.useState)(false);
2464
2911
  const isActive = isFocused && !!value;
2465
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "w-full flex flex-col gap-4 font-sans", children: [
2466
- label || showCounter ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "w-full flex justify-between items-center gap-8", children: [
2467
- label ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2912
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "w-full flex flex-col gap-4 font-sans", children: [
2913
+ label || showCounter ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "w-full flex justify-between items-center gap-8", children: [
2914
+ label ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2468
2915
  "p",
2469
2916
  {
2470
2917
  className: `text-label-medium text-left items-left flex gap-4 ${disabled ? "text-text-area-text-disabled" : "text-text-area-text-primary"}`,
2471
2918
  children: [
2472
2919
  label,
2473
- optional && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-text-area-text-secondary", children: `(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)` })
2920
+ optional && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-text-area-text-secondary", children: `(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)` })
2474
2921
  ]
2475
2922
  }
2476
- ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", {}),
2477
- showCounter && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2923
+ ) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", {}),
2924
+ showCounter && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2478
2925
  "p",
2479
2926
  {
2480
2927
  className: `shrink-0 text-caption-caption ${disabled ? "text-text-area-text-disabled" : "text-text-area-text-tertiary"}`,
@@ -2485,13 +2932,13 @@ var TextArea = (0, import_react21.forwardRef)(
2485
2932
  ]
2486
2933
  }
2487
2934
  )
2488
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {}),
2489
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
2935
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, {}),
2936
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
2490
2937
  "div",
2491
2938
  {
2492
2939
  className: `relative w-full rounded-6 border ${disabled ? "bg-text-area-background-disabled border-text-area-border-disabled" : error ? `bg-text-area-background-enabled border-text-area-border-danger ${isFocused ? "ring-1 ring-inset ring-text-area-border-danger" : ""}` : isActive ? "bg-text-area-background-enabled border-text-area-border-active ring-1 ring-inset ring-text-area-border-active" : isFocused ? "bg-text-area-background-enabled border-text-area-border-focus ring-1 ring-inset ring-text-area-border-focus" : "bg-text-area-background-enabled border-text-area-border-enabled hover:border-text-area-border-hover"} ${className != null ? className : ""}`,
2493
2940
  children: [
2494
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2941
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2495
2942
  "textarea",
2496
2943
  __spreadValues({
2497
2944
  ref,
@@ -2512,13 +2959,14 @@ var TextArea = (0, import_react21.forwardRef)(
2512
2959
  className: `block w-full min-w-0 pt-12 pb-8 pl-16 pr-48 text-body-small bg-transparent focus:outline-none placeholder:text-text-area-text-tertiary ${disabled ? "resize-none text-text-area-text-disabled" : "resize-y text-text-area-text-primary"}`
2513
2960
  }, props)
2514
2961
  ),
2515
- pending ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Loading, { size: "sm", className: "shrink-0 absolute right-12 top-12" }) : clearable && isFocused && value ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2962
+ pending ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Loading, { size: "sm", className: "shrink-0 absolute right-12 top-12" }) : clearable && isFocused && value ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2516
2963
  IconButton,
2517
2964
  {
2518
2965
  size: "s",
2966
+ transparent: true,
2519
2967
  "aria-label": "\u0E25\u0E49\u0E32\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21",
2520
2968
  className: "absolute right-6 top-6",
2521
- icon: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2969
+ icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2522
2970
  "svg",
2523
2971
  {
2524
2972
  xmlns: "http://www.w3.org/2000/svg",
@@ -2526,7 +2974,7 @@ var TextArea = (0, import_react21.forwardRef)(
2526
2974
  height: "20",
2527
2975
  viewBox: "0 0 20 20",
2528
2976
  fill: "none",
2529
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2977
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2530
2978
  "path",
2531
2979
  {
2532
2980
  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",
@@ -2544,7 +2992,7 @@ var TextArea = (0, import_react21.forwardRef)(
2544
2992
  });
2545
2993
  }
2546
2994
  }
2547
- ) : success ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2995
+ ) : success ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2548
2996
  "svg",
2549
2997
  {
2550
2998
  xmlns: "http://www.w3.org/2000/svg",
@@ -2553,7 +3001,7 @@ var TextArea = (0, import_react21.forwardRef)(
2553
3001
  viewBox: "0 0 20 20",
2554
3002
  fill: "none",
2555
3003
  className: "shrink-0 text-accent-success flex h-20 w-20 items-center justify-center absolute right-12 top-12",
2556
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3004
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2557
3005
  "path",
2558
3006
  {
2559
3007
  fillRule: "evenodd",
@@ -2563,7 +3011,7 @@ var TextArea = (0, import_react21.forwardRef)(
2563
3011
  }
2564
3012
  )
2565
3013
  }
2566
- ) : error ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3014
+ ) : error ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2567
3015
  "svg",
2568
3016
  {
2569
3017
  xmlns: "http://www.w3.org/2000/svg",
@@ -2572,7 +3020,7 @@ var TextArea = (0, import_react21.forwardRef)(
2572
3020
  viewBox: "0 0 20 20",
2573
3021
  fill: "none",
2574
3022
  className: "shrink-0 text-text-area-text-danger flex h-20 w-20 items-center justify-center absolute right-12 top-12",
2575
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3023
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2576
3024
  "path",
2577
3025
  {
2578
3026
  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",
@@ -2580,237 +3028,42 @@ var TextArea = (0, import_react21.forwardRef)(
2580
3028
  }
2581
3029
  )
2582
3030
  }
2583
- ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {})
3031
+ ) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, {})
2584
3032
  ]
2585
3033
  }
2586
3034
  ),
2587
- error ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption-caption text-left items-left text-text-area-text-danger", children: error }) : helperText ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3035
+ error ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-caption-caption text-left items-left text-text-area-text-danger", children: error }) : helperText ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2588
3036
  "p",
2589
3037
  {
2590
3038
  className: `text-caption-caption text-left items-left ${disabled ? "text-text-area-text-disabled" : "text-text-area-text-secondary"}`,
2591
3039
  children: helperText
2592
3040
  }
2593
- ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {})
3041
+ ) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, {})
2594
3042
  ] });
2595
3043
  }
2596
3044
  );
2597
3045
  TextArea.displayName = "TextArea";
2598
3046
 
2599
- // src/components/TextField/TextField.tsx
2600
- var import_react22 = require("react");
2601
- var import_jsx_runtime22 = require("react/jsx-runtime");
2602
- var TextField = (0, import_react22.forwardRef)(
2603
- (_a, ref) => {
2604
- var _b = _a, {
2605
- size = "md",
2606
- error,
2607
- label,
2608
- placeholder,
2609
- helperText,
2610
- prefix,
2611
- suffix,
2612
- optional = false,
2613
- success = false,
2614
- pending = false,
2615
- clearable = true,
2616
- disabled = false,
2617
- type,
2618
- value,
2619
- onChange,
2620
- onFocus,
2621
- onBlur,
2622
- className
2623
- } = _b, props = __objRest(_b, [
2624
- "size",
2625
- "error",
2626
- "label",
2627
- "placeholder",
2628
- "helperText",
2629
- "prefix",
2630
- "suffix",
2631
- "optional",
2632
- "success",
2633
- "pending",
2634
- "clearable",
2635
- "disabled",
2636
- "type",
2637
- "value",
2638
- "onChange",
2639
- "onFocus",
2640
- "onBlur",
2641
- "className"
2642
- ]);
2643
- const [isFocused, setIsFocused] = (0, import_react22.useState)(false);
2644
- const isActive = isFocused && !!value;
2645
- const iconButtonSize = size === "lg" ? "m" : "s";
2646
- const inputRef = (0, import_react22.useRef)(null);
2647
- (0, import_react22.useImperativeHandle)(ref, () => inputRef.current);
2648
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "w-full flex flex-col gap-4 font-sans", children: [
2649
- label ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
2650
- "p",
2651
- {
2652
- className: `text-label-medium text-left items-left flex gap-4 ${disabled ? "text-text-field-text-disabled" : "text-text-field-text-primary"}`,
2653
- children: [
2654
- label,
2655
- optional && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-text-field-text-secondary", children: `(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)` })
2656
- ]
2657
- }
2658
- ) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, {}),
2659
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
2660
- "div",
2661
- {
2662
- className: `flex items-center gap-8 w-full rounded-6 border ${size === "lg" ? "h-48 py-16" : "h-40 py-12"} px-16 ${disabled ? "cursor-not-allowed" : "cursor-text"} ${disabled ? "bg-text-field-background-disabled border-text-field-border-disabled" : error ? `bg-text-field-background-enabled border-text-field-border-danger ${isFocused ? "ring-1 ring-inset ring-text-field-border-danger" : ""}` : isActive ? "bg-text-field-background-enabled border-text-field-border-active ring-1 ring-inset ring-text-field-border-active" : isFocused ? "bg-text-field-background-enabled border-text-field-border-focus ring-1 ring-inset ring-text-field-border-focus" : "bg-text-field-background-enabled border-text-field-border-enabled hover:border-text-field-border-hover"} ${className != null ? className : ""}`,
2663
- onMouseDown: (e) => {
2664
- var _a2;
2665
- if (e.target !== inputRef.current && !disabled) {
2666
- e.preventDefault();
2667
- (_a2 = inputRef.current) == null ? void 0 : _a2.focus();
2668
- }
2669
- },
2670
- children: [
2671
- prefix && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2672
- "span",
2673
- {
2674
- className: `shrink-0 ${disabled ? "text-static-icon-disabled" : "text-static-icon-primary"}`,
2675
- children: prefix
2676
- }
2677
- ),
2678
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2679
- "input",
2680
- __spreadValues({
2681
- ref: inputRef,
2682
- type: type || "text",
2683
- placeholder,
2684
- disabled: disabled || pending,
2685
- onFocus: (e) => {
2686
- setIsFocused(true);
2687
- onFocus == null ? void 0 : onFocus(e);
2688
- },
2689
- onBlur: (e) => {
2690
- setIsFocused(false);
2691
- onBlur == null ? void 0 : onBlur(e);
2692
- },
2693
- value,
2694
- onChange,
2695
- className: `w-full min-w-0 text-body-small bg-transparent focus:outline-none placeholder:text-text-field-text-tertiary ${disabled ? "text-text-field-text-disabled" : "text-text-field-text-primary"}`
2696
- }, props)
2697
- ),
2698
- suffix && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2699
- "span",
2700
- {
2701
- className: `shrink-0 ${disabled ? "text-static-icon-disabled" : "text-static-icon-primary"}`,
2702
- children: suffix
2703
- }
2704
- ),
2705
- (pending || clearable || success || error) && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2706
- "span",
2707
- {
2708
- className: `shrink-0 flex items-center justify-center ${size === "lg" ? "h-40 w-40" : "h-32 w-32"}`,
2709
- children: pending ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Loading, { size: "sm" }) : clearable && isFocused && value ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2710
- IconButton,
2711
- {
2712
- size: iconButtonSize,
2713
- "aria-label": "\u0E25\u0E49\u0E32\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21",
2714
- icon: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2715
- "svg",
2716
- {
2717
- xmlns: "http://www.w3.org/2000/svg",
2718
- width: "20",
2719
- height: "20",
2720
- viewBox: "0 0 20 20",
2721
- fill: "none",
2722
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2723
- "path",
2724
- {
2725
- 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",
2726
- fill: "currentColor"
2727
- }
2728
- )
2729
- }
2730
- ),
2731
- onMouseDown: (e) => {
2732
- e.preventDefault();
2733
- },
2734
- onClick: () => {
2735
- onChange == null ? void 0 : onChange({
2736
- target: { value: "" }
2737
- });
2738
- }
2739
- }
2740
- ) : success ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2741
- "svg",
2742
- {
2743
- xmlns: "http://www.w3.org/2000/svg",
2744
- width: "20",
2745
- height: "20",
2746
- viewBox: "0 0 20 20",
2747
- fill: "none",
2748
- className: "text-accent-success flex h-20 w-20 items-center justify-center",
2749
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2750
- "path",
2751
- {
2752
- fillRule: "evenodd",
2753
- clipRule: "evenodd",
2754
- d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
2755
- fill: "currentColor"
2756
- }
2757
- )
2758
- }
2759
- ) : error ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2760
- "svg",
2761
- {
2762
- xmlns: "http://www.w3.org/2000/svg",
2763
- width: "20",
2764
- height: "20",
2765
- viewBox: "0 0 20 20",
2766
- fill: "none",
2767
- className: "text-text-field-text-danger flex h-20 w-20 items-center justify-center",
2768
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2769
- "path",
2770
- {
2771
- 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",
2772
- fill: "currentColor"
2773
- }
2774
- )
2775
- }
2776
- ) : null
2777
- }
2778
- )
2779
- ]
2780
- }
2781
- ),
2782
- error ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-caption-caption text-left items-left text-text-field-text-danger", children: error }) : helperText ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2783
- "p",
2784
- {
2785
- className: `text-caption-caption text-left items-left ${disabled ? "text-text-field-text-disabled" : "text-text-field-text-secondary"}`,
2786
- children: helperText
2787
- }
2788
- ) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, {})
2789
- ] });
2790
- }
2791
- );
2792
- TextField.displayName = "TextField";
2793
-
2794
3047
  // src/components/Toast/Toast.tsx
2795
- var import_react23 = require("react");
2796
- var import_jsx_runtime23 = require("react/jsx-runtime");
3048
+ var import_react24 = require("react");
3049
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2797
3050
  function CheckCircleIcon({ className }) {
2798
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
2799
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
2800
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3051
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
3052
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
3053
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "m7 10 2 2 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
2801
3054
  ] });
2802
3055
  }
2803
3056
  function ProgressIcon({ className }) {
2804
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Loading, { size: "sm", className });
3057
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Loading, { size: "sm", className });
2805
3058
  }
2806
3059
  function ErrorIcon({ className }) {
2807
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
2808
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
2809
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M10 6.5v4M10 13.5h.01", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
3060
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("svg", { className, width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
3061
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("circle", { cx: "10", cy: "10", r: "8", stroke: "currentColor", strokeWidth: "1.5" }),
3062
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M10 6.5v4M10 13.5h.01", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
2810
3063
  ] });
2811
3064
  }
2812
3065
  function CloseIcon5({ className }) {
2813
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
3066
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("svg", { className, width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M12 4 4 12M4 4l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
2814
3067
  }
2815
3068
  var defaultIcons3 = {
2816
3069
  default: CheckCircleIcon,
@@ -2827,7 +3080,7 @@ var iconColorClasses = {
2827
3080
  progress: "text-toast-progress-icon",
2828
3081
  error: "text-toast-error-icon"
2829
3082
  };
2830
- var Toast = (0, import_react23.forwardRef)(
3083
+ var Toast = (0, import_react24.forwardRef)(
2831
3084
  (_a, ref) => {
2832
3085
  var _b = _a, {
2833
3086
  type = "default",
@@ -2855,10 +3108,10 @@ var Toast = (0, import_react23.forwardRef)(
2855
3108
  typeClasses[type],
2856
3109
  className
2857
3110
  ].filter(Boolean).join(" ");
2858
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: classes }, rest), { children: [
2859
- icon && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: `shrink-0 ${iconColorClasses[type]}`, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DefaultIcon, { className: "h-20 w-20" }) }),
2860
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "flex-1 text-sm font-medium leading-20 truncate", children }),
2861
- actionLabel && onAction && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3111
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "alert", className: classes }, rest), { children: [
3112
+ icon && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: `shrink-0 ${iconColorClasses[type]}`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DefaultIcon, { className: "h-20 w-20" }) }),
3113
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "flex-1 text-sm font-medium leading-20 truncate", children }),
3114
+ actionLabel && onAction && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2862
3115
  "button",
2863
3116
  {
2864
3117
  type: "button",
@@ -2867,14 +3120,14 @@ var Toast = (0, import_react23.forwardRef)(
2867
3120
  children: actionLabel
2868
3121
  }
2869
3122
  ),
2870
- onDismiss && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3123
+ onDismiss && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2871
3124
  "button",
2872
3125
  {
2873
3126
  type: "button",
2874
3127
  onClick: onDismiss,
2875
3128
  className: "shrink-0 p-4 rounded-md text-toast-dismiss hover:text-toast-dismiss-hover transition-colors",
2876
3129
  "aria-label": "Dismiss",
2877
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CloseIcon5, { className: "h-16 w-16" })
3130
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CloseIcon5, { className: "h-16 w-16" })
2878
3131
  }
2879
3132
  )
2880
3133
  ] }));
@@ -2883,9 +3136,9 @@ var Toast = (0, import_react23.forwardRef)(
2883
3136
  Toast.displayName = "Toast";
2884
3137
 
2885
3138
  // src/components/ToggleSwitch/ToggleSwitch.tsx
2886
- var import_react24 = require("react");
2887
- var import_jsx_runtime24 = require("react/jsx-runtime");
2888
- var ToggleSwitch = (0, import_react24.forwardRef)(
3139
+ var import_react25 = require("react");
3140
+ var import_jsx_runtime25 = require("react/jsx-runtime");
3141
+ var ToggleSwitch = (0, import_react25.forwardRef)(
2889
3142
  (_a, ref) => {
2890
3143
  var _b = _a, {
2891
3144
  value,
@@ -2900,14 +3153,14 @@ var ToggleSwitch = (0, import_react24.forwardRef)(
2900
3153
  "setIsSelected",
2901
3154
  "className"
2902
3155
  ]);
2903
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
3156
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2904
3157
  "label",
2905
3158
  __spreadProps(__spreadValues({
2906
3159
  ref,
2907
3160
  className: `inline-flex items-center ${className}`
2908
3161
  }, rest), {
2909
3162
  children: [
2910
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3163
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2911
3164
  "input",
2912
3165
  {
2913
3166
  type: "checkbox",
@@ -2917,7 +3170,7 @@ var ToggleSwitch = (0, import_react24.forwardRef)(
2917
3170
  onChange: () => !isDisabled && (setIsSelected == null ? void 0 : setIsSelected(!isSelected))
2918
3171
  }
2919
3172
  ),
2920
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3173
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2921
3174
  "div",
2922
3175
  {
2923
3176
  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 `
@@ -2931,9 +3184,9 @@ var ToggleSwitch = (0, import_react24.forwardRef)(
2931
3184
  ToggleSwitch.displayName = "ToggleSwitch";
2932
3185
 
2933
3186
  // src/components/Tooltip/Tooltip.tsx
2934
- var import_react25 = require("react");
2935
- var import_jsx_runtime25 = require("react/jsx-runtime");
2936
- var Tooltip = (0, import_react25.forwardRef)(
3187
+ var import_react26 = require("react");
3188
+ var import_jsx_runtime26 = require("react/jsx-runtime");
3189
+ var Tooltip = (0, import_react26.forwardRef)(
2937
3190
  (_a, ref) => {
2938
3191
  var _b = _a, {
2939
3192
  size = "md",
@@ -2950,10 +3203,10 @@ var Tooltip = (0, import_react25.forwardRef)(
2950
3203
  "position",
2951
3204
  "className"
2952
3205
  ]);
2953
- const wrapperRef = (0, import_react25.useRef)(null);
2954
- const [isVisible, setIsVisible] = (0, import_react25.useState)(false);
2955
- const [isHovered, setIsHovered] = (0, import_react25.useState)(false);
2956
- (0, import_react25.useEffect)(() => {
3206
+ const wrapperRef = (0, import_react26.useRef)(null);
3207
+ const [isVisible, setIsVisible] = (0, import_react26.useState)(false);
3208
+ const [isHovered, setIsHovered] = (0, import_react26.useState)(false);
3209
+ (0, import_react26.useEffect)(() => {
2957
3210
  const handleClickOutside = (event) => {
2958
3211
  if (wrapperRef.current && !wrapperRef.current.contains(event.target)) {
2959
3212
  setIsVisible(false);
@@ -2965,14 +3218,14 @@ var Tooltip = (0, import_react25.forwardRef)(
2965
3218
  document.removeEventListener("mousedown", handleClickOutside);
2966
3219
  };
2967
3220
  }, []);
2968
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3221
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2969
3222
  "div",
2970
3223
  __spreadProps(__spreadValues({
2971
3224
  className: `group relative inline-block ${className}`,
2972
3225
  ref
2973
3226
  }, rest), {
2974
3227
  children: [
2975
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3228
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2976
3229
  "div",
2977
3230
  {
2978
3231
  ref: wrapperRef,
@@ -2989,25 +3242,25 @@ var Tooltip = (0, import_react25.forwardRef)(
2989
3242
  children
2990
3243
  }
2991
3244
  ),
2992
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3245
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2993
3246
  "div",
2994
3247
  {
2995
3248
  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"}`}`,
2996
3249
  children: [
2997
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3250
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2998
3251
  "span",
2999
3252
  {
3000
3253
  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`} `
3001
3254
  }
3002
3255
  ),
3003
- headText ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3256
+ headText ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3004
3257
  "p",
3005
3258
  {
3006
3259
  className: `text-sm text-white font-semibold text-center ${text ? "mb-5" : ""}`,
3007
3260
  children: headText
3008
3261
  }
3009
- ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, {}),
3010
- text ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-xs text-white font-normal text-center text-wrap", children: text }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, {})
3262
+ ) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, {}),
3263
+ text ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xs text-white font-normal text-center text-wrap", children: text }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, {})
3011
3264
  ]
3012
3265
  }
3013
3266
  )
@@ -3027,6 +3280,7 @@ Tooltip.displayName = "Tooltip";
3027
3280
  Button,
3028
3281
  Checkbox,
3029
3282
  Chip,
3283
+ CurrencyField,
3030
3284
  Dialog,
3031
3285
  Drawer,
3032
3286
  Dropdown,