@chekinapp/ui 0.0.37 → 0.0.39
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 +132 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +132 -96
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -141,7 +141,7 @@ var typeStyles = {
|
|
|
141
141
|
["LIGHT" /* LIGHT */]: ""
|
|
142
142
|
};
|
|
143
143
|
function AlertBox({
|
|
144
|
-
|
|
144
|
+
children,
|
|
145
145
|
className = "",
|
|
146
146
|
withIcon = true,
|
|
147
147
|
size = "L" /* L */,
|
|
@@ -161,7 +161,7 @@ function AlertBox({
|
|
|
161
161
|
),
|
|
162
162
|
children: [
|
|
163
163
|
isIconVisible && (customIcon || getIcon(type)),
|
|
164
|
-
/* @__PURE__ */ jsx2("div", { className: "max-w-4xl text-left font-medium lg:max-w-full", children
|
|
164
|
+
/* @__PURE__ */ jsx2("div", { className: "max-w-4xl text-left font-medium lg:max-w-full", children })
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
167
|
);
|
|
@@ -802,8 +802,10 @@ function Spinner() {
|
|
|
802
802
|
"path",
|
|
803
803
|
{
|
|
804
804
|
className: "opacity-75",
|
|
805
|
-
|
|
806
|
-
|
|
805
|
+
stroke: "currentColor",
|
|
806
|
+
strokeWidth: "4",
|
|
807
|
+
strokeLinecap: "round",
|
|
808
|
+
d: "M12 2a10 10 0 0 1 10 10"
|
|
807
809
|
}
|
|
808
810
|
)
|
|
809
811
|
]
|
|
@@ -1191,8 +1193,8 @@ function TooltipContent({
|
|
|
1191
1193
|
"origin-[var(--radix-tooltip-content-transform-origin)] z-50 w-fit text-balance",
|
|
1192
1194
|
"rounded-md px-4 py-2 text-sm font-medium",
|
|
1193
1195
|
{
|
|
1194
|
-
"bg-white text-chekin-navy shadow-[0_0_10px_0_rgba(143,143,143,0.30)]": variant === "light",
|
|
1195
|
-
"bg-chekin-navy text-white": variant === "dark"
|
|
1196
|
+
"bg-[var(--chekin-color-white)] text-[var(--chekin-color-brand-navy)] shadow-[0_0_10px_0_rgba(143,143,143,0.30)]": variant === "light",
|
|
1197
|
+
"bg-[var(--chekin-color-brand-navy)] text-[var(--chekin-color-white)]": variant === "dark"
|
|
1196
1198
|
},
|
|
1197
1199
|
className
|
|
1198
1200
|
),
|
|
@@ -1205,8 +1207,8 @@ function TooltipContent({
|
|
|
1205
1207
|
className: cn(
|
|
1206
1208
|
"z-50 size-3 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]",
|
|
1207
1209
|
{
|
|
1208
|
-
"bg-white fill-white": variant === "light",
|
|
1209
|
-
"bg-chekin-navy fill-chekin-navy": variant === "dark"
|
|
1210
|
+
"bg-[var(--chekin-color-white)] fill-[var(--chekin-color-white)]": variant === "light",
|
|
1211
|
+
"bg-[var(--chekin-color-brand-navy)] fill-[var(--chekin-color-brand-navy)]": variant === "dark"
|
|
1210
1212
|
}
|
|
1211
1213
|
)
|
|
1212
1214
|
}
|
|
@@ -1588,42 +1590,66 @@ function StatusBadgeIcon({ variant, className }) {
|
|
|
1588
1590
|
};
|
|
1589
1591
|
switch (variant) {
|
|
1590
1592
|
case "clock-blue":
|
|
1591
|
-
return /* @__PURE__ */ jsx23(
|
|
1593
|
+
return /* @__PURE__ */ jsx23(
|
|
1594
|
+
Clock,
|
|
1595
|
+
{
|
|
1596
|
+
...iconProps,
|
|
1597
|
+
className: cn("text-[var(--chekin-color-brand-blue)]", className)
|
|
1598
|
+
}
|
|
1599
|
+
);
|
|
1592
1600
|
case "tick-blue":
|
|
1593
|
-
return /* @__PURE__ */ jsx23(
|
|
1601
|
+
return /* @__PURE__ */ jsx23(
|
|
1602
|
+
Check4,
|
|
1603
|
+
{
|
|
1604
|
+
...iconProps,
|
|
1605
|
+
className: cn("text-[var(--chekin-color-brand-blue)]", className)
|
|
1606
|
+
}
|
|
1607
|
+
);
|
|
1594
1608
|
case "tick-green":
|
|
1595
1609
|
return /* @__PURE__ */ jsx23(Check4, { ...iconProps, className: cn("text-emerald-600", className) });
|
|
1596
1610
|
case "x-red":
|
|
1597
|
-
return /* @__PURE__ */ jsx23(
|
|
1611
|
+
return /* @__PURE__ */ jsx23(
|
|
1612
|
+
X,
|
|
1613
|
+
{
|
|
1614
|
+
...iconProps,
|
|
1615
|
+
className: cn("text-[var(--chekin-color-brand-red)]", className)
|
|
1616
|
+
}
|
|
1617
|
+
);
|
|
1598
1618
|
case "clock-grey":
|
|
1599
1619
|
default:
|
|
1600
|
-
return /* @__PURE__ */ jsx23(
|
|
1620
|
+
return /* @__PURE__ */ jsx23(
|
|
1621
|
+
Clock,
|
|
1622
|
+
{
|
|
1623
|
+
...iconProps,
|
|
1624
|
+
className: cn("text-[var(--chekin-color-gray-2)]", className)
|
|
1625
|
+
}
|
|
1626
|
+
);
|
|
1601
1627
|
}
|
|
1602
1628
|
}
|
|
1603
1629
|
var variantStyles = {
|
|
1604
1630
|
neutral: {
|
|
1605
|
-
container: "bg-chekin-surface-input-empty",
|
|
1606
|
-
text: "text-chekin-gray-2",
|
|
1631
|
+
container: "bg-[var(--chekin-color-surface-input-empty)]",
|
|
1632
|
+
text: "text-[var(--chekin-color-gray-2)]",
|
|
1607
1633
|
icon: "clock-grey"
|
|
1608
1634
|
},
|
|
1609
1635
|
"progress-blue": {
|
|
1610
|
-
container: "bg-chekin-surface-autocomplete",
|
|
1611
|
-
text: "text-chekin-blue",
|
|
1636
|
+
container: "bg-[var(--chekin-color-surface-autocomplete)]",
|
|
1637
|
+
text: "text-[var(--chekin-color-brand-blue)]",
|
|
1612
1638
|
icon: "clock-blue"
|
|
1613
1639
|
},
|
|
1614
1640
|
"progress-blue-light": {
|
|
1615
|
-
container: "bg-chekin-surface-pressed",
|
|
1616
|
-
text: "text-chekin-blue",
|
|
1641
|
+
container: "bg-[var(--chekin-color-surface-pressed)]",
|
|
1642
|
+
text: "text-[var(--chekin-color-brand-blue)]",
|
|
1617
1643
|
icon: "clock-blue"
|
|
1618
1644
|
},
|
|
1619
1645
|
"progress-grey": {
|
|
1620
|
-
container: "bg-chekin-surface-input-empty",
|
|
1621
|
-
text: "text-chekin-gray-2",
|
|
1646
|
+
container: "bg-[var(--chekin-color-surface-input-empty)]",
|
|
1647
|
+
text: "text-[var(--chekin-color-gray-2)]",
|
|
1622
1648
|
icon: "clock-grey"
|
|
1623
1649
|
},
|
|
1624
1650
|
"success-blue": {
|
|
1625
|
-
container: "bg-chekin-surface-autocomplete",
|
|
1626
|
-
text: "text-chekin-blue",
|
|
1651
|
+
container: "bg-[var(--chekin-color-surface-autocomplete)]",
|
|
1652
|
+
text: "text-[var(--chekin-color-brand-blue)]",
|
|
1627
1653
|
icon: "tick-blue"
|
|
1628
1654
|
},
|
|
1629
1655
|
"success-green": {
|
|
@@ -1633,7 +1659,7 @@ var variantStyles = {
|
|
|
1633
1659
|
},
|
|
1634
1660
|
error: {
|
|
1635
1661
|
container: "bg-red-50",
|
|
1636
|
-
text: "text-chekin-red",
|
|
1662
|
+
text: "text-[var(--chekin-color-brand-red)]",
|
|
1637
1663
|
icon: "x-red"
|
|
1638
1664
|
}
|
|
1639
1665
|
};
|
|
@@ -3632,9 +3658,9 @@ import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
|
3632
3658
|
var switchVariants = cva7(
|
|
3633
3659
|
[
|
|
3634
3660
|
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
|
|
3635
|
-
"focus-visible:outline-none focus-visible:shadow-chekin-focus",
|
|
3661
|
+
"focus-visible:outline-none focus-visible:shadow-[var(--chekin-shadow-focus)]",
|
|
3636
3662
|
"disabled:cursor-not-allowed disabled:opacity-50 aria-busy:cursor-wait aria-busy:opacity-50",
|
|
3637
|
-
"data-[state=checked]:bg-chekin-blue data-[state=unchecked]:bg-chekin-gray-2"
|
|
3663
|
+
"data-[state=checked]:bg-[var(--chekin-color-brand-blue)] data-[state=unchecked]:bg-[var(--chekin-color-gray-2)]"
|
|
3638
3664
|
],
|
|
3639
3665
|
{
|
|
3640
3666
|
variants: {
|
|
@@ -3676,7 +3702,7 @@ var Switch = React16.forwardRef(
|
|
|
3676
3702
|
{
|
|
3677
3703
|
ref,
|
|
3678
3704
|
className: cn(switchVariants({ size, readOnly }), className),
|
|
3679
|
-
disabled: props.disabled,
|
|
3705
|
+
disabled: props.disabled && !readOnly,
|
|
3680
3706
|
...props,
|
|
3681
3707
|
id: fieldId,
|
|
3682
3708
|
onCheckedChange: readOnly ? void 0 : onChange,
|
|
@@ -7233,8 +7259,8 @@ function SelectorButton({
|
|
|
7233
7259
|
"label",
|
|
7234
7260
|
{
|
|
7235
7261
|
className: cn(
|
|
7236
|
-
"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-[
|
|
7237
|
-
active && "active border-[
|
|
7262
|
+
"selector-button box-border flex h-12 min-w-[117px] cursor-pointer select-none items-center rounded-[6px] border border-[#cecede] bg-[#f2f2fa] px-4 text-left text-[15px] font-semibold text-[#9696b9] outline-none transition-all duration-75 ease-in-out hover:border-[var(--chekin-color-brand-blue)] active:opacity-100 [&_input]:absolute [&_input]:h-0 [&_input]:w-0 [&_input]:cursor-pointer [&_input]:opacity-0",
|
|
7263
|
+
active && "active border-[var(--chekin-color-brand-blue)] bg-white text-[var(--chekin-color-brand-blue)]",
|
|
7238
7264
|
disabled && "disabled cursor-not-allowed opacity-30 hover:border-[#cecede]",
|
|
7239
7265
|
loading && "loading cursor-progress",
|
|
7240
7266
|
readOnly && "readOnly cursor-default",
|
|
@@ -7379,7 +7405,7 @@ function Separator3({
|
|
|
7379
7405
|
decorative,
|
|
7380
7406
|
orientation,
|
|
7381
7407
|
className: cn(
|
|
7382
|
-
"shrink-0 bg-chekin-gray-separator data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
7408
|
+
"shrink-0 bg-[var(--chekin-color-gray-separator)] data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
7383
7409
|
className
|
|
7384
7410
|
),
|
|
7385
7411
|
...props
|
|
@@ -7432,17 +7458,17 @@ function SheetContent({
|
|
|
7432
7458
|
{
|
|
7433
7459
|
"data-slot": "sheet-content",
|
|
7434
7460
|
className: cn(
|
|
7435
|
-
"fixed z-50 flex flex-col gap-4 bg-white text-chekin-navy shadow-lg transition ease-in-out data-[state=open]:duration-500 data-[state=closed]:duration-300",
|
|
7436
|
-
side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l border-chekin-gray-3 data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right sm:max-w-sm",
|
|
7437
|
-
side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r border-chekin-gray-3 data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left sm:max-w-sm",
|
|
7438
|
-
side === "top" && "inset-x-0 top-0 h-auto border-b border-chekin-gray-3 data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",
|
|
7439
|
-
side === "bottom" && "inset-x-0 bottom-0 h-auto border-t border-chekin-gray-3 data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom",
|
|
7461
|
+
"fixed z-50 flex flex-col gap-4 bg-white text-[var(--chekin-color-brand-navy)] shadow-lg transition ease-in-out data-[state=open]:duration-500 data-[state=closed]:duration-300",
|
|
7462
|
+
side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l border-[var(--chekin-color-gray-3)] data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right sm:max-w-sm",
|
|
7463
|
+
side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r border-[var(--chekin-color-gray-3)] data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left sm:max-w-sm",
|
|
7464
|
+
side === "top" && "inset-x-0 top-0 h-auto border-b border-[var(--chekin-color-gray-3)] data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",
|
|
7465
|
+
side === "bottom" && "inset-x-0 bottom-0 h-auto border-t border-[var(--chekin-color-gray-3)] data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom",
|
|
7440
7466
|
className
|
|
7441
7467
|
),
|
|
7442
7468
|
...props,
|
|
7443
7469
|
children: [
|
|
7444
7470
|
children,
|
|
7445
|
-
/* @__PURE__ */ jsxs65(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-chekin-small opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-chekin-focus disabled:pointer-events-none", children: [
|
|
7471
|
+
/* @__PURE__ */ jsxs65(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-[var(--chekin-radius-small)] opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-[var(--chekin-shadow-focus)] disabled:pointer-events-none", children: [
|
|
7446
7472
|
/* @__PURE__ */ jsx99(XIcon2, { className: "size-4" }),
|
|
7447
7473
|
/* @__PURE__ */ jsx99("span", { className: "sr-only", children: "Close" })
|
|
7448
7474
|
] })
|
|
@@ -7479,7 +7505,7 @@ function SheetTitle({
|
|
|
7479
7505
|
SheetPrimitive.Title,
|
|
7480
7506
|
{
|
|
7481
7507
|
"data-slot": "sheet-title",
|
|
7482
|
-
className: cn("font-semibold text-chekin-navy", className),
|
|
7508
|
+
className: cn("font-semibold text-[var(--chekin-color-brand-navy)]", className),
|
|
7483
7509
|
...props
|
|
7484
7510
|
}
|
|
7485
7511
|
);
|
|
@@ -7492,7 +7518,7 @@ function SheetDescription({
|
|
|
7492
7518
|
SheetPrimitive.Description,
|
|
7493
7519
|
{
|
|
7494
7520
|
"data-slot": "sheet-description",
|
|
7495
|
-
className: cn("text-sm text-chekin-gray-1", className),
|
|
7521
|
+
className: cn("text-sm text-[var(--chekin-color-gray-1)]", className),
|
|
7496
7522
|
...props
|
|
7497
7523
|
}
|
|
7498
7524
|
);
|
|
@@ -7550,9 +7576,9 @@ var SidebarIcon = ({
|
|
|
7550
7576
|
const highlighted = context?.highlighted ?? highlightedProp ?? false;
|
|
7551
7577
|
const backgroundClassName = (() => {
|
|
7552
7578
|
if (isActive) {
|
|
7553
|
-
return highlighted ? "bg-chekin-surface-autocomplete" : "bg-chekin-gray-3";
|
|
7579
|
+
return highlighted ? "bg-[var(--chekin-color-surface-autocomplete)]" : "bg-[var(--chekin-color-gray-3)]";
|
|
7554
7580
|
}
|
|
7555
|
-
return highlighted ? "bg-chekin-surface-pressed" : "bg-chekin-surface-input-empty";
|
|
7581
|
+
return highlighted ? "bg-[var(--chekin-color-surface-pressed)]" : "bg-[var(--chekin-color-surface-input-empty)]";
|
|
7556
7582
|
})();
|
|
7557
7583
|
return /* @__PURE__ */ jsx101(
|
|
7558
7584
|
"div",
|
|
@@ -7560,8 +7586,8 @@ var SidebarIcon = ({
|
|
|
7560
7586
|
className: cn(
|
|
7561
7587
|
"sidebar-icon flex items-center justify-center rounded-[50%] transition-colors ease-in-out",
|
|
7562
7588
|
backgroundClassName,
|
|
7563
|
-
highlighted ? "text-chekin-blue" : "text-chekin-gray-1",
|
|
7564
|
-
!isActive && (highlighted ? "group-hover/menu-button:bg-chekin-surface-autocomplete" : "group-hover/menu-button:bg-chekin-gray-3"),
|
|
7589
|
+
highlighted ? "text-[var(--chekin-color-brand-blue)]" : "text-[var(--chekin-color-gray-1)]",
|
|
7590
|
+
!isActive && (highlighted ? "group-hover/menu-button:bg-[var(--chekin-color-surface-autocomplete)]" : "group-hover/menu-button:bg-[var(--chekin-color-gray-3)]"),
|
|
7565
7591
|
{
|
|
7566
7592
|
"h-6 w-6 [&>svg]:h-4 [&>svg]:w-4": size === "M",
|
|
7567
7593
|
"h-8 w-8 [&>svg]:h-5 [&>svg]:w-5": size === "L"
|
|
@@ -7673,7 +7699,7 @@ var Sidebar = React25.forwardRef(
|
|
|
7673
7699
|
"div",
|
|
7674
7700
|
{
|
|
7675
7701
|
className: cn(
|
|
7676
|
-
"flex h-full w-[--sidebar-width] flex-col bg-chekin-surface-input-empty text-chekin-navy",
|
|
7702
|
+
"flex h-full w-[--sidebar-width] flex-col bg-[var(--chekin-color-surface-input-empty)] text-[var(--chekin-color-brand-navy)]",
|
|
7677
7703
|
className
|
|
7678
7704
|
),
|
|
7679
7705
|
ref,
|
|
@@ -7689,7 +7715,7 @@ var Sidebar = React25.forwardRef(
|
|
|
7689
7715
|
"data-sidebar": "sidebar",
|
|
7690
7716
|
"data-mobile": "true",
|
|
7691
7717
|
className: cn(
|
|
7692
|
-
"w-[--sidebar-width] bg-chekin-surface-input-empty p-0 text-chekin-navy [&>button]:hidden",
|
|
7718
|
+
"w-[--sidebar-width] bg-[var(--chekin-color-surface-input-empty)] p-0 text-[var(--chekin-color-brand-navy)] [&>button]:hidden",
|
|
7693
7719
|
className
|
|
7694
7720
|
),
|
|
7695
7721
|
style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
@@ -7709,7 +7735,7 @@ var Sidebar = React25.forwardRef(
|
|
|
7709
7735
|
{
|
|
7710
7736
|
ref,
|
|
7711
7737
|
"data-testid": "sidebar",
|
|
7712
|
-
className: "group peer text-chekin-navy",
|
|
7738
|
+
className: "group peer text-[var(--chekin-color-brand-navy)]",
|
|
7713
7739
|
"data-state": state,
|
|
7714
7740
|
"data-collapsible": state === "collapsed" ? collapsible : "",
|
|
7715
7741
|
"data-variant": variant,
|
|
@@ -7740,7 +7766,7 @@ var Sidebar = React25.forwardRef(
|
|
|
7740
7766
|
"div",
|
|
7741
7767
|
{
|
|
7742
7768
|
"data-sidebar": "sidebar",
|
|
7743
|
-
className: "flex h-full w-full flex-col bg-chekin-surface-input-empty group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow",
|
|
7769
|
+
className: "flex h-full w-full flex-col bg-[var(--chekin-color-surface-input-empty)] group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow",
|
|
7744
7770
|
children
|
|
7745
7771
|
}
|
|
7746
7772
|
)
|
|
@@ -7792,10 +7818,10 @@ var SidebarRail = React25.forwardRef(
|
|
|
7792
7818
|
onClick: toggleSidebar,
|
|
7793
7819
|
title: "Toggle Sidebar",
|
|
7794
7820
|
className: cn(
|
|
7795
|
-
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-chekin-gray-3 group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
7821
|
+
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-[var(--chekin-color-gray-3)] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
7796
7822
|
"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
|
|
7797
7823
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
7798
|
-
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-chekin-surface-input-empty",
|
|
7824
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-[var(--chekin-color-surface-input-empty)]",
|
|
7799
7825
|
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2 [[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
7800
7826
|
className
|
|
7801
7827
|
),
|
|
@@ -7899,7 +7925,7 @@ var SidebarGroupLabel = React25.forwardRef(({ className, asChild = false, ...pro
|
|
|
7899
7925
|
ref,
|
|
7900
7926
|
"data-sidebar": "group-label",
|
|
7901
7927
|
className: cn(
|
|
7902
|
-
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-chekin-gray-1 outline-none transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
7928
|
+
"flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-[var(--chekin-color-gray-1)] outline-none transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
7903
7929
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
7904
7930
|
className
|
|
7905
7931
|
),
|
|
@@ -7916,7 +7942,7 @@ var SidebarGroupAction = React25.forwardRef(({ className, asChild = false, ...pr
|
|
|
7916
7942
|
ref,
|
|
7917
7943
|
"data-sidebar": "group-action",
|
|
7918
7944
|
className: cn(
|
|
7919
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-chekin-navy outline-none transition-transform hover:bg-chekin-gray-3 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0 after:absolute after:-inset-2 after:sm:hidden group-data-[collapsible=icon]:hidden",
|
|
7945
|
+
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-[var(--chekin-color-brand-navy)] outline-none transition-transform hover:bg-[var(--chekin-color-gray-3)] focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0 after:absolute after:-inset-2 after:sm:hidden group-data-[collapsible=icon]:hidden",
|
|
7920
7946
|
className
|
|
7921
7947
|
),
|
|
7922
7948
|
...props
|
|
@@ -7961,12 +7987,12 @@ var SidebarMenuItem = React25.forwardRef(
|
|
|
7961
7987
|
);
|
|
7962
7988
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
7963
7989
|
var sidebarMenuButtonVariants = cva11(
|
|
7964
|
-
"peer/menu-button group/menu-button relative flex min-h-[40px] w-full items-center gap-2 rounded-lg px-2 text-left text-md font-medium capitalize outline-none transition-[width,height,padding,color,background-color] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 [&>*:not(:first-child)]:truncate [&>*:nth-child(2)]:grow [&>svg]:size-4 [&>svg]:shrink-0 data-[active=false]:data-[highlighted=false]:bg-transparent data-[active=false]:data-[highlighted=false]:text-chekin-gray-1 data-[active=false]:data-[highlighted=false]:hover:bg-chekin-surface-input-empty data-[active=false]:data-[highlighted=true]:bg-transparent data-[active=false]:data-[highlighted=true]:hover:bg-chekin-surface-input-empty data-[active=true]:data-[highlighted=false]:bg-chekin-surface-pressed data-[active=true]:data-[highlighted=false]:font-semibold data-[active=true]:data-[highlighted=false]:text-chekin-gray-1 data-[active=true]:data-[highlighted=true]:bg-chekin-surface-pressed data-[active=true]:data-[highlighted=true]:font-semibold data-[active=true]:data-[highlighted=true]:text-chekin-blue",
|
|
7990
|
+
"peer/menu-button group/menu-button relative flex min-h-[40px] w-full items-center gap-2 rounded-lg px-2 text-left text-md font-medium capitalize outline-none transition-[width,height,padding,color,background-color] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 [&>*:not(:first-child)]:truncate [&>*:nth-child(2)]:grow [&>svg]:size-4 [&>svg]:shrink-0 data-[active=false]:data-[highlighted=false]:bg-transparent data-[active=false]:data-[highlighted=false]:text-[var(--chekin-color-gray-1)] data-[active=false]:data-[highlighted=false]:hover:bg-[var(--chekin-color-surface-input-empty)] data-[active=false]:data-[highlighted=true]:bg-transparent data-[active=false]:data-[highlighted=true]:hover:bg-[var(--chekin-color-surface-input-empty)] data-[active=true]:data-[highlighted=false]:bg-[var(--chekin-color-surface-pressed)] data-[active=true]:data-[highlighted=false]:font-semibold data-[active=true]:data-[highlighted=false]:text-[var(--chekin-color-gray-1)] data-[active=true]:data-[highlighted=true]:bg-[var(--chekin-color-surface-pressed)] data-[active=true]:data-[highlighted=true]:font-semibold data-[active=true]:data-[highlighted=true]:text-[var(--chekin-color-brand-blue)]",
|
|
7965
7991
|
{
|
|
7966
7992
|
variants: {
|
|
7967
7993
|
variant: {
|
|
7968
7994
|
default: "",
|
|
7969
|
-
outline: "bg-white shadow-[0_0_0_1px_rgba(22,22,67,0.12)] hover:bg-chekin-surface-input-empty"
|
|
7995
|
+
outline: "bg-white shadow-[0_0_0_1px_rgba(22,22,67,0.12)] hover:bg-[var(--chekin-color-surface-input-empty)]"
|
|
7970
7996
|
},
|
|
7971
7997
|
size: {
|
|
7972
7998
|
default: "h-8 text-md",
|
|
@@ -8034,7 +8060,7 @@ var SidebarMenuAction = React25.forwardRef(({ className, asChild = false, showOn
|
|
|
8034
8060
|
ref,
|
|
8035
8061
|
"data-sidebar": "menu-action",
|
|
8036
8062
|
className: cn(
|
|
8037
|
-
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-chekin-navy outline-none transition-transform hover:bg-chekin-gray-3 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0 after:absolute after:-inset-2 after:sm:hidden peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 group-data-[collapsible=icon]:hidden",
|
|
8063
|
+
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-[var(--chekin-color-brand-navy)] outline-none transition-transform hover:bg-[var(--chekin-color-gray-3)] focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0 after:absolute after:-inset-2 after:sm:hidden peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 group-data-[collapsible=icon]:hidden",
|
|
8038
8064
|
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 sm:opacity-0",
|
|
8039
8065
|
className
|
|
8040
8066
|
),
|
|
@@ -8054,7 +8080,7 @@ var SidebarMenuBadge = React25.forwardRef(
|
|
|
8054
8080
|
"data-sidebar": "menu-badge",
|
|
8055
8081
|
className: cn(
|
|
8056
8082
|
isOpen ? "left-auto right-1 h-5 min-w-5" : "absolute bottom-1/2 left-1/2 top-auto h-4 min-w-4",
|
|
8057
|
-
"pointer-events-none flex select-none items-center justify-center rounded-md px-1 text-xs font-medium leading-tight text-chekin-gray-1 tabular-nums peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5",
|
|
8083
|
+
"pointer-events-none flex select-none items-center justify-center rounded-md px-1 text-xs font-medium leading-tight text-[var(--chekin-color-gray-1)] tabular-nums peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5",
|
|
8058
8084
|
className
|
|
8059
8085
|
),
|
|
8060
8086
|
...props
|
|
@@ -8094,7 +8120,7 @@ var SidebarMenuSub = React25.forwardRef(
|
|
|
8094
8120
|
ref,
|
|
8095
8121
|
"data-sidebar": "menu-sub",
|
|
8096
8122
|
className: cn(
|
|
8097
|
-
"ml-6 mr-2 flex min-w-0 flex-col gap-0.5 border-l border-chekin-gray-3 py-1 pl-4 group-data-[collapsible=icon]:hidden",
|
|
8123
|
+
"ml-6 mr-2 flex min-w-0 flex-col gap-0.5 border-l border-[var(--chekin-color-gray-3)] py-1 pl-4 group-data-[collapsible=icon]:hidden",
|
|
8098
8124
|
className
|
|
8099
8125
|
),
|
|
8100
8126
|
...props
|
|
@@ -8107,12 +8133,12 @@ var SidebarMenuSubItem = React25.forwardRef(
|
|
|
8107
8133
|
);
|
|
8108
8134
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
8109
8135
|
var sidebarMenuSubButtonVariants = cva11(
|
|
8110
|
-
"flex min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-left text-chekin-gray-1 outline-none transition-colors duration-200 hover:bg-chekin-surface-input-empty hover:text-chekin-navy focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-chekin-surface-pressed data-[active=true]:font-medium data-[active=true]:text-chekin-navy group-data-[collapsible=icon]:hidden [&>span:nth-child(2)]:truncate [&>svg]:shrink-0",
|
|
8136
|
+
"flex min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-left text-[var(--chekin-color-gray-1)] outline-none transition-colors duration-200 hover:bg-[var(--chekin-color-surface-input-empty)] hover:text-[var(--chekin-color-brand-navy)] focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-[var(--chekin-color-surface-pressed)] data-[active=true]:font-medium data-[active=true]:text-[var(--chekin-color-brand-navy)] group-data-[collapsible=icon]:hidden [&>span:nth-child(2)]:truncate [&>svg]:shrink-0",
|
|
8111
8137
|
{
|
|
8112
8138
|
variants: {
|
|
8113
8139
|
variant: {
|
|
8114
8140
|
default: "",
|
|
8115
|
-
outline: "bg-white shadow-[0_0_0_1px_rgba(22,22,67,0.12)] hover:bg-chekin-surface-input-empty"
|
|
8141
|
+
outline: "bg-white shadow-[0_0_0_1px_rgba(22,22,67,0.12)] hover:bg-[var(--chekin-color-surface-input-empty)]"
|
|
8116
8142
|
},
|
|
8117
8143
|
size: {
|
|
8118
8144
|
sm: "h-6 px-1.5 py-0.5 text-xs [&>svg]:size-3",
|
|
@@ -8276,7 +8302,7 @@ var SmallGridSingleItem = memo5(
|
|
|
8276
8302
|
onClick: handleClick,
|
|
8277
8303
|
className: cn(
|
|
8278
8304
|
"relative flex h-full w-full shrink-0 items-center justify-between gap-4",
|
|
8279
|
-
"box-border rounded-md px-5 py-4 text-left text-base font-semibold text-chekin-navy",
|
|
8305
|
+
"box-border rounded-md px-5 py-4 text-left text-base font-semibold text-[var(--chekin-color-brand-navy)]",
|
|
8280
8306
|
"shadow-[0_0_10px_rgba(111,194,255,0.2)]",
|
|
8281
8307
|
disabled && "cursor-not-allowed",
|
|
8282
8308
|
!disabled && onClick && "cursor-pointer",
|
|
@@ -8286,7 +8312,7 @@ var SmallGridSingleItem = memo5(
|
|
|
8286
8312
|
children: [
|
|
8287
8313
|
/* @__PURE__ */ jsxs68("div", { children: [
|
|
8288
8314
|
/* @__PURE__ */ jsx104("div", { className: "line-clamp-2 overflow-hidden text-ellipsis break-all", children: title }),
|
|
8289
|
-
subtitle && /* @__PURE__ */ jsx104("div", { className: "line-clamp-2 overflow-hidden text-ellipsis text-[15px] font-medium leading-6 text-chekin-gray-2", children: subtitle })
|
|
8315
|
+
subtitle && /* @__PURE__ */ jsx104("div", { className: "line-clamp-2 overflow-hidden text-ellipsis text-[15px] font-medium leading-6 text-[var(--chekin-color-gray-2)]", children: subtitle })
|
|
8290
8316
|
] }),
|
|
8291
8317
|
!readOnly && /* @__PURE__ */ jsxs68("div", { className: "flex h-full items-center justify-end gap-2", children: [
|
|
8292
8318
|
onDelete && /* @__PURE__ */ jsx104(
|
|
@@ -8296,12 +8322,12 @@ var SmallGridSingleItem = memo5(
|
|
|
8296
8322
|
onClick: onDelete,
|
|
8297
8323
|
size: "icon",
|
|
8298
8324
|
variant: "outline",
|
|
8299
|
-
children: /* @__PURE__ */ jsx104(Trash2, { className: "h-5 w-5 text-chekin-red" })
|
|
8325
|
+
children: /* @__PURE__ */ jsx104(Trash2, { className: "h-5 w-5 text-[var(--chekin-color-brand-red)]" })
|
|
8300
8326
|
}
|
|
8301
8327
|
),
|
|
8302
|
-
onEdit && /* @__PURE__ */ jsx104(Button, { disabled, onClick: onEdit, size: "icon", variant: "outline", children: /* @__PURE__ */ jsx104(Pencil, { className: "h-5 w-5 text-chekin-blue" }) })
|
|
8328
|
+
onEdit && /* @__PURE__ */ jsx104(Button, { disabled, onClick: onEdit, size: "icon", variant: "outline", children: /* @__PURE__ */ jsx104(Pencil, { className: "h-5 w-5 text-[var(--chekin-color-brand-blue)]" }) })
|
|
8303
8329
|
] }),
|
|
8304
|
-
error && /* @__PURE__ */ jsx104("div", { className: "absolute bottom-1 right-2 text-xs text-chekin-red", children: error })
|
|
8330
|
+
error && /* @__PURE__ */ jsx104("div", { className: "absolute bottom-1 right-2 text-xs text-[var(--chekin-color-brand-red)]", children: error })
|
|
8305
8331
|
]
|
|
8306
8332
|
}
|
|
8307
8333
|
);
|
|
@@ -8328,18 +8354,19 @@ function SortingAction({
|
|
|
8328
8354
|
{
|
|
8329
8355
|
type: "button",
|
|
8330
8356
|
className: cn(
|
|
8331
|
-
"group/trigger cursor-pointer rounded-sm p-0.5 hover:bg-chekin-surface-input-empty",
|
|
8357
|
+
"group/trigger cursor-pointer rounded-sm p-0.5 hover:bg-[var(--chekin-color-surface-input-empty)]",
|
|
8332
8358
|
className
|
|
8333
8359
|
),
|
|
8334
8360
|
"aria-label": "Open sorting menu",
|
|
8335
|
-
children: /* @__PURE__ */ jsx105(ArrowDownUpIcon, { className: "h-4 w-4 text-chekin-gray-1 group-hover/trigger:text-chekin-navy" })
|
|
8361
|
+
children: /* @__PURE__ */ jsx105(ArrowDownUpIcon, { className: "h-4 w-4 text-[var(--chekin-color-gray-1)] group-hover/trigger:text-[var(--chekin-color-brand-navy)]" })
|
|
8336
8362
|
}
|
|
8337
8363
|
) }),
|
|
8338
8364
|
/* @__PURE__ */ jsxs69(DropdownMenuContent, { className: "w-full max-w-[256px]", align: "start", children: [
|
|
8339
8365
|
/* @__PURE__ */ jsxs69(
|
|
8340
8366
|
DropdownMenuItem,
|
|
8341
8367
|
{
|
|
8342
|
-
|
|
8368
|
+
active: value === "asc",
|
|
8369
|
+
className: cn(value === "asc" && "text-[var(--chekin-color-brand-blue)]"),
|
|
8343
8370
|
onClick: () => onSortChange?.("asc"),
|
|
8344
8371
|
children: [
|
|
8345
8372
|
/* @__PURE__ */ jsx105(ArrowUp, { className: "h-4 w-4" }),
|
|
@@ -8350,7 +8377,8 @@ function SortingAction({
|
|
|
8350
8377
|
/* @__PURE__ */ jsxs69(
|
|
8351
8378
|
DropdownMenuItem,
|
|
8352
8379
|
{
|
|
8353
|
-
|
|
8380
|
+
active: value === "desc",
|
|
8381
|
+
className: cn(value === "desc" && "text-[var(--chekin-color-brand-blue)]"),
|
|
8354
8382
|
onClick: () => onSortChange?.("desc"),
|
|
8355
8383
|
children: [
|
|
8356
8384
|
/* @__PURE__ */ jsx105(ArrowDown, { className: "h-4 w-4" }),
|
|
@@ -8498,8 +8526,8 @@ function Stepper({
|
|
|
8498
8526
|
"span",
|
|
8499
8527
|
{
|
|
8500
8528
|
className: cn(
|
|
8501
|
-
"h-1.5 min-h-px min-w-px flex-1 rounded-[1000px] bg-chekin-gray-3",
|
|
8502
|
-
isActive && "bg-chekin-blue"
|
|
8529
|
+
"h-1.5 min-h-px min-w-px flex-1 rounded-[1000px] bg-[var(--chekin-color-gray-3)]",
|
|
8530
|
+
isActive && "bg-[var(--chekin-color-brand-blue)]"
|
|
8503
8531
|
)
|
|
8504
8532
|
},
|
|
8505
8533
|
stepNumber
|
|
@@ -8557,7 +8585,7 @@ var SwitchGroup = React27.forwardRef(
|
|
|
8557
8585
|
Label,
|
|
8558
8586
|
{
|
|
8559
8587
|
className: cn(
|
|
8560
|
-
"text-md cursor-pointer font-medium text-chekin-navy",
|
|
8588
|
+
"text-md cursor-pointer font-medium text-[var(--chekin-color-brand-navy)]",
|
|
8561
8589
|
(disabled || option.disabled) && "opacity-50"
|
|
8562
8590
|
),
|
|
8563
8591
|
children: [
|
|
@@ -8566,7 +8594,7 @@ var SwitchGroup = React27.forwardRef(
|
|
|
8566
8594
|
"span",
|
|
8567
8595
|
{
|
|
8568
8596
|
className: cn(
|
|
8569
|
-
"mt-1 block text-sm font-normal text-chekin-gray-1",
|
|
8597
|
+
"mt-1 block text-sm font-normal text-[var(--chekin-color-gray-1)]",
|
|
8570
8598
|
(disabled || option.disabled) && "opacity-50"
|
|
8571
8599
|
),
|
|
8572
8600
|
children: [
|
|
@@ -8604,8 +8632,8 @@ var Tabs = TabsPrimitive2.Root;
|
|
|
8604
8632
|
var tabsListVariants = cva12("inline-flex items-center", {
|
|
8605
8633
|
variants: {
|
|
8606
8634
|
variant: {
|
|
8607
|
-
default: "h-10 justify-center rounded-md bg-chekin-surface-input-empty p-1 text-chekin-gray-1",
|
|
8608
|
-
underlined: "gap-6 border-b border-chekin-gray-3"
|
|
8635
|
+
default: "h-10 justify-center rounded-md bg-[var(--chekin-color-surface-input-empty)] p-1 text-[var(--chekin-color-gray-1)]",
|
|
8636
|
+
underlined: "gap-6 border-b border-[var(--chekin-color-gray-3)]"
|
|
8609
8637
|
}
|
|
8610
8638
|
},
|
|
8611
8639
|
defaultVariants: {
|
|
@@ -8628,8 +8656,8 @@ var tabsTriggerVariants = cva12(
|
|
|
8628
8656
|
{
|
|
8629
8657
|
variants: {
|
|
8630
8658
|
variant: {
|
|
8631
|
-
default: "rounded-sm px-3 py-1.5 text-sm font-medium focus-visible:shadow-chekin-focus data-[state=active]:bg-white data-[state=active]:text-chekin-navy data-[state=active]:shadow-sm",
|
|
8632
|
-
underlined: "-mb-px border-b-[3px] border-transparent py-2 text-base font-medium text-chekin-gray-1 data-[state=active]:border-chekin-blue data-[state=active]:font-semibold data-[state=active]:text-chekin-blue"
|
|
8659
|
+
default: "rounded-sm px-3 py-1.5 text-sm font-medium focus-visible:shadow-[var(--chekin-shadow-focus)] data-[state=active]:bg-[var(--chekin-color-white)] data-[state=active]:text-[var(--chekin-color-brand-navy)] data-[state=active]:shadow-sm",
|
|
8660
|
+
underlined: "-mb-px border-b-[3px] border-transparent py-2 text-base font-medium text-[var(--chekin-color-gray-1)] data-[state=active]:border-[var(--chekin-color-brand-blue)] data-[state=active]:font-semibold data-[state=active]:text-[var(--chekin-color-brand-blue)]"
|
|
8633
8661
|
}
|
|
8634
8662
|
},
|
|
8635
8663
|
defaultVariants: {
|
|
@@ -8664,12 +8692,12 @@ function TabbedSection({
|
|
|
8664
8692
|
const contentContainerClassName = variant === "material" ? cn(
|
|
8665
8693
|
"border-0 bg-transparent p-0 pt-6 shadow-none",
|
|
8666
8694
|
"[&>div:first-child]:flex [&>div:first-child]:flex-col",
|
|
8667
|
-
"[&>div:first-child]:gap-
|
|
8695
|
+
"[&>div:first-child]:gap-3",
|
|
8668
8696
|
className
|
|
8669
8697
|
) : cn(
|
|
8670
|
-
"rounded-b-md border border-t-0 border-chekin-gray-3 bg-white p-6 shadow-none",
|
|
8698
|
+
"rounded-b-md border border-t-0 border-[var(--chekin-color-gray-3)] bg-[var(--chekin-color-white)] p-6 shadow-none",
|
|
8671
8699
|
"[&>div:first-child]:flex [&>div:first-child]:flex-col",
|
|
8672
|
-
"[&>div:first-child]:gap-
|
|
8700
|
+
"[&>div:first-child]:gap-3",
|
|
8673
8701
|
className
|
|
8674
8702
|
);
|
|
8675
8703
|
return /* @__PURE__ */ jsxs73(Tabs, { value: activeTab, onValueChange: onTabChange, className: "w-full", children: [
|
|
@@ -8745,14 +8773,14 @@ function TaskCard({
|
|
|
8745
8773
|
{
|
|
8746
8774
|
className: cn(
|
|
8747
8775
|
"relative w-1 shrink-0 self-stretch rounded-sm",
|
|
8748
|
-
eventType === "error" && "bg-chekin-red",
|
|
8776
|
+
eventType === "error" && "bg-[var(--chekin-color-brand-red)]",
|
|
8749
8777
|
eventType === "warning" && "bg-amber-500"
|
|
8750
8778
|
)
|
|
8751
8779
|
}
|
|
8752
8780
|
),
|
|
8753
8781
|
/* @__PURE__ */ jsxs75("div", { className: "flex min-w-0 flex-1 flex-col items-start", children: [
|
|
8754
|
-
/* @__PURE__ */ jsx114("h4", { className: "m-0 w-full break-words text-base font-semibold leading-6 text-chekin-navy", children: title }),
|
|
8755
|
-
/* @__PURE__ */ jsx114("p", { className: "m-0 w-full text-sm font-medium leading-6 text-chekin-gray-1", children: description })
|
|
8782
|
+
/* @__PURE__ */ jsx114("h4", { className: "m-0 w-full break-words text-base font-semibold leading-6 text-[var(--chekin-color-brand-navy)]", children: title }),
|
|
8783
|
+
/* @__PURE__ */ jsx114("p", { className: "m-0 w-full text-sm font-medium leading-6 text-[var(--chekin-color-gray-1)]", children: description })
|
|
8756
8784
|
] }),
|
|
8757
8785
|
shouldShowActions && /* @__PURE__ */ jsxs75("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
8758
8786
|
shouldShowCount && /* @__PURE__ */ jsx114(
|
|
@@ -8760,7 +8788,7 @@ function TaskCard({
|
|
|
8760
8788
|
{
|
|
8761
8789
|
className: cn(
|
|
8762
8790
|
'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-[""]',
|
|
8763
|
-
eventType === "error" && "text-chekin-red before:bg-red-100",
|
|
8791
|
+
eventType === "error" && "text-[var(--chekin-color-brand-red)] before:bg-red-100",
|
|
8764
8792
|
eventType === "warning" && "text-amber-700 before:bg-amber-100"
|
|
8765
8793
|
),
|
|
8766
8794
|
children: count
|
|
@@ -8769,7 +8797,7 @@ function TaskCard({
|
|
|
8769
8797
|
onClick && /* @__PURE__ */ jsx114(
|
|
8770
8798
|
"button",
|
|
8771
8799
|
{
|
|
8772
|
-
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",
|
|
8800
|
+
className: "flex h-8 w-0 min-w-0 cursor-pointer items-center justify-center overflow-hidden rounded-md border-0 bg-transparent p-0 text-[var(--chekin-color-gray-1)] opacity-0 transition-[width,opacity,min-width] duration-300 ease-in-out hover:bg-black/5 focus-visible:w-8 focus-visible:min-w-8 focus-visible:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--chekin-color-brand-blue)] group-hover:w-8 group-hover:min-w-8 group-hover:opacity-100",
|
|
8773
8801
|
onClick: (event) => {
|
|
8774
8802
|
event.stopPropagation();
|
|
8775
8803
|
onClick?.();
|
|
@@ -8837,12 +8865,12 @@ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
|
8837
8865
|
// src/toggle-group/style.ts
|
|
8838
8866
|
import { cva as cva13 } from "class-variance-authority";
|
|
8839
8867
|
var toggleVariants = cva13(
|
|
8840
|
-
"inline-flex select-none items-center justify-center rounded-md text-sm font-medium transition-all duration-75 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-chekin-blue focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
8868
|
+
"inline-flex select-none items-center justify-center rounded-md text-sm font-medium transition-all duration-75 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--chekin-color-brand-blue)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
8841
8869
|
{
|
|
8842
8870
|
variants: {
|
|
8843
8871
|
variant: {
|
|
8844
|
-
default: "border border-chekin-gray-3 bg-chekin-surface-input-empty font-semibold text-chekin-gray-1 hover:border-chekin-blue data-[state=on]:border-chekin-blue data-[state=on]:bg-white data-[state=on]:text-chekin-blue",
|
|
8845
|
-
tab: "border border-transparent bg-transparent font-medium text-chekin-gray-1 hover:bg-chekin-blue hover:text-white hover:opacity-35 data-[state=on]:cursor-default data-[state=on]:border-chekin-blue data-[state=on]:bg-chekin-blue data-[state=on]:font-semibold data-[state=on]:text-white data-[state=on]:shadow-[0px_3px_4px_0px_rgba(1,2,3,0.10)] data-[state=on]:hover:opacity-100"
|
|
8872
|
+
default: "border border-[var(--chekin-color-gray-3)] bg-[var(--chekin-color-surface-input-empty)] font-semibold text-[var(--chekin-color-gray-1)] hover:border-[var(--chekin-color-brand-blue)] data-[state=on]:border-[var(--chekin-color-brand-blue)] data-[state=on]:bg-[var(--chekin-color-white)] data-[state=on]:text-[var(--chekin-color-brand-blue)]",
|
|
8873
|
+
tab: "border border-transparent bg-transparent font-medium text-[var(--chekin-color-gray-1)] hover:bg-[var(--chekin-color-brand-blue)] hover:text-[var(--chekin-color-white)] hover:opacity-35 data-[state=on]:cursor-default data-[state=on]:border-[var(--chekin-color-brand-blue)] data-[state=on]:bg-[var(--chekin-color-brand-blue)] data-[state=on]:font-semibold data-[state=on]:text-[var(--chekin-color-white)] data-[state=on]:shadow-[0px_3px_4px_0px_rgba(1,2,3,0.10)] data-[state=on]:hover:opacity-100"
|
|
8846
8874
|
},
|
|
8847
8875
|
size: {
|
|
8848
8876
|
default: "h-12 min-w-[117px] px-4 text-[15px]",
|
|
@@ -8852,7 +8880,7 @@ var toggleVariants = cva13(
|
|
|
8852
8880
|
},
|
|
8853
8881
|
theme: {
|
|
8854
8882
|
default: "",
|
|
8855
|
-
"sky-blue": "data-[state=on]:bg-chekin-surface-autocomplete data-[state=off]:hover:border-transparent data-[state=off]:hover:bg-chekin-surface-input-empty"
|
|
8883
|
+
"sky-blue": "data-[state=on]:bg-[var(--chekin-color-surface-autocomplete)] data-[state=off]:hover:border-transparent data-[state=off]:hover:bg-[var(--chekin-color-surface-input-empty)]"
|
|
8856
8884
|
}
|
|
8857
8885
|
},
|
|
8858
8886
|
defaultVariants: {
|
|
@@ -8878,7 +8906,7 @@ var ToggleGroup = React28.forwardRef(({ className, variant, size, theme, childre
|
|
|
8878
8906
|
ref,
|
|
8879
8907
|
className: cn(
|
|
8880
8908
|
"flex items-center justify-center",
|
|
8881
|
-
isTabVariant ? "h-auto max-h-none w-fit flex-wrap gap-[2px] rounded-md border border-chekin-gray-3 bg-chekin-surface-input-empty p-[2px]" : "w-full flex-wrap gap-[10px]",
|
|
8909
|
+
isTabVariant ? "h-auto max-h-none w-fit flex-wrap gap-[2px] rounded-md border border-[var(--chekin-color-gray-3)] bg-[var(--chekin-color-surface-input-empty)] p-[2px]" : "w-full flex-wrap gap-[10px]",
|
|
8882
8910
|
className
|
|
8883
8911
|
),
|
|
8884
8912
|
...props,
|
|
@@ -9001,7 +9029,7 @@ function TogglesInternal({
|
|
|
9001
9029
|
...multiple ? { type: "multiple", value: currentValue } : { type: "single", value: currentValue[0] ?? "" }
|
|
9002
9030
|
};
|
|
9003
9031
|
return /* @__PURE__ */ jsxs77("div", { ref, className, children: [
|
|
9004
|
-
label && /* @__PURE__ */ jsx116("div", { className: "mb-2", children: /* @__PURE__ */ jsx116("div", { className: "select-none text-base font-normal text-chekin-navy", children: label }) }),
|
|
9032
|
+
label && /* @__PURE__ */ jsx116("div", { className: "mb-2", children: /* @__PURE__ */ jsx116("div", { className: "select-none text-base font-normal text-[var(--chekin-color-brand-navy)]", children: label }) }),
|
|
9005
9033
|
/* @__PURE__ */ jsx116(ToggleGroup, { className: groupClassName, ...toggleGroupProps, children: options.map((option, index) => {
|
|
9006
9034
|
const isSelected = getValueArray2(value).includes(option.value);
|
|
9007
9035
|
const isDisabled = disabled || disabledItems?.includes(option.value) || option.disabled;
|
|
@@ -9034,11 +9062,19 @@ var EndIcon = ({ children }) => /* @__PURE__ */ jsx117("div", { className: "poin
|
|
|
9034
9062
|
|
|
9035
9063
|
// src/text-field/FieldError.tsx
|
|
9036
9064
|
import { jsx as jsx118 } from "react/jsx-runtime";
|
|
9037
|
-
var FieldError = ({ id, children }) => /* @__PURE__ */ jsx118(
|
|
9065
|
+
var FieldError = ({ id, children }) => /* @__PURE__ */ jsx118(
|
|
9066
|
+
"p",
|
|
9067
|
+
{
|
|
9068
|
+
id,
|
|
9069
|
+
className: "mt-1 text-right text-xs font-medium text-[var(--chekin-color-brand-red)]",
|
|
9070
|
+
role: "alert",
|
|
9071
|
+
children
|
|
9072
|
+
}
|
|
9073
|
+
);
|
|
9038
9074
|
|
|
9039
9075
|
// src/text-field/SupportingText.tsx
|
|
9040
9076
|
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
9041
|
-
var SupportingText = ({ id, children }) => /* @__PURE__ */ jsx119("p", { id, className: "mt-1 text-xs italic text-chekin-gray-2", children });
|
|
9077
|
+
var SupportingText = ({ id, children }) => /* @__PURE__ */ jsx119("p", { id, className: "mt-1 text-xs italic text-[var(--chekin-color-gray-2)]", children });
|
|
9042
9078
|
|
|
9043
9079
|
// src/text-field/TextField.tsx
|
|
9044
9080
|
import { jsx as jsx120, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
@@ -9219,8 +9255,8 @@ var TextField = React29.forwardRef(
|
|
|
9219
9255
|
}
|
|
9220
9256
|
),
|
|
9221
9257
|
optional && /* @__PURE__ */ jsxs78("span", { className: "text-base leading-4", children: [
|
|
9222
|
-
/* @__PURE__ */ jsx120("span", { className: "text-chekin-navy", children: "- " }),
|
|
9223
|
-
/* @__PURE__ */ jsx120("span", { className: "italic text-chekin-gray-2", children: optionalLabel || t("optional") })
|
|
9258
|
+
/* @__PURE__ */ jsx120("span", { className: "text-[var(--chekin-color-brand-navy)]", children: "- " }),
|
|
9259
|
+
/* @__PURE__ */ jsx120("span", { className: "italic text-[var(--chekin-color-gray-2)]", children: optionalLabel || t("optional") })
|
|
9224
9260
|
] }),
|
|
9225
9261
|
tooltip
|
|
9226
9262
|
] }),
|
|
@@ -9378,15 +9414,15 @@ function UploadedFilesList({
|
|
|
9378
9414
|
return /* @__PURE__ */ jsx123("div", { className: cn("flex flex-wrap gap-2.5", className), children: files.map((file, index) => /* @__PURE__ */ jsxs81(
|
|
9379
9415
|
"div",
|
|
9380
9416
|
{
|
|
9381
|
-
className: "flex cursor-default items-center gap-2 rounded border border-chekin-gray-2 bg-chekin-surface-pressed py-1.5 pl-3 pr-1.5",
|
|
9417
|
+
className: "flex cursor-default items-center gap-2 rounded border border-[var(--chekin-color-gray-2)] bg-[var(--chekin-color-surface-pressed)] py-1.5 pl-3 pr-1.5",
|
|
9382
9418
|
children: [
|
|
9383
|
-
/* @__PURE__ */ jsx123("span", { className: "text-nowrap text-sm font-medium leading-5 text-chekin-navy", children: file.name }),
|
|
9419
|
+
/* @__PURE__ */ jsx123("span", { className: "text-nowrap text-sm font-medium leading-5 text-[var(--chekin-color-brand-navy)]", children: file.name }),
|
|
9384
9420
|
/* @__PURE__ */ jsx123(
|
|
9385
9421
|
"button",
|
|
9386
9422
|
{
|
|
9387
9423
|
type: "button",
|
|
9388
9424
|
onClick: () => onRemoveFile(file.name),
|
|
9389
|
-
className: "flex h-[18px] w-[18px] shrink-0 cursor-pointer items-center justify-center rounded bg-chekin-gray-1 transition-all hover:shadow-md active:opacity-95",
|
|
9425
|
+
className: "flex h-[18px] w-[18px] shrink-0 cursor-pointer items-center justify-center rounded bg-[var(--chekin-color-gray-1)] transition-all hover:shadow-md active:opacity-95",
|
|
9390
9426
|
"aria-label": `Remove ${file.name}`,
|
|
9391
9427
|
children: /* @__PURE__ */ jsx123(X7, { className: "h-3.5 w-3.5 text-white", strokeWidth: 3 })
|
|
9392
9428
|
}
|
|
@@ -9405,7 +9441,7 @@ function WideButton({ className, disabled, ...props }) {
|
|
|
9405
9441
|
{
|
|
9406
9442
|
variant: "ghost",
|
|
9407
9443
|
className: cn(
|
|
9408
|
-
"min-h-[84px] w-full max-w-[712px] flex-row justify-center bg-chekin-surface-pressed shadow-none",
|
|
9444
|
+
"min-h-[84px] w-full max-w-[712px] flex-row justify-center bg-[var(--chekin-color-surface-pressed)] shadow-none",
|
|
9409
9445
|
"transition-all duration-[70ms] ease-in-out hover:opacity-70",
|
|
9410
9446
|
disabled && "opacity-10",
|
|
9411
9447
|
className
|
|
@@ -10388,7 +10424,7 @@ var FieldTrigger = React32.forwardRef(
|
|
|
10388
10424
|
className: cn(
|
|
10389
10425
|
"absolute left-0 origin-left truncate transition-all duration-200 ease-out",
|
|
10390
10426
|
hasLabelMeta ? "" : "pointer-events-none",
|
|
10391
|
-
isAirbnbVariant ? isRaised ? "top-
|
|
10427
|
+
isAirbnbVariant ? isRaised ? "top-[-1px] translate-y-0 text-xs leading-5" : "top-1/2 -translate-y-1/2 text-[16px] leading-7" : isRaised ? "-top-2 translate-y-0 bg-white px-1 text-[12px] font-medium leading-4" : "top-1/2 -translate-y-1/2 text-[16px] leading-6",
|
|
10392
10428
|
hasInvalidState ? "text-[var(--error-message-color)]" : isAirbnbVariant ? "text-[#6c6c6c]" : "text-[#7A8399]"
|
|
10393
10429
|
),
|
|
10394
10430
|
children: animatedLabel
|