@chekinapp/ui 0.0.105 → 0.0.107

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 CHANGED
@@ -12429,6 +12429,7 @@ var checkIfEmpty = ({
12429
12429
  if (value === 0 || defaultValue === 0) return false;
12430
12430
  return !value && !defaultValue;
12431
12431
  };
12432
+ var checkInputValueIfEmpty = (value) => value.length === 0;
12432
12433
  var DashboardInput = React43.forwardRef(
12433
12434
  ({
12434
12435
  value,
@@ -12471,10 +12472,15 @@ var DashboardInput = React43.forwardRef(
12471
12472
  const inputId = id ?? name ?? generatedId;
12472
12473
  const errorId = `${inputId}-error`;
12473
12474
  const { t } = (0, import_react_i18next26.useTranslation)();
12474
- const isEmpty = checkIfEmpty({ empty, value, defaultValue });
12475
+ const isEmptyControlled = typeof empty !== "undefined" || typeof value !== "undefined";
12476
+ const propsAreEmpty = checkIfEmpty({ empty, value, defaultValue });
12477
+ const [uncontrolledIsEmpty, setUncontrolledIsEmpty] = React43.useState(propsAreEmpty);
12478
+ const isEmpty = isEmptyControlled ? propsAreEmpty : uncontrolledIsEmpty;
12475
12479
  const [inputType, setInputType] = React43.useState(type);
12476
12480
  const [isPasswordRevealed, setIsPasswordRevealed] = React43.useState(false);
12477
12481
  const [isFocused, setIsFocused] = React43.useState(false);
12482
+ const inputRef = React43.useRef(null);
12483
+ const combinedInputRef = useCombinedRef(inputRef, ref);
12478
12484
  const prevInputType = usePrevious(inputType);
12479
12485
  const isPasswordReveal = (prevInputType === "password" || type === "password") && !isEmpty;
12480
12486
  const hasInvalidState = Boolean(invalid) || Boolean(error) && error !== "NONE";
@@ -12492,12 +12498,15 @@ var DashboardInput = React43.forwardRef(
12492
12498
  setInputType(type);
12493
12499
  }, [type]);
12494
12500
  const handleChange = (event) => {
12495
- if (readOnly || disabled || !onChange) return;
12496
- onChange(event);
12501
+ if (readOnly || disabled) return;
12502
+ if (!isEmptyControlled) {
12503
+ setUncontrolledIsEmpty(checkInputValueIfEmpty(event.currentTarget.value));
12504
+ }
12505
+ onChange?.(event);
12497
12506
  };
12498
12507
  const handleLabelClick = () => {
12499
- if (readOnly || disabled) return;
12500
- setIsFocused(true);
12508
+ if (readOnly || disabled || loading) return;
12509
+ inputRef.current?.focus();
12501
12510
  };
12502
12511
  const handleFocus = (event) => {
12503
12512
  if (readOnly || disabled) return;
@@ -12514,7 +12523,7 @@ var DashboardInput = React43.forwardRef(
12514
12523
  "div",
12515
12524
  {
12516
12525
  className: cn(
12517
- "relative block w-full min-h-[68px] max-w-[var(--dashboard-input-max-width,none)]",
12526
+ "relative block w-full max-w-[var(--field-max-width,296px)] min-h-[68px]",
12518
12527
  disabled && "cursor-not-allowed opacity-50",
12519
12528
  loading && "cursor-progress opacity-50",
12520
12529
  wrapperClassName,
@@ -12565,7 +12574,7 @@ var DashboardInput = React43.forwardRef(
12565
12574
  "input",
12566
12575
  {
12567
12576
  ...props,
12568
- ref,
12577
+ ref: combinedInputRef,
12569
12578
  id: inputId,
12570
12579
  name,
12571
12580
  type: inputType,
@@ -12714,7 +12723,7 @@ function SelectFieldShell({
12714
12723
  ref: containerRef,
12715
12724
  onBlur,
12716
12725
  className: cn(
12717
- "relative w-full max-w-[var(--max-field-width)]",
12726
+ "relative w-full max-w-[var(--field-max-width,296px)]",
12718
12727
  disabled && "cursor-not-allowed opacity-50",
12719
12728
  loading && "cursor-progress",
12720
12729
  className
@@ -12929,6 +12938,7 @@ function SelectMenuPanel({
12929
12938
  }
12930
12939
 
12931
12940
  // src/dashboard/_select-internals/SelectSearchInput.tsx
12941
+ var import_lucide_react43 = require("lucide-react");
12932
12942
  var import_jsx_runtime149 = require("react/jsx-runtime");
12933
12943
  function SelectSearchInput({
12934
12944
  inputRef,
@@ -12939,25 +12949,34 @@ function SelectSearchInput({
12939
12949
  onChange,
12940
12950
  onKeyDown
12941
12951
  }) {
12942
- return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "border-b border-[#f2f4f8] px-4 pb-2 pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
12943
- "input",
12944
- {
12945
- ref: inputRef,
12946
- type: "text",
12947
- value,
12948
- placeholder,
12949
- onChange,
12950
- onKeyDown,
12951
- autoComplete: "off",
12952
- "aria-controls": listboxId,
12953
- "aria-activedescendant": activeOptionId,
12954
- className: "m-0 box-border h-9 w-full rounded-md border border-[var(--chekin-color-gray-3)] bg-white px-3 text-[16px] font-medium text-[var(--chekin-color-brand-navy)] outline-none transition-colors placeholder:text-[var(--chekin-color-gray-1)] focus:border-[var(--chekin-color-brand-blue)]"
12955
- }
12956
- ) });
12952
+ return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("div", { className: "border-b border-[#f2f4f8] px-4 pb-2 pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("div", { className: "relative", children: [
12953
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
12954
+ import_lucide_react43.Search,
12955
+ {
12956
+ "aria-hidden": "true",
12957
+ className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[var(--chekin-color-gray-2)]"
12958
+ }
12959
+ ),
12960
+ /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
12961
+ "input",
12962
+ {
12963
+ ref: inputRef,
12964
+ type: "text",
12965
+ value,
12966
+ placeholder,
12967
+ onChange,
12968
+ onKeyDown,
12969
+ autoComplete: "off",
12970
+ "aria-controls": listboxId,
12971
+ "aria-activedescendant": activeOptionId,
12972
+ className: "m-0 box-border h-9 w-full rounded-md border border-[var(--chekin-color-gray-3)] bg-white px-9 text-[16px] font-medium text-[var(--chekin-color-brand-navy)] outline-none transition-colors placeholder:text-[var(--chekin-color-gray-1)] focus:border-[var(--chekin-color-brand-blue)]"
12973
+ }
12974
+ )
12975
+ ] }) });
12957
12976
  }
12958
12977
 
12959
12978
  // src/dashboard/_select-internals/SelectTrigger.tsx
12960
- var import_lucide_react43 = require("lucide-react");
12979
+ var import_lucide_react44 = require("lucide-react");
12961
12980
  var import_jsx_runtime150 = require("react/jsx-runtime");
12962
12981
  function SelectTrigger({
12963
12982
  triggerRef,
@@ -13007,7 +13026,7 @@ function SelectTrigger({
13007
13026
  /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("span", { className: "pointer-events-none flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: [
13008
13027
  loading && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(ThreeDotsLoader, { height: 18, width: 18 }),
13009
13028
  /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
13010
- import_lucide_react43.ChevronDown,
13029
+ import_lucide_react44.ChevronDown,
13011
13030
  {
13012
13031
  size: 16,
13013
13032
  className: cn(
@@ -13344,11 +13363,11 @@ var DashboardSelect = React47.forwardRef(
13344
13363
 
13345
13364
  // src/dashboard/multi-select/MultiSelect.tsx
13346
13365
  var React48 = __toESM(require("react"), 1);
13347
- var import_lucide_react45 = require("lucide-react");
13366
+ var import_lucide_react46 = require("lucide-react");
13348
13367
  var import_react_i18next32 = require("react-i18next");
13349
13368
 
13350
13369
  // src/dashboard/multi-select/MultiSelectChip.tsx
13351
- var import_lucide_react44 = require("lucide-react");
13370
+ var import_lucide_react45 = require("lucide-react");
13352
13371
  var import_react_i18next31 = require("react-i18next");
13353
13372
  var import_jsx_runtime152 = require("react/jsx-runtime");
13354
13373
  function MultiSelectChip({
@@ -13370,7 +13389,7 @@ function MultiSelectChip({
13370
13389
  },
13371
13390
  className: "flex h-[15px] w-[15px] items-center justify-center rounded-[3px] border-0 bg-transparent p-0 text-[#9696b9] hover:shadow-[0_3px_3px_#0f477734]",
13372
13391
  "aria-label": t("remove_item", { label: labelText }),
13373
- children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(import_lucide_react44.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
13392
+ children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(import_lucide_react45.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
13374
13393
  }
13375
13394
  )
13376
13395
  ] });
@@ -13624,6 +13643,13 @@ function DashboardMultiSelectInternal({
13624
13643
  String(option.value)
13625
13644
  )
13626
13645
  ),
13646
+ /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
13647
+ import_lucide_react46.Search,
13648
+ {
13649
+ "aria-hidden": "true",
13650
+ className: "h-4 w-4 shrink-0 text-[var(--chekin-color-gray-2)]"
13651
+ }
13652
+ ),
13627
13653
  /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
13628
13654
  "input",
13629
13655
  {
@@ -13665,7 +13691,7 @@ function DashboardMultiSelectInternal({
13665
13691
  },
13666
13692
  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]",
13667
13693
  "aria-label": t("clear_all"),
13668
- children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(import_lucide_react45.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
13694
+ children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(import_lucide_react46.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
13669
13695
  }
13670
13696
  ),
13671
13697
  /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
@@ -13712,21 +13738,30 @@ function DashboardMultiSelectInternal({
13712
13738
  className: dropdownClassName,
13713
13739
  drawerClassName,
13714
13740
  children: [
13715
- isMobile3 && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "border-b border-[#f2f4f8] px-4 pb-2 pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
13716
- "input",
13717
- {
13718
- ref: mobileSearchInputRef,
13719
- type: "text",
13720
- value: searchValue,
13721
- placeholder: placeholder ?? "",
13722
- onChange: (event) => setSearchValue(event.target.value),
13723
- onKeyDown: handleInputKeyDown,
13724
- autoComplete: "off",
13725
- "aria-controls": listboxId,
13726
- "aria-activedescendant": highlightedIndex >= 0 ? getOptionId2(highlightedIndex) : void 0,
13727
- className: "m-0 box-border h-9 w-full rounded-md border border-[var(--chekin-color-gray-3)] bg-white px-3 text-[16px] font-medium text-[var(--chekin-color-brand-navy)] outline-none transition-colors placeholder:text-[var(--chekin-color-gray-1)] focus:border-[var(--chekin-color-brand-blue)]"
13728
- }
13729
- ) }),
13741
+ isMobile3 && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "border-b border-[#f2f4f8] px-4 pb-2 pt-3", children: /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "relative", children: [
13742
+ /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
13743
+ import_lucide_react46.Search,
13744
+ {
13745
+ "aria-hidden": "true",
13746
+ className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[var(--chekin-color-gray-2)]"
13747
+ }
13748
+ ),
13749
+ /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
13750
+ "input",
13751
+ {
13752
+ ref: mobileSearchInputRef,
13753
+ type: "text",
13754
+ value: searchValue,
13755
+ placeholder: placeholder ?? "",
13756
+ onChange: (event) => setSearchValue(event.target.value),
13757
+ onKeyDown: handleInputKeyDown,
13758
+ autoComplete: "off",
13759
+ "aria-controls": listboxId,
13760
+ "aria-activedescendant": highlightedIndex >= 0 ? getOptionId2(highlightedIndex) : void 0,
13761
+ className: "m-0 box-border h-9 w-full rounded-md border border-[var(--chekin-color-gray-3)] bg-white px-9 text-[16px] font-medium text-[var(--chekin-color-brand-navy)] outline-none transition-colors placeholder:text-[var(--chekin-color-gray-1)] focus:border-[var(--chekin-color-brand-blue)]"
13762
+ }
13763
+ )
13764
+ ] }) }),
13730
13765
  /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
13731
13766
  SelectMenu,
13732
13767
  {
@@ -14227,7 +14262,7 @@ var DashboardTextarea = React51.forwardRef(
14227
14262
  "div",
14228
14263
  {
14229
14264
  className: cn(
14230
- "relative block min-h-[88px] w-full",
14265
+ "relative block min-h-[88px] w-full max-w-[var(--field-max-width,296px)]",
14231
14266
  isBlocked && "cursor-not-allowed opacity-50",
14232
14267
  loading && "cursor-progress opacity-50",
14233
14268
  className
@@ -14291,7 +14326,7 @@ var DashboardTextarea = React51.forwardRef(
14291
14326
 
14292
14327
  // src/dashboard/datepicker/Datepicker.tsx
14293
14328
  var React53 = __toESM(require("react"), 1);
14294
- var import_lucide_react46 = require("lucide-react");
14329
+ var import_lucide_react47 = require("lucide-react");
14295
14330
  var import_react_i18next35 = require("react-i18next");
14296
14331
 
14297
14332
  // src/airbnb-fields/datepicker/useDatePickerWheel.ts
@@ -15265,7 +15300,7 @@ var DashboardDatepicker = React53.forwardRef(
15265
15300
  {
15266
15301
  ref: containerRef,
15267
15302
  className: cn(
15268
- "relative w-full max-w-[var(--max-field-width)]",
15303
+ "relative w-full max-w-[var(--field-max-width,296px)]",
15269
15304
  disabled && "cursor-not-allowed opacity-50",
15270
15305
  loading && "cursor-progress",
15271
15306
  className
@@ -15296,7 +15331,7 @@ var DashboardDatepicker = React53.forwardRef(
15296
15331
  /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("span", { className: "pointer-events-none flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: [
15297
15332
  loading && /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(ThreeDotsLoader, { height: 18, width: 18 }),
15298
15333
  /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
15299
- import_lucide_react46.ChevronDown,
15334
+ import_lucide_react47.ChevronDown,
15300
15335
  {
15301
15336
  size: 16,
15302
15337
  className: cn(
@@ -15382,7 +15417,7 @@ var DashboardDatepicker = React53.forwardRef(
15382
15417
  }
15383
15418
  ),
15384
15419
  /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
15385
- import_lucide_react46.ChevronDown,
15420
+ import_lucide_react47.ChevronDown,
15386
15421
  {
15387
15422
  size: 14,
15388
15423
  onMouseDown: (event) => {
@@ -15717,7 +15752,7 @@ function resolveRangeSelection({
15717
15752
  }
15718
15753
 
15719
15754
  // src/dashboard/date-range-picker/components/DateRangeInputs.tsx
15720
- var import_lucide_react47 = require("lucide-react");
15755
+ var import_lucide_react48 = require("lucide-react");
15721
15756
  var import_jsx_runtime161 = require("react/jsx-runtime");
15722
15757
  var DEFAULT_PLACEHOLDER = "00-00-0000";
15723
15758
  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)]";
@@ -15838,7 +15873,7 @@ function DateRangeInputs({
15838
15873
  onClick: onReset,
15839
15874
  className: iconButtonClass,
15840
15875
  "aria-label": clearLabel,
15841
- children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(import_lucide_react47.SquareX, { size: 16, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
15876
+ children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(import_lucide_react48.SquareX, { size: 16, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
15842
15877
  }
15843
15878
  ),
15844
15879
  !readOnly && !hideCalendarIcon && /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
@@ -15853,7 +15888,7 @@ function DateRangeInputs({
15853
15888
  focusedInput !== null || isOpen ? "text-[var(--chekin-color-brand-blue)]" : "text-[var(--chekin-color-gray-2)]"
15854
15889
  ),
15855
15890
  "aria-label": openCalendarLabel,
15856
- children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(import_lucide_react47.CalendarDays, { size: 18 })
15891
+ children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(import_lucide_react48.CalendarDays, { size: 18 })
15857
15892
  }
15858
15893
  )
15859
15894
  ] })
@@ -16116,7 +16151,7 @@ var DashboardDateRangePicker = React57.forwardRef(function DashboardDateRangePic
16116
16151
  {
16117
16152
  ref: containerRef,
16118
16153
  className: cn(
16119
- "relative w-full max-w-[var(--max-field-width)]",
16154
+ "relative w-full max-w-[var(--field-max-width,296px)]",
16120
16155
  disabled && "cursor-not-allowed opacity-50",
16121
16156
  loading && "cursor-progress",
16122
16157
  className
@@ -16401,7 +16436,7 @@ var DashboardTimePicker = React59.forwardRef(
16401
16436
 
16402
16437
  // src/dashboard/file-input/FileInput.tsx
16403
16438
  var React60 = __toESM(require("react"), 1);
16404
- var import_lucide_react48 = require("lucide-react");
16439
+ var import_lucide_react49 = require("lucide-react");
16405
16440
  var import_react_i18next38 = require("react-i18next");
16406
16441
  var import_jsx_runtime166 = require("react/jsx-runtime");
16407
16442
  function defaultDownload(url) {
@@ -16466,7 +16501,7 @@ var DashboardFileInput = React60.forwardRef(
16466
16501
  {
16467
16502
  htmlFor: inputId,
16468
16503
  className: cn(
16469
- "relative block w-full max-w-[var(--max-field-width)] cursor-pointer text-left",
16504
+ "relative block w-full max-w-[var(--field-max-width,296px)] cursor-pointer text-left",
16470
16505
  (disabled || readOnly) && "cursor-not-allowed",
16471
16506
  loading && "cursor-progress",
16472
16507
  disabled && "opacity-50",
@@ -16514,7 +16549,7 @@ var DashboardFileInput = React60.forwardRef(
16514
16549
  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",
16515
16550
  children: [
16516
16551
  /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "truncate", children: resolvedDownloadLabel }),
16517
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_lucide_react48.Download, { size: 15 })
16552
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_lucide_react49.Download, { size: 15 })
16518
16553
  ]
16519
16554
  }
16520
16555
  ) : /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "truncate text-[14px] font-medium text-[var(--chekin-color-brand-navy)]", children: value.name }),
@@ -16526,7 +16561,7 @@ var DashboardFileInput = React60.forwardRef(
16526
16561
  onClick: handleClear,
16527
16562
  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]",
16528
16563
  "aria-label": t("remove_file"),
16529
- children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_lucide_react48.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
16564
+ children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_lucide_react49.SquareX, { size: 15, fill: "#9696b9", color: "#f8f8f8", strokeWidth: 1.8 })
16530
16565
  }
16531
16566
  )
16532
16567
  ]
@@ -16534,7 +16569,7 @@ var DashboardFileInput = React60.forwardRef(
16534
16569
  ) : /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "block min-w-0 flex-1 truncate text-left text-[var(--chekin-color-gray-1)]", children: placeholder ?? "" }),
16535
16570
  /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("span", { className: "ml-auto flex items-center gap-2 text-[var(--chekin-color-gray-2)]", children: [
16536
16571
  loading && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(ThreeDotsLoader, { height: 18, width: 18 }),
16537
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_lucide_react48.Paperclip, { size: 20 })
16572
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_lucide_react49.Paperclip, { size: 20 })
16538
16573
  ] })
16539
16574
  ]
16540
16575
  }
@@ -16775,11 +16810,11 @@ LegacyTextarea.displayName = "LegacyTextarea";
16775
16810
 
16776
16811
  // src/airbnb-fields/datepicker/DatePicker.tsx
16777
16812
  var React63 = __toESM(require("react"), 1);
16778
- var import_lucide_react50 = require("lucide-react");
16813
+ var import_lucide_react51 = require("lucide-react");
16779
16814
 
16780
16815
  // src/airbnb-fields/field-trigger/FieldTrigger.tsx
16781
16816
  var React62 = __toESM(require("react"), 1);
16782
- var import_lucide_react49 = require("lucide-react");
16817
+ var import_lucide_react50 = require("lucide-react");
16783
16818
  var import_react_i18next39 = require("react-i18next");
16784
16819
  var import_jsx_runtime170 = require("react/jsx-runtime");
16785
16820
  var AirbnbFieldTrigger = React62.forwardRef(
@@ -16845,7 +16880,7 @@ var AirbnbFieldTrigger = React62.forwardRef(
16845
16880
  const resolvedTrailingAdornment = loading || trailingAdornment ? /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("span", { className: "flex items-center gap-2", children: [
16846
16881
  trailingAdornment,
16847
16882
  loading && /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
16848
- import_lucide_react49.Loader2,
16883
+ import_lucide_react50.Loader2,
16849
16884
  {
16850
16885
  "aria-hidden": "true",
16851
16886
  className: "h-5 w-5 animate-spin text-[var(--chekin-color-gray-1)]"
@@ -17106,7 +17141,7 @@ var AirbnbDatePicker = React63.forwardRef(
17106
17141
  onClick: handleTriggerClick,
17107
17142
  onKeyDown: handleTriggerKeyDown,
17108
17143
  onBlur,
17109
- trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_lucide_react50.Calendar, { className: "h-5 w-5 text-[#1F1F1B]", strokeWidth: 2 })
17144
+ trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_lucide_react51.Calendar, { className: "h-5 w-5 text-[#1F1F1B]", strokeWidth: 2 })
17110
17145
  }
17111
17146
  ),
17112
17147
  /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
@@ -17296,7 +17331,7 @@ AirbnbInput.displayName = "AirbnbInput";
17296
17331
 
17297
17332
  // src/airbnb-fields/phone-field/PhoneField.tsx
17298
17333
  var React70 = __toESM(require("react"), 1);
17299
- var import_lucide_react52 = require("lucide-react");
17334
+ var import_lucide_react53 = require("lucide-react");
17300
17335
 
17301
17336
  // src/airbnb-fields/select/Select.tsx
17302
17337
  var React69 = __toESM(require("react"), 1);
@@ -17645,7 +17680,7 @@ function AirbnbSelectMobileContent({
17645
17680
 
17646
17681
  // src/airbnb-fields/select/SelectTrigger.tsx
17647
17682
  var React65 = __toESM(require("react"), 1);
17648
- var import_lucide_react51 = require("lucide-react");
17683
+ var import_lucide_react52 = require("lucide-react");
17649
17684
  var import_jsx_runtime177 = require("react/jsx-runtime");
17650
17685
  var AirbnbSelectTrigger = React65.forwardRef(
17651
17686
  ({
@@ -17702,7 +17737,7 @@ var AirbnbSelectTrigger = React65.forwardRef(
17702
17737
  onKeyDown,
17703
17738
  onBlur,
17704
17739
  trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
17705
- import_lucide_react51.ChevronDown,
17740
+ import_lucide_react52.ChevronDown,
17706
17741
  {
17707
17742
  className: open ? "h-6 w-6 rotate-180 text-[#1F1F1B] transition-transform" : "h-6 w-6 text-[#1F1F1B] transition-transform"
17708
17743
  }
@@ -18489,7 +18524,7 @@ var AirbnbPhoneField = React70.forwardRef(
18489
18524
  children: [
18490
18525
  /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("span", { children: valueLabel ?? codePlaceholder }),
18491
18526
  /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
18492
- import_lucide_react52.ChevronDown,
18527
+ import_lucide_react53.ChevronDown,
18493
18528
  {
18494
18529
  className: cn("h-5 w-5 transition-transform", open ? "rotate-180" : ""),
18495
18530
  strokeWidth: 2
@@ -18540,7 +18575,7 @@ AirbnbPhoneField.displayName = "AirbnbPhoneField";
18540
18575
 
18541
18576
  // src/airbnb-fields/searchable-select/SearchableSelect.tsx
18542
18577
  var React71 = __toESM(require("react"), 1);
18543
- var import_lucide_react53 = require("lucide-react");
18578
+ var import_lucide_react54 = require("lucide-react");
18544
18579
  var import_react_virtual3 = require("@tanstack/react-virtual");
18545
18580
  var import_react90 = require("react");
18546
18581
  var import_jsx_runtime180 = require("react/jsx-runtime");
@@ -18778,7 +18813,7 @@ var AirbnbSearchableSelectInternal = ({
18778
18813
  onKeyDown: handleTriggerKeyDown,
18779
18814
  onBlur,
18780
18815
  trailingAdornment: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
18781
- import_lucide_react53.ChevronDown,
18816
+ import_lucide_react54.ChevronDown,
18782
18817
  {
18783
18818
  className: cn(
18784
18819
  "h-6 w-6 text-[#1F1F1B] transition-transform",
@@ -18876,7 +18911,7 @@ function AirbnbSearchableSelectContent({
18876
18911
  return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("div", { className: "p-2", children: [
18877
18912
  /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("div", { className: "relative mb-2", children: [
18878
18913
  /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
18879
- import_lucide_react53.Search,
18914
+ import_lucide_react54.Search,
18880
18915
  {
18881
18916
  "aria-hidden": "true",
18882
18917
  className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 text-[#9696B9]"
@@ -18986,13 +19021,13 @@ function getNextEnabledIndex(options, startIndex, step) {
18986
19021
  // src/airbnb-fields/search-input/SearchInput.tsx
18987
19022
  var React72 = __toESM(require("react"), 1);
18988
19023
  var import_react_i18next40 = require("react-i18next");
18989
- var import_lucide_react54 = require("lucide-react");
19024
+ var import_lucide_react55 = require("lucide-react");
18990
19025
  var import_jsx_runtime181 = require("react/jsx-runtime");
18991
19026
  var AirbnbSearchInput = React72.forwardRef(({ onReset, placeholder, wrapperClassName, ...props }, ref) => {
18992
19027
  const { t } = (0, import_react_i18next40.useTranslation)();
18993
19028
  const placeholderText = placeholder || t("search_property") + "...";
18994
19029
  return /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)("div", { className: cn("input-wrapper relative", wrapperClassName), children: [
18995
- /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_lucide_react54.Search, { className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 transform text-[#9696B9]" }),
19030
+ /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_lucide_react55.Search, { className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 transform text-[#9696B9]" }),
18996
19031
  /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
18997
19032
  "input",
18998
19033
  {
@@ -19018,7 +19053,7 @@ var AirbnbSearchInput = React72.forwardRef(({ onReset, placeholder, wrapperClass
19018
19053
  variant: "ghost",
19019
19054
  onClick: onReset,
19020
19055
  className: "absolute right-0 top-1/2 h-5 w-5 -translate-y-1/2 transform text-[#9696B9]",
19021
- children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_lucide_react54.X, { className: "h-5 w-5" })
19056
+ children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(import_lucide_react55.X, { className: "h-5 w-5" })
19022
19057
  }
19023
19058
  )
19024
19059
  ] });