@onereach/ui-components 5.1.1-beta.3158.0 → 5.1.1-beta.3162.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 +7 -8
- package/dist/bundled/v2/components/OrInputV3/OrInput.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +8 -9
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.vue.d.ts +4 -4
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +6 -7
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +4 -4
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +3 -4
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +100 -37
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +4 -6
- package/dist/bundled/v2/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/styles.d.ts +0 -1
- package/dist/bundled/v2/components/OrSelectV3/styles.js +1 -8
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +5 -39
- package/dist/bundled/v2/hooks/useTheme.js +12 -46
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-bf502c25.js → OrCardCollection.vue_vue_type_script_lang-32a5019d.js} +3 -3
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-70e62be7.js → OrCode.vue_vue_type_script_lang-1bf2766c.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-74fd4f8e.js → OrConfirm.vue_vue_type_script_lang-d37994d8.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-45c265c7.js → OrDatePicker.vue_vue_type_script_lang-f73b9f07.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-b4f1f232.js → OrDateTimePicker.vue_vue_type_script_lang-df504a2e.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-564e97c7.js → OrDateTimePickerMonthSelect-c7057468.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-09e55f87.js → OrIconButton.vue_vue_type_script_lang-06c23edb.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-a0a95c54.js → OrInlineInput.vue_vue_type_script_lang-beee5838.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-c1f4cf72.js → OrInlineTextarea.vue_vue_type_script_lang-8236c6c0.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-31312469.js → OrInput.vue_vue_type_script_lang-4a4bec95.js} +6 -7
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-6c07832e.js → OrMenu.vue_vue_type_script_lang-03f408d2.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-beb4d186.js → OrModal.vue_vue_type_script_lang-a555737c.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-467562ca.js → OrNotification.vue_vue_type_script_lang-f56c5ef3.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-a6b31e1b.js → OrPagination.vue_vue_type_script_lang-c24ee186.js} +9 -10
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-0171067d.js → OrPopover.vue_vue_type_script_lang-0382ede2.js} +7 -8
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-e49704b0.js → OrProgress.vue_vue_type_script_lang-5573d34e.js} +3 -4
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-6eb8cd03.js → OrSearch.vue_vue_type_script_lang-e055677e.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-1e2965bc.js → OrSelect.vue_vue_type_script_lang-d3550b98.js} +68 -28
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-32362211.js → OrSidebar.vue_vue_type_script_lang-47572822.js} +1 -1
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-1544c634.js → OrSorting.vue_vue_type_script_lang-dcae1408.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-25c7eb16.js → OrTabs.vue_vue_type_script_lang-fdefe747.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-d326642e.js → OrTag.vue_vue_type_script_lang-86225135.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-16ac01db.js → OrTagInput.vue_vue_type_script_lang-972ba1bb.js} +2 -2
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-b7f0cac7.js → OrTags.vue_vue_type_script_lang-9c1f4b76.js} +2 -2
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-36f3dc9c.js → OrTimePicker.vue_vue_type_script_lang-e4274a52.js} +2 -2
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-39a910b2.js → OrTooltip.vue_vue_type_script_lang-4dceb6f6.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 +3 -3
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +2 -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 +34 -29
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +2 -3
- package/dist/bundled/v3/components/OrSelectV3/index.js +8 -8
- package/dist/bundled/v3/components/OrSelectV3/styles.d.ts +0 -1
- package/dist/bundled/v3/components/OrSelectV3/styles.js +1 -8
- 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 +2 -2
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +5 -39
- package/dist/bundled/v3/hooks/useTheme.js +12 -46
- package/dist/bundled/v3/index.js +29 -29
- package/dist/esm/v2/{OrBottomSheet-9c445259.js → OrBottomSheet-c20810b8.js} +1 -2
- package/dist/esm/v2/{OrCardCollection-287f66ea.js → OrCardCollection-35add276.js} +3 -3
- package/dist/esm/v2/{OrCheckbox-f4fac2af.js → OrCheckbox-ae903071.js} +0 -1
- package/dist/esm/v2/{OrCheckboxGroup-5f01b7e2.js → OrCheckboxGroup-74dc7c1d.js} +1 -2
- package/dist/esm/v2/{OrCheckboxTree-1d7c8582.js → OrCheckboxTree-19f5d69b.js} +1 -2
- package/dist/esm/v2/{OrCode-346006a9.js → OrCode-c2675f47.js} +2 -3
- package/dist/esm/v2/{OrConfirm-1ebd323a.js → OrConfirm-9f43fb6a.js} +2 -3
- package/dist/esm/v2/{OrDatePicker-570efb34.js → OrDatePicker-29e3897a.js} +3 -4
- package/dist/esm/v2/{OrDateTimePicker-69fa1f32.js → OrDateTimePicker-5913e464.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-246abc00.js → OrDateTimePicker.vue_rollup-plugin-vue_script-e22f3b7b.js} +3 -4
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-36aab67b.js → OrDateTimePickerPopoverHeader-3a5c05ac.js} +3 -4
- package/dist/esm/v2/{OrExpansionPanel-337c90f3.js → OrExpansionPanel-f1d8fcc9.js} +0 -1
- package/dist/esm/v2/{OrIconButton-49c4d073.js → OrIconButton-667d8f83.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-4679243a.js → OrInlineInput-9322b873.js} +1 -2
- package/dist/esm/v2/{OrInlineTextarea-4748ed55.js → OrInlineTextarea-60a9de36.js} +1 -2
- package/dist/esm/v2/{OrInput-6299204e.js → OrInput-a6183a78.js} +9 -10
- package/dist/esm/v2/{OrMenu-ea83d92c.js → OrMenu-27a67132.js} +1 -2
- package/dist/esm/v2/{OrModal-bb723070.js → OrModal-836db96a.js} +2 -3
- package/dist/esm/v2/{OrNotification-7367c9d3.js → OrNotification-512ed857.js} +1 -1
- package/dist/esm/v2/{OrOverlay-e471c4e5.js → OrOverlay-f819eff9.js} +0 -1
- package/dist/esm/v2/{OrPagination-a97f89ca.js → OrPagination-4cf94f8d.js} +10 -11
- package/dist/esm/v2/{OrPassword-3ae825ab.js → OrPassword-ab2acc85.js} +0 -1
- package/dist/esm/v2/{OrPopover-6439d4c7.js → OrPopover-66817adb.js} +8 -9
- package/dist/esm/v2/{OrProgress-8104b6f1.js → OrProgress-e079e857.js} +4 -5
- package/dist/esm/v2/{OrRadio-4567a24d.js → OrRadio-0fc3ae14.js} +0 -1
- package/dist/esm/v2/{OrRadioGroup-0cb1b05e.js → OrRadioGroup-1108883d.js} +1 -2
- package/dist/esm/v2/{OrSearch-1225f81a.js → OrSearch-15ecfbf0.js} +1 -1
- package/dist/esm/v2/{OrSegmentedControl-be64faec.js → OrSegmentedControl-d4e32f80.js} +0 -1
- package/dist/esm/v2/{OrSelect-29f8f573.js → OrSelect-a3ab4921.js} +98 -43
- package/dist/esm/v2/{OrSidebar-f31646f7.js → OrSidebar-18d20059.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-9a955d68.js → OrSidebarCollapseButton-b490ff86.js} +1 -1
- package/dist/esm/v2/{OrSorting-a794c04b.js → OrSorting-501484aa.js} +2 -3
- package/dist/esm/v2/{OrSwitch-183ef48b.js → OrSwitch-a3da6bec.js} +0 -1
- package/dist/esm/v2/{OrTabs-cfefc0cb.js → OrTabs-8e1ffb33.js} +2 -3
- package/dist/esm/v2/{OrTag-94fdc10a.js → OrTag-7a14e88b.js} +1 -1
- package/dist/esm/v2/{OrTagInput-8ed4317e.js → OrTagInput-adef254c.js} +2 -3
- package/dist/esm/v2/{OrTags-329a6ad0.js → OrTags-b4de9652.js} +2 -3
- package/dist/esm/v2/{OrTextarea-45425991.js → OrTextarea-6fe8b65f.js} +0 -1
- package/dist/esm/v2/{OrTextbox-69088e49.js → OrTextbox-cb15a62f.js} +0 -1
- package/dist/esm/v2/{OrTimePicker-afc6e991.js → OrTimePicker-9738c72f.js} +4 -5
- package/dist/esm/v2/{OrTooltip-b514aeb1.js → OrTooltip-dbe9383a.js} +1 -2
- package/dist/esm/v2/components/index.js +43 -44
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +2 -3
- package/dist/esm/v2/components/or-card-collection-v3/index.js +11 -12
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +3 -4
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +2 -3
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -2
- package/dist/esm/v2/components/or-code-v3/index.js +8 -9
- package/dist/esm/v2/components/or-confirm-v3/index.js +8 -9
- package/dist/esm/v2/components/or-date-picker-v3/index.js +9 -10
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +10 -11
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +1 -2
- package/dist/esm/v2/components/or-icon-button-v3/index.js +6 -7
- package/dist/esm/v2/components/or-inline-input-v3/index.js +7 -8
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +7 -8
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +7 -8
- package/dist/esm/v2/components/or-menu-v3/index.js +5 -6
- package/dist/esm/v2/components/or-modal-v3/index.js +7 -8
- package/dist/esm/v2/components/or-notification-v3/index.js +7 -8
- package/dist/esm/v2/components/or-overlay-v3/index.js +1 -2
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +4 -4
- package/dist/esm/v2/components/or-pagination-v3/index.js +6 -7
- package/dist/esm/v2/components/or-password/index.js +1 -2
- package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +4 -4
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -5
- package/dist/esm/v2/components/or-progress-v3/index.js +2 -3
- package/dist/esm/v2/components/or-radio-group-v3/index.js +2 -3
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -2
- package/dist/esm/v2/components/or-search-v3/index.js +8 -9
- package/dist/esm/v2/components/or-segmented-control-v3/index.js +1 -2
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +4 -6
- package/dist/esm/v2/components/or-select-v3/index.js +11 -12
- package/dist/esm/v2/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue.d.ts +24 -0
- package/dist/esm/v2/components/or-select-v3/partials/or-select-placeholder/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-select-v3/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-sidebar-v3/index.js +8 -9
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +7 -8
- package/dist/esm/v2/components/or-sorting-v3/index.js +6 -7
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -2
- package/dist/esm/v2/components/or-tabs-v3/index.js +6 -7
- package/dist/esm/v2/components/or-tag-input-v3/index.js +9 -10
- package/dist/esm/v2/components/or-tag-v3/index.js +7 -8
- package/dist/esm/v2/components/or-tags-v3/index.js +8 -9
- package/dist/esm/v2/components/or-textarea-v3/index.js +1 -2
- package/dist/esm/v2/components/or-textbox/index.js +1 -2
- package/dist/esm/v2/components/or-time-picker-v3/index.js +10 -11
- package/dist/esm/v2/components/or-toast-v3/index.js +7 -8
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +7 -8
- package/dist/esm/v2/components/or-tooltip-v3/index.js +5 -6
- package/dist/esm/v2/hooks/index.js +1 -2
- package/dist/esm/v2/hooks/useResponsive/index.js +1 -2
- package/dist/esm/v2/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/esm/v2/index.js +43 -44
- package/dist/esm/v2/{types-9fc3c490.js → types-186e4996.js} +1 -2
- package/dist/esm/v2/useResponsive-a02e95b7.js +13 -0
- package/dist/esm/v3/{OrBottomSheet-bb1c4ba1.js → OrBottomSheet-20ba316c.js} +1 -2
- package/dist/esm/v3/{OrCardCollection-00e8e2f1.js → OrCardCollection-e4a72381.js} +3 -3
- package/dist/esm/v3/{OrCheckbox-e263b7e9.js → OrCheckbox-a571fc90.js} +0 -1
- package/dist/esm/v3/{OrCheckboxGroup-6fbc2dd2.js → OrCheckboxGroup-7fe25d85.js} +1 -2
- package/dist/esm/v3/{OrCheckboxTree-13b4bbe3.js → OrCheckboxTree-bea23696.js} +1 -2
- package/dist/esm/v3/{OrCode-bbca2f44.js → OrCode-efdc9eee.js} +2 -3
- package/dist/esm/v3/{OrConfirm-42f9bda0.js → OrConfirm-fa35ffd0.js} +2 -3
- package/dist/esm/v3/{OrDatePicker-691e7103.js → OrDatePicker-40e867e5.js} +3 -4
- package/dist/esm/v3/{OrDateTimePicker-797d65f5.js → OrDateTimePicker-888a2f98.js} +3 -4
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-237bbc61.js → OrDateTimePickerPopoverHeader-8f0408b2.js} +3 -4
- package/dist/esm/v3/{OrExpansionPanel-5553a733.js → OrExpansionPanel-891154e6.js} +0 -1
- package/dist/esm/v3/{OrIconButton-a1f6781f.js → OrIconButton-de8b6cd0.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-869ea713.js → OrInlineInput-0b0d790b.js} +1 -2
- package/dist/esm/v3/{OrInlineTextarea-3d00a0e2.js → OrInlineTextarea-2c54367e.js} +1 -2
- package/dist/esm/v3/{OrInput-373f8ca9.js → OrInput-8463ca1d.js} +7 -8
- package/dist/esm/v3/{OrMenu-73250066.js → OrMenu-cfe37204.js} +1 -2
- package/dist/esm/v3/{OrModal-53810908.js → OrModal-00a8822e.js} +2 -3
- package/dist/esm/v3/{OrNotification-08a8ba21.js → OrNotification-435b0faf.js} +1 -1
- package/dist/esm/v3/{OrOverlay-1a0644fc.js → OrOverlay-99e696e8.js} +0 -1
- package/dist/esm/v3/{OrPagination-959b42fb.js → OrPagination-9cecc690.js} +10 -11
- package/dist/esm/v3/{OrPassword-dae7c58e.js → OrPassword-311406fa.js} +0 -1
- package/dist/esm/v3/{OrPopover-47796a55.js → OrPopover-84f83a8c.js} +8 -9
- package/dist/esm/v3/{OrProgress-aa2a6b51.js → OrProgress-a54a42c0.js} +4 -5
- package/dist/esm/v3/{OrRadio-4e4aa631.js → OrRadio-48cd02a9.js} +0 -1
- package/dist/esm/v3/{OrRadioGroup-ba9edb96.js → OrRadioGroup-82d10aa8.js} +1 -2
- package/dist/esm/v3/{OrSearch-9a094053.js → OrSearch-9c694c80.js} +1 -1
- package/dist/esm/v3/{OrSegmentedControl-94b30000.js → OrSegmentedControl-c8eb217d.js} +0 -1
- package/dist/esm/v3/{OrSelect-316abc90.js → OrSelect-c1e53a55.js} +94 -57
- package/dist/esm/v3/{OrSidebar-d1c7168b.js → OrSidebar-34492810.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-fd3aa175.js → OrSidebarCollapseButton-f6f5ec80.js} +1 -1
- package/dist/esm/v3/{OrSorting-8da4731f.js → OrSorting-dc01b9de.js} +2 -3
- package/dist/esm/v3/{OrSwitch-167fd4fd.js → OrSwitch-f4d9e196.js} +0 -1
- package/dist/esm/v3/{OrTabs-630cff76.js → OrTabs-3fa4a344.js} +2 -3
- package/dist/esm/v3/{OrTag-b6d1987a.js → OrTag-9494f132.js} +1 -1
- package/dist/esm/v3/{OrTagInput-40403c28.js → OrTagInput-8cc92992.js} +2 -3
- package/dist/esm/v3/{OrTags-6c5632c9.js → OrTags-cec632b8.js} +2 -3
- package/dist/esm/v3/{OrTextarea-830aec3c.js → OrTextarea-f3412790.js} +0 -1
- package/dist/esm/v3/{OrTextbox-64cebe2c.js → OrTextbox-fe62c6c3.js} +0 -1
- package/dist/esm/v3/{OrTimePicker-2c3b31f4.js → OrTimePicker-e3b5ef7f.js} +4 -5
- package/dist/esm/v3/{OrTooltip-402bd20e.js → OrTooltip-16f99e83.js} +1 -2
- package/dist/esm/v3/components/index.js +42 -43
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +2 -3
- package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -12
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +3 -4
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +2 -3
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -2
- package/dist/esm/v3/components/or-code-v3/index.js +8 -9
- package/dist/esm/v3/components/or-confirm-v3/index.js +8 -9
- package/dist/esm/v3/components/or-date-picker-v3/index.js +9 -10
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +9 -10
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +1 -2
- package/dist/esm/v3/components/or-icon-button-v3/index.js +6 -7
- package/dist/esm/v3/components/or-inline-input-v3/index.js +7 -8
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +7 -8
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +7 -8
- package/dist/esm/v3/components/or-menu-v3/index.js +5 -6
- package/dist/esm/v3/components/or-modal-v3/index.js +7 -8
- package/dist/esm/v3/components/or-notification-v3/index.js +7 -8
- package/dist/esm/v3/components/or-overlay-v3/index.js +1 -2
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +6 -7
- package/dist/esm/v3/components/or-password/index.js +1 -2
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-popover-v3/index.js +4 -5
- package/dist/esm/v3/components/or-progress-v3/index.js +2 -3
- package/dist/esm/v3/components/or-radio-group-v3/index.js +2 -3
- package/dist/esm/v3/components/or-radio-v3/index.js +1 -2
- package/dist/esm/v3/components/or-search-v3/index.js +8 -9
- package/dist/esm/v3/components/or-segmented-control-v3/index.js +1 -2
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +2 -3
- package/dist/esm/v3/components/or-select-v3/index.js +11 -12
- package/dist/esm/v3/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue.d.ts +17 -0
- package/dist/esm/v3/components/or-select-v3/partials/or-select-placeholder/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-select-v3/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-sidebar-v3/index.js +8 -9
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +7 -8
- package/dist/esm/v3/components/or-sorting-v3/index.js +6 -7
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -2
- package/dist/esm/v3/components/or-tabs-v3/index.js +6 -7
- package/dist/esm/v3/components/or-tag-input-v3/index.js +9 -10
- package/dist/esm/v3/components/or-tag-v3/index.js +7 -8
- package/dist/esm/v3/components/or-tags-v3/index.js +8 -9
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -2
- package/dist/esm/v3/components/or-textbox/index.js +1 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +10 -11
- package/dist/esm/v3/components/or-toast-v3/index.js +7 -8
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +7 -8
- package/dist/esm/v3/components/or-tooltip-v3/index.js +5 -6
- package/dist/esm/v3/hooks/index.js +1 -2
- package/dist/esm/v3/hooks/useResponsive/index.js +1 -2
- package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/esm/v3/index.js +42 -43
- package/dist/esm/v3/{types-ba96d2a2.js → types-93e80c1b.js} +1 -2
- package/dist/esm/v3/useResponsive-a02e95b7.js +13 -0
- package/package.json +2 -2
- package/src/components/or-input-v3/OrInput.vue +3 -4
- package/src/components/or-pagination-v3/OrPagination.vue +5 -5
- package/src/components/or-popover-v3/OrPopover.vue +4 -5
- package/src/components/or-progress-v3/OrProgress.vue +2 -3
- package/src/components/or-select-v3/OrSelect.vue +9 -18
- package/src/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue +43 -0
- package/src/components/or-select-v3/partials/or-select-placeholder/styles.ts +11 -0
- package/src/components/or-select-v3/styles.ts +0 -12
- package/src/hooks/useResponsive/useResponsive.ts +4 -39
- package/src/shims.d.ts +0 -5
- package/dist/esm/v2/useResponsive-f6bd2ff0.js +0 -40
- package/dist/esm/v3/useResponsive-f6bd2ff0.js +0 -40
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-0af466ef.js → OrDateTimePickerMonthSelect-f013aba1.js} +0 -0
- /package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-d1e35d47.js → OrBottomSheet.vue_vue_type_script_lang-bbea53fe.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-0c960779.js → OrToastContainer.vue_vue_type_script_lang-e8e86881.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
2
|
import { useCurrentDate } from '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
3
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
3
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-f013aba1.js';
|
|
4
4
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-f3d67e5d.js';
|
|
5
5
|
import { DatePicker, DatePickerPopover } from './styles.js';
|
|
6
6
|
import __vue_component__$1 from '../OrErrorV3/OrError.js';
|
|
@@ -2,7 +2,7 @@ export { default as OrDatePickerV3 } from './OrDatePicker.js';
|
|
|
2
2
|
export { InputBoxSize as DatePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
5
|
-
import '../../OrDateTimePickerMonthSelect-
|
|
5
|
+
import '../../OrDateTimePickerMonthSelect-f013aba1.js';
|
|
6
6
|
import '../OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
7
7
|
import '../../hooks/useProxyModelValue.js';
|
|
8
8
|
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
2
|
import { useCurrentDate } from './hooks/useCurrentDate.js';
|
|
3
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
3
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-f013aba1.js';
|
|
4
4
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-f3d67e5d.js';
|
|
5
5
|
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-e57095bf.js';
|
|
6
6
|
import { DateTimePickerTimeFormat } from './props.js';
|
|
@@ -3,7 +3,7 @@ export { DateTimePickerTimeFormat } from './props.js';
|
|
|
3
3
|
export { InputBoxSize as DateTimePickerSize } from '../OrInputBoxV3/props.js';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import './hooks/useCurrentDate.js';
|
|
6
|
-
import '../../OrDateTimePickerMonthSelect-
|
|
6
|
+
import '../../OrDateTimePickerMonthSelect-f013aba1.js';
|
|
7
7
|
import './hooks/useDatePlaceholder.js';
|
|
8
8
|
import '../../hooks/useProxyModelValue.js';
|
|
9
9
|
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -142,6 +142,9 @@ var script = defineComponent({
|
|
|
142
142
|
});
|
|
143
143
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
144
144
|
const disclosed = ref(false);
|
|
145
|
+
const {
|
|
146
|
+
isMobile
|
|
147
|
+
} = useResponsive();
|
|
145
148
|
// Methods
|
|
146
149
|
function focus() {
|
|
147
150
|
var _a;
|
|
@@ -151,10 +154,6 @@ var script = defineComponent({
|
|
|
151
154
|
var _a;
|
|
152
155
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
153
156
|
}
|
|
154
|
-
// Helpers
|
|
155
|
-
const {
|
|
156
|
-
isMobile
|
|
157
|
-
} = useResponsive();
|
|
158
157
|
return {
|
|
159
158
|
root,
|
|
160
159
|
control,
|
|
@@ -165,14 +164,14 @@ var script = defineComponent({
|
|
|
165
164
|
currentLength,
|
|
166
165
|
maxLength,
|
|
167
166
|
disclosed,
|
|
167
|
+
isMobile,
|
|
168
168
|
focus,
|
|
169
|
-
blur
|
|
170
|
-
isMobile
|
|
169
|
+
blur
|
|
171
170
|
};
|
|
172
171
|
}
|
|
173
172
|
});
|
|
174
173
|
|
|
175
|
-
var css_248z = "input[data-v-
|
|
174
|
+
var css_248z = "input[data-v-fea72d76]{min-width:0;background:0 0;outline:0}input[type=number][data-v-fea72d76]::-webkit-inner-spin-button{display:none}input[type=search][data-v-fea72d76]::-webkit-search-cancel-button{display:none}";
|
|
176
175
|
styleInject(css_248z);
|
|
177
176
|
|
|
178
177
|
/* script */
|
|
@@ -432,7 +431,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
432
431
|
/* style */
|
|
433
432
|
const __vue_inject_styles__ = undefined;
|
|
434
433
|
/* scoped */
|
|
435
|
-
const __vue_scope_id__ = "data-v-
|
|
434
|
+
const __vue_scope_id__ = "data-v-fea72d76";
|
|
436
435
|
/* module identifier */
|
|
437
436
|
const __vue_module_identifier__ = undefined;
|
|
438
437
|
/* functional template */
|
|
@@ -22,9 +22,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
22
22
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
23
23
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
24
24
|
disclosed: import("@vue/composition-api").Ref<boolean>;
|
|
25
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
25
26
|
focus: () => void;
|
|
26
27
|
blur: () => void;
|
|
27
|
-
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
28
28
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
29
29
|
modelValue: {
|
|
30
30
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -169,9 +169,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
169
169
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
170
170
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
171
171
|
disclosed: import("@vue/composition-api").Ref<boolean>;
|
|
172
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
172
173
|
focus: () => void;
|
|
173
174
|
blur: () => void;
|
|
174
|
-
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
175
175
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
176
176
|
modelValue: string | number;
|
|
177
177
|
type: "number" | "text" | "password" | "search";
|
|
@@ -4,8 +4,8 @@ import __vue_component__$1 from '../OrButtonV3/OrButton.js';
|
|
|
4
4
|
import __vue_component__$2 from '../OrIconV3/OrIcon.js';
|
|
5
5
|
import __vue_component__$3 from '../OrMenuV3/OrMenu.js';
|
|
6
6
|
import __vue_component__$4 from '../OrMenuItemV3/OrMenuItem.js';
|
|
7
|
-
import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
8
7
|
import useResponsive from '../../hooks/useResponsive/useResponsive.js';
|
|
8
|
+
import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
9
9
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
10
10
|
import '../OrButtonV3/props.js';
|
|
11
11
|
import '../OrButtonV3/styles.js';
|
|
@@ -67,6 +67,10 @@ var script = defineComponent({
|
|
|
67
67
|
emits: ['update:modelValue'],
|
|
68
68
|
expose: ['root'],
|
|
69
69
|
setup(props, context) {
|
|
70
|
+
const {
|
|
71
|
+
isDesktop,
|
|
72
|
+
isMobile
|
|
73
|
+
} = useResponsive();
|
|
70
74
|
// Refs
|
|
71
75
|
const root = ref();
|
|
72
76
|
const limitButton = ref();
|
|
@@ -160,12 +164,9 @@ var script = defineComponent({
|
|
|
160
164
|
function toPage(page) {
|
|
161
165
|
currentPage.value = page;
|
|
162
166
|
}
|
|
163
|
-
// Helpers
|
|
164
|
-
const {
|
|
165
|
-
isDesktop,
|
|
166
|
-
isMobile
|
|
167
|
-
} = useResponsive();
|
|
168
167
|
return {
|
|
168
|
+
isDesktop,
|
|
169
|
+
isMobile,
|
|
169
170
|
root,
|
|
170
171
|
limitButton,
|
|
171
172
|
limitButtonRoot,
|
|
@@ -184,9 +185,7 @@ var script = defineComponent({
|
|
|
184
185
|
buttonGroup,
|
|
185
186
|
toPreviousPage,
|
|
186
187
|
toNextPage,
|
|
187
|
-
toPage
|
|
188
|
-
isDesktop,
|
|
189
|
-
isMobile
|
|
188
|
+
toPage
|
|
190
189
|
};
|
|
191
190
|
}
|
|
192
191
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { PaginationModel } from './types';
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
isDesktop: import("@vue/composition-api").Ref<boolean>;
|
|
5
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
4
6
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
7
|
limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
6
8
|
[x: string]: ((...args: any[]) => any) | null;
|
|
@@ -28,8 +30,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
28
30
|
toPreviousPage: () => void;
|
|
29
31
|
toNextPage: () => void;
|
|
30
32
|
toPage: (page: number) => void;
|
|
31
|
-
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
32
|
-
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
33
33
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
34
34
|
modelValue: {
|
|
35
35
|
type: PropType<PaginationModel>;
|
|
@@ -63,6 +63,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
63
63
|
} & {} & {
|
|
64
64
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
65
65
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
66
|
+
isDesktop: import("@vue/composition-api").Ref<boolean>;
|
|
67
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
66
68
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
67
69
|
limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
68
70
|
[x: string]: ((...args: any[]) => any) | null;
|
|
@@ -90,8 +92,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
90
92
|
toPreviousPage: () => void;
|
|
91
93
|
toNextPage: () => void;
|
|
92
94
|
toPage: (page: number) => void;
|
|
93
|
-
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
94
|
-
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
95
95
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
96
96
|
length: number;
|
|
97
97
|
modelValue: PaginationModel;
|
|
@@ -69,6 +69,10 @@ var script = defineComponent({
|
|
|
69
69
|
emits: ['update:state', 'open', 'close'],
|
|
70
70
|
expose: ['root', 'state', 'isFlipped', 'isHidden', 'open', 'close', 'toggle'],
|
|
71
71
|
setup(props, context) {
|
|
72
|
+
const {
|
|
73
|
+
isDesktop,
|
|
74
|
+
isMobile
|
|
75
|
+
} = useResponsive();
|
|
72
76
|
// Refs
|
|
73
77
|
const root = ref();
|
|
74
78
|
const bottomSheet = ref();
|
|
@@ -88,11 +92,6 @@ var script = defineComponent({
|
|
|
88
92
|
} = usePopoverState(toRef(props, 'isOpen'), context.emit);
|
|
89
93
|
const isFlipped = ref(false);
|
|
90
94
|
const isHidden = ref(false);
|
|
91
|
-
// Helpers
|
|
92
|
-
const {
|
|
93
|
-
isDesktop,
|
|
94
|
-
isMobile
|
|
95
|
-
} = useResponsive();
|
|
96
95
|
// Effects
|
|
97
96
|
watchPostEffect(() => {
|
|
98
97
|
const rootElement = unref(root);
|
|
@@ -144,6 +143,8 @@ var script = defineComponent({
|
|
|
144
143
|
});
|
|
145
144
|
// #endregion
|
|
146
145
|
return {
|
|
146
|
+
isDesktop,
|
|
147
|
+
isMobile,
|
|
147
148
|
root,
|
|
148
149
|
bottomSheet,
|
|
149
150
|
bottomSheetRoot,
|
|
@@ -152,8 +153,6 @@ var script = defineComponent({
|
|
|
152
153
|
state,
|
|
153
154
|
isFlipped,
|
|
154
155
|
isHidden,
|
|
155
|
-
isDesktop,
|
|
156
|
-
isMobile,
|
|
157
156
|
open,
|
|
158
157
|
close,
|
|
159
158
|
toggle
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { PopoverOffset, PopoverPlacement, PopoverVariant } from './props';
|
|
3
3
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
isDesktop: import("@vue/composition-api").Ref<boolean>;
|
|
5
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
4
6
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
7
|
bottomSheet: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
6
8
|
[x: string]: ((...args: any[]) => any) | null;
|
|
@@ -13,8 +15,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
13
15
|
state: import("@vue/composition-api").Ref<"open" | "closed">;
|
|
14
16
|
isFlipped: import("@vue/composition-api").Ref<boolean>;
|
|
15
17
|
isHidden: import("@vue/composition-api").Ref<boolean>;
|
|
16
|
-
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
17
|
-
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
18
18
|
open: () => void;
|
|
19
19
|
close: () => void;
|
|
20
20
|
toggle: () => void;
|
|
@@ -117,6 +117,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
117
117
|
} & {} & {
|
|
118
118
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
119
119
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
120
|
+
isDesktop: import("@vue/composition-api").Ref<boolean>;
|
|
121
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
120
122
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
121
123
|
bottomSheet: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
122
124
|
[x: string]: ((...args: any[]) => any) | null;
|
|
@@ -129,8 +131,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
129
131
|
state: import("@vue/composition-api").Ref<"open" | "closed">;
|
|
130
132
|
isFlipped: import("@vue/composition-api").Ref<boolean>;
|
|
131
133
|
isHidden: import("@vue/composition-api").Ref<boolean>;
|
|
132
|
-
isDesktop: import("@vue/composition-api").ComputedRef<boolean>;
|
|
133
|
-
isMobile: import("@vue/composition-api").ComputedRef<boolean>;
|
|
134
134
|
open: () => void;
|
|
135
135
|
close: () => void;
|
|
136
136
|
toggle: () => void;
|
|
@@ -53,6 +53,9 @@ var script = defineComponent({
|
|
|
53
53
|
},
|
|
54
54
|
expose: ['root'],
|
|
55
55
|
setup(props) {
|
|
56
|
+
const {
|
|
57
|
+
isMobile
|
|
58
|
+
} = useResponsive();
|
|
56
59
|
// Refs
|
|
57
60
|
const root = ref();
|
|
58
61
|
// Slots
|
|
@@ -111,10 +114,6 @@ var script = defineComponent({
|
|
|
111
114
|
return width.value ? width.value - 2 : '100%';
|
|
112
115
|
});
|
|
113
116
|
const strokeDashoffset = computed(() => props.loading ? undefined : (1 - localProgress.value) * strokeDasharray.value);
|
|
114
|
-
// Helpers
|
|
115
|
-
const {
|
|
116
|
-
isMobile
|
|
117
|
-
} = useResponsive();
|
|
118
117
|
return {
|
|
119
118
|
root,
|
|
120
119
|
rootStyles,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, getCurrentInstance, toRef, onMounted, watch } from 'vue-demi';
|
|
2
2
|
import { isEmptyValue } from '../../utils/isEmptyValue.js';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import __vue_component__$2 from '../
|
|
6
|
-
import __vue_component__$3 from '../
|
|
7
|
-
import __vue_component__$4 from '../
|
|
8
|
-
import __vue_component__$5 from '../
|
|
9
|
-
import __vue_component__$6 from '../
|
|
10
|
-
import __vue_component__$7 from '../
|
|
11
|
-
import __vue_component__$8 from '../
|
|
12
|
-
import __vue_component__$9 from '../
|
|
13
|
-
import __vue_component__$a from '../
|
|
14
|
-
import __vue_component__$b from '../
|
|
15
|
-
import __vue_component__$c from '../
|
|
3
|
+
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
4
|
+
import { Select, SelectControl, SelectSearchControl, SelectDropdown, SelectDropdownFlipped, SelectDropdownDefault, SelectDropdownItem, SelectNoSearchResults } from './styles.js';
|
|
5
|
+
import __vue_component__$2 from '../OrCheckboxV3/OrCheckbox.js';
|
|
6
|
+
import __vue_component__$3 from '../OrErrorV3/OrError.js';
|
|
7
|
+
import __vue_component__$4 from '../OrExpansionPanelV3/OrExpansionPanel.js';
|
|
8
|
+
import __vue_component__$5 from '../OrHintV3/OrHint.js';
|
|
9
|
+
import __vue_component__$6 from '../OrIconV3/OrIcon.js';
|
|
10
|
+
import __vue_component__$7 from '../OrIconButtonV3/OrIconButton.js';
|
|
11
|
+
import __vue_component__$8 from '../OrInputV3/OrInput.js';
|
|
12
|
+
import __vue_component__$9 from '../OrInputBoxV3/OrInputBox.js';
|
|
13
|
+
import __vue_component__$a from '../OrLabelV3/OrLabel.js';
|
|
14
|
+
import __vue_component__$b from '../OrMenuItemV3/OrMenuItem.js';
|
|
15
|
+
import __vue_component__$c from '../OrPopoverV3/OrPopover.js';
|
|
16
|
+
import __vue_component__$d from '../OrTagV3/OrTag.js';
|
|
16
17
|
import { useOverflow } from '../../hooks/useOverflow.js';
|
|
17
18
|
import { DropdownClose } from '../../directives/dropdown-close.js';
|
|
18
19
|
import { DropdownOpen } from '../../directives/dropdown-open.js';
|
|
19
20
|
import { InputBoxSize } from '../OrInputBoxV3/props.js';
|
|
20
21
|
import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
21
22
|
import useResponsive from '../../hooks/useResponsive/useResponsive.js';
|
|
22
|
-
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
23
23
|
import '../OrCheckboxV3/styles.js';
|
|
24
24
|
import '../OrLabelV3/props.js';
|
|
25
25
|
import '../../hooks/useIdAttribute.js';
|
|
@@ -67,20 +67,87 @@ import '../../utils/isVisible.js';
|
|
|
67
67
|
import '../OrTagV3/props.js';
|
|
68
68
|
import '../OrTagV3/styles.js';
|
|
69
69
|
|
|
70
|
+
const SelectPlaceholder = [
|
|
71
|
+
// Interactivity
|
|
72
|
+
'interactivity-none',
|
|
73
|
+
// Typography
|
|
74
|
+
'typography-inherit truncate',
|
|
75
|
+
// Theme
|
|
76
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
77
|
+
|
|
78
|
+
var script$1 = defineComponent({
|
|
79
|
+
props: {
|
|
80
|
+
disabled: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: false
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
expose: ['root'],
|
|
86
|
+
setup() {
|
|
87
|
+
// Refs
|
|
88
|
+
const root = ref();
|
|
89
|
+
// Styles
|
|
90
|
+
const rootStyles = computed(() => ['or-select-placeholder-v3', ...SelectPlaceholder]);
|
|
91
|
+
return {
|
|
92
|
+
root,
|
|
93
|
+
rootStyles
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
/* script */
|
|
99
|
+
const __vue_script__$1 = script$1;
|
|
100
|
+
|
|
101
|
+
/* template */
|
|
102
|
+
var __vue_render__$1 = function () {
|
|
103
|
+
var _vm = this;
|
|
104
|
+
var _h = _vm.$createElement;
|
|
105
|
+
var _c = _vm._self._c || _h;
|
|
106
|
+
return _c('div', {
|
|
107
|
+
ref: "root",
|
|
108
|
+
class: _vm.rootStyles,
|
|
109
|
+
attrs: {
|
|
110
|
+
"disabled": _vm.disabled ? '' : null
|
|
111
|
+
}
|
|
112
|
+
}, [_vm._t("default")], 2);
|
|
113
|
+
};
|
|
114
|
+
var __vue_staticRenderFns__$1 = [];
|
|
115
|
+
|
|
116
|
+
/* style */
|
|
117
|
+
const __vue_inject_styles__$1 = undefined;
|
|
118
|
+
/* scoped */
|
|
119
|
+
const __vue_scope_id__$1 = undefined;
|
|
120
|
+
/* module identifier */
|
|
121
|
+
const __vue_module_identifier__$1 = undefined;
|
|
122
|
+
/* functional template */
|
|
123
|
+
const __vue_is_functional_template__$1 = false;
|
|
124
|
+
/* style inject */
|
|
125
|
+
|
|
126
|
+
/* style inject SSR */
|
|
127
|
+
|
|
128
|
+
/* style inject shadow dom */
|
|
129
|
+
|
|
130
|
+
const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
|
|
131
|
+
render: __vue_render__$1,
|
|
132
|
+
staticRenderFns: __vue_staticRenderFns__$1
|
|
133
|
+
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
134
|
+
var OrSelectPlaceholder = __vue_component__$1;
|
|
135
|
+
|
|
70
136
|
var script = defineComponent({
|
|
71
137
|
components: {
|
|
72
|
-
OrCheckbox: __vue_component__$
|
|
73
|
-
OrError: __vue_component__$
|
|
74
|
-
OrExpansionPanel: __vue_component__$
|
|
75
|
-
OrHint: __vue_component__$
|
|
76
|
-
OrIcon: __vue_component__$
|
|
77
|
-
OrIconButton: __vue_component__$
|
|
78
|
-
OrInput: __vue_component__$
|
|
79
|
-
OrInputBox: __vue_component__$
|
|
80
|
-
OrLabel: __vue_component__$
|
|
81
|
-
OrMenuItem: __vue_component__$
|
|
82
|
-
OrPopover: __vue_component__$
|
|
83
|
-
|
|
138
|
+
OrCheckbox: __vue_component__$2,
|
|
139
|
+
OrError: __vue_component__$3,
|
|
140
|
+
OrExpansionPanel: __vue_component__$4,
|
|
141
|
+
OrHint: __vue_component__$5,
|
|
142
|
+
OrIcon: __vue_component__$6,
|
|
143
|
+
OrIconButton: __vue_component__$7,
|
|
144
|
+
OrInput: __vue_component__$8,
|
|
145
|
+
OrInputBox: __vue_component__$9,
|
|
146
|
+
OrLabel: __vue_component__$a,
|
|
147
|
+
OrMenuItem: __vue_component__$b,
|
|
148
|
+
OrPopover: __vue_component__$c,
|
|
149
|
+
OrSelectPlaceholder,
|
|
150
|
+
OrTag: __vue_component__$d
|
|
84
151
|
},
|
|
85
152
|
directives: {
|
|
86
153
|
DropdownClose,
|
|
@@ -194,7 +261,6 @@ var script = defineComponent({
|
|
|
194
261
|
const rootStyles = computed(() => ['or-select-v3', ...Select]);
|
|
195
262
|
const controlStyles = computed(() => [...SelectControl]);
|
|
196
263
|
const searchControlStyles = computed(() => [...SelectSearchControl]);
|
|
197
|
-
const placeholderStyles = computed(() => [...SelectPlaceholder]);
|
|
198
264
|
const dropdownStyles = computed(() => {
|
|
199
265
|
var _a;
|
|
200
266
|
return [...SelectDropdown, ...(((_a = popover.value) === null || _a === void 0 ? void 0 : _a.isFlipped) ? SelectDropdownFlipped : SelectDropdownDefault)];
|
|
@@ -306,7 +372,6 @@ var script = defineComponent({
|
|
|
306
372
|
rootStyles,
|
|
307
373
|
controlStyles,
|
|
308
374
|
searchControlStyles,
|
|
309
|
-
placeholderStyles,
|
|
310
375
|
dropdownStyles,
|
|
311
376
|
dropdownItemStyles,
|
|
312
377
|
noSearchResultsStyles,
|
|
@@ -398,8 +463,8 @@ var __vue_render__ = function () {
|
|
|
398
463
|
return _c('OrTag', {
|
|
399
464
|
key: option.value,
|
|
400
465
|
attrs: {
|
|
401
|
-
"variant": 'reset',
|
|
402
|
-
"disabled": _vm.disabled
|
|
466
|
+
"variant": _vm.readonly || _vm.disabled ? 'tag' : 'reset',
|
|
467
|
+
"disabled": _vm.disabled
|
|
403
468
|
},
|
|
404
469
|
on: {
|
|
405
470
|
"reset": function ($event) {
|
|
@@ -410,10 +475,9 @@ var __vue_render__ = function () {
|
|
|
410
475
|
});
|
|
411
476
|
}, {
|
|
412
477
|
"model": _vm.proxyModelValue
|
|
413
|
-
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('
|
|
414
|
-
class: _vm.placeholderStyles,
|
|
478
|
+
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('OrSelectPlaceholder', {
|
|
415
479
|
attrs: {
|
|
416
|
-
"disabled": _vm.disabled
|
|
480
|
+
"disabled": _vm.disabled
|
|
417
481
|
}
|
|
418
482
|
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()] : [!_vm.isEmptyModelValue ? [_vm._t("valueTemplate", function () {
|
|
419
483
|
return [_c('span', {
|
|
@@ -421,10 +485,9 @@ var __vue_render__ = function () {
|
|
|
421
485
|
}, [_vm._v("\n " + _vm._s(_vm.selection && _vm.selection.label) + "\n ")])];
|
|
422
486
|
}, {
|
|
423
487
|
"model": _vm.proxyModelValue
|
|
424
|
-
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('
|
|
425
|
-
class: _vm.placeholderStyles,
|
|
488
|
+
})] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('OrSelectPlaceholder', {
|
|
426
489
|
attrs: {
|
|
427
|
-
"disabled": _vm.disabled
|
|
490
|
+
"disabled": _vm.disabled
|
|
428
491
|
}
|
|
429
492
|
}, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()]], 2), _vm._v(" "), _vm.multiple && _vm.outerItems.length > 0 ? [_vm._v("\n +" + _vm._s(_vm.outerItems.length) + "\n ")] : _vm._e(), _vm._v(" "), _vm.popoverState === 'open' && _vm.enableSearch && _vm.isDesktop ? [_c('OrInput', {
|
|
430
493
|
ref: "searchControl",
|
|
@@ -21,7 +21,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
21
21
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
22
22
|
controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
23
23
|
searchControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
24
|
-
placeholderStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
25
24
|
dropdownStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
26
25
|
dropdownItemStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
27
26
|
noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -43,8 +42,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
43
42
|
clearSearchControl: () => void;
|
|
44
43
|
innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
45
44
|
outerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
46
|
-
isDesktop: import("@vue/composition-api").
|
|
47
|
-
isMobile: import("@vue/composition-api").
|
|
45
|
+
isDesktop: import("@vue/composition-api").Ref<boolean>;
|
|
46
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
48
47
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
49
48
|
options: {
|
|
50
49
|
type: PropType<SelectOption[]>;
|
|
@@ -223,7 +222,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
223
222
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
224
223
|
controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
225
224
|
searchControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
226
|
-
placeholderStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
227
225
|
dropdownStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
228
226
|
dropdownItemStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
229
227
|
noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
@@ -245,8 +243,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
245
243
|
clearSearchControl: () => void;
|
|
246
244
|
innerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
247
245
|
outerItems: import("@vue/composition-api").Ref<HTMLElement[]>;
|
|
248
|
-
isDesktop: import("@vue/composition-api").
|
|
249
|
-
isMobile: import("@vue/composition-api").
|
|
246
|
+
isDesktop: import("@vue/composition-api").Ref<boolean>;
|
|
247
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
250
248
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
251
249
|
modelValue: string | number | object | string[] | object[] | number[];
|
|
252
250
|
label: string;
|
|
@@ -2,13 +2,13 @@ export { default as OrSelectV3 } from './OrSelect.js';
|
|
|
2
2
|
export { InputBoxSize as SelectSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../utils/isEmptyValue.js';
|
|
5
|
+
import '../../normalize-component-6e8e3d80.js';
|
|
5
6
|
import './styles.js';
|
|
6
7
|
import '../OrCheckboxV3/OrCheckbox.js';
|
|
7
8
|
import '../OrCheckboxV3/styles.js';
|
|
8
9
|
import '../OrLabelV3/OrLabel.js';
|
|
9
10
|
import '../OrLabelV3/props.js';
|
|
10
11
|
import '../OrLabelV3/styles.js';
|
|
11
|
-
import '../../normalize-component-6e8e3d80.js';
|
|
12
12
|
import '../../hooks/useIdAttribute.js';
|
|
13
13
|
import '../../hooks/useControlAttributes.js';
|
|
14
14
|
import '../../hooks/useProxyModelValue.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const Select: string[];
|
|
2
2
|
export declare const SelectControl: string[];
|
|
3
3
|
export declare const SelectSearchControl: string[];
|
|
4
|
-
export declare const SelectPlaceholder: string[];
|
|
5
4
|
export declare const SelectDropdown: string[];
|
|
6
5
|
export declare const SelectDropdownDefault: string[];
|
|
7
6
|
export declare const SelectDropdownFlipped: string[];
|
|
@@ -19,13 +19,6 @@ const SelectSearchControl = [
|
|
|
19
19
|
'grow',
|
|
20
20
|
// Spacing
|
|
21
21
|
'!mx-lg md:!-mx-sm+', '!my-sm md:!my-none'];
|
|
22
|
-
const SelectPlaceholder = [
|
|
23
|
-
// Theme
|
|
24
|
-
'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
|
|
25
|
-
// Interactivity
|
|
26
|
-
'select-none',
|
|
27
|
-
// Typography
|
|
28
|
-
'truncate'];
|
|
29
22
|
const SelectDropdown = [
|
|
30
23
|
// Overflow
|
|
31
24
|
'overflow-y-auto',
|
|
@@ -58,4 +51,4 @@ const SelectNoSearchResults = [
|
|
|
58
51
|
// Theme
|
|
59
52
|
'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
|
|
60
53
|
|
|
61
|
-
export { Select, SelectControl, SelectDropdown, SelectDropdownDefault, SelectDropdownFlipped, SelectDropdownItem, SelectNoSearchResults,
|
|
54
|
+
export { Select, SelectControl, SelectDropdown, SelectDropdownDefault, SelectDropdownFlipped, SelectDropdownItem, SelectNoSearchResults, SelectSearchControl };
|
|
@@ -235,7 +235,7 @@ import './OrCombinedInputV3/styles.js';
|
|
|
235
235
|
import '../index-15e8c1f3.js';
|
|
236
236
|
import './OrConfirmV3/styles.js';
|
|
237
237
|
import './OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
238
|
-
import '../OrDateTimePickerMonthSelect-
|
|
238
|
+
import '../OrDateTimePickerMonthSelect-f013aba1.js';
|
|
239
239
|
import './OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
240
240
|
import '../OrDateTimePickerPopoverHeader-f3d67e5d.js';
|
|
241
241
|
import './OrDatePickerV3/styles.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare function useResponsive(): {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
3
|
+
isDesktop: import("@vue/composition-api").Ref<boolean>;
|
|
4
4
|
};
|
|
5
5
|
export default useResponsive;
|
|
@@ -1,47 +1,13 @@
|
|
|
1
1
|
import { k as useMediaQuery } from '../../index-509d77a1.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ref } from 'vue-demi';
|
|
3
3
|
import '../../index-ec92055d.js';
|
|
4
4
|
|
|
5
|
-
var tailwindScreens = {
|
|
6
|
-
'sm': '640px',
|
|
7
|
-
'md': '768px',
|
|
8
|
-
'lg': '1024px',
|
|
9
|
-
'xl': '1280px',
|
|
10
|
-
'2xl': '1536px',
|
|
11
|
-
};
|
|
12
|
-
|
|
13
5
|
function useResponsive() {
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
onMounted(() => {
|
|
17
|
-
if (currentInstance) {
|
|
18
|
-
const element = currentInstance.vnode[isVue3 ? 'el' : 'elm'];
|
|
19
|
-
if (element instanceof Element) {
|
|
20
|
-
currentRootElement.value = element;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const desktopQuery = useMediaQuery(`(min-width: ${tailwindScreens.md})`);
|
|
25
|
-
const isDesktop = computed(() => {
|
|
26
|
-
return isForcedDesktop(currentRootElement.value) || desktopQuery.value;
|
|
27
|
-
});
|
|
28
|
-
const isMobile = computed(() => {
|
|
29
|
-
return !isDesktop.value;
|
|
30
|
-
});
|
|
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
|
-
}
|
|
6
|
+
const isMobile = ref(useMediaQuery('(max-width: 767px)'));
|
|
7
|
+
const isDesktop = ref(useMediaQuery('(min-width: 768px)'));
|
|
42
8
|
return {
|
|
43
|
-
|
|
44
|
-
|
|
9
|
+
isMobile,
|
|
10
|
+
isDesktop
|
|
45
11
|
};
|
|
46
12
|
}
|
|
47
13
|
|