@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,5 +1,7 @@
1
1
  import { defineComponent, ref, computed, watchPostEffect } from 'vue';
2
2
  import { h as hslToColorString, g as generateHslFromString } from './color-1f348774.js';
3
+ import './OrIcon-d878b768.js';
4
+ import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
3
5
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
4
6
 
5
7
  var AvatarSize;
@@ -8,6 +10,7 @@ var AvatarSize;
8
10
  AvatarSize["L"] = "l";
9
11
  AvatarSize["M"] = "m";
10
12
  AvatarSize["S"] = "s";
13
+ AvatarSize["XS"] = "xs";
11
14
  })(AvatarSize || (AvatarSize = {}));
12
15
  var AvatarColor;
13
16
  (function (AvatarColor) {
@@ -32,24 +35,19 @@ const AvatarImage = [
32
35
  const AvatarRootSizes = {
33
36
  'xl': [
34
37
  // Box
35
- 'w-[80px]', 'h-[80px]',
36
- // Typography
37
- 'text-[32px]'],
38
+ 'w-[80px]', 'h-[80px]'],
38
39
  'l': [
39
40
  // Box
40
- 'w-[64px]', 'h-[64px]',
41
- // Typography
42
- 'text-[24px]'],
41
+ 'w-[64px]', 'h-[64px]'],
43
42
  'm': [
44
43
  // Box
45
- 'w-[40px]', 'h-[40px]',
46
- // Typography
47
- 'text-[16px]'],
44
+ 'w-[40px]', 'h-[40px]'],
48
45
  's': [
49
46
  // Box
50
- 'w-[32px]', 'h-[32px]',
51
- // Typography
52
- 'text-[16px]']
47
+ 'w-[32px]', 'h-[32px]'],
48
+ 'xs': [
49
+ // Box
50
+ 'w-[24px]', 'h-[24px]']
53
51
  };
54
52
  const AvatarRootColors = {
55
53
  [AvatarColor.blue]: [
@@ -71,9 +69,26 @@ const AvatarRootColors = {
71
69
  // Theme
72
70
  'text-white', 'dark:text-overlay-dark']
73
71
  };
72
+ const AvatarRootAbbreviationSizes = {
73
+ 'xl': ['typography-headline-1'],
74
+ 'l': ['typography-headline-1'],
75
+ 'm': ['typography-body-1-bold'],
76
+ 's': ['typography-body-1-bold'],
77
+ 'xs': ['typography-caption-semibold']
78
+ };
79
+ const AvatarRootIconSizes = {
80
+ 'xl': ['text-[40px]'],
81
+ 'l': ['text-[32px]'],
82
+ 'm': ['text-[20px]'],
83
+ 's': ['text-[16px]'],
84
+ 'xs': ['text-[16px]']
85
+ };
74
86
 
75
87
  var script = defineComponent({
76
88
  name: 'OrAvatar',
89
+ components: {
90
+ OrIcon: script$1
91
+ },
77
92
  inheritAttrs: false,
78
93
  props: {
79
94
  src: {
@@ -84,6 +99,10 @@ var script = defineComponent({
84
99
  type: String,
85
100
  default: AvatarSize.M
86
101
  },
102
+ icon: {
103
+ type: String,
104
+ default: undefined
105
+ },
87
106
  color: {
88
107
  type: String,
89
108
  default: AvatarColor.auto,
@@ -99,9 +118,12 @@ var script = defineComponent({
99
118
  setup(props) {
100
119
  // Refs
101
120
  const root = ref();
121
+ const isIcon = computed(() => {
122
+ return !props.icon;
123
+ });
102
124
  // Styles
103
125
  const classAttribute = useClassAttribute();
104
- const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], classAttribute.value]);
126
+ const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], ...(isIcon.value ? AvatarRootAbbreviationSizes[props.size] : AvatarRootIconSizes[props.size]), classAttribute.value]);
105
127
  const imageStyles = computed(() => [...AvatarImage]);
106
128
  // Effects
107
129
  watchPostEffect(() => {
@@ -0,0 +1,33 @@
1
+ import { s as script } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
3
+
4
+ const _hoisted_1 = ["type", "disabled"];
5
+ const _hoisted_2 = {
6
+ key: 0,
7
+ class: /*#__PURE__*/normalizeClass(['absolute'])
8
+ };
9
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
10
+ const _component_OrLoader = resolveComponent("OrLoader");
11
+ return openBlock(), createElementBlock("button", mergeProps({
12
+ ref: "root"
13
+ }, _ctx.$attrs, {
14
+ class: _ctx.rootStyles,
15
+ type: _ctx.type,
16
+ disabled: _ctx.disabled,
17
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
18
+ onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
19
+ onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
20
+ }), [createElementVNode("div", {
21
+ class: normalizeClass(['contents', _ctx.loading && 'invisible'])
22
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.variant !== 'link' ? (openBlock(), createBlock(_component_OrLoader, {
23
+ key: 0,
24
+ variant: 'circular',
25
+ color: 'inherit',
26
+ size: 's'
27
+ })) : (openBlock(), createElementBlock(Fragment, {
28
+ key: 1
29
+ }, [createTextVNode(toDisplayString(_ctx.loadingText) + "… ", 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */))])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
30
+ }
31
+
32
+ script.render = render;
33
+ script.__file = "src/components/or-button-v3/OrButton.vue";
@@ -28,6 +28,8 @@ const ButtonRoot = [
28
28
  'layout-inline-row justify-center',
29
29
  // Shape
30
30
  'rounded-md',
31
+ // Sizing
32
+ 'min-w-[96px]',
31
33
  // Interactivity
32
34
  'interactivity-auto',
33
35
  // Typography
@@ -46,7 +48,9 @@ const ButtonRootVariants = {
46
48
  'px-md md:px-md', 'py-sm+ md:py-sm', 'gap-sm+ md:gap-sm'],
47
49
  'link': [
48
50
  // Spacing
49
- 'gap-sm md:gap-xs']
51
+ 'gap-sm md:gap-xs',
52
+ // Sizing
53
+ 'min-w-[auto]']
50
54
  };
51
55
  const ButtonRootColors = {
52
56
  'primary-contained': [
@@ -0,0 +1,236 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createBlock, ref, watch } from 'vue';
2
+ import './OrIconButton-1581013c.js';
3
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
4
+ import './OrButton-a671b8a1.js';
5
+ import './OrMenu-f26e8e55.js';
6
+ import { s as script$5 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
7
+ import './OrMenuItem-4feaba6c.js';
8
+ import { s as script$6 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
9
+ import './OrIcon-d878b768.js';
10
+ import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-014ad470.js';
11
+ import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
12
+ import { s as script$4 } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
13
+ import { s as script$7 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
14
+
15
+ const CardCollectionRoot = [
16
+ // Layout
17
+ 'layout-column',
18
+ // Spacing
19
+ 'gap-md'];
20
+ const CardCollectionToolbar = [
21
+ // Layout
22
+ 'layout-row justify-between',
23
+ // Typography
24
+ 'typography-body-2-regular',
25
+ // Theme
26
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
27
+ const CardCollectionToolbarPanel = [
28
+ // Layout
29
+ 'layout-row',
30
+ // Spacing
31
+ 'gap-lg+'];
32
+ const CardCollectionContent = [
33
+ // Layout
34
+ 'grid',
35
+ // Spacing
36
+ 'gap-sm md:gap-md'];
37
+ const CardCollectionContentViews = {
38
+ 'grid': [
39
+ // Layout
40
+ 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
41
+ 'list': ['grid-cols-1']
42
+ };
43
+
44
+ var script$1 = defineComponent({
45
+ name: 'OrCardCollectionView',
46
+ props: {
47
+ items: {
48
+ type: Array,
49
+ default: []
50
+ },
51
+ mode: {
52
+ type: String,
53
+ required: true
54
+ }
55
+ },
56
+ setup(props) {
57
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
58
+ return {
59
+ contentStyles
60
+ };
61
+ }
62
+ });
63
+
64
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
65
+ return openBlock(), createElementBlock("div", {
66
+ class: normalizeClass(_ctx.contentStyles)
67
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
68
+ return renderSlot(_ctx.$slots, "item", mergeProps({
69
+ key: item.key || index
70
+ }, {
71
+ item,
72
+ mode: _ctx.mode
73
+ }), () => [createTextVNode(toDisplayString(item.key), 1 /* TEXT */)]);
74
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
75
+ }
76
+
77
+ script$1.render = render$1;
78
+ script$1.__file = "src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue";
79
+
80
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
81
+ const _component_OrInput = resolveComponent("OrInput");
82
+ return openBlock(), createBlock(_component_OrInput, mergeProps({
83
+ ref: "root"
84
+ }, _ctx.$attrs, {
85
+ modelValue: _ctx.localModelValue,
86
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.localModelValue = $event),
87
+ modelModifiers: {
88
+ trim: true
89
+ },
90
+ class: _ctx.rootStyles,
91
+ type: 'search',
92
+ size: _ctx.size,
93
+ placeholder: _ctx.placeholder,
94
+ debounce: _ctx.debounce,
95
+ disabled: _ctx.disabled,
96
+ "disable-default-styles": _ctx.disableDefaultStyles,
97
+ onInput: _cache[1] || (_cache[1] = $event => _ctx.$emit('input', $event)),
98
+ onKeydown: _cache[2] || (_cache[2] = $event => _ctx.$emit('keydown', $event)),
99
+ onKeyup: _cache[3] || (_cache[3] = $event => _ctx.$emit('keyup', $event)),
100
+ onFocus: _cache[4] || (_cache[4] = $event => _ctx.$emit('focus', $event)),
101
+ onBlur: _cache[5] || (_cache[5] = $event => _ctx.$emit('blur', $event))
102
+ }), null, 16 /* FULL_PROPS */, ["modelValue", "class", "size", "placeholder", "debounce", "disabled", "disable-default-styles"]);
103
+ }
104
+
105
+ script$2.render = render;
106
+ script$2.__file = "src/components/or-search-v3/OrSearch.vue";
107
+
108
+ var DefaultCardCollectionViews;
109
+ (function (DefaultCardCollectionViews) {
110
+ DefaultCardCollectionViews["Grid"] = "grid";
111
+ DefaultCardCollectionViews["List"] = "list";
112
+ })(DefaultCardCollectionViews || (DefaultCardCollectionViews = {}));
113
+ const gridView = {
114
+ view: DefaultCardCollectionViews.Grid,
115
+ icon: 'grid_view'
116
+ };
117
+ const listView = {
118
+ view: DefaultCardCollectionViews.List,
119
+ icon: 'view_agenda'
120
+ };
121
+ const defaultViewModes = [gridView, listView];
122
+
123
+ var script = defineComponent({
124
+ name: 'OrCardCollection',
125
+ components: {
126
+ OrCardCollectionView: script$1,
127
+ OrIconButton: script$3,
128
+ OrButton: script$4,
129
+ OrMenu: script$5,
130
+ OrMenuItem: script$6,
131
+ OrIcon: script$7,
132
+ OrSearch: script$2
133
+ },
134
+ inheritAttrs: false,
135
+ props: {
136
+ items: {
137
+ type: Array,
138
+ default: []
139
+ },
140
+ view: {
141
+ type: String,
142
+ default: gridView.view
143
+ },
144
+ viewModes: {
145
+ type: Array,
146
+ default: () => defaultViewModes
147
+ },
148
+ sort: {
149
+ type: String,
150
+ default: undefined
151
+ },
152
+ sortOptions: {
153
+ type: Array,
154
+ default: () => []
155
+ },
156
+ search: {
157
+ type: String,
158
+ default: ''
159
+ },
160
+ searchPlaceholder: {
161
+ type: String,
162
+ default: undefined
163
+ },
164
+ searchDebounce: {
165
+ type: Number,
166
+ default: undefined
167
+ }
168
+ },
169
+ emits: ['viewChange', 'sortChange', 'searchChange'],
170
+ expose: ['root'],
171
+ setup(props, context) {
172
+ // Refs
173
+ const root = ref();
174
+ const sortMenu = ref();
175
+ const sortButton = ref();
176
+ // Styles
177
+ const classAttribute = useClassAttribute();
178
+ const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
179
+ const toolbarStyles = computed(() => [...CardCollectionToolbar]);
180
+ const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
181
+ const sortLabel = computed(() => {
182
+ var _a;
183
+ return (_a = props.sortOptions.find(item => item.value === props.sort)) === null || _a === void 0 ? void 0 : _a.label;
184
+ });
185
+ // State
186
+ const proxyView = ref(props.view);
187
+ const proxySort = ref(props.sort);
188
+ const proxySearch = ref(props.search);
189
+ // Methods
190
+ function switchView(view) {
191
+ proxyView.value = view;
192
+ }
193
+ function handleSort(sort) {
194
+ proxySort.value = sort;
195
+ }
196
+ function handleSearch(search) {
197
+ proxySearch.value = search;
198
+ }
199
+ // Effects
200
+ watch(() => props.view, value => {
201
+ proxyView.value = value;
202
+ });
203
+ watch(proxyView, value => {
204
+ context.emit('viewChange', value);
205
+ });
206
+ watch(() => props.sort, value => {
207
+ proxySort.value = value;
208
+ });
209
+ watch(proxySort, value => {
210
+ context.emit('sortChange', value);
211
+ });
212
+ watch(() => props.search, value => {
213
+ proxySearch.value = value;
214
+ });
215
+ watch(proxySearch, value => {
216
+ context.emit('searchChange', value);
217
+ });
218
+ return {
219
+ root,
220
+ sortMenu,
221
+ sortButton,
222
+ rootStyles,
223
+ toolbarStyles,
224
+ toolbarPanelStyles,
225
+ proxyView,
226
+ proxySort,
227
+ proxySearch,
228
+ sortLabel,
229
+ switchView,
230
+ handleSort,
231
+ handleSearch
232
+ };
233
+ }
234
+ });
235
+
236
+ export { DefaultCardCollectionViews as D, defaultViewModes as d, gridView as g, listView as l, script as s };