@chekinapp/ui 0.0.135 → 0.0.136

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.js CHANGED
@@ -14758,7 +14758,7 @@ function SelectCheckboxOption(props) {
14758
14758
  onHover,
14759
14759
  innerRef
14760
14760
  } = props;
14761
- return /* @__PURE__ */ jsxs102(
14761
+ return /* @__PURE__ */ jsx163(
14762
14762
  "button",
14763
14763
  {
14764
14764
  id,
@@ -14778,23 +14778,10 @@ function SelectCheckboxOption(props) {
14778
14778
  isSelected && "bg-[var(--chekin-color-surface-autocomplete)] font-semibold text-[var(--chekin-color-brand-blue)]",
14779
14779
  isDisabled && "cursor-not-allowed text-[var(--chekin-color-gray-2)]"
14780
14780
  ),
14781
- children: [
14782
- /* @__PURE__ */ jsx163(
14783
- BaseCheckbox,
14784
- {
14785
- checked: isSelected,
14786
- disabled: isDisabled,
14787
- size: "s",
14788
- tabIndex: -1,
14789
- className: "pointer-events-none shrink-0",
14790
- onClick: (event) => event.stopPropagation()
14791
- }
14792
- ),
14793
- /* @__PURE__ */ jsxs102("span", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
14794
- /* @__PURE__ */ jsx163("span", { className: "block break-words", children: option.label }),
14795
- option.description && /* @__PURE__ */ jsx163("span", { className: "shrink-0 text-[12px] font-medium italic text-[var(--chekin-color-gray-1)]", children: option.description })
14796
- ] })
14797
- ]
14781
+ children: /* @__PURE__ */ jsxs102("span", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
14782
+ /* @__PURE__ */ jsx163("span", { className: "block break-words", children: option.label }),
14783
+ option.description && /* @__PURE__ */ jsx163("span", { className: "shrink-0 text-[12px] font-medium italic text-[var(--chekin-color-gray-1)]", children: option.description })
14784
+ ] })
14798
14785
  }
14799
14786
  );
14800
14787
  }
@@ -14885,9 +14872,9 @@ function createCountTrigger(opts) {
14885
14872
  }
14886
14873
 
14887
14874
  // src/dashboard/select-checkboxes/SelectAllRow.tsx
14888
- import { jsx as jsx165, jsxs as jsxs104 } from "react/jsx-runtime";
14875
+ import { jsx as jsx165 } from "react/jsx-runtime";
14889
14876
  function SelectAllRow({ label, checked, disabled, onToggle }) {
14890
- return /* @__PURE__ */ jsxs104(
14877
+ return /* @__PURE__ */ jsx165(
14891
14878
  "button",
14892
14879
  {
14893
14880
  type: "button",
@@ -14897,20 +14884,7 @@ function SelectAllRow({ label, checked, disabled, onToggle }) {
14897
14884
  "flex w-full items-center gap-3 border-0 border-b border-[#f2f4f8] bg-white px-4 py-[14px] text-left text-[16px] font-bold leading-5 text-[var(--chekin-color-brand-navy)] outline-none transition-colors hover:bg-[var(--chekin-color-surface-pressed)]",
14898
14885
  disabled && "cursor-default opacity-40"
14899
14886
  ),
14900
- children: [
14901
- /* @__PURE__ */ jsx165(
14902
- BaseCheckbox,
14903
- {
14904
- checked,
14905
- disabled,
14906
- size: "s",
14907
- tabIndex: -1,
14908
- className: "pointer-events-none shrink-0",
14909
- onClick: (event) => event.stopPropagation()
14910
- }
14911
- ),
14912
- /* @__PURE__ */ jsx165("span", { className: "flex-1", children: label })
14913
- ]
14887
+ children: /* @__PURE__ */ jsx165("span", { className: "flex-1", children: label })
14914
14888
  }
14915
14889
  );
14916
14890
  }
@@ -15184,7 +15158,7 @@ function useTextareaValueState({
15184
15158
  }
15185
15159
 
15186
15160
  // src/dashboard/textarea/Textarea.tsx
15187
- import { jsx as jsx167, jsxs as jsxs105 } from "react/jsx-runtime";
15161
+ import { jsx as jsx167, jsxs as jsxs104 } from "react/jsx-runtime";
15188
15162
  var LINE_HEIGHT = 20;
15189
15163
  var VERTICAL_PADDING = 32;
15190
15164
  var Textarea = React61.forwardRef(function Textarea2({
@@ -15253,7 +15227,7 @@ var Textarea = React61.forwardRef(function Textarea2({
15253
15227
  onBlur?.(event);
15254
15228
  syncValueState();
15255
15229
  };
15256
- return /* @__PURE__ */ jsxs105(
15230
+ return /* @__PURE__ */ jsxs104(
15257
15231
  "div",
15258
15232
  {
15259
15233
  className: cn(
@@ -15263,7 +15237,7 @@ var Textarea = React61.forwardRef(function Textarea2({
15263
15237
  className
15264
15238
  ),
15265
15239
  children: [
15266
- label && /* @__PURE__ */ jsxs105(
15240
+ label && /* @__PURE__ */ jsxs104(
15267
15241
  "label",
15268
15242
  {
15269
15243
  htmlFor: textareaId,
@@ -15748,7 +15722,7 @@ function useDatePickerWheel({
15748
15722
  }
15749
15723
 
15750
15724
  // src/airbnb-fields/datepicker/DatePickerWheelColumn.tsx
15751
- import { jsx as jsx168, jsxs as jsxs106 } from "react/jsx-runtime";
15725
+ import { jsx as jsx168, jsxs as jsxs105 } from "react/jsx-runtime";
15752
15726
  var spacerHeight = DATE_PICKER_OPTION_HEIGHT * DATE_PICKER_WHEEL_BUFFER_OPTIONS;
15753
15727
  function AirbnbDatePickerWheelColumn({
15754
15728
  id,
@@ -15762,7 +15736,7 @@ function AirbnbDatePickerWheelColumn({
15762
15736
  onOptionSelect,
15763
15737
  column
15764
15738
  }) {
15765
- return /* @__PURE__ */ jsx168("div", { className: "relative z-10 min-w-0", children: /* @__PURE__ */ jsxs106(
15739
+ return /* @__PURE__ */ jsx168("div", { className: "relative z-10 min-w-0", children: /* @__PURE__ */ jsxs105(
15766
15740
  "div",
15767
15741
  {
15768
15742
  id,
@@ -15809,7 +15783,7 @@ function AirbnbDatePickerWheelColumn({
15809
15783
  }
15810
15784
 
15811
15785
  // src/airbnb-fields/datepicker/DatePickerContent.tsx
15812
- import { jsx as jsx169, jsxs as jsxs107 } from "react/jsx-runtime";
15786
+ import { jsx as jsx169, jsxs as jsxs106 } from "react/jsx-runtime";
15813
15787
  function AirbnbDatePickerBody({
15814
15788
  baseId,
15815
15789
  label,
@@ -15831,8 +15805,8 @@ function AirbnbDatePickerBody({
15831
15805
  onOptionSelect,
15832
15806
  onDone
15833
15807
  }) {
15834
- return /* @__PURE__ */ jsxs107("div", { className: "px-6 pb-4 pt-1 bg-white", children: [
15835
- /* @__PURE__ */ jsxs107("div", { className: "relative overflow-hidden rounded-[24px]", children: [
15808
+ return /* @__PURE__ */ jsxs106("div", { className: "px-6 pb-4 pt-1 bg-white", children: [
15809
+ /* @__PURE__ */ jsxs106("div", { className: "relative overflow-hidden rounded-[24px]", children: [
15836
15810
  /* @__PURE__ */ jsx169("div", { className: "pointer-events-none absolute inset-x-0 top-0 z-20 h-16 bg-gradient-to-b from-white via-white/80 to-transparent" }),
15837
15811
  /* @__PURE__ */ jsx169("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 z-20 h-16 bg-gradient-to-t from-white via-white/80 to-transparent" }),
15838
15812
  /* @__PURE__ */ jsx169(
@@ -15842,7 +15816,7 @@ function AirbnbDatePickerBody({
15842
15816
  className: "pointer-events-none absolute inset-x-0 top-1/2 z-0 h-8 -translate-y-1/2 rounded-[12px] bg-black/[0.04]"
15843
15817
  }
15844
15818
  ),
15845
- /* @__PURE__ */ jsxs107("div", { className: "relative grid grid-cols-[1.35fr_0.7fr_1fr] gap-1", children: [
15819
+ /* @__PURE__ */ jsxs106("div", { className: "relative grid grid-cols-[1.35fr_0.7fr_1fr] gap-1", children: [
15846
15820
  /* @__PURE__ */ jsx169(
15847
15821
  AirbnbDatePickerWheelColumn,
15848
15822
  {
@@ -15943,7 +15917,7 @@ function AirbnbDatePickerContent({
15943
15917
  }
15944
15918
  );
15945
15919
  if (isMobile3) {
15946
- return /* @__PURE__ */ jsx169(Drawer, { open, onOpenChange, children: /* @__PURE__ */ jsxs107(
15920
+ return /* @__PURE__ */ jsx169(Drawer, { open, onOpenChange, children: /* @__PURE__ */ jsxs106(
15947
15921
  DrawerContent,
15948
15922
  {
15949
15923
  onClose: () => onOpenChange(false),
@@ -15956,7 +15930,7 @@ function AirbnbDatePickerContent({
15956
15930
  }
15957
15931
  ) });
15958
15932
  }
15959
- return /* @__PURE__ */ jsx169(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs107(
15933
+ return /* @__PURE__ */ jsx169(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs106(
15960
15934
  DialogContent,
15961
15935
  {
15962
15936
  className: "max-w-[520px] rounded-[28px] border-0 p-0 shadow-xl",
@@ -15971,7 +15945,7 @@ function AirbnbDatePickerContent({
15971
15945
  }
15972
15946
 
15973
15947
  // src/dashboard/datepicker/Datepicker.tsx
15974
- import { jsx as jsx170, jsxs as jsxs108 } from "react/jsx-runtime";
15948
+ import { jsx as jsx170, jsxs as jsxs107 } from "react/jsx-runtime";
15975
15949
  var MONTHS_IN_YEAR2 = 12;
15976
15950
  function getMonthLabels2(locale) {
15977
15951
  const formatter = new Intl.DateTimeFormat(locale, { month: "long" });
@@ -16333,9 +16307,9 @@ var Datepicker = React63.forwardRef(
16333
16307
  className
16334
16308
  ),
16335
16309
  style: wrapperWidth ? { width: wrapperWidth } : void 0,
16336
- children: /* @__PURE__ */ jsxs108("div", { className: "relative min-h-[var(--field-min-height,48px)] w-full", children: [
16337
- /* @__PURE__ */ jsxs108("div", { className: "relative w-full", children: [
16338
- isMobile3 ? /* @__PURE__ */ jsxs108(
16310
+ children: /* @__PURE__ */ jsxs107("div", { className: "relative min-h-[var(--field-min-height,48px)] w-full", children: [
16311
+ /* @__PURE__ */ jsxs107("div", { className: "relative w-full", children: [
16312
+ isMobile3 ? /* @__PURE__ */ jsxs107(
16339
16313
  "button",
16340
16314
  {
16341
16315
  ref: mobileTriggerRef,
@@ -16368,7 +16342,7 @@ var Datepicker = React63.forwardRef(
16368
16342
  ) })
16369
16343
  ]
16370
16344
  }
16371
- ) : /* @__PURE__ */ jsxs108(
16345
+ ) : /* @__PURE__ */ jsxs107(
16372
16346
  "div",
16373
16347
  {
16374
16348
  className: cn(
@@ -16404,7 +16378,7 @@ var Datepicker = React63.forwardRef(
16404
16378
  className: subInputClass
16405
16379
  }
16406
16380
  ) }),
16407
- /* @__PURE__ */ jsxs108("div", { className: "relative flex h-full min-w-0 items-center gap-1 px-2 before:absolute before:inset-y-3 before:left-0 before:w-px before:bg-[var(--chekin-color-gray-3)] before:content-[''] after:absolute after:inset-y-3 after:right-0 after:w-px after:bg-[var(--chekin-color-gray-3)] after:content-[''] sm:px-3", children: [
16381
+ /* @__PURE__ */ jsxs107("div", { className: "relative flex h-full min-w-0 items-center gap-1 px-2 before:absolute before:inset-y-3 before:left-0 before:w-px before:bg-[var(--chekin-color-gray-3)] before:content-[''] after:absolute after:inset-y-3 after:right-0 after:w-px after:bg-[var(--chekin-color-gray-3)] after:content-[''] sm:px-3", children: [
16408
16382
  /* @__PURE__ */ jsx170(
16409
16383
  "input",
16410
16384
  {
@@ -16898,7 +16872,7 @@ function resolveRangeSelection({
16898
16872
 
16899
16873
  // src/dashboard/date-range-picker/components/DateRangeInputs.tsx
16900
16874
  import { CalendarDays, SquareX as SquareX4 } from "lucide-react";
16901
- import { jsx as jsx171, jsxs as jsxs109 } from "react/jsx-runtime";
16875
+ import { jsx as jsx171, jsxs as jsxs108 } from "react/jsx-runtime";
16902
16876
  var DEFAULT_PLACEHOLDER = "00-00-0000";
16903
16877
  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)]";
16904
16878
  var iconButtonClass = "flex h-5 w-5 items-center justify-center rounded-[3px] border-0 bg-transparent p-0 text-[#9696b9] outline-none hover:shadow-[0_3px_3px_#0f477734] disabled:cursor-not-allowed";
@@ -16940,7 +16914,7 @@ function DateRangeInputs({
16940
16914
  isBlocked && "cursor-not-allowed",
16941
16915
  loading && "cursor-progress"
16942
16916
  );
16943
- return /* @__PURE__ */ jsxs109(
16917
+ return /* @__PURE__ */ jsxs108(
16944
16918
  "div",
16945
16919
  {
16946
16920
  className: cn(
@@ -17010,7 +16984,7 @@ function DateRangeInputs({
17010
16984
  )
17011
16985
  }
17012
16986
  ),
17013
- /* @__PURE__ */ jsxs109("span", { className: "ml-auto flex shrink-0 items-center gap-2 pl-2 text-[var(--chekin-color-gray-2)]", children: [
16987
+ /* @__PURE__ */ jsxs108("span", { className: "ml-auto flex shrink-0 items-center gap-2 pl-2 text-[var(--chekin-color-gray-2)]", children: [
17014
16988
  !readOnly && !hideClearDates && !isEmpty && /* @__PURE__ */ jsx171(
17015
16989
  "button",
17016
16990
  {
@@ -17083,7 +17057,7 @@ function DateRangeCalendar({
17083
17057
  }
17084
17058
 
17085
17059
  // src/dashboard/date-range-picker/components/DateRangePopover.tsx
17086
- import { jsx as jsx173, jsxs as jsxs110 } from "react/jsx-runtime";
17060
+ import { jsx as jsx173, jsxs as jsxs109 } from "react/jsx-runtime";
17087
17061
  function DateRangePopover({
17088
17062
  isOpen,
17089
17063
  isMobile: isMobile3,
@@ -17102,7 +17076,7 @@ function DateRangePopover({
17102
17076
  onOpenChange: (next) => {
17103
17077
  if (!next) onClose();
17104
17078
  },
17105
- children: /* @__PURE__ */ jsxs110(
17079
+ children: /* @__PURE__ */ jsxs109(
17106
17080
  DrawerContent,
17107
17081
  {
17108
17082
  onClose,
@@ -17131,7 +17105,7 @@ function DateRangePopover({
17131
17105
  }
17132
17106
 
17133
17107
  // src/dashboard/date-range-picker/DateRangePicker.tsx
17134
- import { jsx as jsx174, jsxs as jsxs111 } from "react/jsx-runtime";
17108
+ import { jsx as jsx174, jsxs as jsxs110 } from "react/jsx-runtime";
17135
17109
  var DateRangePicker = React67.forwardRef(function DateRangePicker2({
17136
17110
  label,
17137
17111
  value: externalValue,
@@ -17326,8 +17300,8 @@ var DateRangePicker = React67.forwardRef(function DateRangePicker2({
17326
17300
  className
17327
17301
  ),
17328
17302
  style: wrapperWidth ? { width: wrapperWidth } : void 0,
17329
- children: /* @__PURE__ */ jsxs111("div", { className: "relative min-h-[var(--field-min-height,48px)] w-full", children: [
17330
- /* @__PURE__ */ jsxs111("div", { className: "relative w-full", children: [
17303
+ children: /* @__PURE__ */ jsxs110("div", { className: "relative min-h-[var(--field-min-height,48px)] w-full", children: [
17304
+ /* @__PURE__ */ jsxs110("div", { className: "relative w-full", children: [
17331
17305
  /* @__PURE__ */ jsx174(
17332
17306
  DateRangeInputs,
17333
17307
  {
@@ -17610,7 +17584,7 @@ var TimePicker = React69.forwardRef(function TimePicker2({ format: formatName =
17610
17584
  import * as React70 from "react";
17611
17585
  import { Download, Paperclip, SquareX as SquareX5 } from "lucide-react";
17612
17586
  import { useTranslation as useTranslation41 } from "react-i18next";
17613
- import { jsx as jsx176, jsxs as jsxs112 } from "react/jsx-runtime";
17587
+ import { jsx as jsx176, jsxs as jsxs111 } from "react/jsx-runtime";
17614
17588
  function defaultDownload(url) {
17615
17589
  window.open(url, "_blank", "noopener,noreferrer");
17616
17590
  }
@@ -17668,7 +17642,7 @@ var FileInput = React70.forwardRef(function FileInput2({
17668
17642
  event.stopPropagation();
17669
17643
  if (isUrl) onDownload(value);
17670
17644
  };
17671
- return /* @__PURE__ */ jsxs112(
17645
+ return /* @__PURE__ */ jsxs111(
17672
17646
  "label",
17673
17647
  {
17674
17648
  htmlFor: inputId,
@@ -17698,9 +17672,9 @@ var FileInput = React70.forwardRef(function FileInput2({
17698
17672
  "aria-invalid": isInvalid
17699
17673
  }
17700
17674
  ),
17701
- /* @__PURE__ */ jsxs112("div", { className: "relative w-full", children: [
17702
- /* @__PURE__ */ jsxs112("div", { className: "relative w-full", children: [
17703
- /* @__PURE__ */ jsxs112(
17675
+ /* @__PURE__ */ jsxs111("div", { className: "relative w-full", children: [
17676
+ /* @__PURE__ */ jsxs111("div", { className: "relative w-full", children: [
17677
+ /* @__PURE__ */ jsxs111(
17704
17678
  "div",
17705
17679
  {
17706
17680
  className: cn(
@@ -17708,13 +17682,13 @@ var FileInput = React70.forwardRef(function FileInput2({
17708
17682
  isEmpty && "bg-[var(--empty-field-background)]"
17709
17683
  ),
17710
17684
  children: [
17711
- hasFileChip ? /* @__PURE__ */ jsxs112(
17685
+ hasFileChip ? /* @__PURE__ */ jsxs111(
17712
17686
  "div",
17713
17687
  {
17714
17688
  className: "inline-flex h-6 max-w-[85%] items-center rounded-[4px] border border-[#acacd5] bg-[#f0f0f8] pl-[10px] pr-1",
17715
17689
  onClick: (event) => event.preventDefault(),
17716
17690
  children: [
17717
- isUrl ? /* @__PURE__ */ jsxs112(
17691
+ isUrl ? /* @__PURE__ */ jsxs111(
17718
17692
  "button",
17719
17693
  {
17720
17694
  type: "button",
@@ -17780,7 +17754,7 @@ var FileInput = React70.forwardRef(function FileInput2({
17780
17754
 
17781
17755
  // src/dashboard/select-icons-box/SelectIconsBox.tsx
17782
17756
  import * as React71 from "react";
17783
- import { jsx as jsx177, jsxs as jsxs113 } from "react/jsx-runtime";
17757
+ import { jsx as jsx177, jsxs as jsxs112 } from "react/jsx-runtime";
17784
17758
  var FOCUSABLE_TRIGGER_SELECTOR2 = 'input:not([type="hidden"]):not([disabled]):not([readonly]), button:not([disabled])';
17785
17759
  var SelectIconsBox = React71.forwardRef(
17786
17760
  function SelectIconsBox2({
@@ -17828,7 +17802,7 @@ var SelectIconsBox = React71.forwardRef(
17828
17802
  );
17829
17803
  focusable?.focus();
17830
17804
  };
17831
- return /* @__PURE__ */ jsxs113(
17805
+ return /* @__PURE__ */ jsxs112(
17832
17806
  "div",
17833
17807
  {
17834
17808
  ref: combinedContainerRef,
@@ -17932,13 +17906,13 @@ function getErrorMessage(error) {
17932
17906
 
17933
17907
  // src/lib/toastResponseError.tsx
17934
17908
  import i18next from "i18next";
17935
- import { jsx as jsx178, jsxs as jsxs114 } from "react/jsx-runtime";
17909
+ import { jsx as jsx178, jsxs as jsxs113 } from "react/jsx-runtime";
17936
17910
  function addSupportEmailToMessage(message, prefixText) {
17937
17911
  if (typeof message !== "string") {
17938
17912
  return message;
17939
17913
  }
17940
17914
  const builtMessage = `${prefixText ? `${prefixText} ` : ""}${message}`;
17941
- return /* @__PURE__ */ jsxs114("div", { children: [
17915
+ return /* @__PURE__ */ jsxs113("div", { children: [
17942
17916
  /* @__PURE__ */ jsx178("div", { children: builtMessage }),
17943
17917
  i18next.t("reach_us_at_email")
17944
17918
  ] });
@@ -17955,11 +17929,11 @@ function toastResponseError(error, options = {}) {
17955
17929
 
17956
17930
  // src/legacy-fields/textarea/Textarea.tsx
17957
17931
  import { forwardRef as forwardRef72, useId as useId15 } from "react";
17958
- import { jsx as jsx179, jsxs as jsxs115 } from "react/jsx-runtime";
17932
+ import { jsx as jsx179, jsxs as jsxs114 } from "react/jsx-runtime";
17959
17933
  var LegacyTextarea = forwardRef72(
17960
17934
  ({ className, textareaClassName, label, disabled, name, invalid, ...textareaProps }, ref) => {
17961
17935
  const inputId = useId15();
17962
- return /* @__PURE__ */ jsxs115("div", { className: cn("relative", className), children: [
17936
+ return /* @__PURE__ */ jsxs114("div", { className: cn("relative", className), children: [
17963
17937
  /* @__PURE__ */ jsx179(
17964
17938
  "textarea",
17965
17939
  {
@@ -18001,7 +17975,7 @@ import { Calendar as Calendar2 } from "lucide-react";
18001
17975
  import * as React72 from "react";
18002
17976
  import { Loader2 as Loader24 } from "lucide-react";
18003
17977
  import { useTranslation as useTranslation42 } from "react-i18next";
18004
- import { Fragment as Fragment17, jsx as jsx180, jsxs as jsxs116 } from "react/jsx-runtime";
17978
+ import { Fragment as Fragment17, jsx as jsx180, jsxs as jsxs115 } from "react/jsx-runtime";
18005
17979
  var AirbnbFieldTrigger = React72.forwardRef(
18006
17980
  ({
18007
17981
  as = "button",
@@ -18038,9 +18012,9 @@ var AirbnbFieldTrigger = React72.forwardRef(
18038
18012
  const optionalLabel = optional ? typeof optional === "string" ? optional : t("optional") : void 0;
18039
18013
  const visibleLabelText = labelText ?? label;
18040
18014
  const hasLabelMeta = Boolean(optionalLabel) || Boolean(tooltip);
18041
- const resolvedLabelText = visibleLabelText && hasLabelMeta ? /* @__PURE__ */ jsxs116("span", { className: "inline-flex max-w-full items-center gap-1.5 align-middle", children: [
18015
+ const resolvedLabelText = visibleLabelText && hasLabelMeta ? /* @__PURE__ */ jsxs115("span", { className: "inline-flex max-w-full items-center gap-1.5 align-middle", children: [
18042
18016
  /* @__PURE__ */ jsx180("span", { className: "min-w-0 truncate", children: visibleLabelText }),
18043
- optionalLabel && /* @__PURE__ */ jsxs116("span", { className: "text-current opacity-70 lowercase", children: [
18017
+ optionalLabel && /* @__PURE__ */ jsxs115("span", { className: "text-current opacity-70 lowercase", children: [
18044
18018
  "(",
18045
18019
  optionalLabel,
18046
18020
  ")"
@@ -18060,7 +18034,7 @@ var AirbnbFieldTrigger = React72.forwardRef(
18060
18034
  const hasInvalidState = Boolean(error);
18061
18035
  const errorMessage = typeof error === "string" ? error : void 0;
18062
18036
  const isBlocked = Boolean(disabled) || Boolean(loading);
18063
- const resolvedTrailingAdornment = loading || trailingAdornment ? /* @__PURE__ */ jsxs116("span", { className: "flex items-center gap-2", children: [
18037
+ const resolvedTrailingAdornment = loading || trailingAdornment ? /* @__PURE__ */ jsxs115("span", { className: "flex items-center gap-2", children: [
18064
18038
  trailingAdornment,
18065
18039
  loading && /* @__PURE__ */ jsx180(
18066
18040
  Loader24,
@@ -18078,8 +18052,8 @@ var AirbnbFieldTrigger = React72.forwardRef(
18078
18052
  disabled ? "cursor-not-allowed opacity-50" : loading ? "cursor-progress" : "cursor-pointer",
18079
18053
  className
18080
18054
  );
18081
- const sharedContent = /* @__PURE__ */ jsxs116(Fragment17, { children: [
18082
- /* @__PURE__ */ jsxs116(
18055
+ const sharedContent = /* @__PURE__ */ jsxs115(Fragment17, { children: [
18056
+ /* @__PURE__ */ jsxs115(
18083
18057
  "span",
18084
18058
  {
18085
18059
  className: cn(
@@ -18125,7 +18099,7 @@ var AirbnbFieldTrigger = React72.forwardRef(
18125
18099
  }
18126
18100
  )
18127
18101
  ] });
18128
- return /* @__PURE__ */ jsxs116("div", { className: "w-full", children: [
18102
+ return /* @__PURE__ */ jsxs115("div", { className: "w-full", children: [
18129
18103
  topLabel && /* @__PURE__ */ jsx180("p", { className: "mb-3 text-[16px] font-semibold leading-5 text-[#222222]", children: topLabel }),
18130
18104
  as === "button" ? /* @__PURE__ */ jsx180(
18131
18105
  "button",
@@ -18168,7 +18142,7 @@ var AirbnbFieldTrigger = React72.forwardRef(
18168
18142
  AirbnbFieldTrigger.displayName = "AirbnbFieldTrigger";
18169
18143
 
18170
18144
  // src/airbnb-fields/datepicker/DatePicker.tsx
18171
- import { jsx as jsx181, jsxs as jsxs117 } from "react/jsx-runtime";
18145
+ import { jsx as jsx181, jsxs as jsxs116 } from "react/jsx-runtime";
18172
18146
  var DEFAULT_MIN_DATE = new Date(1920, 0, 1);
18173
18147
  var AirbnbDatePicker = React73.forwardRef(
18174
18148
  ({
@@ -18284,7 +18258,7 @@ var AirbnbDatePicker = React73.forwardRef(
18284
18258
  setIsOpen(false);
18285
18259
  }
18286
18260
  }, [isBlocked]);
18287
- return /* @__PURE__ */ jsxs117("div", { className: cn("relative w-full max-w-[var(--max-field-width)]", className), children: [
18261
+ return /* @__PURE__ */ jsxs116("div", { className: cn("relative w-full max-w-[var(--max-field-width)]", className), children: [
18288
18262
  name && /* @__PURE__ */ jsx181(
18289
18263
  "input",
18290
18264
  {
@@ -18359,7 +18333,7 @@ AirbnbDatePicker.displayName = "AirbnbDatePicker";
18359
18333
  import * as React74 from "react";
18360
18334
  import { Eye as Eye2 } from "lucide-react";
18361
18335
  import { useTranslation as useTranslation43 } from "react-i18next";
18362
- import { jsx as jsx182, jsxs as jsxs118 } from "react/jsx-runtime";
18336
+ import { jsx as jsx182, jsxs as jsxs117 } from "react/jsx-runtime";
18363
18337
  var getInputValue = (value) => value != null ? String(value) : "";
18364
18338
  var AirbnbInput = React74.forwardRef(
18365
18339
  ({
@@ -18454,7 +18428,7 @@ var AirbnbInput = React74.forwardRef(
18454
18428
  const togglePasswordReveal = () => {
18455
18429
  setIsPasswordRevealed((isRevealed) => !isRevealed);
18456
18430
  };
18457
- return /* @__PURE__ */ jsx182("div", { className: cn("w-full max-w-[var(--max-field-width)]", wrapperClassName), children: /* @__PURE__ */ jsxs118(
18431
+ return /* @__PURE__ */ jsx182("div", { className: cn("w-full max-w-[var(--max-field-width)]", wrapperClassName), children: /* @__PURE__ */ jsxs117(
18458
18432
  AirbnbFieldTrigger,
18459
18433
  {
18460
18434
  as: "div",
@@ -18546,7 +18520,7 @@ import { ChevronDown as ChevronDown6 } from "lucide-react";
18546
18520
  import * as React79 from "react";
18547
18521
 
18548
18522
  // src/airbnb-fields/select/SelectDesktopMenu.tsx
18549
- import { jsx as jsx183, jsxs as jsxs119 } from "react/jsx-runtime";
18523
+ import { jsx as jsx183, jsxs as jsxs118 } from "react/jsx-runtime";
18550
18524
  function AirbnbSelectDesktopMenu({
18551
18525
  id,
18552
18526
  options,
@@ -18565,7 +18539,7 @@ function AirbnbSelectDesktopMenu({
18565
18539
  noOptionsMessage
18566
18540
  }) {
18567
18541
  const emptyMessage = noOptionsMessage?.();
18568
- return /* @__PURE__ */ jsxs119(
18542
+ return /* @__PURE__ */ jsxs118(
18569
18543
  "div",
18570
18544
  {
18571
18545
  id,
@@ -18741,7 +18715,7 @@ function getMobileOptionStyles(index, scrollTop) {
18741
18715
  }
18742
18716
 
18743
18717
  // src/airbnb-fields/select/SelectMobileWheel.tsx
18744
- import { jsx as jsx185, jsxs as jsxs120 } from "react/jsx-runtime";
18718
+ import { jsx as jsx185, jsxs as jsxs119 } from "react/jsx-runtime";
18745
18719
  function AirbnbSelectMobileWheel({
18746
18720
  id,
18747
18721
  options,
@@ -18760,7 +18734,7 @@ function AirbnbSelectMobileWheel({
18760
18734
  }) {
18761
18735
  const spacerHeight2 = getWheelSpacerHeight();
18762
18736
  const emptyMessage = noOptionsMessage?.();
18763
- return /* @__PURE__ */ jsxs120(
18737
+ return /* @__PURE__ */ jsxs119(
18764
18738
  "div",
18765
18739
  {
18766
18740
  id,
@@ -18785,7 +18759,7 @@ function AirbnbSelectMobileWheel({
18785
18759
  )
18786
18760
  }
18787
18761
  ),
18788
- /* @__PURE__ */ jsxs120(
18762
+ /* @__PURE__ */ jsxs119(
18789
18763
  "div",
18790
18764
  {
18791
18765
  ref: listRef,
@@ -18835,7 +18809,7 @@ function AirbnbSelectMobileWheel({
18835
18809
  }
18836
18810
 
18837
18811
  // src/airbnb-fields/select/SelectMobileContent.tsx
18838
- import { jsx as jsx186, jsxs as jsxs121 } from "react/jsx-runtime";
18812
+ import { jsx as jsx186, jsxs as jsxs120 } from "react/jsx-runtime";
18839
18813
  function AirbnbSelectMobileContent({
18840
18814
  open,
18841
18815
  onOpenChange,
@@ -18859,10 +18833,10 @@ function AirbnbSelectMobileContent({
18859
18833
  getOptionId: getOptionId2,
18860
18834
  noOptionsMessage
18861
18835
  }) {
18862
- return /* @__PURE__ */ jsx186(Drawer, { open, onOpenChange, children: /* @__PURE__ */ jsxs121(DrawerContent, { onClose, lockScroll: false, children: [
18836
+ return /* @__PURE__ */ jsx186(Drawer, { open, onOpenChange, children: /* @__PURE__ */ jsxs120(DrawerContent, { onClose, lockScroll: false, children: [
18863
18837
  /* @__PURE__ */ jsx186(DrawerTitle, { className: "sr-only", children: mobileTitle ?? label }),
18864
18838
  /* @__PURE__ */ jsx186(DrawerDescription, { className: "sr-only", children: label }),
18865
- /* @__PURE__ */ jsxs121("div", { className: "px-6 pb-4 pt-1", children: [
18839
+ /* @__PURE__ */ jsxs120("div", { className: "px-6 pb-4 pt-1", children: [
18866
18840
  /* @__PURE__ */ jsx186(
18867
18841
  AirbnbSelectMobileWheel,
18868
18842
  {
@@ -19305,7 +19279,7 @@ function useSelectIds2({ name, hasValue, error, hideErrorMessage }) {
19305
19279
  }
19306
19280
 
19307
19281
  // src/airbnb-fields/select/Select.tsx
19308
- import { jsx as jsx188, jsxs as jsxs122 } from "react/jsx-runtime";
19282
+ import { jsx as jsx188, jsxs as jsxs121 } from "react/jsx-runtime";
19309
19283
  var AirbnbSelect = React79.forwardRef(function AirbnbSelect2({
19310
19284
  options = [],
19311
19285
  value,
@@ -19486,7 +19460,7 @@ var AirbnbSelect = React79.forwardRef(function AirbnbSelect2({
19486
19460
  handleMobileOpenChange(false);
19487
19461
  }
19488
19462
  };
19489
- return /* @__PURE__ */ jsxs122(
19463
+ return /* @__PURE__ */ jsxs121(
19490
19464
  "div",
19491
19465
  {
19492
19466
  ref: containerRef,
@@ -19599,7 +19573,7 @@ var AirbnbSelect = React79.forwardRef(function AirbnbSelect2({
19599
19573
  });
19600
19574
 
19601
19575
  // src/airbnb-fields/phone-field/PhoneField.tsx
19602
- import { jsx as jsx189, jsxs as jsxs123 } from "react/jsx-runtime";
19576
+ import { jsx as jsx189, jsxs as jsxs122 } from "react/jsx-runtime";
19603
19577
  function formatPhoneCodeOptionLabel2(option) {
19604
19578
  const label = String(option.label);
19605
19579
  const value = String(option.value);
@@ -19647,7 +19621,7 @@ var AirbnbPhoneField = React80.forwardRef(
19647
19621
  const hasInvalidState = Boolean(error) || Boolean(invalid);
19648
19622
  const isBlocked = Boolean(disabled) || Boolean(loading);
19649
19623
  const isCodeBlocked = isBlocked || Boolean(codeReadOnly);
19650
- return /* @__PURE__ */ jsxs123("div", { className: cn("w-full max-w-[var(--max-field-width)]", className), children: [
19624
+ return /* @__PURE__ */ jsxs122("div", { className: cn("w-full max-w-[var(--max-field-width)]", className), children: [
19651
19625
  name && /* @__PURE__ */ jsx189("input", { type: "hidden", name, value: combinedValue, disabled }),
19652
19626
  codeName && /* @__PURE__ */ jsx189(
19653
19627
  "input",
@@ -19675,7 +19649,7 @@ var AirbnbPhoneField = React80.forwardRef(
19675
19649
  children: topLabel
19676
19650
  }
19677
19651
  ),
19678
- /* @__PURE__ */ jsxs123("div", { className: "flex items-stretch", children: [
19652
+ /* @__PURE__ */ jsxs122("div", { className: "flex items-stretch", children: [
19679
19653
  /* @__PURE__ */ jsx189(
19680
19654
  AirbnbSelect,
19681
19655
  {
@@ -19705,7 +19679,7 @@ var AirbnbPhoneField = React80.forwardRef(
19705
19679
  onClick,
19706
19680
  onKeyDown,
19707
19681
  valueLabel
19708
- }) => /* @__PURE__ */ jsxs123(
19682
+ }) => /* @__PURE__ */ jsxs122(
19709
19683
  "button",
19710
19684
  {
19711
19685
  id,
@@ -19779,7 +19753,7 @@ import * as React81 from "react";
19779
19753
  import { ChevronDown as ChevronDown7, Search as Search4 } from "lucide-react";
19780
19754
  import { useVirtualizer as useVirtualizer3 } from "@tanstack/react-virtual";
19781
19755
  import { useCallback as useCallback57 } from "react";
19782
- import { jsx as jsx190, jsxs as jsxs124 } from "react/jsx-runtime";
19756
+ import { jsx as jsx190, jsxs as jsxs123 } from "react/jsx-runtime";
19783
19757
  var ROW_HEIGHT = 48;
19784
19758
  var DESKTOP_LIST_HEIGHT = 280;
19785
19759
  var MOBILE_LIST_HEIGHT = 420;
@@ -19975,7 +19949,7 @@ var AirbnbSearchableSelectInternal = ({
19975
19949
  }
19976
19950
  );
19977
19951
  React81.useImperativeHandle(ref, () => triggerRef.current, []);
19978
- return /* @__PURE__ */ jsxs124("div", { ref: containerRef, className: cn("relative w-full max-w-[425px]", className), children: [
19952
+ return /* @__PURE__ */ jsxs123("div", { ref: containerRef, className: cn("relative w-full max-w-[425px]", className), children: [
19979
19953
  name && /* @__PURE__ */ jsx190("input", { type: "hidden", name, value: value ? String(value.value) : "" }),
19980
19954
  /* @__PURE__ */ jsx190(
19981
19955
  AirbnbFieldTrigger,
@@ -20034,7 +20008,7 @@ var AirbnbSearchableSelectInternal = ({
20034
20008
  }
20035
20009
  closeSelect();
20036
20010
  },
20037
- children: /* @__PURE__ */ jsxs124(DrawerContent, { onClose: closeSelect, lockScroll: false, children: [
20011
+ children: /* @__PURE__ */ jsxs123(DrawerContent, { onClose: closeSelect, lockScroll: false, children: [
20038
20012
  /* @__PURE__ */ jsx190(DrawerTitle, { className: "sr-only", children: mobileTitle ?? label }),
20039
20013
  /* @__PURE__ */ jsx190(DrawerDescription, { className: "sr-only", children: label }),
20040
20014
  /* @__PURE__ */ jsx190("div", { className: "px-5 pb-5 pt-1", children: content })
@@ -20107,8 +20081,8 @@ function AirbnbSearchableSelectContent({
20107
20081
  virtualizer.scrollToIndex(highlightedIndex, { align: "auto" });
20108
20082
  }
20109
20083
  }, [highlightedIndex, virtualizer]);
20110
- return /* @__PURE__ */ jsxs124("div", { className: "p-2", children: [
20111
- /* @__PURE__ */ jsxs124("div", { className: "relative mb-2", children: [
20084
+ return /* @__PURE__ */ jsxs123("div", { className: "p-2", children: [
20085
+ /* @__PURE__ */ jsxs123("div", { className: "relative mb-2", children: [
20112
20086
  /* @__PURE__ */ jsx190(
20113
20087
  Search4,
20114
20088
  {
@@ -20221,11 +20195,11 @@ function getNextEnabledIndex(options, startIndex, step) {
20221
20195
  import * as React82 from "react";
20222
20196
  import { useTranslation as useTranslation44 } from "react-i18next";
20223
20197
  import { Search as Search5, X as X11 } from "lucide-react";
20224
- import { jsx as jsx191, jsxs as jsxs125 } from "react/jsx-runtime";
20198
+ import { jsx as jsx191, jsxs as jsxs124 } from "react/jsx-runtime";
20225
20199
  var AirbnbSearchInput = React82.forwardRef(({ onReset, placeholder, wrapperClassName, ...props }, ref) => {
20226
20200
  const { t } = useTranslation44();
20227
20201
  const placeholderText = placeholder || t("search_property") + "...";
20228
- return /* @__PURE__ */ jsxs125("div", { className: cn("input-wrapper relative", wrapperClassName), children: [
20202
+ return /* @__PURE__ */ jsxs124("div", { className: cn("input-wrapper relative", wrapperClassName), children: [
20229
20203
  /* @__PURE__ */ jsx191(Search5, { className: "absolute left-4 top-1/2 h-5 w-5 -translate-y-1/2 transform text-[#9696B9]" }),
20230
20204
  /* @__PURE__ */ jsx191(
20231
20205
  "input",
@@ -20263,7 +20237,7 @@ AirbnbSearchInput.displayName = "AirbnbSearchInput";
20263
20237
  import * as React83 from "react";
20264
20238
  import * as SwitchPrimitives2 from "@radix-ui/react-switch";
20265
20239
  import { Check as Check7 } from "lucide-react";
20266
- import { Fragment as Fragment18, jsx as jsx192, jsxs as jsxs126 } from "react/jsx-runtime";
20240
+ import { Fragment as Fragment18, jsx as jsx192, jsxs as jsxs125 } from "react/jsx-runtime";
20267
20241
  var AirbnbSwitch = React83.forwardRef(
20268
20242
  ({
20269
20243
  className,
@@ -20322,8 +20296,8 @@ var AirbnbSwitch = React83.forwardRef(
20322
20296
  if (!label && !error) {
20323
20297
  return switchElement;
20324
20298
  }
20325
- return /* @__PURE__ */ jsxs126(Fragment18, { children: [
20326
- /* @__PURE__ */ jsxs126("div", { className: cn("flex items-center gap-x-3 gap-y-1.5", wrapperClassName), children: [
20299
+ return /* @__PURE__ */ jsxs125(Fragment18, { children: [
20300
+ /* @__PURE__ */ jsxs125("div", { className: cn("flex items-center gap-x-3 gap-y-1.5", wrapperClassName), children: [
20327
20301
  switchElement,
20328
20302
  label && /* @__PURE__ */ jsx192(
20329
20303
  Label,