@onereach/ui-components 4.7.0-beta.2811.0 → 4.8.0-beta.2836.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 (715) hide show
  1. package/dist/bundled/{v3/_baseAssignValue-22e630c1.js → v2/_baseAssignValue-008b033a.js} +1 -1
  2. package/dist/bundled/v2/{_baseIsEqual-a1cc156c.js → _baseIsEqual-9edac039.js} +5 -5
  3. package/dist/bundled/v2/_commonjsHelpers-6584e42b.js +11 -0
  4. package/dist/bundled/v2/components/OrAvatar/OrAvatar.js +6 -5
  5. package/dist/bundled/v2/components/OrAvatar/index.js +6 -5
  6. package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
  7. package/dist/bundled/v2/components/OrBottomSheetV3/index.js +2 -2
  8. package/dist/bundled/v2/components/OrButtonV2/OrButton.js +6 -5
  9. package/dist/bundled/v2/components/OrButtonV2/index.js +6 -5
  10. package/dist/bundled/v2/components/OrButtonV3/OrButton.js +2 -2
  11. package/dist/bundled/v2/components/OrButtonV3/index.js +2 -2
  12. package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +7 -6
  13. package/dist/bundled/v2/components/OrCardCollection/index.js +7 -6
  14. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +2 -2
  15. package/dist/bundled/v2/components/OrCardCollectionV3/index.js +2 -2
  16. package/dist/bundled/v2/components/OrCarousel/OrCarousel.js +6 -5
  17. package/dist/bundled/v2/components/OrCarousel/index.js +6 -5
  18. package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +6 -5
  19. package/dist/bundled/v2/components/OrCheckbox/index.js +6 -5
  20. package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
  21. package/dist/bundled/v2/components/OrCheckboxGroupV3/index.js +2 -2
  22. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
  23. package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +2 -2
  24. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +2 -2
  25. package/dist/bundled/v2/components/OrCheckboxV3/index.js +2 -2
  26. package/dist/bundled/v2/components/OrChip/OrChip.js +6 -5
  27. package/dist/bundled/v2/components/OrChip/index.js +6 -5
  28. package/dist/bundled/v2/components/OrChips/OrChips.js +6 -5
  29. package/dist/bundled/v2/components/OrChips/index.js +6 -5
  30. package/dist/bundled/v2/components/OrCode/OrCode.js +14 -3799
  31. package/dist/bundled/v2/components/OrCode/index.js +14 -9
  32. package/dist/bundled/v2/components/OrCode/lang.js +3941 -3
  33. package/dist/bundled/v2/components/OrCode/theme.js +2 -1
  34. package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +6 -5
  35. package/dist/bundled/v2/components/OrCollapse/index.js +6 -5
  36. package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +8 -7
  37. package/dist/bundled/v2/components/OrColorPicker/index.js +8 -7
  38. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +10 -8
  39. package/dist/bundled/v2/components/OrConfirm/index.js +10 -8
  40. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
  41. package/dist/bundled/v2/components/OrConfirmV3/index.js +3 -3
  42. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +4 -4
  43. package/dist/bundled/v2/components/OrDatePickerV3/index.js +4 -4
  44. package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +10 -9
  45. package/dist/bundled/v2/components/OrDateTimePicker/index.js +10 -9
  46. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +5 -5
  47. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +5 -5
  48. package/dist/bundled/v2/components/OrFloating/OrFloating.js +6 -5
  49. package/dist/bundled/v2/components/OrFloating/index.js +6 -5
  50. package/dist/bundled/v2/components/OrIcon/OrIcon.js +6 -5
  51. package/dist/bundled/v2/components/OrIcon/index.js +6 -5
  52. package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.js +6 -5
  53. package/dist/bundled/v2/components/OrIconButtonV2/index.js +6 -5
  54. package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +2 -2
  55. package/dist/bundled/v2/components/OrIconButtonV3/index.js +2 -2
  56. package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -2
  57. package/dist/bundled/v2/components/OrInlineInputV3/index.js +2 -2
  58. package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +8 -7
  59. package/dist/bundled/v2/components/OrInlineTextEdit/index.js +8 -7
  60. package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
  61. package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +2 -2
  62. package/dist/bundled/v2/components/OrInput/OrInput.js +6 -5
  63. package/dist/bundled/v2/components/OrInput/index.js +6 -5
  64. package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -2
  65. package/dist/bundled/v2/components/OrInputV3/index.js +2 -2
  66. package/dist/bundled/v2/components/OrList/OrList.js +10 -9
  67. package/dist/bundled/v2/components/OrList/index.js +10 -9
  68. package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +10 -9
  69. package/dist/bundled/v2/components/OrListOfInputs/index.js +10 -9
  70. package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +2 -2
  71. package/dist/bundled/v2/components/OrLoaderV3/index.js +2 -2
  72. package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +2 -2
  73. package/dist/bundled/v2/components/OrMenuV3/index.js +2 -2
  74. package/dist/bundled/v2/components/OrModal/OrModal.js +10 -1352
  75. package/dist/bundled/v2/components/OrModal/index.js +9 -7
  76. package/dist/bundled/v2/components/OrModalV3/OrModal.js +4 -4
  77. package/dist/bundled/v2/components/OrModalV3/index.js +2 -2
  78. package/dist/bundled/v2/components/OrNotification/OrNotification.js +6 -5
  79. package/dist/bundled/v2/components/OrNotification/index.js +6 -5
  80. package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +2 -2
  81. package/dist/bundled/v2/components/OrNotificationV3/index.js +2 -2
  82. package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +6 -5
  83. package/dist/bundled/v2/components/OrNumberInput/index.js +6 -5
  84. package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +8 -7
  85. package/dist/bundled/v2/components/OrOverflowMenu/index.js +8 -7
  86. package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +2 -2
  87. package/dist/bundled/v2/components/OrOverlayV3/index.js +2 -2
  88. package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -2
  89. package/dist/bundled/v2/components/OrPaginationV3/index.js +2 -2
  90. package/dist/bundled/v2/components/OrPassword/OrPassword.js +8 -7
  91. package/dist/bundled/v2/components/OrPassword/index.js +8 -7
  92. package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -2
  93. package/dist/bundled/v2/components/OrPopoverV3/index.js +2 -2
  94. package/dist/bundled/v2/components/OrProgress/OrProgress.js +6 -5
  95. package/dist/bundled/v2/components/OrProgress/index.js +6 -5
  96. package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +8 -7
  97. package/dist/bundled/v2/components/OrProgressV3/index.js +8 -7
  98. package/dist/bundled/v2/components/OrRadio/OrRadio.js +8 -7
  99. package/dist/bundled/v2/components/OrRadio/index.js +8 -7
  100. package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +2 -2
  101. package/dist/bundled/v2/components/OrRadioGroupV3/index.js +2 -2
  102. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2201 -0
  103. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +220 -0
  104. package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +2 -0
  105. package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +73 -0
  106. package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +4 -0
  107. package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +7 -0
  108. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +6 -0
  109. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +38 -0
  110. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  111. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +46 -0
  112. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  113. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +184 -0
  114. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  115. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +5 -0
  116. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +24 -0
  117. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +190 -0
  118. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  119. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  120. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  121. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +6 -0
  122. package/dist/bundled/v2/components/OrSearch/OrSearch.js +7 -6
  123. package/dist/bundled/v2/components/OrSearch/index.js +7 -6
  124. package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +2 -2
  125. package/dist/bundled/v2/components/OrSearchV3/index.js +2 -2
  126. package/dist/bundled/v2/components/OrSelect/OrSelect.js +11 -10
  127. package/dist/bundled/v2/components/OrSelect/index.js +11 -10
  128. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -2
  129. package/dist/bundled/v2/components/OrSelectV3/index.js +2 -2
  130. package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +2 -2
  131. package/dist/bundled/v2/components/OrSidebar/index.js +2 -2
  132. package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +2 -2
  133. package/dist/bundled/v2/components/OrSidebarV3/index.js +2 -2
  134. package/dist/bundled/v2/components/OrSkeleton/index.js +6 -5
  135. package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +6 -5
  136. package/dist/bundled/v2/components/OrSkeletonText/index.js +6 -5
  137. package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +6 -5
  138. package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +6 -5
  139. package/dist/bundled/v2/components/OrSkeletonV3/index.js +6 -5
  140. package/dist/bundled/v2/components/OrSlider/OrSlider.js +8 -7
  141. package/dist/bundled/v2/components/OrSlider/index.js +8 -7
  142. package/dist/bundled/v2/components/OrStepper/OrStepper.js +6 -5
  143. package/dist/bundled/v2/components/OrStepper/index.js +6 -5
  144. package/dist/bundled/v2/components/OrSwitchV3/OrSwitch.js +2 -2
  145. package/dist/bundled/v2/components/OrSwitchV3/index.js +2 -2
  146. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +2 -2
  147. package/dist/bundled/v2/components/OrTabsV3/index.js +2 -2
  148. package/dist/bundled/v2/components/OrTag/OrTag.js +6 -5
  149. package/dist/bundled/v2/components/OrTag/index.js +6 -5
  150. package/dist/bundled/v2/components/OrTagV3/OrTag.js +2 -2
  151. package/dist/bundled/v2/components/OrTagV3/index.js +2 -2
  152. package/dist/bundled/v2/components/OrTagsV3/OrTags.js +2 -2
  153. package/dist/bundled/v2/components/OrTagsV3/index.js +2 -2
  154. package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +6 -5
  155. package/dist/bundled/v2/components/OrTextarea/index.js +6 -5
  156. package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +6 -5
  157. package/dist/bundled/v2/components/OrTextbox/index.js +6 -5
  158. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +4 -4
  159. package/dist/bundled/v2/components/OrTimePickerV3/index.js +4 -4
  160. package/dist/bundled/v2/components/OrToast/OrToast.js +9 -8
  161. package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
  162. package/dist/bundled/v2/components/OrToast/composable/index.js +2 -2
  163. package/dist/bundled/v2/components/OrToast/composable/useToast.js +2 -2
  164. package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
  165. package/dist/bundled/v2/components/OrToast/index.js +11 -10
  166. package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +11 -10
  167. package/dist/bundled/v2/components/OrToastContainer/index.js +11 -10
  168. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +2 -2
  169. package/dist/bundled/v2/components/OrToastContainerV3/index.js +2 -2
  170. package/dist/bundled/v2/components/OrToastV3/OrToast.js +2 -2
  171. package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
  172. package/dist/bundled/v2/components/OrToastV3/composable/index.js +2 -2
  173. package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +2 -2
  174. package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
  175. package/dist/bundled/v2/components/OrToastV3/index.js +2 -2
  176. package/dist/bundled/v2/components/OrTooltip/OrTooltip.js +6 -5
  177. package/dist/bundled/v2/components/OrTooltip/index.js +6 -5
  178. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +2 -2
  179. package/dist/bundled/v2/components/OrTooltipV3/index.js +2 -2
  180. package/dist/bundled/v2/components/index.d.ts +1 -0
  181. package/dist/bundled/v2/components/index.js +36 -21
  182. package/dist/bundled/{v3/dom-700444b4.js → v2/dom-c98dce89.js} +2 -2
  183. package/dist/bundled/v2/{eq-95cd2573.js → eq-037e6fce.js} +1 -1
  184. package/dist/bundled/{v3/get-ab1b7d93.js → v2/get-b30afe93.js} +3 -3
  185. package/dist/bundled/v2/hooks/index.d.ts +1 -0
  186. package/dist/bundled/v2/hooks/index.js +6 -2
  187. package/dist/bundled/v2/hooks/useOverflow.d.ts +2 -2
  188. package/dist/bundled/v2/hooks/useOverflow.js +2 -2
  189. package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
  190. package/dist/bundled/v2/hooks/useResponsive/index.js +2 -2
  191. package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +2 -2
  192. package/dist/bundled/v2/hooks/useTheme.d.ts +2 -0
  193. package/dist/bundled/v2/hooks/useTheme.js +10125 -0
  194. package/dist/bundled/v2/{index-8a1b5b9c.js → index-06f6bbe4.js} +1 -1
  195. package/dist/bundled/v2/{index-cf2c3c27.js → index-0d224ae5.js} +3 -115
  196. package/dist/bundled/v2/index-80a3a4f4.js +9714 -0
  197. package/dist/bundled/v2/index-85c2efe8.js +7122 -0
  198. package/dist/bundled/v2/{index-6d94f832.js → index-af414338.js} +2 -2
  199. package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-7af61a76.js → v2/index-d92d0b48.js} +14 -235
  200. package/dist/bundled/v2/{index-82718479.js → index-dac0fb7c.js} +1 -1
  201. package/dist/bundled/v2/{lang-0fb8f78b.js → index-e9f6b2d8.js} +73 -4009
  202. package/dist/bundled/v2/index.es-3f39f316.js +115 -0
  203. package/dist/bundled/v2/index.js +42 -24
  204. package/dist/bundled/v2/{isArrayLike-e46b8eac.js → isArrayLike-61275a05.js} +1 -1
  205. package/dist/bundled/v2/{isEqual-44382965.js → isEqual-8bbb1110.js} +1 -1
  206. package/dist/bundled/{v3/isObject-fe8b81fd.js → v2/isObject-08fab135.js} +1 -1
  207. package/dist/bundled/v2/markdown-c78b4891.js +17977 -0
  208. package/dist/bundled/{v3/range-6f26eda4.js → v2/range-637f1361.js} +4 -4
  209. package/dist/bundled/{v3/round-f34440f4.js → v2/round-4a894f03.js} +4 -4
  210. package/dist/bundled/{v3/toFinite-74227610.js → v2/toFinite-675db18a.js} +1 -1
  211. package/dist/bundled/v2/{toInteger-2fd112a9.js → toInteger-27595771.js} +1 -1
  212. package/dist/bundled/{v3/toString-f3196832.js → v2/toString-a72d5149.js} +1 -1
  213. package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-6e26795e.js → v2/useFocusTrap-c1384da1.js} +4 -100
  214. package/dist/bundled/v2/utils/functions/dom.js +6 -5
  215. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-2a494943.js → OrAvatar.vue_vue_type_script_lang-36439ec1.js} +1 -1
  216. package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-2f9406a6.js → OrBottomSheet.vue_vue_type_script_lang-a4e73f9e.js} +2 -2
  217. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-af5ff967.js → OrButton.vue_vue_type_script_lang-d31ada75.js} +1 -1
  218. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-5ae410e5.js → OrButton.vue_vue_type_script_lang-fc3b3109.js} +1 -1
  219. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-86c25f0f.js → OrCardCollection.vue_vue_type_script_lang-0b7357dc.js} +3 -3
  220. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-decf25ee.js → OrCardCollection.vue_vue_type_script_lang-d1cba987.js} +4 -4
  221. package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-272cb9c9.js → OrCarousel.vue_vue_type_script_lang-cfd11d11.js} +1 -1
  222. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-a6d72885.js → OrCheckbox.vue_vue_type_script_lang-0fcd7886.js} +1 -1
  223. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-b1dd62bd.js → OrCheckbox.vue_vue_type_script_lang-579d41cf.js} +1 -1
  224. package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-b4421b8d.js → OrCheckboxGroup.vue_vue_type_script_lang-bf90c3cc.js} +2 -2
  225. package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-c7beacdf.js → OrCheckboxTree.vue_vue_type_script_lang-96fce5bf.js} +4 -4
  226. package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-a182e324.js → OrChip.vue_vue_type_script_lang-fcda103b.js} +1 -1
  227. package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-9e98c258.js → OrChips.vue_vue_type_script_lang-8d26707d.js} +1 -1
  228. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-22d2a803.js +237 -0
  229. package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-2a5c0929.js → OrCollapse.vue_vue_type_script_lang-00da895c.js} +1 -1
  230. package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-6143f82f.js → OrColorPicker.vue_vue_type_script_lang-476f49f1.js} +3 -3
  231. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ac591c04.js → OrConfirm.vue_vue_type_script_lang-39a1bd4d.js} +6 -6
  232. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-cdd89236.js → OrConfirm.vue_vue_type_script_lang-b7cc200c.js} +6 -6
  233. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-b9052966.js → OrDatePicker.vue_vue_type_script_lang-83dd873c.js} +4 -4
  234. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-111a251e.js → OrDateTimePicker.vue_vue_type_script_lang-77880140.js} +7 -7
  235. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-741b8048.js → OrDateTimePicker.vue_vue_type_script_lang-77e069a1.js} +5 -5
  236. package/dist/bundled/v3/{OrDateTimePickerMonthSelect-6c5e416a.js → OrDateTimePickerMonthSelect-3348fba1.js} +3 -3
  237. package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-894382f9.js → OrDateTimePickerPopoverHeader-cbe4de91.js} +1 -1
  238. package/dist/bundled/v3/{OrDateTimePickerTimeSelect-b04942c5.js → OrDateTimePickerTimeSelect-c2ad08b5.js} +1 -1
  239. package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-d419627c.js → OrFloating.vue_vue_type_script_lang-8bc114e8.js} +1 -1
  240. package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-cd2da378.js → OrIcon.vue_vue_type_script_lang-52900ff4.js} +1 -1
  241. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-d1496a81.js → OrIconButton.vue_vue_type_script_lang-416cbbd3.js} +2 -2
  242. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-743eb1eb.js → OrIconButton.vue_vue_type_script_lang-a32f0635.js} +1 -1
  243. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-2df002e8.js → OrInlineInput.vue_vue_type_script_lang-d34f84b1.js} +1 -1
  244. package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-1e78da3c.js → OrInlineTextEdit.vue_vue_type_script_lang-7955bdac.js} +4 -4
  245. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-139602f1.js → OrInlineTextarea.vue_vue_type_script_lang-2f0d13e0.js} +1 -1
  246. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-30a2b358.js → OrInput.vue_vue_type_script_lang-2680e4e1.js} +2 -2
  247. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-bf9fa981.js → OrInput.vue_vue_type_script_lang-f887102b.js} +2 -2
  248. package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-ccab1c75.js → OrList.vue_vue_type_script_lang-cb8806b2.js} +11 -11
  249. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-32d935ae.js → OrListOfInputs.vue_vue_type_script_lang-14a99046.js} +4 -4
  250. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-c1b5372a.js → OrLoader.vue_vue_type_script_lang-1e4c32ee.js} +1 -1
  251. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-90d57815.js → OrMenu.vue_vue_type_script_lang-2958c018.js} +1 -1
  252. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-910b80a1.js → OrModal.vue_vue_type_script_lang-a84affbb.js} +2 -2
  253. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-b716f9f7.js +101 -0
  254. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-3f6dd187.js → OrNotification.vue_vue_type_script_lang-564035a6.js} +2 -2
  255. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-f414a938.js → OrNotification.vue_vue_type_script_lang-6d6d3de9.js} +1 -1
  256. package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-1fb535e6.js → OrNumberInput.vue_vue_type_script_lang-e904d247.js} +1 -1
  257. package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-fb64f2d0.js → OrOverflowMenu.vue_vue_type_script_lang-396e26c0.js} +5 -5
  258. package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-93864f05.js → OrOverlay.vue_vue_type_script_lang-4a4c532b.js} +1 -1
  259. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-4d9cc1c9.js → OrPagination.vue_vue_type_script_lang-d29f6b11.js} +2 -2
  260. package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-d8bfee83.js → OrPassword.vue_vue_type_script_lang-ea54f428.js} +3 -3
  261. package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-dca9481d.js → OrPopover.vue_vue_type_script_lang-00135a32.js} +2 -2
  262. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-1c15f38e.js → OrProgress.vue_vue_type_script_lang-9c13f877.js} +2 -2
  263. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-a99362ae.js → OrProgress.vue_vue_type_script_lang-d4cf52da.js} +1 -1
  264. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-3a551734.js → OrRadio.vue_vue_type_script_lang-5e642c5f.js} +2 -2
  265. package/dist/bundled/v3/{OrRadioGroup.vue_vue_type_script_lang-5734ced2.js → OrRadioGroup.vue_vue_type_script_lang-4b4d1420.js} +1 -1
  266. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-9bbcc18a.js +1889 -0
  267. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ba26f3af.js → OrSearch.vue_vue_type_script_lang-14e7fd28.js} +2 -2
  268. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-82b7b602.js → OrSearch.vue_vue_type_script_lang-3e7729fe.js} +3 -3
  269. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-a156c8b5.js → OrSelect.vue_vue_type_script_lang-19dc9748.js} +4 -4
  270. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c9547f1b.js → OrSelect.vue_vue_type_script_lang-5bdf06cb.js} +11 -11
  271. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-55b5ffb4.js → OrSidebar.vue_vue_type_script_lang-2681fb99.js} +1 -1
  272. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-3914fce0.js → OrSidebar.vue_vue_type_script_lang-c96d5866.js} +2 -2
  273. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-c2a5ab96.js → OrSkeletonText.vue_vue_type_script_lang-36cfe2f4.js} +1 -1
  274. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-26b3cfd1.js → OrSkeletonText.vue_vue_type_script_lang-5cf21df0.js} +1 -1
  275. package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-22cc5cd5.js → OrSlider.vue_vue_type_script_lang-d933ca0c.js} +3 -3
  276. package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-67408a1a.js → OrStepper.vue_vue_type_script_lang-d4259c67.js} +1 -1
  277. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-32427513.js → OrSwitch.vue_vue_type_script_lang-cde58199.js} +1 -1
  278. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-4c2cecd7.js → OrTabs.vue_vue_type_script_lang-d4356af4.js} +2 -2
  279. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-ce916e72.js → OrTag.vue_vue_type_script_lang-21f4b080.js} +1 -1
  280. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-cbb4a16d.js → OrTag.vue_vue_type_script_lang-2e2393a5.js} +1 -1
  281. package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-1f1278ce.js → OrTags.vue_vue_type_script_lang-dea58dbe.js} +3 -3
  282. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-1ab55f91.js → OrTextarea.vue_vue_type_script_lang-1585e4e5.js} +2 -2
  283. package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-1ec469f0.js → OrTextbox.vue_vue_type_script_lang-02b1c369.js} +3 -3
  284. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-a03960c6.js → OrTimePicker.vue_vue_type_script_lang-77e08a6d.js} +4 -4
  285. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-592e1632.js → OrToastContainer.vue_vue_type_script_lang-364ee300.js} +1 -1
  286. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-9f5a5d56.js → OrToastContainer.vue_vue_type_script_lang-b1bb24ab.js} +1 -1
  287. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-a06d73f0.js → OrTooltip.vue_vue_type_script_lang-05d89296.js} +1 -1
  288. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-44e9f7e4.js → OrTooltip.vue_vue_type_script_lang-50478e4b.js} +1 -1
  289. package/dist/bundled/{v2/_baseAssignValue-22e630c1.js → v3/_baseAssignValue-008b033a.js} +1 -1
  290. package/dist/bundled/v3/{_baseIsEqual-a1cc156c.js → _baseIsEqual-9edac039.js} +5 -5
  291. package/dist/bundled/v3/_commonjsHelpers-6584e42b.js +11 -0
  292. package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +10 -9
  293. package/dist/bundled/v3/components/OrAvatar/index.js +9 -8
  294. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +5 -5
  295. package/dist/bundled/v3/components/OrBottomSheetV3/index.js +4 -4
  296. package/dist/bundled/v3/components/OrButtonV2/OrButton.js +10 -9
  297. package/dist/bundled/v3/components/OrButtonV2/index.js +11 -10
  298. package/dist/bundled/v3/components/OrButtonV3/OrButton.js +5 -5
  299. package/dist/bundled/v3/components/OrButtonV3/index.js +4 -4
  300. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +16 -15
  301. package/dist/bundled/v3/components/OrCardCollection/index.js +15 -14
  302. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +14 -14
  303. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +13 -13
  304. package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +10 -9
  305. package/dist/bundled/v3/components/OrCarousel/index.js +9 -8
  306. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +10 -9
  307. package/dist/bundled/v3/components/OrCheckbox/index.js +9 -8
  308. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +8 -8
  309. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +7 -7
  310. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +7 -7
  311. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +6 -6
  312. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +4 -4
  313. package/dist/bundled/v3/components/OrCheckboxV3/index.js +3 -3
  314. package/dist/bundled/v3/components/OrChip/OrChip.js +10 -9
  315. package/dist/bundled/v3/components/OrChip/index.js +9 -8
  316. package/dist/bundled/v3/components/OrChips/OrChips.js +11 -10
  317. package/dist/bundled/v3/components/OrChips/index.js +10 -9
  318. package/dist/bundled/v3/components/OrCode/OrCode.js +22 -17
  319. package/dist/bundled/v3/components/OrCode/index.js +20 -15
  320. package/dist/bundled/v3/components/OrCode/lang.js +3941 -3
  321. package/dist/bundled/v3/components/OrCode/theme.js +2 -1
  322. package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +8 -7
  323. package/dist/bundled/v3/components/OrCollapse/index.js +7 -6
  324. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +11 -10
  325. package/dist/bundled/v3/components/OrColorPicker/index.js +10 -9
  326. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +20 -18
  327. package/dist/bundled/v3/components/OrConfirm/index.js +19 -17
  328. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +13 -13
  329. package/dist/bundled/v3/components/OrConfirmV3/index.js +12 -12
  330. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +14 -14
  331. package/dist/bundled/v3/components/OrDatePickerV3/index.js +13 -13
  332. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +17 -16
  333. package/dist/bundled/v3/components/OrDateTimePicker/index.js +16 -15
  334. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +15 -15
  335. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +14 -14
  336. package/dist/bundled/v3/components/OrFloating/OrFloating.js +8 -7
  337. package/dist/bundled/v3/components/OrFloating/index.js +7 -6
  338. package/dist/bundled/v3/components/OrIcon/OrIcon.js +9 -8
  339. package/dist/bundled/v3/components/OrIcon/index.js +8 -7
  340. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +11 -10
  341. package/dist/bundled/v3/components/OrIconButtonV2/index.js +10 -9
  342. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +8 -8
  343. package/dist/bundled/v3/components/OrIconButtonV3/index.js +7 -7
  344. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +9 -9
  345. package/dist/bundled/v3/components/OrInlineInputV3/index.js +8 -8
  346. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +15 -14
  347. package/dist/bundled/v3/components/OrInlineTextEdit/index.js +14 -13
  348. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +9 -9
  349. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +8 -8
  350. package/dist/bundled/v3/components/OrInput/OrInput.js +9 -8
  351. package/dist/bundled/v3/components/OrInput/index.js +8 -7
  352. package/dist/bundled/v3/components/OrInputV3/OrInput.js +10 -10
  353. package/dist/bundled/v3/components/OrInputV3/index.js +9 -9
  354. package/dist/bundled/v3/components/OrList/OrList.js +17 -16
  355. package/dist/bundled/v3/components/OrList/index.js +16 -15
  356. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +20 -19
  357. package/dist/bundled/v3/components/OrListOfInputs/index.js +19 -18
  358. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +4 -4
  359. package/dist/bundled/v3/components/OrLoaderV3/index.js +3 -3
  360. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +7 -7
  361. package/dist/bundled/v3/components/OrMenuV3/index.js +6 -6
  362. package/dist/bundled/v3/components/OrModal/OrModal.js +15 -13
  363. package/dist/bundled/v3/components/OrModal/index.js +14 -12
  364. package/dist/bundled/v3/components/OrModalV3/OrModal.js +9 -9
  365. package/dist/bundled/v3/components/OrModalV3/index.js +8 -8
  366. package/dist/bundled/v3/components/OrNotification/OrNotification.js +12 -11
  367. package/dist/bundled/v3/components/OrNotification/index.js +11 -10
  368. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +9 -9
  369. package/dist/bundled/v3/components/OrNotificationV3/index.js +8 -8
  370. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +10 -9
  371. package/dist/bundled/v3/components/OrNumberInput/index.js +9 -8
  372. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +15 -14
  373. package/dist/bundled/v3/components/OrOverflowMenu/index.js +14 -13
  374. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +4 -4
  375. package/dist/bundled/v3/components/OrOverlayV3/index.js +3 -3
  376. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +10 -10
  377. package/dist/bundled/v3/components/OrPaginationV3/index.js +9 -9
  378. package/dist/bundled/v3/components/OrPassword/OrPassword.js +16 -15
  379. package/dist/bundled/v3/components/OrPassword/index.js +15 -14
  380. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +6 -6
  381. package/dist/bundled/v3/components/OrPopoverV3/index.js +5 -5
  382. package/dist/bundled/v3/components/OrProgress/OrProgress.js +8 -7
  383. package/dist/bundled/v3/components/OrProgress/index.js +7 -6
  384. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +10 -9
  385. package/dist/bundled/v3/components/OrProgressV3/index.js +9 -8
  386. package/dist/bundled/v3/components/OrRadio/OrRadio.js +10 -9
  387. package/dist/bundled/v3/components/OrRadio/index.js +9 -8
  388. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +4 -4
  389. package/dist/bundled/v3/components/OrRadioGroupV3/index.js +3 -3
  390. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +286 -0
  391. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +220 -0
  392. package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +2 -0
  393. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +89 -0
  394. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +4 -0
  395. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +7 -0
  396. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +6 -0
  397. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +38 -0
  398. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  399. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +46 -0
  400. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  401. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +184 -0
  402. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  403. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +5 -0
  404. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +24 -0
  405. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +190 -0
  406. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  407. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  408. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  409. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +6 -0
  410. package/dist/bundled/v3/components/OrSearch/OrSearch.js +15 -14
  411. package/dist/bundled/v3/components/OrSearch/index.js +14 -13
  412. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +11 -11
  413. package/dist/bundled/v3/components/OrSearchV3/index.js +10 -10
  414. package/dist/bundled/v3/components/OrSelect/OrSelect.js +17 -16
  415. package/dist/bundled/v3/components/OrSelect/index.js +16 -15
  416. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +13 -13
  417. package/dist/bundled/v3/components/OrSelectV3/index.js +12 -12
  418. package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +4 -4
  419. package/dist/bundled/v3/components/OrSidebar/index.js +3 -3
  420. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +9 -9
  421. package/dist/bundled/v3/components/OrSidebarV3/index.js +8 -8
  422. package/dist/bundled/v3/components/OrSkeleton/index.js +7 -6
  423. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +8 -7
  424. package/dist/bundled/v3/components/OrSkeletonText/index.js +7 -6
  425. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +8 -7
  426. package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +7 -6
  427. package/dist/bundled/v3/components/OrSkeletonV3/index.js +7 -6
  428. package/dist/bundled/v3/components/OrSlider/OrSlider.js +12 -11
  429. package/dist/bundled/v3/components/OrSlider/index.js +11 -10
  430. package/dist/bundled/v3/components/OrStepper/OrStepper.js +11 -10
  431. package/dist/bundled/v3/components/OrStepper/index.js +10 -9
  432. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +5 -5
  433. package/dist/bundled/v3/components/OrSwitchV3/index.js +4 -4
  434. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +8 -8
  435. package/dist/bundled/v3/components/OrTabsV3/index.js +7 -7
  436. package/dist/bundled/v3/components/OrTag/OrTag.js +10 -9
  437. package/dist/bundled/v3/components/OrTag/index.js +9 -8
  438. package/dist/bundled/v3/components/OrTagV3/OrTag.js +9 -9
  439. package/dist/bundled/v3/components/OrTagV3/index.js +8 -8
  440. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +12 -12
  441. package/dist/bundled/v3/components/OrTagsV3/index.js +11 -11
  442. package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +9 -8
  443. package/dist/bundled/v3/components/OrTextarea/index.js +8 -7
  444. package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +13 -12
  445. package/dist/bundled/v3/components/OrTextbox/index.js +12 -11
  446. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +13 -13
  447. package/dist/bundled/v3/components/OrTimePickerV3/index.js +12 -12
  448. package/dist/bundled/v3/components/OrToast/OrToast.js +14 -13
  449. package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
  450. package/dist/bundled/v3/components/OrToast/composable/index.js +2 -2
  451. package/dist/bundled/v3/components/OrToast/composable/useToast.js +2 -2
  452. package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
  453. package/dist/bundled/v3/components/OrToast/index.js +17 -16
  454. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +18 -17
  455. package/dist/bundled/v3/components/OrToastContainer/index.js +17 -16
  456. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +10 -10
  457. package/dist/bundled/v3/components/OrToastContainerV3/index.js +9 -9
  458. package/dist/bundled/v3/components/OrToastV3/OrToast.js +8 -8
  459. package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
  460. package/dist/bundled/v3/components/OrToastV3/composable/index.js +2 -2
  461. package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +2 -2
  462. package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
  463. package/dist/bundled/v3/components/OrToastV3/index.js +9 -9
  464. package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +9 -8
  465. package/dist/bundled/v3/components/OrTooltip/index.js +8 -7
  466. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +7 -7
  467. package/dist/bundled/v3/components/OrTooltipV3/index.js +6 -6
  468. package/dist/bundled/v3/components/index.d.ts +1 -0
  469. package/dist/bundled/v3/components/index.js +107 -91
  470. package/dist/bundled/{v2/dom-700444b4.js → v3/dom-c98dce89.js} +2 -2
  471. package/dist/bundled/v3/{eq-95cd2573.js → eq-037e6fce.js} +1 -1
  472. package/dist/bundled/{v2/get-ab1b7d93.js → v3/get-b30afe93.js} +3 -3
  473. package/dist/bundled/v3/hooks/index.d.ts +1 -0
  474. package/dist/bundled/v3/hooks/index.js +6 -2
  475. package/dist/bundled/v3/hooks/useOverflow.d.ts +2 -2
  476. package/dist/bundled/v3/hooks/useOverflow.js +2 -2
  477. package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
  478. package/dist/bundled/v3/hooks/useResponsive/index.js +2 -2
  479. package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +2 -2
  480. package/dist/bundled/v3/hooks/useTheme.d.ts +2 -0
  481. package/dist/bundled/v3/hooks/useTheme.js +10125 -0
  482. package/dist/bundled/v3/{index-cf2c3c27.js → index-0d224ae5.js} +3 -115
  483. package/dist/bundled/v3/{index-5e8e7a46.js → index-40b35d94.js} +1 -1
  484. package/dist/bundled/v3/{index-51eb57bd.js → index-749f3444.js} +1 -1
  485. package/dist/bundled/v3/index-80a3a4f4.js +9714 -0
  486. package/dist/bundled/v3/index-85c2efe8.js +7122 -0
  487. package/dist/bundled/v3/{index-02705c13.js → index-ae815a7e.js} +2 -2
  488. package/dist/bundled/v3/index-d92d0b48.js +3805 -0
  489. package/dist/bundled/v3/{lang-0fb8f78b.js → index-e9f6b2d8.js} +73 -4009
  490. package/dist/bundled/v3/index.es-3f39f316.js +115 -0
  491. package/dist/bundled/v3/index.js +113 -94
  492. package/dist/bundled/v3/{isArrayLike-e46b8eac.js → isArrayLike-61275a05.js} +1 -1
  493. package/dist/bundled/v3/{isEqual-44382965.js → isEqual-8bbb1110.js} +1 -1
  494. package/dist/bundled/{v2/isObject-fe8b81fd.js → v3/isObject-08fab135.js} +1 -1
  495. package/dist/bundled/v3/markdown-c78b4891.js +17977 -0
  496. package/dist/bundled/{v2/range-6f26eda4.js → v3/range-637f1361.js} +4 -4
  497. package/dist/bundled/{v2/round-f34440f4.js → v3/round-4a894f03.js} +4 -4
  498. package/dist/bundled/{v2/toFinite-74227610.js → v3/toFinite-675db18a.js} +1 -1
  499. package/dist/bundled/v3/{toInteger-2fd112a9.js → toInteger-27595771.js} +1 -1
  500. package/dist/bundled/{v2/toString-f3196832.js → v3/toString-a72d5149.js} +1 -1
  501. package/dist/bundled/v3/useFocusTrap-a61a80ac.js +1349 -0
  502. package/dist/bundled/v3/utils/functions/dom.js +6 -5
  503. package/dist/esm/v2/{OrBottomSheet-0592ccb2.js → OrBottomSheet-4244ab1c.js} +3 -1
  504. package/dist/esm/v2/{OrCardCollection-2b9bc050.js → OrCardCollection-20e66b6e.js} +4 -4
  505. package/dist/esm/v2/{OrCheckbox-3a8c93ad.js → OrCheckbox-41f2822d.js} +2 -0
  506. package/dist/esm/v2/{OrCheckboxGroup-b0d95dd6.js → OrCheckboxGroup-97cfcbda.js} +1 -1
  507. package/dist/esm/v2/{OrCheckboxTree-54b0fdc1.js → OrCheckboxTree-a7dc126c.js} +1 -1
  508. package/dist/esm/v2/{OrConfirm-3f19c23b.js → OrConfirm-65cc835a.js} +4 -2
  509. package/dist/esm/v2/{OrDatePicker-e991e7b2.js → OrDatePicker-9fb8810c.js} +3 -3
  510. package/dist/esm/v2/{OrDateTimePicker-7bbd81d1.js → OrDateTimePicker-4032b280.js} +3 -3
  511. package/dist/esm/v2/{OrDateTimePickerMonthSelect-d75a849c.js → OrDateTimePickerMonthSelect-a50f9f56.js} +3 -3
  512. package/dist/esm/v2/{OrIconButton-75972865.js → OrIconButton-24be052f.js} +2 -2
  513. package/dist/esm/v2/{OrInlineInput-cf17dbb2.js → OrInlineInput-dd95fc1b.js} +3 -1
  514. package/dist/esm/v2/{OrInlineTextarea-2b0e2f39.js → OrInlineTextarea-194515fa.js} +3 -1
  515. package/dist/esm/v2/{OrInput-1a2b8ad9.js → OrInput-bfbb6522.js} +3 -1
  516. package/dist/esm/v2/{OrMenu-a35caf3b.js → OrMenu-a376f4a7.js} +3 -1
  517. package/dist/esm/v2/{OrModal-4aaae6bc.js → OrModal-e6acc87a.js} +4 -2
  518. package/dist/esm/v2/{OrNotification-a773f1df.js → OrNotification-650aab04.js} +1 -1
  519. package/dist/esm/v2/{OrOverlay-f791976c.js → OrOverlay-948346df.js} +2 -0
  520. package/dist/esm/v2/{OrPagination-3513165d.js → OrPagination-7be2401b.js} +4 -2
  521. package/dist/esm/v2/{OrPassword-1de0dc6c.js → OrPassword-681f8c53.js} +2 -0
  522. package/dist/esm/v2/{OrPopover-a8950b85.js → OrPopover-fff4a3a4.js} +3 -1
  523. package/dist/esm/v2/{OrProgress-102e3b5d.js → OrProgress-e079e857.js} +2 -0
  524. package/dist/esm/v2/{OrRadio-a812088f.js → OrRadio-23810acd.js} +2 -0
  525. package/dist/esm/v2/{OrRadioGroup-0de37d76.js → OrRadioGroup-0e1bf22c.js} +1 -1
  526. package/dist/esm/v2/OrRichTextEditor-c13801ba.js +919 -0
  527. package/dist/esm/v2/{OrSearch-19c157b3.js → OrSearch-9027a8e2.js} +1 -1
  528. package/dist/esm/v2/{OrSelect-991b8be3.js → OrSelect-b7e9eaa7.js} +6 -4
  529. package/dist/esm/v2/{OrSidebar-bfbb8b0a.js → OrSidebar-466d8244.js} +1 -1
  530. package/dist/esm/v2/{OrSidebarCollapseButton-a98037d6.js → OrSidebarCollapseButton-3009ed8e.js} +1 -1
  531. package/dist/esm/v2/{OrSwitch-9fae0bae.js → OrSwitch-cb97f4d3.js} +2 -0
  532. package/dist/esm/v2/{OrTabs-abf290af.js → OrTabs-cce59ff2.js} +2 -2
  533. package/dist/esm/v2/{OrTag-aa46cecd.js → OrTag-6a60ef87.js} +1 -1
  534. package/dist/esm/v2/{OrTags-2a567e79.js → OrTags-e4d6bf08.js} +4 -2
  535. package/dist/esm/v2/{OrTextarea-e5c66426.js → OrTextarea-01df0715.js} +2 -0
  536. package/dist/esm/v2/{OrTextbox-c85d7fe6.js → OrTextbox-a937432f.js} +2 -0
  537. package/dist/esm/v2/{OrTimePicker-766637cb.js → OrTimePicker-7cbcc2c0.js} +2 -2
  538. package/dist/esm/v2/{OrTooltip-0dc63c1a.js → OrTooltip-ab6c05c5.js} +3 -1
  539. package/dist/esm/v2/codemirrorView-be2c7423.js +353 -0
  540. package/dist/esm/v2/components/index.d.ts +1 -0
  541. package/dist/esm/v2/components/index.js +62 -36
  542. package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +4 -2
  543. package/dist/esm/v2/components/or-card-collection-v3/index.js +11 -9
  544. package/dist/esm/v2/components/or-checkbox-group-v3/index.js +5 -3
  545. package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +4 -2
  546. package/dist/esm/v2/components/or-checkbox-v3/index.js +3 -1
  547. package/dist/esm/v2/components/or-confirm-v3/index.js +9 -7
  548. package/dist/esm/v2/components/or-date-picker-v3/index.js +10 -8
  549. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +10 -8
  550. package/dist/esm/v2/components/or-icon-button-v3/index.js +7 -5
  551. package/dist/esm/v2/components/or-inline-input-v3/index.js +8 -6
  552. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +8 -6
  553. package/dist/esm/v2/components/or-input-v3/index.js +8 -6
  554. package/dist/esm/v2/components/or-menu-v3/index.js +6 -4
  555. package/dist/esm/v2/components/or-modal-v3/index.js +8 -6
  556. package/dist/esm/v2/components/or-notification-v3/index.js +8 -6
  557. package/dist/esm/v2/components/or-overlay-v3/index.js +3 -1
  558. package/dist/esm/v2/components/or-pagination-v3/index.js +7 -5
  559. package/dist/esm/v2/components/or-password/index.js +3 -1
  560. package/dist/esm/v2/components/or-popover-v3/index.js +5 -3
  561. package/dist/esm/v2/components/or-progress-v3/index.js +3 -1
  562. package/dist/esm/v2/components/or-radio-group-v3/index.js +4 -2
  563. package/dist/esm/v2/components/or-radio-v3/index.js +3 -1
  564. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +220 -0
  565. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +2 -0
  566. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +62 -0
  567. package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +4 -0
  568. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  569. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  570. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  571. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  572. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +7 -0
  573. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +24 -0
  574. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  575. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  576. package/dist/esm/v2/components/or-search-v3/index.js +9 -7
  577. package/dist/esm/v2/components/or-select-v3/index.js +11 -9
  578. package/dist/esm/v2/components/or-sidebar-v3/index.js +9 -7
  579. package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +8 -6
  580. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -6
  581. package/dist/esm/v2/components/or-switch-v3/index.js +3 -1
  582. package/dist/esm/v2/components/or-tabs-v3/index.js +7 -5
  583. package/dist/esm/v2/components/or-tag-v3/index.js +8 -6
  584. package/dist/esm/v2/components/or-tags-v3/index.js +9 -7
  585. package/dist/esm/v2/components/or-textarea-v3/index.js +3 -1
  586. package/dist/esm/v2/components/or-textbox/index.js +3 -1
  587. package/dist/esm/v2/components/or-time-picker-v3/index.js +8 -6
  588. package/dist/esm/v2/components/or-toast-v3/index.js +8 -6
  589. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +8 -6
  590. package/dist/esm/v2/components/or-tooltip-v3/index.js +6 -4
  591. package/dist/esm/v2/hooks/index.d.ts +1 -0
  592. package/dist/esm/v2/hooks/index.js +3 -0
  593. package/dist/esm/v2/hooks/useOverflow.d.ts +2 -2
  594. package/dist/esm/v2/hooks/useTheme.d.ts +2 -0
  595. package/dist/esm/v2/index.js +63 -36
  596. package/dist/esm/v2/{types-f30860ee.js → types-08ab4707.js} +3 -1
  597. package/dist/esm/v2/useTheme-e23d13c8.js +9 -0
  598. package/dist/esm/v3/{OrBottomSheet-a39fb331.js → OrBottomSheet-e9463e4d.js} +3 -1
  599. package/dist/esm/v3/{OrCardCollection-3d652a34.js → OrCardCollection-dbe7dac6.js} +4 -4
  600. package/dist/esm/v3/{OrCheckbox-7093e9c2.js → OrCheckbox-2194e473.js} +2 -0
  601. package/dist/esm/v3/{OrCheckboxGroup-f755d216.js → OrCheckboxGroup-6c36527f.js} +1 -1
  602. package/dist/esm/v3/{OrCheckboxTree-99f6eaec.js → OrCheckboxTree-1873a941.js} +1 -1
  603. package/dist/esm/v3/{OrConfirm-cb0b2b78.js → OrConfirm-104754d0.js} +4 -2
  604. package/dist/esm/v3/{OrDatePicker-6a44ad41.js → OrDatePicker-c12fab59.js} +3 -3
  605. package/dist/esm/v3/{OrDateTimePicker-2cbcf8c7.js → OrDateTimePicker-ad360ebc.js} +3 -3
  606. package/dist/esm/v3/{OrDateTimePickerMonthSelect-2f61d92f.js → OrDateTimePickerMonthSelect-16e3f5b9.js} +3 -3
  607. package/dist/esm/v3/{OrIconButton-e34a20eb.js → OrIconButton-c6d15a51.js} +2 -2
  608. package/dist/esm/v3/{OrInlineInput-ad0d4264.js → OrInlineInput-48e936d2.js} +3 -1
  609. package/dist/esm/v3/{OrInlineTextarea-b5ec488d.js → OrInlineTextarea-3937421c.js} +3 -1
  610. package/dist/esm/v3/{OrInput-a9aeef6e.js → OrInput-14b88801.js} +3 -1
  611. package/dist/esm/v3/{OrMenu-f590d761.js → OrMenu-b90e6784.js} +3 -1
  612. package/dist/esm/v3/{OrModal-9dc09e95.js → OrModal-231fb401.js} +4 -2
  613. package/dist/esm/v3/{OrNotification-69031471.js → OrNotification-dde92a43.js} +1 -1
  614. package/dist/esm/v3/{OrOverlay-28952099.js → OrOverlay-489fdf76.js} +2 -0
  615. package/dist/esm/v3/{OrPagination-f3be120f.js → OrPagination-22356f86.js} +4 -2
  616. package/dist/esm/v3/{OrPassword-9192b9ea.js → OrPassword-cd8a3c46.js} +2 -0
  617. package/dist/esm/v3/{OrPopover-ebd57053.js → OrPopover-8ea2062a.js} +3 -1
  618. package/dist/esm/v3/{OrProgress-efa51d7b.js → OrProgress-a54a42c0.js} +2 -0
  619. package/dist/esm/v3/{OrRadio-a6c88f29.js → OrRadio-4f0026c9.js} +2 -0
  620. package/dist/esm/v3/{OrRadioGroup-5d1fe6fd.js → OrRadioGroup-d215409c.js} +1 -1
  621. package/dist/esm/v3/OrRichTextEditor-b7f30172.js +852 -0
  622. package/dist/esm/v3/{OrSearch-5576cf14.js → OrSearch-7bf5009e.js} +1 -1
  623. package/dist/esm/v3/{OrSelect-0b3ebce9.js → OrSelect-b7d87ded.js} +6 -4
  624. package/dist/esm/v3/{OrSidebar-303ef558.js → OrSidebar-84533704.js} +1 -1
  625. package/dist/esm/v3/{OrSidebarCollapseButton-d7f004df.js → OrSidebarCollapseButton-88a165e8.js} +1 -1
  626. package/dist/esm/v3/{OrSwitch-594f5a63.js → OrSwitch-ed9868db.js} +2 -0
  627. package/dist/esm/v3/{OrTabs-b6c8077c.js → OrTabs-ffb69679.js} +2 -2
  628. package/dist/esm/v3/{OrTag-4ac45254.js → OrTag-51d8f47d.js} +1 -1
  629. package/dist/esm/v3/{OrTags-de9f065e.js → OrTags-3ae4a908.js} +4 -2
  630. package/dist/esm/v3/{OrTextarea-93cf7da7.js → OrTextarea-0f9a2a27.js} +2 -0
  631. package/dist/esm/v3/{OrTextbox-56714f51.js → OrTextbox-8d2903db.js} +2 -0
  632. package/dist/esm/v3/{OrTimePicker-0fe72767.js → OrTimePicker-16a88b67.js} +2 -2
  633. package/dist/esm/v3/{OrTooltip-edb28095.js → OrTooltip-9a63f445.js} +3 -1
  634. package/dist/esm/v3/codemirrorView-be2c7423.js +353 -0
  635. package/dist/esm/v3/components/index.d.ts +1 -0
  636. package/dist/esm/v3/components/index.js +62 -36
  637. package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +4 -2
  638. package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -9
  639. package/dist/esm/v3/components/or-checkbox-group-v3/index.js +5 -3
  640. package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +4 -2
  641. package/dist/esm/v3/components/or-checkbox-v3/index.js +3 -1
  642. package/dist/esm/v3/components/or-confirm-v3/index.js +9 -7
  643. package/dist/esm/v3/components/or-date-picker-v3/index.js +10 -8
  644. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +10 -8
  645. package/dist/esm/v3/components/or-icon-button-v3/index.js +7 -5
  646. package/dist/esm/v3/components/or-inline-input-v3/index.js +8 -6
  647. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +8 -6
  648. package/dist/esm/v3/components/or-input-v3/index.js +8 -6
  649. package/dist/esm/v3/components/or-menu-v3/index.js +6 -4
  650. package/dist/esm/v3/components/or-modal-v3/index.js +8 -6
  651. package/dist/esm/v3/components/or-notification-v3/index.js +8 -6
  652. package/dist/esm/v3/components/or-overlay-v3/index.js +3 -1
  653. package/dist/esm/v3/components/or-pagination-v3/index.js +7 -5
  654. package/dist/esm/v3/components/or-password/index.js +3 -1
  655. package/dist/esm/v3/components/or-popover-v3/index.js +5 -3
  656. package/dist/esm/v3/components/or-progress-v3/index.js +3 -1
  657. package/dist/esm/v3/components/or-radio-group-v3/index.js +4 -2
  658. package/dist/esm/v3/components/or-radio-v3/index.js +3 -1
  659. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +220 -0
  660. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +2 -0
  661. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +60 -0
  662. package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +4 -0
  663. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  664. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  665. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  666. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  667. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +7 -0
  668. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +24 -0
  669. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  670. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  671. package/dist/esm/v3/components/or-search-v3/index.js +9 -7
  672. package/dist/esm/v3/components/or-select-v3/index.js +11 -9
  673. package/dist/esm/v3/components/or-sidebar-v3/index.js +9 -7
  674. package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +8 -6
  675. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -6
  676. package/dist/esm/v3/components/or-switch-v3/index.js +3 -1
  677. package/dist/esm/v3/components/or-tabs-v3/index.js +7 -5
  678. package/dist/esm/v3/components/or-tag-v3/index.js +8 -6
  679. package/dist/esm/v3/components/or-tags-v3/index.js +9 -7
  680. package/dist/esm/v3/components/or-textarea-v3/index.js +3 -1
  681. package/dist/esm/v3/components/or-textbox/index.js +3 -1
  682. package/dist/esm/v3/components/or-time-picker-v3/index.js +8 -6
  683. package/dist/esm/v3/components/or-toast-v3/index.js +8 -6
  684. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +8 -6
  685. package/dist/esm/v3/components/or-tooltip-v3/index.js +6 -4
  686. package/dist/esm/v3/hooks/index.d.ts +1 -0
  687. package/dist/esm/v3/hooks/index.js +3 -0
  688. package/dist/esm/v3/hooks/useOverflow.d.ts +2 -2
  689. package/dist/esm/v3/hooks/useTheme.d.ts +2 -0
  690. package/dist/esm/v3/index.js +63 -36
  691. package/dist/esm/v3/{types-60f3dd35.js → types-03758078.js} +3 -1
  692. package/dist/esm/v3/useTheme-e23d13c8.js +9 -0
  693. package/package.json +26 -4
  694. package/src/components/index.ts +1 -0
  695. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +761 -0
  696. package/src/components/or-rich-text-editor-v3/index.ts +2 -0
  697. package/src/components/or-rich-text-editor-v3/props.ts +4 -0
  698. package/src/components/or-rich-text-editor-v3/styles.ts +53 -0
  699. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
  700. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +254 -0
  701. package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
  702. package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +213 -0
  703. package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
  704. package/src/components/or-rich-text-editor-v3/utils/markdown.ts +120 -0
  705. package/src/hooks/index.ts +1 -0
  706. package/src/hooks/useElevation.ts +1 -4
  707. package/src/hooks/useOverflow.ts +3 -5
  708. package/src/hooks/useTheme.ts +7 -0
  709. package/src/shims-mdx.d.ts +4 -0
  710. package/src/shims-png.d.ts +2 -2
  711. package/src/shims-vue.d.ts +3 -2
  712. package/src/shims.d.ts +11 -2
  713. /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-769685bc.js → OrDateTimePickerMonthSelect-eb2c5c01.js} +0 -0
  714. /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-bc0df38f.js → OrDateTimePickerPopoverHeader-257ef8d8.js} +0 -0
  715. /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-e284797b.js → OrDateTimePickerTimeSelect-37dcd0a3.js} +0 -0
@@ -1,11 +1,12 @@
1
- import { ref, watch, defineComponent, onBeforeUnmount } from 'vue-demi';
1
+ import { defineComponent, ref, watch, onBeforeUnmount } from 'vue-demi';
2
2
  import { OrModalSizes } from './constants.js';
3
- import { i as unrefElement, o as onClickOutside } from '../../index-6d94f832.js';
4
- import { t as tryOnScopeDispose } from '../../index-8a1b5b9c.js';
3
+ import { o as onClickOutside } from '../../index-af414338.js';
4
+ import { u as useFocusTrap } from '../../useFocusTrap-c1384da1.js';
5
5
  import __vue_component__$1 from '../OrIconButtonV2/OrIconButton.js';
6
6
  import __vue_component__$2 from '../OrOverlay/OrOverlay.js';
7
7
  import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
8
8
  import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
9
+ import '../../index-06f6bbe4.js';
9
10
  import '../OrTooltip/OrTooltip.js';
10
11
  import '../OrTooltipContent/OrTooltipContent.js';
11
12
  import '../OrFloating/OrFloating.js';
@@ -14,11 +15,12 @@ import '../OrTeleport/OrTeleport.js';
14
15
  import 'vue';
15
16
  import '../OrTeleport/constants.js';
16
17
  import '../OrFloating/constants.js';
17
- import '../../dom-700444b4.js';
18
- import '../../isObject-fe8b81fd.js';
19
- import '../../get-ab1b7d93.js';
20
- import '../../toString-f3196832.js';
21
- import '../../eq-95cd2573.js';
18
+ import '../../dom-c98dce89.js';
19
+ import '../../isObject-08fab135.js';
20
+ import '../../_commonjsHelpers-6584e42b.js';
21
+ import '../../get-b30afe93.js';
22
+ import '../../toString-a72d5149.js';
23
+ import '../../eq-037e6fce.js';
22
24
  import '../OrButtonV2/constants.js';
23
25
  import '../OrIcon/OrIcon.js';
24
26
  import '../OrIcon/constants.js';
@@ -27,1350 +29,6 @@ import '../OrLoader/OrLoader.js';
27
29
  import '../../utils/isEmpty.js';
28
30
  import '../OrLoader/constants.js';
29
31
 
30
- /*!
31
- * tabbable 6.1.1
32
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
33
- */
34
- // NOTE: separate `:not()` selectors has broader browser support than the newer
35
- // `:not([inert], [inert] *)` (Feb 2023)
36
- // CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes
37
- // the entire query to fail, resulting in no nodes found, which will break a lot
38
- // of things... so we have to rely on JS to identify nodes inside an inert container
39
- 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])'];
40
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
41
- var NoElement = typeof Element === 'undefined';
42
- var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
43
- var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
44
- var _element$getRootNode;
45
- return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
46
- } : function (element) {
47
- return element === null || element === void 0 ? void 0 : element.ownerDocument;
48
- };
49
-
50
- /**
51
- * Determines if a node is inert or in an inert ancestor.
52
- * @param {Element} [node]
53
- * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
54
- * see if any of them are inert. If false, only `node` itself is considered.
55
- * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
56
- * False if `node` is falsy.
57
- */
58
- var isInert = function isInert(node, lookUp) {
59
- var _node$getAttribute;
60
- if (lookUp === void 0) {
61
- lookUp = true;
62
- }
63
- // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
64
- // JS API property; we have to check the attribute, which can either be empty or 'true';
65
- // if it's `null` (not specified) or 'false', it's an active element
66
- 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');
67
- var inert = inertAtt === '' || inertAtt === 'true';
68
-
69
- // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
70
- // if it weren't for `matches()` not being a function on shadow roots; the following
71
- // code works for any kind of node
72
- // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
73
- // so it likely would not support `:is([inert] *)` either...
74
- var result = inert || lookUp && node && isInert(node.parentNode); // recursive
75
-
76
- return result;
77
- };
78
-
79
- /**
80
- * Determines if a node's content is editable.
81
- * @param {Element} [node]
82
- * @returns True if it's content-editable; false if it's not or `node` is falsy.
83
- */
84
- var isContentEditable = function isContentEditable(node) {
85
- var _node$getAttribute2;
86
- // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
87
- // to use the attribute directly to check for this, which can either be empty or 'true';
88
- // if it's `null` (not specified) or 'false', it's a non-editable element
89
- 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');
90
- return attValue === '' || attValue === 'true';
91
- };
92
-
93
- /**
94
- * @param {Element} el container to check in
95
- * @param {boolean} includeContainer add container to check
96
- * @param {(node: Element) => boolean} filter filter candidates
97
- * @returns {Element[]}
98
- */
99
- var getCandidates = function getCandidates(el, includeContainer, filter) {
100
- // even if `includeContainer=false`, we still have to check it for inertness because
101
- // if it's inert, all its children are inert
102
- if (isInert(el)) {
103
- return [];
104
- }
105
- var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
106
- if (includeContainer && matches.call(el, candidateSelector)) {
107
- candidates.unshift(el);
108
- }
109
- candidates = candidates.filter(filter);
110
- return candidates;
111
- };
112
-
113
- /**
114
- * @callback GetShadowRoot
115
- * @param {Element} element to check for shadow root
116
- * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
117
- */
118
-
119
- /**
120
- * @callback ShadowRootFilter
121
- * @param {Element} shadowHostNode the element which contains shadow content
122
- * @returns {boolean} true if a shadow root could potentially contain valid candidates.
123
- */
124
-
125
- /**
126
- * @typedef {Object} CandidateScope
127
- * @property {Element} scopeParent contains inner candidates
128
- * @property {Element[]} candidates list of candidates found in the scope parent
129
- */
130
-
131
- /**
132
- * @typedef {Object} IterativeOptions
133
- * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
134
- * if a function, implies shadow support is enabled and either returns the shadow root of an element
135
- * or a boolean stating if it has an undisclosed shadow root
136
- * @property {(node: Element) => boolean} filter filter candidates
137
- * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
138
- * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
139
- */
140
-
141
- /**
142
- * @param {Element[]} elements list of element containers to match candidates from
143
- * @param {boolean} includeContainer add container list to check
144
- * @param {IterativeOptions} options
145
- * @returns {Array.<Element|CandidateScope>}
146
- */
147
- var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
148
- var candidates = [];
149
- var elementsToCheck = Array.from(elements);
150
- while (elementsToCheck.length) {
151
- var element = elementsToCheck.shift();
152
- if (isInert(element, false)) {
153
- // no need to look up since we're drilling down
154
- // anything inside this container will also be inert
155
- continue;
156
- }
157
- if (element.tagName === 'SLOT') {
158
- // add shadow dom slot scope (slot itself cannot be focusable)
159
- var assigned = element.assignedElements();
160
- var content = assigned.length ? assigned : element.children;
161
- var nestedCandidates = getCandidatesIteratively(content, true, options);
162
- if (options.flatten) {
163
- candidates.push.apply(candidates, nestedCandidates);
164
- } else {
165
- candidates.push({
166
- scopeParent: element,
167
- candidates: nestedCandidates
168
- });
169
- }
170
- } else {
171
- // check candidate element
172
- var validCandidate = matches.call(element, candidateSelector);
173
- if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
174
- candidates.push(element);
175
- }
176
-
177
- // iterate over shadow content if possible
178
- var shadowRoot = element.shadowRoot ||
179
- // check for an undisclosed shadow
180
- typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
181
-
182
- // no inert look up because we're already drilling down and checking for inertness
183
- // on the way down, so all containers to this root node should have already been
184
- // vetted as non-inert
185
- var validShadowRoot = !isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
186
- if (shadowRoot && validShadowRoot) {
187
- // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
188
- // shadow exists, so look at light dom children as fallback BUT create a scope for any
189
- // child candidates found because they're likely slotted elements (elements that are
190
- // children of the web component element (which has the shadow), in the light dom, but
191
- // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
192
- // _after_ we return from this recursive call
193
- var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
194
- if (options.flatten) {
195
- candidates.push.apply(candidates, _nestedCandidates);
196
- } else {
197
- candidates.push({
198
- scopeParent: element,
199
- candidates: _nestedCandidates
200
- });
201
- }
202
- } else {
203
- // there's not shadow so just dig into the element's (light dom) children
204
- // __without__ giving the element special scope treatment
205
- elementsToCheck.unshift.apply(elementsToCheck, element.children);
206
- }
207
- }
208
- }
209
- return candidates;
210
- };
211
- var getTabindex = function getTabindex(node, isScope) {
212
- if (node.tabIndex < 0) {
213
- // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
214
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
215
- // yet they are still part of the regular tab order; in FF, they get a default
216
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
217
- // order, consider their tab index to be 0.
218
- // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
219
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
220
- //
221
- // isScope is positive for custom element with shadow root or slot that by default
222
- // have tabIndex -1, but need to be sorted by document order in order for their
223
- // content to be inserted in the correct position
224
- if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
225
- return 0;
226
- }
227
- }
228
- return node.tabIndex;
229
- };
230
- var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
231
- return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
232
- };
233
- var isInput = function isInput(node) {
234
- return node.tagName === 'INPUT';
235
- };
236
- var isHiddenInput = function isHiddenInput(node) {
237
- return isInput(node) && node.type === 'hidden';
238
- };
239
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
240
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
241
- return child.tagName === 'SUMMARY';
242
- });
243
- return r;
244
- };
245
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
246
- for (var i = 0; i < nodes.length; i++) {
247
- if (nodes[i].checked && nodes[i].form === form) {
248
- return nodes[i];
249
- }
250
- }
251
- };
252
- var isTabbableRadio = function isTabbableRadio(node) {
253
- if (!node.name) {
254
- return true;
255
- }
256
- var radioScope = node.form || getRootNode(node);
257
- var queryRadios = function queryRadios(name) {
258
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
259
- };
260
- var radioSet;
261
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
262
- radioSet = queryRadios(window.CSS.escape(node.name));
263
- } else {
264
- try {
265
- radioSet = queryRadios(node.name);
266
- } catch (err) {
267
- // eslint-disable-next-line no-console
268
- 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);
269
- return false;
270
- }
271
- }
272
- var checked = getCheckedRadio(radioSet, node.form);
273
- return !checked || checked === node;
274
- };
275
- var isRadio = function isRadio(node) {
276
- return isInput(node) && node.type === 'radio';
277
- };
278
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
279
- return isRadio(node) && !isTabbableRadio(node);
280
- };
281
-
282
- // determines if a node is ultimately attached to the window's document
283
- var isNodeAttached = function isNodeAttached(node) {
284
- var _nodeRoot;
285
- // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
286
- // (but NOT _the_ document; see second 'If' comment below for more).
287
- // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
288
- // is attached, and the one we need to check if it's in the document or not (because the
289
- // shadow, and all nodes it contains, is never considered in the document since shadows
290
- // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
291
- // is hidden, or is not in the document itself but is detached, it will affect the shadow's
292
- // visibility, including all the nodes it contains). The host could be any normal node,
293
- // or a custom element (i.e. web component). Either way, that's the one that is considered
294
- // part of the document, not the shadow root, nor any of its children (i.e. the node being
295
- // tested).
296
- // To further complicate things, we have to look all the way up until we find a shadow HOST
297
- // that is attached (or find none) because the node might be in nested shadows...
298
- // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
299
- // document (per the docs) and while it's a Document-type object, that document does not
300
- // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
301
- // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
302
- // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
303
- // node is actually detached.
304
- // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
305
- // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
306
- // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
307
- // `ownerDocument` will be `null`, hence the optional chaining on it.
308
- var nodeRoot = node && getRootNode(node);
309
- var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
310
-
311
- // in some cases, a detached node will return itself as the root instead of a document or
312
- // shadow root object, in which case, we shouldn't try to look further up the host chain
313
- var attached = false;
314
- if (nodeRoot && nodeRoot !== node) {
315
- var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
316
- 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));
317
- while (!attached && nodeRootHost) {
318
- var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
319
- // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
320
- // which means we need to get the host's host and check if that parent host is contained
321
- // in (i.e. attached to) the document
322
- nodeRoot = getRootNode(nodeRootHost);
323
- nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
324
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
325
- }
326
- }
327
- return attached;
328
- };
329
- var isZeroArea = function isZeroArea(node) {
330
- var _node$getBoundingClie = node.getBoundingClientRect(),
331
- width = _node$getBoundingClie.width,
332
- height = _node$getBoundingClie.height;
333
- return width === 0 && height === 0;
334
- };
335
- var isHidden = function isHidden(node, _ref) {
336
- var displayCheck = _ref.displayCheck,
337
- getShadowRoot = _ref.getShadowRoot;
338
- // NOTE: visibility will be `undefined` if node is detached from the document
339
- // (see notes about this further down), which means we will consider it visible
340
- // (this is legacy behavior from a very long way back)
341
- // NOTE: we check this regardless of `displayCheck="none"` because this is a
342
- // _visibility_ check, not a _display_ check
343
- if (getComputedStyle(node).visibility === 'hidden') {
344
- return true;
345
- }
346
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
347
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
348
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
349
- return true;
350
- }
351
- if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
352
- if (typeof getShadowRoot === 'function') {
353
- // figure out if we should consider the node to be in an undisclosed shadow and use the
354
- // 'non-zero-area' fallback
355
- var originalNode = node;
356
- while (node) {
357
- var parentElement = node.parentElement;
358
- var rootNode = getRootNode(node);
359
- if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
360
- ) {
361
- // node has an undisclosed shadow which means we can only treat it as a black box, so we
362
- // fall back to a non-zero-area test
363
- return isZeroArea(node);
364
- } else if (node.assignedSlot) {
365
- // iterate up slot
366
- node = node.assignedSlot;
367
- } else if (!parentElement && rootNode !== node.ownerDocument) {
368
- // cross shadow boundary
369
- node = rootNode.host;
370
- } else {
371
- // iterate up normal dom
372
- node = parentElement;
373
- }
374
- }
375
- node = originalNode;
376
- }
377
- // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
378
- // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
379
- // it might be a falsy value, which means shadow DOM support is disabled
380
-
381
- // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
382
- // now we can just test to see if it would normally be visible or not, provided it's
383
- // attached to the main document.
384
- // NOTE: We must consider case where node is inside a shadow DOM and given directly to
385
- // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
386
-
387
- if (isNodeAttached(node)) {
388
- // this works wherever the node is: if there's at least one client rect, it's
389
- // somehow displayed; it also covers the CSS 'display: contents' case where the
390
- // node itself is hidden in place of its contents; and there's no need to search
391
- // up the hierarchy either
392
- return !node.getClientRects().length;
393
- }
394
-
395
- // Else, the node isn't attached to the document, which means the `getClientRects()`
396
- // API will __always__ return zero rects (this can happen, for example, if React
397
- // is used to render nodes onto a detached tree, as confirmed in this thread:
398
- // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
399
- //
400
- // It also means that even window.getComputedStyle(node).display will return `undefined`
401
- // because styles are only computed for nodes that are in the document.
402
- //
403
- // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
404
- // somehow. Though it was never stated officially, anyone who has ever used tabbable
405
- // APIs on nodes in detached containers has actually implicitly used tabbable in what
406
- // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
407
- // considering __everything__ to be visible because of the innability to determine styles.
408
- //
409
- // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
410
- // nodes as visible with the 'none' fallback.__
411
- if (displayCheck !== 'legacy-full') {
412
- return true; // hidden
413
- }
414
- // else, fallback to 'none' mode and consider the node visible
415
- } else if (displayCheck === 'non-zero-area') {
416
- // NOTE: Even though this tests that the node's client rect is non-zero to determine
417
- // whether it's displayed, and that a detached node will __always__ have a zero-area
418
- // client rect, we don't special-case for whether the node is attached or not. In
419
- // this mode, we do want to consider nodes that have a zero area to be hidden at all
420
- // times, and that includes attached or not.
421
- return isZeroArea(node);
422
- }
423
-
424
- // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
425
- // it's visible
426
- return false;
427
- };
428
-
429
- // form fields (nested) inside a disabled fieldset are not focusable/tabbable
430
- // unless they are in the _first_ <legend> element of the top-most disabled
431
- // fieldset
432
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
433
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
434
- var parentNode = node.parentElement;
435
- // check if `node` is contained in a disabled <fieldset>
436
- while (parentNode) {
437
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
438
- // look for the first <legend> among the children of the disabled <fieldset>
439
- for (var i = 0; i < parentNode.children.length; i++) {
440
- var child = parentNode.children.item(i);
441
- // when the first <legend> (in document order) is found
442
- if (child.tagName === 'LEGEND') {
443
- // if its parent <fieldset> is not nested in another disabled <fieldset>,
444
- // return whether `node` is a descendant of its first <legend>
445
- return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
446
- }
447
- }
448
- // the disabled <fieldset> containing `node` has no <legend>
449
- return true;
450
- }
451
- parentNode = parentNode.parentElement;
452
- }
453
- }
454
-
455
- // else, node's tabbable/focusable state should not be affected by a fieldset's
456
- // enabled/disabled state
457
- return false;
458
- };
459
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
460
- if (node.disabled ||
461
- // we must do an inert look up to filter out any elements inside an inert ancestor
462
- // because we're limited in the type of selectors we can use in JSDom (see related
463
- // note related to `candidateSelectors`)
464
- isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
465
- // For a details element with a summary, the summary element gets the focus
466
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
467
- return false;
468
- }
469
- return true;
470
- };
471
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
472
- if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
473
- return false;
474
- }
475
- return true;
476
- };
477
- var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
478
- var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
479
- if (isNaN(tabIndex) || tabIndex >= 0) {
480
- return true;
481
- }
482
- // If a custom element has an explicit negative tabindex,
483
- // browsers will not allow tab targeting said element's children.
484
- return false;
485
- };
486
-
487
- /**
488
- * @param {Array.<Element|CandidateScope>} candidates
489
- * @returns Element[]
490
- */
491
- var sortByOrder = function sortByOrder(candidates) {
492
- var regularTabbables = [];
493
- var orderedTabbables = [];
494
- candidates.forEach(function (item, i) {
495
- var isScope = !!item.scopeParent;
496
- var element = isScope ? item.scopeParent : item;
497
- var candidateTabindex = getTabindex(element, isScope);
498
- var elements = isScope ? sortByOrder(item.candidates) : element;
499
- if (candidateTabindex === 0) {
500
- isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
501
- } else {
502
- orderedTabbables.push({
503
- documentOrder: i,
504
- tabIndex: candidateTabindex,
505
- item: item,
506
- isScope: isScope,
507
- content: elements
508
- });
509
- }
510
- });
511
- return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
512
- sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
513
- return acc;
514
- }, []).concat(regularTabbables);
515
- };
516
- var tabbable = function tabbable(el, options) {
517
- options = options || {};
518
- var candidates;
519
- if (options.getShadowRoot) {
520
- candidates = getCandidatesIteratively([el], options.includeContainer, {
521
- filter: isNodeMatchingSelectorTabbable.bind(null, options),
522
- flatten: false,
523
- getShadowRoot: options.getShadowRoot,
524
- shadowRootFilter: isValidShadowRootTabbable
525
- });
526
- } else {
527
- candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
528
- }
529
- return sortByOrder(candidates);
530
- };
531
- var focusable = function focusable(el, options) {
532
- options = options || {};
533
- var candidates;
534
- if (options.getShadowRoot) {
535
- candidates = getCandidatesIteratively([el], options.includeContainer, {
536
- filter: isNodeMatchingSelectorFocusable.bind(null, options),
537
- flatten: true,
538
- getShadowRoot: options.getShadowRoot
539
- });
540
- } else {
541
- candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
542
- }
543
- return candidates;
544
- };
545
- var isTabbable = function isTabbable(node, options) {
546
- options = options || {};
547
- if (!node) {
548
- throw new Error('No node provided');
549
- }
550
- if (matches.call(node, candidateSelector) === false) {
551
- return false;
552
- }
553
- return isNodeMatchingSelectorTabbable(options, node);
554
- };
555
- var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
556
- var isFocusable = function isFocusable(node, options) {
557
- options = options || {};
558
- if (!node) {
559
- throw new Error('No node provided');
560
- }
561
- if (matches.call(node, focusableCandidateSelector) === false) {
562
- return false;
563
- }
564
- return isNodeMatchingSelectorFocusable(options, node);
565
- };
566
-
567
- /*!
568
- * focus-trap 7.2.0
569
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
570
- */
571
- function ownKeys(object, enumerableOnly) {
572
- var keys = Object.keys(object);
573
- if (Object.getOwnPropertySymbols) {
574
- var symbols = Object.getOwnPropertySymbols(object);
575
- enumerableOnly && (symbols = symbols.filter(function (sym) {
576
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
577
- })), keys.push.apply(keys, symbols);
578
- }
579
- return keys;
580
- }
581
- function _objectSpread2(target) {
582
- for (var i = 1; i < arguments.length; i++) {
583
- var source = null != arguments[i] ? arguments[i] : {};
584
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
585
- _defineProperty(target, key, source[key]);
586
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
587
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
588
- });
589
- }
590
- return target;
591
- }
592
- function _defineProperty(obj, key, value) {
593
- key = _toPropertyKey(key);
594
- if (key in obj) {
595
- Object.defineProperty(obj, key, {
596
- value: value,
597
- enumerable: true,
598
- configurable: true,
599
- writable: true
600
- });
601
- } else {
602
- obj[key] = value;
603
- }
604
- return obj;
605
- }
606
- function _toPrimitive(input, hint) {
607
- if (typeof input !== "object" || input === null) return input;
608
- var prim = input[Symbol.toPrimitive];
609
- if (prim !== undefined) {
610
- var res = prim.call(input, hint || "default");
611
- if (typeof res !== "object") return res;
612
- throw new TypeError("@@toPrimitive must return a primitive value.");
613
- }
614
- return (hint === "string" ? String : Number)(input);
615
- }
616
- function _toPropertyKey(arg) {
617
- var key = _toPrimitive(arg, "string");
618
- return typeof key === "symbol" ? key : String(key);
619
- }
620
- var activeFocusTraps = {
621
- activateTrap: function activateTrap(trapStack, trap) {
622
- if (trapStack.length > 0) {
623
- var activeTrap = trapStack[trapStack.length - 1];
624
- if (activeTrap !== trap) {
625
- activeTrap.pause();
626
- }
627
- }
628
- var trapIndex = trapStack.indexOf(trap);
629
- if (trapIndex === -1) {
630
- trapStack.push(trap);
631
- } else {
632
- // move this existing trap to the front of the queue
633
- trapStack.splice(trapIndex, 1);
634
- trapStack.push(trap);
635
- }
636
- },
637
- deactivateTrap: function deactivateTrap(trapStack, trap) {
638
- var trapIndex = trapStack.indexOf(trap);
639
- if (trapIndex !== -1) {
640
- trapStack.splice(trapIndex, 1);
641
- }
642
- if (trapStack.length > 0) {
643
- trapStack[trapStack.length - 1].unpause();
644
- }
645
- }
646
- };
647
- var isSelectableInput = function isSelectableInput(node) {
648
- return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
649
- };
650
- var isEscapeEvent = function isEscapeEvent(e) {
651
- return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
652
- };
653
- var isTabEvent = function isTabEvent(e) {
654
- return e.key === 'Tab' || e.keyCode === 9;
655
- };
656
-
657
- // checks for TAB by default
658
- var isKeyForward = function isKeyForward(e) {
659
- return isTabEvent(e) && !e.shiftKey;
660
- };
661
-
662
- // checks for SHIFT+TAB by default
663
- var isKeyBackward = function isKeyBackward(e) {
664
- return isTabEvent(e) && e.shiftKey;
665
- };
666
- var delay = function delay(fn) {
667
- return setTimeout(fn, 0);
668
- };
669
-
670
- // Array.find/findIndex() are not supported on IE; this replicates enough
671
- // of Array.findIndex() for our needs
672
- var findIndex = function findIndex(arr, fn) {
673
- var idx = -1;
674
- arr.every(function (value, i) {
675
- if (fn(value)) {
676
- idx = i;
677
- return false; // break
678
- }
679
-
680
- return true; // next
681
- });
682
-
683
- return idx;
684
- };
685
-
686
- /**
687
- * Get an option's value when it could be a plain value, or a handler that provides
688
- * the value.
689
- * @param {*} value Option's value to check.
690
- * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
691
- * @returns {*} The `value`, or the handler's returned value.
692
- */
693
- var valueOrHandler = function valueOrHandler(value) {
694
- for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
695
- params[_key - 1] = arguments[_key];
696
- }
697
- return typeof value === 'function' ? value.apply(void 0, params) : value;
698
- };
699
- var getActualTarget = function getActualTarget(event) {
700
- // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
701
- // shadow host. However, event.target.composedPath() will be an array of
702
- // nodes "clicked" from inner-most (the actual element inside the shadow) to
703
- // outer-most (the host HTML document). If we have access to composedPath(),
704
- // then use its first element; otherwise, fall back to event.target (and
705
- // this only works for an _open_ shadow DOM; otherwise,
706
- // composedPath()[0] === event.target always).
707
- return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
708
- };
709
-
710
- // NOTE: this must be _outside_ `createFocusTrap()` to make sure all traps in this
711
- // current instance use the same stack if `userOptions.trapStack` isn't specified
712
- var internalTrapStack = [];
713
- var createFocusTrap = function createFocusTrap(elements, userOptions) {
714
- // SSR: a live trap shouldn't be created in this type of environment so this
715
- // should be safe code to execute if the `document` option isn't specified
716
- var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
717
- var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || internalTrapStack;
718
- var config = _objectSpread2({
719
- returnFocusOnDeactivate: true,
720
- escapeDeactivates: true,
721
- delayInitialFocus: true,
722
- isKeyForward: isKeyForward,
723
- isKeyBackward: isKeyBackward
724
- }, userOptions);
725
- var state = {
726
- // containers given to createFocusTrap()
727
- // @type {Array<HTMLElement>}
728
- containers: [],
729
- // list of objects identifying tabbable nodes in `containers` in the trap
730
- // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
731
- // is active, but the trap should never get to a state where there isn't at least one group
732
- // with at least one tabbable node in it (that would lead to an error condition that would
733
- // result in an error being thrown)
734
- // @type {Array<{
735
- // container: HTMLElement,
736
- // tabbableNodes: Array<HTMLElement>, // empty if none
737
- // focusableNodes: Array<HTMLElement>, // empty if none
738
- // firstTabbableNode: HTMLElement|null,
739
- // lastTabbableNode: HTMLElement|null,
740
- // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
741
- // }>}
742
- containerGroups: [],
743
- // same order/length as `containers` list
744
-
745
- // references to objects in `containerGroups`, but only those that actually have
746
- // tabbable nodes in them
747
- // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
748
- // the same length
749
- tabbableGroups: [],
750
- nodeFocusedBeforeActivation: null,
751
- mostRecentlyFocusedNode: null,
752
- active: false,
753
- paused: false,
754
- // timer ID for when delayInitialFocus is true and initial focus in this trap
755
- // has been delayed during activation
756
- delayInitialFocusTimer: undefined
757
- };
758
- 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
759
-
760
- /**
761
- * Gets a configuration option value.
762
- * @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,
763
- * value will be taken from this object. Otherwise, value will be taken from base configuration.
764
- * @param {string} optionName Name of the option whose value is sought.
765
- * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
766
- * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
767
- */
768
- var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
769
- return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
770
- };
771
-
772
- /**
773
- * Finds the index of the container that contains the element.
774
- * @param {HTMLElement} element
775
- * @returns {number} Index of the container in either `state.containers` or
776
- * `state.containerGroups` (the order/length of these lists are the same); -1
777
- * if the element isn't found.
778
- */
779
- var findContainerIndex = function findContainerIndex(element) {
780
- // NOTE: search `containerGroups` because it's possible a group contains no tabbable
781
- // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
782
- // and we still need to find the element in there
783
- return state.containerGroups.findIndex(function (_ref) {
784
- var container = _ref.container,
785
- tabbableNodes = _ref.tabbableNodes;
786
- return container.contains(element) ||
787
- // fall back to explicit tabbable search which will take into consideration any
788
- // web components if the `tabbableOptions.getShadowRoot` option was used for
789
- // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
790
- // look inside web components even if open)
791
- tabbableNodes.find(function (node) {
792
- return node === element;
793
- });
794
- });
795
- };
796
-
797
- /**
798
- * Gets the node for the given option, which is expected to be an option that
799
- * can be either a DOM node, a string that is a selector to get a node, `false`
800
- * (if a node is explicitly NOT given), or a function that returns any of these
801
- * values.
802
- * @param {string} optionName
803
- * @returns {undefined | false | HTMLElement | SVGElement} Returns
804
- * `undefined` if the option is not specified; `false` if the option
805
- * resolved to `false` (node explicitly not given); otherwise, the resolved
806
- * DOM node.
807
- * @throws {Error} If the option is set, not `false`, and is not, or does not
808
- * resolve to a node.
809
- */
810
- var getNodeForOption = function getNodeForOption(optionName) {
811
- var optionValue = config[optionName];
812
- if (typeof optionValue === 'function') {
813
- for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
814
- params[_key2 - 1] = arguments[_key2];
815
- }
816
- optionValue = optionValue.apply(void 0, params);
817
- }
818
- if (optionValue === true) {
819
- optionValue = undefined; // use default value
820
- }
821
-
822
- if (!optionValue) {
823
- if (optionValue === undefined || optionValue === false) {
824
- return optionValue;
825
- }
826
- // else, empty string (invalid), null (invalid), 0 (invalid)
827
-
828
- throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
829
- }
830
- var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
831
-
832
- if (typeof optionValue === 'string') {
833
- node = doc.querySelector(optionValue); // resolve to node, or null if fails
834
- if (!node) {
835
- throw new Error("`".concat(optionName, "` as selector refers to no known node"));
836
- }
837
- }
838
- return node;
839
- };
840
- var getInitialFocusNode = function getInitialFocusNode() {
841
- var node = getNodeForOption('initialFocus');
842
-
843
- // false explicitly indicates we want no initialFocus at all
844
- if (node === false) {
845
- return false;
846
- }
847
- if (node === undefined) {
848
- // option not specified: use fallback options
849
- if (findContainerIndex(doc.activeElement) >= 0) {
850
- node = doc.activeElement;
851
- } else {
852
- var firstTabbableGroup = state.tabbableGroups[0];
853
- var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
854
-
855
- // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
856
- node = firstTabbableNode || getNodeForOption('fallbackFocus');
857
- }
858
- }
859
- if (!node) {
860
- throw new Error('Your focus-trap needs to have at least one focusable element');
861
- }
862
- return node;
863
- };
864
- var updateTabbableNodes = function updateTabbableNodes() {
865
- state.containerGroups = state.containers.map(function (container) {
866
- var tabbableNodes = tabbable(container, config.tabbableOptions);
867
-
868
- // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
869
- // are a superset of tabbable nodes
870
- var focusableNodes = focusable(container, config.tabbableOptions);
871
- return {
872
- container: container,
873
- tabbableNodes: tabbableNodes,
874
- focusableNodes: focusableNodes,
875
- firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
876
- lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
877
- /**
878
- * Finds the __tabbable__ node that follows the given node in the specified direction,
879
- * in this container, if any.
880
- * @param {HTMLElement} node
881
- * @param {boolean} [forward] True if going in forward tab order; false if going
882
- * in reverse.
883
- * @returns {HTMLElement|undefined} The next tabbable node, if any.
884
- */
885
- nextTabbableNode: function nextTabbableNode(node) {
886
- var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
887
- // NOTE: If tabindex is positive (in order to manipulate the tab order separate
888
- // from the DOM order), this __will not work__ because the list of focusableNodes,
889
- // while it contains tabbable nodes, does not sort its nodes in any order other
890
- // than DOM order, because it can't: Where would you place focusable (but not
891
- // tabbable) nodes in that order? They have no order, because they aren't tabbale...
892
- // Support for positive tabindex is already broken and hard to manage (possibly
893
- // not supportable, TBD), so this isn't going to make things worse than they
894
- // already are, and at least makes things better for the majority of cases where
895
- // tabindex is either 0/unset or negative.
896
- // FYI, positive tabindex issue: https://github.com/focus-trap/focus-trap/issues/375
897
- var nodeIdx = focusableNodes.findIndex(function (n) {
898
- return n === node;
899
- });
900
- if (nodeIdx < 0) {
901
- return undefined;
902
- }
903
- if (forward) {
904
- return focusableNodes.slice(nodeIdx + 1).find(function (n) {
905
- return isTabbable(n, config.tabbableOptions);
906
- });
907
- }
908
- return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
909
- return isTabbable(n, config.tabbableOptions);
910
- });
911
- }
912
- };
913
- });
914
- state.tabbableGroups = state.containerGroups.filter(function (group) {
915
- return group.tabbableNodes.length > 0;
916
- });
917
-
918
- // throw if no groups have tabbable nodes and we don't have a fallback focus node either
919
- if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
920
- ) {
921
- throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
922
- }
923
- };
924
- var tryFocus = function tryFocus(node) {
925
- if (node === false) {
926
- return;
927
- }
928
- if (node === doc.activeElement) {
929
- return;
930
- }
931
- if (!node || !node.focus) {
932
- tryFocus(getInitialFocusNode());
933
- return;
934
- }
935
- node.focus({
936
- preventScroll: !!config.preventScroll
937
- });
938
- state.mostRecentlyFocusedNode = node;
939
- if (isSelectableInput(node)) {
940
- node.select();
941
- }
942
- };
943
- var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
944
- var node = getNodeForOption('setReturnFocus', previousActiveElement);
945
- return node ? node : node === false ? false : previousActiveElement;
946
- };
947
-
948
- // This needs to be done on mousedown and touchstart instead of click
949
- // so that it precedes the focus event.
950
- var checkPointerDown = function checkPointerDown(e) {
951
- var target = getActualTarget(e);
952
- if (findContainerIndex(target) >= 0) {
953
- // allow the click since it ocurred inside the trap
954
- return;
955
- }
956
- if (valueOrHandler(config.clickOutsideDeactivates, e)) {
957
- // immediately deactivate the trap
958
- trap.deactivate({
959
- // if, on deactivation, we should return focus to the node originally-focused
960
- // when the trap was activated (or the configured `setReturnFocus` node),
961
- // then assume it's also OK to return focus to the outside node that was
962
- // just clicked, causing deactivation, as long as that node is focusable;
963
- // if it isn't focusable, then return focus to the original node focused
964
- // on activation (or the configured `setReturnFocus` node)
965
- // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
966
- // which will result in the outside click setting focus to the node
967
- // that was clicked, whether it's focusable or not; by setting
968
- // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
969
- // on activation (or the configured `setReturnFocus` node)
970
- returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
971
- });
972
- return;
973
- }
974
-
975
- // This is needed for mobile devices.
976
- // (If we'll only let `click` events through,
977
- // then on mobile they will be blocked anyways if `touchstart` is blocked.)
978
- if (valueOrHandler(config.allowOutsideClick, e)) {
979
- // allow the click outside the trap to take place
980
- return;
981
- }
982
-
983
- // otherwise, prevent the click
984
- e.preventDefault();
985
- };
986
-
987
- // In case focus escapes the trap for some strange reason, pull it back in.
988
- var checkFocusIn = function checkFocusIn(e) {
989
- var target = getActualTarget(e);
990
- var targetContained = findContainerIndex(target) >= 0;
991
-
992
- // In Firefox when you Tab out of an iframe the Document is briefly focused.
993
- if (targetContained || target instanceof Document) {
994
- if (targetContained) {
995
- state.mostRecentlyFocusedNode = target;
996
- }
997
- } else {
998
- // escaped! pull it back in to where it just left
999
- e.stopImmediatePropagation();
1000
- tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
1001
- }
1002
- };
1003
-
1004
- // Hijack key nav events on the first and last focusable nodes of the trap,
1005
- // in order to prevent focus from escaping. If it escapes for even a
1006
- // moment it can end up scrolling the page and causing confusion so we
1007
- // kind of need to capture the action at the keydown phase.
1008
- var checkKeyNav = function checkKeyNav(event) {
1009
- var isBackward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1010
- var target = getActualTarget(event);
1011
- updateTabbableNodes();
1012
- var destinationNode = null;
1013
- if (state.tabbableGroups.length > 0) {
1014
- // make sure the target is actually contained in a group
1015
- // NOTE: the target may also be the container itself if it's focusable
1016
- // with tabIndex='-1' and was given initial focus
1017
- var containerIndex = findContainerIndex(target);
1018
- var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
1019
- if (containerIndex < 0) {
1020
- // target not found in any group: quite possible focus has escaped the trap,
1021
- // so bring it back into...
1022
- if (isBackward) {
1023
- // ...the last node in the last group
1024
- destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
1025
- } else {
1026
- // ...the first node in the first group
1027
- destinationNode = state.tabbableGroups[0].firstTabbableNode;
1028
- }
1029
- } else if (isBackward) {
1030
- // REVERSE
1031
-
1032
- // is the target the first tabbable node in a group?
1033
- var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
1034
- var firstTabbableNode = _ref2.firstTabbableNode;
1035
- return target === firstTabbableNode;
1036
- });
1037
- if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
1038
- // an exception case where the target is either the container itself, or
1039
- // a non-tabbable node that was given focus (i.e. tabindex is negative
1040
- // and user clicked on it or node was programmatically given focus)
1041
- // and is not followed by any other tabbable node, in which
1042
- // case, we should handle shift+tab as if focus were on the container's
1043
- // first tabbable node, and go to the last tabbable node of the LAST group
1044
- startOfGroupIndex = containerIndex;
1045
- }
1046
- if (startOfGroupIndex >= 0) {
1047
- // YES: then shift+tab should go to the last tabbable node in the
1048
- // previous group (and wrap around to the last tabbable node of
1049
- // the LAST group if it's the first tabbable node of the FIRST group)
1050
- var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
1051
- var destinationGroup = state.tabbableGroups[destinationGroupIndex];
1052
- destinationNode = destinationGroup.lastTabbableNode;
1053
- } else if (!isTabEvent(event)) {
1054
- // user must have customized the nav keys so we have to move focus manually _within_
1055
- // the active group: do this based on the order determined by tabbable()
1056
- destinationNode = containerGroup.nextTabbableNode(target, false);
1057
- }
1058
- } else {
1059
- // FORWARD
1060
-
1061
- // is the target the last tabbable node in a group?
1062
- var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
1063
- var lastTabbableNode = _ref3.lastTabbableNode;
1064
- return target === lastTabbableNode;
1065
- });
1066
- if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
1067
- // an exception case where the target is the container itself, or
1068
- // a non-tabbable node that was given focus (i.e. tabindex is negative
1069
- // and user clicked on it or node was programmatically given focus)
1070
- // and is not followed by any other tabbable node, in which
1071
- // case, we should handle tab as if focus were on the container's
1072
- // last tabbable node, and go to the first tabbable node of the FIRST group
1073
- lastOfGroupIndex = containerIndex;
1074
- }
1075
- if (lastOfGroupIndex >= 0) {
1076
- // YES: then tab should go to the first tabbable node in the next
1077
- // group (and wrap around to the first tabbable node of the FIRST
1078
- // group if it's the last tabbable node of the LAST group)
1079
- var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
1080
- var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
1081
- destinationNode = _destinationGroup.firstTabbableNode;
1082
- } else if (!isTabEvent(event)) {
1083
- // user must have customized the nav keys so we have to move focus manually _within_
1084
- // the active group: do this based on the order determined by tabbable()
1085
- destinationNode = containerGroup.nextTabbableNode(target);
1086
- }
1087
- }
1088
- } else {
1089
- // no groups available
1090
- // NOTE: the fallbackFocus option does not support returning false to opt-out
1091
- destinationNode = getNodeForOption('fallbackFocus');
1092
- }
1093
- if (destinationNode) {
1094
- if (isTabEvent(event)) {
1095
- // since tab natively moves focus, we wouldn't have a destination node unless we
1096
- // were on the edge of a container and had to move to the next/previous edge, in
1097
- // which case we want to prevent default to keep the browser from moving focus
1098
- // to where it normally would
1099
- event.preventDefault();
1100
- }
1101
- tryFocus(destinationNode);
1102
- }
1103
- // else, let the browser take care of [shift+]tab and move the focus
1104
- };
1105
-
1106
- var checkKey = function checkKey(event) {
1107
- if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
1108
- event.preventDefault();
1109
- trap.deactivate();
1110
- return;
1111
- }
1112
- if (config.isKeyForward(event) || config.isKeyBackward(event)) {
1113
- checkKeyNav(event, config.isKeyBackward(event));
1114
- }
1115
- };
1116
- var checkClick = function checkClick(e) {
1117
- var target = getActualTarget(e);
1118
- if (findContainerIndex(target) >= 0) {
1119
- return;
1120
- }
1121
- if (valueOrHandler(config.clickOutsideDeactivates, e)) {
1122
- return;
1123
- }
1124
- if (valueOrHandler(config.allowOutsideClick, e)) {
1125
- return;
1126
- }
1127
- e.preventDefault();
1128
- e.stopImmediatePropagation();
1129
- };
1130
-
1131
- //
1132
- // EVENT LISTENERS
1133
- //
1134
-
1135
- var addListeners = function addListeners() {
1136
- if (!state.active) {
1137
- return;
1138
- }
1139
-
1140
- // There can be only one listening focus trap at a time
1141
- activeFocusTraps.activateTrap(trapStack, trap);
1142
-
1143
- // Delay ensures that the focused element doesn't capture the event
1144
- // that caused the focus trap activation.
1145
- state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
1146
- tryFocus(getInitialFocusNode());
1147
- }) : tryFocus(getInitialFocusNode());
1148
- doc.addEventListener('focusin', checkFocusIn, true);
1149
- doc.addEventListener('mousedown', checkPointerDown, {
1150
- capture: true,
1151
- passive: false
1152
- });
1153
- doc.addEventListener('touchstart', checkPointerDown, {
1154
- capture: true,
1155
- passive: false
1156
- });
1157
- doc.addEventListener('click', checkClick, {
1158
- capture: true,
1159
- passive: false
1160
- });
1161
- doc.addEventListener('keydown', checkKey, {
1162
- capture: true,
1163
- passive: false
1164
- });
1165
- return trap;
1166
- };
1167
- var removeListeners = function removeListeners() {
1168
- if (!state.active) {
1169
- return;
1170
- }
1171
- doc.removeEventListener('focusin', checkFocusIn, true);
1172
- doc.removeEventListener('mousedown', checkPointerDown, true);
1173
- doc.removeEventListener('touchstart', checkPointerDown, true);
1174
- doc.removeEventListener('click', checkClick, true);
1175
- doc.removeEventListener('keydown', checkKey, true);
1176
- return trap;
1177
- };
1178
-
1179
- //
1180
- // TRAP DEFINITION
1181
- //
1182
-
1183
- trap = {
1184
- get active() {
1185
- return state.active;
1186
- },
1187
- get paused() {
1188
- return state.paused;
1189
- },
1190
- activate: function activate(activateOptions) {
1191
- if (state.active) {
1192
- return this;
1193
- }
1194
- var onActivate = getOption(activateOptions, 'onActivate');
1195
- var onPostActivate = getOption(activateOptions, 'onPostActivate');
1196
- var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
1197
- if (!checkCanFocusTrap) {
1198
- updateTabbableNodes();
1199
- }
1200
- state.active = true;
1201
- state.paused = false;
1202
- state.nodeFocusedBeforeActivation = doc.activeElement;
1203
- if (onActivate) {
1204
- onActivate();
1205
- }
1206
- var finishActivation = function finishActivation() {
1207
- if (checkCanFocusTrap) {
1208
- updateTabbableNodes();
1209
- }
1210
- addListeners();
1211
- if (onPostActivate) {
1212
- onPostActivate();
1213
- }
1214
- };
1215
- if (checkCanFocusTrap) {
1216
- checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
1217
- return this;
1218
- }
1219
- finishActivation();
1220
- return this;
1221
- },
1222
- deactivate: function deactivate(deactivateOptions) {
1223
- if (!state.active) {
1224
- return this;
1225
- }
1226
- var options = _objectSpread2({
1227
- onDeactivate: config.onDeactivate,
1228
- onPostDeactivate: config.onPostDeactivate,
1229
- checkCanReturnFocus: config.checkCanReturnFocus
1230
- }, deactivateOptions);
1231
- clearTimeout(state.delayInitialFocusTimer); // noop if undefined
1232
- state.delayInitialFocusTimer = undefined;
1233
- removeListeners();
1234
- state.active = false;
1235
- state.paused = false;
1236
- activeFocusTraps.deactivateTrap(trapStack, trap);
1237
- var onDeactivate = getOption(options, 'onDeactivate');
1238
- var onPostDeactivate = getOption(options, 'onPostDeactivate');
1239
- var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
1240
- var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
1241
- if (onDeactivate) {
1242
- onDeactivate();
1243
- }
1244
- var finishDeactivation = function finishDeactivation() {
1245
- delay(function () {
1246
- if (returnFocus) {
1247
- tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
1248
- }
1249
- if (onPostDeactivate) {
1250
- onPostDeactivate();
1251
- }
1252
- });
1253
- };
1254
- if (returnFocus && checkCanReturnFocus) {
1255
- checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
1256
- return this;
1257
- }
1258
- finishDeactivation();
1259
- return this;
1260
- },
1261
- pause: function pause() {
1262
- if (state.paused || !state.active) {
1263
- return this;
1264
- }
1265
- state.paused = true;
1266
- removeListeners();
1267
- return this;
1268
- },
1269
- unpause: function unpause() {
1270
- if (!state.paused || !state.active) {
1271
- return this;
1272
- }
1273
- state.paused = false;
1274
- updateTabbableNodes();
1275
- addListeners();
1276
- return this;
1277
- },
1278
- updateContainerElements: function updateContainerElements(containerElements) {
1279
- var elementsAsArray = [].concat(containerElements).filter(Boolean);
1280
- state.containers = elementsAsArray.map(function (element) {
1281
- return typeof element === 'string' ? doc.querySelector(element) : element;
1282
- });
1283
- if (state.active) {
1284
- updateTabbableNodes();
1285
- }
1286
- return this;
1287
- }
1288
- };
1289
-
1290
- // initialize container elements
1291
- trap.updateContainerElements(elements);
1292
- return trap;
1293
- };
1294
-
1295
- var __defProp = Object.defineProperty;
1296
- var __defProps = Object.defineProperties;
1297
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1298
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1299
- var __hasOwnProp = Object.prototype.hasOwnProperty;
1300
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
1301
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1302
- var __spreadValues = (a, b) => {
1303
- for (var prop in b || (b = {}))
1304
- if (__hasOwnProp.call(b, prop))
1305
- __defNormalProp(a, prop, b[prop]);
1306
- if (__getOwnPropSymbols)
1307
- for (var prop of __getOwnPropSymbols(b)) {
1308
- if (__propIsEnum.call(b, prop))
1309
- __defNormalProp(a, prop, b[prop]);
1310
- }
1311
- return a;
1312
- };
1313
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1314
- var __objRest = (source, exclude) => {
1315
- var target = {};
1316
- for (var prop in source)
1317
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
1318
- target[prop] = source[prop];
1319
- if (source != null && __getOwnPropSymbols)
1320
- for (var prop of __getOwnPropSymbols(source)) {
1321
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
1322
- target[prop] = source[prop];
1323
- }
1324
- return target;
1325
- };
1326
- function useFocusTrap(target, options = {}) {
1327
- let trap;
1328
- const _a = options, { immediate } = _a, focusTrapOptions = __objRest(_a, ["immediate"]);
1329
- const hasFocus = ref(false);
1330
- const isPaused = ref(false);
1331
- const activate = (opts) => trap && trap.activate(opts);
1332
- const deactivate = (opts) => trap && trap.deactivate(opts);
1333
- const pause = () => {
1334
- if (trap) {
1335
- trap.pause();
1336
- isPaused.value = true;
1337
- }
1338
- };
1339
- const unpause = () => {
1340
- if (trap) {
1341
- trap.unpause();
1342
- isPaused.value = false;
1343
- }
1344
- };
1345
- watch(() => unrefElement(target), (el) => {
1346
- if (!el)
1347
- return;
1348
- trap = createFocusTrap(el, __spreadProps(__spreadValues({}, focusTrapOptions), {
1349
- onActivate() {
1350
- hasFocus.value = true;
1351
- if (options.onActivate)
1352
- options.onActivate();
1353
- },
1354
- onDeactivate() {
1355
- hasFocus.value = false;
1356
- if (options.onDeactivate)
1357
- options.onDeactivate();
1358
- }
1359
- }));
1360
- if (immediate)
1361
- activate();
1362
- }, { flush: "post" });
1363
- tryOnScopeDispose(() => deactivate());
1364
- return {
1365
- hasFocus,
1366
- isPaused,
1367
- activate,
1368
- deactivate,
1369
- pause,
1370
- unpause
1371
- };
1372
- }
1373
-
1374
32
  var script = defineComponent({
1375
33
  name: 'OrModal',
1376
34
  components: {