@onereach/ui-components 6.2.0-beta.3320.0 → 6.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 (868) hide show
  1. package/dist/bundled/{v3/_baseAssignValue-22e630c1.js → v2/_baseAssignValue-2250dbc9.js} +1 -1
  2. package/dist/bundled/v2/{_baseIsEqual-a1cc156c.js → _baseIsEqual-fe2002b6.js} +5 -5
  3. package/dist/bundled/v2/_commonjsHelpers-1789f0cf.js +7 -0
  4. package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +1 -1
  5. package/dist/bundled/v2/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
  6. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +1 -1
  7. package/dist/bundled/v2/components/OrCode/OrCode.js +3 -3
  8. package/dist/bundled/v2/components/OrCode/index.js +3 -4
  9. package/dist/bundled/v2/components/OrCode/lang.js +3 -5
  10. package/dist/bundled/v2/components/OrCode/libs.js +3 -4
  11. package/dist/bundled/v2/components/OrCode/theme.js +1 -1
  12. package/dist/bundled/v2/components/OrCodeV3/OrCode.js +30 -46
  13. package/dist/bundled/v2/components/OrCodeV3/OrCode.vue.d.ts +3 -4
  14. package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +1 -1
  15. package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +2 -2
  16. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +3 -3
  17. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
  18. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -2
  19. package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +4 -4
  20. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
  21. package/dist/bundled/v2/components/OrFloating/OrFloating.js +1 -1
  22. package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
  23. package/dist/bundled/v2/components/OrInput/OrInput.js +1 -1
  24. package/dist/bundled/v2/components/OrList/OrList.js +8 -8
  25. package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +1 -1
  26. package/dist/bundled/v2/components/OrModal/OrModal.js +3 -1347
  27. package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
  28. package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +1 -1
  29. package/dist/bundled/v2/components/OrPassword/OrPassword.js +1 -1
  30. package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -2
  31. package/dist/bundled/v2/components/OrProgress/OrProgress.js +1 -1
  32. package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +2 -2
  33. package/dist/bundled/v2/components/OrRadio/OrRadio.js +2 -2
  34. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +11640 -0
  35. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
  36. package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +2 -0
  37. package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +2 -0
  38. package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +5 -0
  39. package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +7 -0
  40. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +6 -0
  41. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +38 -0
  42. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  43. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +42 -0
  44. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  45. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +183 -0
  46. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  47. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -0
  48. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +17 -0
  49. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +199 -0
  50. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  51. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  52. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  53. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +2 -0
  54. package/dist/bundled/v2/components/OrSearch/OrSearch.js +1 -1
  55. package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -1
  56. package/dist/bundled/v2/components/OrSelect/OrSelect.js +7 -7
  57. package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +1 -1
  58. package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -1
  59. package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +1 -1
  60. package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +1 -1
  61. package/dist/bundled/v2/components/OrSlider/OrSlider.js +2 -2
  62. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -1
  63. package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
  64. package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +1 -1
  65. package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
  66. package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
  67. package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +1 -1
  68. package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
  69. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -2
  70. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
  71. package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
  72. package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
  73. package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
  74. package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +1 -1
  75. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -1
  76. package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
  77. package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
  78. package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
  79. package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
  80. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
  81. package/dist/bundled/v2/components/OrTreeV3/OrTree.js +1 -1
  82. package/dist/bundled/v2/components/OrTreeV3/OrTree.vue.d.ts +2 -2
  83. package/dist/bundled/v2/components/index.d.ts +1 -0
  84. package/dist/bundled/v2/components/index.js +5 -4
  85. package/dist/bundled/{v3/dom-bb55b42a.js → v2/dom-cec392f3.js} +2 -2
  86. package/dist/bundled/v2/{eq-95cd2573.js → eq-44ea4d70.js} +1 -1
  87. package/dist/bundled/{v3/get-ab1b7d93.js → v2/get-34aa21f4.js} +3 -3
  88. package/dist/bundled/v2/hooks/useOverflow.js +2 -2
  89. package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
  90. package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +1 -1
  91. package/dist/bundled/v2/{index-ec92055d.js → index-06f6bbe4.js} +1 -1
  92. package/dist/bundled/{v3/index-b71d76f4.js → v2/index-0c287ab6.js} +3 -3
  93. package/dist/bundled/v2/index-1b2cfcc1.js +9715 -0
  94. package/dist/bundled/v2/{index-509d77a1.js → index-2b20f5f5.js} +2 -2
  95. package/dist/bundled/v2/{index-61aeae22.js → index-3cae2d25.js} +3 -115
  96. package/dist/bundled/{v3/index-84ea2fc8.js → v2/index-3e178101.js} +471 -32
  97. package/dist/bundled/v2/index-666dfe59.js +4048 -0
  98. package/dist/bundled/v2/index-9444e0d2.js +115 -0
  99. package/dist/bundled/v2/{index-15e8c1f3.js → index-dac0fb7c.js} +1 -1
  100. package/dist/bundled/v2/{index-5ce3ef85.js → index-de4975a3.js} +14 -3
  101. package/dist/bundled/v2/index-f671afe5.js +7127 -0
  102. package/dist/bundled/v2/index.js +7 -6
  103. package/dist/bundled/{v3/isArrayLike-e46b8eac.js → v2/isArrayLike-e7fb5cae.js} +1 -1
  104. package/dist/bundled/v2/{isEqual-44382965.js → isEqual-7a8e6106.js} +1 -1
  105. package/dist/bundled/{v3/isObject-fe8b81fd.js → v2/isObject-b7415fc1.js} +1 -1
  106. package/dist/bundled/v2/markdown-119394e1.js +15365 -0
  107. package/dist/bundled/v2/{range-6f26eda4.js → range-82efa3d4.js} +4 -4
  108. package/dist/bundled/v2/{round-f34440f4.js → round-567ede34.js} +4 -4
  109. package/dist/bundled/{v3/toFinite-74227610.js → v2/toFinite-bc59ffb0.js} +1 -1
  110. package/dist/bundled/v2/{toInteger-2fd112a9.js → toInteger-9fa0151c.js} +1 -1
  111. package/dist/bundled/{v3/toString-f3196832.js → v2/toString-b6e4472a.js} +1 -1
  112. package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-7f46b47e.js → v2/useFocusTrap-d1b2c0b4.js} +4 -100
  113. package/dist/bundled/v2/utils/functions/dom.js +2 -2
  114. package/dist/bundled/v2/utils/index.js +1 -1
  115. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-95fe92f9.js → OrAvatar.vue_vue_type_script_lang-10c2add0.js} +1 -1
  116. package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-4adbc880.js → OrBottomSheet.vue_vue_type_script_lang-aca902f2.js} +2 -2
  117. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-9d4ac135.js → OrButton.vue_vue_type_script_lang-0fb2b270.js} +1 -1
  118. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-22b24f8b.js → OrButton.vue_vue_type_script_lang-db6595f6.js} +1 -1
  119. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-ac7e801f.js → OrCardCollection.vue_vue_type_script_lang-02606ec6.js} +3 -3
  120. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3c786697.js → OrCardCollection.vue_vue_type_script_lang-bf9018d5.js} +3 -3
  121. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-576b5f5d.js → OrCheckbox.vue_vue_type_script_lang-de28fcaf.js} +1 -1
  122. package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-ca6ba786.js → OrCheckboxGroup.vue_vue_type_script_lang-2d4980de.js} +1 -1
  123. package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-d3ed803b.js → OrCheckboxTree.vue_vue_type_script_lang-8d9ed718.js} +2 -2
  124. package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-8ccf3d2d.js → OrChip.vue_vue_type_script_lang-cacd81e5.js} +1 -1
  125. package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-70be98b5.js → OrChips.vue_vue_type_script_lang-e1f37564.js} +1 -1
  126. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-8c5b4f6e.js → OrCode.vue_vue_type_script_lang-2300b956.js} +5 -5
  127. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-b46a0f8a.js → OrCode.vue_vue_type_script_lang-52b0ab4c.js} +32 -48
  128. package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-69503c45.js → OrCollapse.vue_vue_type_script_lang-be1c8c66.js} +1 -1
  129. package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-7b6d1e64.js → OrColorPicker.vue_vue_type_script_lang-95d92da0.js} +3 -3
  130. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-1c8833a9.js → OrConfirm.vue_vue_type_script_lang-19922dd5.js} +6 -6
  131. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-cd1e7075.js → OrConfirm.vue_vue_type_script_lang-4e9966f2.js} +6 -6
  132. package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-db980d2e.js → OrContextMenu.vue_vue_type_script_lang-f40c0d92.js} +1 -1
  133. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-715f99d5.js → OrDatePicker.vue_vue_type_script_lang-04273abb.js} +4 -4
  134. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-94d71788.js → OrDateTimePicker.vue_vue_type_script_lang-66b3611e.js} +5 -5
  135. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-2a292787.js → OrDateTimePicker.vue_vue_type_script_lang-73b5c809.js} +7 -7
  136. package/dist/bundled/v3/{OrDateTimePickerMonthSelect-f2744b4e.js → OrDateTimePickerMonthSelect-2ff0e8f9.js} +3 -3
  137. package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-daa7e47b.js → OrDateTimePickerPopoverHeader-135da975.js} +1 -1
  138. package/dist/bundled/v3/{OrDateTimePickerTimeSelect-96c4d657.js → OrDateTimePickerTimeSelect-fe701e75.js} +1 -1
  139. package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-d579c010.js → OrFloating.vue_vue_type_script_lang-38aa1d83.js} +1 -1
  140. package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-23dad121.js → OrIcon.vue_vue_type_script_lang-f3cbff23.js} +1 -1
  141. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-e11abdcc.js → OrIconButton.vue_vue_type_script_lang-64e7b6ab.js} +1 -1
  142. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-85c7ef74.js → OrIconButton.vue_vue_type_script_lang-f6bf7dda.js} +2 -2
  143. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-120b4dae.js → OrInlineInput.vue_vue_type_script_lang-0bdbf730.js} +1 -1
  144. package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-e5151109.js → OrInlineTextEdit.vue_vue_type_script_lang-72c9e44e.js} +4 -4
  145. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-ebe8d51d.js → OrInlineTextarea.vue_vue_type_script_lang-81430067.js} +1 -1
  146. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-7d7ad741.js → OrInput.vue_vue_type_script_lang-39d1a293.js} +2 -2
  147. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-863d3195.js → OrInput.vue_vue_type_script_lang-515ff78a.js} +2 -2
  148. package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-cb637c9e.js → OrList.vue_vue_type_script_lang-bc49c1ff.js} +11 -11
  149. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-31f604eb.js → OrListOfInputs.vue_vue_type_script_lang-3d17e3d2.js} +4 -4
  150. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-0395ad21.js → OrLoader.vue_vue_type_script_lang-0ea76e45.js} +1 -1
  151. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-97b33dae.js → OrMenu.vue_vue_type_script_lang-edc12857.js} +1 -1
  152. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-8d01d297.js → OrModal.vue_vue_type_script_lang-d2339f74.js} +2 -2
  153. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-f1e9175d.js +101 -0
  154. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-17ae96e3.js → OrNotification.vue_vue_type_script_lang-81d7cfef.js} +2 -2
  155. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-2bf01716.js → OrNotification.vue_vue_type_script_lang-8dafacd3.js} +1 -1
  156. package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-4cc194fc.js → OrNumberInput.vue_vue_type_script_lang-b832e611.js} +1 -1
  157. package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-f8e4a5b8.js → OrOverflowMenu.vue_vue_type_script_lang-0c84fa14.js} +5 -5
  158. package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-2da128a3.js → OrOverlay.vue_vue_type_script_lang-2b256188.js} +1 -1
  159. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-729c913f.js → OrPagination.vue_vue_type_script_lang-91dec212.js} +2 -2
  160. package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-e85c91c4.js → OrPassword.vue_vue_type_script_lang-9228b54e.js} +3 -3
  161. package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-3aed1b31.js → OrPopover.vue_vue_type_script_lang-2fba84de.js} +3 -3
  162. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-32e6da23.js → OrProgress.vue_vue_type_script_lang-56b4a5da.js} +2 -2
  163. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-a99362ae.js → OrProgress.vue_vue_type_script_lang-c4bd7133.js} +1 -1
  164. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-3a551734.js → OrRadio.vue_vue_type_script_lang-a4f043e9.js} +2 -2
  165. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-b01b8ae3.js +11380 -0
  166. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-8470f57f.js → OrSearch.vue_vue_type_script_lang-47c2a5b0.js} +2 -2
  167. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-57162ecf.js → OrSearch.vue_vue_type_script_lang-6a34ea7a.js} +3 -3
  168. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-e2818b8e.js → OrSelect.vue_vue_type_script_lang-0edae1cf.js} +11 -11
  169. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-d95a1d66.js → OrSelect.vue_vue_type_script_lang-8b59bb49.js} +5 -5
  170. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-81941fe6.js → OrSidebar.vue_vue_type_script_lang-bd864765.js} +1 -1
  171. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-b12bca44.js → OrSidebar.vue_vue_type_script_lang-cb96511d.js} +2 -2
  172. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-26b3cfd1.js → OrSkeletonText.vue_vue_type_script_lang-502607ef.js} +1 -1
  173. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-c2a5ab96.js → OrSkeletonText.vue_vue_type_script_lang-cfe360bb.js} +1 -1
  174. package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-1632008b.js → OrSlider.vue_vue_type_script_lang-79cca9e2.js} +3 -3
  175. package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-115be0a4.js → OrSorting.vue_vue_type_script_lang-8ea37e10.js} +2 -2
  176. package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-c7f9582b.js → OrStepper.vue_vue_type_script_lang-33639493.js} +1 -1
  177. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-a2f28112.js → OrSwitch.vue_vue_type_script_lang-fe6a5512.js} +1 -1
  178. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-e90c3291.js → OrTabs.vue_vue_type_script_lang-97da5baa.js} +2 -2
  179. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-8fc22835.js → OrTag.vue_vue_type_script_lang-62e1f5a7.js} +1 -1
  180. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-0a36cba8.js → OrTag.vue_vue_type_script_lang-b62c0b79.js} +1 -1
  181. package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-f453ac36.js → OrTagInput.vue_vue_type_script_lang-bdbe85c7.js} +2 -2
  182. package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-422cbf86.js → OrTags.vue_vue_type_script_lang-cb8c3c31.js} +3 -3
  183. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-325050eb.js → OrTextarea.vue_vue_type_script_lang-5624556c.js} +2 -2
  184. package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-5c706917.js → OrTextbox.vue_vue_type_script_lang-d0db6077.js} +3 -3
  185. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-59a1b975.js → OrTimePicker.vue_vue_type_script_lang-25e5dd01.js} +4 -4
  186. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-71a39d2d.js → OrToastContainer.vue_vue_type_script_lang-9a3e66a2.js} +1 -1
  187. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-8544ff72.js → OrToastContainer.vue_vue_type_script_lang-ad659b6a.js} +1 -1
  188. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-b201e580.js → OrTooltip.vue_vue_type_script_lang-288c978f.js} +1 -1
  189. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-fbacc740.js → OrTooltip.vue_vue_type_script_lang-c0cc67c5.js} +1 -1
  190. package/dist/bundled/v3/{OrTree.vue_vue_type_script_lang-ffd5fbc3.js → OrTree.vue_vue_type_script_lang-ce5b0577.js} +2 -2
  191. package/dist/bundled/{v2/_baseAssignValue-22e630c1.js → v3/_baseAssignValue-2250dbc9.js} +1 -1
  192. package/dist/bundled/v3/{_baseIsEqual-a1cc156c.js → _baseIsEqual-fe2002b6.js} +5 -5
  193. package/dist/bundled/v3/_commonjsHelpers-1789f0cf.js +7 -0
  194. package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +2 -2
  195. package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +26 -11
  196. package/dist/bundled/v3/components/OrAvatar/index.js +1 -1
  197. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +22 -7
  198. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
  199. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +568 -25
  200. package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.d.ts +1 -1
  201. package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
  202. package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
  203. package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +51 -16
  204. package/dist/bundled/v3/components/OrButtonV2/OrButton.js +2 -2
  205. package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +57 -20
  206. package/dist/bundled/v3/components/OrButtonV2/index.js +2 -2
  207. package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
  208. package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +35 -15
  209. package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
  210. package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +15 -7
  211. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +2 -2
  212. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +47 -21
  213. package/dist/bundled/v3/components/OrCardCollection/index.js +1 -1
  214. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
  215. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +44 -17
  216. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
  217. package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +7 -4
  218. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +2 -2
  219. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +35 -15
  220. package/dist/bundled/v3/components/OrCheckbox/index.js +1 -1
  221. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
  222. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +24 -6
  223. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +1 -1
  224. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
  225. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +43 -17
  226. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
  227. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +53 -23
  228. package/dist/bundled/v3/components/OrChip/OrChip.js +2 -2
  229. package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +25 -9
  230. package/dist/bundled/v3/components/OrChip/index.js +1 -1
  231. package/dist/bundled/v3/components/OrChips/OrChips.js +2 -2
  232. package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +51 -24
  233. package/dist/bundled/v3/components/OrChips/index.js +2 -2
  234. package/dist/bundled/v3/components/OrCode/OrCode.js +2 -2
  235. package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +69 -24
  236. package/dist/bundled/v3/components/OrCode/index.js +4 -5
  237. package/dist/bundled/v3/components/OrCode/lang.js +3 -5
  238. package/dist/bundled/v3/components/OrCode/libs.js +3 -4
  239. package/dist/bundled/v3/components/OrCode/theme.js +1 -1
  240. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
  241. package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +84 -35
  242. package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
  243. package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +2 -2
  244. package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +39 -17
  245. package/dist/bundled/v3/components/OrCollapse/index.js +1 -1
  246. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +2 -2
  247. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +31 -13
  248. package/dist/bundled/v3/components/OrColorPicker/index.js +1 -1
  249. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +30 -8
  250. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +2 -2
  251. package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +84 -23
  252. package/dist/bundled/v3/components/OrConfirm/index.js +1 -1
  253. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
  254. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +91 -30
  255. package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
  256. package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
  257. package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.vue.d.ts +27 -13
  258. package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
  259. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
  260. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +83 -88
  261. package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
  262. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +2 -2
  263. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +177 -68
  264. package/dist/bundled/v3/components/OrDateTimePicker/index.js +1 -1
  265. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
  266. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +109 -94
  267. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +1 -1
  268. package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +28 -11
  269. package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +8 -4
  270. package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +7 -4
  271. package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +18 -9
  272. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -2
  273. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +39 -16
  274. package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
  275. package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +20 -8
  276. package/dist/bundled/v3/components/OrFloating/OrFloating.js +2 -2
  277. package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +46 -15
  278. package/dist/bundled/v3/components/OrFloating/index.js +1 -1
  279. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +30 -10
  280. package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +8 -4
  281. package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +18 -9
  282. package/dist/bundled/v3/components/OrIcon/OrIcon.js +2 -2
  283. package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +44 -16
  284. package/dist/bundled/v3/components/OrIcon/index.js +1 -1
  285. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +2 -2
  286. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +43 -13
  287. package/dist/bundled/v3/components/OrIconButtonV2/index.js +1 -1
  288. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
  289. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +54 -16
  290. package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
  291. package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +18 -7
  292. package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +16 -7
  293. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
  294. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +83 -39
  295. package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
  296. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
  297. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +95 -43
  298. package/dist/bundled/v3/components/OrInlineTextEdit/index.js +1 -1
  299. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
  300. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +79 -39
  301. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
  302. package/dist/bundled/v3/components/OrInput/OrInput.js +2 -2
  303. package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +87 -36
  304. package/dist/bundled/v3/components/OrInput/index.js +1 -1
  305. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +22 -7
  306. package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
  307. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +88 -38
  308. package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
  309. package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +20 -9
  310. package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +26 -9
  311. package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +24 -7
  312. package/dist/bundled/v3/components/OrList/OrList.js +2 -2
  313. package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +47 -21
  314. package/dist/bundled/v3/components/OrList/index.js +1 -1
  315. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +2 -2
  316. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +27 -11
  317. package/dist/bundled/v3/components/OrListOfInputs/index.js +1 -1
  318. package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +26 -10
  319. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +2 -2
  320. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +34 -13
  321. package/dist/bundled/v3/components/OrLoaderV3/index.js +1 -1
  322. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +34 -13
  323. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
  324. package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +33 -15
  325. package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
  326. package/dist/bundled/v3/components/OrModal/OrModal.js +2 -2
  327. package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +38 -14
  328. package/dist/bundled/v3/components/OrModal/index.js +1 -1
  329. package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
  330. package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +25 -13
  331. package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
  332. package/dist/bundled/v3/components/OrNotification/OrNotification.js +2 -2
  333. package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +27 -9
  334. package/dist/bundled/v3/components/OrNotification/index.js +1 -1
  335. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
  336. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +20 -9
  337. package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
  338. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +2 -2
  339. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +70 -24
  340. package/dist/bundled/v3/components/OrNumberInput/index.js +1 -1
  341. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
  342. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +31 -13
  343. package/dist/bundled/v3/components/OrOverflowMenu/index.js +1 -1
  344. package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +16 -6
  345. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
  346. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +14 -7
  347. package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
  348. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
  349. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +75 -27
  350. package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
  351. package/dist/bundled/v3/components/OrPassword/OrPassword.js +2 -2
  352. package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +63 -22
  353. package/dist/bundled/v3/components/OrPassword/index.js +1 -1
  354. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
  355. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +92 -32
  356. package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
  357. package/dist/bundled/v3/components/OrProgress/OrProgress.js +2 -2
  358. package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +56 -20
  359. package/dist/bundled/v3/components/OrProgress/index.js +1 -1
  360. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
  361. package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +62 -25
  362. package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
  363. package/dist/bundled/v3/components/OrRadio/OrRadio.js +2 -2
  364. package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +35 -13
  365. package/dist/bundled/v3/components/OrRadio/index.js +1 -1
  366. package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +26 -9
  367. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +32 -6
  368. package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +49 -21
  369. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +202 -0
  370. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
  371. package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +2 -0
  372. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +2 -0
  373. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +5 -0
  374. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +7 -0
  375. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +6 -0
  376. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +38 -0
  377. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  378. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +42 -0
  379. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  380. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +183 -0
  381. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  382. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -0
  383. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +17 -0
  384. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +199 -0
  385. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  386. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  387. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  388. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +2 -0
  389. package/dist/bundled/v3/components/OrSearch/OrSearch.js +2 -2
  390. package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +65 -23
  391. package/dist/bundled/v3/components/OrSearch/index.js +1 -1
  392. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
  393. package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +41 -17
  394. package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
  395. package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +25 -9
  396. package/dist/bundled/v3/components/OrSelect/OrSelect.js +2 -2
  397. package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +77 -28
  398. package/dist/bundled/v3/components/OrSelect/index.js +1 -1
  399. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
  400. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +133 -44
  401. package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
  402. package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +2 -2
  403. package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +33 -14
  404. package/dist/bundled/v3/components/OrSidebar/index.js +1 -1
  405. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
  406. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +63 -28
  407. package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
  408. package/dist/bundled/v3/components/OrSkeleton/index.js +1 -1
  409. package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +20 -9
  410. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +28 -13
  411. package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +22 -9
  412. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +26 -11
  413. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +2 -2
  414. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +26 -10
  415. package/dist/bundled/v3/components/OrSkeletonText/index.js +1 -1
  416. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +2 -2
  417. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +40 -16
  418. package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +1 -1
  419. package/dist/bundled/v3/components/OrSkeletonV3/index.js +1 -1
  420. package/dist/bundled/v3/components/OrSlider/OrSlider.js +2 -2
  421. package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +91 -35
  422. package/dist/bundled/v3/components/OrSlider/index.js +1 -1
  423. package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
  424. package/dist/bundled/v3/components/OrSortingV3/OrSorting.vue.d.ts +45 -13
  425. package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
  426. package/dist/bundled/v3/components/OrStepper/OrStepper.js +2 -2
  427. package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +43 -16
  428. package/dist/bundled/v3/components/OrStepper/index.js +1 -1
  429. package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +33 -12
  430. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +2 -2
  431. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +53 -22
  432. package/dist/bundled/v3/components/OrSwitchV3/index.js +1 -1
  433. package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +22 -9
  434. package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +29 -13
  435. package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +17 -10
  436. package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +17 -4
  437. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
  438. package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +73 -26
  439. package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
  440. package/dist/bundled/v3/components/OrTag/OrTag.js +2 -2
  441. package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +27 -10
  442. package/dist/bundled/v3/components/OrTag/index.js +1 -1
  443. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
  444. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +85 -37
  445. package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
  446. package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
  447. package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +23 -12
  448. package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
  449. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
  450. package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +68 -23
  451. package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
  452. package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +10 -4
  453. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +10 -4
  454. package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +24 -11
  455. package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +2 -2
  456. package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +85 -37
  457. package/dist/bundled/v3/components/OrTextarea/index.js +1 -1
  458. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +73 -32
  459. package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +2 -2
  460. package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +137 -55
  461. package/dist/bundled/v3/components/OrTextbox/index.js +1 -1
  462. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
  463. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +83 -88
  464. package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
  465. package/dist/bundled/v3/components/OrToast/OrToast.js +2 -2
  466. package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +31 -11
  467. package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
  468. package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
  469. package/dist/bundled/v3/components/OrToast/index.js +1 -1
  470. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +2 -2
  471. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +55 -25
  472. package/dist/bundled/v3/components/OrToastContainer/index.js +1 -1
  473. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
  474. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +54 -24
  475. package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
  476. package/dist/bundled/v3/components/OrToastV3/OrToast.js +2 -2
  477. package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +38 -16
  478. package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
  479. package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
  480. package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
  481. package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +2 -2
  482. package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +33 -14
  483. package/dist/bundled/v3/components/OrTooltip/index.js +1 -1
  484. package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +10 -4
  485. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
  486. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +33 -15
  487. package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
  488. package/dist/bundled/v3/components/OrTreeV3/OrTree.js +2 -2
  489. package/dist/bundled/v3/components/OrTreeV3/OrTree.vue.d.ts +19 -13
  490. package/dist/bundled/v3/components/OrTreeV3/index.js +1 -1
  491. package/dist/bundled/v3/components/index.d.ts +1 -0
  492. package/dist/bundled/v3/components/index.js +78 -77
  493. package/dist/bundled/v3/directives/dropdown-close.d.ts +1 -3
  494. package/dist/bundled/v3/directives/dropdown-open.d.ts +1 -3
  495. package/dist/bundled/{v2/dom-bb55b42a.js → v3/dom-cec392f3.js} +2 -2
  496. package/dist/bundled/v3/{eq-95cd2573.js → eq-44ea4d70.js} +1 -1
  497. package/dist/bundled/{v2/get-ab1b7d93.js → v3/get-34aa21f4.js} +3 -3
  498. package/dist/bundled/v3/hooks/useOverflow.js +2 -2
  499. package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
  500. package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  501. package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +1 -1
  502. package/dist/bundled/v3/{index-929e224a.js → index-0a01982b.js} +2 -2
  503. package/dist/bundled/{v2/index-5ee42d1f.js → v3/index-0c287ab6.js} +3 -3
  504. package/dist/bundled/v3/index-1b2cfcc1.js +9715 -0
  505. package/dist/bundled/v3/{index-929b54f2.js → index-3cae2d25.js} +3 -115
  506. package/dist/bundled/{v2/index-5dd41049.js → v3/index-3e178101.js} +471 -32
  507. package/dist/bundled/v3/{index-f4d8e24c.js → index-40b35d94.js} +1 -1
  508. package/dist/bundled/v3/index-666dfe59.js +4048 -0
  509. package/dist/bundled/v3/{index-500b3ace.js → index-749f3444.js} +1 -1
  510. package/dist/bundled/v3/index-9444e0d2.js +115 -0
  511. package/dist/bundled/v3/{index-f92296d7.js → index-de4975a3.js} +14 -3
  512. package/dist/bundled/v3/index-f671afe5.js +7127 -0
  513. package/dist/bundled/v3/index.js +81 -79
  514. package/dist/bundled/{v2/isArrayLike-e46b8eac.js → v3/isArrayLike-e7fb5cae.js} +1 -1
  515. package/dist/bundled/v3/{isEqual-44382965.js → isEqual-7a8e6106.js} +1 -1
  516. package/dist/bundled/{v2/isObject-fe8b81fd.js → v3/isObject-b7415fc1.js} +1 -1
  517. package/dist/bundled/v3/markdown-119394e1.js +15365 -0
  518. package/dist/bundled/v3/{range-6f26eda4.js → range-82efa3d4.js} +4 -4
  519. package/dist/bundled/v3/{round-f34440f4.js → round-567ede34.js} +4 -4
  520. package/dist/bundled/{v2/toFinite-74227610.js → v3/toFinite-bc59ffb0.js} +1 -1
  521. package/dist/bundled/v3/{toInteger-2fd112a9.js → toInteger-9fa0151c.js} +1 -1
  522. package/dist/bundled/{v2/toString-f3196832.js → v3/toString-b6e4472a.js} +1 -1
  523. package/dist/bundled/v3/useFocusTrap-2302b843.js +1349 -0
  524. package/dist/bundled/v3/utils/functions/dom.js +2 -2
  525. package/dist/bundled/v3/utils/index.js +1 -1
  526. package/dist/esm/v2/{OrCardCollection-63ab1dc4.js → OrCardCollection-c27ae76f.js} +3 -3
  527. package/dist/esm/v2/{OrCode-adb9790d.js → OrCode-4501e2df.js} +36 -50
  528. package/dist/esm/v2/{OrConfirm-f92dc7b5.js → OrConfirm-4841e1eb.js} +1 -1
  529. package/dist/esm/v2/{OrContextMenu-abf0c884.js → OrContextMenu-01efdb43.js} +2 -2
  530. package/dist/esm/v2/{OrDatePicker-c93e57ae.js → OrDatePicker-528b55ec.js} +3 -3
  531. package/dist/esm/v2/{OrDateTimePicker-0bbe653c.js → OrDateTimePicker-80bd401a.js} +1 -1
  532. package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-353b70fe.js → OrDateTimePicker.vue_rollup-plugin-vue_script-8e987b8d.js} +3 -3
  533. package/dist/esm/v2/{OrDateTimePickerPopoverHeader-6a40de37.js → OrDateTimePickerPopoverHeader-835e4e49.js} +3 -3
  534. package/dist/esm/v2/{OrIconButton-996aba66.js → OrIconButton-6eda233c.js} +2 -2
  535. package/dist/esm/v2/{OrInlineInput-c3329db5.js → OrInlineInput-9f88fff9.js} +1 -1
  536. package/dist/esm/v2/{OrInlineTextarea-e9de4f1e.js → OrInlineTextarea-03e8b8a6.js} +1 -1
  537. package/dist/esm/v2/{OrInput-0d01816c.js → OrInput-54abe165.js} +1 -1
  538. package/dist/esm/v2/{OrMenu-c7b05c91.js → OrMenu-c2c6473f.js} +1 -1
  539. package/dist/esm/v2/{OrModal-c6c922fd.js → OrModal-8ea08182.js} +1 -1
  540. package/dist/esm/v2/{OrNotification-c119fcff.js → OrNotification-9875c55d.js} +1 -1
  541. package/dist/esm/v2/{OrPagination-3f1b7a65.js → OrPagination-c5058980.js} +2 -2
  542. package/dist/esm/v2/{OrPopover-58fefa76.js → OrPopover-f6114169.js} +1 -1
  543. package/dist/esm/v2/OrRichTextEditor-6fb5d647.js +981 -0
  544. package/dist/esm/v2/{OrSearch-175c25d3.js → OrSearch-8a834099.js} +1 -1
  545. package/dist/esm/v2/{OrSelect-85acd45f.js → OrSelect-cd37db8d.js} +4 -4
  546. package/dist/esm/v2/{OrSidebar-055f2c89.js → OrSidebar-a5608742.js} +1 -1
  547. package/dist/esm/v2/{OrSidebarCollapseButton-12d111c5.js → OrSidebarCollapseButton-c999d09a.js} +1 -1
  548. package/dist/esm/v2/{OrSorting-b350c4d3.js → OrSorting-82557def.js} +2 -2
  549. package/dist/esm/v2/{OrTabs-f736863c.js → OrTabs-92ccb30f.js} +2 -2
  550. package/dist/esm/v2/{OrTag-8ec63b23.js → OrTag-15cd89e8.js} +1 -1
  551. package/dist/esm/v2/{OrTagInput-7088d62f.js → OrTagInput-f443f295.js} +2 -2
  552. package/dist/esm/v2/{OrTags-5ad71efd.js → OrTags-b34c628e.js} +2 -2
  553. package/dist/esm/v2/{OrTimePicker-3d65dc1b.js → OrTimePicker-e711a256.js} +4 -4
  554. package/dist/esm/v2/{OrTooltip-17f8a7ff.js → OrTooltip-a4e679bb.js} +1 -1
  555. package/dist/esm/v2/codemirrorView-020fe885.js +357 -0
  556. package/dist/esm/v2/components/index.d.ts +1 -0
  557. package/dist/esm/v2/components/index.js +53 -29
  558. package/dist/esm/v2/components/or-card-collection-v3/index.js +8 -8
  559. package/dist/esm/v2/components/or-code-v3/OrCode.vue.d.ts +3 -4
  560. package/dist/esm/v2/components/or-code-v3/index.js +14 -9
  561. package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
  562. package/dist/esm/v2/components/or-context-menu-v3/index.js +3 -3
  563. package/dist/esm/v2/components/or-date-picker-v3/index.js +6 -6
  564. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +7 -7
  565. package/dist/esm/v2/components/or-icon-button-v3/index.js +3 -3
  566. package/dist/esm/v2/components/or-inline-input-v3/index.js +4 -4
  567. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +4 -4
  568. package/dist/esm/v2/components/or-input-v3/index.js +4 -4
  569. package/dist/esm/v2/components/or-menu-v3/index.js +2 -2
  570. package/dist/esm/v2/components/or-modal-v3/index.js +4 -4
  571. package/dist/esm/v2/components/or-notification-v3/index.js +4 -4
  572. package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
  573. package/dist/esm/v2/components/or-popover-v3/index.js +1 -1
  574. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
  575. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +2 -0
  576. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +67 -0
  577. package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +5 -0
  578. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  579. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  580. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  581. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  582. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +9 -0
  583. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +17 -0
  584. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  585. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  586. package/dist/esm/v2/components/or-search-v3/index.js +5 -5
  587. package/dist/esm/v2/components/or-select-v3/index.js +6 -6
  588. package/dist/esm/v2/components/or-sidebar-v3/index.js +5 -5
  589. package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +4 -4
  590. package/dist/esm/v2/components/or-sorting-v3/index.js +3 -3
  591. package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
  592. package/dist/esm/v2/components/or-tag-input-v3/index.js +6 -6
  593. package/dist/esm/v2/components/or-tag-v3/index.js +4 -4
  594. package/dist/esm/v2/components/or-tags-v3/index.js +5 -5
  595. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
  596. package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
  597. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
  598. package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
  599. package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
  600. package/dist/esm/v2/components/or-time-picker-v3/index.js +7 -7
  601. package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
  602. package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
  603. package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
  604. package/dist/esm/v2/components/or-toast-v3/index.js +4 -4
  605. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
  606. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +4 -4
  607. package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
  608. package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
  609. package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
  610. package/dist/esm/v2/components/or-tooltip-v3/index.js +2 -2
  611. package/dist/esm/v2/components/or-tree-v3/OrTree.vue.d.ts +2 -2
  612. package/dist/esm/v2/index.js +53 -29
  613. package/dist/esm/v2/{types-b3ec7224.js → types-635157b1.js} +1 -1
  614. package/dist/esm/v3/{OrCardCollection-2b5f1d79.js → OrCardCollection-bddf72ef.js} +3 -3
  615. package/dist/esm/v3/{OrCode-5457417e.js → OrCode-a63c3a7b.js} +36 -50
  616. package/dist/esm/v3/{OrConfirm-bf771b4d.js → OrConfirm-d304e9a4.js} +1 -1
  617. package/dist/esm/v3/{OrContextMenu-2d8d26e9.js → OrContextMenu-bf1e07ae.js} +2 -2
  618. package/dist/esm/v3/{OrDatePicker-88b59005.js → OrDatePicker-87aef206.js} +3 -3
  619. package/dist/esm/v3/{OrDateTimePicker-f9e46f7e.js → OrDateTimePicker-738f9cd3.js} +3 -3
  620. package/dist/esm/v3/{OrDateTimePickerPopoverHeader-d3058267.js → OrDateTimePickerPopoverHeader-03ae7d09.js} +3 -3
  621. package/dist/esm/v3/{OrIconButton-c72e1a04.js → OrIconButton-a69c7775.js} +2 -2
  622. package/dist/esm/v3/{OrInlineInput-19a4ac87.js → OrInlineInput-246d88ca.js} +1 -1
  623. package/dist/esm/v3/{OrInlineTextarea-0853564b.js → OrInlineTextarea-c9febb84.js} +1 -1
  624. package/dist/esm/v3/{OrInput-7729da3b.js → OrInput-e12b0489.js} +1 -1
  625. package/dist/esm/v3/{OrMenu-3bcc528b.js → OrMenu-9a82f18f.js} +1 -1
  626. package/dist/esm/v3/{OrModal-fb37e638.js → OrModal-fc3bb76e.js} +1 -1
  627. package/dist/esm/v3/{OrNotification-5d385b61.js → OrNotification-c8cd9f3d.js} +1 -1
  628. package/dist/esm/v3/{OrPagination-d7acbb6b.js → OrPagination-cc0b041a.js} +2 -2
  629. package/dist/esm/v3/{OrPopover-2132e8b9.js → OrPopover-7b2af064.js} +1 -1
  630. package/dist/esm/v3/OrRichTextEditor-d21645c2.js +913 -0
  631. package/dist/esm/v3/{OrSearch-16664742.js → OrSearch-bc259374.js} +1 -1
  632. package/dist/esm/v3/{OrSelect-9001a22a.js → OrSelect-a7d3c84d.js} +4 -4
  633. package/dist/esm/v3/{OrSidebar-83432ba3.js → OrSidebar-8837a93e.js} +1 -1
  634. package/dist/esm/v3/{OrSidebarCollapseButton-463aa3a0.js → OrSidebarCollapseButton-f44951ac.js} +1 -1
  635. package/dist/esm/v3/{OrSorting-aa200e88.js → OrSorting-6baec1ab.js} +2 -2
  636. package/dist/esm/v3/{OrTabs-63ce33ae.js → OrTabs-2ab1aefa.js} +2 -2
  637. package/dist/esm/v3/{OrTag-5d7c0e75.js → OrTag-2a3d7293.js} +1 -1
  638. package/dist/esm/v3/{OrTagInput-649f9b50.js → OrTagInput-ccb72239.js} +2 -2
  639. package/dist/esm/v3/{OrTags-cb152033.js → OrTags-69e90412.js} +2 -2
  640. package/dist/esm/v3/{OrTimePicker-f942db00.js → OrTimePicker-a3870a62.js} +4 -4
  641. package/dist/esm/v3/{OrTooltip-ad6e08ab.js → OrTooltip-5bf6890a.js} +1 -1
  642. package/dist/esm/v3/codemirrorView-020fe885.js +357 -0
  643. package/dist/esm/v3/components/index.d.ts +1 -0
  644. package/dist/esm/v3/components/index.js +52 -28
  645. package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +26 -11
  646. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +22 -7
  647. package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +568 -25
  648. package/dist/esm/v3/components/or-bottom-sheet-v3/hooks/useBottomSheetSwipeState.d.ts +1 -1
  649. package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +51 -16
  650. package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +57 -20
  651. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +35 -15
  652. package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +15 -7
  653. package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +47 -21
  654. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +44 -17
  655. package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -8
  656. package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +14 -6
  657. package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +7 -4
  658. package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +35 -15
  659. package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +24 -6
  660. package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +43 -17
  661. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +53 -23
  662. package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +51 -24
  663. package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +25 -9
  664. package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +37 -17
  665. package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +69 -24
  666. package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +84 -35
  667. package/dist/esm/v3/components/or-code-v3/index.js +14 -9
  668. package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +39 -17
  669. package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +31 -13
  670. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +30 -8
  671. package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +84 -23
  672. package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +91 -30
  673. package/dist/esm/v3/components/or-confirm-v3/index.js +5 -5
  674. package/dist/esm/v3/components/or-context-menu-v3/OrContextMenu.vue.d.ts +27 -13
  675. package/dist/esm/v3/components/or-context-menu-v3/index.js +3 -3
  676. package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +83 -88
  677. package/dist/esm/v3/components/or-date-picker-v3/index.js +6 -6
  678. package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +177 -68
  679. package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +33 -12
  680. package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +109 -94
  681. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +6 -6
  682. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +28 -11
  683. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +39 -17
  684. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +15 -7
  685. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +85 -23
  686. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +17 -9
  687. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +7 -4
  688. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +30 -11
  689. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +43 -17
  690. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +28 -11
  691. package/dist/esm/v3/components/or-error/OrError.vue.d.ts +8 -4
  692. package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +7 -4
  693. package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +18 -9
  694. package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +39 -16
  695. package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +20 -8
  696. package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +46 -15
  697. package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +30 -10
  698. package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +8 -4
  699. package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +18 -9
  700. package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +44 -16
  701. package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +43 -13
  702. package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +10 -8
  703. package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +54 -16
  704. package/dist/esm/v3/components/or-icon-button-v3/index.js +3 -3
  705. package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +18 -7
  706. package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +16 -7
  707. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +83 -39
  708. package/dist/esm/v3/components/or-inline-input-v3/index.js +4 -4
  709. package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +95 -43
  710. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +79 -39
  711. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +4 -4
  712. package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +87 -36
  713. package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +22 -7
  714. package/dist/esm/v3/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +18 -7
  715. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +88 -38
  716. package/dist/esm/v3/components/or-input-v3/index.js +4 -4
  717. package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +20 -9
  718. package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +26 -9
  719. package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +24 -7
  720. package/dist/esm/v3/components/or-list/OrList.vue.d.ts +47 -21
  721. package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +27 -11
  722. package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +26 -10
  723. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +34 -13
  724. package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +34 -13
  725. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +33 -15
  726. package/dist/esm/v3/components/or-menu-v3/index.js +2 -2
  727. package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +38 -14
  728. package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +25 -13
  729. package/dist/esm/v3/components/or-modal-v3/index.js +4 -4
  730. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +7 -4
  731. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +7 -4
  732. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +11 -6
  733. package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +27 -9
  734. package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +20 -9
  735. package/dist/esm/v3/components/or-notification-v3/index.js +4 -4
  736. package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +70 -24
  737. package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +31 -13
  738. package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +23 -7
  739. package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +16 -6
  740. package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +14 -7
  741. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +75 -27
  742. package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
  743. package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +63 -22
  744. package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +92 -32
  745. package/dist/esm/v3/components/or-popover-v3/index.js +1 -1
  746. package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +56 -20
  747. package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +62 -25
  748. package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +35 -13
  749. package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +26 -9
  750. package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +32 -6
  751. package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +49 -21
  752. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
  753. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +2 -0
  754. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +65 -0
  755. package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +5 -0
  756. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  757. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  758. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  759. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  760. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +9 -0
  761. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +17 -0
  762. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  763. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  764. package/dist/esm/v3/components/or-search/OrSearch.vue.d.ts +65 -23
  765. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +41 -17
  766. package/dist/esm/v3/components/or-search-v3/index.js +5 -5
  767. package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +25 -9
  768. package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +20 -8
  769. package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +77 -28
  770. package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +49 -18
  771. package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +16 -4
  772. package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +67 -13
  773. package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +41 -16
  774. package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +35 -16
  775. package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +71 -24
  776. package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +19 -7
  777. package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +24 -11
  778. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +133 -44
  779. package/dist/esm/v3/components/or-select-v3/index.js +6 -6
  780. package/dist/esm/v3/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue.d.ts +14 -7
  781. package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +33 -14
  782. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +63 -28
  783. package/dist/esm/v3/components/or-sidebar-v3/index.js +5 -5
  784. package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +4 -4
  785. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +23 -10
  786. package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +20 -9
  787. package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +22 -9
  788. package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +26 -10
  789. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +28 -13
  790. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +26 -11
  791. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +40 -16
  792. package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +91 -35
  793. package/dist/esm/v3/components/or-sorting-v3/OrSorting.vue.d.ts +45 -13
  794. package/dist/esm/v3/components/or-sorting-v3/index.js +3 -3
  795. package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +43 -16
  796. package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +20 -4
  797. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +26 -4
  798. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +26 -4
  799. package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +22 -6
  800. package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +12 -6
  801. package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +33 -12
  802. package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +53 -22
  803. package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +22 -9
  804. package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +29 -13
  805. package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +17 -10
  806. package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +17 -4
  807. package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +73 -26
  808. package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
  809. package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +27 -10
  810. package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +85 -37
  811. package/dist/esm/v3/components/or-tag-input-v3/index.js +6 -6
  812. package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +23 -12
  813. package/dist/esm/v3/components/or-tag-v3/index.js +4 -4
  814. package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +68 -23
  815. package/dist/esm/v3/components/or-tags-v3/index.js +5 -5
  816. package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +10 -4
  817. package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +10 -4
  818. package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +24 -11
  819. package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +85 -37
  820. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +73 -32
  821. package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +137 -55
  822. package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +83 -88
  823. package/dist/esm/v3/components/or-time-picker-v3/index.js +7 -7
  824. package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +31 -11
  825. package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +55 -25
  826. package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +38 -16
  827. package/dist/esm/v3/components/or-toast-v3/index.js +4 -4
  828. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +54 -24
  829. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +4 -4
  830. package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +33 -14
  831. package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +10 -4
  832. package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +33 -15
  833. package/dist/esm/v3/components/or-tooltip-v3/index.js +2 -2
  834. package/dist/esm/v3/components/or-tree-v3/OrTree.vue.d.ts +19 -13
  835. package/dist/esm/v3/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +63 -31
  836. package/dist/esm/v3/directives/dropdown-close.d.ts +1 -3
  837. package/dist/esm/v3/directives/dropdown-open.d.ts +1 -3
  838. package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  839. package/dist/esm/v3/index.js +52 -28
  840. package/dist/esm/v3/{types-777d6e58.js → types-c4c1e2cc.js} +1 -1
  841. package/package.json +24 -4
  842. package/src/components/index.ts +1 -0
  843. package/src/components/or-code-v3/OrCode.vue +50 -64
  844. package/src/components/or-popover-v3/OrPopover.vue +1 -1
  845. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +745 -0
  846. package/src/components/or-rich-text-editor-v3/index.ts +2 -0
  847. package/src/components/or-rich-text-editor-v3/props.ts +6 -0
  848. package/src/components/or-rich-text-editor-v3/styles.ts +53 -0
  849. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
  850. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +254 -0
  851. package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
  852. package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +238 -0
  853. package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
  854. package/src/components/or-rich-text-editor-v3/utils/markdown.ts +172 -0
  855. package/dist/bundled/v2/index-648acd9e.js +0 -1598
  856. package/dist/bundled/v2/index-64a3a364.js +0 -759
  857. package/dist/bundled/v2/index-c26082b9.js +0 -1892
  858. package/dist/bundled/v2/index-e72fe4a8.js +0 -361
  859. package/dist/bundled/v2/index-f31843f4.js +0 -94
  860. package/dist/bundled/v3/index-19d70079.js +0 -94
  861. package/dist/bundled/v3/index-22f7d3aa.js +0 -759
  862. package/dist/bundled/v3/index-792c62f6.js +0 -361
  863. package/dist/bundled/v3/index-bb6d92dd.js +0 -1892
  864. package/dist/bundled/v3/index-df2529d7.js +0 -1598
  865. /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-e7037d50.js → OrDateTimePickerMonthSelect-c329e727.js} +0 -0
  866. /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-2c7e113b.js → OrDateTimePickerPopoverHeader-146c2f16.js} +0 -0
  867. /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-7fd83e23.js → OrDateTimePickerTimeSelect-7286977a.js} +0 -0
  868. /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-de05b51f.js → OrExpansionPanel.vue_vue_type_script_lang-94976ae9.js} +0 -0
@@ -0,0 +1,1349 @@
1
+ import { l as unrefElement } from './index-0a01982b.js';
2
+ import { ref, watch } from 'vue-demi';
3
+ import { d as tryOnScopeDispose } from './index-40b35d94.js';
4
+
5
+ /*!
6
+ * tabbable 6.1.2
7
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
8
+ */
9
+ // NOTE: separate `:not()` selectors has broader browser support than the newer
10
+ // `:not([inert], [inert] *)` (Feb 2023)
11
+ // CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes
12
+ // the entire query to fail, resulting in no nodes found, which will break a lot
13
+ // of things... so we have to rely on JS to identify nodes inside an inert container
14
+ var candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];
15
+ var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
16
+ var NoElement = typeof Element === 'undefined';
17
+ var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
18
+ var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
19
+ var _element$getRootNode;
20
+ return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
21
+ } : function (element) {
22
+ return element === null || element === void 0 ? void 0 : element.ownerDocument;
23
+ };
24
+
25
+ /**
26
+ * Determines if a node is inert or in an inert ancestor.
27
+ * @param {Element} [node]
28
+ * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
29
+ * see if any of them are inert. If false, only `node` itself is considered.
30
+ * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
31
+ * False if `node` is falsy.
32
+ */
33
+ var isInert = function isInert(node, lookUp) {
34
+ var _node$getAttribute;
35
+ if (lookUp === void 0) {
36
+ lookUp = true;
37
+ }
38
+ // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
39
+ // JS API property; we have to check the attribute, which can either be empty or 'true';
40
+ // if it's `null` (not specified) or 'false', it's an active element
41
+ 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');
42
+ var inert = inertAtt === '' || inertAtt === 'true';
43
+
44
+ // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
45
+ // if it weren't for `matches()` not being a function on shadow roots; the following
46
+ // code works for any kind of node
47
+ // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
48
+ // so it likely would not support `:is([inert] *)` either...
49
+ var result = inert || lookUp && node && isInert(node.parentNode); // recursive
50
+
51
+ return result;
52
+ };
53
+
54
+ /**
55
+ * Determines if a node's content is editable.
56
+ * @param {Element} [node]
57
+ * @returns True if it's content-editable; false if it's not or `node` is falsy.
58
+ */
59
+ var isContentEditable = function isContentEditable(node) {
60
+ var _node$getAttribute2;
61
+ // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
62
+ // to use the attribute directly to check for this, which can either be empty or 'true';
63
+ // if it's `null` (not specified) or 'false', it's a non-editable element
64
+ 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');
65
+ return attValue === '' || attValue === 'true';
66
+ };
67
+
68
+ /**
69
+ * @param {Element} el container to check in
70
+ * @param {boolean} includeContainer add container to check
71
+ * @param {(node: Element) => boolean} filter filter candidates
72
+ * @returns {Element[]}
73
+ */
74
+ var getCandidates = function getCandidates(el, includeContainer, filter) {
75
+ // even if `includeContainer=false`, we still have to check it for inertness because
76
+ // if it's inert, all its children are inert
77
+ if (isInert(el)) {
78
+ return [];
79
+ }
80
+ var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
81
+ if (includeContainer && matches.call(el, candidateSelector)) {
82
+ candidates.unshift(el);
83
+ }
84
+ candidates = candidates.filter(filter);
85
+ return candidates;
86
+ };
87
+
88
+ /**
89
+ * @callback GetShadowRoot
90
+ * @param {Element} element to check for shadow root
91
+ * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
92
+ */
93
+
94
+ /**
95
+ * @callback ShadowRootFilter
96
+ * @param {Element} shadowHostNode the element which contains shadow content
97
+ * @returns {boolean} true if a shadow root could potentially contain valid candidates.
98
+ */
99
+
100
+ /**
101
+ * @typedef {Object} CandidateScope
102
+ * @property {Element} scopeParent contains inner candidates
103
+ * @property {Element[]} candidates list of candidates found in the scope parent
104
+ */
105
+
106
+ /**
107
+ * @typedef {Object} IterativeOptions
108
+ * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
109
+ * if a function, implies shadow support is enabled and either returns the shadow root of an element
110
+ * or a boolean stating if it has an undisclosed shadow root
111
+ * @property {(node: Element) => boolean} filter filter candidates
112
+ * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
113
+ * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
114
+ */
115
+
116
+ /**
117
+ * @param {Element[]} elements list of element containers to match candidates from
118
+ * @param {boolean} includeContainer add container list to check
119
+ * @param {IterativeOptions} options
120
+ * @returns {Array.<Element|CandidateScope>}
121
+ */
122
+ var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
123
+ var candidates = [];
124
+ var elementsToCheck = Array.from(elements);
125
+ while (elementsToCheck.length) {
126
+ var element = elementsToCheck.shift();
127
+ if (isInert(element, false)) {
128
+ // no need to look up since we're drilling down
129
+ // anything inside this container will also be inert
130
+ continue;
131
+ }
132
+ if (element.tagName === 'SLOT') {
133
+ // add shadow dom slot scope (slot itself cannot be focusable)
134
+ var assigned = element.assignedElements();
135
+ var content = assigned.length ? assigned : element.children;
136
+ var nestedCandidates = getCandidatesIteratively(content, true, options);
137
+ if (options.flatten) {
138
+ candidates.push.apply(candidates, nestedCandidates);
139
+ } else {
140
+ candidates.push({
141
+ scopeParent: element,
142
+ candidates: nestedCandidates
143
+ });
144
+ }
145
+ } else {
146
+ // check candidate element
147
+ var validCandidate = matches.call(element, candidateSelector);
148
+ if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
149
+ candidates.push(element);
150
+ }
151
+
152
+ // iterate over shadow content if possible
153
+ var shadowRoot = element.shadowRoot ||
154
+ // check for an undisclosed shadow
155
+ typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
156
+
157
+ // no inert look up because we're already drilling down and checking for inertness
158
+ // on the way down, so all containers to this root node should have already been
159
+ // vetted as non-inert
160
+ var validShadowRoot = !isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
161
+ if (shadowRoot && validShadowRoot) {
162
+ // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
163
+ // shadow exists, so look at light dom children as fallback BUT create a scope for any
164
+ // child candidates found because they're likely slotted elements (elements that are
165
+ // children of the web component element (which has the shadow), in the light dom, but
166
+ // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
167
+ // _after_ we return from this recursive call
168
+ var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
169
+ if (options.flatten) {
170
+ candidates.push.apply(candidates, _nestedCandidates);
171
+ } else {
172
+ candidates.push({
173
+ scopeParent: element,
174
+ candidates: _nestedCandidates
175
+ });
176
+ }
177
+ } else {
178
+ // there's not shadow so just dig into the element's (light dom) children
179
+ // __without__ giving the element special scope treatment
180
+ elementsToCheck.unshift.apply(elementsToCheck, element.children);
181
+ }
182
+ }
183
+ }
184
+ return candidates;
185
+ };
186
+ var getTabindex = function getTabindex(node, isScope) {
187
+ if (node.tabIndex < 0) {
188
+ // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
189
+ // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
190
+ // yet they are still part of the regular tab order; in FF, they get a default
191
+ // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
192
+ // order, consider their tab index to be 0.
193
+ // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
194
+ // so if they don't have a tabindex attribute specifically set, assume it's 0.
195
+ //
196
+ // isScope is positive for custom element with shadow root or slot that by default
197
+ // have tabIndex -1, but need to be sorted by document order in order for their
198
+ // content to be inserted in the correct position
199
+ if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
200
+ return 0;
201
+ }
202
+ }
203
+ return node.tabIndex;
204
+ };
205
+ var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
206
+ return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
207
+ };
208
+ var isInput = function isInput(node) {
209
+ return node.tagName === 'INPUT';
210
+ };
211
+ var isHiddenInput = function isHiddenInput(node) {
212
+ return isInput(node) && node.type === 'hidden';
213
+ };
214
+ var isDetailsWithSummary = function isDetailsWithSummary(node) {
215
+ var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
216
+ return child.tagName === 'SUMMARY';
217
+ });
218
+ return r;
219
+ };
220
+ var getCheckedRadio = function getCheckedRadio(nodes, form) {
221
+ for (var i = 0; i < nodes.length; i++) {
222
+ if (nodes[i].checked && nodes[i].form === form) {
223
+ return nodes[i];
224
+ }
225
+ }
226
+ };
227
+ var isTabbableRadio = function isTabbableRadio(node) {
228
+ if (!node.name) {
229
+ return true;
230
+ }
231
+ var radioScope = node.form || getRootNode(node);
232
+ var queryRadios = function queryRadios(name) {
233
+ return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
234
+ };
235
+ var radioSet;
236
+ if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
237
+ radioSet = queryRadios(window.CSS.escape(node.name));
238
+ } else {
239
+ try {
240
+ radioSet = queryRadios(node.name);
241
+ } catch (err) {
242
+ // eslint-disable-next-line no-console
243
+ 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);
244
+ return false;
245
+ }
246
+ }
247
+ var checked = getCheckedRadio(radioSet, node.form);
248
+ return !checked || checked === node;
249
+ };
250
+ var isRadio = function isRadio(node) {
251
+ return isInput(node) && node.type === 'radio';
252
+ };
253
+ var isNonTabbableRadio = function isNonTabbableRadio(node) {
254
+ return isRadio(node) && !isTabbableRadio(node);
255
+ };
256
+
257
+ // determines if a node is ultimately attached to the window's document
258
+ var isNodeAttached = function isNodeAttached(node) {
259
+ var _nodeRoot;
260
+ // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
261
+ // (but NOT _the_ document; see second 'If' comment below for more).
262
+ // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
263
+ // is attached, and the one we need to check if it's in the document or not (because the
264
+ // shadow, and all nodes it contains, is never considered in the document since shadows
265
+ // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
266
+ // is hidden, or is not in the document itself but is detached, it will affect the shadow's
267
+ // visibility, including all the nodes it contains). The host could be any normal node,
268
+ // or a custom element (i.e. web component). Either way, that's the one that is considered
269
+ // part of the document, not the shadow root, nor any of its children (i.e. the node being
270
+ // tested).
271
+ // To further complicate things, we have to look all the way up until we find a shadow HOST
272
+ // that is attached (or find none) because the node might be in nested shadows...
273
+ // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
274
+ // document (per the docs) and while it's a Document-type object, that document does not
275
+ // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
276
+ // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
277
+ // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
278
+ // node is actually detached.
279
+ // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
280
+ // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
281
+ // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
282
+ // `ownerDocument` will be `null`, hence the optional chaining on it.
283
+ var nodeRoot = node && getRootNode(node);
284
+ var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
285
+
286
+ // in some cases, a detached node will return itself as the root instead of a document or
287
+ // shadow root object, in which case, we shouldn't try to look further up the host chain
288
+ var attached = false;
289
+ if (nodeRoot && nodeRoot !== node) {
290
+ var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
291
+ 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));
292
+ while (!attached && nodeRootHost) {
293
+ var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
294
+ // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
295
+ // which means we need to get the host's host and check if that parent host is contained
296
+ // in (i.e. attached to) the document
297
+ nodeRoot = getRootNode(nodeRootHost);
298
+ nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
299
+ attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
300
+ }
301
+ }
302
+ return attached;
303
+ };
304
+ var isZeroArea = function isZeroArea(node) {
305
+ var _node$getBoundingClie = node.getBoundingClientRect(),
306
+ width = _node$getBoundingClie.width,
307
+ height = _node$getBoundingClie.height;
308
+ return width === 0 && height === 0;
309
+ };
310
+ var isHidden = function isHidden(node, _ref) {
311
+ var displayCheck = _ref.displayCheck,
312
+ getShadowRoot = _ref.getShadowRoot;
313
+ // NOTE: visibility will be `undefined` if node is detached from the document
314
+ // (see notes about this further down), which means we will consider it visible
315
+ // (this is legacy behavior from a very long way back)
316
+ // NOTE: we check this regardless of `displayCheck="none"` because this is a
317
+ // _visibility_ check, not a _display_ check
318
+ if (getComputedStyle(node).visibility === 'hidden') {
319
+ return true;
320
+ }
321
+ var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
322
+ var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
323
+ if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
324
+ return true;
325
+ }
326
+ if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
327
+ if (typeof getShadowRoot === 'function') {
328
+ // figure out if we should consider the node to be in an undisclosed shadow and use the
329
+ // 'non-zero-area' fallback
330
+ var originalNode = node;
331
+ while (node) {
332
+ var parentElement = node.parentElement;
333
+ var rootNode = getRootNode(node);
334
+ if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
335
+ ) {
336
+ // node has an undisclosed shadow which means we can only treat it as a black box, so we
337
+ // fall back to a non-zero-area test
338
+ return isZeroArea(node);
339
+ } else if (node.assignedSlot) {
340
+ // iterate up slot
341
+ node = node.assignedSlot;
342
+ } else if (!parentElement && rootNode !== node.ownerDocument) {
343
+ // cross shadow boundary
344
+ node = rootNode.host;
345
+ } else {
346
+ // iterate up normal dom
347
+ node = parentElement;
348
+ }
349
+ }
350
+ node = originalNode;
351
+ }
352
+ // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
353
+ // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
354
+ // it might be a falsy value, which means shadow DOM support is disabled
355
+
356
+ // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
357
+ // now we can just test to see if it would normally be visible or not, provided it's
358
+ // attached to the main document.
359
+ // NOTE: We must consider case where node is inside a shadow DOM and given directly to
360
+ // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
361
+
362
+ if (isNodeAttached(node)) {
363
+ // this works wherever the node is: if there's at least one client rect, it's
364
+ // somehow displayed; it also covers the CSS 'display: contents' case where the
365
+ // node itself is hidden in place of its contents; and there's no need to search
366
+ // up the hierarchy either
367
+ return !node.getClientRects().length;
368
+ }
369
+
370
+ // Else, the node isn't attached to the document, which means the `getClientRects()`
371
+ // API will __always__ return zero rects (this can happen, for example, if React
372
+ // is used to render nodes onto a detached tree, as confirmed in this thread:
373
+ // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
374
+ //
375
+ // It also means that even window.getComputedStyle(node).display will return `undefined`
376
+ // because styles are only computed for nodes that are in the document.
377
+ //
378
+ // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
379
+ // somehow. Though it was never stated officially, anyone who has ever used tabbable
380
+ // APIs on nodes in detached containers has actually implicitly used tabbable in what
381
+ // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
382
+ // considering __everything__ to be visible because of the innability to determine styles.
383
+ //
384
+ // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
385
+ // nodes as visible with the 'none' fallback.__
386
+ if (displayCheck !== 'legacy-full') {
387
+ return true; // hidden
388
+ }
389
+ // else, fallback to 'none' mode and consider the node visible
390
+ } else if (displayCheck === 'non-zero-area') {
391
+ // NOTE: Even though this tests that the node's client rect is non-zero to determine
392
+ // whether it's displayed, and that a detached node will __always__ have a zero-area
393
+ // client rect, we don't special-case for whether the node is attached or not. In
394
+ // this mode, we do want to consider nodes that have a zero area to be hidden at all
395
+ // times, and that includes attached or not.
396
+ return isZeroArea(node);
397
+ }
398
+
399
+ // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
400
+ // it's visible
401
+ return false;
402
+ };
403
+
404
+ // form fields (nested) inside a disabled fieldset are not focusable/tabbable
405
+ // unless they are in the _first_ <legend> element of the top-most disabled
406
+ // fieldset
407
+ var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
408
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
409
+ var parentNode = node.parentElement;
410
+ // check if `node` is contained in a disabled <fieldset>
411
+ while (parentNode) {
412
+ if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
413
+ // look for the first <legend> among the children of the disabled <fieldset>
414
+ for (var i = 0; i < parentNode.children.length; i++) {
415
+ var child = parentNode.children.item(i);
416
+ // when the first <legend> (in document order) is found
417
+ if (child.tagName === 'LEGEND') {
418
+ // if its parent <fieldset> is not nested in another disabled <fieldset>,
419
+ // return whether `node` is a descendant of its first <legend>
420
+ return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
421
+ }
422
+ }
423
+ // the disabled <fieldset> containing `node` has no <legend>
424
+ return true;
425
+ }
426
+ parentNode = parentNode.parentElement;
427
+ }
428
+ }
429
+
430
+ // else, node's tabbable/focusable state should not be affected by a fieldset's
431
+ // enabled/disabled state
432
+ return false;
433
+ };
434
+ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
435
+ if (node.disabled ||
436
+ // we must do an inert look up to filter out any elements inside an inert ancestor
437
+ // because we're limited in the type of selectors we can use in JSDom (see related
438
+ // note related to `candidateSelectors`)
439
+ isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
440
+ // For a details element with a summary, the summary element gets the focus
441
+ isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
442
+ return false;
443
+ }
444
+ return true;
445
+ };
446
+ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
447
+ if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
448
+ return false;
449
+ }
450
+ return true;
451
+ };
452
+ var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
453
+ var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
454
+ if (isNaN(tabIndex) || tabIndex >= 0) {
455
+ return true;
456
+ }
457
+ // If a custom element has an explicit negative tabindex,
458
+ // browsers will not allow tab targeting said element's children.
459
+ return false;
460
+ };
461
+
462
+ /**
463
+ * @param {Array.<Element|CandidateScope>} candidates
464
+ * @returns Element[]
465
+ */
466
+ var sortByOrder = function sortByOrder(candidates) {
467
+ var regularTabbables = [];
468
+ var orderedTabbables = [];
469
+ candidates.forEach(function (item, i) {
470
+ var isScope = !!item.scopeParent;
471
+ var element = isScope ? item.scopeParent : item;
472
+ var candidateTabindex = getTabindex(element, isScope);
473
+ var elements = isScope ? sortByOrder(item.candidates) : element;
474
+ if (candidateTabindex === 0) {
475
+ isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
476
+ } else {
477
+ orderedTabbables.push({
478
+ documentOrder: i,
479
+ tabIndex: candidateTabindex,
480
+ item: item,
481
+ isScope: isScope,
482
+ content: elements
483
+ });
484
+ }
485
+ });
486
+ return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
487
+ sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
488
+ return acc;
489
+ }, []).concat(regularTabbables);
490
+ };
491
+ var tabbable = function tabbable(el, options) {
492
+ options = options || {};
493
+ var candidates;
494
+ if (options.getShadowRoot) {
495
+ candidates = getCandidatesIteratively([el], options.includeContainer, {
496
+ filter: isNodeMatchingSelectorTabbable.bind(null, options),
497
+ flatten: false,
498
+ getShadowRoot: options.getShadowRoot,
499
+ shadowRootFilter: isValidShadowRootTabbable
500
+ });
501
+ } else {
502
+ candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
503
+ }
504
+ return sortByOrder(candidates);
505
+ };
506
+ var focusable = function focusable(el, options) {
507
+ options = options || {};
508
+ var candidates;
509
+ if (options.getShadowRoot) {
510
+ candidates = getCandidatesIteratively([el], options.includeContainer, {
511
+ filter: isNodeMatchingSelectorFocusable.bind(null, options),
512
+ flatten: true,
513
+ getShadowRoot: options.getShadowRoot
514
+ });
515
+ } else {
516
+ candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
517
+ }
518
+ return candidates;
519
+ };
520
+ var isTabbable = function isTabbable(node, options) {
521
+ options = options || {};
522
+ if (!node) {
523
+ throw new Error('No node provided');
524
+ }
525
+ if (matches.call(node, candidateSelector) === false) {
526
+ return false;
527
+ }
528
+ return isNodeMatchingSelectorTabbable(options, node);
529
+ };
530
+ var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
531
+ var isFocusable = function isFocusable(node, options) {
532
+ options = options || {};
533
+ if (!node) {
534
+ throw new Error('No node provided');
535
+ }
536
+ if (matches.call(node, focusableCandidateSelector) === false) {
537
+ return false;
538
+ }
539
+ return isNodeMatchingSelectorFocusable(options, node);
540
+ };
541
+
542
+ /*!
543
+ * focus-trap 7.2.0
544
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
545
+ */
546
+ function ownKeys(object, enumerableOnly) {
547
+ var keys = Object.keys(object);
548
+ if (Object.getOwnPropertySymbols) {
549
+ var symbols = Object.getOwnPropertySymbols(object);
550
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
551
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
552
+ })), keys.push.apply(keys, symbols);
553
+ }
554
+ return keys;
555
+ }
556
+ function _objectSpread2(target) {
557
+ for (var i = 1; i < arguments.length; i++) {
558
+ var source = null != arguments[i] ? arguments[i] : {};
559
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
560
+ _defineProperty(target, key, source[key]);
561
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
562
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
563
+ });
564
+ }
565
+ return target;
566
+ }
567
+ function _defineProperty(obj, key, value) {
568
+ key = _toPropertyKey(key);
569
+ if (key in obj) {
570
+ Object.defineProperty(obj, key, {
571
+ value: value,
572
+ enumerable: true,
573
+ configurable: true,
574
+ writable: true
575
+ });
576
+ } else {
577
+ obj[key] = value;
578
+ }
579
+ return obj;
580
+ }
581
+ function _toPrimitive(input, hint) {
582
+ if (typeof input !== "object" || input === null) return input;
583
+ var prim = input[Symbol.toPrimitive];
584
+ if (prim !== undefined) {
585
+ var res = prim.call(input, hint || "default");
586
+ if (typeof res !== "object") return res;
587
+ throw new TypeError("@@toPrimitive must return a primitive value.");
588
+ }
589
+ return (hint === "string" ? String : Number)(input);
590
+ }
591
+ function _toPropertyKey(arg) {
592
+ var key = _toPrimitive(arg, "string");
593
+ return typeof key === "symbol" ? key : String(key);
594
+ }
595
+ var activeFocusTraps = {
596
+ activateTrap: function activateTrap(trapStack, trap) {
597
+ if (trapStack.length > 0) {
598
+ var activeTrap = trapStack[trapStack.length - 1];
599
+ if (activeTrap !== trap) {
600
+ activeTrap.pause();
601
+ }
602
+ }
603
+ var trapIndex = trapStack.indexOf(trap);
604
+ if (trapIndex === -1) {
605
+ trapStack.push(trap);
606
+ } else {
607
+ // move this existing trap to the front of the queue
608
+ trapStack.splice(trapIndex, 1);
609
+ trapStack.push(trap);
610
+ }
611
+ },
612
+ deactivateTrap: function deactivateTrap(trapStack, trap) {
613
+ var trapIndex = trapStack.indexOf(trap);
614
+ if (trapIndex !== -1) {
615
+ trapStack.splice(trapIndex, 1);
616
+ }
617
+ if (trapStack.length > 0) {
618
+ trapStack[trapStack.length - 1].unpause();
619
+ }
620
+ }
621
+ };
622
+ var isSelectableInput = function isSelectableInput(node) {
623
+ return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
624
+ };
625
+ var isEscapeEvent = function isEscapeEvent(e) {
626
+ return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
627
+ };
628
+ var isTabEvent = function isTabEvent(e) {
629
+ return e.key === 'Tab' || e.keyCode === 9;
630
+ };
631
+
632
+ // checks for TAB by default
633
+ var isKeyForward = function isKeyForward(e) {
634
+ return isTabEvent(e) && !e.shiftKey;
635
+ };
636
+
637
+ // checks for SHIFT+TAB by default
638
+ var isKeyBackward = function isKeyBackward(e) {
639
+ return isTabEvent(e) && e.shiftKey;
640
+ };
641
+ var delay = function delay(fn) {
642
+ return setTimeout(fn, 0);
643
+ };
644
+
645
+ // Array.find/findIndex() are not supported on IE; this replicates enough
646
+ // of Array.findIndex() for our needs
647
+ var findIndex = function findIndex(arr, fn) {
648
+ var idx = -1;
649
+ arr.every(function (value, i) {
650
+ if (fn(value)) {
651
+ idx = i;
652
+ return false; // break
653
+ }
654
+
655
+ return true; // next
656
+ });
657
+
658
+ return idx;
659
+ };
660
+
661
+ /**
662
+ * Get an option's value when it could be a plain value, or a handler that provides
663
+ * the value.
664
+ * @param {*} value Option's value to check.
665
+ * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
666
+ * @returns {*} The `value`, or the handler's returned value.
667
+ */
668
+ var valueOrHandler = function valueOrHandler(value) {
669
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
670
+ params[_key - 1] = arguments[_key];
671
+ }
672
+ return typeof value === 'function' ? value.apply(void 0, params) : value;
673
+ };
674
+ var getActualTarget = function getActualTarget(event) {
675
+ // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
676
+ // shadow host. However, event.target.composedPath() will be an array of
677
+ // nodes "clicked" from inner-most (the actual element inside the shadow) to
678
+ // outer-most (the host HTML document). If we have access to composedPath(),
679
+ // then use its first element; otherwise, fall back to event.target (and
680
+ // this only works for an _open_ shadow DOM; otherwise,
681
+ // composedPath()[0] === event.target always).
682
+ return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
683
+ };
684
+
685
+ // NOTE: this must be _outside_ `createFocusTrap()` to make sure all traps in this
686
+ // current instance use the same stack if `userOptions.trapStack` isn't specified
687
+ var internalTrapStack = [];
688
+ var createFocusTrap = function createFocusTrap(elements, userOptions) {
689
+ // SSR: a live trap shouldn't be created in this type of environment so this
690
+ // should be safe code to execute if the `document` option isn't specified
691
+ var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
692
+ var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || internalTrapStack;
693
+ var config = _objectSpread2({
694
+ returnFocusOnDeactivate: true,
695
+ escapeDeactivates: true,
696
+ delayInitialFocus: true,
697
+ isKeyForward: isKeyForward,
698
+ isKeyBackward: isKeyBackward
699
+ }, userOptions);
700
+ var state = {
701
+ // containers given to createFocusTrap()
702
+ // @type {Array<HTMLElement>}
703
+ containers: [],
704
+ // list of objects identifying tabbable nodes in `containers` in the trap
705
+ // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
706
+ // is active, but the trap should never get to a state where there isn't at least one group
707
+ // with at least one tabbable node in it (that would lead to an error condition that would
708
+ // result in an error being thrown)
709
+ // @type {Array<{
710
+ // container: HTMLElement,
711
+ // tabbableNodes: Array<HTMLElement>, // empty if none
712
+ // focusableNodes: Array<HTMLElement>, // empty if none
713
+ // firstTabbableNode: HTMLElement|null,
714
+ // lastTabbableNode: HTMLElement|null,
715
+ // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
716
+ // }>}
717
+ containerGroups: [],
718
+ // same order/length as `containers` list
719
+
720
+ // references to objects in `containerGroups`, but only those that actually have
721
+ // tabbable nodes in them
722
+ // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
723
+ // the same length
724
+ tabbableGroups: [],
725
+ nodeFocusedBeforeActivation: null,
726
+ mostRecentlyFocusedNode: null,
727
+ active: false,
728
+ paused: false,
729
+ // timer ID for when delayInitialFocus is true and initial focus in this trap
730
+ // has been delayed during activation
731
+ delayInitialFocusTimer: undefined
732
+ };
733
+ var trap; // eslint-disable-line prefer-const -- some private functions reference it, and its methods reference private functions, so we must declare here and define later
734
+
735
+ /**
736
+ * Gets a configuration option value.
737
+ * @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,
738
+ * value will be taken from this object. Otherwise, value will be taken from base configuration.
739
+ * @param {string} optionName Name of the option whose value is sought.
740
+ * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
741
+ * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
742
+ */
743
+ var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
744
+ return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
745
+ };
746
+
747
+ /**
748
+ * Finds the index of the container that contains the element.
749
+ * @param {HTMLElement} element
750
+ * @returns {number} Index of the container in either `state.containers` or
751
+ * `state.containerGroups` (the order/length of these lists are the same); -1
752
+ * if the element isn't found.
753
+ */
754
+ var findContainerIndex = function findContainerIndex(element) {
755
+ // NOTE: search `containerGroups` because it's possible a group contains no tabbable
756
+ // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
757
+ // and we still need to find the element in there
758
+ return state.containerGroups.findIndex(function (_ref) {
759
+ var container = _ref.container,
760
+ tabbableNodes = _ref.tabbableNodes;
761
+ return container.contains(element) ||
762
+ // fall back to explicit tabbable search which will take into consideration any
763
+ // web components if the `tabbableOptions.getShadowRoot` option was used for
764
+ // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
765
+ // look inside web components even if open)
766
+ tabbableNodes.find(function (node) {
767
+ return node === element;
768
+ });
769
+ });
770
+ };
771
+
772
+ /**
773
+ * Gets the node for the given option, which is expected to be an option that
774
+ * can be either a DOM node, a string that is a selector to get a node, `false`
775
+ * (if a node is explicitly NOT given), or a function that returns any of these
776
+ * values.
777
+ * @param {string} optionName
778
+ * @returns {undefined | false | HTMLElement | SVGElement} Returns
779
+ * `undefined` if the option is not specified; `false` if the option
780
+ * resolved to `false` (node explicitly not given); otherwise, the resolved
781
+ * DOM node.
782
+ * @throws {Error} If the option is set, not `false`, and is not, or does not
783
+ * resolve to a node.
784
+ */
785
+ var getNodeForOption = function getNodeForOption(optionName) {
786
+ var optionValue = config[optionName];
787
+ if (typeof optionValue === 'function') {
788
+ for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
789
+ params[_key2 - 1] = arguments[_key2];
790
+ }
791
+ optionValue = optionValue.apply(void 0, params);
792
+ }
793
+ if (optionValue === true) {
794
+ optionValue = undefined; // use default value
795
+ }
796
+
797
+ if (!optionValue) {
798
+ if (optionValue === undefined || optionValue === false) {
799
+ return optionValue;
800
+ }
801
+ // else, empty string (invalid), null (invalid), 0 (invalid)
802
+
803
+ throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
804
+ }
805
+ var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
806
+
807
+ if (typeof optionValue === 'string') {
808
+ node = doc.querySelector(optionValue); // resolve to node, or null if fails
809
+ if (!node) {
810
+ throw new Error("`".concat(optionName, "` as selector refers to no known node"));
811
+ }
812
+ }
813
+ return node;
814
+ };
815
+ var getInitialFocusNode = function getInitialFocusNode() {
816
+ var node = getNodeForOption('initialFocus');
817
+
818
+ // false explicitly indicates we want no initialFocus at all
819
+ if (node === false) {
820
+ return false;
821
+ }
822
+ if (node === undefined) {
823
+ // option not specified: use fallback options
824
+ if (findContainerIndex(doc.activeElement) >= 0) {
825
+ node = doc.activeElement;
826
+ } else {
827
+ var firstTabbableGroup = state.tabbableGroups[0];
828
+ var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
829
+
830
+ // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
831
+ node = firstTabbableNode || getNodeForOption('fallbackFocus');
832
+ }
833
+ }
834
+ if (!node) {
835
+ throw new Error('Your focus-trap needs to have at least one focusable element');
836
+ }
837
+ return node;
838
+ };
839
+ var updateTabbableNodes = function updateTabbableNodes() {
840
+ state.containerGroups = state.containers.map(function (container) {
841
+ var tabbableNodes = tabbable(container, config.tabbableOptions);
842
+
843
+ // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
844
+ // are a superset of tabbable nodes
845
+ var focusableNodes = focusable(container, config.tabbableOptions);
846
+ return {
847
+ container: container,
848
+ tabbableNodes: tabbableNodes,
849
+ focusableNodes: focusableNodes,
850
+ firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
851
+ lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
852
+ /**
853
+ * Finds the __tabbable__ node that follows the given node in the specified direction,
854
+ * in this container, if any.
855
+ * @param {HTMLElement} node
856
+ * @param {boolean} [forward] True if going in forward tab order; false if going
857
+ * in reverse.
858
+ * @returns {HTMLElement|undefined} The next tabbable node, if any.
859
+ */
860
+ nextTabbableNode: function nextTabbableNode(node) {
861
+ var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
862
+ // NOTE: If tabindex is positive (in order to manipulate the tab order separate
863
+ // from the DOM order), this __will not work__ because the list of focusableNodes,
864
+ // while it contains tabbable nodes, does not sort its nodes in any order other
865
+ // than DOM order, because it can't: Where would you place focusable (but not
866
+ // tabbable) nodes in that order? They have no order, because they aren't tabbale...
867
+ // Support for positive tabindex is already broken and hard to manage (possibly
868
+ // not supportable, TBD), so this isn't going to make things worse than they
869
+ // already are, and at least makes things better for the majority of cases where
870
+ // tabindex is either 0/unset or negative.
871
+ // FYI, positive tabindex issue: https://github.com/focus-trap/focus-trap/issues/375
872
+ var nodeIdx = focusableNodes.findIndex(function (n) {
873
+ return n === node;
874
+ });
875
+ if (nodeIdx < 0) {
876
+ return undefined;
877
+ }
878
+ if (forward) {
879
+ return focusableNodes.slice(nodeIdx + 1).find(function (n) {
880
+ return isTabbable(n, config.tabbableOptions);
881
+ });
882
+ }
883
+ return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
884
+ return isTabbable(n, config.tabbableOptions);
885
+ });
886
+ }
887
+ };
888
+ });
889
+ state.tabbableGroups = state.containerGroups.filter(function (group) {
890
+ return group.tabbableNodes.length > 0;
891
+ });
892
+
893
+ // throw if no groups have tabbable nodes and we don't have a fallback focus node either
894
+ if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
895
+ ) {
896
+ throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
897
+ }
898
+ };
899
+ var tryFocus = function tryFocus(node) {
900
+ if (node === false) {
901
+ return;
902
+ }
903
+ if (node === doc.activeElement) {
904
+ return;
905
+ }
906
+ if (!node || !node.focus) {
907
+ tryFocus(getInitialFocusNode());
908
+ return;
909
+ }
910
+ node.focus({
911
+ preventScroll: !!config.preventScroll
912
+ });
913
+ state.mostRecentlyFocusedNode = node;
914
+ if (isSelectableInput(node)) {
915
+ node.select();
916
+ }
917
+ };
918
+ var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
919
+ var node = getNodeForOption('setReturnFocus', previousActiveElement);
920
+ return node ? node : node === false ? false : previousActiveElement;
921
+ };
922
+
923
+ // This needs to be done on mousedown and touchstart instead of click
924
+ // so that it precedes the focus event.
925
+ var checkPointerDown = function checkPointerDown(e) {
926
+ var target = getActualTarget(e);
927
+ if (findContainerIndex(target) >= 0) {
928
+ // allow the click since it ocurred inside the trap
929
+ return;
930
+ }
931
+ if (valueOrHandler(config.clickOutsideDeactivates, e)) {
932
+ // immediately deactivate the trap
933
+ trap.deactivate({
934
+ // if, on deactivation, we should return focus to the node originally-focused
935
+ // when the trap was activated (or the configured `setReturnFocus` node),
936
+ // then assume it's also OK to return focus to the outside node that was
937
+ // just clicked, causing deactivation, as long as that node is focusable;
938
+ // if it isn't focusable, then return focus to the original node focused
939
+ // on activation (or the configured `setReturnFocus` node)
940
+ // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
941
+ // which will result in the outside click setting focus to the node
942
+ // that was clicked, whether it's focusable or not; by setting
943
+ // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
944
+ // on activation (or the configured `setReturnFocus` node)
945
+ returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
946
+ });
947
+ return;
948
+ }
949
+
950
+ // This is needed for mobile devices.
951
+ // (If we'll only let `click` events through,
952
+ // then on mobile they will be blocked anyways if `touchstart` is blocked.)
953
+ if (valueOrHandler(config.allowOutsideClick, e)) {
954
+ // allow the click outside the trap to take place
955
+ return;
956
+ }
957
+
958
+ // otherwise, prevent the click
959
+ e.preventDefault();
960
+ };
961
+
962
+ // In case focus escapes the trap for some strange reason, pull it back in.
963
+ var checkFocusIn = function checkFocusIn(e) {
964
+ var target = getActualTarget(e);
965
+ var targetContained = findContainerIndex(target) >= 0;
966
+
967
+ // In Firefox when you Tab out of an iframe the Document is briefly focused.
968
+ if (targetContained || target instanceof Document) {
969
+ if (targetContained) {
970
+ state.mostRecentlyFocusedNode = target;
971
+ }
972
+ } else {
973
+ // escaped! pull it back in to where it just left
974
+ e.stopImmediatePropagation();
975
+ tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
976
+ }
977
+ };
978
+
979
+ // Hijack key nav events on the first and last focusable nodes of the trap,
980
+ // in order to prevent focus from escaping. If it escapes for even a
981
+ // moment it can end up scrolling the page and causing confusion so we
982
+ // kind of need to capture the action at the keydown phase.
983
+ var checkKeyNav = function checkKeyNav(event) {
984
+ var isBackward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
985
+ var target = getActualTarget(event);
986
+ updateTabbableNodes();
987
+ var destinationNode = null;
988
+ if (state.tabbableGroups.length > 0) {
989
+ // make sure the target is actually contained in a group
990
+ // NOTE: the target may also be the container itself if it's focusable
991
+ // with tabIndex='-1' and was given initial focus
992
+ var containerIndex = findContainerIndex(target);
993
+ var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
994
+ if (containerIndex < 0) {
995
+ // target not found in any group: quite possible focus has escaped the trap,
996
+ // so bring it back into...
997
+ if (isBackward) {
998
+ // ...the last node in the last group
999
+ destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
1000
+ } else {
1001
+ // ...the first node in the first group
1002
+ destinationNode = state.tabbableGroups[0].firstTabbableNode;
1003
+ }
1004
+ } else if (isBackward) {
1005
+ // REVERSE
1006
+
1007
+ // is the target the first tabbable node in a group?
1008
+ var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
1009
+ var firstTabbableNode = _ref2.firstTabbableNode;
1010
+ return target === firstTabbableNode;
1011
+ });
1012
+ if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
1013
+ // an exception case where the target is either the container itself, or
1014
+ // a non-tabbable node that was given focus (i.e. tabindex is negative
1015
+ // and user clicked on it or node was programmatically given focus)
1016
+ // and is not followed by any other tabbable node, in which
1017
+ // case, we should handle shift+tab as if focus were on the container's
1018
+ // first tabbable node, and go to the last tabbable node of the LAST group
1019
+ startOfGroupIndex = containerIndex;
1020
+ }
1021
+ if (startOfGroupIndex >= 0) {
1022
+ // YES: then shift+tab should go to the last tabbable node in the
1023
+ // previous group (and wrap around to the last tabbable node of
1024
+ // the LAST group if it's the first tabbable node of the FIRST group)
1025
+ var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
1026
+ var destinationGroup = state.tabbableGroups[destinationGroupIndex];
1027
+ destinationNode = destinationGroup.lastTabbableNode;
1028
+ } else if (!isTabEvent(event)) {
1029
+ // user must have customized the nav keys so we have to move focus manually _within_
1030
+ // the active group: do this based on the order determined by tabbable()
1031
+ destinationNode = containerGroup.nextTabbableNode(target, false);
1032
+ }
1033
+ } else {
1034
+ // FORWARD
1035
+
1036
+ // is the target the last tabbable node in a group?
1037
+ var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
1038
+ var lastTabbableNode = _ref3.lastTabbableNode;
1039
+ return target === lastTabbableNode;
1040
+ });
1041
+ if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
1042
+ // an exception case where the target is the container itself, or
1043
+ // a non-tabbable node that was given focus (i.e. tabindex is negative
1044
+ // and user clicked on it or node was programmatically given focus)
1045
+ // and is not followed by any other tabbable node, in which
1046
+ // case, we should handle tab as if focus were on the container's
1047
+ // last tabbable node, and go to the first tabbable node of the FIRST group
1048
+ lastOfGroupIndex = containerIndex;
1049
+ }
1050
+ if (lastOfGroupIndex >= 0) {
1051
+ // YES: then tab should go to the first tabbable node in the next
1052
+ // group (and wrap around to the first tabbable node of the FIRST
1053
+ // group if it's the last tabbable node of the LAST group)
1054
+ var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
1055
+ var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
1056
+ destinationNode = _destinationGroup.firstTabbableNode;
1057
+ } else if (!isTabEvent(event)) {
1058
+ // user must have customized the nav keys so we have to move focus manually _within_
1059
+ // the active group: do this based on the order determined by tabbable()
1060
+ destinationNode = containerGroup.nextTabbableNode(target);
1061
+ }
1062
+ }
1063
+ } else {
1064
+ // no groups available
1065
+ // NOTE: the fallbackFocus option does not support returning false to opt-out
1066
+ destinationNode = getNodeForOption('fallbackFocus');
1067
+ }
1068
+ if (destinationNode) {
1069
+ if (isTabEvent(event)) {
1070
+ // since tab natively moves focus, we wouldn't have a destination node unless we
1071
+ // were on the edge of a container and had to move to the next/previous edge, in
1072
+ // which case we want to prevent default to keep the browser from moving focus
1073
+ // to where it normally would
1074
+ event.preventDefault();
1075
+ }
1076
+ tryFocus(destinationNode);
1077
+ }
1078
+ // else, let the browser take care of [shift+]tab and move the focus
1079
+ };
1080
+
1081
+ var checkKey = function checkKey(event) {
1082
+ if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
1083
+ event.preventDefault();
1084
+ trap.deactivate();
1085
+ return;
1086
+ }
1087
+ if (config.isKeyForward(event) || config.isKeyBackward(event)) {
1088
+ checkKeyNav(event, config.isKeyBackward(event));
1089
+ }
1090
+ };
1091
+ var checkClick = function checkClick(e) {
1092
+ var target = getActualTarget(e);
1093
+ if (findContainerIndex(target) >= 0) {
1094
+ return;
1095
+ }
1096
+ if (valueOrHandler(config.clickOutsideDeactivates, e)) {
1097
+ return;
1098
+ }
1099
+ if (valueOrHandler(config.allowOutsideClick, e)) {
1100
+ return;
1101
+ }
1102
+ e.preventDefault();
1103
+ e.stopImmediatePropagation();
1104
+ };
1105
+
1106
+ //
1107
+ // EVENT LISTENERS
1108
+ //
1109
+
1110
+ var addListeners = function addListeners() {
1111
+ if (!state.active) {
1112
+ return;
1113
+ }
1114
+
1115
+ // There can be only one listening focus trap at a time
1116
+ activeFocusTraps.activateTrap(trapStack, trap);
1117
+
1118
+ // Delay ensures that the focused element doesn't capture the event
1119
+ // that caused the focus trap activation.
1120
+ state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
1121
+ tryFocus(getInitialFocusNode());
1122
+ }) : tryFocus(getInitialFocusNode());
1123
+ doc.addEventListener('focusin', checkFocusIn, true);
1124
+ doc.addEventListener('mousedown', checkPointerDown, {
1125
+ capture: true,
1126
+ passive: false
1127
+ });
1128
+ doc.addEventListener('touchstart', checkPointerDown, {
1129
+ capture: true,
1130
+ passive: false
1131
+ });
1132
+ doc.addEventListener('click', checkClick, {
1133
+ capture: true,
1134
+ passive: false
1135
+ });
1136
+ doc.addEventListener('keydown', checkKey, {
1137
+ capture: true,
1138
+ passive: false
1139
+ });
1140
+ return trap;
1141
+ };
1142
+ var removeListeners = function removeListeners() {
1143
+ if (!state.active) {
1144
+ return;
1145
+ }
1146
+ doc.removeEventListener('focusin', checkFocusIn, true);
1147
+ doc.removeEventListener('mousedown', checkPointerDown, true);
1148
+ doc.removeEventListener('touchstart', checkPointerDown, true);
1149
+ doc.removeEventListener('click', checkClick, true);
1150
+ doc.removeEventListener('keydown', checkKey, true);
1151
+ return trap;
1152
+ };
1153
+
1154
+ //
1155
+ // TRAP DEFINITION
1156
+ //
1157
+
1158
+ trap = {
1159
+ get active() {
1160
+ return state.active;
1161
+ },
1162
+ get paused() {
1163
+ return state.paused;
1164
+ },
1165
+ activate: function activate(activateOptions) {
1166
+ if (state.active) {
1167
+ return this;
1168
+ }
1169
+ var onActivate = getOption(activateOptions, 'onActivate');
1170
+ var onPostActivate = getOption(activateOptions, 'onPostActivate');
1171
+ var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
1172
+ if (!checkCanFocusTrap) {
1173
+ updateTabbableNodes();
1174
+ }
1175
+ state.active = true;
1176
+ state.paused = false;
1177
+ state.nodeFocusedBeforeActivation = doc.activeElement;
1178
+ if (onActivate) {
1179
+ onActivate();
1180
+ }
1181
+ var finishActivation = function finishActivation() {
1182
+ if (checkCanFocusTrap) {
1183
+ updateTabbableNodes();
1184
+ }
1185
+ addListeners();
1186
+ if (onPostActivate) {
1187
+ onPostActivate();
1188
+ }
1189
+ };
1190
+ if (checkCanFocusTrap) {
1191
+ checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
1192
+ return this;
1193
+ }
1194
+ finishActivation();
1195
+ return this;
1196
+ },
1197
+ deactivate: function deactivate(deactivateOptions) {
1198
+ if (!state.active) {
1199
+ return this;
1200
+ }
1201
+ var options = _objectSpread2({
1202
+ onDeactivate: config.onDeactivate,
1203
+ onPostDeactivate: config.onPostDeactivate,
1204
+ checkCanReturnFocus: config.checkCanReturnFocus
1205
+ }, deactivateOptions);
1206
+ clearTimeout(state.delayInitialFocusTimer); // noop if undefined
1207
+ state.delayInitialFocusTimer = undefined;
1208
+ removeListeners();
1209
+ state.active = false;
1210
+ state.paused = false;
1211
+ activeFocusTraps.deactivateTrap(trapStack, trap);
1212
+ var onDeactivate = getOption(options, 'onDeactivate');
1213
+ var onPostDeactivate = getOption(options, 'onPostDeactivate');
1214
+ var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
1215
+ var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
1216
+ if (onDeactivate) {
1217
+ onDeactivate();
1218
+ }
1219
+ var finishDeactivation = function finishDeactivation() {
1220
+ delay(function () {
1221
+ if (returnFocus) {
1222
+ tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
1223
+ }
1224
+ if (onPostDeactivate) {
1225
+ onPostDeactivate();
1226
+ }
1227
+ });
1228
+ };
1229
+ if (returnFocus && checkCanReturnFocus) {
1230
+ checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
1231
+ return this;
1232
+ }
1233
+ finishDeactivation();
1234
+ return this;
1235
+ },
1236
+ pause: function pause() {
1237
+ if (state.paused || !state.active) {
1238
+ return this;
1239
+ }
1240
+ state.paused = true;
1241
+ removeListeners();
1242
+ return this;
1243
+ },
1244
+ unpause: function unpause() {
1245
+ if (!state.paused || !state.active) {
1246
+ return this;
1247
+ }
1248
+ state.paused = false;
1249
+ updateTabbableNodes();
1250
+ addListeners();
1251
+ return this;
1252
+ },
1253
+ updateContainerElements: function updateContainerElements(containerElements) {
1254
+ var elementsAsArray = [].concat(containerElements).filter(Boolean);
1255
+ state.containers = elementsAsArray.map(function (element) {
1256
+ return typeof element === 'string' ? doc.querySelector(element) : element;
1257
+ });
1258
+ if (state.active) {
1259
+ updateTabbableNodes();
1260
+ }
1261
+ return this;
1262
+ }
1263
+ };
1264
+
1265
+ // initialize container elements
1266
+ trap.updateContainerElements(elements);
1267
+ return trap;
1268
+ };
1269
+
1270
+ var __defProp = Object.defineProperty;
1271
+ var __defProps = Object.defineProperties;
1272
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1273
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1274
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
1275
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
1276
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1277
+ var __spreadValues = (a, b) => {
1278
+ for (var prop in b || (b = {}))
1279
+ if (__hasOwnProp.call(b, prop))
1280
+ __defNormalProp(a, prop, b[prop]);
1281
+ if (__getOwnPropSymbols)
1282
+ for (var prop of __getOwnPropSymbols(b)) {
1283
+ if (__propIsEnum.call(b, prop))
1284
+ __defNormalProp(a, prop, b[prop]);
1285
+ }
1286
+ return a;
1287
+ };
1288
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1289
+ var __objRest = (source, exclude) => {
1290
+ var target = {};
1291
+ for (var prop in source)
1292
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
1293
+ target[prop] = source[prop];
1294
+ if (source != null && __getOwnPropSymbols)
1295
+ for (var prop of __getOwnPropSymbols(source)) {
1296
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
1297
+ target[prop] = source[prop];
1298
+ }
1299
+ return target;
1300
+ };
1301
+ function useFocusTrap(target, options = {}) {
1302
+ let trap;
1303
+ const _a = options, { immediate } = _a, focusTrapOptions = __objRest(_a, ["immediate"]);
1304
+ const hasFocus = ref(false);
1305
+ const isPaused = ref(false);
1306
+ const activate = (opts) => trap && trap.activate(opts);
1307
+ const deactivate = (opts) => trap && trap.deactivate(opts);
1308
+ const pause = () => {
1309
+ if (trap) {
1310
+ trap.pause();
1311
+ isPaused.value = true;
1312
+ }
1313
+ };
1314
+ const unpause = () => {
1315
+ if (trap) {
1316
+ trap.unpause();
1317
+ isPaused.value = false;
1318
+ }
1319
+ };
1320
+ watch(() => unrefElement(target), (el) => {
1321
+ if (!el)
1322
+ return;
1323
+ trap = createFocusTrap(el, __spreadProps(__spreadValues({}, focusTrapOptions), {
1324
+ onActivate() {
1325
+ hasFocus.value = true;
1326
+ if (options.onActivate)
1327
+ options.onActivate();
1328
+ },
1329
+ onDeactivate() {
1330
+ hasFocus.value = false;
1331
+ if (options.onDeactivate)
1332
+ options.onDeactivate();
1333
+ }
1334
+ }));
1335
+ if (immediate)
1336
+ activate();
1337
+ }, { flush: "post" });
1338
+ tryOnScopeDispose(() => deactivate());
1339
+ return {
1340
+ hasFocus,
1341
+ isPaused,
1342
+ activate,
1343
+ deactivate,
1344
+ pause,
1345
+ unpause
1346
+ };
1347
+ }
1348
+
1349
+ export { useFocusTrap as u };