@chekinapp/ui 0.0.35 → 0.0.37
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 +347 -285
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +347 -285
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/dist/index.css +0 -940
- package/dist/index.css.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -356,9 +356,6 @@ function cn(...inputs) {
|
|
|
356
356
|
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
// src/accordion/Accordion.module.css
|
|
360
|
-
var Accordion_default = {};
|
|
361
|
-
|
|
362
359
|
// src/accordion/Accordion.tsx
|
|
363
360
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
364
361
|
var Accordion = AccordionPrimitive.Root;
|
|
@@ -366,7 +363,11 @@ var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
366
363
|
AccordionPrimitive.Item,
|
|
367
364
|
{
|
|
368
365
|
ref,
|
|
369
|
-
className: cn(
|
|
366
|
+
className: cn(
|
|
367
|
+
"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)]",
|
|
369
|
+
className
|
|
370
|
+
),
|
|
370
371
|
...props
|
|
371
372
|
}
|
|
372
373
|
));
|
|
@@ -380,7 +381,9 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
|
|
|
380
381
|
ref,
|
|
381
382
|
className: cn(
|
|
382
383
|
"accordion__trigger",
|
|
383
|
-
|
|
384
|
+
"flex h-auto w-full flex-1 items-center justify-between text-left outline-none transition-colors duration-200",
|
|
385
|
+
"hover:no-underline disabled:pointer-events-none",
|
|
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)]",
|
|
384
387
|
"group",
|
|
385
388
|
className
|
|
386
389
|
),
|
|
@@ -392,8 +395,7 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
|
|
|
392
395
|
{
|
|
393
396
|
className: cn(
|
|
394
397
|
"accordion__icon",
|
|
395
|
-
|
|
396
|
-
"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",
|
|
397
399
|
"transition-colors duration-200",
|
|
398
400
|
"relative"
|
|
399
401
|
),
|
|
@@ -434,34 +436,22 @@ var AccordionContent = React.forwardRef(({ className, contentClassName, children
|
|
|
434
436
|
ref,
|
|
435
437
|
className: cn(
|
|
436
438
|
"accordion__content",
|
|
437
|
-
|
|
439
|
+
"transition-all",
|
|
440
|
+
"data-[state=closed]:animate-accordion-up",
|
|
441
|
+
"data-[state=open]:animate-accordion-down",
|
|
442
|
+
"text-[length:var(--accordion-content-font-size)] leading-[var(--accordion-content-line-height)] text-[var(--accordion-content-color)] data-[state=closed]:block",
|
|
438
443
|
// TODO Uncomment the next line when dropdown position is fixed
|
|
439
444
|
// 'overflow-hidden',
|
|
440
445
|
className
|
|
441
446
|
),
|
|
442
447
|
...props,
|
|
443
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
444
|
-
"div",
|
|
445
|
-
{
|
|
446
|
-
className: cn(
|
|
447
|
-
"accordion__contentItem",
|
|
448
|
-
Accordion_default.accordion__contentItem,
|
|
449
|
-
contentClassName
|
|
450
|
-
),
|
|
451
|
-
children
|
|
452
|
-
}
|
|
453
|
-
)
|
|
448
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cn("accordion__contentItem px-6 pb-6 pt-2", contentClassName), children })
|
|
454
449
|
}
|
|
455
450
|
));
|
|
456
451
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
457
452
|
|
|
458
453
|
// src/alert-box/AlertBox.tsx
|
|
459
454
|
var import_lucide_react2 = require("lucide-react");
|
|
460
|
-
|
|
461
|
-
// src/alert-box/AlertBox.module.css
|
|
462
|
-
var AlertBox_default = {};
|
|
463
|
-
|
|
464
|
-
// src/alert-box/AlertBox.tsx
|
|
465
455
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
466
456
|
var AlertType = /* @__PURE__ */ ((AlertType2) => {
|
|
467
457
|
AlertType2["INFO"] = "INFO";
|
|
@@ -490,10 +480,10 @@ var sizeClasses = {
|
|
|
490
480
|
["L" /* L */]: "px-6 py-5 items-start"
|
|
491
481
|
};
|
|
492
482
|
var typeStyles = {
|
|
493
|
-
["INFO" /* INFO */]:
|
|
494
|
-
["WARNING" /* WARNING */]:
|
|
495
|
-
["ERROR" /* ERROR */]:
|
|
496
|
-
["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)]",
|
|
497
487
|
["LIGHT" /* LIGHT */]: ""
|
|
498
488
|
};
|
|
499
489
|
function AlertBox({
|
|
@@ -510,8 +500,7 @@ function AlertBox({
|
|
|
510
500
|
{
|
|
511
501
|
"data-slot": "alert-box",
|
|
512
502
|
className: cn(
|
|
513
|
-
|
|
514
|
-
"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",
|
|
515
504
|
sizeClasses[size],
|
|
516
505
|
typeStyles[type],
|
|
517
506
|
className
|
|
@@ -530,11 +519,6 @@ var AlertSizes = AlertSize;
|
|
|
530
519
|
// src/audio-player/AudioPlayer.tsx
|
|
531
520
|
var import_react = require("react");
|
|
532
521
|
var import_lucide_react3 = require("lucide-react");
|
|
533
|
-
|
|
534
|
-
// src/audio-player/AudioPlayer.module.css
|
|
535
|
-
var AudioPlayer_default = {};
|
|
536
|
-
|
|
537
|
-
// src/audio-player/AudioPlayer.tsx
|
|
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
|
-
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
|
-
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,11 +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
|
-
|
|
641
|
-
// src/avatar/Avatar.module.css
|
|
642
|
-
var Avatar_default = {};
|
|
643
|
-
|
|
644
|
-
// src/avatar/Avatar.tsx
|
|
645
617
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
646
618
|
var sizeClasses2 = {
|
|
647
619
|
sm: "h-8 w-8",
|
|
@@ -673,7 +645,7 @@ var Avatar = React2.forwardRef(({ className, src, alt, fallback, size = "md", fa
|
|
|
673
645
|
{
|
|
674
646
|
className: cn(
|
|
675
647
|
"flex h-full w-full items-center justify-center rounded-full font-medium",
|
|
676
|
-
!fallbackClassName &&
|
|
648
|
+
!fallbackClassName && "bg-[var(--avatar-fallback-bg)] text-[var(--avatar-fallback-text)]",
|
|
677
649
|
fallbackClassName
|
|
678
650
|
),
|
|
679
651
|
children: fallback
|
|
@@ -726,11 +698,6 @@ Badge.displayName = "Badge";
|
|
|
726
698
|
|
|
727
699
|
// src/beta-badge/BetaBadge.tsx
|
|
728
700
|
var import_react_i18next = require("react-i18next");
|
|
729
|
-
|
|
730
|
-
// src/beta-badge/BetaBadge.module.css
|
|
731
|
-
var BetaBadge_default = {};
|
|
732
|
-
|
|
733
|
-
// src/beta-badge/BetaBadge.tsx
|
|
734
701
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
735
702
|
function BetaBadge({
|
|
736
703
|
className,
|
|
@@ -745,9 +712,8 @@ function BetaBadge({
|
|
|
745
712
|
{
|
|
746
713
|
"data-slot": "beta-badge",
|
|
747
714
|
className: cn(
|
|
748
|
-
|
|
749
|
-
"
|
|
750
|
-
readOnly && 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)]",
|
|
751
717
|
className
|
|
752
718
|
),
|
|
753
719
|
...props,
|
|
@@ -838,11 +804,6 @@ BookmarkTabsTrigger.displayName = "BookmarkTabsTrigger";
|
|
|
838
804
|
// src/box-option-selector/BoxOptionSelector.tsx
|
|
839
805
|
var import_react2 = require("react");
|
|
840
806
|
var import_react_i18next2 = require("react-i18next");
|
|
841
|
-
|
|
842
|
-
// src/box-option-selector/BoxOptionSelector.module.css
|
|
843
|
-
var BoxOptionSelector_default = {};
|
|
844
|
-
|
|
845
|
-
// src/box-option-selector/BoxOptionSelector.tsx
|
|
846
807
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
847
808
|
var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
848
809
|
({
|
|
@@ -878,9 +839,8 @@ var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
|
878
839
|
ref,
|
|
879
840
|
"data-slot": "box-option-selector",
|
|
880
841
|
className: cn(
|
|
881
|
-
|
|
882
|
-
"
|
|
883
|
-
isSelected && 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)]",
|
|
884
844
|
disabled && "cursor-not-allowed opacity-50"
|
|
885
845
|
),
|
|
886
846
|
onClick: handleClick,
|
|
@@ -1845,9 +1805,6 @@ function ScrollBar({
|
|
|
1845
1805
|
);
|
|
1846
1806
|
}
|
|
1847
1807
|
|
|
1848
|
-
// src/error-message/styles.module.css
|
|
1849
|
-
var styles_default = {};
|
|
1850
|
-
|
|
1851
1808
|
// src/error-message/ErrorMessage.tsx
|
|
1852
1809
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1853
1810
|
function ErrorMessage({ className, children, disabled }) {
|
|
@@ -1855,8 +1812,8 @@ function ErrorMessage({ className, children, disabled }) {
|
|
|
1855
1812
|
"div",
|
|
1856
1813
|
{
|
|
1857
1814
|
className: cn(
|
|
1858
|
-
|
|
1859
|
-
disabled &&
|
|
1815
|
+
"mt-0.5 text-left text-sm font-medium text-[var(--error-message-color)]",
|
|
1816
|
+
disabled && "opacity-30",
|
|
1860
1817
|
className
|
|
1861
1818
|
),
|
|
1862
1819
|
children
|
|
@@ -2261,21 +2218,10 @@ var import_react_table = require("@tanstack/react-table");
|
|
|
2261
2218
|
// src/table/Table.tsx
|
|
2262
2219
|
var import_react7 = require("react");
|
|
2263
2220
|
|
|
2264
|
-
// src/loading-bar/styles.module.css
|
|
2265
|
-
var styles_default2 = {};
|
|
2266
|
-
|
|
2267
2221
|
// src/loading-bar/LoadingBar.tsx
|
|
2268
2222
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2269
2223
|
function LoadingBar({ className }) {
|
|
2270
|
-
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)(
|
|
2271
|
-
"div",
|
|
2272
|
-
{
|
|
2273
|
-
className: cn(
|
|
2274
|
-
"absolute top-0 h-full rounded-full bg-[var(--primary)]",
|
|
2275
|
-
styles_default2.bar
|
|
2276
|
-
)
|
|
2277
|
-
}
|
|
2278
|
-
) }) });
|
|
2224
|
+
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)]" }) }) });
|
|
2279
2225
|
}
|
|
2280
2226
|
|
|
2281
2227
|
// src/table/Table.tsx
|
|
@@ -4503,19 +4449,36 @@ var FileInputButton = (0, import_react36.forwardRef)(
|
|
|
4503
4449
|
);
|
|
4504
4450
|
FileInputButton.displayName = "FileInputButton";
|
|
4505
4451
|
|
|
4506
|
-
// src/form-box/FormBox.module.css
|
|
4507
|
-
var FormBox_default = {};
|
|
4508
|
-
|
|
4509
4452
|
// src/form-box/Content.tsx
|
|
4510
4453
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4511
4454
|
function Content5({ children, className, ...props }) {
|
|
4512
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
4455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
4456
|
+
"div",
|
|
4457
|
+
{
|
|
4458
|
+
className: cn(
|
|
4459
|
+
"flex flex-wrap content-start items-start gap-4 self-stretch",
|
|
4460
|
+
className
|
|
4461
|
+
),
|
|
4462
|
+
...props,
|
|
4463
|
+
children
|
|
4464
|
+
}
|
|
4465
|
+
);
|
|
4513
4466
|
}
|
|
4514
4467
|
|
|
4515
4468
|
// src/form-box/Header.tsx
|
|
4516
4469
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4517
4470
|
function Header2({ children, className, ...props }) {
|
|
4518
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4472
|
+
"h2",
|
|
4473
|
+
{
|
|
4474
|
+
className: cn(
|
|
4475
|
+
"m-0 flex items-center gap-2 self-stretch p-0 text-2xl font-semibold leading-normal text-[var(--chekin-color-brand-navy)]",
|
|
4476
|
+
className
|
|
4477
|
+
),
|
|
4478
|
+
...props,
|
|
4479
|
+
children
|
|
4480
|
+
}
|
|
4481
|
+
);
|
|
4519
4482
|
}
|
|
4520
4483
|
|
|
4521
4484
|
// src/form-box/Root.tsx
|
|
@@ -4524,7 +4487,11 @@ function Root10({ children, nested, className, ...props }) {
|
|
|
4524
4487
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4525
4488
|
"div",
|
|
4526
4489
|
{
|
|
4527
|
-
className: cn(
|
|
4490
|
+
className: cn(
|
|
4491
|
+
"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]",
|
|
4492
|
+
nested && "border-0 p-0",
|
|
4493
|
+
className
|
|
4494
|
+
),
|
|
4528
4495
|
...props,
|
|
4529
4496
|
children
|
|
4530
4497
|
}
|
|
@@ -4534,7 +4501,17 @@ function Root10({ children, nested, className, ...props }) {
|
|
|
4534
4501
|
// src/form-box/SubHeader.tsx
|
|
4535
4502
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4536
4503
|
function SubHeader({ children, className, ...props }) {
|
|
4537
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4505
|
+
"h4",
|
|
4506
|
+
{
|
|
4507
|
+
className: cn(
|
|
4508
|
+
"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)]",
|
|
4509
|
+
className
|
|
4510
|
+
),
|
|
4511
|
+
...props,
|
|
4512
|
+
children
|
|
4513
|
+
}
|
|
4514
|
+
);
|
|
4538
4515
|
}
|
|
4539
4516
|
|
|
4540
4517
|
// src/form-box/index.ts
|
|
@@ -4548,11 +4525,6 @@ var FormBox = {
|
|
|
4548
4525
|
// src/free-text-field/FreeTextField.tsx
|
|
4549
4526
|
var import_react37 = require("react");
|
|
4550
4527
|
var import_react_i18next10 = require("react-i18next");
|
|
4551
|
-
|
|
4552
|
-
// src/free-text-field/styles.module.css
|
|
4553
|
-
var styles_default3 = {};
|
|
4554
|
-
|
|
4555
|
-
// src/free-text-field/FreeTextField.tsx
|
|
4556
4528
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4557
4529
|
var FreeTextField = (0, import_react37.forwardRef)(
|
|
4558
4530
|
({
|
|
@@ -4598,65 +4570,81 @@ var FreeTextField = (0, import_react37.forwardRef)(
|
|
|
4598
4570
|
onBlur?.(event);
|
|
4599
4571
|
};
|
|
4600
4572
|
const fieldBoxClassName = cn(
|
|
4601
|
-
|
|
4602
|
-
autocompleted &&
|
|
4603
|
-
isErrorWrong && !autocompleted &&
|
|
4604
|
-
!autocompleted && !isErrorWrong && !isEmpty &&
|
|
4605
|
-
!autocompleted && !isErrorWrong && isEmpty &&
|
|
4606
|
-
isFocused && !hasError &&
|
|
4573
|
+
"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",
|
|
4574
|
+
autocompleted && "border-[var(--chekin-color-brand-navy)] bg-[var(--chekin-color-surface-autocomplete)]",
|
|
4575
|
+
isErrorWrong && !autocompleted && "border-[var(--error-message-color)] bg-white",
|
|
4576
|
+
!autocompleted && !isErrorWrong && !isEmpty && "border-[var(--chekin-color-brand-navy)] bg-white",
|
|
4577
|
+
!autocompleted && !isErrorWrong && isEmpty && "border-[rgba(22,22,67,0.2)] bg-[var(--chekin-color-surface-input-empty)]",
|
|
4578
|
+
isFocused && !hasError && "border-[var(--chekin-color-brand-blue)]"
|
|
4607
4579
|
);
|
|
4608
4580
|
const inputPlaceholder = fieldStyle === "new" ? label : placeholder;
|
|
4609
4581
|
const showFloatingLabel = fieldStyle === "new" && !isEmpty && Boolean(label);
|
|
4610
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
"- ",
|
|
4615
|
-
|
|
4616
|
-
] }),
|
|
4617
|
-
tooltip && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: styles_default3.tooltip, children: tooltip })
|
|
4618
|
-
] }),
|
|
4619
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: fieldBoxClassName, children: [
|
|
4620
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4621
|
-
"input",
|
|
4622
|
-
{
|
|
4623
|
-
ref,
|
|
4624
|
-
id: inputId,
|
|
4625
|
-
className: styles_default3.input,
|
|
4626
|
-
placeholder: inputPlaceholder,
|
|
4627
|
-
value,
|
|
4628
|
-
defaultValue: value === void 0 ? defaultValue : void 0,
|
|
4629
|
-
onChange: handleChange,
|
|
4630
|
-
onFocus: handleFocus,
|
|
4631
|
-
onBlur: handleBlur,
|
|
4632
|
-
disabled,
|
|
4633
|
-
...inputProps
|
|
4634
|
-
}
|
|
4582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4583
|
+
"div",
|
|
4584
|
+
{
|
|
4585
|
+
className: cn(
|
|
4586
|
+
"relative flex w-[300px] flex-col gap-1 [font-family:var(--chekin-font-family-primary)]",
|
|
4587
|
+
className
|
|
4635
4588
|
),
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4589
|
+
children: [
|
|
4590
|
+
fieldStyle === "current" && label && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
4591
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4592
|
+
"label",
|
|
4593
|
+
{
|
|
4594
|
+
htmlFor: inputId,
|
|
4595
|
+
className: "text-base font-medium leading-4 text-[var(--chekin-color-brand-navy)]",
|
|
4596
|
+
children: label
|
|
4597
|
+
}
|
|
4643
4598
|
),
|
|
4644
|
-
|
|
4645
|
-
"
|
|
4599
|
+
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: [
|
|
4600
|
+
"- ",
|
|
4601
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("em", { children: optionalLabel || t("optional") })
|
|
4602
|
+
] }),
|
|
4603
|
+
tooltip && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "h-4 w-4 shrink-0", children: tooltip })
|
|
4604
|
+
] }),
|
|
4605
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: fieldBoxClassName, children: [
|
|
4606
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4607
|
+
"input",
|
|
4608
|
+
{
|
|
4609
|
+
ref,
|
|
4610
|
+
id: inputId,
|
|
4611
|
+
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)]",
|
|
4612
|
+
placeholder: inputPlaceholder,
|
|
4613
|
+
value,
|
|
4614
|
+
defaultValue: value === void 0 ? defaultValue : void 0,
|
|
4615
|
+
onChange: handleChange,
|
|
4616
|
+
onFocus: handleFocus,
|
|
4617
|
+
onBlur: handleBlur,
|
|
4618
|
+
disabled,
|
|
4619
|
+
...inputProps
|
|
4620
|
+
}
|
|
4621
|
+
),
|
|
4622
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", children: icon }),
|
|
4623
|
+
showFloatingLabel && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4624
|
+
"div",
|
|
4646
4625
|
{
|
|
4647
4626
|
className: cn(
|
|
4648
|
-
|
|
4649
|
-
|
|
4627
|
+
"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]",
|
|
4628
|
+
autocompleted && "to-[var(--chekin-color-surface-autocomplete)]"
|
|
4650
4629
|
),
|
|
4651
|
-
children:
|
|
4630
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4631
|
+
"span",
|
|
4632
|
+
{
|
|
4633
|
+
className: cn(
|
|
4634
|
+
"whitespace-nowrap text-sm font-medium leading-6 text-[var(--chekin-color-gray-1)]",
|
|
4635
|
+
isErrorWrong && "text-[var(--error-message-color)]"
|
|
4636
|
+
),
|
|
4637
|
+
children: label
|
|
4638
|
+
}
|
|
4639
|
+
)
|
|
4652
4640
|
}
|
|
4653
4641
|
)
|
|
4654
|
-
}
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4642
|
+
] }),
|
|
4643
|
+
supportingText && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "m-0 text-xs italic leading-normal text-[var(--chekin-color-gray-2)]", children: supportingText }),
|
|
4644
|
+
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 })
|
|
4645
|
+
]
|
|
4646
|
+
}
|
|
4647
|
+
);
|
|
4660
4648
|
}
|
|
4661
4649
|
);
|
|
4662
4650
|
FreeTextField.displayName = "FreeTextField";
|
|
@@ -6093,12 +6081,14 @@ function Loader({
|
|
|
6093
6081
|
|
|
6094
6082
|
// src/metric-card/MetricCard.tsx
|
|
6095
6083
|
var import_lucide_react23 = require("lucide-react");
|
|
6096
|
-
|
|
6097
|
-
// src/metric-card/MetricCard.module.css
|
|
6098
|
-
var MetricCard_default = {};
|
|
6099
|
-
|
|
6100
|
-
// src/metric-card/MetricCard.tsx
|
|
6101
6084
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6085
|
+
var metricCardVariantClasses = {
|
|
6086
|
+
blue: "bg-[linear-gradient(122deg,#e6f0ff_36.37%,#f6f9ff_86.4%)] text-[#385cf8] [&_[data-slot=metric-card-icon]]:bg-[#dbeafe]",
|
|
6087
|
+
green: "bg-[linear-gradient(122deg,#ddfbf4_36.37%,#f5fefc_86.4%)] text-[#2bc29f] [&_[data-slot=metric-card-icon]]:bg-[#cff9ef]",
|
|
6088
|
+
orange: "bg-[linear-gradient(122deg,#ffeddc_36.37%,#fffaf5_86.4%)] text-[#f5721a] [&_[data-slot=metric-card-icon]]:bg-[#ffe5cd]",
|
|
6089
|
+
purple: "bg-[linear-gradient(122deg,#f5edff_36.37%,#fcfaff_86.4%)] text-[#9a51ff] [&_[data-slot=metric-card-icon]]:bg-[#f0e5ff]",
|
|
6090
|
+
yellow: "bg-[linear-gradient(122deg,#fff8e5_36.37%,#fffbef_86.4%)] text-[#ce8b0b] [&_[data-slot=metric-card-icon]]:bg-[#ffeeb2]"
|
|
6091
|
+
};
|
|
6102
6092
|
function MetricCard({
|
|
6103
6093
|
title,
|
|
6104
6094
|
value,
|
|
@@ -6113,37 +6103,41 @@ function MetricCard({
|
|
|
6113
6103
|
"div",
|
|
6114
6104
|
{
|
|
6115
6105
|
className: cn(
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
loading &&
|
|
6106
|
+
"flex w-full min-w-52 gap-2 rounded-lg border border-[var(--chekin-color-gray-3)] p-4",
|
|
6107
|
+
metricCardVariantClasses[variant],
|
|
6108
|
+
loading && "cursor-progress opacity-60",
|
|
6119
6109
|
className
|
|
6120
6110
|
),
|
|
6121
6111
|
children: [
|
|
6122
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6112
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6113
|
+
"div",
|
|
6114
|
+
{
|
|
6115
|
+
"data-slot": "metric-card-icon",
|
|
6116
|
+
className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full mix-blend-multiply",
|
|
6117
|
+
children: icon
|
|
6118
|
+
}
|
|
6119
|
+
),
|
|
6120
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-1 flex-col gap-4", children: [
|
|
6121
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
6122
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h4", { className: "whitespace-nowrap text-base font-medium leading-6 text-[var(--chekin-color-brand-navy)]", children: title }),
|
|
6126
6123
|
tooltip && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Tooltip, { side: "right", content: tooltip, contentClassName: "max-w-64", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6127
6124
|
"button",
|
|
6128
6125
|
{
|
|
6129
6126
|
type: "button",
|
|
6130
|
-
className:
|
|
6131
|
-
"inline-flex text-[var(--chekin-color-gray-1)]",
|
|
6132
|
-
MetricCard_default.MetricCard__tooltip
|
|
6133
|
-
),
|
|
6127
|
+
className: "inline-flex text-[var(--chekin-color-gray-1)]",
|
|
6134
6128
|
"aria-label": tooltip,
|
|
6135
6129
|
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_lucide_react23.CircleQuestionMark, { className: "h-4 w-4" })
|
|
6136
6130
|
}
|
|
6137
6131
|
) })
|
|
6138
6132
|
] }),
|
|
6139
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className:
|
|
6140
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className:
|
|
6133
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
6134
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "text-2xl font-bold leading-6", children: value }),
|
|
6141
6135
|
!!percentage && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6142
6136
|
"div",
|
|
6143
6137
|
{
|
|
6144
6138
|
className: cn(
|
|
6145
|
-
|
|
6146
|
-
percentage < 0
|
|
6139
|
+
"inline-flex items-center gap-x-1 text-base font-semibold leading-6 text-[#059669]",
|
|
6140
|
+
percentage < 0 && "text-[var(--chekin-color-brand-red)]"
|
|
6147
6141
|
),
|
|
6148
6142
|
children: [
|
|
6149
6143
|
percentage < 0 ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_lucide_react23.TrendingDown, {}) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_lucide_react23.TrendingUp, {}),
|
|
@@ -6171,11 +6165,6 @@ var METRIC_CARD_VARIANTS = {
|
|
|
6171
6165
|
// src/modal/Modal.tsx
|
|
6172
6166
|
var import_react47 = require("react");
|
|
6173
6167
|
var import_lucide_react24 = require("lucide-react");
|
|
6174
|
-
|
|
6175
|
-
// src/modal/styles.module.css
|
|
6176
|
-
var styles_default4 = {};
|
|
6177
|
-
|
|
6178
|
-
// src/modal/Modal.tsx
|
|
6179
6168
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6180
6169
|
var preventDefault = (event) => {
|
|
6181
6170
|
event.preventDefault();
|
|
@@ -6219,9 +6208,9 @@ function Modal({
|
|
|
6219
6208
|
overlayClassName,
|
|
6220
6209
|
className: cn(
|
|
6221
6210
|
"modal__content",
|
|
6222
|
-
|
|
6211
|
+
"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)]",
|
|
6223
6212
|
scrollableOverlay && "min-h-0",
|
|
6224
|
-
size === "compact" &&
|
|
6213
|
+
size === "compact" && "w-[360px] min-w-0",
|
|
6225
6214
|
className
|
|
6226
6215
|
),
|
|
6227
6216
|
lockScroll,
|
|
@@ -6232,16 +6221,28 @@ function Modal({
|
|
|
6232
6221
|
{
|
|
6233
6222
|
type: "button",
|
|
6234
6223
|
onClick: handleClose,
|
|
6235
|
-
className: cn(
|
|
6224
|
+
className: cn(
|
|
6225
|
+
"modal__close",
|
|
6226
|
+
"absolute right-4 top-4 z-10 rounded-full p-1 text-[var(--chekin-color-brand-blue)] hover:bg-[#f4f6f8]"
|
|
6227
|
+
),
|
|
6236
6228
|
"aria-label": "Close",
|
|
6237
6229
|
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_lucide_react24.X, { className: "h-5 w-5" })
|
|
6238
6230
|
}
|
|
6239
6231
|
),
|
|
6240
|
-
(iconSrc || iconProps?.src) && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className:
|
|
6241
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogTitle, { className: cn("modal__title",
|
|
6242
|
-
text && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogDescription, { className: cn("modal__text",
|
|
6232
|
+
(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 }) }),
|
|
6233
|
+
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" }) }),
|
|
6234
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogDescription, { className: cn("modal__text", "text-base"), children: text }),
|
|
6243
6235
|
children,
|
|
6244
|
-
buttons && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6236
|
+
buttons && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6237
|
+
"div",
|
|
6238
|
+
{
|
|
6239
|
+
className: cn(
|
|
6240
|
+
"modal__buttons-wrapper",
|
|
6241
|
+
"mb-2 mt-6 flex flex-col items-center justify-center gap-y-4"
|
|
6242
|
+
),
|
|
6243
|
+
children: buttons
|
|
6244
|
+
}
|
|
6245
|
+
)
|
|
6245
6246
|
]
|
|
6246
6247
|
}
|
|
6247
6248
|
) });
|
|
@@ -6251,7 +6252,7 @@ var ModalButton = (0, import_react47.forwardRef)(
|
|
|
6251
6252
|
Button,
|
|
6252
6253
|
{
|
|
6253
6254
|
ref,
|
|
6254
|
-
className: cn("modal__button",
|
|
6255
|
+
className: cn("modal__button", "min-w-[210px]", className),
|
|
6255
6256
|
size: size && "lg",
|
|
6256
6257
|
...props,
|
|
6257
6258
|
children
|
|
@@ -7020,9 +7021,6 @@ function useRadioOptions({ options, defaultValue, onChange }) {
|
|
|
7020
7021
|
};
|
|
7021
7022
|
}
|
|
7022
7023
|
|
|
7023
|
-
// src/radio/styles.module.css
|
|
7024
|
-
var styles_default5 = {};
|
|
7025
|
-
|
|
7026
7024
|
// src/radio/Radio.tsx
|
|
7027
7025
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7028
7026
|
var Radio = (0, import_react53.forwardRef)(
|
|
@@ -7052,8 +7050,8 @@ var Radio = (0, import_react53.forwardRef)(
|
|
|
7052
7050
|
{
|
|
7053
7051
|
className: cn(
|
|
7054
7052
|
"radio__wrapper",
|
|
7055
|
-
|
|
7056
|
-
(disabled || option.disabled) &&
|
|
7053
|
+
"flex cursor-pointer items-center gap-2",
|
|
7054
|
+
(disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
7057
7055
|
),
|
|
7058
7056
|
children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
7059
7057
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
@@ -7065,7 +7063,7 @@ var Radio = (0, import_react53.forwardRef)(
|
|
|
7065
7063
|
className: "radio__indicator"
|
|
7066
7064
|
}
|
|
7067
7065
|
),
|
|
7068
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className:
|
|
7066
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "radio_label", children: option.label })
|
|
7069
7067
|
] })
|
|
7070
7068
|
},
|
|
7071
7069
|
option.value
|
|
@@ -7165,11 +7163,6 @@ function RatingProgress({
|
|
|
7165
7163
|
|
|
7166
7164
|
// src/rating-radio-group/RatingRadioGroup.tsx
|
|
7167
7165
|
var import_lucide_react29 = require("lucide-react");
|
|
7168
|
-
|
|
7169
|
-
// src/rating-radio-group/styles.module.css
|
|
7170
|
-
var styles_default6 = {};
|
|
7171
|
-
|
|
7172
|
-
// src/rating-radio-group/RatingRadioGroup.tsx
|
|
7173
7166
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7174
7167
|
var getStarColor = (optionValue) => (value) => {
|
|
7175
7168
|
if (value >= optionValue) return "#facc15";
|
|
@@ -7183,13 +7176,13 @@ function RatingRadioGroup({
|
|
|
7183
7176
|
className,
|
|
7184
7177
|
options
|
|
7185
7178
|
}) {
|
|
7186
|
-
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("fieldset", { className: cn(
|
|
7187
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("legend", { className:
|
|
7188
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className:
|
|
7179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("fieldset", { className: cn("relative [all:unset]", className), children: [
|
|
7180
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("legend", { className: "mb-2", children: label }),
|
|
7181
|
+
/* @__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: [
|
|
7189
7182
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7190
7183
|
"input",
|
|
7191
7184
|
{
|
|
7192
|
-
className:
|
|
7185
|
+
className: "peer absolute h-0 w-0 opacity-0",
|
|
7193
7186
|
type: "radio",
|
|
7194
7187
|
name,
|
|
7195
7188
|
checked: value === option.value,
|
|
@@ -7200,7 +7193,7 @@ function RatingRadioGroup({
|
|
|
7200
7193
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7201
7194
|
import_lucide_react29.Star,
|
|
7202
7195
|
{
|
|
7203
|
-
className:
|
|
7196
|
+
className: "cursor-pointer rounded peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-[#385bf8]",
|
|
7204
7197
|
size: 24,
|
|
7205
7198
|
"aria-label": option.label,
|
|
7206
7199
|
color: getStarColor(option.value)(value || 0),
|
|
@@ -7425,9 +7418,6 @@ var SubSectionSize = /* @__PURE__ */ ((SubSectionSize2) => {
|
|
|
7425
7418
|
return SubSectionSize2;
|
|
7426
7419
|
})(SubSectionSize || {});
|
|
7427
7420
|
|
|
7428
|
-
// src/section/Section.module.css
|
|
7429
|
-
var Section_default = {};
|
|
7430
|
-
|
|
7431
7421
|
// src/section/Section.tsx
|
|
7432
7422
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
7433
7423
|
function TooltipInfo({ content, className }) {
|
|
@@ -7461,54 +7451,68 @@ var Section = (0, import_react54.forwardRef)(
|
|
|
7461
7451
|
{
|
|
7462
7452
|
ref,
|
|
7463
7453
|
className: cn(
|
|
7464
|
-
|
|
7465
|
-
loading &&
|
|
7466
|
-
disabled &&
|
|
7454
|
+
"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",
|
|
7455
|
+
loading && "cursor-progress",
|
|
7456
|
+
disabled && "pointer-events-none opacity-50",
|
|
7467
7457
|
{ "!hidden": hidden },
|
|
7468
7458
|
className
|
|
7469
7459
|
),
|
|
7470
7460
|
children: [
|
|
7471
|
-
(title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className:
|
|
7461
|
+
(title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
7472
7462
|
title && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
7473
7463
|
"div",
|
|
7474
7464
|
{
|
|
7475
7465
|
className: cn(
|
|
7476
|
-
|
|
7477
|
-
size
|
|
7466
|
+
"flex max-w-[85%] items-center text-lg font-bold text-[var(--chekin-color-brand-navy)] md:max-w-full",
|
|
7467
|
+
size !== 0 /* L */ && "subsection-title"
|
|
7478
7468
|
),
|
|
7479
7469
|
children: [
|
|
7480
7470
|
title,
|
|
7481
|
-
titleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7482
|
-
linkContent && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7471
|
+
titleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "ml-2.5", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TooltipInfo, { content: titleTooltip }) }),
|
|
7472
|
+
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 })
|
|
7483
7473
|
]
|
|
7484
7474
|
}
|
|
7485
7475
|
),
|
|
7486
|
-
subtitle && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className:
|
|
7487
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7488
|
-
subtitleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7476
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "w-full max-w-[720px] md:max-w-full", children: [
|
|
7477
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "inline text-base font-normal text-[var(--chekin-color-gray-1)]", children: subtitle }),
|
|
7478
|
+
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 }) })
|
|
7489
7479
|
] })
|
|
7490
7480
|
] }),
|
|
7491
|
-
loading && showLoader ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Loader, { className:
|
|
7481
|
+
loading && showLoader ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Loader, { className: "mx-auto mb-3 mt-2.5" }) : children
|
|
7492
7482
|
]
|
|
7493
7483
|
}
|
|
7494
7484
|
)
|
|
7495
7485
|
);
|
|
7496
7486
|
Section.displayName = "Section";
|
|
7497
7487
|
var SubSection = (0, import_react54.forwardRef)(
|
|
7498
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7488
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7489
|
+
Section,
|
|
7490
|
+
{
|
|
7491
|
+
ref,
|
|
7492
|
+
className: cn(
|
|
7493
|
+
"m-0 box-border rounded-none border-none bg-transparent p-0 [&_.subsection-title]:text-base [&_.subsection-title]:font-semibold",
|
|
7494
|
+
className
|
|
7495
|
+
),
|
|
7496
|
+
...props
|
|
7497
|
+
}
|
|
7498
|
+
)
|
|
7499
7499
|
);
|
|
7500
7500
|
SubSection.displayName = "SubSection";
|
|
7501
7501
|
var DividingSubsection = (0, import_react54.forwardRef)(
|
|
7502
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7502
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
7503
|
+
SubSection,
|
|
7504
|
+
{
|
|
7505
|
+
ref,
|
|
7506
|
+
className: cn("border-0 border-t border-solid border-t-[#f1f1f1] pt-6", className),
|
|
7507
|
+
...props
|
|
7508
|
+
}
|
|
7509
|
+
)
|
|
7503
7510
|
);
|
|
7504
7511
|
DividingSubsection.displayName = "DividingSubsection";
|
|
7505
7512
|
|
|
7506
7513
|
// src/selectors/Selectors.tsx
|
|
7507
7514
|
var import_react55 = require("react");
|
|
7508
7515
|
|
|
7509
|
-
// src/selector-button/styles.module.css
|
|
7510
|
-
var styles_default7 = {};
|
|
7511
|
-
|
|
7512
7516
|
// src/selector-button/SelectorButton.tsx
|
|
7513
7517
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
7514
7518
|
function SelectorButton({
|
|
@@ -7538,12 +7542,15 @@ function SelectorButton({
|
|
|
7538
7542
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
7539
7543
|
"label",
|
|
7540
7544
|
{
|
|
7541
|
-
className: cn(
|
|
7542
|
-
[
|
|
7543
|
-
[
|
|
7544
|
-
[
|
|
7545
|
-
|
|
7546
|
-
|
|
7545
|
+
className: cn(
|
|
7546
|
+
"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-[#385bf8] active:opacity-100 [&_input]:absolute [&_input]:h-0 [&_input]:w-0 [&_input]:cursor-pointer [&_input]:opacity-0",
|
|
7547
|
+
active && "active border-[#385bf8] bg-white text-[#385bf8]",
|
|
7548
|
+
disabled && "disabled cursor-not-allowed opacity-30 hover:border-[#cecede]",
|
|
7549
|
+
loading && "loading cursor-progress",
|
|
7550
|
+
readOnly && "readOnly cursor-default",
|
|
7551
|
+
readOnly && !active && "hover:border-transparent",
|
|
7552
|
+
className
|
|
7553
|
+
),
|
|
7547
7554
|
...props,
|
|
7548
7555
|
children: [
|
|
7549
7556
|
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
@@ -7557,16 +7564,13 @@ function SelectorButton({
|
|
|
7557
7564
|
readOnly
|
|
7558
7565
|
}
|
|
7559
7566
|
),
|
|
7560
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className:
|
|
7567
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "flex h-full items-center", children })
|
|
7561
7568
|
]
|
|
7562
7569
|
}
|
|
7563
7570
|
);
|
|
7564
7571
|
}
|
|
7565
7572
|
SelectorButton.displayName = "SelectorButton";
|
|
7566
7573
|
|
|
7567
|
-
// src/selectors/styles.module.css
|
|
7568
|
-
var styles_default8 = {};
|
|
7569
|
-
|
|
7570
7574
|
// src/selectors/Selectors.tsx
|
|
7571
7575
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
7572
7576
|
var getValueArray = (value) => {
|
|
@@ -7626,15 +7630,15 @@ function SelectorsInternal({
|
|
|
7626
7630
|
onAnySelectorActive?.(isAnyActive);
|
|
7627
7631
|
}, [isAnyActive, onAnySelectorActive]);
|
|
7628
7632
|
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
|
|
7629
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className:
|
|
7633
|
+
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 }) }),
|
|
7630
7634
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
7631
7635
|
"div",
|
|
7632
7636
|
{
|
|
7633
7637
|
ref,
|
|
7634
|
-
className: cn(
|
|
7635
|
-
[
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
+
className: cn(
|
|
7639
|
+
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]",
|
|
7640
|
+
className
|
|
7641
|
+
),
|
|
7638
7642
|
children: options.map((option, index) => {
|
|
7639
7643
|
const isSelected = getValueArray(value).includes(option.value);
|
|
7640
7644
|
const isDisabled = disabled || disabledItems?.includes(option.value) || option.disabled;
|
|
@@ -7651,11 +7655,13 @@ function SelectorsInternal({
|
|
|
7651
7655
|
disabled: isDisabled,
|
|
7652
7656
|
onClick: (event) => onClick?.(event, option),
|
|
7653
7657
|
onChange: handleChange(option),
|
|
7654
|
-
className: variant === "TAB" ? cn(
|
|
7655
|
-
[
|
|
7656
|
-
[
|
|
7657
|
-
|
|
7658
|
-
|
|
7658
|
+
className: variant === "TAB" ? cn(
|
|
7659
|
+
"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",
|
|
7660
|
+
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",
|
|
7661
|
+
isReadOnly && !isSelected && "readOnly cursor-default hover:bg-transparent hover:text-[var(--chekin-color-gray-1)]",
|
|
7662
|
+
size === "sm" && "py-[7px] text-sm font-medium leading-6",
|
|
7663
|
+
size === "sm" && isSelected && "py-[7px] text-sm font-bold leading-6"
|
|
7664
|
+
) : "selector-button",
|
|
7659
7665
|
children: getSelectorContent(option.label, isDisabled, isReadOnly, isSelected)
|
|
7660
7666
|
},
|
|
7661
7667
|
`${option.value}-${index}`
|
|
@@ -9017,11 +9023,6 @@ function TablePlaceholder({
|
|
|
9017
9023
|
|
|
9018
9024
|
// src/task-card/TaskCard.tsx
|
|
9019
9025
|
var import_lucide_react41 = require("lucide-react");
|
|
9020
|
-
|
|
9021
|
-
// src/task-card/TaskCard.module.css
|
|
9022
|
-
var TaskCard_default = {};
|
|
9023
|
-
|
|
9024
|
-
// src/task-card/TaskCard.tsx
|
|
9025
9026
|
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
9026
9027
|
function TaskCard({
|
|
9027
9028
|
title,
|
|
@@ -9037,27 +9038,40 @@ function TaskCard({
|
|
|
9037
9038
|
"div",
|
|
9038
9039
|
{
|
|
9039
9040
|
className: cn(
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9041
|
+
"relative box-border flex min-h-[48px] min-w-[360px] items-center gap-4 overflow-hidden rounded-lg p-2 transition-colors duration-200",
|
|
9042
|
+
eventType === "error" && "bg-red-50",
|
|
9043
|
+
eventType === "warning" && "bg-amber-50",
|
|
9044
|
+
onClick && 'group cursor-pointer before:pointer-events-none before:absolute before:inset-0 before:rounded-lg before:content-[""]',
|
|
9045
|
+
onClick && eventType === "error" && "hover:before:bg-red-100 hover:before:mix-blend-multiply",
|
|
9046
|
+
onClick && eventType === "warning" && "hover:before:bg-amber-100 hover:before:mix-blend-multiply",
|
|
9043
9047
|
className
|
|
9044
9048
|
),
|
|
9045
9049
|
onClick,
|
|
9046
9050
|
role: onClick ? "button" : void 0,
|
|
9047
9051
|
tabIndex: onClick ? 0 : void 0,
|
|
9048
9052
|
children: [
|
|
9049
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9054
|
+
"div",
|
|
9055
|
+
{
|
|
9056
|
+
className: cn(
|
|
9057
|
+
"relative w-1 shrink-0 self-stretch rounded-sm",
|
|
9058
|
+
eventType === "error" && "bg-chekin-red",
|
|
9059
|
+
eventType === "warning" && "bg-amber-500"
|
|
9060
|
+
)
|
|
9061
|
+
}
|
|
9062
|
+
),
|
|
9063
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col items-start", children: [
|
|
9064
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("h4", { className: "m-0 w-full break-words text-base font-semibold leading-6 text-chekin-navy", children: title }),
|
|
9065
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("p", { className: "m-0 w-full text-sm font-medium leading-6 text-chekin-gray-1", children: description })
|
|
9053
9066
|
] }),
|
|
9054
|
-
shouldShowActions && /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className:
|
|
9067
|
+
shouldShowActions && /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
9055
9068
|
shouldShowCount && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9056
9069
|
"div",
|
|
9057
9070
|
{
|
|
9058
9071
|
className: cn(
|
|
9059
|
-
|
|
9060
|
-
|
|
9072
|
+
'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-[""]',
|
|
9073
|
+
eventType === "error" && "text-chekin-red before:bg-red-100",
|
|
9074
|
+
eventType === "warning" && "text-amber-700 before:bg-amber-100"
|
|
9061
9075
|
),
|
|
9062
9076
|
children: count
|
|
9063
9077
|
}
|
|
@@ -9065,7 +9079,7 @@ function TaskCard({
|
|
|
9065
9079
|
onClick && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9066
9080
|
"button",
|
|
9067
9081
|
{
|
|
9068
|
-
className:
|
|
9082
|
+
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-chekin-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-chekin-blue group-hover:w-8 group-hover:min-w-8 group-hover:opacity-100",
|
|
9069
9083
|
onClick: (event) => {
|
|
9070
9084
|
event.stopPropagation();
|
|
9071
9085
|
onClick?.();
|
|
@@ -9336,11 +9350,25 @@ var FieldError = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime120
|
|
|
9336
9350
|
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
9337
9351
|
var SupportingText = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { id, className: "mt-1 text-xs italic text-chekin-gray-2", children });
|
|
9338
9352
|
|
|
9339
|
-
// src/text-field/textField.module.css
|
|
9340
|
-
var textField_default = {};
|
|
9341
|
-
|
|
9342
9353
|
// src/text-field/TextField.tsx
|
|
9343
9354
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
9355
|
+
var textFieldRootClasses = [
|
|
9356
|
+
"[--text-field-height:2.75rem]",
|
|
9357
|
+
"[--text-field-radius:8px]",
|
|
9358
|
+
"[--text-field-padding-x:0.875rem]",
|
|
9359
|
+
"[--text-field-padding-y:0.625rem]",
|
|
9360
|
+
"[--text-field-bg-empty:#f4f6f8]",
|
|
9361
|
+
"[--text-field-bg-filled:#ffffff]",
|
|
9362
|
+
"[--text-field-border-empty:rgba(22,22,67,0.2)]",
|
|
9363
|
+
"[--text-field-border-filled:#161643]",
|
|
9364
|
+
"[--text-field-border-error:#ff2467]",
|
|
9365
|
+
"[--text-field-text:#161643]",
|
|
9366
|
+
"[--text-field-placeholder:#6b6b95]",
|
|
9367
|
+
"[--text-field-label:#161643]",
|
|
9368
|
+
"[--text-field-supporting:#9696b9]",
|
|
9369
|
+
"[--text-field-error:#ff2467]",
|
|
9370
|
+
"[--text-field-focus-ring:rgba(56,91,248,0.2)]"
|
|
9371
|
+
];
|
|
9344
9372
|
var inputVariants = (0, import_class_variance_authority14.cva)(
|
|
9345
9373
|
[
|
|
9346
9374
|
"flex w-full border text-base font-medium leading-5 outline-none transition-colors",
|
|
@@ -9447,7 +9475,11 @@ var TextField = React29.forwardRef(
|
|
|
9447
9475
|
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
9448
9476
|
"div",
|
|
9449
9477
|
{
|
|
9450
|
-
className: cn(
|
|
9478
|
+
className: cn(
|
|
9479
|
+
"relative flex w-full flex-col",
|
|
9480
|
+
textFieldRootClasses,
|
|
9481
|
+
wrapperClassName
|
|
9482
|
+
),
|
|
9451
9483
|
children: [
|
|
9452
9484
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "relative", children: [
|
|
9453
9485
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
@@ -9486,7 +9518,7 @@ var TextField = React29.forwardRef(
|
|
|
9486
9518
|
}
|
|
9487
9519
|
);
|
|
9488
9520
|
}
|
|
9489
|
-
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("flex w-full flex-col",
|
|
9521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("flex w-full flex-col", textFieldRootClasses, wrapperClassName), children: [
|
|
9490
9522
|
label && /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "mb-1 flex items-center gap-1", children: [
|
|
9491
9523
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9492
9524
|
LabelPrimitive2.Root,
|
|
@@ -9528,16 +9560,11 @@ TextField.displayName = "TextField";
|
|
|
9528
9560
|
|
|
9529
9561
|
// src/textarea/Textarea.tsx
|
|
9530
9562
|
var import_react67 = require("react");
|
|
9531
|
-
|
|
9532
|
-
// src/textarea/styles.module.css
|
|
9533
|
-
var styles_default9 = {};
|
|
9534
|
-
|
|
9535
|
-
// src/textarea/Textarea.tsx
|
|
9536
9563
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
9537
9564
|
var Textarea = (0, import_react67.forwardRef)(
|
|
9538
9565
|
({ className, textareaClassName, label, disabled, name, invalid, ...textareaProps }, ref) => {
|
|
9539
9566
|
const inputId = (0, import_react67.useId)();
|
|
9540
|
-
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: cn(
|
|
9567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: cn("relative", className), children: [
|
|
9541
9568
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
9542
9569
|
"textarea",
|
|
9543
9570
|
{
|
|
@@ -9545,10 +9572,12 @@ var Textarea = (0, import_react67.forwardRef)(
|
|
|
9545
9572
|
id: inputId,
|
|
9546
9573
|
name,
|
|
9547
9574
|
disabled,
|
|
9548
|
-
className: cn(
|
|
9549
|
-
[
|
|
9550
|
-
[
|
|
9551
|
-
|
|
9575
|
+
className: cn(
|
|
9576
|
+
"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",
|
|
9577
|
+
invalid && "border-[#ff2467] focus:border-[#ff2467]",
|
|
9578
|
+
disabled && "cursor-not-allowed resize-none border-[#9696b9] bg-[#f4f6f8] text-[#9696b9] placeholder:text-[#9696b9]",
|
|
9579
|
+
textareaClassName
|
|
9580
|
+
),
|
|
9552
9581
|
...textareaProps
|
|
9553
9582
|
}
|
|
9554
9583
|
),
|
|
@@ -9556,10 +9585,11 @@ var Textarea = (0, import_react67.forwardRef)(
|
|
|
9556
9585
|
"label",
|
|
9557
9586
|
{
|
|
9558
9587
|
htmlFor: inputId,
|
|
9559
|
-
className: cn(
|
|
9560
|
-
[
|
|
9561
|
-
[
|
|
9562
|
-
|
|
9588
|
+
className: cn(
|
|
9589
|
+
"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",
|
|
9590
|
+
invalid && "text-[#ff2467] peer-focus:text-[#ff2467]",
|
|
9591
|
+
disabled && "text-[#9696b9]"
|
|
9592
|
+
),
|
|
9563
9593
|
children: label
|
|
9564
9594
|
}
|
|
9565
9595
|
)
|
|
@@ -9575,9 +9605,6 @@ var LABEL_PLACEMENT = /* @__PURE__ */ ((LABEL_PLACEMENT2) => {
|
|
|
9575
9605
|
return LABEL_PLACEMENT2;
|
|
9576
9606
|
})(LABEL_PLACEMENT || {});
|
|
9577
9607
|
|
|
9578
|
-
// src/three-dots-loader/styles.module.css
|
|
9579
|
-
var styles_default10 = {};
|
|
9580
|
-
|
|
9581
9608
|
// src/three-dots-loader/ThreeDotsLoader.tsx
|
|
9582
9609
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
9583
9610
|
function Dots({
|
|
@@ -9585,11 +9612,37 @@ function Dots({
|
|
|
9585
9612
|
width,
|
|
9586
9613
|
color
|
|
9587
9614
|
}) {
|
|
9588
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
9616
|
+
"span",
|
|
9617
|
+
{
|
|
9618
|
+
className: "inline-flex items-center justify-center gap-[15%]",
|
|
9619
|
+
style: { height, width },
|
|
9620
|
+
"aria-hidden": "true",
|
|
9621
|
+
children: [
|
|
9622
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9623
|
+
"span",
|
|
9624
|
+
{
|
|
9625
|
+
className: "h-[22%] w-[22%] animate-chekin-three-dots rounded-full [animation-delay:-0.32s]",
|
|
9626
|
+
style: { backgroundColor: color }
|
|
9627
|
+
}
|
|
9628
|
+
),
|
|
9629
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9630
|
+
"span",
|
|
9631
|
+
{
|
|
9632
|
+
className: "h-[22%] w-[22%] animate-chekin-three-dots rounded-full [animation-delay:-0.16s]",
|
|
9633
|
+
style: { backgroundColor: color }
|
|
9634
|
+
}
|
|
9635
|
+
),
|
|
9636
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9637
|
+
"span",
|
|
9638
|
+
{
|
|
9639
|
+
className: "h-[22%] w-[22%] animate-chekin-three-dots rounded-full",
|
|
9640
|
+
style: { backgroundColor: color }
|
|
9641
|
+
}
|
|
9642
|
+
)
|
|
9643
|
+
]
|
|
9644
|
+
}
|
|
9645
|
+
);
|
|
9593
9646
|
}
|
|
9594
9647
|
function ThreeDotsLoader({
|
|
9595
9648
|
height = 30,
|
|
@@ -9601,13 +9654,22 @@ function ThreeDotsLoader({
|
|
|
9601
9654
|
}) {
|
|
9602
9655
|
const dots = /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Dots, { color, height, width });
|
|
9603
9656
|
if (label) {
|
|
9604
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
9658
|
+
"div",
|
|
9659
|
+
{
|
|
9660
|
+
className: cn(
|
|
9661
|
+
"flex items-center justify-center gap-x-[13px] [&>div]:text-sm [&>div]:font-bold [&>div]:uppercase [&>div]:text-[#9696b9] [&>div]:opacity-50",
|
|
9662
|
+
className
|
|
9663
|
+
),
|
|
9664
|
+
children: labelPlacement === 0 /* right */ ? /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
|
|
9665
|
+
dots,
|
|
9666
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { children: label })
|
|
9667
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
|
|
9668
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { children: label }),
|
|
9669
|
+
dots
|
|
9670
|
+
] })
|
|
9671
|
+
}
|
|
9672
|
+
);
|
|
9611
9673
|
}
|
|
9612
9674
|
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className, children: dots });
|
|
9613
9675
|
}
|