@chekinapp/ui 0.0.36 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +467 -318
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +467 -318
- package/dist/index.js.map +1 -1
- package/dist/styles.css +4 -1
- package/dist/styles.css.map +1 -0
- package/package.json +3 -4
- package/dist/Accordion.module-5SXQLE6L.module.css +0 -71
- package/dist/AlertBox.module-PL4N3ELX.module.css +0 -36
- package/dist/AudioPlayer.module-RDUQ533M.module.css +0 -24
- package/dist/Avatar.module-VPJKIZT3.module.css +0 -4
- package/dist/BetaBadge.module-W2AGK53A.module.css +0 -9
- package/dist/BoxOptionSelector.module-24AKP2OJ.module.css +0 -17
- package/dist/FormBox.module-WG4SQBRR.module.css +0 -55
- package/dist/MetricCard.module-LEV46BXD.module.css +0 -88
- package/dist/Section.module-6UJGBE6B.module.css +0 -61
- package/dist/TaskCard.module-AVGS4US3.module.css +0 -99
- package/dist/styles.module-4AVOK5SA.module.css +0 -81
- package/dist/styles.module-6FWQEZTQ.module.css +0 -82
- package/dist/styles.module-74HHIGIE.module.css +0 -35
- package/dist/styles.module-AAYSW4RF.module.css +0 -64
- package/dist/styles.module-H7R2VV2Q.module.css +0 -30
- package/dist/styles.module-I3PJNRXG.module.css +0 -20
- package/dist/styles.module-REEJNJNW.module.css +0 -7
- package/dist/styles.module-SHDCFZJR.module.css +0 -151
- package/dist/styles.module-VIYXJAAX.module.css +0 -8
- package/dist/styles.module-Y6YCV6UA.module.css +0 -48
- package/dist/textField.module-5W2LJGIC.module.css +0 -17
package/dist/index.cjs
CHANGED
|
@@ -357,7 +357,6 @@ function cn(...inputs) {
|
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
// src/accordion/Accordion.tsx
|
|
360
|
-
var import_Accordion = __toESM(require("./Accordion.module-5SXQLE6L.module.css"), 1);
|
|
361
360
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
362
361
|
var Accordion = AccordionPrimitive.Root;
|
|
363
362
|
var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -366,8 +365,7 @@ var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
366
365
|
ref,
|
|
367
366
|
className: cn(
|
|
368
367
|
"accordion__item",
|
|
369
|
-
"transition-colors duration-200 ease-in-out",
|
|
370
|
-
import_Accordion.default.accordion__item,
|
|
368
|
+
"rounded-[var(--accordion-item-radius)] border border-solid border-[var(--accordion-item-border)] bg-[var(--accordion-item-bg)] shadow-[0_0_10px_0_rgba(143,143,143,0.2)] transition-colors duration-200 ease-in-out [border-top-color:var(--accordion-item-divider)] data-[state=open]:bg-[var(--accordion-item-open-bg)] data-[state=closed]:bg-[var(--accordion-item-bg)] data-[state=closed]:hover:bg-[var(--accordion-item-hover-bg)]",
|
|
371
369
|
className
|
|
372
370
|
),
|
|
373
371
|
...props
|
|
@@ -385,7 +383,7 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
|
|
|
385
383
|
"accordion__trigger",
|
|
386
384
|
"flex h-auto w-full flex-1 items-center justify-between text-left outline-none transition-colors duration-200",
|
|
387
385
|
"hover:no-underline disabled:pointer-events-none",
|
|
388
|
-
|
|
386
|
+
"gap-[var(--accordion-trigger-gap)] p-6 text-lg leading-7 text-[var(--accordion-trigger-color)] [font-family:var(--accordion-trigger-font-family)] [font-weight:var(--accordion-trigger-font-weight)] focus-visible:shadow-[var(--accordion-trigger-focus-shadow)] disabled:opacity-[var(--accordion-trigger-disabled-opacity)]",
|
|
389
387
|
"group",
|
|
390
388
|
className
|
|
391
389
|
),
|
|
@@ -397,8 +395,7 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
|
|
|
397
395
|
{
|
|
398
396
|
className: cn(
|
|
399
397
|
"accordion__icon",
|
|
400
|
-
|
|
401
|
-
"shrink-0 rounded-full p-0.5",
|
|
398
|
+
"ml-auto h-[var(--accordion-icon-size)] w-4 min-w-0 shrink-0 rounded-full p-0.5 text-[var(--accordion-icon-color-closed)] group-data-[state=open]:text-[var(--accordion-icon-color-open)] [&_svg]:h-[var(--accordion-icon-size)] [&_svg]:w-[var(--accordion-icon-size)] [&_svg]:transition-transform [&_svg]:duration-200",
|
|
402
399
|
"transition-colors duration-200",
|
|
403
400
|
"relative"
|
|
404
401
|
),
|
|
@@ -442,30 +439,19 @@ var AccordionContent = React.forwardRef(({ className, contentClassName, children
|
|
|
442
439
|
"transition-all",
|
|
443
440
|
"data-[state=closed]:animate-accordion-up",
|
|
444
441
|
"data-[state=open]:animate-accordion-down",
|
|
445
|
-
|
|
442
|
+
"text-[length:var(--accordion-content-font-size)] leading-[var(--accordion-content-line-height)] text-[var(--accordion-content-color)] data-[state=closed]:block",
|
|
446
443
|
// TODO Uncomment the next line when dropdown position is fixed
|
|
447
444
|
// 'overflow-hidden',
|
|
448
445
|
className
|
|
449
446
|
),
|
|
450
447
|
...props,
|
|
451
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
452
|
-
"div",
|
|
453
|
-
{
|
|
454
|
-
className: cn(
|
|
455
|
-
"accordion__contentItem",
|
|
456
|
-
import_Accordion.default.accordion__contentItem,
|
|
457
|
-
contentClassName
|
|
458
|
-
),
|
|
459
|
-
children
|
|
460
|
-
}
|
|
461
|
-
)
|
|
448
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("accordion__contentItem px-6 pb-6 pt-2", contentClassName), children })
|
|
462
449
|
}
|
|
463
450
|
));
|
|
464
451
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
465
452
|
|
|
466
453
|
// src/alert-box/AlertBox.tsx
|
|
467
454
|
var import_lucide_react2 = require("lucide-react");
|
|
468
|
-
var import_AlertBox = __toESM(require("./AlertBox.module-PL4N3ELX.module.css"), 1);
|
|
469
455
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
470
456
|
var AlertType = /* @__PURE__ */ ((AlertType2) => {
|
|
471
457
|
AlertType2["INFO"] = "INFO";
|
|
@@ -494,10 +480,10 @@ var sizeClasses = {
|
|
|
494
480
|
["L" /* L */]: "px-6 py-5 items-start"
|
|
495
481
|
};
|
|
496
482
|
var typeStyles = {
|
|
497
|
-
["INFO" /* INFO */]:
|
|
498
|
-
["WARNING" /* WARNING */]:
|
|
499
|
-
["ERROR" /* ERROR */]:
|
|
500
|
-
["SUCCESS" /* SUCCESS */]:
|
|
483
|
+
["INFO" /* INFO */]: "bg-[var(--alert-box-info-bg)] [&_svg]:text-[var(--alert-box-info-icon)]",
|
|
484
|
+
["WARNING" /* WARNING */]: "bg-[var(--alert-box-warning-bg)] [&_svg]:text-[var(--alert-box-warning-icon)]",
|
|
485
|
+
["ERROR" /* ERROR */]: "bg-[var(--alert-box-error-bg)] [&_svg]:text-[var(--alert-box-error-icon)]",
|
|
486
|
+
["SUCCESS" /* SUCCESS */]: "bg-[var(--alert-box-success-bg)] text-[var(--alert-box-success-text)] [&_svg]:text-[var(--alert-box-success-icon)]",
|
|
501
487
|
["LIGHT" /* LIGHT */]: ""
|
|
502
488
|
};
|
|
503
489
|
function AlertBox({
|
|
@@ -514,8 +500,7 @@ function AlertBox({
|
|
|
514
500
|
{
|
|
515
501
|
"data-slot": "alert-box",
|
|
516
502
|
className: cn(
|
|
517
|
-
|
|
518
|
-
"flex gap-3 [&_svg]:h-5 [&_svg]:w-5 [&_svg]:shrink-0",
|
|
503
|
+
"flex gap-3 rounded-[var(--alert-box-radius)] [&_svg]:h-5 [&_svg]:w-5 [&_svg]:shrink-0",
|
|
519
504
|
sizeClasses[size],
|
|
520
505
|
typeStyles[type],
|
|
521
506
|
className
|
|
@@ -534,7 +519,6 @@ var AlertSizes = AlertSize;
|
|
|
534
519
|
// src/audio-player/AudioPlayer.tsx
|
|
535
520
|
var import_react = require("react");
|
|
536
521
|
var import_lucide_react3 = require("lucide-react");
|
|
537
|
-
var import_AudioPlayer = __toESM(require("./AudioPlayer.module-RDUQ533M.module.css"), 1);
|
|
538
522
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
539
523
|
function formatTime(seconds) {
|
|
540
524
|
const mins = Math.floor(seconds / 60);
|
|
@@ -598,8 +582,7 @@ function AudioPlayer({ src, compact, className }) {
|
|
|
598
582
|
{
|
|
599
583
|
type: "button",
|
|
600
584
|
className: cn(
|
|
601
|
-
|
|
602
|
-
"inline-flex items-center justify-center",
|
|
585
|
+
"inline-flex items-center justify-center rounded-[var(--audio-player-button-radius)] bg-[var(--audio-player-button-bg)] hover:bg-[var(--audio-player-button-hover-bg)] [&_svg]:text-[var(--audio-player-icon-color)]",
|
|
603
586
|
compact ? "h-6 min-w-6 p-1" : "h-8 min-w-8 p-1.5"
|
|
604
587
|
),
|
|
605
588
|
onClick: togglePlayPause,
|
|
@@ -611,24 +594,18 @@ function AudioPlayer({ src, compact, className }) {
|
|
|
611
594
|
"div",
|
|
612
595
|
{
|
|
613
596
|
ref: progressRef,
|
|
614
|
-
className:
|
|
615
|
-
import_AudioPlayer.default.track,
|
|
616
|
-
"h-1 flex-1 cursor-pointer overflow-hidden rounded-full"
|
|
617
|
-
),
|
|
597
|
+
className: "h-1 flex-1 cursor-pointer overflow-hidden rounded-full bg-[var(--audio-player-track-bg)]",
|
|
618
598
|
onClick: handleSeek,
|
|
619
599
|
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
620
600
|
"div",
|
|
621
601
|
{
|
|
622
|
-
className:
|
|
623
|
-
import_AudioPlayer.default.progress,
|
|
624
|
-
"h-full transition-all duration-100 ease-linear"
|
|
625
|
-
),
|
|
602
|
+
className: "h-full bg-[var(--audio-player-progress-bg)] transition-all duration-100 ease-linear",
|
|
626
603
|
style: { width: `${progress}%` }
|
|
627
604
|
}
|
|
628
605
|
)
|
|
629
606
|
}
|
|
630
607
|
),
|
|
631
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className:
|
|
608
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "min-w-10 text-xs font-medium text-[var(--audio-player-time-color)]", children: isPlaying || currentTime > 0 ? formatTime(currentTime) : formatTime(duration) })
|
|
632
609
|
] })
|
|
633
610
|
] });
|
|
634
611
|
}
|
|
@@ -637,7 +614,6 @@ AudioPlayer.displayName = "AudioPlayer";
|
|
|
637
614
|
// src/avatar/Avatar.tsx
|
|
638
615
|
var React2 = __toESM(require("react"), 1);
|
|
639
616
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
640
|
-
var import_Avatar = __toESM(require("./Avatar.module-VPJKIZT3.module.css"), 1);
|
|
641
617
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
642
618
|
var sizeClasses2 = {
|
|
643
619
|
sm: "h-8 w-8",
|
|
@@ -669,7 +645,7 @@ var Avatar = React2.forwardRef(({ className, src, alt, fallback, size = "md", fa
|
|
|
669
645
|
{
|
|
670
646
|
className: cn(
|
|
671
647
|
"flex h-full w-full items-center justify-center rounded-full font-medium",
|
|
672
|
-
!fallbackClassName &&
|
|
648
|
+
!fallbackClassName && "bg-[var(--avatar-fallback-bg)] text-[var(--avatar-fallback-text)]",
|
|
673
649
|
fallbackClassName
|
|
674
650
|
),
|
|
675
651
|
children: fallback
|
|
@@ -722,7 +698,6 @@ Badge.displayName = "Badge";
|
|
|
722
698
|
|
|
723
699
|
// src/beta-badge/BetaBadge.tsx
|
|
724
700
|
var import_react_i18next = require("react-i18next");
|
|
725
|
-
var import_BetaBadge = __toESM(require("./BetaBadge.module-W2AGK53A.module.css"), 1);
|
|
726
701
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
727
702
|
function BetaBadge({
|
|
728
703
|
className,
|
|
@@ -737,9 +712,8 @@ function BetaBadge({
|
|
|
737
712
|
{
|
|
738
713
|
"data-slot": "beta-badge",
|
|
739
714
|
className: cn(
|
|
740
|
-
|
|
741
|
-
"
|
|
742
|
-
readOnly && import_BetaBadge.default["betaBadge--readonly"],
|
|
715
|
+
"rounded-sm bg-[var(--beta-badge-bg)] px-2 py-1 text-sm/4 font-semibold uppercase text-[var(--beta-badge-text)]",
|
|
716
|
+
readOnly && "bg-[var(--beta-badge-readonly-bg)] text-[var(--beta-badge-readonly-text)]",
|
|
743
717
|
className
|
|
744
718
|
),
|
|
745
719
|
...props,
|
|
@@ -830,7 +804,6 @@ BookmarkTabsTrigger.displayName = "BookmarkTabsTrigger";
|
|
|
830
804
|
// src/box-option-selector/BoxOptionSelector.tsx
|
|
831
805
|
var import_react2 = require("react");
|
|
832
806
|
var import_react_i18next2 = require("react-i18next");
|
|
833
|
-
var import_BoxOptionSelector = __toESM(require("./BoxOptionSelector.module-24AKP2OJ.module.css"), 1);
|
|
834
807
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
835
808
|
var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
836
809
|
({
|
|
@@ -866,9 +839,8 @@ var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
|
866
839
|
ref,
|
|
867
840
|
"data-slot": "box-option-selector",
|
|
868
841
|
className: cn(
|
|
869
|
-
|
|
870
|
-
"
|
|
871
|
-
isSelected && import_BoxOptionSelector.default["boxOption--selected"],
|
|
842
|
+
"flex min-h-[116px] w-full max-w-[400px] cursor-pointer flex-col gap-4 rounded-lg border border-[var(--box-option-border)] bg-[var(--box-option-bg)] p-4 transition-all duration-200 hover:bg-[var(--box-option-hover-bg)]",
|
|
843
|
+
isSelected && "border-[var(--box-option-selected-border)] bg-[var(--box-option-selected-bg)] hover:bg-[var(--box-option-selected-bg)]",
|
|
872
844
|
disabled && "cursor-not-allowed opacity-50"
|
|
873
845
|
),
|
|
874
846
|
onClick: handleClick,
|
|
@@ -1171,8 +1143,10 @@ function Spinner() {
|
|
|
1171
1143
|
"path",
|
|
1172
1144
|
{
|
|
1173
1145
|
className: "opacity-75",
|
|
1174
|
-
|
|
1175
|
-
|
|
1146
|
+
stroke: "currentColor",
|
|
1147
|
+
strokeWidth: "4",
|
|
1148
|
+
strokeLinecap: "round",
|
|
1149
|
+
d: "M12 2a10 10 0 0 1 10 10"
|
|
1176
1150
|
}
|
|
1177
1151
|
)
|
|
1178
1152
|
]
|
|
@@ -1560,8 +1534,8 @@ function TooltipContent({
|
|
|
1560
1534
|
"origin-[var(--radix-tooltip-content-transform-origin)] z-50 w-fit text-balance",
|
|
1561
1535
|
"rounded-md px-4 py-2 text-sm font-medium",
|
|
1562
1536
|
{
|
|
1563
|
-
"bg-white text-chekin-navy shadow-[0_0_10px_0_rgba(143,143,143,0.30)]": variant === "light",
|
|
1564
|
-
"bg-chekin-navy text-white": variant === "dark"
|
|
1537
|
+
"bg-[var(--chekin-color-white)] text-[var(--chekin-color-brand-navy)] shadow-[0_0_10px_0_rgba(143,143,143,0.30)]": variant === "light",
|
|
1538
|
+
"bg-[var(--chekin-color-brand-navy)] text-[var(--chekin-color-white)]": variant === "dark"
|
|
1565
1539
|
},
|
|
1566
1540
|
className
|
|
1567
1541
|
),
|
|
@@ -1574,8 +1548,8 @@ function TooltipContent({
|
|
|
1574
1548
|
className: cn(
|
|
1575
1549
|
"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]",
|
|
1576
1550
|
{
|
|
1577
|
-
"bg-white fill-white": variant === "light",
|
|
1578
|
-
"bg-chekin-navy fill-chekin-navy": variant === "dark"
|
|
1551
|
+
"bg-[var(--chekin-color-white)] fill-[var(--chekin-color-white)]": variant === "light",
|
|
1552
|
+
"bg-[var(--chekin-color-brand-navy)] fill-[var(--chekin-color-brand-navy)]": variant === "dark"
|
|
1579
1553
|
}
|
|
1580
1554
|
)
|
|
1581
1555
|
}
|
|
@@ -1834,15 +1808,14 @@ function ScrollBar({
|
|
|
1834
1808
|
}
|
|
1835
1809
|
|
|
1836
1810
|
// src/error-message/ErrorMessage.tsx
|
|
1837
|
-
var import_styles = __toESM(require("./styles.module-VIYXJAAX.module.css"), 1);
|
|
1838
1811
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1839
1812
|
function ErrorMessage({ className, children, disabled }) {
|
|
1840
1813
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1841
1814
|
"div",
|
|
1842
1815
|
{
|
|
1843
1816
|
className: cn(
|
|
1844
|
-
|
|
1845
|
-
disabled &&
|
|
1817
|
+
"mt-0.5 text-left text-sm font-medium text-[var(--error-message-color)]",
|
|
1818
|
+
disabled && "opacity-30",
|
|
1846
1819
|
className
|
|
1847
1820
|
),
|
|
1848
1821
|
children
|
|
@@ -1958,42 +1931,66 @@ function StatusBadgeIcon({ variant, className }) {
|
|
|
1958
1931
|
};
|
|
1959
1932
|
switch (variant) {
|
|
1960
1933
|
case "clock-blue":
|
|
1961
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1935
|
+
import_lucide_react8.Clock,
|
|
1936
|
+
{
|
|
1937
|
+
...iconProps,
|
|
1938
|
+
className: cn("text-[var(--chekin-color-brand-blue)]", className)
|
|
1939
|
+
}
|
|
1940
|
+
);
|
|
1962
1941
|
case "tick-blue":
|
|
1963
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1943
|
+
import_lucide_react8.Check,
|
|
1944
|
+
{
|
|
1945
|
+
...iconProps,
|
|
1946
|
+
className: cn("text-[var(--chekin-color-brand-blue)]", className)
|
|
1947
|
+
}
|
|
1948
|
+
);
|
|
1964
1949
|
case "tick-green":
|
|
1965
1950
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react8.Check, { ...iconProps, className: cn("text-emerald-600", className) });
|
|
1966
1951
|
case "x-red":
|
|
1967
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1953
|
+
import_lucide_react8.X,
|
|
1954
|
+
{
|
|
1955
|
+
...iconProps,
|
|
1956
|
+
className: cn("text-[var(--chekin-color-brand-red)]", className)
|
|
1957
|
+
}
|
|
1958
|
+
);
|
|
1968
1959
|
case "clock-grey":
|
|
1969
1960
|
default:
|
|
1970
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1962
|
+
import_lucide_react8.Clock,
|
|
1963
|
+
{
|
|
1964
|
+
...iconProps,
|
|
1965
|
+
className: cn("text-[var(--chekin-color-gray-2)]", className)
|
|
1966
|
+
}
|
|
1967
|
+
);
|
|
1971
1968
|
}
|
|
1972
1969
|
}
|
|
1973
1970
|
var variantStyles = {
|
|
1974
1971
|
neutral: {
|
|
1975
|
-
container: "bg-chekin-surface-input-empty",
|
|
1976
|
-
text: "text-chekin-gray-2",
|
|
1972
|
+
container: "bg-[var(--chekin-color-surface-input-empty)]",
|
|
1973
|
+
text: "text-[var(--chekin-color-gray-2)]",
|
|
1977
1974
|
icon: "clock-grey"
|
|
1978
1975
|
},
|
|
1979
1976
|
"progress-blue": {
|
|
1980
|
-
container: "bg-chekin-surface-autocomplete",
|
|
1981
|
-
text: "text-chekin-blue",
|
|
1977
|
+
container: "bg-[var(--chekin-color-surface-autocomplete)]",
|
|
1978
|
+
text: "text-[var(--chekin-color-brand-blue)]",
|
|
1982
1979
|
icon: "clock-blue"
|
|
1983
1980
|
},
|
|
1984
1981
|
"progress-blue-light": {
|
|
1985
|
-
container: "bg-chekin-surface-pressed",
|
|
1986
|
-
text: "text-chekin-blue",
|
|
1982
|
+
container: "bg-[var(--chekin-color-surface-pressed)]",
|
|
1983
|
+
text: "text-[var(--chekin-color-brand-blue)]",
|
|
1987
1984
|
icon: "clock-blue"
|
|
1988
1985
|
},
|
|
1989
1986
|
"progress-grey": {
|
|
1990
|
-
container: "bg-chekin-surface-input-empty",
|
|
1991
|
-
text: "text-chekin-gray-2",
|
|
1987
|
+
container: "bg-[var(--chekin-color-surface-input-empty)]",
|
|
1988
|
+
text: "text-[var(--chekin-color-gray-2)]",
|
|
1992
1989
|
icon: "clock-grey"
|
|
1993
1990
|
},
|
|
1994
1991
|
"success-blue": {
|
|
1995
|
-
container: "bg-chekin-surface-autocomplete",
|
|
1996
|
-
text: "text-chekin-blue",
|
|
1992
|
+
container: "bg-[var(--chekin-color-surface-autocomplete)]",
|
|
1993
|
+
text: "text-[var(--chekin-color-brand-blue)]",
|
|
1997
1994
|
icon: "tick-blue"
|
|
1998
1995
|
},
|
|
1999
1996
|
"success-green": {
|
|
@@ -2003,7 +2000,7 @@ var variantStyles = {
|
|
|
2003
2000
|
},
|
|
2004
2001
|
error: {
|
|
2005
2002
|
container: "bg-red-50",
|
|
2006
|
-
text: "text-chekin-red",
|
|
2003
|
+
text: "text-[var(--chekin-color-brand-red)]",
|
|
2007
2004
|
icon: "x-red"
|
|
2008
2005
|
}
|
|
2009
2006
|
};
|
|
@@ -2018,7 +2015,7 @@ var StatusBadgeInternal = (0, import_react4.forwardRef)(
|
|
|
2018
2015
|
disabled = false,
|
|
2019
2016
|
...props
|
|
2020
2017
|
}, ref) => {
|
|
2021
|
-
const
|
|
2018
|
+
const styles = variantStyles[variant];
|
|
2022
2019
|
const hasText = !iconOnly && (children || !textOnly);
|
|
2023
2020
|
const hasIcon = !textOnly && showIcon;
|
|
2024
2021
|
const padding = (() => {
|
|
@@ -2033,15 +2030,15 @@ var StatusBadgeInternal = (0, import_react4.forwardRef)(
|
|
|
2033
2030
|
ref,
|
|
2034
2031
|
className: cn(
|
|
2035
2032
|
"inline-flex cursor-default items-center justify-center gap-1 rounded-3xl text-[14px] font-medium leading-4",
|
|
2036
|
-
|
|
2037
|
-
|
|
2033
|
+
styles.container,
|
|
2034
|
+
styles.text,
|
|
2038
2035
|
padding,
|
|
2039
2036
|
disabled && "opacity-50",
|
|
2040
2037
|
className
|
|
2041
2038
|
),
|
|
2042
2039
|
...props,
|
|
2043
2040
|
children: [
|
|
2044
|
-
hasIcon && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StatusBadgeIcon, { variant:
|
|
2041
|
+
hasIcon && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StatusBadgeIcon, { variant: styles.icon, className: "size-4 flex-shrink-0" }),
|
|
2045
2042
|
hasText && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "whitespace-nowrap", children })
|
|
2046
2043
|
]
|
|
2047
2044
|
}
|
|
@@ -2248,18 +2245,9 @@ var import_react_table = require("@tanstack/react-table");
|
|
|
2248
2245
|
var import_react7 = require("react");
|
|
2249
2246
|
|
|
2250
2247
|
// src/loading-bar/LoadingBar.tsx
|
|
2251
|
-
var import_styles2 = __toESM(require("./styles.module-I3PJNRXG.module.css"), 1);
|
|
2252
2248
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2253
2249
|
function LoadingBar({ className }) {
|
|
2254
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: cn("w-full p-4", className), children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "relative h-1 w-full overflow-hidden rounded-full bg-[var(--chekin-color-white)]", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2255
|
-
"div",
|
|
2256
|
-
{
|
|
2257
|
-
className: cn(
|
|
2258
|
-
"absolute top-0 h-full rounded-full bg-[var(--primary)]",
|
|
2259
|
-
import_styles2.default.bar
|
|
2260
|
-
)
|
|
2261
|
-
}
|
|
2262
|
-
) }) });
|
|
2250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: cn("w-full p-4", className), children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "relative h-1 w-full overflow-hidden rounded-full bg-[var(--chekin-color-white)]", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "absolute top-0 h-full animate-chekin-loading-bar rounded-full bg-[var(--primary)]" }) }) });
|
|
2263
2251
|
}
|
|
2264
2252
|
|
|
2265
2253
|
// src/table/Table.tsx
|
|
@@ -3902,19 +3890,19 @@ var HaloIcon = (0, import_react34.forwardRef)(
|
|
|
3902
3890
|
size = "M",
|
|
3903
3891
|
className
|
|
3904
3892
|
}, ref) => {
|
|
3905
|
-
const
|
|
3893
|
+
const styles = statusStyles[status];
|
|
3906
3894
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3907
3895
|
"div",
|
|
3908
3896
|
{
|
|
3909
3897
|
ref,
|
|
3910
3898
|
className: cn(
|
|
3911
3899
|
"halo-icon flex items-center justify-center rounded-[50%]",
|
|
3912
|
-
|
|
3900
|
+
styles.color,
|
|
3913
3901
|
{
|
|
3914
3902
|
"h-6 w-6 [&>svg]:h-4 [&>svg]:w-4": size === "M",
|
|
3915
3903
|
"h-8 w-8 [&>svg]:h-5 [&>svg]:w-5": size === "L",
|
|
3916
3904
|
"h-11 w-11 [&>svg]:h-5 [&>svg]:w-5": size === "XL",
|
|
3917
|
-
[
|
|
3905
|
+
[styles.background]: variant === "default"
|
|
3918
3906
|
},
|
|
3919
3907
|
className
|
|
3920
3908
|
),
|
|
@@ -4005,9 +3993,9 @@ var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
|
4005
3993
|
var switchVariants = (0, import_class_variance_authority7.cva)(
|
|
4006
3994
|
[
|
|
4007
3995
|
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
|
|
4008
|
-
"focus-visible:outline-none focus-visible:shadow-chekin-focus",
|
|
3996
|
+
"focus-visible:outline-none focus-visible:shadow-[var(--chekin-shadow-focus)]",
|
|
4009
3997
|
"disabled:cursor-not-allowed disabled:opacity-50 aria-busy:cursor-wait aria-busy:opacity-50",
|
|
4010
|
-
"data-[state=checked]:bg-chekin-blue data-[state=unchecked]:bg-chekin-gray-2"
|
|
3998
|
+
"data-[state=checked]:bg-[var(--chekin-color-brand-blue)] data-[state=unchecked]:bg-[var(--chekin-color-gray-2)]"
|
|
4011
3999
|
],
|
|
4012
4000
|
{
|
|
4013
4001
|
variants: {
|
|
@@ -4049,7 +4037,7 @@ var Switch = React16.forwardRef(
|
|
|
4049
4037
|
{
|
|
4050
4038
|
ref,
|
|
4051
4039
|
className: cn(switchVariants({ size, readOnly }), className),
|
|
4052
|
-
disabled: props.disabled,
|
|
4040
|
+
disabled: props.disabled && !readOnly,
|
|
4053
4041
|
...props,
|
|
4054
4042
|
id: fieldId,
|
|
4055
4043
|
onCheckedChange: readOnly ? void 0 : onChange,
|
|
@@ -4488,27 +4476,48 @@ var FileInputButton = (0, import_react36.forwardRef)(
|
|
|
4488
4476
|
FileInputButton.displayName = "FileInputButton";
|
|
4489
4477
|
|
|
4490
4478
|
// src/form-box/Content.tsx
|
|
4491
|
-
var import_FormBox = __toESM(require("./FormBox.module-WG4SQBRR.module.css"), 1);
|
|
4492
4479
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4493
4480
|
function Content5({ children, className, ...props }) {
|
|
4494
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
4481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
4482
|
+
"div",
|
|
4483
|
+
{
|
|
4484
|
+
className: cn(
|
|
4485
|
+
"flex flex-wrap content-start items-start gap-4 self-stretch",
|
|
4486
|
+
className
|
|
4487
|
+
),
|
|
4488
|
+
...props,
|
|
4489
|
+
children
|
|
4490
|
+
}
|
|
4491
|
+
);
|
|
4495
4492
|
}
|
|
4496
4493
|
|
|
4497
4494
|
// src/form-box/Header.tsx
|
|
4498
|
-
var import_FormBox2 = __toESM(require("./FormBox.module-WG4SQBRR.module.css"), 1);
|
|
4499
4495
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4500
4496
|
function Header2({ children, className, ...props }) {
|
|
4501
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4498
|
+
"h2",
|
|
4499
|
+
{
|
|
4500
|
+
className: cn(
|
|
4501
|
+
"m-0 flex items-center gap-2 self-stretch p-0 text-2xl font-semibold leading-normal text-[var(--chekin-color-brand-navy)]",
|
|
4502
|
+
className
|
|
4503
|
+
),
|
|
4504
|
+
...props,
|
|
4505
|
+
children
|
|
4506
|
+
}
|
|
4507
|
+
);
|
|
4502
4508
|
}
|
|
4503
4509
|
|
|
4504
4510
|
// src/form-box/Root.tsx
|
|
4505
|
-
var import_FormBox3 = __toESM(require("./FormBox.module-WG4SQBRR.module.css"), 1);
|
|
4506
4511
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4507
4512
|
function Root10({ children, nested, className, ...props }) {
|
|
4508
4513
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4509
4514
|
"div",
|
|
4510
4515
|
{
|
|
4511
|
-
className: cn(
|
|
4516
|
+
className: cn(
|
|
4517
|
+
"flex max-w-[1400px] flex-col items-start gap-6 self-stretch rounded-[10px] border border-[var(--chekin-color-gray-separator)] p-6 [container-type:inline-size]",
|
|
4518
|
+
nested && "border-0 p-0",
|
|
4519
|
+
className
|
|
4520
|
+
),
|
|
4512
4521
|
...props,
|
|
4513
4522
|
children
|
|
4514
4523
|
}
|
|
@@ -4516,10 +4525,19 @@ function Root10({ children, nested, className, ...props }) {
|
|
|
4516
4525
|
}
|
|
4517
4526
|
|
|
4518
4527
|
// src/form-box/SubHeader.tsx
|
|
4519
|
-
var import_FormBox4 = __toESM(require("./FormBox.module-WG4SQBRR.module.css"), 1);
|
|
4520
4528
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4521
4529
|
function SubHeader({ children, className, ...props }) {
|
|
4522
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4531
|
+
"h4",
|
|
4532
|
+
{
|
|
4533
|
+
className: cn(
|
|
4534
|
+
"m-0 flex items-center gap-2 self-stretch border-b border-[var(--chekin-color-gray-separator)] px-0 py-2 text-base font-semibold leading-normal text-[var(--chekin-color-brand-navy)]",
|
|
4535
|
+
className
|
|
4536
|
+
),
|
|
4537
|
+
...props,
|
|
4538
|
+
children
|
|
4539
|
+
}
|
|
4540
|
+
);
|
|
4523
4541
|
}
|
|
4524
4542
|
|
|
4525
4543
|
// src/form-box/index.ts
|
|
@@ -4533,7 +4551,6 @@ var FormBox = {
|
|
|
4533
4551
|
// src/free-text-field/FreeTextField.tsx
|
|
4534
4552
|
var import_react37 = require("react");
|
|
4535
4553
|
var import_react_i18next10 = require("react-i18next");
|
|
4536
|
-
var import_styles3 = __toESM(require("./styles.module-SHDCFZJR.module.css"), 1);
|
|
4537
4554
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4538
4555
|
var FreeTextField = (0, import_react37.forwardRef)(
|
|
4539
4556
|
({
|
|
@@ -4579,65 +4596,81 @@ var FreeTextField = (0, import_react37.forwardRef)(
|
|
|
4579
4596
|
onBlur?.(event);
|
|
4580
4597
|
};
|
|
4581
4598
|
const fieldBoxClassName = cn(
|
|
4582
|
-
|
|
4583
|
-
autocompleted &&
|
|
4584
|
-
isErrorWrong && !autocompleted &&
|
|
4585
|
-
!autocompleted && !isErrorWrong && !isEmpty &&
|
|
4586
|
-
!autocompleted && !isErrorWrong && isEmpty &&
|
|
4587
|
-
isFocused && !hasError &&
|
|
4599
|
+
"relative flex h-11 items-center gap-2.5 rounded-lg border px-3.5 py-2.5 transition-colors duration-150 ease-in-out",
|
|
4600
|
+
autocompleted && "border-[var(--chekin-color-brand-navy)] bg-[var(--chekin-color-surface-autocomplete)]",
|
|
4601
|
+
isErrorWrong && !autocompleted && "border-[var(--error-message-color)] bg-white",
|
|
4602
|
+
!autocompleted && !isErrorWrong && !isEmpty && "border-[var(--chekin-color-brand-navy)] bg-white",
|
|
4603
|
+
!autocompleted && !isErrorWrong && isEmpty && "border-[rgba(22,22,67,0.2)] bg-[var(--chekin-color-surface-input-empty)]",
|
|
4604
|
+
isFocused && !hasError && "border-[var(--chekin-color-brand-blue)]"
|
|
4588
4605
|
);
|
|
4589
4606
|
const inputPlaceholder = fieldStyle === "new" ? label : placeholder;
|
|
4590
4607
|
const showFloatingLabel = fieldStyle === "new" && !isEmpty && Boolean(label);
|
|
4591
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
"- ",
|
|
4596
|
-
|
|
4597
|
-
] }),
|
|
4598
|
-
tooltip && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: import_styles3.default.tooltip, children: tooltip })
|
|
4599
|
-
] }),
|
|
4600
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: fieldBoxClassName, children: [
|
|
4601
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4602
|
-
"input",
|
|
4603
|
-
{
|
|
4604
|
-
ref,
|
|
4605
|
-
id: inputId,
|
|
4606
|
-
className: import_styles3.default.input,
|
|
4607
|
-
placeholder: inputPlaceholder,
|
|
4608
|
-
value,
|
|
4609
|
-
defaultValue: value === void 0 ? defaultValue : void 0,
|
|
4610
|
-
onChange: handleChange,
|
|
4611
|
-
onFocus: handleFocus,
|
|
4612
|
-
onBlur: handleBlur,
|
|
4613
|
-
disabled,
|
|
4614
|
-
...inputProps
|
|
4615
|
-
}
|
|
4608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4609
|
+
"div",
|
|
4610
|
+
{
|
|
4611
|
+
className: cn(
|
|
4612
|
+
"relative flex w-[300px] flex-col gap-1 [font-family:var(--chekin-font-family-primary)]",
|
|
4613
|
+
className
|
|
4616
4614
|
),
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4615
|
+
children: [
|
|
4616
|
+
fieldStyle === "current" && label && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
4617
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4618
|
+
"label",
|
|
4619
|
+
{
|
|
4620
|
+
htmlFor: inputId,
|
|
4621
|
+
className: "text-base font-medium leading-4 text-[var(--chekin-color-brand-navy)]",
|
|
4622
|
+
children: label
|
|
4623
|
+
}
|
|
4624
4624
|
),
|
|
4625
|
-
|
|
4626
|
-
"
|
|
4625
|
+
optional && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: "text-base leading-4 text-[var(--chekin-color-brand-navy)] [&_em]:text-[var(--chekin-color-gray-2)]", children: [
|
|
4626
|
+
"- ",
|
|
4627
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("em", { children: optionalLabel || t("optional") })
|
|
4628
|
+
] }),
|
|
4629
|
+
tooltip && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "h-4 w-4 shrink-0", children: tooltip })
|
|
4630
|
+
] }),
|
|
4631
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: fieldBoxClassName, children: [
|
|
4632
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4633
|
+
"input",
|
|
4634
|
+
{
|
|
4635
|
+
ref,
|
|
4636
|
+
id: inputId,
|
|
4637
|
+
className: "min-h-px min-w-0 flex-1 basis-0 border-0 bg-transparent p-0 text-base font-medium leading-5 text-[var(--chekin-color-brand-navy)] outline-none placeholder:font-medium placeholder:text-[var(--chekin-color-gray-1)]",
|
|
4638
|
+
placeholder: inputPlaceholder,
|
|
4639
|
+
value,
|
|
4640
|
+
defaultValue: value === void 0 ? defaultValue : void 0,
|
|
4641
|
+
onChange: handleChange,
|
|
4642
|
+
onFocus: handleFocus,
|
|
4643
|
+
onBlur: handleBlur,
|
|
4644
|
+
disabled,
|
|
4645
|
+
...inputProps
|
|
4646
|
+
}
|
|
4647
|
+
),
|
|
4648
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", children: icon }),
|
|
4649
|
+
showFloatingLabel && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4650
|
+
"div",
|
|
4627
4651
|
{
|
|
4628
4652
|
className: cn(
|
|
4629
|
-
|
|
4630
|
-
|
|
4653
|
+
"pointer-events-none absolute left-[13px] top-[-8px] flex h-4 items-center bg-gradient-to-b from-transparent from-50% to-white to-50% px-[3px]",
|
|
4654
|
+
autocompleted && "to-[var(--chekin-color-surface-autocomplete)]"
|
|
4631
4655
|
),
|
|
4632
|
-
children:
|
|
4656
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4657
|
+
"span",
|
|
4658
|
+
{
|
|
4659
|
+
className: cn(
|
|
4660
|
+
"whitespace-nowrap text-sm font-medium leading-6 text-[var(--chekin-color-gray-1)]",
|
|
4661
|
+
isErrorWrong && "text-[var(--error-message-color)]"
|
|
4662
|
+
),
|
|
4663
|
+
children: label
|
|
4664
|
+
}
|
|
4665
|
+
)
|
|
4633
4666
|
}
|
|
4634
4667
|
)
|
|
4635
|
-
}
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4668
|
+
] }),
|
|
4669
|
+
supportingText && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "m-0 text-xs italic leading-normal text-[var(--chekin-color-gray-2)]", children: supportingText }),
|
|
4670
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "m-0 text-right text-xs font-medium leading-4 text-[var(--error-message-color)]", children: error })
|
|
4671
|
+
]
|
|
4672
|
+
}
|
|
4673
|
+
);
|
|
4641
4674
|
}
|
|
4642
4675
|
);
|
|
4643
4676
|
FreeTextField.displayName = "FreeTextField";
|
|
@@ -6074,8 +6107,14 @@ function Loader({
|
|
|
6074
6107
|
|
|
6075
6108
|
// src/metric-card/MetricCard.tsx
|
|
6076
6109
|
var import_lucide_react23 = require("lucide-react");
|
|
6077
|
-
var import_MetricCard = __toESM(require("./MetricCard.module-LEV46BXD.module.css"), 1);
|
|
6078
6110
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6111
|
+
var metricCardVariantClasses = {
|
|
6112
|
+
blue: "bg-[linear-gradient(122deg,#e6f0ff_36.37%,#f6f9ff_86.4%)] text-[#385cf8] [&_[data-slot=metric-card-icon]]:bg-[#dbeafe]",
|
|
6113
|
+
green: "bg-[linear-gradient(122deg,#ddfbf4_36.37%,#f5fefc_86.4%)] text-[#2bc29f] [&_[data-slot=metric-card-icon]]:bg-[#cff9ef]",
|
|
6114
|
+
orange: "bg-[linear-gradient(122deg,#ffeddc_36.37%,#fffaf5_86.4%)] text-[#f5721a] [&_[data-slot=metric-card-icon]]:bg-[#ffe5cd]",
|
|
6115
|
+
purple: "bg-[linear-gradient(122deg,#f5edff_36.37%,#fcfaff_86.4%)] text-[#9a51ff] [&_[data-slot=metric-card-icon]]:bg-[#f0e5ff]",
|
|
6116
|
+
yellow: "bg-[linear-gradient(122deg,#fff8e5_36.37%,#fffbef_86.4%)] text-[#ce8b0b] [&_[data-slot=metric-card-icon]]:bg-[#ffeeb2]"
|
|
6117
|
+
};
|
|
6079
6118
|
function MetricCard({
|
|
6080
6119
|
title,
|
|
6081
6120
|
value,
|
|
@@ -6090,37 +6129,41 @@ function MetricCard({
|
|
|
6090
6129
|
"div",
|
|
6091
6130
|
{
|
|
6092
6131
|
className: cn(
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
loading &&
|
|
6132
|
+
"flex w-full min-w-52 gap-2 rounded-lg border border-[var(--chekin-color-gray-3)] p-4",
|
|
6133
|
+
metricCardVariantClasses[variant],
|
|
6134
|
+
loading && "cursor-progress opacity-60",
|
|
6096
6135
|
className
|
|
6097
6136
|
),
|
|
6098
6137
|
children: [
|
|
6099
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6138
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6139
|
+
"div",
|
|
6140
|
+
{
|
|
6141
|
+
"data-slot": "metric-card-icon",
|
|
6142
|
+
className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full mix-blend-multiply",
|
|
6143
|
+
children: icon
|
|
6144
|
+
}
|
|
6145
|
+
),
|
|
6146
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-1 flex-col gap-4", children: [
|
|
6147
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
6148
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h4", { className: "whitespace-nowrap text-base font-medium leading-6 text-[var(--chekin-color-brand-navy)]", children: title }),
|
|
6103
6149
|
tooltip && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Tooltip, { side: "right", content: tooltip, contentClassName: "max-w-64", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6104
6150
|
"button",
|
|
6105
6151
|
{
|
|
6106
6152
|
type: "button",
|
|
6107
|
-
className:
|
|
6108
|
-
"inline-flex text-[var(--chekin-color-gray-1)]",
|
|
6109
|
-
import_MetricCard.default.MetricCard__tooltip
|
|
6110
|
-
),
|
|
6153
|
+
className: "inline-flex text-[var(--chekin-color-gray-1)]",
|
|
6111
6154
|
"aria-label": tooltip,
|
|
6112
6155
|
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_lucide_react23.CircleQuestionMark, { className: "h-4 w-4" })
|
|
6113
6156
|
}
|
|
6114
6157
|
) })
|
|
6115
6158
|
] }),
|
|
6116
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className:
|
|
6117
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className:
|
|
6159
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
6160
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "text-2xl font-bold leading-6", children: value }),
|
|
6118
6161
|
!!percentage && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6119
6162
|
"div",
|
|
6120
6163
|
{
|
|
6121
6164
|
className: cn(
|
|
6122
|
-
|
|
6123
|
-
percentage < 0
|
|
6165
|
+
"inline-flex items-center gap-x-1 text-base font-semibold leading-6 text-[#059669]",
|
|
6166
|
+
percentage < 0 && "text-[var(--chekin-color-brand-red)]"
|
|
6124
6167
|
),
|
|
6125
6168
|
children: [
|
|
6126
6169
|
percentage < 0 ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_lucide_react23.TrendingDown, {}) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_lucide_react23.TrendingUp, {}),
|
|
@@ -6148,7 +6191,6 @@ var METRIC_CARD_VARIANTS = {
|
|
|
6148
6191
|
// src/modal/Modal.tsx
|
|
6149
6192
|
var import_react47 = require("react");
|
|
6150
6193
|
var import_lucide_react24 = require("lucide-react");
|
|
6151
|
-
var import_styles4 = __toESM(require("./styles.module-74HHIGIE.module.css"), 1);
|
|
6152
6194
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6153
6195
|
var preventDefault = (event) => {
|
|
6154
6196
|
event.preventDefault();
|
|
@@ -6192,9 +6234,9 @@ function Modal({
|
|
|
6192
6234
|
overlayClassName,
|
|
6193
6235
|
className: cn(
|
|
6194
6236
|
"modal__content",
|
|
6195
|
-
|
|
6237
|
+
"flex h-auto min-w-[340px] w-auto flex-col items-center gap-y-6 rounded-md bg-[var(--chekin-color-white)] text-center text-[var(--chekin-color-brand-navy)]",
|
|
6196
6238
|
scrollableOverlay && "min-h-0",
|
|
6197
|
-
size === "compact" &&
|
|
6239
|
+
size === "compact" && "w-[360px] min-w-0",
|
|
6198
6240
|
className
|
|
6199
6241
|
),
|
|
6200
6242
|
lockScroll,
|
|
@@ -6205,16 +6247,28 @@ function Modal({
|
|
|
6205
6247
|
{
|
|
6206
6248
|
type: "button",
|
|
6207
6249
|
onClick: handleClose,
|
|
6208
|
-
className: cn(
|
|
6250
|
+
className: cn(
|
|
6251
|
+
"modal__close",
|
|
6252
|
+
"absolute right-4 top-4 z-10 rounded-full p-1 text-[var(--chekin-color-brand-blue)] hover:bg-[#f4f6f8]"
|
|
6253
|
+
),
|
|
6209
6254
|
"aria-label": "Close",
|
|
6210
6255
|
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_lucide_react24.X, { className: "h-5 w-5" })
|
|
6211
6256
|
}
|
|
6212
6257
|
),
|
|
6213
|
-
(iconSrc || iconProps?.src) && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className:
|
|
6214
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogTitle, { className: cn("modal__title",
|
|
6215
|
-
text && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogDescription, { className: cn("modal__text",
|
|
6258
|
+
(iconSrc || iconProps?.src) && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "modal__icon mx-auto mt-4 select-none", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("img", { src: iconSrc, alt: iconAlt ?? "", ...iconProps }) }),
|
|
6259
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogTitle, { className: cn("modal__title", "px-6 text-lg font-bold"), children: title }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogVisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogTitle, { children: "Dialog" }) }),
|
|
6260
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogDescription, { className: cn("modal__text", "text-base"), children: text }),
|
|
6216
6261
|
children,
|
|
6217
|
-
buttons && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6262
|
+
buttons && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6263
|
+
"div",
|
|
6264
|
+
{
|
|
6265
|
+
className: cn(
|
|
6266
|
+
"modal__buttons-wrapper",
|
|
6267
|
+
"mb-2 mt-6 flex flex-col items-center justify-center gap-y-4"
|
|
6268
|
+
),
|
|
6269
|
+
children: buttons
|
|
6270
|
+
}
|
|
6271
|
+
)
|
|
6218
6272
|
]
|
|
6219
6273
|
}
|
|
6220
6274
|
) });
|
|
@@ -6224,7 +6278,7 @@ var ModalButton = (0, import_react47.forwardRef)(
|
|
|
6224
6278
|
Button,
|
|
6225
6279
|
{
|
|
6226
6280
|
ref,
|
|
6227
|
-
className: cn("modal__button",
|
|
6281
|
+
className: cn("modal__button", "min-w-[210px]", className),
|
|
6228
6282
|
size: size && "lg",
|
|
6229
6283
|
...props,
|
|
6230
6284
|
children
|
|
@@ -6994,7 +7048,6 @@ function useRadioOptions({ options, defaultValue, onChange }) {
|
|
|
6994
7048
|
}
|
|
6995
7049
|
|
|
6996
7050
|
// src/radio/Radio.tsx
|
|
6997
|
-
var import_styles5 = __toESM(require("./styles.module-REEJNJNW.module.css"), 1);
|
|
6998
7051
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
6999
7052
|
var Radio = (0, import_react53.forwardRef)(
|
|
7000
7053
|
({ options, value, onChange, error, className = "", disabled = false, renderOption }, ref) => {
|
|
@@ -7023,8 +7076,8 @@ var Radio = (0, import_react53.forwardRef)(
|
|
|
7023
7076
|
{
|
|
7024
7077
|
className: cn(
|
|
7025
7078
|
"radio__wrapper",
|
|
7026
|
-
|
|
7027
|
-
(disabled || option.disabled) &&
|
|
7079
|
+
"flex cursor-pointer items-center gap-2",
|
|
7080
|
+
(disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
7028
7081
|
),
|
|
7029
7082
|
children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
7030
7083
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
@@ -7036,7 +7089,7 @@ var Radio = (0, import_react53.forwardRef)(
|
|
|
7036
7089
|
className: "radio__indicator"
|
|
7037
7090
|
}
|
|
7038
7091
|
),
|
|
7039
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className:
|
|
7092
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "radio_label", children: option.label })
|
|
7040
7093
|
] })
|
|
7041
7094
|
},
|
|
7042
7095
|
option.value
|
|
@@ -7136,7 +7189,6 @@ function RatingProgress({
|
|
|
7136
7189
|
|
|
7137
7190
|
// src/rating-radio-group/RatingRadioGroup.tsx
|
|
7138
7191
|
var import_lucide_react29 = require("lucide-react");
|
|
7139
|
-
var import_styles6 = __toESM(require("./styles.module-H7R2VV2Q.module.css"), 1);
|
|
7140
7192
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7141
7193
|
var getStarColor = (optionValue) => (value) => {
|
|
7142
7194
|
if (value >= optionValue) return "#facc15";
|
|
@@ -7150,13 +7202,13 @@ function RatingRadioGroup({
|
|
|
7150
7202
|
className,
|
|
7151
7203
|
options
|
|
7152
7204
|
}) {
|
|
7153
|
-
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("fieldset", { className: cn(
|
|
7154
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("legend", { className:
|
|
7155
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className:
|
|
7205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("fieldset", { className: cn("relative [all:unset]", className), children: [
|
|
7206
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("legend", { className: "mb-2", children: label }),
|
|
7207
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "RatingRadioGroup__list flex gap-2", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("label", { children: [
|
|
7156
7208
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7157
7209
|
"input",
|
|
7158
7210
|
{
|
|
7159
|
-
className:
|
|
7211
|
+
className: "peer absolute h-0 w-0 opacity-0",
|
|
7160
7212
|
type: "radio",
|
|
7161
7213
|
name,
|
|
7162
7214
|
checked: value === option.value,
|
|
@@ -7167,7 +7219,7 @@ function RatingRadioGroup({
|
|
|
7167
7219
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7168
7220
|
import_lucide_react29.Star,
|
|
7169
7221
|
{
|
|
7170
|
-
className:
|
|
7222
|
+
className: "cursor-pointer rounded peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-[#385bf8]",
|
|
7171
7223
|
size: 24,
|
|
7172
7224
|
"aria-label": option.label,
|
|
7173
7225
|
color: getStarColor(option.value)(value || 0),
|
|
@@ -7393,7 +7445,6 @@ var SubSectionSize = /* @__PURE__ */ ((SubSectionSize2) => {
|
|
|
7393
7445
|
})(SubSectionSize || {});
|
|
7394
7446
|
|
|
7395
7447
|
// src/section/Section.tsx
|
|
7396
|
-
var import_Section = __toESM(require("./Section.module-6UJGBE6B.module.css"), 1);
|
|
7397
7448
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
7398
7449
|
function TooltipInfo({ content, className }) {
|
|
7399
7450
|
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Tooltip, { side: "right", content, contentClassName: "max-w-64", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
@@ -7426,45 +7477,62 @@ var Section = (0, import_react54.forwardRef)(
|
|
|
7426
7477
|
{
|
|
7427
7478
|
ref,
|
|
7428
7479
|
className: cn(
|
|
7429
|
-
|
|
7430
|
-
loading &&
|
|
7431
|
-
disabled &&
|
|
7480
|
+
"mb-6 box-border flex w-full cursor-default flex-col gap-6 rounded-lg border border-solid border-[var(--chekin-color-gray-3)] bg-white px-6 py-10",
|
|
7481
|
+
loading && "cursor-progress",
|
|
7482
|
+
disabled && "pointer-events-none opacity-50",
|
|
7432
7483
|
{ "!hidden": hidden },
|
|
7433
7484
|
className
|
|
7434
7485
|
),
|
|
7435
7486
|
children: [
|
|
7436
|
-
(title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className:
|
|
7487
|
+
(title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
7437
7488
|
title && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
7438
7489
|
"div",
|
|
7439
7490
|
{
|
|
7440
7491
|
className: cn(
|
|
7441
|
-
|
|
7442
|
-
size
|
|
7492
|
+
"flex max-w-[85%] items-center text-lg font-bold text-[var(--chekin-color-brand-navy)] md:max-w-full",
|
|
7493
|
+
size !== 0 /* L */ && "subsection-title"
|
|
7443
7494
|
),
|
|
7444
7495
|
children: [
|
|
7445
7496
|
title,
|
|
7446
|
-
titleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7447
|
-
linkContent && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7497
|
+
titleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "ml-2.5", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TooltipInfo, { content: titleTooltip }) }),
|
|
7498
|
+
linkContent && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "ml-6 text-sm font-semibold text-[var(--chekin-color-brand-blue)] no-underline hover:opacity-70 active:opacity-100", children: linkContent })
|
|
7448
7499
|
]
|
|
7449
7500
|
}
|
|
7450
7501
|
),
|
|
7451
|
-
subtitle && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className:
|
|
7452
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7453
|
-
subtitleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7502
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "w-full max-w-[720px] md:max-w-full", children: [
|
|
7503
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "inline text-base font-normal text-[var(--chekin-color-gray-1)]", children: subtitle }),
|
|
7504
|
+
subtitleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "ml-1.5 inline-block align-text-top", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TooltipInfo, { content: subtitleTooltip }) })
|
|
7454
7505
|
] })
|
|
7455
7506
|
] }),
|
|
7456
|
-
loading && showLoader ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Loader, { className:
|
|
7507
|
+
loading && showLoader ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Loader, { className: "mx-auto mb-3 mt-2.5" }) : children
|
|
7457
7508
|
]
|
|
7458
7509
|
}
|
|
7459
7510
|
)
|
|
7460
7511
|
);
|
|
7461
7512
|
Section.displayName = "Section";
|
|
7462
7513
|
var SubSection = (0, import_react54.forwardRef)(
|
|
7463
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7514
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7515
|
+
Section,
|
|
7516
|
+
{
|
|
7517
|
+
ref,
|
|
7518
|
+
className: cn(
|
|
7519
|
+
"m-0 box-border rounded-none border-none bg-transparent p-0 [&_.subsection-title]:text-base [&_.subsection-title]:font-semibold",
|
|
7520
|
+
className
|
|
7521
|
+
),
|
|
7522
|
+
...props
|
|
7523
|
+
}
|
|
7524
|
+
)
|
|
7464
7525
|
);
|
|
7465
7526
|
SubSection.displayName = "SubSection";
|
|
7466
7527
|
var DividingSubsection = (0, import_react54.forwardRef)(
|
|
7467
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7528
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7529
|
+
SubSection,
|
|
7530
|
+
{
|
|
7531
|
+
ref,
|
|
7532
|
+
className: cn("border-0 border-t border-solid border-t-[#f1f1f1] pt-6", className),
|
|
7533
|
+
...props
|
|
7534
|
+
}
|
|
7535
|
+
)
|
|
7468
7536
|
);
|
|
7469
7537
|
DividingSubsection.displayName = "DividingSubsection";
|
|
7470
7538
|
|
|
@@ -7472,7 +7540,6 @@ DividingSubsection.displayName = "DividingSubsection";
|
|
|
7472
7540
|
var import_react55 = require("react");
|
|
7473
7541
|
|
|
7474
7542
|
// src/selector-button/SelectorButton.tsx
|
|
7475
|
-
var import_styles7 = __toESM(require("./styles.module-AAYSW4RF.module.css"), 1);
|
|
7476
7543
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
7477
7544
|
function SelectorButton({
|
|
7478
7545
|
active,
|
|
@@ -7501,12 +7568,15 @@ function SelectorButton({
|
|
|
7501
7568
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
7502
7569
|
"label",
|
|
7503
7570
|
{
|
|
7504
|
-
className: cn(
|
|
7505
|
-
[
|
|
7506
|
-
[
|
|
7507
|
-
[
|
|
7508
|
-
|
|
7509
|
-
|
|
7571
|
+
className: cn(
|
|
7572
|
+
"selector-button box-border flex h-12 min-w-[117px] cursor-pointer select-none items-center rounded-[6px] border border-[#cecede] bg-[#f2f2fa] px-4 text-left text-[15px] font-semibold text-[#9696b9] outline-none transition-all duration-75 ease-in-out hover:border-[var(--chekin-color-brand-blue)] active:opacity-100 [&_input]:absolute [&_input]:h-0 [&_input]:w-0 [&_input]:cursor-pointer [&_input]:opacity-0",
|
|
7573
|
+
active && "active border-[var(--chekin-color-brand-blue)] bg-white text-[var(--chekin-color-brand-blue)]",
|
|
7574
|
+
disabled && "disabled cursor-not-allowed opacity-30 hover:border-[#cecede]",
|
|
7575
|
+
loading && "loading cursor-progress",
|
|
7576
|
+
readOnly && "readOnly cursor-default",
|
|
7577
|
+
readOnly && !active && "hover:border-transparent",
|
|
7578
|
+
className
|
|
7579
|
+
),
|
|
7510
7580
|
...props,
|
|
7511
7581
|
children: [
|
|
7512
7582
|
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
@@ -7520,7 +7590,7 @@ function SelectorButton({
|
|
|
7520
7590
|
readOnly
|
|
7521
7591
|
}
|
|
7522
7592
|
),
|
|
7523
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className:
|
|
7593
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "flex h-full items-center", children })
|
|
7524
7594
|
]
|
|
7525
7595
|
}
|
|
7526
7596
|
);
|
|
@@ -7528,7 +7598,6 @@ function SelectorButton({
|
|
|
7528
7598
|
SelectorButton.displayName = "SelectorButton";
|
|
7529
7599
|
|
|
7530
7600
|
// src/selectors/Selectors.tsx
|
|
7531
|
-
var import_styles8 = __toESM(require("./styles.module-4AVOK5SA.module.css"), 1);
|
|
7532
7601
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
7533
7602
|
var getValueArray = (value) => {
|
|
7534
7603
|
if (value) {
|
|
@@ -7587,15 +7656,15 @@ function SelectorsInternal({
|
|
|
7587
7656
|
onAnySelectorActive?.(isAnyActive);
|
|
7588
7657
|
}, [isAnyActive, onAnySelectorActive]);
|
|
7589
7658
|
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
|
|
7590
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className:
|
|
7659
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "flex [&_span]:ml-[5px]", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "label box-border mb-1.5 min-h-5 select-none overflow-x-hidden text-ellipsis whitespace-nowrap text-left text-base font-normal text-[var(--chekin-color-brand-navy)]", children: label }) }),
|
|
7591
7660
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
7592
7661
|
"div",
|
|
7593
7662
|
{
|
|
7594
7663
|
ref,
|
|
7595
|
-
className: cn(
|
|
7596
|
-
[
|
|
7597
|
-
|
|
7598
|
-
|
|
7664
|
+
className: cn(
|
|
7665
|
+
variant === "TAB" ? "box-border flex h-auto max-h-none w-fit flex-wrap items-center rounded-md border border-[var(--chekin-color-gray-3)] bg-[var(--chekin-color-surface-input-empty)] bg-no-repeat [background-position:0_0] [background-clip:padding-box]" : "mb-[-10px] flex w-full flex-wrap [&_.selector-button]:mb-[10px] [&_.selector-button]:mr-[10px]",
|
|
7666
|
+
className
|
|
7667
|
+
),
|
|
7599
7668
|
children: options.map((option, index) => {
|
|
7600
7669
|
const isSelected = getValueArray(value).includes(option.value);
|
|
7601
7670
|
const isDisabled = disabled || disabledItems?.includes(option.value) || option.disabled;
|
|
@@ -7612,11 +7681,13 @@ function SelectorsInternal({
|
|
|
7612
7681
|
disabled: isDisabled,
|
|
7613
7682
|
onClick: (event) => onClick?.(event, option),
|
|
7614
7683
|
onChange: handleChange(option),
|
|
7615
|
-
className: variant === "TAB" ? cn(
|
|
7616
|
-
[
|
|
7617
|
-
[
|
|
7618
|
-
|
|
7619
|
-
|
|
7684
|
+
className: variant === "TAB" ? cn(
|
|
7685
|
+
"box-border min-h-9 min-w-0 flex-1 whitespace-nowrap border border-transparent bg-transparent px-[21px] py-2 text-[15px] font-medium text-[var(--chekin-color-gray-1)] shadow-none transition-none [margin:2px] hover:border-transparent hover:bg-[var(--chekin-color-brand-blue)] hover:text-white hover:opacity-35 [&>div]:mx-auto [&>div]:my-0",
|
|
7686
|
+
isSelected && "active cursor-default border-[var(--chekin-color-brand-blue)] bg-[var(--chekin-color-brand-blue)] font-semibold text-white shadow-[0_3px_4px_#00020334] hover:opacity-100",
|
|
7687
|
+
isReadOnly && !isSelected && "readOnly cursor-default hover:bg-transparent hover:text-[var(--chekin-color-gray-1)]",
|
|
7688
|
+
size === "sm" && "py-[7px] text-sm font-medium leading-6",
|
|
7689
|
+
size === "sm" && isSelected && "py-[7px] text-sm font-bold leading-6"
|
|
7690
|
+
) : "selector-button",
|
|
7620
7691
|
children: getSelectorContent(option.label, isDisabled, isReadOnly, isSelected)
|
|
7621
7692
|
},
|
|
7622
7693
|
`${option.value}-${index}`
|
|
@@ -7644,7 +7715,7 @@ function Separator3({
|
|
|
7644
7715
|
decorative,
|
|
7645
7716
|
orientation,
|
|
7646
7717
|
className: cn(
|
|
7647
|
-
"shrink-0 bg-chekin-gray-separator data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
7718
|
+
"shrink-0 bg-[var(--chekin-color-gray-separator)] data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
7648
7719
|
className
|
|
7649
7720
|
),
|
|
7650
7721
|
...props
|
|
@@ -7697,17 +7768,17 @@ function SheetContent({
|
|
|
7697
7768
|
{
|
|
7698
7769
|
"data-slot": "sheet-content",
|
|
7699
7770
|
className: cn(
|
|
7700
|
-
"fixed z-50 flex flex-col gap-4 bg-white text-chekin-navy shadow-lg transition ease-in-out data-[state=open]:duration-500 data-[state=closed]:duration-300",
|
|
7701
|
-
side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l border-chekin-gray-3 data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right sm:max-w-sm",
|
|
7702
|
-
side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r border-chekin-gray-3 data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left sm:max-w-sm",
|
|
7703
|
-
side === "top" && "inset-x-0 top-0 h-auto border-b border-chekin-gray-3 data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",
|
|
7704
|
-
side === "bottom" && "inset-x-0 bottom-0 h-auto border-t border-chekin-gray-3 data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom",
|
|
7771
|
+
"fixed z-50 flex flex-col gap-4 bg-white text-[var(--chekin-color-brand-navy)] shadow-lg transition ease-in-out data-[state=open]:duration-500 data-[state=closed]:duration-300",
|
|
7772
|
+
side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l border-[var(--chekin-color-gray-3)] data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right sm:max-w-sm",
|
|
7773
|
+
side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r border-[var(--chekin-color-gray-3)] data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left sm:max-w-sm",
|
|
7774
|
+
side === "top" && "inset-x-0 top-0 h-auto border-b border-[var(--chekin-color-gray-3)] data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",
|
|
7775
|
+
side === "bottom" && "inset-x-0 bottom-0 h-auto border-t border-[var(--chekin-color-gray-3)] data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom",
|
|
7705
7776
|
className
|
|
7706
7777
|
),
|
|
7707
7778
|
...props,
|
|
7708
7779
|
children: [
|
|
7709
7780
|
children,
|
|
7710
|
-
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-chekin-small opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-chekin-focus disabled:pointer-events-none", children: [
|
|
7781
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-[var(--chekin-radius-small)] opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-[var(--chekin-shadow-focus)] disabled:pointer-events-none", children: [
|
|
7711
7782
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_lucide_react35.XIcon, { className: "size-4" }),
|
|
7712
7783
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "sr-only", children: "Close" })
|
|
7713
7784
|
] })
|
|
@@ -7744,7 +7815,7 @@ function SheetTitle({
|
|
|
7744
7815
|
SheetPrimitive.Title,
|
|
7745
7816
|
{
|
|
7746
7817
|
"data-slot": "sheet-title",
|
|
7747
|
-
className: cn("font-semibold text-chekin-navy", className),
|
|
7818
|
+
className: cn("font-semibold text-[var(--chekin-color-brand-navy)]", className),
|
|
7748
7819
|
...props
|
|
7749
7820
|
}
|
|
7750
7821
|
);
|
|
@@ -7757,7 +7828,7 @@ function SheetDescription({
|
|
|
7757
7828
|
SheetPrimitive.Description,
|
|
7758
7829
|
{
|
|
7759
7830
|
"data-slot": "sheet-description",
|
|
7760
|
-
className: cn("text-sm text-chekin-gray-1", className),
|
|
7831
|
+
className: cn("text-sm text-[var(--chekin-color-gray-1)]", className),
|
|
7761
7832
|
...props
|
|
7762
7833
|
}
|
|
7763
7834
|
);
|
|
@@ -7815,9 +7886,9 @@ var SidebarIcon = ({
|
|
|
7815
7886
|
const highlighted = context?.highlighted ?? highlightedProp ?? false;
|
|
7816
7887
|
const backgroundClassName = (() => {
|
|
7817
7888
|
if (isActive) {
|
|
7818
|
-
return highlighted ? "bg-chekin-surface-autocomplete" : "bg-chekin-gray-3";
|
|
7889
|
+
return highlighted ? "bg-[var(--chekin-color-surface-autocomplete)]" : "bg-[var(--chekin-color-gray-3)]";
|
|
7819
7890
|
}
|
|
7820
|
-
return highlighted ? "bg-chekin-surface-pressed" : "bg-chekin-surface-input-empty";
|
|
7891
|
+
return highlighted ? "bg-[var(--chekin-color-surface-pressed)]" : "bg-[var(--chekin-color-surface-input-empty)]";
|
|
7821
7892
|
})();
|
|
7822
7893
|
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
7823
7894
|
"div",
|
|
@@ -7825,8 +7896,8 @@ var SidebarIcon = ({
|
|
|
7825
7896
|
className: cn(
|
|
7826
7897
|
"sidebar-icon flex items-center justify-center rounded-[50%] transition-colors ease-in-out",
|
|
7827
7898
|
backgroundClassName,
|
|
7828
|
-
highlighted ? "text-chekin-blue" : "text-chekin-gray-1",
|
|
7829
|
-
!isActive && (highlighted ? "group-hover/menu-button:bg-chekin-surface-autocomplete" : "group-hover/menu-button:bg-chekin-gray-3"),
|
|
7899
|
+
highlighted ? "text-[var(--chekin-color-brand-blue)]" : "text-[var(--chekin-color-gray-1)]",
|
|
7900
|
+
!isActive && (highlighted ? "group-hover/menu-button:bg-[var(--chekin-color-surface-autocomplete)]" : "group-hover/menu-button:bg-[var(--chekin-color-gray-3)]"),
|
|
7830
7901
|
{
|
|
7831
7902
|
"h-6 w-6 [&>svg]:h-4 [&>svg]:w-4": size === "M",
|
|
7832
7903
|
"h-8 w-8 [&>svg]:h-5 [&>svg]:w-5": size === "L"
|
|
@@ -7938,7 +8009,7 @@ var Sidebar = React25.forwardRef(
|
|
|
7938
8009
|
"div",
|
|
7939
8010
|
{
|
|
7940
8011
|
className: cn(
|
|
7941
|
-
"flex h-full w-[--sidebar-width] flex-col bg-chekin-surface-input-empty text-chekin-navy",
|
|
8012
|
+
"flex h-full w-[--sidebar-width] flex-col bg-[var(--chekin-color-surface-input-empty)] text-[var(--chekin-color-brand-navy)]",
|
|
7942
8013
|
className
|
|
7943
8014
|
),
|
|
7944
8015
|
ref,
|
|
@@ -7954,7 +8025,7 @@ var Sidebar = React25.forwardRef(
|
|
|
7954
8025
|
"data-sidebar": "sidebar",
|
|
7955
8026
|
"data-mobile": "true",
|
|
7956
8027
|
className: cn(
|
|
7957
|
-
"w-[--sidebar-width] bg-chekin-surface-input-empty p-0 text-chekin-navy [&>button]:hidden",
|
|
8028
|
+
"w-[--sidebar-width] bg-[var(--chekin-color-surface-input-empty)] p-0 text-[var(--chekin-color-brand-navy)] [&>button]:hidden",
|
|
7958
8029
|
className
|
|
7959
8030
|
),
|
|
7960
8031
|
style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
@@ -7974,7 +8045,7 @@ var Sidebar = React25.forwardRef(
|
|
|
7974
8045
|
{
|
|
7975
8046
|
ref,
|
|
7976
8047
|
"data-testid": "sidebar",
|
|
7977
|
-
className: "group peer text-chekin-navy",
|
|
8048
|
+
className: "group peer text-[var(--chekin-color-brand-navy)]",
|
|
7978
8049
|
"data-state": state,
|
|
7979
8050
|
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
7980
8051
|
"data-variant": variant,
|
|
@@ -8005,7 +8076,7 @@ var Sidebar = React25.forwardRef(
|
|
|
8005
8076
|
"div",
|
|
8006
8077
|
{
|
|
8007
8078
|
"data-sidebar": "sidebar",
|
|
8008
|
-
className: "flex h-full w-full flex-col bg-chekin-surface-input-empty group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow",
|
|
8079
|
+
className: "flex h-full w-full flex-col bg-[var(--chekin-color-surface-input-empty)] group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow",
|
|
8009
8080
|
children
|
|
8010
8081
|
}
|
|
8011
8082
|
)
|
|
@@ -8057,10 +8128,10 @@ var SidebarRail = React25.forwardRef(
|
|
|
8057
8128
|
onClick: toggleSidebar,
|
|
8058
8129
|
title: "Toggle Sidebar",
|
|
8059
8130
|
className: cn(
|
|
8060
|
-
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-chekin-gray-3 group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
8131
|
+
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-[var(--chekin-color-gray-3)] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
8061
8132
|
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
8062
8133
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
8063
|
-
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-chekin-surface-input-empty",
|
|
8134
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-[var(--chekin-color-surface-input-empty)]",
|
|
8064
8135
|
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2 [[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
8065
8136
|
className
|
|
8066
8137
|
),
|
|
@@ -8164,7 +8235,7 @@ var SidebarGroupLabel = React25.forwardRef(({ className, asChild = false, ...pro
|
|
|
8164
8235
|
ref,
|
|
8165
8236
|
"data-sidebar": "group-label",
|
|
8166
8237
|
className: cn(
|
|
8167
|
-
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-chekin-gray-1 outline-none transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
8238
|
+
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-[var(--chekin-color-gray-1)] outline-none transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
8168
8239
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
8169
8240
|
className
|
|
8170
8241
|
),
|
|
@@ -8181,7 +8252,7 @@ var SidebarGroupAction = React25.forwardRef(({ className, asChild = false, ...pr
|
|
|
8181
8252
|
ref,
|
|
8182
8253
|
"data-sidebar": "group-action",
|
|
8183
8254
|
className: cn(
|
|
8184
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-chekin-navy outline-none transition-transform hover:bg-chekin-gray-3 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0 after:absolute after:-inset-2 after:sm:hidden group-data-[collapsible=icon]:hidden",
|
|
8255
|
+
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-[var(--chekin-color-brand-navy)] outline-none transition-transform hover:bg-[var(--chekin-color-gray-3)] focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0 after:absolute after:-inset-2 after:sm:hidden group-data-[collapsible=icon]:hidden",
|
|
8185
8256
|
className
|
|
8186
8257
|
),
|
|
8187
8258
|
...props
|
|
@@ -8226,12 +8297,12 @@ var SidebarMenuItem = React25.forwardRef(
|
|
|
8226
8297
|
);
|
|
8227
8298
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
8228
8299
|
var sidebarMenuButtonVariants = (0, import_class_variance_authority11.cva)(
|
|
8229
|
-
"peer/menu-button group/menu-button relative flex min-h-[40px] w-full items-center gap-2 rounded-lg px-2 text-left text-md font-medium capitalize outline-none transition-[width,height,padding,color,background-color] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 [&>*:not(:first-child)]:truncate [&>*:nth-child(2)]:grow [&>svg]:size-4 [&>svg]:shrink-0 data-[active=false]:data-[highlighted=false]:bg-transparent data-[active=false]:data-[highlighted=false]:text-chekin-gray-1 data-[active=false]:data-[highlighted=false]:hover:bg-chekin-surface-input-empty data-[active=false]:data-[highlighted=true]:bg-transparent data-[active=false]:data-[highlighted=true]:hover:bg-chekin-surface-input-empty data-[active=true]:data-[highlighted=false]:bg-chekin-surface-pressed data-[active=true]:data-[highlighted=false]:font-semibold data-[active=true]:data-[highlighted=false]:text-chekin-gray-1 data-[active=true]:data-[highlighted=true]:bg-chekin-surface-pressed data-[active=true]:data-[highlighted=true]:font-semibold data-[active=true]:data-[highlighted=true]:text-chekin-blue",
|
|
8300
|
+
"peer/menu-button group/menu-button relative flex min-h-[40px] w-full items-center gap-2 rounded-lg px-2 text-left text-md font-medium capitalize outline-none transition-[width,height,padding,color,background-color] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 [&>*:not(:first-child)]:truncate [&>*:nth-child(2)]:grow [&>svg]:size-4 [&>svg]:shrink-0 data-[active=false]:data-[highlighted=false]:bg-transparent data-[active=false]:data-[highlighted=false]:text-[var(--chekin-color-gray-1)] data-[active=false]:data-[highlighted=false]:hover:bg-[var(--chekin-color-surface-input-empty)] data-[active=false]:data-[highlighted=true]:bg-transparent data-[active=false]:data-[highlighted=true]:hover:bg-[var(--chekin-color-surface-input-empty)] data-[active=true]:data-[highlighted=false]:bg-[var(--chekin-color-surface-pressed)] data-[active=true]:data-[highlighted=false]:font-semibold data-[active=true]:data-[highlighted=false]:text-[var(--chekin-color-gray-1)] data-[active=true]:data-[highlighted=true]:bg-[var(--chekin-color-surface-pressed)] data-[active=true]:data-[highlighted=true]:font-semibold data-[active=true]:data-[highlighted=true]:text-[var(--chekin-color-brand-blue)]",
|
|
8230
8301
|
{
|
|
8231
8302
|
variants: {
|
|
8232
8303
|
variant: {
|
|
8233
8304
|
default: "",
|
|
8234
|
-
outline: "bg-white shadow-[0_0_0_1px_rgba(22,22,67,0.12)] hover:bg-chekin-surface-input-empty"
|
|
8305
|
+
outline: "bg-white shadow-[0_0_0_1px_rgba(22,22,67,0.12)] hover:bg-[var(--chekin-color-surface-input-empty)]"
|
|
8235
8306
|
},
|
|
8236
8307
|
size: {
|
|
8237
8308
|
default: "h-8 text-md",
|
|
@@ -8299,7 +8370,7 @@ var SidebarMenuAction = React25.forwardRef(({ className, asChild = false, showOn
|
|
|
8299
8370
|
ref,
|
|
8300
8371
|
"data-sidebar": "menu-action",
|
|
8301
8372
|
className: cn(
|
|
8302
|
-
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-chekin-navy outline-none transition-transform hover:bg-chekin-gray-3 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0 after:absolute after:-inset-2 after:sm:hidden peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 group-data-[collapsible=icon]:hidden",
|
|
8373
|
+
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-[var(--chekin-color-brand-navy)] outline-none transition-transform hover:bg-[var(--chekin-color-gray-3)] focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0 after:absolute after:-inset-2 after:sm:hidden peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 group-data-[collapsible=icon]:hidden",
|
|
8303
8374
|
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 sm:opacity-0",
|
|
8304
8375
|
className
|
|
8305
8376
|
),
|
|
@@ -8319,7 +8390,7 @@ var SidebarMenuBadge = React25.forwardRef(
|
|
|
8319
8390
|
"data-sidebar": "menu-badge",
|
|
8320
8391
|
className: cn(
|
|
8321
8392
|
isOpen ? "left-auto right-1 h-5 min-w-5" : "absolute bottom-1/2 left-1/2 top-auto h-4 min-w-4",
|
|
8322
|
-
"pointer-events-none flex select-none items-center justify-center rounded-md px-1 text-xs font-medium leading-tight text-chekin-gray-1 tabular-nums peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5",
|
|
8393
|
+
"pointer-events-none flex select-none items-center justify-center rounded-md px-1 text-xs font-medium leading-tight text-[var(--chekin-color-gray-1)] tabular-nums peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5",
|
|
8323
8394
|
className
|
|
8324
8395
|
),
|
|
8325
8396
|
...props
|
|
@@ -8359,7 +8430,7 @@ var SidebarMenuSub = React25.forwardRef(
|
|
|
8359
8430
|
ref,
|
|
8360
8431
|
"data-sidebar": "menu-sub",
|
|
8361
8432
|
className: cn(
|
|
8362
|
-
"ml-6 mr-2 flex min-w-0 flex-col gap-0.5 border-l border-chekin-gray-3 py-1 pl-4 group-data-[collapsible=icon]:hidden",
|
|
8433
|
+
"ml-6 mr-2 flex min-w-0 flex-col gap-0.5 border-l border-[var(--chekin-color-gray-3)] py-1 pl-4 group-data-[collapsible=icon]:hidden",
|
|
8363
8434
|
className
|
|
8364
8435
|
),
|
|
8365
8436
|
...props
|
|
@@ -8372,12 +8443,12 @@ var SidebarMenuSubItem = React25.forwardRef(
|
|
|
8372
8443
|
);
|
|
8373
8444
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
8374
8445
|
var sidebarMenuSubButtonVariants = (0, import_class_variance_authority11.cva)(
|
|
8375
|
-
"flex min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-left text-chekin-gray-1 outline-none transition-colors duration-200 hover:bg-chekin-surface-input-empty hover:text-chekin-navy focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-chekin-surface-pressed data-[active=true]:font-medium data-[active=true]:text-chekin-navy group-data-[collapsible=icon]:hidden [&>span:nth-child(2)]:truncate [&>svg]:shrink-0",
|
|
8446
|
+
"flex min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-left text-[var(--chekin-color-gray-1)] outline-none transition-colors duration-200 hover:bg-[var(--chekin-color-surface-input-empty)] hover:text-[var(--chekin-color-brand-navy)] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-[var(--chekin-color-surface-pressed)] data-[active=true]:font-medium data-[active=true]:text-[var(--chekin-color-brand-navy)] group-data-[collapsible=icon]:hidden [&>span:nth-child(2)]:truncate [&>svg]:shrink-0",
|
|
8376
8447
|
{
|
|
8377
8448
|
variants: {
|
|
8378
8449
|
variant: {
|
|
8379
8450
|
default: "",
|
|
8380
|
-
outline: "bg-white shadow-[0_0_0_1px_rgba(22,22,67,0.12)] hover:bg-chekin-surface-input-empty"
|
|
8451
|
+
outline: "bg-white shadow-[0_0_0_1px_rgba(22,22,67,0.12)] hover:bg-[var(--chekin-color-surface-input-empty)]"
|
|
8381
8452
|
},
|
|
8382
8453
|
size: {
|
|
8383
8454
|
sm: "h-6 px-1.5 py-0.5 text-xs [&>svg]:size-3",
|
|
@@ -8541,7 +8612,7 @@ var SmallGridSingleItem = (0, import_react61.memo)(
|
|
|
8541
8612
|
onClick: handleClick,
|
|
8542
8613
|
className: cn(
|
|
8543
8614
|
"relative flex h-full w-full shrink-0 items-center justify-between gap-4",
|
|
8544
|
-
"box-border rounded-md px-5 py-4 text-left text-base font-semibold text-chekin-navy",
|
|
8615
|
+
"box-border rounded-md px-5 py-4 text-left text-base font-semibold text-[var(--chekin-color-brand-navy)]",
|
|
8545
8616
|
"shadow-[0_0_10px_rgba(111,194,255,0.2)]",
|
|
8546
8617
|
disabled && "cursor-not-allowed",
|
|
8547
8618
|
!disabled && onClick && "cursor-pointer",
|
|
@@ -8551,7 +8622,7 @@ var SmallGridSingleItem = (0, import_react61.memo)(
|
|
|
8551
8622
|
children: [
|
|
8552
8623
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { children: [
|
|
8553
8624
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "line-clamp-2 overflow-hidden text-ellipsis break-all", children: title }),
|
|
8554
|
-
subtitle && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "line-clamp-2 overflow-hidden text-ellipsis text-[15px] font-medium leading-6 text-chekin-gray-2", children: subtitle })
|
|
8625
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "line-clamp-2 overflow-hidden text-ellipsis text-[15px] font-medium leading-6 text-[var(--chekin-color-gray-2)]", children: subtitle })
|
|
8555
8626
|
] }),
|
|
8556
8627
|
!readOnly && /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex h-full items-center justify-end gap-2", children: [
|
|
8557
8628
|
onDelete && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
@@ -8561,12 +8632,12 @@ var SmallGridSingleItem = (0, import_react61.memo)(
|
|
|
8561
8632
|
onClick: onDelete,
|
|
8562
8633
|
size: "icon",
|
|
8563
8634
|
variant: "outline",
|
|
8564
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react37.Trash2, { className: "h-5 w-5 text-chekin-red" })
|
|
8635
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react37.Trash2, { className: "h-5 w-5 text-[var(--chekin-color-brand-red)]" })
|
|
8565
8636
|
}
|
|
8566
8637
|
),
|
|
8567
|
-
onEdit && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { disabled, onClick: onEdit, size: "icon", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react37.Pencil, { className: "h-5 w-5 text-chekin-blue" }) })
|
|
8638
|
+
onEdit && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { disabled, onClick: onEdit, size: "icon", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react37.Pencil, { className: "h-5 w-5 text-[var(--chekin-color-brand-blue)]" }) })
|
|
8568
8639
|
] }),
|
|
8569
|
-
error && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "absolute bottom-1 right-2 text-xs text-chekin-red", children: error })
|
|
8640
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "absolute bottom-1 right-2 text-xs text-[var(--chekin-color-brand-red)]", children: error })
|
|
8570
8641
|
]
|
|
8571
8642
|
}
|
|
8572
8643
|
);
|
|
@@ -8593,18 +8664,19 @@ function SortingAction({
|
|
|
8593
8664
|
{
|
|
8594
8665
|
type: "button",
|
|
8595
8666
|
className: cn(
|
|
8596
|
-
"group/trigger cursor-pointer rounded-sm p-0.5 hover:bg-chekin-surface-input-empty",
|
|
8667
|
+
"group/trigger cursor-pointer rounded-sm p-0.5 hover:bg-[var(--chekin-color-surface-input-empty)]",
|
|
8597
8668
|
className
|
|
8598
8669
|
),
|
|
8599
8670
|
"aria-label": "Open sorting menu",
|
|
8600
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_lucide_react38.ArrowDownUpIcon, { className: "h-4 w-4 text-chekin-gray-1 group-hover/trigger:text-chekin-navy" })
|
|
8671
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_lucide_react38.ArrowDownUpIcon, { className: "h-4 w-4 text-[var(--chekin-color-gray-1)] group-hover/trigger:text-[var(--chekin-color-brand-navy)]" })
|
|
8601
8672
|
}
|
|
8602
8673
|
) }),
|
|
8603
8674
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(DropdownMenuContent, { className: "w-full max-w-[256px]", align: "start", children: [
|
|
8604
8675
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
8605
8676
|
DropdownMenuItem,
|
|
8606
8677
|
{
|
|
8607
|
-
|
|
8678
|
+
active: value === "asc",
|
|
8679
|
+
className: cn(value === "asc" && "text-[var(--chekin-color-brand-blue)]"),
|
|
8608
8680
|
onClick: () => onSortChange?.("asc"),
|
|
8609
8681
|
children: [
|
|
8610
8682
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_lucide_react38.ArrowUp, { className: "h-4 w-4" }),
|
|
@@ -8615,7 +8687,8 @@ function SortingAction({
|
|
|
8615
8687
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
8616
8688
|
DropdownMenuItem,
|
|
8617
8689
|
{
|
|
8618
|
-
|
|
8690
|
+
active: value === "desc",
|
|
8691
|
+
className: cn(value === "desc" && "text-[var(--chekin-color-brand-blue)]"),
|
|
8619
8692
|
onClick: () => onSortChange?.("desc"),
|
|
8620
8693
|
children: [
|
|
8621
8694
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_lucide_react38.ArrowDown, { className: "h-4 w-4" }),
|
|
@@ -8763,8 +8836,8 @@ function Stepper({
|
|
|
8763
8836
|
"span",
|
|
8764
8837
|
{
|
|
8765
8838
|
className: cn(
|
|
8766
|
-
"h-1.5 min-h-px min-w-px flex-1 rounded-[1000px] bg-chekin-gray-3",
|
|
8767
|
-
isActive && "bg-chekin-blue"
|
|
8839
|
+
"h-1.5 min-h-px min-w-px flex-1 rounded-[1000px] bg-[var(--chekin-color-gray-3)]",
|
|
8840
|
+
isActive && "bg-[var(--chekin-color-brand-blue)]"
|
|
8768
8841
|
)
|
|
8769
8842
|
},
|
|
8770
8843
|
stepNumber
|
|
@@ -8822,7 +8895,7 @@ var SwitchGroup = React27.forwardRef(
|
|
|
8822
8895
|
Label,
|
|
8823
8896
|
{
|
|
8824
8897
|
className: cn(
|
|
8825
|
-
"text-md cursor-pointer font-medium text-chekin-navy",
|
|
8898
|
+
"text-md cursor-pointer font-medium text-[var(--chekin-color-brand-navy)]",
|
|
8826
8899
|
(disabled || option.disabled) && "opacity-50"
|
|
8827
8900
|
),
|
|
8828
8901
|
children: [
|
|
@@ -8831,7 +8904,7 @@ var SwitchGroup = React27.forwardRef(
|
|
|
8831
8904
|
"span",
|
|
8832
8905
|
{
|
|
8833
8906
|
className: cn(
|
|
8834
|
-
"mt-1 block text-sm font-normal text-chekin-gray-1",
|
|
8907
|
+
"mt-1 block text-sm font-normal text-[var(--chekin-color-gray-1)]",
|
|
8835
8908
|
(disabled || option.disabled) && "opacity-50"
|
|
8836
8909
|
),
|
|
8837
8910
|
children: [
|
|
@@ -8869,8 +8942,8 @@ var Tabs = TabsPrimitive2.Root;
|
|
|
8869
8942
|
var tabsListVariants = (0, import_class_variance_authority12.cva)("inline-flex items-center", {
|
|
8870
8943
|
variants: {
|
|
8871
8944
|
variant: {
|
|
8872
|
-
default: "h-10 justify-center rounded-md bg-chekin-surface-input-empty p-1 text-chekin-gray-1",
|
|
8873
|
-
underlined: "gap-6 border-b border-chekin-gray-3"
|
|
8945
|
+
default: "h-10 justify-center rounded-md bg-[var(--chekin-color-surface-input-empty)] p-1 text-[var(--chekin-color-gray-1)]",
|
|
8946
|
+
underlined: "gap-6 border-b border-[var(--chekin-color-gray-3)]"
|
|
8874
8947
|
}
|
|
8875
8948
|
},
|
|
8876
8949
|
defaultVariants: {
|
|
@@ -8893,8 +8966,8 @@ var tabsTriggerVariants = (0, import_class_variance_authority12.cva)(
|
|
|
8893
8966
|
{
|
|
8894
8967
|
variants: {
|
|
8895
8968
|
variant: {
|
|
8896
|
-
default: "rounded-sm px-3 py-1.5 text-sm font-medium focus-visible:shadow-chekin-focus data-[state=active]:bg-white data-[state=active]:text-chekin-navy data-[state=active]:shadow-sm",
|
|
8897
|
-
underlined: "-mb-px border-b-[3px] border-transparent py-2 text-base font-medium text-chekin-gray-1 data-[state=active]:border-chekin-blue data-[state=active]:font-semibold data-[state=active]:text-chekin-blue"
|
|
8969
|
+
default: "rounded-sm px-3 py-1.5 text-sm font-medium focus-visible:shadow-[var(--chekin-shadow-focus)] data-[state=active]:bg-[var(--chekin-color-white)] data-[state=active]:text-[var(--chekin-color-brand-navy)] data-[state=active]:shadow-sm",
|
|
8970
|
+
underlined: "-mb-px border-b-[3px] border-transparent py-2 text-base font-medium text-[var(--chekin-color-gray-1)] data-[state=active]:border-[var(--chekin-color-brand-blue)] data-[state=active]:font-semibold data-[state=active]:text-[var(--chekin-color-brand-blue)]"
|
|
8898
8971
|
}
|
|
8899
8972
|
},
|
|
8900
8973
|
defaultVariants: {
|
|
@@ -8929,12 +9002,12 @@ function TabbedSection({
|
|
|
8929
9002
|
const contentContainerClassName = variant === "material" ? cn(
|
|
8930
9003
|
"border-0 bg-transparent p-0 pt-6 shadow-none",
|
|
8931
9004
|
"[&>div:first-child]:flex [&>div:first-child]:flex-col",
|
|
8932
|
-
"[&>div:first-child]:gap-
|
|
9005
|
+
"[&>div:first-child]:gap-3",
|
|
8933
9006
|
className
|
|
8934
9007
|
) : cn(
|
|
8935
|
-
"rounded-b-md border border-t-0 border-chekin-gray-3 bg-white p-6 shadow-none",
|
|
9008
|
+
"rounded-b-md border border-t-0 border-[var(--chekin-color-gray-3)] bg-[var(--chekin-color-white)] p-6 shadow-none",
|
|
8936
9009
|
"[&>div:first-child]:flex [&>div:first-child]:flex-col",
|
|
8937
|
-
"[&>div:first-child]:gap-
|
|
9010
|
+
"[&>div:first-child]:gap-3",
|
|
8938
9011
|
className
|
|
8939
9012
|
);
|
|
8940
9013
|
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(Tabs, { value: activeTab, onValueChange: onTabChange, className: "w-full", children: [
|
|
@@ -8978,7 +9051,6 @@ function TablePlaceholder({
|
|
|
8978
9051
|
|
|
8979
9052
|
// src/task-card/TaskCard.tsx
|
|
8980
9053
|
var import_lucide_react41 = require("lucide-react");
|
|
8981
|
-
var import_TaskCard = __toESM(require("./TaskCard.module-AVGS4US3.module.css"), 1);
|
|
8982
9054
|
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
8983
9055
|
function TaskCard({
|
|
8984
9056
|
title,
|
|
@@ -8994,27 +9066,40 @@ function TaskCard({
|
|
|
8994
9066
|
"div",
|
|
8995
9067
|
{
|
|
8996
9068
|
className: cn(
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9069
|
+
"relative box-border flex min-h-[48px] min-w-[360px] items-center gap-4 overflow-hidden rounded-lg p-2 transition-colors duration-200",
|
|
9070
|
+
eventType === "error" && "bg-red-50",
|
|
9071
|
+
eventType === "warning" && "bg-amber-50",
|
|
9072
|
+
onClick && 'group cursor-pointer before:pointer-events-none before:absolute before:inset-0 before:rounded-lg before:content-[""]',
|
|
9073
|
+
onClick && eventType === "error" && "hover:before:bg-red-100 hover:before:mix-blend-multiply",
|
|
9074
|
+
onClick && eventType === "warning" && "hover:before:bg-amber-100 hover:before:mix-blend-multiply",
|
|
9000
9075
|
className
|
|
9001
9076
|
),
|
|
9002
9077
|
onClick,
|
|
9003
9078
|
role: onClick ? "button" : void 0,
|
|
9004
9079
|
tabIndex: onClick ? 0 : void 0,
|
|
9005
9080
|
children: [
|
|
9006
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9081
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9082
|
+
"div",
|
|
9083
|
+
{
|
|
9084
|
+
className: cn(
|
|
9085
|
+
"relative w-1 shrink-0 self-stretch rounded-sm",
|
|
9086
|
+
eventType === "error" && "bg-[var(--chekin-color-brand-red)]",
|
|
9087
|
+
eventType === "warning" && "bg-amber-500"
|
|
9088
|
+
)
|
|
9089
|
+
}
|
|
9090
|
+
),
|
|
9091
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col items-start", children: [
|
|
9092
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("h4", { className: "m-0 w-full break-words text-base font-semibold leading-6 text-[var(--chekin-color-brand-navy)]", children: title }),
|
|
9093
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("p", { className: "m-0 w-full text-sm font-medium leading-6 text-[var(--chekin-color-gray-1)]", children: description })
|
|
9010
9094
|
] }),
|
|
9011
|
-
shouldShowActions && /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className:
|
|
9095
|
+
shouldShowActions && /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
9012
9096
|
shouldShowCount && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9013
9097
|
"div",
|
|
9014
9098
|
{
|
|
9015
9099
|
className: cn(
|
|
9016
|
-
|
|
9017
|
-
|
|
9100
|
+
'relative flex h-6 w-6 items-center justify-center rounded-full text-center text-sm font-semibold leading-6 before:absolute before:inset-0 before:rounded-full before:mix-blend-multiply before:content-[""]',
|
|
9101
|
+
eventType === "error" && "text-[var(--chekin-color-brand-red)] before:bg-red-100",
|
|
9102
|
+
eventType === "warning" && "text-amber-700 before:bg-amber-100"
|
|
9018
9103
|
),
|
|
9019
9104
|
children: count
|
|
9020
9105
|
}
|
|
@@ -9022,7 +9107,7 @@ function TaskCard({
|
|
|
9022
9107
|
onClick && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9023
9108
|
"button",
|
|
9024
9109
|
{
|
|
9025
|
-
className:
|
|
9110
|
+
className: "flex h-8 w-0 min-w-0 cursor-pointer items-center justify-center overflow-hidden rounded-md border-0 bg-transparent p-0 text-[var(--chekin-color-gray-1)] opacity-0 transition-[width,opacity,min-width] duration-300 ease-in-out hover:bg-black/5 focus-visible:w-8 focus-visible:min-w-8 focus-visible:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--chekin-color-brand-blue)] group-hover:w-8 group-hover:min-w-8 group-hover:opacity-100",
|
|
9026
9111
|
onClick: (event) => {
|
|
9027
9112
|
event.stopPropagation();
|
|
9028
9113
|
onClick?.();
|
|
@@ -9090,12 +9175,12 @@ var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
|
|
|
9090
9175
|
// src/toggle-group/style.ts
|
|
9091
9176
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
9092
9177
|
var toggleVariants = (0, import_class_variance_authority13.cva)(
|
|
9093
|
-
"inline-flex select-none items-center justify-center rounded-md text-sm font-medium transition-all duration-75 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-chekin-blue focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9178
|
+
"inline-flex select-none items-center justify-center rounded-md text-sm font-medium transition-all duration-75 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--chekin-color-brand-blue)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9094
9179
|
{
|
|
9095
9180
|
variants: {
|
|
9096
9181
|
variant: {
|
|
9097
|
-
default: "border border-chekin-gray-3 bg-chekin-surface-input-empty font-semibold text-chekin-gray-1 hover:border-chekin-blue data-[state=on]:border-chekin-blue data-[state=on]:bg-white data-[state=on]:text-chekin-blue",
|
|
9098
|
-
tab: "border border-transparent bg-transparent font-medium text-chekin-gray-1 hover:bg-chekin-blue hover:text-white hover:opacity-35 data-[state=on]:cursor-default data-[state=on]:border-chekin-blue data-[state=on]:bg-chekin-blue data-[state=on]:font-semibold data-[state=on]:text-white data-[state=on]:shadow-[0px_3px_4px_0px_rgba(1,2,3,0.10)] data-[state=on]:hover:opacity-100"
|
|
9182
|
+
default: "border border-[var(--chekin-color-gray-3)] bg-[var(--chekin-color-surface-input-empty)] font-semibold text-[var(--chekin-color-gray-1)] hover:border-[var(--chekin-color-brand-blue)] data-[state=on]:border-[var(--chekin-color-brand-blue)] data-[state=on]:bg-[var(--chekin-color-white)] data-[state=on]:text-[var(--chekin-color-brand-blue)]",
|
|
9183
|
+
tab: "border border-transparent bg-transparent font-medium text-[var(--chekin-color-gray-1)] hover:bg-[var(--chekin-color-brand-blue)] hover:text-[var(--chekin-color-white)] hover:opacity-35 data-[state=on]:cursor-default data-[state=on]:border-[var(--chekin-color-brand-blue)] data-[state=on]:bg-[var(--chekin-color-brand-blue)] data-[state=on]:font-semibold data-[state=on]:text-[var(--chekin-color-white)] data-[state=on]:shadow-[0px_3px_4px_0px_rgba(1,2,3,0.10)] data-[state=on]:hover:opacity-100"
|
|
9099
9184
|
},
|
|
9100
9185
|
size: {
|
|
9101
9186
|
default: "h-12 min-w-[117px] px-4 text-[15px]",
|
|
@@ -9105,7 +9190,7 @@ var toggleVariants = (0, import_class_variance_authority13.cva)(
|
|
|
9105
9190
|
},
|
|
9106
9191
|
theme: {
|
|
9107
9192
|
default: "",
|
|
9108
|
-
"sky-blue": "data-[state=on]:bg-chekin-surface-autocomplete data-[state=off]:hover:border-transparent data-[state=off]:hover:bg-chekin-surface-input-empty"
|
|
9193
|
+
"sky-blue": "data-[state=on]:bg-[var(--chekin-color-surface-autocomplete)] data-[state=off]:hover:border-transparent data-[state=off]:hover:bg-[var(--chekin-color-surface-input-empty)]"
|
|
9109
9194
|
}
|
|
9110
9195
|
},
|
|
9111
9196
|
defaultVariants: {
|
|
@@ -9131,7 +9216,7 @@ var ToggleGroup = React28.forwardRef(({ className, variant, size, theme, childre
|
|
|
9131
9216
|
ref,
|
|
9132
9217
|
className: cn(
|
|
9133
9218
|
"flex items-center justify-center",
|
|
9134
|
-
isTabVariant ? "h-auto max-h-none w-fit flex-wrap gap-[2px] rounded-md border border-chekin-gray-3 bg-chekin-surface-input-empty p-[2px]" : "w-full flex-wrap gap-[10px]",
|
|
9219
|
+
isTabVariant ? "h-auto max-h-none w-fit flex-wrap gap-[2px] rounded-md border border-[var(--chekin-color-gray-3)] bg-[var(--chekin-color-surface-input-empty)] p-[2px]" : "w-full flex-wrap gap-[10px]",
|
|
9135
9220
|
className
|
|
9136
9221
|
),
|
|
9137
9222
|
...props,
|
|
@@ -9254,7 +9339,7 @@ function TogglesInternal({
|
|
|
9254
9339
|
...multiple ? { type: "multiple", value: currentValue } : { type: "single", value: currentValue[0] ?? "" }
|
|
9255
9340
|
};
|
|
9256
9341
|
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { ref, className, children: [
|
|
9257
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "select-none text-base font-normal text-chekin-navy", children: label }) }),
|
|
9342
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "mb-2", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "select-none text-base font-normal text-[var(--chekin-color-brand-navy)]", children: label }) }),
|
|
9258
9343
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(ToggleGroup, { className: groupClassName, ...toggleGroupProps, children: options.map((option, index) => {
|
|
9259
9344
|
const isSelected = getValueArray2(value).includes(option.value);
|
|
9260
9345
|
const isDisabled = disabled || disabledItems?.includes(option.value) || option.disabled;
|
|
@@ -9287,15 +9372,39 @@ var EndIcon = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("
|
|
|
9287
9372
|
|
|
9288
9373
|
// src/text-field/FieldError.tsx
|
|
9289
9374
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
9290
|
-
var FieldError = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
9375
|
+
var FieldError = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
9376
|
+
"p",
|
|
9377
|
+
{
|
|
9378
|
+
id,
|
|
9379
|
+
className: "mt-1 text-right text-xs font-medium text-[var(--chekin-color-brand-red)]",
|
|
9380
|
+
role: "alert",
|
|
9381
|
+
children
|
|
9382
|
+
}
|
|
9383
|
+
);
|
|
9291
9384
|
|
|
9292
9385
|
// src/text-field/SupportingText.tsx
|
|
9293
9386
|
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
9294
|
-
var SupportingText = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { id, className: "mt-1 text-xs italic text-chekin-gray-2", children });
|
|
9387
|
+
var SupportingText = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { id, className: "mt-1 text-xs italic text-[var(--chekin-color-gray-2)]", children });
|
|
9295
9388
|
|
|
9296
9389
|
// src/text-field/TextField.tsx
|
|
9297
|
-
var import_textField = __toESM(require("./textField.module-5W2LJGIC.module.css"), 1);
|
|
9298
9390
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
9391
|
+
var textFieldRootClasses = [
|
|
9392
|
+
"[--text-field-height:2.75rem]",
|
|
9393
|
+
"[--text-field-radius:8px]",
|
|
9394
|
+
"[--text-field-padding-x:0.875rem]",
|
|
9395
|
+
"[--text-field-padding-y:0.625rem]",
|
|
9396
|
+
"[--text-field-bg-empty:#f4f6f8]",
|
|
9397
|
+
"[--text-field-bg-filled:#ffffff]",
|
|
9398
|
+
"[--text-field-border-empty:rgba(22,22,67,0.2)]",
|
|
9399
|
+
"[--text-field-border-filled:#161643]",
|
|
9400
|
+
"[--text-field-border-error:#ff2467]",
|
|
9401
|
+
"[--text-field-text:#161643]",
|
|
9402
|
+
"[--text-field-placeholder:#6b6b95]",
|
|
9403
|
+
"[--text-field-label:#161643]",
|
|
9404
|
+
"[--text-field-supporting:#9696b9]",
|
|
9405
|
+
"[--text-field-error:#ff2467]",
|
|
9406
|
+
"[--text-field-focus-ring:rgba(56,91,248,0.2)]"
|
|
9407
|
+
];
|
|
9299
9408
|
var inputVariants = (0, import_class_variance_authority14.cva)(
|
|
9300
9409
|
[
|
|
9301
9410
|
"flex w-full border text-base font-medium leading-5 outline-none transition-colors",
|
|
@@ -9402,7 +9511,11 @@ var TextField = React29.forwardRef(
|
|
|
9402
9511
|
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
9403
9512
|
"div",
|
|
9404
9513
|
{
|
|
9405
|
-
className: cn(
|
|
9514
|
+
className: cn(
|
|
9515
|
+
"relative flex w-full flex-col",
|
|
9516
|
+
textFieldRootClasses,
|
|
9517
|
+
wrapperClassName
|
|
9518
|
+
),
|
|
9406
9519
|
children: [
|
|
9407
9520
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "relative", children: [
|
|
9408
9521
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
@@ -9441,7 +9554,7 @@ var TextField = React29.forwardRef(
|
|
|
9441
9554
|
}
|
|
9442
9555
|
);
|
|
9443
9556
|
}
|
|
9444
|
-
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("flex w-full flex-col",
|
|
9557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("flex w-full flex-col", textFieldRootClasses, wrapperClassName), children: [
|
|
9445
9558
|
label && /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "mb-1 flex items-center gap-1", children: [
|
|
9446
9559
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9447
9560
|
LabelPrimitive2.Root,
|
|
@@ -9452,8 +9565,8 @@ var TextField = React29.forwardRef(
|
|
|
9452
9565
|
}
|
|
9453
9566
|
),
|
|
9454
9567
|
optional && /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("span", { className: "text-base leading-4", children: [
|
|
9455
|
-
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-chekin-navy", children: "- " }),
|
|
9456
|
-
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "italic text-chekin-gray-2", children: optionalLabel || t("optional") })
|
|
9568
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-[var(--chekin-color-brand-navy)]", children: "- " }),
|
|
9569
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "italic text-[var(--chekin-color-gray-2)]", children: optionalLabel || t("optional") })
|
|
9457
9570
|
] }),
|
|
9458
9571
|
tooltip
|
|
9459
9572
|
] }),
|
|
@@ -9483,12 +9596,11 @@ TextField.displayName = "TextField";
|
|
|
9483
9596
|
|
|
9484
9597
|
// src/textarea/Textarea.tsx
|
|
9485
9598
|
var import_react67 = require("react");
|
|
9486
|
-
var import_styles9 = __toESM(require("./styles.module-6FWQEZTQ.module.css"), 1);
|
|
9487
9599
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
9488
9600
|
var Textarea = (0, import_react67.forwardRef)(
|
|
9489
9601
|
({ className, textareaClassName, label, disabled, name, invalid, ...textareaProps }, ref) => {
|
|
9490
9602
|
const inputId = (0, import_react67.useId)();
|
|
9491
|
-
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: cn(
|
|
9603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: cn("relative", className), children: [
|
|
9492
9604
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
9493
9605
|
"textarea",
|
|
9494
9606
|
{
|
|
@@ -9496,10 +9608,12 @@ var Textarea = (0, import_react67.forwardRef)(
|
|
|
9496
9608
|
id: inputId,
|
|
9497
9609
|
name,
|
|
9498
9610
|
disabled,
|
|
9499
|
-
className: cn(
|
|
9500
|
-
[
|
|
9501
|
-
[
|
|
9502
|
-
|
|
9611
|
+
className: cn(
|
|
9612
|
+
"peer box-border min-h-[120px] w-full resize-none rounded-lg border border-[#cecede] bg-[#f4f6f8] px-4 py-3 text-[#161643] outline-none [scrollbar-color:#777e91_transparent] [scrollbar-gutter:stable] placeholder:text-[#6b6b95] placeholder:opacity-100 focus:border-[#385bf8] focus:bg-white focus:transition-colors focus:duration-100 focus:ease-in-out [&:not(:placeholder-shown)]:bg-white",
|
|
9613
|
+
invalid && "border-[#ff2467] focus:border-[#ff2467]",
|
|
9614
|
+
disabled && "cursor-not-allowed resize-none border-[#9696b9] bg-[#f4f6f8] text-[#9696b9] placeholder:text-[#9696b9]",
|
|
9615
|
+
textareaClassName
|
|
9616
|
+
),
|
|
9503
9617
|
...textareaProps
|
|
9504
9618
|
}
|
|
9505
9619
|
),
|
|
@@ -9507,10 +9621,11 @@ var Textarea = (0, import_react67.forwardRef)(
|
|
|
9507
9621
|
"label",
|
|
9508
9622
|
{
|
|
9509
9623
|
htmlFor: inputId,
|
|
9510
|
-
className: cn(
|
|
9511
|
-
[
|
|
9512
|
-
[
|
|
9513
|
-
|
|
9624
|
+
className: cn(
|
|
9625
|
+
"pointer-events-none absolute left-3 top-4 px-1 text-[#6b6b95] transition-all duration-100 ease-in-out peer-focus:left-2 peer-focus:top-[-0.6rem] peer-focus:bg-white peer-focus:text-sm peer-focus:font-medium peer-focus:text-[#385bf8] peer-[:not(:placeholder-shown)]:left-2 peer-[:not(:placeholder-shown)]:top-[-0.6rem] peer-[:not(:placeholder-shown)]:bg-white peer-[:not(:placeholder-shown)]:text-sm peer-[:not(:placeholder-shown)]:font-medium",
|
|
9626
|
+
invalid && "text-[#ff2467] peer-focus:text-[#ff2467]",
|
|
9627
|
+
disabled && "text-[#9696b9]"
|
|
9628
|
+
),
|
|
9514
9629
|
children: label
|
|
9515
9630
|
}
|
|
9516
9631
|
)
|
|
@@ -9527,18 +9642,43 @@ var LABEL_PLACEMENT = /* @__PURE__ */ ((LABEL_PLACEMENT2) => {
|
|
|
9527
9642
|
})(LABEL_PLACEMENT || {});
|
|
9528
9643
|
|
|
9529
9644
|
// src/three-dots-loader/ThreeDotsLoader.tsx
|
|
9530
|
-
var import_styles10 = __toESM(require("./styles.module-Y6YCV6UA.module.css"), 1);
|
|
9531
9645
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
9532
9646
|
function Dots({
|
|
9533
9647
|
height,
|
|
9534
9648
|
width,
|
|
9535
9649
|
color
|
|
9536
9650
|
}) {
|
|
9537
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
9652
|
+
"span",
|
|
9653
|
+
{
|
|
9654
|
+
className: "inline-flex items-center justify-center gap-[15%]",
|
|
9655
|
+
style: { height, width },
|
|
9656
|
+
"aria-hidden": "true",
|
|
9657
|
+
children: [
|
|
9658
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9659
|
+
"span",
|
|
9660
|
+
{
|
|
9661
|
+
className: "h-[22%] w-[22%] animate-chekin-three-dots rounded-full [animation-delay:-0.32s]",
|
|
9662
|
+
style: { backgroundColor: color }
|
|
9663
|
+
}
|
|
9664
|
+
),
|
|
9665
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9666
|
+
"span",
|
|
9667
|
+
{
|
|
9668
|
+
className: "h-[22%] w-[22%] animate-chekin-three-dots rounded-full [animation-delay:-0.16s]",
|
|
9669
|
+
style: { backgroundColor: color }
|
|
9670
|
+
}
|
|
9671
|
+
),
|
|
9672
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9673
|
+
"span",
|
|
9674
|
+
{
|
|
9675
|
+
className: "h-[22%] w-[22%] animate-chekin-three-dots rounded-full",
|
|
9676
|
+
style: { backgroundColor: color }
|
|
9677
|
+
}
|
|
9678
|
+
)
|
|
9679
|
+
]
|
|
9680
|
+
}
|
|
9681
|
+
);
|
|
9542
9682
|
}
|
|
9543
9683
|
function ThreeDotsLoader({
|
|
9544
9684
|
height = 30,
|
|
@@ -9550,13 +9690,22 @@ function ThreeDotsLoader({
|
|
|
9550
9690
|
}) {
|
|
9551
9691
|
const dots = /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Dots, { color, height, width });
|
|
9552
9692
|
if (label) {
|
|
9553
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9694
|
+
"div",
|
|
9695
|
+
{
|
|
9696
|
+
className: cn(
|
|
9697
|
+
"flex items-center justify-center gap-x-[13px] [&>div]:text-sm [&>div]:font-bold [&>div]:uppercase [&>div]:text-[#9696b9] [&>div]:opacity-50",
|
|
9698
|
+
className
|
|
9699
|
+
),
|
|
9700
|
+
children: labelPlacement === 0 /* right */ ? /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
|
|
9701
|
+
dots,
|
|
9702
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { children: label })
|
|
9703
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
|
|
9704
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { children: label }),
|
|
9705
|
+
dots
|
|
9706
|
+
] })
|
|
9707
|
+
}
|
|
9708
|
+
);
|
|
9560
9709
|
}
|
|
9561
9710
|
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className, children: dots });
|
|
9562
9711
|
}
|
|
@@ -9575,15 +9724,15 @@ function UploadedFilesList({
|
|
|
9575
9724
|
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", { className: cn("flex flex-wrap gap-2.5", className), children: files.map((file, index) => /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
9576
9725
|
"div",
|
|
9577
9726
|
{
|
|
9578
|
-
className: "flex cursor-default items-center gap-2 rounded border border-chekin-gray-2 bg-chekin-surface-pressed py-1.5 pl-3 pr-1.5",
|
|
9727
|
+
className: "flex cursor-default items-center gap-2 rounded border border-[var(--chekin-color-gray-2)] bg-[var(--chekin-color-surface-pressed)] py-1.5 pl-3 pr-1.5",
|
|
9579
9728
|
children: [
|
|
9580
|
-
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { className: "text-nowrap text-sm font-medium leading-5 text-chekin-navy", children: file.name }),
|
|
9729
|
+
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)("span", { className: "text-nowrap text-sm font-medium leading-5 text-[var(--chekin-color-brand-navy)]", children: file.name }),
|
|
9581
9730
|
/* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
9582
9731
|
"button",
|
|
9583
9732
|
{
|
|
9584
9733
|
type: "button",
|
|
9585
9734
|
onClick: () => onRemoveFile(file.name),
|
|
9586
|
-
className: "flex h-[18px] w-[18px] shrink-0 cursor-pointer items-center justify-center rounded bg-chekin-gray-1 transition-all hover:shadow-md active:opacity-95",
|
|
9735
|
+
className: "flex h-[18px] w-[18px] shrink-0 cursor-pointer items-center justify-center rounded bg-[var(--chekin-color-gray-1)] transition-all hover:shadow-md active:opacity-95",
|
|
9587
9736
|
"aria-label": `Remove ${file.name}`,
|
|
9588
9737
|
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_lucide_react42.X, { className: "h-3.5 w-3.5 text-white", strokeWidth: 3 })
|
|
9589
9738
|
}
|
|
@@ -9602,7 +9751,7 @@ function WideButton({ className, disabled, ...props }) {
|
|
|
9602
9751
|
{
|
|
9603
9752
|
variant: "ghost",
|
|
9604
9753
|
className: cn(
|
|
9605
|
-
"min-h-[84px] w-full max-w-[712px] flex-row justify-center bg-chekin-surface-pressed shadow-none",
|
|
9754
|
+
"min-h-[84px] w-full max-w-[712px] flex-row justify-center bg-[var(--chekin-color-surface-pressed)] shadow-none",
|
|
9606
9755
|
"transition-all duration-[70ms] ease-in-out hover:opacity-70",
|
|
9607
9756
|
disabled && "opacity-10",
|
|
9608
9757
|
className
|