@chekinapp/ui 0.0.130 → 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 +289 -299
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +206 -216
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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
|
|
@@ -12510,143 +12510,137 @@ var Input = React44.forwardRef(
|
|
|
12510
12510
|
children: topLabel
|
|
12511
12511
|
}
|
|
12512
12512
|
),
|
|
12513
|
-
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
),
|
|
12522
|
-
children: [
|
|
12523
|
-
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
|
|
12524
|
-
"div",
|
|
12525
|
-
{
|
|
12526
|
-
className: cn("input__content relative w-full cursor-text", contentClassName),
|
|
12527
|
-
children: [
|
|
12528
|
-
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12529
|
-
Fieldset,
|
|
12530
|
-
{
|
|
12531
|
-
isFocused: isFocused && !readOnly,
|
|
12532
|
-
invalid: hasInvalidState,
|
|
12533
|
-
isEmpty,
|
|
12534
|
-
onClick: handleLabelClick,
|
|
12535
|
-
isActivated: !isEmpty || isFocused,
|
|
12536
|
-
readOnly,
|
|
12537
|
-
loading,
|
|
12538
|
-
disabled,
|
|
12539
|
-
htmlFor: inputId,
|
|
12540
|
-
labelId: `${inputId}-label`,
|
|
12541
|
-
legend: typeof label === "string" ? label : void 0,
|
|
12542
|
-
label,
|
|
12543
|
-
tooltip,
|
|
12544
|
-
className: "input__fieldset",
|
|
12545
|
-
labelClassName: cn({
|
|
12546
|
-
input__label: true,
|
|
12547
|
-
"pl-[28px]": !!leftIcon
|
|
12548
|
-
})
|
|
12549
|
-
}
|
|
12550
|
-
),
|
|
12551
|
-
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("span", { className: "input__left-icon 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_runtime144.jsx)("span", { className: "input__left-icon-inner flex h-full w-10 items-center justify-center", children: leftIcon }) }),
|
|
12552
|
-
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12553
|
-
"input",
|
|
12554
|
-
{
|
|
12555
|
-
...props,
|
|
12556
|
-
ref: combinedInputRef,
|
|
12557
|
-
id: inputId,
|
|
12558
|
-
name,
|
|
12559
|
-
type: inputType,
|
|
12560
|
-
"data-testid": "input",
|
|
12561
|
-
value,
|
|
12562
|
-
defaultValue,
|
|
12563
|
-
disabled: disabled || loading,
|
|
12564
|
-
readOnly,
|
|
12565
|
-
required: !optional,
|
|
12566
|
-
"aria-label": typeof label === "string" ? label : void 0,
|
|
12567
|
-
"aria-invalid": hasInvalidState,
|
|
12568
|
-
"aria-busy": loading,
|
|
12569
|
-
"aria-describedby": errorMessage && renderErrorMessage ? errorId : void 0,
|
|
12570
|
-
placeholder: isFocused || !label ? placeholder : void 0,
|
|
12571
|
-
onChange: handleChange,
|
|
12572
|
-
onFocus: handleFocus,
|
|
12573
|
-
onBlur: handleBlur,
|
|
12574
|
-
className: cn(
|
|
12575
|
-
"input__control",
|
|
12576
|
-
"m-0 box-border h-12 w-full rounded-[6px] border-0 px-4 text-[16px] font-medium leading-5 text-[var(--chekin-color-brand-navy)] outline-none transition-colors duration-200 [text-overflow:ellipsis] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
12577
|
-
"placeholder:font-medium placeholder:text-[var(--chekin-color-gray-1)] placeholder:opacity-100",
|
|
12578
|
-
isEmpty && !isFocused ? "bg-[var(--empty-field-background)]" : "bg-transparent",
|
|
12579
|
-
isEmpty && "text-[var(--chekin-color-gray-1)]",
|
|
12580
|
-
inputType === "password" && "[&:not(:placeholder-shown)]:font-bold [&:not(:placeholder-shown)]:tracking-[2px]",
|
|
12581
|
-
(disabled || readOnly) && "cursor-not-allowed",
|
|
12582
|
-
loading && "cursor-progress",
|
|
12583
|
-
leftIcon && "pl-10",
|
|
12584
|
-
(showRightPaddingForReset || showRightPaddingForReveal) && "pr-10",
|
|
12585
|
-
sign && "pr-10",
|
|
12586
|
-
inputClassName
|
|
12587
|
-
)
|
|
12588
|
-
}
|
|
12589
|
-
),
|
|
12590
|
-
sign && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("span", { className: "input__sign pointer-events-none absolute right-[14px] top-0 flex h-full items-center text-[18px] font-medium leading-6 text-[var(--chekin-color-brand-navy)]", children: sign }),
|
|
12591
|
-
trailingAdornment && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("span", { className: "input__trailing-adornment pointer-events-none absolute right-[14px] top-0 flex h-full items-center", children: trailingAdornment }),
|
|
12592
|
-
onReset && !isEmpty && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12593
|
-
"button",
|
|
12594
|
-
{
|
|
12595
|
-
type: "button",
|
|
12596
|
-
onClick: onReset,
|
|
12597
|
-
disabled,
|
|
12598
|
-
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",
|
|
12599
|
-
"aria-label": t("reset"),
|
|
12600
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_lucide_react42.X, { size: 14 })
|
|
12601
|
-
}
|
|
12602
|
-
),
|
|
12603
|
-
isPasswordReveal && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12604
|
-
"button",
|
|
12605
|
-
{
|
|
12606
|
-
type: "button",
|
|
12607
|
-
onClick: togglePasswordReveal,
|
|
12608
|
-
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",
|
|
12609
|
-
"aria-label": isPasswordRevealed ? t("hide_password") : t("show_password"),
|
|
12610
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12611
|
-
import_lucide_react42.Eye,
|
|
12612
|
-
{
|
|
12613
|
-
size: 20,
|
|
12614
|
-
className: cn(
|
|
12615
|
-
"input__password-icon",
|
|
12616
|
-
isPasswordRevealed ? "text-[#fc98dd]" : "text-[var(--chekin-color-gray-2)]"
|
|
12617
|
-
)
|
|
12618
|
-
}
|
|
12619
|
-
)
|
|
12620
|
-
}
|
|
12621
|
-
)
|
|
12622
|
-
]
|
|
12623
|
-
}
|
|
12513
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)("div", { className: cn("input__field", "relative block w-full", fieldClassName), children: [
|
|
12514
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
|
|
12515
|
+
"div",
|
|
12516
|
+
{
|
|
12517
|
+
className: cn(
|
|
12518
|
+
"input__content relative w-full cursor-text",
|
|
12519
|
+
readOnly && !disabled && !loading && "cursor-default",
|
|
12520
|
+
contentClassName
|
|
12624
12521
|
),
|
|
12625
|
-
|
|
12522
|
+
children: [
|
|
12523
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12524
|
+
Fieldset,
|
|
12525
|
+
{
|
|
12526
|
+
isFocused: isFocused && !readOnly,
|
|
12527
|
+
invalid: hasInvalidState,
|
|
12528
|
+
isEmpty,
|
|
12529
|
+
onClick: handleLabelClick,
|
|
12530
|
+
isActivated: !isEmpty || isFocused,
|
|
12531
|
+
readOnly,
|
|
12532
|
+
loading,
|
|
12533
|
+
disabled,
|
|
12534
|
+
htmlFor: inputId,
|
|
12535
|
+
labelId: `${inputId}-label`,
|
|
12536
|
+
legend: typeof label === "string" ? label : void 0,
|
|
12537
|
+
label,
|
|
12538
|
+
tooltip,
|
|
12539
|
+
className: "input__fieldset",
|
|
12540
|
+
labelClassName: cn({
|
|
12541
|
+
input__label: true,
|
|
12542
|
+
"pl-[28px]": !!leftIcon
|
|
12543
|
+
})
|
|
12544
|
+
}
|
|
12545
|
+
),
|
|
12546
|
+
leftIcon && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("span", { className: "input__left-icon 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_runtime144.jsx)("span", { className: "input__left-icon-inner flex h-full w-10 items-center justify-center", children: leftIcon }) }),
|
|
12626
12547
|
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12548
|
+
"input",
|
|
12549
|
+
{
|
|
12550
|
+
...props,
|
|
12551
|
+
ref: combinedInputRef,
|
|
12552
|
+
id: inputId,
|
|
12553
|
+
name,
|
|
12554
|
+
type: inputType,
|
|
12555
|
+
"data-testid": "input",
|
|
12556
|
+
value,
|
|
12557
|
+
defaultValue,
|
|
12558
|
+
disabled: disabled || loading,
|
|
12559
|
+
readOnly,
|
|
12560
|
+
required: !optional,
|
|
12561
|
+
"aria-label": typeof label === "string" ? label : void 0,
|
|
12562
|
+
"aria-invalid": hasInvalidState,
|
|
12563
|
+
"aria-busy": loading,
|
|
12564
|
+
"aria-describedby": errorMessage && renderErrorMessage ? errorId : void 0,
|
|
12565
|
+
placeholder: isFocused || !label ? placeholder : void 0,
|
|
12566
|
+
onChange: handleChange,
|
|
12567
|
+
onFocus: handleFocus,
|
|
12568
|
+
onBlur: handleBlur,
|
|
12569
|
+
className: cn(
|
|
12570
|
+
"input__control",
|
|
12571
|
+
"m-0 box-border h-12 w-full rounded-[6px] border-0 px-4 text-[16px] font-medium leading-5 text-[var(--chekin-color-brand-navy)] outline-none transition-colors duration-200 [text-overflow:ellipsis] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
12572
|
+
"placeholder:font-medium placeholder:text-[var(--chekin-color-gray-1)] placeholder:opacity-100",
|
|
12573
|
+
isEmpty && !isFocused ? "bg-[var(--empty-field-background)]" : "bg-transparent",
|
|
12574
|
+
isEmpty && "text-[var(--chekin-color-gray-1)]",
|
|
12575
|
+
inputType === "password" && "[&:not(:placeholder-shown)]:font-bold [&:not(:placeholder-shown)]:tracking-[2px]",
|
|
12576
|
+
disabled && "cursor-not-allowed",
|
|
12577
|
+
readOnly && !disabled && !loading && "cursor-default",
|
|
12578
|
+
loading && "cursor-progress",
|
|
12579
|
+
leftIcon && "pl-10",
|
|
12580
|
+
(showRightPaddingForReset || showRightPaddingForReveal) && "pr-10",
|
|
12581
|
+
sign && "pr-10",
|
|
12582
|
+
inputClassName
|
|
12583
|
+
)
|
|
12584
|
+
}
|
|
12585
|
+
),
|
|
12586
|
+
sign && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("span", { className: "input__sign pointer-events-none absolute right-[14px] top-0 flex h-full items-center text-[18px] font-medium leading-6 text-[var(--chekin-color-brand-navy)]", children: sign }),
|
|
12587
|
+
trailingAdornment && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)("span", { className: "input__trailing-adornment pointer-events-none absolute right-[14px] top-0 flex h-full items-center", children: trailingAdornment }),
|
|
12588
|
+
onReset && !isEmpty && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12627
12589
|
"button",
|
|
12628
12590
|
{
|
|
12629
12591
|
type: "button",
|
|
12630
|
-
onClick:
|
|
12631
|
-
|
|
12632
|
-
"
|
|
12633
|
-
|
|
12592
|
+
onClick: onReset,
|
|
12593
|
+
disabled,
|
|
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",
|
|
12595
|
+
"aria-label": t("reset"),
|
|
12596
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_lucide_react41.X, { size: 14 })
|
|
12634
12597
|
}
|
|
12635
12598
|
),
|
|
12636
|
-
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12599
|
+
isPasswordReveal && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12637
12600
|
"button",
|
|
12638
12601
|
{
|
|
12639
12602
|
type: "button",
|
|
12640
|
-
onClick:
|
|
12641
|
-
className: "
|
|
12642
|
-
"aria-label": t("
|
|
12643
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12603
|
+
onClick: togglePasswordReveal,
|
|
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",
|
|
12605
|
+
"aria-label": isPasswordRevealed ? t("hide_password") : t("show_password"),
|
|
12606
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12607
|
+
import_lucide_react41.Eye,
|
|
12608
|
+
{
|
|
12609
|
+
size: 20,
|
|
12610
|
+
className: cn(
|
|
12611
|
+
"input__password-icon",
|
|
12612
|
+
isPasswordRevealed ? "text-[#fc98dd]" : "text-[var(--chekin-color-gray-2)]"
|
|
12613
|
+
)
|
|
12614
|
+
}
|
|
12615
|
+
)
|
|
12644
12616
|
}
|
|
12645
12617
|
)
|
|
12646
|
-
]
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12618
|
+
]
|
|
12619
|
+
}
|
|
12620
|
+
),
|
|
12621
|
+
type === "number" && showNumberButtons && /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)("div", { className: "input__number-controls absolute right-[18px] top-[13px] inline-flex items-center text-right", children: [
|
|
12622
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12623
|
+
"button",
|
|
12624
|
+
{
|
|
12625
|
+
type: "button",
|
|
12626
|
+
onClick: onDecrement,
|
|
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",
|
|
12628
|
+
"aria-label": t("decrement"),
|
|
12629
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_lucide_react41.Minus, { size: 16, strokeWidth: 3, "aria-hidden": true })
|
|
12630
|
+
}
|
|
12631
|
+
),
|
|
12632
|
+
/* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12633
|
+
"button",
|
|
12634
|
+
{
|
|
12635
|
+
type: "button",
|
|
12636
|
+
onClick: onIncrement,
|
|
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",
|
|
12638
|
+
"aria-label": t("increment"),
|
|
12639
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_lucide_react41.Plus, { size: 16, strokeWidth: 3, "aria-hidden": true })
|
|
12640
|
+
}
|
|
12641
|
+
)
|
|
12642
|
+
] })
|
|
12643
|
+
] }),
|
|
12650
12644
|
!errorMessage && optional && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
12651
12645
|
"span",
|
|
12652
12646
|
{
|
|
@@ -12846,7 +12840,7 @@ function countriesFilter(option, inputValue) {
|
|
|
12846
12840
|
}
|
|
12847
12841
|
|
|
12848
12842
|
// src/dashboard/_select-internals/slots/DefaultOption.tsx
|
|
12849
|
-
var
|
|
12843
|
+
var import_lucide_react42 = require("lucide-react");
|
|
12850
12844
|
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
12851
12845
|
function DefaultOption(props) {
|
|
12852
12846
|
const {
|
|
@@ -12893,7 +12887,7 @@ function DefaultOption(props) {
|
|
|
12893
12887
|
/* @__PURE__ */ (0, import_jsx_runtime146.jsx)("span", { className: "block min-w-0 break-words", children: labelContent }),
|
|
12894
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 }),
|
|
12895
12889
|
isSelected && /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
12896
|
-
|
|
12890
|
+
import_lucide_react42.Check,
|
|
12897
12891
|
{
|
|
12898
12892
|
"aria-hidden": "true",
|
|
12899
12893
|
className: cn(
|
|
@@ -13146,7 +13140,7 @@ function SelectMenuPanel({
|
|
|
13146
13140
|
}
|
|
13147
13141
|
|
|
13148
13142
|
// src/dashboard/_select-internals/SelectSearchInput.tsx
|
|
13149
|
-
var
|
|
13143
|
+
var import_lucide_react43 = require("lucide-react");
|
|
13150
13144
|
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
13151
13145
|
function SelectSearchInput({
|
|
13152
13146
|
inputRef,
|
|
@@ -13159,7 +13153,7 @@ function SelectSearchInput({
|
|
|
13159
13153
|
}) {
|
|
13160
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: [
|
|
13161
13155
|
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
13162
|
-
|
|
13156
|
+
import_lucide_react43.Search,
|
|
13163
13157
|
{
|
|
13164
13158
|
"aria-hidden": "true",
|
|
13165
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)]"
|
|
@@ -13184,7 +13178,7 @@ function SelectSearchInput({
|
|
|
13184
13178
|
}
|
|
13185
13179
|
|
|
13186
13180
|
// src/dashboard/_select-internals/SelectTrigger.tsx
|
|
13187
|
-
var
|
|
13181
|
+
var import_lucide_react44 = require("lucide-react");
|
|
13188
13182
|
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
13189
13183
|
function SelectTrigger({
|
|
13190
13184
|
triggerRef,
|
|
@@ -13243,7 +13237,7 @@ function SelectTrigger({
|
|
|
13243
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 }) }),
|
|
13244
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 }),
|
|
13245
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)(
|
|
13246
|
-
|
|
13240
|
+
import_lucide_react44.ChevronDown,
|
|
13247
13241
|
{
|
|
13248
13242
|
size: 16,
|
|
13249
13243
|
className: cn(
|
|
@@ -13258,7 +13252,7 @@ function SelectTrigger({
|
|
|
13258
13252
|
}
|
|
13259
13253
|
|
|
13260
13254
|
// src/dashboard/_select-internals/ComboboxTrigger.tsx
|
|
13261
|
-
var
|
|
13255
|
+
var import_lucide_react45 = require("lucide-react");
|
|
13262
13256
|
var import_react_i18next29 = require("react-i18next");
|
|
13263
13257
|
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
13264
13258
|
function ComboboxTrigger({
|
|
@@ -13398,7 +13392,7 @@ function ComboboxTrigger({
|
|
|
13398
13392
|
onClick: onClear,
|
|
13399
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]",
|
|
13400
13394
|
"aria-label": clearLabel,
|
|
13401
|
-
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 })
|
|
13402
13396
|
}
|
|
13403
13397
|
),
|
|
13404
13398
|
!hideIndicator && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
@@ -13462,15 +13456,19 @@ function useSelectMenuState({
|
|
|
13462
13456
|
}) {
|
|
13463
13457
|
const containerRef = React47.useRef(null);
|
|
13464
13458
|
const [internalIsOpen, setInternalIsOpen] = React47.useState(false);
|
|
13465
|
-
const
|
|
13466
|
-
const isOpen =
|
|
13459
|
+
const [hasClosedControlledOpen, setHasClosedControlledOpen] = React47.useState(false);
|
|
13460
|
+
const isOpen = controlledIsOpen === false ? false : controlledIsOpen === true ? !hasClosedControlledOpen : internalIsOpen;
|
|
13461
|
+
React47.useEffect(() => {
|
|
13462
|
+
if (controlledIsOpen !== true) setHasClosedControlledOpen(false);
|
|
13463
|
+
}, [controlledIsOpen]);
|
|
13467
13464
|
const setIsOpen = React47.useCallback(
|
|
13468
13465
|
(next) => {
|
|
13469
13466
|
const value = typeof next === "function" ? next(isOpen) : next;
|
|
13470
|
-
|
|
13467
|
+
if (controlledIsOpen === true) setHasClosedControlledOpen(!value);
|
|
13468
|
+
if (controlledIsOpen !== false) setInternalIsOpen(value);
|
|
13471
13469
|
onMenuOpenChange?.(value);
|
|
13472
13470
|
},
|
|
13473
|
-
[isOpen, onMenuOpenChange]
|
|
13471
|
+
[isOpen, controlledIsOpen, onMenuOpenChange]
|
|
13474
13472
|
);
|
|
13475
13473
|
const openMenu = React47.useCallback(() => {
|
|
13476
13474
|
setIsOpen(true);
|
|
@@ -13884,7 +13882,7 @@ function useSelectState(params) {
|
|
|
13884
13882
|
}
|
|
13885
13883
|
|
|
13886
13884
|
// src/dashboard/_select-internals/slots/DefaultMultiValueChip.tsx
|
|
13887
|
-
var
|
|
13885
|
+
var import_lucide_react46 = require("lucide-react");
|
|
13888
13886
|
var import_react_i18next30 = require("react-i18next");
|
|
13889
13887
|
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
13890
13888
|
function DefaultMultiValueChip({
|
|
@@ -13906,7 +13904,7 @@ function DefaultMultiValueChip({
|
|
|
13906
13904
|
},
|
|
13907
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",
|
|
13908
13906
|
"aria-label": t("remove_item", { label: labelText }),
|
|
13909
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
13907
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(import_lucide_react46.X, { size: 12, strokeWidth: 2.5 })
|
|
13910
13908
|
}
|
|
13911
13909
|
)
|
|
13912
13910
|
] });
|
|
@@ -14006,7 +14004,7 @@ function DefaultControl(props) {
|
|
|
14006
14004
|
}
|
|
14007
14005
|
|
|
14008
14006
|
// src/dashboard/_select-internals/slots/StaticControl.tsx
|
|
14009
|
-
var
|
|
14007
|
+
var import_lucide_react47 = require("lucide-react");
|
|
14010
14008
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
14011
14009
|
function StaticControl(props) {
|
|
14012
14010
|
const {
|
|
@@ -14069,7 +14067,7 @@ function StaticControl(props) {
|
|
|
14069
14067
|
onClick: onClear,
|
|
14070
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]",
|
|
14071
14069
|
"aria-label": clearLabel,
|
|
14072
|
-
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 })
|
|
14073
14071
|
}
|
|
14074
14072
|
)
|
|
14075
14073
|
] });
|
|
@@ -14671,7 +14669,7 @@ var PhoneInput = React50.forwardRef(function PhoneInput2({
|
|
|
14671
14669
|
filterOption: countriesFilter,
|
|
14672
14670
|
clearable: false,
|
|
14673
14671
|
getValueLabel: (option) => option.value,
|
|
14674
|
-
className: "
|
|
14672
|
+
className: "max-w-none w-auto",
|
|
14675
14673
|
dropdownClassName: "right-auto w-[280px]"
|
|
14676
14674
|
}
|
|
14677
14675
|
),
|
|
@@ -14696,7 +14694,7 @@ var PhoneInput = React50.forwardRef(function PhoneInput2({
|
|
|
14696
14694
|
onFocus,
|
|
14697
14695
|
onBlur,
|
|
14698
14696
|
renderErrorMessage: false,
|
|
14699
|
-
wrapperClassName: "
|
|
14697
|
+
wrapperClassName: "max-w-none w-auto",
|
|
14700
14698
|
contentClassName: readOnly ? "!cursor-default" : void 0,
|
|
14701
14699
|
inputClassName: readOnly ? "!cursor-default" : void 0
|
|
14702
14700
|
}
|
|
@@ -15083,64 +15081,10 @@ var InfiniteScrollMultiSelect = React57.forwardRef(function InfiniteScrollMultiS
|
|
|
15083
15081
|
var React58 = __toESM(require("react"), 1);
|
|
15084
15082
|
var import_react_i18next36 = require("react-i18next");
|
|
15085
15083
|
|
|
15086
|
-
// src/dashboard/select-checkboxes/SelectCheckboxOption.tsx
|
|
15087
|
-
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
15088
|
-
function SelectCheckboxOption(props) {
|
|
15089
|
-
const {
|
|
15090
|
-
option,
|
|
15091
|
-
index,
|
|
15092
|
-
isSelected,
|
|
15093
|
-
isHighlighted,
|
|
15094
|
-
isDisabled,
|
|
15095
|
-
id,
|
|
15096
|
-
onClick,
|
|
15097
|
-
onHover,
|
|
15098
|
-
innerRef
|
|
15099
|
-
} = props;
|
|
15100
|
-
return /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(
|
|
15101
|
-
"button",
|
|
15102
|
-
{
|
|
15103
|
-
id,
|
|
15104
|
-
ref: innerRef,
|
|
15105
|
-
type: "button",
|
|
15106
|
-
role: "option",
|
|
15107
|
-
"aria-selected": isSelected,
|
|
15108
|
-
"aria-disabled": isDisabled,
|
|
15109
|
-
tabIndex: -1,
|
|
15110
|
-
disabled: isDisabled,
|
|
15111
|
-
onClick: () => onClick(option),
|
|
15112
|
-
onMouseMove: () => onHover(index),
|
|
15113
|
-
className: cn(
|
|
15114
|
-
"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",
|
|
15115
|
-
!isDisabled && "cursor-pointer hover:bg-[var(--chekin-color-surface-pressed)]",
|
|
15116
|
-
isHighlighted && !isDisabled && "bg-[var(--chekin-color-surface-pressed)]",
|
|
15117
|
-
isSelected && "bg-[var(--chekin-color-surface-autocomplete)] font-semibold text-[var(--chekin-color-brand-blue)]",
|
|
15118
|
-
isDisabled && "cursor-not-allowed text-[var(--chekin-color-gray-2)]"
|
|
15119
|
-
),
|
|
15120
|
-
children: [
|
|
15121
|
-
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
|
|
15122
|
-
BaseCheckbox,
|
|
15123
|
-
{
|
|
15124
|
-
checked: isSelected,
|
|
15125
|
-
disabled: isDisabled,
|
|
15126
|
-
size: "s",
|
|
15127
|
-
tabIndex: -1,
|
|
15128
|
-
className: "pointer-events-none shrink-0"
|
|
15129
|
-
}
|
|
15130
|
-
),
|
|
15131
|
-
/* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("span", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
|
|
15132
|
-
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: "block break-words", children: option.label }),
|
|
15133
|
-
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 })
|
|
15134
|
-
] })
|
|
15135
|
-
]
|
|
15136
|
-
}
|
|
15137
|
-
);
|
|
15138
|
-
}
|
|
15139
|
-
|
|
15140
15084
|
// src/dashboard/select-checkboxes/CountTrigger.tsx
|
|
15141
|
-
var
|
|
15085
|
+
var import_lucide_react48 = require("lucide-react");
|
|
15142
15086
|
var import_react_i18next35 = require("react-i18next");
|
|
15143
|
-
var
|
|
15087
|
+
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
15144
15088
|
function createCountTrigger(opts) {
|
|
15145
15089
|
const { valueText, totalCount } = opts;
|
|
15146
15090
|
function CountTrigger(props) {
|
|
@@ -15168,7 +15112,7 @@ function createCountTrigger(opts) {
|
|
|
15168
15112
|
const computedText = typeof valueText === "function" ? valueText(count, total) : valueText ?? (count > 0 ? t("n_selected", { count, defaultValue: `${count} selected` }) : "");
|
|
15169
15113
|
const display = hasValue ? computedText : isOpen ? placeholder ?? null : null;
|
|
15170
15114
|
const isEmpty = !hasValue;
|
|
15171
|
-
return /* @__PURE__ */ (0,
|
|
15115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(
|
|
15172
15116
|
"button",
|
|
15173
15117
|
{
|
|
15174
15118
|
id: triggerId,
|
|
@@ -15191,10 +15135,10 @@ function createCountTrigger(opts) {
|
|
|
15191
15135
|
loading && "!cursor-progress"
|
|
15192
15136
|
),
|
|
15193
15137
|
children: [
|
|
15194
|
-
leftIcon && /* @__PURE__ */ (0,
|
|
15195
|
-
/* @__PURE__ */ (0,
|
|
15196
|
-
/* @__PURE__ */ (0,
|
|
15197
|
-
|
|
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,
|
|
15198
15142
|
{
|
|
15199
15143
|
size: 16,
|
|
15200
15144
|
className: cn(
|
|
@@ -15211,9 +15155,9 @@ function createCountTrigger(opts) {
|
|
|
15211
15155
|
}
|
|
15212
15156
|
|
|
15213
15157
|
// src/dashboard/select-checkboxes/SelectAllRow.tsx
|
|
15214
|
-
var
|
|
15158
|
+
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
15215
15159
|
function SelectAllRow({ label, checked, disabled, onToggle }) {
|
|
15216
|
-
return /* @__PURE__ */ (0,
|
|
15160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
|
|
15217
15161
|
"button",
|
|
15218
15162
|
{
|
|
15219
15163
|
type: "button",
|
|
@@ -15224,7 +15168,7 @@ function SelectAllRow({ label, checked, disabled, onToggle }) {
|
|
|
15224
15168
|
disabled && "cursor-default opacity-40"
|
|
15225
15169
|
),
|
|
15226
15170
|
children: [
|
|
15227
|
-
/* @__PURE__ */ (0,
|
|
15171
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
15228
15172
|
BaseCheckbox,
|
|
15229
15173
|
{
|
|
15230
15174
|
checked,
|
|
@@ -15234,20 +15178,20 @@ function SelectAllRow({ label, checked, disabled, onToggle }) {
|
|
|
15234
15178
|
className: "pointer-events-none shrink-0"
|
|
15235
15179
|
}
|
|
15236
15180
|
),
|
|
15237
|
-
/* @__PURE__ */ (0,
|
|
15181
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "flex-1", children: label })
|
|
15238
15182
|
]
|
|
15239
15183
|
}
|
|
15240
15184
|
);
|
|
15241
15185
|
}
|
|
15242
15186
|
|
|
15243
15187
|
// src/dashboard/select-checkboxes/SelectCheckboxes.tsx
|
|
15244
|
-
var
|
|
15188
|
+
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
15245
15189
|
function hasPaginationProps(props) {
|
|
15246
15190
|
return props.canLoadMore !== void 0 || props.isLoadingMore !== void 0 || props.loadMoreItems !== void 0 || props.onSearchChange !== void 0;
|
|
15247
15191
|
}
|
|
15248
15192
|
function makeTriggerSlot(render) {
|
|
15249
15193
|
function CustomTrigger(props) {
|
|
15250
|
-
return /* @__PURE__ */ (0,
|
|
15194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_jsx_runtime167.Fragment, { children: render(props.isOpen, props.onContainerClick) });
|
|
15251
15195
|
}
|
|
15252
15196
|
return CustomTrigger;
|
|
15253
15197
|
}
|
|
@@ -15332,15 +15276,7 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
15332
15276
|
totalCount: flatRawOptions.length
|
|
15333
15277
|
});
|
|
15334
15278
|
}, [trigger, valueText, flatRawOptions.length]);
|
|
15335
|
-
const
|
|
15336
|
-
() => ({
|
|
15337
|
-
...userComponents,
|
|
15338
|
-
Control,
|
|
15339
|
-
Option: userComponents?.Option ?? SelectCheckboxOption
|
|
15340
|
-
}),
|
|
15341
|
-
[userComponents, Control]
|
|
15342
|
-
);
|
|
15343
|
-
const menuHeader = allowSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
15279
|
+
const menuHeader = allowSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
15344
15280
|
SelectAllRow,
|
|
15345
15281
|
{
|
|
15346
15282
|
label: selectAllLabel ?? t("select_all", { defaultValue: "Select All" }),
|
|
@@ -15360,7 +15296,7 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
15360
15296
|
value: currentValue,
|
|
15361
15297
|
onChange: handleChange,
|
|
15362
15298
|
filterOption: passthroughFilter2,
|
|
15363
|
-
components,
|
|
15299
|
+
// components,
|
|
15364
15300
|
closeMenuOnSelect,
|
|
15365
15301
|
searchPosition: searchable ? "dropdown" : "trigger",
|
|
15366
15302
|
searchable,
|
|
@@ -15369,7 +15305,7 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
15369
15305
|
isMulti: true
|
|
15370
15306
|
};
|
|
15371
15307
|
if (isPaginated) {
|
|
15372
|
-
return /* @__PURE__ */ (0,
|
|
15308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
15373
15309
|
InfiniteScrollSelect,
|
|
15374
15310
|
{
|
|
15375
15311
|
ref,
|
|
@@ -15380,7 +15316,7 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
15380
15316
|
}
|
|
15381
15317
|
);
|
|
15382
15318
|
}
|
|
15383
|
-
return /* @__PURE__ */ (0,
|
|
15319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
15384
15320
|
Select,
|
|
15385
15321
|
{
|
|
15386
15322
|
ref,
|
|
@@ -15395,6 +15331,60 @@ var SelectCheckboxes = React58.forwardRef(
|
|
|
15395
15331
|
SelectCheckboxesInternal
|
|
15396
15332
|
);
|
|
15397
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
|
+
|
|
15398
15388
|
// src/dashboard/textarea/Textarea.tsx
|
|
15399
15389
|
var React60 = __toESM(require("react"), 1);
|
|
15400
15390
|
var import_react_i18next37 = require("react-i18next");
|
|
@@ -15604,7 +15594,7 @@ var Textarea = React60.forwardRef(function Textarea2({
|
|
|
15604
15594
|
|
|
15605
15595
|
// src/dashboard/datepicker/Datepicker.tsx
|
|
15606
15596
|
var React62 = __toESM(require("react"), 1);
|
|
15607
|
-
var
|
|
15597
|
+
var import_lucide_react49 = require("lucide-react");
|
|
15608
15598
|
var import_react_i18next38 = require("react-i18next");
|
|
15609
15599
|
|
|
15610
15600
|
// src/airbnb-fields/datepicker/useDatePickerWheel.ts
|
|
@@ -16638,7 +16628,7 @@ var Datepicker = React62.forwardRef(
|
|
|
16638
16628
|
children: [
|
|
16639
16629
|
/* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "block min-w-0 flex-1 truncate text-left", children: triggerText ?? (isWheelOpen ? mobilePlaceholder : null) }),
|
|
16640
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)(
|
|
16641
|
-
|
|
16631
|
+
import_lucide_react49.ChevronDown,
|
|
16642
16632
|
{
|
|
16643
16633
|
size: 16,
|
|
16644
16634
|
className: cn(
|
|
@@ -16733,7 +16723,7 @@ var Datepicker = React62.forwardRef(
|
|
|
16733
16723
|
}
|
|
16734
16724
|
),
|
|
16735
16725
|
/* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
|
|
16736
|
-
|
|
16726
|
+
import_lucide_react49.ChevronDown,
|
|
16737
16727
|
{
|
|
16738
16728
|
size: 14,
|
|
16739
16729
|
onMouseDown: (event) => {
|
|
@@ -17178,7 +17168,7 @@ function resolveRangeSelection({
|
|
|
17178
17168
|
}
|
|
17179
17169
|
|
|
17180
17170
|
// src/dashboard/date-range-picker/components/DateRangeInputs.tsx
|
|
17181
|
-
var
|
|
17171
|
+
var import_lucide_react50 = require("lucide-react");
|
|
17182
17172
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
17183
17173
|
var DEFAULT_PLACEHOLDER = "00-00-0000";
|
|
17184
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)]";
|
|
@@ -17300,7 +17290,7 @@ function DateRangeInputs({
|
|
|
17300
17290
|
onClick: onReset,
|
|
17301
17291
|
className: iconButtonClass,
|
|
17302
17292
|
"aria-label": clearLabel,
|
|
17303
|
-
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 })
|
|
17304
17294
|
}
|
|
17305
17295
|
),
|
|
17306
17296
|
!readOnly && !hideCalendarIcon && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
|
|
@@ -17315,7 +17305,7 @@ function DateRangeInputs({
|
|
|
17315
17305
|
focusedInput !== null || isOpen ? "text-[var(--chekin-color-brand-blue)]" : "text-[var(--chekin-color-gray-2)]"
|
|
17316
17306
|
),
|
|
17317
17307
|
"aria-label": openCalendarLabel,
|
|
17318
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
|
|
17308
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_lucide_react50.CalendarDays, { size: 18 })
|
|
17319
17309
|
}
|
|
17320
17310
|
)
|
|
17321
17311
|
] })
|
|
@@ -17886,7 +17876,7 @@ var TimePicker = React68.forwardRef(function TimePicker2({ format: formatName =
|
|
|
17886
17876
|
|
|
17887
17877
|
// src/dashboard/file-input/FileInput.tsx
|
|
17888
17878
|
var React69 = __toESM(require("react"), 1);
|
|
17889
|
-
var
|
|
17879
|
+
var import_lucide_react51 = require("lucide-react");
|
|
17890
17880
|
var import_react_i18next41 = require("react-i18next");
|
|
17891
17881
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
17892
17882
|
function defaultDownload(url) {
|
|
@@ -18000,7 +17990,7 @@ var FileInput = React69.forwardRef(function FileInput2({
|
|
|
18000
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",
|
|
18001
17991
|
children: [
|
|
18002
17992
|
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: "truncate", children: resolvedDownloadLabel }),
|
|
18003
|
-
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
17993
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_lucide_react51.Download, { size: 15 })
|
|
18004
17994
|
]
|
|
18005
17995
|
}
|
|
18006
17996
|
) : /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: "truncate text-[14px] font-medium text-[var(--chekin-color-brand-navy)]", children: value.name }),
|
|
@@ -18012,13 +18002,13 @@ var FileInput = React69.forwardRef(function FileInput2({
|
|
|
18012
18002
|
onClick: handleClear,
|
|
18013
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]",
|
|
18014
18004
|
"aria-label": t("remove_file"),
|
|
18015
|
-
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 })
|
|
18016
18006
|
}
|
|
18017
18007
|
)
|
|
18018
18008
|
]
|
|
18019
18009
|
}
|
|
18020
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 ?? "" }),
|
|
18021
|
-
/* @__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 }) })
|
|
18022
18012
|
]
|
|
18023
18013
|
}
|
|
18024
18014
|
),
|
|
@@ -18273,11 +18263,11 @@ LegacyTextarea.displayName = "LegacyTextarea";
|
|
|
18273
18263
|
|
|
18274
18264
|
// src/airbnb-fields/datepicker/DatePicker.tsx
|
|
18275
18265
|
var React72 = __toESM(require("react"), 1);
|
|
18276
|
-
var
|
|
18266
|
+
var import_lucide_react53 = require("lucide-react");
|
|
18277
18267
|
|
|
18278
18268
|
// src/airbnb-fields/field-trigger/FieldTrigger.tsx
|
|
18279
18269
|
var React71 = __toESM(require("react"), 1);
|
|
18280
|
-
var
|
|
18270
|
+
var import_lucide_react52 = require("lucide-react");
|
|
18281
18271
|
var import_react_i18next42 = require("react-i18next");
|
|
18282
18272
|
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
18283
18273
|
var AirbnbFieldTrigger = React71.forwardRef(
|
|
@@ -18341,7 +18331,7 @@ var AirbnbFieldTrigger = React71.forwardRef(
|
|
|
18341
18331
|
const resolvedTrailingAdornment = loading || trailingAdornment ? /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("span", { className: "flex items-center gap-2", children: [
|
|
18342
18332
|
trailingAdornment,
|
|
18343
18333
|
loading && /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
18344
|
-
|
|
18334
|
+
import_lucide_react52.Loader2,
|
|
18345
18335
|
{
|
|
18346
18336
|
"aria-hidden": "true",
|
|
18347
18337
|
className: "h-5 w-5 animate-spin text-[var(--chekin-color-gray-1)]"
|
|
@@ -18597,7 +18587,7 @@ var AirbnbDatePicker = React72.forwardRef(
|
|
|
18597
18587
|
onClick: handleTriggerClick,
|
|
18598
18588
|
onKeyDown: handleTriggerKeyDown,
|
|
18599
18589
|
onBlur,
|
|
18600
|
-
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 })
|
|
18601
18591
|
}
|
|
18602
18592
|
),
|
|
18603
18593
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
@@ -18635,7 +18625,7 @@ AirbnbDatePicker.displayName = "AirbnbDatePicker";
|
|
|
18635
18625
|
|
|
18636
18626
|
// src/airbnb-fields/input/Input.tsx
|
|
18637
18627
|
var React73 = __toESM(require("react"), 1);
|
|
18638
|
-
var
|
|
18628
|
+
var import_lucide_react54 = require("lucide-react");
|
|
18639
18629
|
var import_react_i18next43 = require("react-i18next");
|
|
18640
18630
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
18641
18631
|
var getInputValue = (value) => value != null ? String(value) : "";
|
|
@@ -18800,7 +18790,7 @@ var AirbnbInput = React73.forwardRef(
|
|
|
18800
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",
|
|
18801
18791
|
"aria-label": isPasswordRevealed ? t("hide_password") : t("show_password"),
|
|
18802
18792
|
children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
|
|
18803
|
-
|
|
18793
|
+
import_lucide_react54.Eye,
|
|
18804
18794
|
{
|
|
18805
18795
|
size: 18,
|
|
18806
18796
|
"aria-hidden": "true",
|
|
@@ -18818,7 +18808,7 @@ AirbnbInput.displayName = "AirbnbInput";
|
|
|
18818
18808
|
|
|
18819
18809
|
// src/airbnb-fields/phone-field/PhoneField.tsx
|
|
18820
18810
|
var React79 = __toESM(require("react"), 1);
|
|
18821
|
-
var
|
|
18811
|
+
var import_lucide_react56 = require("lucide-react");
|
|
18822
18812
|
|
|
18823
18813
|
// src/airbnb-fields/select/Select.tsx
|
|
18824
18814
|
var React78 = __toESM(require("react"), 1);
|
|
@@ -19167,7 +19157,7 @@ function AirbnbSelectMobileContent({
|
|
|
19167
19157
|
|
|
19168
19158
|
// src/airbnb-fields/select/SelectTrigger.tsx
|
|
19169
19159
|
var React74 = __toESM(require("react"), 1);
|
|
19170
|
-
var
|
|
19160
|
+
var import_lucide_react55 = require("lucide-react");
|
|
19171
19161
|
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
19172
19162
|
var AirbnbSelectTrigger = React74.forwardRef(
|
|
19173
19163
|
({
|
|
@@ -19222,7 +19212,7 @@ var AirbnbSelectTrigger = React74.forwardRef(
|
|
|
19222
19212
|
onKeyDown,
|
|
19223
19213
|
onBlur,
|
|
19224
19214
|
trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
|
|
19225
|
-
|
|
19215
|
+
import_lucide_react55.ChevronDown,
|
|
19226
19216
|
{
|
|
19227
19217
|
className: open ? "h-6 w-6 rotate-180 text-[#1F1F1B] transition-transform" : "h-6 w-6 text-[#1F1F1B] transition-transform"
|
|
19228
19218
|
}
|
|
@@ -20006,7 +19996,7 @@ var AirbnbPhoneField = React79.forwardRef(
|
|
|
20006
19996
|
children: [
|
|
20007
19997
|
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)("span", { children: valueLabel ?? codePlaceholder }),
|
|
20008
19998
|
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
|
|
20009
|
-
|
|
19999
|
+
import_lucide_react56.ChevronDown,
|
|
20010
20000
|
{
|
|
20011
20001
|
className: cn("h-5 w-5 transition-transform", open ? "rotate-180" : ""),
|
|
20012
20002
|
strokeWidth: 2
|
|
@@ -20054,7 +20044,7 @@ AirbnbPhoneField.displayName = "AirbnbPhoneField";
|
|
|
20054
20044
|
|
|
20055
20045
|
// src/airbnb-fields/searchable-select/SearchableSelect.tsx
|
|
20056
20046
|
var React80 = __toESM(require("react"), 1);
|
|
20057
|
-
var
|
|
20047
|
+
var import_lucide_react57 = require("lucide-react");
|
|
20058
20048
|
var import_react_virtual3 = require("@tanstack/react-virtual");
|
|
20059
20049
|
var import_react90 = require("react");
|
|
20060
20050
|
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
@@ -20290,7 +20280,7 @@ var AirbnbSearchableSelectInternal = ({
|
|
|
20290
20280
|
onKeyDown: handleTriggerKeyDown,
|
|
20291
20281
|
onBlur,
|
|
20292
20282
|
trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
|
|
20293
|
-
|
|
20283
|
+
import_lucide_react57.ChevronDown,
|
|
20294
20284
|
{
|
|
20295
20285
|
className: cn(
|
|
20296
20286
|
"h-6 w-6 text-[#1F1F1B] transition-transform",
|
|
@@ -20388,7 +20378,7 @@ function AirbnbSearchableSelectContent({
|
|
|
20388
20378
|
return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("div", { className: "p-2", children: [
|
|
20389
20379
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("div", { className: "relative mb-2", children: [
|
|
20390
20380
|
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
|
|
20391
|
-
|
|
20381
|
+
import_lucide_react57.Search,
|
|
20392
20382
|
{
|
|
20393
20383
|
"aria-hidden": "true",
|
|
20394
20384
|
className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-[#9696B9]"
|
|
@@ -20498,13 +20488,13 @@ function getNextEnabledIndex(options, startIndex, step) {
|
|
|
20498
20488
|
// src/airbnb-fields/search-input/SearchInput.tsx
|
|
20499
20489
|
var React81 = __toESM(require("react"), 1);
|
|
20500
20490
|
var import_react_i18next44 = require("react-i18next");
|
|
20501
|
-
var
|
|
20491
|
+
var import_lucide_react58 = require("lucide-react");
|
|
20502
20492
|
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
20503
20493
|
var AirbnbSearchInput = React81.forwardRef(({ onReset, placeholder, wrapperClassName, ...props }, ref) => {
|
|
20504
20494
|
const { t } = (0, import_react_i18next44.useTranslation)();
|
|
20505
20495
|
const placeholderText = placeholder || t("search_property") + "...";
|
|
20506
20496
|
return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { className: cn("input-wrapper relative", wrapperClassName), children: [
|
|
20507
|
-
/* @__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]" }),
|
|
20508
20498
|
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
20509
20499
|
"input",
|
|
20510
20500
|
{
|
|
@@ -20530,7 +20520,7 @@ var AirbnbSearchInput = React81.forwardRef(({ onReset, placeholder, wrapperClass
|
|
|
20530
20520
|
variant: "ghost",
|
|
20531
20521
|
onClick: onReset,
|
|
20532
20522
|
className: "absolute right-0 top-1/2 h-5 w-5 -translate-y-1/2 transform text-[#9696B9]",
|
|
20533
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
20523
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(import_lucide_react58.X, { className: "h-5 w-5" })
|
|
20534
20524
|
}
|
|
20535
20525
|
)
|
|
20536
20526
|
] });
|
|
@@ -20540,7 +20530,7 @@ AirbnbSearchInput.displayName = "AirbnbSearchInput";
|
|
|
20540
20530
|
// src/airbnb-fields/switch/Switch.tsx
|
|
20541
20531
|
var React82 = __toESM(require("react"), 1);
|
|
20542
20532
|
var SwitchPrimitives2 = __toESM(require("@radix-ui/react-switch"), 1);
|
|
20543
|
-
var
|
|
20533
|
+
var import_lucide_react59 = require("lucide-react");
|
|
20544
20534
|
var import_jsx_runtime194 = require("react/jsx-runtime");
|
|
20545
20535
|
var AirbnbSwitch = React82.forwardRef(
|
|
20546
20536
|
({
|
|
@@ -20586,7 +20576,7 @@ var AirbnbSwitch = React82.forwardRef(
|
|
|
20586
20576
|
"data-[state=checked]:translate-x-[12px] data-[state=unchecked]:translate-x-0"
|
|
20587
20577
|
),
|
|
20588
20578
|
children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
|
|
20589
|
-
|
|
20579
|
+
import_lucide_react59.Check,
|
|
20590
20580
|
{
|
|
20591
20581
|
"aria-hidden": "true",
|
|
20592
20582
|
className: "h-3 w-3 text-[#222222] opacity-0 transition-opacity duration-150 group-data-[state=checked]:opacity-100",
|