@onereach/ui-components 2.72.2-beta.2272.0 → 2.72.2-beta.2274.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-4862b98b.js → OrButton-d45772c1.js} +3 -3
- package/dist/bundled/v2/{OrCardCollection-55fd8cf6.js → OrCardCollection-4ac89ea5.js} +4 -4
- package/dist/bundled/v2/{OrConfirm-10e4fe6a.js → OrConfirm-8c0e957d.js} +2 -2
- package/dist/bundled/v2/{OrEmptyState-8a7feb99.js → OrEmptyState-9fb413f9.js} +2 -2
- package/dist/bundled/v2/{OrErrorTag-175a2c4f.js → OrErrorTag-97a9112b.js} +2 -0
- package/dist/bundled/v2/{OrIconButton-088ac8ec.js → OrIconButton-837d57f8.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-f2bd6b5c.js → OrInlineInput-57fccb41.js} +1 -1
- package/dist/bundled/v2/{OrInlineTextarea-813d4193.js → OrInlineTextarea-f8b86cf7.js} +1 -1
- package/dist/bundled/v2/{OrInput-9253f834.js → OrInput-00070eee.js} +1 -1
- package/dist/bundled/v2/{OrMenu-6ab53877.js → OrMenu-52da43bc.js} +15 -10
- package/dist/bundled/v2/{OrModal-d08fb037.js → OrModal-78f5d49e.js} +1 -1
- package/dist/bundled/v2/{OrNotification-bd008b65.js → OrNotification-458fe937.js} +1 -1
- package/dist/bundled/v2/{OrPagination-9bf3d797.js → OrPagination-daf25de2.js} +24 -60
- package/dist/bundled/v2/{OrProgress-5cf0a7e7.js → OrProgress-15fe65ec.js} +3 -3
- package/dist/bundled/v2/{OrSearch-a975639b.js → OrSearch-09fd004c.js} +1 -1
- package/dist/bundled/v2/{OrSelect-d3b5780a.js → OrSelect-2ececfc1.js} +2 -2
- package/dist/bundled/v2/{OrSidebar-b1442193.js → OrSidebar-a2bc21b9.js} +158 -37
- package/dist/bundled/v2/OrSidebarCollapseButton-8297ef86.js +125 -0
- package/dist/bundled/v2/{OrTabs-517e2f25.js → OrTabs-d69780fc.js} +1 -1
- package/dist/bundled/v2/{OrTag-2903c38e.js → OrTag-4085e8a7.js} +3 -1
- package/dist/bundled/v2/{OrTooltip-0c73d25d.js → OrTooltip-b1f38647.js} +1 -1
- package/dist/bundled/v2/components/index.js +22 -21
- 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 +2 -0
- package/dist/bundled/v2/components/or-menu-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-menu-v3/styles.d.ts +1 -0
- 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 +0 -4
- 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/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +7 -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-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 -22
- package/dist/bundled/v2/{types-d6c9284d.js → types-309b7b94.js} +1 -1
- package/dist/bundled/v3/{OrButton-05766523.js → OrButton-a1448bfa.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-b53e78f5.js → OrButton.vue_vue_type_script_lang-3b1e442b.js} +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-40a5aa15.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +7 -7
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-53503801.js → OrConfirm.vue_vue_type_script_lang-eb2bfce2.js} +4 -4
- package/dist/bundled/v3/{OrEmptyState.vue_vue_type_script_lang-8e58c67c.js → OrEmptyState.vue_vue_type_script_lang-da7d6c42.js} +2 -2
- package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-fa28d642.js → OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js} +2 -0
- package/dist/bundled/v3/{OrIconButton-72d4d349.js → OrIconButton-e0566ecf.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-28452eda.js → OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-96aef83e.js → OrInlineInput.vue_vue_type_script_lang-49ce3308.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-8be03a08.js → OrInlineTextarea.vue_vue_type_script_lang-8fd761d7.js} +2 -2
- package/dist/bundled/v3/{OrInput-6f6c700a.js → OrInput-dcf2606e.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-115050fc.js → OrInput.vue_vue_type_script_lang-27220623.js} +2 -2
- package/dist/bundled/v3/{OrMenu-bb432db5.js → OrMenu-6d7abe97.js} +10 -9
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-5a492eb3.js → OrMenu.vue_vue_type_script_lang-df35fd76.js} +8 -5
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-230bc99d.js → OrModal.vue_vue_type_script_lang-6b1dc231.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-d9b2b5bf.js → OrNotification.vue_vue_type_script_lang-d0afc1d7.js} +2 -2
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-bdb0acc8.js → OrPagination.vue_vue_type_script_lang-f64827ef.js} +20 -35
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-17095060.js → OrProgress.vue_vue_type_script_lang-52f660d6.js} +3 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-5c683c38.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-84902694.js → OrSelect.vue_vue_type_script_lang-7fd5e2f0.js} +3 -3
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-7f3f1a16.js +291 -0
- package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-9aeba2d4.js +75 -0
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ae519161.js → OrTabs.vue_vue_type_script_lang-cb550e87.js} +2 -2
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-33767daa.js → OrTag.vue_vue_type_script_lang-a25a49ee.js} +4 -2
- package/dist/bundled/v3/{OrToastContainer-2247bc2a.js → OrToastContainer-6fe12712.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-250ecf1d.js → OrTooltip.vue_vue_type_script_lang-bf9935ef.js} +1 -1
- package/dist/bundled/v3/components/index.js +26 -25
- 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 +2 -0
- package/dist/bundled/v3/components/or-menu-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-menu-v3/styles.d.ts +1 -0
- 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 +0 -4
- 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/OrSidebar.stories3.d.ts +36 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +16 -2
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +7 -1
- 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 -75
- package/dist/bundled/v3/{types-e10af3b0.js → types-22fbf9d6.js} +2 -2
- package/dist/esm/v2/{OrButton-18f4431c.js → OrButton-66964360.js} +3 -3
- package/dist/esm/v2/{OrCardCollection-322733bc.js → OrCardCollection-5a9eda35.js} +4 -4
- package/dist/esm/v2/{OrConfirm-61edc9a5.js → OrConfirm-9dbdedd7.js} +2 -2
- package/dist/esm/v2/{OrEmptyState-ab1a044d.js → OrEmptyState-2481f13f.js} +2 -2
- package/dist/esm/v2/{OrErrorTag-5346825b.js → OrErrorTag-80f82cdf.js} +2 -0
- package/dist/esm/v2/{OrIconButton-a648b35b.js → OrIconButton-04a3566d.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-32c724b2.js → OrInlineInput-b85b84b4.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-a7d1b655.js → OrInlineTextarea-afd33047.js} +1 -1
- package/dist/esm/v2/{OrInput-1510deaa.js → OrInput-59a15d80.js} +1 -1
- package/dist/esm/v2/{OrMenu-943e7760.js → OrMenu-c276db74.js} +15 -10
- package/dist/esm/v2/{OrModal-7b024663.js → OrModal-4e79e0d5.js} +1 -1
- package/dist/esm/v2/{OrNotification-4976dc40.js → OrNotification-eac3867f.js} +1 -1
- package/dist/esm/v2/{OrPagination-93d78a0d.js → OrPagination-1adbcadb.js} +24 -61
- package/dist/esm/v2/{OrProgress-9fc95bd7.js → OrProgress-b7d1c689.js} +3 -3
- package/dist/esm/v2/{OrSearch-37fac6da.js → OrSearch-7411388b.js} +1 -1
- package/dist/esm/v2/{OrSelect-45eb62ae.js → OrSelect-e31d1c8b.js} +2 -2
- package/dist/esm/v2/{OrSidebar-7c89f46c.js → OrSidebar-27236fbd.js} +158 -37
- package/dist/esm/v2/OrSidebarCollapseButton-cfe51a60.js +123 -0
- package/dist/esm/v2/{OrTabs-398348a5.js → OrTabs-96b0473d.js} +1 -1
- package/dist/esm/v2/{OrTag-a86928f2.js → OrTag-b2906865.js} +3 -1
- package/dist/esm/v2/{OrTooltip-4587b666.js → OrTooltip-629d44fc.js} +1 -1
- package/dist/esm/v2/components/index.js +22 -21
- 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 +2 -0
- package/dist/esm/v2/components/or-menu-v3/index.js +1 -1
- package/dist/esm/v2/components/or-menu-v3/styles.d.ts +1 -0
- 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 +0 -4
- 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/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v2/components/or-sidebar-v3/index.js +13 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +16 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +16 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +7 -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-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 -21
- package/dist/esm/v2/{types-8c69b2c8.js → types-1f95d710.js} +1 -1
- package/dist/esm/v3/{OrButton-55dd2ad9.js → OrButton-c56998e7.js} +3 -3
- package/dist/esm/v3/{OrCardCollection-3a9ccb24.js → OrCardCollection-e4fde5b4.js} +4 -4
- package/dist/esm/v3/{OrConfirm-68068bd0.js → OrConfirm-37454a63.js} +2 -2
- package/dist/esm/v3/{OrEmptyState-cd3a4026.js → OrEmptyState-bb8e3145.js} +2 -2
- package/dist/esm/v3/{OrErrorTag-a3e6ef83.js → OrErrorTag-308119de.js} +2 -0
- package/dist/esm/v3/{OrIconButton-0047e3cd.js → OrIconButton-2dcfb83e.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-6901da96.js → OrInlineInput-fbc35f85.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-a618ec30.js → OrInlineTextarea-79da8697.js} +1 -1
- package/dist/esm/v3/{OrInput-27b9f02d.js → OrInput-bd054213.js} +1 -1
- package/dist/esm/v3/{OrMenu-fd2fe1e7.js → OrMenu-7f3ea117.js} +17 -13
- package/dist/esm/v3/{OrModal-70f2b811.js → OrModal-4219a6dc.js} +1 -1
- package/dist/esm/v3/{OrNotification-7173726b.js → OrNotification-0e682c7f.js} +1 -1
- package/dist/esm/v3/{OrPagination-781c119e.js → OrPagination-da9e5017.js} +26 -64
- package/dist/esm/v3/{OrProgress-4856808a.js → OrProgress-639ed5e8.js} +3 -3
- package/dist/esm/v3/{OrSearch-9e1efad2.js → OrSearch-5406bf03.js} +1 -1
- package/dist/esm/v3/{OrSelect-07834b65.js → OrSelect-466e50ca.js} +2 -2
- package/dist/esm/v3/OrSidebar-61d84c3e.js +313 -0
- package/dist/esm/v3/OrSidebarCollapseButton-1b9c83ef.js +94 -0
- package/dist/esm/v3/{OrTabs-34c67377.js → OrTabs-328d41b9.js} +1 -1
- package/dist/esm/v3/{OrTag-355e7a3e.js → OrTag-148ff9ae.js} +3 -1
- package/dist/esm/v3/{OrTooltip-4e670a38.js → OrTooltip-b07616f4.js} +1 -1
- package/dist/esm/v3/components/index.js +22 -21
- 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 +2 -0
- package/dist/esm/v3/components/or-menu-v3/index.js +1 -1
- package/dist/esm/v3/components/or-menu-v3/styles.d.ts +1 -0
- 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 +0 -4
- 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/OrSidebar.stories3.d.ts +36 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
- package/dist/esm/v3/components/or-sidebar-v3/index.js +12 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +15 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +15 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +7 -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-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 -21
- package/dist/esm/v3/{types-c1956faf.js → types-b79e4387.js} +1 -1
- package/package.json +2 -2
- 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 +3 -0
- package/src/components/or-menu-v3/OrMenu.vue +26 -22
- package/src/components/or-menu-v3/styles.ts +5 -0
- package/src/components/or-pagination-v3/OrPagination.vue +42 -86
- 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/OrSidebar.docs.mdx +6 -0
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +253 -12
- package/src/components/or-sidebar-v3/OrSidebar.vue +130 -23
- package/src/components/or-sidebar-v3/partials/index.ts +1 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +48 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +79 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +1 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.ts +50 -0
- package/src/components/or-sidebar-v3/styles.ts +117 -12
- package/src/components/or-tag-v3/OrTag.stories3.ts +5 -5
- package/src/components/or-tag-v3/styles.ts +3 -0
- package/src/components/or-tooltip-v3/styles.ts +1 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-d298c2fa.js +0 -181
- package/dist/esm/v3/OrSidebar-5d97c7cc.js +0 -206
package/dist/esm/v3/index.js
CHANGED
|
@@ -3,10 +3,10 @@ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-6
|
|
|
3
3
|
export { s as OrBottomSheetV3 } from './OrBottomSheet-13a416ef.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-fca9019a.js';
|
|
5
5
|
export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from './OrIconButton-8be9c89f.js';
|
|
6
|
-
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-
|
|
6
|
+
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-c56998e7.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1e44c758.js';
|
|
9
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-e4fde5b4.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-cd6af82e.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
|
|
@@ -16,26 +16,26 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
|
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-c11ee2ec.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-37454a63.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
|
-
export { s as OrErrorTagV3 } from './OrErrorTag-
|
|
22
|
+
export { s as OrErrorTagV3 } from './OrErrorTag-308119de.js';
|
|
23
23
|
export { s as OrErrorV3 } from './OrError-19198748.js';
|
|
24
|
-
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-
|
|
24
|
+
export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-bb8e3145.js';
|
|
25
25
|
export { a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-3a4282da.js';
|
|
26
26
|
export { F as FabColor, s as OrFabV3 } from './OrFab-61131b31.js';
|
|
27
27
|
export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-5240e758.js';
|
|
28
28
|
export { s as OrHint } from './OrHint-1414c530.js';
|
|
29
29
|
export { s as OrHintV3 } from './OrHint-6863124f.js';
|
|
30
30
|
export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-669503c3.js';
|
|
31
|
-
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-
|
|
31
|
+
export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-2dcfb83e.js';
|
|
32
32
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-34f59f73.js';
|
|
33
33
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-09b33e18.js';
|
|
34
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-
|
|
34
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-fbc35f85.js';
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
36
|
-
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-
|
|
36
|
+
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-79da8697.js';
|
|
37
37
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-e16ade90.js';
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-bd054213.js';
|
|
39
39
|
export { s as OrInput } from './OrInput-81125804.js';
|
|
40
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
41
41
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
|
|
@@ -45,30 +45,31 @@ export { s as OrListOfInputs } from './OrListOfInputs-508e056f.js';
|
|
|
45
45
|
export { L as LoaderViews, s as OrLoader } from './OrLoader-15174477.js';
|
|
46
46
|
export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-a53d2edf.js';
|
|
47
47
|
export { s as OrMenuItemV3 } from './OrMenuItem-58707d47.js';
|
|
48
|
-
export { s as OrMenuV3 } from './OrMenu-
|
|
48
|
+
export { s as OrMenuV3 } from './OrMenu-7f3ea117.js';
|
|
49
49
|
export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-40217b49.js';
|
|
50
50
|
export { s as OrModal, O as OrModalSizes } from './OrModal-8b074b0c.js';
|
|
51
|
-
export { M as ModalSize, s as OrModalV3 } from './OrModal-
|
|
51
|
+
export { M as ModalSize, s as OrModalV3 } from './OrModal-4219a6dc.js';
|
|
52
52
|
export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-e85a4956.js';
|
|
53
|
-
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-
|
|
53
|
+
export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-0e682c7f.js';
|
|
54
54
|
export { s as OrNumberInput } from './OrNumberInput-b32b5ce3.js';
|
|
55
55
|
export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
|
|
56
56
|
export { s as OrOverlay } from './OrOverlay-451dce49.js';
|
|
57
57
|
export { s as OrOverlayV3 } from './OrOverlay-afad3aa4.js';
|
|
58
58
|
export { s as OrPassword } from './OrPassword-b0cbb578.js';
|
|
59
|
-
export { s as OrPaginationV3 } from './OrPagination-
|
|
59
|
+
export { s as OrPaginationV3 } from './OrPagination-da9e5017.js';
|
|
60
60
|
export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-d0d52c86.js';
|
|
61
|
-
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-
|
|
61
|
+
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-639ed5e8.js';
|
|
62
62
|
export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
63
63
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
64
64
|
export { s as OrRadioV3 } from './OrRadio-bb9b37c1.js';
|
|
65
65
|
export { s as OrSearch } from './OrSearch-11fdf667.js';
|
|
66
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { s as OrSearchV3 } from './OrSearch-5406bf03.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
|
|
68
68
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
69
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
69
|
+
export { s as OrSelectV3 } from './OrSelect-466e50ca.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
71
|
-
export {
|
|
71
|
+
export { s as OrSidebarV3 } from './OrSidebar-61d84c3e.js';
|
|
72
|
+
export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-1b9c83ef.js';
|
|
72
73
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
73
74
|
export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-afd3d007.js';
|
|
74
75
|
export { s as OrSlider } from './OrSlider-87e2da8c.js';
|
|
@@ -80,9 +81,9 @@ export { s as OrTab } from './OrTab-bc98be02.js';
|
|
|
80
81
|
export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
|
|
81
82
|
export { s as OrTabV3 } from './OrTab-d3785ea4.js';
|
|
82
83
|
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
83
|
-
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-
|
|
84
|
+
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-328d41b9.js';
|
|
84
85
|
export { s as OrTag } from './OrTag-1b5e43fa.js';
|
|
85
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-
|
|
86
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-148ff9ae.js';
|
|
86
87
|
export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
|
|
87
88
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
88
89
|
export { s as OrTextV3 } from './OrText-6b4f7cd1.js';
|
|
@@ -91,10 +92,10 @@ export { s as OrTextareaV3 } from './OrTextarea-37566985.js';
|
|
|
91
92
|
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
|
|
92
93
|
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
|
|
93
94
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
94
|
-
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-
|
|
95
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-b79e4387.js';
|
|
95
96
|
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
96
97
|
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
|
|
97
|
-
export { s as OrTooltipV3 } from './OrTooltip-
|
|
98
|
+
export { s as OrTooltipV3 } from './OrTooltip-b07616f4.js';
|
|
98
99
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
99
100
|
export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-859439f0.js';
|
|
100
101
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
@@ -2,7 +2,7 @@ import { useToggle } from '@vueuse/core';
|
|
|
2
2
|
import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
|
|
3
3
|
import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
|
|
4
4
|
import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
|
|
5
|
-
import { s as script$2 } from './OrIconButton-
|
|
5
|
+
import { s as script$2 } from './OrIconButton-2dcfb83e.js';
|
|
6
6
|
import { s as script$3 } from './OrLoader-a53d2edf.js';
|
|
7
7
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.72.2-beta.
|
|
3
|
+
"version": "2.72.2-beta.2274.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
40
|
"@floating-ui/dom": "0.3.1",
|
|
41
|
-
"@onereach/styles": "^2.34.
|
|
41
|
+
"@onereach/styles": "^2.34.0",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -7,7 +7,7 @@ export const ButtonRoot: string[] = [
|
|
|
7
7
|
// Shape
|
|
8
8
|
'rounded-md',
|
|
9
9
|
|
|
10
|
-
//
|
|
10
|
+
// Sizing
|
|
11
11
|
'min-w-[96px]',
|
|
12
12
|
|
|
13
13
|
// Interactivity
|
|
@@ -48,9 +48,9 @@ export const ButtonRootVariants: Record<ButtonVariant, string[]> = {
|
|
|
48
48
|
|
|
49
49
|
'link': [
|
|
50
50
|
// Spacing
|
|
51
|
-
'gap-xs',
|
|
51
|
+
'gap-sm md:gap-xs',
|
|
52
52
|
|
|
53
|
-
//
|
|
53
|
+
// Sizing
|
|
54
54
|
'min-w-[auto]',
|
|
55
55
|
],
|
|
56
56
|
};
|
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
ref="
|
|
4
|
-
:
|
|
5
|
-
:trigger="trigger"
|
|
6
|
-
:placement="placement"
|
|
7
|
-
:full-width="false"
|
|
8
|
-
:disable-default-styles="false"
|
|
9
|
-
@update:state="$emit('update:state', $event)"
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
:class="rootStyles"
|
|
10
5
|
>
|
|
11
|
-
<
|
|
12
|
-
ref="
|
|
13
|
-
|
|
14
|
-
:
|
|
15
|
-
|
|
6
|
+
<OrPopover
|
|
7
|
+
ref="popover"
|
|
8
|
+
:variant="'auto'"
|
|
9
|
+
:trigger="trigger"
|
|
10
|
+
:placement="placement"
|
|
11
|
+
:full-width="false"
|
|
12
|
+
:disable-default-styles="false"
|
|
13
|
+
@update:state="$emit('update:state', $event)"
|
|
16
14
|
>
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
<div
|
|
16
|
+
:class="bodyStyles"
|
|
17
|
+
@click.stop="onClick"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
21
|
+
</OrPopover>
|
|
22
|
+
</div>
|
|
20
23
|
</template>
|
|
21
24
|
|
|
22
25
|
<script lang="ts">
|
|
23
26
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
24
27
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
25
28
|
import { MenuPlacement } from './props';
|
|
26
|
-
import { MenuRoot } from './styles';
|
|
29
|
+
import { MenuBody, MenuRoot } from './styles';
|
|
27
30
|
|
|
28
31
|
export default defineComponent({
|
|
29
32
|
name: 'OrMenu',
|
|
@@ -32,8 +35,6 @@ export default defineComponent({
|
|
|
32
35
|
OrPopover,
|
|
33
36
|
},
|
|
34
37
|
|
|
35
|
-
inheritAttrs: false,
|
|
36
|
-
|
|
37
38
|
props: {
|
|
38
39
|
trigger: {
|
|
39
40
|
type: HTMLElement,
|
|
@@ -52,9 +53,9 @@ export default defineComponent({
|
|
|
52
53
|
|
|
53
54
|
expose: [
|
|
54
55
|
'root',
|
|
55
|
-
'isOpen',
|
|
56
56
|
'open',
|
|
57
57
|
'close',
|
|
58
|
+
'isOpen',
|
|
58
59
|
'toggle',
|
|
59
60
|
],
|
|
60
61
|
|
|
@@ -64,6 +65,7 @@ export default defineComponent({
|
|
|
64
65
|
|
|
65
66
|
const popover = ref<InstanceType<typeof OrPopover>>();
|
|
66
67
|
const popoverRoot = computed(() => popover.value?.root);
|
|
68
|
+
const isOpen = computed(() => popover.value?.isOpen);
|
|
67
69
|
|
|
68
70
|
// Styles
|
|
69
71
|
const rootStyles = computed(() => [
|
|
@@ -71,8 +73,9 @@ export default defineComponent({
|
|
|
71
73
|
...MenuRoot,
|
|
72
74
|
]);
|
|
73
75
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
const bodyStyles = computed(() => [
|
|
77
|
+
...MenuBody,
|
|
78
|
+
]);
|
|
76
79
|
|
|
77
80
|
// Methods
|
|
78
81
|
function open(): void {
|
|
@@ -113,6 +116,7 @@ export default defineComponent({
|
|
|
113
116
|
popover,
|
|
114
117
|
popoverRoot,
|
|
115
118
|
rootStyles,
|
|
119
|
+
bodyStyles,
|
|
116
120
|
isOpen,
|
|
117
121
|
open,
|
|
118
122
|
close,
|
|
@@ -14,35 +14,31 @@
|
|
|
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
|
-
|
|
38
|
-
</OrButton>
|
|
39
|
-
</template>
|
|
17
|
+
<OrButton
|
|
18
|
+
v-for="(page, index) in buttonGroup"
|
|
19
|
+
:key="index"
|
|
20
|
+
:class="itemStyles"
|
|
21
|
+
:variant="'link'"
|
|
22
|
+
:color="'inherit'"
|
|
23
|
+
:activated="currentPage === page"
|
|
24
|
+
@click.stop="typeof page === 'number' && toPage(page)"
|
|
25
|
+
>
|
|
26
|
+
{{ page }}
|
|
27
|
+
</OrButton>
|
|
28
|
+
|
|
29
|
+
<OrButton
|
|
30
|
+
:class="itemStyles"
|
|
31
|
+
:variant="'link'"
|
|
32
|
+
:color="'inherit'"
|
|
33
|
+
:disabled="currentPage === lastPage"
|
|
34
|
+
@click.stop="toNextPage()"
|
|
35
|
+
>
|
|
36
|
+
<OrIcon :icon="'keyboard_arrow_right'" />
|
|
37
|
+
</OrButton>
|
|
40
38
|
</div>
|
|
41
39
|
|
|
42
40
|
<div :class="limitControlStyles">
|
|
43
|
-
|
|
44
|
-
Per page:
|
|
45
|
-
</template>
|
|
41
|
+
Per page:
|
|
46
42
|
|
|
47
43
|
<OrButton
|
|
48
44
|
ref="limitButton"
|
|
@@ -52,44 +48,28 @@
|
|
|
52
48
|
:activated="true"
|
|
53
49
|
@click.stop="limitMenu.open()"
|
|
54
50
|
>
|
|
55
|
-
{{ currentLimit }} <OrIcon :icon="
|
|
51
|
+
{{ currentLimit }} <OrIcon :icon="'arrow_drop_down'" />
|
|
56
52
|
</OrButton>
|
|
57
53
|
|
|
58
54
|
<OrMenu
|
|
59
55
|
ref="limitMenu"
|
|
60
|
-
:class="['min-w-[60px]']"
|
|
61
56
|
:trigger="limitButtonRoot"
|
|
62
57
|
:placement="'top'"
|
|
63
58
|
>
|
|
64
59
|
<OrMenuItem
|
|
65
60
|
v-for="pageSize in pageSizeOptions"
|
|
66
61
|
:key="pageSize"
|
|
67
|
-
@click.stop="currentLimit = pageSize
|
|
62
|
+
@click.stop="currentLimit = pageSize"
|
|
68
63
|
>
|
|
69
64
|
{{ pageSize }}
|
|
70
65
|
</OrMenuItem>
|
|
71
66
|
</OrMenu>
|
|
72
67
|
</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>
|
|
87
68
|
</div>
|
|
88
69
|
</template>
|
|
89
70
|
|
|
90
71
|
<script lang="ts">
|
|
91
72
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
92
|
-
import { useResponsive } from '../../hooks';
|
|
93
73
|
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
94
74
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
95
75
|
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
@@ -138,8 +118,6 @@ export default defineComponent({
|
|
|
138
118
|
],
|
|
139
119
|
|
|
140
120
|
setup(props, context) {
|
|
141
|
-
const { isDesktop, isMobile } = useResponsive();
|
|
142
|
-
|
|
143
121
|
// Refs
|
|
144
122
|
const root = ref<HTMLElement>();
|
|
145
123
|
|
|
@@ -215,43 +193,24 @@ export default defineComponent({
|
|
|
215
193
|
});
|
|
216
194
|
|
|
217
195
|
const buttonGroup = computed<(number | string)[]>(() => {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
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
|
-
}
|
|
196
|
+
return Array.from({ length: lastPage.value }, (_, index) => index + 1)
|
|
197
|
+
.map((page) => {
|
|
198
|
+
switch (true) {
|
|
199
|
+
case page > firstPage.value && page < currentPage.value - 1:
|
|
200
|
+
case page > currentPage.value + 1 && page < lastPage.value:
|
|
201
|
+
return '…';
|
|
202
|
+
|
|
203
|
+
default:
|
|
204
|
+
return page;
|
|
205
|
+
}
|
|
206
|
+
})
|
|
207
|
+
.reduce((accumulator, page) => {
|
|
208
|
+
if (accumulator[accumulator.length - 1] === page) {
|
|
209
|
+
return accumulator;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return [...accumulator, page];
|
|
213
|
+
}, [] as (number | string)[]);
|
|
255
214
|
});
|
|
256
215
|
|
|
257
216
|
// Methods
|
|
@@ -268,9 +227,6 @@ export default defineComponent({
|
|
|
268
227
|
}
|
|
269
228
|
|
|
270
229
|
return {
|
|
271
|
-
isDesktop,
|
|
272
|
-
isMobile,
|
|
273
|
-
|
|
274
230
|
root,
|
|
275
231
|
limitButton,
|
|
276
232
|
limitButtonRoot,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProgressType, ProgressColor } 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
|
+
// Sizing
|
|
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
|
+
// Sizing
|
|
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
|
+
// Sizing
|
|
106
106
|
'mt-[2px]',
|
|
107
107
|
];
|