@onereach/ui-components 5.3.1 → 5.4.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/OrDatePickerV3/OrDatePicker.js +1 -1
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +8 -7
- package/dist/bundled/v2/components/OrInputV3/OrInput.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +9 -8
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.vue.d.ts +4 -4
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +10 -6
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +6 -4
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +4 -3
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +4 -4
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.d.ts +4 -3
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +48 -6
- package/dist/bundled/v2/hooks/useTheme.js +1 -11
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-60fa2a0f.js → OrCardCollection.vue_vue_type_script_lang-eec6d093.js} +3 -3
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-63fa2835.js → OrCode.vue_vue_type_script_lang-759e3cf0.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-3f59bb60.js → OrConfirm.vue_vue_type_script_lang-3bfc4d91.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-d98b4be9.js → OrDatePicker.vue_vue_type_script_lang-71a5329a.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-1a09191e.js → OrDateTimePicker.vue_vue_type_script_lang-07ac4e1e.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-feeb08a7.js → OrDateTimePickerMonthSelect-cbe99cfb.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-41affeb4.js → OrIconButton.vue_vue_type_script_lang-a925083c.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f069d2ae.js → OrInlineInput.vue_vue_type_script_lang-0f098c4e.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-f7361428.js → OrInlineTextarea.vue_vue_type_script_lang-24bc8daa.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-4a384d2b.js → OrInput.vue_vue_type_script_lang-0dd9ed6d.js} +7 -6
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-fab9378e.js → OrMenu.vue_vue_type_script_lang-92660de8.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-e4251d0c.js → OrModal.vue_vue_type_script_lang-d791857d.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-1c41d8d4.js → OrNotification.vue_vue_type_script_lang-b27f1e45.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-9f8c1d77.js → OrPagination.vue_vue_type_script_lang-25d0f5f0.js} +10 -9
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-d766f723.js → OrPopover.vue_vue_type_script_lang-b2492119.js} +10 -7
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-e462646a.js → OrProgress.vue_vue_type_script_lang-620ae412.js} +4 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-67994b95.js → OrSearch.vue_vue_type_script_lang-d4b92bca.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-21b9f7b7.js → OrSelect.vue_vue_type_script_lang-b03e14ee.js} +4 -4
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-3ed42b69.js → OrSidebar.vue_vue_type_script_lang-a9bd0fcd.js} +1 -1
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-1361404d.js → OrSorting.vue_vue_type_script_lang-e91e36d7.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-0977951f.js → OrTabs.vue_vue_type_script_lang-3d03a802.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-6c4b09f4.js → OrTag.vue_vue_type_script_lang-d66da535.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-3e3c3c87.js → OrTagInput.vue_vue_type_script_lang-1d15e541.js} +2 -2
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-fab140e1.js → OrTags.vue_vue_type_script_lang-b4b0a610.js} +2 -2
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-f7d34fa4.js → OrTimePicker.vue_vue_type_script_lang-3b5c894f.js} +2 -2
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-70a1a846.js → OrTooltip.vue_vue_type_script_lang-c6587e97.js} +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +10 -10
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +9 -9
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +7 -7
- package/dist/bundled/v3/components/OrCodeV3/index.js +6 -6
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +7 -7
- package/dist/bundled/v3/components/OrConfirmV3/index.js +6 -6
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +8 -8
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +7 -7
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +8 -8
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +7 -7
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +5 -5
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +4 -4
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +6 -6
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +5 -5
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +6 -6
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +5 -5
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +6 -6
- package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +1 -1
- package/dist/bundled/v3/components/OrInputV3/index.js +5 -5
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +4 -4
- package/dist/bundled/v3/components/OrMenuV3/index.js +3 -3
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +6 -6
- package/dist/bundled/v3/components/OrModalV3/index.js +5 -5
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +6 -6
- package/dist/bundled/v3/components/OrNotificationV3/index.js +5 -5
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +5 -5
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +2 -2
- package/dist/bundled/v3/components/OrPaginationV3/index.js +4 -4
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +4 -3
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +3 -2
- package/dist/bundled/v3/components/OrPopoverV3/index.js +2 -2
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
- package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +7 -7
- package/dist/bundled/v3/components/OrSearchV3/index.js +6 -6
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +8 -8
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +2 -2
- package/dist/bundled/v3/components/OrSelectV3/index.js +7 -7
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +6 -6
- package/dist/bundled/v3/components/OrSidebarV3/index.js +5 -5
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +5 -5
- package/dist/bundled/v3/components/OrSortingV3/index.js +4 -4
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +5 -5
- package/dist/bundled/v3/components/OrTabsV3/index.js +4 -4
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +8 -8
- package/dist/bundled/v3/components/OrTagInputV3/index.js +7 -7
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +6 -6
- package/dist/bundled/v3/components/OrTagV3/index.js +5 -5
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +7 -7
- package/dist/bundled/v3/components/OrTagsV3/index.js +6 -6
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +6 -6
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +5 -5
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +6 -6
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +5 -5
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +4 -4
- package/dist/bundled/v3/components/OrToastV3/index.js +5 -5
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +4 -4
- package/dist/bundled/v3/components/OrTooltipV3/index.js +3 -3
- package/dist/bundled/v3/components/index.js +28 -28
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +4 -3
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +48 -6
- package/dist/bundled/v3/hooks/useTheme.js +1 -11
- package/dist/bundled/v3/index.js +29 -29
- package/dist/esm/v2/{OrBottomSheet-77c15996.js → OrBottomSheet-73bee95f.js} +2 -1
- package/dist/esm/v2/{OrCardCollection-0d01890a.js → OrCardCollection-9a06caee.js} +3 -3
- package/dist/esm/v2/{OrCheckbox-adae3aee.js → OrCheckbox-dba95415.js} +1 -0
- package/dist/esm/v2/{OrCheckboxGroup-f6423282.js → OrCheckboxGroup-5b015a06.js} +2 -1
- package/dist/esm/v2/{OrCheckboxTree-390466a5.js → OrCheckboxTree-aa833b6d.js} +2 -1
- package/dist/esm/v2/{OrCode-31b30828.js → OrCode-c9568e89.js} +3 -2
- package/dist/esm/v2/{OrConfirm-da464367.js → OrConfirm-5c2c36ab.js} +3 -2
- package/dist/esm/v2/{OrDatePicker-ad131e18.js → OrDatePicker-1763952e.js} +4 -3
- package/dist/esm/v2/{OrDateTimePicker-f304cc65.js → OrDateTimePicker-baf1e29a.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-a9cbd752.js → OrDateTimePicker.vue_rollup-plugin-vue_script-e0d68146.js} +4 -3
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-a981b991.js → OrDateTimePickerPopoverHeader-daa351aa.js} +4 -3
- package/dist/esm/v2/{OrExpansionPanel-85503101.js → OrExpansionPanel-f65b9923.js} +1 -0
- package/dist/esm/v2/{OrIconButton-3c5be67e.js → OrIconButton-70a0ee3d.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-14037c26.js → OrInlineInput-1eabe421.js} +2 -1
- package/dist/esm/v2/{OrInlineTextarea-7bf49aeb.js → OrInlineTextarea-c67116eb.js} +2 -1
- package/dist/esm/v2/{OrInput-e4ab5e11.js → OrInput-68f18628.js} +10 -9
- package/dist/esm/v2/{OrMenu-daca7b25.js → OrMenu-45abc34f.js} +2 -1
- package/dist/esm/v2/{OrModal-ff7e1659.js → OrModal-488aa652.js} +3 -2
- package/dist/esm/v2/{OrNotification-a5a9ffe8.js → OrNotification-b68c3966.js} +1 -1
- package/dist/esm/v2/{OrOverlay-c2064bd6.js → OrOverlay-33d44692.js} +1 -0
- package/dist/esm/v2/{OrPagination-82a4336c.js → OrPagination-3a982443.js} +11 -10
- package/dist/esm/v2/{OrPassword-5a581383.js → OrPassword-30825e93.js} +1 -0
- package/dist/esm/v2/{OrPopover-159ff97b.js → OrPopover-ad7d7d2f.js} +12 -8
- package/dist/esm/v2/{OrProgress-e1d24f4e.js → OrProgress-6b5ee791.js} +5 -4
- package/dist/esm/v2/{OrRadio-2db63c7f.js → OrRadio-740aad2b.js} +1 -0
- package/dist/esm/v2/{OrRadioGroup-87b6da0b.js → OrRadioGroup-d22c9580.js} +2 -1
- package/dist/esm/v2/{OrSearch-2cd05f40.js → OrSearch-87ab9e00.js} +1 -1
- package/dist/esm/v2/{OrSegmentedControl-35b54d3c.js → OrSegmentedControl-d8fb0255.js} +1 -0
- package/dist/esm/v2/{OrSelect-34782e78.js → OrSelect-8c9d9398.js} +7 -7
- package/dist/esm/v2/{OrSidebar-c76d3d4a.js → OrSidebar-3c82bd05.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-ad5db793.js → OrSidebarCollapseButton-fc258b03.js} +1 -1
- package/dist/esm/v2/{OrSorting-d86fdcc4.js → OrSorting-bf1932d2.js} +3 -2
- package/dist/esm/v2/{OrSwitch-076762a4.js → OrSwitch-d0cf0abe.js} +1 -0
- package/dist/esm/v2/{OrTabs-4226a5a6.js → OrTabs-3aaae575.js} +3 -2
- package/dist/esm/v2/{OrTag-44c0e49b.js → OrTag-3289fe81.js} +1 -1
- package/dist/esm/v2/{OrTagInput-860ecada.js → OrTagInput-f4221906.js} +3 -2
- package/dist/esm/v2/{OrTags-c564b344.js → OrTags-4c3ab717.js} +3 -2
- package/dist/esm/v2/{OrTextarea-93c65950.js → OrTextarea-c0635f76.js} +1 -0
- package/dist/esm/v2/{OrTextbox-2eb117b1.js → OrTextbox-602541eb.js} +1 -0
- package/dist/esm/v2/{OrTimePicker-251d567d.js → OrTimePicker-2f7f6b98.js} +5 -4
- package/dist/esm/v2/{OrTooltip-c1f27c63.js → OrTooltip-f1f127a5.js} +2 -1
- package/dist/esm/v2/components/index.js +44 -43
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +3 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +12 -11
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +4 -3
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +3 -2
- package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -1
- package/dist/esm/v2/components/or-code-v3/index.js +9 -8
- 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 +11 -10
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +2 -1
- 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/OrInput.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +8 -7
- package/dist/esm/v2/components/or-menu-v3/index.js +6 -5
- package/dist/esm/v2/components/or-modal-v3/index.js +8 -7
- package/dist/esm/v2/components/or-notification-v3/index.js +8 -7
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -1
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +4 -4
- package/dist/esm/v2/components/or-pagination-v3/index.js +7 -6
- package/dist/esm/v2/components/or-password/index.js +2 -1
- package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +6 -4
- package/dist/esm/v2/components/or-popover-v3/index.js +5 -4
- package/dist/esm/v2/components/or-progress-v3/index.js +3 -2
- package/dist/esm/v2/components/or-radio-group-v3/index.js +3 -2
- package/dist/esm/v2/components/or-radio-v3/index.js +2 -1
- package/dist/esm/v2/components/or-search-v3/index.js +9 -8
- package/dist/esm/v2/components/or-segmented-control-v3/index.js +2 -1
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +4 -4
- package/dist/esm/v2/components/or-select-v3/index.js +12 -11
- 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-sorting-v3/index.js +7 -6
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -1
- package/dist/esm/v2/components/or-tabs-v3/index.js +7 -6
- package/dist/esm/v2/components/or-tag-input-v3/index.js +10 -9
- 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-textarea-v3/index.js +2 -1
- package/dist/esm/v2/components/or-textbox/index.js +2 -1
- package/dist/esm/v2/components/or-time-picker-v3/index.js +11 -10
- 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/index.js +6 -5
- package/dist/esm/v2/hooks/index.js +2 -1
- package/dist/esm/v2/hooks/useResponsive/index.js +2 -1
- package/dist/esm/v2/hooks/useResponsive/useResponsive.d.ts +4 -3
- package/dist/esm/v2/index.js +44 -43
- package/dist/esm/v2/{types-b4a24a66.js → types-84878b4f.js} +2 -1
- package/dist/esm/v2/useResponsive-dfa0f675.js +48 -0
- package/dist/esm/v3/{OrBottomSheet-7d392a68.js → OrBottomSheet-f8d589d8.js} +2 -1
- package/dist/esm/v3/{OrCardCollection-cac6a8d3.js → OrCardCollection-6f556d9a.js} +3 -3
- package/dist/esm/v3/{OrCheckbox-4433eaa6.js → OrCheckbox-7aeb8af1.js} +1 -0
- package/dist/esm/v3/{OrCheckboxGroup-599305cc.js → OrCheckboxGroup-9b8548d0.js} +2 -1
- package/dist/esm/v3/{OrCheckboxTree-9776fb8a.js → OrCheckboxTree-6c54e835.js} +2 -1
- package/dist/esm/v3/{OrCode-0ee0ad81.js → OrCode-5d42a6b9.js} +3 -2
- package/dist/esm/v3/{OrConfirm-bd034042.js → OrConfirm-68150686.js} +3 -2
- package/dist/esm/v3/{OrDatePicker-1548bf25.js → OrDatePicker-c23f1aca.js} +4 -3
- package/dist/esm/v3/{OrDateTimePicker-debf236f.js → OrDateTimePicker-41629d12.js} +4 -3
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-89418017.js → OrDateTimePickerPopoverHeader-f3e5d27d.js} +4 -3
- package/dist/esm/v3/{OrExpansionPanel-cb469c25.js → OrExpansionPanel-4a28f073.js} +1 -0
- package/dist/esm/v3/{OrIconButton-6b7afbb3.js → OrIconButton-fbd39f8d.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-db0dbff9.js → OrInlineInput-7fbdc006.js} +2 -1
- package/dist/esm/v3/{OrInlineTextarea-9b114ab8.js → OrInlineTextarea-b0d6f9f8.js} +2 -1
- package/dist/esm/v3/{OrInput-4aa8ef29.js → OrInput-d28c8c10.js} +8 -7
- package/dist/esm/v3/{OrMenu-adbde52a.js → OrMenu-260be0af.js} +2 -1
- package/dist/esm/v3/{OrModal-f737b870.js → OrModal-6dd278c0.js} +3 -2
- package/dist/esm/v3/{OrNotification-772684d4.js → OrNotification-7f25412d.js} +1 -1
- package/dist/esm/v3/{OrOverlay-b350eee6.js → OrOverlay-63e5b9ad.js} +1 -0
- package/dist/esm/v3/{OrPagination-44bc1131.js → OrPagination-8c428114.js} +11 -10
- package/dist/esm/v3/{OrPassword-af65bd40.js → OrPassword-ed2fc171.js} +1 -0
- package/dist/esm/v3/{OrPopover-4ae174d0.js → OrPopover-5637267a.js} +12 -8
- package/dist/esm/v3/{OrProgress-d28ce3f7.js → OrProgress-b405214e.js} +5 -4
- package/dist/esm/v3/{OrRadio-561b6900.js → OrRadio-dd484558.js} +1 -0
- package/dist/esm/v3/{OrRadioGroup-8124dd62.js → OrRadioGroup-d8044e7c.js} +2 -1
- package/dist/esm/v3/{OrSearch-98342176.js → OrSearch-895067e0.js} +1 -1
- package/dist/esm/v3/{OrSegmentedControl-851db474.js → OrSegmentedControl-3df84379.js} +1 -0
- package/dist/esm/v3/{OrSelect-ba0f0da3.js → OrSelect-1e03eb9d.js} +7 -7
- package/dist/esm/v3/{OrSidebar-8f9b7502.js → OrSidebar-47154aa9.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-79a7c625.js → OrSidebarCollapseButton-890ed7af.js} +1 -1
- package/dist/esm/v3/{OrSorting-536caed2.js → OrSorting-0cf35eea.js} +3 -2
- package/dist/esm/v3/{OrSwitch-58fdc4bf.js → OrSwitch-ed97acd5.js} +1 -0
- package/dist/esm/v3/{OrTabs-a8c41238.js → OrTabs-c053d3d6.js} +3 -2
- package/dist/esm/v3/{OrTag-05c5e0fd.js → OrTag-31fd6ae4.js} +1 -1
- package/dist/esm/v3/{OrTagInput-84bcd9c7.js → OrTagInput-8b97bbf0.js} +3 -2
- package/dist/esm/v3/{OrTags-392ee3f9.js → OrTags-19d496a9.js} +3 -2
- package/dist/esm/v3/{OrTextarea-e86881b0.js → OrTextarea-4852104f.js} +1 -0
- package/dist/esm/v3/{OrTextbox-20157075.js → OrTextbox-262d3f2a.js} +1 -0
- package/dist/esm/v3/{OrTimePicker-c2cdb4ed.js → OrTimePicker-7b86ab50.js} +5 -4
- package/dist/esm/v3/{OrTooltip-e988cab2.js → OrTooltip-9d606b66.js} +2 -1
- package/dist/esm/v3/components/index.js +43 -42
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +3 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +12 -11
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +4 -3
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +3 -2
- package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -1
- package/dist/esm/v3/components/or-code-v3/index.js +9 -8
- 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-expansion-panel-v3/index.js +2 -1
- 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/OrInput.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +8 -7
- package/dist/esm/v3/components/or-menu-v3/index.js +6 -5
- package/dist/esm/v3/components/or-modal-v3/index.js +8 -7
- package/dist/esm/v3/components/or-notification-v3/index.js +8 -7
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -1
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +7 -6
- package/dist/esm/v3/components/or-password/index.js +2 -1
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +3 -2
- package/dist/esm/v3/components/or-popover-v3/index.js +5 -4
- package/dist/esm/v3/components/or-progress-v3/index.js +3 -2
- package/dist/esm/v3/components/or-radio-group-v3/index.js +3 -2
- package/dist/esm/v3/components/or-radio-v3/index.js +2 -1
- package/dist/esm/v3/components/or-search-v3/index.js +9 -8
- package/dist/esm/v3/components/or-segmented-control-v3/index.js +2 -1
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-select-v3/index.js +12 -11
- 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-sorting-v3/index.js +7 -6
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -1
- package/dist/esm/v3/components/or-tabs-v3/index.js +7 -6
- package/dist/esm/v3/components/or-tag-input-v3/index.js +10 -9
- 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-textarea-v3/index.js +2 -1
- package/dist/esm/v3/components/or-textbox/index.js +2 -1
- package/dist/esm/v3/components/or-time-picker-v3/index.js +11 -10
- 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/index.js +6 -5
- package/dist/esm/v3/hooks/index.js +2 -1
- package/dist/esm/v3/hooks/useResponsive/index.js +2 -1
- package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +4 -3
- package/dist/esm/v3/index.js +43 -42
- package/dist/esm/v3/{types-1fd3bbfc.js → types-bd02559e.js} +2 -1
- package/dist/esm/v3/useResponsive-dfa0f675.js +48 -0
- package/package.json +3 -3
- package/src/components/or-input-v3/OrInput.vue +4 -3
- package/src/components/or-pagination-v3/OrPagination.vue +5 -5
- package/src/components/or-popover-v3/OrPopover.vue +8 -4
- package/src/components/or-progress-v3/OrProgress.vue +3 -2
- package/src/hooks/useResponsive/useResponsive.ts +48 -5
- package/src/shims.d.ts +5 -0
- package/dist/esm/v2/useResponsive-a02e95b7.js +0 -13
- package/dist/esm/v3/useResponsive-a02e95b7.js +0 -13
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-d2aa1a77.js → OrDateTimePickerMonthSelect-a07225f2.js} +0 -0
- /package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-685ee962.js → OrBottomSheet.vue_vue_type_script_lang-dc92fb7c.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-7d52b006.js → OrToastContainer.vue_vue_type_script_lang-d922a62b.js} +0 -0
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
export { s as OrTimePickerV3 } from '../../OrTimePicker-
|
|
2
|
-
export { D as TimePickerFormat } from '../../OrDateTimePicker-
|
|
1
|
+
export { s as OrTimePickerV3 } from '../../OrTimePicker-7b86ab50.js';
|
|
2
|
+
export { D as TimePickerFormat } from '../../OrDateTimePicker-41629d12.js';
|
|
3
3
|
export { I as TimePickerSize } from '../../OrInputBox-912a6254.js';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import '../../dropdown-open-06d651cf.js';
|
|
6
6
|
import '@vueuse/core';
|
|
7
7
|
import '../../useProxyModelValue-940010d2.js';
|
|
8
|
+
import '@onereach/styles/tailwind-screens';
|
|
8
9
|
import '@onereach/styles/tailwind.config.json';
|
|
9
|
-
import '../../OrDateTimePickerPopoverHeader-
|
|
10
|
+
import '../../OrDateTimePickerPopoverHeader-f3e5d27d.js';
|
|
10
11
|
import 'vue';
|
|
11
12
|
import '../../OrButton-4a3c3e7b.js';
|
|
12
13
|
import '../../OrLoader-b79022da.js';
|
|
13
14
|
import '../../OrLabel-d4c46bb6.js';
|
|
14
|
-
import '../../OrIconButton-
|
|
15
|
+
import '../../OrIconButton-fbd39f8d.js';
|
|
15
16
|
import '../../OrIcon-62793572.js';
|
|
16
|
-
import '../../OrTooltip-
|
|
17
|
+
import '../../OrTooltip-9d606b66.js';
|
|
17
18
|
import '../../usePopoverState-b92c698b.js';
|
|
18
|
-
import '../../OrPopover-
|
|
19
|
+
import '../../OrPopover-5637267a.js';
|
|
19
20
|
import '@floating-ui/dom';
|
|
20
21
|
import '../../useElevation-a50ec347.js';
|
|
21
|
-
import '../../useResponsive-
|
|
22
|
-
import '../../OrBottomSheet-
|
|
23
|
-
import '../../OrOverlay-
|
|
22
|
+
import '../../useResponsive-dfa0f675.js';
|
|
23
|
+
import '../../OrBottomSheet-f8d589d8.js';
|
|
24
|
+
import '../../OrOverlay-63e5b9ad.js';
|
|
24
25
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
25
26
|
import '../../useTheme-e8494a32.js';
|
|
26
27
|
import '../../OrMenuItem-54062d59.js';
|
|
27
|
-
import '../../OrMenu-
|
|
28
|
+
import '../../OrMenu-260be0af.js';
|
|
28
29
|
import '../../OrError-c01d0c29.js';
|
|
29
30
|
import '../../OrHint-06ab89d7.js';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-
|
|
1
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from '../../types-bd02559e.js';
|
|
2
2
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../../useToast-5aa9dc05.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import '../../useElevation-a50ec347.js';
|
|
6
|
+
import '@onereach/styles/tailwind-screens';
|
|
6
7
|
import '@onereach/styles/tailwind.config.json';
|
|
7
8
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
8
9
|
import 'vue';
|
|
9
|
-
import '../../OrIconButton-
|
|
10
|
+
import '../../OrIconButton-fbd39f8d.js';
|
|
10
11
|
import '../../OrIcon-62793572.js';
|
|
11
|
-
import '../../OrTooltip-
|
|
12
|
+
import '../../OrTooltip-9d606b66.js';
|
|
12
13
|
import '../../usePopoverState-b92c698b.js';
|
|
13
|
-
import '../../OrPopover-
|
|
14
|
+
import '../../OrPopover-5637267a.js';
|
|
14
15
|
import '@floating-ui/dom';
|
|
15
|
-
import '../../useResponsive-
|
|
16
|
-
import '../../OrBottomSheet-
|
|
17
|
-
import '../../OrOverlay-
|
|
16
|
+
import '../../useResponsive-dfa0f675.js';
|
|
17
|
+
import '../../OrBottomSheet-f8d589d8.js';
|
|
18
|
+
import '../../OrOverlay-63e5b9ad.js';
|
|
18
19
|
import '../../useTheme-e8494a32.js';
|
|
19
20
|
import '../../OrLoader-b79022da.js';
|
|
20
21
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
export { a as OrToastContainerV3, t as TypesV3 } from '../../../types-
|
|
1
|
+
export { a as OrToastContainerV3, t as TypesV3 } from '../../../types-bd02559e.js';
|
|
2
2
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from '../../../useToast-5aa9dc05.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import '../../../useElevation-a50ec347.js';
|
|
6
|
+
import '@onereach/styles/tailwind-screens';
|
|
6
7
|
import '@onereach/styles/tailwind.config.json';
|
|
7
8
|
import '../../../OrTeleport.vue3-8099178c.js';
|
|
8
9
|
import 'vue';
|
|
9
|
-
import '../../../OrIconButton-
|
|
10
|
+
import '../../../OrIconButton-fbd39f8d.js';
|
|
10
11
|
import '../../../OrIcon-62793572.js';
|
|
11
|
-
import '../../../OrTooltip-
|
|
12
|
+
import '../../../OrTooltip-9d606b66.js';
|
|
12
13
|
import '../../../usePopoverState-b92c698b.js';
|
|
13
|
-
import '../../../OrPopover-
|
|
14
|
+
import '../../../OrPopover-5637267a.js';
|
|
14
15
|
import '@floating-ui/dom';
|
|
15
|
-
import '../../../useResponsive-
|
|
16
|
-
import '../../../OrBottomSheet-
|
|
17
|
-
import '../../../OrOverlay-
|
|
16
|
+
import '../../../useResponsive-dfa0f675.js';
|
|
17
|
+
import '../../../OrBottomSheet-f8d589d8.js';
|
|
18
|
+
import '../../../OrOverlay-63e5b9ad.js';
|
|
18
19
|
import '../../../useTheme-e8494a32.js';
|
|
19
20
|
import '../../../OrLoader-b79022da.js';
|
|
20
21
|
import '../../../style-inject.es-4c6f2515.js';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { s as OrTooltipV3 } from '../../OrTooltip-
|
|
2
|
-
export { P as TooltipPlacement } from '../../OrPopover-
|
|
1
|
+
export { s as OrTooltipV3 } from '../../OrTooltip-9d606b66.js';
|
|
2
|
+
export { P as TooltipPlacement } from '../../OrPopover-5637267a.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '../../usePopoverState-b92c698b.js';
|
|
6
|
+
import '@onereach/styles/tailwind-screens';
|
|
6
7
|
import '@onereach/styles/tailwind.config.json';
|
|
7
8
|
import 'vue';
|
|
8
9
|
import '@floating-ui/dom';
|
|
9
10
|
import '../../useElevation-a50ec347.js';
|
|
10
|
-
import '../../useResponsive-
|
|
11
|
-
import '../../OrBottomSheet-
|
|
12
|
-
import '../../OrOverlay-
|
|
11
|
+
import '../../useResponsive-dfa0f675.js';
|
|
12
|
+
import '../../OrBottomSheet-f8d589d8.js';
|
|
13
|
+
import '../../OrOverlay-63e5b9ad.js';
|
|
13
14
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
14
15
|
import '../../useTheme-e8494a32.js';
|
|
@@ -3,10 +3,11 @@ export { u as useElevation } from '../useElevation-a50ec347.js';
|
|
|
3
3
|
export { u as useOverflow } from '../useOverflow-c856b7b7.js';
|
|
4
4
|
export { u as usePopoverState } from '../usePopoverState-b92c698b.js';
|
|
5
5
|
export { u as useProxyModelValue } from '../useProxyModelValue-940010d2.js';
|
|
6
|
-
export { u as useResponsive } from '../useResponsive-
|
|
6
|
+
export { u as useResponsive } from '../useResponsive-dfa0f675.js';
|
|
7
7
|
export { u as useTheme } from '../useTheme-e8494a32.js';
|
|
8
8
|
export { u as useToggle } from '../useToggle-c04fc920.js';
|
|
9
9
|
export { u as useValidationAttributes } from '../useValidationAttributes-d1abbe34.js';
|
|
10
10
|
import 'vue-demi';
|
|
11
11
|
import '@vueuse/core';
|
|
12
|
+
import '@onereach/styles/tailwind-screens';
|
|
12
13
|
import '@onereach/styles/tailwind.config.json';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
isDesktop: import("vue-demi").
|
|
1
|
+
import { Ref } from 'vue-demi';
|
|
2
|
+
declare function useResponsive(element?: Ref<Element | undefined>): {
|
|
3
|
+
isDesktop: import("vue-demi").ComputedRef<boolean>;
|
|
4
|
+
isMobile: import("vue-demi").ComputedRef<boolean>;
|
|
4
5
|
};
|
|
5
6
|
export default useResponsive;
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from './OrAvatar-c1b2339e.js';
|
|
2
2
|
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-554347e6.js';
|
|
3
|
-
export { B as BottomSheetVariant, s as OrBottomSheetV3 } from './OrBottomSheet-
|
|
3
|
+
export { B as BottomSheetVariant, s as OrBottomSheetV3 } from './OrBottomSheet-f8d589d8.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-9118c20e.js';
|
|
5
5
|
export { s as OrButtonV2 } from './OrButton-130ad8d9.js';
|
|
6
6
|
export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrIconButton, s as OrIconButtonV2 } from './OrIconButton-287bb86a.js';
|
|
7
7
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-4a3c3e7b.js';
|
|
8
8
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
9
9
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-8c81a2d5.js';
|
|
10
|
-
export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
10
|
+
export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-6f556d9a.js';
|
|
11
11
|
export { s as OrCardV3 } from './OrCard-cc82902c.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-5666c954.js';
|
|
13
|
-
export { s as OrCheckboxGroupV3 } from './OrCheckboxGroup-
|
|
14
|
-
export { s as OrCheckboxTreeV3 } from './OrCheckboxTree-
|
|
15
|
-
export { s as OrCheckboxV3 } from './OrCheckbox-
|
|
13
|
+
export { s as OrCheckboxGroupV3 } from './OrCheckboxGroup-9b8548d0.js';
|
|
14
|
+
export { s as OrCheckboxTreeV3 } from './OrCheckboxTree-6c54e835.js';
|
|
15
|
+
export { s as OrCheckboxV3 } from './OrCheckbox-7aeb8af1.js';
|
|
16
16
|
export { s as OrChip } from './OrChip-74e27265.js';
|
|
17
17
|
export { s as OrChips } from './OrChips-348b13e4.js';
|
|
18
18
|
export { s as OrCode, O as OrCodeLanguages } from './OrCode-0aadc737.js';
|
|
19
|
-
export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-
|
|
19
|
+
export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-5d42a6b9.js';
|
|
20
20
|
export { s as OrCollapse } from './OrCollapse-d7c0afae.js';
|
|
21
21
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-252f482b.js';
|
|
22
22
|
export { s as OrCombinedInputV3 } from './OrCombinedInput-6dd0f75d.js';
|
|
23
23
|
export { I as CombinedInputSize, I as DatePickerSize, I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, s as OrInputBoxV3, I as SearchSize, I as SelectSize, I as TagInputSize, I as TextareaSize, I as TimePickerSize } from './OrInputBox-912a6254.js';
|
|
24
24
|
export { s as OrConfirm } from './OrConfirm-97ab80b9.js';
|
|
25
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
26
|
-
export { s as OrDatePickerV3 } from './OrDatePicker-
|
|
25
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-68150686.js';
|
|
26
|
+
export { s as OrDatePickerV3 } from './OrDatePicker-c23f1aca.js';
|
|
27
27
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-4bfefbcd.js';
|
|
28
|
-
export { D as DateTimePickerTimeFormat, s as OrDateTimePickerV3, D as TimePickerFormat } from './OrDateTimePicker-
|
|
28
|
+
export { D as DateTimePickerTimeFormat, s as OrDateTimePickerV3, D as TimePickerFormat } from './OrDateTimePicker-41629d12.js';
|
|
29
29
|
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-5349a1f9.js';
|
|
30
30
|
export { s as OrError } from './OrError-f90296db.js';
|
|
31
31
|
export { s as OrErrorTagV3 } from './OrErrorTag-ade9192b.js';
|
|
32
32
|
export { s as OrErrorV3 } from './OrError-c01d0c29.js';
|
|
33
|
-
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-
|
|
33
|
+
export { b as ExpansionPanelBackgroundColor, a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-4a28f073.js';
|
|
34
34
|
export { F as FabColor, s as OrFabV3 } from './OrFab-83cd7ed7.js';
|
|
35
35
|
export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-052ede5f.js';
|
|
36
36
|
export { F as FormGroupDirection, s as OrFormGroupV3 } from './OrFormGroup-c4631ef0.js';
|
|
37
37
|
export { s as OrHint } from './OrHint-8822005b.js';
|
|
38
38
|
export { s as OrHintV3 } from './OrHint-06ab89d7.js';
|
|
39
39
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-f7130a5c.js';
|
|
40
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
40
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-fbd39f8d.js';
|
|
41
41
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-62793572.js';
|
|
42
42
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-01fb2cb2.js';
|
|
43
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
43
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-7fbdc006.js';
|
|
44
44
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-a3c4c7dc.js';
|
|
45
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
45
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-b0d6f9f8.js';
|
|
46
46
|
export { s as OrInput } from './OrInput-2c3111c2.js';
|
|
47
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
47
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-d28c8c10.js';
|
|
48
48
|
export { s as OrLabel } from './OrLabel-a7d99df4.js';
|
|
49
49
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-d4c46bb6.js';
|
|
50
50
|
export { L as LinkColor, s as OrLinkV3 } from './OrLink-dcae31fb.js';
|
|
@@ -53,32 +53,32 @@ export { s as OrListOfInputs } from './OrListOfInputs-f8740785.js';
|
|
|
53
53
|
export { L as LoaderViews, s as OrLoader } from './OrLoader-d28a8ebf.js';
|
|
54
54
|
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-b79022da.js';
|
|
55
55
|
export { s as OrMenuItemV3 } from './OrMenuItem-54062d59.js';
|
|
56
|
-
export { s as OrMenuV3 } from './OrMenu-
|
|
57
|
-
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-
|
|
56
|
+
export { s as OrMenuV3 } from './OrMenu-260be0af.js';
|
|
57
|
+
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-5637267a.js';
|
|
58
58
|
export { s as OrModal, O as OrModalSizes } from './OrModal-b2060770.js';
|
|
59
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
59
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-6dd278c0.js';
|
|
60
60
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-1b28dd4a.js';
|
|
61
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
61
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-7f25412d.js';
|
|
62
62
|
export { s as OrNumberInput } from './OrNumberInput-e9dcdcbd.js';
|
|
63
63
|
export { s as OrOverflowMenu } from './OrOverflowMenu-440ddf3e.js';
|
|
64
64
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
65
|
-
export { s as OrOverlayV3 } from './OrOverlay-
|
|
66
|
-
export { s as OrPaginationV3 } from './OrPagination-
|
|
67
|
-
export { s as OrPassword } from './OrPassword-
|
|
65
|
+
export { s as OrOverlayV3 } from './OrOverlay-63e5b9ad.js';
|
|
66
|
+
export { s as OrPaginationV3 } from './OrPagination-8c428114.js';
|
|
67
|
+
export { s as OrPassword } from './OrPassword-ed2fc171.js';
|
|
68
68
|
export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-aa2ea84b.js';
|
|
69
|
-
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-
|
|
69
|
+
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-b405214e.js';
|
|
70
70
|
export { s as OrRadio } from './OrRadio-40bf2c87.js';
|
|
71
71
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
72
|
-
export { s as OrRadioGroupV3 } from './OrRadioGroup-
|
|
73
|
-
export { s as OrRadioV3 } from './OrRadio-
|
|
72
|
+
export { s as OrRadioGroupV3 } from './OrRadioGroup-d8044e7c.js';
|
|
73
|
+
export { s as OrRadioV3 } from './OrRadio-dd484558.js';
|
|
74
74
|
export { s as OrSearch } from './OrSearch-2800e9bf.js';
|
|
75
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
76
|
-
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-
|
|
75
|
+
export { s as OrSearchV3 } from './OrSearch-895067e0.js';
|
|
76
|
+
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-3df84379.js';
|
|
77
77
|
export { s as OrSelect } from './OrSelect-9520d6e6.js';
|
|
78
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
78
|
+
export { s as OrSelectV3 } from './OrSelect-1e03eb9d.js';
|
|
79
79
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-aaf73310.js';
|
|
80
|
-
export { s as OrSidebarV3 } from './OrSidebar-
|
|
81
|
-
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-
|
|
80
|
+
export { s as OrSidebarV3 } from './OrSidebar-47154aa9.js';
|
|
81
|
+
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-890ed7af.js';
|
|
82
82
|
export { s as OrSkeletonCircle } from './OrSkeletonCircle-66e175a0.js';
|
|
83
83
|
export { s as OrSkeletonRect } from './OrSkeletonRect-c694574e.js';
|
|
84
84
|
export { s as OrSkeletonText } from './OrSkeletonText-9a800de4.js';
|
|
@@ -87,33 +87,33 @@ export { s as OrSkeletonCircleV3 } from './OrSkeletonCircle-1eae069b.js';
|
|
|
87
87
|
export { s as OrSkeletonRectV3 } from './OrSkeletonRect-ba5df861.js';
|
|
88
88
|
export { s as OrSkeletonTextV3 } from './OrSkeletonText-3c3207d0.js';
|
|
89
89
|
export { s as OrSlider } from './OrSlider-b7bd588e.js';
|
|
90
|
-
export { s as OrSortingV3 } from './OrSorting-
|
|
90
|
+
export { s as OrSortingV3 } from './OrSorting-0cf35eea.js';
|
|
91
91
|
export { s as OrStepper } from './OrStepper-4943002c.js';
|
|
92
92
|
export { s as OrSwitch } from './OrSwitch-fb864132.js';
|
|
93
|
-
export { s as OrSwitchV3 } from './OrSwitch-
|
|
93
|
+
export { s as OrSwitchV3 } from './OrSwitch-ed97acd5.js';
|
|
94
94
|
export { s as OrTab } from './OrTab-d8d4e871.js';
|
|
95
95
|
export { s as OrTabHeaderItem } from './OrTabHeaderItem-c2af7ca3.js';
|
|
96
96
|
export { s as OrTabV3 } from './OrTab-2d567d8e.js';
|
|
97
97
|
export { s as OrTabs } from './OrTabs-3da3ea89.js';
|
|
98
|
-
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-
|
|
98
|
+
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-c053d3d6.js';
|
|
99
99
|
export { s as OrTag } from './OrTag-1b3b1296.js';
|
|
100
|
-
export { s as OrTagInputV3 } from './OrTagInput-
|
|
101
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
102
|
-
export { s as OrTagsV3 } from './OrTags-
|
|
100
|
+
export { s as OrTagInputV3 } from './OrTagInput-8b97bbf0.js';
|
|
101
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-31fd6ae4.js';
|
|
102
|
+
export { s as OrTagsV3 } from './OrTags-19d496a9.js';
|
|
103
103
|
export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
|
|
104
104
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
105
105
|
export { s as OrTextV3 } from './OrText-d54c951d.js';
|
|
106
106
|
export { s as OrTextarea } from './OrTextarea-7a753c1a.js';
|
|
107
|
-
export { s as OrTextareaV3 } from './OrTextarea-
|
|
108
|
-
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-
|
|
109
|
-
export { s as OrTimePickerV3 } from './OrTimePicker-
|
|
107
|
+
export { s as OrTextareaV3 } from './OrTextarea-4852104f.js';
|
|
108
|
+
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-262d3f2a.js';
|
|
109
|
+
export { s as OrTimePickerV3 } from './OrTimePicker-7b86ab50.js';
|
|
110
110
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-d6f117e2.js';
|
|
111
111
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-05a9c81b.js';
|
|
112
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
112
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-bd02559e.js';
|
|
113
113
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-5aa9dc05.js';
|
|
114
114
|
export { s as OrTooltip } from './OrTooltip-7ac03028.js';
|
|
115
115
|
export { s as OrTooltipContent } from './OrTooltipContent-c0042844.js';
|
|
116
|
-
export { s as OrTooltipV3 } from './OrTooltip-
|
|
116
|
+
export { s as OrTooltipV3 } from './OrTooltip-9d606b66.js';
|
|
117
117
|
export { s as OrTreeV3, T as TreeNodeDropPosition } from './OrTree-a0e57f4e.js';
|
|
118
118
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
|
|
119
119
|
export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-859439f0.js';
|
|
@@ -121,7 +121,7 @@ export { u as useElevation } from './useElevation-a50ec347.js';
|
|
|
121
121
|
export { u as useOverflow } from './useOverflow-c856b7b7.js';
|
|
122
122
|
export { u as usePopoverState } from './usePopoverState-b92c698b.js';
|
|
123
123
|
export { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
124
|
-
export { u as useResponsive } from './useResponsive-
|
|
124
|
+
export { u as useResponsive } from './useResponsive-dfa0f675.js';
|
|
125
125
|
export { u as useTheme } from './useTheme-e8494a32.js';
|
|
126
126
|
export { u as useToggle } from './useToggle-c04fc920.js';
|
|
127
127
|
export { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
@@ -135,6 +135,7 @@ import 'vue-demi';
|
|
|
135
135
|
import 'vue';
|
|
136
136
|
import './style-inject.es-4c6f2515.js';
|
|
137
137
|
import '@vueuse/core';
|
|
138
|
+
import '@onereach/styles/tailwind-screens';
|
|
138
139
|
import '@onereach/styles/tailwind.config.json';
|
|
139
140
|
import '@codemirror/state';
|
|
140
141
|
import '@codemirror/view';
|
|
@@ -148,7 +149,7 @@ import '@codemirror/lang-markdown';
|
|
|
148
149
|
import '@codemirror/language';
|
|
149
150
|
import '@lezer/highlight';
|
|
150
151
|
import '@vueuse/math';
|
|
151
|
-
import './OrDateTimePickerPopoverHeader-
|
|
152
|
+
import './OrDateTimePickerPopoverHeader-f3e5d27d.js';
|
|
152
153
|
import 'lodash/padStart';
|
|
153
154
|
import '@floating-ui/dom';
|
|
154
155
|
import 'lodash/cloneDeep';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useToggle } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
|
|
3
3
|
import { u as useElevation } from './useElevation-a50ec347.js';
|
|
4
|
+
import '@onereach/styles/tailwind-screens';
|
|
4
5
|
import '@onereach/styles/tailwind.config.json';
|
|
5
6
|
import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
|
|
6
7
|
import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-5aa9dc05.js';
|
|
7
|
-
import { s as script$2 } from './OrIconButton-
|
|
8
|
+
import { s as script$2 } from './OrIconButton-fbd39f8d.js';
|
|
8
9
|
import { s as script$3 } from './OrLoader-b79022da.js';
|
|
9
10
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
10
11
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import screens from '@onereach/styles/tailwind-screens';
|
|
2
|
+
import { useMediaQuery } from '@vueuse/core';
|
|
3
|
+
import { getCurrentInstance, ref, watch, onMounted, isVue3, computed } from 'vue-demi';
|
|
4
|
+
|
|
5
|
+
function useResponsive(element) {
|
|
6
|
+
const currentInstance = getCurrentInstance();
|
|
7
|
+
const currentRootElement = ref();
|
|
8
|
+
if (element) {
|
|
9
|
+
watch(element, value => {
|
|
10
|
+
currentRootElement.value = value;
|
|
11
|
+
});
|
|
12
|
+
} else {
|
|
13
|
+
onMounted(() => {
|
|
14
|
+
if (currentInstance) {
|
|
15
|
+
const element = currentInstance.vnode[isVue3 ? 'el' : 'elm'];
|
|
16
|
+
if (element instanceof Element) {
|
|
17
|
+
currentRootElement.value = element;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
// State
|
|
23
|
+
const isDesktop = computed(() => {
|
|
24
|
+
return isForcedDesktop(currentRootElement.value) || desktopQuery.value;
|
|
25
|
+
});
|
|
26
|
+
const isMobile = computed(() => {
|
|
27
|
+
return !isDesktop.value;
|
|
28
|
+
});
|
|
29
|
+
const desktopQuery = useMediaQuery(`(min-width: ${screens.md})`);
|
|
30
|
+
// Helpers
|
|
31
|
+
function isForcedDesktop(element) {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
if (!element) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
const forcedScreens = (_a = element.getAttribute('force-screen')) === null || _a === void 0 ? void 0 : _a.split(/\s+/);
|
|
37
|
+
if (forcedScreens === null || forcedScreens === void 0 ? void 0 : forcedScreens.some(forcedScreen => ['md', 'lg', 'xl', '2xl'].includes(forcedScreen))) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
return isForcedDesktop((_b = element.parentElement) !== null && _b !== void 0 ? _b : undefined);
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
isDesktop,
|
|
44
|
+
isMobile
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { useResponsive as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v2/3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@codemirror/lang-json": "6.0.1",
|
|
40
40
|
"@codemirror/lang-markdown": "6.1.1",
|
|
41
41
|
"@floating-ui/dom": "0.3.1",
|
|
42
|
-
"@onereach/styles": "^3.
|
|
42
|
+
"@onereach/styles": "^3.2.0",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
45
45
|
"@types/uuid": "8.3.1",
|
|
@@ -157,5 +157,5 @@
|
|
|
157
157
|
},
|
|
158
158
|
"./package.json": "./package.json"
|
|
159
159
|
},
|
|
160
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "a168a9cba9af592f41064e7e88e92851d4c92d7f"
|
|
161
161
|
}
|
|
@@ -263,8 +263,6 @@ export default defineComponent({
|
|
|
263
263
|
|
|
264
264
|
const disclosed = ref(false);
|
|
265
265
|
|
|
266
|
-
const { isMobile } = useResponsive();
|
|
267
|
-
|
|
268
266
|
// Methods
|
|
269
267
|
function focus(): void {
|
|
270
268
|
control.value?.focus();
|
|
@@ -274,6 +272,9 @@ export default defineComponent({
|
|
|
274
272
|
control.value?.blur();
|
|
275
273
|
}
|
|
276
274
|
|
|
275
|
+
// Helpers
|
|
276
|
+
const { isMobile } = useResponsive();
|
|
277
|
+
|
|
277
278
|
return {
|
|
278
279
|
root,
|
|
279
280
|
control,
|
|
@@ -284,9 +285,9 @@ export default defineComponent({
|
|
|
284
285
|
currentLength,
|
|
285
286
|
maxLength,
|
|
286
287
|
disclosed,
|
|
287
|
-
isMobile,
|
|
288
288
|
focus,
|
|
289
289
|
blur,
|
|
290
|
+
isMobile,
|
|
290
291
|
};
|
|
291
292
|
},
|
|
292
293
|
});
|
|
@@ -138,8 +138,6 @@ export default defineComponent({
|
|
|
138
138
|
],
|
|
139
139
|
|
|
140
140
|
setup(props, context) {
|
|
141
|
-
const { isDesktop, isMobile } = useResponsive();
|
|
142
|
-
|
|
143
141
|
// Refs
|
|
144
142
|
const root = ref<HTMLElement>();
|
|
145
143
|
|
|
@@ -264,10 +262,10 @@ export default defineComponent({
|
|
|
264
262
|
currentPage.value = page;
|
|
265
263
|
}
|
|
266
264
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
isMobile,
|
|
265
|
+
// Helpers
|
|
266
|
+
const { isDesktop, isMobile } = useResponsive();
|
|
270
267
|
|
|
268
|
+
return {
|
|
271
269
|
root,
|
|
272
270
|
limitButton,
|
|
273
271
|
limitButtonRoot,
|
|
@@ -287,6 +285,8 @@ export default defineComponent({
|
|
|
287
285
|
toPreviousPage,
|
|
288
286
|
toNextPage,
|
|
289
287
|
toPage,
|
|
288
|
+
isDesktop,
|
|
289
|
+
isMobile,
|
|
290
290
|
};
|
|
291
291
|
},
|
|
292
292
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<OrTeleport>
|
|
3
3
|
<div
|
|
4
4
|
v-show="state === 'open'"
|
|
5
|
+
ref="containerRoot"
|
|
5
6
|
:class="['contents']"
|
|
6
7
|
>
|
|
7
8
|
<template v-if="isDesktop && variant === 'auto' || variant === 'popover'">
|
|
@@ -122,10 +123,9 @@ export default defineComponent({
|
|
|
122
123
|
],
|
|
123
124
|
|
|
124
125
|
setup(props, context) {
|
|
125
|
-
const { isDesktop, isMobile } = useResponsive();
|
|
126
|
-
|
|
127
126
|
// Refs
|
|
128
127
|
const root = ref<HTMLElement>();
|
|
128
|
+
const containerRoot = ref<HTMLElement>();
|
|
129
129
|
|
|
130
130
|
const bottomSheet = ref<InstanceType<typeof OrBottomSheet>>();
|
|
131
131
|
const bottomSheetRoot = computed(() => bottomSheet.value?.root);
|
|
@@ -148,6 +148,9 @@ export default defineComponent({
|
|
|
148
148
|
const isFlipped = ref<boolean>(false);
|
|
149
149
|
const isHidden = ref<boolean>(false);
|
|
150
150
|
|
|
151
|
+
// Helpers
|
|
152
|
+
const { isDesktop, isMobile } = useResponsive(containerRoot);
|
|
153
|
+
|
|
151
154
|
// Effects
|
|
152
155
|
watchPostEffect(() => {
|
|
153
156
|
const rootElement = unref(root);
|
|
@@ -201,9 +204,8 @@ export default defineComponent({
|
|
|
201
204
|
// #endregion
|
|
202
205
|
|
|
203
206
|
return {
|
|
204
|
-
isDesktop,
|
|
205
|
-
isMobile,
|
|
206
207
|
root,
|
|
208
|
+
containerRoot,
|
|
207
209
|
bottomSheet,
|
|
208
210
|
bottomSheetRoot,
|
|
209
211
|
rootStyles,
|
|
@@ -211,6 +213,8 @@ export default defineComponent({
|
|
|
211
213
|
state,
|
|
212
214
|
isFlipped,
|
|
213
215
|
isHidden,
|
|
216
|
+
isDesktop,
|
|
217
|
+
isMobile,
|
|
214
218
|
open,
|
|
215
219
|
close,
|
|
216
220
|
toggle,
|
|
@@ -150,8 +150,6 @@ export default defineComponent({
|
|
|
150
150
|
],
|
|
151
151
|
|
|
152
152
|
setup(props) {
|
|
153
|
-
const { isMobile } = useResponsive();
|
|
154
|
-
|
|
155
153
|
// Refs
|
|
156
154
|
const root = ref<HTMLElement>();
|
|
157
155
|
|
|
@@ -248,6 +246,9 @@ export default defineComponent({
|
|
|
248
246
|
(1 - localProgress.value) * strokeDasharray.value,
|
|
249
247
|
);
|
|
250
248
|
|
|
249
|
+
// Helpers
|
|
250
|
+
const { isMobile } = useResponsive();
|
|
251
|
+
|
|
251
252
|
return {
|
|
252
253
|
root,
|
|
253
254
|
rootStyles,
|
|
@@ -1,13 +1,56 @@
|
|
|
1
|
+
import screens from '@onereach/styles/tailwind-screens';
|
|
1
2
|
import { useMediaQuery } from '@vueuse/core';
|
|
2
|
-
import { ref } from 'vue-demi';
|
|
3
|
+
import { Ref, computed, getCurrentInstance, isVue3, onMounted, ref, watch } from 'vue-demi';
|
|
3
4
|
|
|
4
|
-
function useResponsive() {
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
function useResponsive(element?: Ref<Element | undefined>) {
|
|
6
|
+
const currentInstance = getCurrentInstance();
|
|
7
|
+
const currentRootElement = ref<Element>();
|
|
8
|
+
|
|
9
|
+
if (element) {
|
|
10
|
+
watch(element, (value) => {
|
|
11
|
+
currentRootElement.value = value;
|
|
12
|
+
});
|
|
13
|
+
} else {
|
|
14
|
+
onMounted(() => {
|
|
15
|
+
if (currentInstance) {
|
|
16
|
+
const element = (currentInstance.vnode as any)[isVue3 ? 'el' : 'elm'] as unknown;
|
|
17
|
+
|
|
18
|
+
if (element instanceof Element) {
|
|
19
|
+
currentRootElement.value = element as Element;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// State
|
|
26
|
+
const isDesktop = computed(() => {
|
|
27
|
+
return isForcedDesktop(currentRootElement.value) || desktopQuery.value;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const isMobile = computed(() => {
|
|
31
|
+
return !isDesktop.value;
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const desktopQuery = useMediaQuery(`(min-width: ${screens.md})`);
|
|
35
|
+
|
|
36
|
+
// Helpers
|
|
37
|
+
function isForcedDesktop(element?: Element): boolean {
|
|
38
|
+
if (!element) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const forcedScreens = element.getAttribute('force-screen')?.split(/\s+/);
|
|
43
|
+
|
|
44
|
+
if (forcedScreens?.some((forcedScreen) => ['md', 'lg', 'xl', '2xl'].includes(forcedScreen))) {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return isForcedDesktop(element.parentElement ?? undefined);
|
|
49
|
+
}
|
|
7
50
|
|
|
8
51
|
return {
|
|
9
|
-
isMobile,
|
|
10
52
|
isDesktop,
|
|
53
|
+
isMobile,
|
|
11
54
|
};
|
|
12
55
|
}
|
|
13
56
|
|
package/src/shims.d.ts
CHANGED