@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.
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +30 -47
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +19 -10
- package/dist/bundled/v2/components/OrBottomSheetV3/index.js +1 -0
- package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +2 -1
- package/dist/bundled/v2/components/OrCardCollectionV3/index.js +2 -1
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +28 -52
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.vue.d.ts +18 -36
- package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -0
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +3 -2
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +2 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -3
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +2 -1
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +2 -1
- package/dist/bundled/v2/components/OrIconButtonV3/index.js +2 -1
- package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -1
- package/dist/bundled/v2/components/OrInlineInputV3/index.js +2 -1
- package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -1
- package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +2 -1
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -1
- package/dist/bundled/v2/components/OrInputV3/index.js +2 -1
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +21 -48
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.vue.d.ts +13 -16
- package/dist/bundled/v2/components/OrMenuV3/index.js +1 -0
- package/dist/bundled/v2/components/OrModalV3/OrModal.js +220 -65
- package/dist/bundled/v2/components/OrModalV3/OrModal.vue.d.ts +13 -19
- package/dist/bundled/v2/components/OrModalV3/index.js +9 -8
- package/dist/bundled/v2/components/OrModalV3/styles.d.ts +0 -3
- package/dist/bundled/v2/components/OrModalV3/styles.js +1 -16
- package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +2 -1
- package/dist/bundled/v2/components/OrNotificationV3/index.js +2 -1
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -1
- package/dist/bundled/v2/components/OrPaginationV3/index.js +1 -0
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +31 -102
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +19 -12
- package/dist/bundled/v2/components/OrPopoverV3/index.js +1 -0
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -0
- package/dist/bundled/v2/components/OrSearchV3/index.js +1 -0
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -0
- package/dist/bundled/v2/components/OrSelectV3/index.js +1 -0
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -0
- package/dist/bundled/v2/components/OrSidebarV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -0
- package/dist/bundled/v2/components/OrTabsV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTagV3/OrTag.js +2 -1
- package/dist/bundled/v2/components/OrTagV3/index.js +2 -1
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +1 -0
- package/dist/bundled/v2/components/OrTagsV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -1
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -0
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -0
- package/dist/bundled/v2/components/OrToastContainerV3/index.js +1 -0
- package/dist/bundled/v2/components/OrToastV3/OrToast.js +2 -1
- package/dist/bundled/v2/components/OrToastV3/index.js +2 -1
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +32 -39
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +20 -17
- package/dist/bundled/v2/components/OrTooltipV3/index.js +2 -1
- package/dist/bundled/v2/components/index.js +2 -1
- package/dist/bundled/v2/hooks/index.d.ts +1 -1
- package/dist/bundled/v2/hooks/index.js +1 -3
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +1 -2
- package/dist/bundled/v2/hooks/useElevation.js +3 -1
- package/dist/bundled/v2/hooks/useOverflow.d.ts +2 -2
- package/dist/bundled/v2/hooks/usePopoverState.d.ts +11 -0
- package/dist/bundled/v2/hooks/usePopoverState.js +42 -0
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/bundled/v2/index.js +3 -5
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-a81b2abb.js → OrBottomSheet.vue_vue_type_script_lang-aebedcb2.js} +28 -45
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-f2d222a5.js → OrCardCollection.vue_vue_type_script_lang-d15329fd.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-b1b13331.js → OrConfirm.vue_vue_type_script_lang-84f80066.js} +28 -52
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-31f5d798.js → OrDatePicker.vue_vue_type_script_lang-92222927.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-a0354296.js → OrDateTimePicker.vue_vue_type_script_lang-81f3cb69.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-98b935cb.js → OrDateTimePickerMonthSelect-354e1af8.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-5bba9f3f.js → OrIconButton.vue_vue_type_script_lang-fe97e57a.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3c6b0958.js → OrInlineInput.vue_vue_type_script_lang-3131ae11.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-da59cd8e.js → OrInlineTextarea.vue_vue_type_script_lang-db28519e.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-d08b3796.js → OrInput.vue_vue_type_script_lang-5f74dd08.js} +1 -1
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-1f45bf44.js +66 -0
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-31c15ba1.js +160 -0
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-463e1a82.js → OrNotification.vue_vue_type_script_lang-89bbc41f.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-bdc8d9fb.js → OrPagination.vue_vue_type_script_lang-1835d432.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-7b1b2488.js → OrPopover.vue_vue_type_script_lang-c75dbd63.js} +27 -98
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-940d8e1f.js → OrSearch.vue_vue_type_script_lang-142ab019.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-1c77663e.js → OrSelect.vue_vue_type_script_lang-0ab50e13.js} +3 -3
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-780eaa84.js → OrSidebar.vue_vue_type_script_lang-23c6a11f.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-9d4221f1.js → OrTabs.vue_vue_type_script_lang-255f33d2.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-09948d1f.js → OrTag.vue_vue_type_script_lang-f4321103.js} +1 -1
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-71fb4f1d.js → OrTags.vue_vue_type_script_lang-4684a9c5.js} +2 -2
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-21be27c6.js → OrTimePicker.vue_vue_type_script_lang-e9684fe9.js} +2 -2
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-f3ccffce.js +56 -0
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +7 -6
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +16 -10
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +3 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +12 -11
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +11 -10
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +11 -10
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +18 -35
- package/dist/bundled/v3/components/OrConfirmV3/index.js +8 -7
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +11 -10
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +9 -8
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +12 -11
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +9 -8
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +8 -7
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +7 -6
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +9 -8
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +8 -7
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +9 -8
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +8 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +9 -8
- package/dist/bundled/v3/components/OrInputV3/index.js +8 -7
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +9 -8
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +13 -5
- package/dist/bundled/v3/components/OrMenuV3/index.js +5 -4
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +36 -33
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +14 -16
- package/dist/bundled/v3/components/OrModalV3/index.js +15 -14
- package/dist/bundled/v3/components/OrModalV3/styles.d.ts +0 -3
- package/dist/bundled/v3/components/OrModalV3/styles.js +1 -16
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +9 -8
- package/dist/bundled/v3/components/OrNotificationV3/index.js +8 -7
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +8 -7
- package/dist/bundled/v3/components/OrPaginationV3/index.js +6 -5
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +8 -7
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +16 -11
- package/dist/bundled/v3/components/OrPopoverV3/index.js +4 -3
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +9 -8
- package/dist/bundled/v3/components/OrSearchV3/index.js +8 -7
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +10 -9
- package/dist/bundled/v3/components/OrSelectV3/index.js +9 -8
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +8 -7
- package/dist/bundled/v3/components/OrSidebarV3/index.js +7 -6
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +7 -6
- package/dist/bundled/v3/components/OrTabsV3/index.js +6 -5
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +9 -8
- package/dist/bundled/v3/components/OrTagV3/index.js +8 -7
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +9 -8
- package/dist/bundled/v3/components/OrTagsV3/index.js +8 -7
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +9 -8
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +7 -6
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +8 -7
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +7 -6
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +7 -6
- package/dist/bundled/v3/components/OrToastV3/index.js +8 -7
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +13 -10
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +17 -6
- package/dist/bundled/v3/components/OrTooltipV3/index.js +6 -5
- package/dist/bundled/v3/components/index.js +26 -25
- package/dist/bundled/v3/hooks/index.d.ts +1 -1
- package/dist/bundled/v3/hooks/index.js +1 -3
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +1 -2
- package/dist/bundled/v3/hooks/useElevation.js +3 -1
- package/dist/bundled/v3/hooks/useOverflow.d.ts +2 -2
- package/dist/bundled/v3/hooks/usePopoverState.d.ts +11 -0
- package/dist/bundled/v3/hooks/usePopoverState.js +42 -0
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/bundled/v3/index.js +27 -29
- package/dist/esm/v2/{OrBottomSheet-75a3b3c0.js → OrBottomSheet-0592ccb2.js} +31 -48
- package/dist/esm/v2/{OrCardCollection-94e0d4b3.js → OrCardCollection-2b9bc050.js} +4 -4
- package/dist/esm/v2/{OrCheckbox-41f2822d.js → OrCheckbox-3a8c93ad.js} +0 -2
- package/dist/esm/v2/{OrCheckboxGroup-97cfcbda.js → OrCheckboxGroup-b0d95dd6.js} +1 -1
- package/dist/esm/v2/{OrCheckboxTree-a7dc126c.js → OrCheckboxTree-54b0fdc1.js} +1 -1
- package/dist/esm/v2/{OrConfirm-93176f0d.js → OrConfirm-3f19c23b.js} +30 -54
- package/dist/esm/v2/{OrDatePicker-1f49baf1.js → OrDatePicker-e991e7b2.js} +4 -4
- package/dist/esm/v2/{OrDateTimePicker-3609de6e.js → OrDateTimePicker-7bbd81d1.js} +5 -5
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-94af0df9.js → OrDateTimePickerMonthSelect-d75a849c.js} +3 -3
- package/dist/esm/v2/{OrIconButton-1ee067fd.js → OrIconButton-75972865.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-737e8fff.js → OrInlineInput-cf17dbb2.js} +1 -3
- package/dist/esm/v2/{OrInlineTextarea-8bc79191.js → OrInlineTextarea-2b0e2f39.js} +1 -3
- package/dist/esm/v2/{OrInput-00cba216.js → OrInput-1a2b8ad9.js} +1 -3
- package/dist/esm/v2/{OrMenu-1c14379f.js → OrMenu-a35caf3b.js} +23 -49
- package/dist/esm/v2/OrModal-4aaae6bc.js +312 -0
- package/dist/esm/v2/{OrNotification-b2dd7471.js → OrNotification-a773f1df.js} +1 -1
- package/dist/esm/v2/{OrOverlay-cdaf5b7a.js → OrOverlay-f791976c.js} +1 -3
- package/dist/esm/v2/{OrPagination-06a860c7.js → OrPagination-3513165d.js} +3 -5
- package/dist/esm/v2/{OrPassword-681f8c53.js → OrPassword-1de0dc6c.js} +0 -2
- package/dist/esm/v2/{OrPopover-7096d459.js → OrPopover-a8950b85.js} +33 -106
- package/dist/esm/v2/{OrProgress-e079e857.js → OrProgress-102e3b5d.js} +0 -2
- package/dist/esm/v2/{OrRadio-23810acd.js → OrRadio-a812088f.js} +0 -2
- package/dist/esm/v2/{OrRadioGroup-0e1bf22c.js → OrRadioGroup-0de37d76.js} +1 -1
- package/dist/esm/v2/{OrSearch-408fb293.js → OrSearch-19c157b3.js} +1 -1
- package/dist/esm/v2/{OrSelect-1d437402.js → OrSelect-991b8be3.js} +4 -6
- package/dist/esm/v2/{OrSidebar-c106e59c.js → OrSidebar-bfbb8b0a.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-db2b96c5.js → OrSidebarCollapseButton-a98037d6.js} +1 -1
- package/dist/esm/v2/{OrSwitch-cb97f4d3.js → OrSwitch-9fae0bae.js} +0 -2
- package/dist/esm/v2/{OrTabs-52acc3f2.js → OrTabs-abf290af.js} +2 -2
- package/dist/esm/v2/{OrTag-dc2a1452.js → OrTag-aa46cecd.js} +1 -1
- package/dist/esm/v2/{OrTags-33e9a167.js → OrTags-2a567e79.js} +2 -4
- package/dist/esm/v2/{OrTextarea-01df0715.js → OrTextarea-e5c66426.js} +0 -2
- package/dist/esm/v2/{OrTextbox-a937432f.js → OrTextbox-c85d7fe6.js} +0 -2
- package/dist/esm/v2/{OrTimePicker-13359d63.js → OrTimePicker-766637cb.js} +3 -3
- package/dist/esm/v2/{OrTooltip-0649a0cd.js → OrTooltip-0dc63c1a.js} +33 -40
- package/dist/esm/v2/components/index.js +38 -39
- package/dist/esm/v2/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +19 -10
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +4 -5
- package/dist/esm/v2/components/or-card-collection-v3/index.js +11 -12
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +3 -5
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +2 -4
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -3
- package/dist/esm/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +18 -36
- package/dist/esm/v2/components/or-confirm-v3/index.js +9 -10
- package/dist/esm/v2/components/or-date-picker-v3/index.js +10 -11
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +10 -11
- package/dist/esm/v2/components/or-icon-button-v3/index.js +7 -8
- package/dist/esm/v2/components/or-inline-input-v3/index.js +8 -9
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +8 -9
- package/dist/esm/v2/components/or-input-v3/index.js +8 -9
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +13 -16
- package/dist/esm/v2/components/or-menu-v3/index.js +7 -8
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +13 -19
- package/dist/esm/v2/components/or-modal-v3/index.js +12 -13
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +8 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-content/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +8 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +12 -0
- package/dist/esm/v2/components/or-modal-v3/partials/or-modal-header/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-modal-v3/styles.d.ts +0 -3
- package/dist/esm/v2/components/or-notification-v3/index.js +8 -9
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -4
- package/dist/esm/v2/components/or-pagination-v3/index.js +7 -8
- package/dist/esm/v2/components/or-password/index.js +1 -3
- package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +19 -12
- package/dist/esm/v2/components/or-popover-v3/index.js +5 -6
- package/dist/esm/v2/components/or-progress-v3/index.js +1 -3
- package/dist/esm/v2/components/or-radio-group-v3/index.js +2 -4
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -3
- package/dist/esm/v2/components/or-search-v3/index.js +9 -10
- package/dist/esm/v2/components/or-select-v3/index.js +11 -12
- package/dist/esm/v2/components/or-sidebar-v3/index.js +9 -10
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +8 -9
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -9
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -3
- package/dist/esm/v2/components/or-tabs-v3/index.js +7 -8
- package/dist/esm/v2/components/or-tag-v3/index.js +8 -9
- package/dist/esm/v2/components/or-tags-v3/index.js +9 -10
- package/dist/esm/v2/components/or-textarea-v3/index.js +1 -3
- package/dist/esm/v2/components/or-textbox/index.js +1 -3
- package/dist/esm/v2/components/or-time-picker-v3/index.js +8 -9
- package/dist/esm/v2/components/or-toast-v3/index.js +8 -9
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +8 -9
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +20 -17
- package/dist/esm/v2/components/or-tooltip-v3/index.js +7 -8
- package/dist/esm/v2/hooks/index.d.ts +1 -1
- package/dist/esm/v2/hooks/index.js +2 -4
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +1 -2
- package/dist/esm/v2/hooks/useOverflow.d.ts +2 -2
- package/dist/esm/v2/hooks/usePopoverState.d.ts +11 -0
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/esm/v2/index.js +38 -40
- package/dist/esm/v2/{types-a8cdee2b.js → types-f30860ee.js} +2 -4
- package/dist/esm/{v3/useElevation-b5a49746.js → v2/useElevation-a50ec347.js} +3 -1
- package/dist/esm/v2/usePopoverState-8a95a300.js +42 -0
- package/dist/esm/v3/{OrBottomSheet-77311b39.js → OrBottomSheet-a39fb331.js} +31 -48
- package/dist/esm/v3/{OrCardCollection-bb83c68d.js → OrCardCollection-3d652a34.js} +4 -4
- package/dist/esm/v3/{OrCheckbox-2194e473.js → OrCheckbox-7093e9c2.js} +0 -2
- package/dist/esm/v3/{OrCheckboxGroup-6c36527f.js → OrCheckboxGroup-f755d216.js} +1 -1
- package/dist/esm/v3/{OrCheckboxTree-1873a941.js → OrCheckboxTree-99f6eaec.js} +1 -1
- package/dist/esm/v3/{OrConfirm-db0bc902.js → OrConfirm-cb0b2b78.js} +30 -54
- package/dist/esm/v3/{OrDatePicker-afede6ed.js → OrDatePicker-6a44ad41.js} +4 -4
- package/dist/esm/v3/{OrDateTimePicker-c74ee133.js → OrDateTimePicker-2cbcf8c7.js} +5 -5
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-37ab67a7.js → OrDateTimePickerMonthSelect-2f61d92f.js} +3 -3
- package/dist/esm/v3/{OrIconButton-22ed57ad.js → OrIconButton-e34a20eb.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-180b24c4.js → OrInlineInput-ad0d4264.js} +1 -3
- package/dist/esm/v3/{OrInlineTextarea-0ac83ef3.js → OrInlineTextarea-b5ec488d.js} +1 -3
- package/dist/esm/v3/{OrInput-ae5c1b2f.js → OrInput-a9aeef6e.js} +1 -3
- package/dist/esm/v3/{OrMenu-659eb389.js → OrMenu-f590d761.js} +24 -50
- package/dist/esm/v3/OrModal-9dc09e95.js +226 -0
- package/dist/esm/v3/{OrNotification-bcae9dec.js → OrNotification-69031471.js} +1 -1
- package/dist/esm/v3/{OrOverlay-5db47cfe.js → OrOverlay-28952099.js} +1 -3
- package/dist/esm/v3/{OrPagination-9e2ee086.js → OrPagination-f3be120f.js} +3 -5
- package/dist/esm/v3/{OrPassword-cd8a3c46.js → OrPassword-9192b9ea.js} +0 -2
- package/dist/esm/v3/{OrPopover-e2208d1c.js → OrPopover-ebd57053.js} +31 -104
- package/dist/esm/v3/{OrProgress-a54a42c0.js → OrProgress-efa51d7b.js} +0 -2
- package/dist/esm/v3/{OrRadio-4f0026c9.js → OrRadio-a6c88f29.js} +0 -2
- package/dist/esm/v3/{OrRadioGroup-d215409c.js → OrRadioGroup-5d1fe6fd.js} +1 -1
- package/dist/esm/v3/{OrSearch-5c1384ce.js → OrSearch-5576cf14.js} +1 -1
- package/dist/esm/v3/{OrSelect-f32d7727.js → OrSelect-0b3ebce9.js} +4 -6
- package/dist/esm/v3/{OrSidebar-47bea81a.js → OrSidebar-303ef558.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-ece05a32.js → OrSidebarCollapseButton-d7f004df.js} +1 -1
- package/dist/esm/v3/{OrSwitch-ed9868db.js → OrSwitch-594f5a63.js} +0 -2
- package/dist/esm/v3/{OrTabs-b9de0432.js → OrTabs-b6c8077c.js} +2 -2
- package/dist/esm/v3/{OrTag-c6f35b07.js → OrTag-4ac45254.js} +1 -1
- package/dist/esm/v3/{OrTags-5990db43.js → OrTags-de9f065e.js} +2 -4
- package/dist/esm/v3/{OrTextarea-0f9a2a27.js → OrTextarea-93cf7da7.js} +0 -2
- package/dist/esm/v3/{OrTextbox-8d2903db.js → OrTextbox-56714f51.js} +0 -2
- package/dist/esm/v3/{OrTimePicker-81437237.js → OrTimePicker-0fe72767.js} +3 -3
- package/dist/esm/v3/{OrTooltip-7e0473b9.js → OrTooltip-edb28095.js} +28 -41
- package/dist/esm/v3/components/index.js +38 -39
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +16 -10
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +4 -5
- package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -12
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +3 -5
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +2 -4
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -3
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +18 -35
- package/dist/esm/v3/components/or-confirm-v3/index.js +9 -10
- package/dist/esm/v3/components/or-date-picker-v3/index.js +10 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +10 -11
- package/dist/esm/v3/components/or-icon-button-v3/index.js +7 -8
- package/dist/esm/v3/components/or-inline-input-v3/index.js +8 -9
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +8 -9
- package/dist/esm/v3/components/or-input-v3/index.js +8 -9
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +13 -5
- package/dist/esm/v3/components/or-menu-v3/index.js +7 -8
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +14 -16
- package/dist/esm/v3/components/or-modal-v3/index.js +11 -12
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +5 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +5 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +7 -0
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-modal-v3/styles.d.ts +0 -3
- package/dist/esm/v3/components/or-notification-v3/index.js +8 -9
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -4
- package/dist/esm/v3/components/or-pagination-v3/index.js +7 -8
- package/dist/esm/v3/components/or-password/index.js +1 -3
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +16 -11
- package/dist/esm/v3/components/or-popover-v3/index.js +5 -6
- package/dist/esm/v3/components/or-progress-v3/index.js +1 -3
- package/dist/esm/v3/components/or-radio-group-v3/index.js +2 -4
- package/dist/esm/v3/components/or-radio-v3/index.js +1 -3
- package/dist/esm/v3/components/or-search-v3/index.js +9 -10
- package/dist/esm/v3/components/or-select-v3/index.js +11 -12
- package/dist/esm/v3/components/or-sidebar-v3/index.js +9 -10
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +8 -9
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -9
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -3
- package/dist/esm/v3/components/or-tabs-v3/index.js +7 -8
- package/dist/esm/v3/components/or-tag-v3/index.js +8 -9
- package/dist/esm/v3/components/or-tags-v3/index.js +9 -10
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -3
- package/dist/esm/v3/components/or-textbox/index.js +1 -3
- package/dist/esm/v3/components/or-time-picker-v3/index.js +8 -9
- package/dist/esm/v3/components/or-toast-v3/index.js +8 -9
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +8 -9
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +17 -6
- package/dist/esm/v3/components/or-tooltip-v3/index.js +7 -8
- package/dist/esm/v3/hooks/index.d.ts +1 -1
- package/dist/esm/v3/hooks/index.js +2 -4
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +1 -2
- package/dist/esm/v3/hooks/useOverflow.d.ts +2 -2
- package/dist/esm/v3/hooks/usePopoverState.d.ts +11 -0
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/esm/v3/index.js +38 -40
- package/dist/esm/v3/{types-637a5626.js → types-60f3dd35.js} +2 -4
- package/dist/esm/{v2/useElevation-b5a49746.js → v3/useElevation-a50ec347.js} +3 -1
- package/dist/esm/v3/usePopoverState-8a95a300.js +42 -0
- package/package.json +4 -4
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +29 -58
- package/src/components/or-confirm-v3/OrConfirm.vue +29 -50
- package/src/components/or-date-picker-v3/OrDatePicker.vue +1 -1
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +2 -2
- package/src/components/or-menu-v3/OrMenu.vue +18 -40
- package/src/components/or-modal-v3/OrModal.vue +32 -66
- package/src/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue +37 -0
- package/src/components/or-modal-v3/partials/or-modal-content/styles.ts +10 -0
- package/src/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue +37 -0
- package/src/components/or-modal-v3/partials/or-modal-footer/styles.ts +4 -0
- package/src/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue +54 -0
- package/src/components/or-modal-v3/partials/or-modal-header/styles.ts +10 -0
- package/src/components/or-modal-v3/styles.ts +0 -25
- package/src/components/or-pagination-v3/OrPagination.vue +1 -1
- package/src/components/or-popover-v3/OrPopover.vue +28 -125
- package/src/components/or-time-picker-v3/OrTimePicker.vue +1 -1
- package/src/components/or-tooltip-v3/OrTooltip.vue +24 -40
- package/src/hooks/index.ts +1 -1
- package/src/hooks/useControlAttributes.ts +1 -1
- package/src/hooks/useElevation.ts +7 -2
- package/src/hooks/useOverflow.ts +5 -3
- package/src/hooks/usePopoverState.ts +66 -0
- package/src/hooks/useValidationAttributes.ts +1 -1
- package/src/shims-png.d.ts +2 -2
- package/src/shims-vue.d.ts +2 -3
- package/src/shims.d.ts +3 -5
- package/dist/bundled/v2/hooks/useTheme.d.ts +0 -2
- package/dist/bundled/v2/hooks/useTheme.js +0 -10128
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-115f2c60.js +0 -93
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-202c4e2f.js +0 -71
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-bb3db5bf.js +0 -72
- package/dist/bundled/v3/hooks/useTheme.d.ts +0 -2
- package/dist/bundled/v3/hooks/useTheme.js +0 -10128
- package/dist/esm/v2/OrModal-3dca06f9.js +0 -174
- package/dist/esm/v2/hooks/useTheme.d.ts +0 -2
- package/dist/esm/v2/useTheme-e23d13c8.js +0 -9
- package/dist/esm/v3/OrModal-2db2eb9f.js +0 -150
- package/dist/esm/v3/hooks/useTheme.d.ts +0 -2
- package/dist/esm/v3/useTheme-e23d13c8.js +0 -9
- package/src/hooks/useTheme.ts +0 -7
- package/src/shims-mdx.d.ts +0 -4
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-30f79990.js → OrDateTimePickerMonthSelect-9a8e332c.js} +0 -0
- /package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-86c7b93a.js → OrOverlay.vue_vue_type_script_lang-29ff6fd8.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-485ef171.js → OrToastContainer.vue_vue_type_script_lang-461fb6d1.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { useCurrentDate } from './hooks/useCurrentDate.js';
|
|
3
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
3
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-9a8e332c.js';
|
|
4
4
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-61faaa61.js';
|
|
5
5
|
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-2a5772a9.js';
|
|
6
6
|
import { DateTimePicker, DateTimePickerDatePopover, DateTimePickerTimePopover } from './styles.js';
|
|
@@ -25,6 +25,7 @@ import '../OrLoaderV3/props.js';
|
|
|
25
25
|
import '../OrLoaderV3/styles.js';
|
|
26
26
|
import '../OrMenuV3/OrMenu.js';
|
|
27
27
|
import '../OrMenuV3/styles.js';
|
|
28
|
+
import '../../hooks/usePopoverState.js';
|
|
28
29
|
import '../OrPopoverV3/props.js';
|
|
29
30
|
import '../OrMenuItemV3/OrMenuItem.js';
|
|
30
31
|
import '../OrMenuItemV3/styles.js';
|
|
@@ -390,7 +391,7 @@ var __vue_render__ = function () {
|
|
|
390
391
|
"placement": 'bottom-start'
|
|
391
392
|
},
|
|
392
393
|
on: {
|
|
393
|
-
"
|
|
394
|
+
"close": function ($event) {
|
|
394
395
|
return _vm.reset();
|
|
395
396
|
}
|
|
396
397
|
}
|
|
@@ -450,7 +451,7 @@ var __vue_render__ = function () {
|
|
|
450
451
|
"placement": 'bottom-start'
|
|
451
452
|
},
|
|
452
453
|
on: {
|
|
453
|
-
"
|
|
454
|
+
"close": function ($event) {
|
|
454
455
|
return _vm.reset();
|
|
455
456
|
}
|
|
456
457
|
}
|
|
@@ -2,7 +2,7 @@ export { default as OrDateTimePickerV3 } from './OrDateTimePicker.js';
|
|
|
2
2
|
export { InputBoxSize as DateTimePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './hooks/useCurrentDate.js';
|
|
5
|
-
import '../../OrDateTimePickerMonthSelect-
|
|
5
|
+
import '../../OrDateTimePickerMonthSelect-9a8e332c.js';
|
|
6
6
|
import './hooks/useDatePlaceholder.js';
|
|
7
7
|
import '../../normalize-component-6e8e3d80.js';
|
|
8
8
|
import '../OrButtonV3/OrButton.js';
|
|
@@ -33,6 +33,7 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
33
33
|
import 'portal-vue';
|
|
34
34
|
import '../../hooks/useElevation.js';
|
|
35
35
|
import '../../utils/isVisible.js';
|
|
36
|
+
import '../../hooks/usePopoverState.js';
|
|
36
37
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
37
38
|
import '../OrMenuV3/OrMenu.js';
|
|
38
39
|
import '../OrMenuV3/styles.js';
|
|
@@ -6,10 +6,10 @@ import __vue_component__$2 from '../OrTooltipV3/OrTooltip.js';
|
|
|
6
6
|
import { IconSize } from '../OrIconV3/props.js';
|
|
7
7
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
8
8
|
import '../OrIconV3/styles.js';
|
|
9
|
-
import '@vueuse/core';
|
|
10
9
|
import '../OrTooltipV3/styles.js';
|
|
11
10
|
import '../OrPopoverV3/OrPopover.js';
|
|
12
11
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
12
|
+
import '@vueuse/core';
|
|
13
13
|
import '../OrPopoverV3/props.js';
|
|
14
14
|
import '../OrPopoverV3/styles.js';
|
|
15
15
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
@@ -21,6 +21,7 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
21
21
|
import 'portal-vue';
|
|
22
22
|
import '../../hooks/useElevation.js';
|
|
23
23
|
import '../../utils/isVisible.js';
|
|
24
|
+
import '../../hooks/usePopoverState.js';
|
|
24
25
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
25
26
|
|
|
26
27
|
var script = defineComponent({
|
|
@@ -7,10 +7,10 @@ import '../OrIconV3/OrIcon.js';
|
|
|
7
7
|
import '../OrIconV3/styles.js';
|
|
8
8
|
import '../../normalize-component-6e8e3d80.js';
|
|
9
9
|
import '../OrTooltipV3/OrTooltip.js';
|
|
10
|
-
import '@vueuse/core';
|
|
11
10
|
import '../OrTooltipV3/styles.js';
|
|
12
11
|
import '../OrPopoverV3/OrPopover.js';
|
|
13
12
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
13
|
+
import '@vueuse/core';
|
|
14
14
|
import '../OrPopoverV3/props.js';
|
|
15
15
|
import '../OrPopoverV3/styles.js';
|
|
16
16
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
@@ -22,4 +22,5 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
22
22
|
import 'portal-vue';
|
|
23
23
|
import '../../hooks/useElevation.js';
|
|
24
24
|
import '../../utils/isVisible.js';
|
|
25
|
+
import '../../hooks/usePopoverState.js';
|
|
25
26
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
@@ -19,10 +19,10 @@ import '../OrIconButtonV3/styles.js';
|
|
|
19
19
|
import '../OrIconV3/OrIcon.js';
|
|
20
20
|
import '../OrIconV3/styles.js';
|
|
21
21
|
import '../OrTooltipV3/OrTooltip.js';
|
|
22
|
-
import '@vueuse/core';
|
|
23
22
|
import '../OrTooltipV3/styles.js';
|
|
24
23
|
import '../OrPopoverV3/OrPopover.js';
|
|
25
24
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
25
|
+
import '@vueuse/core';
|
|
26
26
|
import '../OrPopoverV3/props.js';
|
|
27
27
|
import '../OrPopoverV3/styles.js';
|
|
28
28
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
@@ -34,6 +34,7 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
34
34
|
import 'portal-vue';
|
|
35
35
|
import '../../hooks/useElevation.js';
|
|
36
36
|
import '../../utils/isVisible.js';
|
|
37
|
+
import '../../hooks/usePopoverState.js';
|
|
37
38
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
38
39
|
import '../OrInlineInputBoxV3/styles.js';
|
|
39
40
|
|
|
@@ -15,10 +15,10 @@ import '../OrIconButtonV3/styles.js';
|
|
|
15
15
|
import '../OrIconV3/OrIcon.js';
|
|
16
16
|
import '../OrIconV3/styles.js';
|
|
17
17
|
import '../OrTooltipV3/OrTooltip.js';
|
|
18
|
-
import '@vueuse/core';
|
|
19
18
|
import '../OrTooltipV3/styles.js';
|
|
20
19
|
import '../OrPopoverV3/OrPopover.js';
|
|
21
20
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
21
|
+
import '@vueuse/core';
|
|
22
22
|
import '../OrPopoverV3/props.js';
|
|
23
23
|
import '../OrPopoverV3/styles.js';
|
|
24
24
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
@@ -30,6 +30,7 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
30
30
|
import 'portal-vue';
|
|
31
31
|
import '../../hooks/useElevation.js';
|
|
32
32
|
import '../../utils/isVisible.js';
|
|
33
|
+
import '../../hooks/usePopoverState.js';
|
|
33
34
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
34
35
|
import '../OrInlineInputBoxV3/OrInlineInputBox.js';
|
|
35
36
|
import '../OrInlineInputBoxV3/styles.js';
|
|
@@ -17,10 +17,10 @@ import '../OrIconButtonV3/styles.js';
|
|
|
17
17
|
import '../OrIconV3/OrIcon.js';
|
|
18
18
|
import '../OrIconV3/styles.js';
|
|
19
19
|
import '../OrTooltipV3/OrTooltip.js';
|
|
20
|
-
import '@vueuse/core';
|
|
21
20
|
import '../OrTooltipV3/styles.js';
|
|
22
21
|
import '../OrPopoverV3/OrPopover.js';
|
|
23
22
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
23
|
+
import '@vueuse/core';
|
|
24
24
|
import '../OrPopoverV3/props.js';
|
|
25
25
|
import '../OrPopoverV3/styles.js';
|
|
26
26
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
@@ -32,6 +32,7 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
32
32
|
import 'portal-vue';
|
|
33
33
|
import '../../hooks/useElevation.js';
|
|
34
34
|
import '../../utils/isVisible.js';
|
|
35
|
+
import '../../hooks/usePopoverState.js';
|
|
35
36
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
36
37
|
import '../OrInlineInputBoxV3/props.js';
|
|
37
38
|
import '../OrInlineInputBoxV3/styles.js';
|
|
@@ -13,10 +13,10 @@ import '../OrIconButtonV3/styles.js';
|
|
|
13
13
|
import '../OrIconV3/OrIcon.js';
|
|
14
14
|
import '../OrIconV3/styles.js';
|
|
15
15
|
import '../OrTooltipV3/OrTooltip.js';
|
|
16
|
-
import '@vueuse/core';
|
|
17
16
|
import '../OrTooltipV3/styles.js';
|
|
18
17
|
import '../OrPopoverV3/OrPopover.js';
|
|
19
18
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
19
|
+
import '@vueuse/core';
|
|
20
20
|
import '../OrPopoverV3/props.js';
|
|
21
21
|
import '../OrPopoverV3/styles.js';
|
|
22
22
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
@@ -28,6 +28,7 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
28
28
|
import 'portal-vue';
|
|
29
29
|
import '../../hooks/useElevation.js';
|
|
30
30
|
import '../../utils/isVisible.js';
|
|
31
|
+
import '../../hooks/usePopoverState.js';
|
|
31
32
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
32
33
|
import '../OrInlineInputBoxV3/OrInlineInputBox.js';
|
|
33
34
|
import '../OrInlineInputBoxV3/props.js';
|
|
@@ -22,10 +22,10 @@ import '../OrIconV3/styles.js';
|
|
|
22
22
|
import '../OrIconButtonV3/props.js';
|
|
23
23
|
import '../OrIconButtonV3/styles.js';
|
|
24
24
|
import '../OrTooltipV3/OrTooltip.js';
|
|
25
|
-
import '@vueuse/core';
|
|
26
25
|
import '../OrTooltipV3/styles.js';
|
|
27
26
|
import '../OrPopoverV3/OrPopover.js';
|
|
28
27
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
28
|
+
import '@vueuse/core';
|
|
29
29
|
import '../OrPopoverV3/props.js';
|
|
30
30
|
import '../OrPopoverV3/styles.js';
|
|
31
31
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
@@ -37,6 +37,7 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
37
37
|
import 'portal-vue';
|
|
38
38
|
import '../../hooks/useElevation.js';
|
|
39
39
|
import '../../utils/isVisible.js';
|
|
40
|
+
import '../../hooks/usePopoverState.js';
|
|
40
41
|
import '../OrInputBoxV3/styles.js';
|
|
41
42
|
import '../OrLabelV3/props.js';
|
|
42
43
|
import '../OrLabelV3/styles.js';
|
|
@@ -15,10 +15,10 @@ import '../OrIconButtonV3/OrIconButton.js';
|
|
|
15
15
|
import '../OrIconButtonV3/props.js';
|
|
16
16
|
import '../OrIconButtonV3/styles.js';
|
|
17
17
|
import '../OrTooltipV3/OrTooltip.js';
|
|
18
|
-
import '@vueuse/core';
|
|
19
18
|
import '../OrTooltipV3/styles.js';
|
|
20
19
|
import '../OrPopoverV3/OrPopover.js';
|
|
21
20
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
21
|
+
import '@vueuse/core';
|
|
22
22
|
import '../OrPopoverV3/props.js';
|
|
23
23
|
import '../OrPopoverV3/styles.js';
|
|
24
24
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
@@ -30,6 +30,7 @@ import '../OrTeleportV3/OrTeleport.js';
|
|
|
30
30
|
import 'portal-vue';
|
|
31
31
|
import '../../hooks/useElevation.js';
|
|
32
32
|
import '../../utils/isVisible.js';
|
|
33
|
+
import '../../hooks/usePopoverState.js';
|
|
33
34
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
34
35
|
import '../OrInputBoxV3/OrInputBox.js';
|
|
35
36
|
import '../OrInputBoxV3/styles.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
1
|
+
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
2
|
import { MenuRoot } from './styles.js';
|
|
3
3
|
import __vue_component__$1 from '../OrPopoverV3/OrPopover.js';
|
|
4
|
+
import { usePopoverState } from '../../hooks/usePopoverState.js';
|
|
4
5
|
import { PopoverPlacement } from '../OrPopoverV3/props.js';
|
|
5
6
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
6
7
|
import '../../floating-ui.dom.esm-83eba816.js';
|
|
@@ -24,6 +25,10 @@ var script = defineComponent({
|
|
|
24
25
|
},
|
|
25
26
|
inheritAttrs: false,
|
|
26
27
|
props: {
|
|
28
|
+
isOpen: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
27
32
|
trigger: {
|
|
28
33
|
type: HTMLElement,
|
|
29
34
|
default: undefined
|
|
@@ -33,68 +38,36 @@ var script = defineComponent({
|
|
|
33
38
|
default: PopoverPlacement.Bottom
|
|
34
39
|
}
|
|
35
40
|
},
|
|
36
|
-
emits: ['update:state'],
|
|
37
|
-
expose: ['root', 'state', '
|
|
38
|
-
setup() {
|
|
41
|
+
emits: ['update:state', 'open', 'close'],
|
|
42
|
+
expose: ['root', 'state', 'open', 'close', 'toggle'],
|
|
43
|
+
setup(props, context) {
|
|
39
44
|
// Refs
|
|
40
45
|
const root = ref();
|
|
41
|
-
const popover = ref();
|
|
42
|
-
const popoverRoot = computed(() => {
|
|
43
|
-
var _a;
|
|
44
|
-
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
45
|
-
});
|
|
46
|
-
const popoverState = computed(() => {
|
|
47
|
-
var _a;
|
|
48
|
-
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
49
|
-
});
|
|
50
46
|
// Styles
|
|
51
47
|
const rootStyles = computed(() => ['or-menu-v3', ...MenuRoot]);
|
|
52
48
|
// State
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const popoverInstance = popover.value;
|
|
60
|
-
if (popoverInstance) {
|
|
61
|
-
popoverInstance.open();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
function close() {
|
|
65
|
-
const popoverInstance = popover.value;
|
|
66
|
-
if (popoverInstance) {
|
|
67
|
-
popoverInstance.close();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function toggle() {
|
|
71
|
-
isOpen.value ? close() : open();
|
|
72
|
-
}
|
|
49
|
+
const {
|
|
50
|
+
state,
|
|
51
|
+
open,
|
|
52
|
+
close,
|
|
53
|
+
toggle
|
|
54
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
73
55
|
// Handlers
|
|
74
56
|
function onClick(event) {
|
|
75
57
|
const path = event.composedPath();
|
|
76
|
-
|
|
58
|
+
if (path.some(_ref => {
|
|
77
59
|
let {
|
|
78
60
|
classList
|
|
79
61
|
} = _ref;
|
|
80
|
-
return
|
|
81
|
-
})
|
|
82
|
-
let {
|
|
83
|
-
classList
|
|
84
|
-
} = _ref2;
|
|
85
|
-
return classList;
|
|
86
|
-
});
|
|
87
|
-
if (classLists.some(classList => classList.contains('or-menu-item-v3'))) {
|
|
62
|
+
return classList === null || classList === void 0 ? void 0 : classList.contains('or-menu-item-v3');
|
|
63
|
+
})) {
|
|
88
64
|
close();
|
|
89
65
|
}
|
|
90
66
|
}
|
|
91
67
|
return {
|
|
92
68
|
root,
|
|
93
|
-
popover,
|
|
94
|
-
popoverRoot,
|
|
95
|
-
state: popoverState,
|
|
96
69
|
rootStyles,
|
|
97
|
-
|
|
70
|
+
state,
|
|
98
71
|
open,
|
|
99
72
|
close,
|
|
100
73
|
toggle,
|
|
@@ -112,8 +85,8 @@ var __vue_render__ = function () {
|
|
|
112
85
|
var _h = _vm.$createElement;
|
|
113
86
|
var _c = _vm._self._c || _h;
|
|
114
87
|
return _c('OrPopover', {
|
|
115
|
-
ref: "popover",
|
|
116
88
|
attrs: {
|
|
89
|
+
"is-open": _vm.state === 'open',
|
|
117
90
|
"variant": 'auto',
|
|
118
91
|
"trigger": _vm.trigger,
|
|
119
92
|
"placement": _vm.placement,
|
|
@@ -122,7 +95,7 @@ var __vue_render__ = function () {
|
|
|
122
95
|
},
|
|
123
96
|
on: {
|
|
124
97
|
"update:state": function ($event) {
|
|
125
|
-
|
|
98
|
+
_vm.state = $event;
|
|
126
99
|
}
|
|
127
100
|
}
|
|
128
101
|
}, [_c('div', _vm._b({
|
|
@@ -2,20 +2,17 @@ import { PropType } from 'vue-demi';
|
|
|
2
2
|
import { MenuPlacement } from './props';
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
-
popover: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
6
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
7
|
-
} | string[], {} & {}, {
|
|
8
|
-
[x: number]: string;
|
|
9
|
-
} | {}, true> | undefined>;
|
|
10
|
-
popoverRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
11
|
-
state: import("@vue/composition-api").ComputedRef<undefined>;
|
|
12
5
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
13
|
-
|
|
6
|
+
state: import("@vue/composition-api").Ref<"open" | "closed">;
|
|
14
7
|
open: () => void;
|
|
15
8
|
close: () => void;
|
|
16
9
|
toggle: () => void;
|
|
17
10
|
onClick: (event: Event) => void;
|
|
18
11
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
12
|
+
isOpen: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
19
16
|
trigger: {
|
|
20
17
|
type: {
|
|
21
18
|
new (): HTMLElement;
|
|
@@ -28,6 +25,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
28
25
|
default: MenuPlacement;
|
|
29
26
|
};
|
|
30
27
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
28
|
+
isOpen: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
31
32
|
trigger: {
|
|
32
33
|
type: {
|
|
33
34
|
new (): HTMLElement;
|
|
@@ -40,31 +41,27 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
40
41
|
default: MenuPlacement;
|
|
41
42
|
};
|
|
42
43
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
44
|
+
isOpen: boolean;
|
|
43
45
|
trigger: HTMLElement;
|
|
44
46
|
placement: MenuPlacement;
|
|
45
47
|
} & {} & {
|
|
46
48
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
47
49
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
48
50
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
49
|
-
popover: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
50
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
51
|
-
} | string[], {} & {}, {
|
|
52
|
-
[x: number]: string;
|
|
53
|
-
} | {}, true> | undefined>;
|
|
54
|
-
popoverRoot: import("@vue/composition-api").ComputedRef<undefined>;
|
|
55
|
-
state: import("@vue/composition-api").ComputedRef<undefined>;
|
|
56
51
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
57
|
-
|
|
52
|
+
state: import("@vue/composition-api").Ref<"open" | "closed">;
|
|
58
53
|
open: () => void;
|
|
59
54
|
close: () => void;
|
|
60
55
|
toggle: () => void;
|
|
61
56
|
onClick: (event: Event) => void;
|
|
62
57
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
58
|
+
isOpen: boolean;
|
|
63
59
|
trigger: HTMLElement;
|
|
64
60
|
placement: MenuPlacement;
|
|
65
61
|
} & {} & {
|
|
66
62
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
67
63
|
}, {
|
|
64
|
+
isOpen: boolean;
|
|
68
65
|
trigger: HTMLElement;
|
|
69
66
|
placement: MenuPlacement;
|
|
70
67
|
}, true>);
|