@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,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-
|
|
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-
|
|
10
|
-
import './OrPopover-
|
|
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.
|
|
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,
|
|
1
|
+
import { autoUpdate, computePosition, shift, flip, hide } from '@floating-ui/dom';
|
|
2
2
|
import { onClickOutside } from '@vueuse/core';
|
|
3
|
-
import { defineComponent, ref, computed,
|
|
4
|
-
import { u as useElevation } from './useElevation-
|
|
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 '
|
|
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', '
|
|
115
|
-
expose: ['root', 'state', '
|
|
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
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
const {
|
|
136
|
+
state,
|
|
137
|
+
open,
|
|
138
|
+
close,
|
|
139
|
+
toggle
|
|
140
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
136
141
|
const isFlipped = ref(false);
|
|
137
|
-
|
|
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: [
|
|
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(
|
|
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
|
-
"
|
|
306
|
-
"onUpdate:state
|
|
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
|
|
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-
|
|
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-
|
|
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 '
|
|
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-
|
|
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-
|
|
17
|
-
import { s as script$b } from './OrTag-
|
|
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-
|
|
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 = [
|
package/dist/esm/v3/{OrSidebarCollapseButton-ece05a32.js → OrSidebarCollapseButton-d7f004df.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { s as script$1 } from './OrIconButton-
|
|
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-
|
|
6
|
-
import './OrPopover-
|
|
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-
|
|
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-
|
|
8
|
-
import { s as script$3 } from './OrTag-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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 {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
//
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
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
|
|
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)],
|
|
122
|
+
}, 8 /* PROPS */, ["is-open", "trigger", "placement"])) : createCommentVNode("v-if", true)], 34 /* CLASS, HYDRATE_EVENTS */);
|
|
136
123
|
}
|
|
137
124
|
|
|
138
125
|
script.render = render;
|