@onereach/ui-components 2.72.2-beta.2270.0 → 2.72.2-beta.2272.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 (234) hide show
  1. package/dist/bundled/v2/{OrButton-f1f28b9b.js → OrButton-4862b98b.js} +4 -4
  2. package/dist/bundled/v2/{OrCardCollection-35abc63a.js → OrCardCollection-55fd8cf6.js} +4 -4
  3. package/dist/bundled/v2/{OrConfirm-c5717fec.js → OrConfirm-10e4fe6a.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-175a2c4f.js} +0 -2
  6. package/dist/bundled/v2/{OrIconButton-837d57f8.js → OrIconButton-088ac8ec.js} +1 -1
  7. package/dist/bundled/v2/{OrInlineInput-57fccb41.js → OrInlineInput-f2bd6b5c.js} +1 -1
  8. package/dist/bundled/v2/{OrInlineTextarea-f8b86cf7.js → OrInlineTextarea-813d4193.js} +1 -1
  9. package/dist/bundled/v2/{OrInput-00070eee.js → OrInput-9253f834.js} +1 -1
  10. package/dist/bundled/v2/{OrLoader-07f84c71.js → OrLoader-864ef92a.js} +4 -11
  11. package/dist/bundled/v2/{OrMenu-52da43bc.js → OrMenu-6ab53877.js} +10 -15
  12. package/dist/bundled/v2/{OrModal-78f5d49e.js → OrModal-d08fb037.js} +1 -1
  13. package/dist/bundled/v2/{OrNotification-458fe937.js → OrNotification-bd008b65.js} +1 -1
  14. package/dist/bundled/v2/{OrPagination-1b65273d.js → OrPagination-9bf3d797.js} +60 -24
  15. package/dist/bundled/v2/{OrProgress-15fe65ec.js → OrProgress-5cf0a7e7.js} +3 -3
  16. package/dist/bundled/v2/{OrSearch-09fd004c.js → OrSearch-a975639b.js} +1 -1
  17. package/dist/bundled/v2/{OrSelect-2ececfc1.js → OrSelect-d3b5780a.js} +2 -2
  18. package/dist/bundled/v2/{OrSidebar-c95ef614.js → OrSidebar-b1442193.js} +3 -3
  19. package/dist/bundled/v2/{OrSwitch-3804a2d8.js → OrSwitch-782d7b43.js} +1 -1
  20. package/dist/bundled/v2/{OrTabs-d69780fc.js → OrTabs-517e2f25.js} +1 -1
  21. package/dist/bundled/v2/{OrTag-4085e8a7.js → OrTag-2903c38e.js} +1 -3
  22. package/dist/bundled/v2/{OrTooltip-b1f38647.js → OrTooltip-0c73d25d.js} +1 -1
  23. package/dist/bundled/v2/components/index.js +23 -23
  24. package/dist/bundled/v2/components/or-button-v3/index.js +2 -2
  25. package/dist/bundled/v2/components/or-card-collection-v3/index.js +8 -8
  26. package/dist/bundled/v2/components/or-confirm-v3/index.js +6 -6
  27. package/dist/bundled/v2/components/or-empty-state-v3/index.js +1 -1
  28. package/dist/bundled/v2/components/or-error-tag-v3/index.js +1 -1
  29. package/dist/bundled/v2/components/or-icon-button-v3/index.js +2 -2
  30. package/dist/bundled/v2/components/or-inline-input-v3/index.js +3 -3
  31. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +3 -3
  32. package/dist/bundled/v2/components/or-input-v3/index.js +3 -3
  33. package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
  34. package/dist/bundled/v2/components/or-loader-v3/index.js +1 -1
  35. package/dist/bundled/v2/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
  36. package/dist/bundled/v2/components/or-menu-v3/index.js +1 -1
  37. package/dist/bundled/v2/components/or-menu-v3/styles.d.ts +0 -1
  38. package/dist/bundled/v2/components/or-modal-v3/index.js +3 -3
  39. package/dist/bundled/v2/components/or-notification-v3/index.js +3 -3
  40. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
  41. package/dist/bundled/v2/components/or-pagination-v3/index.js +4 -4
  42. package/dist/bundled/v2/components/or-progress-v3/index.js +1 -1
  43. package/dist/bundled/v2/components/or-progress-v3/styles.d.ts +1 -1
  44. package/dist/bundled/v2/components/or-search-v3/index.js +4 -4
  45. package/dist/bundled/v2/components/or-select-v3/index.js +5 -5
  46. package/dist/bundled/v2/components/or-sidebar-v3/index.js +1 -1
  47. package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
  48. package/dist/bundled/v2/components/or-tabs-v3/index.js +2 -2
  49. package/dist/bundled/v2/components/or-tag-v3/index.js +3 -3
  50. package/dist/bundled/v2/components/or-toast-v3/index.js +4 -4
  51. package/dist/bundled/v2/components/or-tooltip-v3/index.js +1 -1
  52. package/dist/bundled/v2/index.js +24 -24
  53. package/dist/bundled/v2/{types-13daf4de.js → types-d6c9284d.js} +2 -2
  54. package/dist/bundled/v3/{OrButton-d8b1c4ac.js → OrButton-05766523.js} +1 -1
  55. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-d31b504f.js → OrButton.vue_vue_type_script_lang-b53e78f5.js} +5 -5
  56. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-23f82328.js → OrCardCollection.vue_vue_type_script_lang-40a5aa15.js} +7 -7
  57. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ab682ec1.js → OrConfirm.vue_vue_type_script_lang-53503801.js} +4 -4
  58. package/dist/bundled/v3/{OrEmptyState.vue_vue_type_script_lang-da7d6c42.js → OrEmptyState.vue_vue_type_script_lang-8e58c67c.js} +2 -2
  59. package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js → OrErrorTag.vue_vue_type_script_lang-fa28d642.js} +0 -2
  60. package/dist/bundled/v3/{OrIconButton-e0566ecf.js → OrIconButton-72d4d349.js} +1 -1
  61. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js → OrIconButton.vue_vue_type_script_lang-28452eda.js} +1 -1
  62. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-49ce3308.js → OrInlineInput.vue_vue_type_script_lang-96aef83e.js} +2 -2
  63. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-8fd761d7.js → OrInlineTextarea.vue_vue_type_script_lang-8be03a08.js} +2 -2
  64. package/dist/bundled/v3/{OrInput-dcf2606e.js → OrInput-6f6c700a.js} +1 -1
  65. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-27220623.js → OrInput.vue_vue_type_script_lang-115050fc.js} +2 -2
  66. package/dist/bundled/v3/{OrLoader-40942969.js → OrLoader-123ef8c4.js} +1 -1
  67. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-9efedfe7.js → OrLoader.vue_vue_type_script_lang-4c3c1ac9.js} +4 -11
  68. package/dist/bundled/v3/{OrMenu-6d7abe97.js → OrMenu-bb432db5.js} +9 -10
  69. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-df35fd76.js → OrMenu.vue_vue_type_script_lang-5a492eb3.js} +5 -8
  70. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-6b1dc231.js → OrModal.vue_vue_type_script_lang-230bc99d.js} +2 -2
  71. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-d0afc1d7.js → OrNotification.vue_vue_type_script_lang-d9b2b5bf.js} +2 -2
  72. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-c0eceb82.js → OrPagination.vue_vue_type_script_lang-bdb0acc8.js} +35 -20
  73. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-52f660d6.js → OrProgress.vue_vue_type_script_lang-17095060.js} +3 -3
  74. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-c054c8db.js → OrSearch.vue_vue_type_script_lang-5c683c38.js} +2 -2
  75. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-7fd5e2f0.js → OrSelect.vue_vue_type_script_lang-84902694.js} +3 -3
  76. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-ce0b152c.js → OrSidebar.vue_vue_type_script_lang-d298c2fa.js} +3 -3
  77. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-25f16621.js → OrSwitch.vue_vue_type_script_lang-31994be7.js} +2 -2
  78. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-cb550e87.js → OrTabs.vue_vue_type_script_lang-ae519161.js} +2 -2
  79. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-a25a49ee.js → OrTag.vue_vue_type_script_lang-33767daa.js} +2 -4
  80. package/dist/bundled/v3/{OrToastContainer-2e9489f9.js → OrToastContainer-2247bc2a.js} +1 -1
  81. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-bf9935ef.js → OrTooltip.vue_vue_type_script_lang-250ecf1d.js} +1 -1
  82. package/dist/bundled/v3/components/index.js +28 -28
  83. package/dist/bundled/v3/components/or-button-v3/index.js +3 -3
  84. package/dist/bundled/v3/components/or-card-collection-v3/index.js +13 -13
  85. package/dist/bundled/v3/components/or-confirm-v3/index.js +10 -10
  86. package/dist/bundled/v3/components/or-empty-state-v3/index.js +1 -1
  87. package/dist/bundled/v3/components/or-error-tag-v3/index.js +1 -1
  88. package/dist/bundled/v3/components/or-icon-button-v3/index.js +2 -2
  89. package/dist/bundled/v3/components/or-inline-input-v3/index.js +4 -4
  90. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +4 -4
  91. package/dist/bundled/v3/components/or-input-v3/index.js +4 -4
  92. package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
  93. package/dist/bundled/v3/components/or-loader-v3/index.js +1 -1
  94. package/dist/bundled/v3/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
  95. package/dist/bundled/v3/components/or-menu-v3/index.js +1 -1
  96. package/dist/bundled/v3/components/or-menu-v3/styles.d.ts +0 -1
  97. package/dist/bundled/v3/components/or-modal-v3/index.js +4 -4
  98. package/dist/bundled/v3/components/or-notification-v3/index.js +4 -4
  99. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
  100. package/dist/bundled/v3/components/or-pagination-v3/index.js +7 -7
  101. package/dist/bundled/v3/components/or-progress-v3/index.js +1 -1
  102. package/dist/bundled/v3/components/or-progress-v3/styles.d.ts +1 -1
  103. package/dist/bundled/v3/components/or-search-v3/index.js +6 -6
  104. package/dist/bundled/v3/components/or-select-v3/index.js +7 -7
  105. package/dist/bundled/v3/components/or-sidebar-v3/index.js +1 -1
  106. package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
  107. package/dist/bundled/v3/components/or-tabs-v3/index.js +3 -3
  108. package/dist/bundled/v3/components/or-tag-v3/index.js +4 -4
  109. package/dist/bundled/v3/components/or-toast-v3/index.js +7 -7
  110. package/dist/bundled/v3/components/or-tooltip-v3/index.js +1 -1
  111. package/dist/bundled/v3/index.js +73 -51
  112. package/dist/bundled/v3/{types-8f6f3598.js → types-e10af3b0.js} +4 -4
  113. package/dist/esm/v2/{OrButton-d067bcac.js → OrButton-18f4431c.js} +4 -4
  114. package/dist/esm/v2/{OrCardCollection-cab5acb9.js → OrCardCollection-322733bc.js} +4 -4
  115. package/dist/esm/v2/{OrConfirm-efe95ff6.js → OrConfirm-61edc9a5.js} +2 -2
  116. package/dist/esm/v2/{OrEmptyState-2481f13f.js → OrEmptyState-ab1a044d.js} +2 -2
  117. package/dist/esm/v2/{OrErrorTag-80f82cdf.js → OrErrorTag-5346825b.js} +0 -2
  118. package/dist/esm/v2/{OrIconButton-04a3566d.js → OrIconButton-a648b35b.js} +1 -1
  119. package/dist/esm/v2/{OrInlineInput-b85b84b4.js → OrInlineInput-32c724b2.js} +1 -1
  120. package/dist/esm/v2/{OrInlineTextarea-afd33047.js → OrInlineTextarea-a7d1b655.js} +1 -1
  121. package/dist/esm/v2/{OrInput-59a15d80.js → OrInput-1510deaa.js} +1 -1
  122. package/dist/esm/v2/{OrLoader-a6ae193f.js → OrLoader-76307488.js} +4 -11
  123. package/dist/esm/v2/{OrMenu-c276db74.js → OrMenu-943e7760.js} +10 -15
  124. package/dist/esm/v2/{OrModal-4e79e0d5.js → OrModal-7b024663.js} +1 -1
  125. package/dist/esm/v2/{OrNotification-eac3867f.js → OrNotification-4976dc40.js} +1 -1
  126. package/dist/esm/v2/{OrPagination-1acb7176.js → OrPagination-93d78a0d.js} +61 -24
  127. package/dist/esm/v2/{OrProgress-b7d1c689.js → OrProgress-9fc95bd7.js} +3 -3
  128. package/dist/esm/v2/{OrSearch-7411388b.js → OrSearch-37fac6da.js} +1 -1
  129. package/dist/esm/v2/{OrSelect-e31d1c8b.js → OrSelect-45eb62ae.js} +2 -2
  130. package/dist/esm/v2/{OrSidebar-fabc7bc9.js → OrSidebar-7c89f46c.js} +3 -3
  131. package/dist/esm/v2/{OrSwitch-c2429fc0.js → OrSwitch-8549219a.js} +1 -1
  132. package/dist/esm/v2/{OrTabs-96b0473d.js → OrTabs-398348a5.js} +1 -1
  133. package/dist/esm/v2/{OrTag-b2906865.js → OrTag-a86928f2.js} +1 -3
  134. package/dist/esm/v2/{OrTooltip-629d44fc.js → OrTooltip-4587b666.js} +1 -1
  135. package/dist/esm/v2/components/index.js +23 -23
  136. package/dist/esm/v2/components/or-button-v3/index.js +2 -2
  137. package/dist/esm/v2/components/or-card-collection-v3/index.js +8 -8
  138. package/dist/esm/v2/components/or-confirm-v3/index.js +6 -6
  139. package/dist/esm/v2/components/or-empty-state-v3/index.js +1 -1
  140. package/dist/esm/v2/components/or-error-tag-v3/index.js +1 -1
  141. package/dist/esm/v2/components/or-icon-button-v3/index.js +2 -2
  142. package/dist/esm/v2/components/or-inline-input-v3/index.js +3 -3
  143. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +3 -3
  144. package/dist/esm/v2/components/or-input-v3/index.js +3 -3
  145. package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
  146. package/dist/esm/v2/components/or-loader-v3/index.js +1 -1
  147. package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
  148. package/dist/esm/v2/components/or-menu-v3/index.js +1 -1
  149. package/dist/esm/v2/components/or-menu-v3/styles.d.ts +0 -1
  150. package/dist/esm/v2/components/or-modal-v3/index.js +3 -3
  151. package/dist/esm/v2/components/or-notification-v3/index.js +3 -3
  152. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
  153. package/dist/esm/v2/components/or-pagination-v3/index.js +6 -6
  154. package/dist/esm/v2/components/or-progress-v3/index.js +1 -1
  155. package/dist/esm/v2/components/or-progress-v3/styles.d.ts +1 -1
  156. package/dist/esm/v2/components/or-search-v3/index.js +4 -4
  157. package/dist/esm/v2/components/or-select-v3/index.js +5 -5
  158. package/dist/esm/v2/components/or-sidebar-v3/index.js +1 -1
  159. package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
  160. package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
  161. package/dist/esm/v2/components/or-tag-v3/index.js +3 -3
  162. package/dist/esm/v2/components/or-toast-v3/index.js +4 -4
  163. package/dist/esm/v2/components/or-tooltip-v3/index.js +1 -1
  164. package/dist/esm/v2/index.js +23 -23
  165. package/dist/esm/v2/{types-4a75cef1.js → types-8c69b2c8.js} +2 -2
  166. package/dist/esm/v3/{OrButton-d9f6c316.js → OrButton-55dd2ad9.js} +4 -4
  167. package/dist/esm/v3/{OrCardCollection-04b36455.js → OrCardCollection-3a9ccb24.js} +4 -4
  168. package/dist/esm/v3/{OrConfirm-d7d6255c.js → OrConfirm-68068bd0.js} +2 -2
  169. package/dist/esm/v3/{OrEmptyState-bb8e3145.js → OrEmptyState-cd3a4026.js} +2 -2
  170. package/dist/esm/v3/{OrErrorTag-308119de.js → OrErrorTag-a3e6ef83.js} +0 -2
  171. package/dist/esm/v3/{OrIconButton-2dcfb83e.js → OrIconButton-0047e3cd.js} +1 -1
  172. package/dist/esm/v3/{OrInlineInput-fbc35f85.js → OrInlineInput-6901da96.js} +1 -1
  173. package/dist/esm/v3/{OrInlineTextarea-79da8697.js → OrInlineTextarea-a618ec30.js} +1 -1
  174. package/dist/esm/v3/{OrInput-bd054213.js → OrInput-27b9f02d.js} +1 -1
  175. package/dist/esm/v3/{OrLoader-1709eb68.js → OrLoader-a53d2edf.js} +4 -11
  176. package/dist/esm/v3/{OrMenu-7f3ea117.js → OrMenu-fd2fe1e7.js} +13 -17
  177. package/dist/esm/v3/{OrModal-4219a6dc.js → OrModal-70f2b811.js} +1 -1
  178. package/dist/esm/v3/{OrNotification-0e682c7f.js → OrNotification-7173726b.js} +1 -1
  179. package/dist/esm/v3/{OrPagination-7cbdbb05.js → OrPagination-781c119e.js} +64 -26
  180. package/dist/esm/v3/{OrProgress-639ed5e8.js → OrProgress-4856808a.js} +3 -3
  181. package/dist/esm/v3/{OrSearch-5406bf03.js → OrSearch-9e1efad2.js} +1 -1
  182. package/dist/esm/v3/{OrSelect-466e50ca.js → OrSelect-07834b65.js} +2 -2
  183. package/dist/esm/v3/{OrSidebar-a62972f5.js → OrSidebar-5d97c7cc.js} +3 -3
  184. package/dist/esm/v3/{OrSwitch-54988e7a.js → OrSwitch-1c2196da.js} +1 -1
  185. package/dist/esm/v3/{OrTabs-328d41b9.js → OrTabs-34c67377.js} +1 -1
  186. package/dist/esm/v3/{OrTag-148ff9ae.js → OrTag-355e7a3e.js} +1 -3
  187. package/dist/esm/v3/{OrTooltip-b07616f4.js → OrTooltip-4e670a38.js} +1 -1
  188. package/dist/esm/v3/components/index.js +23 -23
  189. package/dist/esm/v3/components/or-button-v3/index.js +2 -2
  190. package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -8
  191. package/dist/esm/v3/components/or-confirm-v3/index.js +6 -6
  192. package/dist/esm/v3/components/or-empty-state-v3/index.js +1 -1
  193. package/dist/esm/v3/components/or-error-tag-v3/index.js +1 -1
  194. package/dist/esm/v3/components/or-icon-button-v3/index.js +2 -2
  195. package/dist/esm/v3/components/or-inline-input-v3/index.js +3 -3
  196. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +3 -3
  197. package/dist/esm/v3/components/or-input-v3/index.js +3 -3
  198. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -16
  199. package/dist/esm/v3/components/or-loader-v3/index.js +1 -1
  200. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +0 -2
  201. package/dist/esm/v3/components/or-menu-v3/index.js +1 -1
  202. package/dist/esm/v3/components/or-menu-v3/styles.d.ts +0 -1
  203. package/dist/esm/v3/components/or-modal-v3/index.js +3 -3
  204. package/dist/esm/v3/components/or-notification-v3/index.js +3 -3
  205. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +4 -0
  206. package/dist/esm/v3/components/or-pagination-v3/index.js +6 -6
  207. package/dist/esm/v3/components/or-progress-v3/index.js +1 -1
  208. package/dist/esm/v3/components/or-progress-v3/styles.d.ts +1 -1
  209. package/dist/esm/v3/components/or-search-v3/index.js +4 -4
  210. package/dist/esm/v3/components/or-select-v3/index.js +5 -5
  211. package/dist/esm/v3/components/or-sidebar-v3/index.js +1 -1
  212. package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
  213. package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
  214. package/dist/esm/v3/components/or-tag-v3/index.js +3 -3
  215. package/dist/esm/v3/components/or-toast-v3/index.js +4 -4
  216. package/dist/esm/v3/components/or-tooltip-v3/index.js +1 -1
  217. package/dist/esm/v3/index.js +23 -23
  218. package/dist/esm/v3/{types-c3417028.js → types-c1956faf.js} +2 -2
  219. package/package.json +2 -2
  220. package/src/components/or-button-v3/styles.ts +3 -3
  221. package/src/components/or-empty-state-v3/styles.ts +2 -2
  222. package/src/components/or-error-tag-v3/styles.ts +0 -3
  223. package/src/components/or-loader-v3/OrLoader.stories3.ts +4 -16
  224. package/src/components/or-loader-v3/OrLoader.vue +2 -10
  225. package/src/components/or-loader-v3/styles.ts +2 -1
  226. package/src/components/or-menu-v3/OrMenu.vue +22 -26
  227. package/src/components/or-menu-v3/styles.ts +0 -5
  228. package/src/components/or-pagination-v3/OrPagination.vue +86 -42
  229. package/src/components/or-pagination-v3/styles.ts +1 -1
  230. package/src/components/or-progress-v3/styles.ts +4 -4
  231. package/src/components/or-sidebar-v3/styles.ts +3 -3
  232. package/src/components/or-tag-v3/OrTag.stories3.ts +5 -5
  233. package/src/components/or-tag-v3/styles.ts +0 -3
  234. package/src/components/or-tooltip-v3/styles.ts +1 -1
@@ -3,10 +3,10 @@ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-6
3
3
  export { s as OrBottomSheetV3 } from './OrBottomSheet-13a416ef.js';
4
4
  export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-fca9019a.js';
5
5
  export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from './OrIconButton-8be9c89f.js';
6
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-d9f6c316.js';
6
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-55dd2ad9.js';
7
7
  export { s as OrCard } from './OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1e44c758.js';
9
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-04b36455.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-3a9ccb24.js';
10
10
  export { s as OrCardV3 } from './OrCard-cd6af82e.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
12
12
  export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
@@ -16,26 +16,26 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
16
16
  export { s as OrCollapse } from './OrCollapse-445141ab.js';
17
17
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
18
18
  export { s as OrConfirm } from './OrConfirm-c11ee2ec.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-d7d6255c.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-68068bd0.js';
20
20
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
21
21
  export { s as OrError } from './OrError-f90296db.js';
22
- export { s as OrErrorTagV3 } from './OrErrorTag-308119de.js';
22
+ export { s as OrErrorTagV3 } from './OrErrorTag-a3e6ef83.js';
23
23
  export { s as OrErrorV3 } from './OrError-19198748.js';
24
- export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-bb8e3145.js';
24
+ export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-cd3a4026.js';
25
25
  export { a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-3a4282da.js';
26
26
  export { F as FabColor, s as OrFabV3 } from './OrFab-61131b31.js';
27
27
  export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-5240e758.js';
28
28
  export { s as OrHint } from './OrHint-1414c530.js';
29
29
  export { s as OrHintV3 } from './OrHint-6863124f.js';
30
30
  export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-669503c3.js';
31
- export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-2dcfb83e.js';
31
+ export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-0047e3cd.js';
32
32
  export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-34f59f73.js';
33
33
  export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-09b33e18.js';
34
- export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-fbc35f85.js';
34
+ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-6901da96.js';
35
35
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
36
- export { s as OrInlineTextareaV3 } from './OrInlineTextarea-79da8697.js';
36
+ export { s as OrInlineTextareaV3 } from './OrInlineTextarea-a618ec30.js';
37
37
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-e16ade90.js';
38
- export { I as InputType, s as OrInputV3 } from './OrInput-bd054213.js';
38
+ export { I as InputType, s as OrInputV3 } from './OrInput-27b9f02d.js';
39
39
  export { s as OrInput } from './OrInput-81125804.js';
40
40
  export { s as OrLabel } from './OrLabel-876f8729.js';
41
41
  export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
@@ -43,46 +43,46 @@ export { L as LinkColor, s as OrLinkV3 } from './OrLink-07f6f27d.js';
43
43
  export { s as OrList } from './OrList-b740d13e.js';
44
44
  export { s as OrListOfInputs } from './OrListOfInputs-508e056f.js';
45
45
  export { L as LoaderViews, s as OrLoader } from './OrLoader-15174477.js';
46
- export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-1709eb68.js';
46
+ export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-a53d2edf.js';
47
47
  export { s as OrMenuItemV3 } from './OrMenuItem-58707d47.js';
48
- export { s as OrMenuV3 } from './OrMenu-7f3ea117.js';
48
+ export { s as OrMenuV3 } from './OrMenu-fd2fe1e7.js';
49
49
  export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-40217b49.js';
50
50
  export { s as OrModal, O as OrModalSizes } from './OrModal-8b074b0c.js';
51
- export { M as ModalSize, s as OrModalV3 } from './OrModal-4219a6dc.js';
51
+ export { M as ModalSize, s as OrModalV3 } from './OrModal-70f2b811.js';
52
52
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-e85a4956.js';
53
- export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-0e682c7f.js';
53
+ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-7173726b.js';
54
54
  export { s as OrNumberInput } from './OrNumberInput-b32b5ce3.js';
55
55
  export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
56
56
  export { s as OrOverlay } from './OrOverlay-451dce49.js';
57
57
  export { s as OrOverlayV3 } from './OrOverlay-afad3aa4.js';
58
58
  export { s as OrPassword } from './OrPassword-b0cbb578.js';
59
- export { s as OrPaginationV3 } from './OrPagination-7cbdbb05.js';
59
+ export { s as OrPaginationV3 } from './OrPagination-781c119e.js';
60
60
  export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-d0d52c86.js';
61
- export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-639ed5e8.js';
61
+ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-4856808a.js';
62
62
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
63
63
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
64
64
  export { s as OrRadioV3 } from './OrRadio-bb9b37c1.js';
65
65
  export { s as OrSearch } from './OrSearch-11fdf667.js';
66
- export { s as OrSearchV3 } from './OrSearch-5406bf03.js';
66
+ export { s as OrSearchV3 } from './OrSearch-9e1efad2.js';
67
67
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
68
68
  export { s as OrSelect } from './OrSelect-0821b907.js';
69
- export { s as OrSelectV3 } from './OrSelect-466e50ca.js';
69
+ export { s as OrSelectV3 } from './OrSelect-07834b65.js';
70
70
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
71
- export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
71
+ export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-5d97c7cc.js';
72
72
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
73
73
  export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-afd3d007.js';
74
74
  export { s as OrSlider } from './OrSlider-87e2da8c.js';
75
75
  export { s as OrSortHeaderV3 } from './OrSortHeader-a39f77f9.js';
76
76
  export { s as OrStepper } from './OrStepper-f19b4eac.js';
77
77
  export { s as OrSwitch } from './OrSwitch-c333ee32.js';
78
- export { s as OrSwitchV3 } from './OrSwitch-54988e7a.js';
78
+ export { s as OrSwitchV3 } from './OrSwitch-1c2196da.js';
79
79
  export { s as OrTab } from './OrTab-bc98be02.js';
80
80
  export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
81
81
  export { s as OrTabV3 } from './OrTab-d3785ea4.js';
82
82
  export { s as OrTabs } from './OrTabs-d3812c11.js';
83
- export { s as OrTabsV3, T as TabsVariant } from './OrTabs-328d41b9.js';
83
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabs-34c67377.js';
84
84
  export { s as OrTag } from './OrTag-1b5e43fa.js';
85
- export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-148ff9ae.js';
85
+ export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-355e7a3e.js';
86
86
  export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
87
87
  export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
88
88
  export { s as OrTextV3 } from './OrText-6b4f7cd1.js';
@@ -91,10 +91,10 @@ export { s as OrTextareaV3 } from './OrTextarea-37566985.js';
91
91
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
92
92
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
93
93
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
94
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-c3417028.js';
94
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-c1956faf.js';
95
95
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
96
96
  export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
97
- export { s as OrTooltipV3 } from './OrTooltip-b07616f4.js';
97
+ export { s as OrTooltipV3 } from './OrTooltip-4e670a38.js';
98
98
  export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
99
99
  export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-859439f0.js';
100
100
  export { u as useElevation } from './useElevation-31bfe1f6.js';
@@ -2,8 +2,8 @@ import { useToggle } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
3
3
  import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
4
4
  import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
5
- import { s as script$2 } from './OrIconButton-2dcfb83e.js';
6
- import { s as script$3 } from './OrLoader-1709eb68.js';
5
+ import { s as script$2 } from './OrIconButton-0047e3cd.js';
6
+ import { s as script$3 } from './OrLoader-a53d2edf.js';
7
7
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
8
8
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.72.2-beta.2270.0",
3
+ "version": "2.72.2-beta.2272.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -38,7 +38,7 @@
38
38
  "@codemirror/lang-json": "6.0.0",
39
39
  "@codemirror/lang-markdown": "6.0.1",
40
40
  "@floating-ui/dom": "0.3.1",
41
- "@onereach/styles": "^2.34.0",
41
+ "@onereach/styles": "^2.34.1-beta.2272.0",
42
42
  "@splidejs/splide": "4.0.6",
43
43
  "@types/lodash": "4.14.173",
44
44
  "@types/sortablejs": "1.10.7",
@@ -7,7 +7,7 @@ export const ButtonRoot: string[] = [
7
7
  // Shape
8
8
  'rounded-md',
9
9
 
10
- // Sizing
10
+ // Spacing
11
11
  'min-w-[96px]',
12
12
 
13
13
  // Interactivity
@@ -48,9 +48,9 @@ export const ButtonRootVariants: Record<ButtonVariant, string[]> = {
48
48
 
49
49
  'link': [
50
50
  // Spacing
51
- 'gap-sm md:gap-xs',
51
+ 'gap-xs',
52
52
 
53
- // Sizing
53
+ // Spacing
54
54
  'min-w-[auto]',
55
55
  ],
56
56
  };
@@ -11,12 +11,12 @@ export const EmptyStateRoot: string[] = [
11
11
  // Box
12
12
  'w-full',
13
13
 
14
- // Sizing
14
+ // Spacing
15
15
  'gap-sm',
16
16
  ];
17
17
 
18
18
  export const EmptyStateImage = [
19
- // Sizing
19
+ // Spacing
20
20
  'mb-sm',
21
21
  ];
22
22
 
@@ -2,9 +2,6 @@ export const ErrorTagRoot: string[] = [
2
2
  // Layout
3
3
  'layout-inline-row',
4
4
 
5
- // Box
6
- 'max-w-fit',
7
-
8
5
  // Shape
9
6
  'rounded-full',
10
7
 
@@ -25,16 +25,16 @@ export default {
25
25
  },
26
26
 
27
27
  title: {
28
- control: { type: 'text' },
28
+ control: { type: 'string' },
29
29
  },
30
30
 
31
31
  description: {
32
- control: { type: 'text' },
32
+ control: { type: 'string' },
33
33
  },
34
34
  },
35
35
 
36
36
  parameters: {
37
- layout: 'fullscreen',
37
+ layout: 'centered',
38
38
 
39
39
  docs: {
40
40
  page: OrLoaderDocs,
@@ -56,11 +56,7 @@ const Template: StoryFn<typeof OrLoader> = (args) => ({
56
56
  return { args };
57
57
  },
58
58
 
59
- template: `
60
- <div class="w-full min-h-[100px] p-md flex justify-center items-center">
61
- <OrLoader class="w-2/5 max-w-[400px]" v-bind="args" />
62
- </div>
63
- `,
59
+ template: '<OrLoader v-bind="args" />',
64
60
  });
65
61
 
66
62
  export const Default = Template.bind({});
@@ -76,11 +72,3 @@ LinearWithText.args = {
76
72
  variant: 'linear',
77
73
  description: 'Promptly retrieving your data from the cloud',
78
74
  };
79
- LinearWithText.parameters = {
80
- docs: {
81
- description: {
82
- story: 'By setting width on the component you may control the width of the linear loading indicator. \
83
- Circular indicator size is controlled by the `size` prop.',
84
- },
85
- },
86
- };
@@ -92,18 +92,11 @@ export default defineComponent({
92
92
  default: LoaderVariant.Circular,
93
93
  },
94
94
 
95
- /**
96
- * Defines a semantic color of the loading indicator.
97
- * Use `'inherit'` option to set your own color from the parent (not recommended).
98
- */
99
95
  color: {
100
96
  type: String as PropType<LoaderColor>,
101
97
  default: LoaderColor.Primary,
102
98
  },
103
99
 
104
- /**
105
- * Defines a diameter of the circular loader. Ignored for linear one.
106
- */
107
100
  size: {
108
101
  type: String as PropType<LoaderSize>,
109
102
  default: LoaderSize.M,
@@ -145,16 +138,15 @@ export default defineComponent({
145
138
 
146
139
  const containerStyles = computed(() => [
147
140
  ...LoaderContainer,
148
- `min-w-[${computedSize}px]`,
149
141
  ]);
150
142
 
151
143
  // State
152
144
  const computedSize = computed(() => {
153
145
  switch (props.size) {
154
- case LoaderSize.M:
146
+ case 'm':
155
147
  return 20;
156
148
 
157
- case LoaderSize.S:
149
+ case 's':
158
150
  return 16;
159
151
  }
160
152
  });
@@ -2,9 +2,10 @@ import { LoaderColor } from './props';
2
2
 
3
3
  export const LoaderRoot: string[] = [
4
4
  // Layout
5
+ 'contents',
5
6
  'flex',
6
7
  'flex-col',
7
- 'gap-md',
8
+ 'space-y-md',
8
9
  ];
9
10
 
10
11
  export const LoaderRootColors: Record<LoaderColor, string[]> = {
@@ -1,32 +1,29 @@
1
1
  <template>
2
- <div
3
- ref="root"
4
- :class="rootStyles"
2
+ <OrPopover
3
+ ref="popover"
4
+ :variant="'auto'"
5
+ :trigger="trigger"
6
+ :placement="placement"
7
+ :full-width="false"
8
+ :disable-default-styles="false"
9
+ @update:state="$emit('update:state', $event)"
5
10
  >
6
- <OrPopover
7
- ref="popover"
8
- :variant="'auto'"
9
- :trigger="trigger"
10
- :placement="placement"
11
- :full-width="false"
12
- :disable-default-styles="false"
13
- @update:state="$emit('update:state', $event)"
11
+ <div
12
+ ref="root"
13
+ v-bind="$attrs"
14
+ :class="rootStyles"
15
+ @click.stop="onClick"
14
16
  >
15
- <div
16
- :class="bodyStyles"
17
- @click.stop="onClick"
18
- >
19
- <slot />
20
- </div>
21
- </OrPopover>
22
- </div>
17
+ <slot />
18
+ </div>
19
+ </OrPopover>
23
20
  </template>
24
21
 
25
22
  <script lang="ts">
26
23
  import { computed, defineComponent, PropType, ref } from 'vue-demi';
27
24
  import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
28
25
  import { MenuPlacement } from './props';
29
- import { MenuBody, MenuRoot } from './styles';
26
+ import { MenuRoot } from './styles';
30
27
 
31
28
  export default defineComponent({
32
29
  name: 'OrMenu',
@@ -35,6 +32,8 @@ export default defineComponent({
35
32
  OrPopover,
36
33
  },
37
34
 
35
+ inheritAttrs: false,
36
+
38
37
  props: {
39
38
  trigger: {
40
39
  type: HTMLElement,
@@ -53,9 +52,9 @@ export default defineComponent({
53
52
 
54
53
  expose: [
55
54
  'root',
55
+ 'isOpen',
56
56
  'open',
57
57
  'close',
58
- 'isOpen',
59
58
  'toggle',
60
59
  ],
61
60
 
@@ -65,7 +64,6 @@ export default defineComponent({
65
64
 
66
65
  const popover = ref<InstanceType<typeof OrPopover>>();
67
66
  const popoverRoot = computed(() => popover.value?.root);
68
- const isOpen = computed(() => popover.value?.isOpen);
69
67
 
70
68
  // Styles
71
69
  const rootStyles = computed(() => [
@@ -73,9 +71,8 @@ export default defineComponent({
73
71
  ...MenuRoot,
74
72
  ]);
75
73
 
76
- const bodyStyles = computed(() => [
77
- ...MenuBody,
78
- ]);
74
+ // State
75
+ const isOpen = computed(() => popover.value?.isOpen);
79
76
 
80
77
  // Methods
81
78
  function open(): void {
@@ -116,7 +113,6 @@ export default defineComponent({
116
113
  popover,
117
114
  popoverRoot,
118
115
  rootStyles,
119
- bodyStyles,
120
116
  isOpen,
121
117
  open,
122
118
  close,
@@ -1,9 +1,4 @@
1
1
  export const MenuRoot: string[] = [
2
- // Layout
3
- 'inline-block',
4
- ];
5
-
6
- export const MenuBody: string[] = [
7
2
  // Layout
8
3
  'overflow-y-auto',
9
4
 
@@ -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
  ];
@@ -92,7 +92,7 @@ export const SidebarMain: string[] = [
92
92
  ];
93
93
 
94
94
  export const SidebarHeader: string[] = [
95
- // Sizing
95
+ // Spacing
96
96
  'p-md',
97
97
  ];
98
98
 
@@ -101,12 +101,12 @@ export const SidebarContent: string[] = [
101
101
  'grow',
102
102
  'overflow-auto',
103
103
 
104
- // Sizing
104
+ // Spacing
105
105
  'p-md',
106
106
  ];
107
107
 
108
108
  export const SidebarFooter: string[] = [
109
- // Sizing
109
+ // Spacing
110
110
  'p-md',
111
111
 
112
112
  // Borders