@onereach/ui-components 2.74.0 → 2.74.1-beta.2289.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/bundled/v2/{OrButton-d45772c1.js → OrButton-4862b98b.js} +3 -3
  2. package/dist/bundled/v2/{OrCardCollection-9bc44ec5.js → OrCardCollection-187b0468.js} +4 -4
  3. package/dist/bundled/v2/{OrConfirm-ea6ea2f7.js → OrConfirm-94fd90ae.js} +2 -2
  4. package/dist/bundled/v2/{OrEmptyState-9fb413f9.js → OrEmptyState-8a7feb99.js} +2 -2
  5. package/dist/bundled/v2/{OrErrorTag-97a9112b.js → OrErrorTag-785d650a.js} +1 -1
  6. package/dist/bundled/v2/{OrIconButton-837d57f8.js → OrIconButton-5e9d8efe.js} +1 -1
  7. package/dist/bundled/v2/{OrInlineInput-57fccb41.js → OrInlineInput-38a99ef9.js} +1 -1
  8. package/dist/bundled/v2/{OrInlineTextarea-f8b86cf7.js → OrInlineTextarea-e0ff164c.js} +1 -1
  9. package/dist/bundled/v2/{OrInput-57a47093.js → OrInput-65ad6551.js} +1 -1
  10. package/dist/bundled/v2/{OrMenu-52da43bc.js → OrMenu-6ab53877.js} +10 -15
  11. package/dist/bundled/v2/{OrModal-78f5d49e.js → OrModal-41f9e197.js} +1 -1
  12. package/dist/bundled/v2/{OrNotification-458fe937.js → OrNotification-cbb374c5.js} +1 -1
  13. package/dist/bundled/v2/{OrPagination-daf25de2.js → OrPagination-9bf3d797.js} +60 -24
  14. package/dist/bundled/v2/{OrProgress-15fe65ec.js → OrProgress-5cf0a7e7.js} +3 -3
  15. package/dist/bundled/v2/{OrSearch-4072a079.js → OrSearch-142dd903.js} +1 -1
  16. package/dist/bundled/v2/{OrSelect-359e891b.js → OrSelect-797fb43b.js} +2 -2
  17. package/dist/bundled/v2/{OrSidebar-a2bc21b9.js → OrSidebar-ae90e090.js} +3 -3
  18. package/dist/bundled/v2/{OrSidebarCollapseButton-8297ef86.js → OrSidebarCollapseButton-54abd48f.js} +1 -1
  19. package/dist/bundled/v2/{OrTabs-d69780fc.js → OrTabs-517e2f25.js} +1 -1
  20. package/dist/bundled/v2/{OrTag-4085e8a7.js → OrTag-231eefa1.js} +2 -2
  21. package/dist/bundled/v2/{OrTooltip-b1f38647.js → OrTooltip-121e28c5.js} +3 -1
  22. package/dist/bundled/v2/components/index.js +22 -22
  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 +0 -2
  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 +0 -1
  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 +4 -0
  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/index.js +4 -4
  44. package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +3 -3
  45. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +3 -3
  46. package/dist/bundled/v2/components/or-tabs-v3/index.js +2 -2
  47. package/dist/bundled/v2/components/or-tag-v3/index.js +3 -3
  48. package/dist/bundled/v2/components/or-toast-v3/index.js +3 -3
  49. package/dist/bundled/v2/components/or-tooltip-v3/index.js +1 -1
  50. package/dist/bundled/v2/index.js +23 -23
  51. package/dist/bundled/v2/{types-309b7b94.js → types-c2d44cac.js} +1 -1
  52. package/dist/bundled/v3/{OrButton-a1448bfa.js → OrButton-05766523.js} +1 -1
  53. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3b1e442b.js → OrButton.vue_vue_type_script_lang-b53e78f5.js} +3 -3
  54. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-62eb2543.js → OrCardCollection.vue_vue_type_script_lang-e980e703.js} +7 -7
  55. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9aff9db3.js → OrConfirm.vue_vue_type_script_lang-7ba2f530.js} +4 -4
  56. package/dist/bundled/v3/{OrEmptyState.vue_vue_type_script_lang-da7d6c42.js → OrEmptyState.vue_vue_type_script_lang-8e58c67c.js} +2 -2
  57. package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js → OrErrorTag.vue_vue_type_script_lang-3675dde9.js} +1 -1
  58. package/dist/bundled/v3/{OrIconButton-e0566ecf.js → OrIconButton-d6dfb9a4.js} +1 -1
  59. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js → OrIconButton.vue_vue_type_script_lang-5d1cb50c.js} +1 -1
  60. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-49ce3308.js → OrInlineInput.vue_vue_type_script_lang-92640762.js} +2 -2
  61. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-8fd761d7.js → OrInlineTextarea.vue_vue_type_script_lang-7358cb4f.js} +2 -2
  62. package/dist/bundled/v3/{OrInput-44a32124.js → OrInput-6aef644c.js} +1 -1
  63. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-4d9e2f4a.js → OrInput.vue_vue_type_script_lang-8e55cefa.js} +2 -2
  64. package/dist/bundled/v3/{OrMenu-6d7abe97.js → OrMenu-bb432db5.js} +9 -10
  65. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-df35fd76.js → OrMenu.vue_vue_type_script_lang-5a492eb3.js} +5 -8
  66. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-6b1dc231.js → OrModal.vue_vue_type_script_lang-5f45677f.js} +2 -2
  67. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-d0afc1d7.js → OrNotification.vue_vue_type_script_lang-b9a8e938.js} +2 -2
  68. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f64827ef.js → OrPagination.vue_vue_type_script_lang-bdb0acc8.js} +35 -20
  69. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-52f660d6.js → OrProgress.vue_vue_type_script_lang-17095060.js} +3 -3
  70. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0ddeada5.js → OrSearch.vue_vue_type_script_lang-763128bf.js} +2 -2
  71. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c7a9bec2.js → OrSelect.vue_vue_type_script_lang-48de444c.js} +3 -3
  72. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-7f3f1a16.js → OrSidebar.vue_vue_type_script_lang-5116ba2b.js} +3 -3
  73. package/dist/bundled/v3/{OrSidebarCollapseButton.vue_vue_type_script_lang-9aeba2d4.js → OrSidebarCollapseButton.vue_vue_type_script_lang-c071f0c6.js} +2 -2
  74. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-cb550e87.js → OrTabs.vue_vue_type_script_lang-ae519161.js} +2 -2
  75. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-a25a49ee.js → OrTag.vue_vue_type_script_lang-2410faf0.js} +3 -3
  76. package/dist/bundled/v3/{OrToastContainer-6fe12712.js → OrToastContainer-a435e015.js} +1 -1
  77. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-bf9935ef.js → OrTooltip.vue_vue_type_script_lang-7a64c90d.js} +3 -1
  78. package/dist/bundled/v3/components/index.js +26 -26
  79. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  80. package/dist/bundled/v3/components/or-card-collection-v3/index.js +11 -11
  81. package/dist/bundled/v3/components/or-confirm-v3/index.js +8 -8
  82. package/dist/bundled/v3/components/or-empty-state-v3/index.js +1 -1
  83. package/dist/bundled/v3/components/or-error-tag-v3/index.js +1 -1
  84. package/dist/bundled/v3/components/or-icon-button-v3/index.js +2 -2
  85. package/dist/bundled/v3/components/or-inline-input-v3/index.js +4 -4
  86. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +4 -4
  87. package/dist/bundled/v3/components/or-input-v3/index.js +4 -4
  88. package/dist/bundled/v3/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
  89. package/dist/bundled/v3/components/or-menu-v3/index.js +1 -1
  90. package/dist/bundled/v3/components/or-menu-v3/styles.d.ts +0 -1
  91. package/dist/bundled/v3/components/or-modal-v3/index.js +4 -4
  92. package/dist/bundled/v3/components/or-notification-v3/index.js +4 -4
  93. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
  94. package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
  95. package/dist/bundled/v3/components/or-progress-v3/index.js +1 -1
  96. package/dist/bundled/v3/components/or-progress-v3/styles.d.ts +1 -1
  97. package/dist/bundled/v3/components/or-search-v3/index.js +6 -6
  98. package/dist/bundled/v3/components/or-select-v3/index.js +7 -7
  99. package/dist/bundled/v3/components/or-sidebar-v3/index.js +5 -5
  100. package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +4 -4
  101. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
  102. package/dist/bundled/v3/components/or-tabs-v3/index.js +3 -3
  103. package/dist/bundled/v3/components/or-tag-v3/index.js +4 -4
  104. package/dist/bundled/v3/components/or-toast-v3/index.js +5 -5
  105. package/dist/bundled/v3/components/or-tooltip-v3/index.js +1 -1
  106. package/dist/bundled/v3/index.js +70 -48
  107. package/dist/bundled/v3/{types-22fbf9d6.js → types-f95c218d.js} +2 -2
  108. package/dist/esm/v2/{OrButton-66964360.js → OrButton-18f4431c.js} +3 -3
  109. package/dist/esm/v2/{OrCardCollection-4c909f4b.js → OrCardCollection-88f635a2.js} +4 -4
  110. package/dist/esm/v2/{OrConfirm-7dc26526.js → OrConfirm-7d81daa5.js} +2 -2
  111. package/dist/esm/v2/{OrEmptyState-2481f13f.js → OrEmptyState-ab1a044d.js} +2 -2
  112. package/dist/esm/v2/{OrErrorTag-80f82cdf.js → OrErrorTag-57140070.js} +1 -1
  113. package/dist/esm/v2/{OrIconButton-04a3566d.js → OrIconButton-14d80983.js} +1 -1
  114. package/dist/esm/v2/{OrInlineInput-b85b84b4.js → OrInlineInput-2746837c.js} +1 -1
  115. package/dist/esm/v2/{OrInlineTextarea-afd33047.js → OrInlineTextarea-3af829c7.js} +1 -1
  116. package/dist/esm/v2/{OrInput-3d8c8925.js → OrInput-979c7225.js} +1 -1
  117. package/dist/esm/v2/{OrMenu-c276db74.js → OrMenu-943e7760.js} +10 -15
  118. package/dist/esm/v2/{OrModal-4e79e0d5.js → OrModal-e638986d.js} +1 -1
  119. package/dist/esm/v2/{OrNotification-eac3867f.js → OrNotification-19c82a07.js} +1 -1
  120. package/dist/esm/v2/{OrPagination-1adbcadb.js → OrPagination-93d78a0d.js} +61 -24
  121. package/dist/esm/v2/{OrProgress-b7d1c689.js → OrProgress-9fc95bd7.js} +3 -3
  122. package/dist/esm/v2/{OrSearch-d6f1ba11.js → OrSearch-b693161b.js} +1 -1
  123. package/dist/esm/v2/{OrSelect-bdb9a78a.js → OrSelect-454e1bc3.js} +2 -2
  124. package/dist/esm/v2/{OrSidebar-27236fbd.js → OrSidebar-f6e3030d.js} +3 -3
  125. package/dist/esm/v2/{OrSidebarCollapseButton-cfe51a60.js → OrSidebarCollapseButton-5bb545a6.js} +1 -1
  126. package/dist/esm/v2/{OrTabs-96b0473d.js → OrTabs-398348a5.js} +1 -1
  127. package/dist/esm/v2/{OrTag-b2906865.js → OrTag-4a6cad6e.js} +2 -2
  128. package/dist/esm/v2/{OrTooltip-629d44fc.js → OrTooltip-233c67b9.js} +3 -1
  129. package/dist/esm/v2/components/index.js +22 -22
  130. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  131. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -7
  132. package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
  133. package/dist/esm/v2/components/or-empty-state-v3/index.js +1 -1
  134. package/dist/esm/v2/components/or-error-tag-v3/index.js +1 -1
  135. package/dist/esm/v2/components/or-icon-button-v3/index.js +2 -2
  136. package/dist/esm/v2/components/or-inline-input-v3/index.js +3 -3
  137. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +3 -3
  138. package/dist/esm/v2/components/or-input-v3/index.js +3 -3
  139. package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
  140. package/dist/esm/v2/components/or-menu-v3/index.js +1 -1
  141. package/dist/esm/v2/components/or-menu-v3/styles.d.ts +0 -1
  142. package/dist/esm/v2/components/or-modal-v3/index.js +3 -3
  143. package/dist/esm/v2/components/or-notification-v3/index.js +3 -3
  144. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
  145. package/dist/esm/v2/components/or-pagination-v3/index.js +5 -5
  146. package/dist/esm/v2/components/or-progress-v3/index.js +1 -1
  147. package/dist/esm/v2/components/or-progress-v3/styles.d.ts +1 -1
  148. package/dist/esm/v2/components/or-search-v3/index.js +4 -4
  149. package/dist/esm/v2/components/or-select-v3/index.js +5 -5
  150. package/dist/esm/v2/components/or-sidebar-v3/index.js +4 -4
  151. package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +3 -3
  152. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +3 -3
  153. package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
  154. package/dist/esm/v2/components/or-tag-v3/index.js +3 -3
  155. package/dist/esm/v2/components/or-toast-v3/index.js +3 -3
  156. package/dist/esm/v2/components/or-tooltip-v3/index.js +1 -1
  157. package/dist/esm/v2/index.js +22 -22
  158. package/dist/esm/v2/{types-1f95d710.js → types-34f2e287.js} +1 -1
  159. package/dist/esm/v3/{OrButton-c56998e7.js → OrButton-55dd2ad9.js} +3 -3
  160. package/dist/esm/v3/{OrCardCollection-803f67f7.js → OrCardCollection-551def4e.js} +4 -4
  161. package/dist/esm/v3/{OrConfirm-403896ca.js → OrConfirm-4e3a7560.js} +2 -2
  162. package/dist/esm/v3/{OrEmptyState-bb8e3145.js → OrEmptyState-cd3a4026.js} +2 -2
  163. package/dist/esm/v3/{OrErrorTag-308119de.js → OrErrorTag-f114e88b.js} +1 -1
  164. package/dist/esm/v3/{OrIconButton-2dcfb83e.js → OrIconButton-3920ba54.js} +1 -1
  165. package/dist/esm/v3/{OrInlineInput-fbc35f85.js → OrInlineInput-86e4383b.js} +1 -1
  166. package/dist/esm/v3/{OrInlineTextarea-79da8697.js → OrInlineTextarea-10826fa6.js} +1 -1
  167. package/dist/esm/v3/{OrInput-71075f51.js → OrInput-2568be79.js} +1 -1
  168. package/dist/esm/v3/{OrMenu-7f3ea117.js → OrMenu-fd2fe1e7.js} +13 -17
  169. package/dist/esm/v3/{OrModal-4219a6dc.js → OrModal-87eaff65.js} +1 -1
  170. package/dist/esm/v3/{OrNotification-0e682c7f.js → OrNotification-7aab5f58.js} +1 -1
  171. package/dist/esm/v3/{OrPagination-da9e5017.js → OrPagination-781c119e.js} +64 -26
  172. package/dist/esm/v3/{OrProgress-639ed5e8.js → OrProgress-4856808a.js} +3 -3
  173. package/dist/esm/v3/{OrSearch-4e180e34.js → OrSearch-3c7feda3.js} +1 -1
  174. package/dist/esm/v3/{OrSelect-c64eda46.js → OrSelect-389aab9f.js} +2 -2
  175. package/dist/esm/v3/{OrSidebar-61d84c3e.js → OrSidebar-2c8a68df.js} +3 -3
  176. package/dist/esm/v3/{OrSidebarCollapseButton-1b9c83ef.js → OrSidebarCollapseButton-1ed5a3d7.js} +1 -1
  177. package/dist/esm/v3/{OrTabs-328d41b9.js → OrTabs-34c67377.js} +1 -1
  178. package/dist/esm/v3/{OrTag-148ff9ae.js → OrTag-c5c305ed.js} +2 -2
  179. package/dist/esm/v3/{OrTooltip-b07616f4.js → OrTooltip-229c90d5.js} +3 -1
  180. package/dist/esm/v3/components/index.js +22 -22
  181. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  182. package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -7
  183. package/dist/esm/v3/components/or-confirm-v3/index.js +5 -5
  184. package/dist/esm/v3/components/or-empty-state-v3/index.js +1 -1
  185. package/dist/esm/v3/components/or-error-tag-v3/index.js +1 -1
  186. package/dist/esm/v3/components/or-icon-button-v3/index.js +2 -2
  187. package/dist/esm/v3/components/or-inline-input-v3/index.js +3 -3
  188. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +3 -3
  189. package/dist/esm/v3/components/or-input-v3/index.js +3 -3
  190. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
  191. package/dist/esm/v3/components/or-menu-v3/index.js +1 -1
  192. package/dist/esm/v3/components/or-menu-v3/styles.d.ts +0 -1
  193. package/dist/esm/v3/components/or-modal-v3/index.js +3 -3
  194. package/dist/esm/v3/components/or-notification-v3/index.js +3 -3
  195. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
  196. package/dist/esm/v3/components/or-pagination-v3/index.js +5 -5
  197. package/dist/esm/v3/components/or-progress-v3/index.js +1 -1
  198. package/dist/esm/v3/components/or-progress-v3/styles.d.ts +1 -1
  199. package/dist/esm/v3/components/or-search-v3/index.js +4 -4
  200. package/dist/esm/v3/components/or-select-v3/index.js +5 -5
  201. package/dist/esm/v3/components/or-sidebar-v3/index.js +4 -4
  202. package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +3 -3
  203. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +3 -3
  204. package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
  205. package/dist/esm/v3/components/or-tag-v3/index.js +3 -3
  206. package/dist/esm/v3/components/or-toast-v3/index.js +3 -3
  207. package/dist/esm/v3/components/or-tooltip-v3/index.js +1 -1
  208. package/dist/esm/v3/index.js +22 -22
  209. package/dist/esm/v3/{types-b79e4387.js → types-225f772b.js} +1 -1
  210. package/package.json +2 -3
  211. package/src/components/or-button-v3/styles.ts +3 -3
  212. package/src/components/or-empty-state-v3/styles.ts +2 -2
  213. package/src/components/or-error-tag-v3/styles.ts +1 -1
  214. package/src/components/or-menu-v3/OrMenu.vue +22 -26
  215. package/src/components/or-menu-v3/styles.ts +0 -5
  216. package/src/components/or-pagination-v3/OrPagination.vue +86 -42
  217. package/src/components/or-pagination-v3/styles.ts +1 -1
  218. package/src/components/or-progress-v3/styles.ts +4 -4
  219. package/src/components/or-sidebar-v3/styles.ts +2 -2
  220. package/src/components/or-tag-v3/OrTag.stories3.ts +5 -5
  221. package/src/components/or-tag-v3/styles.ts +1 -1
  222. package/src/components/or-tooltip-v3/styles.ts +4 -1
@@ -14,31 +14,35 @@
14
14
  <OrIcon :icon="'keyboard_arrow_left'" />
15
15
  </OrButton>
16
16
 
17
- <OrButton
18
- v-for="(page, index) in buttonGroup"
19
- :key="index"
20
- :class="itemStyles"
21
- :variant="'link'"
22
- :color="'inherit'"
23
- :activated="currentPage === page"
24
- @click.stop="typeof page === 'number' && toPage(page)"
25
- >
26
- {{ page }}
27
- </OrButton>
28
-
29
- <OrButton
30
- :class="itemStyles"
31
- :variant="'link'"
32
- :color="'inherit'"
33
- :disabled="currentPage === lastPage"
34
- @click.stop="toNextPage()"
35
- >
36
- <OrIcon :icon="'keyboard_arrow_right'" />
37
- </OrButton>
17
+ <template v-if="isDesktop">
18
+ <OrButton
19
+ v-for="(page, index) in buttonGroup"
20
+ :key="index"
21
+ :class="itemStyles"
22
+ :variant="'link'"
23
+ :color="'inherit'"
24
+ :activated="currentPage === page"
25
+ @click.stop="typeof page === 'number' && toPage(page)"
26
+ >
27
+ {{ page }}
28
+ </OrButton>
29
+
30
+ <OrButton
31
+ :class="itemStyles"
32
+ :variant="'link'"
33
+ :color="'inherit'"
34
+ :disabled="currentPage === lastPage"
35
+ @click.stop="toNextPage()"
36
+ >
37
+ <OrIcon :icon="'keyboard_arrow_right'" />
38
+ </OrButton>
39
+ </template>
38
40
  </div>
39
41
 
40
42
  <div :class="limitControlStyles">
41
- Per page:
43
+ <template v-if="isDesktop">
44
+ Per page:
45
+ </template>
42
46
 
43
47
  <OrButton
44
48
  ref="limitButton"
@@ -48,28 +52,44 @@
48
52
  :activated="true"
49
53
  @click.stop="limitMenu.open()"
50
54
  >
51
- {{ currentLimit }} <OrIcon :icon="'arrow_drop_down'" />
55
+ {{ currentLimit }} <OrIcon :icon="limitMenu && limitMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'" />
52
56
  </OrButton>
53
57
 
54
58
  <OrMenu
55
59
  ref="limitMenu"
60
+ :class="['min-w-[60px]']"
56
61
  :trigger="limitButtonRoot"
57
62
  :placement="'top'"
58
63
  >
59
64
  <OrMenuItem
60
65
  v-for="pageSize in pageSizeOptions"
61
66
  :key="pageSize"
62
- @click.stop="currentLimit = pageSize"
67
+ @click.stop="currentLimit = pageSize; limitMenu.close()"
63
68
  >
64
69
  {{ pageSize }}
65
70
  </OrMenuItem>
66
71
  </OrMenu>
67
72
  </div>
73
+
74
+ <template v-if="isMobile">
75
+ <div :class="offsetControlStyles">
76
+ <OrButton
77
+ :class="itemStyles"
78
+ :variant="'link'"
79
+ :color="'inherit'"
80
+ :disabled="currentPage === lastPage"
81
+ @click.stop="toNextPage()"
82
+ >
83
+ <OrIcon :icon="'keyboard_arrow_right'" />
84
+ </OrButton>
85
+ </div>
86
+ </template>
68
87
  </div>
69
88
  </template>
70
89
 
71
90
  <script lang="ts">
72
91
  import { computed, defineComponent, PropType, ref } from 'vue-demi';
92
+ import { useResponsive } from '../../hooks';
73
93
  import { OrButtonV3 as OrButton } from '../or-button-v3';
74
94
  import { OrIconV3 as OrIcon } from '../or-icon-v3';
75
95
  import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
@@ -118,6 +138,8 @@ export default defineComponent({
118
138
  ],
119
139
 
120
140
  setup(props, context) {
141
+ const { isDesktop, isMobile } = useResponsive();
142
+
121
143
  // Refs
122
144
  const root = ref<HTMLElement>();
123
145
 
@@ -193,24 +215,43 @@ export default defineComponent({
193
215
  });
194
216
 
195
217
  const buttonGroup = computed<(number | string)[]>(() => {
196
- return Array.from({ length: lastPage.value }, (_, index) => index + 1)
197
- .map((page) => {
198
- switch (true) {
199
- case page > firstPage.value && page < currentPage.value - 1:
200
- case page > currentPage.value + 1 && page < lastPage.value:
201
- return '…';
202
-
203
- default:
204
- return page;
205
- }
206
- })
207
- .reduce((accumulator, page) => {
208
- if (accumulator[accumulator.length - 1] === page) {
209
- return accumulator;
210
- }
211
-
212
- return [...accumulator, page];
213
- }, [] as (number | string)[]);
218
+ const pages = Array.from({ length: lastPage.value }, (_, index) => index + 1);
219
+
220
+ switch (true) {
221
+ case currentPage.value < firstPage.value + 4:
222
+ return [
223
+ ...pages.slice(0, 5),
224
+ '…',
225
+ lastPage.value,
226
+ ];
227
+
228
+ case currentPage.value > lastPage.value - 4:
229
+ return [
230
+ firstPage.value,
231
+ '…',
232
+ ...pages.slice(-5),
233
+ ];
234
+
235
+ default:
236
+ return pages
237
+ .map((page) => {
238
+ switch (true) {
239
+ case page > firstPage.value && page < currentPage.value - 1:
240
+ case page < lastPage.value && page > currentPage.value + 1:
241
+ return '…';
242
+
243
+ default:
244
+ return page;
245
+ }
246
+ })
247
+ .reduce((accumulator, page) => {
248
+ if (accumulator[accumulator.length - 1] === page) {
249
+ return accumulator;
250
+ }
251
+
252
+ return [...accumulator, page];
253
+ }, [] as (number | string)[]);
254
+ }
214
255
  });
215
256
 
216
257
  // Methods
@@ -227,6 +268,9 @@ export default defineComponent({
227
268
  }
228
269
 
229
270
  return {
271
+ isDesktop,
272
+ isMobile,
273
+
230
274
  root,
231
275
  limitButton,
232
276
  limitButtonRoot,
@@ -3,7 +3,7 @@ export const PaginationRoot: string[] = [
3
3
  'layout-row',
4
4
 
5
5
  // Spacing
6
- 'gap-xl',
6
+ 'gap-lg md:gap-xl',
7
7
 
8
8
  // Typography
9
9
  'typography-caption-regular',
@@ -1,4 +1,4 @@
1
- import { ProgressType, ProgressColor } from './props';
1
+ import { ProgressColor, ProgressType } from './props';
2
2
 
3
3
  export const ProgressRoot: string[] = [
4
4
  // Typography
@@ -31,7 +31,7 @@ export const ProgressHeader: string[] = [
31
31
  'flex',
32
32
  'flex-row',
33
33
 
34
- // Sizing
34
+ // Spacing
35
35
  'mb-[6px]',
36
36
  ];
37
37
 
@@ -45,7 +45,7 @@ export const ProgressHeaderLabel: string[] = [
45
45
  ];
46
46
 
47
47
  export const ProgressHeaderPercent: string[] = [
48
- // Sizing
48
+ // Spacing
49
49
  'ml-auto',
50
50
  ];
51
51
 
@@ -102,6 +102,6 @@ export const ProgressBarColors: Record<Exclude<ProgressColor, ProgressColor.Auto
102
102
  };
103
103
 
104
104
  export const ProgressFooter: string[] = [
105
- // Sizing
105
+ // Spacing
106
106
  'mt-[2px]',
107
107
  ];
@@ -202,7 +202,7 @@ export const SidebarContent: string[] = [
202
202
  'grow',
203
203
  'overflow-auto',
204
204
 
205
- // Sizing
205
+ // Spacing
206
206
  'p-md',
207
207
  ];
208
208
 
@@ -211,7 +211,7 @@ export const SidebarFooter: string[] = [
211
211
  'shrink-0',
212
212
  'overflow-x-hidden',
213
213
 
214
- // Sizing
214
+ // Spacing
215
215
  'p-md',
216
216
 
217
217
  // Borders
@@ -1,13 +1,13 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
  import { Meta, StoryFn } from '@storybook/vue3';
3
3
  import Faker from 'faker';
4
+ import { ref } from 'vue-demi';
5
+ import { useOverflow } from '../../hooks';
6
+ import { OrButtonV3 as OrButton } from '../or-button-v3';
7
+ import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
4
8
  import OrTagDocs from './OrTag.docs.mdx';
5
9
  import OrTag from './OrTag.vue';
6
10
  import { TagColor, TagVariant } from './props';
7
- import { OrButtonV3 as OrButton } from '../or-button-v3';
8
- import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
9
- import { useOverflow } from '../../hooks';
10
- import { ref } from 'vue-demi';
11
11
 
12
12
  export default {
13
13
  title: 'Components/Tag',
@@ -77,7 +77,7 @@ const Template: StoryFn<typeof OrTag> = (args) => ({
77
77
  @blur="handleBlur"
78
78
  @reset="handleReset"
79
79
  >
80
- ${args.default}
80
+ ${args.default}
81
81
  </OrTag>
82
82
  `,
83
83
  });
@@ -5,7 +5,7 @@ export const TagRoot: string[] = [
5
5
  'layout-inline-row',
6
6
 
7
7
  // Box
8
- 'max-w-fit',
8
+ 'max-w-min',
9
9
 
10
10
  // Shape
11
11
  'rounded-full',
@@ -2,13 +2,16 @@ import { TooltipPlacement } from './props';
2
2
 
3
3
  export const TooltipRoot: string[] = [
4
4
  // Layout
5
- 'layout-inline-row justify-center',
5
+ 'inline-block',
6
6
  ];
7
7
 
8
8
  export const TooltipBody: string[] = [
9
9
  // Layout
10
10
  'layout-inline-row',
11
11
 
12
+ // Box
13
+ 'max-w-min',
14
+
12
15
  // Shape
13
16
  'rounded-sm',
14
17