@onereach/ui-components 2.69.7-beta.2187.0 → 2.69.7-beta.2201.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 (237) hide show
  1. package/dist/bundled/v2/{OrCardCollection-754aa36f.js → OrCardCollection-f07a1190.js} +2 -2
  2. package/dist/bundled/v2/{OrCheckbox-dbef9f9a.js → OrCheckbox-4f665252.js} +3 -3
  3. package/dist/bundled/v2/{OrConfirm-cf334659.js → OrConfirm-618e6c96.js} +1 -1
  4. package/dist/bundled/v2/{OrIconButton-a2ba92df.js → OrIconButton-a215104c.js} +4 -4
  5. package/dist/bundled/v2/{OrInlineInput-87589946.js → OrInlineInput-6af4fe07.js} +3 -3
  6. package/dist/bundled/v2/{OrInlineTextarea-21b0e6fc.js → OrInlineTextarea-ddf84267.js} +3 -3
  7. package/dist/bundled/v2/{OrInput-82ccfe00.js → OrInput-cc2d74db.js} +21 -14
  8. package/dist/bundled/v2/{OrInputBox-79ec54ad.js → OrInputBox-da25bec2.js} +3 -13
  9. package/dist/bundled/v2/{OrModal-af6677fd.js → OrModal-f89de11f.js} +12 -3
  10. package/dist/bundled/v2/{OrNotification-3250f58b.js → OrNotification-d76a062d.js} +13 -5
  11. package/dist/bundled/v2/{OrRadio-cd39b20b.js → OrRadio-a60fc5c0.js} +3 -3
  12. package/dist/bundled/v2/{OrSearch-53470b0e.js → OrSearch-d4833781.js} +2 -2
  13. package/dist/bundled/v2/{OrSelect-2e48be47.js → OrSelect-0d0a53e5.js} +13 -5
  14. package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-fe9b7de7.js} +3 -3
  15. package/dist/bundled/v2/{OrTag-e3e6fdd6.js → OrTag-6440aa89.js} +6 -6
  16. package/dist/bundled/v2/{OrTextarea-5593fbe9.js → OrTextarea-76a2963b.js} +14 -11
  17. package/dist/bundled/v2/components/index.js +18 -17
  18. package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -5
  19. package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -1
  20. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
  21. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
  22. package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +2 -0
  23. package/dist/bundled/v2/components/or-combined-input-v3/index.js +149 -0
  24. package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +1 -0
  25. package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +2 -0
  26. package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -4
  27. package/dist/bundled/v2/components/or-icon-button-v3/index.js +1 -1
  28. package/dist/bundled/v2/components/or-icon-button-v3/props.d.ts +1 -1
  29. package/dist/bundled/v2/components/or-inline-input-v3/index.js +2 -2
  30. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +2 -2
  31. package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -1
  32. package/dist/bundled/v2/components/or-input-v3/index.js +4 -3
  33. package/dist/bundled/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -0
  34. package/dist/bundled/v2/components/or-modal-v3/index.js +2 -2
  35. package/dist/bundled/v2/components/or-modal-v3/styles.d.ts +1 -0
  36. package/dist/bundled/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
  37. package/dist/bundled/v2/components/or-notification-v3/index.js +2 -2
  38. package/dist/bundled/v2/components/or-notification-v3/styles.d.ts +1 -0
  39. package/dist/bundled/v2/components/or-radio-v3/index.js +1 -1
  40. package/dist/bundled/v2/components/or-search-v3/index.js +5 -4
  41. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +11 -0
  42. package/dist/bundled/v2/components/or-select-v3/index.js +7 -6
  43. package/dist/bundled/v2/components/or-switch-v3/index.js +1 -1
  44. package/dist/bundled/v2/components/or-tag-v3/index.js +2 -2
  45. package/dist/bundled/v2/components/or-tag-v3/props.d.ts +1 -1
  46. package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -2
  47. package/dist/bundled/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -0
  48. package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
  49. package/dist/bundled/v2/components/or-toast-v3/styles.d.ts +1 -0
  50. package/dist/bundled/v2/index.js +19 -18
  51. package/dist/bundled/v2/props-78496a2d.js +12 -0
  52. package/dist/bundled/v2/{types-8fe4e345.js → types-fdd34542.js} +17 -8
  53. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-365741ae.js → OrCardCollection.vue_vue_type_script_lang-5ceefcab.js} +3 -3
  54. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-68329ca1.js → OrConfirm.vue_vue_type_script_lang-bb9ac0bc.js} +2 -2
  55. package/dist/bundled/v3/{OrIconButton-cd62526d.js → OrIconButton-1581013c.js} +1 -1
  56. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-aefcf30d.js → OrIconButton.vue_vue_type_script_lang-f6f801ff.js} +4 -4
  57. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-67218502.js → OrInlineInput.vue_vue_type_script_lang-84c521f9.js} +4 -4
  58. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a1831ab8.js → OrInlineTextarea.vue_vue_type_script_lang-9c58faeb.js} +4 -4
  59. package/dist/bundled/v3/{OrInput-a4f220ed.js → OrInput-fa3a1a23.js} +17 -14
  60. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-607d79d4.js → OrInput.vue_vue_type_script_lang-c3e5928c.js} +7 -6
  61. package/dist/bundled/v3/{OrInputBox-eb54d73d.js → OrInputBox-a11eb96c.js} +1 -1
  62. package/dist/{esm/v2/OrInputBox-4d5a318d.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-c8184afc.js} +5 -56
  63. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-55c864d1.js → OrModal.vue_vue_type_script_lang-80a7b906.js} +9 -2
  64. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-c886ae51.js → OrNotification.vue_vue_type_script_lang-fbb35355.js} +9 -2
  65. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-06f318ca.js → OrSearch.vue_vue_type_script_lang-ddf6e02b.js} +3 -3
  66. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-a5ecc5ed.js → OrSelect.vue_vue_type_script_lang-242beccd.js} +17 -9
  67. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-e45c345b.js → OrTag.vue_vue_type_script_lang-dc6a4011.js} +6 -6
  68. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-8e3531cd.js → OrTextarea.vue_vue_type_script_lang-e1a44c0a.js} +5 -4
  69. package/dist/bundled/v3/{OrToastContainer-34389303.js → OrToastContainer-7c3c0b12.js} +1 -1
  70. package/dist/bundled/v3/components/index.js +18 -17
  71. package/dist/bundled/v3/components/or-card-collection-v3/index.js +9 -8
  72. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
  73. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
  74. package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +2 -0
  75. package/dist/bundled/v3/components/or-combined-input-v3/index.js +132 -0
  76. package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +1 -0
  77. package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +2 -0
  78. package/dist/bundled/v3/components/or-confirm-v3/index.js +8 -7
  79. package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
  80. package/dist/bundled/v3/components/or-icon-button-v3/props.d.ts +1 -1
  81. package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
  82. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
  83. package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -1
  84. package/dist/bundled/v3/components/or-input-v3/index.js +6 -5
  85. package/dist/bundled/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -0
  86. package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
  87. package/dist/bundled/v3/components/or-modal-v3/styles.d.ts +1 -0
  88. package/dist/bundled/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
  89. package/dist/bundled/v3/components/or-notification-v3/index.js +3 -3
  90. package/dist/bundled/v3/components/or-notification-v3/styles.d.ts +1 -0
  91. package/dist/bundled/v3/components/or-search-v3/index.js +8 -7
  92. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +11 -0
  93. package/dist/bundled/v3/components/or-select-v3/index.js +9 -8
  94. package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
  95. package/dist/bundled/v3/components/or-tag-v3/props.d.ts +1 -1
  96. package/dist/bundled/v3/components/or-textarea-v3/index.js +4 -3
  97. package/dist/bundled/v3/components/or-toast-v3/OrToast.vue.d.ts +2 -0
  98. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  99. package/dist/bundled/v3/components/or-toast-v3/styles.d.ts +1 -0
  100. package/dist/bundled/v3/index.js +57 -49
  101. package/dist/bundled/v3/props-78496a2d.js +12 -0
  102. package/dist/bundled/v3/{types-f53434f2.js → types-dcc78caa.js} +16 -7
  103. package/dist/esm/v2/{OrCardCollection-153b0179.js → OrCardCollection-cfaf440b.js} +3 -3
  104. package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-ea48d156.js} +3 -3
  105. package/dist/esm/v2/{OrConfirm-d67d5c00.js → OrConfirm-8f688177.js} +1 -1
  106. package/dist/esm/v2/{OrIconButton-b3779042.js → OrIconButton-e17e4944.js} +4 -4
  107. package/dist/esm/v2/{OrInlineInput-10205811.js → OrInlineInput-e32f322f.js} +3 -3
  108. package/dist/esm/v2/{OrInlineTextarea-7658611e.js → OrInlineTextarea-7296fbdb.js} +3 -3
  109. package/dist/esm/v2/{OrInput-ada3a970.js → OrInput-0d0db283.js} +21 -14
  110. package/dist/esm/v2/OrInputBox-20d65881.js +43 -0
  111. package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-5ee4ee45.js → esm/v2/OrInputBox.vue_rollup-plugin-vue_script-5253ba98.js} +4 -3
  112. package/dist/esm/v2/{OrModal-a7719843.js → OrModal-5b37a50a.js} +12 -3
  113. package/dist/esm/v2/{OrNotification-8a4830a3.js → OrNotification-c765f111.js} +13 -5
  114. package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-6e10f071.js} +3 -3
  115. package/dist/esm/v2/{OrSearch-0f08f2f5.js → OrSearch-e7d0f2a3.js} +2 -2
  116. package/dist/esm/v2/{OrSelect-b3794fd3.js → OrSelect-bdc3218f.js} +13 -5
  117. package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-c628d2c5.js} +3 -3
  118. package/dist/esm/v2/{OrTag-52e4cc94.js → OrTag-cf9c6195.js} +6 -6
  119. package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-b4660f09.js} +14 -11
  120. package/dist/esm/v2/components/index.js +18 -17
  121. package/dist/esm/v2/components/or-card-collection-v3/index.js +6 -5
  122. package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
  123. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
  124. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
  125. package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +2 -0
  126. package/dist/esm/v2/components/or-combined-input-v3/index.js +147 -0
  127. package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +1 -0
  128. package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +2 -0
  129. package/dist/esm/v2/components/or-confirm-v3/index.js +5 -4
  130. package/dist/esm/v2/components/or-icon-button-v3/index.js +1 -1
  131. package/dist/esm/v2/components/or-icon-button-v3/props.d.ts +1 -1
  132. package/dist/esm/v2/components/or-inline-input-v3/index.js +2 -2
  133. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +2 -2
  134. package/dist/esm/v2/components/or-input-box-v3/index.js +3 -2
  135. package/dist/esm/v2/components/or-input-v3/index.js +4 -3
  136. package/dist/esm/v2/components/or-modal-v3/OrModal.vue.d.ts +2 -0
  137. package/dist/esm/v2/components/or-modal-v3/index.js +2 -2
  138. package/dist/esm/v2/components/or-modal-v3/styles.d.ts +1 -0
  139. package/dist/esm/v2/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
  140. package/dist/esm/v2/components/or-notification-v3/index.js +2 -2
  141. package/dist/esm/v2/components/or-notification-v3/styles.d.ts +1 -0
  142. package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
  143. package/dist/esm/v2/components/or-search-v3/index.js +5 -4
  144. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +11 -0
  145. package/dist/esm/v2/components/or-select-v3/index.js +7 -6
  146. package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
  147. package/dist/esm/v2/components/or-tag-v3/index.js +2 -2
  148. package/dist/esm/v2/components/or-tag-v3/props.d.ts +1 -1
  149. package/dist/esm/v2/components/or-textarea-v3/index.js +3 -2
  150. package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -0
  151. package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
  152. package/dist/esm/v2/components/or-toast-v3/styles.d.ts +1 -0
  153. package/dist/esm/v2/index.js +18 -17
  154. package/dist/esm/v2/{types-6c742e07.js → types-8d58d7b5.js} +17 -8
  155. package/dist/esm/v3/{OrCardCollection-a09ad585.js → OrCardCollection-dbd1e3c2.js} +3 -3
  156. package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-d1b516c8.js} +3 -2
  157. package/dist/esm/v3/{OrConfirm-b93b5131.js → OrConfirm-b2ef47a2.js} +1 -1
  158. package/dist/esm/v3/{OrIconButton-1a89fbf9.js → OrIconButton-1eebcafc.js} +4 -4
  159. package/dist/esm/v3/{OrInlineInput-507fc99c.js → OrInlineInput-00f0d1b8.js} +3 -3
  160. package/dist/esm/v3/{OrInlineTextarea-53a9e027.js → OrInlineTextarea-c1babfda.js} +3 -3
  161. package/dist/esm/v3/{OrInput-9c0426b9.js → OrInput-509065af.js} +20 -17
  162. package/dist/esm/v3/{OrInputBox-6d1b6059.js → OrInputBox-0ebab1b8.js} +1 -1
  163. package/dist/esm/v3/{OrModal-7878cc39.js → OrModal-381554a6.js} +12 -3
  164. package/dist/esm/v3/{OrNotification-e1383681.js → OrNotification-34d9c99b.js} +12 -4
  165. package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-ef9d4c6e.js} +3 -2
  166. package/dist/esm/v3/{OrSearch-9885d178.js → OrSearch-15ba38cd.js} +2 -2
  167. package/dist/esm/v3/{OrSelect-a0718c44.js → OrSelect-bcf0fb2a.js} +13 -6
  168. package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-cc797a48.js} +3 -3
  169. package/dist/esm/v3/{OrTag-efa7578f.js → OrTag-c0bbaa58.js} +6 -6
  170. package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-26c50ec0.js} +17 -15
  171. package/dist/esm/v3/components/index.js +17 -17
  172. package/dist/esm/v3/components/or-card-collection-v3/index.js +5 -5
  173. package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
  174. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
  175. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
  176. package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +2 -0
  177. package/dist/esm/v3/components/or-combined-input-v3/index.js +132 -0
  178. package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +1 -0
  179. package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +2 -0
  180. package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
  181. package/dist/esm/v3/components/or-icon-button-v3/index.js +1 -1
  182. package/dist/esm/v3/components/or-icon-button-v3/props.d.ts +1 -1
  183. package/dist/esm/v3/components/or-inline-input-v3/index.js +2 -2
  184. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +2 -2
  185. package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
  186. package/dist/esm/v3/components/or-input-v3/index.js +3 -3
  187. package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +2 -0
  188. package/dist/esm/v3/components/or-modal-v3/index.js +2 -2
  189. package/dist/esm/v3/components/or-modal-v3/styles.d.ts +1 -0
  190. package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +2 -0
  191. package/dist/esm/v3/components/or-notification-v3/index.js +2 -2
  192. package/dist/esm/v3/components/or-notification-v3/styles.d.ts +1 -0
  193. package/dist/esm/v3/components/or-radio-v3/index.js +1 -1
  194. package/dist/esm/v3/components/or-search-v3/index.js +4 -4
  195. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +11 -0
  196. package/dist/esm/v3/components/or-select-v3/index.js +6 -6
  197. package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
  198. package/dist/esm/v3/components/or-tag-v3/index.js +2 -2
  199. package/dist/esm/v3/components/or-tag-v3/props.d.ts +1 -1
  200. package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
  201. package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +2 -0
  202. package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
  203. package/dist/esm/v3/components/or-toast-v3/styles.d.ts +1 -0
  204. package/dist/esm/v3/index.js +17 -17
  205. package/dist/esm/v3/{types-2692e337.js → types-8a338300.js} +15 -6
  206. package/package.json +2 -2
  207. package/src/components/or-checkbox-v3/OrCheckbox.vue +1 -1
  208. package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +7 -0
  209. package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +202 -0
  210. package/src/components/or-combined-input-v3/OrCombinedInput.vue +134 -0
  211. package/src/components/or-combined-input-v3/index.ts +2 -0
  212. package/src/components/or-combined-input-v3/props.ts +1 -0
  213. package/src/components/or-combined-input-v3/styles.ts +25 -0
  214. package/src/components/or-icon-button-v3/OrIconButton.vue +1 -1
  215. package/src/components/or-icon-button-v3/props.ts +1 -1
  216. package/src/components/or-icon-button-v3/styles.ts +1 -4
  217. package/src/components/or-inline-input-v3/styles.ts +2 -2
  218. package/src/components/or-inline-textarea-v3/styles.ts +2 -2
  219. package/src/components/or-input-box-v3/styles.ts +1 -1
  220. package/src/components/or-input-v3/OrInput.vue +28 -22
  221. package/src/components/or-input-v3/styles.ts +2 -2
  222. package/src/components/or-modal-v3/OrModal.vue +13 -6
  223. package/src/components/or-modal-v3/styles.ts +9 -0
  224. package/src/components/or-notification-v3/OrNotification.vue +12 -6
  225. package/src/components/or-notification-v3/styles.ts +9 -0
  226. package/src/components/or-radio-v3/OrRadio.vue +1 -1
  227. package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
  228. package/src/components/or-select-v3/OrSelect.vue +6 -0
  229. package/src/components/or-select-v3/styles.ts +4 -1
  230. package/src/components/or-switch-v3/OrSwitch.vue +1 -1
  231. package/src/components/or-tag-v3/OrTag.vue +3 -3
  232. package/src/components/or-tag-v3/props.ts +1 -1
  233. package/src/components/or-tag-v3/styles.ts +1 -1
  234. package/src/components/or-textarea-v3/OrTextarea.vue +5 -1
  235. package/src/components/or-textarea-v3/styles.ts +2 -2
  236. package/src/components/or-toast-v3/OrToast.vue +13 -6
  237. package/src/components/or-toast-v3/styles.ts +9 -0
@@ -2,9 +2,9 @@ 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-1a89fbf9.js';
5
+ import { s as script$2 } from './OrIconButton-1eebcafc.js';
6
6
  import { s as script$3 } from './OrLoader-b3cf4231.js';
7
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
7
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, withModifiers, createBlock, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
8
8
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
9
9
 
10
10
  var errorPng = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAABGdBTUEAALGOfPtRkwAAETJJREFUeAHt3e+PXFUZB/AzuzuzNE0bWbRSYiwvmzbUYIyS2tYFCUhriPGNif0DTHwLKuyCgdBuEarxhSHhD+CFb0TRFgmKCCgaLQUaCEkjbLG/RLZbWrc7+6Nzfb7T+8yeufPr/jjn3vPcOSdc7s7MnTvnPOfTc885986dirKYVvfuvU3VapNqaenw2PPPr1r8KL9rwxFYveeeMTU+fr9aXn557OjRvxnefXN3Af1/xMaOsc/Vu+7aqoLgaSrAIVo/Zutz/H4tRQB1dq3unm7WpYWPqdA+rQBcufvurapafSY4c2ZHcPy4UgsLD6zu23fQQhn8Li1EoFlXVGeoO9Qh6rJZpxY+y/gukdGVffuOrdx6a7BcqwXLSgXLN9wQrExOBvS8R2g84mZ3iDpCXaHOmnVHdYi6bNYpGhaXk45vhfEBIC0rExMeocuVR3ljfKirJj6uOwkI++HjwniE7grsha9Vdy4jjIOvVRDfEjqncBC+Vt25iJDxLet9vrDp5ox3rD1CZxAyvuXIYbejzrhO0bUy2CfESDh1Aj41NvZMcPbsF4N33lE0bI+9r8rEhKrs2KHU+vUz1SNHpmO/0W9oLALARzMUU8Hbb6vgwoX4+63VVGX7dlW56aY31Orq/uoLL7wX/83tW6YGmAVfKwuEcMQjbIUjzz8YX4PwqST4OJOGEKYCaAQfF8Qj5Ejkts6Mj3NqAGFigEbxcUE8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zf+OTf3pYV6/cYtVExcNeLq+UePb82hRIQ1yj5u4vmHel29ODf31vvz80+NvkIXinyZ7nFHF2fuvKLUZlcRenxr+PgvSQiBD92EF2l5U6k3AqW+S12m481ByN+V+niXUq+cdRShx8fkOtcSEEbxVZXa/3Ol3kNpWqPg1wnhVx1E6PF1oos+4zLCKD66ufv+n4X42gDigWsIPb4otd6PXUQ4CB9K02oBuWiuIPT4uEbir11CGAcfStYBEE8WjdDjQy2kSy4gjIsPJewKEC8UhdDjQ/SzpSIRJsGHUvYEiBfzRujxIepmUhEIk+JDSfsCxAZ5IfT4EG2zKU+EafChtAMBYiPbCD0+RNlOygNhWnwocSyA2NAWQo8P0bWbbCLMgg+ljg0QG5tG6PEhqvkkGwiz4kPJEwHEG0wh9PgQzXyTSYQm8KH0iQHiTVkRenyIYjHJBEJT+BCBVADxxrQIPT5Er9iUBaFJfIhCaoB4c1KEHh+i5kZKg9A0PkQiE0DsIC5Cjw/RcislQWgDH6KRGSB2Mgihx4couZniILSFDxExAhA76oeQfu6q47fXhuULRIiN66kbwgnKNH5WzCY+xMUYQOysG8KN9PwHtLh6c0jk2yeluiG8kQKzQAtfRh+9mNRE3IwCRIZ0hCv0HRO69r9ZgCJvCG4iUMOwDx0h3cZ49wYq9DFa3qD/bOBDTNE9s5LuU2or7fyXlPEd9E2ox2k95Q+7VkJtfKf43jEdfmfGlXqA1m9TI/Kdn2qX0Zv8wApaKFsK71fqK1SA2wnf4cPXuhQm8+73ZTECVHdjVHf3U939ieqOvrdmJ/0fyqUZLiX8LYYAAAAASUVORK5CYII=";
@@ -28,6 +28,11 @@ const ToastRoot = [
28
28
  'links:text-inverse-primary', 'dark:links:text-inverse-primary-dark',
29
29
  // Elevation
30
30
  'shadow-card', 'dark:shadow-card-dark'];
31
+ const ToastActionButton = [
32
+ // Layout
33
+ 'contents',
34
+ // Theme
35
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
31
36
  const ToastContainer = [
32
37
  // Position
33
38
  'absolute',
@@ -109,6 +114,7 @@ var script$1 = defineComponent({
109
114
  'self-center',
110
115
  // Theme
111
116
  'text-inverse-primary', 'dark:text-inverse-primary-dark']);
117
+ const actionButtonStyle = computed(() => [...ToastActionButton]);
112
118
  // State
113
119
  const emojiSrc = computed(() => {
114
120
  switch (props.toastType) {
@@ -137,6 +143,7 @@ var script$1 = defineComponent({
137
143
  }
138
144
  return {
139
145
  root,
146
+ actionButtonStyle,
140
147
  toastIconStyle,
141
148
  rootStyles,
142
149
  loaderStyle,
@@ -183,12 +190,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
183
190
  href: _ctx.link.href,
184
191
  target: _ctx.hrefTarget,
185
192
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onLinkClick && _ctx.onLinkClick(...args))
186
- }, toDisplayString(_ctx.link.title), 9 /* TEXT, PROPS */, _hoisted_4)) : createCommentVNode("v-if", true), _ctx.dismissible ? (openBlock(), createBlock(_component_OrIconButton, {
193
+ }, toDisplayString(_ctx.link.title), 9 /* TEXT, PROPS */, _hoisted_4)) : createCommentVNode("v-if", true), _ctx.dismissible ? (openBlock(), createElementBlock("div", {
187
194
  key: 1,
188
- icon: 'close',
189
- size: 'm',
195
+ class: normalizeClass(_ctx.actionButtonStyle)
196
+ }, [createVNode(_component_OrIconButton, {
197
+ icon: "close",
198
+ class: "dark:theme-foreground-inherit",
190
199
  onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.onClose(), ["stop"]))
191
- })) : createCommentVNode("v-if", true)])], 2 /* CLASS */);
200
+ })], 2 /* CLASS */)) : createCommentVNode("v-if", true)])], 2 /* CLASS */);
192
201
  }
193
202
 
194
203
  var css_248z$1 = ".or-toast__link[data-v-837e78fc] {\n word-break: break-word;\n white-space: nowrap;\n cursor: pointer;\n}";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.69.7-beta.2187.0",
3
+ "version": "2.69.7-beta.2201.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.33.0",
41
+ "@onereach/styles": "^2.33.1-beta.2201.0",
42
42
  "@splidejs/splide": "4.0.6",
43
43
  "@types/lodash": "4.14.173",
44
44
  "@types/sortablejs": "1.10.7",
@@ -4,9 +4,9 @@
4
4
  :class="rootStyles"
5
5
  >
6
6
  <input
7
- v-bind="$attrs"
8
7
  :id="controlId"
9
8
  v-model="proxyModelValue"
9
+ v-bind="$attrs"
10
10
  :class="controlStyles"
11
11
  type="checkbox"
12
12
  :value="inputValue"
@@ -0,0 +1,7 @@
1
+ import { DocsPage } from '@storybook/addon-docs';
2
+
3
+ ```ts
4
+ import { OrCombinedInputV3 as OrCombinedInput } from '@onereach/ui-components';
5
+ ```
6
+
7
+ <DocsPage />
@@ -0,0 +1,202 @@
1
+ import { Meta, StoryFn } from '@storybook/vue3';
2
+ import { ref, watch } from 'vue-demi';
3
+ import { OrIconV3 as OrIcon } from '../or-icon-v3';
4
+ import { OrInputV3 as OrInput } from '../or-input-v3';
5
+ import { OrSelectV3 as OrSelect, SelectOption } from '../or-select-v3';
6
+ import OrCombinedInputDocs from './OrCombinedInput.docs.mdx';
7
+ import OrCombinedInput from './OrCombinedInput.vue';
8
+ import { CombinedInputSize } from './props';
9
+
10
+ export default {
11
+ title: 'Components/Forms/Combined Input',
12
+ component: OrCombinedInput,
13
+
14
+ argTypes: {
15
+ // Attrs
16
+ readonly: {
17
+ control: { type: 'boolean' },
18
+ },
19
+
20
+ // Slots
21
+ default: {
22
+ type: {
23
+ name: 'string',
24
+ required: true,
25
+ },
26
+
27
+ control: { type: 'text' },
28
+ },
29
+
30
+ addon: {
31
+ type: {
32
+ name: 'string',
33
+ required: false,
34
+ },
35
+
36
+ control: { type: 'text' },
37
+ },
38
+
39
+ // Props
40
+ size: {
41
+ control: { type: 'select' },
42
+ options: Object.values(CombinedInputSize),
43
+ },
44
+
45
+ label: {
46
+ control: { type: 'text' },
47
+ },
48
+
49
+ hint: {
50
+ control: { type: 'text' },
51
+ },
52
+
53
+ error: {
54
+ control: { type: 'text' },
55
+ },
56
+
57
+ required: {
58
+ control: { type: 'boolean' },
59
+ },
60
+
61
+ disabled: {
62
+ control: { type: 'boolean' },
63
+ },
64
+
65
+ disableDefaultStyles: {
66
+ control: { type: 'boolean' },
67
+ },
68
+ },
69
+
70
+ parameters: {
71
+ docs: {
72
+ page: OrCombinedInputDocs,
73
+ },
74
+
75
+ design: {
76
+ type: 'figma',
77
+ url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=4423%3A39753&t=grpHUrgJi4X2W67L-4',
78
+ },
79
+ },
80
+ } as Meta<typeof OrCombinedInput>;
81
+
82
+ const Template: StoryFn<typeof OrCombinedInput> = (args) => ({
83
+ components: {
84
+ OrCombinedInput,
85
+ OrIcon,
86
+ OrInput,
87
+ OrSelect,
88
+ },
89
+
90
+ setup() {
91
+ // State
92
+ const options = Array.from<string, SelectOption>([
93
+ 'Alfa',
94
+ 'Bravo',
95
+ 'Charlie',
96
+ 'Delta',
97
+ 'Echo',
98
+ 'Foxtrot',
99
+ 'Golf',
100
+ 'Hotel',
101
+ 'India',
102
+ 'Juliett',
103
+ 'Kilo',
104
+ 'Lima',
105
+ 'Mike',
106
+ 'November',
107
+ 'Oscar',
108
+ 'Papa',
109
+ 'Quebec',
110
+ 'Romeo',
111
+ 'Sierra',
112
+ 'Tango',
113
+ 'Uniform',
114
+ 'Victor',
115
+ 'Whiskey',
116
+ 'X-Ray',
117
+ 'Yankee',
118
+ 'Zulu',
119
+ ], (item) => ({
120
+ value: item.toLowerCase(),
121
+ label: item,
122
+ }));
123
+
124
+ const selectModel = ref<string>();
125
+ const inputModel = ref<string>();
126
+
127
+ // Effects
128
+ watch([selectModel, inputModel], (values) => {
129
+ console.debug(values);
130
+ });
131
+
132
+ return {
133
+ args,
134
+ options,
135
+ selectModel,
136
+ inputModel,
137
+ };
138
+ },
139
+
140
+ template: `
141
+ <OrCombinedInput v-bind="args">
142
+ ${args.default}
143
+ ${args.addon}
144
+ </OrCombinedInput>
145
+ `,
146
+ });
147
+
148
+ export const Default = Template.bind({});
149
+
150
+ Default.args = {
151
+ // Slots
152
+ default: `
153
+ <template v-slot="props">
154
+ <OrSelect
155
+ class="basis-1/4"
156
+ v-model="selectModel"
157
+ v-bind="props"
158
+ :options="options"
159
+ />
160
+
161
+ <OrInput
162
+ class="basis-3/4"
163
+ v-model="inputModel"
164
+ v-bind="props"
165
+ />
166
+ </template>
167
+ `,
168
+
169
+ // Props
170
+ label: 'Combined Input',
171
+ };
172
+
173
+ export const Addon = Template.bind({});
174
+
175
+ Addon.args = {
176
+ ...Default.args,
177
+
178
+ // Slots
179
+ addon: `
180
+ <template v-slot:addon>
181
+ <OrIcon icon="info" />
182
+ </template>
183
+ `,
184
+ };
185
+
186
+ export const Hint = Template.bind({});
187
+
188
+ Hint.args = {
189
+ ...Default.args,
190
+
191
+ // Props
192
+ hint: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
193
+ };
194
+
195
+ export const Error = Template.bind({});
196
+
197
+ Error.args = {
198
+ ...Default.args,
199
+
200
+ // Props
201
+ error: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
202
+ };
@@ -0,0 +1,134 @@
1
+ <template>
2
+ <div
3
+ ref="root"
4
+ v-bind="$attrs"
5
+ :class="rootStyles"
6
+ >
7
+ <template v-if="label">
8
+ <OrLabel
9
+ :variant="'input'"
10
+ :required="required"
11
+ :disabled="disabled"
12
+ >
13
+ {{ label }}
14
+
15
+ <template v-slot:addon>
16
+ <slot name="addon" />
17
+ </template>
18
+ </OrLabel>
19
+ </template>
20
+
21
+ <div :class="controlGroup">
22
+ <slot
23
+ :size="size"
24
+ :required="required"
25
+ :readonly="readonly"
26
+ :disabled="disabled"
27
+ :disable-default-styles="disableDefaultStyles"
28
+ />
29
+ </div>
30
+
31
+ <template v-if="!invalid">
32
+ <template v-if="hint">
33
+ <OrHint :disabled="disabled">
34
+ {{ hint }}
35
+ </OrHint>
36
+ </template>
37
+ </template>
38
+
39
+ <template v-else>
40
+ <OrError :disabled="disabled">
41
+ {{ error }}
42
+ </OrError>
43
+ </template>
44
+ </div>
45
+ </template>
46
+
47
+ <script lang="ts">
48
+ import { computed, defineComponent, PropType, ref } from 'vue-demi';
49
+ import { useClassAttribute } from '../../hooks';
50
+ import { OrErrorV3 as OrError } from '../or-error-v3';
51
+ import { OrHintV3 as OrHint } from '../or-hint-v3';
52
+ import { OrLabelV3 as OrLabel } from '../or-label-v3';
53
+ import { CombinedInputSize } from './props';
54
+ import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
55
+
56
+ export default defineComponent({
57
+ name: 'OrCombinedInput',
58
+
59
+ components: {
60
+ OrError,
61
+ OrHint,
62
+ OrLabel,
63
+ },
64
+
65
+ inheritAttrs: false,
66
+
67
+ props: {
68
+ size: {
69
+ type: String as PropType<CombinedInputSize>,
70
+ default: CombinedInputSize.M,
71
+ },
72
+
73
+ label: {
74
+ type: String,
75
+ default: undefined,
76
+ },
77
+
78
+ hint: {
79
+ type: String,
80
+ default: undefined,
81
+ },
82
+
83
+ error: {
84
+ type: String,
85
+ default: undefined,
86
+ },
87
+
88
+ required: {
89
+ type: Boolean,
90
+ default: false,
91
+ },
92
+
93
+ disabled: {
94
+ type: Boolean,
95
+ default: false,
96
+ },
97
+
98
+ disableDefaultStyles: {
99
+ type: Boolean,
100
+ default: false,
101
+ },
102
+ },
103
+
104
+ setup(props, context) {
105
+ // Refs
106
+ const root = ref<HTMLElement>();
107
+
108
+ // Styles
109
+ const classAttribute = useClassAttribute();
110
+
111
+ const rootStyles = computed(() => [
112
+ 'or-combined-input',
113
+ ...CombinedInputRoot,
114
+ classAttribute.value,
115
+ ]);
116
+
117
+ const controlGroup = computed(() => [
118
+ ...CombinedInputControlGroup,
119
+ ]);
120
+
121
+ // State
122
+ const invalid = computed(() => !!props.error);
123
+ const readonly = computed(() => context.attrs.readonly as boolean);
124
+
125
+ return {
126
+ root,
127
+ rootStyles,
128
+ controlGroup,
129
+ invalid,
130
+ readonly,
131
+ };
132
+ },
133
+ });
134
+ </script>
@@ -0,0 +1,2 @@
1
+ export { default as OrCombinedInputV3 } from './OrCombinedInput.vue';
2
+ export * from './props';
@@ -0,0 +1 @@
1
+ export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
@@ -0,0 +1,25 @@
1
+ export const CombinedInputRoot: string[] = [
2
+ // Layout
3
+ 'layout-column',
4
+
5
+ // Spacing
6
+ 'gap-xs',
7
+ ];
8
+
9
+ export const CombinedInputControlGroup: string[] = [
10
+ // Layout
11
+ 'layout-row',
12
+
13
+ // Box
14
+ 'w-full',
15
+
16
+ // Shape (.or-input-box)
17
+ '[&_.or-input-box]:first-child:rounded-r-0',
18
+ '[&_.or-input-box]:intermediate-child:rounded-0',
19
+ '[&_.or-input-box]:last-child:rounded-l-0',
20
+
21
+ // Spacing (.or-input-box)
22
+ '[&_.or-input-box]:first-child:mr-[-1px]',
23
+ '[&_.or-input-box]:intermediate-child:border-x-0',
24
+ '[&_.or-input-box]:last-child:ml-[-1px]',
25
+ ];
@@ -45,7 +45,7 @@ export default defineComponent({
45
45
 
46
46
  color: {
47
47
  type: String as PropType<IconButtonColor>,
48
- default: IconButtonColor.Default,
48
+ default: IconButtonColor.Inherit,
49
49
  },
50
50
 
51
51
  size: {
@@ -1,5 +1,5 @@
1
1
  export enum IconButtonColor {
2
- Default = 'default',
2
+ Primary = 'primary',
3
3
  Danger = 'danger',
4
4
  Inherit = 'inherit',
5
5
  }
@@ -27,14 +27,11 @@ export const IconButtonRoot: string[] = [
27
27
  ];
28
28
 
29
29
  export const IconButtonRootColors: Record<IconButtonColor, string[]> = {
30
- 'default': [
30
+ 'primary': [
31
31
  // Theme
32
32
  'theme-preset-3-primary',
33
33
  'dark:theme-preset-3-primary-dark',
34
34
 
35
- 'theme-foreground-outline',
36
- 'dark:theme-foreground-outline-dark',
37
-
38
35
  // Theme (hover)
39
36
  'hover:outline-primary-opacity-0-08',
40
37
  'dark:hover:outline-primary-opacity-0-08-dark',
@@ -9,8 +9,8 @@ export const InlineInputRoot: string[] = [
9
9
  ];
10
10
 
11
11
  export const InlineInputControl: string[] = [
12
- // Layout
13
- 'grow',
12
+ // Box
13
+ 'w-full',
14
14
 
15
15
  // Typography
16
16
  'typography-inherit',
@@ -7,8 +7,8 @@ export const InlineTextareaRoot: string[] = [
7
7
  ];
8
8
 
9
9
  export const InlineTextareaControl: string[] = [
10
- // Layout
11
- 'grow',
10
+ // Box
11
+ 'w-full',
12
12
 
13
13
  // Typography
14
14
  'typography-inherit',
@@ -90,7 +90,7 @@ export const InputBoxRootVariants: Record<InputBoxVariant, string[]> = {
90
90
  export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
91
91
  'm': [
92
92
  // Box
93
- 'children:min-h-[34px]',
93
+ 'children:min-h-[46px] children:md:min-h-[34px]',
94
94
 
95
95
  // Spacing
96
96
  'first-child:pl-md first-child:md:pl-sm+',
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  ref="root"
4
+ v-bind="$attrs"
4
5
  :class="rootStyles"
5
6
  >
6
7
  <template v-if="label">
@@ -29,46 +30,51 @@
29
30
  :id="controlId"
30
31
  ref="input"
31
32
  v-model="proxyModelValue"
32
- v-bind="$attrs"
33
33
  :class="controlStyles"
34
34
  :type="type === 'password' && disclosed ? 'text' : type"
35
35
  :placeholder="placeholder"
36
36
  :required="required"
37
37
  :disabled="disabled"
38
+
39
+ :readonly="readonly"
40
+ :maxlength="maxLength"
41
+
38
42
  @keydown="$emit('keydown', $event)"
39
43
  @keyup="$emit('keyup', $event)"
40
44
  @focus="$emit('focus', $event)"
41
45
  @blur="$emit('blur', $event)"
42
46
  >
43
47
 
44
- <div :class="['layout-row']">
45
- <template v-if="type === 'password'">
46
- <OrIconButton
47
- :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
48
- :color="'inherit'"
49
- :disabled="disabled"
50
- @click.stop="disclosed = !disclosed"
51
- />
52
- </template>
53
-
54
- <template v-if="type === 'search'">
55
- <template v-if="modelValue">
48
+ <template v-if="type !== 'text'">
49
+ <div :class="['layout-row']">
50
+ <template v-if="type === 'password'">
56
51
  <OrIconButton
57
- :icon="'close'"
52
+ :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
58
53
  :color="'inherit'"
59
54
  :disabled="disabled"
60
- @click.stop="$emit('update:modelValue', '')"
55
+ @click.stop="disclosed = !disclosed"
61
56
  />
62
57
  </template>
63
58
 
64
- <template v-else>
65
- <OrIcon
66
- :icon="'search'"
67
- :variant="'outlined'"
68
- />
59
+ <template v-if="type === 'search'">
60
+ <template v-if="modelValue">
61
+ <OrIconButton
62
+ :icon="'close'"
63
+ :color="'inherit'"
64
+ :disabled="disabled"
65
+ @click.stop="$emit('update:modelValue', '')"
66
+ />
67
+ </template>
68
+
69
+ <template v-else>
70
+ <OrIcon
71
+ :icon="'search'"
72
+ :variant="'outlined'"
73
+ />
74
+ </template>
69
75
  </template>
70
- </template>
71
- </div>
76
+ </div>
77
+ </template>
72
78
  </OrInputBox>
73
79
 
74
80
  <template v-if="!invalid">
@@ -7,8 +7,8 @@ export const InputRoot: string[] = [
7
7
  ];
8
8
 
9
9
  export const InputControl: string[] = [
10
- // Layout
11
- 'grow',
10
+ // Box
11
+ 'w-full',
12
12
 
13
13
  // Typography
14
14
  'typography-inherit',