@onereach/ui-components 2.74.0-beta.2287.0 → 2.74.1-beta.2289.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/{OrButton-d45772c1.js → OrButton-4862b98b.js} +3 -3
- package/dist/bundled/v2/{OrCardCollection-4ac89ea5.js → OrCardCollection-187b0468.js} +4 -4
- package/dist/bundled/v2/{OrCode-c0af38e3.js → OrCode-fc6876ec.js} +15 -179
- package/dist/bundled/v2/{OrConfirm-8c0e957d.js → OrConfirm-94fd90ae.js} +2 -2
- package/dist/bundled/v2/{OrEmptyState-9fb413f9.js → OrEmptyState-8a7feb99.js} +2 -2
- package/dist/bundled/v2/{OrErrorTag-97a9112b.js → OrErrorTag-785d650a.js} +1 -1
- package/dist/bundled/v2/{OrIconButton-837d57f8.js → OrIconButton-5e9d8efe.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-57fccb41.js → OrInlineInput-38a99ef9.js} +1 -1
- package/dist/bundled/v2/{OrInlineTextarea-f8b86cf7.js → OrInlineTextarea-e0ff164c.js} +1 -1
- package/dist/bundled/v2/{OrInput-00070eee.js → OrInput-65ad6551.js} +29 -12
- package/dist/bundled/v2/{OrInputBox-2f559e98.js → OrInputBox-e54dcef9.js} +3 -3
- package/dist/bundled/v2/{OrMenu-52da43bc.js → OrMenu-6ab53877.js} +10 -15
- package/dist/bundled/v2/{OrModal-78f5d49e.js → OrModal-41f9e197.js} +1 -1
- package/dist/bundled/v2/{OrNotification-2e2a1941.js → OrNotification-3909aaf2.js} +3 -3
- package/dist/bundled/v2/{OrNotification-458fe937.js → OrNotification-cbb374c5.js} +1 -1
- package/dist/bundled/v2/{OrPagination-daf25de2.js → OrPagination-9bf3d797.js} +60 -24
- package/dist/bundled/v2/{OrProgress-15fe65ec.js → OrProgress-5cf0a7e7.js} +3 -3
- package/dist/bundled/v2/{OrSearch-09fd004c.js → OrSearch-142dd903.js} +2 -2
- package/dist/bundled/v2/{OrSelect-2ececfc1.js → OrSelect-797fb43b.js} +3 -3
- package/dist/bundled/v2/{OrSidebar-a2bc21b9.js → OrSidebar-ae90e090.js} +3 -3
- package/dist/bundled/v2/{OrSidebarCollapseButton-8297ef86.js → OrSidebarCollapseButton-54abd48f.js} +1 -1
- package/dist/bundled/v2/{OrSkeletonText-2f1a3cc7.js → OrSkeletonText-242d22f3.js} +3 -3
- package/dist/bundled/v2/{OrTabs-d69780fc.js → OrTabs-517e2f25.js} +1 -1
- package/dist/bundled/v2/{OrTag-4085e8a7.js → OrTag-231eefa1.js} +2 -2
- package/dist/bundled/v2/{OrTextarea-5c57c02b.js → OrTextarea-1201353b.js} +1 -1
- package/dist/bundled/v2/{OrTooltip-b1f38647.js → OrTooltip-121e28c5.js} +3 -1
- package/dist/bundled/v2/components/index.js +28 -28
- package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +8 -8
- package/dist/bundled/v2/components/or-code/index.js +1 -1
- package/dist/bundled/v2/components/or-confirm-v3/index.js +6 -6
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-error-tag-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/bundled/v2/components/or-input-v3/index.js +5 -4
- package/dist/bundled/v2/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
- package/dist/bundled/v2/components/or-menu-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-menu-v3/styles.d.ts +0 -1
- package/dist/bundled/v2/components/or-modal-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-notification/index.js +1 -1
- package/dist/bundled/v2/components/or-notification-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
- package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-progress-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-progress-v3/styles.d.ts +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +6 -5
- package/dist/bundled/v2/components/or-select-v3/index.js +7 -6
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +3 -3
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +3 -3
- package/dist/bundled/v2/components/or-skeleton/index.js +1 -1
- package/dist/bundled/v2/components/or-tabs-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-tag-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-toast-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-tooltip-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +28 -28
- package/dist/bundled/v2/{types-309b7b94.js → types-c2d44cac.js} +1 -1
- package/dist/bundled/v3/{OrButton-a1448bfa.js → OrButton-05766523.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3b1e442b.js → OrButton.vue_vue_type_script_lang-b53e78f5.js} +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-f76c3264.js → OrCardCollection.vue_vue_type_script_lang-e980e703.js} +7 -7
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-79a42008.js → OrCode.vue_vue_type_script_lang-c55de81d.js} +11 -176
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-eb2bfce2.js → OrConfirm.vue_vue_type_script_lang-7ba2f530.js} +4 -4
- package/dist/bundled/v3/{OrEmptyState.vue_vue_type_script_lang-da7d6c42.js → OrEmptyState.vue_vue_type_script_lang-8e58c67c.js} +2 -2
- package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js → OrErrorTag.vue_vue_type_script_lang-3675dde9.js} +1 -1
- package/dist/bundled/v3/{OrIconButton-e0566ecf.js → OrIconButton-d6dfb9a4.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js → OrIconButton.vue_vue_type_script_lang-5d1cb50c.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-49ce3308.js → OrInlineInput.vue_vue_type_script_lang-92640762.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-8fd761d7.js → OrInlineTextarea.vue_vue_type_script_lang-7358cb4f.js} +2 -2
- package/dist/bundled/v3/{OrInput-dcf2606e.js → OrInput-6aef644c.js} +15 -6
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-27220623.js → OrInput.vue_vue_type_script_lang-8e55cefa.js} +17 -5
- package/dist/bundled/v3/{OrInputBox-4c7900c2.js → OrInputBox-358d4856.js} +1 -1
- package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-47d98e81.js → OrInputBox.vue_vue_type_script_lang-b387d4ba.js} +3 -3
- package/dist/bundled/v3/{OrMenu-6d7abe97.js → OrMenu-bb432db5.js} +9 -10
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-df35fd76.js → OrMenu.vue_vue_type_script_lang-5a492eb3.js} +5 -8
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-6b1dc231.js → OrModal.vue_vue_type_script_lang-5f45677f.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-d0afc1d7.js → OrNotification.vue_vue_type_script_lang-b9a8e938.js} +2 -2
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f64827ef.js → OrPagination.vue_vue_type_script_lang-bdb0acc8.js} +35 -20
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-52f660d6.js → OrProgress.vue_vue_type_script_lang-17095060.js} +3 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-c054c8db.js → OrSearch.vue_vue_type_script_lang-763128bf.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-7fd5e2f0.js → OrSelect.vue_vue_type_script_lang-48de444c.js} +5 -5
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-7f3f1a16.js → OrSidebar.vue_vue_type_script_lang-5116ba2b.js} +3 -3
- package/dist/bundled/v3/{OrSidebarCollapseButton.vue_vue_type_script_lang-9aeba2d4.js → OrSidebarCollapseButton.vue_vue_type_script_lang-c071f0c6.js} +2 -2
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-cb550e87.js → OrTabs.vue_vue_type_script_lang-ae519161.js} +2 -2
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-a25a49ee.js → OrTag.vue_vue_type_script_lang-2410faf0.js} +3 -3
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-296da567.js → OrTextarea.vue_vue_type_script_lang-de99a858.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-6fe12712.js → OrToastContainer-a435e015.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-bf9935ef.js → OrTooltip.vue_vue_type_script_lang-7a64c90d.js} +3 -1
- package/dist/bundled/v3/components/index.js +31 -31
- package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +13 -13
- package/dist/bundled/v3/components/or-code/index.js +1 -1
- package/dist/bundled/v3/components/or-confirm-v3/index.js +10 -10
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-error-tag-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/bundled/v3/components/or-input-v3/index.js +8 -6
- package/dist/bundled/v3/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
- package/dist/bundled/v3/components/or-menu-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-menu-v3/styles.d.ts +0 -1
- package/dist/bundled/v3/components/or-modal-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-notification-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
- package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-progress-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-progress-v3/styles.d.ts +1 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +10 -8
- package/dist/bundled/v3/components/or-select-v3/index.js +11 -9
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +4 -4
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
- package/dist/bundled/v3/components/or-tabs-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tag-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-toast-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-tooltip-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +81 -59
- package/dist/bundled/v3/{types-22fbf9d6.js → types-f95c218d.js} +2 -2
- package/dist/esm/v2/{OrButton-66964360.js → OrButton-18f4431c.js} +3 -3
- package/dist/esm/v2/{OrCardCollection-5a9eda35.js → OrCardCollection-88f635a2.js} +5 -5
- package/dist/esm/v2/{OrCode-47331c24.js → OrCode-d4400b42.js} +17 -183
- package/dist/esm/v2/{OrConfirm-9dbdedd7.js → OrConfirm-7d81daa5.js} +2 -2
- package/dist/esm/v2/{OrEmptyState-2481f13f.js → OrEmptyState-ab1a044d.js} +2 -2
- package/dist/esm/v2/{OrErrorTag-80f82cdf.js → OrErrorTag-57140070.js} +1 -1
- package/dist/esm/v2/{OrIconButton-04a3566d.js → OrIconButton-14d80983.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-b85b84b4.js → OrInlineInput-2746837c.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-afd33047.js → OrInlineTextarea-3af829c7.js} +1 -1
- package/dist/esm/v2/{OrInput-59a15d80.js → OrInput-979c7225.js} +29 -12
- package/dist/esm/v2/{OrInputBox-9ceb9fc4.js → OrInputBox-53d1f66d.js} +3 -3
- package/dist/esm/v2/{OrMenu-c276db74.js → OrMenu-943e7760.js} +10 -15
- package/dist/esm/v2/{OrModal-4e79e0d5.js → OrModal-e638986d.js} +1 -1
- package/dist/esm/v2/{OrNotification-eac3867f.js → OrNotification-19c82a07.js} +1 -1
- package/dist/esm/v2/{OrNotification-a49e76d3.js → OrNotification-a9231a83.js} +3 -3
- package/dist/esm/v2/{OrPagination-1adbcadb.js → OrPagination-93d78a0d.js} +61 -24
- package/dist/esm/v2/{OrProgress-b7d1c689.js → OrProgress-9fc95bd7.js} +3 -3
- package/dist/esm/v2/{OrSearch-7411388b.js → OrSearch-b693161b.js} +2 -2
- package/dist/esm/v2/{OrSelect-e31d1c8b.js → OrSelect-454e1bc3.js} +3 -3
- package/dist/esm/v2/{OrSidebar-27236fbd.js → OrSidebar-f6e3030d.js} +3 -3
- package/dist/esm/v2/{OrSidebarCollapseButton-cfe51a60.js → OrSidebarCollapseButton-5bb545a6.js} +1 -1
- package/dist/esm/v2/{OrSkeletonText-24509efe.js → OrSkeletonText-cc94bdc9.js} +3 -3
- package/dist/esm/v2/{OrTabs-96b0473d.js → OrTabs-398348a5.js} +1 -1
- package/dist/esm/v2/{OrTag-b2906865.js → OrTag-4a6cad6e.js} +2 -2
- package/dist/esm/v2/{OrTextarea-a5a3572b.js → OrTextarea-373d0554.js} +1 -1
- package/dist/esm/v2/{OrTooltip-629d44fc.js → OrTooltip-233c67b9.js} +3 -1
- package/dist/esm/v2/components/index.js +28 -30
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/index.js +8 -8
- package/dist/esm/v2/components/or-code/index.js +2 -4
- package/dist/esm/v2/components/or-confirm-v3/index.js +7 -7
- package/dist/esm/v2/components/or-empty-state-v3/index.js +1 -1
- package/dist/esm/v2/components/or-error-tag-v3/index.js +1 -1
- package/dist/esm/v2/components/or-icon-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-inline-input-v3/index.js +3 -3
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/esm/v2/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/esm/v2/components/or-input-v3/index.js +6 -5
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
- package/dist/esm/v2/components/or-menu-v3/index.js +1 -1
- package/dist/esm/v2/components/or-menu-v3/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-modal-v3/index.js +3 -3
- package/dist/esm/v2/components/or-notification/index.js +1 -1
- package/dist/esm/v2/components/or-notification-v3/index.js +3 -3
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
- package/dist/esm/v2/components/or-pagination-v3/index.js +5 -5
- package/dist/esm/v2/components/or-progress-v3/index.js +1 -1
- package/dist/esm/v2/components/or-progress-v3/styles.d.ts +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +7 -6
- package/dist/esm/v2/components/or-select-v3/index.js +8 -7
- package/dist/esm/v2/components/or-sidebar-v3/index.js +4 -4
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +3 -3
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +3 -3
- package/dist/esm/v2/components/or-skeleton/index.js +1 -1
- package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-v3/index.js +3 -3
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tooltip-v3/index.js +1 -1
- package/dist/esm/v2/index.js +27 -29
- package/dist/esm/v2/{types-1f95d710.js → types-34f2e287.js} +1 -1
- package/dist/esm/v3/{OrButton-c56998e7.js → OrButton-55dd2ad9.js} +3 -3
- package/dist/esm/v3/{OrCardCollection-e4fde5b4.js → OrCardCollection-551def4e.js} +5 -5
- package/dist/esm/v3/{OrCode-effa9edb.js → OrCode-5ed69c23.js} +14 -180
- package/dist/esm/v3/{OrConfirm-37454a63.js → OrConfirm-4e3a7560.js} +2 -2
- package/dist/esm/v3/{OrEmptyState-bb8e3145.js → OrEmptyState-cd3a4026.js} +2 -2
- package/dist/esm/v3/{OrErrorTag-308119de.js → OrErrorTag-f114e88b.js} +1 -1
- package/dist/esm/v3/{OrIconButton-2dcfb83e.js → OrIconButton-3920ba54.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-fbc35f85.js → OrInlineInput-86e4383b.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-79da8697.js → OrInlineTextarea-10826fa6.js} +1 -1
- package/dist/esm/v3/{OrInput-bd054213.js → OrInput-2568be79.js} +28 -8
- package/dist/esm/v3/{OrInputBox-e16ade90.js → OrInputBox-2467d7e4.js} +3 -3
- package/dist/esm/v3/{OrMenu-7f3ea117.js → OrMenu-fd2fe1e7.js} +13 -17
- package/dist/esm/v3/{OrModal-4219a6dc.js → OrModal-87eaff65.js} +1 -1
- package/dist/esm/v3/{OrNotification-0e682c7f.js → OrNotification-7aab5f58.js} +1 -1
- package/dist/esm/v3/{OrNotification-eb08de33.js → OrNotification-e85a4956.js} +1 -1
- package/dist/esm/v3/{OrPagination-da9e5017.js → OrPagination-781c119e.js} +64 -26
- package/dist/esm/v3/{OrProgress-639ed5e8.js → OrProgress-4856808a.js} +3 -3
- package/dist/esm/v3/{OrSearch-5406bf03.js → OrSearch-3c7feda3.js} +2 -2
- package/dist/esm/v3/{OrSelect-466e50ca.js → OrSelect-389aab9f.js} +3 -3
- package/dist/esm/v3/{OrSidebar-61d84c3e.js → OrSidebar-2c8a68df.js} +3 -3
- package/dist/esm/v3/{OrSidebarCollapseButton-1b9c83ef.js → OrSidebarCollapseButton-1ed5a3d7.js} +1 -1
- package/dist/esm/v3/{OrSkeletonText-0546754d.js → OrSkeletonText-2b1610ce.js} +3 -3
- package/dist/esm/v3/{OrTabs-328d41b9.js → OrTabs-34c67377.js} +1 -1
- package/dist/esm/v3/{OrTag-148ff9ae.js → OrTag-c5c305ed.js} +2 -2
- package/dist/esm/v3/{OrTextarea-37566985.js → OrTextarea-42d21f77.js} +1 -1
- package/dist/esm/v3/{OrTooltip-b07616f4.js → OrTooltip-229c90d5.js} +3 -1
- package/dist/esm/v3/components/index.js +28 -30
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -8
- package/dist/esm/v3/components/or-code/index.js +2 -4
- package/dist/esm/v3/components/or-confirm-v3/index.js +7 -7
- package/dist/esm/v3/components/or-empty-state-v3/index.js +1 -1
- package/dist/esm/v3/components/or-error-tag-v3/index.js +1 -1
- package/dist/esm/v3/components/or-icon-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-input-v3/index.js +3 -3
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/esm/v3/components/or-input-v3/index.js +6 -5
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
- package/dist/esm/v3/components/or-menu-v3/index.js +1 -1
- package/dist/esm/v3/components/or-menu-v3/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-modal-v3/index.js +3 -3
- package/dist/esm/v3/components/or-notification/index.js +1 -1
- package/dist/esm/v3/components/or-notification-v3/index.js +3 -3
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
- package/dist/esm/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/esm/v3/components/or-progress-v3/index.js +1 -1
- package/dist/esm/v3/components/or-progress-v3/styles.d.ts +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +7 -6
- package/dist/esm/v3/components/or-select-v3/index.js +8 -7
- package/dist/esm/v3/components/or-sidebar-v3/index.js +4 -4
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +3 -3
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +3 -3
- package/dist/esm/v3/components/or-skeleton/index.js +1 -1
- package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-v3/index.js +3 -3
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tooltip-v3/index.js +1 -1
- package/dist/esm/v3/index.js +27 -29
- package/dist/esm/v3/{types-b79e4387.js → types-225f772b.js} +1 -1
- package/package.json +2 -2
- package/src/components/or-button-v3/styles.ts +3 -3
- package/src/components/or-code/OrCode.vue +6 -8
- package/src/components/or-empty-state-v3/styles.ts +2 -2
- package/src/components/or-error-tag-v3/styles.ts +1 -1
- package/src/components/or-input-box-v3/styles.ts +3 -6
- package/src/components/or-input-v3/OrInput.stories3.ts +4 -0
- package/src/components/or-input-v3/OrInput.vue +39 -19
- package/src/components/or-menu-v3/OrMenu.vue +22 -26
- package/src/components/or-menu-v3/styles.ts +0 -5
- package/src/components/or-notification/OrNotification.vue +1 -26
- package/src/components/or-pagination-v3/OrPagination.vue +86 -42
- package/src/components/or-pagination-v3/styles.ts +1 -1
- package/src/components/or-progress-v3/styles.ts +4 -4
- package/src/components/or-sidebar-v3/styles.ts +2 -2
- package/src/components/or-skeleton/styles.scss +3 -18
- package/src/components/or-stepper/OrStepper.stories.ts +1 -1
- package/src/components/or-tag-v3/OrTag.stories3.ts +5 -5
- package/src/components/or-tag-v3/styles.ts +1 -1
- package/src/components/or-tooltip-v3/styles.ts +4 -1
- package/dist/bundled/v2/components/or-code/theme.d.ts +0 -24
- package/dist/bundled/v3/components/or-code/theme.d.ts +0 -24
- package/dist/esm/v2/components/or-code/theme.d.ts +0 -24
- package/dist/esm/v3/components/or-code/theme.d.ts +0 -24
- package/src/components/or-code/theme.ts +0 -213
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<or-icon-button
|
|
25
25
|
v-if="isShowingFullscreen"
|
|
26
26
|
icon="fullscreen"
|
|
27
|
-
icon-color="neutral-
|
|
27
|
+
icon-color="neutral-3"
|
|
28
28
|
class="fullscreen-button"
|
|
29
29
|
@click="toggleFullscreen(true)"
|
|
30
30
|
/>
|
|
@@ -85,8 +85,8 @@ import { Language, LanguageSupport } from '@codemirror/language';
|
|
|
85
85
|
import { EditorState, Extension, Transaction } from '@codemirror/state';
|
|
86
86
|
import { ViewUpdate, keymap } from '@codemirror/view';
|
|
87
87
|
import { indentWithTab } from '@codemirror/commands';
|
|
88
|
-
import { basicSetup, EditorView } from 'codemirror';
|
|
89
88
|
import { useElementHover } from '@vueuse/core';
|
|
89
|
+
import { basicSetup, EditorView } from 'codemirror';
|
|
90
90
|
import _ from 'lodash';
|
|
91
91
|
import { defineComponent, PropType, ref, Ref } from 'vue-demi';
|
|
92
92
|
import { OrIconButton } from '../or-button-v2';
|
|
@@ -97,7 +97,6 @@ import { OrModal } from '../or-modal';
|
|
|
97
97
|
import { OrTeleport } from '../or-teleport';
|
|
98
98
|
import { OrCodeLanguages } from './constants';
|
|
99
99
|
import languages from './lang';
|
|
100
|
-
import orCodeTheme from './theme';
|
|
101
100
|
|
|
102
101
|
//partially based on https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.vue
|
|
103
102
|
|
|
@@ -186,7 +185,6 @@ export default defineComponent({
|
|
|
186
185
|
emits: ['update:modelValue', 'focus', 'blur'],
|
|
187
186
|
|
|
188
187
|
setup(props, { emit }) {
|
|
189
|
-
// editor config
|
|
190
188
|
const root = ref<HTMLDivElement>();
|
|
191
189
|
const target = ref<HTMLDivElement>();
|
|
192
190
|
const fullscreenTarget = ref<HTMLDivElement>();
|
|
@@ -227,9 +225,8 @@ export default defineComponent({
|
|
|
227
225
|
},
|
|
228
226
|
localExtensions(): Extension[] {
|
|
229
227
|
const { allowDrop, allowPaste, lineWrapping } = this;
|
|
230
|
-
|
|
231
228
|
const ext = _.compact([
|
|
232
|
-
|
|
229
|
+
// Toggle light/dark mode
|
|
233
230
|
EditorView.baseTheme({}),
|
|
234
231
|
// locale settings
|
|
235
232
|
this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
|
|
@@ -262,10 +259,11 @@ export default defineComponent({
|
|
|
262
259
|
// line wrapping
|
|
263
260
|
lineWrapping ? EditorView.lineWrapping : undefined,
|
|
264
261
|
keymap.of([indentWithTab]),
|
|
265
|
-
...this.extensions,
|
|
266
262
|
]) as Extension[];
|
|
267
263
|
|
|
268
|
-
|
|
264
|
+
// Append Extensions (such as basic-setup)
|
|
265
|
+
if (this.extensions.length !== 0) _.merge(ext, this.extensions);
|
|
266
|
+
return ext;
|
|
269
267
|
},
|
|
270
268
|
isShowingError(): boolean {
|
|
271
269
|
return !!this.error && this.isInvalid;
|
|
@@ -90,13 +90,11 @@ export const InputBoxRootVariants: Record<InputBoxVariant, string[]> = {
|
|
|
90
90
|
export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
|
|
91
91
|
'm': [
|
|
92
92
|
// Box
|
|
93
|
-
'children:min-h-[34px]',
|
|
93
|
+
'children:min-h-[46px] children:md:min-h-[34px]',
|
|
94
94
|
|
|
95
95
|
// Spacing
|
|
96
96
|
'first-child:pl-md first-child:md:pl-sm+',
|
|
97
97
|
'last-child:pr-md last-child:md:pr-sm+',
|
|
98
|
-
'children:pt-[11px] children:md:pt-[7px]',
|
|
99
|
-
'children:pb-[11px] children:md:pb-[6px]',
|
|
100
98
|
|
|
101
99
|
'gap-sm+ md:gap-sm',
|
|
102
100
|
|
|
@@ -109,9 +107,8 @@ export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
|
|
|
109
107
|
'children:min-h-[30px]',
|
|
110
108
|
|
|
111
109
|
// Spacing
|
|
112
|
-
'first-child:pl-sm',
|
|
113
|
-
'last-child:pr-sm',
|
|
114
|
-
'children:py-[6px]',
|
|
110
|
+
'first-child:pl-md first-child:md:pl-sm+',
|
|
111
|
+
'last-child:pr-md last-child:md:pr-sm+',
|
|
115
112
|
|
|
116
113
|
'gap-[6px]',
|
|
117
114
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:variant="disableDefaultStyles ? 'unstyled' : 'styled'"
|
|
23
23
|
:size="size"
|
|
24
24
|
:invalid="invalid"
|
|
25
|
-
:readonly="readonly"
|
|
25
|
+
:readonly="readonly || loading"
|
|
26
26
|
:disabled="disabled"
|
|
27
27
|
>
|
|
28
28
|
<input
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
:type="type === 'password' && disclosed ? 'text' : type"
|
|
34
34
|
:placeholder="placeholder"
|
|
35
35
|
:required="required"
|
|
36
|
-
:readonly="readonly"
|
|
36
|
+
:readonly="readonly || loading"
|
|
37
37
|
:disabled="disabled"
|
|
38
38
|
@keydown="$emit('keydown', $event)"
|
|
39
39
|
@keyup="$emit('keyup', $event)"
|
|
@@ -42,30 +42,40 @@
|
|
|
42
42
|
>
|
|
43
43
|
|
|
44
44
|
<div :class="['layout-row']">
|
|
45
|
-
<template v-if="
|
|
46
|
-
<
|
|
47
|
-
:
|
|
48
|
-
:color="'
|
|
49
|
-
:
|
|
50
|
-
@click.stop="disclosed = !disclosed"
|
|
45
|
+
<template v-if="loading">
|
|
46
|
+
<OrLoader
|
|
47
|
+
:variant="'circular'"
|
|
48
|
+
:color="'primary'"
|
|
49
|
+
:size="isMobile ? 'm' : 's'"
|
|
51
50
|
/>
|
|
52
51
|
</template>
|
|
53
52
|
|
|
54
|
-
<template v-
|
|
55
|
-
<template v-if="
|
|
53
|
+
<template v-else>
|
|
54
|
+
<template v-if="type === 'password'">
|
|
56
55
|
<OrIconButton
|
|
57
|
-
:icon="'
|
|
56
|
+
:icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
|
|
58
57
|
:color="'inherit'"
|
|
59
|
-
:disabled="
|
|
60
|
-
@click.stop="
|
|
58
|
+
:disabled="disabled"
|
|
59
|
+
@click.stop="disclosed = !disclosed"
|
|
61
60
|
/>
|
|
62
61
|
</template>
|
|
63
62
|
|
|
64
|
-
<template v-
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
<template v-if="type === 'search'">
|
|
64
|
+
<template v-if="modelValue">
|
|
65
|
+
<OrIconButton
|
|
66
|
+
:icon="'close'"
|
|
67
|
+
:color="'inherit'"
|
|
68
|
+
:disabled="readonly || disabled"
|
|
69
|
+
@click.stop="$emit('update:modelValue', '')"
|
|
70
|
+
/>
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<template v-else>
|
|
74
|
+
<OrIcon
|
|
75
|
+
:icon="'search'"
|
|
76
|
+
:variant="'outlined'"
|
|
77
|
+
/>
|
|
78
|
+
</template>
|
|
69
79
|
</template>
|
|
70
80
|
</template>
|
|
71
81
|
</div>
|
|
@@ -103,13 +113,14 @@
|
|
|
103
113
|
|
|
104
114
|
<script lang="ts">
|
|
105
115
|
import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
|
|
106
|
-
import { useControlAttributes, useIdAttribute, useValidationAttributes } from '../../hooks';
|
|
116
|
+
import { useControlAttributes, useIdAttribute, useResponsive, useValidationAttributes } from '../../hooks';
|
|
107
117
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
108
118
|
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
109
119
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
110
120
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
111
121
|
import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
|
|
112
122
|
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
123
|
+
import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
|
|
113
124
|
import { InputSize, InputType } from './props';
|
|
114
125
|
import { InputControl, InputRoot } from './styles';
|
|
115
126
|
|
|
@@ -123,6 +134,7 @@ export default defineComponent({
|
|
|
123
134
|
OrIconButton,
|
|
124
135
|
OrInputBox,
|
|
125
136
|
OrLabel,
|
|
137
|
+
OrLoader,
|
|
126
138
|
},
|
|
127
139
|
|
|
128
140
|
model: {
|
|
@@ -166,6 +178,11 @@ export default defineComponent({
|
|
|
166
178
|
default: undefined,
|
|
167
179
|
},
|
|
168
180
|
|
|
181
|
+
loading: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
default: false,
|
|
184
|
+
},
|
|
185
|
+
|
|
169
186
|
required: {
|
|
170
187
|
type: Boolean,
|
|
171
188
|
default: false,
|
|
@@ -240,6 +257,8 @@ export default defineComponent({
|
|
|
240
257
|
|
|
241
258
|
const disclosed = ref(false);
|
|
242
259
|
|
|
260
|
+
const { isMobile } = useResponsive();
|
|
261
|
+
|
|
243
262
|
// Methods
|
|
244
263
|
function focus(): void {
|
|
245
264
|
control.value?.focus();
|
|
@@ -260,6 +279,7 @@ export default defineComponent({
|
|
|
260
279
|
maxLength,
|
|
261
280
|
invalid,
|
|
262
281
|
disclosed,
|
|
282
|
+
isMobile,
|
|
263
283
|
focus,
|
|
264
284
|
blur,
|
|
265
285
|
};
|
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
ref="
|
|
4
|
-
:
|
|
2
|
+
<OrPopover
|
|
3
|
+
ref="popover"
|
|
4
|
+
:variant="'auto'"
|
|
5
|
+
:trigger="trigger"
|
|
6
|
+
:placement="placement"
|
|
7
|
+
:full-width="false"
|
|
8
|
+
:disable-default-styles="false"
|
|
9
|
+
@update:state="$emit('update:state', $event)"
|
|
5
10
|
>
|
|
6
|
-
<
|
|
7
|
-
ref="
|
|
8
|
-
|
|
9
|
-
:
|
|
10
|
-
|
|
11
|
-
:full-width="false"
|
|
12
|
-
:disable-default-styles="false"
|
|
13
|
-
@update:state="$emit('update:state', $event)"
|
|
11
|
+
<div
|
|
12
|
+
ref="root"
|
|
13
|
+
v-bind="$attrs"
|
|
14
|
+
:class="rootStyles"
|
|
15
|
+
@click.stop="onClick"
|
|
14
16
|
>
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
>
|
|
19
|
-
<slot />
|
|
20
|
-
</div>
|
|
21
|
-
</OrPopover>
|
|
22
|
-
</div>
|
|
17
|
+
<slot />
|
|
18
|
+
</div>
|
|
19
|
+
</OrPopover>
|
|
23
20
|
</template>
|
|
24
21
|
|
|
25
22
|
<script lang="ts">
|
|
26
23
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
27
24
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
28
25
|
import { MenuPlacement } from './props';
|
|
29
|
-
import {
|
|
26
|
+
import { MenuRoot } from './styles';
|
|
30
27
|
|
|
31
28
|
export default defineComponent({
|
|
32
29
|
name: 'OrMenu',
|
|
@@ -35,6 +32,8 @@ export default defineComponent({
|
|
|
35
32
|
OrPopover,
|
|
36
33
|
},
|
|
37
34
|
|
|
35
|
+
inheritAttrs: false,
|
|
36
|
+
|
|
38
37
|
props: {
|
|
39
38
|
trigger: {
|
|
40
39
|
type: HTMLElement,
|
|
@@ -53,9 +52,9 @@ export default defineComponent({
|
|
|
53
52
|
|
|
54
53
|
expose: [
|
|
55
54
|
'root',
|
|
55
|
+
'isOpen',
|
|
56
56
|
'open',
|
|
57
57
|
'close',
|
|
58
|
-
'isOpen',
|
|
59
58
|
'toggle',
|
|
60
59
|
],
|
|
61
60
|
|
|
@@ -65,7 +64,6 @@ export default defineComponent({
|
|
|
65
64
|
|
|
66
65
|
const popover = ref<InstanceType<typeof OrPopover>>();
|
|
67
66
|
const popoverRoot = computed(() => popover.value?.root);
|
|
68
|
-
const isOpen = computed(() => popover.value?.isOpen);
|
|
69
67
|
|
|
70
68
|
// Styles
|
|
71
69
|
const rootStyles = computed(() => [
|
|
@@ -73,9 +71,8 @@ export default defineComponent({
|
|
|
73
71
|
...MenuRoot,
|
|
74
72
|
]);
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
]);
|
|
74
|
+
// State
|
|
75
|
+
const isOpen = computed(() => popover.value?.isOpen);
|
|
79
76
|
|
|
80
77
|
// Methods
|
|
81
78
|
function open(): void {
|
|
@@ -116,7 +113,6 @@ export default defineComponent({
|
|
|
116
113
|
popover,
|
|
117
114
|
popoverRoot,
|
|
118
115
|
rootStyles,
|
|
119
|
-
bodyStyles,
|
|
120
116
|
isOpen,
|
|
121
117
|
open,
|
|
122
118
|
close,
|
|
@@ -115,6 +115,7 @@ export default defineComponent({
|
|
|
115
115
|
warning: ($c-warning, $c-warning-lighten-45),
|
|
116
116
|
success: ($c-success, $c-success-lighten-45),
|
|
117
117
|
);
|
|
118
|
+
|
|
118
119
|
/** TODO: Override when mobile design is ready to guarantee alignment of icons with first text row */
|
|
119
120
|
--alignment-height: #{$lh-1};
|
|
120
121
|
|
|
@@ -177,30 +178,4 @@ export default defineComponent({
|
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
|
-
|
|
181
|
-
[data-theme="dark"] {
|
|
182
|
-
.or-notification {
|
|
183
|
-
$notification-types: (
|
|
184
|
-
info: ($c-neutral-6, $c-primary-darken-45),
|
|
185
|
-
error: ($c-neutral-6, $c-error-darken-45),
|
|
186
|
-
warning: ($c-neutral-6, $c-warning-darken-45),
|
|
187
|
-
success: ($c-neutral-6, $c-success-darken-45),
|
|
188
|
-
);
|
|
189
|
-
|
|
190
|
-
.or-icon {
|
|
191
|
-
color: $c-neutral-1;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
@each $type, $colors in $notification-types {
|
|
195
|
-
&.is-type-#{$type} {
|
|
196
|
-
background-color: list.nth($colors, 2);
|
|
197
|
-
color: list.nth($colors, 1);
|
|
198
|
-
|
|
199
|
-
a {
|
|
200
|
-
color: list.nth($colors, 1);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
181
|
</style>
|
|
@@ -14,31 +14,35 @@
|
|
|
14
14
|
<OrIcon :icon="'keyboard_arrow_left'" />
|
|
15
15
|
</OrButton>
|
|
16
16
|
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
17
|
+
<template v-if="isDesktop">
|
|
18
|
+
<OrButton
|
|
19
|
+
v-for="(page, index) in buttonGroup"
|
|
20
|
+
:key="index"
|
|
21
|
+
:class="itemStyles"
|
|
22
|
+
:variant="'link'"
|
|
23
|
+
:color="'inherit'"
|
|
24
|
+
:activated="currentPage === page"
|
|
25
|
+
@click.stop="typeof page === 'number' && toPage(page)"
|
|
26
|
+
>
|
|
27
|
+
{{ page }}
|
|
28
|
+
</OrButton>
|
|
29
|
+
|
|
30
|
+
<OrButton
|
|
31
|
+
:class="itemStyles"
|
|
32
|
+
:variant="'link'"
|
|
33
|
+
:color="'inherit'"
|
|
34
|
+
:disabled="currentPage === lastPage"
|
|
35
|
+
@click.stop="toNextPage()"
|
|
36
|
+
>
|
|
37
|
+
<OrIcon :icon="'keyboard_arrow_right'" />
|
|
38
|
+
</OrButton>
|
|
39
|
+
</template>
|
|
38
40
|
</div>
|
|
39
41
|
|
|
40
42
|
<div :class="limitControlStyles">
|
|
41
|
-
|
|
43
|
+
<template v-if="isDesktop">
|
|
44
|
+
Per page:
|
|
45
|
+
</template>
|
|
42
46
|
|
|
43
47
|
<OrButton
|
|
44
48
|
ref="limitButton"
|
|
@@ -48,28 +52,44 @@
|
|
|
48
52
|
:activated="true"
|
|
49
53
|
@click.stop="limitMenu.open()"
|
|
50
54
|
>
|
|
51
|
-
{{ currentLimit }} <OrIcon :icon="'arrow_drop_down'" />
|
|
55
|
+
{{ currentLimit }} <OrIcon :icon="limitMenu && limitMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'" />
|
|
52
56
|
</OrButton>
|
|
53
57
|
|
|
54
58
|
<OrMenu
|
|
55
59
|
ref="limitMenu"
|
|
60
|
+
:class="['min-w-[60px]']"
|
|
56
61
|
:trigger="limitButtonRoot"
|
|
57
62
|
:placement="'top'"
|
|
58
63
|
>
|
|
59
64
|
<OrMenuItem
|
|
60
65
|
v-for="pageSize in pageSizeOptions"
|
|
61
66
|
:key="pageSize"
|
|
62
|
-
@click.stop="currentLimit = pageSize"
|
|
67
|
+
@click.stop="currentLimit = pageSize; limitMenu.close()"
|
|
63
68
|
>
|
|
64
69
|
{{ pageSize }}
|
|
65
70
|
</OrMenuItem>
|
|
66
71
|
</OrMenu>
|
|
67
72
|
</div>
|
|
73
|
+
|
|
74
|
+
<template v-if="isMobile">
|
|
75
|
+
<div :class="offsetControlStyles">
|
|
76
|
+
<OrButton
|
|
77
|
+
:class="itemStyles"
|
|
78
|
+
:variant="'link'"
|
|
79
|
+
:color="'inherit'"
|
|
80
|
+
:disabled="currentPage === lastPage"
|
|
81
|
+
@click.stop="toNextPage()"
|
|
82
|
+
>
|
|
83
|
+
<OrIcon :icon="'keyboard_arrow_right'" />
|
|
84
|
+
</OrButton>
|
|
85
|
+
</div>
|
|
86
|
+
</template>
|
|
68
87
|
</div>
|
|
69
88
|
</template>
|
|
70
89
|
|
|
71
90
|
<script lang="ts">
|
|
72
91
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
92
|
+
import { useResponsive } from '../../hooks';
|
|
73
93
|
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
74
94
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
75
95
|
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
@@ -118,6 +138,8 @@ export default defineComponent({
|
|
|
118
138
|
],
|
|
119
139
|
|
|
120
140
|
setup(props, context) {
|
|
141
|
+
const { isDesktop, isMobile } = useResponsive();
|
|
142
|
+
|
|
121
143
|
// Refs
|
|
122
144
|
const root = ref<HTMLElement>();
|
|
123
145
|
|
|
@@ -193,24 +215,43 @@ export default defineComponent({
|
|
|
193
215
|
});
|
|
194
216
|
|
|
195
217
|
const buttonGroup = computed<(number | string)[]>(() => {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
218
|
+
const pages = Array.from({ length: lastPage.value }, (_, index) => index + 1);
|
|
219
|
+
|
|
220
|
+
switch (true) {
|
|
221
|
+
case currentPage.value < firstPage.value + 4:
|
|
222
|
+
return [
|
|
223
|
+
...pages.slice(0, 5),
|
|
224
|
+
'…',
|
|
225
|
+
lastPage.value,
|
|
226
|
+
];
|
|
227
|
+
|
|
228
|
+
case currentPage.value > lastPage.value - 4:
|
|
229
|
+
return [
|
|
230
|
+
firstPage.value,
|
|
231
|
+
'…',
|
|
232
|
+
...pages.slice(-5),
|
|
233
|
+
];
|
|
234
|
+
|
|
235
|
+
default:
|
|
236
|
+
return pages
|
|
237
|
+
.map((page) => {
|
|
238
|
+
switch (true) {
|
|
239
|
+
case page > firstPage.value && page < currentPage.value - 1:
|
|
240
|
+
case page < lastPage.value && page > currentPage.value + 1:
|
|
241
|
+
return '…';
|
|
242
|
+
|
|
243
|
+
default:
|
|
244
|
+
return page;
|
|
245
|
+
}
|
|
246
|
+
})
|
|
247
|
+
.reduce((accumulator, page) => {
|
|
248
|
+
if (accumulator[accumulator.length - 1] === page) {
|
|
249
|
+
return accumulator;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
return [...accumulator, page];
|
|
253
|
+
}, [] as (number | string)[]);
|
|
254
|
+
}
|
|
214
255
|
});
|
|
215
256
|
|
|
216
257
|
// Methods
|
|
@@ -227,6 +268,9 @@ export default defineComponent({
|
|
|
227
268
|
}
|
|
228
269
|
|
|
229
270
|
return {
|
|
271
|
+
isDesktop,
|
|
272
|
+
isMobile,
|
|
273
|
+
|
|
230
274
|
root,
|
|
231
275
|
limitButton,
|
|
232
276
|
limitButtonRoot,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProgressColor, ProgressType } from './props';
|
|
2
2
|
|
|
3
3
|
export const ProgressRoot: string[] = [
|
|
4
4
|
// Typography
|
|
@@ -31,7 +31,7 @@ export const ProgressHeader: string[] = [
|
|
|
31
31
|
'flex',
|
|
32
32
|
'flex-row',
|
|
33
33
|
|
|
34
|
-
//
|
|
34
|
+
// Spacing
|
|
35
35
|
'mb-[6px]',
|
|
36
36
|
];
|
|
37
37
|
|
|
@@ -45,7 +45,7 @@ export const ProgressHeaderLabel: string[] = [
|
|
|
45
45
|
];
|
|
46
46
|
|
|
47
47
|
export const ProgressHeaderPercent: string[] = [
|
|
48
|
-
//
|
|
48
|
+
// Spacing
|
|
49
49
|
'ml-auto',
|
|
50
50
|
];
|
|
51
51
|
|
|
@@ -102,6 +102,6 @@ export const ProgressBarColors: Record<Exclude<ProgressColor, ProgressColor.Auto
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
export const ProgressFooter: string[] = [
|
|
105
|
-
//
|
|
105
|
+
// Spacing
|
|
106
106
|
'mt-[2px]',
|
|
107
107
|
];
|
|
@@ -202,7 +202,7 @@ export const SidebarContent: string[] = [
|
|
|
202
202
|
'grow',
|
|
203
203
|
'overflow-auto',
|
|
204
204
|
|
|
205
|
-
//
|
|
205
|
+
// Spacing
|
|
206
206
|
'p-md',
|
|
207
207
|
];
|
|
208
208
|
|
|
@@ -211,7 +211,7 @@ export const SidebarFooter: string[] = [
|
|
|
211
211
|
'shrink-0',
|
|
212
212
|
'overflow-x-hidden',
|
|
213
213
|
|
|
214
|
-
//
|
|
214
|
+
// Spacing
|
|
215
215
|
'p-md',
|
|
216
216
|
|
|
217
217
|
// Borders
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
$c-skeleton-bg: #f6f8fd;
|
|
13
|
-
$c-skeleton-center: #fff;
|
|
14
|
-
|
|
15
12
|
.or-skeleton {
|
|
13
|
+
$c-skeleton-bg: #f6f8fd;
|
|
14
|
+
$c-skeleton-center: #fff;
|
|
15
|
+
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
position: relative;
|
|
18
18
|
padding: 0;
|
|
@@ -33,18 +33,3 @@ $c-skeleton-center: #fff;
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[data-theme="dark"] {
|
|
39
|
-
$c-skeleton-dark-bg: $c-neutral-3;
|
|
40
|
-
$c-skeleton-dark-center: $c-neutral-2;
|
|
41
|
-
|
|
42
|
-
.or-skeleton {
|
|
43
|
-
background: $c-skeleton-dark-bg;
|
|
44
|
-
&.is-animated {
|
|
45
|
-
&::before {
|
|
46
|
-
background: linear-gradient(90.14deg, $c-skeleton-dark-bg 0.1%, $c-skeleton-dark-center 49.98%, $c-skeleton-dark-bg 99.06%);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|