@chekinapp/ui 0.0.131 → 0.0.132
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 +171 -174
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +84 -87
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8184,7 +8184,6 @@ var SectionTagColors = /* @__PURE__ */ ((SectionTagColors2) => {
|
|
|
8184
8184
|
|
|
8185
8185
|
// src/section/Section.tsx
|
|
8186
8186
|
var import_react68 = require("react");
|
|
8187
|
-
var import_lucide_react29 = require("lucide-react");
|
|
8188
8187
|
var import_react_i18next15 = require("react-i18next");
|
|
8189
8188
|
|
|
8190
8189
|
// src/section/constants.ts
|
|
@@ -8197,16 +8196,17 @@ var SubSectionSize = /* @__PURE__ */ ((SubSectionSize2) => {
|
|
|
8197
8196
|
// src/section/Section.tsx
|
|
8198
8197
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
8199
8198
|
function TooltipInfo({ content, className }) {
|
|
8200
|
-
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8201
|
-
|
|
8199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
8200
|
+
HelpTooltip,
|
|
8202
8201
|
{
|
|
8203
|
-
|
|
8204
|
-
|
|
8202
|
+
side: "right",
|
|
8203
|
+
content,
|
|
8204
|
+
contentClassName: "max-w-64",
|
|
8205
|
+
className: cn("text-[var(--chekin-color-gray-1)]", className),
|
|
8205
8206
|
onClick: (event) => event.stopPropagation(),
|
|
8206
|
-
|
|
8207
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_lucide_react29.CircleHelp, { className: "h-4 w-4" })
|
|
8207
|
+
label: typeof content === "string" ? content : "More information"
|
|
8208
8208
|
}
|
|
8209
|
-
)
|
|
8209
|
+
);
|
|
8210
8210
|
}
|
|
8211
8211
|
var Section = (0, import_react68.forwardRef)(
|
|
8212
8212
|
({
|
|
@@ -8371,7 +8371,7 @@ var SectionGroup = Object.assign(SectionGroupRoot, {
|
|
|
8371
8371
|
|
|
8372
8372
|
// src/sheet/Sheet.tsx
|
|
8373
8373
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
8374
|
-
var
|
|
8374
|
+
var import_lucide_react29 = require("lucide-react");
|
|
8375
8375
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
8376
8376
|
function Sheet({ ...props }) {
|
|
8377
8377
|
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
@@ -8425,7 +8425,7 @@ function SheetContent({
|
|
|
8425
8425
|
children: [
|
|
8426
8426
|
children,
|
|
8427
8427
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-[var(--chekin-radius-small)] opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:shadow-[var(--chekin-shadow-focus)] disabled:pointer-events-none", children: [
|
|
8428
|
-
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
8428
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_lucide_react29.XIcon, { className: "size-4" }),
|
|
8429
8429
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "sr-only", children: "Close" })
|
|
8430
8430
|
] })
|
|
8431
8431
|
]
|
|
@@ -8484,7 +8484,7 @@ function SheetDescription({
|
|
|
8484
8484
|
var React28 = __toESM(require("react"), 1);
|
|
8485
8485
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
8486
8486
|
var import_class_variance_authority13 = require("class-variance-authority");
|
|
8487
|
-
var
|
|
8487
|
+
var import_lucide_react30 = require("lucide-react");
|
|
8488
8488
|
|
|
8489
8489
|
// src/skeleton/Skeleton.tsx
|
|
8490
8490
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
@@ -8757,7 +8757,7 @@ var SidebarTrigger = React28.forwardRef(({ className, onClick, icon, ...props },
|
|
|
8757
8757
|
},
|
|
8758
8758
|
...props,
|
|
8759
8759
|
children: [
|
|
8760
|
-
icon || (isMobile3 ? openMobile : open) ? icon || /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
8760
|
+
icon || (isMobile3 ? openMobile : open) ? icon || /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react30.ArrowLeftFromLineIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react30.ArrowRightFromLineIcon, {}),
|
|
8761
8761
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
8762
8762
|
]
|
|
8763
8763
|
}
|
|
@@ -9365,7 +9365,7 @@ var React35 = __toESM(require("react"), 1);
|
|
|
9365
9365
|
|
|
9366
9366
|
// src/carousel/CarouselControls.tsx
|
|
9367
9367
|
var React30 = __toESM(require("react"), 1);
|
|
9368
|
-
var
|
|
9368
|
+
var import_lucide_react31 = require("lucide-react");
|
|
9369
9369
|
|
|
9370
9370
|
// src/carousel/CarouselContext.tsx
|
|
9371
9371
|
var React29 = __toESM(require("react"), 1);
|
|
@@ -9404,7 +9404,7 @@ var CarouselPrevious = React30.forwardRef(
|
|
|
9404
9404
|
goToPrevious();
|
|
9405
9405
|
},
|
|
9406
9406
|
...props,
|
|
9407
|
-
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
9407
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_lucide_react31.ChevronLeft, { className: "size-4" })
|
|
9408
9408
|
}
|
|
9409
9409
|
);
|
|
9410
9410
|
}
|
|
@@ -9434,7 +9434,7 @@ var CarouselNext = React30.forwardRef(
|
|
|
9434
9434
|
goToNext();
|
|
9435
9435
|
},
|
|
9436
9436
|
...props,
|
|
9437
|
-
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
9437
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_lucide_react31.ChevronRight, { className: "size-4" })
|
|
9438
9438
|
}
|
|
9439
9439
|
);
|
|
9440
9440
|
}
|
|
@@ -9611,7 +9611,7 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
9611
9611
|
|
|
9612
9612
|
// src/small-grid-single-item/SmallGridSingleItem.tsx
|
|
9613
9613
|
var import_react74 = require("react");
|
|
9614
|
-
var
|
|
9614
|
+
var import_lucide_react32 = require("lucide-react");
|
|
9615
9615
|
var import_react_i18next17 = require("react-i18next");
|
|
9616
9616
|
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
9617
9617
|
var SmallGridSingleItem = (0, import_react74.memo)(
|
|
@@ -9662,7 +9662,7 @@ var SmallGridSingleItem = (0, import_react74.memo)(
|
|
|
9662
9662
|
className: "size-8",
|
|
9663
9663
|
size: "icon",
|
|
9664
9664
|
variant: "outline",
|
|
9665
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
9665
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_lucide_react32.Trash2, { className: "h-5 w-5 text-[var(--chekin-color-brand-red)]" })
|
|
9666
9666
|
}
|
|
9667
9667
|
),
|
|
9668
9668
|
onEdit && /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
@@ -9673,7 +9673,7 @@ var SmallGridSingleItem = (0, import_react74.memo)(
|
|
|
9673
9673
|
disabled,
|
|
9674
9674
|
onClick: onEdit,
|
|
9675
9675
|
variant: "outline",
|
|
9676
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
9676
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_lucide_react32.Pencil, { className: "h-5 w-5 text-[var(--chekin-color-brand-blue)]" })
|
|
9677
9677
|
}
|
|
9678
9678
|
)
|
|
9679
9679
|
] })
|
|
@@ -9698,7 +9698,7 @@ SmallGridSingleItem.displayName = "SmallGridSingleItem";
|
|
|
9698
9698
|
|
|
9699
9699
|
// src/sorting-action/SortingAction.tsx
|
|
9700
9700
|
var import_react_i18next18 = require("react-i18next");
|
|
9701
|
-
var
|
|
9701
|
+
var import_lucide_react33 = require("lucide-react");
|
|
9702
9702
|
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
9703
9703
|
function SortingAction({
|
|
9704
9704
|
value,
|
|
@@ -9719,7 +9719,7 @@ function SortingAction({
|
|
|
9719
9719
|
className
|
|
9720
9720
|
),
|
|
9721
9721
|
"aria-label": "Open sorting menu",
|
|
9722
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9722
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_lucide_react33.ArrowDownUpIcon, { className: "h-4 w-4 text-[var(--chekin-color-gray-1)] group-hover/trigger:text-[var(--chekin-color-brand-navy)]" })
|
|
9723
9723
|
}
|
|
9724
9724
|
) }),
|
|
9725
9725
|
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(DropdownMenuContent, { className: "w-full max-w-[256px]", align: "start", children: [
|
|
@@ -9730,7 +9730,7 @@ function SortingAction({
|
|
|
9730
9730
|
className: cn(value === "asc" && "text-[var(--chekin-color-brand-blue)]"),
|
|
9731
9731
|
onClick: () => onSortChange?.("asc"),
|
|
9732
9732
|
children: [
|
|
9733
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9733
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_lucide_react33.ArrowUp, { className: "h-4 w-4" }),
|
|
9734
9734
|
variant === "by_text" ? t("sort_a_z") : t("sort_in_asc")
|
|
9735
9735
|
]
|
|
9736
9736
|
}
|
|
@@ -9742,13 +9742,13 @@ function SortingAction({
|
|
|
9742
9742
|
className: cn(value === "desc" && "text-[var(--chekin-color-brand-blue)]"),
|
|
9743
9743
|
onClick: () => onSortChange?.("desc"),
|
|
9744
9744
|
children: [
|
|
9745
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9745
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_lucide_react33.ArrowDown, { className: "h-4 w-4" }),
|
|
9746
9746
|
variant === "by_text" ? t("sort_z_a") : t("sort_in_desc")
|
|
9747
9747
|
]
|
|
9748
9748
|
}
|
|
9749
9749
|
),
|
|
9750
9750
|
value && /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(DropdownMenuItem, { onClick: () => onSortChange?.(null), children: [
|
|
9751
|
-
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
9751
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_lucide_react33.Minus, { className: "h-4 w-4" }),
|
|
9752
9752
|
t("clear_sorting")
|
|
9753
9753
|
] })
|
|
9754
9754
|
] })
|
|
@@ -9758,7 +9758,7 @@ function SortingAction({
|
|
|
9758
9758
|
// src/status-button/StatusButton.tsx
|
|
9759
9759
|
var import_react75 = require("react");
|
|
9760
9760
|
var import_react_i18next19 = require("react-i18next");
|
|
9761
|
-
var
|
|
9761
|
+
var import_lucide_react34 = require("lucide-react");
|
|
9762
9762
|
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
9763
9763
|
function StatusButton({
|
|
9764
9764
|
hidden,
|
|
@@ -9777,7 +9777,7 @@ function StatusButton({
|
|
|
9777
9777
|
const configMap = (0, import_react75.useMemo)(() => {
|
|
9778
9778
|
const defaultLoadingConfig = {
|
|
9779
9779
|
text: loadingText ?? `${t("saving")}...`,
|
|
9780
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
9780
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_lucide_react34.Loader2, { className: "h-4 w-4 animate-spin" }),
|
|
9781
9781
|
variant,
|
|
9782
9782
|
isLoading: true
|
|
9783
9783
|
};
|
|
@@ -9787,13 +9787,13 @@ function StatusButton({
|
|
|
9787
9787
|
validating: { ...defaultLoadingConfig, text: t("validating") },
|
|
9788
9788
|
error: {
|
|
9789
9789
|
text: t("error"),
|
|
9790
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
9790
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_lucide_react34.AlertCircle, { className: "h-4 w-4" }),
|
|
9791
9791
|
variant: "destructive",
|
|
9792
9792
|
isLoading: false
|
|
9793
9793
|
},
|
|
9794
9794
|
success: {
|
|
9795
9795
|
text: successText ?? t("saved_exclamation"),
|
|
9796
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
9796
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_lucide_react34.CheckCircle, { className: "h-4 w-4" }),
|
|
9797
9797
|
variant,
|
|
9798
9798
|
isLoading: false
|
|
9799
9799
|
},
|
|
@@ -9832,12 +9832,12 @@ function StatusButton({
|
|
|
9832
9832
|
}
|
|
9833
9833
|
|
|
9834
9834
|
// src/status-box/StatusBox.tsx
|
|
9835
|
-
var
|
|
9835
|
+
var import_lucide_react35 = require("lucide-react");
|
|
9836
9836
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
9837
9837
|
function StatusBox({ status, title, text }) {
|
|
9838
9838
|
if (status === "success") {
|
|
9839
9839
|
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex items-center gap-3 rounded-lg border border-green-100 bg-green-50 p-4", children: [
|
|
9840
|
-
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "rounded-full bg-green-100 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
9840
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "rounded-full bg-green-100 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react35.CheckIcon, { className: "h-5 w-5 text-green-600" }) }),
|
|
9841
9841
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { children: [
|
|
9842
9842
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "font-semibold text-green-800", children: title }),
|
|
9843
9843
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-sm text-green-700", children: text })
|
|
@@ -9846,7 +9846,7 @@ function StatusBox({ status, title, text }) {
|
|
|
9846
9846
|
}
|
|
9847
9847
|
if (status === "failed") {
|
|
9848
9848
|
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex items-center gap-3 rounded-lg border border-red-100 bg-red-50 p-4", children: [
|
|
9849
|
-
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "rounded-full bg-red-100 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
9849
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "rounded-full bg-red-100 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react35.XIcon, { className: "h-5 w-5 text-red-600" }) }),
|
|
9850
9850
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { children: [
|
|
9851
9851
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "font-semibold text-red-800", children: title }),
|
|
9852
9852
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-sm text-red-700", children: text })
|
|
@@ -9854,7 +9854,7 @@ function StatusBox({ status, title, text }) {
|
|
|
9854
9854
|
] });
|
|
9855
9855
|
}
|
|
9856
9856
|
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex items-center gap-3 rounded-lg border border-amber-100 bg-amber-50 p-4", children: [
|
|
9857
|
-
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "rounded-full bg-amber-100 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
9857
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "rounded-full bg-amber-100 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react35.AlertTriangleIcon, { className: "h-5 w-5 text-amber-600" }) }),
|
|
9858
9858
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { children: [
|
|
9859
9859
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "font-semibold text-amber-800", children: title }),
|
|
9860
9860
|
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-sm text-amber-700", children: text })
|
|
@@ -10114,7 +10114,7 @@ function TabbedSection({
|
|
|
10114
10114
|
}
|
|
10115
10115
|
|
|
10116
10116
|
// src/table-filter/TableFilter.tsx
|
|
10117
|
-
var
|
|
10117
|
+
var import_lucide_react36 = require("lucide-react");
|
|
10118
10118
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
10119
10119
|
function TableFilter({ onRemove, onClick, children, className }) {
|
|
10120
10120
|
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
@@ -10130,7 +10130,7 @@ function TableFilter({ onRemove, onClick, children, className }) {
|
|
|
10130
10130
|
children: [
|
|
10131
10131
|
children,
|
|
10132
10132
|
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
10133
|
-
|
|
10133
|
+
import_lucide_react36.SquareX,
|
|
10134
10134
|
{
|
|
10135
10135
|
onClick: onRemove,
|
|
10136
10136
|
size: 15,
|
|
@@ -10688,7 +10688,7 @@ function ThreeDotsLoader({
|
|
|
10688
10688
|
}
|
|
10689
10689
|
|
|
10690
10690
|
// src/uploaded-files-list/UploadedFilesList.tsx
|
|
10691
|
-
var
|
|
10691
|
+
var import_lucide_react37 = require("lucide-react");
|
|
10692
10692
|
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
10693
10693
|
function UploadedFilesList({
|
|
10694
10694
|
files,
|
|
@@ -10711,7 +10711,7 @@ function UploadedFilesList({
|
|
|
10711
10711
|
onClick: () => onRemoveFile(file.name),
|
|
10712
10712
|
className: "flex h-[18px] w-[18px] shrink-0 cursor-pointer items-center justify-center rounded bg-[#6b6b95] transition-all hover:shadow-md active:opacity-95",
|
|
10713
10713
|
"aria-label": `Remove ${file.name}`,
|
|
10714
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
10714
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_lucide_react37.X, { className: "h-3.5 w-3.5 text-white", strokeWidth: 3 })
|
|
10715
10715
|
}
|
|
10716
10716
|
)
|
|
10717
10717
|
]
|
|
@@ -10816,7 +10816,7 @@ function VerticalTabs({
|
|
|
10816
10816
|
}
|
|
10817
10817
|
|
|
10818
10818
|
// src/video-modal/VideoModal.tsx
|
|
10819
|
-
var
|
|
10819
|
+
var import_lucide_react38 = require("lucide-react");
|
|
10820
10820
|
var React40 = __toESM(require("react"), 1);
|
|
10821
10821
|
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
10822
10822
|
function VideoModal({
|
|
@@ -10870,7 +10870,7 @@ function VideoModal({
|
|
|
10870
10870
|
"max-sm:right-2 max-sm:top-2"
|
|
10871
10871
|
),
|
|
10872
10872
|
"aria-label": "Close",
|
|
10873
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
10873
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_lucide_react38.X, { className: "h-5 w-5", "aria-hidden": true })
|
|
10874
10874
|
}
|
|
10875
10875
|
),
|
|
10876
10876
|
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)("div", { className: "relative w-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
@@ -10894,7 +10894,7 @@ function VideoModal({
|
|
|
10894
10894
|
// src/video-player/VideoPlayer.tsx
|
|
10895
10895
|
var import_react82 = require("react");
|
|
10896
10896
|
var import_react_i18next21 = require("react-i18next");
|
|
10897
|
-
var
|
|
10897
|
+
var import_lucide_react39 = require("lucide-react");
|
|
10898
10898
|
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
10899
10899
|
function VideoPlayer({
|
|
10900
10900
|
src,
|
|
@@ -11061,12 +11061,12 @@ function VideoPlayer({
|
|
|
11061
11061
|
onClick: onClose,
|
|
11062
11062
|
className: "absolute right-4 top-4 z-10 rounded-full text-white transition-all duration-300 hover:scale-110 hover:bg-white/20 active:scale-95",
|
|
11063
11063
|
"aria-label": t("close"),
|
|
11064
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
11064
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.X, { className: "h-6 w-6" })
|
|
11065
11065
|
}
|
|
11066
11066
|
),
|
|
11067
11067
|
title && isFullScreenMode && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "absolute left-4 top-4 z-10 animate-in slide-in-from-left-4 text-white delay-200 duration-500", children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("h3", { className: "text-lg font-medium drop-shadow-lg", children: title }) }),
|
|
11068
11068
|
isLoading && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-black/50", children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center gap-3 text-white", children: [
|
|
11069
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
11069
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.Loader2, { className: "h-8 w-8 animate-spin" }),
|
|
11070
11070
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "text-lg font-medium", children: t("loading_video") })
|
|
11071
11071
|
] }) }),
|
|
11072
11072
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: videoContainerClasses, onClick: (event) => event.stopPropagation(), children: videoSource === "youtube" ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
@@ -11133,7 +11133,7 @@ function VideoPlayer({
|
|
|
11133
11133
|
onClick: togglePlay,
|
|
11134
11134
|
className: "h-10 w-10 rounded-full text-white transition-all duration-200 hover:scale-110 hover:bg-white/20 active:scale-95",
|
|
11135
11135
|
"aria-label": isPlaying ? t("pause") : t("play"),
|
|
11136
|
-
children: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
11136
|
+
children: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.Pause, { className: "h-5 w-5" }) : /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.Play, { className: "h-5 w-5" })
|
|
11137
11137
|
}
|
|
11138
11138
|
),
|
|
11139
11139
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
@@ -11144,7 +11144,7 @@ function VideoPlayer({
|
|
|
11144
11144
|
onClick: skipBackward,
|
|
11145
11145
|
className: "h-10 w-10 rounded-full text-white transition-all duration-200 hover:scale-110 hover:bg-white/20 active:scale-95",
|
|
11146
11146
|
"aria-label": t("skip_backward"),
|
|
11147
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
11147
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.SkipBack, { className: "h-5 w-5" })
|
|
11148
11148
|
}
|
|
11149
11149
|
),
|
|
11150
11150
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
@@ -11155,7 +11155,7 @@ function VideoPlayer({
|
|
|
11155
11155
|
onClick: skipForward,
|
|
11156
11156
|
className: "h-10 w-10 rounded-full text-white transition-all duration-200 hover:scale-110 hover:bg-white/20 active:scale-95",
|
|
11157
11157
|
"aria-label": t("skip_forward"),
|
|
11158
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
11158
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.SkipForward, { className: "h-5 w-5" })
|
|
11159
11159
|
}
|
|
11160
11160
|
),
|
|
11161
11161
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
@@ -11166,7 +11166,7 @@ function VideoPlayer({
|
|
|
11166
11166
|
onClick: toggleMute,
|
|
11167
11167
|
className: "h-10 w-10 rounded-full text-white transition-all duration-200 hover:scale-110 hover:bg-white/20 active:scale-95",
|
|
11168
11168
|
"aria-label": isMuted ? t("unmute") : t("mute"),
|
|
11169
|
-
children: isMuted ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
11169
|
+
children: isMuted ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.VolumeX, { className: "h-5 w-5" }) : /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.Volume2, { className: "h-5 w-5" })
|
|
11170
11170
|
}
|
|
11171
11171
|
),
|
|
11172
11172
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("span", { className: "text-sm font-medium text-white/90", children: [
|
|
@@ -11183,7 +11183,7 @@ function VideoPlayer({
|
|
|
11183
11183
|
onClick: toggleFullScreen,
|
|
11184
11184
|
className: "h-10 w-10 rounded-full text-white transition-all duration-200 hover:scale-110 hover:bg-white/20 active:scale-95",
|
|
11185
11185
|
"aria-label": isFullScreenMode ? t("exit_full_screen") : t("enter_full_screen"),
|
|
11186
|
-
children: isFullScreenMode ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
11186
|
+
children: isFullScreenMode ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.Minimize, { className: "h-5 w-5" }) : /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_lucide_react39.Maximize, { className: "h-5 w-5" })
|
|
11187
11187
|
}
|
|
11188
11188
|
)
|
|
11189
11189
|
] })
|
|
@@ -11687,7 +11687,7 @@ var Webcam = (0, import_react84.memo)(
|
|
|
11687
11687
|
Webcam.displayName = "Webcam";
|
|
11688
11688
|
|
|
11689
11689
|
// src/mobile-webcam/MobileWebcam.tsx
|
|
11690
|
-
var
|
|
11690
|
+
var import_lucide_react40 = require("lucide-react");
|
|
11691
11691
|
var import_react86 = require("react");
|
|
11692
11692
|
var import_react_dom = require("react-dom");
|
|
11693
11693
|
var import_react_i18next24 = require("react-i18next");
|
|
@@ -11758,7 +11758,7 @@ var MobileWebcam = (0, import_react86.forwardRef)(
|
|
|
11758
11758
|
type: "button",
|
|
11759
11759
|
onClick: onBack,
|
|
11760
11760
|
className: "mobile-camera__back-btn fixed left-7 top-9 z-[7] flex border-0 bg-transparent p-0 landscape:left-[50px] landscape:top-[70px]",
|
|
11761
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
|
|
11761
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_lucide_react40.ChevronLeft, { size: 32, strokeWidth: 3, className: "text-white" })
|
|
11762
11762
|
}
|
|
11763
11763
|
),
|
|
11764
11764
|
title && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "mobile-camera__title fixed left-1/2 top-8 z-[7] -translate-x-1/2 whitespace-nowrap text-[18px] font-bold text-white landscape:top-[5px]", children: title }),
|
|
@@ -11783,7 +11783,7 @@ var MobileWebcam = (0, import_react86.forwardRef)(
|
|
|
11783
11783
|
disabled,
|
|
11784
11784
|
onClick: () => onScreenshot({ isNative: false }),
|
|
11785
11785
|
className: "mobile-camera__take-btn relative flex h-[75px] w-[75px] items-center justify-center self-center rounded-full border-0 bg-white p-[10px] shadow-[0_0_10px_#ffffff] hover:opacity-80 disabled:cursor-default disabled:opacity-60 disabled:hover:opacity-60",
|
|
11786
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
|
|
11786
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_lucide_react40.Camera, { size: 26, className: "text-[var(--primary)]" })
|
|
11787
11787
|
}
|
|
11788
11788
|
),
|
|
11789
11789
|
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
|
|
@@ -12221,7 +12221,7 @@ function ResponsiveDropdown({
|
|
|
12221
12221
|
|
|
12222
12222
|
// src/dashboard/input/Input.tsx
|
|
12223
12223
|
var React44 = __toESM(require("react"), 1);
|
|
12224
|
-
var
|
|
12224
|
+
var import_lucide_react41 = require("lucide-react");
|
|
12225
12225
|
var import_react_i18next25 = require("react-i18next");
|
|
12226
12226
|
|
|
12227
12227
|
// src/dashboard/input/useInputValueState.ts
|
|
@@ -12514,7 +12514,11 @@ var Input = React44.forwardRef(
|
|
|
12514
12514
|
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
|
|
12515
12515
|
"div",
|
|
12516
12516
|
{
|
|
12517
|
-
className: cn(
|
|
12517
|
+
className: cn(
|
|
12518
|
+
"input__content relative w-full cursor-text",
|
|
12519
|
+
readOnly && !disabled && !loading && "cursor-default",
|
|
12520
|
+
contentClassName
|
|
12521
|
+
),
|
|
12518
12522
|
children: [
|
|
12519
12523
|
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12520
12524
|
Fieldset,
|
|
@@ -12569,7 +12573,8 @@ var Input = React44.forwardRef(
|
|
|
12569
12573
|
isEmpty && !isFocused ? "bg-[var(--empty-field-background)]" : "bg-transparent",
|
|
12570
12574
|
isEmpty && "text-[var(--chekin-color-gray-1)]",
|
|
12571
12575
|
inputType === "password" && "[&:not(:placeholder-shown)]:font-bold [&:not(:placeholder-shown)]:tracking-[2px]",
|
|
12572
|
-
|
|
12576
|
+
disabled && "cursor-not-allowed",
|
|
12577
|
+
readOnly && !disabled && !loading && "cursor-default",
|
|
12573
12578
|
loading && "cursor-progress",
|
|
12574
12579
|
leftIcon && "pl-10",
|
|
12575
12580
|
(showRightPaddingForReset || showRightPaddingForReveal) && "pr-10",
|
|
@@ -12588,7 +12593,7 @@ var Input = React44.forwardRef(
|
|
|
12588
12593
|
disabled,
|
|
12589
12594
|
className: "input__reset-button absolute right-0 top-0 flex h-full w-10 items-center justify-center border-0 bg-transparent p-0 text-[#9696b9] hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-50",
|
|
12590
12595
|
"aria-label": t("reset"),
|
|
12591
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12596
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_lucide_react41.X, { size: 14 })
|
|
12592
12597
|
}
|
|
12593
12598
|
),
|
|
12594
12599
|
isPasswordReveal && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
@@ -12599,7 +12604,7 @@ var Input = React44.forwardRef(
|
|
|
12599
12604
|
className: "input__password-button absolute right-[14px] top-[18px] flex h-[13px] w-[21px] cursor-pointer items-center justify-center border-0 bg-transparent p-0 hover:opacity-85",
|
|
12600
12605
|
"aria-label": isPasswordRevealed ? t("hide_password") : t("show_password"),
|
|
12601
12606
|
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12602
|
-
|
|
12607
|
+
import_lucide_react41.Eye,
|
|
12603
12608
|
{
|
|
12604
12609
|
size: 20,
|
|
12605
12610
|
className: cn(
|
|
@@ -12621,7 +12626,7 @@ var Input = React44.forwardRef(
|
|
|
12621
12626
|
onClick: onDecrement,
|
|
12622
12627
|
className: "input__decrement-button mr-2 inline-flex h-[23px] w-8 cursor-pointer items-center justify-center rounded-[3px] border-0 bg-[var(--chekin-color-brand-blue)] p-0 text-[20px] font-bold text-white outline-none hover:opacity-90 active:opacity-100",
|
|
12623
12628
|
"aria-label": t("decrement"),
|
|
12624
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12629
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_lucide_react41.Minus, { size: 16, strokeWidth: 3, "aria-hidden": true })
|
|
12625
12630
|
}
|
|
12626
12631
|
),
|
|
12627
12632
|
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
@@ -12631,7 +12636,7 @@ var Input = React44.forwardRef(
|
|
|
12631
12636
|
onClick: onIncrement,
|
|
12632
12637
|
className: "input__increment-button inline-flex h-[23px] w-8 cursor-pointer items-center justify-center rounded-[3px] border-0 bg-[var(--chekin-color-brand-blue)] p-0 text-[20px] font-bold text-white outline-none hover:opacity-90 active:opacity-100",
|
|
12633
12638
|
"aria-label": t("increment"),
|
|
12634
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12639
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_lucide_react41.Plus, { size: 16, strokeWidth: 3, "aria-hidden": true })
|
|
12635
12640
|
}
|
|
12636
12641
|
)
|
|
12637
12642
|
] })
|
|
@@ -12835,7 +12840,7 @@ function countriesFilter(option, inputValue) {
|
|
|
12835
12840
|
}
|
|
12836
12841
|
|
|
12837
12842
|
// src/dashboard/_select-internals/slots/DefaultOption.tsx
|
|
12838
|
-
var
|
|
12843
|
+
var import_lucide_react42 = require("lucide-react");
|
|
12839
12844
|
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
12840
12845
|
function DefaultOption(props) {
|
|
12841
12846
|
const {
|
|
@@ -12882,7 +12887,7 @@ function DefaultOption(props) {
|
|
|
12882
12887
|
/* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "block min-w-0 break-words", children: labelContent }),
|
|
12883
12888
|
option.description && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "ml-auto shrink-0 self-center text-[12px] font-medium italic text-[var(--chekin-color-gray-1)]", children: option.description }),
|
|
12884
12889
|
isSelected && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
12885
|
-
|
|
12890
|
+
import_lucide_react42.Check,
|
|
12886
12891
|
{
|
|
12887
12892
|
"aria-hidden": "true",
|
|
12888
12893
|
className: cn(
|
|
@@ -13135,7 +13140,7 @@ function SelectMenuPanel({
|
|
|
13135
13140
|
}
|
|
13136
13141
|
|
|
13137
13142
|
// src/dashboard/_select-internals/SelectSearchInput.tsx
|
|
13138
|
-
var
|
|
13143
|
+
var import_lucide_react43 = require("lucide-react");
|
|
13139
13144
|
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
13140
13145
|
function SelectSearchInput({
|
|
13141
13146
|
inputRef,
|
|
@@ -13148,7 +13153,7 @@ function SelectSearchInput({
|
|
|
13148
13153
|
}) {
|
|
13149
13154
|
return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "border-b border-[var(--chekin-color-gray-3)] bg-white p-2", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", { className: "relative", children: [
|
|
13150
13155
|
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
13151
|
-
|
|
13156
|
+
import_lucide_react43.Search,
|
|
13152
13157
|
{
|
|
13153
13158
|
"aria-hidden": "true",
|
|
13154
13159
|
className: "pointer-events-none absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-[var(--chekin-color-gray-2)]"
|
|
@@ -13173,7 +13178,7 @@ function SelectSearchInput({
|
|
|
13173
13178
|
}
|
|
13174
13179
|
|
|
13175
13180
|
// src/dashboard/_select-internals/SelectTrigger.tsx
|
|
13176
|
-
var
|
|
13181
|
+
var import_lucide_react44 = require("lucide-react");
|
|
13177
13182
|
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
13178
13183
|
function SelectTrigger({
|
|
13179
13184
|
triggerRef,
|
|
@@ -13232,7 +13237,7 @@ function SelectTrigger({
|
|
|
13232
13237
|
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "pointer-events-none absolute left-0 top-0 flex h-full max-w-10 items-center justify-center text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "flex h-full w-10 items-center justify-center", children: leftIcon }) }),
|
|
13233
13238
|
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { id: valueId, className: "block min-w-0 flex-1 truncate text-left", children: hasValue ? valueLabel : showPlaceholderWhenIdle || isOpen ? placeholder : null }),
|
|
13234
13239
|
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: !hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
|
|
13235
|
-
|
|
13240
|
+
import_lucide_react44.ChevronDown,
|
|
13236
13241
|
{
|
|
13237
13242
|
size: 16,
|
|
13238
13243
|
className: cn(
|
|
@@ -13247,7 +13252,7 @@ function SelectTrigger({
|
|
|
13247
13252
|
}
|
|
13248
13253
|
|
|
13249
13254
|
// src/dashboard/_select-internals/ComboboxTrigger.tsx
|
|
13250
|
-
var
|
|
13255
|
+
var import_lucide_react45 = require("lucide-react");
|
|
13251
13256
|
var import_react_i18next29 = require("react-i18next");
|
|
13252
13257
|
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
13253
13258
|
function ComboboxTrigger({
|
|
@@ -13387,7 +13392,7 @@ function ComboboxTrigger({
|
|
|
13387
13392
|
onClick: onClear,
|
|
13388
13393
|
className: "flex h-5 w-5 items-center justify-center rounded-[3px] border-0 bg-transparent p-0 text-[#9696b9] hover:shadow-[0_3px_3px_#0f477734]",
|
|
13389
13394
|
"aria-label": clearLabel,
|
|
13390
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
13395
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(import_lucide_react45.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
|
|
13391
13396
|
}
|
|
13392
13397
|
),
|
|
13393
13398
|
!hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
@@ -13877,7 +13882,7 @@ function useSelectState(params) {
|
|
|
13877
13882
|
}
|
|
13878
13883
|
|
|
13879
13884
|
// src/dashboard/_select-internals/slots/DefaultMultiValueChip.tsx
|
|
13880
|
-
var
|
|
13885
|
+
var import_lucide_react46 = require("lucide-react");
|
|
13881
13886
|
var import_react_i18next30 = require("react-i18next");
|
|
13882
13887
|
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
13883
13888
|
function DefaultMultiValueChip({
|
|
@@ -13899,7 +13904,7 @@ function DefaultMultiValueChip({
|
|
|
13899
13904
|
},
|
|
13900
13905
|
className: "flex h-4 w-4 items-center justify-center rounded-sm border-0 bg-transparent p-0 text-[var(--chekin-color-gray-1)] outline-none transition-colors hover:bg-white/70 hover:text-[var(--chekin-color-brand-navy)] focus-visible:ring-2 focus-visible:ring-[var(--chekin-color-brand-blue)]/30",
|
|
13901
13906
|
"aria-label": t("remove_item", { label: labelText }),
|
|
13902
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
13907
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(import_lucide_react46.X, { size: 12, strokeWidth: 2.5 })
|
|
13903
13908
|
}
|
|
13904
13909
|
)
|
|
13905
13910
|
] });
|
|
@@ -13999,7 +14004,7 @@ function DefaultControl(props) {
|
|
|
13999
14004
|
}
|
|
14000
14005
|
|
|
14001
14006
|
// src/dashboard/_select-internals/slots/StaticControl.tsx
|
|
14002
|
-
var
|
|
14007
|
+
var import_lucide_react47 = require("lucide-react");
|
|
14003
14008
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
14004
14009
|
function StaticControl(props) {
|
|
14005
14010
|
const {
|
|
@@ -14062,7 +14067,7 @@ function StaticControl(props) {
|
|
|
14062
14067
|
onClick: onClear,
|
|
14063
14068
|
className: "absolute right-9 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-[3px] border-0 bg-transparent p-0 text-[#9696b9] hover:shadow-[0_3px_3px_#0f477734]",
|
|
14064
14069
|
"aria-label": clearLabel,
|
|
14065
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
|
|
14070
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(import_lucide_react47.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
|
|
14066
14071
|
}
|
|
14067
14072
|
)
|
|
14068
14073
|
] });
|
|
@@ -15076,64 +15081,10 @@ var InfiniteScrollMultiSelect = React57.forwardRef(function InfiniteScrollMultiS
|
|
|
15076
15081
|
var React58 = __toESM(require("react"), 1);
|
|
15077
15082
|
var import_react_i18next36 = require("react-i18next");
|
|
15078
15083
|
|
|
15079
|
-
// src/dashboard/select-checkboxes/SelectCheckboxOption.tsx
|
|
15080
|
-
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
15081
|
-
function SelectCheckboxOption(props) {
|
|
15082
|
-
const {
|
|
15083
|
-
option,
|
|
15084
|
-
index,
|
|
15085
|
-
isSelected,
|
|
15086
|
-
isHighlighted,
|
|
15087
|
-
isDisabled,
|
|
15088
|
-
id,
|
|
15089
|
-
onClick,
|
|
15090
|
-
onHover,
|
|
15091
|
-
innerRef
|
|
15092
|
-
} = props;
|
|
15093
|
-
return /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(
|
|
15094
|
-
"button",
|
|
15095
|
-
{
|
|
15096
|
-
id,
|
|
15097
|
-
ref: innerRef,
|
|
15098
|
-
type: "button",
|
|
15099
|
-
role: "option",
|
|
15100
|
-
"aria-selected": isSelected,
|
|
15101
|
-
"aria-disabled": isDisabled,
|
|
15102
|
-
tabIndex: -1,
|
|
15103
|
-
disabled: isDisabled,
|
|
15104
|
-
onClick: () => onClick(option),
|
|
15105
|
-
onMouseMove: () => onHover(index),
|
|
15106
|
-
className: cn(
|
|
15107
|
-
"flex w-full items-center gap-3 rounded-md border-0 bg-transparent px-3 py-2 text-left text-[15px] font-medium leading-5 text-[var(--chekin-color-brand-navy)] outline-none transition-colors duration-100",
|
|
15108
|
-
!isDisabled && "cursor-pointer hover:bg-[var(--chekin-color-surface-pressed)]",
|
|
15109
|
-
isHighlighted && !isDisabled && "bg-[var(--chekin-color-surface-pressed)]",
|
|
15110
|
-
isSelected && "bg-[var(--chekin-color-surface-autocomplete)] font-semibold text-[var(--chekin-color-brand-blue)]",
|
|
15111
|
-
isDisabled && "cursor-not-allowed text-[var(--chekin-color-gray-2)]"
|
|
15112
|
-
),
|
|
15113
|
-
children: [
|
|
15114
|
-
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
|
|
15115
|
-
BaseCheckbox,
|
|
15116
|
-
{
|
|
15117
|
-
checked: isSelected,
|
|
15118
|
-
disabled: isDisabled,
|
|
15119
|
-
size: "s",
|
|
15120
|
-
tabIndex: -1,
|
|
15121
|
-
className: "pointer-events-none shrink-0"
|
|
15122
|
-
}
|
|
15123
|
-
),
|
|
15124
|
-
/* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("span", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
|
|
15125
|
-
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "block break-words", children: option.label }),
|
|
15126
|
-
option.description && /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "shrink-0 text-[12px] font-medium italic text-[var(--chekin-color-gray-1)]", children: option.description })
|
|
15127
|
-
] })
|
|
15128
|
-
]
|
|
15129
|
-
}
|
|
15130
|
-
);
|
|
15131
|
-
}
|
|
15132
|
-
|
|
15133
15084
|
// src/dashboard/select-checkboxes/CountTrigger.tsx
|
|
15134
|
-
var
|
|
15085
|
+
var import_lucide_react48 = require("lucide-react");
|
|
15135
15086
|
var import_react_i18next35 = require("react-i18next");
|
|
15136
|
-
var
|
|
15087
|
+
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
15137
15088
|
function createCountTrigger(opts) {
|
|
15138
15089
|
const { valueText, totalCount } = opts;
|
|
15139
15090
|
function CountTrigger(props) {
|
|
@@ -15161,7 +15112,7 @@ function createCountTrigger(opts) {
|
|
|
15161
15112
|
const computedText = typeof valueText === "function" ? valueText(count, total) : valueText ?? (count > 0 ? t("n_selected", { count, defaultValue: `${count} selected` }) : "");
|
|
15162
15113
|
const display = hasValue ? computedText : isOpen ? placeholder ?? null : null;
|
|
15163
15114
|
const isEmpty = !hasValue;
|
|
15164
|
-
return /* @__PURE__ */ (0,
|
|
15115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(
|
|
15165
15116
|
"button",
|
|
15166
15117
|
{
|
|
15167
15118
|
id: triggerId,
|
|
@@ -15184,10 +15135,10 @@ function createCountTrigger(opts) {
|
|
|
15184
15135
|
loading && "!cursor-progress"
|
|
15185
15136
|
),
|
|
15186
15137
|
children: [
|
|
15187
|
-
leftIcon && /* @__PURE__ */ (0,
|
|
15188
|
-
/* @__PURE__ */ (0,
|
|
15189
|
-
/* @__PURE__ */ (0,
|
|
15190
|
-
|
|
15138
|
+
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "pointer-events-none absolute left-0 top-0 flex h-full max-w-10 items-center justify-center text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "flex h-full w-10 items-center justify-center", children: leftIcon }) }),
|
|
15139
|
+
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { id: valueId, className: "block min-w-0 flex-1 truncate text-left", children: display }),
|
|
15140
|
+
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "pointer-events-none flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
|
|
15141
|
+
import_lucide_react48.ChevronDown,
|
|
15191
15142
|
{
|
|
15192
15143
|
size: 16,
|
|
15193
15144
|
className: cn(
|
|
@@ -15204,9 +15155,9 @@ function createCountTrigger(opts) {
|
|
|
15204
15155
|
}
|
|
15205
15156
|
|
|
15206
15157
|
// src/dashboard/select-checkboxes/SelectAllRow.tsx
|
|
15207
|
-
var
|
|
15158
|
+
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
15208
15159
|
function SelectAllRow({ label, checked, disabled, onToggle }) {
|
|
15209
|
-
return /* @__PURE__ */ (0,
|
|
15160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
|
|
15210
15161
|
"button",
|
|
15211
15162
|
{
|
|
15212
15163
|
type: "button",
|
|
@@ -15217,7 +15168,7 @@ function SelectAllRow({ label, checked, disabled, onToggle }) {
|
|
|
15217
15168
|
disabled && "cursor-default opacity-40"
|
|
15218
15169
|
),
|
|
15219
15170
|
children: [
|
|
15220
|
-
/* @__PURE__ */ (0,
|
|
15171
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
15221
15172
|
BaseCheckbox,
|
|
15222
15173
|
{
|
|
15223
15174
|
checked,
|
|
@@ -15227,20 +15178,20 @@ function SelectAllRow({ label, checked, disabled, onToggle }) {
|
|
|
15227
15178
|
className: "pointer-events-none shrink-0"
|
|
15228
15179
|
}
|
|
15229
15180
|
),
|
|
15230
|
-
/* @__PURE__ */ (0,
|
|
15181
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "flex-1", children: label })
|
|
15231
15182
|
]
|
|
15232
15183
|
}
|
|
15233
15184
|
);
|
|
15234
15185
|
}
|
|
15235
15186
|
|
|
15236
15187
|
// src/dashboard/select-checkboxes/SelectCheckboxes.tsx
|
|
15237
|
-
var
|
|
15188
|
+
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
15238
15189
|
function hasPaginationProps(props) {
|
|
15239
15190
|
return props.canLoadMore !== void 0 || props.isLoadingMore !== void 0 || props.loadMoreItems !== void 0 || props.onSearchChange !== void 0;
|
|
15240
15191
|
}
|
|
15241
15192
|
function makeTriggerSlot(render) {
|
|
15242
15193
|
function CustomTrigger(props) {
|
|
15243
|
-
return /* @__PURE__ */ (0,
|
|
15194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_jsx_runtime167.Fragment, { children: render(props.isOpen, props.onContainerClick) });
|
|
15244
15195
|
}
|
|
15245
15196
|
return CustomTrigger;
|
|
15246
15197
|
}
|
|
@@ -15325,15 +15276,7 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
15325
15276
|
totalCount: flatRawOptions.length
|
|
15326
15277
|
});
|
|
15327
15278
|
}, [trigger, valueText, flatRawOptions.length]);
|
|
15328
|
-
const
|
|
15329
|
-
() => ({
|
|
15330
|
-
...userComponents,
|
|
15331
|
-
Control,
|
|
15332
|
-
Option: userComponents?.Option ?? SelectCheckboxOption
|
|
15333
|
-
}),
|
|
15334
|
-
[userComponents, Control]
|
|
15335
|
-
);
|
|
15336
|
-
const menuHeader = allowSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
15279
|
+
const menuHeader = allowSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
15337
15280
|
SelectAllRow,
|
|
15338
15281
|
{
|
|
15339
15282
|
label: selectAllLabel ?? t("select_all", { defaultValue: "Select All" }),
|
|
@@ -15353,7 +15296,7 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
15353
15296
|
value: currentValue,
|
|
15354
15297
|
onChange: handleChange,
|
|
15355
15298
|
filterOption: passthroughFilter2,
|
|
15356
|
-
components,
|
|
15299
|
+
// components,
|
|
15357
15300
|
closeMenuOnSelect,
|
|
15358
15301
|
searchPosition: searchable ? "dropdown" : "trigger",
|
|
15359
15302
|
searchable,
|
|
@@ -15362,7 +15305,7 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
15362
15305
|
isMulti: true
|
|
15363
15306
|
};
|
|
15364
15307
|
if (isPaginated) {
|
|
15365
|
-
return /* @__PURE__ */ (0,
|
|
15308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
15366
15309
|
InfiniteScrollSelect,
|
|
15367
15310
|
{
|
|
15368
15311
|
ref,
|
|
@@ -15373,7 +15316,7 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
15373
15316
|
}
|
|
15374
15317
|
);
|
|
15375
15318
|
}
|
|
15376
|
-
return /* @__PURE__ */ (0,
|
|
15319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
15377
15320
|
Select,
|
|
15378
15321
|
{
|
|
15379
15322
|
ref,
|
|
@@ -15388,6 +15331,60 @@ var SelectCheckboxes = React58.forwardRef(
|
|
|
15388
15331
|
SelectCheckboxesInternal
|
|
15389
15332
|
);
|
|
15390
15333
|
|
|
15334
|
+
// src/dashboard/select-checkboxes/SelectCheckboxOption.tsx
|
|
15335
|
+
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
15336
|
+
function SelectCheckboxOption(props) {
|
|
15337
|
+
const {
|
|
15338
|
+
option,
|
|
15339
|
+
index,
|
|
15340
|
+
isSelected,
|
|
15341
|
+
isHighlighted,
|
|
15342
|
+
isDisabled,
|
|
15343
|
+
id,
|
|
15344
|
+
onClick,
|
|
15345
|
+
onHover,
|
|
15346
|
+
innerRef
|
|
15347
|
+
} = props;
|
|
15348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(
|
|
15349
|
+
"button",
|
|
15350
|
+
{
|
|
15351
|
+
id,
|
|
15352
|
+
ref: innerRef,
|
|
15353
|
+
type: "button",
|
|
15354
|
+
role: "option",
|
|
15355
|
+
"aria-selected": isSelected,
|
|
15356
|
+
"aria-disabled": isDisabled,
|
|
15357
|
+
tabIndex: -1,
|
|
15358
|
+
disabled: isDisabled,
|
|
15359
|
+
onClick: () => onClick(option),
|
|
15360
|
+
onMouseMove: () => onHover(index),
|
|
15361
|
+
className: cn(
|
|
15362
|
+
"flex w-full items-center gap-3 rounded-md border-0 bg-transparent px-3 py-2 text-left text-[15px] font-medium leading-5 text-[var(--chekin-color-brand-navy)] outline-none transition-colors duration-100",
|
|
15363
|
+
!isDisabled && "cursor-pointer hover:bg-[var(--chekin-color-surface-pressed)]",
|
|
15364
|
+
isHighlighted && !isDisabled && "bg-[var(--chekin-color-surface-pressed)]",
|
|
15365
|
+
isSelected && "bg-[var(--chekin-color-surface-autocomplete)] font-semibold text-[var(--chekin-color-brand-blue)]",
|
|
15366
|
+
isDisabled && "cursor-not-allowed text-[var(--chekin-color-gray-2)]"
|
|
15367
|
+
),
|
|
15368
|
+
children: [
|
|
15369
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
15370
|
+
BaseCheckbox,
|
|
15371
|
+
{
|
|
15372
|
+
checked: isSelected,
|
|
15373
|
+
disabled: isDisabled,
|
|
15374
|
+
size: "s",
|
|
15375
|
+
tabIndex: -1,
|
|
15376
|
+
className: "pointer-events-none shrink-0"
|
|
15377
|
+
}
|
|
15378
|
+
),
|
|
15379
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("span", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
|
|
15380
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "block break-words", children: option.label }),
|
|
15381
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "shrink-0 text-[12px] font-medium italic text-[var(--chekin-color-gray-1)]", children: option.description })
|
|
15382
|
+
] })
|
|
15383
|
+
]
|
|
15384
|
+
}
|
|
15385
|
+
);
|
|
15386
|
+
}
|
|
15387
|
+
|
|
15391
15388
|
// src/dashboard/textarea/Textarea.tsx
|
|
15392
15389
|
var React60 = __toESM(require("react"), 1);
|
|
15393
15390
|
var import_react_i18next37 = require("react-i18next");
|
|
@@ -15597,7 +15594,7 @@ var Textarea = React60.forwardRef(function Textarea2({
|
|
|
15597
15594
|
|
|
15598
15595
|
// src/dashboard/datepicker/Datepicker.tsx
|
|
15599
15596
|
var React62 = __toESM(require("react"), 1);
|
|
15600
|
-
var
|
|
15597
|
+
var import_lucide_react49 = require("lucide-react");
|
|
15601
15598
|
var import_react_i18next38 = require("react-i18next");
|
|
15602
15599
|
|
|
15603
15600
|
// src/airbnb-fields/datepicker/useDatePickerWheel.ts
|
|
@@ -16631,7 +16628,7 @@ var Datepicker = React62.forwardRef(
|
|
|
16631
16628
|
children: [
|
|
16632
16629
|
/* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "block min-w-0 flex-1 truncate text-left", children: triggerText ?? (isWheelOpen ? mobilePlaceholder : null) }),
|
|
16633
16630
|
/* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "pointer-events-none flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
|
|
16634
|
-
|
|
16631
|
+
import_lucide_react49.ChevronDown,
|
|
16635
16632
|
{
|
|
16636
16633
|
size: 16,
|
|
16637
16634
|
className: cn(
|
|
@@ -16726,7 +16723,7 @@ var Datepicker = React62.forwardRef(
|
|
|
16726
16723
|
}
|
|
16727
16724
|
),
|
|
16728
16725
|
/* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
|
|
16729
|
-
|
|
16726
|
+
import_lucide_react49.ChevronDown,
|
|
16730
16727
|
{
|
|
16731
16728
|
size: 14,
|
|
16732
16729
|
onMouseDown: (event) => {
|
|
@@ -17171,7 +17168,7 @@ function resolveRangeSelection({
|
|
|
17171
17168
|
}
|
|
17172
17169
|
|
|
17173
17170
|
// src/dashboard/date-range-picker/components/DateRangeInputs.tsx
|
|
17174
|
-
var
|
|
17171
|
+
var import_lucide_react50 = require("lucide-react");
|
|
17175
17172
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
17176
17173
|
var DEFAULT_PLACEHOLDER = "00-00-0000";
|
|
17177
17174
|
var inputBaseClass = "m-0 box-border h-full w-full min-w-0 border-0 bg-transparent text-[16px] font-medium leading-5 text-[var(--chekin-color-brand-navy)] outline-none placeholder:text-[var(--chekin-color-gray-1)]";
|
|
@@ -17293,7 +17290,7 @@ function DateRangeInputs({
|
|
|
17293
17290
|
onClick: onReset,
|
|
17294
17291
|
className: iconButtonClass,
|
|
17295
17292
|
"aria-label": clearLabel,
|
|
17296
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
|
|
17293
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_lucide_react50.SquareX, { size: 16, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
|
|
17297
17294
|
}
|
|
17298
17295
|
),
|
|
17299
17296
|
!readOnly && !hideCalendarIcon && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
|
|
@@ -17308,7 +17305,7 @@ function DateRangeInputs({
|
|
|
17308
17305
|
focusedInput !== null || isOpen ? "text-[var(--chekin-color-brand-blue)]" : "text-[var(--chekin-color-gray-2)]"
|
|
17309
17306
|
),
|
|
17310
17307
|
"aria-label": openCalendarLabel,
|
|
17311
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
|
|
17308
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_lucide_react50.CalendarDays, { size: 18 })
|
|
17312
17309
|
}
|
|
17313
17310
|
)
|
|
17314
17311
|
] })
|
|
@@ -17879,7 +17876,7 @@ var TimePicker = React68.forwardRef(function TimePicker2({ format: formatName =
|
|
|
17879
17876
|
|
|
17880
17877
|
// src/dashboard/file-input/FileInput.tsx
|
|
17881
17878
|
var React69 = __toESM(require("react"), 1);
|
|
17882
|
-
var
|
|
17879
|
+
var import_lucide_react51 = require("lucide-react");
|
|
17883
17880
|
var import_react_i18next41 = require("react-i18next");
|
|
17884
17881
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
17885
17882
|
function defaultDownload(url) {
|
|
@@ -17993,7 +17990,7 @@ var FileInput = React69.forwardRef(function FileInput2({
|
|
|
17993
17990
|
className: "inline-flex items-center gap-[7px] truncate border-0 bg-transparent p-0 text-[14px] font-medium text-[var(--chekin-color-brand-navy)] outline-none",
|
|
17994
17991
|
children: [
|
|
17995
17992
|
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: "truncate", children: resolvedDownloadLabel }),
|
|
17996
|
-
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
17993
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_lucide_react51.Download, { size: 15 })
|
|
17997
17994
|
]
|
|
17998
17995
|
}
|
|
17999
17996
|
) : /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: "truncate text-[14px] font-medium text-[var(--chekin-color-brand-navy)]", children: value.name }),
|
|
@@ -18005,13 +18002,13 @@ var FileInput = React69.forwardRef(function FileInput2({
|
|
|
18005
18002
|
onClick: handleClear,
|
|
18006
18003
|
className: "ml-2 flex h-[15px] w-[15px] items-center justify-center rounded-[3px] border-0 bg-transparent p-0 text-[#9696b9] outline-none hover:shadow-[0_3px_3px_#0f477734]",
|
|
18007
18004
|
"aria-label": t("remove_file"),
|
|
18008
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
18005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_lucide_react51.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
|
|
18009
18006
|
}
|
|
18010
18007
|
)
|
|
18011
18008
|
]
|
|
18012
18009
|
}
|
|
18013
18010
|
) : /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: "block min-w-0 flex-1 truncate text-left text-[var(--chekin-color-gray-1)]", children: placeholder ?? "" }),
|
|
18014
|
-
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: "ml-auto flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
18011
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: "ml-auto flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_lucide_react51.Paperclip, { size: 20 }) })
|
|
18015
18012
|
]
|
|
18016
18013
|
}
|
|
18017
18014
|
),
|
|
@@ -18266,11 +18263,11 @@ LegacyTextarea.displayName = "LegacyTextarea";
|
|
|
18266
18263
|
|
|
18267
18264
|
// src/airbnb-fields/datepicker/DatePicker.tsx
|
|
18268
18265
|
var React72 = __toESM(require("react"), 1);
|
|
18269
|
-
var
|
|
18266
|
+
var import_lucide_react53 = require("lucide-react");
|
|
18270
18267
|
|
|
18271
18268
|
// src/airbnb-fields/field-trigger/FieldTrigger.tsx
|
|
18272
18269
|
var React71 = __toESM(require("react"), 1);
|
|
18273
|
-
var
|
|
18270
|
+
var import_lucide_react52 = require("lucide-react");
|
|
18274
18271
|
var import_react_i18next42 = require("react-i18next");
|
|
18275
18272
|
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
18276
18273
|
var AirbnbFieldTrigger = React71.forwardRef(
|
|
@@ -18334,7 +18331,7 @@ var AirbnbFieldTrigger = React71.forwardRef(
|
|
|
18334
18331
|
const resolvedTrailingAdornment = loading || trailingAdornment ? /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("span", { className: "flex items-center gap-2", children: [
|
|
18335
18332
|
trailingAdornment,
|
|
18336
18333
|
loading && /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
18337
|
-
|
|
18334
|
+
import_lucide_react52.Loader2,
|
|
18338
18335
|
{
|
|
18339
18336
|
"aria-hidden": "true",
|
|
18340
18337
|
className: "h-5 w-5 animate-spin text-[var(--chekin-color-gray-1)]"
|
|
@@ -18590,7 +18587,7 @@ var AirbnbDatePicker = React72.forwardRef(
|
|
|
18590
18587
|
onClick: handleTriggerClick,
|
|
18591
18588
|
onKeyDown: handleTriggerKeyDown,
|
|
18592
18589
|
onBlur,
|
|
18593
|
-
trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
18590
|
+
trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(import_lucide_react53.Calendar, { className: "h-5 w-5 text-[#1F1F1B]", strokeWidth: 2 })
|
|
18594
18591
|
}
|
|
18595
18592
|
),
|
|
18596
18593
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
@@ -18628,7 +18625,7 @@ AirbnbDatePicker.displayName = "AirbnbDatePicker";
|
|
|
18628
18625
|
|
|
18629
18626
|
// src/airbnb-fields/input/Input.tsx
|
|
18630
18627
|
var React73 = __toESM(require("react"), 1);
|
|
18631
|
-
var
|
|
18628
|
+
var import_lucide_react54 = require("lucide-react");
|
|
18632
18629
|
var import_react_i18next43 = require("react-i18next");
|
|
18633
18630
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
18634
18631
|
var getInputValue = (value) => value != null ? String(value) : "";
|
|
@@ -18793,7 +18790,7 @@ var AirbnbInput = React73.forwardRef(
|
|
|
18793
18790
|
className: "absolute bottom-0 right-0 flex h-6 w-6 items-center justify-center border-0 bg-transparent p-0 text-[#7A8399] hover:text-[#1F1F1B] hover:opacity-85 disabled:cursor-not-allowed disabled:opacity-50",
|
|
18794
18791
|
"aria-label": isPasswordRevealed ? t("hide_password") : t("show_password"),
|
|
18795
18792
|
children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
|
|
18796
|
-
|
|
18793
|
+
import_lucide_react54.Eye,
|
|
18797
18794
|
{
|
|
18798
18795
|
size: 18,
|
|
18799
18796
|
"aria-hidden": "true",
|
|
@@ -18811,7 +18808,7 @@ AirbnbInput.displayName = "AirbnbInput";
|
|
|
18811
18808
|
|
|
18812
18809
|
// src/airbnb-fields/phone-field/PhoneField.tsx
|
|
18813
18810
|
var React79 = __toESM(require("react"), 1);
|
|
18814
|
-
var
|
|
18811
|
+
var import_lucide_react56 = require("lucide-react");
|
|
18815
18812
|
|
|
18816
18813
|
// src/airbnb-fields/select/Select.tsx
|
|
18817
18814
|
var React78 = __toESM(require("react"), 1);
|
|
@@ -19160,7 +19157,7 @@ function AirbnbSelectMobileContent({
|
|
|
19160
19157
|
|
|
19161
19158
|
// src/airbnb-fields/select/SelectTrigger.tsx
|
|
19162
19159
|
var React74 = __toESM(require("react"), 1);
|
|
19163
|
-
var
|
|
19160
|
+
var import_lucide_react55 = require("lucide-react");
|
|
19164
19161
|
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
19165
19162
|
var AirbnbSelectTrigger = React74.forwardRef(
|
|
19166
19163
|
({
|
|
@@ -19215,7 +19212,7 @@ var AirbnbSelectTrigger = React74.forwardRef(
|
|
|
19215
19212
|
onKeyDown,
|
|
19216
19213
|
onBlur,
|
|
19217
19214
|
trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
|
|
19218
|
-
|
|
19215
|
+
import_lucide_react55.ChevronDown,
|
|
19219
19216
|
{
|
|
19220
19217
|
className: open ? "h-6 w-6 rotate-180 text-[#1F1F1B] transition-transform" : "h-6 w-6 text-[#1F1F1B] transition-transform"
|
|
19221
19218
|
}
|
|
@@ -19999,7 +19996,7 @@ var AirbnbPhoneField = React79.forwardRef(
|
|
|
19999
19996
|
children: [
|
|
20000
19997
|
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)("span", { children: valueLabel ?? codePlaceholder }),
|
|
20001
19998
|
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
|
|
20002
|
-
|
|
19999
|
+
import_lucide_react56.ChevronDown,
|
|
20003
20000
|
{
|
|
20004
20001
|
className: cn("h-5 w-5 transition-transform", open ? "rotate-180" : ""),
|
|
20005
20002
|
strokeWidth: 2
|
|
@@ -20047,7 +20044,7 @@ AirbnbPhoneField.displayName = "AirbnbPhoneField";
|
|
|
20047
20044
|
|
|
20048
20045
|
// src/airbnb-fields/searchable-select/SearchableSelect.tsx
|
|
20049
20046
|
var React80 = __toESM(require("react"), 1);
|
|
20050
|
-
var
|
|
20047
|
+
var import_lucide_react57 = require("lucide-react");
|
|
20051
20048
|
var import_react_virtual3 = require("@tanstack/react-virtual");
|
|
20052
20049
|
var import_react90 = require("react");
|
|
20053
20050
|
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
@@ -20283,7 +20280,7 @@ var AirbnbSearchableSelectInternal = ({
|
|
|
20283
20280
|
onKeyDown: handleTriggerKeyDown,
|
|
20284
20281
|
onBlur,
|
|
20285
20282
|
trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
|
|
20286
|
-
|
|
20283
|
+
import_lucide_react57.ChevronDown,
|
|
20287
20284
|
{
|
|
20288
20285
|
className: cn(
|
|
20289
20286
|
"h-6 w-6 text-[#1F1F1B] transition-transform",
|
|
@@ -20381,7 +20378,7 @@ function AirbnbSearchableSelectContent({
|
|
|
20381
20378
|
return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("div", { className: "p-2", children: [
|
|
20382
20379
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("div", { className: "relative mb-2", children: [
|
|
20383
20380
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
|
|
20384
|
-
|
|
20381
|
+
import_lucide_react57.Search,
|
|
20385
20382
|
{
|
|
20386
20383
|
"aria-hidden": "true",
|
|
20387
20384
|
className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-[#9696B9]"
|
|
@@ -20491,13 +20488,13 @@ function getNextEnabledIndex(options, startIndex, step) {
|
|
|
20491
20488
|
// src/airbnb-fields/search-input/SearchInput.tsx
|
|
20492
20489
|
var React81 = __toESM(require("react"), 1);
|
|
20493
20490
|
var import_react_i18next44 = require("react-i18next");
|
|
20494
|
-
var
|
|
20491
|
+
var import_lucide_react58 = require("lucide-react");
|
|
20495
20492
|
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
20496
20493
|
var AirbnbSearchInput = React81.forwardRef(({ onReset, placeholder, wrapperClassName, ...props }, ref) => {
|
|
20497
20494
|
const { t } = (0, import_react_i18next44.useTranslation)();
|
|
20498
20495
|
const placeholderText = placeholder || t("search_property") + "...";
|
|
20499
20496
|
return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { className: cn("input-wrapper relative", wrapperClassName), children: [
|
|
20500
|
-
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
20497
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)(import_lucide_react58.Search, { className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 transform text-[#9696B9]" }),
|
|
20501
20498
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
20502
20499
|
"input",
|
|
20503
20500
|
{
|
|
@@ -20523,7 +20520,7 @@ var AirbnbSearchInput = React81.forwardRef(({ onReset, placeholder, wrapperClass
|
|
|
20523
20520
|
variant: "ghost",
|
|
20524
20521
|
onClick: onReset,
|
|
20525
20522
|
className: "absolute right-0 top-1/2 h-5 w-5 -translate-y-1/2 transform text-[#9696B9]",
|
|
20526
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
20523
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(import_lucide_react58.X, { className: "h-5 w-5" })
|
|
20527
20524
|
}
|
|
20528
20525
|
)
|
|
20529
20526
|
] });
|
|
@@ -20533,7 +20530,7 @@ AirbnbSearchInput.displayName = "AirbnbSearchInput";
|
|
|
20533
20530
|
// src/airbnb-fields/switch/Switch.tsx
|
|
20534
20531
|
var React82 = __toESM(require("react"), 1);
|
|
20535
20532
|
var SwitchPrimitives2 = __toESM(require("@radix-ui/react-switch"), 1);
|
|
20536
|
-
var
|
|
20533
|
+
var import_lucide_react59 = require("lucide-react");
|
|
20537
20534
|
var import_jsx_runtime194 = require("react/jsx-runtime");
|
|
20538
20535
|
var AirbnbSwitch = React82.forwardRef(
|
|
20539
20536
|
({
|
|
@@ -20579,7 +20576,7 @@ var AirbnbSwitch = React82.forwardRef(
|
|
|
20579
20576
|
"data-[state=checked]:translate-x-[12px] data-[state=unchecked]:translate-x-0"
|
|
20580
20577
|
),
|
|
20581
20578
|
children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
|
|
20582
|
-
|
|
20579
|
+
import_lucide_react59.Check,
|
|
20583
20580
|
{
|
|
20584
20581
|
"aria-hidden": "true",
|
|
20585
20582
|
className: "h-3 w-3 text-[#222222] opacity-0 transition-opacity duration-150 group-data-[state=checked]:opacity-100",
|