@onereach/ui-components 4.6.3 → 4.6.4-beta.2800.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 +2 -1
- package/dist/bundled/v2/components/OrCardCollectionV3/index.js +2 -1
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +28 -52
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.vue.d.ts +18 -36
- package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -0
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +3 -2
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +2 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -3
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +2 -1
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +2 -1
- package/dist/bundled/v2/components/OrIconButtonV3/index.js +2 -1
- package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -1
- package/dist/bundled/v2/components/OrInlineInputV3/index.js +2 -1
- package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -1
- package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +2 -1
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -1
- package/dist/bundled/v2/components/OrInputV3/index.js +2 -1
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +21 -48
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.vue.d.ts +13 -16
- package/dist/bundled/v2/components/OrMenuV3/index.js +1 -0
- package/dist/bundled/v2/components/OrModalV3/OrModal.js +220 -65
- package/dist/bundled/v2/components/OrModalV3/OrModal.vue.d.ts +13 -19
- package/dist/bundled/v2/components/OrModalV3/index.js +9 -8
- package/dist/bundled/v2/components/OrModalV3/styles.d.ts +0 -3
- package/dist/bundled/v2/components/OrModalV3/styles.js +1 -16
- package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +2 -1
- package/dist/bundled/v2/components/OrNotificationV3/index.js +2 -1
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -1
- package/dist/bundled/v2/components/OrPaginationV3/index.js +1 -0
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +31 -102
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +19 -12
- package/dist/bundled/v2/components/OrPopoverV3/index.js +1 -0
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -0
- package/dist/bundled/v2/components/OrSearchV3/index.js +1 -0
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -0
- package/dist/bundled/v2/components/OrSelectV3/index.js +1 -0
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -0
- package/dist/bundled/v2/components/OrSidebarV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -0
- package/dist/bundled/v2/components/OrTabsV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTagV3/OrTag.js +2 -1
- package/dist/bundled/v2/components/OrTagV3/index.js +2 -1
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +1 -0
- package/dist/bundled/v2/components/OrTagsV3/index.js +1 -0
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -1
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -0
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -0
- package/dist/bundled/v2/components/OrToastContainerV3/index.js +1 -0
- package/dist/bundled/v2/components/OrToastV3/OrToast.js +2 -1
- package/dist/bundled/v2/components/OrToastV3/index.js +2 -1
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +32 -39
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +20 -17
- package/dist/bundled/v2/components/OrTooltipV3/index.js +2 -1
- package/dist/bundled/v2/components/index.js +2 -1
- package/dist/bundled/v2/hooks/index.d.ts +1 -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 +11 -0
- package/dist/bundled/v2/hooks/usePopoverState.js +42 -0
- package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/bundled/v2/index.js +3 -2
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-a81b2abb.js → OrBottomSheet.vue_vue_type_script_lang-aebedcb2.js} +28 -45
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-f2d222a5.js → OrCardCollection.vue_vue_type_script_lang-d15329fd.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-b1b13331.js → OrConfirm.vue_vue_type_script_lang-84f80066.js} +28 -52
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-31f5d798.js → OrDatePicker.vue_vue_type_script_lang-92222927.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-a0354296.js → OrDateTimePicker.vue_vue_type_script_lang-81f3cb69.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-98b935cb.js → OrDateTimePickerMonthSelect-354e1af8.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-5bba9f3f.js → OrIconButton.vue_vue_type_script_lang-fe97e57a.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3c6b0958.js → OrInlineInput.vue_vue_type_script_lang-3131ae11.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-da59cd8e.js → OrInlineTextarea.vue_vue_type_script_lang-db28519e.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-d08b3796.js → OrInput.vue_vue_type_script_lang-5f74dd08.js} +1 -1
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-1f45bf44.js +66 -0
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-31c15ba1.js +160 -0
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-463e1a82.js → OrNotification.vue_vue_type_script_lang-89bbc41f.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-bdc8d9fb.js → OrPagination.vue_vue_type_script_lang-1835d432.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-7b1b2488.js → OrPopover.vue_vue_type_script_lang-c75dbd63.js} +27 -98
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-940d8e1f.js → OrSearch.vue_vue_type_script_lang-142ab019.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-1c77663e.js → OrSelect.vue_vue_type_script_lang-0ab50e13.js} +3 -3
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-780eaa84.js → OrSidebar.vue_vue_type_script_lang-23c6a11f.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-9d4221f1.js → OrTabs.vue_vue_type_script_lang-255f33d2.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-09948d1f.js → OrTag.vue_vue_type_script_lang-f4321103.js} +1 -1
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-71fb4f1d.js → OrTags.vue_vue_type_script_lang-4684a9c5.js} +2 -2
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-21be27c6.js → OrTimePicker.vue_vue_type_script_lang-e9684fe9.js} +2 -2
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-f3ccffce.js +56 -0
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +7 -6
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +16 -10
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +3 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +12 -11
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +11 -10
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +11 -10
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +18 -35
- package/dist/bundled/v3/components/OrConfirmV3/index.js +8 -7
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +11 -10
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +9 -8
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +12 -11
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +9 -8
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +8 -7
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +7 -6
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +9 -8
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +8 -7
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +9 -8
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +8 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +9 -8
- package/dist/bundled/v3/components/OrInputV3/index.js +8 -7
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +9 -8
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +13 -5
- package/dist/bundled/v3/components/OrMenuV3/index.js +5 -4
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +36 -33
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +14 -16
- package/dist/bundled/v3/components/OrModalV3/index.js +15 -14
- package/dist/bundled/v3/components/OrModalV3/styles.d.ts +0 -3
- package/dist/bundled/v3/components/OrModalV3/styles.js +1 -16
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +9 -8
- package/dist/bundled/v3/components/OrNotificationV3/index.js +8 -7
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +8 -7
- package/dist/bundled/v3/components/OrPaginationV3/index.js +6 -5
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +8 -7
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +16 -11
- package/dist/bundled/v3/components/OrPopoverV3/index.js +4 -3
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +9 -8
- package/dist/bundled/v3/components/OrSearchV3/index.js +8 -7
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +10 -9
- package/dist/bundled/v3/components/OrSelectV3/index.js +9 -8
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +8 -7
- package/dist/bundled/v3/components/OrSidebarV3/index.js +7 -6
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +7 -6
- package/dist/bundled/v3/components/OrTabsV3/index.js +6 -5
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +9 -8
- package/dist/bundled/v3/components/OrTagV3/index.js +8 -7
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +9 -8
- package/dist/bundled/v3/components/OrTagsV3/index.js +8 -7
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +9 -8
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +7 -6
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +8 -7
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +7 -6
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +7 -6
- package/dist/bundled/v3/components/OrToastV3/index.js +8 -7
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +13 -10
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +17 -6
- package/dist/bundled/v3/components/OrTooltipV3/index.js +6 -5
- package/dist/bundled/v3/components/index.js +26 -25
- package/dist/bundled/v3/hooks/index.d.ts +1 -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 +11 -0
- package/dist/bundled/v3/hooks/usePopoverState.js +42 -0
- package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +1 -2
- package/dist/bundled/v3/index.js +27 -26
- package/dist/esm/v2/{OrBottomSheet-ffa029ca.js → OrBottomSheet-0592ccb2.js} +31 -48
- package/dist/esm/v2/{OrCardCollection-02970752.js → OrCardCollection-2b9bc050.js} +4 -4
- package/dist/esm/v2/{OrConfirm-308e93bc.js → OrConfirm-3f19c23b.js} +30 -54
- package/dist/esm/v2/{OrDatePicker-a79b777e.js → OrDatePicker-e991e7b2.js} +4 -4
- package/dist/esm/v2/{OrDateTimePicker-6fe4969d.js → OrDateTimePicker-7bbd81d1.js} +5 -5
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-355ea67d.js → OrDateTimePickerMonthSelect-d75a849c.js} +3 -3
- package/dist/esm/v2/{OrIconButton-ee747c71.js → OrIconButton-75972865.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-a131caf4.js → OrInlineInput-cf17dbb2.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-7cc45396.js → OrInlineTextarea-2b0e2f39.js} +1 -1
- package/dist/esm/v2/{OrInput-3eeca714.js → OrInput-1a2b8ad9.js} +1 -1
- package/dist/esm/v2/{OrMenu-8b902c22.js → OrMenu-a35caf3b.js} +23 -49
- package/dist/esm/v2/OrModal-4aaae6bc.js +312 -0
- package/dist/esm/v2/{OrNotification-16e6d4ff.js → OrNotification-a773f1df.js} +1 -1
- package/dist/esm/v2/{OrOverlay-4c8c11e2.js → OrOverlay-f791976c.js} +1 -1
- package/dist/esm/v2/{OrPagination-36583054.js → OrPagination-3513165d.js} +3 -3
- package/dist/esm/v2/{OrPopover-80459663.js → OrPopover-a8950b85.js} +33 -104
- package/dist/esm/v2/{OrSearch-fa824e87.js → OrSearch-19c157b3.js} +1 -1
- package/dist/esm/v2/{OrSelect-d5fecc34.js → OrSelect-991b8be3.js} +3 -3
- package/dist/esm/v2/{OrSidebar-638b1d60.js → OrSidebar-bfbb8b0a.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-2c81d465.js → OrSidebarCollapseButton-a98037d6.js} +1 -1
- package/dist/esm/v2/{OrTabs-653258a2.js → OrTabs-abf290af.js} +2 -2
- package/dist/esm/v2/{OrTag-6256623c.js → OrTag-aa46cecd.js} +1 -1
- package/dist/esm/v2/{OrTags-db2608dc.js → OrTags-2a567e79.js} +2 -2
- package/dist/esm/v2/{OrTimePicker-5470d7a0.js → OrTimePicker-766637cb.js} +3 -3
- package/dist/esm/v2/{OrTooltip-5a6e0f64.js → OrTooltip-0dc63c1a.js} +33 -40
- 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 +7 -6
- 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 +11 -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-f30860ee.js} +2 -2
- package/dist/esm/{v3/useElevation-b5a49746.js → v2/useElevation-a50ec347.js} +3 -1
- package/dist/esm/v2/usePopoverState-8a95a300.js +42 -0
- package/dist/esm/v3/{OrBottomSheet-5969a217.js → OrBottomSheet-a39fb331.js} +31 -48
- package/dist/esm/v3/{OrCardCollection-4401de57.js → OrCardCollection-3d652a34.js} +4 -4
- package/dist/esm/v3/{OrConfirm-671148e8.js → OrConfirm-cb0b2b78.js} +30 -54
- package/dist/esm/v3/{OrDatePicker-7cb1da75.js → OrDatePicker-6a44ad41.js} +4 -4
- package/dist/esm/v3/{OrDateTimePicker-3cf882f6.js → OrDateTimePicker-2cbcf8c7.js} +5 -5
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-bd26a294.js → OrDateTimePickerMonthSelect-2f61d92f.js} +3 -3
- package/dist/esm/v3/{OrIconButton-b7217ea5.js → OrIconButton-e34a20eb.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-dcb28ea2.js → OrInlineInput-ad0d4264.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-88eac437.js → OrInlineTextarea-b5ec488d.js} +1 -1
- package/dist/esm/v3/{OrInput-238fd1c0.js → OrInput-a9aeef6e.js} +1 -1
- package/dist/esm/v3/{OrMenu-8a53ccf9.js → OrMenu-f590d761.js} +24 -50
- package/dist/esm/v3/OrModal-9dc09e95.js +226 -0
- package/dist/esm/v3/{OrNotification-09216b8b.js → OrNotification-69031471.js} +1 -1
- package/dist/esm/v3/{OrOverlay-bf72f582.js → OrOverlay-28952099.js} +1 -1
- package/dist/esm/v3/{OrPagination-c6046af4.js → OrPagination-f3be120f.js} +3 -3
- package/dist/esm/v3/{OrPopover-15c2968f.js → OrPopover-ebd57053.js} +31 -102
- package/dist/esm/v3/{OrSearch-cd0f6a88.js → OrSearch-5576cf14.js} +1 -1
- package/dist/esm/v3/{OrSelect-ce7f58cf.js → OrSelect-0b3ebce9.js} +3 -3
- package/dist/esm/v3/{OrSidebar-1579ad80.js → OrSidebar-303ef558.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-2668946c.js → OrSidebarCollapseButton-d7f004df.js} +1 -1
- package/dist/esm/v3/{OrTabs-a2d87627.js → OrTabs-b6c8077c.js} +2 -2
- package/dist/esm/v3/{OrTag-8605e9e6.js → OrTag-4ac45254.js} +1 -1
- package/dist/esm/v3/{OrTags-3724ff59.js → OrTags-de9f065e.js} +2 -2
- package/dist/esm/v3/{OrTimePicker-a5921c6f.js → OrTimePicker-0fe72767.js} +3 -3
- package/dist/esm/v3/{OrTooltip-3d5fcaf9.js → OrTooltip-edb28095.js} +28 -41
- 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 +7 -6
- 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 +11 -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-60f3dd35.js} +2 -2
- package/dist/esm/{v2/useElevation-b5a49746.js → v3/useElevation-a50ec347.js} +3 -1
- package/dist/esm/v3/usePopoverState-8a95a300.js +42 -0
- package/package.json +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 +24 -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 +66 -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-30f79990.js → OrDateTimePickerMonthSelect-9a8e332c.js} +0 -0
- /package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-86c7b93a.js → OrOverlay.vue_vue_type_script_lang-29ff6fd8.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-485ef171.js → OrToastContainer.vue_vue_type_script_lang-461fb6d1.js} +0 -0
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { useDebounceFn, useElementHover } from '@vueuse/core';
|
|
2
|
-
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
3
|
-
import { TooltipRoot, TooltipBody, TooltipBodyPlacements } from './components/OrTooltipV3/styles.js';
|
|
4
|
-
import './components/OrPopoverV3/OrPopover.js';
|
|
5
|
-
import { s as script$1 } from './OrPopover.vue_vue_type_script_lang-7b1b2488.js';
|
|
6
|
-
import { PopoverPlacement } from './components/OrPopoverV3/props.js';
|
|
7
|
-
|
|
8
|
-
var script = defineComponent({
|
|
9
|
-
name: 'OrTooltip',
|
|
10
|
-
components: {
|
|
11
|
-
OrPopover: script$1
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
text: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: undefined
|
|
17
|
-
},
|
|
18
|
-
placement: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: PopoverPlacement.Bottom
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
emits: ['update:state'],
|
|
24
|
-
expose: ['root', 'open', 'close'],
|
|
25
|
-
setup(props) {
|
|
26
|
-
// Refs
|
|
27
|
-
const root = ref();
|
|
28
|
-
const popover = ref();
|
|
29
|
-
const popoverRoot = computed(() => {
|
|
30
|
-
var _a;
|
|
31
|
-
return (_a = popover.value) === null || _a === void 0 ? void 0 : _a.root;
|
|
32
|
-
});
|
|
33
|
-
// Styles
|
|
34
|
-
const rootStyles = computed(() => ['or-tooltip-v3', ...TooltipRoot]);
|
|
35
|
-
const bodyStyles = computed(() => [...TooltipBody, ...TooltipBodyPlacements[props.placement]]);
|
|
36
|
-
// Methods
|
|
37
|
-
const open = useDebounceFn(() => {
|
|
38
|
-
if (hover.value) {
|
|
39
|
-
const popoverInstance = popover.value;
|
|
40
|
-
if (popoverInstance) {
|
|
41
|
-
popoverInstance.open();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}, 250);
|
|
45
|
-
const close = useDebounceFn(() => {
|
|
46
|
-
if (!hover.value) {
|
|
47
|
-
const popoverInstance = popover.value;
|
|
48
|
-
if (popoverInstance) {
|
|
49
|
-
popoverInstance.close();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}, 250);
|
|
53
|
-
// Effects
|
|
54
|
-
// #region Hover
|
|
55
|
-
const hover = useElementHover(root);
|
|
56
|
-
watch(hover, value => {
|
|
57
|
-
value ? open() : close();
|
|
58
|
-
});
|
|
59
|
-
// #endregion
|
|
60
|
-
return {
|
|
61
|
-
root,
|
|
62
|
-
popover,
|
|
63
|
-
popoverRoot,
|
|
64
|
-
rootStyles,
|
|
65
|
-
bodyStyles,
|
|
66
|
-
open,
|
|
67
|
-
close
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
export { script as s };
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__$2 } from './OrIconButton-ee747c71.js';
|
|
3
|
-
import { _ as __vue_component__$1 } from './OrOverlay-4c8c11e2.js';
|
|
4
|
-
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
|
-
|
|
6
|
-
var ModalSize;
|
|
7
|
-
(function (ModalSize) {
|
|
8
|
-
ModalSize["L"] = "l";
|
|
9
|
-
ModalSize["M"] = "m";
|
|
10
|
-
ModalSize["S"] = "s";
|
|
11
|
-
})(ModalSize || (ModalSize = {}));
|
|
12
|
-
|
|
13
|
-
const ModalRoot = [
|
|
14
|
-
// Layout
|
|
15
|
-
'layout-column',
|
|
16
|
-
// Box
|
|
17
|
-
'w-full', 'h-full md:h-auto md:max-h-[min(calc(100%-(2*theme(spacing.3xl))),772px)]',
|
|
18
|
-
// Shape
|
|
19
|
-
'md:rounded-md',
|
|
20
|
-
// Spacing
|
|
21
|
-
'py-md md:py-lg', 'gap-md md:gap-lg',
|
|
22
|
-
// Typography
|
|
23
|
-
'typography-body-2-regular',
|
|
24
|
-
// Theme
|
|
25
|
-
'theme-background-default', 'dark:theme-background-default-dark', 'theme-foreground-default', 'dark:theme-foreground-default-dark',
|
|
26
|
-
// Elevation
|
|
27
|
-
'shadow-modal', 'dark:shadow-modal-dark'];
|
|
28
|
-
const ModalRootSizes = {
|
|
29
|
-
'l': [
|
|
30
|
-
// Box
|
|
31
|
-
'md:w-[1050px]'],
|
|
32
|
-
'm': [
|
|
33
|
-
// Box
|
|
34
|
-
'md:w-[700px]'],
|
|
35
|
-
's': [
|
|
36
|
-
// Box
|
|
37
|
-
'md:w-[480px]']
|
|
38
|
-
};
|
|
39
|
-
const ModalHeader = [
|
|
40
|
-
// Layout
|
|
41
|
-
'layout-row',
|
|
42
|
-
// Spacing
|
|
43
|
-
'px-md md:px-lg',
|
|
44
|
-
// Typography
|
|
45
|
-
'typography-headline-2'];
|
|
46
|
-
const ModalContent = [
|
|
47
|
-
// Box
|
|
48
|
-
'grow', 'overflow-auto',
|
|
49
|
-
// Spacing
|
|
50
|
-
'px-md md:px-lg'];
|
|
51
|
-
const ModalFooter = [
|
|
52
|
-
// Spacing
|
|
53
|
-
'px-md md:px-lg'];
|
|
54
|
-
|
|
55
|
-
var script = defineComponent({
|
|
56
|
-
name: 'OrModal',
|
|
57
|
-
components: {
|
|
58
|
-
OrOverlay: __vue_component__$1,
|
|
59
|
-
OrIconButton: __vue_component__$2
|
|
60
|
-
},
|
|
61
|
-
inheritAttrs: false,
|
|
62
|
-
props: {
|
|
63
|
-
size: {
|
|
64
|
-
type: String,
|
|
65
|
-
default: ModalSize.M
|
|
66
|
-
},
|
|
67
|
-
isOpen: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: false
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
emits: ['open', 'close'],
|
|
73
|
-
expose: ['root', 'isActive', 'open', 'close'],
|
|
74
|
-
setup(props, context) {
|
|
75
|
-
// Refs
|
|
76
|
-
const root = ref();
|
|
77
|
-
// Styles
|
|
78
|
-
const rootStyles = computed(() => ['or-modal-v3', ...ModalRoot, ...ModalRootSizes[props.size]]);
|
|
79
|
-
const headerStyles = computed(() => [...ModalHeader]);
|
|
80
|
-
const contentStyles = computed(() => [...ModalContent]);
|
|
81
|
-
const footerStyles = computed(() => [...ModalFooter]);
|
|
82
|
-
// State
|
|
83
|
-
const isActive = ref(false);
|
|
84
|
-
// Events
|
|
85
|
-
watch(isActive, value => {
|
|
86
|
-
context.emit(value ? 'open' : 'close');
|
|
87
|
-
});
|
|
88
|
-
watch(() => props.isOpen, newIsOpen => {
|
|
89
|
-
if (newIsOpen) {
|
|
90
|
-
open();
|
|
91
|
-
} else {
|
|
92
|
-
close();
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
immediate: true
|
|
96
|
-
});
|
|
97
|
-
// Methods
|
|
98
|
-
function open() {
|
|
99
|
-
isActive.value = true;
|
|
100
|
-
}
|
|
101
|
-
function close() {
|
|
102
|
-
isActive.value = false;
|
|
103
|
-
}
|
|
104
|
-
return {
|
|
105
|
-
root,
|
|
106
|
-
rootStyles,
|
|
107
|
-
headerStyles,
|
|
108
|
-
contentStyles,
|
|
109
|
-
footerStyles,
|
|
110
|
-
isActive,
|
|
111
|
-
open,
|
|
112
|
-
close
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
/* script */
|
|
118
|
-
const __vue_script__ = script;
|
|
119
|
-
|
|
120
|
-
/* template */
|
|
121
|
-
var __vue_render__ = function () {
|
|
122
|
-
var _vm = this;
|
|
123
|
-
var _h = _vm.$createElement;
|
|
124
|
-
var _c = _vm._self._c || _h;
|
|
125
|
-
return _vm.isActive ? _c('OrOverlay', {
|
|
126
|
-
attrs: {
|
|
127
|
-
"fullscreen": true
|
|
128
|
-
}
|
|
129
|
-
}, [_c('div', _vm._b({
|
|
130
|
-
ref: "root",
|
|
131
|
-
class: _vm.rootStyles
|
|
132
|
-
}, 'div', _vm.$attrs, false), [_c('div', {
|
|
133
|
-
class: _vm.headerStyles
|
|
134
|
-
}, [_c('div', {
|
|
135
|
-
class: ['grow']
|
|
136
|
-
}, [_vm._t("header")], 2), _vm._v(" "), _c('OrIconButton', {
|
|
137
|
-
attrs: {
|
|
138
|
-
"icon": 'close',
|
|
139
|
-
"size": 'l'
|
|
140
|
-
},
|
|
141
|
-
on: {
|
|
142
|
-
"click": function ($event) {
|
|
143
|
-
$event.stopPropagation();
|
|
144
|
-
return _vm.close.apply(null, arguments);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
})], 1), _vm._v(" "), _c('div', {
|
|
148
|
-
class: _vm.contentStyles
|
|
149
|
-
}, [_vm._t("default")], 2), _vm._v(" "), _c('div', {
|
|
150
|
-
class: _vm.footerStyles
|
|
151
|
-
}, [_vm._t("footer")], 2)])]) : _vm._e();
|
|
152
|
-
};
|
|
153
|
-
var __vue_staticRenderFns__ = [];
|
|
154
|
-
|
|
155
|
-
/* style */
|
|
156
|
-
const __vue_inject_styles__ = undefined;
|
|
157
|
-
/* scoped */
|
|
158
|
-
const __vue_scope_id__ = undefined;
|
|
159
|
-
/* module identifier */
|
|
160
|
-
const __vue_module_identifier__ = undefined;
|
|
161
|
-
/* functional template */
|
|
162
|
-
const __vue_is_functional_template__ = false;
|
|
163
|
-
/* style inject */
|
|
164
|
-
|
|
165
|
-
/* style inject SSR */
|
|
166
|
-
|
|
167
|
-
/* style inject shadow dom */
|
|
168
|
-
|
|
169
|
-
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
170
|
-
render: __vue_render__,
|
|
171
|
-
staticRenderFns: __vue_staticRenderFns__
|
|
172
|
-
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
173
|
-
|
|
174
|
-
export { ModalSize as M, __vue_component__ as _ };
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
-
import { s as script$2 } from './OrIconButton-b7217ea5.js';
|
|
3
|
-
import { s as script$1 } from './OrOverlay-bf72f582.js';
|
|
4
|
-
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, normalizeClass, renderSlot, createVNode, withModifiers, createCommentVNode } from 'vue';
|
|
5
|
-
|
|
6
|
-
var ModalSize;
|
|
7
|
-
(function (ModalSize) {
|
|
8
|
-
ModalSize["L"] = "l";
|
|
9
|
-
ModalSize["M"] = "m";
|
|
10
|
-
ModalSize["S"] = "s";
|
|
11
|
-
})(ModalSize || (ModalSize = {}));
|
|
12
|
-
|
|
13
|
-
const ModalRoot = [
|
|
14
|
-
// Layout
|
|
15
|
-
'layout-column',
|
|
16
|
-
// Box
|
|
17
|
-
'w-full', 'h-full md:h-auto md:max-h-[min(calc(100%-(2*theme(spacing.3xl))),772px)]',
|
|
18
|
-
// Shape
|
|
19
|
-
'md:rounded-md',
|
|
20
|
-
// Spacing
|
|
21
|
-
'py-md md:py-lg', 'gap-md md:gap-lg',
|
|
22
|
-
// Typography
|
|
23
|
-
'typography-body-2-regular',
|
|
24
|
-
// Theme
|
|
25
|
-
'theme-background-default', 'dark:theme-background-default-dark', 'theme-foreground-default', 'dark:theme-foreground-default-dark',
|
|
26
|
-
// Elevation
|
|
27
|
-
'shadow-modal', 'dark:shadow-modal-dark'];
|
|
28
|
-
const ModalRootSizes = {
|
|
29
|
-
'l': [
|
|
30
|
-
// Box
|
|
31
|
-
'md:w-[1050px]'],
|
|
32
|
-
'm': [
|
|
33
|
-
// Box
|
|
34
|
-
'md:w-[700px]'],
|
|
35
|
-
's': [
|
|
36
|
-
// Box
|
|
37
|
-
'md:w-[480px]']
|
|
38
|
-
};
|
|
39
|
-
const ModalHeader = [
|
|
40
|
-
// Layout
|
|
41
|
-
'layout-row',
|
|
42
|
-
// Spacing
|
|
43
|
-
'px-md md:px-lg',
|
|
44
|
-
// Typography
|
|
45
|
-
'typography-headline-2'];
|
|
46
|
-
const ModalContent = [
|
|
47
|
-
// Box
|
|
48
|
-
'grow', 'overflow-auto',
|
|
49
|
-
// Spacing
|
|
50
|
-
'px-md md:px-lg'];
|
|
51
|
-
const ModalFooter = [
|
|
52
|
-
// Spacing
|
|
53
|
-
'px-md md:px-lg'];
|
|
54
|
-
|
|
55
|
-
var script = defineComponent({
|
|
56
|
-
name: 'OrModal',
|
|
57
|
-
components: {
|
|
58
|
-
OrOverlay: script$1,
|
|
59
|
-
OrIconButton: script$2
|
|
60
|
-
},
|
|
61
|
-
inheritAttrs: false,
|
|
62
|
-
props: {
|
|
63
|
-
size: {
|
|
64
|
-
type: String,
|
|
65
|
-
default: ModalSize.M
|
|
66
|
-
},
|
|
67
|
-
isOpen: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: false
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
emits: ['open', 'close'],
|
|
73
|
-
expose: ['root', 'isActive', 'open', 'close'],
|
|
74
|
-
setup(props, context) {
|
|
75
|
-
// Refs
|
|
76
|
-
const root = ref();
|
|
77
|
-
// Styles
|
|
78
|
-
const rootStyles = computed(() => ['or-modal-v3', ...ModalRoot, ...ModalRootSizes[props.size]]);
|
|
79
|
-
const headerStyles = computed(() => [...ModalHeader]);
|
|
80
|
-
const contentStyles = computed(() => [...ModalContent]);
|
|
81
|
-
const footerStyles = computed(() => [...ModalFooter]);
|
|
82
|
-
// State
|
|
83
|
-
const isActive = ref(false);
|
|
84
|
-
// Events
|
|
85
|
-
watch(isActive, value => {
|
|
86
|
-
context.emit(value ? 'open' : 'close');
|
|
87
|
-
});
|
|
88
|
-
watch(() => props.isOpen, newIsOpen => {
|
|
89
|
-
if (newIsOpen) {
|
|
90
|
-
open();
|
|
91
|
-
} else {
|
|
92
|
-
close();
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
immediate: true
|
|
96
|
-
});
|
|
97
|
-
// Methods
|
|
98
|
-
function open() {
|
|
99
|
-
isActive.value = true;
|
|
100
|
-
}
|
|
101
|
-
function close() {
|
|
102
|
-
isActive.value = false;
|
|
103
|
-
}
|
|
104
|
-
return {
|
|
105
|
-
root,
|
|
106
|
-
rootStyles,
|
|
107
|
-
headerStyles,
|
|
108
|
-
contentStyles,
|
|
109
|
-
footerStyles,
|
|
110
|
-
isActive,
|
|
111
|
-
open,
|
|
112
|
-
close
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
const _hoisted_1 = {
|
|
118
|
-
class: /*#__PURE__*/normalizeClass(['grow'])
|
|
119
|
-
};
|
|
120
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
121
|
-
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
122
|
-
const _component_OrOverlay = resolveComponent("OrOverlay");
|
|
123
|
-
return _ctx.isActive ? (openBlock(), createBlock(_component_OrOverlay, {
|
|
124
|
-
key: 0,
|
|
125
|
-
fullscreen: true
|
|
126
|
-
}, {
|
|
127
|
-
default: withCtx(() => [createElementVNode("div", mergeProps({
|
|
128
|
-
ref: "root"
|
|
129
|
-
}, _ctx.$attrs, {
|
|
130
|
-
class: _ctx.rootStyles
|
|
131
|
-
}), [createElementVNode("div", {
|
|
132
|
-
class: normalizeClass(_ctx.headerStyles)
|
|
133
|
-
}, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "header")]), createVNode(_component_OrIconButton, {
|
|
134
|
-
icon: 'close',
|
|
135
|
-
size: 'l',
|
|
136
|
-
onClick: withModifiers(_ctx.close, ["stop"])
|
|
137
|
-
}, null, 8 /* PROPS */, ["onClick"])], 2 /* CLASS */), createElementVNode("div", {
|
|
138
|
-
class: normalizeClass(_ctx.contentStyles)
|
|
139
|
-
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), createElementVNode("div", {
|
|
140
|
-
class: normalizeClass(_ctx.footerStyles)
|
|
141
|
-
}, [renderSlot(_ctx.$slots, "footer")], 2 /* CLASS */)], 16 /* FULL_PROPS */)]),
|
|
142
|
-
|
|
143
|
-
_: 3 /* FORWARDED */
|
|
144
|
-
})) : createCommentVNode("v-if", true);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
script.render = render;
|
|
148
|
-
script.__file = "src/components/or-modal-v3/OrModal.vue";
|
|
149
|
-
|
|
150
|
-
export { ModalSize as M, script as s };
|
|
File without changes
|
|
File without changes
|