@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
@@ -1,9 +1,9 @@
1
1
  import { useToggle } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, withModifiers, onBeforeMount, onBeforeUnmount, nextTick } from 'vue';
3
3
  import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-4d4329cd.js';
4
- import './OrIconButton-4bd33e3c.js';
4
+ import './OrIconButton-1581013c.js';
5
5
  import './OrLoader-c4bbef2f.js';
6
- import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
6
+ import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
7
7
  import { s as script$3 } from './OrLoader.vue_vue_type_script_lang-5405040c.js';
8
8
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
9
9
  import './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
@@ -2,6 +2,7 @@ import { defineComponent, ref, computed, watchPostEffect } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
3
  import '@vueuse/core';
4
4
  import { h as hslToColorString, g as generateHslFromString } from './color-1f348774.js';
5
+ import { _ as __vue_component__$1 } from './OrIcon-5e394c62.js';
5
6
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
6
7
 
7
8
  var AvatarSize;
@@ -10,6 +11,7 @@ var AvatarSize;
10
11
  AvatarSize["L"] = "l";
11
12
  AvatarSize["M"] = "m";
12
13
  AvatarSize["S"] = "s";
14
+ AvatarSize["XS"] = "xs";
13
15
  })(AvatarSize || (AvatarSize = {}));
14
16
  var AvatarColor;
15
17
  (function (AvatarColor) {
@@ -34,24 +36,19 @@ const AvatarImage = [
34
36
  const AvatarRootSizes = {
35
37
  'xl': [
36
38
  // Box
37
- 'w-[80px]', 'h-[80px]',
38
- // Typography
39
- 'text-[32px]'],
39
+ 'w-[80px]', 'h-[80px]'],
40
40
  'l': [
41
41
  // Box
42
- 'w-[64px]', 'h-[64px]',
43
- // Typography
44
- 'text-[24px]'],
42
+ 'w-[64px]', 'h-[64px]'],
45
43
  'm': [
46
44
  // Box
47
- 'w-[40px]', 'h-[40px]',
48
- // Typography
49
- 'text-[16px]'],
45
+ 'w-[40px]', 'h-[40px]'],
50
46
  's': [
51
47
  // Box
52
- 'w-[32px]', 'h-[32px]',
53
- // Typography
54
- 'text-[16px]']
48
+ 'w-[32px]', 'h-[32px]'],
49
+ 'xs': [
50
+ // Box
51
+ 'w-[24px]', 'h-[24px]']
55
52
  };
56
53
  const AvatarRootColors = {
57
54
  [AvatarColor.blue]: [
@@ -73,9 +70,26 @@ const AvatarRootColors = {
73
70
  // Theme
74
71
  'text-white', 'dark:text-overlay-dark']
75
72
  };
73
+ const AvatarRootAbbreviationSizes = {
74
+ 'xl': ['typography-headline-1'],
75
+ 'l': ['typography-headline-1'],
76
+ 'm': ['typography-body-1-bold'],
77
+ 's': ['typography-body-1-bold'],
78
+ 'xs': ['typography-caption-semibold']
79
+ };
80
+ const AvatarRootIconSizes = {
81
+ 'xl': ['text-[40px]'],
82
+ 'l': ['text-[32px]'],
83
+ 'm': ['text-[20px]'],
84
+ 's': ['text-[16px]'],
85
+ 'xs': ['text-[16px]']
86
+ };
76
87
 
77
88
  var script = defineComponent({
78
89
  name: 'OrAvatar',
90
+ components: {
91
+ OrIcon: __vue_component__$1
92
+ },
79
93
  inheritAttrs: false,
80
94
  props: {
81
95
  src: {
@@ -86,6 +100,10 @@ var script = defineComponent({
86
100
  type: String,
87
101
  default: AvatarSize.M
88
102
  },
103
+ icon: {
104
+ type: String,
105
+ default: undefined
106
+ },
89
107
  color: {
90
108
  type: String,
91
109
  default: AvatarColor.auto,
@@ -101,9 +119,12 @@ var script = defineComponent({
101
119
  setup(props) {
102
120
  // Refs
103
121
  const root = ref();
122
+ const isIcon = computed(() => {
123
+ return !props.icon;
124
+ });
104
125
  // Styles
105
126
  const classAttribute = useClassAttribute();
106
- const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], classAttribute.value]);
127
+ const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], ...(isIcon.value ? AvatarRootAbbreviationSizes[props.size] : AvatarRootIconSizes[props.size]), classAttribute.value]);
107
128
  const imageStyles = computed(() => [...AvatarImage]);
108
129
  // Effects
109
130
  watchPostEffect(() => {
@@ -136,13 +157,18 @@ var __vue_render__ = function () {
136
157
  ref: "root",
137
158
  class: _vm.rootStyles
138
159
  }, 'div', _vm.$attrs, false), [_vm._t("default", function () {
139
- return [_c('img', {
160
+ return [_vm.src ? _c('img', {
140
161
  class: _vm.imageStyles,
141
162
  attrs: {
142
163
  "src": _vm.src,
143
164
  "alt": ''
144
165
  }
145
- })];
166
+ }) : _vm.icon ? _c('or-icon', {
167
+ attrs: {
168
+ "icon": _vm.icon,
169
+ "size": "inherit"
170
+ }
171
+ }) : _vm._e()];
146
172
  })], 2);
147
173
  };
148
174
  var __vue_staticRenderFns__ = [];
@@ -29,6 +29,8 @@ const ButtonRoot = [
29
29
  'layout-inline-row justify-center',
30
30
  // Shape
31
31
  'rounded-md',
32
+ // Sizing
33
+ 'min-w-[96px]',
32
34
  // Interactivity
33
35
  'interactivity-auto',
34
36
  // Typography
@@ -47,7 +49,9 @@ const ButtonRootVariants = {
47
49
  'px-md md:px-md', 'py-sm+ md:py-sm', 'gap-sm+ md:gap-sm'],
48
50
  'link': [
49
51
  // Spacing
50
- 'gap-sm md:gap-xs']
52
+ 'gap-sm md:gap-xs',
53
+ // Sizing
54
+ 'min-w-[auto]']
51
55
  };
52
56
  const ButtonRootColors = {
53
57
  'primary-contained': [
@@ -0,0 +1,350 @@
1
+ import { defineComponent, computed, ref, watch } from 'vue-demi';
2
+ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
+ import '@vueuse/core';
4
+ import { _ as __vue_component__$2 } from './OrIconButton-e17e4944.js';
5
+ import { _ as __vue_component__$4 } from './OrMenu-df27d0ef.js';
6
+ import './OrPopover-9bafbdb4.js';
7
+ import { _ as __vue_component__$5 } from './OrMenuItem-c7f28480.js';
8
+ import { _ as __vue_component__$6 } from './OrIcon-5e394c62.js';
9
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
10
+ import { _ as __vue_component__$3 } from './OrButton-357e1e2c.js';
11
+ import { _ as __vue_component__$7 } from './OrSearch-2f260b09.js';
12
+ import './OrInputBox-4d5a318d.js';
13
+
14
+ const CardCollectionRoot = [
15
+ // Layout
16
+ 'layout-column',
17
+ // Spacing
18
+ 'gap-md'];
19
+ const CardCollectionToolbar = [
20
+ // Layout
21
+ 'layout-row justify-between',
22
+ // Typography
23
+ 'typography-body-2-regular',
24
+ // Theme
25
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
26
+ const CardCollectionToolbarPanel = [
27
+ // Layout
28
+ 'layout-row',
29
+ // Spacing
30
+ 'gap-lg+'];
31
+ const CardCollectionContent = [
32
+ // Layout
33
+ 'grid',
34
+ // Spacing
35
+ 'gap-sm md:gap-md'];
36
+ const CardCollectionContentViews = {
37
+ 'grid': [
38
+ // Layout
39
+ 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
40
+ 'list': ['grid-cols-1']
41
+ };
42
+
43
+ var script$1 = defineComponent({
44
+ name: 'OrCardCollectionView',
45
+ props: {
46
+ items: {
47
+ type: Array,
48
+ default: []
49
+ },
50
+ mode: {
51
+ type: String,
52
+ required: true
53
+ }
54
+ },
55
+ setup(props) {
56
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
57
+ return {
58
+ contentStyles
59
+ };
60
+ }
61
+ });
62
+
63
+ /* script */
64
+ const __vue_script__$1 = script$1;
65
+
66
+ /* template */
67
+ var __vue_render__$1 = function () {
68
+ var _vm = this;
69
+ var _h = _vm.$createElement;
70
+ var _c = _vm._self._c || _h;
71
+ return _c('div', {
72
+ class: _vm.contentStyles
73
+ }, [_vm._l(_vm.items, function (item) {
74
+ return _vm._t("item", function () {
75
+ return [_vm._v("\n " + _vm._s(item.key) + "\n ")];
76
+ }, null, {
77
+ item: item,
78
+ mode: _vm.mode
79
+ });
80
+ })], 2);
81
+ };
82
+ var __vue_staticRenderFns__$1 = [];
83
+
84
+ /* style */
85
+ const __vue_inject_styles__$1 = undefined;
86
+ /* scoped */
87
+ const __vue_scope_id__$1 = undefined;
88
+ /* module identifier */
89
+ const __vue_module_identifier__$1 = undefined;
90
+ /* functional template */
91
+ const __vue_is_functional_template__$1 = false;
92
+ /* style inject */
93
+
94
+ /* style inject SSR */
95
+
96
+ /* style inject shadow dom */
97
+
98
+ const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
99
+ render: __vue_render__$1,
100
+ staticRenderFns: __vue_staticRenderFns__$1
101
+ }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
102
+
103
+ var DefaultCardCollectionViews;
104
+ (function (DefaultCardCollectionViews) {
105
+ DefaultCardCollectionViews["Grid"] = "grid";
106
+ DefaultCardCollectionViews["List"] = "list";
107
+ })(DefaultCardCollectionViews || (DefaultCardCollectionViews = {}));
108
+ const gridView = {
109
+ view: DefaultCardCollectionViews.Grid,
110
+ icon: 'grid_view'
111
+ };
112
+ const listView = {
113
+ view: DefaultCardCollectionViews.List,
114
+ icon: 'view_agenda'
115
+ };
116
+ const defaultViewModes = [gridView, listView];
117
+
118
+ var script = defineComponent({
119
+ name: 'OrCardCollection',
120
+ components: {
121
+ OrCardCollectionView: __vue_component__$1,
122
+ OrIconButton: __vue_component__$2,
123
+ OrButton: __vue_component__$3,
124
+ OrMenu: __vue_component__$4,
125
+ OrMenuItem: __vue_component__$5,
126
+ OrIcon: __vue_component__$6,
127
+ OrSearch: __vue_component__$7
128
+ },
129
+ inheritAttrs: false,
130
+ props: {
131
+ items: {
132
+ type: Array,
133
+ default: []
134
+ },
135
+ view: {
136
+ type: String,
137
+ default: gridView.view
138
+ },
139
+ viewModes: {
140
+ type: Array,
141
+ default: () => defaultViewModes
142
+ },
143
+ sort: {
144
+ type: String,
145
+ default: undefined
146
+ },
147
+ sortOptions: {
148
+ type: Array,
149
+ default: () => []
150
+ },
151
+ search: {
152
+ type: String,
153
+ default: ''
154
+ },
155
+ searchPlaceholder: {
156
+ type: String,
157
+ default: undefined
158
+ },
159
+ searchDebounce: {
160
+ type: Number,
161
+ default: undefined
162
+ }
163
+ },
164
+ emits: ['viewChange', 'sortChange', 'searchChange'],
165
+ expose: ['root'],
166
+ setup(props, context) {
167
+ // Refs
168
+ const root = ref();
169
+ const sortMenu = ref();
170
+ const sortButton = ref();
171
+ // Styles
172
+ const classAttribute = useClassAttribute();
173
+ const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
174
+ const toolbarStyles = computed(() => [...CardCollectionToolbar]);
175
+ const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
176
+ const sortLabel = computed(() => {
177
+ var _a;
178
+ return (_a = props.sortOptions.find(item => item.value === props.sort)) === null || _a === void 0 ? void 0 : _a.label;
179
+ });
180
+ // State
181
+ const proxyView = ref(props.view);
182
+ const proxySort = ref(props.sort);
183
+ const proxySearch = ref(props.search);
184
+ // Methods
185
+ function switchView(view) {
186
+ proxyView.value = view;
187
+ }
188
+ function handleSort(sort) {
189
+ proxySort.value = sort;
190
+ }
191
+ function handleSearch(search) {
192
+ proxySearch.value = search;
193
+ }
194
+ // Effects
195
+ watch(() => props.view, value => {
196
+ proxyView.value = value;
197
+ });
198
+ watch(proxyView, value => {
199
+ context.emit('viewChange', value);
200
+ });
201
+ watch(() => props.sort, value => {
202
+ proxySort.value = value;
203
+ });
204
+ watch(proxySort, value => {
205
+ context.emit('sortChange', value);
206
+ });
207
+ watch(() => props.search, value => {
208
+ proxySearch.value = value;
209
+ });
210
+ watch(proxySearch, value => {
211
+ context.emit('searchChange', value);
212
+ });
213
+ return {
214
+ root,
215
+ sortMenu,
216
+ sortButton,
217
+ rootStyles,
218
+ toolbarStyles,
219
+ toolbarPanelStyles,
220
+ proxyView,
221
+ proxySort,
222
+ proxySearch,
223
+ sortLabel,
224
+ switchView,
225
+ handleSort,
226
+ handleSearch
227
+ };
228
+ }
229
+ });
230
+
231
+ /* script */
232
+ const __vue_script__ = script;
233
+
234
+ /* template */
235
+ var __vue_render__ = function () {
236
+ var _vm = this;
237
+ var _h = _vm.$createElement;
238
+ var _c = _vm._self._c || _h;
239
+ return _c('div', _vm._b({
240
+ ref: "root",
241
+ class: _vm.rootStyles
242
+ }, 'div', _vm.$attrs, false), [_c('div', {
243
+ class: _vm.toolbarStyles
244
+ }, [_c('div', {
245
+ class: _vm.toolbarPanelStyles
246
+ }, [_vm.sortOptions.length ? [_c('OrButton', {
247
+ ref: "sortButton",
248
+ attrs: {
249
+ "variant": "link",
250
+ "color": "inherit"
251
+ },
252
+ on: {
253
+ "click": function ($event) {
254
+ return _vm.sortMenu.toggle();
255
+ }
256
+ }
257
+ }, [_vm._v("\n " + _vm._s(_vm.sortLabel) + "\n "), _vm.sortMenu ? _c('OrIcon', {
258
+ attrs: {
259
+ "icon": _vm.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
260
+ }
261
+ }) : _vm._e()], 1), _vm._v(" "), _c('OrMenu', {
262
+ ref: "sortMenu",
263
+ attrs: {
264
+ "trigger": _vm.sortButton && _vm.sortButton.root
265
+ }
266
+ }, _vm._l(_vm.sortOptions, function (sortItem) {
267
+ return _c('OrMenuItem', {
268
+ key: sortItem,
269
+ on: {
270
+ "click": function ($event) {
271
+ return _vm.handleSort(sortItem.value);
272
+ }
273
+ }
274
+ }, [_vm._v("\n " + _vm._s(sortItem.label) + "\n ")]);
275
+ }), 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
276
+ class: _vm.toolbarPanelStyles
277
+ }, [_c('OrSearch', {
278
+ staticClass: "md:w-[350px]",
279
+ attrs: {
280
+ "model-value": _vm.proxySearch,
281
+ "placeholder": _vm.searchPlaceholder,
282
+ "debounce": _vm.searchDebounce,
283
+ "size": "s"
284
+ },
285
+ on: {
286
+ "search": _vm.handleSearch
287
+ }
288
+ }), _vm._v(" "), _c('div', {
289
+ staticClass: "layout-row gap-sm"
290
+ }, [_vm.viewModes.length > 1 ? _vm._l(_vm.viewModes, function (viewOption) {
291
+ return _c('OrIconButton', {
292
+ key: viewOption.view,
293
+ attrs: {
294
+ "icon": {
295
+ icon: viewOption.icon,
296
+ variant: viewOption.view === _vm.proxyView ? 'filled' : 'outlined'
297
+ }
298
+ },
299
+ on: {
300
+ "click": function ($event) {
301
+ return _vm.switchView(viewOption.view);
302
+ }
303
+ }
304
+ });
305
+ }) : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)], 1)]), _vm._v(" "), _vm._t("header", null, null, {
306
+ items: _vm.items,
307
+ mode: _vm.proxyView
308
+ }), _vm._v(" "), _vm.items.length ? _vm._t(_vm.proxyView, function () {
309
+ return [_c('OrCardCollectionView', {
310
+ attrs: {
311
+ "items": _vm.items,
312
+ "mode": _vm.proxyView
313
+ },
314
+ scopedSlots: _vm._u([{
315
+ key: "item",
316
+ fn: function (props) {
317
+ return [_vm._t("item", null, null, props)];
318
+ }
319
+ }], null, true)
320
+ })];
321
+ }, null, {
322
+ items: _vm.items
323
+ }) : _vm.items.length === 0 && _vm.proxySearch.length > 0 ? _vm._t("noSearchResults", function () {
324
+ return [_vm._v("\n No results\n ")];
325
+ }, null, {
326
+ search: _vm.proxySearch
327
+ }) : _vm._e()], 2);
328
+ };
329
+ var __vue_staticRenderFns__ = [];
330
+
331
+ /* style */
332
+ const __vue_inject_styles__ = undefined;
333
+ /* scoped */
334
+ const __vue_scope_id__ = undefined;
335
+ /* module identifier */
336
+ const __vue_module_identifier__ = undefined;
337
+ /* functional template */
338
+ const __vue_is_functional_template__ = false;
339
+ /* style inject */
340
+
341
+ /* style inject SSR */
342
+
343
+ /* style inject shadow dom */
344
+
345
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
346
+ render: __vue_render__,
347
+ staticRenderFns: __vue_staticRenderFns__
348
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
349
+
350
+ export { DefaultCardCollectionViews as D, __vue_component__ as _, defaultViewModes as d, gridView as g, listView as l };
@@ -1,4 +1,6 @@
1
1
  import { EditorState } from '@codemirror/state';
2
+ import { keymap } from '@codemirror/view';
3
+ import { indentWithTab } from '@codemirror/commands';
2
4
  import { useElementHover } from '@vueuse/core';
3
5
  import { basicSetup, EditorView } from 'codemirror';
4
6
  import _ from 'lodash';
@@ -200,7 +202,7 @@ var script = defineComponent({
200
202
  }
201
203
  }),
202
204
  // line wrapping
203
- lineWrapping ? EditorView.lineWrapping : undefined]);
205
+ lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])]);
204
206
  // Append Extensions (such as basic-setup)
205
207
  if (this.extensions.length !== 0) _.merge(ext, this.extensions);
206
208
  return ext;
@@ -363,14 +365,14 @@ var __vue_staticRenderFns__ = [];
363
365
  /* style */
364
366
  const __vue_inject_styles__ = function (inject) {
365
367
  if (!inject) return;
366
- inject("data-v-2a2e4862_0", {
367
- source: "@keyframes spinAround-data-v-2a2e4862{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2a2e4862{from{opacity:1}to{opacity:0}}.or-code .fullscreen-button[data-v-2a2e4862]{width:2.25rem;height:2.25rem}.or-code .fullscreen-button>.or-icon[data-v-2a2e4862]{font-size:1.5rem}.or-code .footer .or-code-error[data-v-2a2e4862],.or-code .footer .or-code-hint[data-v-2a2e4862]{flex-shrink:1;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:height,opacity}.header[data-v-2a2e4862]{display:flex;flex-direction:row;align-items:center;height:36px}.header .actions[data-v-2a2e4862]{margin-left:auto}.header .actions[data-v-2a2e4862]:not(.is-visible){display:none}.or-code-editor[data-v-2a2e4862]{min-height:calc(1.4em + 8px);overflow:auto;font-size:var(--fs-0);border:1px solid var(--c-neutral-2);border-radius:var(--s-2)}.or-code-editor.is-invalid[data-v-2a2e4862]{border-color:var(--c-error)}.or-code-editor[data-v-2a2e4862]> *{width:100%;height:100%}.or-code[data-v-2a2e4862],.or-modal[data-v-2a2e4862] .content{display:flex;flex-direction:column}.or-code .or-code-editor[data-v-2a2e4862],.or-modal[data-v-2a2e4862] .content .or-code-editor{flex-grow:1;text-align:left!important}",
368
+ inject("data-v-2056db5f_0", {
369
+ source: "@keyframes spinAround-data-v-2056db5f{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-2056db5f{from{opacity:1}to{opacity:0}}.or-code .fullscreen-button[data-v-2056db5f]{width:2.25rem;height:2.25rem}.or-code .fullscreen-button>.or-icon[data-v-2056db5f]{font-size:1.5rem}.or-code .footer .or-code-error[data-v-2056db5f],.or-code .footer .or-code-hint[data-v-2056db5f]{flex-shrink:1;transition-timing-function:var(--t-func);transition-duration:var(--t-duration);transition-property:height,opacity}.header[data-v-2056db5f]{display:flex;flex-direction:row;align-items:center;height:36px}.header .actions[data-v-2056db5f]{margin-left:auto}.header .actions[data-v-2056db5f]:not(.is-visible){display:none}.or-code-editor[data-v-2056db5f]{min-height:calc(1.4em + 8px);overflow:auto;font-size:var(--fs-0);border:1px solid var(--c-neutral-2);border-radius:var(--s-2)}.or-code-editor.is-invalid[data-v-2056db5f]{border-color:var(--c-error)}.or-code-editor[data-v-2056db5f]> *{width:100%;height:100%}.or-code[data-v-2056db5f],.or-modal[data-v-2056db5f] .content{display:flex;flex-direction:column}.or-code .or-code-editor[data-v-2056db5f],.or-modal[data-v-2056db5f] .content .or-code-editor{flex-grow:1;text-align:left!important}",
368
370
  map: undefined,
369
371
  media: undefined
370
372
  });
371
373
  };
372
374
  /* scoped */
373
- const __vue_scope_id__ = "data-v-2a2e4862";
375
+ const __vue_scope_id__ = "data-v-2056db5f";
374
376
  /* module identifier */
375
377
  const __vue_module_identifier__ = undefined;
376
378
  /* functional template */
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
- import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-357a5756.js';
2
+ import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-357e1e2c.js';
3
3
  import { _ as __vue_component__$1 } from './OrOverlay-18ba2dc6.js';
4
4
  import { _ as __vue_component__$3 } from './OrInput-2f16a7ac.js';
5
5
  import { useMagicKeys, whenever } from '@vueuse/core';