@chekinapp/ui 0.0.35 → 0.0.36
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/Accordion.module-5SXQLE6L.module.css +71 -0
- package/dist/AlertBox.module-PL4N3ELX.module.css +36 -0
- package/dist/AudioPlayer.module-RDUQ533M.module.css +24 -0
- package/dist/Avatar.module-VPJKIZT3.module.css +4 -0
- package/dist/BetaBadge.module-W2AGK53A.module.css +9 -0
- package/dist/BoxOptionSelector.module-24AKP2OJ.module.css +17 -0
- package/dist/FormBox.module-WG4SQBRR.module.css +55 -0
- package/dist/MetricCard.module-LEV46BXD.module.css +88 -0
- package/dist/Section.module-6UJGBE6B.module.css +61 -0
- package/dist/TaskCard.module-AVGS4US3.module.css +99 -0
- package/dist/index.cjs +166 -217
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +166 -217
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -4
- package/dist/styles.module-4AVOK5SA.module.css +81 -0
- package/dist/styles.module-6FWQEZTQ.module.css +82 -0
- package/dist/styles.module-74HHIGIE.module.css +35 -0
- package/dist/styles.module-AAYSW4RF.module.css +64 -0
- package/dist/styles.module-H7R2VV2Q.module.css +30 -0
- package/dist/styles.module-I3PJNRXG.module.css +20 -0
- package/dist/styles.module-REEJNJNW.module.css +7 -0
- package/dist/styles.module-SHDCFZJR.module.css +151 -0
- package/dist/styles.module-VIYXJAAX.module.css +8 -0
- package/dist/styles.module-Y6YCV6UA.module.css +48 -0
- package/dist/textField.module-5W2LJGIC.module.css +17 -0
- package/package.json +2 -2
- package/dist/index.css +0 -940
- package/dist/index.css.map +0 -1
- package/dist/styles.css.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -356,17 +356,20 @@ 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
|
|
360
|
+
var import_Accordion = __toESM(require("./Accordion.module-5SXQLE6L.module.css"), 1);
|
|
363
361
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
364
362
|
var Accordion = AccordionPrimitive.Root;
|
|
365
363
|
var AccordionItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
366
364
|
AccordionPrimitive.Item,
|
|
367
365
|
{
|
|
368
366
|
ref,
|
|
369
|
-
className: cn(
|
|
367
|
+
className: cn(
|
|
368
|
+
"accordion__item",
|
|
369
|
+
"transition-colors duration-200 ease-in-out",
|
|
370
|
+
import_Accordion.default.accordion__item,
|
|
371
|
+
className
|
|
372
|
+
),
|
|
370
373
|
...props
|
|
371
374
|
}
|
|
372
375
|
));
|
|
@@ -380,7 +383,9 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
|
|
|
380
383
|
ref,
|
|
381
384
|
className: cn(
|
|
382
385
|
"accordion__trigger",
|
|
383
|
-
|
|
386
|
+
"flex h-auto w-full flex-1 items-center justify-between text-left outline-none transition-colors duration-200",
|
|
387
|
+
"hover:no-underline disabled:pointer-events-none",
|
|
388
|
+
import_Accordion.default.accordion__trigger,
|
|
384
389
|
"group",
|
|
385
390
|
className
|
|
386
391
|
),
|
|
@@ -392,7 +397,7 @@ var AccordionTrigger = React.forwardRef(({ className, children, openIcon, closed
|
|
|
392
397
|
{
|
|
393
398
|
className: cn(
|
|
394
399
|
"accordion__icon",
|
|
395
|
-
|
|
400
|
+
import_Accordion.default.accordion__icon,
|
|
396
401
|
"shrink-0 rounded-full p-0.5",
|
|
397
402
|
"transition-colors duration-200",
|
|
398
403
|
"relative"
|
|
@@ -434,7 +439,10 @@ var AccordionContent = React.forwardRef(({ className, contentClassName, children
|
|
|
434
439
|
ref,
|
|
435
440
|
className: cn(
|
|
436
441
|
"accordion__content",
|
|
437
|
-
|
|
442
|
+
"transition-all",
|
|
443
|
+
"data-[state=closed]:animate-accordion-up",
|
|
444
|
+
"data-[state=open]:animate-accordion-down",
|
|
445
|
+
import_Accordion.default.accordion__content,
|
|
438
446
|
// TODO Uncomment the next line when dropdown position is fixed
|
|
439
447
|
// 'overflow-hidden',
|
|
440
448
|
className
|
|
@@ -445,7 +453,7 @@ var AccordionContent = React.forwardRef(({ className, contentClassName, children
|
|
|
445
453
|
{
|
|
446
454
|
className: cn(
|
|
447
455
|
"accordion__contentItem",
|
|
448
|
-
|
|
456
|
+
import_Accordion.default.accordion__contentItem,
|
|
449
457
|
contentClassName
|
|
450
458
|
),
|
|
451
459
|
children
|
|
@@ -457,11 +465,7 @@ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
|
457
465
|
|
|
458
466
|
// src/alert-box/AlertBox.tsx
|
|
459
467
|
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
|
|
468
|
+
var import_AlertBox = __toESM(require("./AlertBox.module-PL4N3ELX.module.css"), 1);
|
|
465
469
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
466
470
|
var AlertType = /* @__PURE__ */ ((AlertType2) => {
|
|
467
471
|
AlertType2["INFO"] = "INFO";
|
|
@@ -490,10 +494,10 @@ var sizeClasses = {
|
|
|
490
494
|
["L" /* L */]: "px-6 py-5 items-start"
|
|
491
495
|
};
|
|
492
496
|
var typeStyles = {
|
|
493
|
-
["INFO" /* INFO */]:
|
|
494
|
-
["WARNING" /* WARNING */]:
|
|
495
|
-
["ERROR" /* ERROR */]:
|
|
496
|
-
["SUCCESS" /* SUCCESS */]:
|
|
497
|
+
["INFO" /* INFO */]: import_AlertBox.default["alertBox--info"],
|
|
498
|
+
["WARNING" /* WARNING */]: import_AlertBox.default["alertBox--warning"],
|
|
499
|
+
["ERROR" /* ERROR */]: import_AlertBox.default["alertBox--error"],
|
|
500
|
+
["SUCCESS" /* SUCCESS */]: import_AlertBox.default["alertBox--success"],
|
|
497
501
|
["LIGHT" /* LIGHT */]: ""
|
|
498
502
|
};
|
|
499
503
|
function AlertBox({
|
|
@@ -510,7 +514,7 @@ function AlertBox({
|
|
|
510
514
|
{
|
|
511
515
|
"data-slot": "alert-box",
|
|
512
516
|
className: cn(
|
|
513
|
-
|
|
517
|
+
import_AlertBox.default.alertBox,
|
|
514
518
|
"flex gap-3 [&_svg]:h-5 [&_svg]:w-5 [&_svg]:shrink-0",
|
|
515
519
|
sizeClasses[size],
|
|
516
520
|
typeStyles[type],
|
|
@@ -530,11 +534,7 @@ var AlertSizes = AlertSize;
|
|
|
530
534
|
// src/audio-player/AudioPlayer.tsx
|
|
531
535
|
var import_react = require("react");
|
|
532
536
|
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
|
|
537
|
+
var import_AudioPlayer = __toESM(require("./AudioPlayer.module-RDUQ533M.module.css"), 1);
|
|
538
538
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
539
539
|
function formatTime(seconds) {
|
|
540
540
|
const mins = Math.floor(seconds / 60);
|
|
@@ -598,7 +598,7 @@ function AudioPlayer({ src, compact, className }) {
|
|
|
598
598
|
{
|
|
599
599
|
type: "button",
|
|
600
600
|
className: cn(
|
|
601
|
-
|
|
601
|
+
import_AudioPlayer.default.playButton,
|
|
602
602
|
"inline-flex items-center justify-center",
|
|
603
603
|
compact ? "h-6 min-w-6 p-1" : "h-8 min-w-8 p-1.5"
|
|
604
604
|
),
|
|
@@ -612,7 +612,7 @@ function AudioPlayer({ src, compact, className }) {
|
|
|
612
612
|
{
|
|
613
613
|
ref: progressRef,
|
|
614
614
|
className: cn(
|
|
615
|
-
|
|
615
|
+
import_AudioPlayer.default.track,
|
|
616
616
|
"h-1 flex-1 cursor-pointer overflow-hidden rounded-full"
|
|
617
617
|
),
|
|
618
618
|
onClick: handleSeek,
|
|
@@ -620,7 +620,7 @@ function AudioPlayer({ src, compact, className }) {
|
|
|
620
620
|
"div",
|
|
621
621
|
{
|
|
622
622
|
className: cn(
|
|
623
|
-
|
|
623
|
+
import_AudioPlayer.default.progress,
|
|
624
624
|
"h-full transition-all duration-100 ease-linear"
|
|
625
625
|
),
|
|
626
626
|
style: { width: `${progress}%` }
|
|
@@ -628,7 +628,7 @@ function AudioPlayer({ src, compact, className }) {
|
|
|
628
628
|
)
|
|
629
629
|
}
|
|
630
630
|
),
|
|
631
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: cn(
|
|
631
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: cn(import_AudioPlayer.default.time, "min-w-10 text-xs font-medium"), children: isPlaying || currentTime > 0 ? formatTime(currentTime) : formatTime(duration) })
|
|
632
632
|
] })
|
|
633
633
|
] });
|
|
634
634
|
}
|
|
@@ -637,11 +637,7 @@ AudioPlayer.displayName = "AudioPlayer";
|
|
|
637
637
|
// src/avatar/Avatar.tsx
|
|
638
638
|
var React2 = __toESM(require("react"), 1);
|
|
639
639
|
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
|
|
640
|
+
var import_Avatar = __toESM(require("./Avatar.module-VPJKIZT3.module.css"), 1);
|
|
645
641
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
646
642
|
var sizeClasses2 = {
|
|
647
643
|
sm: "h-8 w-8",
|
|
@@ -673,7 +669,7 @@ var Avatar = React2.forwardRef(({ className, src, alt, fallback, size = "md", fa
|
|
|
673
669
|
{
|
|
674
670
|
className: cn(
|
|
675
671
|
"flex h-full w-full items-center justify-center rounded-full font-medium",
|
|
676
|
-
!fallbackClassName &&
|
|
672
|
+
!fallbackClassName && import_Avatar.default.fallback,
|
|
677
673
|
fallbackClassName
|
|
678
674
|
),
|
|
679
675
|
children: fallback
|
|
@@ -726,11 +722,7 @@ Badge.displayName = "Badge";
|
|
|
726
722
|
|
|
727
723
|
// src/beta-badge/BetaBadge.tsx
|
|
728
724
|
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
|
|
725
|
+
var import_BetaBadge = __toESM(require("./BetaBadge.module-W2AGK53A.module.css"), 1);
|
|
734
726
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
735
727
|
function BetaBadge({
|
|
736
728
|
className,
|
|
@@ -745,9 +737,9 @@ function BetaBadge({
|
|
|
745
737
|
{
|
|
746
738
|
"data-slot": "beta-badge",
|
|
747
739
|
className: cn(
|
|
748
|
-
|
|
740
|
+
import_BetaBadge.default.betaBadge,
|
|
749
741
|
"rounded-sm px-2 py-1 text-sm/4 font-semibold uppercase",
|
|
750
|
-
readOnly &&
|
|
742
|
+
readOnly && import_BetaBadge.default["betaBadge--readonly"],
|
|
751
743
|
className
|
|
752
744
|
),
|
|
753
745
|
...props,
|
|
@@ -838,11 +830,7 @@ BookmarkTabsTrigger.displayName = "BookmarkTabsTrigger";
|
|
|
838
830
|
// src/box-option-selector/BoxOptionSelector.tsx
|
|
839
831
|
var import_react2 = require("react");
|
|
840
832
|
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
|
|
833
|
+
var import_BoxOptionSelector = __toESM(require("./BoxOptionSelector.module-24AKP2OJ.module.css"), 1);
|
|
846
834
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
847
835
|
var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
848
836
|
({
|
|
@@ -878,9 +866,9 @@ var BoxOptionSelector = (0, import_react2.forwardRef)(
|
|
|
878
866
|
ref,
|
|
879
867
|
"data-slot": "box-option-selector",
|
|
880
868
|
className: cn(
|
|
881
|
-
|
|
869
|
+
import_BoxOptionSelector.default.boxOption,
|
|
882
870
|
"flex min-h-[116px] w-full max-w-[400px] cursor-pointer flex-col gap-4 rounded-lg border p-4 transition-all duration-200",
|
|
883
|
-
isSelected &&
|
|
871
|
+
isSelected && import_BoxOptionSelector.default["boxOption--selected"],
|
|
884
872
|
disabled && "cursor-not-allowed opacity-50"
|
|
885
873
|
),
|
|
886
874
|
onClick: handleClick,
|
|
@@ -1845,18 +1833,16 @@ function ScrollBar({
|
|
|
1845
1833
|
);
|
|
1846
1834
|
}
|
|
1847
1835
|
|
|
1848
|
-
// src/error-message/styles.module.css
|
|
1849
|
-
var styles_default = {};
|
|
1850
|
-
|
|
1851
1836
|
// src/error-message/ErrorMessage.tsx
|
|
1837
|
+
var import_styles = __toESM(require("./styles.module-VIYXJAAX.module.css"), 1);
|
|
1852
1838
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1853
1839
|
function ErrorMessage({ className, children, disabled }) {
|
|
1854
1840
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1855
1841
|
"div",
|
|
1856
1842
|
{
|
|
1857
1843
|
className: cn(
|
|
1858
|
-
|
|
1859
|
-
disabled &&
|
|
1844
|
+
import_styles.default.ErrorMessage,
|
|
1845
|
+
disabled && import_styles.default.ErrorMessage__disabled,
|
|
1860
1846
|
className
|
|
1861
1847
|
),
|
|
1862
1848
|
children
|
|
@@ -2032,7 +2018,7 @@ var StatusBadgeInternal = (0, import_react4.forwardRef)(
|
|
|
2032
2018
|
disabled = false,
|
|
2033
2019
|
...props
|
|
2034
2020
|
}, ref) => {
|
|
2035
|
-
const
|
|
2021
|
+
const styles25 = variantStyles[variant];
|
|
2036
2022
|
const hasText = !iconOnly && (children || !textOnly);
|
|
2037
2023
|
const hasIcon = !textOnly && showIcon;
|
|
2038
2024
|
const padding = (() => {
|
|
@@ -2047,15 +2033,15 @@ var StatusBadgeInternal = (0, import_react4.forwardRef)(
|
|
|
2047
2033
|
ref,
|
|
2048
2034
|
className: cn(
|
|
2049
2035
|
"inline-flex cursor-default items-center justify-center gap-1 rounded-3xl text-[14px] font-medium leading-4",
|
|
2050
|
-
|
|
2051
|
-
|
|
2036
|
+
styles25.container,
|
|
2037
|
+
styles25.text,
|
|
2052
2038
|
padding,
|
|
2053
2039
|
disabled && "opacity-50",
|
|
2054
2040
|
className
|
|
2055
2041
|
),
|
|
2056
2042
|
...props,
|
|
2057
2043
|
children: [
|
|
2058
|
-
hasIcon && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StatusBadgeIcon, { variant:
|
|
2044
|
+
hasIcon && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StatusBadgeIcon, { variant: styles25.icon, className: "size-4 flex-shrink-0" }),
|
|
2059
2045
|
hasText && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "whitespace-nowrap", children })
|
|
2060
2046
|
]
|
|
2061
2047
|
}
|
|
@@ -2261,10 +2247,8 @@ var import_react_table = require("@tanstack/react-table");
|
|
|
2261
2247
|
// src/table/Table.tsx
|
|
2262
2248
|
var import_react7 = require("react");
|
|
2263
2249
|
|
|
2264
|
-
// src/loading-bar/styles.module.css
|
|
2265
|
-
var styles_default2 = {};
|
|
2266
|
-
|
|
2267
2250
|
// src/loading-bar/LoadingBar.tsx
|
|
2251
|
+
var import_styles2 = __toESM(require("./styles.module-I3PJNRXG.module.css"), 1);
|
|
2268
2252
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2269
2253
|
function LoadingBar({ className }) {
|
|
2270
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)(
|
|
@@ -2272,7 +2256,7 @@ function LoadingBar({ className }) {
|
|
|
2272
2256
|
{
|
|
2273
2257
|
className: cn(
|
|
2274
2258
|
"absolute top-0 h-full rounded-full bg-[var(--primary)]",
|
|
2275
|
-
|
|
2259
|
+
import_styles2.default.bar
|
|
2276
2260
|
)
|
|
2277
2261
|
}
|
|
2278
2262
|
) }) });
|
|
@@ -3918,19 +3902,19 @@ var HaloIcon = (0, import_react34.forwardRef)(
|
|
|
3918
3902
|
size = "M",
|
|
3919
3903
|
className
|
|
3920
3904
|
}, ref) => {
|
|
3921
|
-
const
|
|
3905
|
+
const styles25 = statusStyles[status];
|
|
3922
3906
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3923
3907
|
"div",
|
|
3924
3908
|
{
|
|
3925
3909
|
ref,
|
|
3926
3910
|
className: cn(
|
|
3927
3911
|
"halo-icon flex items-center justify-center rounded-[50%]",
|
|
3928
|
-
|
|
3912
|
+
styles25.color,
|
|
3929
3913
|
{
|
|
3930
3914
|
"h-6 w-6 [&>svg]:h-4 [&>svg]:w-4": size === "M",
|
|
3931
3915
|
"h-8 w-8 [&>svg]:h-5 [&>svg]:w-5": size === "L",
|
|
3932
3916
|
"h-11 w-11 [&>svg]:h-5 [&>svg]:w-5": size === "XL",
|
|
3933
|
-
[
|
|
3917
|
+
[styles25.background]: variant === "default"
|
|
3934
3918
|
},
|
|
3935
3919
|
className
|
|
3936
3920
|
),
|
|
@@ -4503,28 +4487,28 @@ var FileInputButton = (0, import_react36.forwardRef)(
|
|
|
4503
4487
|
);
|
|
4504
4488
|
FileInputButton.displayName = "FileInputButton";
|
|
4505
4489
|
|
|
4506
|
-
// src/form-box/FormBox.module.css
|
|
4507
|
-
var FormBox_default = {};
|
|
4508
|
-
|
|
4509
4490
|
// src/form-box/Content.tsx
|
|
4491
|
+
var import_FormBox = __toESM(require("./FormBox.module-WG4SQBRR.module.css"), 1);
|
|
4510
4492
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4511
4493
|
function Content5({ children, className, ...props }) {
|
|
4512
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: cn(
|
|
4494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: cn(import_FormBox.default.content, className), ...props, children });
|
|
4513
4495
|
}
|
|
4514
4496
|
|
|
4515
4497
|
// src/form-box/Header.tsx
|
|
4498
|
+
var import_FormBox2 = __toESM(require("./FormBox.module-WG4SQBRR.module.css"), 1);
|
|
4516
4499
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4517
4500
|
function Header2({ children, className, ...props }) {
|
|
4518
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("h2", { className: cn(
|
|
4501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("h2", { className: cn(import_FormBox2.default.header, className), ...props, children });
|
|
4519
4502
|
}
|
|
4520
4503
|
|
|
4521
4504
|
// src/form-box/Root.tsx
|
|
4505
|
+
var import_FormBox3 = __toESM(require("./FormBox.module-WG4SQBRR.module.css"), 1);
|
|
4522
4506
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4523
4507
|
function Root10({ children, nested, className, ...props }) {
|
|
4524
4508
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4525
4509
|
"div",
|
|
4526
4510
|
{
|
|
4527
|
-
className: cn(
|
|
4511
|
+
className: cn(import_FormBox3.default.wrapper, nested && import_FormBox3.default.wrapperNested, className),
|
|
4528
4512
|
...props,
|
|
4529
4513
|
children
|
|
4530
4514
|
}
|
|
@@ -4532,9 +4516,10 @@ function Root10({ children, nested, className, ...props }) {
|
|
|
4532
4516
|
}
|
|
4533
4517
|
|
|
4534
4518
|
// src/form-box/SubHeader.tsx
|
|
4519
|
+
var import_FormBox4 = __toESM(require("./FormBox.module-WG4SQBRR.module.css"), 1);
|
|
4535
4520
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4536
4521
|
function SubHeader({ children, className, ...props }) {
|
|
4537
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h4", { className: cn(
|
|
4522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h4", { className: cn(import_FormBox4.default.subHeader, className), ...props, children });
|
|
4538
4523
|
}
|
|
4539
4524
|
|
|
4540
4525
|
// src/form-box/index.ts
|
|
@@ -4548,11 +4533,7 @@ var FormBox = {
|
|
|
4548
4533
|
// src/free-text-field/FreeTextField.tsx
|
|
4549
4534
|
var import_react37 = require("react");
|
|
4550
4535
|
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
|
|
4536
|
+
var import_styles3 = __toESM(require("./styles.module-SHDCFZJR.module.css"), 1);
|
|
4556
4537
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4557
4538
|
var FreeTextField = (0, import_react37.forwardRef)(
|
|
4558
4539
|
({
|
|
@@ -4598,23 +4579,23 @@ var FreeTextField = (0, import_react37.forwardRef)(
|
|
|
4598
4579
|
onBlur?.(event);
|
|
4599
4580
|
};
|
|
4600
4581
|
const fieldBoxClassName = cn(
|
|
4601
|
-
|
|
4602
|
-
autocompleted &&
|
|
4603
|
-
isErrorWrong && !autocompleted &&
|
|
4604
|
-
!autocompleted && !isErrorWrong && !isEmpty &&
|
|
4605
|
-
!autocompleted && !isErrorWrong && isEmpty &&
|
|
4606
|
-
isFocused && !hasError &&
|
|
4582
|
+
import_styles3.default.fieldBox,
|
|
4583
|
+
autocompleted && import_styles3.default.fieldBoxAutocompleted,
|
|
4584
|
+
isErrorWrong && !autocompleted && import_styles3.default.fieldBoxErrorWrong,
|
|
4585
|
+
!autocompleted && !isErrorWrong && !isEmpty && import_styles3.default.fieldBoxFilled,
|
|
4586
|
+
!autocompleted && !isErrorWrong && isEmpty && import_styles3.default.fieldBoxEmpty,
|
|
4587
|
+
isFocused && !hasError && import_styles3.default.fieldBoxFocused
|
|
4607
4588
|
);
|
|
4608
4589
|
const inputPlaceholder = fieldStyle === "new" ? label : placeholder;
|
|
4609
4590
|
const showFloatingLabel = fieldStyle === "new" && !isEmpty && Boolean(label);
|
|
4610
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn(
|
|
4611
|
-
fieldStyle === "current" && label && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className:
|
|
4612
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("label", { htmlFor: inputId, className:
|
|
4613
|
-
optional && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className:
|
|
4591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn(import_styles3.default.container, className), children: [
|
|
4592
|
+
fieldStyle === "current" && label && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: import_styles3.default.labelRow, children: [
|
|
4593
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("label", { htmlFor: inputId, className: import_styles3.default.labelText, children: label }),
|
|
4594
|
+
optional && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: import_styles3.default.optionalText, children: [
|
|
4614
4595
|
"- ",
|
|
4615
4596
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("em", { children: optionalLabel || t("optional") })
|
|
4616
4597
|
] }),
|
|
4617
|
-
tooltip && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className:
|
|
4598
|
+
tooltip && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: import_styles3.default.tooltip, children: tooltip })
|
|
4618
4599
|
] }),
|
|
4619
4600
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: fieldBoxClassName, children: [
|
|
4620
4601
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
@@ -4622,7 +4603,7 @@ var FreeTextField = (0, import_react37.forwardRef)(
|
|
|
4622
4603
|
{
|
|
4623
4604
|
ref,
|
|
4624
4605
|
id: inputId,
|
|
4625
|
-
className:
|
|
4606
|
+
className: import_styles3.default.input,
|
|
4626
4607
|
placeholder: inputPlaceholder,
|
|
4627
4608
|
value,
|
|
4628
4609
|
defaultValue: value === void 0 ? defaultValue : void 0,
|
|
@@ -4633,20 +4614,20 @@ var FreeTextField = (0, import_react37.forwardRef)(
|
|
|
4633
4614
|
...inputProps
|
|
4634
4615
|
}
|
|
4635
4616
|
),
|
|
4636
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className:
|
|
4617
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: import_styles3.default.icon, children: icon }),
|
|
4637
4618
|
showFloatingLabel && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4638
4619
|
"div",
|
|
4639
4620
|
{
|
|
4640
4621
|
className: cn(
|
|
4641
|
-
|
|
4642
|
-
autocompleted &&
|
|
4622
|
+
import_styles3.default.floatingLabel,
|
|
4623
|
+
autocompleted && import_styles3.default.floatingLabelAutocompleted
|
|
4643
4624
|
),
|
|
4644
4625
|
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4645
4626
|
"span",
|
|
4646
4627
|
{
|
|
4647
4628
|
className: cn(
|
|
4648
|
-
|
|
4649
|
-
isErrorWrong &&
|
|
4629
|
+
import_styles3.default.floatingLabelText,
|
|
4630
|
+
isErrorWrong && import_styles3.default.floatingLabelTextError
|
|
4650
4631
|
),
|
|
4651
4632
|
children: label
|
|
4652
4633
|
}
|
|
@@ -4654,8 +4635,8 @@ var FreeTextField = (0, import_react37.forwardRef)(
|
|
|
4654
4635
|
}
|
|
4655
4636
|
)
|
|
4656
4637
|
] }),
|
|
4657
|
-
supportingText && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className:
|
|
4658
|
-
error && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className:
|
|
4638
|
+
supportingText && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: import_styles3.default.supportingText, children: supportingText }),
|
|
4639
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: import_styles3.default.errorText, children: error })
|
|
4659
4640
|
] });
|
|
4660
4641
|
}
|
|
4661
4642
|
);
|
|
@@ -6093,11 +6074,7 @@ function Loader({
|
|
|
6093
6074
|
|
|
6094
6075
|
// src/metric-card/MetricCard.tsx
|
|
6095
6076
|
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
|
|
6077
|
+
var import_MetricCard = __toESM(require("./MetricCard.module-LEV46BXD.module.css"), 1);
|
|
6101
6078
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6102
6079
|
function MetricCard({
|
|
6103
6080
|
title,
|
|
@@ -6113,37 +6090,37 @@ function MetricCard({
|
|
|
6113
6090
|
"div",
|
|
6114
6091
|
{
|
|
6115
6092
|
className: cn(
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
loading &&
|
|
6093
|
+
import_MetricCard.default.MetricCard,
|
|
6094
|
+
import_MetricCard.default[`MetricCard--${variant}`],
|
|
6095
|
+
loading && import_MetricCard.default["MetricCard--loading"],
|
|
6119
6096
|
className
|
|
6120
6097
|
),
|
|
6121
6098
|
children: [
|
|
6122
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className:
|
|
6123
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className:
|
|
6124
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className:
|
|
6125
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h4", { className:
|
|
6099
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: import_MetricCard.default.MetricCard__iconContainer, children: icon }),
|
|
6100
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: import_MetricCard.default.MetricCard__content, children: [
|
|
6101
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: import_MetricCard.default.MetricCard__header, children: [
|
|
6102
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h4", { className: import_MetricCard.default.MetricCard__title, children: title }),
|
|
6126
6103
|
tooltip && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Tooltip, { side: "right", content: tooltip, contentClassName: "max-w-64", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6127
6104
|
"button",
|
|
6128
6105
|
{
|
|
6129
6106
|
type: "button",
|
|
6130
6107
|
className: cn(
|
|
6131
6108
|
"inline-flex text-[var(--chekin-color-gray-1)]",
|
|
6132
|
-
|
|
6109
|
+
import_MetricCard.default.MetricCard__tooltip
|
|
6133
6110
|
),
|
|
6134
6111
|
"aria-label": tooltip,
|
|
6135
6112
|
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_lucide_react23.CircleQuestionMark, { className: "h-4 w-4" })
|
|
6136
6113
|
}
|
|
6137
6114
|
) })
|
|
6138
6115
|
] }),
|
|
6139
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className:
|
|
6140
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className:
|
|
6116
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: import_MetricCard.default.MetricCard__footer, children: [
|
|
6117
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: import_MetricCard.default.MetricCard__value, children: value }),
|
|
6141
6118
|
!!percentage && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
6142
6119
|
"div",
|
|
6143
6120
|
{
|
|
6144
6121
|
className: cn(
|
|
6145
|
-
|
|
6146
|
-
percentage < 0 ?
|
|
6122
|
+
import_MetricCard.default.MetricCard__percentage,
|
|
6123
|
+
percentage < 0 ? import_MetricCard.default["--negative"] : ""
|
|
6147
6124
|
),
|
|
6148
6125
|
children: [
|
|
6149
6126
|
percentage < 0 ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_lucide_react23.TrendingDown, {}) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_lucide_react23.TrendingUp, {}),
|
|
@@ -6171,11 +6148,7 @@ var METRIC_CARD_VARIANTS = {
|
|
|
6171
6148
|
// src/modal/Modal.tsx
|
|
6172
6149
|
var import_react47 = require("react");
|
|
6173
6150
|
var import_lucide_react24 = require("lucide-react");
|
|
6174
|
-
|
|
6175
|
-
// src/modal/styles.module.css
|
|
6176
|
-
var styles_default4 = {};
|
|
6177
|
-
|
|
6178
|
-
// src/modal/Modal.tsx
|
|
6151
|
+
var import_styles4 = __toESM(require("./styles.module-74HHIGIE.module.css"), 1);
|
|
6179
6152
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6180
6153
|
var preventDefault = (event) => {
|
|
6181
6154
|
event.preventDefault();
|
|
@@ -6219,9 +6192,9 @@ function Modal({
|
|
|
6219
6192
|
overlayClassName,
|
|
6220
6193
|
className: cn(
|
|
6221
6194
|
"modal__content",
|
|
6222
|
-
|
|
6195
|
+
import_styles4.default.modal__content,
|
|
6223
6196
|
scrollableOverlay && "min-h-0",
|
|
6224
|
-
size === "compact" &&
|
|
6197
|
+
size === "compact" && import_styles4.default.modal__contentCompact,
|
|
6225
6198
|
className
|
|
6226
6199
|
),
|
|
6227
6200
|
lockScroll,
|
|
@@ -6232,16 +6205,16 @@ function Modal({
|
|
|
6232
6205
|
{
|
|
6233
6206
|
type: "button",
|
|
6234
6207
|
onClick: handleClose,
|
|
6235
|
-
className: cn("modal__close",
|
|
6208
|
+
className: cn("modal__close", import_styles4.default.modal__close),
|
|
6236
6209
|
"aria-label": "Close",
|
|
6237
6210
|
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_lucide_react24.X, { className: "h-5 w-5" })
|
|
6238
6211
|
}
|
|
6239
6212
|
),
|
|
6240
|
-
(iconSrc || iconProps?.src) && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: cn("modal__icon",
|
|
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",
|
|
6213
|
+
(iconSrc || iconProps?.src) && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: cn("modal__icon", import_styles4.default.modal__icon), children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("img", { src: iconSrc, alt: iconAlt ?? "", ...iconProps }) }),
|
|
6214
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogTitle, { className: cn("modal__title", import_styles4.default.modal__title), children: title }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogVisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogTitle, { children: "Dialog" }) }),
|
|
6215
|
+
text && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DialogDescription, { className: cn("modal__text", import_styles4.default.modal__text), children: text }),
|
|
6243
6216
|
children,
|
|
6244
|
-
buttons && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: cn("modal__buttons-wrapper",
|
|
6217
|
+
buttons && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: cn("modal__buttons-wrapper", import_styles4.default.modal__buttonsWrapper), children: buttons })
|
|
6245
6218
|
]
|
|
6246
6219
|
}
|
|
6247
6220
|
) });
|
|
@@ -6251,7 +6224,7 @@ var ModalButton = (0, import_react47.forwardRef)(
|
|
|
6251
6224
|
Button,
|
|
6252
6225
|
{
|
|
6253
6226
|
ref,
|
|
6254
|
-
className: cn("modal__button",
|
|
6227
|
+
className: cn("modal__button", import_styles4.default.modal__button, className),
|
|
6255
6228
|
size: size && "lg",
|
|
6256
6229
|
...props,
|
|
6257
6230
|
children
|
|
@@ -7020,10 +6993,8 @@ function useRadioOptions({ options, defaultValue, onChange }) {
|
|
|
7020
6993
|
};
|
|
7021
6994
|
}
|
|
7022
6995
|
|
|
7023
|
-
// src/radio/styles.module.css
|
|
7024
|
-
var styles_default5 = {};
|
|
7025
|
-
|
|
7026
6996
|
// src/radio/Radio.tsx
|
|
6997
|
+
var import_styles5 = __toESM(require("./styles.module-REEJNJNW.module.css"), 1);
|
|
7027
6998
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
7028
6999
|
var Radio = (0, import_react53.forwardRef)(
|
|
7029
7000
|
({ options, value, onChange, error, className = "", disabled = false, renderOption }, ref) => {
|
|
@@ -7052,8 +7023,8 @@ var Radio = (0, import_react53.forwardRef)(
|
|
|
7052
7023
|
{
|
|
7053
7024
|
className: cn(
|
|
7054
7025
|
"radio__wrapper",
|
|
7055
|
-
|
|
7056
|
-
(disabled || option.disabled) &&
|
|
7026
|
+
import_styles5.default.radio__wrapper,
|
|
7027
|
+
(disabled || option.disabled) && import_styles5.default.radio__wrapper_disabled
|
|
7057
7028
|
),
|
|
7058
7029
|
children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
7059
7030
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
@@ -7065,7 +7036,7 @@ var Radio = (0, import_react53.forwardRef)(
|
|
|
7065
7036
|
className: "radio__indicator"
|
|
7066
7037
|
}
|
|
7067
7038
|
),
|
|
7068
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: cn(
|
|
7039
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: cn(import_styles5.default.radio__label, "radio_label"), children: option.label })
|
|
7069
7040
|
] })
|
|
7070
7041
|
},
|
|
7071
7042
|
option.value
|
|
@@ -7165,11 +7136,7 @@ function RatingProgress({
|
|
|
7165
7136
|
|
|
7166
7137
|
// src/rating-radio-group/RatingRadioGroup.tsx
|
|
7167
7138
|
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
|
|
7139
|
+
var import_styles6 = __toESM(require("./styles.module-H7R2VV2Q.module.css"), 1);
|
|
7173
7140
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7174
7141
|
var getStarColor = (optionValue) => (value) => {
|
|
7175
7142
|
if (value >= optionValue) return "#facc15";
|
|
@@ -7183,13 +7150,13 @@ function RatingRadioGroup({
|
|
|
7183
7150
|
className,
|
|
7184
7151
|
options
|
|
7185
7152
|
}) {
|
|
7186
|
-
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("fieldset", { className: cn(className,
|
|
7187
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("legend", { className:
|
|
7188
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: cn(
|
|
7153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("fieldset", { className: cn(className, import_styles6.default.RatingRadioGroup), children: [
|
|
7154
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("legend", { className: import_styles6.default.RatingRadioGroup__legend, children: label }),
|
|
7155
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: cn(import_styles6.default.RatingRadioGroup__list, "RatingRadioGroup__list"), children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("label", { className: import_styles6.default.RatingRadioGroup__label, children: [
|
|
7189
7156
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7190
7157
|
"input",
|
|
7191
7158
|
{
|
|
7192
|
-
className:
|
|
7159
|
+
className: import_styles6.default.RatingRadioGroup__input,
|
|
7193
7160
|
type: "radio",
|
|
7194
7161
|
name,
|
|
7195
7162
|
checked: value === option.value,
|
|
@@ -7200,7 +7167,7 @@ function RatingRadioGroup({
|
|
|
7200
7167
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7201
7168
|
import_lucide_react29.Star,
|
|
7202
7169
|
{
|
|
7203
|
-
className:
|
|
7170
|
+
className: import_styles6.default.RatingRadioGroup__star,
|
|
7204
7171
|
size: 24,
|
|
7205
7172
|
"aria-label": option.label,
|
|
7206
7173
|
color: getStarColor(option.value)(value || 0),
|
|
@@ -7425,10 +7392,8 @@ var SubSectionSize = /* @__PURE__ */ ((SubSectionSize2) => {
|
|
|
7425
7392
|
return SubSectionSize2;
|
|
7426
7393
|
})(SubSectionSize || {});
|
|
7427
7394
|
|
|
7428
|
-
// src/section/Section.module.css
|
|
7429
|
-
var Section_default = {};
|
|
7430
|
-
|
|
7431
7395
|
// src/section/Section.tsx
|
|
7396
|
+
var import_Section = __toESM(require("./Section.module-6UJGBE6B.module.css"), 1);
|
|
7432
7397
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
7433
7398
|
function TooltipInfo({ content, className }) {
|
|
7434
7399
|
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Tooltip, { side: "right", content, contentClassName: "max-w-64", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
@@ -7461,55 +7426,53 @@ var Section = (0, import_react54.forwardRef)(
|
|
|
7461
7426
|
{
|
|
7462
7427
|
ref,
|
|
7463
7428
|
className: cn(
|
|
7464
|
-
|
|
7465
|
-
loading &&
|
|
7466
|
-
disabled &&
|
|
7429
|
+
import_Section.default.section,
|
|
7430
|
+
loading && import_Section.default.section_loading,
|
|
7431
|
+
disabled && import_Section.default.section_disabled,
|
|
7467
7432
|
{ "!hidden": hidden },
|
|
7468
7433
|
className
|
|
7469
7434
|
),
|
|
7470
7435
|
children: [
|
|
7471
|
-
(title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className:
|
|
7436
|
+
(title || subtitle) && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: import_Section.default.section__header, children: [
|
|
7472
7437
|
title && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
7473
7438
|
"div",
|
|
7474
7439
|
{
|
|
7475
7440
|
className: cn(
|
|
7476
|
-
|
|
7477
|
-
size === 0 /* L */ &&
|
|
7441
|
+
import_Section.default.section__title,
|
|
7442
|
+
size === 0 /* L */ && import_Section.default.section__titleLarge
|
|
7478
7443
|
),
|
|
7479
7444
|
children: [
|
|
7480
7445
|
title,
|
|
7481
|
-
titleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7482
|
-
linkContent && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className:
|
|
7446
|
+
titleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: import_Section.default.section__titleTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TooltipInfo, { content: titleTooltip }) }),
|
|
7447
|
+
linkContent && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: import_Section.default.section__titleLink, children: linkContent })
|
|
7483
7448
|
]
|
|
7484
7449
|
}
|
|
7485
7450
|
),
|
|
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:
|
|
7451
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: import_Section.default.section__subtitleWrapper, children: [
|
|
7452
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: import_Section.default.section__subtitle, children: subtitle }),
|
|
7453
|
+
subtitleTooltip && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: import_Section.default.section__subtitleTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(TooltipInfo, { content: subtitleTooltip }) })
|
|
7489
7454
|
] })
|
|
7490
7455
|
] }),
|
|
7491
|
-
loading && showLoader ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Loader, { className:
|
|
7456
|
+
loading && showLoader ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Loader, { className: import_Section.default.section__loader }) : children
|
|
7492
7457
|
]
|
|
7493
7458
|
}
|
|
7494
7459
|
)
|
|
7495
7460
|
);
|
|
7496
7461
|
Section.displayName = "Section";
|
|
7497
7462
|
var SubSection = (0, import_react54.forwardRef)(
|
|
7498
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Section, { ref, className: cn(
|
|
7463
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Section, { ref, className: cn(import_Section.default.section_sub, className), ...props })
|
|
7499
7464
|
);
|
|
7500
7465
|
SubSection.displayName = "SubSection";
|
|
7501
7466
|
var DividingSubsection = (0, import_react54.forwardRef)(
|
|
7502
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SubSection, { ref, className: cn(
|
|
7467
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(SubSection, { ref, className: cn(import_Section.default.section_dividing, className), ...props })
|
|
7503
7468
|
);
|
|
7504
7469
|
DividingSubsection.displayName = "DividingSubsection";
|
|
7505
7470
|
|
|
7506
7471
|
// src/selectors/Selectors.tsx
|
|
7507
7472
|
var import_react55 = require("react");
|
|
7508
7473
|
|
|
7509
|
-
// src/selector-button/styles.module.css
|
|
7510
|
-
var styles_default7 = {};
|
|
7511
|
-
|
|
7512
7474
|
// src/selector-button/SelectorButton.tsx
|
|
7475
|
+
var import_styles7 = __toESM(require("./styles.module-AAYSW4RF.module.css"), 1);
|
|
7513
7476
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
7514
7477
|
function SelectorButton({
|
|
7515
7478
|
active,
|
|
@@ -7538,11 +7501,11 @@ function SelectorButton({
|
|
|
7538
7501
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
7539
7502
|
"label",
|
|
7540
7503
|
{
|
|
7541
|
-
className: cn(
|
|
7542
|
-
[
|
|
7543
|
-
[
|
|
7544
|
-
[
|
|
7545
|
-
[
|
|
7504
|
+
className: cn(import_styles7.default.styledButton, "selector-button", className, {
|
|
7505
|
+
[import_styles7.default.active]: active,
|
|
7506
|
+
[import_styles7.default.disabled]: disabled,
|
|
7507
|
+
[import_styles7.default.loading]: loading,
|
|
7508
|
+
[import_styles7.default.readOnly]: readOnly
|
|
7546
7509
|
}),
|
|
7547
7510
|
...props,
|
|
7548
7511
|
children: [
|
|
@@ -7557,17 +7520,15 @@ function SelectorButton({
|
|
|
7557
7520
|
readOnly
|
|
7558
7521
|
}
|
|
7559
7522
|
),
|
|
7560
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className:
|
|
7523
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: import_styles7.default.content, children })
|
|
7561
7524
|
]
|
|
7562
7525
|
}
|
|
7563
7526
|
);
|
|
7564
7527
|
}
|
|
7565
7528
|
SelectorButton.displayName = "SelectorButton";
|
|
7566
7529
|
|
|
7567
|
-
// src/selectors/styles.module.css
|
|
7568
|
-
var styles_default8 = {};
|
|
7569
|
-
|
|
7570
7530
|
// src/selectors/Selectors.tsx
|
|
7531
|
+
var import_styles8 = __toESM(require("./styles.module-4AVOK5SA.module.css"), 1);
|
|
7571
7532
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
7572
7533
|
var getValueArray = (value) => {
|
|
7573
7534
|
if (value) {
|
|
@@ -7626,14 +7587,14 @@ function SelectorsInternal({
|
|
|
7626
7587
|
onAnySelectorActive?.(isAnyActive);
|
|
7627
7588
|
}, [isAnyActive, onAnySelectorActive]);
|
|
7628
7589
|
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
|
|
7629
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className:
|
|
7590
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: import_styles8.default.labelWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: cn(import_styles8.default.name, "label"), children: label }) }),
|
|
7630
7591
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
7631
7592
|
"div",
|
|
7632
7593
|
{
|
|
7633
7594
|
ref,
|
|
7634
7595
|
className: cn(className, {
|
|
7635
|
-
[
|
|
7636
|
-
[
|
|
7596
|
+
[import_styles8.default.selectorsWrapperTab]: variant === "TAB",
|
|
7597
|
+
[import_styles8.default.selectorsWrapperDefault]: variant !== "TAB"
|
|
7637
7598
|
}),
|
|
7638
7599
|
children: options.map((option, index) => {
|
|
7639
7600
|
const isSelected = getValueArray(value).includes(option.value);
|
|
@@ -7651,10 +7612,10 @@ function SelectorsInternal({
|
|
|
7651
7612
|
disabled: isDisabled,
|
|
7652
7613
|
onClick: (event) => onClick?.(event, option),
|
|
7653
7614
|
onChange: handleChange(option),
|
|
7654
|
-
className: variant === "TAB" ? cn(
|
|
7655
|
-
[
|
|
7656
|
-
[
|
|
7657
|
-
[
|
|
7615
|
+
className: variant === "TAB" ? cn(import_styles8.default.selectorButton, {
|
|
7616
|
+
[import_styles8.default.active]: isSelected,
|
|
7617
|
+
[import_styles8.default.readOnly]: isReadOnly,
|
|
7618
|
+
[import_styles8.default.sizeSm]: size === "sm"
|
|
7658
7619
|
}) : "selector-button",
|
|
7659
7620
|
children: getSelectorContent(option.label, isDisabled, isReadOnly, isSelected)
|
|
7660
7621
|
},
|
|
@@ -9017,11 +8978,7 @@ function TablePlaceholder({
|
|
|
9017
8978
|
|
|
9018
8979
|
// src/task-card/TaskCard.tsx
|
|
9019
8980
|
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
|
|
8981
|
+
var import_TaskCard = __toESM(require("./TaskCard.module-AVGS4US3.module.css"), 1);
|
|
9025
8982
|
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
9026
8983
|
function TaskCard({
|
|
9027
8984
|
title,
|
|
@@ -9037,27 +8994,27 @@ function TaskCard({
|
|
|
9037
8994
|
"div",
|
|
9038
8995
|
{
|
|
9039
8996
|
className: cn(
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
onClick &&
|
|
8997
|
+
import_TaskCard.default.TaskCard,
|
|
8998
|
+
import_TaskCard.default[`TaskCard--${eventType}`],
|
|
8999
|
+
onClick && import_TaskCard.default["TaskCard--clickable"],
|
|
9043
9000
|
className
|
|
9044
9001
|
),
|
|
9045
9002
|
onClick,
|
|
9046
9003
|
role: onClick ? "button" : void 0,
|
|
9047
9004
|
tabIndex: onClick ? 0 : void 0,
|
|
9048
9005
|
children: [
|
|
9049
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className:
|
|
9050
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className:
|
|
9051
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("h4", { className:
|
|
9052
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("p", { className:
|
|
9006
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: import_TaskCard.default.TaskCard__indicator }),
|
|
9007
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: import_TaskCard.default.TaskCard__content, children: [
|
|
9008
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("h4", { className: import_TaskCard.default.TaskCard__title, children: title }),
|
|
9009
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("p", { className: import_TaskCard.default.TaskCard__date, children: description })
|
|
9053
9010
|
] }),
|
|
9054
|
-
shouldShowActions && /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className:
|
|
9011
|
+
shouldShowActions && /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: import_TaskCard.default.TaskCard__actions, children: [
|
|
9055
9012
|
shouldShowCount && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9056
9013
|
"div",
|
|
9057
9014
|
{
|
|
9058
9015
|
className: cn(
|
|
9059
|
-
|
|
9060
|
-
|
|
9016
|
+
import_TaskCard.default.TaskCard__count,
|
|
9017
|
+
import_TaskCard.default[`TaskCard__count--${eventType}`]
|
|
9061
9018
|
),
|
|
9062
9019
|
children: count
|
|
9063
9020
|
}
|
|
@@ -9065,7 +9022,7 @@ function TaskCard({
|
|
|
9065
9022
|
onClick && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9066
9023
|
"button",
|
|
9067
9024
|
{
|
|
9068
|
-
className:
|
|
9025
|
+
className: import_TaskCard.default.TaskCard__arrowButton,
|
|
9069
9026
|
onClick: (event) => {
|
|
9070
9027
|
event.stopPropagation();
|
|
9071
9028
|
onClick?.();
|
|
@@ -9336,10 +9293,8 @@ var FieldError = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime120
|
|
|
9336
9293
|
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
9337
9294
|
var SupportingText = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { id, className: "mt-1 text-xs italic text-chekin-gray-2", children });
|
|
9338
9295
|
|
|
9339
|
-
// src/text-field/textField.module.css
|
|
9340
|
-
var textField_default = {};
|
|
9341
|
-
|
|
9342
9296
|
// src/text-field/TextField.tsx
|
|
9297
|
+
var import_textField = __toESM(require("./textField.module-5W2LJGIC.module.css"), 1);
|
|
9343
9298
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
9344
9299
|
var inputVariants = (0, import_class_variance_authority14.cva)(
|
|
9345
9300
|
[
|
|
@@ -9447,7 +9402,7 @@ var TextField = React29.forwardRef(
|
|
|
9447
9402
|
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
9448
9403
|
"div",
|
|
9449
9404
|
{
|
|
9450
|
-
className: cn("relative flex w-full flex-col",
|
|
9405
|
+
className: cn("relative flex w-full flex-col", import_textField.default.root, wrapperClassName),
|
|
9451
9406
|
children: [
|
|
9452
9407
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "relative", children: [
|
|
9453
9408
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
@@ -9486,7 +9441,7 @@ var TextField = React29.forwardRef(
|
|
|
9486
9441
|
}
|
|
9487
9442
|
);
|
|
9488
9443
|
}
|
|
9489
|
-
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("flex w-full flex-col",
|
|
9444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("flex w-full flex-col", import_textField.default.root, wrapperClassName), children: [
|
|
9490
9445
|
label && /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "mb-1 flex items-center gap-1", children: [
|
|
9491
9446
|
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9492
9447
|
LabelPrimitive2.Root,
|
|
@@ -9528,16 +9483,12 @@ TextField.displayName = "TextField";
|
|
|
9528
9483
|
|
|
9529
9484
|
// src/textarea/Textarea.tsx
|
|
9530
9485
|
var import_react67 = require("react");
|
|
9531
|
-
|
|
9532
|
-
// src/textarea/styles.module.css
|
|
9533
|
-
var styles_default9 = {};
|
|
9534
|
-
|
|
9535
|
-
// src/textarea/Textarea.tsx
|
|
9486
|
+
var import_styles9 = __toESM(require("./styles.module-6FWQEZTQ.module.css"), 1);
|
|
9536
9487
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
9537
9488
|
var Textarea = (0, import_react67.forwardRef)(
|
|
9538
9489
|
({ className, textareaClassName, label, disabled, name, invalid, ...textareaProps }, ref) => {
|
|
9539
9490
|
const inputId = (0, import_react67.useId)();
|
|
9540
|
-
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: cn(
|
|
9491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: cn(import_styles9.default.container, className), children: [
|
|
9541
9492
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
9542
9493
|
"textarea",
|
|
9543
9494
|
{
|
|
@@ -9545,9 +9496,9 @@ var Textarea = (0, import_react67.forwardRef)(
|
|
|
9545
9496
|
id: inputId,
|
|
9546
9497
|
name,
|
|
9547
9498
|
disabled,
|
|
9548
|
-
className: cn(
|
|
9549
|
-
[
|
|
9550
|
-
[
|
|
9499
|
+
className: cn(import_styles9.default.textarea, textareaClassName, {
|
|
9500
|
+
[import_styles9.default.textareaError]: invalid,
|
|
9501
|
+
[import_styles9.default.textareaDisabled]: disabled
|
|
9551
9502
|
}),
|
|
9552
9503
|
...textareaProps
|
|
9553
9504
|
}
|
|
@@ -9556,9 +9507,9 @@ var Textarea = (0, import_react67.forwardRef)(
|
|
|
9556
9507
|
"label",
|
|
9557
9508
|
{
|
|
9558
9509
|
htmlFor: inputId,
|
|
9559
|
-
className: cn(
|
|
9560
|
-
[
|
|
9561
|
-
[
|
|
9510
|
+
className: cn(import_styles9.default.label, {
|
|
9511
|
+
[import_styles9.default.labelError]: invalid,
|
|
9512
|
+
[import_styles9.default.labelDisabled]: disabled
|
|
9562
9513
|
}),
|
|
9563
9514
|
children: label
|
|
9564
9515
|
}
|
|
@@ -9575,20 +9526,18 @@ var LABEL_PLACEMENT = /* @__PURE__ */ ((LABEL_PLACEMENT2) => {
|
|
|
9575
9526
|
return LABEL_PLACEMENT2;
|
|
9576
9527
|
})(LABEL_PLACEMENT || {});
|
|
9577
9528
|
|
|
9578
|
-
// src/three-dots-loader/styles.module.css
|
|
9579
|
-
var styles_default10 = {};
|
|
9580
|
-
|
|
9581
9529
|
// src/three-dots-loader/ThreeDotsLoader.tsx
|
|
9530
|
+
var import_styles10 = __toESM(require("./styles.module-Y6YCV6UA.module.css"), 1);
|
|
9582
9531
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
9583
9532
|
function Dots({
|
|
9584
9533
|
height,
|
|
9585
9534
|
width,
|
|
9586
9535
|
color
|
|
9587
9536
|
}) {
|
|
9588
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("span", { className:
|
|
9589
|
-
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { className:
|
|
9590
|
-
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { className:
|
|
9591
|
-
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { className:
|
|
9537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("span", { className: import_styles10.default.dots, style: { height, width }, "aria-hidden": "true", children: [
|
|
9538
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { className: import_styles10.default.dot, style: { backgroundColor: color } }),
|
|
9539
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { className: import_styles10.default.dot, style: { backgroundColor: color } }),
|
|
9540
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { className: import_styles10.default.dot, style: { backgroundColor: color } })
|
|
9592
9541
|
] });
|
|
9593
9542
|
}
|
|
9594
9543
|
function ThreeDotsLoader({
|
|
@@ -9601,7 +9550,7 @@ function ThreeDotsLoader({
|
|
|
9601
9550
|
}) {
|
|
9602
9551
|
const dots = /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Dots, { color, height, width });
|
|
9603
9552
|
if (label) {
|
|
9604
|
-
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className: cn(
|
|
9553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { className: cn(import_styles10.default.Loader, className), children: labelPlacement === 0 /* right */ ? /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
|
|
9605
9554
|
dots,
|
|
9606
9555
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { children: label })
|
|
9607
9556
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
|