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