@onereach/ui-components 2.72.2-beta.2279.0 → 2.73.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/{OrAvatar-f2b1ee1c.js → OrAvatar-586e417b.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-8ba1c77b.js → OrCardCollection-4ac89ea5.js} +4 -4
- package/dist/bundled/v2/{OrConfirm-ab9fda87.js → OrConfirm-8c0e957d.js} +1 -1
- package/dist/bundled/v2/{OrErrorTag-4675604d.js → OrErrorTag-97a9112b.js} +1 -1
- package/dist/bundled/v2/{OrExpansionPanel-8968da49.js → OrExpansionPanel-96b8f568.js} +1 -1
- package/dist/bundled/v2/{OrFab-a2e49eaa.js → OrFab-ed69dee1.js} +1 -1
- package/dist/bundled/v2/{OrIcon-2efd1925.js → OrIcon-458206aa.js} +1 -3
- package/dist/bundled/v2/{OrIconButton-876b6351.js → OrIconButton-837d57f8.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-7a230176.js → OrInlineInput-57fccb41.js} +1 -1
- package/dist/bundled/v2/{OrInlineTextarea-97334f79.js → OrInlineTextarea-f8b86cf7.js} +1 -1
- package/dist/bundled/v2/{OrInput-2f499599.js → OrInput-00070eee.js} +2 -2
- package/dist/bundled/v2/{OrMenuItem-f295292e.js → OrMenuItem-e2693a5f.js} +1 -1
- package/dist/bundled/v2/{OrModal-83900091.js → OrModal-78f5d49e.js} +1 -1
- package/dist/bundled/v2/{OrNotification-708ce1db.js → OrNotification-458fe937.js} +2 -2
- package/dist/bundled/v2/{OrPagination-e34482ef.js → OrPagination-daf25de2.js} +2 -2
- package/dist/bundled/v2/{OrSearch-bb66a66c.js → OrSearch-09fd004c.js} +1 -1
- package/dist/bundled/v2/{OrSelect-54a0b737.js → OrSelect-2ececfc1.js} +6 -8
- package/dist/bundled/v2/{OrSidebar-c95ef614.js → OrSidebar-a2bc21b9.js} +155 -34
- package/dist/bundled/v2/OrSidebarCollapseButton-8297ef86.js +125 -0
- package/dist/bundled/v2/{OrSortHeader-b1b961fc.js → OrSortHeader-565ace92.js} +1 -1
- package/dist/bundled/v2/{OrTabs-9fc1ac93.js → OrTabs-d69780fc.js} +2 -2
- package/dist/bundled/v2/{OrTag-3e442bf6.js → OrTag-4085e8a7.js} +1 -1
- package/dist/bundled/v2/components/index.js +23 -22
- package/dist/bundled/v2/components/or-avatar-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -6
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-error-tag-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-fab-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-icon-v3/index.js +1 -1
- 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-item-v3/index.js +2 -2
- 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/index.js +3 -3
- package/dist/bundled/v2/components/or-search-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-select-v3/index.js +7 -7
- 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-sort-header-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-tabs-v3/index.js +3 -3
- 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/index.js +24 -23
- package/dist/bundled/v2/{types-b0d25b49.js → types-309b7b94.js} +1 -1
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-75c23e62.js → OrAvatar.vue_vue_type_script_lang-582e74ae.js} +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-0a1b0f0f.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +7 -7
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ef8f1f5d.js → OrConfirm.vue_vue_type_script_lang-eb2bfce2.js} +2 -2
- package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-bfa4c580.js → OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js} +2 -2
- package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-cd3b6d36.js → OrExpansionPanel.vue_vue_type_script_lang-2cc8964c.js} +2 -2
- package/dist/bundled/v3/{OrFab.vue_vue_type_script_lang-8f76f6b1.js → OrFab.vue_vue_type_script_lang-0fe4a921.js} +2 -2
- package/dist/bundled/v3/{OrIcon-0239fc17.js → OrIcon-1a5c9091.js} +1 -1
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-6a85c6c6.js → OrIcon.vue_vue_type_script_lang-bdbaad94.js} +1 -3
- package/dist/bundled/v3/{OrIconButton-59bc1d54.js → OrIconButton-e0566ecf.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-efefd119.js → OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-da4198ec.js → OrInlineInput.vue_vue_type_script_lang-49ce3308.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a7f62f75.js → OrInlineTextarea.vue_vue_type_script_lang-8fd761d7.js} +2 -2
- package/dist/bundled/v3/{OrInput-dde27420.js → OrInput-dcf2606e.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-71f6dede.js → OrInput.vue_vue_type_script_lang-27220623.js} +4 -4
- package/dist/bundled/v3/{OrMenuItem-1917f51a.js → OrMenuItem-807e2a49.js} +1 -1
- package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-0b643c00.js → OrMenuItem.vue_vue_type_script_lang-2400ec2a.js} +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-07249365.js → OrModal.vue_vue_type_script_lang-6b1dc231.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-f308ec11.js → OrNotification.vue_vue_type_script_lang-d0afc1d7.js} +4 -4
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-4d27d8b8.js → OrPagination.vue_vue_type_script_lang-f64827ef.js} +4 -4
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-eaad7c05.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-ca25de68.js → OrSelect.vue_vue_type_script_lang-7fd5e2f0.js} +9 -11
- 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/{OrSortHeader.vue_vue_type_script_lang-85238e0a.js → OrSortHeader.vue_vue_type_script_lang-a20eae87.js} +2 -2
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-f3b84f9d.js → OrTabs.vue_vue_type_script_lang-cb550e87.js} +4 -4
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-89d99975.js → OrTag.vue_vue_type_script_lang-a25a49ee.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer-3dfed0e6.js → OrToastContainer-6fe12712.js} +1 -1
- package/dist/bundled/v3/components/index.js +27 -26
- package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +10 -10
- package/dist/bundled/v3/components/or-confirm-v3/index.js +7 -7
- package/dist/bundled/v3/components/or-error-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-expansion-panel-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-fab-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-icon-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-input-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-menu-item-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-modal-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-notification-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-search-v3/index.js +7 -7
- package/dist/bundled/v3/components/or-select-v3/index.js +11 -11
- 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-sort-header-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tabs-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-tag-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-toast-v3/index.js +6 -6
- package/dist/bundled/v3/index.js +65 -48
- package/dist/bundled/v3/{types-dd2c3bf1.js → types-22fbf9d6.js} +2 -2
- package/dist/esm/v2/{OrAvatar-ca3a1268.js → OrAvatar-379ac72f.js} +1 -1
- package/dist/esm/v2/{OrCardCollection-409f2437.js → OrCardCollection-5a9eda35.js} +4 -4
- package/dist/esm/v2/{OrConfirm-08185678.js → OrConfirm-9dbdedd7.js} +1 -1
- package/dist/esm/v2/{OrErrorTag-7cd5dc68.js → OrErrorTag-80f82cdf.js} +1 -1
- package/dist/esm/v2/{OrExpansionPanel-0a12d957.js → OrExpansionPanel-729eb1e7.js} +1 -1
- package/dist/esm/v2/{OrFab-d5a37b22.js → OrFab-1d095e33.js} +1 -1
- package/dist/esm/v2/{OrIcon-c434985a.js → OrIcon-f34e0e6f.js} +1 -3
- package/dist/esm/v2/{OrIconButton-c8bb635e.js → OrIconButton-04a3566d.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-d9bbdaf2.js → OrInlineInput-b85b84b4.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-f7378459.js → OrInlineTextarea-afd33047.js} +1 -1
- package/dist/esm/v2/{OrInput-ca315c4e.js → OrInput-59a15d80.js} +2 -2
- package/dist/esm/v2/{OrMenuItem-4f810513.js → OrMenuItem-7b7fbf8a.js} +1 -1
- package/dist/esm/v2/{OrModal-7ca36163.js → OrModal-4e79e0d5.js} +1 -1
- package/dist/esm/v2/{OrNotification-2013cadf.js → OrNotification-eac3867f.js} +2 -2
- package/dist/esm/v2/{OrPagination-c2653bd1.js → OrPagination-1adbcadb.js} +2 -2
- package/dist/esm/v2/{OrSearch-fc4cfb78.js → OrSearch-7411388b.js} +1 -1
- package/dist/esm/v2/{OrSelect-2d04591d.js → OrSelect-e31d1c8b.js} +6 -8
- package/dist/esm/v2/{OrSidebar-fabc7bc9.js → OrSidebar-27236fbd.js} +155 -34
- package/dist/esm/v2/OrSidebarCollapseButton-cfe51a60.js +123 -0
- package/dist/esm/v2/{OrSortHeader-ffe6bc57.js → OrSortHeader-592727dc.js} +1 -1
- package/dist/esm/v2/{OrTabs-2992f88f.js → OrTabs-96b0473d.js} +2 -2
- package/dist/esm/v2/{OrTag-920c6371.js → OrTag-b2906865.js} +1 -1
- package/dist/esm/v2/components/index.js +23 -22
- package/dist/esm/v2/components/or-avatar-v3/index.js +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +6 -6
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v2/components/or-error-tag-v3/index.js +2 -2
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/esm/v2/components/or-fab-v3/index.js +2 -2
- package/dist/esm/v2/components/or-icon-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-icon-v3/index.js +1 -1
- 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-item-v3/index.js +2 -2
- 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/index.js +3 -3
- package/dist/esm/v2/components/or-search-v3/index.js +4 -4
- package/dist/esm/v2/components/or-select-v3/index.js +7 -7
- 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-sort-header-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
- 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/index.js +23 -22
- package/dist/esm/v2/{types-38818808.js → types-1f95d710.js} +1 -1
- package/dist/esm/v3/{OrAvatar-0dbd8be8.js → OrAvatar-6444e693.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-433b2d98.js → OrCardCollection-e4fde5b4.js} +4 -4
- package/dist/esm/v3/{OrConfirm-1facf86d.js → OrConfirm-37454a63.js} +1 -1
- package/dist/esm/v3/{OrErrorTag-0025b17c.js → OrErrorTag-308119de.js} +1 -1
- package/dist/esm/v3/{OrExpansionPanel-541cc4c1.js → OrExpansionPanel-3a4282da.js} +1 -1
- package/dist/esm/v3/{OrFab-588291bf.js → OrFab-61131b31.js} +1 -1
- package/dist/esm/v3/{OrIcon-ea40e58c.js → OrIcon-34f59f73.js} +1 -3
- package/dist/esm/v3/{OrIconButton-3d32cdcf.js → OrIconButton-2dcfb83e.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-72effa88.js → OrInlineInput-fbc35f85.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-0bb8ef1c.js → OrInlineTextarea-79da8697.js} +1 -1
- package/dist/esm/v3/{OrInput-b4347f58.js → OrInput-bd054213.js} +2 -2
- package/dist/esm/v3/{OrMenuItem-de91aded.js → OrMenuItem-58707d47.js} +1 -1
- package/dist/esm/v3/{OrModal-a5fa8240.js → OrModal-4219a6dc.js} +1 -1
- package/dist/esm/v3/{OrNotification-8f34d624.js → OrNotification-0e682c7f.js} +2 -2
- package/dist/esm/v3/{OrPagination-7b240dec.js → OrPagination-da9e5017.js} +2 -2
- package/dist/esm/v3/{OrSearch-88563218.js → OrSearch-5406bf03.js} +1 -1
- package/dist/esm/v3/{OrSelect-131cce4e.js → OrSelect-466e50ca.js} +6 -8
- package/dist/esm/v3/OrSidebar-61d84c3e.js +313 -0
- package/dist/esm/v3/OrSidebarCollapseButton-1b9c83ef.js +94 -0
- package/dist/esm/v3/{OrSortHeader-f66dcb37.js → OrSortHeader-a39f77f9.js} +1 -1
- package/dist/esm/v3/{OrTabs-80cbb3b9.js → OrTabs-328d41b9.js} +2 -2
- package/dist/esm/v3/{OrTag-1d3fa09e.js → OrTag-148ff9ae.js} +1 -1
- package/dist/esm/v3/components/index.js +23 -22
- package/dist/esm/v3/components/or-avatar-v3/index.js +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +6 -6
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v3/components/or-error-tag-v3/index.js +2 -2
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/esm/v3/components/or-fab-v3/index.js +2 -2
- package/dist/esm/v3/components/or-icon-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-icon-v3/index.js +1 -1
- 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-item-v3/index.js +2 -2
- 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/index.js +3 -3
- package/dist/esm/v3/components/or-search-v3/index.js +4 -4
- package/dist/esm/v3/components/or-select-v3/index.js +7 -7
- 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-sort-header-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
- 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/index.js +23 -22
- package/dist/esm/v3/{types-4e316bd3.js → types-b79e4387.js} +1 -1
- package/package.json +3 -2
- package/src/components/or-icon-v3/styles.ts +0 -3
- package/src/components/or-select-v3/styles.ts +0 -3
- 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 +114 -9
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +0 -181
- package/dist/esm/v3/OrSidebar-a62972f5.js +0 -206
|
@@ -2,28 +2,55 @@
|
|
|
2
2
|
<aside
|
|
3
3
|
ref="root"
|
|
4
4
|
:class="rootStyles"
|
|
5
|
-
:style="sidebarStyle"
|
|
6
5
|
>
|
|
7
6
|
<div
|
|
8
|
-
|
|
9
|
-
:class="
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
v-if="side === 'right' && isShowingToolbar"
|
|
8
|
+
:class="toolbarStyles"
|
|
9
|
+
>
|
|
10
|
+
<slot name="toolbar" />
|
|
11
|
+
</div>
|
|
12
|
+
<div
|
|
13
|
+
:class="sidebarStyles"
|
|
14
|
+
:style="sidebarStyle"
|
|
15
|
+
>
|
|
12
16
|
<div
|
|
13
|
-
v-if="
|
|
14
|
-
|
|
17
|
+
v-if="draggable && !isCollapsed"
|
|
18
|
+
ref="resizeBar"
|
|
19
|
+
:class="resizeStyles"
|
|
20
|
+
/>
|
|
21
|
+
<or-sidebar-collapse-button
|
|
22
|
+
v-if="collapsible"
|
|
23
|
+
v-model="isCollapsed"
|
|
24
|
+
:class="collapsibleButtonStyles"
|
|
25
|
+
:side="side"
|
|
26
|
+
/>
|
|
27
|
+
<div
|
|
28
|
+
v-show="!isCollapsed"
|
|
29
|
+
:class="mainStyles"
|
|
15
30
|
>
|
|
16
|
-
<
|
|
31
|
+
<div
|
|
32
|
+
v-if="$slots.header"
|
|
33
|
+
:class="headerStyles"
|
|
34
|
+
>
|
|
35
|
+
<slot name="header" />
|
|
36
|
+
</div>
|
|
37
|
+
<div :class="contentStyles">
|
|
38
|
+
<slot />
|
|
39
|
+
</div>
|
|
17
40
|
</div>
|
|
18
|
-
<div
|
|
19
|
-
|
|
41
|
+
<div
|
|
42
|
+
v-if="$slots.footer"
|
|
43
|
+
v-show="!isCollapsed"
|
|
44
|
+
:class="footerStyles"
|
|
45
|
+
>
|
|
46
|
+
<slot name="footer" />
|
|
20
47
|
</div>
|
|
21
48
|
</div>
|
|
22
49
|
<div
|
|
23
|
-
v-if="
|
|
24
|
-
:class="
|
|
50
|
+
v-if="side === 'left' && isShowingToolbar"
|
|
51
|
+
:class="toolbarStyles"
|
|
25
52
|
>
|
|
26
|
-
<slot name="
|
|
53
|
+
<slot name="toolbar" />
|
|
27
54
|
</div>
|
|
28
55
|
</aside>
|
|
29
56
|
</template>
|
|
@@ -31,34 +58,48 @@
|
|
|
31
58
|
<script lang="ts">
|
|
32
59
|
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
33
60
|
import _ from 'lodash';
|
|
34
|
-
import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
|
|
61
|
+
import { computed, defineComponent, PropType, ref, watch, useSlots } from 'vue-demi';
|
|
35
62
|
import { OrSidebarPlacement } from './props';
|
|
36
63
|
import {
|
|
37
64
|
SidebarRoot,
|
|
38
|
-
|
|
65
|
+
SidebarBar,
|
|
66
|
+
SidebarToolbar,
|
|
67
|
+
CollapsibleSidebarToolbar,
|
|
68
|
+
SidebarSides,
|
|
69
|
+
SidebarToolbarSides,
|
|
39
70
|
SidebarResize,
|
|
40
71
|
SidebarResizeSides,
|
|
72
|
+
SidebarCollapseButton,
|
|
73
|
+
SidebarCollapseButtonSides,
|
|
41
74
|
SidebarResizingSides,
|
|
42
75
|
SidebarMain,
|
|
43
76
|
SidebarHeader,
|
|
44
77
|
SidebarContent,
|
|
45
78
|
SidebarFooter,
|
|
46
79
|
} from './styles';
|
|
80
|
+
import { OrSidebarCollapseButton } from './partials';
|
|
47
81
|
|
|
48
82
|
export default defineComponent({
|
|
49
83
|
name: 'OrSidebar',
|
|
50
84
|
|
|
85
|
+
components: {
|
|
86
|
+
OrSidebarCollapseButton,
|
|
87
|
+
},
|
|
88
|
+
|
|
51
89
|
props: {
|
|
52
90
|
width: {
|
|
53
91
|
type: Number,
|
|
54
|
-
|
|
55
|
-
default: 0,
|
|
92
|
+
default: 320,
|
|
56
93
|
validator: (value?: any) => _.isNumber(value) && value >= 0,
|
|
57
94
|
},
|
|
58
95
|
minimumWidth: {
|
|
59
96
|
type: Number,
|
|
60
|
-
|
|
61
|
-
|
|
97
|
+
default: 256,
|
|
98
|
+
validator: (value?: any) => _.isNumber(value) && value >= 0,
|
|
99
|
+
},
|
|
100
|
+
maximumWidth: {
|
|
101
|
+
type: Number,
|
|
102
|
+
default: 384,
|
|
62
103
|
validator: (value?: any) => _.isNumber(value) && value >= 0,
|
|
63
104
|
},
|
|
64
105
|
/**
|
|
@@ -73,9 +114,27 @@ export default defineComponent({
|
|
|
73
114
|
default: OrSidebarPlacement.right,
|
|
74
115
|
validator: (value?: any) => _.includes(_.values(OrSidebarPlacement), value),
|
|
75
116
|
},
|
|
117
|
+
draggable: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: true,
|
|
120
|
+
},
|
|
121
|
+
collapsible: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: false,
|
|
124
|
+
},
|
|
76
125
|
},
|
|
77
126
|
|
|
78
|
-
emits: [
|
|
127
|
+
emits: [
|
|
128
|
+
'change:width',
|
|
129
|
+
'open',
|
|
130
|
+
'close',
|
|
131
|
+
],
|
|
132
|
+
|
|
133
|
+
expose: [
|
|
134
|
+
'root',
|
|
135
|
+
'open',
|
|
136
|
+
'close',
|
|
137
|
+
],
|
|
79
138
|
|
|
80
139
|
setup(props, { emit }) {
|
|
81
140
|
// Refs
|
|
@@ -84,20 +143,37 @@ export default defineComponent({
|
|
|
84
143
|
|
|
85
144
|
const parentContainer = computed(() => root.value?.parentElement);
|
|
86
145
|
|
|
146
|
+
// Slots
|
|
147
|
+
const { toolbar: toolbarSlot } = useSlots();
|
|
148
|
+
|
|
87
149
|
// State
|
|
88
150
|
const startPositionX = ref(0);
|
|
89
151
|
const isResizing = ref(false);
|
|
152
|
+
const isCollapsed = ref(false);
|
|
153
|
+
const maximumWidth = ref(props.maximumWidth || 384);
|
|
90
154
|
const localWidth = ref(props.width >= props.minimumWidth ? props.width : props.minimumWidth);
|
|
91
155
|
|
|
156
|
+
const isShowingToolbar = computed(() => !!toolbarSlot);
|
|
157
|
+
|
|
92
158
|
// Styles
|
|
93
159
|
const sidebarStyle = computed(() => ({
|
|
94
|
-
width: localWidth.value + 'px',
|
|
160
|
+
width: (isCollapsed.value ? 16 : localWidth.value) + 'px',
|
|
95
161
|
}));
|
|
96
162
|
|
|
97
163
|
const rootStyles = computed(() => [
|
|
98
164
|
'or-sidebar',
|
|
99
165
|
...SidebarRoot,
|
|
100
|
-
|
|
166
|
+
]);
|
|
167
|
+
|
|
168
|
+
const sidebarStyles = computed(() => [
|
|
169
|
+
...SidebarBar,
|
|
170
|
+
...SidebarSides[props.side],
|
|
171
|
+
]);
|
|
172
|
+
|
|
173
|
+
const toolbarStyles = computed(() => [
|
|
174
|
+
...SidebarToolbar,
|
|
175
|
+
...(props.collapsible ? CollapsibleSidebarToolbar : []),
|
|
176
|
+
...SidebarToolbarSides[props.side],
|
|
101
177
|
]);
|
|
102
178
|
|
|
103
179
|
const resizeStyles = computed(() => [
|
|
@@ -106,6 +182,11 @@ export default defineComponent({
|
|
|
106
182
|
...(isResizing.value ? SidebarResizingSides[props.side] : []),
|
|
107
183
|
]);
|
|
108
184
|
|
|
185
|
+
const collapsibleButtonStyles = computed(() => [
|
|
186
|
+
...SidebarCollapseButton,
|
|
187
|
+
...SidebarCollapseButtonSides[props.side],
|
|
188
|
+
]);
|
|
189
|
+
|
|
109
190
|
const mainStyles = computed(() => [...SidebarMain]);
|
|
110
191
|
|
|
111
192
|
const headerStyles = computed(() => [...SidebarHeader]);
|
|
@@ -137,7 +218,16 @@ export default defineComponent({
|
|
|
137
218
|
},
|
|
138
219
|
});
|
|
139
220
|
|
|
140
|
-
|
|
221
|
+
// Methods
|
|
222
|
+
function open(): void {
|
|
223
|
+
isCollapsed.value = false;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
function close(): void {
|
|
227
|
+
isCollapsed.value = true;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
const { width: containerWidth } = useElementBounding(parentContainer);
|
|
141
231
|
|
|
142
232
|
watch(() => props.width, (newValue: number) => {
|
|
143
233
|
if (newValue !== localWidth.value) {
|
|
@@ -150,24 +240,41 @@ export default defineComponent({
|
|
|
150
240
|
if (newMinimum > localWidth.value) localWidth.value = newMinimum;
|
|
151
241
|
});
|
|
152
242
|
|
|
243
|
+
watch(() => props.maximumWidth, (newMaximum: number) => {
|
|
244
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
watch(containerWidth, (newMaximum: number) => {
|
|
248
|
+
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
249
|
+
});
|
|
250
|
+
|
|
153
251
|
watch(maximumWidth, (newMaximum: number) => {
|
|
154
252
|
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
155
253
|
});
|
|
156
254
|
|
|
157
255
|
watch(localWidth, (val: number) => emit('change:width', val));
|
|
158
256
|
|
|
257
|
+
watch(isCollapsed, (val: boolean) => emit(val ? 'close' : 'open'));
|
|
258
|
+
|
|
159
259
|
return {
|
|
160
260
|
root,
|
|
161
261
|
resizeBar,
|
|
162
262
|
isResizing,
|
|
263
|
+
isCollapsed,
|
|
163
264
|
localWidth,
|
|
265
|
+
isShowingToolbar,
|
|
164
266
|
sidebarStyle,
|
|
165
267
|
rootStyles,
|
|
268
|
+
sidebarStyles,
|
|
269
|
+
toolbarStyles,
|
|
166
270
|
resizeStyles,
|
|
271
|
+
collapsibleButtonStyles,
|
|
167
272
|
mainStyles,
|
|
168
273
|
headerStyles,
|
|
169
274
|
contentStyles,
|
|
170
275
|
footerStyles,
|
|
276
|
+
open,
|
|
277
|
+
close,
|
|
171
278
|
};
|
|
172
279
|
},
|
|
173
280
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './or-sidebar-collapse-button';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import OrSidebarCollapseButton from './OrSidebarCollapseButton.vue';
|
|
3
|
+
import { OrSidebarPlacement } from '../../props';
|
|
4
|
+
import { action } from '@storybook/addon-actions';
|
|
5
|
+
import { ref } from 'vue-demi';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Sidebar/Partials/CollapseButton',
|
|
9
|
+
component: OrSidebarCollapseButton,
|
|
10
|
+
|
|
11
|
+
argTypes: {
|
|
12
|
+
// Props
|
|
13
|
+
modelValue: {
|
|
14
|
+
control: { type: 'boolean' },
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
side: {
|
|
18
|
+
control: { type: 'select' },
|
|
19
|
+
options: Object.values(OrSidebarPlacement),
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
} as Meta<typeof OrSidebarCollapseButton>;
|
|
23
|
+
|
|
24
|
+
const DefaultTemplate: StoryFn<typeof OrSidebarCollapseButton> = (args) => ({
|
|
25
|
+
components: {
|
|
26
|
+
OrSidebarCollapseButton,
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
setup() {
|
|
30
|
+
const collapsed = ref<boolean>(!!args.modelValue);
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
args,
|
|
34
|
+
collapsed,
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
methods: {
|
|
39
|
+
onUpdateModelValue: action('update:modelValue'),
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
template: '<OrSidebarCollapseButton v-model="collapsed" v-bind="args" @update:modelValue="onUpdateModelValue" />',
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export const Default = DefaultTemplate.bind({});
|
|
46
|
+
Default.args = {
|
|
47
|
+
side: OrSidebarPlacement.right,
|
|
48
|
+
};
|
package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
:class="rootStyles"
|
|
5
|
+
>
|
|
6
|
+
<or-icon-button
|
|
7
|
+
:class="buttonStyles"
|
|
8
|
+
:icon="{ icon, size: 'inherit' }"
|
|
9
|
+
color="inherit"
|
|
10
|
+
@click="$emit('update:modelValue', !modelValue)"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts">
|
|
16
|
+
import _ from 'lodash';
|
|
17
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
18
|
+
import { OrSidebarPlacement } from '../../props';
|
|
19
|
+
import { OrIconButtonV3 as OrIconButton } from '../../../or-icon-button-v3';
|
|
20
|
+
import { CollapseButton, CollapseButtonContainer } from './styles';
|
|
21
|
+
|
|
22
|
+
export default defineComponent({
|
|
23
|
+
name: 'OrSidebarCollapseButton',
|
|
24
|
+
|
|
25
|
+
components: {
|
|
26
|
+
OrIconButton,
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
model: {
|
|
30
|
+
prop: 'modelValue',
|
|
31
|
+
event: 'update:modelValue',
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
props: {
|
|
35
|
+
/**
|
|
36
|
+
* Must be `true` if sidebar is collapsed.
|
|
37
|
+
*/
|
|
38
|
+
modelValue: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false,
|
|
41
|
+
},
|
|
42
|
+
side: {
|
|
43
|
+
type: String as PropType<OrSidebarPlacement>,
|
|
44
|
+
default: OrSidebarPlacement.right,
|
|
45
|
+
validator: (value?: any) => _.includes(_.values(OrSidebarPlacement), value),
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
emits: ['update:modelValue'],
|
|
50
|
+
|
|
51
|
+
expose: ['root'],
|
|
52
|
+
|
|
53
|
+
setup(props) {
|
|
54
|
+
// Refs
|
|
55
|
+
const root = ref<InstanceType<typeof HTMLDivElement>>();
|
|
56
|
+
|
|
57
|
+
const rootStyles = computed(() => [
|
|
58
|
+
'or-sidebar-collapse-button',
|
|
59
|
+
...CollapseButtonContainer,
|
|
60
|
+
]);
|
|
61
|
+
|
|
62
|
+
const buttonStyles = computed(() => [
|
|
63
|
+
...CollapseButton,
|
|
64
|
+
]);
|
|
65
|
+
|
|
66
|
+
const icon = computed(() => (props.side === OrSidebarPlacement.left !== props.modelValue) ?
|
|
67
|
+
'keyboard_arrow_left' :
|
|
68
|
+
'keyboard_arrow_right',
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
root,
|
|
73
|
+
rootStyles,
|
|
74
|
+
buttonStyles,
|
|
75
|
+
icon,
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrSidebarCollapseButton } from './OrSidebarCollapseButton.vue';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export const CollapseButtonContainer: string[] = [
|
|
2
|
+
// Box
|
|
3
|
+
'w-[24px]',
|
|
4
|
+
'h-[24px]',
|
|
5
|
+
'rounded-full',
|
|
6
|
+
|
|
7
|
+
// Theme
|
|
8
|
+
'text-primary dark:text-primary-dark',
|
|
9
|
+
'bg-background dark:bg-background-dark',
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export const CollapseButton: string[] = [
|
|
13
|
+
// Box
|
|
14
|
+
'w-[24px]',
|
|
15
|
+
'h-[24px]',
|
|
16
|
+
'rounded-full',
|
|
17
|
+
|
|
18
|
+
// Typography
|
|
19
|
+
'!text-[16px]',
|
|
20
|
+
|
|
21
|
+
// Borders
|
|
22
|
+
'!border-[1px]',
|
|
23
|
+
'!border-solid',
|
|
24
|
+
|
|
25
|
+
// Theme
|
|
26
|
+
'!text-primary dark:!text-primary-dark',
|
|
27
|
+
'!bg-background dark:!bg-background-dark',
|
|
28
|
+
'!border-outline-variant dark:!border-outline-variant-dark',
|
|
29
|
+
'!outline-none',
|
|
30
|
+
|
|
31
|
+
// Theme (hover)
|
|
32
|
+
'hover:!text-primary hover:dark:!text-primary-dark',
|
|
33
|
+
'hover:!bg-primary-opacity-0-08 dark:hover:!bg-primary-opacity-0-08-dark',
|
|
34
|
+
'hover:!border-outline dark:hover:!border-outline-dark',
|
|
35
|
+
|
|
36
|
+
// Theme (active)
|
|
37
|
+
'active:!text-primary active:dark:!text-primary-dark',
|
|
38
|
+
'active:!bg-primary-opacity-0-12 dark:active:!bg-primary-opacity-0-12-dark',
|
|
39
|
+
'active:!border-primary dark:active:!border-primary-dark',
|
|
40
|
+
|
|
41
|
+
// Theme (focus)
|
|
42
|
+
'focus:!text-primary focus:dark:!text-primary-dark',
|
|
43
|
+
'focus:!bg-primary-opacity-0-12 dark:focus:!bg-primary-opacity-0-12-dark',
|
|
44
|
+
'focus:!border-outline dark:focus:!border-outline-dark',
|
|
45
|
+
|
|
46
|
+
// Theme (disabled)
|
|
47
|
+
'disabled:!text-on-disabled disabled:dark:!text-on-disabled-dark',
|
|
48
|
+
'disabled:!bg-background disabled:dark:!bg-background-dark',
|
|
49
|
+
'disabled:!border-outline-variant disabled:dark:!border-outline-variant-dark',
|
|
50
|
+
];
|
|
@@ -4,28 +4,100 @@ export const SidebarRoot: string[] = [
|
|
|
4
4
|
// Position
|
|
5
5
|
'relative',
|
|
6
6
|
|
|
7
|
+
// Layout
|
|
8
|
+
'flex',
|
|
9
|
+
'flex-row',
|
|
10
|
+
'shrink-0',
|
|
11
|
+
|
|
12
|
+
// Box
|
|
13
|
+
'min-w-0',
|
|
14
|
+
'h-auto',
|
|
15
|
+
'p-0',
|
|
16
|
+
|
|
17
|
+
// Theme
|
|
18
|
+
'bg-background',
|
|
19
|
+
'dark:bg-background-dark',
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const SidebarBar: string[] = [
|
|
23
|
+
// Position
|
|
24
|
+
'relative',
|
|
25
|
+
|
|
7
26
|
// Layout
|
|
8
27
|
'flex',
|
|
9
28
|
'flex-col',
|
|
10
29
|
'shrink-0',
|
|
30
|
+
'grow',
|
|
11
31
|
|
|
12
32
|
// Box
|
|
13
33
|
'min-h-0',
|
|
14
34
|
'p-0',
|
|
35
|
+
|
|
36
|
+
// Theme
|
|
37
|
+
'text-on-background',
|
|
38
|
+
'dark:text-on-background-dark',
|
|
39
|
+
|
|
40
|
+
// Transition
|
|
41
|
+
'transition-[width]',
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
export const SidebarToolbar: string[] = [
|
|
45
|
+
// Position
|
|
46
|
+
'relative',
|
|
47
|
+
|
|
48
|
+
// Layout
|
|
49
|
+
'flex',
|
|
50
|
+
'flex-col',
|
|
51
|
+
'shrink-0',
|
|
52
|
+
'grow',
|
|
53
|
+
'overflow-auto',
|
|
54
|
+
'items-center',
|
|
55
|
+
|
|
56
|
+
// Sizing
|
|
57
|
+
'gap-md',
|
|
58
|
+
|
|
59
|
+
// Box
|
|
60
|
+
'min-h-0',
|
|
61
|
+
'min-w-xl',
|
|
62
|
+
'p-[6px]',
|
|
63
|
+
'py-md+',
|
|
64
|
+
|
|
65
|
+
// Theme
|
|
66
|
+
'text-outline',
|
|
67
|
+
'dark:text-outline-dark',
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
export const CollapsibleSidebarToolbar: string[] = [
|
|
71
|
+
'pt-[56px]',
|
|
15
72
|
];
|
|
16
73
|
|
|
17
|
-
export const
|
|
74
|
+
export const SidebarSides: Record<OrSidebarPlacement, string[]> = {
|
|
18
75
|
[OrSidebarPlacement.left]: [
|
|
19
76
|
// Borders
|
|
20
77
|
'border-r-[1px]',
|
|
21
78
|
'border-r-solid',
|
|
22
|
-
'border-r-
|
|
79
|
+
'border-r-outline-variant dark:border-r-outline-variant-dark',
|
|
23
80
|
],
|
|
24
81
|
[OrSidebarPlacement.right]: [
|
|
25
82
|
// Borders
|
|
26
83
|
'border-l-[1px]',
|
|
27
84
|
'border-l-solid',
|
|
28
|
-
'border-l-
|
|
85
|
+
'border-l-outline-variant dark:border-l-outline-variant-dark',
|
|
86
|
+
],
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export const SidebarToolbarSides: Record<OrSidebarPlacement, string[]> = {
|
|
90
|
+
[OrSidebarPlacement.left]: [
|
|
91
|
+
// Borders
|
|
92
|
+
'border-r-[1px]',
|
|
93
|
+
'border-r-solid',
|
|
94
|
+
'border-r-outline-variant dark:border-r-outline-variant-dark',
|
|
95
|
+
],
|
|
96
|
+
[OrSidebarPlacement.right]: [
|
|
97
|
+
// Borders
|
|
98
|
+
'border-l-[1px]',
|
|
99
|
+
'border-l-solid',
|
|
100
|
+
'border-l-outline-variant dark:border-l-outline-variant-dark',
|
|
29
101
|
],
|
|
30
102
|
};
|
|
31
103
|
|
|
@@ -36,7 +108,7 @@ export const SidebarResize: string[] = [
|
|
|
36
108
|
'z-[1]',
|
|
37
109
|
|
|
38
110
|
// Box
|
|
39
|
-
'w-
|
|
111
|
+
'w-sm+',
|
|
40
112
|
'h-[100%]',
|
|
41
113
|
|
|
42
114
|
// Cursor
|
|
@@ -50,7 +122,7 @@ export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
|
|
|
50
122
|
|
|
51
123
|
// Borders
|
|
52
124
|
'hover:border-r-2',
|
|
53
|
-
'hover:border-r-primary hover:dark:border-r-primary-dark',
|
|
125
|
+
'hover:border-r-primary-hover hover:dark:border-r-primary-hover-dark',
|
|
54
126
|
|
|
55
127
|
// Transition
|
|
56
128
|
'transition-[border-right]',
|
|
@@ -61,23 +133,42 @@ export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
|
|
|
61
133
|
|
|
62
134
|
// Borders
|
|
63
135
|
'hover:border-l-2',
|
|
64
|
-
'hover:border-l-primary hover:dark:border-l-primary-dark',
|
|
136
|
+
'hover:border-l-primary-hover hover:dark:border-l-primary-hover-dark',
|
|
65
137
|
|
|
66
138
|
// Transition
|
|
67
139
|
'transition-[border-left]',
|
|
68
140
|
],
|
|
69
141
|
};
|
|
70
142
|
|
|
143
|
+
export const SidebarCollapseButton: string[] = [
|
|
144
|
+
// Position
|
|
145
|
+
'absolute',
|
|
146
|
+
'top-md',
|
|
147
|
+
'inset-y-none',
|
|
148
|
+
'z-[1]',
|
|
149
|
+
];
|
|
150
|
+
|
|
151
|
+
export const SidebarCollapseButtonSides: Record<OrSidebarPlacement, string[]> = {
|
|
152
|
+
[OrSidebarPlacement.left]: [
|
|
153
|
+
// Position
|
|
154
|
+
'-right-[12px]',
|
|
155
|
+
],
|
|
156
|
+
[OrSidebarPlacement.right]: [
|
|
157
|
+
// Position
|
|
158
|
+
'-left-[12px]',
|
|
159
|
+
],
|
|
160
|
+
};
|
|
161
|
+
|
|
71
162
|
export const SidebarResizingSides: Record<OrSidebarPlacement, string[]> = {
|
|
72
163
|
[OrSidebarPlacement.left]: [
|
|
73
164
|
// Borders
|
|
74
165
|
'border-r-2',
|
|
75
|
-
'border-r-primary dark:border-r-primary-dark',
|
|
166
|
+
'border-r-primary-hover dark:border-r-primary-hover-dark',
|
|
76
167
|
],
|
|
77
168
|
[OrSidebarPlacement.right]: [
|
|
78
169
|
// Borders
|
|
79
170
|
'border-l-2',
|
|
80
|
-
'border-l-primary dark:border-l-primary-dark',
|
|
171
|
+
'border-l-primary-hover dark:border-l-primary-hover-dark',
|
|
81
172
|
],
|
|
82
173
|
};
|
|
83
174
|
|
|
@@ -86,14 +177,24 @@ export const SidebarMain: string[] = [
|
|
|
86
177
|
'flex',
|
|
87
178
|
'flex-col',
|
|
88
179
|
'grow',
|
|
180
|
+
'overflow-x-hidden',
|
|
89
181
|
|
|
90
182
|
// Box
|
|
91
183
|
'min-h-0',
|
|
92
184
|
];
|
|
93
185
|
|
|
94
186
|
export const SidebarHeader: string[] = [
|
|
187
|
+
// Layout
|
|
188
|
+
'shrink-0',
|
|
189
|
+
'overflow-hidden',
|
|
190
|
+
|
|
95
191
|
// Sizing
|
|
96
192
|
'p-md',
|
|
193
|
+
|
|
194
|
+
// Typography
|
|
195
|
+
'typography-headline-2',
|
|
196
|
+
'whitespace-nowrap',
|
|
197
|
+
'text-ellipsis',
|
|
97
198
|
];
|
|
98
199
|
|
|
99
200
|
export const SidebarContent: string[] = [
|
|
@@ -106,11 +207,15 @@ export const SidebarContent: string[] = [
|
|
|
106
207
|
];
|
|
107
208
|
|
|
108
209
|
export const SidebarFooter: string[] = [
|
|
210
|
+
// Layout
|
|
211
|
+
'shrink-0',
|
|
212
|
+
'overflow-x-hidden',
|
|
213
|
+
|
|
109
214
|
// Sizing
|
|
110
215
|
'p-md',
|
|
111
216
|
|
|
112
217
|
// Borders
|
|
113
218
|
'border-t-[1px]',
|
|
114
219
|
'border-t-solid',
|
|
115
|
-
'border-t-
|
|
220
|
+
'border-t-outline-variant dark:border-t-outline-variant-dark',
|
|
116
221
|
];
|