@onereach/ui-components 2.74.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-9bc44ec5.js → OrCardCollection-187b0468.js} +4 -4
- package/dist/bundled/v2/{OrConfirm-ea6ea2f7.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-57a47093.js → OrInput-65ad6551.js} +1 -1
- 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-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-4072a079.js → OrSearch-142dd903.js} +1 -1
- package/dist/bundled/v2/{OrSelect-359e891b.js → OrSelect-797fb43b.js} +2 -2
- 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/{OrTabs-d69780fc.js → OrTabs-517e2f25.js} +1 -1
- package/dist/bundled/v2/{OrTag-4085e8a7.js → OrTag-231eefa1.js} +2 -2
- package/dist/bundled/v2/{OrTooltip-b1f38647.js → OrTooltip-121e28c5.js} +3 -1
- package/dist/bundled/v2/components/index.js +22 -22
- package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -7
- package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -5
- 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-v3/index.js +3 -3
- 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-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 +4 -4
- package/dist/bundled/v2/components/or-select-v3/index.js +5 -5
- 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-tabs-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-tag-v3/index.js +3 -3
- 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 +23 -23
- 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-62eb2543.js → OrCardCollection.vue_vue_type_script_lang-e980e703.js} +7 -7
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9aff9db3.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-44a32124.js → OrInput-6aef644c.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-4d9e2f4a.js → OrInput.vue_vue_type_script_lang-8e55cefa.js} +2 -2
- 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-0ddeada5.js → OrSearch.vue_vue_type_script_lang-763128bf.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c7a9bec2.js → OrSelect.vue_vue_type_script_lang-48de444c.js} +3 -3
- 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/{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 +26 -26
- package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +11 -11
- package/dist/bundled/v3/components/or-confirm-v3/index.js +8 -8
- 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-v3/index.js +4 -4
- 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 +6 -6
- package/dist/bundled/v3/components/or-select-v3/index.js +7 -7
- 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-toast-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-tooltip-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +70 -48
- 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-4c909f4b.js → OrCardCollection-88f635a2.js} +4 -4
- package/dist/esm/v2/{OrConfirm-7dc26526.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-3d8c8925.js → OrInput-979c7225.js} +1 -1
- 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/{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-d6f1ba11.js → OrSearch-b693161b.js} +1 -1
- package/dist/esm/v2/{OrSelect-bdb9a78a.js → OrSelect-454e1bc3.js} +2 -2
- 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/{OrTabs-96b0473d.js → OrTabs-398348a5.js} +1 -1
- package/dist/esm/v2/{OrTag-b2906865.js → OrTag-4a6cad6e.js} +2 -2
- package/dist/esm/v2/{OrTooltip-629d44fc.js → OrTooltip-233c67b9.js} +3 -1
- package/dist/esm/v2/components/index.js +22 -22
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -7
- package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
- 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-v3/index.js +3 -3
- 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-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 +4 -4
- package/dist/esm/v2/components/or-select-v3/index.js +5 -5
- 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-tabs-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-v3/index.js +3 -3
- 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 +22 -22
- 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-803f67f7.js → OrCardCollection-551def4e.js} +4 -4
- package/dist/esm/v3/{OrConfirm-403896ca.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-71075f51.js → OrInput-2568be79.js} +1 -1
- 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/{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-4e180e34.js → OrSearch-3c7feda3.js} +1 -1
- package/dist/esm/v3/{OrSelect-c64eda46.js → OrSelect-389aab9f.js} +2 -2
- 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/{OrTabs-328d41b9.js → OrTabs-34c67377.js} +1 -1
- package/dist/esm/v3/{OrTag-148ff9ae.js → OrTag-c5c305ed.js} +2 -2
- package/dist/esm/v3/{OrTooltip-b07616f4.js → OrTooltip-229c90d5.js} +3 -1
- package/dist/esm/v3/components/index.js +22 -22
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -7
- package/dist/esm/v3/components/or-confirm-v3/index.js +5 -5
- 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-v3/index.js +3 -3
- 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-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 +4 -4
- package/dist/esm/v3/components/or-select-v3/index.js +5 -5
- 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-tabs-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-v3/index.js +3 -3
- 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 +22 -22
- package/dist/esm/v3/{types-b79e4387.js → types-225f772b.js} +1 -1
- package/package.json +2 -3
- package/src/components/or-button-v3/styles.ts +3 -3
- 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-menu-v3/OrMenu.vue +22 -26
- package/src/components/or-menu-v3/styles.ts +0 -5
- 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-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
|
@@ -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
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
2
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
3
|
import Faker from 'faker';
|
|
4
|
+
import { ref } from 'vue-demi';
|
|
5
|
+
import { useOverflow } from '../../hooks';
|
|
6
|
+
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
7
|
+
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
4
8
|
import OrTagDocs from './OrTag.docs.mdx';
|
|
5
9
|
import OrTag from './OrTag.vue';
|
|
6
10
|
import { TagColor, TagVariant } from './props';
|
|
7
|
-
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
8
|
-
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
9
|
-
import { useOverflow } from '../../hooks';
|
|
10
|
-
import { ref } from 'vue-demi';
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
13
|
title: 'Components/Tag',
|
|
@@ -77,7 +77,7 @@ const Template: StoryFn<typeof OrTag> = (args) => ({
|
|
|
77
77
|
@blur="handleBlur"
|
|
78
78
|
@reset="handleReset"
|
|
79
79
|
>
|
|
80
|
-
|
|
80
|
+
${args.default}
|
|
81
81
|
</OrTag>
|
|
82
82
|
`,
|
|
83
83
|
});
|
|
@@ -2,13 +2,16 @@ import { TooltipPlacement } from './props';
|
|
|
2
2
|
|
|
3
3
|
export const TooltipRoot: string[] = [
|
|
4
4
|
// Layout
|
|
5
|
-
'
|
|
5
|
+
'inline-block',
|
|
6
6
|
];
|
|
7
7
|
|
|
8
8
|
export const TooltipBody: string[] = [
|
|
9
9
|
// Layout
|
|
10
10
|
'layout-inline-row',
|
|
11
11
|
|
|
12
|
+
// Box
|
|
13
|
+
'max-w-min',
|
|
14
|
+
|
|
12
15
|
// Shape
|
|
13
16
|
'rounded-sm',
|
|
14
17
|
|