@servicetitan/anvil2 2.0.4 → 2.2.0

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 (225) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/{Calendar-jO-0jbbt.js → Calendar-D0CczOpQ.js} +3 -835
  3. package/dist/Calendar-D0CczOpQ.js.map +1 -0
  4. package/dist/{Calendar-DxLrWESu.js → Calendar-oNlBgZKB.js} +2 -2
  5. package/dist/{Calendar-DxLrWESu.js.map → Calendar-oNlBgZKB.js.map} +1 -1
  6. package/dist/Calendar.js +2 -2
  7. package/dist/{Checkbox-9VbydUcM.js → Checkbox-DIY-6agd.js} +12 -12
  8. package/dist/Checkbox-DIY-6agd.js.map +1 -0
  9. package/dist/{Checkbox-ZXftLNwB.js → Checkbox-DuzAqrE7.js} +2 -2
  10. package/dist/{Checkbox-ZXftLNwB.js.map → Checkbox-DuzAqrE7.js.map} +1 -1
  11. package/dist/Checkbox.js +1 -1
  12. package/dist/{Combobox-CNObHLjp.js → Combobox-CSGn20KQ.js} +14 -7
  13. package/dist/Combobox-CSGn20KQ.js.map +1 -0
  14. package/dist/Combobox.js +1 -1
  15. package/dist/{DataTable-CQpySyDq.js → DataTable-D30sE1Xt.js} +223 -19
  16. package/dist/DataTable-D30sE1Xt.js.map +1 -0
  17. package/dist/{DateFieldRange-BG86w0pX.js → DateFieldRange-DBOiqaML.js} +46 -36
  18. package/dist/DateFieldRange-DBOiqaML.js.map +1 -0
  19. package/dist/DateFieldRange.js +1 -1
  20. package/dist/{DateFieldSingle-Byu_jyye.js → DateFieldSingle-C4hU55MP.js} +38 -29
  21. package/dist/DateFieldSingle-C4hU55MP.js.map +1 -0
  22. package/dist/DateFieldSingle.js +1 -1
  23. package/dist/{DateFieldYearless-Dw1k3_PY.js → DateFieldYearless-BXkUiHIR.js} +14 -13
  24. package/dist/DateFieldYearless-BXkUiHIR.js.map +1 -0
  25. package/dist/DateFieldYearless.js +1 -1
  26. package/dist/{DateFieldYearlessRange--plyld10.js → DateFieldYearlessRange-CGffFnVT.js} +14 -13
  27. package/dist/DateFieldYearlessRange-CGffFnVT.js.map +1 -0
  28. package/dist/DateFieldYearlessRange.js +1 -1
  29. package/dist/{DaysOfTheWeek-vE310Rjp.js → DaysOfTheWeek-DJEDopC9.js} +9 -5
  30. package/dist/DaysOfTheWeek-DJEDopC9.js.map +1 -0
  31. package/dist/DaysOfTheWeek.js +1 -1
  32. package/dist/{Dialog-DZPaz84r.js → Dialog-BbsZMnCA.js} +4 -4
  33. package/dist/{Dialog-DZPaz84r.js.map → Dialog-BbsZMnCA.js.map} +1 -1
  34. package/dist/Dialog.js +1 -1
  35. package/dist/{Drawer-pMQOa2jH.js → Drawer-Dhq76ot3.js} +4 -4
  36. package/dist/{Drawer-pMQOa2jH.js.map → Drawer-Dhq76ot3.js.map} +1 -1
  37. package/dist/Drawer.js +1 -1
  38. package/dist/DrillDown.js +1 -1
  39. package/dist/{FieldDialog-Be54L3E-.js → FieldDialog-CAuhkCZY.js} +541 -142
  40. package/dist/FieldDialog-CAuhkCZY.js.map +1 -0
  41. package/dist/FieldDialog.css +58 -28
  42. package/dist/{FieldLabel-DSrHbw9U.js → FieldLabel-DL0D6fvc.js} +2 -2
  43. package/dist/{FieldLabel-DSrHbw9U.js.map → FieldLabel-DL0D6fvc.js.map} +1 -1
  44. package/dist/FieldLabel.js +1 -1
  45. package/dist/FieldMessage-DS0COrjp.js +132 -0
  46. package/dist/FieldMessage-DS0COrjp.js.map +1 -0
  47. package/dist/FieldMessage.css +18 -4
  48. package/dist/FieldMessage.js +2 -1
  49. package/dist/FieldMessage.js.map +1 -1
  50. package/dist/{Helper-CK-XjpR3.js → Helper-PNGm_U2X.js} +7 -4
  51. package/dist/Helper-PNGm_U2X.js.map +1 -0
  52. package/dist/{InputMask-DoqWRi3t.js → InputMask-Ds0W2fKy.js} +2 -2
  53. package/dist/{InputMask-DoqWRi3t.js.map → InputMask-Ds0W2fKy.js.map} +1 -1
  54. package/dist/InputMask.js +1 -1
  55. package/dist/{ListView-CtRhYAls.js → ListView-MMmJDM--.js} +2 -2
  56. package/dist/{ListView-CtRhYAls.js.map → ListView-MMmJDM--.js.map} +1 -1
  57. package/dist/ListView.js +1 -1
  58. package/dist/MultiSelectField.js +1 -1
  59. package/dist/{MultiSelectFieldSync-xj7jXas-.js → MultiSelectFieldSync-Bey99LzJ.js} +178 -58
  60. package/dist/MultiSelectFieldSync-Bey99LzJ.js.map +1 -0
  61. package/dist/NumberField-CDkEUfXW.js +237 -0
  62. package/dist/NumberField-CDkEUfXW.js.map +1 -0
  63. package/dist/NumberField.js +1 -1
  64. package/dist/{Page-vc7zs4tn.js → Page-BVxybI-j.js} +6 -6
  65. package/dist/{Page-vc7zs4tn.js.map → Page-BVxybI-j.js.map} +1 -1
  66. package/dist/Page.js +1 -1
  67. package/dist/{Popover-OOLK0hUz.js → Popover-4C5IVk8T.js} +7 -6
  68. package/dist/{Popover-OOLK0hUz.js.map → Popover-4C5IVk8T.js.map} +1 -1
  69. package/dist/Popover.css +15 -14
  70. package/dist/Popover.js +1 -1
  71. package/dist/{ProgressBar-HA9RPZfC.js → ProgressBar-BGwp-qnf.js} +16 -11
  72. package/dist/ProgressBar-BGwp-qnf.js.map +1 -0
  73. package/dist/ProgressBar.js +1 -1
  74. package/dist/{Radio-31wKzlZ4.js → Radio-BRcpSu-d.js} +12 -12
  75. package/dist/Radio-BRcpSu-d.js.map +1 -0
  76. package/dist/{Radio-BwWDJuLF.js → Radio-D7hNws2b.js} +2 -2
  77. package/dist/{Radio-BwWDJuLF.js.map → Radio-D7hNws2b.js.map} +1 -1
  78. package/dist/Radio.js +1 -1
  79. package/dist/{SelectCard-C91twG1S.js → SelectCard-Bag44PmE.js} +3 -3
  80. package/dist/{SelectCard-C91twG1S.js.map → SelectCard-Bag44PmE.js.map} +1 -1
  81. package/dist/SelectCard.js +1 -1
  82. package/dist/SelectField.js +1 -1
  83. package/dist/{SelectFieldSync-BFsJssdD.js → SelectFieldSync-CigqXq3T.js} +67 -50
  84. package/dist/SelectFieldSync-CigqXq3T.js.map +1 -0
  85. package/dist/{SelectTrigger-Cxhx9IVo.js → SelectTrigger-DgsvUfyl.js} +2 -2
  86. package/dist/{SelectTrigger-Cxhx9IVo.js.map → SelectTrigger-DgsvUfyl.js.map} +1 -1
  87. package/dist/SelectTrigger.js +1 -1
  88. package/dist/{SelectTriggerBase-aaOWep-V.js → SelectTriggerBase-OxfNqdIq.js} +12 -7
  89. package/dist/SelectTriggerBase-OxfNqdIq.js.map +1 -0
  90. package/dist/{Stepper-Jv9A3Ned.js → Stepper-D8lkCP8Y.js} +11 -2
  91. package/dist/Stepper-D8lkCP8Y.js.map +1 -0
  92. package/dist/Stepper.js +1 -1
  93. package/dist/{Switch-DQICcdAv.js → Switch-D0zwZCg4.js} +2 -2
  94. package/dist/{Switch-DQICcdAv.js.map → Switch-D0zwZCg4.js.map} +1 -1
  95. package/dist/Switch.js +1 -1
  96. package/dist/Table.js +1 -1
  97. package/dist/{TextField-CDiiYSlT.js → TextField-BycenT6H.js} +13 -12
  98. package/dist/TextField-BycenT6H.js.map +1 -0
  99. package/dist/{TextField-CnYxS52Y.js → TextField-Dfzn2HeL.js} +2 -2
  100. package/dist/{TextField-CnYxS52Y.js.map → TextField-Dfzn2HeL.js.map} +1 -1
  101. package/dist/TextField.js +1 -1
  102. package/dist/{Textarea-BnHIDj2P.js → Textarea-BwbwJP6z.js} +13 -12
  103. package/dist/Textarea-BwbwJP6z.js.map +1 -0
  104. package/dist/Textarea.js +1 -1
  105. package/dist/{TimeField-ChqK40k_.js → TimeField-B0WSzSfJ.js} +4 -4
  106. package/dist/{TimeField-ChqK40k_.js.map → TimeField-B0WSzSfJ.js.map} +1 -1
  107. package/dist/TimeField.js +1 -1
  108. package/dist/TimezoneMessage-Cnsl4cHT.js +84 -0
  109. package/dist/TimezoneMessage-Cnsl4cHT.js.map +1 -0
  110. package/dist/TimezoneMessage.css +7 -0
  111. package/dist/Toast.js +2 -2
  112. package/dist/{Toaster-BlycAc63.js → Toaster-9Q_yaKGu.js} +18 -18
  113. package/dist/Toaster-9Q_yaKGu.js.map +1 -0
  114. package/dist/{Toaster-DW_bi2L9.js → Toaster-DHo8dnWH.js} +2 -2
  115. package/dist/{Toaster-DW_bi2L9.js.map → Toaster-DHo8dnWH.js.map} +1 -1
  116. package/dist/{Toolbar-vBomnRKG.js → Toolbar-CVOenuCF.js} +70 -23
  117. package/dist/Toolbar-CVOenuCF.js.map +1 -0
  118. package/dist/Toolbar.js +1 -1
  119. package/dist/{Tooltip-CUiAJXak.js → Tooltip-Bt62hC5J.js} +5 -5
  120. package/dist/{Tooltip-CUiAJXak.js.map → Tooltip-Bt62hC5J.js.map} +1 -1
  121. package/dist/Tooltip.css +9 -8
  122. package/dist/Tooltip.js +1 -1
  123. package/dist/{YearlessDateInputWithPicker-DZSb8sPf.js → YearlessDateInputWithPicker-ztozRk-X.js} +3 -3
  124. package/dist/{YearlessDateInputWithPicker-DZSb8sPf.js.map → YearlessDateInputWithPicker-ztozRk-X.js.map} +1 -1
  125. package/dist/beta/components/MultiSelectField/MultiSelectField.d.ts +2 -0
  126. package/dist/beta/components/MultiSelectField/MultiSelectFieldSync.d.ts +43 -4
  127. package/dist/beta/components/MultiSelectField/internal/MultiSelectFieldList.d.ts +5 -5
  128. package/dist/beta/components/MultiSelectField/internal/useComboMultiple.d.ts +13 -2
  129. package/dist/beta/components/MultiSelectField/stories/MultiSelectField.stories.data.d.ts +1 -0
  130. package/dist/beta/components/MultiSelectField/types.d.ts +52 -8
  131. package/dist/beta/components/SelectField/SelectFieldSync.d.ts +10 -3
  132. package/dist/beta/components/SelectField/internal/FieldListBase.d.ts +6 -5
  133. package/dist/beta/components/SelectField/internal/SelectFieldList.d.ts +4 -2
  134. package/dist/beta/components/SelectField/internal/SelectFieldListItem.d.ts +2 -1
  135. package/dist/beta/components/SelectField/internal/VirtualizedFieldListBase.d.ts +2 -0
  136. package/dist/beta/components/SelectField/internal/useCombo.d.ts +3 -1
  137. package/dist/beta/components/SelectField/internal/useFieldListSections.d.ts +55 -0
  138. package/dist/beta/components/SelectField/stories/SelectField.stories.data.d.ts +1 -0
  139. package/dist/beta/components/SelectField/types.d.ts +24 -6
  140. package/dist/beta/components/Table/DataTable/internal/editable-cells/DataTableEditableNumberCell.d.ts +7 -0
  141. package/dist/beta/components/Table/DataTable/internal/util/getTanStackColumnDef.d.ts +1 -0
  142. package/dist/beta/components/Table/DataTable/stories/DataTable.story-data.d.ts +1 -0
  143. package/dist/beta/components/Table/createColumnHelper.d.ts +36 -9
  144. package/dist/beta/components/Table/types.d.ts +54 -4
  145. package/dist/beta/components/Toolbar/Filters/internal/utils/filter-state.d.ts +1 -0
  146. package/dist/beta.js +7 -7
  147. package/dist/components/ButtonToggle/ButtonToggle.d.ts +1 -1
  148. package/dist/components/Checkbox/Checkbox.d.ts +2 -1
  149. package/dist/components/Checkbox/CheckboxGroup.d.ts +16 -8
  150. package/dist/components/Checkbox/internal/Checkbox.d.ts +1 -1
  151. package/dist/components/DateFieldRange/DateFieldRange.d.ts +8 -1
  152. package/dist/components/DateFieldRange/internal/DateFieldRangeCalendar.d.ts +3 -1
  153. package/dist/components/DateFieldSingle/DateFieldSingle.d.ts +8 -1
  154. package/dist/components/DateFieldSingle/internal/DateFieldSingleCalendar.d.ts +3 -1
  155. package/dist/components/DateFieldSingle/internal/TimezoneMessage.d.ts +6 -0
  156. package/dist/components/DateFieldSingle/internal/utils.d.ts +11 -0
  157. package/dist/components/DateFieldYearless/DateFieldYearless.d.ts +8 -3
  158. package/dist/components/DateFieldYearlessRange/DateFieldYearlessRange.d.ts +12 -1
  159. package/dist/components/DaysOfTheWeek/DaysOfTheWeek.d.ts +20 -6
  160. package/dist/components/Dialog/internal/useInitialFocus.d.ts +5 -1
  161. package/dist/components/FieldMessage/FieldMessage.d.ts +39 -20
  162. package/dist/components/FieldMessage/index.d.ts +1 -0
  163. package/dist/components/FieldMessage/utils.d.ts +7 -0
  164. package/dist/components/NumberField/NumberField.d.ts +24 -2
  165. package/dist/components/Page/Page.d.ts +2 -2
  166. package/dist/components/ProgressBar/ProgressBar.d.ts +8 -3
  167. package/dist/components/Radio/Radio.d.ts +2 -1
  168. package/dist/components/Radio/RadioGroup.d.ts +16 -8
  169. package/dist/components/SelectTrigger/internal/SelectTriggerBase.d.ts +1 -1
  170. package/dist/components/Stepper/Stepper.d.ts +6 -2
  171. package/dist/components/TextField/internal/TextField.d.ts +12 -1
  172. package/dist/components/Textarea/Textarea.d.ts +8 -5
  173. package/dist/index-DXeGMe23.js +836 -0
  174. package/dist/index-DXeGMe23.js.map +1 -0
  175. package/dist/{index.esm-BMOZFPwN.js → index.esm-C2ZhC_8d.js} +2 -2
  176. package/dist/{index.esm-BMOZFPwN.js.map → index.esm-C2ZhC_8d.js.map} +1 -1
  177. package/dist/{useOnClickOutside-Cyqbe1n3.js → index.esm-K9kxJhLx.js} +88 -94
  178. package/dist/index.esm-K9kxJhLx.js.map +1 -0
  179. package/dist/index.js +31 -30
  180. package/dist/index.js.map +1 -1
  181. package/dist/internal/components/Helper/Helper.d.ts +12 -3
  182. package/dist/internal/components/StatusIcon/StatusIcon.d.ts +45 -0
  183. package/dist/internal/components/StatusIcon/index.d.ts +1 -0
  184. package/dist/internal/functions/index.d.ts +1 -0
  185. package/dist/internal/functions/warnOnce.d.ts +5 -0
  186. package/dist/internal/hooks/useNumberField/useNumberField.d.ts +1 -1
  187. package/dist/{useDrilldown-lAdB3FFW.js → useDrilldown-jbU4Cs5l.js} +2 -598
  188. package/dist/useDrilldown-jbU4Cs5l.js.map +1 -0
  189. package/dist/{useInitialFocus-nOW12jQ5.js → useInitialFocus-BRRbylek.js} +2 -2
  190. package/dist/{useInitialFocus-nOW12jQ5.js.map → useInitialFocus-BRRbylek.js.map} +1 -1
  191. package/dist/{NumberField-W1k8V5Qq.js → useNumberField-eMyk7MB8.js} +5 -235
  192. package/dist/useNumberField-eMyk7MB8.js.map +1 -0
  193. package/dist/useOnClickOutside-Zw5vzxSq.js +71 -0
  194. package/dist/useOnClickOutside-Zw5vzxSq.js.map +1 -0
  195. package/dist/utils-pudAMGnO.js +25 -0
  196. package/dist/utils-pudAMGnO.js.map +1 -0
  197. package/package.json +9 -8
  198. package/dist/Calendar-jO-0jbbt.js.map +0 -1
  199. package/dist/Checkbox-9VbydUcM.js.map +0 -1
  200. package/dist/Combobox-CNObHLjp.js.map +0 -1
  201. package/dist/DataTable-CQpySyDq.js.map +0 -1
  202. package/dist/DateFieldRange-BG86w0pX.js.map +0 -1
  203. package/dist/DateFieldSingle-Byu_jyye.js.map +0 -1
  204. package/dist/DateFieldYearless-Dw1k3_PY.js.map +0 -1
  205. package/dist/DateFieldYearlessRange--plyld10.js.map +0 -1
  206. package/dist/DaysOfTheWeek-vE310Rjp.js.map +0 -1
  207. package/dist/FieldDialog-Be54L3E-.js.map +0 -1
  208. package/dist/FieldMessage-tEr6rWXS.js +0 -54
  209. package/dist/FieldMessage-tEr6rWXS.js.map +0 -1
  210. package/dist/Helper-CK-XjpR3.js.map +0 -1
  211. package/dist/MultiSelectFieldSync-xj7jXas-.js.map +0 -1
  212. package/dist/NumberField-W1k8V5Qq.js.map +0 -1
  213. package/dist/ProgressBar-HA9RPZfC.js.map +0 -1
  214. package/dist/Radio-31wKzlZ4.js.map +0 -1
  215. package/dist/SelectFieldSync-BFsJssdD.js.map +0 -1
  216. package/dist/SelectTriggerBase-aaOWep-V.js.map +0 -1
  217. package/dist/Stepper-Jv9A3Ned.js.map +0 -1
  218. package/dist/TextField-CDiiYSlT.js.map +0 -1
  219. package/dist/Textarea-BnHIDj2P.js.map +0 -1
  220. package/dist/Toaster-BlycAc63.js.map +0 -1
  221. package/dist/Toolbar-vBomnRKG.js.map +0 -1
  222. package/dist/useDrilldown-lAdB3FFW.js.map +0 -1
  223. package/dist/useOnClickOutside-Cyqbe1n3.js.map +0 -1
  224. package/dist/utils-BHKRoLps.js +0 -60
  225. package/dist/utils-BHKRoLps.js.map +0 -1
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import React__default, { forwardRef, useEffect, useRef, useCallback } from 'react';
4
4
  import { g as getAugmentedNamespace, c as cx } from './index-SvGbrGuT.js';
5
5
  import { d as drillDownStyles } from './DrillDown.module-C8VOhzaF.js';
6
+ import { t as tabbable, f as focusable, i as isTabbable, g as getTabIndex, a as isFocusable, b as index_esm } from './index.esm-K9kxJhLx.js';
6
7
  import { u as useDrillDownContext } from './useDrillDownContext-BssSasVB.js';
7
8
  import { F as Flex } from './Flex-CUtXN-C0.js';
8
9
  import { B as Button } from './Button-l7pTJdPc.js';
@@ -13,603 +14,6 @@ import { useTrackingId } from './useTrackingId.js';
13
14
 
14
15
  var focusTrapReact = {exports: {}};
15
16
 
16
- /*!
17
- * tabbable 6.4.0
18
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
19
- */
20
-
21
- // NOTE: separate `:not()` selectors has broader browser support than the newer
22
- // `:not([inert], [inert] *)` (Feb 2023)
23
- var candidateSelectors = ['input:not([inert]):not([inert] *)', 'select:not([inert]):not([inert] *)', 'textarea:not([inert]):not([inert] *)', 'a[href]:not([inert]):not([inert] *)', 'button:not([inert]):not([inert] *)', '[tabindex]:not(slot):not([inert]):not([inert] *)', 'audio[controls]:not([inert]):not([inert] *)', 'video[controls]:not([inert]):not([inert] *)', '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', 'details>summary:first-of-type:not([inert]):not([inert] *)', 'details:not([inert]):not([inert] *)'];
24
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
25
- var NoElement = typeof Element === 'undefined';
26
- var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
27
- var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
28
- var _element$getRootNode;
29
- return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
30
- } : function (element) {
31
- return element === null || element === void 0 ? void 0 : element.ownerDocument;
32
- };
33
-
34
- /**
35
- * Determines if a node is inert or in an inert ancestor.
36
- * @param {Node} [node]
37
- * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
38
- * see if any of them are inert. If false, only `node` itself is considered.
39
- * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
40
- * False if `node` is falsy.
41
- */
42
- var _isInert = function isInert(node, lookUp) {
43
- var _node$getAttribute;
44
- if (lookUp === void 0) {
45
- lookUp = true;
46
- }
47
- // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
48
- // JS API property; we have to check the attribute, which can either be empty or 'true';
49
- // if it's `null` (not specified) or 'false', it's an active element
50
- var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
51
- var inert = inertAtt === '' || inertAtt === 'true';
52
-
53
- // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
54
- // if it weren't for `matches()` not being a function on shadow roots; the following
55
- // code works for any kind of node
56
- var result = inert || lookUp && node && (
57
- // closest does not exist on shadow roots, so we fall back to a manual
58
- // lookup upward, in case it is not defined.
59
- typeof node.closest === 'function' ? node.closest('[inert]') : _isInert(node.parentNode));
60
- return result;
61
- };
62
-
63
- /**
64
- * Determines if a node's content is editable.
65
- * @param {Element} [node]
66
- * @returns True if it's content-editable; false if it's not or `node` is falsy.
67
- */
68
- var isContentEditable = function isContentEditable(node) {
69
- var _node$getAttribute2;
70
- // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
71
- // to use the attribute directly to check for this, which can either be empty or 'true';
72
- // if it's `null` (not specified) or 'false', it's a non-editable element
73
- var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
74
- return attValue === '' || attValue === 'true';
75
- };
76
-
77
- /**
78
- * @param {Element} el container to check in
79
- * @param {boolean} includeContainer add container to check
80
- * @param {(node: Element) => boolean} filter filter candidates
81
- * @returns {Element[]}
82
- */
83
- var getCandidates = function getCandidates(el, includeContainer, filter) {
84
- // even if `includeContainer=false`, we still have to check it for inertness because
85
- // if it's inert (either by itself or via its parent), then all its children are inert
86
- if (_isInert(el)) {
87
- return [];
88
- }
89
- var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
90
- if (includeContainer && matches.call(el, candidateSelector)) {
91
- candidates.unshift(el);
92
- }
93
- candidates = candidates.filter(filter);
94
- return candidates;
95
- };
96
-
97
- /**
98
- * @callback GetShadowRoot
99
- * @param {Element} element to check for shadow root
100
- * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
101
- */
102
-
103
- /**
104
- * @callback ShadowRootFilter
105
- * @param {Element} shadowHostNode the element which contains shadow content
106
- * @returns {boolean} true if a shadow root could potentially contain valid candidates.
107
- */
108
-
109
- /**
110
- * @typedef {Object} CandidateScope
111
- * @property {Element} scopeParent contains inner candidates
112
- * @property {Element[]} candidates list of candidates found in the scope parent
113
- */
114
-
115
- /**
116
- * @typedef {Object} IterativeOptions
117
- * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
118
- * if a function, implies shadow support is enabled and either returns the shadow root of an element
119
- * or a boolean stating if it has an undisclosed shadow root
120
- * @property {(node: Element) => boolean} filter filter candidates
121
- * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
122
- * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
123
- */
124
-
125
- /**
126
- * @param {Element[]} elements list of element containers to match candidates from
127
- * @param {boolean} includeContainer add container list to check
128
- * @param {IterativeOptions} options
129
- * @returns {Array.<Element|CandidateScope>}
130
- */
131
- var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
132
- var candidates = [];
133
- var elementsToCheck = Array.from(elements);
134
- while (elementsToCheck.length) {
135
- var element = elementsToCheck.shift();
136
- if (_isInert(element, false)) {
137
- // no need to look up since we're drilling down
138
- // anything inside this container will also be inert
139
- continue;
140
- }
141
- if (element.tagName === 'SLOT') {
142
- // add shadow dom slot scope (slot itself cannot be focusable)
143
- var assigned = element.assignedElements();
144
- var content = assigned.length ? assigned : element.children;
145
- var nestedCandidates = _getCandidatesIteratively(content, true, options);
146
- if (options.flatten) {
147
- candidates.push.apply(candidates, nestedCandidates);
148
- } else {
149
- candidates.push({
150
- scopeParent: element,
151
- candidates: nestedCandidates
152
- });
153
- }
154
- } else {
155
- // check candidate element
156
- var validCandidate = matches.call(element, candidateSelector);
157
- if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
158
- candidates.push(element);
159
- }
160
-
161
- // iterate over shadow content if possible
162
- var shadowRoot = element.shadowRoot ||
163
- // check for an undisclosed shadow
164
- typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
165
-
166
- // no inert look up because we're already drilling down and checking for inertness
167
- // on the way down, so all containers to this root node should have already been
168
- // vetted as non-inert
169
- var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
170
- if (shadowRoot && validShadowRoot) {
171
- // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
172
- // shadow exists, so look at light dom children as fallback BUT create a scope for any
173
- // child candidates found because they're likely slotted elements (elements that are
174
- // children of the web component element (which has the shadow), in the light dom, but
175
- // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
176
- // _after_ we return from this recursive call
177
- var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
178
- if (options.flatten) {
179
- candidates.push.apply(candidates, _nestedCandidates);
180
- } else {
181
- candidates.push({
182
- scopeParent: element,
183
- candidates: _nestedCandidates
184
- });
185
- }
186
- } else {
187
- // there's not shadow so just dig into the element's (light dom) children
188
- // __without__ giving the element special scope treatment
189
- elementsToCheck.unshift.apply(elementsToCheck, element.children);
190
- }
191
- }
192
- }
193
- return candidates;
194
- };
195
-
196
- /**
197
- * @private
198
- * Determines if the node has an explicitly specified `tabindex` attribute.
199
- * @param {HTMLElement} node
200
- * @returns {boolean} True if so; false if not.
201
- */
202
- var hasTabIndex = function hasTabIndex(node) {
203
- return !isNaN(parseInt(node.getAttribute('tabindex'), 10));
204
- };
205
-
206
- /**
207
- * Determine the tab index of a given node.
208
- * @param {HTMLElement} node
209
- * @returns {number} Tab order (negative, 0, or positive number).
210
- * @throws {Error} If `node` is falsy.
211
- */
212
- var getTabIndex = function getTabIndex(node) {
213
- if (!node) {
214
- throw new Error('No node provided');
215
- }
216
- if (node.tabIndex < 0) {
217
- // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
218
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
219
- // yet they are still part of the regular tab order; in FF, they get a default
220
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
221
- // order, consider their tab index to be 0.
222
- // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
223
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
224
- if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
225
- return 0;
226
- }
227
- }
228
- return node.tabIndex;
229
- };
230
-
231
- /**
232
- * Determine the tab index of a given node __for sort order purposes__.
233
- * @param {HTMLElement} node
234
- * @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,
235
- * has tabIndex -1, but needs to be sorted by document order in order for its content to be
236
- * inserted into the correct sort position.
237
- * @returns {number} Tab order (negative, 0, or positive number).
238
- */
239
- var getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {
240
- var tabIndex = getTabIndex(node);
241
- if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
242
- return 0;
243
- }
244
- return tabIndex;
245
- };
246
- var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
247
- return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
248
- };
249
- var isInput = function isInput(node) {
250
- return node.tagName === 'INPUT';
251
- };
252
- var isHiddenInput = function isHiddenInput(node) {
253
- return isInput(node) && node.type === 'hidden';
254
- };
255
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
256
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
257
- return child.tagName === 'SUMMARY';
258
- });
259
- return r;
260
- };
261
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
262
- for (var i = 0; i < nodes.length; i++) {
263
- if (nodes[i].checked && nodes[i].form === form) {
264
- return nodes[i];
265
- }
266
- }
267
- };
268
- var isTabbableRadio = function isTabbableRadio(node) {
269
- if (!node.name) {
270
- return true;
271
- }
272
- var radioScope = node.form || getRootNode(node);
273
- var queryRadios = function queryRadios(name) {
274
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
275
- };
276
- var radioSet;
277
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
278
- radioSet = queryRadios(window.CSS.escape(node.name));
279
- } else {
280
- try {
281
- radioSet = queryRadios(node.name);
282
- } catch (err) {
283
- // eslint-disable-next-line no-console
284
- console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
285
- return false;
286
- }
287
- }
288
- var checked = getCheckedRadio(radioSet, node.form);
289
- return !checked || checked === node;
290
- };
291
- var isRadio = function isRadio(node) {
292
- return isInput(node) && node.type === 'radio';
293
- };
294
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
295
- return isRadio(node) && !isTabbableRadio(node);
296
- };
297
-
298
- // determines if a node is ultimately attached to the window's document
299
- var isNodeAttached = function isNodeAttached(node) {
300
- var _nodeRoot;
301
- // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
302
- // (but NOT _the_ document; see second 'If' comment below for more).
303
- // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
304
- // is attached, and the one we need to check if it's in the document or not (because the
305
- // shadow, and all nodes it contains, is never considered in the document since shadows
306
- // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
307
- // is hidden, or is not in the document itself but is detached, it will affect the shadow's
308
- // visibility, including all the nodes it contains). The host could be any normal node,
309
- // or a custom element (i.e. web component). Either way, that's the one that is considered
310
- // part of the document, not the shadow root, nor any of its children (i.e. the node being
311
- // tested).
312
- // To further complicate things, we have to look all the way up until we find a shadow HOST
313
- // that is attached (or find none) because the node might be in nested shadows...
314
- // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
315
- // document (per the docs) and while it's a Document-type object, that document does not
316
- // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
317
- // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
318
- // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
319
- // node is actually detached.
320
- // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
321
- // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
322
- // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
323
- // `ownerDocument` will be `null`, hence the optional chaining on it.
324
- var nodeRoot = node && getRootNode(node);
325
- var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
326
-
327
- // in some cases, a detached node will return itself as the root instead of a document or
328
- // shadow root object, in which case, we shouldn't try to look further up the host chain
329
- var attached = false;
330
- if (nodeRoot && nodeRoot !== node) {
331
- var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
332
- attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
333
- while (!attached && nodeRootHost) {
334
- var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
335
- // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
336
- // which means we need to get the host's host and check if that parent host is contained
337
- // in (i.e. attached to) the document
338
- nodeRoot = getRootNode(nodeRootHost);
339
- nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
340
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
341
- }
342
- }
343
- return attached;
344
- };
345
- var isZeroArea = function isZeroArea(node) {
346
- var _node$getBoundingClie = node.getBoundingClientRect(),
347
- width = _node$getBoundingClie.width,
348
- height = _node$getBoundingClie.height;
349
- return width === 0 && height === 0;
350
- };
351
- var isHidden = function isHidden(node, _ref) {
352
- var displayCheck = _ref.displayCheck,
353
- getShadowRoot = _ref.getShadowRoot;
354
- if (displayCheck === 'full-native') {
355
- if ('checkVisibility' in node) {
356
- // Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4
357
- // @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility
358
- var visible = node.checkVisibility({
359
- // Checking opacity might be desirable for some use cases, but natively,
360
- // opacity zero elements _are_ focusable and tabbable.
361
- checkOpacity: false,
362
- opacityProperty: false,
363
- contentVisibilityAuto: true,
364
- visibilityProperty: true,
365
- // This is an alias for `visibilityProperty`. Contemporary browsers
366
- // support both. However, this alias has wider browser support (Chrome
367
- // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
368
- // we include it anyway.
369
- checkVisibilityCSS: true
370
- });
371
- return !visible;
372
- }
373
- // Fall through to manual visibility checks
374
- }
375
-
376
- // NOTE: visibility will be `undefined` if node is detached from the document
377
- // (see notes about this further down), which means we will consider it visible
378
- // (this is legacy behavior from a very long way back)
379
- // NOTE: we check this regardless of `displayCheck="none"` because this is a
380
- // _visibility_ check, not a _display_ check
381
- if (getComputedStyle(node).visibility === 'hidden') {
382
- return true;
383
- }
384
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
385
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
386
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
387
- return true;
388
- }
389
- if (!displayCheck || displayCheck === 'full' ||
390
- // full-native can run this branch when it falls through in case
391
- // Element#checkVisibility is unsupported
392
- displayCheck === 'full-native' || displayCheck === 'legacy-full') {
393
- if (typeof getShadowRoot === 'function') {
394
- // figure out if we should consider the node to be in an undisclosed shadow and use the
395
- // 'non-zero-area' fallback
396
- var originalNode = node;
397
- while (node) {
398
- var parentElement = node.parentElement;
399
- var rootNode = getRootNode(node);
400
- if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
401
- ) {
402
- // node has an undisclosed shadow which means we can only treat it as a black box, so we
403
- // fall back to a non-zero-area test
404
- return isZeroArea(node);
405
- } else if (node.assignedSlot) {
406
- // iterate up slot
407
- node = node.assignedSlot;
408
- } else if (!parentElement && rootNode !== node.ownerDocument) {
409
- // cross shadow boundary
410
- node = rootNode.host;
411
- } else {
412
- // iterate up normal dom
413
- node = parentElement;
414
- }
415
- }
416
- node = originalNode;
417
- }
418
- // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
419
- // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
420
- // it might be a falsy value, which means shadow DOM support is disabled
421
-
422
- // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
423
- // now we can just test to see if it would normally be visible or not, provided it's
424
- // attached to the main document.
425
- // NOTE: We must consider case where node is inside a shadow DOM and given directly to
426
- // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
427
-
428
- if (isNodeAttached(node)) {
429
- // this works wherever the node is: if there's at least one client rect, it's
430
- // somehow displayed; it also covers the CSS 'display: contents' case where the
431
- // node itself is hidden in place of its contents; and there's no need to search
432
- // up the hierarchy either
433
- return !node.getClientRects().length;
434
- }
435
-
436
- // Else, the node isn't attached to the document, which means the `getClientRects()`
437
- // API will __always__ return zero rects (this can happen, for example, if React
438
- // is used to render nodes onto a detached tree, as confirmed in this thread:
439
- // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
440
- //
441
- // It also means that even window.getComputedStyle(node).display will return `undefined`
442
- // because styles are only computed for nodes that are in the document.
443
- //
444
- // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
445
- // somehow. Though it was never stated officially, anyone who has ever used tabbable
446
- // APIs on nodes in detached containers has actually implicitly used tabbable in what
447
- // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
448
- // considering __everything__ to be visible because of the innability to determine styles.
449
- //
450
- // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
451
- // nodes as visible with the 'none' fallback.__
452
- if (displayCheck !== 'legacy-full') {
453
- return true; // hidden
454
- }
455
- // else, fallback to 'none' mode and consider the node visible
456
- } else if (displayCheck === 'non-zero-area') {
457
- // NOTE: Even though this tests that the node's client rect is non-zero to determine
458
- // whether it's displayed, and that a detached node will __always__ have a zero-area
459
- // client rect, we don't special-case for whether the node is attached or not. In
460
- // this mode, we do want to consider nodes that have a zero area to be hidden at all
461
- // times, and that includes attached or not.
462
- return isZeroArea(node);
463
- }
464
-
465
- // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
466
- // it's visible
467
- return false;
468
- };
469
-
470
- // form fields (nested) inside a disabled fieldset are not focusable/tabbable
471
- // unless they are in the _first_ <legend> element of the top-most disabled
472
- // fieldset
473
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
474
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
475
- var parentNode = node.parentElement;
476
- // check if `node` is contained in a disabled <fieldset>
477
- while (parentNode) {
478
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
479
- // look for the first <legend> among the children of the disabled <fieldset>
480
- for (var i = 0; i < parentNode.children.length; i++) {
481
- var child = parentNode.children.item(i);
482
- // when the first <legend> (in document order) is found
483
- if (child.tagName === 'LEGEND') {
484
- // if its parent <fieldset> is not nested in another disabled <fieldset>,
485
- // return whether `node` is a descendant of its first <legend>
486
- return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
487
- }
488
- }
489
- // the disabled <fieldset> containing `node` has no <legend>
490
- return true;
491
- }
492
- parentNode = parentNode.parentElement;
493
- }
494
- }
495
-
496
- // else, node's tabbable/focusable state should not be affected by a fieldset's
497
- // enabled/disabled state
498
- return false;
499
- };
500
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
501
- if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
502
- // For a details element with a summary, the summary element gets the focus
503
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
504
- return false;
505
- }
506
- return true;
507
- };
508
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
509
- if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
510
- return false;
511
- }
512
- return true;
513
- };
514
- var isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {
515
- var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
516
- if (isNaN(tabIndex) || tabIndex >= 0) {
517
- return true;
518
- }
519
- // If a custom element has an explicit negative tabindex,
520
- // browsers will not allow tab targeting said element's children.
521
- return false;
522
- };
523
-
524
- /**
525
- * @param {Array.<Element|CandidateScope>} candidates
526
- * @returns Element[]
527
- */
528
- var _sortByOrder = function sortByOrder(candidates) {
529
- var regularTabbables = [];
530
- var orderedTabbables = [];
531
- candidates.forEach(function (item, i) {
532
- var isScope = !!item.scopeParent;
533
- var element = isScope ? item.scopeParent : item;
534
- var candidateTabindex = getSortOrderTabIndex(element, isScope);
535
- var elements = isScope ? _sortByOrder(item.candidates) : element;
536
- if (candidateTabindex === 0) {
537
- isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
538
- } else {
539
- orderedTabbables.push({
540
- documentOrder: i,
541
- tabIndex: candidateTabindex,
542
- item: item,
543
- isScope: isScope,
544
- content: elements
545
- });
546
- }
547
- });
548
- return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
549
- sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
550
- return acc;
551
- }, []).concat(regularTabbables);
552
- };
553
- var tabbable = function tabbable(container, options) {
554
- options = options || {};
555
- var candidates;
556
- if (options.getShadowRoot) {
557
- candidates = _getCandidatesIteratively([container], options.includeContainer, {
558
- filter: isNodeMatchingSelectorTabbable.bind(null, options),
559
- flatten: false,
560
- getShadowRoot: options.getShadowRoot,
561
- shadowRootFilter: isShadowRootTabbable
562
- });
563
- } else {
564
- candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
565
- }
566
- return _sortByOrder(candidates);
567
- };
568
- var focusable = function focusable(container, options) {
569
- options = options || {};
570
- var candidates;
571
- if (options.getShadowRoot) {
572
- candidates = _getCandidatesIteratively([container], options.includeContainer, {
573
- filter: isNodeMatchingSelectorFocusable.bind(null, options),
574
- flatten: true,
575
- getShadowRoot: options.getShadowRoot
576
- });
577
- } else {
578
- candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
579
- }
580
- return candidates;
581
- };
582
- var isTabbable = function isTabbable(node, options) {
583
- options = options || {};
584
- if (!node) {
585
- throw new Error('No node provided');
586
- }
587
- if (matches.call(node, candidateSelector) === false) {
588
- return false;
589
- }
590
- return isNodeMatchingSelectorTabbable(options, node);
591
- };
592
- var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe:not([inert]):not([inert] *)').join(',');
593
- var isFocusable = function isFocusable(node, options) {
594
- options = options || {};
595
- if (!node) {
596
- throw new Error('No node provided');
597
- }
598
- if (matches.call(node, focusableCandidateSelector) === false) {
599
- return false;
600
- }
601
- return isNodeMatchingSelectorFocusable(options, node);
602
- };
603
-
604
- const index_esm = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
605
- __proto__: null,
606
- focusable,
607
- getTabIndex,
608
- isFocusable,
609
- isTabbable,
610
- tabbable
611
- }, Symbol.toStringTag, { value: 'Module' }));
612
-
613
17
  /*!
614
18
  * focus-trap 7.7.1
615
19
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
@@ -2453,4 +1857,4 @@ function useDrillDown() {
2453
1857
  }
2454
1858
 
2455
1859
  export { DrillDown as D, DrillDownHeader as a, DrillDownContent as b, DrillDownFooter as c, DrillDownNextButton as d, DrillDownPrevButton as e, useDrillDown as u };
2456
- //# sourceMappingURL=useDrilldown-lAdB3FFW.js.map
1860
+ //# sourceMappingURL=useDrilldown-jbU4Cs5l.js.map