@onereach/ui-components 4.6.4-beta.2804.0 → 4.6.4

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 (394) hide show
  1. package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +30 -47
  2. package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +19 -10
  3. package/dist/bundled/v2/components/OrBottomSheetV3/index.js +1 -0
  4. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +2 -1
  5. package/dist/bundled/v2/components/OrCardCollectionV3/index.js +2 -1
  6. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +28 -52
  7. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.vue.d.ts +18 -36
  8. package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -0
  9. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +3 -2
  10. package/dist/bundled/v2/components/OrDatePickerV3/index.js +2 -1
  11. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -3
  12. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +2 -1
  13. package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +2 -1
  14. package/dist/bundled/v2/components/OrIconButtonV3/index.js +2 -1
  15. package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -1
  16. package/dist/bundled/v2/components/OrInlineInputV3/index.js +2 -1
  17. package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -1
  18. package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +2 -1
  19. package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -1
  20. package/dist/bundled/v2/components/OrInputV3/index.js +2 -1
  21. package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +21 -48
  22. package/dist/bundled/v2/components/OrMenuV3/OrMenu.vue.d.ts +13 -16
  23. package/dist/bundled/v2/components/OrMenuV3/index.js +1 -0
  24. package/dist/bundled/v2/components/OrModalV3/OrModal.js +220 -65
  25. package/dist/bundled/v2/components/OrModalV3/OrModal.vue.d.ts +13 -19
  26. package/dist/bundled/v2/components/OrModalV3/index.js +9 -8
  27. package/dist/bundled/v2/components/OrModalV3/styles.d.ts +0 -3
  28. package/dist/bundled/v2/components/OrModalV3/styles.js +1 -16
  29. package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +2 -1
  30. package/dist/bundled/v2/components/OrNotificationV3/index.js +2 -1
  31. package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -1
  32. package/dist/bundled/v2/components/OrPaginationV3/index.js +1 -0
  33. package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +31 -102
  34. package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +19 -12
  35. package/dist/bundled/v2/components/OrPopoverV3/index.js +1 -0
  36. package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -0
  37. package/dist/bundled/v2/components/OrSearchV3/index.js +1 -0
  38. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -0
  39. package/dist/bundled/v2/components/OrSelectV3/index.js +1 -0
  40. package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -0
  41. package/dist/bundled/v2/components/OrSidebarV3/index.js +1 -0
  42. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -0
  43. package/dist/bundled/v2/components/OrTabsV3/index.js +1 -0
  44. package/dist/bundled/v2/components/OrTagV3/OrTag.js +2 -1
  45. package/dist/bundled/v2/components/OrTagV3/index.js +2 -1
  46. package/dist/bundled/v2/components/OrTagsV3/OrTags.js +1 -0
  47. package/dist/bundled/v2/components/OrTagsV3/index.js +1 -0
  48. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -1
  49. package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -0
  50. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -0
  51. package/dist/bundled/v2/components/OrToastContainerV3/index.js +1 -0
  52. package/dist/bundled/v2/components/OrToastV3/OrToast.js +2 -1
  53. package/dist/bundled/v2/components/OrToastV3/index.js +2 -1
  54. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +32 -39
  55. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +20 -17
  56. package/dist/bundled/v2/components/OrTooltipV3/index.js +2 -1
  57. package/dist/bundled/v2/components/index.js +2 -1
  58. package/dist/bundled/v2/hooks/index.d.ts +1 -1
  59. package/dist/bundled/v2/hooks/index.js +1 -3
  60. package/dist/bundled/v2/hooks/useControlAttributes.d.ts +1 -2
  61. package/dist/bundled/v2/hooks/useElevation.js +3 -1
  62. package/dist/bundled/v2/hooks/useOverflow.d.ts +2 -2
  63. package/dist/bundled/v2/hooks/usePopoverState.d.ts +11 -0
  64. package/dist/bundled/v2/hooks/usePopoverState.js +42 -0
  65. package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +1 -2
  66. package/dist/bundled/v2/index.js +3 -5
  67. package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-a81b2abb.js → OrBottomSheet.vue_vue_type_script_lang-aebedcb2.js} +28 -45
  68. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-f2d222a5.js → OrCardCollection.vue_vue_type_script_lang-d15329fd.js} +3 -3
  69. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-b1b13331.js → OrConfirm.vue_vue_type_script_lang-84f80066.js} +28 -52
  70. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-31f5d798.js → OrDatePicker.vue_vue_type_script_lang-92222927.js} +3 -3
  71. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-a0354296.js → OrDateTimePicker.vue_vue_type_script_lang-81f3cb69.js} +3 -3
  72. package/dist/bundled/v3/{OrDateTimePickerMonthSelect-98b935cb.js → OrDateTimePickerMonthSelect-354e1af8.js} +2 -2
  73. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-5bba9f3f.js → OrIconButton.vue_vue_type_script_lang-fe97e57a.js} +1 -1
  74. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3c6b0958.js → OrInlineInput.vue_vue_type_script_lang-3131ae11.js} +1 -1
  75. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-da59cd8e.js → OrInlineTextarea.vue_vue_type_script_lang-db28519e.js} +1 -1
  76. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-d08b3796.js → OrInput.vue_vue_type_script_lang-5f74dd08.js} +1 -1
  77. package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-1f45bf44.js +66 -0
  78. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-31c15ba1.js +160 -0
  79. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-463e1a82.js → OrNotification.vue_vue_type_script_lang-89bbc41f.js} +1 -1
  80. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-bdc8d9fb.js → OrPagination.vue_vue_type_script_lang-1835d432.js} +1 -1
  81. package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-7b1b2488.js → OrPopover.vue_vue_type_script_lang-c75dbd63.js} +27 -98
  82. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-940d8e1f.js → OrSearch.vue_vue_type_script_lang-142ab019.js} +1 -1
  83. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-1c77663e.js → OrSelect.vue_vue_type_script_lang-0ab50e13.js} +3 -3
  84. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-780eaa84.js → OrSidebar.vue_vue_type_script_lang-23c6a11f.js} +1 -1
  85. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-9d4221f1.js → OrTabs.vue_vue_type_script_lang-255f33d2.js} +1 -1
  86. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-09948d1f.js → OrTag.vue_vue_type_script_lang-f4321103.js} +1 -1
  87. package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-71fb4f1d.js → OrTags.vue_vue_type_script_lang-4684a9c5.js} +2 -2
  88. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-21be27c6.js → OrTimePicker.vue_vue_type_script_lang-e9684fe9.js} +2 -2
  89. package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-f3ccffce.js +56 -0
  90. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +7 -6
  91. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +16 -10
  92. package/dist/bundled/v3/components/OrBottomSheetV3/index.js +3 -2
  93. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +12 -11
  94. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +11 -10
  95. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +11 -10
  96. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +18 -35
  97. package/dist/bundled/v3/components/OrConfirmV3/index.js +8 -7
  98. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +11 -10
  99. package/dist/bundled/v3/components/OrDatePickerV3/index.js +9 -8
  100. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +12 -11
  101. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +9 -8
  102. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +8 -7
  103. package/dist/bundled/v3/components/OrIconButtonV3/index.js +7 -6
  104. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +9 -8
  105. package/dist/bundled/v3/components/OrInlineInputV3/index.js +8 -7
  106. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +9 -8
  107. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +8 -7
  108. package/dist/bundled/v3/components/OrInputV3/OrInput.js +9 -8
  109. package/dist/bundled/v3/components/OrInputV3/index.js +8 -7
  110. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +9 -8
  111. package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +13 -5
  112. package/dist/bundled/v3/components/OrMenuV3/index.js +5 -4
  113. package/dist/bundled/v3/components/OrModalV3/OrModal.js +36 -33
  114. package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +14 -16
  115. package/dist/bundled/v3/components/OrModalV3/index.js +15 -14
  116. package/dist/bundled/v3/components/OrModalV3/styles.d.ts +0 -3
  117. package/dist/bundled/v3/components/OrModalV3/styles.js +1 -16
  118. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +9 -8
  119. package/dist/bundled/v3/components/OrNotificationV3/index.js +8 -7
  120. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
  121. package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
  122. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +8 -7
  123. package/dist/bundled/v3/components/OrPaginationV3/index.js +6 -5
  124. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +8 -7
  125. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +16 -11
  126. package/dist/bundled/v3/components/OrPopoverV3/index.js +4 -3
  127. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +9 -8
  128. package/dist/bundled/v3/components/OrSearchV3/index.js +8 -7
  129. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +10 -9
  130. package/dist/bundled/v3/components/OrSelectV3/index.js +9 -8
  131. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +8 -7
  132. package/dist/bundled/v3/components/OrSidebarV3/index.js +7 -6
  133. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +7 -6
  134. package/dist/bundled/v3/components/OrTabsV3/index.js +6 -5
  135. package/dist/bundled/v3/components/OrTagV3/OrTag.js +9 -8
  136. package/dist/bundled/v3/components/OrTagV3/index.js +8 -7
  137. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +9 -8
  138. package/dist/bundled/v3/components/OrTagsV3/index.js +8 -7
  139. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +9 -8
  140. package/dist/bundled/v3/components/OrTimePickerV3/index.js +7 -6
  141. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +8 -7
  142. package/dist/bundled/v3/components/OrToastContainerV3/index.js +7 -6
  143. package/dist/bundled/v3/components/OrToastV3/OrToast.js +7 -6
  144. package/dist/bundled/v3/components/OrToastV3/index.js +8 -7
  145. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +13 -10
  146. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +17 -6
  147. package/dist/bundled/v3/components/OrTooltipV3/index.js +6 -5
  148. package/dist/bundled/v3/components/index.js +26 -25
  149. package/dist/bundled/v3/hooks/index.d.ts +1 -1
  150. package/dist/bundled/v3/hooks/index.js +1 -3
  151. package/dist/bundled/v3/hooks/useControlAttributes.d.ts +1 -2
  152. package/dist/bundled/v3/hooks/useElevation.js +3 -1
  153. package/dist/bundled/v3/hooks/useOverflow.d.ts +2 -2
  154. package/dist/bundled/v3/hooks/usePopoverState.d.ts +11 -0
  155. package/dist/bundled/v3/hooks/usePopoverState.js +42 -0
  156. package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +1 -2
  157. package/dist/bundled/v3/index.js +27 -29
  158. package/dist/esm/v2/{OrBottomSheet-75a3b3c0.js → OrBottomSheet-0592ccb2.js} +31 -48
  159. package/dist/esm/v2/{OrCardCollection-94e0d4b3.js → OrCardCollection-2b9bc050.js} +4 -4
  160. package/dist/esm/v2/{OrCheckbox-41f2822d.js → OrCheckbox-3a8c93ad.js} +0 -2
  161. package/dist/esm/v2/{OrCheckboxGroup-97cfcbda.js → OrCheckboxGroup-b0d95dd6.js} +1 -1
  162. package/dist/esm/v2/{OrCheckboxTree-a7dc126c.js → OrCheckboxTree-54b0fdc1.js} +1 -1
  163. package/dist/esm/v2/{OrConfirm-93176f0d.js → OrConfirm-3f19c23b.js} +30 -54
  164. package/dist/esm/v2/{OrDatePicker-1f49baf1.js → OrDatePicker-e991e7b2.js} +4 -4
  165. package/dist/esm/v2/{OrDateTimePicker-3609de6e.js → OrDateTimePicker-7bbd81d1.js} +5 -5
  166. package/dist/esm/v2/{OrDateTimePickerMonthSelect-94af0df9.js → OrDateTimePickerMonthSelect-d75a849c.js} +3 -3
  167. package/dist/esm/v2/{OrIconButton-1ee067fd.js → OrIconButton-75972865.js} +2 -2
  168. package/dist/esm/v2/{OrInlineInput-737e8fff.js → OrInlineInput-cf17dbb2.js} +1 -3
  169. package/dist/esm/v2/{OrInlineTextarea-8bc79191.js → OrInlineTextarea-2b0e2f39.js} +1 -3
  170. package/dist/esm/v2/{OrInput-00cba216.js → OrInput-1a2b8ad9.js} +1 -3
  171. package/dist/esm/v2/{OrMenu-1c14379f.js → OrMenu-a35caf3b.js} +23 -49
  172. package/dist/esm/v2/OrModal-4aaae6bc.js +312 -0
  173. package/dist/esm/v2/{OrNotification-b2dd7471.js → OrNotification-a773f1df.js} +1 -1
  174. package/dist/esm/v2/{OrOverlay-cdaf5b7a.js → OrOverlay-f791976c.js} +1 -3
  175. package/dist/esm/v2/{OrPagination-06a860c7.js → OrPagination-3513165d.js} +3 -5
  176. package/dist/esm/v2/{OrPassword-681f8c53.js → OrPassword-1de0dc6c.js} +0 -2
  177. package/dist/esm/v2/{OrPopover-7096d459.js → OrPopover-a8950b85.js} +33 -106
  178. package/dist/esm/v2/{OrProgress-e079e857.js → OrProgress-102e3b5d.js} +0 -2
  179. package/dist/esm/v2/{OrRadio-23810acd.js → OrRadio-a812088f.js} +0 -2
  180. package/dist/esm/v2/{OrRadioGroup-0e1bf22c.js → OrRadioGroup-0de37d76.js} +1 -1
  181. package/dist/esm/v2/{OrSearch-408fb293.js → OrSearch-19c157b3.js} +1 -1
  182. package/dist/esm/v2/{OrSelect-1d437402.js → OrSelect-991b8be3.js} +4 -6
  183. package/dist/esm/v2/{OrSidebar-c106e59c.js → OrSidebar-bfbb8b0a.js} +1 -1
  184. package/dist/esm/v2/{OrSidebarCollapseButton-db2b96c5.js → OrSidebarCollapseButton-a98037d6.js} +1 -1
  185. package/dist/esm/v2/{OrSwitch-cb97f4d3.js → OrSwitch-9fae0bae.js} +0 -2
  186. package/dist/esm/v2/{OrTabs-52acc3f2.js → OrTabs-abf290af.js} +2 -2
  187. package/dist/esm/v2/{OrTag-dc2a1452.js → OrTag-aa46cecd.js} +1 -1
  188. package/dist/esm/v2/{OrTags-33e9a167.js → OrTags-2a567e79.js} +2 -4
  189. package/dist/esm/v2/{OrTextarea-01df0715.js → OrTextarea-e5c66426.js} +0 -2
  190. package/dist/esm/v2/{OrTextbox-a937432f.js → OrTextbox-c85d7fe6.js} +0 -2
  191. package/dist/esm/v2/{OrTimePicker-13359d63.js → OrTimePicker-766637cb.js} +3 -3
  192. package/dist/esm/v2/{OrTooltip-0649a0cd.js → OrTooltip-0dc63c1a.js} +33 -40
  193. package/dist/esm/v2/components/index.js +38 -39
  194. package/dist/esm/v2/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +19 -10
  195. package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +4 -5
  196. package/dist/esm/v2/components/or-card-collection-v3/index.js +11 -12
  197. package/dist/esm/v2/components/or-checkbox-group-v3/index.js +3 -5
  198. package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +2 -4
  199. package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -3
  200. package/dist/esm/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +18 -36
  201. package/dist/esm/v2/components/or-confirm-v3/index.js +9 -10
  202. package/dist/esm/v2/components/or-date-picker-v3/index.js +10 -11
  203. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +10 -11
  204. package/dist/esm/v2/components/or-icon-button-v3/index.js +7 -8
  205. package/dist/esm/v2/components/or-inline-input-v3/index.js +8 -9
  206. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +8 -9
  207. package/dist/esm/v2/components/or-input-v3/index.js +8 -9
  208. package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +13 -16
  209. package/dist/esm/v2/components/or-menu-v3/index.js +7 -8
  210. package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +13 -19
  211. package/dist/esm/v2/components/or-modal-v3/index.js +12 -13
  212. package/dist/esm/v2/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +8 -0
  213. package/dist/esm/v2/components/or-modal-v3/partials/or-modal-content/styles.d.ts +1 -0
  214. package/dist/esm/v2/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +8 -0
  215. package/dist/esm/v2/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +1 -0
  216. package/dist/esm/v2/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +12 -0
  217. package/dist/esm/v2/components/or-modal-v3/partials/or-modal-header/styles.d.ts +1 -0
  218. package/dist/esm/v2/components/or-modal-v3/styles.d.ts +0 -3
  219. package/dist/esm/v2/components/or-notification-v3/index.js +8 -9
  220. package/dist/esm/v2/components/or-overlay-v3/index.js +2 -4
  221. package/dist/esm/v2/components/or-pagination-v3/index.js +7 -8
  222. package/dist/esm/v2/components/or-password/index.js +1 -3
  223. package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +19 -12
  224. package/dist/esm/v2/components/or-popover-v3/index.js +5 -6
  225. package/dist/esm/v2/components/or-progress-v3/index.js +1 -3
  226. package/dist/esm/v2/components/or-radio-group-v3/index.js +2 -4
  227. package/dist/esm/v2/components/or-radio-v3/index.js +1 -3
  228. package/dist/esm/v2/components/or-search-v3/index.js +9 -10
  229. package/dist/esm/v2/components/or-select-v3/index.js +11 -12
  230. package/dist/esm/v2/components/or-sidebar-v3/index.js +9 -10
  231. package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +8 -9
  232. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -9
  233. package/dist/esm/v2/components/or-switch-v3/index.js +1 -3
  234. package/dist/esm/v2/components/or-tabs-v3/index.js +7 -8
  235. package/dist/esm/v2/components/or-tag-v3/index.js +8 -9
  236. package/dist/esm/v2/components/or-tags-v3/index.js +9 -10
  237. package/dist/esm/v2/components/or-textarea-v3/index.js +1 -3
  238. package/dist/esm/v2/components/or-textbox/index.js +1 -3
  239. package/dist/esm/v2/components/or-time-picker-v3/index.js +8 -9
  240. package/dist/esm/v2/components/or-toast-v3/index.js +8 -9
  241. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +8 -9
  242. package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +20 -17
  243. package/dist/esm/v2/components/or-tooltip-v3/index.js +7 -8
  244. package/dist/esm/v2/hooks/index.d.ts +1 -1
  245. package/dist/esm/v2/hooks/index.js +2 -4
  246. package/dist/esm/v2/hooks/useControlAttributes.d.ts +1 -2
  247. package/dist/esm/v2/hooks/useOverflow.d.ts +2 -2
  248. package/dist/esm/v2/hooks/usePopoverState.d.ts +11 -0
  249. package/dist/esm/v2/hooks/useValidationAttributes.d.ts +1 -2
  250. package/dist/esm/v2/index.js +38 -40
  251. package/dist/esm/v2/{types-a8cdee2b.js → types-f30860ee.js} +2 -4
  252. package/dist/esm/{v3/useElevation-b5a49746.js → v2/useElevation-a50ec347.js} +3 -1
  253. package/dist/esm/v2/usePopoverState-8a95a300.js +42 -0
  254. package/dist/esm/v3/{OrBottomSheet-77311b39.js → OrBottomSheet-a39fb331.js} +31 -48
  255. package/dist/esm/v3/{OrCardCollection-bb83c68d.js → OrCardCollection-3d652a34.js} +4 -4
  256. package/dist/esm/v3/{OrCheckbox-2194e473.js → OrCheckbox-7093e9c2.js} +0 -2
  257. package/dist/esm/v3/{OrCheckboxGroup-6c36527f.js → OrCheckboxGroup-f755d216.js} +1 -1
  258. package/dist/esm/v3/{OrCheckboxTree-1873a941.js → OrCheckboxTree-99f6eaec.js} +1 -1
  259. package/dist/esm/v3/{OrConfirm-db0bc902.js → OrConfirm-cb0b2b78.js} +30 -54
  260. package/dist/esm/v3/{OrDatePicker-afede6ed.js → OrDatePicker-6a44ad41.js} +4 -4
  261. package/dist/esm/v3/{OrDateTimePicker-c74ee133.js → OrDateTimePicker-2cbcf8c7.js} +5 -5
  262. package/dist/esm/v3/{OrDateTimePickerMonthSelect-37ab67a7.js → OrDateTimePickerMonthSelect-2f61d92f.js} +3 -3
  263. package/dist/esm/v3/{OrIconButton-22ed57ad.js → OrIconButton-e34a20eb.js} +2 -2
  264. package/dist/esm/v3/{OrInlineInput-180b24c4.js → OrInlineInput-ad0d4264.js} +1 -3
  265. package/dist/esm/v3/{OrInlineTextarea-0ac83ef3.js → OrInlineTextarea-b5ec488d.js} +1 -3
  266. package/dist/esm/v3/{OrInput-ae5c1b2f.js → OrInput-a9aeef6e.js} +1 -3
  267. package/dist/esm/v3/{OrMenu-659eb389.js → OrMenu-f590d761.js} +24 -50
  268. package/dist/esm/v3/OrModal-9dc09e95.js +226 -0
  269. package/dist/esm/v3/{OrNotification-bcae9dec.js → OrNotification-69031471.js} +1 -1
  270. package/dist/esm/v3/{OrOverlay-5db47cfe.js → OrOverlay-28952099.js} +1 -3
  271. package/dist/esm/v3/{OrPagination-9e2ee086.js → OrPagination-f3be120f.js} +3 -5
  272. package/dist/esm/v3/{OrPassword-cd8a3c46.js → OrPassword-9192b9ea.js} +0 -2
  273. package/dist/esm/v3/{OrPopover-e2208d1c.js → OrPopover-ebd57053.js} +31 -104
  274. package/dist/esm/v3/{OrProgress-a54a42c0.js → OrProgress-efa51d7b.js} +0 -2
  275. package/dist/esm/v3/{OrRadio-4f0026c9.js → OrRadio-a6c88f29.js} +0 -2
  276. package/dist/esm/v3/{OrRadioGroup-d215409c.js → OrRadioGroup-5d1fe6fd.js} +1 -1
  277. package/dist/esm/v3/{OrSearch-5c1384ce.js → OrSearch-5576cf14.js} +1 -1
  278. package/dist/esm/v3/{OrSelect-f32d7727.js → OrSelect-0b3ebce9.js} +4 -6
  279. package/dist/esm/v3/{OrSidebar-47bea81a.js → OrSidebar-303ef558.js} +1 -1
  280. package/dist/esm/v3/{OrSidebarCollapseButton-ece05a32.js → OrSidebarCollapseButton-d7f004df.js} +1 -1
  281. package/dist/esm/v3/{OrSwitch-ed9868db.js → OrSwitch-594f5a63.js} +0 -2
  282. package/dist/esm/v3/{OrTabs-b9de0432.js → OrTabs-b6c8077c.js} +2 -2
  283. package/dist/esm/v3/{OrTag-c6f35b07.js → OrTag-4ac45254.js} +1 -1
  284. package/dist/esm/v3/{OrTags-5990db43.js → OrTags-de9f065e.js} +2 -4
  285. package/dist/esm/v3/{OrTextarea-0f9a2a27.js → OrTextarea-93cf7da7.js} +0 -2
  286. package/dist/esm/v3/{OrTextbox-8d2903db.js → OrTextbox-56714f51.js} +0 -2
  287. package/dist/esm/v3/{OrTimePicker-81437237.js → OrTimePicker-0fe72767.js} +3 -3
  288. package/dist/esm/v3/{OrTooltip-7e0473b9.js → OrTooltip-edb28095.js} +28 -41
  289. package/dist/esm/v3/components/index.js +38 -39
  290. package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +16 -10
  291. package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +4 -5
  292. package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -12
  293. package/dist/esm/v3/components/or-checkbox-group-v3/index.js +3 -5
  294. package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +2 -4
  295. package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -3
  296. package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +18 -35
  297. package/dist/esm/v3/components/or-confirm-v3/index.js +9 -10
  298. package/dist/esm/v3/components/or-date-picker-v3/index.js +10 -11
  299. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +10 -11
  300. package/dist/esm/v3/components/or-icon-button-v3/index.js +7 -8
  301. package/dist/esm/v3/components/or-inline-input-v3/index.js +8 -9
  302. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +8 -9
  303. package/dist/esm/v3/components/or-input-v3/index.js +8 -9
  304. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +13 -5
  305. package/dist/esm/v3/components/or-menu-v3/index.js +7 -8
  306. package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +14 -16
  307. package/dist/esm/v3/components/or-modal-v3/index.js +11 -12
  308. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +5 -0
  309. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/styles.d.ts +1 -0
  310. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +5 -0
  311. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +1 -0
  312. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +7 -0
  313. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/styles.d.ts +1 -0
  314. package/dist/esm/v3/components/or-modal-v3/styles.d.ts +0 -3
  315. package/dist/esm/v3/components/or-notification-v3/index.js +8 -9
  316. package/dist/esm/v3/components/or-overlay-v3/index.js +2 -4
  317. package/dist/esm/v3/components/or-pagination-v3/index.js +7 -8
  318. package/dist/esm/v3/components/or-password/index.js +1 -3
  319. package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +16 -11
  320. package/dist/esm/v3/components/or-popover-v3/index.js +5 -6
  321. package/dist/esm/v3/components/or-progress-v3/index.js +1 -3
  322. package/dist/esm/v3/components/or-radio-group-v3/index.js +2 -4
  323. package/dist/esm/v3/components/or-radio-v3/index.js +1 -3
  324. package/dist/esm/v3/components/or-search-v3/index.js +9 -10
  325. package/dist/esm/v3/components/or-select-v3/index.js +11 -12
  326. package/dist/esm/v3/components/or-sidebar-v3/index.js +9 -10
  327. package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +8 -9
  328. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -9
  329. package/dist/esm/v3/components/or-switch-v3/index.js +1 -3
  330. package/dist/esm/v3/components/or-tabs-v3/index.js +7 -8
  331. package/dist/esm/v3/components/or-tag-v3/index.js +8 -9
  332. package/dist/esm/v3/components/or-tags-v3/index.js +9 -10
  333. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -3
  334. package/dist/esm/v3/components/or-textbox/index.js +1 -3
  335. package/dist/esm/v3/components/or-time-picker-v3/index.js +8 -9
  336. package/dist/esm/v3/components/or-toast-v3/index.js +8 -9
  337. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +8 -9
  338. package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +17 -6
  339. package/dist/esm/v3/components/or-tooltip-v3/index.js +7 -8
  340. package/dist/esm/v3/hooks/index.d.ts +1 -1
  341. package/dist/esm/v3/hooks/index.js +2 -4
  342. package/dist/esm/v3/hooks/useControlAttributes.d.ts +1 -2
  343. package/dist/esm/v3/hooks/useOverflow.d.ts +2 -2
  344. package/dist/esm/v3/hooks/usePopoverState.d.ts +11 -0
  345. package/dist/esm/v3/hooks/useValidationAttributes.d.ts +1 -2
  346. package/dist/esm/v3/index.js +38 -40
  347. package/dist/esm/v3/{types-637a5626.js → types-60f3dd35.js} +2 -4
  348. package/dist/esm/{v2/useElevation-b5a49746.js → v3/useElevation-a50ec347.js} +3 -1
  349. package/dist/esm/v3/usePopoverState-8a95a300.js +42 -0
  350. package/package.json +4 -4
  351. package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +29 -58
  352. package/src/components/or-confirm-v3/OrConfirm.vue +29 -50
  353. package/src/components/or-date-picker-v3/OrDatePicker.vue +1 -1
  354. package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +2 -2
  355. package/src/components/or-menu-v3/OrMenu.vue +18 -40
  356. package/src/components/or-modal-v3/OrModal.vue +32 -66
  357. package/src/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue +37 -0
  358. package/src/components/or-modal-v3/partials/or-modal-content/styles.ts +10 -0
  359. package/src/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue +37 -0
  360. package/src/components/or-modal-v3/partials/or-modal-footer/styles.ts +4 -0
  361. package/src/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue +54 -0
  362. package/src/components/or-modal-v3/partials/or-modal-header/styles.ts +10 -0
  363. package/src/components/or-modal-v3/styles.ts +0 -25
  364. package/src/components/or-pagination-v3/OrPagination.vue +1 -1
  365. package/src/components/or-popover-v3/OrPopover.vue +28 -125
  366. package/src/components/or-time-picker-v3/OrTimePicker.vue +1 -1
  367. package/src/components/or-tooltip-v3/OrTooltip.vue +24 -40
  368. package/src/hooks/index.ts +1 -1
  369. package/src/hooks/useControlAttributes.ts +1 -1
  370. package/src/hooks/useElevation.ts +7 -2
  371. package/src/hooks/useOverflow.ts +5 -3
  372. package/src/hooks/usePopoverState.ts +66 -0
  373. package/src/hooks/useValidationAttributes.ts +1 -1
  374. package/src/shims-png.d.ts +2 -2
  375. package/src/shims-vue.d.ts +2 -3
  376. package/src/shims.d.ts +3 -5
  377. package/dist/bundled/v2/hooks/useTheme.d.ts +0 -2
  378. package/dist/bundled/v2/hooks/useTheme.js +0 -10128
  379. package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-115f2c60.js +0 -93
  380. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-202c4e2f.js +0 -71
  381. package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-bb3db5bf.js +0 -72
  382. package/dist/bundled/v3/hooks/useTheme.d.ts +0 -2
  383. package/dist/bundled/v3/hooks/useTheme.js +0 -10128
  384. package/dist/esm/v2/OrModal-3dca06f9.js +0 -174
  385. package/dist/esm/v2/hooks/useTheme.d.ts +0 -2
  386. package/dist/esm/v2/useTheme-e23d13c8.js +0 -9
  387. package/dist/esm/v3/OrModal-2db2eb9f.js +0 -150
  388. package/dist/esm/v3/hooks/useTheme.d.ts +0 -2
  389. package/dist/esm/v3/useTheme-e23d13c8.js +0 -9
  390. package/src/hooks/useTheme.ts +0 -7
  391. package/src/shims-mdx.d.ts +0 -4
  392. /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-30f79990.js → OrDateTimePickerMonthSelect-9a8e332c.js} +0 -0
  393. /package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-86c7b93a.js → OrOverlay.vue_vue_type_script_lang-29ff6fd8.js} +0 -0
  394. /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-485ef171.js → OrToastContainer.vue_vue_type_script_lang-461fb6d1.js} +0 -0
@@ -1,8 +1,6 @@
1
1
  import { useScrollLock } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed } from 'vue-demi';
3
- import { u as useElevation } from './useElevation-b5a49746.js';
4
- import '@onereach/styles/tailwind.config';
5
- import 'tailwindcss/resolveConfig';
3
+ import { u as useElevation } from './useElevation-a50ec347.js';
6
4
  import { s as script$1 } from './OrTeleport.vue3-8099178c.js';
7
5
  import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, renderSlot } from 'vue';
8
6
 
@@ -1,13 +1,11 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import '@vueuse/core';
3
3
  import { u as useResponsive } from './useResponsive-a02e95b7.js';
4
- import '@onereach/styles/tailwind.config';
5
- import 'tailwindcss/resolveConfig';
6
4
  import { s as script$1 } from './OrButton-c2b6aa9e.js';
7
5
  import { s as script$2 } from './OrIcon-62793572.js';
8
6
  import { s as script$4 } from './OrMenuItem-dbee450f.js';
9
- import { s as script$3 } from './OrMenu-659eb389.js';
10
- import './OrPopover-e2208d1c.js';
7
+ import { s as script$3 } from './OrMenu-f590d761.js';
8
+ import './OrPopover-ebd57053.js';
11
9
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withModifiers, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
12
10
 
13
11
  const PaginationRoot = [
@@ -252,7 +250,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
252
250
  onClick: _cache[2] || (_cache[2] = withModifiers($event => _ctx.limitMenu.open(), ["stop"]))
253
251
  }, {
254
252
  default: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLimit) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
255
- icon: _ctx.limitMenu && _ctx.limitMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
253
+ icon: _ctx.limitMenu && _ctx.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
256
254
  }, null, 8 /* PROPS */, ["icon"])]),
257
255
  _: 1 /* STABLE */
258
256
  }, 8 /* PROPS */, ["class"]), createVNode(_component_OrMenu, {
@@ -1,8 +1,6 @@
1
1
  import { defineComponent, ref } from 'vue-demi';
2
2
  import { useVModel } from '@vueuse/core';
3
3
  import { s as script$1 } from './OrInput-9be9a209.js';
4
- import '@onereach/styles/tailwind.config';
5
- import 'tailwindcss/resolveConfig';
6
4
  import { u as useToggle } from './useToggle-c04fc920.js';
7
5
  import './OrButton-78a118d7.js';
8
6
  import { s as script$2, b as BUTTON_SIZE } from './OrIconButton-ad0cbc8d.js';
@@ -1,11 +1,10 @@
1
- import { autoUpdate, computePosition, flip, shift, hide } from '@floating-ui/dom';
1
+ import { autoUpdate, computePosition, shift, flip, hide } from '@floating-ui/dom';
2
2
  import { onClickOutside } from '@vueuse/core';
3
- import { defineComponent, ref, computed, watch, watchPostEffect, unref, toRef, nextTick } from 'vue-demi';
4
- import { u as useElevation } from './useElevation-b5a49746.js';
3
+ import { defineComponent, ref, computed, toRef, watchPostEffect, unref } from 'vue-demi';
4
+ import { u as useElevation } from './useElevation-a50ec347.js';
5
+ import { u as usePopoverState } from './usePopoverState-8a95a300.js';
5
6
  import { u as useResponsive } from './useResponsive-a02e95b7.js';
6
- import '@onereach/styles/tailwind.config';
7
- import 'tailwindcss/resolveConfig';
8
- import { s as script$1 } from './OrBottomSheet-77311b39.js';
7
+ import { s as script$1 } from './OrBottomSheet-a39fb331.js';
9
8
  import { s as script$2 } from './OrTeleport.vue3-8099178c.js';
10
9
  import { resolveComponent, openBlock, createBlock, withCtx, withDirectives, createElementVNode, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, vShow } from 'vue';
11
10
 
@@ -82,6 +81,10 @@ var script = defineComponent({
82
81
  },
83
82
  inheritAttrs: false,
84
83
  props: {
84
+ isOpen: {
85
+ type: Boolean,
86
+ default: false
87
+ },
85
88
  variant: {
86
89
  type: String,
87
90
  default: PopoverVariant.Auto
@@ -111,8 +114,8 @@ var script = defineComponent({
111
114
  default: false
112
115
  }
113
116
  },
114
- emits: ['update:state', 'update:state:open', 'update:state:fullscreen', 'update:state:closed', 'update:state:closed-automatically'],
115
- expose: ['root', 'state', 'isOpen', 'isFullscreen', 'isClosed', 'isFlipped', 'open', 'close'],
117
+ emits: ['update:state', 'open', 'close'],
118
+ expose: ['root', 'state', 'isFlipped', 'isHidden', 'open', 'close', 'toggle'],
116
119
  setup(props, context) {
117
120
  const {
118
121
  isDesktop,
@@ -129,89 +132,14 @@ var script = defineComponent({
129
132
  const rootStyles = computed(() => ['or-popover-v3', ...PopoverRoot, ...props.customStyles]);
130
133
  const bodyStyles = computed(() => [...PopoverBody, ...PopoverBodyPlacements[props.placement]]);
131
134
  // State
132
- const state = ref('closed');
133
- const isOpen = computed(() => state.value === 'open');
134
- const isFullscreen = computed(() => state.value === 'fullscreen');
135
- const isClosed = computed(() => state.value === 'closed');
135
+ const {
136
+ state,
137
+ open,
138
+ close,
139
+ toggle
140
+ } = usePopoverState(toRef(props, 'isOpen'), context);
136
141
  const isFlipped = ref(false);
137
- // Events
138
- watch(state, value => {
139
- context.emit('update:state', value);
140
- switch (value) {
141
- case 'open':
142
- context.emit('update:state:open');
143
- break;
144
- case 'fullscreen':
145
- context.emit('update:state:fullscreen');
146
- break;
147
- case 'closed':
148
- context.emit('update:state:closed');
149
- break;
150
- }
151
- });
152
- // Methods
153
- function open() {
154
- state.value = 'open';
155
- switch (props.variant) {
156
- case PopoverVariant.Auto:
157
- if (isMobile.value) {
158
- nextTick(() => {
159
- const bottomSheetInstance = bottomSheet.value;
160
- if (bottomSheetInstance) {
161
- bottomSheetInstance.open();
162
- }
163
- });
164
- }
165
- break;
166
- case PopoverVariant.Popover:
167
- break;
168
- case PopoverVariant.BottomSheet:
169
- nextTick(() => {
170
- const bottomSheetInstance = bottomSheet.value;
171
- if (bottomSheetInstance) {
172
- bottomSheetInstance.open();
173
- }
174
- });
175
- break;
176
- }
177
- }
178
- function close() {
179
- let auto = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
180
- state.value = 'closed';
181
- switch (props.variant) {
182
- case PopoverVariant.Auto:
183
- if (isMobile.value) {
184
- nextTick(() => {
185
- const bottomSheetInstance = bottomSheet.value;
186
- if (bottomSheetInstance) {
187
- bottomSheetInstance.close();
188
- }
189
- });
190
- }
191
- break;
192
- case PopoverVariant.Popover:
193
- break;
194
- case PopoverVariant.BottomSheet:
195
- nextTick(() => {
196
- const bottomSheetInstance = bottomSheet.value;
197
- if (bottomSheetInstance) {
198
- bottomSheetInstance.close();
199
- }
200
- });
201
- break;
202
- }
203
- if (auto) {
204
- context.emit('update:state:closed-automatically');
205
- }
206
- }
207
- // Handlers
208
- function handleBottomSheetState(bottomSheetState) {
209
- if (bottomSheetState === 'closed') {
210
- state.value = 'closed';
211
- } else {
212
- state.value = 'open';
213
- }
214
- }
142
+ const isHidden = ref(false);
215
143
  // Effects
216
144
  watchPostEffect(() => {
217
145
  const rootElement = unref(root);
@@ -222,14 +150,14 @@ var script = defineComponent({
222
150
  } = props;
223
151
  if (trigger) {
224
152
  autoUpdate(trigger, rootElement, async () => {
225
- var _a;
153
+ var _a, _b;
226
154
  const {
227
155
  x,
228
156
  y,
229
157
  middlewareData
230
158
  } = await computePosition(trigger, rootElement, {
231
159
  placement,
232
- middleware: [flip(), shift(), hide()]
160
+ middleware: [shift(), flip(), hide()]
233
161
  });
234
162
  Object.assign(rootElement.style, {
235
163
  left: `${x}px`,
@@ -238,10 +166,14 @@ var script = defineComponent({
238
166
  width: props.fullWidth ? `${trigger.offsetWidth}px` : ''
239
167
  });
240
168
  isFlipped.value = Boolean((_a = middlewareData.flip) === null || _a === void 0 ? void 0 : _a.index);
169
+ isHidden.value = Boolean((_b = middlewareData.hide) === null || _b === void 0 ? void 0 : _b.referenceHidden);
241
170
  });
242
171
  }
243
172
  }
244
173
  });
174
+ // #region Elevation
175
+ useElevation(root, state);
176
+ // #endregion
245
177
  // #region Click Outside
246
178
  const trigger = toRef(props, 'trigger');
247
179
  onClickOutside(root, event => {
@@ -252,31 +184,26 @@ var script = defineComponent({
252
184
  } = _ref;
253
185
  return (classList === null || classList === void 0 ? void 0 : classList.contains('or-popover-v3')) || (classList === null || classList === void 0 ? void 0 : classList.contains('or-bottom-sheet-v3'));
254
186
  })) {
255
- close(true);
187
+ close();
256
188
  }
257
189
  }, {
258
190
  ignore: [trigger]
259
191
  });
260
192
  // #endregion
261
- // #region Elevation
262
- useElevation(root, state);
263
- // #endregion
264
193
  return {
265
194
  isDesktop,
266
195
  isMobile,
267
196
  root,
268
197
  bottomSheet,
269
198
  bottomSheetRoot,
270
- handleBottomSheetState,
271
199
  rootStyles,
272
200
  bodyStyles,
273
201
  state,
274
- isOpen,
275
- isFullscreen,
276
- isClosed,
277
202
  isFlipped,
203
+ isHidden,
278
204
  open,
279
- close
205
+ close,
206
+ toggle
280
207
  };
281
208
  }
282
209
  });
@@ -302,12 +229,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
302
229
  key: 1,
303
230
  ref: "bottomSheet"
304
231
  }, _ctx.bottomSheetProps, {
305
- "onUpdate:state": _cache[0] || (_cache[0] = $event => _ctx.state = $event),
306
- "onUpdate:state:closedAutomatically": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state:closed-automatically'))
232
+ "is-open": _ctx.state === 'open',
233
+ "onUpdate:state": _cache[0] || (_cache[0] = $event => _ctx.state = $event)
307
234
  }), {
308
235
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
309
236
  _: 3 /* FORWARDED */
310
- }, 16 /* FULL_PROPS */)) : createCommentVNode("v-if", true)], 512 /* NEED_PATCH */), [[vShow, _ctx.isOpen]])]),
237
+ }, 16 /* FULL_PROPS */, ["is-open"])) : createCommentVNode("v-if", true)], 512 /* NEED_PATCH */), [[vShow, _ctx.state === 'open']])]),
311
238
  _: 3 /* FORWARDED */
312
239
  });
313
240
  }
@@ -2,8 +2,6 @@ import { useElementBounding } from '@vueuse/core';
2
2
  import round from 'lodash/round';
3
3
  import { defineComponent, ref, useSlots, computed } from 'vue-demi';
4
4
  import { u as useResponsive } from './useResponsive-a02e95b7.js';
5
- import '@onereach/styles/tailwind.config';
6
- import 'tailwindcss/resolveConfig';
7
5
  import { openBlock, createElementBlock, normalizeClass, Fragment, renderSlot, createElementVNode, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
8
6
 
9
7
  var ProgressColor;
@@ -1,8 +1,6 @@
1
1
  import { defineComponent, ref, computed, reactive } from 'vue-demi';
2
2
  import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
3
3
  import '@vueuse/core';
4
- import '@onereach/styles/tailwind.config';
5
- import 'tailwindcss/resolveConfig';
6
4
  import { s as script$1, L as LabelVariant } from './OrLabel-4da56db0.js';
7
5
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, mergeProps, vModelRadio, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
8
6
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
@@ -1,7 +1,7 @@
1
1
  import { defineComponent } from 'vue-demi';
2
2
  import { useVModel } from '@vueuse/core';
3
3
  import { s as script$1 } from './OrFormGroup-9f581536.js';
4
- import { s as script$2 } from './OrRadio-4f0026c9.js';
4
+ import { s as script$2 } from './OrRadio-a6c88f29.js';
5
5
  import { resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
6
6
 
7
7
  var script = defineComponent({
@@ -1,6 +1,6 @@
1
1
  import { debouncedWatch } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, watch } from 'vue-demi';
3
- import { s as script$1 } from './OrInput-ae5c1b2f.js';
3
+ import { s as script$1 } from './OrInput-a9aeef6e.js';
4
4
  import { I as InputBoxSize } from './OrInputBox-32814878.js';
5
5
  import { resolveComponent, openBlock, createBlock, normalizeClass } from 'vue';
6
6
 
@@ -2,19 +2,17 @@ import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch }
2
2
  import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e1f90e0a.js';
3
3
  import { u as useOverflow } from './useOverflow-c856b7b7.js';
4
4
  import '@vueuse/core';
5
- import '@onereach/styles/tailwind.config';
6
- import 'tailwindcss/resolveConfig';
7
- import { s as script$1, i as isEmptyValue } from './OrCheckbox-2194e473.js';
5
+ import { s as script$1, i as isEmptyValue } from './OrCheckbox-7093e9c2.js';
8
6
  import { s as script$2 } from './OrError-c01d0c29.js';
9
7
  import { s as script$3 } from './OrExpansionPanel-c016d8fa.js';
10
8
  import { s as script$4 } from './OrHint-06ab89d7.js';
11
9
  import { s as script$5 } from './OrIcon-62793572.js';
12
10
  import { s as script$7, I as InputBoxSize } from './OrInputBox-32814878.js';
13
- import { s as script$6 } from './OrInput-ae5c1b2f.js';
11
+ import { s as script$6 } from './OrInput-a9aeef6e.js';
14
12
  import { s as script$8 } from './OrLabel-4da56db0.js';
15
13
  import { s as script$9 } from './OrMenuItem-dbee450f.js';
16
- import { s as script$a } from './OrPopover-e2208d1c.js';
17
- import { s as script$b } from './OrTag-c6f35b07.js';
14
+ import { s as script$a } from './OrPopover-ebd57053.js';
15
+ import { s as script$b } from './OrTag-4ac45254.js';
18
16
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createElementVNode, Fragment, renderList, createVNode, withModifiers, vShow } from 'vue';
19
17
 
20
18
  const SelectRoot = [
@@ -1,6 +1,6 @@
1
1
  import { useDraggable, useElementBounding } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, useSlots, watch } from 'vue-demi';
3
- import { O as OrSidebarPlacement, s as script$1 } from './OrSidebarCollapseButton-ece05a32.js';
3
+ import { O as OrSidebarPlacement, s as script$1 } from './OrSidebarCollapseButton-d7f004df.js';
4
4
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createElementVNode, normalizeStyle, createBlock, withDirectives, vShow } from 'vue';
5
5
 
6
6
  const SidebarRoot = [
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
- import { s as script$1 } from './OrIconButton-22ed57ad.js';
2
+ import { s as script$1 } from './OrIconButton-e34a20eb.js';
3
3
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode } from 'vue';
4
4
 
5
5
  var OrSidebarPlacement;
@@ -1,8 +1,6 @@
1
1
  import { defineComponent, ref, computed, reactive } from 'vue-demi';
2
2
  import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
3
3
  import '@vueuse/core';
4
- import '@onereach/styles/tailwind.config';
5
- import 'tailwindcss/resolveConfig';
6
4
  import { s as script$1, L as LabelVariant } from './OrLabel-4da56db0.js';
7
5
  import { s as script$2 } from './OrLoader-b79022da.js';
8
6
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, mergeProps, vModelCheckbox, createVNode, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
@@ -2,8 +2,8 @@ import { useResizeObserver } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue-demi';
3
3
  import { s as script$1 } from './OrIcon-62793572.js';
4
4
  import { s as script$3 } from './OrMenuItem-dbee450f.js';
5
- import { s as script$2 } from './OrMenu-659eb389.js';
6
- import './OrPopover-e2208d1c.js';
5
+ import { s as script$2 } from './OrMenu-f590d761.js';
6
+ import './OrPopover-ebd57053.js';
7
7
  import { s as script$4 } from './OrTab-f7e51ffb.js';
8
8
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString, createVNode, createCommentVNode, renderSlot } from 'vue';
9
9
 
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, watchPostEffect, unref } from 'vue-demi';
2
- import { s as script$1 } from './OrIconButton-22ed57ad.js';
2
+ import { s as script$1 } from './OrIconButton-e34a20eb.js';
3
3
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, withModifiers, createCommentVNode } from 'vue';
4
4
 
5
5
  var TagVariant;
@@ -1,11 +1,9 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { u as useOverflow } from './useOverflow-c856b7b7.js';
3
3
  import '@vueuse/core';
4
- import '@onereach/styles/tailwind.config';
5
- import 'tailwindcss/resolveConfig';
6
4
  import { s as script$1 } from './OrButton-c2b6aa9e.js';
7
- import { s as script$2 } from './OrPopover-e2208d1c.js';
8
- import { s as script$3 } from './OrTag-c6f35b07.js';
5
+ import { s as script$2 } from './OrPopover-ebd57053.js';
6
+ import { s as script$3 } from './OrTag-4ac45254.js';
9
7
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createBlock, mergeProps, withCtx, createTextVNode, toDisplayString, createVNode, withModifiers, createCommentVNode } from 'vue';
10
8
 
11
9
  const Tags = [
@@ -1,8 +1,6 @@
1
1
  import { defineComponent, ref, computed, reactive } from 'vue-demi';
2
2
  import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
3
3
  import '@vueuse/core';
4
- import '@onereach/styles/tailwind.config';
5
- import 'tailwindcss/resolveConfig';
6
4
  import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
7
5
  import { s as script$1 } from './OrError-c01d0c29.js';
8
6
  import { s as script$2 } from './OrHint-06ab89d7.js';
@@ -1,7 +1,5 @@
1
1
  import { defineComponent, ref, computed, getCurrentInstance } from 'vue-demi';
2
2
  import '@vueuse/core';
3
- import '@onereach/styles/tailwind.config';
4
- import 'tailwindcss/resolveConfig';
5
3
  import { u as useToggle } from './useToggle-c04fc920.js';
6
4
  import { p as pxToRem } from './px-to-rem-0b26b83e.js';
7
5
  import { s as setStyle, r as requestAF, d as getCS, a as reflow, c as cancelAF } from './dom-f1d55b67.js';
@@ -4,11 +4,11 @@ import { s as script$1, a as script$2, b as script$3, u as useCurrentDate } from
4
4
  import { s as script$4, a as script$5 } from './OrDateTimePickerTimeSelect-14503fde.js';
5
5
  import { s as script$6 } from './OrError-c01d0c29.js';
6
6
  import { s as script$7 } from './OrHint-06ab89d7.js';
7
- import { s as script$9 } from './OrIconButton-22ed57ad.js';
7
+ import { s as script$9 } from './OrIconButton-e34a20eb.js';
8
8
  import { s as script$8 } from './OrIcon-62793572.js';
9
9
  import { s as script$a, I as InputBoxSize } from './OrInputBox-32814878.js';
10
10
  import { s as script$b } from './OrLabel-4da56db0.js';
11
- import { s as script$c } from './OrPopover-e2208d1c.js';
11
+ import { s as script$c } from './OrPopover-ebd57053.js';
12
12
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, withModifiers, createVNode, Fragment, createElementVNode } from 'vue';
13
13
 
14
14
  const TimePicker = [
@@ -241,7 +241,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
241
241
  },
242
242
  trigger: _ctx.inputBoxRoot,
243
243
  placement: 'bottom-start',
244
- "onUpdate:state:closedAutomatically": _cache[4] || (_cache[4] = $event => _ctx.reset())
244
+ onClose: _cache[4] || (_cache[4] = $event => _ctx.reset())
245
245
  }, {
246
246
  default: withCtx(() => [createVNode(_component_OrDateTimePickerPopoverHeader, null, {
247
247
  default: withCtx(() => [createVNode(_component_OrDateTimePickerMobileControl, {
@@ -1,6 +1,7 @@
1
- import { useDebounceFn, useElementHover } from '@vueuse/core';
2
- import { defineComponent, ref, computed, watch } from 'vue-demi';
3
- import { s as script$1, P as PopoverPlacement } from './OrPopover-e2208d1c.js';
1
+ import { defineComponent, ref, computed, toRef } from 'vue-demi';
2
+ import '@vueuse/core';
3
+ import { u as usePopoverState } from './usePopoverState-8a95a300.js';
4
+ import { s as script$1, P as PopoverPlacement } from './OrPopover-ebd57053.js';
4
5
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, withCtx, createElementVNode, toDisplayString, createCommentVNode } from 'vue';
5
6
 
6
7
  const TooltipRoot = [
@@ -54,6 +55,10 @@ var script = defineComponent({
54
55
  OrPopover: script$1
55
56
  },
56
57
  props: {
58
+ isOpen: {
59
+ type: Boolean,
60
+ default: false
61
+ },
57
62
  text: {
58
63
  type: String,
59
64
  default: undefined
@@ -63,51 +68,31 @@ var script = defineComponent({
63
68
  default: PopoverPlacement.Bottom
64
69
  }
65
70
  },
66
- emits: ['update:state'],
67
- expose: ['root', 'open', 'close'],
68
- setup(props) {
71
+ emits: ['update:state', 'open', 'close'],
72
+ expose: ['root', 'state', 'open', 'close', 'toggle'],
73
+ setup(props, context) {
69
74
  // Refs
70
75
  const root = ref();
71
- const popover = ref();
72
- const popoverRoot = computed(() => {
73
- var _a;
74
- return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.root;
75
- });
76
76
  // Styles
77
77
  const rootStyles = computed(() => ['or-tooltip-v3', ...TooltipRoot]);
78
78
  const bodyStyles = computed(() => [...TooltipBody, ...TooltipBodyPlacements[props.placement]]);
79
- // Methods
80
- const open = useDebounceFn(() => {
81
- if (hover.value) {
82
- const popoverInstance = popover.value;
83
- if (popoverInstance) {
84
- popoverInstance.open();
85
- }
86
- }
87
- }, 250);
88
- const close = useDebounceFn(() => {
89
- if (!hover.value) {
90
- const popoverInstance = popover.value;
91
- if (popoverInstance) {
92
- popoverInstance.close();
93
- }
94
- }
95
- }, 250);
96
- // Effects
97
- // #region Hover
98
- const hover = useElementHover(root);
99
- watch(hover, value => {
100
- value ? open() : close();
79
+ // State
80
+ const {
81
+ state,
82
+ open,
83
+ close,
84
+ toggle
85
+ } = usePopoverState(toRef(props, 'isOpen'), context, {
86
+ debounce: 250
101
87
  });
102
- // #endregion
103
88
  return {
104
89
  root,
105
- popover,
106
- popoverRoot,
107
90
  rootStyles,
108
91
  bodyStyles,
92
+ state,
109
93
  open,
110
- close
94
+ close,
95
+ toggle
111
96
  };
112
97
  }
113
98
  });
@@ -116,23 +101,25 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
116
101
  const _component_OrPopover = resolveComponent("OrPopover");
117
102
  return openBlock(), createElementBlock("div", {
118
103
  ref: "root",
119
- class: normalizeClass(_ctx.rootStyles)
104
+ class: normalizeClass(_ctx.rootStyles),
105
+ onMouseenter: _cache[1] || (_cache[1] = $event => _ctx.open()),
106
+ onMouseleave: _cache[2] || (_cache[2] = $event => _ctx.close())
120
107
  }, [renderSlot(_ctx.$slots, "default"), _ctx.text ? (openBlock(), createBlock(_component_OrPopover, {
121
108
  key: 0,
122
- ref: "popover",
109
+ "is-open": _ctx.state === 'open',
123
110
  variant: 'popover',
124
111
  trigger: _ctx.root,
125
112
  placement: _ctx.placement,
126
113
  "full-width": false,
127
114
  "disable-default-styles": true,
128
- "onUpdate:state": _cache[0] || (_cache[0] = $event => _ctx.$emit('update:state', $event))
115
+ "onUpdate:state": _cache[0] || (_cache[0] = $event => _ctx.state = $event)
129
116
  }, {
130
117
  default: withCtx(() => [createElementVNode("div", {
131
118
  class: normalizeClass(_ctx.bodyStyles)
132
119
  }, toDisplayString(_ctx.text), 3 /* TEXT, CLASS */)]),
133
120
 
134
121
  _: 1 /* STABLE */
135
- }, 8 /* PROPS */, ["trigger", "placement"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
122
+ }, 8 /* PROPS */, ["is-open", "trigger", "placement"])) : createCommentVNode("v-if", true)], 34 /* CLASS, HYDRATE_EVENTS */);
136
123
  }
137
124
 
138
125
  script.render = render;