@onereach/ui-components 4.6.2 → 4.6.3-beta.2785.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/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 +1 -0
- package/dist/bundled/v2/components/OrCardCollectionV3/index.js +1 -0
- 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 +1 -0
- package/dist/bundled/v2/components/OrIconButtonV3/index.js +1 -0
- package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +1 -0
- package/dist/bundled/v2/components/OrInlineInputV3/index.js +1 -0
- package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +1 -0
- package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +1 -0
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +1 -0
- package/dist/bundled/v2/components/OrInputV3/index.js +1 -0
- 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 +1 -0
- package/dist/bundled/v2/components/OrNotificationV3/index.js +1 -0
- 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 +1 -0
- package/dist/bundled/v2/components/OrTagV3/index.js +1 -0
- 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 +1 -0
- package/dist/bundled/v2/components/OrToastV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +31 -40
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +20 -17
- package/dist/bundled/v2/components/OrTooltipV3/index.js +1 -0
- package/dist/bundled/v2/components/index.js +2 -1
- package/dist/bundled/v2/hooks/index.d.ts +1 -0
- package/dist/bundled/v2/hooks/index.js +1 -0
- package/dist/bundled/v2/hooks/useControlAttributes.d.ts +1 -2
- package/dist/bundled/v2/hooks/useElevation.js +3 -1
- package/dist/bundled/v2/hooks/usePopoverState.d.ts +8 -0
- package/dist/bundled/v2/hooks/usePopoverState.js +40 -0
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/bundled/v2/index.js +3 -2
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-a81b2abb.js → OrBottomSheet.vue_vue_type_script_lang-18f9c167.js} +28 -45
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-34390dfe.js → OrCardCollection.vue_vue_type_script_lang-9cf3741e.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-e1390930.js → OrConfirm.vue_vue_type_script_lang-710de7be.js} +28 -52
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-d071d109.js → OrDatePicker.vue_vue_type_script_lang-609cd431.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-8aa80833.js → OrDateTimePicker.vue_vue_type_script_lang-eecb2974.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-387c2096.js → OrDateTimePickerMonthSelect-747d8207.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-5bba9f3f.js → OrIconButton.vue_vue_type_script_lang-851fe8b9.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3c6b0958.js → OrInlineInput.vue_vue_type_script_lang-80e21acb.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-da59cd8e.js → OrInlineTextarea.vue_vue_type_script_lang-7cbe9490.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-6242286b.js → OrInput.vue_vue_type_script_lang-b42a6626.js} +1 -1
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-97d5a16c.js +66 -0
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-00b3317a.js +160 -0
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-463e1a82.js → OrNotification.vue_vue_type_script_lang-5609733f.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-bdc8d9fb.js → OrPagination.vue_vue_type_script_lang-d778e42d.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-7b1b2488.js → OrPopover.vue_vue_type_script_lang-27a7448c.js} +27 -98
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0bcc597c.js → OrSearch.vue_vue_type_script_lang-499bbce0.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-4bf05f8b.js → OrSelect.vue_vue_type_script_lang-627292ce.js} +3 -3
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-780eaa84.js → OrSidebar.vue_vue_type_script_lang-7097ef23.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-9d4221f1.js → OrTabs.vue_vue_type_script_lang-09e8c09e.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-09948d1f.js → OrTag.vue_vue_type_script_lang-7287f234.js} +1 -1
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-71fb4f1d.js → OrTags.vue_vue_type_script_lang-67848ef7.js} +2 -2
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-c52a2a0b.js → OrTimePicker.vue_vue_type_script_lang-3da85afb.js} +2 -2
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-0f90dccb.js +55 -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 +11 -10
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +10 -9
- 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 +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 +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 +8 -7
- package/dist/bundled/v3/components/OrNotificationV3/index.js +7 -6
- 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 +8 -7
- package/dist/bundled/v3/components/OrTagV3/index.js +7 -6
- 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 +6 -5
- package/dist/bundled/v3/components/OrToastV3/index.js +7 -6
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +12 -9
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +17 -6
- package/dist/bundled/v3/components/OrTooltipV3/index.js +5 -4
- package/dist/bundled/v3/components/index.js +26 -25
- package/dist/bundled/v3/hooks/index.d.ts +1 -0
- package/dist/bundled/v3/hooks/index.js +1 -0
- package/dist/bundled/v3/hooks/useControlAttributes.d.ts +1 -2
- package/dist/bundled/v3/hooks/useElevation.js +3 -1
- package/dist/bundled/v3/hooks/usePopoverState.d.ts +8 -0
- package/dist/bundled/v3/hooks/usePopoverState.js +40 -0
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/bundled/v3/index.js +27 -26
- package/dist/esm/v2/{OrBottomSheet-ffa029ca.js → OrBottomSheet-f858cabb.js} +31 -48
- package/dist/esm/v2/{OrCardCollection-e23d4238.js → OrCardCollection-7ba11168.js} +4 -4
- package/dist/esm/v2/{OrConfirm-8ec55f84.js → OrConfirm-1a1becc7.js} +30 -54
- package/dist/esm/v2/{OrDatePicker-b6ebf44a.js → OrDatePicker-219d2400.js} +4 -4
- package/dist/esm/v2/{OrDateTimePicker-85c08b90.js → OrDateTimePicker-98a24b20.js} +5 -5
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-e35404a7.js → OrDateTimePickerMonthSelect-fe0170bc.js} +3 -3
- package/dist/esm/v2/{OrIconButton-ee747c71.js → OrIconButton-1f0ff5dc.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-a131caf4.js → OrInlineInput-d5168a53.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-7cc45396.js → OrInlineTextarea-6285d2fc.js} +1 -1
- package/dist/esm/v2/{OrInput-8c7b3cce.js → OrInput-ad560a10.js} +1 -1
- package/dist/esm/v2/{OrMenu-8b902c22.js → OrMenu-f01d0df1.js} +23 -49
- package/dist/esm/v2/OrModal-ce0e3a9f.js +312 -0
- package/dist/esm/v2/{OrNotification-16e6d4ff.js → OrNotification-1b795836.js} +1 -1
- package/dist/esm/v2/{OrOverlay-4c8c11e2.js → OrOverlay-f791976c.js} +1 -1
- package/dist/esm/v2/{OrPagination-36583054.js → OrPagination-cf75e50e.js} +3 -3
- package/dist/esm/v2/{OrPopover-80459663.js → OrPopover-8f2fbc1b.js} +33 -104
- package/dist/esm/v2/{OrSearch-5aa8154f.js → OrSearch-6cffa183.js} +1 -1
- package/dist/esm/v2/{OrSelect-dd8affc1.js → OrSelect-90a2bc19.js} +3 -3
- package/dist/esm/v2/{OrSidebar-638b1d60.js → OrSidebar-00ba8017.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-2c81d465.js → OrSidebarCollapseButton-fcef54c9.js} +1 -1
- package/dist/esm/v2/{OrTabs-653258a2.js → OrTabs-c25f1fe2.js} +2 -2
- package/dist/esm/v2/{OrTag-6256623c.js → OrTag-3612d8c1.js} +1 -1
- package/dist/esm/v2/{OrTags-db2608dc.js → OrTags-e29da4e0.js} +2 -2
- package/dist/esm/v2/{OrTimePicker-696e29ed.js → OrTimePicker-c1898f16.js} +3 -3
- package/dist/esm/v2/{OrTooltip-5a6e0f64.js → OrTooltip-f341039a.js} +32 -41
- 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 +4 -3
- package/dist/esm/v2/components/or-card-collection-v3/index.js +11 -10
- 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 -8
- package/dist/esm/v2/components/or-date-picker-v3/index.js +10 -9
- 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 +7 -6
- package/dist/esm/v2/components/or-inline-input-v3/index.js +8 -7
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +8 -7
- package/dist/esm/v2/components/or-input-v3/index.js +8 -7
- 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 -6
- 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 -11
- 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 -7
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +7 -6
- 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 -4
- package/dist/esm/v2/components/or-search-v3/index.js +9 -8
- package/dist/esm/v2/components/or-select-v3/index.js +10 -9
- package/dist/esm/v2/components/or-sidebar-v3/index.js +9 -8
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +8 -7
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -7
- package/dist/esm/v2/components/or-tabs-v3/index.js +7 -6
- package/dist/esm/v2/components/or-tag-v3/index.js +8 -7
- package/dist/esm/v2/components/or-tags-v3/index.js +9 -8
- package/dist/esm/v2/components/or-time-picker-v3/index.js +8 -7
- package/dist/esm/v2/components/or-toast-v3/index.js +8 -7
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +8 -7
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +20 -17
- package/dist/esm/v2/components/or-tooltip-v3/index.js +6 -5
- package/dist/esm/v2/hooks/index.d.ts +1 -0
- package/dist/esm/v2/hooks/index.js +2 -1
- package/dist/esm/v2/hooks/useControlAttributes.d.ts +1 -2
- package/dist/esm/v2/hooks/usePopoverState.d.ts +8 -0
- package/dist/esm/v2/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/esm/v2/index.js +28 -27
- package/dist/esm/v2/{types-4a7d24f3.js → types-e365967d.js} +2 -2
- package/dist/esm/{v3/useElevation-b5a49746.js → v2/useElevation-a50ec347.js} +3 -1
- package/dist/esm/v2/usePopoverState-30ac6da1.js +40 -0
- package/dist/esm/v3/{OrBottomSheet-5969a217.js → OrBottomSheet-348fe528.js} +31 -48
- package/dist/esm/v3/{OrCardCollection-d5390215.js → OrCardCollection-97807bb9.js} +4 -4
- package/dist/esm/v3/{OrConfirm-fe8617ac.js → OrConfirm-06350a61.js} +30 -54
- package/dist/esm/v3/{OrDatePicker-f144d074.js → OrDatePicker-db267041.js} +4 -4
- package/dist/esm/v3/{OrDateTimePicker-2214cd85.js → OrDateTimePicker-f505ab31.js} +5 -5
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-5a7b7b5c.js → OrDateTimePickerMonthSelect-eac28443.js} +3 -3
- package/dist/esm/v3/{OrIconButton-b7217ea5.js → OrIconButton-3d1ffea6.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-dcb28ea2.js → OrInlineInput-3785a2fd.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-88eac437.js → OrInlineTextarea-7d5e758d.js} +1 -1
- package/dist/esm/v3/{OrInput-af5bb98a.js → OrInput-2e83e367.js} +1 -1
- package/dist/esm/v3/{OrMenu-8a53ccf9.js → OrMenu-458e495d.js} +24 -50
- package/dist/esm/v3/OrModal-d6bb9576.js +226 -0
- package/dist/esm/v3/{OrNotification-09216b8b.js → OrNotification-cdbd93bc.js} +1 -1
- package/dist/esm/v3/{OrOverlay-bf72f582.js → OrOverlay-28952099.js} +1 -1
- package/dist/esm/v3/{OrPagination-c6046af4.js → OrPagination-ad365d85.js} +3 -3
- package/dist/esm/v3/{OrPopover-15c2968f.js → OrPopover-9bc36ad6.js} +31 -102
- package/dist/esm/v3/{OrSearch-ecad7638.js → OrSearch-ad1a1b36.js} +1 -1
- package/dist/esm/v3/{OrSelect-cfb336db.js → OrSelect-5810e46c.js} +3 -3
- package/dist/esm/v3/{OrSidebar-1579ad80.js → OrSidebar-20aaf94a.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-2668946c.js → OrSidebarCollapseButton-8d1f1bd0.js} +1 -1
- package/dist/esm/v3/{OrTabs-a2d87627.js → OrTabs-867f01e7.js} +2 -2
- package/dist/esm/v3/{OrTag-8605e9e6.js → OrTag-fb9d3047.js} +1 -1
- package/dist/esm/v3/{OrTags-3724ff59.js → OrTags-a818974a.js} +2 -2
- package/dist/esm/v3/{OrTimePicker-68de86d9.js → OrTimePicker-7a47802d.js} +3 -3
- package/dist/esm/v3/{OrTooltip-3d5fcaf9.js → OrTooltip-00037d45.js} +27 -42
- package/dist/esm/v3/components/index.js +28 -27
- 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 -3
- package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -10
- 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 -8
- package/dist/esm/v3/components/or-date-picker-v3/index.js +10 -9
- 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 +7 -6
- package/dist/esm/v3/components/or-inline-input-v3/index.js +8 -7
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +8 -7
- package/dist/esm/v3/components/or-input-v3/index.js +8 -7
- 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 -6
- 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 -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 +8 -7
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +7 -6
- 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 -4
- package/dist/esm/v3/components/or-search-v3/index.js +9 -8
- package/dist/esm/v3/components/or-select-v3/index.js +10 -9
- package/dist/esm/v3/components/or-sidebar-v3/index.js +9 -8
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +8 -7
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +8 -7
- package/dist/esm/v3/components/or-tabs-v3/index.js +7 -6
- package/dist/esm/v3/components/or-tag-v3/index.js +8 -7
- package/dist/esm/v3/components/or-tags-v3/index.js +9 -8
- package/dist/esm/v3/components/or-time-picker-v3/index.js +8 -7
- package/dist/esm/v3/components/or-toast-v3/index.js +8 -7
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +8 -7
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +17 -6
- package/dist/esm/v3/components/or-tooltip-v3/index.js +6 -5
- package/dist/esm/v3/hooks/index.d.ts +1 -0
- package/dist/esm/v3/hooks/index.js +2 -1
- package/dist/esm/v3/hooks/useControlAttributes.d.ts +1 -2
- package/dist/esm/v3/hooks/usePopoverState.d.ts +8 -0
- package/dist/esm/v3/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/esm/v3/index.js +28 -27
- package/dist/esm/v3/{types-9e1555eb.js → types-f97d54b8.js} +2 -2
- package/dist/esm/{v2/useElevation-b5a49746.js → v3/useElevation-a50ec347.js} +3 -1
- package/dist/esm/v3/usePopoverState-30ac6da1.js +40 -0
- package/package.json +2 -3
- 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 +25 -40
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useControlAttributes.ts +1 -1
- package/src/hooks/useElevation.ts +3 -1
- package/src/hooks/usePopoverState.ts +55 -0
- package/src/hooks/useValidationAttributes.ts +1 -1
- 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/v2/{OrDateTimePickerMonthSelect-75089f80.js → OrDateTimePickerMonthSelect-bf92c66b.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-fc32e90b.js} +0 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
|
+
import '@vueuse/core';
|
|
3
|
+
import { u as usePopoverState } from './usePopoverState-30ac6da1.js';
|
|
4
|
+
import { _ as __vue_component__$5 } from './OrOverlay-f791976c.js';
|
|
5
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
|
+
import { _ as __vue_component__$4 } from './OrIconButton-1f0ff5dc.js';
|
|
7
|
+
|
|
8
|
+
const ModalContent = [
|
|
9
|
+
// Layout
|
|
10
|
+
'grow',
|
|
11
|
+
// Overflow
|
|
12
|
+
'overflow-auto',
|
|
13
|
+
// Spacing
|
|
14
|
+
'px-md md:px-lg'];
|
|
15
|
+
|
|
16
|
+
var script$3 = defineComponent({
|
|
17
|
+
name: 'OrModalContent',
|
|
18
|
+
expose: ['root'],
|
|
19
|
+
setup() {
|
|
20
|
+
// Refs
|
|
21
|
+
const root = ref();
|
|
22
|
+
// Styles
|
|
23
|
+
const rootStyles = computed(() => ['or-modal-content', ...ModalContent]);
|
|
24
|
+
return {
|
|
25
|
+
root,
|
|
26
|
+
rootStyles
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/* script */
|
|
32
|
+
const __vue_script__$3 = script$3;
|
|
33
|
+
|
|
34
|
+
/* template */
|
|
35
|
+
var __vue_render__$3 = function () {
|
|
36
|
+
var _vm = this;
|
|
37
|
+
var _h = _vm.$createElement;
|
|
38
|
+
var _c = _vm._self._c || _h;
|
|
39
|
+
return _c('div', {
|
|
40
|
+
ref: "root",
|
|
41
|
+
class: _vm.rootStyles
|
|
42
|
+
}, [_vm._t("default")], 2);
|
|
43
|
+
};
|
|
44
|
+
var __vue_staticRenderFns__$3 = [];
|
|
45
|
+
|
|
46
|
+
/* style */
|
|
47
|
+
const __vue_inject_styles__$3 = undefined;
|
|
48
|
+
/* scoped */
|
|
49
|
+
const __vue_scope_id__$3 = undefined;
|
|
50
|
+
/* module identifier */
|
|
51
|
+
const __vue_module_identifier__$3 = undefined;
|
|
52
|
+
/* functional template */
|
|
53
|
+
const __vue_is_functional_template__$3 = false;
|
|
54
|
+
/* style inject */
|
|
55
|
+
|
|
56
|
+
/* style inject SSR */
|
|
57
|
+
|
|
58
|
+
/* style inject shadow dom */
|
|
59
|
+
|
|
60
|
+
const __vue_component__$3 = /*#__PURE__*/normalizeComponent({
|
|
61
|
+
render: __vue_render__$3,
|
|
62
|
+
staticRenderFns: __vue_staticRenderFns__$3
|
|
63
|
+
}, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);
|
|
64
|
+
|
|
65
|
+
const ModalFooter = [
|
|
66
|
+
// Spacing
|
|
67
|
+
'px-md md:px-lg'];
|
|
68
|
+
|
|
69
|
+
var script$2 = defineComponent({
|
|
70
|
+
name: 'OrModalFooter',
|
|
71
|
+
expose: ['root'],
|
|
72
|
+
setup() {
|
|
73
|
+
// Refs
|
|
74
|
+
const root = ref();
|
|
75
|
+
// Styles
|
|
76
|
+
const rootStyles = computed(() => ['or-modal-footer', ...ModalFooter]);
|
|
77
|
+
return {
|
|
78
|
+
root,
|
|
79
|
+
rootStyles
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
/* script */
|
|
85
|
+
const __vue_script__$2 = script$2;
|
|
86
|
+
|
|
87
|
+
/* template */
|
|
88
|
+
var __vue_render__$2 = function () {
|
|
89
|
+
var _vm = this;
|
|
90
|
+
var _h = _vm.$createElement;
|
|
91
|
+
var _c = _vm._self._c || _h;
|
|
92
|
+
return _c('div', {
|
|
93
|
+
ref: "root",
|
|
94
|
+
class: _vm.rootStyles
|
|
95
|
+
}, [_vm._t("default")], 2);
|
|
96
|
+
};
|
|
97
|
+
var __vue_staticRenderFns__$2 = [];
|
|
98
|
+
|
|
99
|
+
/* style */
|
|
100
|
+
const __vue_inject_styles__$2 = undefined;
|
|
101
|
+
/* scoped */
|
|
102
|
+
const __vue_scope_id__$2 = undefined;
|
|
103
|
+
/* module identifier */
|
|
104
|
+
const __vue_module_identifier__$2 = undefined;
|
|
105
|
+
/* functional template */
|
|
106
|
+
const __vue_is_functional_template__$2 = false;
|
|
107
|
+
/* style inject */
|
|
108
|
+
|
|
109
|
+
/* style inject SSR */
|
|
110
|
+
|
|
111
|
+
/* style inject shadow dom */
|
|
112
|
+
|
|
113
|
+
const __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
114
|
+
render: __vue_render__$2,
|
|
115
|
+
staticRenderFns: __vue_staticRenderFns__$2
|
|
116
|
+
}, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
|
|
117
|
+
|
|
118
|
+
const ModalHeader = [
|
|
119
|
+
// Layout
|
|
120
|
+
'layout-row',
|
|
121
|
+
// Spacing
|
|
122
|
+
'px-md md:px-lg',
|
|
123
|
+
// Typography
|
|
124
|
+
'typography-headline-2'];
|
|
125
|
+
|
|
126
|
+
var script$1 = defineComponent({
|
|
127
|
+
name: 'OrModalHeader',
|
|
128
|
+
components: {
|
|
129
|
+
OrIconButton: __vue_component__$4
|
|
130
|
+
},
|
|
131
|
+
emits: ['close'],
|
|
132
|
+
expose: ['root'],
|
|
133
|
+
setup() {
|
|
134
|
+
// Refs
|
|
135
|
+
const root = ref();
|
|
136
|
+
// Styles
|
|
137
|
+
const rootStyles = computed(() => ['or-modal-header', ...ModalHeader]);
|
|
138
|
+
return {
|
|
139
|
+
root,
|
|
140
|
+
rootStyles
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
/* script */
|
|
146
|
+
const __vue_script__$1 = script$1;
|
|
147
|
+
|
|
148
|
+
/* template */
|
|
149
|
+
var __vue_render__$1 = function () {
|
|
150
|
+
var _vm = this;
|
|
151
|
+
var _h = _vm.$createElement;
|
|
152
|
+
var _c = _vm._self._c || _h;
|
|
153
|
+
return _c('div', {
|
|
154
|
+
ref: "root",
|
|
155
|
+
class: _vm.rootStyles
|
|
156
|
+
}, [_c('div', {
|
|
157
|
+
class: ['grow']
|
|
158
|
+
}, [_vm._t("default")], 2), _vm._v(" "), _c('OrIconButton', {
|
|
159
|
+
attrs: {
|
|
160
|
+
"icon": 'close',
|
|
161
|
+
"size": 'l'
|
|
162
|
+
},
|
|
163
|
+
on: {
|
|
164
|
+
"click": function ($event) {
|
|
165
|
+
$event.stopPropagation();
|
|
166
|
+
return _vm.$emit('close');
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
})], 1);
|
|
170
|
+
};
|
|
171
|
+
var __vue_staticRenderFns__$1 = [];
|
|
172
|
+
|
|
173
|
+
/* style */
|
|
174
|
+
const __vue_inject_styles__$1 = undefined;
|
|
175
|
+
/* scoped */
|
|
176
|
+
const __vue_scope_id__$1 = undefined;
|
|
177
|
+
/* module identifier */
|
|
178
|
+
const __vue_module_identifier__$1 = undefined;
|
|
179
|
+
/* functional template */
|
|
180
|
+
const __vue_is_functional_template__$1 = false;
|
|
181
|
+
/* style inject */
|
|
182
|
+
|
|
183
|
+
/* style inject SSR */
|
|
184
|
+
|
|
185
|
+
/* style inject shadow dom */
|
|
186
|
+
|
|
187
|
+
const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
|
|
188
|
+
render: __vue_render__$1,
|
|
189
|
+
staticRenderFns: __vue_staticRenderFns__$1
|
|
190
|
+
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
191
|
+
|
|
192
|
+
var ModalSize;
|
|
193
|
+
(function (ModalSize) {
|
|
194
|
+
ModalSize["L"] = "l";
|
|
195
|
+
ModalSize["M"] = "m";
|
|
196
|
+
ModalSize["S"] = "s";
|
|
197
|
+
})(ModalSize || (ModalSize = {}));
|
|
198
|
+
|
|
199
|
+
const ModalRoot = [
|
|
200
|
+
// Layout
|
|
201
|
+
'layout-column',
|
|
202
|
+
// Box
|
|
203
|
+
'w-full', 'h-full md:h-auto md:max-h-[min(calc(100%-(2*theme(spacing.3xl))),772px)]',
|
|
204
|
+
// Shape
|
|
205
|
+
'md:rounded-md',
|
|
206
|
+
// Spacing
|
|
207
|
+
'py-md md:py-lg', 'gap-md md:gap-lg',
|
|
208
|
+
// Typography
|
|
209
|
+
'typography-body-2-regular',
|
|
210
|
+
// Theme
|
|
211
|
+
'theme-background-default', 'dark:theme-background-default-dark', 'theme-foreground-default', 'dark:theme-foreground-default-dark',
|
|
212
|
+
// Elevation
|
|
213
|
+
'shadow-modal', 'dark:shadow-modal-dark'];
|
|
214
|
+
const ModalRootSizes = {
|
|
215
|
+
'l': [
|
|
216
|
+
// Box
|
|
217
|
+
'md:w-[1050px]'],
|
|
218
|
+
'm': [
|
|
219
|
+
// Box
|
|
220
|
+
'md:w-[700px]'],
|
|
221
|
+
's': [
|
|
222
|
+
// Box
|
|
223
|
+
'md:w-[480px]']
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
var script = defineComponent({
|
|
227
|
+
name: 'OrModal',
|
|
228
|
+
components: {
|
|
229
|
+
OrModalContent: __vue_component__$3,
|
|
230
|
+
OrModalFooter: __vue_component__$2,
|
|
231
|
+
OrModalHeader: __vue_component__$1,
|
|
232
|
+
OrOverlay: __vue_component__$5
|
|
233
|
+
},
|
|
234
|
+
inheritAttrs: false,
|
|
235
|
+
props: {
|
|
236
|
+
isOpen: {
|
|
237
|
+
type: Boolean,
|
|
238
|
+
default: false
|
|
239
|
+
},
|
|
240
|
+
size: {
|
|
241
|
+
type: String,
|
|
242
|
+
default: ModalSize.M
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
emits: ['update:state', 'open', 'close'],
|
|
246
|
+
expose: ['root', 'state', 'open', 'close'],
|
|
247
|
+
setup(props, context) {
|
|
248
|
+
// Refs
|
|
249
|
+
const root = ref();
|
|
250
|
+
// Styles
|
|
251
|
+
const rootStyles = computed(() => ['or-modal-v3', ...ModalRoot, ...ModalRootSizes[props.size]]);
|
|
252
|
+
// State
|
|
253
|
+
const {
|
|
254
|
+
state,
|
|
255
|
+
open,
|
|
256
|
+
close
|
|
257
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
258
|
+
return {
|
|
259
|
+
root,
|
|
260
|
+
rootStyles,
|
|
261
|
+
state,
|
|
262
|
+
open,
|
|
263
|
+
close
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
/* script */
|
|
269
|
+
const __vue_script__ = script;
|
|
270
|
+
|
|
271
|
+
/* template */
|
|
272
|
+
var __vue_render__ = function () {
|
|
273
|
+
var _vm = this;
|
|
274
|
+
var _h = _vm.$createElement;
|
|
275
|
+
var _c = _vm._self._c || _h;
|
|
276
|
+
return _vm.state === 'open' ? _c('OrOverlay', {
|
|
277
|
+
attrs: {
|
|
278
|
+
"fullscreen": true
|
|
279
|
+
}
|
|
280
|
+
}, [_c('div', _vm._b({
|
|
281
|
+
ref: "root",
|
|
282
|
+
class: _vm.rootStyles
|
|
283
|
+
}, 'div', _vm.$attrs, false), [_c('OrModalHeader', {
|
|
284
|
+
on: {
|
|
285
|
+
"close": function ($event) {
|
|
286
|
+
return _vm.close();
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}, [_vm._t("header")], 2), _vm._v(" "), _c('OrModalContent', [_vm._t("default")], 2), _vm._v(" "), _vm.$slots.footer ? _c('OrModalFooter', [_vm._t("footer")], 2) : _vm._e()], 1)]) : _vm._e();
|
|
290
|
+
};
|
|
291
|
+
var __vue_staticRenderFns__ = [];
|
|
292
|
+
|
|
293
|
+
/* style */
|
|
294
|
+
const __vue_inject_styles__ = undefined;
|
|
295
|
+
/* scoped */
|
|
296
|
+
const __vue_scope_id__ = undefined;
|
|
297
|
+
/* module identifier */
|
|
298
|
+
const __vue_module_identifier__ = undefined;
|
|
299
|
+
/* functional template */
|
|
300
|
+
const __vue_is_functional_template__ = false;
|
|
301
|
+
/* style inject */
|
|
302
|
+
|
|
303
|
+
/* style inject SSR */
|
|
304
|
+
|
|
305
|
+
/* style inject shadow dom */
|
|
306
|
+
|
|
307
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
308
|
+
render: __vue_render__,
|
|
309
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
310
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
311
|
+
|
|
312
|
+
export { ModalSize as M, __vue_component__ as _ };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__$2 } from './OrIconButton-
|
|
2
|
+
import { _ as __vue_component__$2 } from './OrIconButton-1f0ff5dc.js';
|
|
3
3
|
import { _ as __vue_component__$1 } from './OrIcon-d35a84d8.js';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
5
|
|
|
@@ -1,6 +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-
|
|
3
|
+
import { u as useElevation } from './useElevation-a50ec347.js';
|
|
4
4
|
import { _ as __vue_component__$1 } from './OrTeleport.vue2-424c7f33.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
6
|
|
|
@@ -4,8 +4,8 @@ import { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
|
4
4
|
import { _ as __vue_component__$1 } from './OrButton-9622e713.js';
|
|
5
5
|
import { _ as __vue_component__$2 } from './OrIcon-d35a84d8.js';
|
|
6
6
|
import { _ as __vue_component__$4 } from './OrMenuItem-6f9b8a93.js';
|
|
7
|
-
import { _ as __vue_component__$3 } from './OrMenu-
|
|
8
|
-
import './OrPopover-
|
|
7
|
+
import { _ as __vue_component__$3 } from './OrMenu-f01d0df1.js';
|
|
8
|
+
import './OrPopover-8f2fbc1b.js';
|
|
9
9
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
10
10
|
|
|
11
11
|
const PaginationRoot = [
|
|
@@ -271,7 +271,7 @@ var __vue_render__ = function () {
|
|
|
271
271
|
}
|
|
272
272
|
}, [_vm._v("\n " + _vm._s(_vm.currentLimit) + " "), _c('OrIcon', {
|
|
273
273
|
attrs: {
|
|
274
|
-
"icon": _vm.limitMenu && _vm.limitMenu.
|
|
274
|
+
"icon": _vm.limitMenu && _vm.limitMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
275
275
|
}
|
|
276
276
|
})], 1), _vm._v(" "), _c('OrMenu', {
|
|
277
277
|
ref: "limitMenu",
|
|
@@ -1,9 +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-30ac6da1.js';
|
|
5
6
|
import { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
6
|
-
import { _ as __vue_component__$1 } from './OrBottomSheet-
|
|
7
|
+
import { _ as __vue_component__$1 } from './OrBottomSheet-f858cabb.js';
|
|
7
8
|
import { _ as __vue_component__$2 } from './OrTeleport.vue2-424c7f33.js';
|
|
8
9
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
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: ['update:state', '
|
|
113
|
-
expose: ['root', 'state', '
|
|
117
|
+
emits: ['update:state', 'open', 'close'],
|
|
118
|
+
expose: ['root', 'state', 'isFlipped', 'isHidden', 'open', 'close', 'toggle'],
|
|
114
119
|
setup(props, context) {
|
|
115
120
|
const {
|
|
116
121
|
isDesktop,
|
|
@@ -127,89 +132,14 @@ 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
|
-
|
|
135
|
+
const {
|
|
136
|
+
state,
|
|
137
|
+
open,
|
|
138
|
+
close,
|
|
139
|
+
toggle
|
|
140
|
+
} = usePopoverState(toRef(props, 'isOpen'), context);
|
|
134
141
|
const isFlipped = ref(false);
|
|
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
|
-
}
|
|
205
|
-
// Handlers
|
|
206
|
-
function handleBottomSheetState(bottomSheetState) {
|
|
207
|
-
if (bottomSheetState === 'closed') {
|
|
208
|
-
state.value = 'closed';
|
|
209
|
-
} else {
|
|
210
|
-
state.value = 'open';
|
|
211
|
-
}
|
|
212
|
-
}
|
|
142
|
+
const isHidden = ref(false);
|
|
213
143
|
// Effects
|
|
214
144
|
watchPostEffect(() => {
|
|
215
145
|
const rootElement = unref(root);
|
|
@@ -220,14 +150,14 @@ var script = defineComponent({
|
|
|
220
150
|
} = props;
|
|
221
151
|
if (trigger) {
|
|
222
152
|
autoUpdate(trigger, rootElement, async () => {
|
|
223
|
-
var _a;
|
|
153
|
+
var _a, _b;
|
|
224
154
|
const {
|
|
225
155
|
x,
|
|
226
156
|
y,
|
|
227
157
|
middlewareData
|
|
228
158
|
} = await computePosition(trigger, rootElement, {
|
|
229
159
|
placement,
|
|
230
|
-
middleware: [
|
|
160
|
+
middleware: [shift(), flip(), hide()]
|
|
231
161
|
});
|
|
232
162
|
Object.assign(rootElement.style, {
|
|
233
163
|
left: `${x}px`,
|
|
@@ -236,10 +166,14 @@ var script = defineComponent({
|
|
|
236
166
|
width: props.fullWidth ? `${trigger.offsetWidth}px` : ''
|
|
237
167
|
});
|
|
238
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);
|
|
239
170
|
});
|
|
240
171
|
}
|
|
241
172
|
}
|
|
242
173
|
});
|
|
174
|
+
// #region Elevation
|
|
175
|
+
useElevation(root, state);
|
|
176
|
+
// #endregion
|
|
243
177
|
// #region Click Outside
|
|
244
178
|
const trigger = toRef(props, 'trigger');
|
|
245
179
|
onClickOutside(root, event => {
|
|
@@ -250,31 +184,26 @@ var script = defineComponent({
|
|
|
250
184
|
} = _ref;
|
|
251
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'));
|
|
252
186
|
})) {
|
|
253
|
-
close(
|
|
187
|
+
close();
|
|
254
188
|
}
|
|
255
189
|
}, {
|
|
256
190
|
ignore: [trigger]
|
|
257
191
|
});
|
|
258
192
|
// #endregion
|
|
259
|
-
// #region Elevation
|
|
260
|
-
useElevation(root, state);
|
|
261
|
-
// #endregion
|
|
262
193
|
return {
|
|
263
194
|
isDesktop,
|
|
264
195
|
isMobile,
|
|
265
196
|
root,
|
|
266
197
|
bottomSheet,
|
|
267
198
|
bottomSheetRoot,
|
|
268
|
-
handleBottomSheetState,
|
|
269
199
|
rootStyles,
|
|
270
200
|
bodyStyles,
|
|
271
201
|
state,
|
|
272
|
-
isOpen,
|
|
273
|
-
isFullscreen,
|
|
274
|
-
isClosed,
|
|
275
202
|
isFlipped,
|
|
203
|
+
isHidden,
|
|
276
204
|
open,
|
|
277
|
-
close
|
|
205
|
+
close,
|
|
206
|
+
toggle
|
|
278
207
|
};
|
|
279
208
|
}
|
|
280
209
|
});
|
|
@@ -291,8 +220,8 @@ var __vue_render__ = function () {
|
|
|
291
220
|
directives: [{
|
|
292
221
|
name: "show",
|
|
293
222
|
rawName: "v-show",
|
|
294
|
-
value: _vm.
|
|
295
|
-
expression: "
|
|
223
|
+
value: _vm.state === 'open',
|
|
224
|
+
expression: "state === 'open'"
|
|
296
225
|
}],
|
|
297
226
|
class: ['contents']
|
|
298
227
|
}, [_vm.isDesktop && _vm.variant === 'auto' || _vm.variant === 'popover' ? [_c('div', _vm._b({
|
|
@@ -302,12 +231,12 @@ var __vue_render__ = function () {
|
|
|
302
231
|
class: _vm.bodyStyles
|
|
303
232
|
}, [_vm._t("default")], 2)]], 2)] : _vm._e(), _vm._v(" "), _vm.isMobile && _vm.variant === 'auto' || _vm.variant === 'bottom-sheet' ? [_c('OrBottomSheet', _vm._b({
|
|
304
233
|
ref: "bottomSheet",
|
|
234
|
+
attrs: {
|
|
235
|
+
"is-open": _vm.state === 'open'
|
|
236
|
+
},
|
|
305
237
|
on: {
|
|
306
238
|
"update:state": function ($event) {
|
|
307
239
|
_vm.state = $event;
|
|
308
|
-
},
|
|
309
|
-
"update:state:closed-automatically": function ($event) {
|
|
310
|
-
return _vm.$emit('update:state:closed-automatically');
|
|
311
240
|
}
|
|
312
241
|
}
|
|
313
242
|
}, 'OrBottomSheet', _vm.bottomSheetProps, false), [_vm._t("default")], 2)] : _vm._e()], 2)]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { debouncedWatch } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
3
|
-
import { _ as __vue_component__$1 } from './OrInput-
|
|
3
|
+
import { _ as __vue_component__$1 } from './OrInput-ad560a10.js';
|
|
4
4
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
6
|
|
|
@@ -9,11 +9,11 @@ import { _ as __vue_component__$4 } from './OrHint-aa221198.js';
|
|
|
9
9
|
import { _ as __vue_component__$5 } from './OrIcon-d35a84d8.js';
|
|
10
10
|
import { _ as __vue_component__$7 } from './OrInputBox-d36b1323.js';
|
|
11
11
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
12
|
-
import { _ as __vue_component__$6 } from './OrInput-
|
|
12
|
+
import { _ as __vue_component__$6 } from './OrInput-ad560a10.js';
|
|
13
13
|
import { _ as __vue_component__$8 } from './OrLabel-63380256.js';
|
|
14
14
|
import { _ as __vue_component__$9 } from './OrMenuItem-6f9b8a93.js';
|
|
15
|
-
import { _ as __vue_component__$a } from './OrPopover-
|
|
16
|
-
import { _ as __vue_component__$b } from './OrTag-
|
|
15
|
+
import { _ as __vue_component__$a } from './OrPopover-8f2fbc1b.js';
|
|
16
|
+
import { _ as __vue_component__$b } from './OrTag-3612d8c1.js';
|
|
17
17
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
18
18
|
|
|
19
19
|
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, _ as __vue_component__$1 } from './OrSidebarCollapseButton-
|
|
3
|
+
import { O as OrSidebarPlacement, _ as __vue_component__$1 } from './OrSidebarCollapseButton-fcef54c9.js';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
5
|
|
|
6
6
|
const SidebarRoot = [
|
package/dist/esm/v2/{OrSidebarCollapseButton-2c81d465.js → OrSidebarCollapseButton-fcef54c9.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__$1 } from './OrIconButton-
|
|
2
|
+
import { _ as __vue_component__$1 } from './OrIconButton-1f0ff5dc.js';
|
|
3
3
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
4
4
|
|
|
5
5
|
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 { _ as __vue_component__$1 } from './OrIcon-d35a84d8.js';
|
|
4
4
|
import { _ as __vue_component__$3 } from './OrMenuItem-6f9b8a93.js';
|
|
5
|
-
import { _ as __vue_component__$2 } from './OrMenu-
|
|
6
|
-
import './OrPopover-
|
|
5
|
+
import { _ as __vue_component__$2 } from './OrMenu-f01d0df1.js';
|
|
6
|
+
import './OrPopover-8f2fbc1b.js';
|
|
7
7
|
import { _ as __vue_component__$4 } from './OrTab-5b198746.js';
|
|
8
8
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watchPostEffect, unref } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__$1 } from './OrIconButton-
|
|
2
|
+
import { _ as __vue_component__$1 } from './OrIconButton-1f0ff5dc.js';
|
|
3
3
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
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 { _ as __vue_component__$1 } from './OrButton-9622e713.js';
|
|
5
|
-
import { _ as __vue_component__$2 } from './OrPopover-
|
|
6
|
-
import { _ as __vue_component__$3 } from './OrTag-
|
|
5
|
+
import { _ as __vue_component__$2 } from './OrPopover-8f2fbc1b.js';
|
|
6
|
+
import { _ as __vue_component__$3 } from './OrTag-3612d8c1.js';
|
|
7
7
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
8
8
|
|
|
9
9
|
const Tags = [
|
|
@@ -4,12 +4,12 @@ import { _ as __vue_component__$1, a as __vue_component__$2, b as __vue_componen
|
|
|
4
4
|
import { _ as __vue_component__$4, a as __vue_component__$5 } from './OrDateTimePickerTimeSelect-aed7d33d.js';
|
|
5
5
|
import { _ as __vue_component__$6 } from './OrError-4ffc1c39.js';
|
|
6
6
|
import { _ as __vue_component__$7 } from './OrHint-aa221198.js';
|
|
7
|
-
import { _ as __vue_component__$9 } from './OrIconButton-
|
|
7
|
+
import { _ as __vue_component__$9 } from './OrIconButton-1f0ff5dc.js';
|
|
8
8
|
import { _ as __vue_component__$8 } from './OrIcon-d35a84d8.js';
|
|
9
9
|
import { _ as __vue_component__$a } from './OrInputBox-d36b1323.js';
|
|
10
10
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-fe250f7a.js';
|
|
11
11
|
import { _ as __vue_component__$b } from './OrLabel-63380256.js';
|
|
12
|
-
import { _ as __vue_component__$c } from './OrPopover-
|
|
12
|
+
import { _ as __vue_component__$c } from './OrPopover-8f2fbc1b.js';
|
|
13
13
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
14
14
|
|
|
15
15
|
const TimePicker = [
|
|
@@ -256,7 +256,7 @@ var __vue_render__ = function () {
|
|
|
256
256
|
"placement": 'bottom-start'
|
|
257
257
|
},
|
|
258
258
|
on: {
|
|
259
|
-
"
|
|
259
|
+
"close": function ($event) {
|
|
260
260
|
return _vm.reset();
|
|
261
261
|
}
|
|
262
262
|
}
|