@onereach/ui-components 4.6.0 → 4.6.1-beta.2760.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/{OrDateTimePickerMonthSelect-75089f80.js → OrDateTimePickerMonthSelect-0072ef90.js} +0 -7
- package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-7c87f38a.js → OrDateTimePickerPopoverHeader-aab75fad.js} +0 -2
- package/dist/bundled/v2/{OrDateTimePickerTimeSelect-3d0ef650.js → OrDateTimePickerTimeSelect-7ce94b9a.js} +0 -2
- 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 +27 -51
- 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 +4 -4
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +3 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +6 -6
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +4 -3
- 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 +26 -53
- 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 +216 -64
- 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 +1 -0
- package/dist/bundled/v2/components/OrPaginationV3/index.js +1 -0
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +29 -95
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +17 -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 +4 -4
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +3 -2
- 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 +35 -41
- 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 +4 -3
- package/dist/bundled/v2/hooks/index.d.ts +1 -0
- package/dist/bundled/v2/hooks/index.js +1 -0
- package/dist/bundled/v2/hooks/usePopoverState.d.ts +8 -0
- package/dist/bundled/v2/hooks/usePopoverState.js +37 -0
- package/dist/bundled/v2/index.js +5 -4
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-a81b2abb.js → OrBottomSheet.vue_vue_type_script_lang-c3a0e7b5.js} +27 -44
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-34390dfe.js → OrCardCollection.vue_vue_type_script_lang-1a19b8ba.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-e1390930.js → OrConfirm.vue_vue_type_script_lang-a379bae2.js} +26 -50
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-d071d109.js → OrDatePicker.vue_vue_type_script_lang-ff4f4060.js} +4 -4
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-8aa80833.js → OrDateTimePicker.vue_vue_type_script_lang-610e4408.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-387c2096.js → OrDateTimePickerMonthSelect-1cc50ebb.js} +14 -14
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-f81b902f.js → OrDateTimePickerPopoverHeader-1e3c0ace.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-8bdb97b7.js → OrDateTimePickerTimeSelect-f43e1818.js} +3 -3
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-5bba9f3f.js → OrIconButton.vue_vue_type_script_lang-17f98298.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3c6b0958.js → OrInlineInput.vue_vue_type_script_lang-9317d5a9.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-da59cd8e.js → OrInlineTextarea.vue_vue_type_script_lang-e89beaab.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-6242286b.js → OrInput.vue_vue_type_script_lang-655989d4.js} +1 -1
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-a8e1eb6d.js +66 -0
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-fe580c66.js +158 -0
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-463e1a82.js → OrNotification.vue_vue_type_script_lang-664a7d4d.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-bdc8d9fb.js → OrPagination.vue_vue_type_script_lang-85cdf374.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-7b1b2488.js → OrPopover.vue_vue_type_script_lang-3592b581.js} +21 -90
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0bcc597c.js → OrSearch.vue_vue_type_script_lang-b402fffd.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-819822b5.js → OrSelect.vue_vue_type_script_lang-3ef33dde.js} +3 -3
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-f8fc78e3.js → OrSidebar.vue_vue_type_script_lang-9c48413e.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-9d4221f1.js → OrTabs.vue_vue_type_script_lang-597d9726.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-09948d1f.js → OrTag.vue_vue_type_script_lang-3a636796.js} +1 -1
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-71fb4f1d.js → OrTags.vue_vue_type_script_lang-325c7158.js} +2 -2
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-c52a2a0b.js → OrTimePicker.vue_vue_type_script_lang-d4387a74.js} +4 -4
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-de8c7ff1.js +55 -0
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +6 -5
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +16 -11
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +2 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +11 -10
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +10 -9
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +10 -9
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +16 -34
- package/dist/bundled/v3/components/OrConfirmV3/index.js +7 -6
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +13 -12
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +9 -8
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +15 -14
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +10 -9
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +7 -6
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +6 -5
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +8 -7
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +7 -6
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +8 -7
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +7 -6
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +8 -7
- package/dist/bundled/v3/components/OrInputV3/index.js +7 -6
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +12 -10
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +13 -6
- package/dist/bundled/v3/components/OrMenuV3/index.js +4 -3
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +36 -33
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +12 -15
- 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 +8 -7
- package/dist/bundled/v3/components/OrNotificationV3/index.js +7 -6
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +6 -5
- package/dist/bundled/v3/components/OrPaginationV3/index.js +5 -4
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +8 -6
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +15 -12
- package/dist/bundled/v3/components/OrPopoverV3/index.js +3 -2
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +8 -7
- package/dist/bundled/v3/components/OrSearchV3/index.js +7 -6
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +9 -8
- package/dist/bundled/v3/components/OrSelectV3/index.js +8 -7
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +7 -6
- package/dist/bundled/v3/components/OrSidebarV3/index.js +6 -5
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +6 -5
- package/dist/bundled/v3/components/OrTabsV3/index.js +5 -4
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +8 -7
- package/dist/bundled/v3/components/OrTagV3/index.js +7 -6
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +8 -7
- package/dist/bundled/v3/components/OrTagsV3/index.js +7 -6
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +12 -11
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +8 -7
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +7 -6
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +6 -5
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +6 -5
- package/dist/bundled/v3/components/OrToastV3/index.js +7 -6
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +13 -9
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +17 -7
- package/dist/bundled/v3/components/OrTooltipV3/index.js +5 -4
- package/dist/bundled/v3/components/index.js +27 -26
- package/dist/bundled/v3/hooks/index.d.ts +1 -0
- package/dist/bundled/v3/hooks/index.js +1 -0
- package/dist/bundled/v3/hooks/usePopoverState.d.ts +8 -0
- package/dist/bundled/v3/hooks/usePopoverState.js +37 -0
- package/dist/bundled/v3/index.js +28 -27
- package/dist/esm/v2/{OrBottomSheet-ffa029ca.js → OrBottomSheet-d766008a.js} +30 -47
- package/dist/esm/v2/{OrCardCollection-e23d4238.js → OrCardCollection-92ae053a.js} +4 -4
- package/dist/esm/v2/{OrConfirm-8ec55f84.js → OrConfirm-be3a54ef.js} +28 -52
- package/dist/esm/v2/{OrDatePicker-b6ebf44a.js → OrDatePicker-da08968e.js} +5 -6
- package/dist/esm/v2/{OrDateTimePicker-85c08b90.js → OrDateTimePicker-3797a712.js} +7 -8
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-e35404a7.js → OrDateTimePickerMonthSelect-3a7cd5e8.js} +3 -10
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-9e49aba0.js → OrDateTimePickerPopoverHeader-b6f8193b.js} +0 -2
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-aed7d33d.js → OrDateTimePickerTimeSelect-e1b6fcf6.js} +0 -2
- package/dist/esm/v2/{OrIconButton-ee747c71.js → OrIconButton-4fdb749c.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-a131caf4.js → OrInlineInput-d5c5d651.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-7cc45396.js → OrInlineTextarea-bbbb2b82.js} +1 -1
- package/dist/esm/v2/{OrInput-8c7b3cce.js → OrInput-166bf64a.js} +1 -1
- package/dist/esm/v2/{OrMenu-8b902c22.js → OrMenu-9bd9f2fd.js} +28 -54
- package/dist/esm/v2/OrModal-79424061.js +309 -0
- package/dist/esm/v2/{OrNotification-16e6d4ff.js → OrNotification-1cc97f8e.js} +1 -1
- package/dist/esm/v2/{OrPagination-36583054.js → OrPagination-43b3bf99.js} +2 -2
- package/dist/esm/v2/{OrPopover-80459663.js → OrPopover-238620ae.js} +30 -96
- package/dist/esm/v2/{OrSearch-5aa8154f.js → OrSearch-4a2cfe75.js} +1 -1
- package/dist/esm/v2/{OrSelect-31d265b9.js → OrSelect-301d2a6b.js} +3 -3
- package/dist/esm/v2/{OrSidebar-14c20b74.js → OrSidebar-83f6add2.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-2efb05f9.js → OrSidebarCollapseButton-357732ba.js} +1 -1
- package/dist/esm/v2/{OrTabs-653258a2.js → OrTabs-419ebf1c.js} +2 -2
- package/dist/esm/v2/{OrTag-6256623c.js → OrTag-a9ca8c34.js} +1 -1
- package/dist/esm/v2/{OrTags-db2608dc.js → OrTags-d2548f30.js} +2 -2
- package/dist/esm/v2/{OrTimePicker-696e29ed.js → OrTimePicker-3fe70b04.js} +5 -6
- package/dist/esm/v2/{OrTooltip-5a6e0f64.js → OrTooltip-e9e967e3.js} +36 -42
- package/dist/esm/v2/components/index.js +28 -27
- 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 +2 -1
- package/dist/esm/v2/components/or-card-collection-v3/index.js +9 -8
- package/dist/esm/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +18 -36
- package/dist/esm/v2/components/or-confirm-v3/index.js +7 -6
- package/dist/esm/v2/components/or-date-picker-v3/index.js +9 -8
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +10 -9
- package/dist/esm/v2/components/or-icon-button-v3/index.js +5 -4
- package/dist/esm/v2/components/or-inline-input-v3/index.js +6 -5
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +6 -5
- package/dist/esm/v2/components/or-input-v3/index.js +6 -5
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +13 -16
- package/dist/esm/v2/components/or-menu-v3/index.js +5 -4
- package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +13 -19
- package/dist/esm/v2/components/or-modal-v3/index.js +11 -10
- 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 +6 -5
- package/dist/esm/v2/components/or-pagination-v3/index.js +5 -4
- package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +17 -12
- package/dist/esm/v2/components/or-popover-v3/index.js +3 -2
- package/dist/esm/v2/components/or-search-v3/index.js +7 -6
- package/dist/esm/v2/components/or-select-v3/index.js +8 -7
- package/dist/esm/v2/components/or-sidebar-v3/index.js +7 -6
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +6 -5
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +6 -5
- package/dist/esm/v2/components/or-tabs-v3/index.js +5 -4
- package/dist/esm/v2/components/or-tag-v3/index.js +6 -5
- package/dist/esm/v2/components/or-tags-v3/index.js +7 -6
- package/dist/esm/v2/components/or-time-picker-v3/index.js +8 -7
- package/dist/esm/v2/components/or-toast-v3/index.js +6 -5
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +6 -5
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +20 -17
- package/dist/esm/v2/components/or-tooltip-v3/index.js +5 -4
- package/dist/esm/v2/hooks/index.d.ts +1 -0
- package/dist/esm/v2/hooks/index.js +1 -0
- package/dist/esm/v2/hooks/usePopoverState.d.ts +8 -0
- package/dist/esm/v2/index.js +28 -27
- package/dist/esm/v2/{types-4a7d24f3.js → types-3d410a76.js} +1 -1
- package/dist/esm/v2/usePopoverState-4cb59ae5.js +37 -0
- package/dist/esm/v3/{OrBottomSheet-5969a217.js → OrBottomSheet-946c14d3.js} +30 -47
- package/dist/esm/v3/{OrCardCollection-d5390215.js → OrCardCollection-7418c761.js} +4 -4
- package/dist/esm/v3/{OrConfirm-fe8617ac.js → OrConfirm-bbc33f51.js} +28 -52
- package/dist/esm/v3/{OrDatePicker-f144d074.js → OrDatePicker-81566ff0.js} +7 -7
- package/dist/esm/v3/{OrDateTimePicker-2214cd85.js → OrDateTimePicker-26155597.js} +9 -9
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-5a7b7b5c.js → OrDateTimePickerMonthSelect-6d328f9c.js} +15 -15
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-042566f4.js → OrDateTimePickerPopoverHeader-6af64e73.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-e404e826.js → OrDateTimePickerTimeSelect-68b76476.js} +3 -3
- package/dist/esm/v3/{OrIconButton-b7217ea5.js → OrIconButton-ce1b5542.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-dcb28ea2.js → OrInlineInput-f6d3ce66.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-88eac437.js → OrInlineTextarea-c3158522.js} +1 -1
- package/dist/esm/v3/{OrInput-af5bb98a.js → OrInput-02821bda.js} +1 -1
- package/dist/esm/v3/{OrMenu-8a53ccf9.js → OrMenu-79312946.js} +28 -53
- package/dist/esm/v3/OrModal-76a06af8.js +224 -0
- package/dist/esm/v3/{OrNotification-09216b8b.js → OrNotification-a699caa8.js} +1 -1
- package/dist/esm/v3/{OrPagination-c6046af4.js → OrPagination-5853e79e.js} +2 -2
- package/dist/esm/v3/{OrPopover-15c2968f.js → OrPopover-bec73a66.js} +25 -93
- package/dist/esm/v3/{OrSearch-ecad7638.js → OrSearch-1333d290.js} +1 -1
- package/dist/esm/v3/{OrSelect-5abcb941.js → OrSelect-53acc3c2.js} +3 -3
- package/dist/esm/v3/{OrSidebar-b7766ba9.js → OrSidebar-a0a0b0c4.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-06681153.js → OrSidebarCollapseButton-c961c428.js} +1 -1
- package/dist/esm/v3/{OrTabs-a2d87627.js → OrTabs-a0da28b8.js} +2 -2
- package/dist/esm/v3/{OrTag-8605e9e6.js → OrTag-8521661a.js} +1 -1
- package/dist/esm/v3/{OrTags-3724ff59.js → OrTags-b677a73b.js} +2 -2
- package/dist/esm/v3/{OrTimePicker-68de86d9.js → OrTimePicker-6825fc88.js} +7 -7
- package/dist/esm/v3/{OrTooltip-3d5fcaf9.js → OrTooltip-54c18e36.js} +28 -42
- package/dist/esm/v3/components/index.js +28 -27
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +16 -11
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +2 -1
- package/dist/esm/v3/components/or-card-collection-v3/index.js +9 -8
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +16 -34
- package/dist/esm/v3/components/or-confirm-v3/index.js +7 -6
- package/dist/esm/v3/components/or-date-picker-v3/index.js +9 -8
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +10 -9
- package/dist/esm/v3/components/or-icon-button-v3/index.js +5 -4
- package/dist/esm/v3/components/or-inline-input-v3/index.js +6 -5
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +6 -5
- package/dist/esm/v3/components/or-input-v3/index.js +6 -5
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +13 -6
- package/dist/esm/v3/components/or-menu-v3/index.js +5 -4
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +12 -15
- package/dist/esm/v3/components/or-modal-v3/index.js +11 -10
- 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 +6 -5
- package/dist/esm/v3/components/or-pagination-v3/index.js +5 -4
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +15 -12
- package/dist/esm/v3/components/or-popover-v3/index.js +3 -2
- package/dist/esm/v3/components/or-search-v3/index.js +7 -6
- package/dist/esm/v3/components/or-select-v3/index.js +8 -7
- package/dist/esm/v3/components/or-sidebar-v3/index.js +7 -6
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +6 -5
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +6 -5
- package/dist/esm/v3/components/or-tabs-v3/index.js +5 -4
- package/dist/esm/v3/components/or-tag-v3/index.js +6 -5
- package/dist/esm/v3/components/or-tags-v3/index.js +7 -6
- package/dist/esm/v3/components/or-time-picker-v3/index.js +8 -7
- package/dist/esm/v3/components/or-toast-v3/index.js +6 -5
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +6 -5
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +17 -7
- package/dist/esm/v3/components/or-tooltip-v3/index.js +5 -4
- package/dist/esm/v3/hooks/index.d.ts +1 -0
- package/dist/esm/v3/hooks/index.js +1 -0
- package/dist/esm/v3/hooks/usePopoverState.d.ts +8 -0
- package/dist/esm/v3/index.js +28 -27
- package/dist/esm/v3/{types-9e1555eb.js → types-c61726e4.js} +1 -1
- package/dist/esm/v3/usePopoverState-4cb59ae5.js +37 -0
- package/package.json +2 -3
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.vue +27 -60
- package/src/components/or-confirm-v3/OrConfirm.vue +25 -50
- package/src/components/or-date-picker-v3/OrDatePicker.vue +2 -2
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +3 -3
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue +1 -1
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue +6 -6
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue +2 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +2 -2
- package/src/components/or-menu-v3/OrMenu.vue +18 -43
- package/src/components/or-modal-v3/OrModal.vue +27 -65
- 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 +7 -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-popover-v3/OrPopover.vue +22 -123
- package/src/components/or-time-picker-v3/OrTimePicker.vue +2 -2
- package/src/components/or-tooltip-v3/OrTooltip.vue +23 -41
- package/src/hooks/index.ts +1 -0
- package/src/hooks/usePopoverState.ts +51 -0
- 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/esm/v2/OrModal-1f80d87f.js +0 -174
- package/dist/esm/v3/OrModal-1366926a.js +0 -150
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-485ef171.js → OrToastContainer.vue_vue_type_script_lang-7caa56c5.js} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
+
import '@vueuse/core';
|
|
3
|
+
import { u as usePopoverState } from './usePopoverState-4cb59ae5.js';
|
|
4
|
+
import { s as script$1, P as PopoverPlacement } from './OrPopover-bec73a66.js';
|
|
5
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, renderSlot } from 'vue';
|
|
4
6
|
|
|
5
7
|
const MenuRoot = [
|
|
6
8
|
// Layout
|
|
@@ -15,6 +17,10 @@ var script = defineComponent({
|
|
|
15
17
|
},
|
|
16
18
|
inheritAttrs: false,
|
|
17
19
|
props: {
|
|
20
|
+
isOpen: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
18
24
|
trigger: {
|
|
19
25
|
type: HTMLElement,
|
|
20
26
|
default: undefined
|
|
@@ -24,68 +30,36 @@ var script = defineComponent({
|
|
|
24
30
|
default: PopoverPlacement.Bottom
|
|
25
31
|
}
|
|
26
32
|
},
|
|
27
|
-
emits: ['
|
|
28
|
-
expose: ['root', '
|
|
29
|
-
setup() {
|
|
33
|
+
emits: ['open', 'close'],
|
|
34
|
+
expose: ['root', 'open', 'close', 'toggle'],
|
|
35
|
+
setup(props, context) {
|
|
30
36
|
// Refs
|
|
31
37
|
const root = ref();
|
|
32
|
-
const popover = ref();
|
|
33
|
-
const popoverRoot = computed(() => {
|
|
34
|
-
var _a;
|
|
35
|
-
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
36
|
-
});
|
|
37
|
-
const popoverState = computed(() => {
|
|
38
|
-
var _a;
|
|
39
|
-
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.state;
|
|
40
|
-
});
|
|
41
38
|
// Styles
|
|
42
39
|
const rootStyles = computed(() => ['or-menu-v3', ...MenuRoot]);
|
|
43
40
|
// State
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const popoverInstance = popover.value;
|
|
51
|
-
if (popoverInstance) {
|
|
52
|
-
popoverInstance.open();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function close() {
|
|
56
|
-
const popoverInstance = popover.value;
|
|
57
|
-
if (popoverInstance) {
|
|
58
|
-
popoverInstance.close();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function toggle() {
|
|
62
|
-
isOpen.value ? close() : open();
|
|
63
|
-
}
|
|
41
|
+
const {
|
|
42
|
+
state,
|
|
43
|
+
open,
|
|
44
|
+
close,
|
|
45
|
+
toggle
|
|
46
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
64
47
|
// Handlers
|
|
65
48
|
function onClick(event) {
|
|
66
49
|
const path = event.composedPath();
|
|
67
|
-
|
|
50
|
+
if (path.some(_ref => {
|
|
68
51
|
let {
|
|
69
52
|
classList
|
|
70
53
|
} = _ref;
|
|
71
|
-
return
|
|
72
|
-
})
|
|
73
|
-
let {
|
|
74
|
-
classList
|
|
75
|
-
} = _ref2;
|
|
76
|
-
return classList;
|
|
77
|
-
});
|
|
78
|
-
if (classLists.some(classList => classList.contains('or-menu-item-v3'))) {
|
|
54
|
+
return classList === null || classList === void 0 ? void 0 : classList.contains('or-menu-item-v3');
|
|
55
|
+
})) {
|
|
79
56
|
close();
|
|
80
57
|
}
|
|
81
58
|
}
|
|
82
59
|
return {
|
|
83
60
|
root,
|
|
84
|
-
popover,
|
|
85
|
-
popoverRoot,
|
|
86
|
-
state: popoverState,
|
|
87
61
|
rootStyles,
|
|
88
|
-
|
|
62
|
+
state,
|
|
89
63
|
open,
|
|
90
64
|
close,
|
|
91
65
|
toggle,
|
|
@@ -97,25 +71,26 @@ var script = defineComponent({
|
|
|
97
71
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
98
72
|
const _component_OrPopover = resolveComponent("OrPopover");
|
|
99
73
|
return openBlock(), createBlock(_component_OrPopover, {
|
|
100
|
-
|
|
74
|
+
"is-open": _ctx.state === 'open',
|
|
101
75
|
variant: 'auto',
|
|
102
76
|
trigger: _ctx.trigger,
|
|
103
77
|
placement: _ctx.placement,
|
|
104
78
|
"full-width": false,
|
|
105
79
|
"disable-default-styles": false,
|
|
106
|
-
|
|
80
|
+
onOpen: _cache[1] || (_cache[1] = $event => _ctx.open()),
|
|
81
|
+
onClose: _cache[2] || (_cache[2] = $event => _ctx.close())
|
|
107
82
|
}, {
|
|
108
83
|
default: withCtx(() => [createElementVNode("div", mergeProps({
|
|
109
84
|
ref: "root"
|
|
110
85
|
}, _ctx.$attrs, {
|
|
111
86
|
class: _ctx.rootStyles,
|
|
112
|
-
onClick: _cache[0] || (_cache[0] =
|
|
87
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
113
88
|
return _ctx.onClick && _ctx.onClick(...arguments);
|
|
114
|
-
}
|
|
89
|
+
})
|
|
115
90
|
}), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */)]),
|
|
116
91
|
|
|
117
92
|
_: 3 /* FORWARDED */
|
|
118
|
-
}, 8 /* PROPS */, ["trigger", "placement"]);
|
|
93
|
+
}, 8 /* PROPS */, ["is-open", "trigger", "placement"]);
|
|
119
94
|
}
|
|
120
95
|
|
|
121
96
|
script.render = render;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
+
import '@vueuse/core';
|
|
3
|
+
import { u as usePopoverState } from './usePopoverState-4cb59ae5.js';
|
|
4
|
+
import { s as script$5 } from './OrOverlay-bf72f582.js';
|
|
5
|
+
import { openBlock, createElementBlock, normalizeClass, renderSlot, resolveComponent, createElementVNode, createVNode, createBlock, withCtx, mergeProps, createCommentVNode } from 'vue';
|
|
6
|
+
import { s as script$4 } from './OrIconButton-ce1b5542.js';
|
|
7
|
+
|
|
8
|
+
const ModalContent = [
|
|
9
|
+
// Overflow
|
|
10
|
+
'overflow-auto',
|
|
11
|
+
// Spacing
|
|
12
|
+
'px-md md:px-lg'];
|
|
13
|
+
|
|
14
|
+
var script$3 = defineComponent({
|
|
15
|
+
name: 'OrModalContent',
|
|
16
|
+
expose: ['root'],
|
|
17
|
+
setup() {
|
|
18
|
+
// Refs
|
|
19
|
+
const root = ref();
|
|
20
|
+
// Styles
|
|
21
|
+
const rootStyles = computed(() => ['or-modal-content', ...ModalContent]);
|
|
22
|
+
return {
|
|
23
|
+
root,
|
|
24
|
+
rootStyles
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30
|
+
return openBlock(), createElementBlock("div", {
|
|
31
|
+
ref: "root",
|
|
32
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
33
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
script$3.render = render$3;
|
|
37
|
+
script$3.__file = "src/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue";
|
|
38
|
+
|
|
39
|
+
const ModalFooter = [
|
|
40
|
+
// Spacing
|
|
41
|
+
'px-md md:px-lg'];
|
|
42
|
+
|
|
43
|
+
var script$2 = defineComponent({
|
|
44
|
+
name: 'OrModalFooter',
|
|
45
|
+
expose: ['root'],
|
|
46
|
+
setup() {
|
|
47
|
+
// Refs
|
|
48
|
+
const root = ref();
|
|
49
|
+
// Styles
|
|
50
|
+
const rootStyles = computed(() => ['or-modal-footer', ...ModalFooter]);
|
|
51
|
+
return {
|
|
52
|
+
root,
|
|
53
|
+
rootStyles
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
59
|
+
return openBlock(), createElementBlock("div", {
|
|
60
|
+
ref: "root",
|
|
61
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
62
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
script$2.render = render$2;
|
|
66
|
+
script$2.__file = "src/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue";
|
|
67
|
+
|
|
68
|
+
const ModalHeader = [
|
|
69
|
+
// Layout
|
|
70
|
+
'layout-row',
|
|
71
|
+
// Spacing
|
|
72
|
+
'px-md md:px-lg',
|
|
73
|
+
// Typography
|
|
74
|
+
'typography-headline-2'];
|
|
75
|
+
|
|
76
|
+
var script$1 = defineComponent({
|
|
77
|
+
name: 'OrModalHeader',
|
|
78
|
+
components: {
|
|
79
|
+
OrIconButton: script$4
|
|
80
|
+
},
|
|
81
|
+
emits: ['close'],
|
|
82
|
+
expose: ['root'],
|
|
83
|
+
setup() {
|
|
84
|
+
// Refs
|
|
85
|
+
const root = ref();
|
|
86
|
+
// Styles
|
|
87
|
+
const rootStyles = computed(() => ['or-modal-header', ...ModalHeader]);
|
|
88
|
+
return {
|
|
89
|
+
root,
|
|
90
|
+
rootStyles
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const _hoisted_1 = {
|
|
96
|
+
class: /*#__PURE__*/normalizeClass(['grow'])
|
|
97
|
+
};
|
|
98
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
99
|
+
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
100
|
+
return openBlock(), createElementBlock("div", {
|
|
101
|
+
ref: "root",
|
|
102
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
103
|
+
}, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), createVNode(_component_OrIconButton, {
|
|
104
|
+
icon: 'close',
|
|
105
|
+
size: 'l',
|
|
106
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('close'))
|
|
107
|
+
})], 2 /* CLASS */);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
script$1.render = render$1;
|
|
111
|
+
script$1.__file = "src/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue";
|
|
112
|
+
|
|
113
|
+
var ModalSize;
|
|
114
|
+
(function (ModalSize) {
|
|
115
|
+
ModalSize["L"] = "l";
|
|
116
|
+
ModalSize["M"] = "m";
|
|
117
|
+
ModalSize["S"] = "s";
|
|
118
|
+
})(ModalSize || (ModalSize = {}));
|
|
119
|
+
|
|
120
|
+
const ModalRoot = [
|
|
121
|
+
// Layout
|
|
122
|
+
'layout-column',
|
|
123
|
+
// Box
|
|
124
|
+
'w-full', 'h-full md:h-auto md:max-h-[min(calc(100%-(2*theme(spacing.3xl))),772px)]',
|
|
125
|
+
// Shape
|
|
126
|
+
'md:rounded-md',
|
|
127
|
+
// Spacing
|
|
128
|
+
'py-md md:py-lg', 'gap-md md:gap-lg',
|
|
129
|
+
// Typography
|
|
130
|
+
'typography-body-2-regular',
|
|
131
|
+
// Theme
|
|
132
|
+
'theme-background-default', 'dark:theme-background-default-dark', 'theme-foreground-default', 'dark:theme-foreground-default-dark',
|
|
133
|
+
// Elevation
|
|
134
|
+
'shadow-modal', 'dark:shadow-modal-dark'];
|
|
135
|
+
const ModalRootSizes = {
|
|
136
|
+
'l': [
|
|
137
|
+
// Box
|
|
138
|
+
'md:w-[1050px]'],
|
|
139
|
+
'm': [
|
|
140
|
+
// Box
|
|
141
|
+
'md:w-[700px]'],
|
|
142
|
+
's': [
|
|
143
|
+
// Box
|
|
144
|
+
'md:w-[480px]']
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
var script = defineComponent({
|
|
148
|
+
name: 'OrModal',
|
|
149
|
+
components: {
|
|
150
|
+
OrModalContent: script$3,
|
|
151
|
+
OrModalFooter: script$2,
|
|
152
|
+
OrModalHeader: script$1,
|
|
153
|
+
OrOverlay: script$5
|
|
154
|
+
},
|
|
155
|
+
inheritAttrs: false,
|
|
156
|
+
props: {
|
|
157
|
+
isOpen: {
|
|
158
|
+
type: Boolean,
|
|
159
|
+
default: false
|
|
160
|
+
},
|
|
161
|
+
size: {
|
|
162
|
+
type: String,
|
|
163
|
+
default: ModalSize.M
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
emits: ['open', 'close'],
|
|
167
|
+
expose: ['root', 'open', 'close'],
|
|
168
|
+
setup(props, context) {
|
|
169
|
+
// Refs
|
|
170
|
+
const root = ref();
|
|
171
|
+
// Styles
|
|
172
|
+
const rootStyles = computed(() => ['or-modal-v3', ...ModalRoot, ...ModalRootSizes[props.size]]);
|
|
173
|
+
// State
|
|
174
|
+
const {
|
|
175
|
+
state,
|
|
176
|
+
open,
|
|
177
|
+
close
|
|
178
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
179
|
+
return {
|
|
180
|
+
root,
|
|
181
|
+
rootStyles,
|
|
182
|
+
state,
|
|
183
|
+
open,
|
|
184
|
+
close
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
190
|
+
const _component_OrModalHeader = resolveComponent("OrModalHeader");
|
|
191
|
+
const _component_OrModalContent = resolveComponent("OrModalContent");
|
|
192
|
+
const _component_OrModalFooter = resolveComponent("OrModalFooter");
|
|
193
|
+
const _component_OrOverlay = resolveComponent("OrOverlay");
|
|
194
|
+
return _ctx.state === 'open' ? (openBlock(), createBlock(_component_OrOverlay, {
|
|
195
|
+
key: 0,
|
|
196
|
+
fullscreen: true
|
|
197
|
+
}, {
|
|
198
|
+
default: withCtx(() => [createElementVNode("div", mergeProps({
|
|
199
|
+
ref: "root"
|
|
200
|
+
}, _ctx.$attrs, {
|
|
201
|
+
class: _ctx.rootStyles
|
|
202
|
+
}), [createVNode(_component_OrModalHeader, {
|
|
203
|
+
onClose: _cache[0] || (_cache[0] = $event => _ctx.close())
|
|
204
|
+
}, {
|
|
205
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "header")]),
|
|
206
|
+
_: 3 /* FORWARDED */
|
|
207
|
+
}), createVNode(_component_OrModalContent, null, {
|
|
208
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
209
|
+
_: 3 /* FORWARDED */
|
|
210
|
+
}), _ctx.$slots.footer ? (openBlock(), createBlock(_component_OrModalFooter, {
|
|
211
|
+
key: 0
|
|
212
|
+
}, {
|
|
213
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "footer")]),
|
|
214
|
+
_: 3 /* FORWARDED */
|
|
215
|
+
})) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */)]),
|
|
216
|
+
|
|
217
|
+
_: 3 /* FORWARDED */
|
|
218
|
+
})) : createCommentVNode("v-if", true);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
script.render = render;
|
|
222
|
+
script.__file = "src/components/or-modal-v3/OrModal.vue";
|
|
223
|
+
|
|
224
|
+
export { ModalSize as M, script as s };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { s as script$2 } from './OrIconButton-
|
|
2
|
+
import { s as script$2 } from './OrIconButton-ce1b5542.js';
|
|
3
3
|
import { s as script$1 } from './OrIcon-62793572.js';
|
|
4
4
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, createBlock, withModifiers, createCommentVNode } from 'vue';
|
|
5
5
|
|
|
@@ -4,8 +4,8 @@ import { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
|
4
4
|
import { s as script$1 } from './OrButton-c2b6aa9e.js';
|
|
5
5
|
import { s as script$2 } from './OrIcon-62793572.js';
|
|
6
6
|
import { s as script$4 } from './OrMenuItem-dbee450f.js';
|
|
7
|
-
import { s as script$3 } from './OrMenu-
|
|
8
|
-
import './OrPopover-
|
|
7
|
+
import { s as script$3 } from './OrMenu-79312946.js';
|
|
8
|
+
import './OrPopover-bec73a66.js';
|
|
9
9
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withModifiers, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
10
10
|
|
|
11
11
|
const PaginationRoot = [
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { autoUpdate, computePosition, flip, shift, hide } from '@floating-ui/dom';
|
|
2
2
|
import { onClickOutside } from '@vueuse/core';
|
|
3
|
-
import { defineComponent, ref, computed,
|
|
3
|
+
import { defineComponent, ref, computed, toRef, watchPostEffect, unref } from 'vue-demi';
|
|
4
4
|
import { u as useElevation } from './useElevation-b5a49746.js';
|
|
5
|
+
import { u as usePopoverState } from './usePopoverState-4cb59ae5.js';
|
|
5
6
|
import { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
6
|
-
import { s as script$1 } from './OrBottomSheet-
|
|
7
|
+
import { s as script$1 } from './OrBottomSheet-946c14d3.js';
|
|
7
8
|
import { s as script$2 } from './OrTeleport.vue3-8099178c.js';
|
|
8
9
|
import { resolveComponent, openBlock, createBlock, withCtx, withDirectives, createElementVNode, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, vShow } from 'vue';
|
|
9
10
|
|
|
@@ -80,6 +81,10 @@ var script = defineComponent({
|
|
|
80
81
|
},
|
|
81
82
|
inheritAttrs: false,
|
|
82
83
|
props: {
|
|
84
|
+
isOpen: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: false
|
|
87
|
+
},
|
|
83
88
|
variant: {
|
|
84
89
|
type: String,
|
|
85
90
|
default: PopoverVariant.Auto
|
|
@@ -109,8 +114,8 @@ var script = defineComponent({
|
|
|
109
114
|
default: false
|
|
110
115
|
}
|
|
111
116
|
},
|
|
112
|
-
emits: ['
|
|
113
|
-
expose: ['root', '
|
|
117
|
+
emits: ['open', 'close'],
|
|
118
|
+
expose: ['root', 'open', 'close', 'toggle'],
|
|
114
119
|
setup(props, context) {
|
|
115
120
|
const {
|
|
116
121
|
isDesktop,
|
|
@@ -127,81 +132,12 @@ var script = defineComponent({
|
|
|
127
132
|
const rootStyles = computed(() => ['or-popover-v3', ...PopoverRoot, ...props.customStyles]);
|
|
128
133
|
const bodyStyles = computed(() => [...PopoverBody, ...PopoverBodyPlacements[props.placement]]);
|
|
129
134
|
// State
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
watch(state, value => {
|
|
137
|
-
context.emit('update:state', value);
|
|
138
|
-
switch (value) {
|
|
139
|
-
case 'open':
|
|
140
|
-
context.emit('update:state:open');
|
|
141
|
-
break;
|
|
142
|
-
case 'fullscreen':
|
|
143
|
-
context.emit('update:state:fullscreen');
|
|
144
|
-
break;
|
|
145
|
-
case 'closed':
|
|
146
|
-
context.emit('update:state:closed');
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
// Methods
|
|
151
|
-
function open() {
|
|
152
|
-
state.value = 'open';
|
|
153
|
-
switch (props.variant) {
|
|
154
|
-
case PopoverVariant.Auto:
|
|
155
|
-
if (isMobile.value) {
|
|
156
|
-
nextTick(() => {
|
|
157
|
-
const bottomSheetInstance = bottomSheet.value;
|
|
158
|
-
if (bottomSheetInstance) {
|
|
159
|
-
bottomSheetInstance.open();
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
break;
|
|
164
|
-
case PopoverVariant.Popover:
|
|
165
|
-
break;
|
|
166
|
-
case PopoverVariant.BottomSheet:
|
|
167
|
-
nextTick(() => {
|
|
168
|
-
const bottomSheetInstance = bottomSheet.value;
|
|
169
|
-
if (bottomSheetInstance) {
|
|
170
|
-
bottomSheetInstance.open();
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
function close() {
|
|
177
|
-
let auto = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
178
|
-
state.value = 'closed';
|
|
179
|
-
switch (props.variant) {
|
|
180
|
-
case PopoverVariant.Auto:
|
|
181
|
-
if (isMobile.value) {
|
|
182
|
-
nextTick(() => {
|
|
183
|
-
const bottomSheetInstance = bottomSheet.value;
|
|
184
|
-
if (bottomSheetInstance) {
|
|
185
|
-
bottomSheetInstance.close();
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
break;
|
|
190
|
-
case PopoverVariant.Popover:
|
|
191
|
-
break;
|
|
192
|
-
case PopoverVariant.BottomSheet:
|
|
193
|
-
nextTick(() => {
|
|
194
|
-
const bottomSheetInstance = bottomSheet.value;
|
|
195
|
-
if (bottomSheetInstance) {
|
|
196
|
-
bottomSheetInstance.close();
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
if (auto) {
|
|
202
|
-
context.emit('update:state:closed-automatically');
|
|
203
|
-
}
|
|
204
|
-
}
|
|
135
|
+
const {
|
|
136
|
+
state,
|
|
137
|
+
open,
|
|
138
|
+
close,
|
|
139
|
+
toggle
|
|
140
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
205
141
|
// Handlers
|
|
206
142
|
function handleBottomSheetState(bottomSheetState) {
|
|
207
143
|
if (bottomSheetState === 'closed') {
|
|
@@ -220,7 +156,6 @@ var script = defineComponent({
|
|
|
220
156
|
} = props;
|
|
221
157
|
if (trigger) {
|
|
222
158
|
autoUpdate(trigger, rootElement, async () => {
|
|
223
|
-
var _a;
|
|
224
159
|
const {
|
|
225
160
|
x,
|
|
226
161
|
y,
|
|
@@ -235,11 +170,13 @@ var script = defineComponent({
|
|
|
235
170
|
visibility: middlewareData.hide.referenceHidden ? 'hidden' : 'visible',
|
|
236
171
|
width: props.fullWidth ? `${trigger.offsetWidth}px` : ''
|
|
237
172
|
});
|
|
238
|
-
isFlipped.value = Boolean((_a = middlewareData.flip) === null || _a === void 0 ? void 0 : _a.index);
|
|
239
173
|
});
|
|
240
174
|
}
|
|
241
175
|
}
|
|
242
176
|
});
|
|
177
|
+
// #region Elevation
|
|
178
|
+
useElevation(root, state);
|
|
179
|
+
// #endregion
|
|
243
180
|
// #region Click Outside
|
|
244
181
|
const trigger = toRef(props, 'trigger');
|
|
245
182
|
onClickOutside(root, event => {
|
|
@@ -250,15 +187,12 @@ var script = defineComponent({
|
|
|
250
187
|
} = _ref;
|
|
251
188
|
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'));
|
|
252
189
|
})) {
|
|
253
|
-
close(
|
|
190
|
+
close();
|
|
254
191
|
}
|
|
255
192
|
}, {
|
|
256
193
|
ignore: [trigger]
|
|
257
194
|
});
|
|
258
195
|
// #endregion
|
|
259
|
-
// #region Elevation
|
|
260
|
-
useElevation(root, state);
|
|
261
|
-
// #endregion
|
|
262
196
|
return {
|
|
263
197
|
isDesktop,
|
|
264
198
|
isMobile,
|
|
@@ -269,12 +203,9 @@ var script = defineComponent({
|
|
|
269
203
|
rootStyles,
|
|
270
204
|
bodyStyles,
|
|
271
205
|
state,
|
|
272
|
-
isOpen,
|
|
273
|
-
isFullscreen,
|
|
274
|
-
isClosed,
|
|
275
|
-
isFlipped,
|
|
276
206
|
open,
|
|
277
|
-
close
|
|
207
|
+
close,
|
|
208
|
+
toggle
|
|
278
209
|
};
|
|
279
210
|
}
|
|
280
211
|
});
|
|
@@ -300,12 +231,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
300
231
|
key: 1,
|
|
301
232
|
ref: "bottomSheet"
|
|
302
233
|
}, _ctx.bottomSheetProps, {
|
|
303
|
-
"
|
|
304
|
-
|
|
234
|
+
"is-open": _ctx.state === 'open',
|
|
235
|
+
onOpen: _cache[0] || (_cache[0] = $event => _ctx.open()),
|
|
236
|
+
onClose: _cache[1] || (_cache[1] = $event => _ctx.close())
|
|
305
237
|
}), {
|
|
306
238
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
307
239
|
_: 3 /* FORWARDED */
|
|
308
|
-
}, 16 /* FULL_PROPS
|
|
240
|
+
}, 16 /* FULL_PROPS */, ["is-open"])) : createCommentVNode("v-if", true)], 512 /* NEED_PATCH */), [[vShow, _ctx.state === 'open']])]),
|
|
309
241
|
_: 3 /* FORWARDED */
|
|
310
242
|
});
|
|
311
243
|
}
|
|
@@ -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-02821bda.js';
|
|
4
4
|
import { I as InputBoxSize } from './OrInputBox-ba40bbdf.js';
|
|
5
5
|
import { resolveComponent, openBlock, createBlock, normalizeClass } from 'vue';
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ import { s as script$3 } from './OrExpansionPanel-c016d8fa.js';
|
|
|
8
8
|
import { s as script$4 } from './OrHint-06ab89d7.js';
|
|
9
9
|
import { s as script$5 } from './OrIcon-62793572.js';
|
|
10
10
|
import { s as script$7, I as InputBoxSize } from './OrInputBox-ba40bbdf.js';
|
|
11
|
-
import { s as script$6 } from './OrInput-
|
|
11
|
+
import { s as script$6 } from './OrInput-02821bda.js';
|
|
12
12
|
import { s as script$8 } from './OrLabel-4da56db0.js';
|
|
13
13
|
import { s as script$9 } from './OrMenuItem-dbee450f.js';
|
|
14
|
-
import { s as script$a } from './OrPopover-
|
|
15
|
-
import { s as script$b } from './OrTag-
|
|
14
|
+
import { s as script$a } from './OrPopover-bec73a66.js';
|
|
15
|
+
import { s as script$b } from './OrTag-8521661a.js';
|
|
16
16
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createElementVNode, Fragment, renderList, createVNode, withModifiers, vShow } from 'vue';
|
|
17
17
|
|
|
18
18
|
const SelectRoot = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import { defineComponent, ref, computed, useSlots, watch } from 'vue-demi';
|
|
4
|
-
import { O as OrSidebarPlacement, s as script$1 } from './OrSidebarCollapseButton-
|
|
4
|
+
import { O as OrSidebarPlacement, s as script$1 } from './OrSidebarCollapseButton-c961c428.js';
|
|
5
5
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createElementVNode, normalizeStyle, createBlock, withDirectives, vShow } from 'vue';
|
|
6
6
|
|
|
7
7
|
const SidebarRoot = [
|
package/dist/esm/v3/{OrSidebarCollapseButton-06681153.js → OrSidebarCollapseButton-c961c428.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
3
|
-
import { s as script$1 } from './OrIconButton-
|
|
3
|
+
import { s as script$1 } from './OrIconButton-ce1b5542.js';
|
|
4
4
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode } from 'vue';
|
|
5
5
|
|
|
6
6
|
var OrSidebarPlacement;
|
|
@@ -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-79312946.js';
|
|
6
|
+
import './OrPopover-bec73a66.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-ce1b5542.js';
|
|
3
3
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, withModifiers, createCommentVNode } from 'vue';
|
|
4
4
|
|
|
5
5
|
var TagVariant;
|
|
@@ -2,8 +2,8 @@ import { defineComponent, ref, computed } from 'vue-demi';
|
|
|
2
2
|
import { u as useOverflow } from './useOverflow-c856b7b7.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import { s as script$1 } from './OrButton-c2b6aa9e.js';
|
|
5
|
-
import { s as script$2 } from './OrPopover-
|
|
6
|
-
import { s as script$3 } from './OrTag-
|
|
5
|
+
import { s as script$2 } from './OrPopover-bec73a66.js';
|
|
6
|
+
import { s as script$3 } from './OrTag-8521661a.js';
|
|
7
7
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createBlock, mergeProps, withCtx, createTextVNode, toDisplayString, createVNode, withModifiers, createCommentVNode } from 'vue';
|
|
8
8
|
|
|
9
9
|
const Tags = [
|