@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.
Files changed (247) hide show
  1. package/dist/bundled/v2/{OrAvatar-f2b1ee1c.js → OrAvatar-586e417b.js} +1 -1
  2. package/dist/bundled/v2/{OrCardCollection-8ba1c77b.js → OrCardCollection-4ac89ea5.js} +4 -4
  3. package/dist/bundled/v2/{OrConfirm-ab9fda87.js → OrConfirm-8c0e957d.js} +1 -1
  4. package/dist/bundled/v2/{OrErrorTag-4675604d.js → OrErrorTag-97a9112b.js} +1 -1
  5. package/dist/bundled/v2/{OrExpansionPanel-8968da49.js → OrExpansionPanel-96b8f568.js} +1 -1
  6. package/dist/bundled/v2/{OrFab-a2e49eaa.js → OrFab-ed69dee1.js} +1 -1
  7. package/dist/bundled/v2/{OrIcon-2efd1925.js → OrIcon-458206aa.js} +1 -3
  8. package/dist/bundled/v2/{OrIconButton-876b6351.js → OrIconButton-837d57f8.js} +1 -1
  9. package/dist/bundled/v2/{OrInlineInput-7a230176.js → OrInlineInput-57fccb41.js} +1 -1
  10. package/dist/bundled/v2/{OrInlineTextarea-97334f79.js → OrInlineTextarea-f8b86cf7.js} +1 -1
  11. package/dist/bundled/v2/{OrInput-2f499599.js → OrInput-00070eee.js} +2 -2
  12. package/dist/bundled/v2/{OrMenuItem-f295292e.js → OrMenuItem-e2693a5f.js} +1 -1
  13. package/dist/bundled/v2/{OrModal-83900091.js → OrModal-78f5d49e.js} +1 -1
  14. package/dist/bundled/v2/{OrNotification-708ce1db.js → OrNotification-458fe937.js} +2 -2
  15. package/dist/bundled/v2/{OrPagination-e34482ef.js → OrPagination-daf25de2.js} +2 -2
  16. package/dist/bundled/v2/{OrSearch-bb66a66c.js → OrSearch-09fd004c.js} +1 -1
  17. package/dist/bundled/v2/{OrSelect-54a0b737.js → OrSelect-2ececfc1.js} +6 -8
  18. package/dist/bundled/v2/{OrSidebar-c95ef614.js → OrSidebar-a2bc21b9.js} +155 -34
  19. package/dist/bundled/v2/OrSidebarCollapseButton-8297ef86.js +125 -0
  20. package/dist/bundled/v2/{OrSortHeader-b1b961fc.js → OrSortHeader-565ace92.js} +1 -1
  21. package/dist/bundled/v2/{OrTabs-9fc1ac93.js → OrTabs-d69780fc.js} +2 -2
  22. package/dist/bundled/v2/{OrTag-3e442bf6.js → OrTag-4085e8a7.js} +1 -1
  23. package/dist/bundled/v2/components/index.js +23 -22
  24. package/dist/bundled/v2/components/or-avatar-v3/index.js +2 -2
  25. package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -6
  26. package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -4
  27. package/dist/bundled/v2/components/or-error-tag-v3/index.js +2 -2
  28. package/dist/bundled/v2/components/or-expansion-panel-v3/index.js +2 -2
  29. package/dist/bundled/v2/components/or-fab-v3/index.js +2 -2
  30. package/dist/bundled/v2/components/or-icon-button-v3/index.js +2 -2
  31. package/dist/bundled/v2/components/or-icon-v3/index.js +1 -1
  32. package/dist/bundled/v2/components/or-inline-input-v3/index.js +3 -3
  33. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +3 -3
  34. package/dist/bundled/v2/components/or-input-v3/index.js +3 -3
  35. package/dist/bundled/v2/components/or-menu-item-v3/index.js +2 -2
  36. package/dist/bundled/v2/components/or-modal-v3/index.js +3 -3
  37. package/dist/bundled/v2/components/or-notification-v3/index.js +3 -3
  38. package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
  39. package/dist/bundled/v2/components/or-search-v3/index.js +4 -4
  40. package/dist/bundled/v2/components/or-select-v3/index.js +7 -7
  41. package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
  42. package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
  43. package/dist/bundled/v2/components/or-sidebar-v3/index.js +13 -1
  44. package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
  45. package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +18 -0
  46. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
  47. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
  48. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
  49. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +18 -0
  50. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
  51. package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +7 -1
  52. package/dist/bundled/v2/components/or-sort-header-v3/index.js +2 -2
  53. package/dist/bundled/v2/components/or-tabs-v3/index.js +3 -3
  54. package/dist/bundled/v2/components/or-tag-v3/index.js +3 -3
  55. package/dist/bundled/v2/components/or-toast-v3/index.js +3 -3
  56. package/dist/bundled/v2/index.js +24 -23
  57. package/dist/bundled/v2/{types-b0d25b49.js → types-309b7b94.js} +1 -1
  58. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-75c23e62.js → OrAvatar.vue_vue_type_script_lang-582e74ae.js} +2 -2
  59. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-0a1b0f0f.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +7 -7
  60. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ef8f1f5d.js → OrConfirm.vue_vue_type_script_lang-eb2bfce2.js} +2 -2
  61. package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-bfa4c580.js → OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js} +2 -2
  62. package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-cd3b6d36.js → OrExpansionPanel.vue_vue_type_script_lang-2cc8964c.js} +2 -2
  63. package/dist/bundled/v3/{OrFab.vue_vue_type_script_lang-8f76f6b1.js → OrFab.vue_vue_type_script_lang-0fe4a921.js} +2 -2
  64. package/dist/bundled/v3/{OrIcon-0239fc17.js → OrIcon-1a5c9091.js} +1 -1
  65. package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-6a85c6c6.js → OrIcon.vue_vue_type_script_lang-bdbaad94.js} +1 -3
  66. package/dist/bundled/v3/{OrIconButton-59bc1d54.js → OrIconButton-e0566ecf.js} +1 -1
  67. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-efefd119.js → OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js} +2 -2
  68. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-da4198ec.js → OrInlineInput.vue_vue_type_script_lang-49ce3308.js} +2 -2
  69. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a7f62f75.js → OrInlineTextarea.vue_vue_type_script_lang-8fd761d7.js} +2 -2
  70. package/dist/bundled/v3/{OrInput-dde27420.js → OrInput-dcf2606e.js} +1 -1
  71. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-71f6dede.js → OrInput.vue_vue_type_script_lang-27220623.js} +4 -4
  72. package/dist/bundled/v3/{OrMenuItem-1917f51a.js → OrMenuItem-807e2a49.js} +1 -1
  73. package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-0b643c00.js → OrMenuItem.vue_vue_type_script_lang-2400ec2a.js} +2 -2
  74. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-07249365.js → OrModal.vue_vue_type_script_lang-6b1dc231.js} +2 -2
  75. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-f308ec11.js → OrNotification.vue_vue_type_script_lang-d0afc1d7.js} +4 -4
  76. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-4d27d8b8.js → OrPagination.vue_vue_type_script_lang-f64827ef.js} +4 -4
  77. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-eaad7c05.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +2 -2
  78. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-ca25de68.js → OrSelect.vue_vue_type_script_lang-7fd5e2f0.js} +9 -11
  79. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-7f3f1a16.js +291 -0
  80. package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-9aeba2d4.js +75 -0
  81. package/dist/bundled/v3/{OrSortHeader.vue_vue_type_script_lang-85238e0a.js → OrSortHeader.vue_vue_type_script_lang-a20eae87.js} +2 -2
  82. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-f3b84f9d.js → OrTabs.vue_vue_type_script_lang-cb550e87.js} +4 -4
  83. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-89d99975.js → OrTag.vue_vue_type_script_lang-a25a49ee.js} +2 -2
  84. package/dist/bundled/v3/{OrToastContainer-3dfed0e6.js → OrToastContainer-6fe12712.js} +1 -1
  85. package/dist/bundled/v3/components/index.js +27 -26
  86. package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -3
  87. package/dist/bundled/v3/components/or-card-collection-v3/index.js +10 -10
  88. package/dist/bundled/v3/components/or-confirm-v3/index.js +7 -7
  89. package/dist/bundled/v3/components/or-error-tag-v3/index.js +3 -3
  90. package/dist/bundled/v3/components/or-expansion-panel-v3/index.js +3 -3
  91. package/dist/bundled/v3/components/or-fab-v3/index.js +3 -3
  92. package/dist/bundled/v3/components/or-icon-button-v3/index.js +3 -3
  93. package/dist/bundled/v3/components/or-icon-v3/index.js +1 -1
  94. package/dist/bundled/v3/components/or-inline-input-v3/index.js +5 -5
  95. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +5 -5
  96. package/dist/bundled/v3/components/or-input-v3/index.js +5 -5
  97. package/dist/bundled/v3/components/or-menu-item-v3/index.js +3 -3
  98. package/dist/bundled/v3/components/or-modal-v3/index.js +5 -5
  99. package/dist/bundled/v3/components/or-notification-v3/index.js +5 -5
  100. package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
  101. package/dist/bundled/v3/components/or-search-v3/index.js +7 -7
  102. package/dist/bundled/v3/components/or-select-v3/index.js +11 -11
  103. package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
  104. package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
  105. package/dist/bundled/v3/components/or-sidebar-v3/index.js +16 -2
  106. package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
  107. package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +17 -0
  108. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
  109. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
  110. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
  111. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +17 -0
  112. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
  113. package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +7 -1
  114. package/dist/bundled/v3/components/or-sort-header-v3/index.js +3 -3
  115. package/dist/bundled/v3/components/or-tabs-v3/index.js +5 -5
  116. package/dist/bundled/v3/components/or-tag-v3/index.js +5 -5
  117. package/dist/bundled/v3/components/or-toast-v3/index.js +6 -6
  118. package/dist/bundled/v3/index.js +65 -48
  119. package/dist/bundled/v3/{types-dd2c3bf1.js → types-22fbf9d6.js} +2 -2
  120. package/dist/esm/v2/{OrAvatar-ca3a1268.js → OrAvatar-379ac72f.js} +1 -1
  121. package/dist/esm/v2/{OrCardCollection-409f2437.js → OrCardCollection-5a9eda35.js} +4 -4
  122. package/dist/esm/v2/{OrConfirm-08185678.js → OrConfirm-9dbdedd7.js} +1 -1
  123. package/dist/esm/v2/{OrErrorTag-7cd5dc68.js → OrErrorTag-80f82cdf.js} +1 -1
  124. package/dist/esm/v2/{OrExpansionPanel-0a12d957.js → OrExpansionPanel-729eb1e7.js} +1 -1
  125. package/dist/esm/v2/{OrFab-d5a37b22.js → OrFab-1d095e33.js} +1 -1
  126. package/dist/esm/v2/{OrIcon-c434985a.js → OrIcon-f34e0e6f.js} +1 -3
  127. package/dist/esm/v2/{OrIconButton-c8bb635e.js → OrIconButton-04a3566d.js} +1 -1
  128. package/dist/esm/v2/{OrInlineInput-d9bbdaf2.js → OrInlineInput-b85b84b4.js} +1 -1
  129. package/dist/esm/v2/{OrInlineTextarea-f7378459.js → OrInlineTextarea-afd33047.js} +1 -1
  130. package/dist/esm/v2/{OrInput-ca315c4e.js → OrInput-59a15d80.js} +2 -2
  131. package/dist/esm/v2/{OrMenuItem-4f810513.js → OrMenuItem-7b7fbf8a.js} +1 -1
  132. package/dist/esm/v2/{OrModal-7ca36163.js → OrModal-4e79e0d5.js} +1 -1
  133. package/dist/esm/v2/{OrNotification-2013cadf.js → OrNotification-eac3867f.js} +2 -2
  134. package/dist/esm/v2/{OrPagination-c2653bd1.js → OrPagination-1adbcadb.js} +2 -2
  135. package/dist/esm/v2/{OrSearch-fc4cfb78.js → OrSearch-7411388b.js} +1 -1
  136. package/dist/esm/v2/{OrSelect-2d04591d.js → OrSelect-e31d1c8b.js} +6 -8
  137. package/dist/esm/v2/{OrSidebar-fabc7bc9.js → OrSidebar-27236fbd.js} +155 -34
  138. package/dist/esm/v2/OrSidebarCollapseButton-cfe51a60.js +123 -0
  139. package/dist/esm/v2/{OrSortHeader-ffe6bc57.js → OrSortHeader-592727dc.js} +1 -1
  140. package/dist/esm/v2/{OrTabs-2992f88f.js → OrTabs-96b0473d.js} +2 -2
  141. package/dist/esm/v2/{OrTag-920c6371.js → OrTag-b2906865.js} +1 -1
  142. package/dist/esm/v2/components/index.js +23 -22
  143. package/dist/esm/v2/components/or-avatar-v3/index.js +2 -2
  144. package/dist/esm/v2/components/or-card-collection-v3/index.js +6 -6
  145. package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
  146. package/dist/esm/v2/components/or-error-tag-v3/index.js +2 -2
  147. package/dist/esm/v2/components/or-expansion-panel-v3/index.js +2 -2
  148. package/dist/esm/v2/components/or-fab-v3/index.js +2 -2
  149. package/dist/esm/v2/components/or-icon-button-v3/index.js +2 -2
  150. package/dist/esm/v2/components/or-icon-v3/index.js +1 -1
  151. package/dist/esm/v2/components/or-inline-input-v3/index.js +3 -3
  152. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +3 -3
  153. package/dist/esm/v2/components/or-input-v3/index.js +3 -3
  154. package/dist/esm/v2/components/or-menu-item-v3/index.js +2 -2
  155. package/dist/esm/v2/components/or-modal-v3/index.js +3 -3
  156. package/dist/esm/v2/components/or-notification-v3/index.js +3 -3
  157. package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
  158. package/dist/esm/v2/components/or-search-v3/index.js +4 -4
  159. package/dist/esm/v2/components/or-select-v3/index.js +7 -7
  160. package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
  161. package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
  162. package/dist/esm/v2/components/or-sidebar-v3/index.js +13 -1
  163. package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
  164. package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +16 -0
  165. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
  166. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
  167. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
  168. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +16 -0
  169. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
  170. package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +7 -1
  171. package/dist/esm/v2/components/or-sort-header-v3/index.js +2 -2
  172. package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
  173. package/dist/esm/v2/components/or-tag-v3/index.js +3 -3
  174. package/dist/esm/v2/components/or-toast-v3/index.js +3 -3
  175. package/dist/esm/v2/index.js +23 -22
  176. package/dist/esm/v2/{types-38818808.js → types-1f95d710.js} +1 -1
  177. package/dist/esm/v3/{OrAvatar-0dbd8be8.js → OrAvatar-6444e693.js} +1 -1
  178. package/dist/esm/v3/{OrCardCollection-433b2d98.js → OrCardCollection-e4fde5b4.js} +4 -4
  179. package/dist/esm/v3/{OrConfirm-1facf86d.js → OrConfirm-37454a63.js} +1 -1
  180. package/dist/esm/v3/{OrErrorTag-0025b17c.js → OrErrorTag-308119de.js} +1 -1
  181. package/dist/esm/v3/{OrExpansionPanel-541cc4c1.js → OrExpansionPanel-3a4282da.js} +1 -1
  182. package/dist/esm/v3/{OrFab-588291bf.js → OrFab-61131b31.js} +1 -1
  183. package/dist/esm/v3/{OrIcon-ea40e58c.js → OrIcon-34f59f73.js} +1 -3
  184. package/dist/esm/v3/{OrIconButton-3d32cdcf.js → OrIconButton-2dcfb83e.js} +1 -1
  185. package/dist/esm/v3/{OrInlineInput-72effa88.js → OrInlineInput-fbc35f85.js} +1 -1
  186. package/dist/esm/v3/{OrInlineTextarea-0bb8ef1c.js → OrInlineTextarea-79da8697.js} +1 -1
  187. package/dist/esm/v3/{OrInput-b4347f58.js → OrInput-bd054213.js} +2 -2
  188. package/dist/esm/v3/{OrMenuItem-de91aded.js → OrMenuItem-58707d47.js} +1 -1
  189. package/dist/esm/v3/{OrModal-a5fa8240.js → OrModal-4219a6dc.js} +1 -1
  190. package/dist/esm/v3/{OrNotification-8f34d624.js → OrNotification-0e682c7f.js} +2 -2
  191. package/dist/esm/v3/{OrPagination-7b240dec.js → OrPagination-da9e5017.js} +2 -2
  192. package/dist/esm/v3/{OrSearch-88563218.js → OrSearch-5406bf03.js} +1 -1
  193. package/dist/esm/v3/{OrSelect-131cce4e.js → OrSelect-466e50ca.js} +6 -8
  194. package/dist/esm/v3/OrSidebar-61d84c3e.js +313 -0
  195. package/dist/esm/v3/OrSidebarCollapseButton-1b9c83ef.js +94 -0
  196. package/dist/esm/v3/{OrSortHeader-f66dcb37.js → OrSortHeader-a39f77f9.js} +1 -1
  197. package/dist/esm/v3/{OrTabs-80cbb3b9.js → OrTabs-328d41b9.js} +2 -2
  198. package/dist/esm/v3/{OrTag-1d3fa09e.js → OrTag-148ff9ae.js} +1 -1
  199. package/dist/esm/v3/components/index.js +23 -22
  200. package/dist/esm/v3/components/or-avatar-v3/index.js +2 -2
  201. package/dist/esm/v3/components/or-card-collection-v3/index.js +6 -6
  202. package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
  203. package/dist/esm/v3/components/or-error-tag-v3/index.js +2 -2
  204. package/dist/esm/v3/components/or-expansion-panel-v3/index.js +2 -2
  205. package/dist/esm/v3/components/or-fab-v3/index.js +2 -2
  206. package/dist/esm/v3/components/or-icon-button-v3/index.js +2 -2
  207. package/dist/esm/v3/components/or-icon-v3/index.js +1 -1
  208. package/dist/esm/v3/components/or-inline-input-v3/index.js +3 -3
  209. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +3 -3
  210. package/dist/esm/v3/components/or-input-v3/index.js +3 -3
  211. package/dist/esm/v3/components/or-menu-item-v3/index.js +2 -2
  212. package/dist/esm/v3/components/or-modal-v3/index.js +3 -3
  213. package/dist/esm/v3/components/or-notification-v3/index.js +3 -3
  214. package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
  215. package/dist/esm/v3/components/or-search-v3/index.js +4 -4
  216. package/dist/esm/v3/components/or-select-v3/index.js +7 -7
  217. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
  218. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
  219. package/dist/esm/v3/components/or-sidebar-v3/index.js +12 -1
  220. package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
  221. package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +15 -0
  222. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
  223. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
  224. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
  225. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +15 -0
  226. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
  227. package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +7 -1
  228. package/dist/esm/v3/components/or-sort-header-v3/index.js +2 -2
  229. package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
  230. package/dist/esm/v3/components/or-tag-v3/index.js +3 -3
  231. package/dist/esm/v3/components/or-toast-v3/index.js +3 -3
  232. package/dist/esm/v3/index.js +23 -22
  233. package/dist/esm/v3/{types-4e316bd3.js → types-b79e4387.js} +1 -1
  234. package/package.json +3 -2
  235. package/src/components/or-icon-v3/styles.ts +0 -3
  236. package/src/components/or-select-v3/styles.ts +0 -3
  237. package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +6 -0
  238. package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +253 -12
  239. package/src/components/or-sidebar-v3/OrSidebar.vue +130 -23
  240. package/src/components/or-sidebar-v3/partials/index.ts +1 -0
  241. package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +48 -0
  242. package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +79 -0
  243. package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +1 -0
  244. package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.ts +50 -0
  245. package/src/components/or-sidebar-v3/styles.ts +114 -9
  246. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +0 -181
  247. package/dist/esm/v3/OrSidebar-a62972f5.js +0 -206
@@ -1,6 +1,6 @@
1
1
  import './index-fa6eb4ca.js';
2
2
  import { h as hslToColorString, g as generateHslFromString } from './color-1f348774.js';
3
- import { O as OrIcon } from './OrIcon-2efd1925.js';
3
+ import { O as OrIcon } from './OrIcon-458206aa.js';
4
4
  import { defineComponent, ref, computed, watchPostEffect } from '@vue/composition-api/dist/vue-composition-api.mjs';
5
5
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
6
6
 
@@ -1,12 +1,12 @@
1
1
  import './index-fa6eb4ca.js';
2
2
  import { defineComponent, computed, ref, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
3
3
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
4
- import { O as OrIconButton } from './OrIconButton-876b6351.js';
4
+ import { O as OrIconButton } from './OrIconButton-837d57f8.js';
5
5
  import { O as OrButton } from './OrButton-d45772c1.js';
6
6
  import { O as OrMenu } from './OrMenu-52da43bc.js';
7
- import { O as OrMenuItem } from './OrMenuItem-f295292e.js';
8
- import { O as OrIcon } from './OrIcon-2efd1925.js';
9
- import { O as OrSearch } from './OrSearch-bb66a66c.js';
7
+ import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
8
+ import { O as OrIcon } from './OrIcon-458206aa.js';
9
+ import { O as OrSearch } from './OrSearch-09fd004c.js';
10
10
 
11
11
  const CardCollectionRoot = [
12
12
  // Layout
@@ -3,7 +3,7 @@ import { l as logicAnd } from './index-17f264f9.js';
3
3
  import './index-fa6eb4ca.js';
4
4
  import { O as OrOverlay } from './OrOverlay-efa7992e.js';
5
5
  import { O as OrButton, a as ButtonColor } from './OrButton-d45772c1.js';
6
- import { O as OrInput } from './OrInput-2f499599.js';
6
+ import { O as OrInput } from './OrInput-00070eee.js';
7
7
  import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
8
8
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
9
9
 
@@ -1,5 +1,5 @@
1
1
  import './index-fa6eb4ca.js';
2
- import { O as OrIcon } from './OrIcon-2efd1925.js';
2
+ import { O as OrIcon } from './OrIcon-458206aa.js';
3
3
  import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
4
4
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import './index-fa6eb4ca.js';
2
- import { O as OrIcon } from './OrIcon-2efd1925.js';
2
+ import { O as OrIcon } from './OrIcon-458206aa.js';
3
3
  import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
4
4
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import './index-fa6eb4ca.js';
2
- import { O as OrIcon } from './OrIcon-2efd1925.js';
2
+ import { O as OrIcon } from './OrIcon-458206aa.js';
3
3
  import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
4
4
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
5
5
 
@@ -20,9 +20,7 @@ var IconSize;
20
20
 
21
21
  const IconRoot = [
22
22
  // Layout
23
- 'layout-inline-row justify-center',
24
- // Interactivity
25
- 'select-none'];
23
+ 'layout-inline-row justify-center'];
26
24
  const IconRootVariants = {
27
25
  'outlined': [
28
26
  // Iconography
@@ -1,5 +1,5 @@
1
1
  import './index-fa6eb4ca.js';
2
- import { O as OrIcon, I as IconSize } from './OrIcon-2efd1925.js';
2
+ import { O as OrIcon, I as IconSize } from './OrIcon-458206aa.js';
3
3
  import { O as OrTooltip } from './OrTooltip-b1f38647.js';
4
4
  import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
5
5
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -1,7 +1,7 @@
1
1
  import './index-fa6eb4ca.js';
2
2
  import { O as OrError } from './OrError-52f668a4.js';
3
3
  import { O as OrHint } from './OrHint-fde53334.js';
4
- import { O as OrIconButton } from './OrIconButton-876b6351.js';
4
+ import { O as OrIconButton } from './OrIconButton-837d57f8.js';
5
5
  import { O as OrInlineInputBox, I as InlineInputBoxSize } from './OrInlineInputBox-7a8e645b.js';
6
6
  import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-cf61643f.js';
7
7
  import { u as useValidationAttributes } from './useValidationAttributes-6df7bcf9.js';
@@ -1,7 +1,7 @@
1
1
  import './index-fa6eb4ca.js';
2
2
  import { O as OrError } from './OrError-52f668a4.js';
3
3
  import { O as OrHint } from './OrHint-fde53334.js';
4
- import { O as OrIconButton } from './OrIconButton-876b6351.js';
4
+ import { O as OrIconButton } from './OrIconButton-837d57f8.js';
5
5
  import { O as OrInlineInputBox } from './OrInlineInputBox-7a8e645b.js';
6
6
  import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-cf61643f.js';
7
7
  import { u as useValidationAttributes } from './useValidationAttributes-6df7bcf9.js';
@@ -1,8 +1,8 @@
1
1
  import './index-fa6eb4ca.js';
2
2
  import { O as OrError } from './OrError-52f668a4.js';
3
3
  import { O as OrHint } from './OrHint-fde53334.js';
4
- import { O as OrIcon } from './OrIcon-2efd1925.js';
5
- import { O as OrIconButton } from './OrIconButton-876b6351.js';
4
+ import { O as OrIcon } from './OrIcon-458206aa.js';
5
+ import { O as OrIconButton } from './OrIconButton-837d57f8.js';
6
6
  import { O as OrInputBox, a as InputBoxSize } from './OrInputBox-2f559e98.js';
7
7
  import { O as OrLabel } from './OrLabel-aff09c39.js';
8
8
  import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-cf61643f.js';
@@ -1,5 +1,5 @@
1
1
  import './index-fa6eb4ca.js';
2
- import { O as OrIcon } from './OrIcon-2efd1925.js';
2
+ import { O as OrIcon } from './OrIcon-458206aa.js';
3
3
  import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
4
4
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import './index-fa6eb4ca.js';
2
2
  import { O as OrOverlay } from './OrOverlay-efa7992e.js';
3
- import { O as OrIconButton } from './OrIconButton-876b6351.js';
3
+ import { O as OrIconButton } from './OrIconButton-837d57f8.js';
4
4
  import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
5
5
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import './index-fa6eb4ca.js';
2
- import { O as OrIcon } from './OrIcon-2efd1925.js';
3
- import { O as OrIconButton } from './OrIconButton-876b6351.js';
2
+ import { O as OrIcon } from './OrIcon-458206aa.js';
3
+ import { O as OrIconButton } from './OrIconButton-837d57f8.js';
4
4
  import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
5
5
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
6
6
 
@@ -1,8 +1,8 @@
1
1
  import './index-fa6eb4ca.js';
2
2
  import { O as OrButton } from './OrButton-d45772c1.js';
3
- import { O as OrIcon } from './OrIcon-2efd1925.js';
3
+ import { O as OrIcon } from './OrIcon-458206aa.js';
4
4
  import { O as OrMenu } from './OrMenu-52da43bc.js';
5
- import { O as OrMenuItem } from './OrMenuItem-f295292e.js';
5
+ import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
6
6
  import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
7
7
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { debouncedWatch } from '@vueuse/core';
2
2
  import './index-fa6eb4ca.js';
3
- import { O as OrInput } from './OrInput-2f499599.js';
3
+ import { O as OrInput } from './OrInput-00070eee.js';
4
4
  import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
5
5
  import { a as InputBoxSize } from './OrInputBox-2f559e98.js';
6
6
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -1,15 +1,15 @@
1
1
  import './index-fa6eb4ca.js';
2
2
  import { O as OrCheckbox } from './OrCheckbox-9be450f9.js';
3
3
  import { O as OrError } from './OrError-52f668a4.js';
4
- import { O as OrExpansionPanel } from './OrExpansionPanel-8968da49.js';
4
+ import { O as OrExpansionPanel } from './OrExpansionPanel-96b8f568.js';
5
5
  import { O as OrHint } from './OrHint-fde53334.js';
6
- import { O as OrIcon } from './OrIcon-2efd1925.js';
7
- import { O as OrInput } from './OrInput-2f499599.js';
6
+ import { O as OrIcon } from './OrIcon-458206aa.js';
7
+ import { O as OrInput } from './OrInput-00070eee.js';
8
8
  import { O as OrInputBox, a as InputBoxSize } from './OrInputBox-2f559e98.js';
9
9
  import { O as OrLabel } from './OrLabel-aff09c39.js';
10
- import { O as OrMenuItem } from './OrMenuItem-f295292e.js';
10
+ import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
11
11
  import { O as OrPopover } from './OrPopover-4e8acb7b.js';
12
- import { O as OrTag } from './OrTag-3e442bf6.js';
12
+ import { O as OrTag } from './OrTag-4085e8a7.js';
13
13
  import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e2a93aaf.js';
14
14
  import { u as useOverflow } from './useOverflow-bae6342f.js';
15
15
  import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -31,9 +31,7 @@ const SelectControl = [
31
31
  'typography-inherit'];
32
32
  const SelectPlaceholder = [
33
33
  // Theme
34
- 'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
35
- // Interactivity
36
- 'select-none'];
34
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
37
35
  const SelectDropdown = [
38
36
  // Overflow
39
37
  'overflow-y-auto',
@@ -1,35 +1,63 @@
1
1
  import { useDraggable, useElementBounding } from '@vueuse/core';
2
2
  import _ from 'lodash';
3
3
  import './index-fa6eb4ca.js';
4
- import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
4
+ import { O as OrSidebarPlacement, a as OrSidebarCollapseButton } from './OrSidebarCollapseButton-8297ef86.js';
5
+ import { defineComponent, ref, computed, useSlots, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
5
6
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
6
7
 
7
- var OrSidebarPlacement;
8
- (function (OrSidebarPlacement) {
9
- OrSidebarPlacement["left"] = "left";
10
- OrSidebarPlacement["right"] = "right";
11
- })(OrSidebarPlacement || (OrSidebarPlacement = {}));
12
-
13
8
  const SidebarRoot = [
14
9
  // Position
15
10
  'relative',
16
11
  // Layout
17
- 'flex', 'flex-col', 'shrink-0',
12
+ 'flex', 'flex-row', 'shrink-0',
13
+ // Box
14
+ 'min-w-0', 'h-auto', 'p-0',
15
+ // Theme
16
+ 'bg-background', 'dark:bg-background-dark'];
17
+ const SidebarBar = [
18
+ // Position
19
+ 'relative',
20
+ // Layout
21
+ 'flex', 'flex-col', 'shrink-0', 'grow',
22
+ // Box
23
+ 'min-h-0', 'p-0',
24
+ // Theme
25
+ 'text-on-background', 'dark:text-on-background-dark',
26
+ // Transition
27
+ 'transition-[width]'];
28
+ const SidebarToolbar = [
29
+ // Position
30
+ 'relative',
31
+ // Layout
32
+ 'flex', 'flex-col', 'shrink-0', 'grow', 'overflow-auto', 'items-center',
33
+ // Sizing
34
+ 'gap-md',
18
35
  // Box
19
- 'min-h-0', 'p-0'];
20
- const SidebarRootSides = {
36
+ 'min-h-0', 'min-w-xl', 'p-[6px]', 'py-md+',
37
+ // Theme
38
+ 'text-outline', 'dark:text-outline-dark'];
39
+ const CollapsibleSidebarToolbar = ['pt-[56px]'];
40
+ const SidebarSides = {
21
41
  [OrSidebarPlacement.left]: [
22
42
  // Borders
23
- 'border-r-[1px]', 'border-r-solid', 'border-r-secondary dark:border-r-secondary-dark'],
43
+ 'border-r-[1px]', 'border-r-solid', 'border-r-outline-variant dark:border-r-outline-variant-dark'],
24
44
  [OrSidebarPlacement.right]: [
25
45
  // Borders
26
- 'border-l-[1px]', 'border-l-solid', 'border-l-secondary dark:border-l-secondary-dark']
46
+ 'border-l-[1px]', 'border-l-solid', 'border-l-outline-variant dark:border-l-outline-variant-dark']
47
+ };
48
+ const SidebarToolbarSides = {
49
+ [OrSidebarPlacement.left]: [
50
+ // Borders
51
+ 'border-r-[1px]', 'border-r-solid', 'border-r-outline-variant dark:border-r-outline-variant-dark'],
52
+ [OrSidebarPlacement.right]: [
53
+ // Borders
54
+ 'border-l-[1px]', 'border-l-solid', 'border-l-outline-variant dark:border-l-outline-variant-dark']
27
55
  };
28
56
  const SidebarResize = [
29
57
  // Position
30
58
  'absolute', 'inset-y-none', 'z-[1]',
31
59
  // Box
32
- 'w-[12px]', 'h-[100%]',
60
+ 'w-sm+', 'h-[100%]',
33
61
  // Cursor
34
62
  'cursor-ew-resize'];
35
63
  const SidebarResizeSides = {
@@ -37,57 +65,80 @@ const SidebarResizeSides = {
37
65
  // Position
38
66
  '-right-[1px]',
39
67
  // Borders
40
- 'hover:border-r-2', 'hover:border-r-primary hover:dark:border-r-primary-dark',
68
+ 'hover:border-r-2', 'hover:border-r-primary-hover hover:dark:border-r-primary-hover-dark',
41
69
  // Transition
42
70
  'transition-[border-right]'],
43
71
  [OrSidebarPlacement.right]: [
44
72
  // Position
45
73
  '-left-[1px]',
46
74
  // Borders
47
- 'hover:border-l-2', 'hover:border-l-primary hover:dark:border-l-primary-dark',
75
+ 'hover:border-l-2', 'hover:border-l-primary-hover hover:dark:border-l-primary-hover-dark',
48
76
  // Transition
49
77
  'transition-[border-left]']
50
78
  };
79
+ const SidebarCollapseButton = [
80
+ // Position
81
+ 'absolute', 'top-md', 'inset-y-none', 'z-[1]'];
82
+ const SidebarCollapseButtonSides = {
83
+ [OrSidebarPlacement.left]: [
84
+ // Position
85
+ '-right-[12px]'],
86
+ [OrSidebarPlacement.right]: [
87
+ // Position
88
+ '-left-[12px]']
89
+ };
51
90
  const SidebarResizingSides = {
52
91
  [OrSidebarPlacement.left]: [
53
92
  // Borders
54
- 'border-r-2', 'border-r-primary dark:border-r-primary-dark'],
93
+ 'border-r-2', 'border-r-primary-hover dark:border-r-primary-hover-dark'],
55
94
  [OrSidebarPlacement.right]: [
56
95
  // Borders
57
- 'border-l-2', 'border-l-primary dark:border-l-primary-dark']
96
+ 'border-l-2', 'border-l-primary-hover dark:border-l-primary-hover-dark']
58
97
  };
59
98
  const SidebarMain = [
60
99
  // Layout
61
- 'flex', 'flex-col', 'grow',
100
+ 'flex', 'flex-col', 'grow', 'overflow-x-hidden',
62
101
  // Box
63
102
  'min-h-0'];
64
103
  const SidebarHeader = [
104
+ // Layout
105
+ 'shrink-0', 'overflow-hidden',
65
106
  // Sizing
66
- 'p-md'];
107
+ 'p-md',
108
+ // Typography
109
+ 'typography-headline-2', 'whitespace-nowrap', 'text-ellipsis'];
67
110
  const SidebarContent = [
68
111
  // Layout
69
112
  'grow', 'overflow-auto',
70
113
  // Sizing
71
114
  'p-md'];
72
115
  const SidebarFooter = [
116
+ // Layout
117
+ 'shrink-0', 'overflow-x-hidden',
73
118
  // Sizing
74
119
  'p-md',
75
120
  // Borders
76
- 'border-t-[1px]', 'border-t-solid', 'border-t-secondary dark:border-t-secondary-dark'];
121
+ 'border-t-[1px]', 'border-t-solid', 'border-t-outline-variant dark:border-t-outline-variant-dark'];
77
122
 
78
123
  var script = defineComponent({
79
124
  name: 'OrSidebar',
125
+ components: {
126
+ OrSidebarCollapseButton
127
+ },
80
128
  props: {
81
129
  width: {
82
130
  type: Number,
83
- required: false,
84
- default: 0,
131
+ default: 320,
85
132
  validator: value => _.isNumber(value) && value >= 0
86
133
  },
87
134
  minimumWidth: {
88
135
  type: Number,
89
- required: false,
90
- default: 350,
136
+ default: 256,
137
+ validator: value => _.isNumber(value) && value >= 0
138
+ },
139
+ maximumWidth: {
140
+ type: Number,
141
+ default: 384,
91
142
  validator: value => _.isNumber(value) && value >= 0
92
143
  },
93
144
  /**
@@ -101,9 +152,18 @@ var script = defineComponent({
101
152
  type: String,
102
153
  default: OrSidebarPlacement.right,
103
154
  validator: value => _.includes(_.values(OrSidebarPlacement), value)
155
+ },
156
+ draggable: {
157
+ type: Boolean,
158
+ default: true
159
+ },
160
+ collapsible: {
161
+ type: Boolean,
162
+ default: false
104
163
  }
105
164
  },
106
- emits: ['change:width'],
165
+ emits: ['change:width', 'open', 'close'],
166
+ expose: ['root', 'open', 'close'],
107
167
  setup(props, {
108
168
  emit
109
169
  }) {
@@ -114,16 +174,26 @@ var script = defineComponent({
114
174
  var _a;
115
175
  return (_a = root.value) === null || _a === void 0 ? void 0 : _a.parentElement;
116
176
  });
177
+ // Slots
178
+ const {
179
+ toolbar: toolbarSlot
180
+ } = useSlots();
117
181
  // State
118
182
  const startPositionX = ref(0);
119
183
  const isResizing = ref(false);
184
+ const isCollapsed = ref(false);
185
+ const maximumWidth = ref(props.maximumWidth || 384);
120
186
  const localWidth = ref(props.width >= props.minimumWidth ? props.width : props.minimumWidth);
187
+ const isShowingToolbar = computed(() => !!toolbarSlot);
121
188
  // Styles
122
189
  const sidebarStyle = computed(() => ({
123
- width: localWidth.value + 'px'
190
+ width: (isCollapsed.value ? 16 : localWidth.value) + 'px'
124
191
  }));
125
- const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot, ...SidebarRootSides[props.side]]);
192
+ const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot]);
193
+ const sidebarStyles = computed(() => [...SidebarBar, ...SidebarSides[props.side]]);
194
+ const toolbarStyles = computed(() => [...SidebarToolbar, ...(props.collapsible ? CollapsibleSidebarToolbar : []), ...SidebarToolbarSides[props.side]]);
126
195
  const resizeStyles = computed(() => [...SidebarResize, ...SidebarResizeSides[props.side], ...(isResizing.value ? SidebarResizingSides[props.side] : [])]);
196
+ const collapsibleButtonStyles = computed(() => [...SidebarCollapseButton, ...SidebarCollapseButtonSides[props.side]]);
127
197
  const mainStyles = computed(() => [...SidebarMain]);
128
198
  const headerStyles = computed(() => [...SidebarHeader]);
129
199
  const contentStyles = computed(() => [...SidebarContent]);
@@ -149,8 +219,15 @@ var script = defineComponent({
149
219
  isResizing.value = false;
150
220
  }
151
221
  });
222
+ // Methods
223
+ function open() {
224
+ isCollapsed.value = false;
225
+ }
226
+ function close() {
227
+ isCollapsed.value = true;
228
+ }
152
229
  const {
153
- width: maximumWidth
230
+ width: containerWidth
154
231
  } = useElementBounding(parentContainer);
155
232
  watch(() => props.width, newValue => {
156
233
  if (newValue !== localWidth.value) {
@@ -160,22 +237,36 @@ var script = defineComponent({
160
237
  watch(() => props.minimumWidth, newMinimum => {
161
238
  if (newMinimum > localWidth.value) localWidth.value = newMinimum;
162
239
  });
240
+ watch(() => props.maximumWidth, newMaximum => {
241
+ if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
242
+ });
243
+ watch(containerWidth, newMaximum => {
244
+ if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
245
+ });
163
246
  watch(maximumWidth, newMaximum => {
164
247
  if (newMaximum < localWidth.value) localWidth.value = newMaximum;
165
248
  });
166
249
  watch(localWidth, val => emit('change:width', val));
250
+ watch(isCollapsed, val => emit(val ? 'close' : 'open'));
167
251
  return {
168
252
  root,
169
253
  resizeBar,
170
254
  isResizing,
255
+ isCollapsed,
171
256
  localWidth,
257
+ isShowingToolbar,
172
258
  sidebarStyle,
173
259
  rootStyles,
260
+ sidebarStyles,
261
+ toolbarStyles,
174
262
  resizeStyles,
263
+ collapsibleButtonStyles,
175
264
  mainStyles,
176
265
  headerStyles,
177
266
  contentStyles,
178
- footerStyles
267
+ footerStyles,
268
+ open,
269
+ close
179
270
  };
180
271
  }
181
272
  });
@@ -190,20 +281,50 @@ var __vue_render__ = function () {
190
281
  var _c = _vm._self._c || _h;
191
282
  return _c('aside', {
192
283
  ref: "root",
193
- class: _vm.rootStyles,
284
+ class: _vm.rootStyles
285
+ }, [_vm.side === 'right' && _vm.isShowingToolbar ? _c('div', {
286
+ class: _vm.toolbarStyles
287
+ }, [_vm._t("toolbar")], 2) : _vm._e(), _vm._v(" "), _c('div', {
288
+ class: _vm.sidebarStyles,
194
289
  style: _vm.sidebarStyle
195
- }, [_c('div', {
290
+ }, [_vm.draggable && !_vm.isCollapsed ? _c('div', {
196
291
  ref: "resizeBar",
197
292
  class: _vm.resizeStyles
198
- }), _vm._v(" "), _c('div', {
293
+ }) : _vm._e(), _vm._v(" "), _vm.collapsible ? _c('or-sidebar-collapse-button', {
294
+ class: _vm.collapsibleButtonStyles,
295
+ attrs: {
296
+ "side": _vm.side
297
+ },
298
+ model: {
299
+ value: _vm.isCollapsed,
300
+ callback: function ($$v) {
301
+ _vm.isCollapsed = $$v;
302
+ },
303
+ expression: "isCollapsed"
304
+ }
305
+ }) : _vm._e(), _vm._v(" "), _c('div', {
306
+ directives: [{
307
+ name: "show",
308
+ rawName: "v-show",
309
+ value: !_vm.isCollapsed,
310
+ expression: "!isCollapsed"
311
+ }],
199
312
  class: _vm.mainStyles
200
313
  }, [_vm.$slots.header ? _c('div', {
201
314
  class: _vm.headerStyles
202
315
  }, [_vm._t("header")], 2) : _vm._e(), _vm._v(" "), _c('div', {
203
316
  class: _vm.contentStyles
204
317
  }, [_vm._t("default")], 2)]), _vm._v(" "), _vm.$slots.footer ? _c('div', {
318
+ directives: [{
319
+ name: "show",
320
+ rawName: "v-show",
321
+ value: !_vm.isCollapsed,
322
+ expression: "!isCollapsed"
323
+ }],
205
324
  class: _vm.footerStyles
206
- }, [_vm._t("footer")], 2) : _vm._e()]);
325
+ }, [_vm._t("footer")], 2) : _vm._e()], 1), _vm._v(" "), _vm.side === 'left' && _vm.isShowingToolbar ? _c('div', {
326
+ class: _vm.toolbarStyles
327
+ }, [_vm._t("toolbar")], 2) : _vm._e()]);
207
328
  };
208
329
  var __vue_staticRenderFns__ = [];
209
330
 
@@ -227,4 +348,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
227
348
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
228
349
  var __vue_component__$1 = __vue_component__;
229
350
 
230
- export { OrSidebarPlacement as O, __vue_component__$1 as _ };
351
+ export { __vue_component__$1 as _ };
@@ -0,0 +1,125 @@
1
+ import _ from 'lodash';
2
+ import './index-fa6eb4ca.js';
3
+ import { O as OrIconButton } from './OrIconButton-837d57f8.js';
4
+ import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
5
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
6
+
7
+ var OrSidebarPlacement;
8
+ (function (OrSidebarPlacement) {
9
+ OrSidebarPlacement["left"] = "left";
10
+ OrSidebarPlacement["right"] = "right";
11
+ })(OrSidebarPlacement || (OrSidebarPlacement = {}));
12
+
13
+ const CollapseButtonContainer = [
14
+ // Box
15
+ 'w-[24px]', 'h-[24px]', 'rounded-full',
16
+ // Theme
17
+ 'text-primary dark:text-primary-dark', 'bg-background dark:bg-background-dark'];
18
+ const CollapseButton = [
19
+ // Box
20
+ 'w-[24px]', 'h-[24px]', 'rounded-full',
21
+ // Typography
22
+ '!text-[16px]',
23
+ // Borders
24
+ '!border-[1px]', '!border-solid',
25
+ // Theme
26
+ '!text-primary dark:!text-primary-dark', '!bg-background dark:!bg-background-dark', '!border-outline-variant dark:!border-outline-variant-dark', '!outline-none',
27
+ // Theme (hover)
28
+ 'hover:!text-primary hover:dark:!text-primary-dark', 'hover:!bg-primary-opacity-0-08 dark:hover:!bg-primary-opacity-0-08-dark', 'hover:!border-outline dark:hover:!border-outline-dark',
29
+ // Theme (active)
30
+ 'active:!text-primary active:dark:!text-primary-dark', 'active:!bg-primary-opacity-0-12 dark:active:!bg-primary-opacity-0-12-dark', 'active:!border-primary dark:active:!border-primary-dark',
31
+ // Theme (focus)
32
+ 'focus:!text-primary focus:dark:!text-primary-dark', 'focus:!bg-primary-opacity-0-12 dark:focus:!bg-primary-opacity-0-12-dark', 'focus:!border-outline dark:focus:!border-outline-dark',
33
+ // Theme (disabled)
34
+ 'disabled:!text-on-disabled disabled:dark:!text-on-disabled-dark', 'disabled:!bg-background disabled:dark:!bg-background-dark', 'disabled:!border-outline-variant disabled:dark:!border-outline-variant-dark'];
35
+
36
+ var script = defineComponent({
37
+ name: 'OrSidebarCollapseButton',
38
+ components: {
39
+ OrIconButton
40
+ },
41
+ model: {
42
+ prop: 'modelValue',
43
+ event: 'update:modelValue'
44
+ },
45
+ props: {
46
+ /**
47
+ * Must be `true` if sidebar is collapsed.
48
+ */
49
+ modelValue: {
50
+ type: Boolean,
51
+ default: false
52
+ },
53
+ side: {
54
+ type: String,
55
+ default: OrSidebarPlacement.right,
56
+ validator: value => _.includes(_.values(OrSidebarPlacement), value)
57
+ }
58
+ },
59
+ emits: ['update:modelValue'],
60
+ expose: ['root'],
61
+ setup(props) {
62
+ // Refs
63
+ const root = ref();
64
+ const rootStyles = computed(() => ['or-sidebar-collapse-button', ...CollapseButtonContainer]);
65
+ const buttonStyles = computed(() => [...CollapseButton]);
66
+ const icon = computed(() => props.side === OrSidebarPlacement.left !== props.modelValue ? 'keyboard_arrow_left' : 'keyboard_arrow_right');
67
+ return {
68
+ root,
69
+ rootStyles,
70
+ buttonStyles,
71
+ icon
72
+ };
73
+ }
74
+ });
75
+
76
+ /* script */
77
+ const __vue_script__ = script;
78
+
79
+ /* template */
80
+ var __vue_render__ = function () {
81
+ var _vm = this;
82
+ var _h = _vm.$createElement;
83
+ var _c = _vm._self._c || _h;
84
+ return _c('div', {
85
+ ref: "root",
86
+ class: _vm.rootStyles
87
+ }, [_c('or-icon-button', {
88
+ class: _vm.buttonStyles,
89
+ attrs: {
90
+ "icon": {
91
+ icon: _vm.icon,
92
+ size: 'inherit'
93
+ },
94
+ "color": "inherit"
95
+ },
96
+ on: {
97
+ "click": function ($event) {
98
+ return _vm.$emit('update:modelValue', !_vm.modelValue);
99
+ }
100
+ }
101
+ })], 1);
102
+ };
103
+ var __vue_staticRenderFns__ = [];
104
+
105
+ /* style */
106
+ const __vue_inject_styles__ = undefined;
107
+ /* scoped */
108
+ const __vue_scope_id__ = undefined;
109
+ /* module identifier */
110
+ const __vue_module_identifier__ = undefined;
111
+ /* functional template */
112
+ const __vue_is_functional_template__ = false;
113
+ /* style inject */
114
+
115
+ /* style inject SSR */
116
+
117
+ /* style inject shadow dom */
118
+
119
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
120
+ render: __vue_render__,
121
+ staticRenderFns: __vue_staticRenderFns__
122
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
123
+ var OrSidebarCollapseButton = __vue_component__;
124
+
125
+ export { OrSidebarPlacement as O, OrSidebarCollapseButton as a };
@@ -1,5 +1,5 @@
1
1
  import './index-fa6eb4ca.js';
2
- import { O as OrIcon } from './OrIcon-2efd1925.js';
2
+ import { O as OrIcon } from './OrIcon-458206aa.js';
3
3
  import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
4
4
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
5
5