@jobber/components 6.90.4 → 6.91.1

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 (212) hide show
  1. package/dist/AtlantisThemeContext/index.d.ts +1 -1
  2. package/dist/AtlantisThemeContext-es.js +1 -1
  3. package/dist/Autocomplete/index.cjs +12 -15
  4. package/dist/Autocomplete/index.mjs +13 -16
  5. package/dist/Banner/index.cjs +1 -6
  6. package/dist/Banner/index.mjs +1 -6
  7. package/dist/Banner-cjs.js +2 -2
  8. package/dist/Banner-es.js +2 -2
  9. package/dist/Card/index.cjs +1 -4
  10. package/dist/Card/index.mjs +1 -4
  11. package/dist/Chip/index.cjs +1 -3
  12. package/dist/Chip/index.mjs +1 -3
  13. package/dist/Chip-cjs.js +3 -3
  14. package/dist/Chip-es.js +3 -3
  15. package/dist/Chips/InternalChipDismissible/hooks/index.cjs +1 -0
  16. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -0
  17. package/dist/Chips/InternalChipDismissible/index.cjs +1 -3
  18. package/dist/Chips/InternalChipDismissible/index.mjs +1 -3
  19. package/dist/Chips/index.cjs +1 -3
  20. package/dist/Chips/index.mjs +1 -3
  21. package/dist/Combobox/components/ComboboxActivator/index.cjs +1 -3
  22. package/dist/Combobox/components/ComboboxActivator/index.mjs +1 -3
  23. package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.cjs +1 -1
  24. package/dist/Combobox/components/ComboboxContent/ComboboxContentList/index.mjs +1 -1
  25. package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.cjs +1 -1
  26. package/dist/Combobox/components/ComboboxContent/ComboboxLoadMore/index.mjs +1 -1
  27. package/dist/Combobox/components/ComboboxContent/index.cjs +1 -3
  28. package/dist/Combobox/components/ComboboxContent/index.mjs +1 -3
  29. package/dist/Combobox/components/ComboboxTrigger/index.cjs +1 -3
  30. package/dist/Combobox/components/ComboboxTrigger/index.mjs +1 -3
  31. package/dist/Combobox/index.cjs +1 -6
  32. package/dist/Combobox/index.mjs +1 -6
  33. package/dist/Combobox-cjs.js +2 -2
  34. package/dist/Combobox-es.js +2 -2
  35. package/dist/ComboboxContent-cjs.js +3 -4
  36. package/dist/ComboboxContent-es.js +4 -5
  37. package/dist/ComboboxLoadMore-cjs.js +2 -2
  38. package/dist/ComboboxLoadMore-es.js +2 -2
  39. package/dist/ConfirmationModal/index.cjs +1 -3
  40. package/dist/ConfirmationModal/index.mjs +1 -3
  41. package/dist/ConfirmationModal-cjs.js +2 -2
  42. package/dist/ConfirmationModal-es.js +2 -2
  43. package/dist/ContentBlock/index.cjs +1 -6
  44. package/dist/ContentBlock/index.mjs +1 -6
  45. package/dist/ContentBlock-cjs.js +2 -2
  46. package/dist/ContentBlock-es.js +2 -2
  47. package/dist/DataDump/index.cjs +1 -4
  48. package/dist/DataDump/index.mjs +1 -4
  49. package/dist/DataList/components/DataListActions/index.cjs +1 -5
  50. package/dist/DataList/components/DataListActions/index.mjs +1 -5
  51. package/dist/DataList/components/DataListActionsMenu/index.cjs +1 -5
  52. package/dist/DataList/components/DataListActionsMenu/index.mjs +1 -5
  53. package/dist/DataList/components/DataListBulkActions/index.cjs +1 -5
  54. package/dist/DataList/components/DataListBulkActions/index.mjs +1 -5
  55. package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +1 -6
  56. package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +1 -6
  57. package/dist/DataList/components/DataListFilters/index.cjs +1 -7
  58. package/dist/DataList/components/DataListFilters/index.mjs +1 -7
  59. package/dist/DataList/components/DataListHeader/index.cjs +1 -5
  60. package/dist/DataList/components/DataListHeader/index.mjs +1 -5
  61. package/dist/DataList/components/DataListHeaderTile/components/index.cjs +1 -2
  62. package/dist/DataList/components/DataListHeaderTile/components/index.mjs +1 -2
  63. package/dist/DataList/components/DataListHeaderTile/index.cjs +1 -3
  64. package/dist/DataList/components/DataListHeaderTile/index.mjs +1 -3
  65. package/dist/DataList/components/DataListItem/index.cjs +1 -5
  66. package/dist/DataList/components/DataListItem/index.mjs +1 -5
  67. package/dist/DataList/components/DataListItemActions/index.cjs +1 -5
  68. package/dist/DataList/components/DataListItemActions/index.mjs +1 -5
  69. package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +1 -5
  70. package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +1 -5
  71. package/dist/DataList/components/DataListItems/index.cjs +1 -5
  72. package/dist/DataList/components/DataListItems/index.mjs +1 -5
  73. package/dist/DataList/components/DataListLayout/index.cjs +1 -5
  74. package/dist/DataList/components/DataListLayout/index.mjs +1 -5
  75. package/dist/DataList/components/DataListLayoutActions/index.cjs +1 -5
  76. package/dist/DataList/components/DataListLayoutActions/index.mjs +1 -5
  77. package/dist/DataList/components/DataListLoadMore/index.cjs +1 -1
  78. package/dist/DataList/components/DataListLoadMore/index.mjs +1 -1
  79. package/dist/DataList/components/DataListOverflowFade/index.cjs +1 -1
  80. package/dist/DataList/components/DataListOverflowFade/index.mjs +1 -1
  81. package/dist/DataList/components/DataListSearch/index.cjs +1 -2
  82. package/dist/DataList/components/DataListSearch/index.mjs +1 -2
  83. package/dist/DataList/components/DataListStatusBar/index.cjs +1 -3
  84. package/dist/DataList/components/DataListStatusBar/index.mjs +1 -3
  85. package/dist/DataList/index.cjs +1 -7
  86. package/dist/DataList/index.mjs +1 -7
  87. package/dist/DataListActionsMenu-cjs.js +5 -8
  88. package/dist/DataListActionsMenu-es.js +5 -8
  89. package/dist/DataListHeaderTile-cjs.js +2 -2
  90. package/dist/DataListHeaderTile-es.js +2 -2
  91. package/dist/DataListLoadMore-cjs.js +2 -2
  92. package/dist/DataListLoadMore-es.js +2 -2
  93. package/dist/DataListOverflowFade-cjs.js +3 -3
  94. package/dist/DataListOverflowFade-es.js +3 -3
  95. package/dist/DataListSearch-cjs.js +2 -2
  96. package/dist/DataListSearch-es.js +2 -2
  97. package/dist/DataListSortingOptions-cjs.js +3 -4
  98. package/dist/DataListSortingOptions-es.js +3 -4
  99. package/dist/DataTable/index.cjs +4 -6
  100. package/dist/DataTable/index.mjs +4 -6
  101. package/dist/DataTable/test-utilities/index.cjs +1 -7
  102. package/dist/DataTable/test-utilities/index.mjs +1 -7
  103. package/dist/DataTable-cjs.js +4 -4
  104. package/dist/DataTable-es.js +4 -4
  105. package/dist/DatePicker/index.cjs +1 -1
  106. package/dist/DatePicker/index.mjs +1 -1
  107. package/dist/DatePicker-cjs.js +2 -2
  108. package/dist/DatePicker-es.js +3 -3
  109. package/dist/Disclosure/index.cjs +1 -6
  110. package/dist/Disclosure/index.mjs +1 -6
  111. package/dist/Disclosure-cjs.js +3 -3
  112. package/dist/Disclosure-es.js +3 -3
  113. package/dist/FormField/FormFieldWrapper.d.ts +1 -1
  114. package/dist/FormField/index.cjs +1 -0
  115. package/dist/FormField/index.mjs +1 -0
  116. package/dist/FormField-cjs.js +2 -21
  117. package/dist/FormField-es.js +2 -21
  118. package/dist/FormatFile/index.cjs +1 -3
  119. package/dist/FormatFile/index.mjs +1 -3
  120. package/dist/Gallery/index.cjs +1 -6
  121. package/dist/Gallery/index.mjs +1 -6
  122. package/dist/InputDate/index.cjs +1 -2
  123. package/dist/InputDate/index.mjs +1 -2
  124. package/dist/InputEmail/index.cjs +1 -0
  125. package/dist/InputEmail/index.mjs +1 -0
  126. package/dist/InputNumber/index.cjs +1 -0
  127. package/dist/InputNumber/index.mjs +1 -0
  128. package/dist/InputPassword/index.cjs +1 -0
  129. package/dist/InputPassword/index.mjs +1 -0
  130. package/dist/InputPassword-cjs.js +1 -0
  131. package/dist/InputPassword-es.js +1 -0
  132. package/dist/InputPhoneNumber/InputPhoneNumber.types.d.ts +1 -1
  133. package/dist/InputPhoneNumber/index.cjs +1 -0
  134. package/dist/InputPhoneNumber/index.mjs +1 -0
  135. package/dist/InputText/InputText.d.ts +2 -2
  136. package/dist/InputText/index.cjs +3 -3
  137. package/dist/InputText/index.mjs +3 -3
  138. package/dist/InputTime/index.cjs +1 -0
  139. package/dist/InputTime/index.mjs +2 -1
  140. package/dist/InternalChipDismissible-cjs.js +1 -0
  141. package/dist/InternalChipDismissible-es.js +1 -0
  142. package/dist/LightBox/index.cjs +1 -6
  143. package/dist/LightBox/index.mjs +1 -6
  144. package/dist/LightBox-cjs.js +12 -74
  145. package/dist/LightBox-es.js +12 -74
  146. package/dist/Menu/index.cjs +1 -4
  147. package/dist/Menu/index.mjs +1 -4
  148. package/dist/Menu-cjs.js +5 -37
  149. package/dist/Menu-es.js +6 -38
  150. package/dist/Modal/index.cjs +4 -6
  151. package/dist/Modal/index.mjs +5 -7
  152. package/dist/Page/index.cjs +2 -10
  153. package/dist/Page/index.mjs +2 -10
  154. package/dist/Page-cjs.js +5 -5
  155. package/dist/Page-es.js +5 -5
  156. package/dist/Popover/index.cjs +1 -1
  157. package/dist/Popover/index.mjs +1 -1
  158. package/dist/Popover-cjs.js +2 -2
  159. package/dist/Popover-es.js +3 -3
  160. package/dist/RecurringSelect/index.cjs +1 -0
  161. package/dist/RecurringSelect/index.mjs +1 -0
  162. package/dist/Select/index.cjs +1 -0
  163. package/dist/Select/index.mjs +1 -0
  164. package/dist/SideDrawer/index.cjs +1 -5
  165. package/dist/SideDrawer/index.mjs +1 -5
  166. package/dist/SideDrawer-cjs.js +7 -10
  167. package/dist/SideDrawer-es.js +7 -10
  168. package/dist/Tabs/index.cjs +0 -1
  169. package/dist/Tabs/index.mjs +0 -1
  170. package/dist/Tabs-cjs.js +76 -2
  171. package/dist/Tabs-es.js +76 -2
  172. package/dist/Tooltip/index.cjs +1 -2
  173. package/dist/Tooltip/index.mjs +1 -2
  174. package/dist/Tooltip-cjs.js +3 -4
  175. package/dist/Tooltip-es.js +4 -5
  176. package/dist/_baseEach-es.js +1 -1
  177. package/dist/_commonjsHelpers-cjs.js +0 -26
  178. package/dist/_commonjsHelpers-es.js +1 -26
  179. package/dist/_isIterateeCall-es.js +1 -1
  180. package/dist/debounce-es.js +2 -2
  181. package/dist/floating-ui.react-es.js +1 -1
  182. package/dist/helpers-cjs.js +21 -2
  183. package/dist/helpers-es.js +1 -1
  184. package/dist/index.cjs +1 -9
  185. package/dist/index.mjs +1 -9
  186. package/dist/isObjectLike-es.js +1 -1
  187. package/dist/isSymbol-es.js +1 -1
  188. package/dist/isTypedArray-es.js +1 -1
  189. package/dist/keysIn-es.js +1 -1
  190. package/dist/omit-es.js +1 -1
  191. package/dist/useScrollToActive-cjs.js +3 -45
  192. package/dist/useScrollToActive-es.js +5 -47
  193. package/package.json +3 -3
  194. package/rollup.config.mjs +0 -15
  195. package/dist/throttle-cjs.js +0 -80
  196. package/dist/throttle-es.js +0 -77
  197. package/dist/useDebounce-cjs.js +0 -4416
  198. package/dist/useDebounce-es.js +0 -4413
  199. package/dist/useFocusTrap-cjs.js +0 -75
  200. package/dist/useFocusTrap-es.js +0 -73
  201. package/dist/useInView-cjs.js +0 -26
  202. package/dist/useInView-es.js +0 -24
  203. package/dist/useIsMounted-cjs.js +0 -51
  204. package/dist/useIsMounted-es.js +0 -49
  205. package/dist/useOnKeyDown-cjs.js +0 -41
  206. package/dist/useOnKeyDown-es.js +0 -39
  207. package/dist/useRefocusOnActivator-cjs.js +0 -33
  208. package/dist/useRefocusOnActivator-es.js +0 -31
  209. package/dist/useResizeObserver-cjs.js +0 -1131
  210. package/dist/useResizeObserver-es.js +0 -1128
  211. package/dist/useSafeLayoutEffect-cjs.js +0 -14
  212. package/dist/useSafeLayoutEffect-es.js +0 -12
@@ -2,14 +2,12 @@ import React__default, { useRef, createContext, useContext } from 'react';
2
2
  import ReactDOM__default from 'react-dom';
3
3
  import classnames from 'classnames';
4
4
  import { AnimatePresence, motion } from 'framer-motion';
5
- import { u as useRefocusOnActivator_2 } from '../useRefocusOnActivator-es.js';
6
- import { u as useOnKeyDown_2 } from '../useOnKeyDown-es.js';
7
- import { u as useFocusTrap_2 } from '../useFocusTrap-es.js';
5
+ import { useRefocusOnActivator, useFocusTrap, useOnKeyDown } from '@jobber/hooks';
8
6
  import { H as Heading } from '../Heading-es.js';
9
7
  import { B as Button } from '../Button-es.js';
10
8
  import { B as ButtonDismiss } from '../ButtonDismiss-es.js';
11
9
  import { n as noop } from '../noop-es.js';
12
- import { h as useFloatingNodeId, u as useFloating, c as useDismiss, m as useRole, d as useInteractions, g as useFloatingParentNodeId, i as FloatingTree, j as FloatingNode, F as FloatingPortal, n as FloatingFocusManager, p as FloatingOverlay } from '../floating-ui.react-es.js';
10
+ import { h as useFloatingNodeId, u as useFloating, a as useDismiss, m as useRole, b as useInteractions, g as useFloatingParentNodeId, i as FloatingTree, j as FloatingNode, F as FloatingPortal, n as FloatingFocusManager, p as FloatingOverlay } from '../floating-ui.react-es.js';
13
11
  import { b as identity } from '../identity-es.js';
14
12
  import { A as AtlantisPortalContent } from '../AtlantisPortalContent-es.js';
15
13
  import '../Typography-es.js';
@@ -33,9 +31,9 @@ var sizes = {"small":"BSZvIAUzFEU-","large":"-ydIALYVvGg-","spinning":"_10FfgKIT
33
31
 
34
32
  function ModalLegacy({ open = false, title, size, dismissible = true, children, primaryAction, secondaryAction, tertiaryAction, onRequestClose, }) {
35
33
  const modalClassName = classnames(styles$1.modal, size && sizes[size]);
36
- useRefocusOnActivator_2(open);
37
- const modalRef = useFocusTrap_2(open);
38
- useOnKeyDown_2(handleRequestClose, "Escape");
34
+ useRefocusOnActivator(open);
35
+ const modalRef = useFocusTrap(open);
36
+ useOnKeyDown(handleRequestClose, "Escape");
39
37
  const template = (React__default.createElement(AnimatePresence, null, open && (React__default.createElement("div", { ref: modalRef, role: "dialog", className: styles$1.container, tabIndex: 0 },
40
38
  React__default.createElement(motion.div, { key: styles$1.overlay, className: styles$1.overlay, onClick: onRequestClose, initial: { opacity: 0 }, animate: { opacity: 0.8 }, exit: { opacity: 0 }, transition: { duration: 0.2 } }),
41
39
  React__default.createElement(motion.div, { key: styles$1.modal, className: modalClassName, initial: { scale: 0.9, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.9, opacity: 0 }, transition: {
@@ -3,12 +3,7 @@
3
3
  var Page = require('../Page-cjs.js');
4
4
  require('react');
5
5
  require('classnames');
6
- require('../useResizeObserver-cjs.js');
7
- require('../_commonjsHelpers-cjs.js');
8
- require('../throttle-cjs.js');
9
- require('../debounce-cjs.js');
10
- require('../isObjectLike-cjs.js');
11
- require('../isSymbol-cjs.js');
6
+ require('@jobber/hooks');
12
7
  require('../Heading-cjs.js');
13
8
  require('../Typography-cjs.js');
14
9
  require('../Text-cjs.js');
@@ -16,6 +11,7 @@ require('../Content-cjs.js');
16
11
  require('../Markdown-cjs.js');
17
12
  require('../Emphasis-cjs.js');
18
13
  require('../index-cjs.js');
14
+ require('../_commonjsHelpers-cjs.js');
19
15
  require('../Button-cjs.js');
20
16
  require('react-router-dom');
21
17
  require('../tslib.es6-cjs.js');
@@ -23,12 +19,8 @@ require('../Icon-cjs.js');
23
19
  require('@jobber/design');
24
20
  require('../Menu-cjs.js');
25
21
  require('framer-motion');
26
- require('../useRefocusOnActivator-cjs.js');
27
22
  require('../floating-ui.react-cjs.js');
28
23
  require('react-dom');
29
- require('../useFocusTrap-cjs.js');
30
- require('../useIsMounted-cjs.js');
31
- require('../useSafeLayoutEffect-cjs.js');
32
24
  require('../useFormFieldFocus-cjs.js');
33
25
  require('../maxHeight-cjs.js');
34
26
 
@@ -1,12 +1,7 @@
1
1
  export { P as Page } from '../Page-es.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import '../useResizeObserver-es.js';
5
- import '../_commonjsHelpers-es.js';
6
- import '../throttle-es.js';
7
- import '../debounce-es.js';
8
- import '../isObjectLike-es.js';
9
- import '../isSymbol-es.js';
4
+ import '@jobber/hooks';
10
5
  import '../Heading-es.js';
11
6
  import '../Typography-es.js';
12
7
  import '../Text-es.js';
@@ -14,6 +9,7 @@ import '../Content-es.js';
14
9
  import '../Markdown-es.js';
15
10
  import '../Emphasis-es.js';
16
11
  import '../index-es.js';
12
+ import '../_commonjsHelpers-es.js';
17
13
  import '../Button-es.js';
18
14
  import 'react-router-dom';
19
15
  import '../tslib.es6-es.js';
@@ -21,11 +17,7 @@ import '../Icon-es.js';
21
17
  import '@jobber/design';
22
18
  import '../Menu-es.js';
23
19
  import 'framer-motion';
24
- import '../useRefocusOnActivator-es.js';
25
20
  import '../floating-ui.react-es.js';
26
21
  import 'react-dom';
27
- import '../useFocusTrap-es.js';
28
- import '../useIsMounted-es.js';
29
- import '../useSafeLayoutEffect-es.js';
30
22
  import '../useFormFieldFocus-es.js';
31
23
  import '../maxHeight-es.js';
package/dist/Page-cjs.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
  var classnames = require('classnames');
5
- var useResizeObserver = require('./useResizeObserver-cjs.js');
5
+ var jobberHooks = require('@jobber/hooks');
6
6
  var Heading = require('./Heading-cjs.js');
7
7
  var Text = require('./Text-cjs.js');
8
8
  var Content = require('./Content-cjs.js');
@@ -15,11 +15,11 @@ var styles = {"page":"BLYnKItuM3c-","fill":"n5WRRhMkoLs-","standard":"WziKEWW9nA
15
15
 
16
16
  function Page({ title, titleMetaData, intro, externalIntroLinks, subtitle, children, width = "standard", primaryAction, secondaryAction, moreActionsMenu = [], }) {
17
17
  const pageStyles = classnames(styles.page, styles[width]);
18
- const [titleBarRef, { width: titleBarWidth = useResizeObserver.useResizeObserver.Breakpoints.large }] = useResizeObserver.useResizeObserver.useResizeObserver();
18
+ const [titleBarRef, { width: titleBarWidth = jobberHooks.Breakpoints.large }] = jobberHooks.useResizeObserver();
19
19
  const titleBarClasses = classnames(styles.titleBar, {
20
- [styles.small]: titleBarWidth > useResizeObserver.useResizeObserver.Breakpoints.smaller,
21
- [styles.medium]: titleBarWidth > useResizeObserver.useResizeObserver.Breakpoints.small,
22
- [styles.large]: titleBarWidth > useResizeObserver.useResizeObserver.Breakpoints.base,
20
+ [styles.small]: titleBarWidth > jobberHooks.Breakpoints.smaller,
21
+ [styles.medium]: titleBarWidth > jobberHooks.Breakpoints.small,
22
+ [styles.large]: titleBarWidth > jobberHooks.Breakpoints.base,
23
23
  });
24
24
  const showMenu = moreActionsMenu.length > 0;
25
25
  const showActionGroup = showMenu || primaryAction || secondaryAction;
package/dist/Page-es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import classnames from 'classnames';
3
- import { u as useResizeObserver } from './useResizeObserver-es.js';
3
+ import { useResizeObserver, Breakpoints } from '@jobber/hooks';
4
4
  import { H as Heading } from './Heading-es.js';
5
5
  import { T as Text } from './Text-es.js';
6
6
  import { C as Content } from './Content-es.js';
@@ -13,11 +13,11 @@ var styles = {"page":"BLYnKItuM3c-","fill":"n5WRRhMkoLs-","standard":"WziKEWW9nA
13
13
 
14
14
  function Page({ title, titleMetaData, intro, externalIntroLinks, subtitle, children, width = "standard", primaryAction, secondaryAction, moreActionsMenu = [], }) {
15
15
  const pageStyles = classnames(styles.page, styles[width]);
16
- const [titleBarRef, { width: titleBarWidth = useResizeObserver.Breakpoints.large }] = useResizeObserver.useResizeObserver();
16
+ const [titleBarRef, { width: titleBarWidth = Breakpoints.large }] = useResizeObserver();
17
17
  const titleBarClasses = classnames(styles.titleBar, {
18
- [styles.small]: titleBarWidth > useResizeObserver.Breakpoints.smaller,
19
- [styles.medium]: titleBarWidth > useResizeObserver.Breakpoints.small,
20
- [styles.large]: titleBarWidth > useResizeObserver.Breakpoints.base,
18
+ [styles.small]: titleBarWidth > Breakpoints.smaller,
19
+ [styles.medium]: titleBarWidth > Breakpoints.small,
20
+ [styles.large]: titleBarWidth > Breakpoints.base,
21
21
  });
22
22
  const showMenu = moreActionsMenu.length > 0;
23
23
  const showActionGroup = showMenu || primaryAction || secondaryAction;
@@ -6,7 +6,7 @@ require('react');
6
6
  require('classnames');
7
7
  require('../floating-ui.react-cjs.js');
8
8
  require('react-dom');
9
- require('../useRefocusOnActivator-cjs.js');
9
+ require('@jobber/hooks');
10
10
  require('../AtlantisPortalContent-cjs.js');
11
11
  require('../AtlantisThemeContext-cjs.js');
12
12
  require('@jobber/design');
@@ -4,7 +4,7 @@ import 'react';
4
4
  import 'classnames';
5
5
  import '../floating-ui.react-es.js';
6
6
  import 'react-dom';
7
- import '../useRefocusOnActivator-es.js';
7
+ import '@jobber/hooks';
8
8
  import '../AtlantisPortalContent-es.js';
9
9
  import '../AtlantisThemeContext-es.js';
10
10
  import '@jobber/design';
@@ -4,7 +4,7 @@ var tslib_es6 = require('./tslib.es6-cjs.js');
4
4
  var React = require('react');
5
5
  var classnames = require('classnames');
6
6
  var floatingUi_react = require('./floating-ui.react-cjs.js');
7
- var useRefocusOnActivator = require('./useRefocusOnActivator-cjs.js');
7
+ var jobberHooks = require('@jobber/hooks');
8
8
  var AtlantisPortalContent = require('./AtlantisPortalContent-cjs.js');
9
9
  var ButtonDismiss = require('./ButtonDismiss-cjs.js');
10
10
 
@@ -53,7 +53,7 @@ const usePopover = ({ preferredPlacement, attachTo, open, }) => {
53
53
  // (which we are), not hidden with css. https://floating-ui.com/docs/autoUpdate
54
54
  whileElementsMounted: floatingUi_react.autoUpdate,
55
55
  });
56
- useRefocusOnActivator.useRefocusOnActivator_2(open);
56
+ jobberHooks.useRefocusOnActivator(open);
57
57
  return {
58
58
  setFloatingElement: refs.setFloating,
59
59
  setArrowElement,
@@ -1,8 +1,8 @@
1
1
  import { _ as __rest } from './tslib.es6-es.js';
2
2
  import React__default, { useState, useMemo, createContext, useContext } from 'react';
3
3
  import classnames from 'classnames';
4
- import { a as arrow, u as useFloating, b as autoUpdate, o as offset, s as shift, l as limitShift, k as autoPlacement, f as flip, F as FloatingPortal } from './floating-ui.react-es.js';
5
- import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-es.js';
4
+ import { e as arrow, u as useFloating, c as autoUpdate, o as offset, d as shift, l as limitShift, k as autoPlacement, f as flip, F as FloatingPortal } from './floating-ui.react-es.js';
5
+ import { useRefocusOnActivator } from '@jobber/hooks';
6
6
  import { A as AtlantisPortalContent } from './AtlantisPortalContent-es.js';
7
7
  import { B as ButtonDismiss } from './ButtonDismiss-es.js';
8
8
 
@@ -51,7 +51,7 @@ const usePopover = ({ preferredPlacement, attachTo, open, }) => {
51
51
  // (which we are), not hidden with css. https://floating-ui.com/docs/autoUpdate
52
52
  whileElementsMounted: autoUpdate,
53
53
  });
54
- useRefocusOnActivator_2(open);
54
+ useRefocusOnActivator(open);
55
55
  return {
56
56
  setFloatingElement: refs.setFloating,
57
57
  setArrowElement,
@@ -20,6 +20,7 @@ require('../_baseAssignValue-cjs.js');
20
20
  require('../_baseFlatten-cjs.js');
21
21
  require('../_setToString-cjs.js');
22
22
  require('../FormField-cjs.js');
23
+ require('@jobber/hooks');
23
24
  require('framer-motion');
24
25
  require('@jobber/design');
25
26
  require('../Button-cjs.js');
@@ -18,6 +18,7 @@ import '../_baseAssignValue-es.js';
18
18
  import '../_baseFlatten-es.js';
19
19
  import '../_setToString-es.js';
20
20
  import '../FormField-es.js';
21
+ import '@jobber/hooks';
21
22
  import 'framer-motion';
22
23
  import '@jobber/design';
23
24
  import '../Button-es.js';
@@ -6,6 +6,7 @@ var FormField = require('../FormField-cjs.js');
6
6
  var classnames = require('classnames');
7
7
  require('../tslib.es6-cjs.js');
8
8
  require('react-hook-form');
9
+ require('@jobber/hooks');
9
10
  require('framer-motion');
10
11
  require('@jobber/design');
11
12
  require('../Button-cjs.js');
@@ -4,6 +4,7 @@ import { k as FormField, j as useFormFieldWrapperStyles, b as useAtlantisFormFie
4
4
  import classnames from 'classnames';
5
5
  import '../tslib.es6-es.js';
6
6
  import 'react-hook-form';
7
+ import '@jobber/hooks';
7
8
  import 'framer-motion';
8
9
  import '@jobber/design';
9
10
  import '../Button-es.js';
@@ -4,12 +4,8 @@ var SideDrawer = require('../SideDrawer-cjs.js');
4
4
  require('react');
5
5
  require('react-dom');
6
6
  require('framer-motion');
7
- require('../useRefocusOnActivator-cjs.js');
8
- require('../useFocusTrap-cjs.js');
7
+ require('@jobber/hooks');
9
8
  require('classnames');
10
- require('../useInView-cjs.js');
11
- require('../useIsMounted-cjs.js');
12
- require('../useSafeLayoutEffect-cjs.js');
13
9
  require('@jobber/design');
14
10
  require('../Heading-cjs.js');
15
11
  require('../Typography-cjs.js');
@@ -2,12 +2,8 @@ export { S as SideDrawer } from '../SideDrawer-es.js';
2
2
  import 'react';
3
3
  import 'react-dom';
4
4
  import 'framer-motion';
5
- import '../useRefocusOnActivator-es.js';
6
- import '../useFocusTrap-es.js';
5
+ import '@jobber/hooks';
7
6
  import 'classnames';
8
- import '../useInView-es.js';
9
- import '../useIsMounted-es.js';
10
- import '../useSafeLayoutEffect-es.js';
11
7
  import '@jobber/design';
12
8
  import '../Heading-es.js';
13
9
  import '../Typography-es.js';
@@ -3,11 +3,8 @@
3
3
  var React = require('react');
4
4
  var ReactDOM = require('react-dom');
5
5
  var framerMotion = require('framer-motion');
6
- var useRefocusOnActivator = require('./useRefocusOnActivator-cjs.js');
7
- var useFocusTrap = require('./useFocusTrap-cjs.js');
6
+ var jobberHooks = require('@jobber/hooks');
8
7
  var classnames = require('classnames');
9
- var useInView = require('./useInView-cjs.js');
10
- var useIsMounted = require('./useIsMounted-cjs.js');
11
8
  var design = require('@jobber/design');
12
9
  var Heading = require('./Heading-cjs.js');
13
10
  var Button = require('./Button-cjs.js');
@@ -87,10 +84,10 @@ const useSideDrawerState = (open) => {
87
84
  backButton: false,
88
85
  });
89
86
  const { toolbar, title, actions, backButton, footer } = useSlotIDs();
90
- useRefocusOnActivator.useRefocusOnActivator_2(open);
91
- const sideDrawerRef = useFocusTrap.useFocusTrap_2(open);
92
- const [headerShadowRef, noHeaderShadow] = useInView.useInView_2();
93
- const [footerShadowRef, noFooterShadow] = useInView.useInView_2();
87
+ jobberHooks.useRefocusOnActivator(open);
88
+ const sideDrawerRef = jobberHooks.useFocusTrap(open);
89
+ const [headerShadowRef, noHeaderShadow] = jobberHooks.useInView();
90
+ const [footerShadowRef, noFooterShadow] = jobberHooks.useInView();
94
91
  return {
95
92
  ref,
96
93
  setRef,
@@ -107,9 +104,9 @@ const useSideDrawerState = (open) => {
107
104
  function SideDrawer({ children, onRequestClose, open, variation = "base", scrollDirection, inline = false, UNSAFE_className, UNSAFE_style, }) {
108
105
  var _a;
109
106
  const { ref, setRef, components, setComponents, slots, sideDrawerRef, headerShadowRef, noHeaderShadow, footerShadowRef, noFooterShadow, } = useSideDrawerState(open);
110
- useRefocusOnActivator.useRefocusOnActivator_2(open);
107
+ jobberHooks.useRefocusOnActivator(open);
111
108
  const container = ((_a = globalThis.document) === null || _a === void 0 ? void 0 : _a.body) || null;
112
- const isMounted = useIsMounted.useIsMounted_2();
109
+ const isMounted = jobberHooks.useIsMounted();
113
110
  if (!isMounted.current && !container)
114
111
  return null;
115
112
  const SideDrawerRender = (React.createElement(SideDrawerContext.Provider, { value: {
@@ -1,11 +1,8 @@
1
1
  import React__default, { createContext, useContext, useEffect, useState, useId } from 'react';
2
2
  import { createPortal } from 'react-dom';
3
3
  import { AnimatePresence, motion } from 'framer-motion';
4
- import { u as useRefocusOnActivator_2 } from './useRefocusOnActivator-es.js';
5
- import { u as useFocusTrap_2 } from './useFocusTrap-es.js';
4
+ import { useRefocusOnActivator, useIsMounted, useFocusTrap, useInView } from '@jobber/hooks';
6
5
  import classnames from 'classnames';
7
- import { u as useInView_2 } from './useInView-es.js';
8
- import { u as useIsMounted_2 } from './useIsMounted-es.js';
9
6
  import { tokens } from '@jobber/design';
10
7
  import { H as Heading } from './Heading-es.js';
11
8
  import { B as Button } from './Button-es.js';
@@ -85,10 +82,10 @@ const useSideDrawerState = (open) => {
85
82
  backButton: false,
86
83
  });
87
84
  const { toolbar, title, actions, backButton, footer } = useSlotIDs();
88
- useRefocusOnActivator_2(open);
89
- const sideDrawerRef = useFocusTrap_2(open);
90
- const [headerShadowRef, noHeaderShadow] = useInView_2();
91
- const [footerShadowRef, noFooterShadow] = useInView_2();
85
+ useRefocusOnActivator(open);
86
+ const sideDrawerRef = useFocusTrap(open);
87
+ const [headerShadowRef, noHeaderShadow] = useInView();
88
+ const [footerShadowRef, noFooterShadow] = useInView();
92
89
  return {
93
90
  ref,
94
91
  setRef,
@@ -105,9 +102,9 @@ const useSideDrawerState = (open) => {
105
102
  function SideDrawer({ children, onRequestClose, open, variation = "base", scrollDirection, inline = false, UNSAFE_className, UNSAFE_style, }) {
106
103
  var _a;
107
104
  const { ref, setRef, components, setComponents, slots, sideDrawerRef, headerShadowRef, noHeaderShadow, footerShadowRef, noFooterShadow, } = useSideDrawerState(open);
108
- useRefocusOnActivator_2(open);
105
+ useRefocusOnActivator(open);
109
106
  const container = ((_a = globalThis.document) === null || _a === void 0 ? void 0 : _a.body) || null;
110
- const isMounted = useIsMounted_2();
107
+ const isMounted = useIsMounted();
111
108
  if (!isMounted.current && !container)
112
109
  return null;
113
110
  const SideDrawerRender = (React__default.createElement(SideDrawerContext.Provider, { value: {
@@ -3,7 +3,6 @@
3
3
  var Tabs = require('../Tabs-cjs.js');
4
4
  require('react');
5
5
  require('classnames');
6
- require('../throttle-cjs.js');
7
6
  require('../_commonjsHelpers-cjs.js');
8
7
  require('../debounce-cjs.js');
9
8
  require('../isObjectLike-cjs.js');
@@ -1,7 +1,6 @@
1
1
  export { a as Tab, T as Tabs } from '../Tabs-es.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import '../throttle-es.js';
5
4
  import '../_commonjsHelpers-es.js';
6
5
  import '../debounce-es.js';
7
6
  import '../isObjectLike-es.js';
package/dist/Tabs-cjs.js CHANGED
@@ -2,11 +2,85 @@
2
2
 
3
3
  var React = require('react');
4
4
  var classnames = require('classnames');
5
- var throttle = require('./throttle-cjs.js');
5
+ var _commonjsHelpers = require('./_commonjsHelpers-cjs.js');
6
+ var debounce$1 = require('./debounce-cjs.js');
7
+ var isObjectLike = require('./isObjectLike-cjs.js');
6
8
  var Typography = require('./Typography-cjs.js');
7
9
 
8
10
  var styles = {"tabs":"cHJe2HsBNic-","overflow":"eQt1Jis30lo-","overflowRight":"_6Vf7pQfyKKk-","overflowLeft":"jyevrJK7Bcg-","tabRow":"LfIIg9bwrhQ-","tab":"DEdzikxlAkw-","selected":"VDB94VYoyB0-","tabContent":"htdKg6As4bY-","spinning":"XFrAkUebMjI-"};
9
11
 
12
+ var debounce = debounce$1.debounce_1,
13
+ isObject = isObjectLike.isObject_1;
14
+
15
+ /** Error message constants. */
16
+ var FUNC_ERROR_TEXT = 'Expected a function';
17
+
18
+ /**
19
+ * Creates a throttled function that only invokes `func` at most once per
20
+ * every `wait` milliseconds. The throttled function comes with a `cancel`
21
+ * method to cancel delayed `func` invocations and a `flush` method to
22
+ * immediately invoke them. Provide `options` to indicate whether `func`
23
+ * should be invoked on the leading and/or trailing edge of the `wait`
24
+ * timeout. The `func` is invoked with the last arguments provided to the
25
+ * throttled function. Subsequent calls to the throttled function return the
26
+ * result of the last `func` invocation.
27
+ *
28
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
29
+ * invoked on the trailing edge of the timeout only if the throttled function
30
+ * is invoked more than once during the `wait` timeout.
31
+ *
32
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
33
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
34
+ *
35
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
36
+ * for details over the differences between `_.throttle` and `_.debounce`.
37
+ *
38
+ * @static
39
+ * @memberOf _
40
+ * @since 0.1.0
41
+ * @category Function
42
+ * @param {Function} func The function to throttle.
43
+ * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
44
+ * @param {Object} [options={}] The options object.
45
+ * @param {boolean} [options.leading=true]
46
+ * Specify invoking on the leading edge of the timeout.
47
+ * @param {boolean} [options.trailing=true]
48
+ * Specify invoking on the trailing edge of the timeout.
49
+ * @returns {Function} Returns the new throttled function.
50
+ * @example
51
+ *
52
+ * // Avoid excessively updating the position while scrolling.
53
+ * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
54
+ *
55
+ * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
56
+ * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
57
+ * jQuery(element).on('click', throttled);
58
+ *
59
+ * // Cancel the trailing throttled invocation.
60
+ * jQuery(window).on('popstate', throttled.cancel);
61
+ */
62
+ function throttle(func, wait, options) {
63
+ var leading = true,
64
+ trailing = true;
65
+
66
+ if (typeof func != 'function') {
67
+ throw new TypeError(FUNC_ERROR_TEXT);
68
+ }
69
+ if (isObject(options)) {
70
+ leading = 'leading' in options ? !!options.leading : leading;
71
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
72
+ }
73
+ return debounce(func, wait, {
74
+ 'leading': leading,
75
+ 'maxWait': wait,
76
+ 'trailing': trailing
77
+ });
78
+ }
79
+
80
+ var throttle_1 = throttle;
81
+
82
+ var throttle$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(throttle_1);
83
+
10
84
  function useTabsOverflow() {
11
85
  const [overflowRight, setOverflowRight] = React.useState(false);
12
86
  const [overflowLeft, setOverflowLeft] = React.useState(false);
@@ -21,7 +95,7 @@ function useTabsOverflow() {
21
95
  setOverflowLeft(scrollPos > 0 && scrollPos < scrollWidth);
22
96
  }
23
97
  };
24
- const throttledHandleOverflowing = React.useCallback(throttle.throttle(handleOverflowing, 100), []);
98
+ const throttledHandleOverflowing = React.useCallback(throttle$1(handleOverflowing, 100), []);
25
99
  React.useEffect(() => {
26
100
  var _a;
27
101
  handleOverflowing();
package/dist/Tabs-es.js CHANGED
@@ -1,10 +1,84 @@
1
1
  import React__default, { useState, useRef, useCallback, useEffect } from 'react';
2
2
  import classnames from 'classnames';
3
- import { t as throttle } from './throttle-es.js';
3
+ import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
4
+ import { a as debounce_1 } from './debounce-es.js';
5
+ import { a as isObject_1 } from './isObjectLike-es.js';
4
6
  import { T as Typography } from './Typography-es.js';
5
7
 
6
8
  var styles = {"tabs":"cHJe2HsBNic-","overflow":"eQt1Jis30lo-","overflowRight":"_6Vf7pQfyKKk-","overflowLeft":"jyevrJK7Bcg-","tabRow":"LfIIg9bwrhQ-","tab":"DEdzikxlAkw-","selected":"VDB94VYoyB0-","tabContent":"htdKg6As4bY-","spinning":"XFrAkUebMjI-"};
7
9
 
10
+ var debounce = debounce_1,
11
+ isObject = isObject_1;
12
+
13
+ /** Error message constants. */
14
+ var FUNC_ERROR_TEXT = 'Expected a function';
15
+
16
+ /**
17
+ * Creates a throttled function that only invokes `func` at most once per
18
+ * every `wait` milliseconds. The throttled function comes with a `cancel`
19
+ * method to cancel delayed `func` invocations and a `flush` method to
20
+ * immediately invoke them. Provide `options` to indicate whether `func`
21
+ * should be invoked on the leading and/or trailing edge of the `wait`
22
+ * timeout. The `func` is invoked with the last arguments provided to the
23
+ * throttled function. Subsequent calls to the throttled function return the
24
+ * result of the last `func` invocation.
25
+ *
26
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
27
+ * invoked on the trailing edge of the timeout only if the throttled function
28
+ * is invoked more than once during the `wait` timeout.
29
+ *
30
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
31
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
32
+ *
33
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
34
+ * for details over the differences between `_.throttle` and `_.debounce`.
35
+ *
36
+ * @static
37
+ * @memberOf _
38
+ * @since 0.1.0
39
+ * @category Function
40
+ * @param {Function} func The function to throttle.
41
+ * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
42
+ * @param {Object} [options={}] The options object.
43
+ * @param {boolean} [options.leading=true]
44
+ * Specify invoking on the leading edge of the timeout.
45
+ * @param {boolean} [options.trailing=true]
46
+ * Specify invoking on the trailing edge of the timeout.
47
+ * @returns {Function} Returns the new throttled function.
48
+ * @example
49
+ *
50
+ * // Avoid excessively updating the position while scrolling.
51
+ * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
52
+ *
53
+ * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
54
+ * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
55
+ * jQuery(element).on('click', throttled);
56
+ *
57
+ * // Cancel the trailing throttled invocation.
58
+ * jQuery(window).on('popstate', throttled.cancel);
59
+ */
60
+ function throttle(func, wait, options) {
61
+ var leading = true,
62
+ trailing = true;
63
+
64
+ if (typeof func != 'function') {
65
+ throw new TypeError(FUNC_ERROR_TEXT);
66
+ }
67
+ if (isObject(options)) {
68
+ leading = 'leading' in options ? !!options.leading : leading;
69
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
70
+ }
71
+ return debounce(func, wait, {
72
+ 'leading': leading,
73
+ 'maxWait': wait,
74
+ 'trailing': trailing
75
+ });
76
+ }
77
+
78
+ var throttle_1 = throttle;
79
+
80
+ var throttle$1 = /*@__PURE__*/getDefaultExportFromCjs(throttle_1);
81
+
8
82
  function useTabsOverflow() {
9
83
  const [overflowRight, setOverflowRight] = useState(false);
10
84
  const [overflowLeft, setOverflowLeft] = useState(false);
@@ -19,7 +93,7 @@ function useTabsOverflow() {
19
93
  setOverflowLeft(scrollPos > 0 && scrollPos < scrollWidth);
20
94
  }
21
95
  };
22
- const throttledHandleOverflowing = useCallback(throttle(handleOverflowing, 100), []);
96
+ const throttledHandleOverflowing = useCallback(throttle$1(handleOverflowing, 100), []);
23
97
  useEffect(() => {
24
98
  var _a;
25
99
  handleOverflowing();
@@ -6,8 +6,7 @@ require('classnames');
6
6
  require('../floating-ui.react-cjs.js');
7
7
  require('react-dom');
8
8
  require('framer-motion');
9
- require('../useSafeLayoutEffect-cjs.js');
10
- require('../useIsMounted-cjs.js');
9
+ require('@jobber/hooks');
11
10
 
12
11
 
13
12
 
@@ -4,5 +4,4 @@ import 'classnames';
4
4
  import '../floating-ui.react-es.js';
5
5
  import 'react-dom';
6
6
  import 'framer-motion';
7
- import '../useSafeLayoutEffect-es.js';
8
- import '../useIsMounted-es.js';
7
+ import '@jobber/hooks';
@@ -4,8 +4,7 @@ var React = require('react');
4
4
  var classnames = require('classnames');
5
5
  var floatingUi_react = require('./floating-ui.react-cjs.js');
6
6
  var framerMotion = require('framer-motion');
7
- var useSafeLayoutEffect = require('./useSafeLayoutEffect-cjs.js');
8
- var useIsMounted = require('./useIsMounted-cjs.js');
7
+ var jobberHooks = require('@jobber/hooks');
9
8
 
10
9
  var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","spinning":"bobYmlUMnuY-"};
11
10
 
@@ -122,7 +121,7 @@ function Tooltip({ message, children, preferredPlacement = "top", setTabIndex =
122
121
  activator.removeEventListener("blur", hideTooltip);
123
122
  }
124
123
  };
125
- useSafeLayoutEffect.useSafeLayoutEffect_1(() => {
124
+ jobberHooks.useSafeLayoutEffect(() => {
126
125
  injectAttributes();
127
126
  addListeners();
128
127
  return () => {
@@ -132,7 +131,7 @@ function Tooltip({ message, children, preferredPlacement = "top", setTabIndex =
132
131
  }
133
132
  }
134
133
  function TooltipPortal({ children }) {
135
- const mounted = useIsMounted.useIsMounted_2();
134
+ const mounted = jobberHooks.useIsMounted();
136
135
  if (!(mounted === null || mounted === void 0 ? void 0 : mounted.current)) {
137
136
  return null;
138
137
  }
@@ -1,9 +1,8 @@
1
1
  import React__default, { useRef, useState } from 'react';
2
2
  import classnames from 'classnames';
3
- import { u as useFloating, s as shift, f as flip, a as arrow, b as autoUpdate, l as limitShift, F as FloatingPortal } from './floating-ui.react-es.js';
3
+ import { u as useFloating, d as shift, f as flip, e as arrow, c as autoUpdate, l as limitShift, F as FloatingPortal } from './floating-ui.react-es.js';
4
4
  import { motion } from 'framer-motion';
5
- import { u as useSafeLayoutEffect_1 } from './useSafeLayoutEffect-es.js';
6
- import { u as useIsMounted_2 } from './useIsMounted-es.js';
5
+ import { useSafeLayoutEffect, useIsMounted } from '@jobber/hooks';
7
6
 
8
7
  var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","spinning":"bobYmlUMnuY-"};
9
8
 
@@ -120,7 +119,7 @@ function Tooltip({ message, children, preferredPlacement = "top", setTabIndex =
120
119
  activator.removeEventListener("blur", hideTooltip);
121
120
  }
122
121
  };
123
- useSafeLayoutEffect_1(() => {
122
+ useSafeLayoutEffect(() => {
124
123
  injectAttributes();
125
124
  addListeners();
126
125
  return () => {
@@ -130,7 +129,7 @@ function Tooltip({ message, children, preferredPlacement = "top", setTabIndex =
130
129
  }
131
130
  }
132
131
  function TooltipPortal({ children }) {
133
- const mounted = useIsMounted_2();
132
+ const mounted = useIsMounted();
134
133
  if (!(mounted === null || mounted === void 0 ? void 0 : mounted.current)) {
135
134
  return null;
136
135
  }