@onereach/ui-components 2.70.0-beta.2131.0 → 2.70.0-beta.2159.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 (228) hide show
  1. package/dist/bundled/v2/{OrAvatar-2fa559e1.js → OrAvatar-ae61bfb9.js} +41 -15
  2. package/dist/bundled/v2/{OrButton-0e91a808.js → OrButton-4b99c680.js} +5 -1
  3. package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
  4. package/dist/bundled/v2/OrCardCollection-c4209a92.js +350 -0
  5. package/dist/bundled/v2/OrCode-be1bd373.js +4255 -0
  6. package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-cab6535b.js} +1 -1
  7. package/dist/bundled/v2/OrEmptyState-9fb413f9.js +160 -0
  8. package/dist/bundled/v2/{OrRichTextEditor-63ef1357.js → OrRichTextEditor-5843ecda.js} +13803 -20711
  9. package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-76b002cf.js} +10 -4
  10. package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
  11. package/dist/bundled/v2/codemirrorView-14f6685c.js +7136 -0
  12. package/dist/bundled/v2/components/index.d.ts +1 -0
  13. package/dist/bundled/v2/components/index.js +13 -10
  14. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  15. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
  16. package/dist/bundled/v2/components/or-avatar-v3/index.js +2 -1
  17. package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +2 -1
  18. package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +2 -0
  19. package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
  20. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
  21. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
  22. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  23. package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -4
  24. package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +5 -1
  25. package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  26. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +8 -3
  27. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  28. package/dist/bundled/v2/components/or-code/index.js +3 -2
  29. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  30. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  31. package/dist/bundled/v2/components/or-empty-state-v3/index.js +3 -159
  32. package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  33. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +4 -2
  34. package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  35. package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
  36. package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  37. package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +2 -0
  38. package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  39. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +15 -2
  40. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  41. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  42. package/dist/bundled/v2/index-46cc379c.js +12186 -0
  43. package/dist/bundled/v2/index-780d00b0.js +13307 -0
  44. package/dist/bundled/v2/index.js +14 -11
  45. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-22e46ce1.js → OrAvatar.vue_vue_type_script_lang-0426862b.js} +35 -13
  46. package/dist/bundled/v3/OrButton-a671b8a1.js +33 -0
  47. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3718b300.js → OrButton.vue_vue_type_script_lang-b0dc31ca.js} +5 -1
  48. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js +236 -0
  49. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-0f668150.js +4133 -0
  50. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-f57ffa1a.js} +6 -36
  51. package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-da7d6c42.js +111 -0
  52. package/dist/bundled/v3/{OrIconButton-4bd33e3c.js → OrIconButton-1581013c.js} +1 -1
  53. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-641f6e06.js → OrIconButton.vue_vue_type_script_lang-f6f801ff.js} +1 -1
  54. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3a8189f4.js → OrInlineInput.vue_vue_type_script_lang-f29483f4.js} +2 -2
  55. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js → OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js} +2 -2
  56. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
  57. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-00a477f0.js → OrModal.vue_vue_type_script_lang-80a7b906.js} +2 -2
  58. package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
  59. package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-47fffbd6.js → OrRichTextEditor.vue_vue_type_script_lang-e0dfd695.js} +13803 -20711
  60. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +9 -3
  61. package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-15285ce4.js +1 -1
  62. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-92d9fb12.js → OrTag.vue_vue_type_script_lang-dc6a4011.js} +2 -2
  63. package/dist/bundled/v3/{OrToastContainer-afb51e5d.js → OrToastContainer-7c3c0b12.js} +1 -1
  64. package/dist/bundled/v3/codemirrorView-14f6685c.js +7136 -0
  65. package/dist/bundled/v3/components/index.d.ts +1 -0
  66. package/dist/bundled/v3/components/index.js +23 -19
  67. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  68. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
  69. package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -1
  70. package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +2 -1
  71. package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +2 -0
  72. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  73. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
  74. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
  75. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  76. package/dist/bundled/v3/components/or-card-collection-v3/index.js +13 -6
  77. package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +5 -1
  78. package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  79. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
  80. package/dist/bundled/v3/components/or-code/index.js +3 -2
  81. package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -4
  82. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  83. package/dist/bundled/v3/components/or-empty-state-v3/index.js +2 -134
  84. package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
  85. package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
  86. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
  87. package/dist/bundled/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  88. package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
  89. package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
  90. package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
  91. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +6 -4
  92. package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  93. package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
  94. package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  95. package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +2 -0
  96. package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  97. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +15 -2
  98. package/dist/bundled/v3/components/or-search-v3/index.js +3 -3
  99. package/dist/bundled/v3/components/or-select-v3/index.js +3 -3
  100. package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
  101. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  102. package/dist/bundled/v3/index-44faad6a.js +12186 -0
  103. package/dist/bundled/v3/index-780d00b0.js +13307 -0
  104. package/dist/bundled/v3/index.js +415 -351
  105. package/dist/bundled/v3/{types-6c5eee23.js → types-dcc78caa.js} +2 -2
  106. package/dist/esm/v2/{OrAvatar-0afdef36.js → OrAvatar-3d155af3.js} +41 -15
  107. package/dist/esm/v2/{OrButton-357a5756.js → OrButton-357e1e2c.js} +5 -1
  108. package/dist/esm/v2/OrCardCollection-57d11adf.js +350 -0
  109. package/dist/esm/v2/{OrCode-41dd5f9b.js → OrCode-d4400b42.js} +6 -4
  110. package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-ec7aef0e.js} +1 -1
  111. package/dist/esm/v2/OrEmptyState-2481f13f.js +158 -0
  112. package/dist/esm/v2/{OrRichTextEditor-c3dee275.js → OrRichTextEditor-2d152db0.js} +59 -11
  113. package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-2f260b09.js} +8 -2
  114. package/dist/esm/v2/codemirrorView-8ea431d2.js +184 -0
  115. package/dist/esm/v2/components/index.d.ts +1 -0
  116. package/dist/esm/v2/components/index.js +13 -7
  117. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  118. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
  119. package/dist/esm/v2/components/or-avatar-v3/index.js +2 -1
  120. package/dist/esm/v2/components/or-avatar-v3/props.d.ts +2 -1
  121. package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +2 -0
  122. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  123. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
  124. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
  125. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  126. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -4
  127. package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +5 -1
  128. package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  129. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
  130. package/dist/esm/v2/components/or-code/index.js +3 -1
  131. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  132. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  133. package/dist/esm/v2/components/or-empty-state-v3/index.js +3 -158
  134. package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  135. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +8 -1
  136. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  137. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
  138. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  139. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +5 -0
  140. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  141. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +15 -2
  142. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  143. package/dist/esm/v2/index.js +13 -7
  144. package/dist/esm/v3/{OrAvatar-ef88d31c.js → OrAvatar-53a4429d.js} +43 -16
  145. package/dist/esm/v3/{OrButton-f4b9ee51.js → OrButton-bb6bf8a9.js} +5 -1
  146. package/dist/esm/v3/OrCardCollection-2a6514f3.js +298 -0
  147. package/dist/esm/v3/{OrCode-ee19a5e6.js → OrCode-5ed69c23.js} +3 -1
  148. package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-5d56cbd3.js} +1 -1
  149. package/dist/esm/v3/OrEmptyState-bb8e3145.js +135 -0
  150. package/dist/esm/v3/OrInput-41691fb3.js +1 -1
  151. package/dist/esm/v3/{OrInputBox-5247ab25.js → OrInputBox-6d1b6059.js} +1 -1
  152. package/dist/esm/v3/{OrRichTextEditor-b2e87342.js → OrRichTextEditor-f1271eb6.js} +58 -10
  153. package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-e5a2e93e.js} +9 -3
  154. package/dist/esm/v3/OrSelect-7e813982.js +1 -1
  155. package/dist/esm/v3/OrTextarea-bb9ef3f2.js +1 -1
  156. package/dist/esm/v3/codemirrorView-8ea431d2.js +184 -0
  157. package/dist/esm/v3/components/index.d.ts +1 -0
  158. package/dist/esm/v3/components/index.js +14 -8
  159. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  160. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
  161. package/dist/esm/v3/components/or-avatar-v3/index.js +2 -1
  162. package/dist/esm/v3/components/or-avatar-v3/props.d.ts +2 -1
  163. package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +2 -0
  164. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  165. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +10 -0
  166. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +87 -40
  167. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  168. package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -5
  169. package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +5 -1
  170. package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  171. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
  172. package/dist/esm/v3/components/or-code/index.js +3 -1
  173. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  174. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  175. package/dist/esm/v3/components/or-empty-state-v3/index.js +3 -135
  176. package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  177. package/dist/esm/v3/components/or-input-box-v3/index.js +2 -2
  178. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  179. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +8 -1
  180. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  181. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +45 -0
  182. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  183. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +5 -0
  184. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  185. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +15 -2
  186. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  187. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  188. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  189. package/dist/esm/v3/index.js +14 -8
  190. package/package.json +2 -1
  191. package/src/components/index.ts +1 -0
  192. package/src/components/or-avatar-v3/OrAvatar.stories3.ts +9 -7
  193. package/src/components/or-avatar-v3/OrAvatar.vue +22 -2
  194. package/src/components/or-avatar-v3/props.ts +1 -0
  195. package/src/components/or-avatar-v3/styles.ts +49 -11
  196. package/src/components/or-button-v3/styles.ts +6 -0
  197. package/src/components/or-card/OrCard.stories.ts +1 -1
  198. package/src/components/or-card-collection/OrCardCollection.stories.ts +1 -1
  199. package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +4 -0
  200. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +246 -30
  201. package/src/components/or-card-collection-v3/OrCardCollection.vue +132 -77
  202. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
  203. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
  204. package/src/components/or-card-collection-v3/props.ts +14 -1
  205. package/src/components/or-card-collection-v3/styles.ts +6 -4
  206. package/src/components/or-card-collection-v3/types.ts +9 -3
  207. package/src/components/or-code/OrCode.vue +3 -1
  208. package/src/components/or-empty-state-v3/OrEmptyState.vue +16 -10
  209. package/src/components/or-input-box-v3/OrInputBox.vue +1 -2
  210. package/src/components/or-menu-v3/OrMenu.stories3.ts +1 -1
  211. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +2 -0
  212. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +32 -6
  213. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
  214. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +257 -0
  215. package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
  216. package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
  217. package/src/components/or-rich-text-editor-v3/utils/markdown.ts +2 -0
  218. package/src/components/or-search-v3/OrSearch.stories3.ts +1 -1
  219. package/src/components/or-search-v3/OrSearch.vue +8 -2
  220. package/src/components/or-teleport-v3/OrTeleport.stories3.ts +1 -1
  221. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
  222. package/dist/bundled/v2/OrCode-0cd991a1.js +0 -29579
  223. package/dist/bundled/v2/index.es-3f39f316.js +0 -115
  224. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-3993a015.js +0 -164
  225. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-6c5f94a6.js +0 -29457
  226. package/dist/bundled/v3/index.es-3f39f316.js +0 -115
  227. package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
  228. package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
@@ -0,0 +1,45 @@
1
+ import { TextSelection } from 'prosemirror-state';
2
+ import { EditorView, NodeView } from 'prosemirror-view';
3
+ import { Node as ProsemirrorNode } from 'prosemirror-model';
4
+ import { Transaction as CMTransaction } from '@codemirror/state';
5
+ import { Command, EditorView as CMView } from '@codemirror/view';
6
+ import { CodeMirrorViewOptions } from './types';
7
+ declare module '@tiptap/core' {
8
+ interface Commands<ReturnType> {
9
+ codeBlock: {
10
+ /**
11
+ * Set a code block
12
+ */
13
+ setCodeBlock: (attributes?: {
14
+ language: string;
15
+ }) => ReturnType;
16
+ /**
17
+ * Toggle a code block
18
+ */
19
+ toggleCodeBlock: (attributes?: {
20
+ language: string;
21
+ }) => ReturnType;
22
+ };
23
+ }
24
+ }
25
+ declare class CodeMirrorView implements NodeView {
26
+ name: string;
27
+ node: ProsemirrorNode;
28
+ view: EditorView;
29
+ dom: HTMLElement;
30
+ cm: CMView;
31
+ getPos: () => number;
32
+ updating: boolean;
33
+ constructor(options: CodeMirrorViewOptions);
34
+ forwardSelection(): void;
35
+ asProseMirrorSelection(doc: ProsemirrorNode): TextSelection;
36
+ dispatch(cmTr: CMTransaction): void;
37
+ mayBeEscape(unit: 'char' | 'line', dir: -1 | 1): Command;
38
+ update(node: ProsemirrorNode): boolean;
39
+ setSelection(anchor: number, head: number): void;
40
+ focus(): void;
41
+ selectNode(): void;
42
+ stopEvent(): boolean;
43
+ destroy(): void;
44
+ }
45
+ export default CodeMirrorView;
@@ -0,0 +1 @@
1
+ export { default as CodeMirrorView } from './codemirrorView';
@@ -0,0 +1,5 @@
1
+ export { C as CodeMirrorView } from '../../../../codemirrorView-8ea431d2.js';
2
+ import 'prosemirror-state';
3
+ import 'prosemirror-commands';
4
+ import '@codemirror/state';
5
+ import '@codemirror/view';
@@ -0,0 +1,19 @@
1
+ import type { EditorView } from 'prosemirror-view';
2
+ import type { Node as ProsemirrorNode } from 'prosemirror-model';
3
+ import type { Extension } from '@codemirror/state';
4
+ export interface ComputeChange {
5
+ from: number;
6
+ to: number;
7
+ text: string;
8
+ }
9
+ interface CMOptions {
10
+ extensions: Extension;
11
+ }
12
+ export declare type GetPos = () => number | undefined;
13
+ export interface CodeMirrorViewOptions {
14
+ node: ProsemirrorNode;
15
+ view: EditorView;
16
+ getPos: GetPos;
17
+ cmOptions?: CMOptions;
18
+ }
19
+ export {};
@@ -11,13 +11,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
11
11
  focus: () => void;
12
12
  clear: () => void;
13
13
  }> & import("@vue/composition-api").Data, {}, {}, {
14
+ modelValue: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ required: false;
18
+ };
14
19
  size: {
15
20
  type: PropType<SearchSize>;
16
21
  default: SearchSize;
17
22
  };
18
23
  placeholder: {
19
24
  type: StringConstructor;
20
- default: undefined;
25
+ default: string;
21
26
  };
22
27
  debounce: {
23
28
  type: NumberConstructor;
@@ -32,13 +37,18 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
32
37
  default: boolean;
33
38
  };
34
39
  }, import("@vue/composition-api").ExtractPropTypes<{
40
+ modelValue: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ required: false;
44
+ };
35
45
  size: {
36
46
  type: PropType<SearchSize>;
37
47
  default: SearchSize;
38
48
  };
39
49
  placeholder: {
40
50
  type: StringConstructor;
41
- default: undefined;
51
+ default: string;
42
52
  };
43
53
  debounce: {
44
54
  type: NumberConstructor;
@@ -53,6 +63,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
53
63
  default: boolean;
54
64
  };
55
65
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
66
+ modelValue: string;
56
67
  size: SearchSize;
57
68
  placeholder: string;
58
69
  debounce: number;
@@ -71,6 +82,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
71
82
  focus: () => void;
72
83
  clear: () => void;
73
84
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
85
+ modelValue: string;
74
86
  size: SearchSize;
75
87
  placeholder: string;
76
88
  debounce: number;
@@ -79,6 +91,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
79
91
  } & {} & {
80
92
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
81
93
  }, {
94
+ modelValue: string;
82
95
  size: SearchSize;
83
96
  placeholder: string;
84
97
  debounce: number;
@@ -1,5 +1,5 @@
1
- export { s as OrSearchV3 } from '../../OrSearch-cdde55ce.js';
2
- export { a as SearchSize } from '../../OrInputBox-5247ab25.js';
1
+ export { s as OrSearchV3 } from '../../OrSearch-e5a2e93e.js';
2
+ export { a as SearchSize } from '../../OrInputBox-6d1b6059.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
5
5
  import '../../useClassAttribute-47fdb016.js';
@@ -1,5 +1,5 @@
1
1
  export { s as OrSelectV3 } from '../../OrSelect-7e813982.js';
2
- export { a as SelectSize } from '../../OrInputBox-5247ab25.js';
2
+ export { a as SelectSize } from '../../OrInputBox-6d1b6059.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
5
5
  import '../../useClassAttribute-47fdb016.js';
@@ -1,5 +1,5 @@
1
1
  export { s as OrTextareaV3 } from '../../OrTextarea-bb9ef3f2.js';
2
- export { a as TextareaSize } from '../../OrInputBox-5247ab25.js';
2
+ export { a as TextareaSize } from '../../OrInputBox-6d1b6059.js';
3
3
  import 'vue-demi';
4
4
  import '../../useClassAttribute-47fdb016.js';
5
5
  import '@vueuse/core';
@@ -1,26 +1,27 @@
1
1
  export { O as OR_AVATAR_SIZE, s as OrAvatar } from './OrAvatar-2808a314.js';
2
- export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-ef88d31c.js';
2
+ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-53a4429d.js';
3
3
  export { s as OrBottomSheetV3 } from './OrBottomSheet-62817aec.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-f4b9ee51.js';
6
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-bb6bf8a9.js';
7
7
  export { s as OrCard } from './OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-a5e326ef.js';
9
- export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-5a0febaf.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-2a6514f3.js';
10
10
  export { s as OrCardV3 } from './OrCard-fd92f7c8.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
12
12
  export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
13
13
  export { s as OrCheckboxV3 } from './OrCheckbox-3e139eac.js';
14
14
  export { s as OrChip, a as OrChips } from './OrChips-9afba42f.js';
15
- export { s as OrCode, O as OrCodeLanguages } from './OrCode-ee19a5e6.js';
15
+ 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-f39bd784.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-906427ef.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-5d56cbd3.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
22
  export { s as OrErrorTagV3 } from './OrErrorTag-98252eef.js';
23
23
  export { s as OrErrorV3 } from './OrError-ec8c709d.js';
24
+ export { E as EmptyStateSize, s as OrEmptyStateV3 } from './OrEmptyState-bb8e3145.js';
24
25
  export { a as ExpansionPanelColor, E as ExpansionPanelVariant, s as OrExpansionPanelV3 } from './OrExpansionPanel-311e64cf.js';
25
26
  export { F as FabColor, s as OrFabV3 } from './OrFab-c8ae6e01.js';
26
27
  export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-5240e758.js';
@@ -33,7 +34,7 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
33
34
  export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-31026cd0.js';
34
35
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
35
36
  export { s as OrInlineTextareaV3 } from './OrInlineTextarea-b28c3d8c.js';
36
- export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-5247ab25.js';
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-6d1b6059.js';
37
38
  export { I as InputType, s as OrInputV3 } from './OrInput-41691fb3.js';
38
39
  export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
39
40
  export { s as OrLabel } from './OrLabel-876f8729.js';
@@ -58,7 +59,7 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
58
59
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
59
60
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
60
61
  export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
61
- export { s as OrSearchV3 } from './OrSearch-cdde55ce.js';
62
+ export { s as OrSearchV3 } from './OrSearch-e5a2e93e.js';
62
63
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
63
64
  export { s as OrSelect } from './OrSelect-0821b907.js';
64
65
  export { s as OrSelectV3 } from './OrSelect-7e813982.js';
@@ -89,7 +90,7 @@ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-8
89
90
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
90
91
  export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-78cd7f6b.js';
91
92
  export { s as OrTooltipV3 } from './OrTooltip-50d27b4f.js';
92
- export { s as OrRichTextEditorV3 } from './OrRichTextEditor-b2e87342.js';
93
+ export { s as OrRichTextEditorV3 } from './OrRichTextEditor-f1271eb6.js';
93
94
  export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
94
95
  export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
95
96
  export { u as useElevation } from './useElevation-31bfe1f6.js';
@@ -104,6 +105,8 @@ import './style-inject.es-4c6f2515.js';
104
105
  import '@vueuse/core';
105
106
  import '@splidejs/splide';
106
107
  import '@codemirror/state';
108
+ import '@codemirror/view';
109
+ import '@codemirror/commands';
107
110
  import 'codemirror';
108
111
  import '@codemirror/lang-html';
109
112
  import '@codemirror/lang-css';
@@ -137,6 +140,9 @@ import '@tiptap/starter-kit';
137
140
  import '@tiptap/extension-underline';
138
141
  import '@tiptap/extension-heading';
139
142
  import '@tiptap/extension-placeholder';
143
+ import './codemirrorView-8ea431d2.js';
144
+ import 'prosemirror-state';
145
+ import 'prosemirror-commands';
140
146
 
141
147
  function getAbbreviation(text, limit) {
142
148
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.70.0-beta.2131.0",
3
+ "version": "2.70.0-beta.2159.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -31,6 +31,7 @@
31
31
  "switch:vue3": "node scripts/swap-vue.js 3 && vue-demi-switch 3"
32
32
  },
33
33
  "dependencies": {
34
+ "@codemirror/commands": "^6.2.1",
34
35
  "@codemirror/lang-css": "6.0.0",
35
36
  "@codemirror/lang-html": "6.1.0",
36
37
  "@codemirror/lang-javascript": "6.0.2",
@@ -21,6 +21,7 @@ export * from './or-date-time-picker';
21
21
  export * from './or-error';
22
22
  export * from './or-error-tag-v3';
23
23
  export * from './or-error-v3';
24
+ export * from './or-empty-state-v3';
24
25
  export * from './or-expansion-panel-v3';
25
26
  export * from './or-fab-v3';
26
27
  export * from './or-floating';
@@ -2,7 +2,6 @@ import { Meta, StoryFn } from '@storybook/vue3';
2
2
  import OrAvatarDocs from './OrAvatar.docs.mdx';
3
3
  import OrAvatar from './OrAvatar.vue';
4
4
  import { AvatarColor, AvatarSize } from './props';
5
- import { OrIconV3 as OrIcon } from '../or-icon-v3';
6
5
  import { getAbbreviation } from '../../utils/functions/text';
7
6
  import { computed } from 'vue-demi';
8
7
 
@@ -39,6 +38,10 @@ export default {
39
38
  colorSalt: {
40
39
  control: { type: 'text' },
41
40
  },
41
+
42
+ icon: {
43
+ control: { type: 'text' },
44
+ },
42
45
  },
43
46
 
44
47
  parameters: {
@@ -58,7 +61,6 @@ export default {
58
61
  const DefaultTemplate: StoryFn<typeof OrAvatar> = (args) => ({
59
62
  components: {
60
63
  OrAvatar,
61
- OrIcon,
62
64
  },
63
65
 
64
66
  setup() {
@@ -114,22 +116,22 @@ WithTextInSlot.args = {
114
116
  colorSalt: 'A username',
115
117
  };
116
118
 
117
- export const WithIconInSlot = DefaultTemplate.bind({});
118
- WithIconInSlot.args = {
119
- default: '<or-icon icon="face" size="inherit" />',
119
+ export const WithIcon = DefaultTemplate.bind({});
120
+ WithIcon.args = {
121
+ icon: 'store',
120
122
  colorSalt: 'Any string here',
121
123
  };
122
124
 
123
125
  export const WithColor = DefaultTemplate.bind({});
124
126
  WithColor.args = {
125
127
  color: AvatarColor.blue,
126
- default: '<or-icon icon="person" size="inherit" />',
128
+ icon: 'person',
127
129
  };
128
130
 
129
131
  export const XL = DefaultTemplate.bind({});
130
132
  XL.args = {
131
133
  size: AvatarSize.XL,
132
- default: '<or-icon icon="person" size="inherit" />',
134
+ icon: 'person',
133
135
  colorSalt: 'Big Avatar',
134
136
  };
135
137
 
@@ -6,10 +6,16 @@
6
6
  >
7
7
  <slot>
8
8
  <img
9
+ v-if="src"
9
10
  :class="imageStyles"
10
11
  :src="src"
11
12
  :alt="''"
12
13
  >
14
+ <or-icon
15
+ v-else-if="icon"
16
+ :icon="icon"
17
+ size="inherit"
18
+ />
13
19
  </slot>
14
20
  </div>
15
21
  </template>
@@ -19,10 +25,14 @@ import { computed, defineComponent, PropType, ref, watchPostEffect } from 'vue-d
19
25
  import { useClassAttribute } from '../../hooks';
20
26
  import { generateHslFromString, hslToColorString } from '../../utils/functions/color';
21
27
  import { AvatarColor, AvatarSize } from './props';
22
- import { AvatarImage, AvatarRoot, AvatarRootColors, AvatarRootSizes } from './styles';
28
+ import { AvatarImage, AvatarRoot, AvatarRootColors, AvatarRootSizes, AvatarRootAbbreviationSizes, AvatarRootIconSizes } from './styles';
29
+ import { OrIconV3 as OrIcon } from '../or-icon-v3';
23
30
 
24
31
  export default defineComponent({
25
32
  name: 'OrAvatar',
33
+ components: {
34
+ OrIcon,
35
+ },
26
36
 
27
37
  inheritAttrs: false,
28
38
 
@@ -36,7 +46,10 @@ export default defineComponent({
36
46
  type: String as PropType<AvatarSize>,
37
47
  default: AvatarSize.M,
38
48
  },
39
-
49
+ icon: {
50
+ type: String,
51
+ default: undefined,
52
+ },
40
53
  color: {
41
54
  type: String as PropType<AvatarColor>,
42
55
  default: AvatarColor.auto,
@@ -58,6 +71,9 @@ export default defineComponent({
58
71
  // Refs
59
72
  const root = ref<HTMLElement>();
60
73
 
74
+ const isIcon = computed(() => {
75
+ return !props.icon;
76
+ });
61
77
  // Styles
62
78
  const classAttribute = useClassAttribute();
63
79
 
@@ -66,6 +82,10 @@ export default defineComponent({
66
82
  ...AvatarRoot,
67
83
  ...AvatarRootSizes[props.size],
68
84
  ...AvatarRootColors[props.color],
85
+ ...(isIcon.value
86
+ ? AvatarRootAbbreviationSizes[props.size]
87
+ : AvatarRootIconSizes[props.size]
88
+ ),
69
89
  classAttribute.value,
70
90
  ]);
71
91
 
@@ -3,6 +3,7 @@ export enum AvatarSize {
3
3
  L = 'l',
4
4
  M = 'm',
5
5
  S = 's',
6
+ XS = 'xs',
6
7
  }
7
8
 
8
9
  export enum AvatarColor {
@@ -27,36 +27,30 @@ export const AvatarRootSizes: Record<AvatarSize, string[]> = {
27
27
  // Box
28
28
  'w-[80px]',
29
29
  'h-[80px]',
30
-
31
- // Typography
32
- 'text-[32px]',
33
30
  ],
34
31
 
35
32
  'l': [
36
33
  // Box
37
34
  'w-[64px]',
38
35
  'h-[64px]',
39
-
40
- // Typography
41
- 'text-[24px]',
42
36
  ],
43
37
 
44
38
  'm': [
45
39
  // Box
46
40
  'w-[40px]',
47
41
  'h-[40px]',
48
-
49
- // Typography
50
- 'text-[16px]',
51
42
  ],
52
43
 
53
44
  's': [
54
45
  // Box
55
46
  'w-[32px]',
56
47
  'h-[32px]',
48
+ ],
57
49
 
58
- // Typography
59
- 'text-[16px]',
50
+ 'xs': [
51
+ // Box
52
+ 'w-[24px]',
53
+ 'h-[24px]',
60
54
  ],
61
55
  };
62
56
 
@@ -97,3 +91,47 @@ export const AvatarRootColors: Record<AvatarColor, string[]> = {
97
91
  'dark:text-overlay-dark',
98
92
  ],
99
93
  };
94
+
95
+ export const AvatarRootAbbreviationSizes: Record<AvatarSize, string[]> = {
96
+ 'xl': [
97
+ 'typography-headline-1',
98
+ ],
99
+
100
+ 'l': [
101
+ 'typography-headline-1',
102
+ ],
103
+
104
+ 'm': [
105
+ 'typography-body-1-bold',
106
+ ],
107
+
108
+ 's': [
109
+ 'typography-body-1-bold',
110
+ ],
111
+
112
+ 'xs': [
113
+ 'typography-caption-semibold',
114
+ ],
115
+ };
116
+
117
+ export const AvatarRootIconSizes: Record<AvatarSize, string[]> = {
118
+ 'xl': [
119
+ 'text-[40px]',
120
+ ],
121
+
122
+ 'l': [
123
+ 'text-[32px]',
124
+ ],
125
+
126
+ 'm': [
127
+ 'text-[20px]',
128
+ ],
129
+
130
+ 's': [
131
+ 'text-[16px]',
132
+ ],
133
+
134
+ 'xs': [
135
+ 'text-[16px]',
136
+ ],
137
+ };
@@ -7,6 +7,9 @@ export const ButtonRoot: string[] = [
7
7
  // Shape
8
8
  'rounded-md',
9
9
 
10
+ // Sizing
11
+ 'min-w-[96px]',
12
+
10
13
  // Interactivity
11
14
  'interactivity-auto',
12
15
 
@@ -46,6 +49,9 @@ export const ButtonRootVariants: Record<ButtonVariant, string[]> = {
46
49
  'link': [
47
50
  // Spacing
48
51
  'gap-sm md:gap-xs',
52
+
53
+ // Sizing
54
+ 'min-w-[auto]',
49
55
  ],
50
56
  };
51
57
 
@@ -1,5 +1,5 @@
1
1
  import { Story } from '@storybook/vue';
2
- import { OrCard } from '.';
2
+ import OrCard from './OrCard.vue';
3
3
 
4
4
  export default {
5
5
  title: 'Components/OrCard',
@@ -1,4 +1,4 @@
1
- import { OrCardCollection } from '.';
1
+ import OrCardCollection from './OrCardCollection.vue';
2
2
  import { OrIconButton } from '../or-button-v2';
3
3
  import { Story } from '@storybook/vue';
4
4
  import { action } from '@storybook/addon-actions';
@@ -1,3 +1,7 @@
1
1
  import { DocsPage } from '@storybook/addon-docs';
2
2
 
3
3
  <DocsPage />
4
+
5
+ ## Migration Guide from V1
6
+
7
+ Component refactored completely, see new stories and code snippets