@chekinapp/ui 0.0.91 → 0.0.92

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
@@ -2803,7 +2803,11 @@ function useModalWithHistoryControls({
2803
2803
  }, [resetHash]);
2804
2804
  const toggleModal = useCallback7(() => {
2805
2805
  setIsOpen(!isOpen);
2806
- !isOpen ? addHash() : resetHash();
2806
+ if (isOpen) {
2807
+ resetHash();
2808
+ } else {
2809
+ addHash();
2810
+ }
2807
2811
  }, [addHash, isOpen, resetHash]);
2808
2812
  useEffect10(() => {
2809
2813
  const targetWindow = getWindow();
@@ -3004,7 +3008,7 @@ function useScrollFrameIntoView(active, options = {}) {
3004
3008
  }
3005
3009
 
3006
3010
  // src/hooks/use-scrollable-area.ts
3007
- import { useCallback as useCallback10, useEffect as useEffect13, useRef as useRef9, useState as useState9 } from "react";
3011
+ import { useEffect as useEffect13, useRef as useRef9, useState as useState9 } from "react";
3008
3012
  var SCROLL_THRESHOLD = 1;
3009
3013
  function getScrollableAreaState(element) {
3010
3014
  const { scrollTop, scrollHeight, clientHeight } = element;
@@ -3016,17 +3020,15 @@ function useScrollableArea(options = {}) {
3016
3020
  const internalRef = useRef9(null);
3017
3021
  const ref = options.ref ?? internalRef;
3018
3022
  const [state, setState] = useState9({ canScrollUp: false, canScrollDown: false });
3019
- const updateState = useCallback10(() => {
3020
- const element = ref.current;
3021
- if (!element) return;
3022
- const newState = getScrollableAreaState(element);
3023
- setState(
3024
- (prev) => prev.canScrollUp !== newState.canScrollUp || prev.canScrollDown !== newState.canScrollDown ? newState : prev
3025
- );
3026
- }, [ref]);
3027
3023
  useEffect13(() => {
3028
3024
  const element = ref.current;
3029
3025
  if (!element) return;
3026
+ const updateState = () => {
3027
+ const newState = getScrollableAreaState(element);
3028
+ setState(
3029
+ (prev) => prev.canScrollUp !== newState.canScrollUp || prev.canScrollDown !== newState.canScrollDown ? newState : prev
3030
+ );
3031
+ };
3030
3032
  updateState();
3031
3033
  const resizeObserver = new ResizeObserver(updateState);
3032
3034
  resizeObserver.observe(element);
@@ -3035,7 +3037,7 @@ function useScrollableArea(options = {}) {
3035
3037
  resizeObserver.disconnect();
3036
3038
  element.removeEventListener("scroll", updateState);
3037
3039
  };
3038
- }, [ref, updateState]);
3040
+ }, [ref]);
3039
3041
  return {
3040
3042
  ref,
3041
3043
  ...state
@@ -3062,12 +3064,12 @@ function useDebounce(value, delayMs = 1e3, handleChange) {
3062
3064
  }
3063
3065
 
3064
3066
  // src/hooks/use-debounced-function.ts
3065
- import { useCallback as useCallback11, useRef as useRef10 } from "react";
3067
+ import { useCallback as useCallback10, useRef as useRef10 } from "react";
3066
3068
  function useDebouncedFunction(callback, delay) {
3067
3069
  const timerRef = useRef10();
3068
3070
  const immediateCalling = useRef10(false);
3069
3071
  const callbackFn = useEvent(callback);
3070
- const throttled = useCallback11(
3072
+ const throttled = useCallback10(
3071
3073
  (...args) => {
3072
3074
  clearTimeout(timerRef.current);
3073
3075
  if (immediateCalling.current) {
@@ -3082,7 +3084,7 @@ function useDebouncedFunction(callback, delay) {
3082
3084
  },
3083
3085
  [callbackFn, delay]
3084
3086
  );
3085
- const immediate = useCallback11(() => {
3087
+ const immediate = useCallback10(() => {
3086
3088
  immediateCalling.current = true;
3087
3089
  }, []);
3088
3090
  return { throttled, immediate };
@@ -3099,7 +3101,7 @@ function usePrevious(value, defaultValue) {
3099
3101
  }
3100
3102
 
3101
3103
  // src/hooks/use-pagination.ts
3102
- import { useCallback as useCallback12, useEffect as useEffect16, useMemo, useState as useState11 } from "react";
3104
+ import { useCallback as useCallback11, useEffect as useEffect16, useMemo, useState as useState11 } from "react";
3103
3105
 
3104
3106
  // src/storage/AbstractStorage.ts
3105
3107
  var AbstractStorage = class {
@@ -3202,14 +3204,14 @@ function usePagination(config) {
3202
3204
  return Math.min(state.page * state.pageSize, state.totalItems);
3203
3205
  }, [state.page, state.pageSize, state.totalItems]);
3204
3206
  const isEmpty = useMemo(() => state.totalItems === 0, [state.totalItems]);
3205
- const setPage = useCallback12(
3207
+ const setPage = useCallback11(
3206
3208
  (page) => {
3207
3209
  const clampedPage = Math.max(1, Math.min(page, pages || 1));
3208
3210
  setState((prev) => ({ ...prev, page: clampedPage }));
3209
3211
  },
3210
3212
  [pages]
3211
3213
  );
3212
- const setPageSize = useCallback12((pageSize) => {
3214
+ const setPageSize = useCallback11((pageSize) => {
3213
3215
  const validPageSize = Math.max(1, pageSize);
3214
3216
  setState((prev) => {
3215
3217
  const currentFirstItem = (prev.page - 1) * prev.pageSize + 1;
@@ -3221,7 +3223,7 @@ function usePagination(config) {
3221
3223
  };
3222
3224
  });
3223
3225
  }, []);
3224
- const setTotalItems = useCallback12((totalItems) => {
3226
+ const setTotalItems = useCallback11((totalItems) => {
3225
3227
  const validTotalItems = Math.max(0, totalItems);
3226
3228
  setState((prev) => {
3227
3229
  const newPages = validTotalItems > 0 ? Math.ceil(validTotalItems / prev.pageSize) : 0;
@@ -3233,19 +3235,19 @@ function usePagination(config) {
3233
3235
  };
3234
3236
  });
3235
3237
  }, []);
3236
- const nextPage = useCallback12(() => {
3238
+ const nextPage = useCallback11(() => {
3237
3239
  setPage(state.page + 1);
3238
3240
  }, [setPage, state.page]);
3239
- const previousPage = useCallback12(() => {
3241
+ const previousPage = useCallback11(() => {
3240
3242
  setPage(state.page - 1);
3241
3243
  }, [setPage, state.page]);
3242
- const goToFirstPage = useCallback12(() => {
3244
+ const goToFirstPage = useCallback11(() => {
3243
3245
  setPage(1);
3244
3246
  }, [setPage]);
3245
- const goToLastPage = useCallback12(() => {
3247
+ const goToLastPage = useCallback11(() => {
3246
3248
  setPage(pages);
3247
3249
  }, [setPage, pages]);
3248
- const reset = useCallback12(() => {
3250
+ const reset = useCallback11(() => {
3249
3251
  setState({
3250
3252
  page: defaultPage,
3251
3253
  pageSize: defaultPageSize,
@@ -3274,11 +3276,11 @@ function usePagination(config) {
3274
3276
  }
3275
3277
 
3276
3278
  // src/hooks/use-search-input.ts
3277
- import { useCallback as useCallback13, useState as useState12 } from "react";
3279
+ import { useCallback as useCallback12, useState as useState12 } from "react";
3278
3280
  function useSearchInput({ value, onChange }) {
3279
3281
  const [innerValue, setInnerValue] = useState12(value || "");
3280
3282
  const [, setDebouncedValue] = useDebounce(innerValue, 600, onChange);
3281
- const handleChange = useCallback13(
3283
+ const handleChange = useCallback12(
3282
3284
  (event) => {
3283
3285
  if (event.target.value === "") {
3284
3286
  setDebouncedValue("");
@@ -3328,7 +3330,7 @@ function useStickyStuck(ref) {
3328
3330
  }
3329
3331
 
3330
3332
  // src/hooks/use-switch-section-active.ts
3331
- import { useCallback as useCallback14, useEffect as useEffect18, useLayoutEffect as useLayoutEffect3, useState as useState14 } from "react";
3333
+ import { useCallback as useCallback13, useEffect as useEffect18, useLayoutEffect as useLayoutEffect3, useState as useState14 } from "react";
3332
3334
  function useSwitchSectionActive(preloadedSectionActive, { canToggle, onToggle, onSectionActiveChange, onTouched } = {}) {
3333
3335
  const [isSectionActive, setIsSectionActive] = useState14(false);
3334
3336
  const [preloadedIsSendingEnabled, setPreloadedIsSendingEnabled] = useState14(null);
@@ -3346,7 +3348,7 @@ function useSwitchSectionActive(preloadedSectionActive, { canToggle, onToggle, o
3346
3348
  },
3347
3349
  [preloadedSectionActive]
3348
3350
  );
3349
- const toggleIsSectionActive = useCallback14(() => {
3351
+ const toggleIsSectionActive = useCallback13(() => {
3350
3352
  const isTogglingDisabled = canToggle && !canToggle(isSectionActive);
3351
3353
  if (isTogglingDisabled) {
3352
3354
  return;
@@ -3433,13 +3435,13 @@ function useTimeout(callback, ms = 0) {
3433
3435
  }
3434
3436
 
3435
3437
  // src/hooks/use-hover.ts
3436
- import { useCallback as useCallback15, useState as useState16 } from "react";
3438
+ import { useCallback as useCallback14, useState as useState16 } from "react";
3437
3439
  function useHover() {
3438
3440
  const [isHovering, setIsHovering] = useState16(false);
3439
- const handleMouseEnter = useCallback15(() => {
3441
+ const handleMouseEnter = useCallback14(() => {
3440
3442
  setIsHovering(true);
3441
3443
  }, []);
3442
- const handleMouseLeave = useCallback15(() => {
3444
+ const handleMouseLeave = useCallback14(() => {
3443
3445
  setIsHovering(false);
3444
3446
  }, []);
3445
3447
  return {
@@ -3450,7 +3452,7 @@ function useHover() {
3450
3452
  }
3451
3453
 
3452
3454
  // src/hooks/use-key-down.ts
3453
- import { useCallback as useCallback16, useEffect as useEffect21 } from "react";
3455
+ import { useCallback as useCallback15, useEffect as useEffect21 } from "react";
3454
3456
  function useKeyDown({
3455
3457
  key,
3456
3458
  cb,
@@ -3464,7 +3466,7 @@ function useKeyDown({
3464
3466
  altKey = false
3465
3467
  } = options ?? {};
3466
3468
  const handleCallback = useEvent(cb);
3467
- const handleKeyDown = useCallback16(
3469
+ const handleKeyDown = useCallback15(
3468
3470
  (event) => {
3469
3471
  const keys = Array.isArray(key) ? key : [key];
3470
3472
  const isKeyMatch = keys.includes(event.key);
@@ -4518,7 +4520,7 @@ ExternalLink.displayName = "ExternalLink";
4518
4520
 
4519
4521
  // src/expandable-content/ExpandableContent.tsx
4520
4522
  import {
4521
- useCallback as useCallback18,
4523
+ useCallback as useCallback17,
4522
4524
  useEffect as useEffect24,
4523
4525
  useRef as useRef16,
4524
4526
  useState as useState19
@@ -4555,7 +4557,7 @@ function ExpandableContent({
4555
4557
  const [internalOpen, setInternalOpen] = useState19(defaultOpen);
4556
4558
  const isOpen = open ?? internalOpen;
4557
4559
  const isOverflowing = contentHeight > heightLimit;
4558
- const measureContent = useCallback18(() => {
4560
+ const measureContent = useCallback17(() => {
4559
4561
  const nextHeight = contentRef.current?.getBoundingClientRect().height ?? 0;
4560
4562
  setContentHeight(nextHeight);
4561
4563
  }, []);
@@ -4614,7 +4616,7 @@ function ExpandableContent({
4614
4616
  // src/file-input-button/FileInputButton.tsx
4615
4617
  import {
4616
4618
  forwardRef as forwardRef24,
4617
- useCallback as useCallback19
4619
+ useCallback as useCallback18
4618
4620
  } from "react";
4619
4621
  import { Upload } from "lucide-react";
4620
4622
  import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
@@ -4630,7 +4632,7 @@ var FileInputButton = forwardRef24(
4630
4632
  size = "default",
4631
4633
  ...props
4632
4634
  }, ref) => {
4633
- const handleChange = useCallback19(
4635
+ const handleChange = useCallback18(
4634
4636
  (event) => {
4635
4637
  onChange?.(event);
4636
4638
  event.target.value = "";
@@ -5049,7 +5051,7 @@ function extractDigits(str) {
5049
5051
  }
5050
5052
 
5051
5053
  // src/input-otp/useInputOTP.ts
5052
- import { useCallback as useCallback20, useEffect as useEffect25, useMemo as useMemo3, useRef as useRef17, useState as useState22 } from "react";
5054
+ import { useCallback as useCallback19, useEffect as useEffect25, useMemo as useMemo3, useRef as useRef17, useState as useState22 } from "react";
5053
5055
  function useInputOTP({
5054
5056
  maxLength,
5055
5057
  value,
@@ -5074,7 +5076,7 @@ function useInputOTP({
5074
5076
  return nextSlots;
5075
5077
  }, [value, maxLength]);
5076
5078
  slotsRef.current = slots;
5077
- const emitValue = useCallback20(
5079
+ const emitValue = useCallback19(
5078
5080
  (newSlots) => {
5079
5081
  let lastFilledIndex = -1;
5080
5082
  for (let index = newSlots.length - 1; index >= 0; index -= 1) {
@@ -5100,7 +5102,7 @@ function useInputOTP({
5100
5102
  inputRefs.current[0].focus();
5101
5103
  }
5102
5104
  }, [autoFocus]);
5103
- const handleContainerFocusIn = useCallback20((event) => {
5105
+ const handleContainerFocusIn = useCallback19((event) => {
5104
5106
  clearTimeout(blurTimeoutRef.current);
5105
5107
  const target = event.target;
5106
5108
  const slotIndex = inputRefs.current.indexOf(target);
@@ -5108,7 +5110,7 @@ function useInputOTP({
5108
5110
  setActiveIndex(slotIndex);
5109
5111
  }
5110
5112
  }, []);
5111
- const handleContainerFocusOut = useCallback20(() => {
5113
+ const handleContainerFocusOut = useCallback19(() => {
5112
5114
  clearTimeout(blurTimeoutRef.current);
5113
5115
  blurTimeoutRef.current = setTimeout(() => {
5114
5116
  if (!containerRef.current?.contains(document.activeElement)) {
@@ -5117,7 +5119,7 @@ function useInputOTP({
5117
5119
  }, 0);
5118
5120
  }, []);
5119
5121
  useEffect25(() => () => clearTimeout(blurTimeoutRef.current), []);
5120
- const handleDigitInput = useCallback20(
5122
+ const handleDigitInput = useCallback19(
5121
5123
  (index, digit) => {
5122
5124
  if (!DIGIT_REGEX.test(digit)) return;
5123
5125
  const newSlots = [...slotsRef.current];
@@ -5131,7 +5133,7 @@ function useInputOTP({
5131
5133
  },
5132
5134
  [maxLength, emitValue]
5133
5135
  );
5134
- const handleDelete = useCallback20(
5136
+ const handleDelete = useCallback19(
5135
5137
  (index) => {
5136
5138
  const newSlots = [...slotsRef.current];
5137
5139
  if (newSlots[index]) {
@@ -5146,7 +5148,7 @@ function useInputOTP({
5146
5148
  },
5147
5149
  [emitValue]
5148
5150
  );
5149
- const handlePaste = useCallback20(
5151
+ const handlePaste = useCallback19(
5150
5152
  (text) => {
5151
5153
  const digits = extractDigits(text).slice(0, maxLength);
5152
5154
  if (digits.length > 0) {
@@ -5196,7 +5198,7 @@ function useInputOTP({
5196
5198
 
5197
5199
  // src/input-otp/useInputOTPSlot.ts
5198
5200
  import {
5199
- useCallback as useCallback21
5201
+ useCallback as useCallback20
5200
5202
  } from "react";
5201
5203
  function useInputOTPSlot(index) {
5202
5204
  const {
@@ -5267,13 +5269,13 @@ function useInputOTPSlot(index) {
5267
5269
  event.preventDefault();
5268
5270
  handlePaste(event.clipboardData.getData("text/plain"));
5269
5271
  };
5270
- const setInputRef = useCallback21(
5272
+ const setInputRef = useCallback20(
5271
5273
  (element) => {
5272
5274
  inputRefs.current[index] = element;
5273
5275
  },
5274
5276
  [index, inputRefs]
5275
5277
  );
5276
- const focusSlot = useCallback21(() => {
5278
+ const focusSlot = useCallback20(() => {
5277
5279
  inputRefs.current[index]?.focus();
5278
5280
  }, [index, inputRefs]);
5279
5281
  return {
@@ -6721,7 +6723,7 @@ var LegacyMultiSelect = forwardRef33(LegacyMultiSelectInner);
6721
6723
 
6722
6724
  // src/legacy-fields/select/InfinitySelect.tsx
6723
6725
  import { useVirtualizer } from "@tanstack/react-virtual";
6724
- import { useCallback as useCallback22, useEffect as useEffect26, useId as useId7, useRef as useRef19, useState as useState27 } from "react";
6726
+ import { useCallback as useCallback21, useEffect as useEffect26, useId as useId7, useRef as useRef19, useState as useState27 } from "react";
6725
6727
  import { jsx as jsx79, jsxs as jsxs50 } from "react/jsx-runtime";
6726
6728
  function LegacyInfinitySelect({
6727
6729
  label,
@@ -6745,7 +6747,7 @@ function LegacyInfinitySelect({
6745
6747
  estimateSize: () => itemHeight,
6746
6748
  overscan: 5
6747
6749
  });
6748
- const loadMore = useCallback22(() => {
6750
+ const loadMore = useCallback21(() => {
6749
6751
  if (hasNextPage && !isFetchingNextPage) {
6750
6752
  fetchNextPage();
6751
6753
  }
@@ -7113,11 +7115,11 @@ var RadioGroupItem = React25.forwardRef(({ className, size = "default", ...props
7113
7115
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
7114
7116
 
7115
7117
  // src/radio/useRadioOptions.ts
7116
- import { useCallback as useCallback23, useState as useState28 } from "react";
7118
+ import { useCallback as useCallback22, useState as useState28 } from "react";
7117
7119
  function useRadioOptions({ options, defaultValue, onChange }) {
7118
7120
  const initialValue = (typeof defaultValue === "string" ? options.find((option) => option.value === defaultValue) : defaultValue) || "";
7119
7121
  const [selectedValue, setSelectedValue] = useState28(initialValue);
7120
- const handleValueChange = useCallback23(
7122
+ const handleValueChange = useCallback22(
7121
7123
  (value) => {
7122
7124
  setSelectedValue(value);
7123
7125
  const selectedOption = options.find((option) => option.value === value) || "";
@@ -9895,11 +9897,11 @@ function TimelineDescription({ className, asChild, ...props }) {
9895
9897
  import { Toaster, toast as toast2 } from "sonner";
9896
9898
 
9897
9899
  // src/toaster/useUpdateToast.ts
9898
- import { useCallback as useCallback26, useRef as useRef22 } from "react";
9900
+ import { useCallback as useCallback25, useRef as useRef22 } from "react";
9899
9901
  import { toast } from "sonner";
9900
9902
  function useUpdateToast({ id }) {
9901
9903
  const toastIdRef = useRef22("");
9902
- const getToastOptions = useCallback26(
9904
+ const getToastOptions = useCallback25(
9903
9905
  (options) => ({
9904
9906
  id: toastIdRef.current,
9905
9907
  dismissible: false,
@@ -10141,7 +10143,7 @@ function TogglesInternal({
10141
10143
  var Toggles = forwardRef53(TogglesInternal);
10142
10144
 
10143
10145
  // src/three-dots-loader/ThreeDotsLoader.tsx
10144
- import { Fragment as Fragment12, jsx as jsx131, jsxs as jsxs79 } from "react/jsx-runtime";
10146
+ import { Fragment as Fragment11, jsx as jsx131, jsxs as jsxs79 } from "react/jsx-runtime";
10145
10147
  function Dots({
10146
10148
  height,
10147
10149
  width,
@@ -10197,10 +10199,10 @@ function ThreeDotsLoader({
10197
10199
  className
10198
10200
  ),
10199
10201
  role: "progressbar",
10200
- children: labelPlacement === "right" ? /* @__PURE__ */ jsxs79(Fragment12, { children: [
10202
+ children: labelPlacement === "right" ? /* @__PURE__ */ jsxs79(Fragment11, { children: [
10201
10203
  dots,
10202
10204
  /* @__PURE__ */ jsx131("div", { children: label })
10203
- ] }) : /* @__PURE__ */ jsxs79(Fragment12, { children: [
10205
+ ] }) : /* @__PURE__ */ jsxs79(Fragment11, { children: [
10204
10206
  /* @__PURE__ */ jsx131("div", { children: label }),
10205
10207
  dots
10206
10208
  ] })
@@ -10429,7 +10431,7 @@ import {
10429
10431
  VolumeX,
10430
10432
  X as X8
10431
10433
  } from "lucide-react";
10432
- import { Fragment as Fragment13, jsx as jsx135, jsxs as jsxs83 } from "react/jsx-runtime";
10434
+ import { Fragment as Fragment12, jsx as jsx135, jsxs as jsxs83 } from "react/jsx-runtime";
10433
10435
  function VideoPlayer({
10434
10436
  src,
10435
10437
  poster,
@@ -10625,7 +10627,7 @@ function VideoPlayer({
10625
10627
  onLoad: () => setIsLoading(false),
10626
10628
  title: title || "Vimeo video player"
10627
10629
  }
10628
- ) : /* @__PURE__ */ jsxs83(Fragment13, { children: [
10630
+ ) : /* @__PURE__ */ jsxs83(Fragment12, { children: [
10629
10631
  /* @__PURE__ */ jsxs83(
10630
10632
  "video",
10631
10633
  {
@@ -10731,7 +10733,7 @@ function VideoPlayer({
10731
10733
  }
10732
10734
 
10733
10735
  // src/webcam/Webcam.tsx
10734
- import { forwardRef as forwardRef54, useCallback as useCallback27, useEffect as useEffect34, useMemo as useMemo7, useState as useState35 } from "react";
10736
+ import { forwardRef as forwardRef54, useCallback as useCallback26, useEffect as useEffect34, useMemo as useMemo7, useState as useState35 } from "react";
10735
10737
  import { useTranslation as useTranslation23 } from "react-i18next";
10736
10738
  import { isMobile, isTablet } from "react-device-detect";
10737
10739
  import ReactWebcam from "react-webcam";
@@ -10742,7 +10744,7 @@ function isDOMException(error) {
10742
10744
  }
10743
10745
 
10744
10746
  // src/webcam/Webcam.tsx
10745
- import { Fragment as Fragment14, jsx as jsx136, jsxs as jsxs84 } from "react/jsx-runtime";
10747
+ import { Fragment as Fragment13, jsx as jsx136, jsxs as jsxs84 } from "react/jsx-runtime";
10746
10748
  var SCREENSHOT_FORMAT = "image/jpeg";
10747
10749
  var MEDIA_CONSTRAINTS = {
10748
10750
  audio: false,
@@ -10822,7 +10824,7 @@ var Webcam = forwardRef54(
10822
10824
  }
10823
10825
  }
10824
10826
  }, [constraints, isMounted, onException]);
10825
- const handleUserMediaError = useCallback27(
10827
+ const handleUserMediaError = useCallback26(
10826
10828
  (error) => {
10827
10829
  if (isDOMException(error) && ["PermissionDeniedError", "NotAllowedError"].includes(error.name)) {
10828
10830
  setIsCameraPermissionsDenied(true);
@@ -10833,7 +10835,7 @@ var Webcam = forwardRef54(
10833
10835
  },
10834
10836
  [onUserMediaError, onException]
10835
10837
  );
10836
- return /* @__PURE__ */ jsxs84(Fragment14, { children: [
10838
+ return /* @__PURE__ */ jsxs84(Fragment13, { children: [
10837
10839
  /* @__PURE__ */ jsx136(
10838
10840
  "div",
10839
10841
  {
@@ -11188,7 +11190,7 @@ function ResponsiveSheet({
11188
11190
 
11189
11191
  // src/responsive-dropdown/ResponsiveDropdown.tsx
11190
11192
  import * as React43 from "react";
11191
- import { Fragment as Fragment15, jsx as jsx140, jsxs as jsxs87 } from "react/jsx-runtime";
11193
+ import { Fragment as Fragment14, jsx as jsx140, jsxs as jsxs87 } from "react/jsx-runtime";
11192
11194
  function ResponsiveDropdown({
11193
11195
  trigger,
11194
11196
  options,
@@ -11220,7 +11222,7 @@ function ResponsiveDropdown({
11220
11222
  setOpen(false);
11221
11223
  };
11222
11224
  if (isMobileMode) {
11223
- return /* @__PURE__ */ jsxs87(Fragment15, { children: [
11225
+ return /* @__PURE__ */ jsxs87(Fragment14, { children: [
11224
11226
  /* @__PURE__ */ jsx140(
11225
11227
  "div",
11226
11228
  {
@@ -11291,7 +11293,7 @@ import { Eye, Minus as Minus4, Plus as Plus3, X as X9 } from "lucide-react";
11291
11293
  import { useTranslation as useTranslation24 } from "react-i18next";
11292
11294
 
11293
11295
  // src/dashboard/_fieldset/Fieldset.tsx
11294
- import { Fragment as Fragment16, jsx as jsx141, jsxs as jsxs88 } from "react/jsx-runtime";
11296
+ import { Fragment as Fragment15, jsx as jsx141, jsxs as jsxs88 } from "react/jsx-runtime";
11295
11297
  function Fieldset({
11296
11298
  isActivated,
11297
11299
  isFocused,
@@ -11311,7 +11313,7 @@ function Fieldset({
11311
11313
  }) {
11312
11314
  const showLegendText = Boolean(legend || typeof label === "string");
11313
11315
  const raised = !isEmpty || isFocused;
11314
- return /* @__PURE__ */ jsxs88(Fragment16, { children: [
11316
+ return /* @__PURE__ */ jsxs88(Fragment15, { children: [
11315
11317
  /* @__PURE__ */ jsxs88(
11316
11318
  "div",
11317
11319
  {
@@ -11479,7 +11481,7 @@ var DashboardInput = React44.forwardRef(
11479
11481
  "div",
11480
11482
  {
11481
11483
  className: cn(
11482
- "relative block min-h-[68px] max-w-[var(--dashboard-input-max-width,none)]",
11484
+ "relative block w-full min-h-[68px] max-w-[var(--dashboard-input-max-width,none)]",
11483
11485
  disabled && "cursor-not-allowed opacity-50",
11484
11486
  loading && "cursor-progress opacity-50",
11485
11487
  wrapperClassName,
@@ -14163,7 +14165,6 @@ var DashboardDatepicker = React54.forwardRef(
14163
14165
  setIsWheelOpen(false);
14164
14166
  mobileTriggerRef.current?.focus();
14165
14167
  }, []);
14166
- const closeMonth = () => setIsMonthOpen(false);
14167
14168
  const showCoverage = isEmpty && !isFocused && !isMobile2;
14168
14169
  const wheel = useDatePickerWheel({
14169
14170
  isOpen: isWheelOpen,
@@ -14616,7 +14617,7 @@ function useRangeTextInputs({
14616
14617
  }
14617
14618
  setFromText(value?.from ? format2(value.from) : "");
14618
14619
  return void 0;
14619
- }, [format2, fromText, onBlur, onCommit, parse3, value?.from, value?.to]);
14620
+ }, [format2, fromText, onBlur, onCommit, parse3, value]);
14620
14621
  const handleToBlur = React56.useCallback(() => {
14621
14622
  if (!toText) {
14622
14623
  const next = { from: value?.from, to: void 0 };
@@ -14632,7 +14633,7 @@ function useRangeTextInputs({
14632
14633
  return;
14633
14634
  }
14634
14635
  setToText(value?.to ? format2(value.to) : "");
14635
- }, [format2, onBlur, onCommit, parse3, toText, value?.from, value?.to]);
14636
+ }, [format2, onBlur, onCommit, parse3, toText, value]);
14636
14637
  return {
14637
14638
  fromText,
14638
14639
  toText,
@@ -15373,15 +15374,6 @@ import * as React61 from "react";
15373
15374
  import { Download, Paperclip, SquareX as SquareX5 } from "lucide-react";
15374
15375
  import { useTranslation as useTranslation36 } from "react-i18next";
15375
15376
  import { jsx as jsx163, jsxs as jsxs106 } from "react/jsx-runtime";
15376
- function defaultFileNameFromUrl(url) {
15377
- try {
15378
- const parsed = new URL(url);
15379
- const segments = parsed.pathname.split("/");
15380
- return decodeURIComponent(segments[segments.length - 1] ?? url);
15381
- } catch {
15382
- return url;
15383
- }
15384
- }
15385
15377
  function defaultDownload(url) {
15386
15378
  window.open(url, "_blank", "noopener,noreferrer");
15387
15379
  }
@@ -15406,8 +15398,7 @@ var DashboardFileInput = React61.forwardRef(
15406
15398
  hideErrorMessage,
15407
15399
  className,
15408
15400
  width,
15409
- downloadLabel,
15410
- fileNameFromUrl = defaultFileNameFromUrl
15401
+ downloadLabel
15411
15402
  }, ref) {
15412
15403
  const internalRef = React61.useRef(null);
15413
15404
  const inputRef = useCombinedRef(ref, internalRef);
@@ -15760,7 +15751,7 @@ import { Calendar as Calendar2 } from "lucide-react";
15760
15751
  import * as React63 from "react";
15761
15752
  import { Loader2 as Loader24 } from "lucide-react";
15762
15753
  import { useTranslation as useTranslation37 } from "react-i18next";
15763
- import { Fragment as Fragment18, jsx as jsx167, jsxs as jsxs110 } from "react/jsx-runtime";
15754
+ import { Fragment as Fragment17, jsx as jsx167, jsxs as jsxs110 } from "react/jsx-runtime";
15764
15755
  var AirbnbFieldTrigger = React63.forwardRef(
15765
15756
  ({
15766
15757
  as = "button",
@@ -15839,7 +15830,7 @@ var AirbnbFieldTrigger = React63.forwardRef(
15839
15830
  disabled ? "cursor-not-allowed opacity-50" : loading ? "cursor-progress" : isAirbnbVariant ? "cursor-pointer" : "cursor-text",
15840
15831
  className
15841
15832
  );
15842
- const sharedContent = /* @__PURE__ */ jsxs110(Fragment18, { children: [
15833
+ const sharedContent = /* @__PURE__ */ jsxs110(Fragment17, { children: [
15843
15834
  /* @__PURE__ */ jsxs110(
15844
15835
  "span",
15845
15836
  {
@@ -17521,7 +17512,7 @@ AirbnbPhoneField.displayName = "AirbnbPhoneField";
17521
17512
  import * as React72 from "react";
17522
17513
  import { ChevronDown as ChevronDown6, Search as Search3 } from "lucide-react";
17523
17514
  import { useVirtualizer as useVirtualizer3 } from "@tanstack/react-virtual";
17524
- import { useCallback as useCallback47 } from "react";
17515
+ import { useCallback as useCallback46 } from "react";
17525
17516
  import { jsx as jsx177, jsxs as jsxs117 } from "react/jsx-runtime";
17526
17517
  var ROW_HEIGHT = 48;
17527
17518
  var DESKTOP_LIST_HEIGHT = 280;
@@ -17600,7 +17591,7 @@ var AirbnbSearchableSelectInternal = ({
17600
17591
  isDisabled: !open || isMobile2
17601
17592
  });
17602
17593
  const handleOnOpenChange = useEvent(onOpenChange);
17603
- const setSelectOpen = useCallback47(
17594
+ const setSelectOpen = useCallback46(
17604
17595
  (nextOpen, options2) => {
17605
17596
  setOpen(nextOpen);
17606
17597
  handleOnOpenChange?.(nextOpen);