@jobber/components 6.86.1 → 6.86.3

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.
Files changed (80) hide show
  1. package/dist/Autocomplete/index.cjs +12 -13
  2. package/dist/Autocomplete/index.mjs +16 -17
  3. package/dist/Banner-cjs.js +1 -1
  4. package/dist/Banner-es.js +1 -1
  5. package/dist/Chip-cjs.js +2 -2
  6. package/dist/Chip-es.js +3 -3
  7. package/dist/Combobox-cjs.js +1 -1
  8. package/dist/Combobox-es.js +2 -2
  9. package/dist/ComboboxContent-cjs.js +2 -2
  10. package/dist/ComboboxContent-es.js +5 -5
  11. package/dist/ComboboxLoadMore-cjs.js +1 -1
  12. package/dist/ComboboxLoadMore-es.js +2 -2
  13. package/dist/ConfirmationModal-cjs.js +1 -1
  14. package/dist/ConfirmationModal-es.js +2 -2
  15. package/dist/ContentBlock-cjs.js +1 -1
  16. package/dist/ContentBlock-es.js +2 -2
  17. package/dist/DataListActionsMenu-cjs.js +4 -4
  18. package/dist/DataListActionsMenu-es.js +8 -8
  19. package/dist/DataListHeaderTile-cjs.js +1 -1
  20. package/dist/DataListHeaderTile-es.js +2 -2
  21. package/dist/DataListLoadMore-cjs.js +1 -1
  22. package/dist/DataListLoadMore-es.js +2 -2
  23. package/dist/DataListOverflowFade-cjs.js +2 -2
  24. package/dist/DataListOverflowFade-es.js +3 -3
  25. package/dist/DataListSearch-cjs.js +1 -1
  26. package/dist/DataListSearch-es.js +2 -2
  27. package/dist/DataListSortingOptions-cjs.js +2 -2
  28. package/dist/DataListSortingOptions-es.js +4 -4
  29. package/dist/DataTable/test-utilities/index.cjs +1 -1
  30. package/dist/DataTable/test-utilities/index.mjs +1 -1
  31. package/dist/DataTable-cjs.js +3 -3
  32. package/dist/DataTable-es.js +4 -4
  33. package/dist/DatePicker-cjs.js +1 -1
  34. package/dist/DatePicker-es.js +2 -2
  35. package/dist/Disclosure-cjs.js +2 -2
  36. package/dist/Disclosure-es.js +3 -3
  37. package/dist/FormField-cjs.js +5 -1
  38. package/dist/FormField-es.js +5 -1
  39. package/dist/InputText/InputText.d.ts +2 -2
  40. package/dist/InputText/index.cjs +2 -2
  41. package/dist/InputText/index.mjs +3 -3
  42. package/dist/LightBox-cjs.js +67 -51
  43. package/dist/LightBox-es.js +73 -57
  44. package/dist/Menu-cjs.js +11 -6
  45. package/dist/Menu-es.js +16 -11
  46. package/dist/Modal/index.cjs +3 -3
  47. package/dist/Modal/index.mjs +7 -7
  48. package/dist/Page-cjs.js +4 -4
  49. package/dist/Page-es.js +5 -5
  50. package/dist/Popover-cjs.js +1 -1
  51. package/dist/Popover-es.js +3 -3
  52. package/dist/SideDrawer-cjs.js +6 -6
  53. package/dist/SideDrawer-es.js +10 -10
  54. package/dist/Tooltip-cjs.js +2 -2
  55. package/dist/Tooltip-es.js +5 -5
  56. package/dist/floating-ui.react-es.js +1 -1
  57. package/dist/index.cjs +6 -7
  58. package/dist/index.mjs +6 -7
  59. package/dist/styles.css +27 -6
  60. package/dist/throttle-cjs.js +1 -0
  61. package/dist/throttle-es.js +1 -1
  62. package/dist/useDebounce-cjs.js +4383 -70
  63. package/dist/useDebounce-es.js +4384 -72
  64. package/dist/useFocusTrap-cjs.js +8 -3
  65. package/dist/useFocusTrap-es.js +9 -4
  66. package/dist/useInView-cjs.js +10 -5
  67. package/dist/useInView-es.js +11 -6
  68. package/dist/useIsMounted-cjs.js +19 -4
  69. package/dist/useIsMounted-es.js +20 -5
  70. package/dist/useOnKeyDown-cjs.js +7 -2
  71. package/dist/useOnKeyDown-es.js +8 -3
  72. package/dist/useRefocusOnActivator-cjs.js +7 -2
  73. package/dist/useRefocusOnActivator-es.js +8 -3
  74. package/dist/useResizeObserver-cjs.js +92 -64
  75. package/dist/useResizeObserver-es.js +94 -65
  76. package/dist/useSafeLayoutEffect-cjs.js +8 -3
  77. package/dist/useSafeLayoutEffect-es.js +10 -5
  78. package/dist/useScrollToActive-cjs.js +9 -4
  79. package/dist/useScrollToActive-es.js +11 -6
  80. package/package.json +4 -4
@@ -4,7 +4,7 @@ var React = require('react');
4
4
  var floatingUi_react = require('../floating-ui.react-cjs.js');
5
5
  var classnames = require('classnames');
6
6
  var design = require('@jobber/design');
7
- var hooks = require('@jobber/hooks');
7
+ var useDebounce = require('../useDebounce-cjs.js');
8
8
  var maxHeight = require('../maxHeight-cjs.js');
9
9
  var Heading = require('../Heading-cjs.js');
10
10
  var Text = require('../Text-cjs.js');
@@ -14,7 +14,6 @@ var InputText_index = require('../InputText/index.cjs');
14
14
  var Glimmer = require('../Glimmer-cjs.js');
15
15
  var FormField = require('../FormField-cjs.js');
16
16
  var tslib_es6 = require('../tslib.es6-cjs.js');
17
- var useDebounce = require('../useDebounce-cjs.js');
18
17
  var useIsMounted = require('../useIsMounted-cjs.js');
19
18
  var useSafeLayoutEffect = require('../useSafeLayoutEffect-cjs.js');
20
19
  var useOnKeyDown = require('../useOnKeyDown-cjs.js');
@@ -228,12 +227,12 @@ function useAutocompleteListNav({ navigableCount, shouldResetActiveIndexOnClose,
228
227
  function useAutocomplete(props) {
229
228
  const { menu, emptyActions, getOptionLabel: getOptionLabelProp, isOptionEqualToValue, inputValue, onInputChange, value, onChange, multiple, openOnFocus = true, readOnly = false, debounce: debounceMs = 300, } = props;
230
229
  // TODO: Clean up the types in these refs by enhancing the type system in useCallbackRef
231
- const getOptionLabelPropRef = hooks.useCallbackRef((opt) => getOptionLabelProp === null || getOptionLabelProp === void 0 ? void 0 : getOptionLabelProp(opt));
230
+ const getOptionLabelPropRef = useDebounce.useCallbackRef_2((opt) => getOptionLabelProp === null || getOptionLabelProp === void 0 ? void 0 : getOptionLabelProp(opt));
232
231
  const getOptionLabel = React.useCallback((opt) => {
233
232
  const maybe = getOptionLabelPropRef(opt);
234
233
  return maybe !== null && maybe !== void 0 ? maybe : opt.label;
235
234
  }, [getOptionLabelPropRef]);
236
- const isOptionEqualToValueRef = hooks.useCallbackRef((a, b) => isOptionEqualToValue === null || isOptionEqualToValue === void 0 ? void 0 : isOptionEqualToValue(a, b));
235
+ const isOptionEqualToValueRef = useDebounce.useCallbackRef_2((a, b) => isOptionEqualToValue === null || isOptionEqualToValue === void 0 ? void 0 : isOptionEqualToValue(a, b));
237
236
  const equals = React.useCallback((a, b) => {
238
237
  const custom = isOptionEqualToValueRef(a, b);
239
238
  return custom != null ? custom : getOptionLabel(a) === getOptionLabel(b);
@@ -253,7 +252,7 @@ function useAutocomplete(props) {
253
252
  const persistentsHeaders = flatInitial.persistentsHeaders;
254
253
  const persistentsFooters = flatInitial.persistentsFooters;
255
254
  // Stable wrappers for function props
256
- const inputEqualsOptionRef = hooks.useCallbackRef((text, o) => {
255
+ const inputEqualsOptionRef = useDebounce.useCallbackRef_2((text, o) => {
257
256
  const fn = props.inputEqualsOption;
258
257
  return fn ? fn(text, o) : undefined;
259
258
  });
@@ -267,7 +266,7 @@ function useAutocomplete(props) {
267
266
  }, [optionItems, inputEquals, inputValue]);
268
267
  const lastInputWasUser = React.useRef(false);
269
268
  const [debouncedInputValue, setDebouncedInputValue] = React.useState(inputValue);
270
- const debouncedSetter = hooks.useDebounce(setDebouncedInputValue, debounceMs);
269
+ const debouncedSetter = useDebounce.useDebounce_2(setDebouncedInputValue, debounceMs);
271
270
  React.useEffect(() => {
272
271
  if (debounceMs === 0) {
273
272
  setDebouncedInputValue(inputValue);
@@ -275,7 +274,7 @@ function useAutocomplete(props) {
275
274
  }
276
275
  debouncedSetter(inputValue);
277
276
  }, [inputValue, debounceMs, debouncedSetter]);
278
- const filterOptionsRef = hooks.useCallbackRef((opts, term) => {
277
+ const filterOptionsRef = useDebounce.useCallbackRef_2((opts, term) => {
279
278
  const fn = (typeof props.filterOptions === "function"
280
279
  ? props.filterOptions
281
280
  : undefined) || undefined;
@@ -1023,7 +1022,7 @@ function useRepositionMenu(attachTo, visible, cssManagedVisibility) {
1023
1022
  : {})));
1024
1023
  // While DefaultMenu leverages conditional rendering, CustomMenu is hidden with CSS
1025
1024
  // We need to apply the correct update method to each case
1026
- useSafeLayoutEffect.useSafeLayoutEffect(() => {
1025
+ useSafeLayoutEffect.useSafeLayoutEffect_1(() => {
1027
1026
  if (cssManagedVisibility && visible && attachTo && refs.floating.current) {
1028
1027
  const cleanup = floatingUi_react.autoUpdate(attachTo, refs.floating.current, update);
1029
1028
  return cleanup;
@@ -1067,7 +1066,7 @@ function useAutocompleteMenu({ attachTo, }) {
1067
1066
  return { MenuWrapper: AutocompleteMenuWrapper, menuRef };
1068
1067
  }
1069
1068
  function BaseAutocompleteMenuWrapper(props) {
1070
- const mounted = useIsMounted.useIsMounted();
1069
+ const mounted = useIsMounted.useIsMounted_2();
1071
1070
  const menu = React.createElement(BaseAutocompleteMenuWrapperInternal, Object.assign({}, props));
1072
1071
  return mounted.current ? React.createElement(floatingUi_react.FloatingPortal, null, menu) : menu;
1073
1072
  }
@@ -1141,13 +1140,13 @@ exports.KeyboardAction = void 0;
1141
1140
  * Use this hook if you are using components in the menu that aren't MenuOption or BaseMenuOption.
1142
1141
  */
1143
1142
  function useCustomKeyboardNavigation({ onRequestHighlightChange, }) {
1144
- useOnKeyDown.useOnKeyDown((event) => {
1143
+ useOnKeyDown.useOnKeyDown_2((event) => {
1145
1144
  onRequestHighlightChange === null || onRequestHighlightChange === void 0 ? void 0 : onRequestHighlightChange(event, exports.KeyboardAction.Next);
1146
1145
  }, "ArrowDown");
1147
- useOnKeyDown.useOnKeyDown((event) => {
1146
+ useOnKeyDown.useOnKeyDown_2((event) => {
1148
1147
  onRequestHighlightChange === null || onRequestHighlightChange === void 0 ? void 0 : onRequestHighlightChange(event, exports.KeyboardAction.Previous);
1149
1148
  }, "ArrowUp");
1150
- useOnKeyDown.useOnKeyDown((event) => {
1149
+ useOnKeyDown.useOnKeyDown_2((event) => {
1151
1150
  onRequestHighlightChange === null || onRequestHighlightChange === void 0 ? void 0 : onRequestHighlightChange(event, exports.KeyboardAction.Select);
1152
1151
  }, "Enter");
1153
1152
  }
@@ -1259,7 +1258,7 @@ function AutocompleteInternal(_a, ref) {
1259
1258
  const [inputFocused, setInputFocused] = React.useState(false);
1260
1259
  const [inputText, setInputText] = React.useState((_b = value === null || value === void 0 ? void 0 : value.label) !== null && _b !== void 0 ? _b : "");
1261
1260
  const [autocompleteRef, setAutocompleteRef] = React.useState(null);
1262
- const delayedSearch = useDebounce.useDebounce(updateSearch, debounceRate);
1261
+ const delayedSearch = useDebounce.useDebounce_2(updateSearch, debounceRate);
1263
1262
  const inputRef = React.useRef(null);
1264
1263
  React.useEffect(() => {
1265
1264
  delayedSearch();
@@ -1,8 +1,8 @@
1
1
  import React__default, { useState, useRef, useEffect, useCallback, useMemo, forwardRef } from 'react';
2
- import { u as useFloating, c as autoUpdate, o as offset, f as flip, s as size, r as useListNavigation, a as useDismiss, b as useInteractions, t as useTransitionStyles, F as FloatingPortal, q as FloatingFocusManager } from '../floating-ui.react-es.js';
2
+ import { u as useFloating, b as autoUpdate, o as offset, f as flip, e as size, r as useListNavigation, c as useDismiss, d as useInteractions, t as useTransitionStyles, F as FloatingPortal, q as FloatingFocusManager } from '../floating-ui.react-es.js';
3
3
  import classnames from 'classnames';
4
4
  import { tokens } from '@jobber/design';
5
- import { useCallbackRef, useDebounce } from '@jobber/hooks';
5
+ import { a as useCallbackRef_2, u as useDebounce_2 } from '../useDebounce-es.js';
6
6
  import { c as calculateMaxHeight } from '../maxHeight-es.js';
7
7
  import { H as Heading } from '../Heading-es.js';
8
8
  import { T as Text } from '../Text-es.js';
@@ -12,10 +12,9 @@ import { InputText } from '../InputText/index.mjs';
12
12
  import { G as Glimmer } from '../Glimmer-es.js';
13
13
  import { m as mergeRefs } from '../FormField-es.js';
14
14
  import { _ as __rest, a as __awaiter } from '../tslib.es6-es.js';
15
- import { u as useDebounce$1 } from '../useDebounce-es.js';
16
- import { u as useIsMounted } from '../useIsMounted-es.js';
17
- import { u as useSafeLayoutEffect } from '../useSafeLayoutEffect-es.js';
18
- import { u as useOnKeyDown } from '../useOnKeyDown-es.js';
15
+ import { u as useIsMounted_2 } from '../useIsMounted-es.js';
16
+ import { u as useSafeLayoutEffect_1 } from '../useSafeLayoutEffect-es.js';
17
+ import { u as useOnKeyDown_2 } from '../useOnKeyDown-es.js';
19
18
  import 'react-dom';
20
19
  import 'react-hook-form';
21
20
  import 'framer-motion';
@@ -226,12 +225,12 @@ function useAutocompleteListNav({ navigableCount, shouldResetActiveIndexOnClose,
226
225
  function useAutocomplete(props) {
227
226
  const { menu, emptyActions, getOptionLabel: getOptionLabelProp, isOptionEqualToValue, inputValue, onInputChange, value, onChange, multiple, openOnFocus = true, readOnly = false, debounce: debounceMs = 300, } = props;
228
227
  // TODO: Clean up the types in these refs by enhancing the type system in useCallbackRef
229
- const getOptionLabelPropRef = useCallbackRef((opt) => getOptionLabelProp === null || getOptionLabelProp === void 0 ? void 0 : getOptionLabelProp(opt));
228
+ const getOptionLabelPropRef = useCallbackRef_2((opt) => getOptionLabelProp === null || getOptionLabelProp === void 0 ? void 0 : getOptionLabelProp(opt));
230
229
  const getOptionLabel = useCallback((opt) => {
231
230
  const maybe = getOptionLabelPropRef(opt);
232
231
  return maybe !== null && maybe !== void 0 ? maybe : opt.label;
233
232
  }, [getOptionLabelPropRef]);
234
- const isOptionEqualToValueRef = useCallbackRef((a, b) => isOptionEqualToValue === null || isOptionEqualToValue === void 0 ? void 0 : isOptionEqualToValue(a, b));
233
+ const isOptionEqualToValueRef = useCallbackRef_2((a, b) => isOptionEqualToValue === null || isOptionEqualToValue === void 0 ? void 0 : isOptionEqualToValue(a, b));
235
234
  const equals = useCallback((a, b) => {
236
235
  const custom = isOptionEqualToValueRef(a, b);
237
236
  return custom != null ? custom : getOptionLabel(a) === getOptionLabel(b);
@@ -251,7 +250,7 @@ function useAutocomplete(props) {
251
250
  const persistentsHeaders = flatInitial.persistentsHeaders;
252
251
  const persistentsFooters = flatInitial.persistentsFooters;
253
252
  // Stable wrappers for function props
254
- const inputEqualsOptionRef = useCallbackRef((text, o) => {
253
+ const inputEqualsOptionRef = useCallbackRef_2((text, o) => {
255
254
  const fn = props.inputEqualsOption;
256
255
  return fn ? fn(text, o) : undefined;
257
256
  });
@@ -265,7 +264,7 @@ function useAutocomplete(props) {
265
264
  }, [optionItems, inputEquals, inputValue]);
266
265
  const lastInputWasUser = useRef(false);
267
266
  const [debouncedInputValue, setDebouncedInputValue] = useState(inputValue);
268
- const debouncedSetter = useDebounce(setDebouncedInputValue, debounceMs);
267
+ const debouncedSetter = useDebounce_2(setDebouncedInputValue, debounceMs);
269
268
  useEffect(() => {
270
269
  if (debounceMs === 0) {
271
270
  setDebouncedInputValue(inputValue);
@@ -273,7 +272,7 @@ function useAutocomplete(props) {
273
272
  }
274
273
  debouncedSetter(inputValue);
275
274
  }, [inputValue, debounceMs, debouncedSetter]);
276
- const filterOptionsRef = useCallbackRef((opts, term) => {
275
+ const filterOptionsRef = useCallbackRef_2((opts, term) => {
277
276
  const fn = (typeof props.filterOptions === "function"
278
277
  ? props.filterOptions
279
278
  : undefined) || undefined;
@@ -1021,7 +1020,7 @@ function useRepositionMenu(attachTo, visible, cssManagedVisibility) {
1021
1020
  : {})));
1022
1021
  // While DefaultMenu leverages conditional rendering, CustomMenu is hidden with CSS
1023
1022
  // We need to apply the correct update method to each case
1024
- useSafeLayoutEffect(() => {
1023
+ useSafeLayoutEffect_1(() => {
1025
1024
  if (cssManagedVisibility && visible && attachTo && refs.floating.current) {
1026
1025
  const cleanup = autoUpdate(attachTo, refs.floating.current, update);
1027
1026
  return cleanup;
@@ -1065,7 +1064,7 @@ function useAutocompleteMenu({ attachTo, }) {
1065
1064
  return { MenuWrapper: AutocompleteMenuWrapper, menuRef };
1066
1065
  }
1067
1066
  function BaseAutocompleteMenuWrapper(props) {
1068
- const mounted = useIsMounted();
1067
+ const mounted = useIsMounted_2();
1069
1068
  const menu = React__default.createElement(BaseAutocompleteMenuWrapperInternal, Object.assign({}, props));
1070
1069
  return mounted.current ? React__default.createElement(FloatingPortal, null, menu) : menu;
1071
1070
  }
@@ -1139,13 +1138,13 @@ var KeyboardAction;
1139
1138
  * Use this hook if you are using components in the menu that aren't MenuOption or BaseMenuOption.
1140
1139
  */
1141
1140
  function useCustomKeyboardNavigation({ onRequestHighlightChange, }) {
1142
- useOnKeyDown((event) => {
1141
+ useOnKeyDown_2((event) => {
1143
1142
  onRequestHighlightChange === null || onRequestHighlightChange === void 0 ? void 0 : onRequestHighlightChange(event, KeyboardAction.Next);
1144
1143
  }, "ArrowDown");
1145
- useOnKeyDown((event) => {
1144
+ useOnKeyDown_2((event) => {
1146
1145
  onRequestHighlightChange === null || onRequestHighlightChange === void 0 ? void 0 : onRequestHighlightChange(event, KeyboardAction.Previous);
1147
1146
  }, "ArrowUp");
1148
- useOnKeyDown((event) => {
1147
+ useOnKeyDown_2((event) => {
1149
1148
  onRequestHighlightChange === null || onRequestHighlightChange === void 0 ? void 0 : onRequestHighlightChange(event, KeyboardAction.Select);
1150
1149
  }, "Enter");
1151
1150
  }
@@ -1257,7 +1256,7 @@ function AutocompleteInternal(_a, ref) {
1257
1256
  const [inputFocused, setInputFocused] = useState(false);
1258
1257
  const [inputText, setInputText] = useState((_b = value === null || value === void 0 ? void 0 : value.label) !== null && _b !== void 0 ? _b : "");
1259
1258
  const [autocompleteRef, setAutocompleteRef] = useState(null);
1260
- const delayedSearch = useDebounce$1(updateSearch, debounceRate);
1259
+ const delayedSearch = useDebounce_2(updateSearch, debounceRate);
1261
1260
  const inputRef = useRef(null);
1262
1261
  useEffect(() => {
1263
1262
  delayedSearch();
@@ -58,7 +58,7 @@ function InternalWrapper({ children, icon, dismissButton, UNSAFE_className, UNSA
58
58
  small: 320,
59
59
  medium: 480,
60
60
  };
61
- const [bannerRef, { width: bannerWidth = bannerWidths.small }] = useResizeObserver.useResizeObserver({
61
+ const [bannerRef, { width: bannerWidth = bannerWidths.small }] = useResizeObserver.useResizeObserver.useResizeObserver({
62
62
  widths: bannerWidths,
63
63
  });
64
64
  const bannerClassNames = classnames(styles.banner, [styles[type]], {
package/dist/Banner-es.js CHANGED
@@ -56,7 +56,7 @@ function InternalWrapper({ children, icon, dismissButton, UNSAFE_className, UNSA
56
56
  small: 320,
57
57
  medium: 480,
58
58
  };
59
- const [bannerRef, { width: bannerWidth = bannerWidths.small }] = useResizeObserver({
59
+ const [bannerRef, { width: bannerWidth = bannerWidths.small }] = useResizeObserver.useResizeObserver({
60
60
  widths: bannerWidths,
61
61
  });
62
62
  const bannerClassNames = classnames(styles.banner, [styles[type]], {
package/dist/Chip-cjs.js CHANGED
@@ -72,8 +72,8 @@ const ChipComponent = React.forwardRef(({ ariaLabel, disabled, heading, invalid,
72
72
  });
73
73
  const prefix = useChildComponent.useChildComponent(children, d => d.type === ChipPrefix);
74
74
  const suffix = useChildComponent.useChildComponent(children, d => d.type === ChipSuffix);
75
- const [labelRef, labelFullyVisible] = useInView.useInView();
76
- const [headingRef, headingFullyVisible] = useInView.useInView();
75
+ const [labelRef, labelFullyVisible] = useInView.useInView_2();
76
+ const [headingRef, headingFullyVisible] = useInView.useInView_2();
77
77
  const tooltipMessage = getTooltipMessage(labelFullyVisible, headingFullyVisible, label, heading);
78
78
  const chipContent = (React.createElement(React.Fragment, null,
79
79
  prefix,
package/dist/Chip-es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React__default, { useRef, forwardRef } from 'react';
2
2
  import classnames from 'classnames';
3
- import { u as useInView } from './useInView-es.js';
3
+ import { u as useInView_2 } from './useInView-es.js';
4
4
  import { A as Avatar } from './Avatar-es.js';
5
5
  import { I as Icon } from './Icon-es.js';
6
6
  import { u as useChildComponent } from './useChildComponent-es.js';
@@ -70,8 +70,8 @@ const ChipComponent = forwardRef(({ ariaLabel, disabled, heading, invalid, label
70
70
  });
71
71
  const prefix = useChildComponent(children, d => d.type === ChipPrefix);
72
72
  const suffix = useChildComponent(children, d => d.type === ChipSuffix);
73
- const [labelRef, labelFullyVisible] = useInView();
74
- const [headingRef, headingFullyVisible] = useInView();
73
+ const [labelRef, labelFullyVisible] = useInView_2();
74
+ const [headingRef, headingFullyVisible] = useInView_2();
75
75
  const tooltipMessage = getTooltipMessage(labelFullyVisible, headingFullyVisible, label, heading);
76
76
  const chipContent = (React__default.createElement(React__default.Fragment, null,
77
77
  prefix,
@@ -57,7 +57,7 @@ function useCombobox(selected, onSelect, options, onClose, multiSelect, onSearch
57
57
  const shouldScroll = React.useRef(false);
58
58
  const [open, setOpen] = React.useState(false);
59
59
  const [searchValue, setSearchValue] = React.useState("");
60
- const searchCallback = useDebounce.useDebounce((value) => onSearch === null || onSearch === void 0 ? void 0 : onSearch(value), debounceTime);
60
+ const searchCallback = useDebounce.useDebounce_2((value) => onSearch === null || onSearch === void 0 ? void 0 : onSearch(value), debounceTime);
61
61
  const { handleClose, handleSelection, handleOpen } = useMakeComboboxHandlers(setOpen, open, setSearchValue, selected, shouldScroll, onSelect, multiSelect, onClose, onSearch);
62
62
  const internalFilteredOptions = options.filter(option => option.label.toLowerCase().includes(searchValue.toLowerCase()));
63
63
  return {
@@ -5,7 +5,7 @@ import { C as ComboboxContextProvider } from './ComboboxProvider-es.js';
5
5
  import { C as ComboboxTrigger } from './ComboboxTrigger-es.js';
6
6
  import { C as ComboboxOption } from './ComboboxOption-es.js';
7
7
  import { n as noop } from './noop-es.js';
8
- import { u as useDebounce } from './useDebounce-es.js';
8
+ import { u as useDebounce_2 } from './useDebounce-es.js';
9
9
  import { C as ComboboxActivator } from './ComboboxActivator-es.js';
10
10
 
11
11
  var styles = {"overlay":"xxU2WqkpXZU-","wrapper":"W-9SMjhEMpI-","spinning":"mqMvu8yxz2w-"};
@@ -55,7 +55,7 @@ function useCombobox(selected, onSelect, options, onClose, multiSelect, onSearch
55
55
  const shouldScroll = useRef(false);
56
56
  const [open, setOpen] = useState(false);
57
57
  const [searchValue, setSearchValue] = useState("");
58
- const searchCallback = useDebounce((value) => onSearch === null || onSearch === void 0 ? void 0 : onSearch(value), debounceTime);
58
+ const searchCallback = useDebounce_2((value) => onSearch === null || onSearch === void 0 ? void 0 : onSearch(value), debounceTime);
59
59
  const { handleClose, handleSelection, handleOpen } = useMakeComboboxHandlers(setOpen, open, setSearchValue, selected, shouldScroll, onSelect, multiSelect, onClose, onSearch);
60
60
  const internalFilteredOptions = options.filter(option => option.label.toLowerCase().includes(searchValue.toLowerCase()));
61
61
  return {
@@ -50,8 +50,8 @@ function useComboboxAccessibility(selectionCallback, filteredOptions, optionsLis
50
50
  const focusedIndex = React.useRef(null);
51
51
  const parentNodeId = floatingUi_react.useFloatingParentNodeId();
52
52
  const nodeId = floatingUi_react.useFloatingNodeId();
53
- useRefocusOnActivator.useRefocusOnActivator(open);
54
- const floatingRef = useFocusTrap.useFocusTrap(open);
53
+ useRefocusOnActivator.useRefocusOnActivator_2(open);
54
+ const floatingRef = useFocusTrap.useFocusTrap_2(open);
55
55
  const { floatingStyles, update, context } = floatingUi_react.useFloating({
56
56
  nodeId,
57
57
  elements: {
@@ -1,12 +1,12 @@
1
1
  import React__default, { useContext, useRef, useEffect, useMemo } from 'react';
2
2
  import classnames from 'classnames';
3
- import { g as useFloatingParentNodeId, h as useFloatingNodeId, u as useFloating, o as offset, f as flip, c as autoUpdate, a as useDismiss, b as useInteractions, i as FloatingTree, j as FloatingNode, F as FloatingPortal } from './floating-ui.react-es.js';
3
+ import { g as useFloatingParentNodeId, h as useFloatingNodeId, u as useFloating, o as offset, f as flip, b as autoUpdate, c as useDismiss, d as useInteractions, i as FloatingTree, j as FloatingNode, F as FloatingPortal } from './floating-ui.react-es.js';
4
4
  import { C as ComboboxContentSearch } from './ComboboxContentSearch-es.js';
5
5
  import { C as ComboboxContentList } from './ComboboxContentList-es.js';
6
6
  import { C as ComboboxContentHeader } from './ComboboxContentHeader-es.js';
7
7
  import { a as ComboboxContext } from './ComboboxProvider-es.js';
8
- import { u as useRefocusOnActivator } from './useRefocusOnActivator-es.js';
9
- import { u as useFocusTrap } from './useFocusTrap-es.js';
8
+ import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-es.js';
9
+ import { u as useFocusTrap_2 } from './useFocusTrap-es.js';
10
10
  import { C as COMBOBOX_MENU_ID } from './constants-es.js';
11
11
 
12
12
  var styles = {"content":"QsRc49DHSgA-","hidden":"_7Fd5XGsPpUA-","actions":"yV8-0Hs43J0-","actionPadding":"g3Gdt8jXvFk-","spinning":"dJVYYOaf04E-"};
@@ -48,8 +48,8 @@ function useComboboxAccessibility(selectionCallback, filteredOptions, optionsLis
48
48
  const focusedIndex = useRef(null);
49
49
  const parentNodeId = useFloatingParentNodeId();
50
50
  const nodeId = useFloatingNodeId();
51
- useRefocusOnActivator(open);
52
- const floatingRef = useFocusTrap(open);
51
+ useRefocusOnActivator_2(open);
52
+ const floatingRef = useFocusTrap_2(open);
53
53
  const { floatingStyles, update, context } = useFloating({
54
54
  nodeId,
55
55
  elements: {
@@ -6,7 +6,7 @@ var useInView = require('./useInView-cjs.js');
6
6
  var styles = {"trigger":"jPB--ZCYNNI-","spinning":"aW61BrnGmcw-"};
7
7
 
8
8
  function ComboboxLoadMore({ onLoadMore }) {
9
- const [inViewRef, isInView] = useInView.useInView();
9
+ const [inViewRef, isInView] = useInView.useInView_2();
10
10
  React.useEffect(() => {
11
11
  isInView && onLoadMore();
12
12
  }, [isInView]);
@@ -1,10 +1,10 @@
1
1
  import React__default, { useEffect } from 'react';
2
- import { u as useInView } from './useInView-es.js';
2
+ import { u as useInView_2 } from './useInView-es.js';
3
3
 
4
4
  var styles = {"trigger":"jPB--ZCYNNI-","spinning":"aW61BrnGmcw-"};
5
5
 
6
6
  function ComboboxLoadMore({ onLoadMore }) {
7
- const [inViewRef, isInView] = useInView();
7
+ const [inViewRef, isInView] = useInView_2();
8
8
  useEffect(() => {
9
9
  isInView && onLoadMore();
10
10
  }, [isInView]);
@@ -53,7 +53,7 @@ const ConfirmationModal = React.forwardRef(function ConfirmationModalInternal({
53
53
  onCancel }),
54
54
  });
55
55
  }, [title, message, confirmLabel, cancelLabel, onConfirm, onCancel]);
56
- useOnKeyDown.useOnKeyDown(handleKeyboardShortcut, ["Escape", "Enter"]);
56
+ useOnKeyDown.useOnKeyDown_2(handleKeyboardShortcut, ["Escape", "Enter"]);
57
57
  return (React.createElement(Modal_index.Modal, { title: state.title, open: open || state.open, size: size, dismissible: false, primaryAction: {
58
58
  label: state.confirmLabel,
59
59
  onClick: handleAction("confirm"),
@@ -1,5 +1,5 @@
1
1
  import React__default, { forwardRef, useReducer, useImperativeHandle, useEffect } from 'react';
2
- import { u as useOnKeyDown } from './useOnKeyDown-es.js';
2
+ import { u as useOnKeyDown_2 } from './useOnKeyDown-es.js';
3
3
  import { Modal } from './Modal/index.mjs';
4
4
  import { C as Content } from './Content-es.js';
5
5
  import { M as Markdown } from './Markdown-es.js';
@@ -51,7 +51,7 @@ const ConfirmationModal = forwardRef(function ConfirmationModalInternal({ title,
51
51
  onCancel }),
52
52
  });
53
53
  }, [title, message, confirmLabel, cancelLabel, onConfirm, onCancel]);
54
- useOnKeyDown(handleKeyboardShortcut, ["Escape", "Enter"]);
54
+ useOnKeyDown_2(handleKeyboardShortcut, ["Escape", "Enter"]);
55
55
  return (React__default.createElement(Modal, { title: state.title, open: open || state.open, size: size, dismissible: false, primaryAction: {
56
56
  label: state.confirmLabel,
57
57
  onClick: handleAction("confirm"),
@@ -24,7 +24,7 @@ const getMappedBreakpointWidth = (maxWidth) => {
24
24
  return maxWidth;
25
25
  };
26
26
 
27
- function ContentBlock({ children, maxWidth = useResizeObserver.Breakpoints.smaller, andText, gutters, justify = "left", as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }) {
27
+ function ContentBlock({ children, maxWidth = useResizeObserver.useResizeObserver.Breakpoints.smaller, andText, gutters, justify = "left", as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }) {
28
28
  return (React.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--content-block-max-width": getMappedBreakpointWidth(maxWidth), "--content-block-gutters": getMappedAtlantisSpaceToken.getMappedAtlantisSpaceToken(gutters) }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.contentBlock, andText && styles.andText, gutters && styles.gutters, justify === "left" && styles.left, justify === "right" && styles.right, justify === "center" && styles.center, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
29
29
  }
30
30
 
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import classnames from 'classnames';
3
- import { B as Breakpoints } from './useResizeObserver-es.js';
3
+ import { u as useResizeObserver } from './useResizeObserver-es.js';
4
4
  import { g as getMappedAtlantisSpaceToken } from './getMappedAtlantisSpaceToken-es.js';
5
5
 
6
6
  var styles = {"contentBlock":"rJamQZ6fRes-","left":"bqjXV8MRO-4-","right":"sCMxIxKkFe0-","center":"_2pIQVKvVL1I-","andText":"_6dF2no3aTxw-","gutters":"_8k8YLsatGag-","spinning":"sjMwRWFdKeo-"};
@@ -22,7 +22,7 @@ const getMappedBreakpointWidth = (maxWidth) => {
22
22
  return maxWidth;
23
23
  };
24
24
 
25
- function ContentBlock({ children, maxWidth = Breakpoints.smaller, andText, gutters, justify = "left", as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }) {
25
+ function ContentBlock({ children, maxWidth = useResizeObserver.Breakpoints.smaller, andText, gutters, justify = "left", as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }) {
26
26
  return (React__default.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--content-block-max-width": getMappedBreakpointWidth(maxWidth), "--content-block-gutters": getMappedAtlantisSpaceToken(gutters) }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.contentBlock, andText && styles.andText, gutters && styles.gutters, justify === "left" && styles.left, justify === "right" && styles.right, justify === "center" && styles.center, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
27
27
  }
28
28
 
@@ -18,10 +18,10 @@ const variants = {
18
18
  };
19
19
  function DataListActionsMenu({ visible = false, position, onRequestClose, children, }) {
20
20
  const [ref, setRef] = React.useState();
21
- const mounted = useIsMounted.useIsMounted();
22
- useRefocusOnActivator.useRefocusOnActivator(visible);
23
- const focusTrapRef = useFocusTrap.useFocusTrap(visible);
24
- useOnKeyDown.useOnKeyDown(onRequestClose, "Escape");
21
+ const mounted = useIsMounted.useIsMounted_2();
22
+ useRefocusOnActivator.useRefocusOnActivator_2(visible);
23
+ const focusTrapRef = useFocusTrap.useFocusTrap_2(visible);
24
+ useOnKeyDown.useOnKeyDown_2(onRequestClose, "Escape");
25
25
  const actionsMenu = (React.createElement(framerMotion.AnimatePresence, null, visible && (React.createElement("div", { ref: focusTrapRef, onClick: handleClick },
26
26
  React.createElement(framerMotion.motion.div, { role: "menu", "data-elevation": "elevated", ref: setRef, variants: variants, initial: "hidden", animate: "visible", exit: "hidden", transition: { duration: DataList_const.TRANSITION_DELAY_IN_SECONDS }, className: styles.menu, style: getPositionCssVars(), onClick: onRequestClose }, children),
27
27
  React.createElement("button", { type: "button", className: styles.overlay, onClick: onRequestClose, "aria-label": "Close menu" })))));
@@ -1,11 +1,11 @@
1
1
  import React__default, { useState } from 'react';
2
2
  import { AnimatePresence, motion } from 'framer-motion';
3
- import { u as useFocusTrap } from './useFocusTrap-es.js';
4
- import { u as useRefocusOnActivator } from './useRefocusOnActivator-es.js';
5
- import { u as useOnKeyDown } from './useOnKeyDown-es.js';
3
+ import { u as useFocusTrap_2 } from './useFocusTrap-es.js';
4
+ import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-es.js';
5
+ import { u as useOnKeyDown_2 } from './useOnKeyDown-es.js';
6
6
  import { createPortal } from 'react-dom';
7
7
  import { tokens } from '@jobber/design';
8
- import { u as useIsMounted } from './useIsMounted-es.js';
8
+ import { u as useIsMounted_2 } from './useIsMounted-es.js';
9
9
  import { e as TRANSITION_DELAY_IN_SECONDS } from './DataList.const-es.js';
10
10
 
11
11
  var styles = {"menu":"e1ztw2-YxtM-","overlay":"uMoOb93Pf1Q-","spinning":"_0wS9DWCNuj4-"};
@@ -16,10 +16,10 @@ const variants = {
16
16
  };
17
17
  function DataListActionsMenu({ visible = false, position, onRequestClose, children, }) {
18
18
  const [ref, setRef] = useState();
19
- const mounted = useIsMounted();
20
- useRefocusOnActivator(visible);
21
- const focusTrapRef = useFocusTrap(visible);
22
- useOnKeyDown(onRequestClose, "Escape");
19
+ const mounted = useIsMounted_2();
20
+ useRefocusOnActivator_2(visible);
21
+ const focusTrapRef = useFocusTrap_2(visible);
22
+ useOnKeyDown_2(onRequestClose, "Escape");
23
23
  const actionsMenu = (React__default.createElement(AnimatePresence, null, visible && (React__default.createElement("div", { ref: focusTrapRef, onClick: handleClick },
24
24
  React__default.createElement(motion.div, { role: "menu", "data-elevation": "elevated", ref: setRef, variants: variants, initial: "hidden", animate: "visible", exit: "hidden", transition: { duration: TRANSITION_DELAY_IN_SECONDS }, className: styles.menu, style: getPositionCssVars(), onClick: onRequestClose }, children),
25
25
  React__default.createElement("button", { type: "button", className: styles.overlay, onClick: onRequestClose, "aria-label": "Close menu" })))));
@@ -31,7 +31,7 @@ function DataListSortingArrows({ headerKey, order, }) {
31
31
  function DataListHeaderTile({ headers, headerKey, }) {
32
32
  const { sorting } = DataListContext.useDataListContext();
33
33
  const [isDropDownOpen, setIsDropDownOpen] = React.useState(false);
34
- const optionsListRef = useFocusTrap.useFocusTrap(isDropDownOpen);
34
+ const optionsListRef = useFocusTrap.useFocusTrap_2(isDropDownOpen);
35
35
  const dataListHeaderTileRef = React.useRef(null);
36
36
  const sortableItem = sorting === null || sorting === void 0 ? void 0 : sorting.sortable.find(item => item.key === headerKey);
37
37
  const isSortable = Boolean(sortableItem);
@@ -1,6 +1,6 @@
1
1
  import React__default, { useState, useRef } from 'react';
2
2
  import classnames from 'classnames';
3
- import { u as useFocusTrap } from './useFocusTrap-es.js';
3
+ import { u as useFocusTrap_2 } from './useFocusTrap-es.js';
4
4
  import { D as DataListSortingOptions } from './DataListSortingOptions-es.js';
5
5
  import { T as Text } from './Text-es.js';
6
6
  import { u as useDataListContext } from './DataListContext-es.js';
@@ -29,7 +29,7 @@ function DataListSortingArrows({ headerKey, order, }) {
29
29
  function DataListHeaderTile({ headers, headerKey, }) {
30
30
  const { sorting } = useDataListContext();
31
31
  const [isDropDownOpen, setIsDropDownOpen] = useState(false);
32
- const optionsListRef = useFocusTrap(isDropDownOpen);
32
+ const optionsListRef = useFocusTrap_2(isDropDownOpen);
33
33
  const dataListHeaderTileRef = useRef(null);
34
34
  const sortableItem = sorting === null || sorting === void 0 ? void 0 : sorting.sortable.find(item => item.key === headerKey);
35
35
  const isSortable = Boolean(sortableItem);
@@ -12,7 +12,7 @@ var styles = {"trigger":"aJIHa8Q-WbY-","loadingMore":"lLYWNAYcURY-","backToTop":
12
12
 
13
13
  function DataListLoadMoreTrigger() {
14
14
  const { onLoadMore } = DataListContext.useDataListContext();
15
- const [inViewRef, isInView] = useInView.useInView();
15
+ const [inViewRef, isInView] = useInView.useInView_2();
16
16
  React.useEffect(() => {
17
17
  isInView && (onLoadMore === null || onLoadMore === void 0 ? void 0 : onLoadMore());
18
18
  }, [isInView]);
@@ -1,5 +1,5 @@
1
1
  import React__default, { useEffect } from 'react';
2
- import { u as useInView } from './useInView-es.js';
2
+ import { u as useInView_2 } from './useInView-es.js';
3
3
  import { u as useDataListContext } from './DataListContext-es.js';
4
4
  import { g as DATA_LOAD_MORE_TEST_ID, h as DATA_LIST_LOADING_MORE_SPINNER_TEST_ID } from './DataList.const-es.js';
5
5
  import { S as Spinner } from './Spinner-es.js';
@@ -10,7 +10,7 @@ var styles = {"trigger":"aJIHa8Q-WbY-","loadingMore":"lLYWNAYcURY-","backToTop":
10
10
 
11
11
  function DataListLoadMoreTrigger() {
12
12
  const { onLoadMore } = useDataListContext();
13
- const [inViewRef, isInView] = useInView();
13
+ const [inViewRef, isInView] = useInView_2();
14
14
  useEffect(() => {
15
15
  isInView && (onLoadMore === null || onLoadMore === void 0 ? void 0 : onLoadMore());
16
16
  }, [isInView]);
@@ -9,8 +9,8 @@ const CONTAINER_TEST_ID = "ATL-DataListFilters-Container";
9
9
  var styles = {"fadeContainer":"a-KvXvaVQks-","overflowItems":"faGQ-G8kLN8-","overflowGrid":"TBUIm7AHO68-","overflowTrigger":"FMXUosxE5aQ-","overflowLeft":"kxQNzyS1RsY-","overflowRight":"AXW-X8-zsI8-","spinning":"bPN5dkeOZKI-"};
10
10
 
11
11
  function DataListOverflowFade({ children }) {
12
- const [leftRef, isLeftVisible] = useInView.useInView();
13
- const [rightRef, isRightVisible] = useInView.useInView();
12
+ const [leftRef, isLeftVisible] = useInView.useInView_2();
13
+ const [rightRef, isRightVisible] = useInView.useInView_2();
14
14
  return (React.createElement("div", { "data-testid": CONTAINER_TEST_ID, className: classnames(styles.fadeContainer, {
15
15
  [styles.overflowLeft]: !isLeftVisible,
16
16
  [styles.overflowRight]: !isRightVisible,
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { u as useInView } from './useInView-es.js';
2
+ import { u as useInView_2 } from './useInView-es.js';
3
3
  import classnames from 'classnames';
4
4
 
5
5
  const CONTAINER_TEST_ID = "ATL-DataListFilters-Container";
@@ -7,8 +7,8 @@ const CONTAINER_TEST_ID = "ATL-DataListFilters-Container";
7
7
  var styles = {"fadeContainer":"a-KvXvaVQks-","overflowItems":"faGQ-G8kLN8-","overflowGrid":"TBUIm7AHO68-","overflowTrigger":"FMXUosxE5aQ-","overflowLeft":"kxQNzyS1RsY-","overflowRight":"AXW-X8-zsI8-","spinning":"bPN5dkeOZKI-"};
8
8
 
9
9
  function DataListOverflowFade({ children }) {
10
- const [leftRef, isLeftVisible] = useInView();
11
- const [rightRef, isRightVisible] = useInView();
10
+ const [leftRef, isLeftVisible] = useInView_2();
11
+ const [rightRef, isRightVisible] = useInView_2();
12
12
  return (React__default.createElement("div", { "data-testid": CONTAINER_TEST_ID, className: classnames(styles.fadeContainer, {
13
13
  [styles.overflowLeft]: !isLeftVisible,
14
14
  [styles.overflowRight]: !isRightVisible,
@@ -25,7 +25,7 @@ function InternalDataListSearch() {
25
25
  const inputRef = React.useRef(null);
26
26
  const [visible, setVisible] = React.useState(false);
27
27
  const { searchComponent, filterComponent, sorting, title } = DataListContext.useDataListContext();
28
- const debouncedSearch = useDebounce.useDebounce((value) => { var _a; return (_a = searchComponent === null || searchComponent === void 0 ? void 0 : searchComponent.props) === null || _a === void 0 ? void 0 : _a.onSearch(value); }, DataList_const.SEARCH_DEBOUNCE_DELAY);
28
+ const debouncedSearch = useDebounce.useDebounce_2((value) => { var _a; return (_a = searchComponent === null || searchComponent === void 0 ? void 0 : searchComponent.props) === null || _a === void 0 ? void 0 : _a.onSearch(value); }, DataList_const.SEARCH_DEBOUNCE_DELAY);
29
29
  if (!searchComponent)
30
30
  return null;
31
31
  const { placeholder, initialValue, value: controlledValue, } = searchComponent.props;
@@ -1,7 +1,7 @@
1
1
  import React__default, { useRef, useState } from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { tokens } from '@jobber/design';
4
- import { u as useDebounce } from './useDebounce-es.js';
4
+ import { u as useDebounce_2 } from './useDebounce-es.js';
5
5
  import { InputText } from './InputText/index.mjs';
6
6
  import { u as useDataListContext } from './DataListContext-es.js';
7
7
  import { S as SEARCH_DEBOUNCE_DELAY } from './DataList.const-es.js';
@@ -23,7 +23,7 @@ function InternalDataListSearch() {
23
23
  const inputRef = useRef(null);
24
24
  const [visible, setVisible] = useState(false);
25
25
  const { searchComponent, filterComponent, sorting, title } = useDataListContext();
26
- const debouncedSearch = useDebounce((value) => { var _a; return (_a = searchComponent === null || searchComponent === void 0 ? void 0 : searchComponent.props) === null || _a === void 0 ? void 0 : _a.onSearch(value); }, SEARCH_DEBOUNCE_DELAY);
26
+ const debouncedSearch = useDebounce_2((value) => { var _a; return (_a = searchComponent === null || searchComponent === void 0 ? void 0 : searchComponent.props) === null || _a === void 0 ? void 0 : _a.onSearch(value); }, SEARCH_DEBOUNCE_DELAY);
27
27
  if (!searchComponent)
28
28
  return null;
29
29
  const { placeholder, initialValue, value: controlledValue, } = searchComponent.props;
@@ -8,8 +8,8 @@ var Icon = require('./Icon-cjs.js');
8
8
  var styles = {"optionsList":"krkUjDI-P7E-","option":"d4hPt6o50kw-","spinning":"CNq0y1X8-Eo-"};
9
9
 
10
10
  function DataListSortingOptions({ options, selectedOption, onSelectChange, onClose, optionsListRef, dataListHeaderTileRef, }) {
11
- useRefocusOnActivator.useRefocusOnActivator(!optionsListRef.current);
12
- useOnKeyDown.useOnKeyDown(() => onClose(), "Escape");
11
+ useRefocusOnActivator.useRefocusOnActivator_2(!optionsListRef.current);
12
+ useOnKeyDown.useOnKeyDown_2(() => onClose(), "Escape");
13
13
  React.useEffect(() => {
14
14
  document.addEventListener("mousedown", handleClickOutside);
15
15
  return () => {
@@ -1,13 +1,13 @@
1
1
  import React__default, { useEffect } from 'react';
2
- import { u as useOnKeyDown } from './useOnKeyDown-es.js';
3
- import { u as useRefocusOnActivator } from './useRefocusOnActivator-es.js';
2
+ import { u as useOnKeyDown_2 } from './useOnKeyDown-es.js';
3
+ import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-es.js';
4
4
  import { I as Icon } from './Icon-es.js';
5
5
 
6
6
  var styles = {"optionsList":"krkUjDI-P7E-","option":"d4hPt6o50kw-","spinning":"CNq0y1X8-Eo-"};
7
7
 
8
8
  function DataListSortingOptions({ options, selectedOption, onSelectChange, onClose, optionsListRef, dataListHeaderTileRef, }) {
9
- useRefocusOnActivator(!optionsListRef.current);
10
- useOnKeyDown(() => onClose(), "Escape");
9
+ useRefocusOnActivator_2(!optionsListRef.current);
10
+ useOnKeyDown_2(() => onClose(), "Escape");
11
11
  useEffect(() => {
12
12
  document.addEventListener("mousedown", handleClickOutside);
13
13
  return () => {