@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.
Files changed (264) hide show
  1. package/dist/bundled/v2/{OrButton-4862b98b.js → OrButton-d45772c1.js} +3 -3
  2. package/dist/bundled/v2/{OrCardCollection-55fd8cf6.js → OrCardCollection-4ac89ea5.js} +4 -4
  3. package/dist/bundled/v2/{OrConfirm-10e4fe6a.js → OrConfirm-8c0e957d.js} +2 -2
  4. package/dist/bundled/v2/{OrEmptyState-8a7feb99.js → OrEmptyState-9fb413f9.js} +2 -2
  5. package/dist/bundled/v2/{OrErrorTag-175a2c4f.js → OrErrorTag-97a9112b.js} +2 -0
  6. package/dist/bundled/v2/{OrIconButton-088ac8ec.js → OrIconButton-837d57f8.js} +1 -1
  7. package/dist/bundled/v2/{OrInlineInput-f2bd6b5c.js → OrInlineInput-57fccb41.js} +1 -1
  8. package/dist/bundled/v2/{OrInlineTextarea-813d4193.js → OrInlineTextarea-f8b86cf7.js} +1 -1
  9. package/dist/bundled/v2/{OrInput-9253f834.js → OrInput-00070eee.js} +1 -1
  10. package/dist/bundled/v2/{OrMenu-6ab53877.js → OrMenu-52da43bc.js} +15 -10
  11. package/dist/bundled/v2/{OrModal-d08fb037.js → OrModal-78f5d49e.js} +1 -1
  12. package/dist/bundled/v2/{OrNotification-bd008b65.js → OrNotification-458fe937.js} +1 -1
  13. package/dist/bundled/v2/{OrPagination-9bf3d797.js → OrPagination-daf25de2.js} +24 -60
  14. package/dist/bundled/v2/{OrProgress-5cf0a7e7.js → OrProgress-15fe65ec.js} +3 -3
  15. package/dist/bundled/v2/{OrSearch-a975639b.js → OrSearch-09fd004c.js} +1 -1
  16. package/dist/bundled/v2/{OrSelect-d3b5780a.js → OrSelect-2ececfc1.js} +2 -2
  17. package/dist/bundled/v2/{OrSidebar-b1442193.js → OrSidebar-a2bc21b9.js} +158 -37
  18. package/dist/bundled/v2/OrSidebarCollapseButton-8297ef86.js +125 -0
  19. package/dist/bundled/v2/{OrTabs-517e2f25.js → OrTabs-d69780fc.js} +1 -1
  20. package/dist/bundled/v2/{OrTag-2903c38e.js → OrTag-4085e8a7.js} +3 -1
  21. package/dist/bundled/v2/{OrTooltip-0c73d25d.js → OrTooltip-b1f38647.js} +1 -1
  22. package/dist/bundled/v2/components/index.js +22 -21
  23. package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
  24. package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -7
  25. package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -5
  26. package/dist/bundled/v2/components/or-empty-state-v3/index.js +1 -1
  27. package/dist/bundled/v2/components/or-error-tag-v3/index.js +1 -1
  28. package/dist/bundled/v2/components/or-icon-button-v3/index.js +2 -2
  29. package/dist/bundled/v2/components/or-inline-input-v3/index.js +3 -3
  30. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +3 -3
  31. package/dist/bundled/v2/components/or-input-v3/index.js +3 -3
  32. package/dist/bundled/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  33. package/dist/bundled/v2/components/or-menu-v3/index.js +1 -1
  34. package/dist/bundled/v2/components/or-menu-v3/styles.d.ts +1 -0
  35. package/dist/bundled/v2/components/or-modal-v3/index.js +3 -3
  36. package/dist/bundled/v2/components/or-notification-v3/index.js +3 -3
  37. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -4
  38. package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
  39. package/dist/bundled/v2/components/or-progress-v3/index.js +1 -1
  40. package/dist/bundled/v2/components/or-progress-v3/styles.d.ts +1 -1
  41. package/dist/bundled/v2/components/or-search-v3/index.js +4 -4
  42. package/dist/bundled/v2/components/or-select-v3/index.js +5 -5
  43. package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
  44. package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
  45. package/dist/bundled/v2/components/or-sidebar-v3/index.js +13 -1
  46. package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
  47. package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +18 -0
  48. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
  49. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
  50. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
  51. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +18 -0
  52. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
  53. package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +7 -1
  54. package/dist/bundled/v2/components/or-tabs-v3/index.js +2 -2
  55. package/dist/bundled/v2/components/or-tag-v3/index.js +3 -3
  56. package/dist/bundled/v2/components/or-toast-v3/index.js +3 -3
  57. package/dist/bundled/v2/components/or-tooltip-v3/index.js +1 -1
  58. package/dist/bundled/v2/index.js +23 -22
  59. package/dist/bundled/v2/{types-d6c9284d.js → types-309b7b94.js} +1 -1
  60. package/dist/bundled/v3/{OrButton-05766523.js → OrButton-a1448bfa.js} +1 -1
  61. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-b53e78f5.js → OrButton.vue_vue_type_script_lang-3b1e442b.js} +3 -3
  62. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-40a5aa15.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +7 -7
  63. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-53503801.js → OrConfirm.vue_vue_type_script_lang-eb2bfce2.js} +4 -4
  64. package/dist/bundled/v3/{OrEmptyState.vue_vue_type_script_lang-8e58c67c.js → OrEmptyState.vue_vue_type_script_lang-da7d6c42.js} +2 -2
  65. package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-fa28d642.js → OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js} +2 -0
  66. package/dist/bundled/v3/{OrIconButton-72d4d349.js → OrIconButton-e0566ecf.js} +1 -1
  67. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-28452eda.js → OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js} +1 -1
  68. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-96aef83e.js → OrInlineInput.vue_vue_type_script_lang-49ce3308.js} +2 -2
  69. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-8be03a08.js → OrInlineTextarea.vue_vue_type_script_lang-8fd761d7.js} +2 -2
  70. package/dist/bundled/v3/{OrInput-6f6c700a.js → OrInput-dcf2606e.js} +1 -1
  71. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-115050fc.js → OrInput.vue_vue_type_script_lang-27220623.js} +2 -2
  72. package/dist/bundled/v3/{OrMenu-bb432db5.js → OrMenu-6d7abe97.js} +10 -9
  73. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-5a492eb3.js → OrMenu.vue_vue_type_script_lang-df35fd76.js} +8 -5
  74. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-230bc99d.js → OrModal.vue_vue_type_script_lang-6b1dc231.js} +2 -2
  75. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-d9b2b5bf.js → OrNotification.vue_vue_type_script_lang-d0afc1d7.js} +2 -2
  76. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-bdb0acc8.js → OrPagination.vue_vue_type_script_lang-f64827ef.js} +20 -35
  77. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-17095060.js → OrProgress.vue_vue_type_script_lang-52f660d6.js} +3 -3
  78. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-5c683c38.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +2 -2
  79. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-84902694.js → OrSelect.vue_vue_type_script_lang-7fd5e2f0.js} +3 -3
  80. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-7f3f1a16.js +291 -0
  81. package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-9aeba2d4.js +75 -0
  82. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ae519161.js → OrTabs.vue_vue_type_script_lang-cb550e87.js} +2 -2
  83. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-33767daa.js → OrTag.vue_vue_type_script_lang-a25a49ee.js} +4 -2
  84. package/dist/bundled/v3/{OrToastContainer-2247bc2a.js → OrToastContainer-6fe12712.js} +1 -1
  85. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-250ecf1d.js → OrTooltip.vue_vue_type_script_lang-bf9935ef.js} +1 -1
  86. package/dist/bundled/v3/components/index.js +26 -25
  87. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  88. package/dist/bundled/v3/components/or-card-collection-v3/index.js +11 -11
  89. package/dist/bundled/v3/components/or-confirm-v3/index.js +8 -8
  90. package/dist/bundled/v3/components/or-empty-state-v3/index.js +1 -1
  91. package/dist/bundled/v3/components/or-error-tag-v3/index.js +1 -1
  92. package/dist/bundled/v3/components/or-icon-button-v3/index.js +2 -2
  93. package/dist/bundled/v3/components/or-inline-input-v3/index.js +4 -4
  94. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +4 -4
  95. package/dist/bundled/v3/components/or-input-v3/index.js +4 -4
  96. package/dist/bundled/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  97. package/dist/bundled/v3/components/or-menu-v3/index.js +1 -1
  98. package/dist/bundled/v3/components/or-menu-v3/styles.d.ts +1 -0
  99. package/dist/bundled/v3/components/or-modal-v3/index.js +4 -4
  100. package/dist/bundled/v3/components/or-notification-v3/index.js +4 -4
  101. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -4
  102. package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
  103. package/dist/bundled/v3/components/or-progress-v3/index.js +1 -1
  104. package/dist/bundled/v3/components/or-progress-v3/styles.d.ts +1 -1
  105. package/dist/bundled/v3/components/or-search-v3/index.js +6 -6
  106. package/dist/bundled/v3/components/or-select-v3/index.js +7 -7
  107. package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
  108. package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
  109. package/dist/bundled/v3/components/or-sidebar-v3/index.js +16 -2
  110. package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
  111. package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +17 -0
  112. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
  113. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
  114. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
  115. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +17 -0
  116. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
  117. package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +7 -1
  118. package/dist/bundled/v3/components/or-tabs-v3/index.js +3 -3
  119. package/dist/bundled/v3/components/or-tag-v3/index.js +4 -4
  120. package/dist/bundled/v3/components/or-toast-v3/index.js +5 -5
  121. package/dist/bundled/v3/components/or-tooltip-v3/index.js +1 -1
  122. package/dist/bundled/v3/index.js +70 -75
  123. package/dist/bundled/v3/{types-e10af3b0.js → types-22fbf9d6.js} +2 -2
  124. package/dist/esm/v2/{OrButton-18f4431c.js → OrButton-66964360.js} +3 -3
  125. package/dist/esm/v2/{OrCardCollection-322733bc.js → OrCardCollection-5a9eda35.js} +4 -4
  126. package/dist/esm/v2/{OrConfirm-61edc9a5.js → OrConfirm-9dbdedd7.js} +2 -2
  127. package/dist/esm/v2/{OrEmptyState-ab1a044d.js → OrEmptyState-2481f13f.js} +2 -2
  128. package/dist/esm/v2/{OrErrorTag-5346825b.js → OrErrorTag-80f82cdf.js} +2 -0
  129. package/dist/esm/v2/{OrIconButton-a648b35b.js → OrIconButton-04a3566d.js} +1 -1
  130. package/dist/esm/v2/{OrInlineInput-32c724b2.js → OrInlineInput-b85b84b4.js} +1 -1
  131. package/dist/esm/v2/{OrInlineTextarea-a7d1b655.js → OrInlineTextarea-afd33047.js} +1 -1
  132. package/dist/esm/v2/{OrInput-1510deaa.js → OrInput-59a15d80.js} +1 -1
  133. package/dist/esm/v2/{OrMenu-943e7760.js → OrMenu-c276db74.js} +15 -10
  134. package/dist/esm/v2/{OrModal-7b024663.js → OrModal-4e79e0d5.js} +1 -1
  135. package/dist/esm/v2/{OrNotification-4976dc40.js → OrNotification-eac3867f.js} +1 -1
  136. package/dist/esm/v2/{OrPagination-93d78a0d.js → OrPagination-1adbcadb.js} +24 -61
  137. package/dist/esm/v2/{OrProgress-9fc95bd7.js → OrProgress-b7d1c689.js} +3 -3
  138. package/dist/esm/v2/{OrSearch-37fac6da.js → OrSearch-7411388b.js} +1 -1
  139. package/dist/esm/v2/{OrSelect-45eb62ae.js → OrSelect-e31d1c8b.js} +2 -2
  140. package/dist/esm/v2/{OrSidebar-7c89f46c.js → OrSidebar-27236fbd.js} +158 -37
  141. package/dist/esm/v2/OrSidebarCollapseButton-cfe51a60.js +123 -0
  142. package/dist/esm/v2/{OrTabs-398348a5.js → OrTabs-96b0473d.js} +1 -1
  143. package/dist/esm/v2/{OrTag-a86928f2.js → OrTag-b2906865.js} +3 -1
  144. package/dist/esm/v2/{OrTooltip-4587b666.js → OrTooltip-629d44fc.js} +1 -1
  145. package/dist/esm/v2/components/index.js +22 -21
  146. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  147. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -7
  148. package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
  149. package/dist/esm/v2/components/or-empty-state-v3/index.js +1 -1
  150. package/dist/esm/v2/components/or-error-tag-v3/index.js +1 -1
  151. package/dist/esm/v2/components/or-icon-button-v3/index.js +2 -2
  152. package/dist/esm/v2/components/or-inline-input-v3/index.js +3 -3
  153. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +3 -3
  154. package/dist/esm/v2/components/or-input-v3/index.js +3 -3
  155. package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  156. package/dist/esm/v2/components/or-menu-v3/index.js +1 -1
  157. package/dist/esm/v2/components/or-menu-v3/styles.d.ts +1 -0
  158. package/dist/esm/v2/components/or-modal-v3/index.js +3 -3
  159. package/dist/esm/v2/components/or-notification-v3/index.js +3 -3
  160. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -4
  161. package/dist/esm/v2/components/or-pagination-v3/index.js +5 -5
  162. package/dist/esm/v2/components/or-progress-v3/index.js +1 -1
  163. package/dist/esm/v2/components/or-progress-v3/styles.d.ts +1 -1
  164. package/dist/esm/v2/components/or-search-v3/index.js +4 -4
  165. package/dist/esm/v2/components/or-select-v3/index.js +5 -5
  166. package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
  167. package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
  168. package/dist/esm/v2/components/or-sidebar-v3/index.js +13 -1
  169. package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
  170. package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +16 -0
  171. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
  172. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
  173. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
  174. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +16 -0
  175. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
  176. package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +7 -1
  177. package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
  178. package/dist/esm/v2/components/or-tag-v3/index.js +3 -3
  179. package/dist/esm/v2/components/or-toast-v3/index.js +3 -3
  180. package/dist/esm/v2/components/or-tooltip-v3/index.js +1 -1
  181. package/dist/esm/v2/index.js +22 -21
  182. package/dist/esm/v2/{types-8c69b2c8.js → types-1f95d710.js} +1 -1
  183. package/dist/esm/v3/{OrButton-55dd2ad9.js → OrButton-c56998e7.js} +3 -3
  184. package/dist/esm/v3/{OrCardCollection-3a9ccb24.js → OrCardCollection-e4fde5b4.js} +4 -4
  185. package/dist/esm/v3/{OrConfirm-68068bd0.js → OrConfirm-37454a63.js} +2 -2
  186. package/dist/esm/v3/{OrEmptyState-cd3a4026.js → OrEmptyState-bb8e3145.js} +2 -2
  187. package/dist/esm/v3/{OrErrorTag-a3e6ef83.js → OrErrorTag-308119de.js} +2 -0
  188. package/dist/esm/v3/{OrIconButton-0047e3cd.js → OrIconButton-2dcfb83e.js} +1 -1
  189. package/dist/esm/v3/{OrInlineInput-6901da96.js → OrInlineInput-fbc35f85.js} +1 -1
  190. package/dist/esm/v3/{OrInlineTextarea-a618ec30.js → OrInlineTextarea-79da8697.js} +1 -1
  191. package/dist/esm/v3/{OrInput-27b9f02d.js → OrInput-bd054213.js} +1 -1
  192. package/dist/esm/v3/{OrMenu-fd2fe1e7.js → OrMenu-7f3ea117.js} +17 -13
  193. package/dist/esm/v3/{OrModal-70f2b811.js → OrModal-4219a6dc.js} +1 -1
  194. package/dist/esm/v3/{OrNotification-7173726b.js → OrNotification-0e682c7f.js} +1 -1
  195. package/dist/esm/v3/{OrPagination-781c119e.js → OrPagination-da9e5017.js} +26 -64
  196. package/dist/esm/v3/{OrProgress-4856808a.js → OrProgress-639ed5e8.js} +3 -3
  197. package/dist/esm/v3/{OrSearch-9e1efad2.js → OrSearch-5406bf03.js} +1 -1
  198. package/dist/esm/v3/{OrSelect-07834b65.js → OrSelect-466e50ca.js} +2 -2
  199. package/dist/esm/v3/OrSidebar-61d84c3e.js +313 -0
  200. package/dist/esm/v3/OrSidebarCollapseButton-1b9c83ef.js +94 -0
  201. package/dist/esm/v3/{OrTabs-34c67377.js → OrTabs-328d41b9.js} +1 -1
  202. package/dist/esm/v3/{OrTag-355e7a3e.js → OrTag-148ff9ae.js} +3 -1
  203. package/dist/esm/v3/{OrTooltip-4e670a38.js → OrTooltip-b07616f4.js} +1 -1
  204. package/dist/esm/v3/components/index.js +22 -21
  205. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  206. package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -7
  207. package/dist/esm/v3/components/or-confirm-v3/index.js +5 -5
  208. package/dist/esm/v3/components/or-empty-state-v3/index.js +1 -1
  209. package/dist/esm/v3/components/or-error-tag-v3/index.js +1 -1
  210. package/dist/esm/v3/components/or-icon-button-v3/index.js +2 -2
  211. package/dist/esm/v3/components/or-inline-input-v3/index.js +3 -3
  212. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +3 -3
  213. package/dist/esm/v3/components/or-input-v3/index.js +3 -3
  214. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  215. package/dist/esm/v3/components/or-menu-v3/index.js +1 -1
  216. package/dist/esm/v3/components/or-menu-v3/styles.d.ts +1 -0
  217. package/dist/esm/v3/components/or-modal-v3/index.js +3 -3
  218. package/dist/esm/v3/components/or-notification-v3/index.js +3 -3
  219. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -4
  220. package/dist/esm/v3/components/or-pagination-v3/index.js +5 -5
  221. package/dist/esm/v3/components/or-progress-v3/index.js +1 -1
  222. package/dist/esm/v3/components/or-progress-v3/styles.d.ts +1 -1
  223. package/dist/esm/v3/components/or-search-v3/index.js +4 -4
  224. package/dist/esm/v3/components/or-select-v3/index.js +5 -5
  225. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +36 -1
  226. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +49 -4
  227. package/dist/esm/v3/components/or-sidebar-v3/index.js +12 -1
  228. package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
  229. package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +15 -0
  230. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +12 -0
  231. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
  232. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
  233. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +15 -0
  234. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
  235. package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +7 -1
  236. package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
  237. package/dist/esm/v3/components/or-tag-v3/index.js +3 -3
  238. package/dist/esm/v3/components/or-toast-v3/index.js +3 -3
  239. package/dist/esm/v3/components/or-tooltip-v3/index.js +1 -1
  240. package/dist/esm/v3/index.js +22 -21
  241. package/dist/esm/v3/{types-c1956faf.js → types-b79e4387.js} +1 -1
  242. package/package.json +2 -2
  243. package/src/components/or-button-v3/styles.ts +3 -3
  244. package/src/components/or-empty-state-v3/styles.ts +2 -2
  245. package/src/components/or-error-tag-v3/styles.ts +3 -0
  246. package/src/components/or-menu-v3/OrMenu.vue +26 -22
  247. package/src/components/or-menu-v3/styles.ts +5 -0
  248. package/src/components/or-pagination-v3/OrPagination.vue +42 -86
  249. package/src/components/or-pagination-v3/styles.ts +1 -1
  250. package/src/components/or-progress-v3/styles.ts +4 -4
  251. package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +6 -0
  252. package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +253 -12
  253. package/src/components/or-sidebar-v3/OrSidebar.vue +130 -23
  254. package/src/components/or-sidebar-v3/partials/index.ts +1 -0
  255. package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +48 -0
  256. package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +79 -0
  257. package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +1 -0
  258. package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.ts +50 -0
  259. package/src/components/or-sidebar-v3/styles.ts +117 -12
  260. package/src/components/or-tag-v3/OrTag.stories3.ts +5 -5
  261. package/src/components/or-tag-v3/styles.ts +3 -0
  262. package/src/components/or-tooltip-v3/styles.ts +1 -1
  263. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-d298c2fa.js +0 -181
  264. package/dist/esm/v3/OrSidebar-5d97c7cc.js +0 -206
@@ -3,8 +3,11 @@ import OrSidebarDocs from './OrSidebar.docs.mdx';
3
3
  import OrSidebar from './OrSidebar.vue';
4
4
  import { OrSidebarPlacement } from './props';
5
5
  import { action } from '@storybook/addon-actions';
6
+ import { ref } from 'vue-demi';
6
7
  import * as Faker from 'faker';
7
8
  import { OrButtonV3 as OrButton } from '../or-button-v3';
9
+ import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
10
+ import { OrTabsV3 as OrTabs, TabsItem } from '../or-tabs-v3';
8
11
 
9
12
  export default {
10
13
  title: 'Components/Sidebar',
@@ -39,6 +42,15 @@ export default {
39
42
  control: { type: 'text' },
40
43
  },
41
44
 
45
+ toolbar: {
46
+ type: {
47
+ name: 'string',
48
+ required: false,
49
+ },
50
+
51
+ control: { type: 'text' },
52
+ },
53
+
42
54
  // Props
43
55
  width: {
44
56
  control: { type: 'number' },
@@ -52,11 +64,17 @@ export default {
52
64
  control: { type: 'select' },
53
65
  options: Object.values(OrSidebarPlacement),
54
66
  },
67
+
68
+ draggable: {
69
+ control: { type: 'boolean' },
70
+ },
71
+
72
+ collapsible: {
73
+ control: { type: 'boolean' },
74
+ },
55
75
  },
56
76
 
57
77
  parameters: {
58
- layout: 'centered',
59
-
60
78
  docs: {
61
79
  page: OrSidebarDocs,
62
80
  },
@@ -67,6 +85,7 @@ const DefaultTemplate: StoryFn<typeof OrSidebar> = (args) => ({
67
85
  components: {
68
86
  OrSidebar,
69
87
  OrButton,
88
+ OrIconButton,
70
89
  },
71
90
 
72
91
  setup() {
@@ -75,14 +94,24 @@ const DefaultTemplate: StoryFn<typeof OrSidebar> = (args) => ({
75
94
 
76
95
  methods: {
77
96
  onChangeWidth: action('change:width'),
97
+ onOpen: action('open'),
98
+ onClose: action('close'),
78
99
  },
79
100
 
80
101
  template: `
81
- <div style="display: flex; flex-direction: row; border: 1px solid gray; max-height: 500px">
82
- <div style="flex-grow: 1; overflow: auto">
83
- ${Faker.lorem.paragraphs(3)}
102
+ <div style="display: flex; flex-direction: row; border: 1px solid gray; height: 650px">
103
+ <div
104
+ class="theme-background-surface-1 dark:theme-background-surface-1-dark text-on-background dark:text-on-background-dark"
105
+ style="flex-grow: 1; overflow: auto; padding: 16px"
106
+ >
107
+ ${Faker.lorem.paragraphs(10)}
84
108
  </div>
85
- <OrSidebar v-bind="args" @change:width="onChangeWidth">
109
+ <OrSidebar
110
+ v-bind="args"
111
+ @change:width="onChangeWidth"
112
+ @open="onOpen"
113
+ @close="onClose"
114
+ >
86
115
  <template v-if="${!!args.header}" v-slot:header>
87
116
  ${args.header}
88
117
  </template>
@@ -92,6 +121,9 @@ const DefaultTemplate: StoryFn<typeof OrSidebar> = (args) => ({
92
121
  <template v-if="${!!args.footer}" v-slot:footer>
93
122
  ${args.footer}
94
123
  </template>
124
+ <template v-if="${!!args.toolbar}" v-slot:toolbar>
125
+ ${args.toolbar}
126
+ </template>
95
127
  </OrSidebar>
96
128
  </div>
97
129
  `,
@@ -101,6 +133,7 @@ const LeftTemplate: StoryFn<typeof OrSidebar> = (args) => ({
101
133
  components: {
102
134
  OrSidebar,
103
135
  OrButton,
136
+ OrIconButton,
104
137
  },
105
138
 
106
139
  setup() {
@@ -109,11 +142,18 @@ const LeftTemplate: StoryFn<typeof OrSidebar> = (args) => ({
109
142
 
110
143
  methods: {
111
144
  onChangeWidth: action('change:width'),
145
+ onOpen: action('open'),
146
+ onClose: action('close'),
112
147
  },
113
148
 
114
149
  template: `
115
- <div style="display: flex; flex-direction: row; border: 1px solid gray; max-height: 500px">
116
- <OrSidebar v-bind="args" @change:width="onChangeWidth">
150
+ <div style="display: flex; flex-direction: row; border: 1px solid gray; height: 650px">
151
+ <OrSidebar
152
+ v-bind="args"
153
+ @change:width="onChangeWidth"
154
+ @open="onOpen"
155
+ @close="onClose"
156
+ >
117
157
  <template v-if="${!!args.header}" v-slot:header>
118
158
  ${args.header}
119
159
  </template>
@@ -123,14 +163,150 @@ const LeftTemplate: StoryFn<typeof OrSidebar> = (args) => ({
123
163
  <template v-if="${!!args.footer}" v-slot:footer>
124
164
  ${args.footer}
125
165
  </template>
166
+ <template v-if="${!!args.toolbar}" v-slot:toolbar>
167
+ ${args.toolbar}
168
+ </template>
126
169
  </OrSidebar>
127
- <div style="flex-grow: 1; overflow: auto">
128
- ${Faker.lorem.paragraphs(3)}
170
+ <div
171
+ class="theme-background-surface-1 dark:theme-background-surface-1-dark text-on-background dark:text-on-background-dark"
172
+ style="flex-grow: 1; overflow: auto; padding: 16px"
173
+ >
174
+ ${Faker.lorem.paragraphs(10)}
175
+ </div>
176
+ </div>
177
+ `,
178
+ });
179
+
180
+ const TabsTemplate: StoryFn<typeof OrSidebar> = (args) => ({
181
+ components: {
182
+ OrSidebar,
183
+ OrButton,
184
+ OrIconButton,
185
+ OrTabs,
186
+ },
187
+
188
+ setup() {
189
+ // State
190
+ const model = ref<string>();
191
+
192
+ return {
193
+ args,
194
+ model,
195
+ };
196
+ },
197
+
198
+ methods: {
199
+ onChangeWidth: action('change:width'),
200
+ onOpen: action('open'),
201
+ onClose: action('close'),
202
+ },
203
+
204
+ template: `
205
+ <div style="display: flex; flex-direction: row; border: 1px solid gray; height: 650px">
206
+ <div
207
+ class="theme-background-surface-1 dark:theme-background-surface-1-dark text-on-background dark:text-on-background-dark"
208
+ style="flex-grow: 1; overflow: auto; padding: 16px"
209
+ >
210
+ ${Faker.lorem.paragraphs(10)}
129
211
  </div>
212
+ <OrSidebar
213
+ v-bind="args"
214
+ @change:width="onChangeWidth"
215
+ @open="onOpen"
216
+ @close="onClose"
217
+ >
218
+ <template v-if="${!!args.header}" v-slot:header>
219
+ ${args.header}
220
+ </template>
221
+ <template v-if="${!!args.default}" v-slot:default>
222
+ ${args.default}
223
+ </template>
224
+ <template v-else v-slot:default>
225
+ <or-tabs
226
+ v-model="model"
227
+ :items="args.items"
228
+ >
229
+ <template v-for="item in args.items" #[item.value]>
230
+ {{ item.label }} Content
231
+ ${Faker.lorem.paragraphs(3)}
232
+ </template>
233
+ </or-tabs>
234
+ </template>
235
+ <template v-if="${!!args.footer}" v-slot:footer>
236
+ ${args.footer}
237
+ </template>
238
+ <template v-if="${!!args.toolbar}" v-slot:toolbar>
239
+ ${args.toolbar}
240
+ </template>
241
+ </OrSidebar>
130
242
  </div>
131
243
  `,
132
244
  });
133
245
 
246
+ const longToolbar = `
247
+ <or-icon-button
248
+ icon="refresh"
249
+ color="inherit"
250
+ />
251
+ <hr class="w-full border-outline-variant dark:border-outline-variant-dark" />
252
+ <or-icon-button
253
+ icon="add"
254
+ color="inherit"
255
+ />
256
+ <or-icon-button
257
+ icon="zoom_out_map"
258
+ color="inherit"
259
+ />
260
+ <or-icon-button
261
+ icon="remove"
262
+ color="inherit"
263
+ />
264
+ <hr class="w-full border-outline-variant dark:border-outline-variant-dark" />
265
+ <or-icon-button
266
+ icon="description"
267
+ color="inherit"
268
+ />
269
+ <or-icon-button
270
+ icon="tab_unselected"
271
+ color="inherit"
272
+ />
273
+ <hr class="w-full border-outline-variant dark:border-outline-variant-dark" />
274
+ <or-icon-button
275
+ icon="create_new_folder"
276
+ color="inherit"
277
+ />
278
+ <or-icon-button
279
+ icon="content_paste"
280
+ color="inherit"
281
+ />
282
+ <or-icon-button
283
+ icon="location_on"
284
+ color="inherit"
285
+ />
286
+ <or-icon-button
287
+ icon="copy_all"
288
+ color="inherit"
289
+ />
290
+ <or-icon-button
291
+ icon="call_split"
292
+ color="inherit"
293
+ />
294
+ <hr class="w-full border-outline-variant dark:border-outline-variant-dark" />
295
+ <or-icon-button
296
+ icon="sell"
297
+ color="inherit"
298
+ />
299
+ <div class="mt-auto" />
300
+ <or-icon-button
301
+ icon="terminal"
302
+ color="inherit"
303
+ />
304
+ <or-icon-button
305
+ icon="delete"
306
+ color="inherit"
307
+ />
308
+ `;
309
+
134
310
  export const Default = DefaultTemplate.bind({});
135
311
  Default.args = {
136
312
  header: 'Header',
@@ -138,11 +314,24 @@ Default.args = {
138
314
  footer: 'Footer',
139
315
  };
140
316
 
141
- export const WithMinimumWidth = DefaultTemplate.bind({});
142
- WithMinimumWidth.args = {
317
+ export const WithCustomWidthConstraints = DefaultTemplate.bind({});
318
+ WithCustomWidthConstraints.args = {
143
319
  ...Default.args,
144
320
  width: 250,
145
321
  minimumWidth: 200,
322
+ maximumWidth: 500,
323
+ };
324
+
325
+ export const NotDraggable = DefaultTemplate.bind({});
326
+ NotDraggable.args = {
327
+ ...Default.args,
328
+ draggable: false,
329
+ };
330
+
331
+ export const Collapsible = DefaultTemplate.bind({});
332
+ Collapsible.args = {
333
+ ...Default.args,
334
+ collapsible: true,
146
335
  };
147
336
 
148
337
  export const OnlyContent = DefaultTemplate.bind({});
@@ -167,8 +356,60 @@ WithFooter.args = {
167
356
  `,
168
357
  };
169
358
 
359
+ export const WithToolbar = DefaultTemplate.bind({});
360
+ WithToolbar.args = {
361
+ ...OnlyContent.args,
362
+ toolbar: longToolbar,
363
+ };
364
+
365
+ export const CollapsibleWithToolbar = DefaultTemplate.bind({});
366
+ CollapsibleWithToolbar.args = {
367
+ ...WithToolbar.args,
368
+ collapsible: true,
369
+ };
370
+
371
+ export const WithTabs = TabsTemplate.bind({});
372
+ WithTabs.args = {
373
+ minimumWidth: 352,
374
+ header: 'Headline',
375
+ items: Array.from<string, TabsItem>([
376
+ 'Alfa',
377
+ 'Bravo',
378
+ 'Charlie',
379
+ 'Delta',
380
+ 'Echo',
381
+ 'Foxtrot',
382
+ 'Golf',
383
+ 'Hotel',
384
+ 'India',
385
+ 'Juliett',
386
+ ], (item) => ({
387
+ value: item.toLowerCase(),
388
+ label: item,
389
+ })),
390
+ footer: `
391
+ <div style="display: flex; flex-direction: row; justify-content: end; gap: 16px">
392
+ <or-button color="danger" variant="outlined">Delete</or-button>
393
+ <or-button variant="outlined" class="ml-auto">Cancel</or-button>
394
+ <or-button>Save</or-button>
395
+ </div>
396
+ `,
397
+ };
398
+
170
399
  export const LeftSidebar = LeftTemplate.bind({});
171
400
  LeftSidebar.args = {
172
401
  ...Default.args,
173
402
  side: 'left',
174
403
  };
404
+
405
+ export const WithLeftToolbar = LeftTemplate.bind({});
406
+ WithLeftToolbar.args = {
407
+ ...LeftSidebar.args,
408
+ toolbar: longToolbar,
409
+ };
410
+
411
+ export const CollapsibleWithWithLeftToolbar = LeftTemplate.bind({});
412
+ CollapsibleWithWithLeftToolbar.args = {
413
+ ...WithLeftToolbar.args,
414
+ collapsible: true,
415
+ };
@@ -2,28 +2,55 @@
2
2
  <aside
3
3
  ref="root"
4
4
  :class="rootStyles"
5
- :style="sidebarStyle"
6
5
  >
7
6
  <div
8
- ref="resizeBar"
9
- :class="resizeStyles"
10
- />
11
- <div :class="mainStyles">
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="$slots.header"
14
- :class="headerStyles"
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
- <slot name="header" />
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 :class="contentStyles">
19
- <slot />
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="$slots.footer"
24
- :class="footerStyles"
50
+ v-if="side === 'left' && isShowingToolbar"
51
+ :class="toolbarStyles"
25
52
  >
26
- <slot name="footer" />
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
- SidebarRootSides,
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
- required: false,
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
- required: false,
61
- default: 350,
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: ['change:width'],
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
- ...SidebarRootSides[props.side],
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
- const { width: maximumWidth } = useElementBounding(parentContainer);
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
+ };