@threadlabs/looma 0.1.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 (318) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -0
  3. package/dist/chunk-G53JEAQK.js +94 -0
  4. package/dist/chunk-OF57X5AR.js +10 -0
  5. package/dist/chunk-UL7UIUJZ.js +20 -0
  6. package/dist/chunk-YK4MTZGJ.js +1580 -0
  7. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  8. package/dist/cjs/events-TcQIzpNv.js +19 -0
  9. package/dist/cjs/id-CYbKpaYr.js +9 -0
  10. package/dist/cjs/index-D07f6BOw.js +1569 -0
  11. package/dist/cjs/index.cjs.js +2 -0
  12. package/dist/cjs/loader.cjs.js +13 -0
  13. package/dist/cjs/looma.cjs.js +25 -0
  14. package/dist/cjs/manager-BOpVXb92.js +93 -0
  15. package/dist/cjs/ui-avatar-group.cjs.entry.js +51 -0
  16. package/dist/cjs/ui-avatar.cjs.entry.js +50 -0
  17. package/dist/cjs/ui-badge.cjs.entry.js +19 -0
  18. package/dist/cjs/ui-button.cjs.entry.js +62 -0
  19. package/dist/cjs/ui-checkbox.cjs.entry.js +91 -0
  20. package/dist/cjs/ui-context-menu.cjs.entry.js +201 -0
  21. package/dist/cjs/ui-dialog.cjs.entry.js +93 -0
  22. package/dist/cjs/ui-disclosure.cjs.entry.js +109 -0
  23. package/dist/cjs/ui-floating-action-button.cjs.entry.js +20 -0
  24. package/dist/cjs/ui-form-field.cjs.entry.js +59 -0
  25. package/dist/cjs/ui-icon-button.cjs.entry.js +21 -0
  26. package/dist/cjs/ui-input.cjs.entry.js +101 -0
  27. package/dist/cjs/ui-menu-item.cjs.entry.js +19 -0
  28. package/dist/cjs/ui-menu.cjs.entry.js +96 -0
  29. package/dist/cjs/ui-popover.cjs.entry.js +92 -0
  30. package/dist/cjs/ui-radio-group.cjs.entry.js +134 -0
  31. package/dist/cjs/ui-radio.cjs.entry.js +85 -0
  32. package/dist/cjs/ui-search-result-row.cjs.entry.js +47 -0
  33. package/dist/cjs/ui-search-shell.cjs.entry.js +39 -0
  34. package/dist/cjs/ui-select.cjs.entry.js +100 -0
  35. package/dist/cjs/ui-switch.cjs.entry.js +65 -0
  36. package/dist/cjs/ui-tabs.cjs.entry.js +117 -0
  37. package/dist/cjs/ui-textarea.cjs.entry.js +106 -0
  38. package/dist/cjs/ui-toast-region.cjs.entry.js +67 -0
  39. package/dist/cjs/ui-tooltip.cjs.entry.js +133 -0
  40. package/dist/cjs/ui-top-bar.cjs.entry.js +43 -0
  41. package/dist/collection/collection-manifest.json +38 -0
  42. package/dist/collection/components/ui-avatar/ui-avatar.css +35 -0
  43. package/dist/collection/components/ui-avatar/ui-avatar.js +130 -0
  44. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +32 -0
  45. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +103 -0
  46. package/dist/collection/components/ui-badge/ui-badge.css +74 -0
  47. package/dist/collection/components/ui-badge/ui-badge.js +62 -0
  48. package/dist/collection/components/ui-button/ui-button.css +101 -0
  49. package/dist/collection/components/ui-button/ui-button.js +127 -0
  50. package/dist/collection/components/ui-checkbox/ui-checkbox.css +24 -0
  51. package/dist/collection/components/ui-checkbox/ui-checkbox.js +223 -0
  52. package/dist/collection/components/ui-context-menu/ui-context-menu.css +17 -0
  53. package/dist/collection/components/ui-context-menu/ui-context-menu.js +272 -0
  54. package/dist/collection/components/ui-dialog/ui-dialog.css +65 -0
  55. package/dist/collection/components/ui-dialog/ui-dialog.js +185 -0
  56. package/dist/collection/components/ui-disclosure/ui-disclosure.css +7 -0
  57. package/dist/collection/components/ui-disclosure/ui-disclosure.js +182 -0
  58. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +70 -0
  59. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +85 -0
  60. package/dist/collection/components/ui-form-field/ui-form-field.css +21 -0
  61. package/dist/collection/components/ui-form-field/ui-form-field.js +125 -0
  62. package/dist/collection/components/ui-icon-button/ui-icon-button.css +92 -0
  63. package/dist/collection/components/ui-icon-button/ui-icon-button.js +106 -0
  64. package/dist/collection/components/ui-input/ui-input.css +46 -0
  65. package/dist/collection/components/ui-input/ui-input.js +213 -0
  66. package/dist/collection/components/ui-menu/ui-menu.css +37 -0
  67. package/dist/collection/components/ui-menu/ui-menu.js +149 -0
  68. package/dist/collection/components/ui-menu-item/ui-menu-item.css +26 -0
  69. package/dist/collection/components/ui-menu-item/ui-menu-item.js +64 -0
  70. package/dist/collection/components/ui-popover/ui-popover.css +8 -0
  71. package/dist/collection/components/ui-popover/ui-popover.js +144 -0
  72. package/dist/collection/components/ui-radio/ui-radio.css +22 -0
  73. package/dist/collection/components/ui-radio/ui-radio.js +213 -0
  74. package/dist/collection/components/ui-radio-group/ui-radio-group.css +10 -0
  75. package/dist/collection/components/ui-radio-group/ui-radio-group.js +247 -0
  76. package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +80 -0
  77. package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +100 -0
  78. package/dist/collection/components/ui-search-shell/ui-search-shell.css +61 -0
  79. package/dist/collection/components/ui-search-shell/ui-search-shell.js +46 -0
  80. package/dist/collection/components/ui-select/ui-select.css +62 -0
  81. package/dist/collection/components/ui-select/ui-select.js +212 -0
  82. package/dist/collection/components/ui-switch/ui-switch.css +63 -0
  83. package/dist/collection/components/ui-switch/ui-switch.js +177 -0
  84. package/dist/collection/components/ui-tabs/ui-tabs.css +65 -0
  85. package/dist/collection/components/ui-tabs/ui-tabs.js +190 -0
  86. package/dist/collection/components/ui-textarea/ui-textarea.css +48 -0
  87. package/dist/collection/components/ui-textarea/ui-textarea.js +238 -0
  88. package/dist/collection/components/ui-toast-region/ui-toast-region.css +52 -0
  89. package/dist/collection/components/ui-toast-region/ui-toast-region.js +100 -0
  90. package/dist/collection/components/ui-tooltip/ui-tooltip.css +14 -0
  91. package/dist/collection/components/ui-tooltip/ui-tooltip.js +205 -0
  92. package/dist/collection/components/ui-top-bar/ui-top-bar.css +43 -0
  93. package/dist/collection/components/ui-top-bar/ui-top-bar.js +52 -0
  94. package/dist/collection/overlay/manager.js +90 -0
  95. package/dist/collection/utils/events.js +13 -0
  96. package/dist/collection/utils/id.js +5 -0
  97. package/dist/collection/utils/initials.js +11 -0
  98. package/dist/components/index.d.ts +88 -0
  99. package/dist/components/index.js +1 -0
  100. package/dist/components/p-CIA4RyEp.js +1 -0
  101. package/dist/components/p-CR7f2MQC.js +1 -0
  102. package/dist/components/p-JwSoedEO.js +1 -0
  103. package/dist/components/p-WvL4iAhX.js +1 -0
  104. package/dist/components/p-hgBUJRDa.js +1 -0
  105. package/dist/components/ui-avatar-group.d.ts +11 -0
  106. package/dist/components/ui-avatar-group.js +1 -0
  107. package/dist/components/ui-avatar.d.ts +11 -0
  108. package/dist/components/ui-avatar.js +1 -0
  109. package/dist/components/ui-badge.d.ts +11 -0
  110. package/dist/components/ui-badge.js +1 -0
  111. package/dist/components/ui-button.d.ts +11 -0
  112. package/dist/components/ui-button.js +1 -0
  113. package/dist/components/ui-checkbox.d.ts +11 -0
  114. package/dist/components/ui-checkbox.js +1 -0
  115. package/dist/components/ui-context-menu.d.ts +11 -0
  116. package/dist/components/ui-context-menu.js +1 -0
  117. package/dist/components/ui-dialog.d.ts +11 -0
  118. package/dist/components/ui-dialog.js +1 -0
  119. package/dist/components/ui-disclosure.d.ts +11 -0
  120. package/dist/components/ui-disclosure.js +1 -0
  121. package/dist/components/ui-floating-action-button.d.ts +11 -0
  122. package/dist/components/ui-floating-action-button.js +1 -0
  123. package/dist/components/ui-form-field.d.ts +11 -0
  124. package/dist/components/ui-form-field.js +1 -0
  125. package/dist/components/ui-icon-button.d.ts +11 -0
  126. package/dist/components/ui-icon-button.js +1 -0
  127. package/dist/components/ui-input.d.ts +11 -0
  128. package/dist/components/ui-input.js +1 -0
  129. package/dist/components/ui-menu-item.d.ts +11 -0
  130. package/dist/components/ui-menu-item.js +1 -0
  131. package/dist/components/ui-menu.d.ts +11 -0
  132. package/dist/components/ui-menu.js +1 -0
  133. package/dist/components/ui-popover.d.ts +11 -0
  134. package/dist/components/ui-popover.js +1 -0
  135. package/dist/components/ui-radio-group.d.ts +11 -0
  136. package/dist/components/ui-radio-group.js +1 -0
  137. package/dist/components/ui-radio.d.ts +11 -0
  138. package/dist/components/ui-radio.js +1 -0
  139. package/dist/components/ui-search-result-row.d.ts +11 -0
  140. package/dist/components/ui-search-result-row.js +1 -0
  141. package/dist/components/ui-search-shell.d.ts +11 -0
  142. package/dist/components/ui-search-shell.js +1 -0
  143. package/dist/components/ui-select.d.ts +11 -0
  144. package/dist/components/ui-select.js +1 -0
  145. package/dist/components/ui-switch.d.ts +11 -0
  146. package/dist/components/ui-switch.js +1 -0
  147. package/dist/components/ui-tabs.d.ts +11 -0
  148. package/dist/components/ui-tabs.js +1 -0
  149. package/dist/components/ui-textarea.d.ts +11 -0
  150. package/dist/components/ui-textarea.js +1 -0
  151. package/dist/components/ui-toast-region.d.ts +11 -0
  152. package/dist/components/ui-toast-region.js +1 -0
  153. package/dist/components/ui-tooltip.d.ts +11 -0
  154. package/dist/components/ui-tooltip.js +1 -0
  155. package/dist/components/ui-top-bar.d.ts +11 -0
  156. package/dist/components/ui-top-bar.js +1 -0
  157. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  158. package/dist/esm/events-JwSoedEO.js +15 -0
  159. package/dist/esm/id-hgBUJRDa.js +7 -0
  160. package/dist/esm/index-CEeiinfk.js +1561 -0
  161. package/dist/esm/index.js +1 -0
  162. package/dist/esm/loader.js +11 -0
  163. package/dist/esm/looma.js +21 -0
  164. package/dist/esm/manager-CR7f2MQC.js +89 -0
  165. package/dist/esm/ui-avatar-group.entry.js +49 -0
  166. package/dist/esm/ui-avatar.entry.js +48 -0
  167. package/dist/esm/ui-badge.entry.js +17 -0
  168. package/dist/esm/ui-button.entry.js +60 -0
  169. package/dist/esm/ui-checkbox.entry.js +89 -0
  170. package/dist/esm/ui-context-menu.entry.js +199 -0
  171. package/dist/esm/ui-dialog.entry.js +91 -0
  172. package/dist/esm/ui-disclosure.entry.js +107 -0
  173. package/dist/esm/ui-floating-action-button.entry.js +18 -0
  174. package/dist/esm/ui-form-field.entry.js +57 -0
  175. package/dist/esm/ui-icon-button.entry.js +19 -0
  176. package/dist/esm/ui-input.entry.js +99 -0
  177. package/dist/esm/ui-menu-item.entry.js +17 -0
  178. package/dist/esm/ui-menu.entry.js +94 -0
  179. package/dist/esm/ui-popover.entry.js +90 -0
  180. package/dist/esm/ui-radio-group.entry.js +132 -0
  181. package/dist/esm/ui-radio.entry.js +83 -0
  182. package/dist/esm/ui-search-result-row.entry.js +45 -0
  183. package/dist/esm/ui-search-shell.entry.js +37 -0
  184. package/dist/esm/ui-select.entry.js +98 -0
  185. package/dist/esm/ui-switch.entry.js +63 -0
  186. package/dist/esm/ui-tabs.entry.js +115 -0
  187. package/dist/esm/ui-textarea.entry.js +104 -0
  188. package/dist/esm/ui-toast-region.entry.js +65 -0
  189. package/dist/esm/ui-tooltip.entry.js +131 -0
  190. package/dist/esm/ui-top-bar.entry.js +41 -0
  191. package/dist/index.cjs +4062 -0
  192. package/dist/index.cjs.js +1 -0
  193. package/dist/index.d.cts +16 -0
  194. package/dist/index.d.ts +16 -0
  195. package/dist/index.js +129 -0
  196. package/dist/looma/index.esm.js +0 -0
  197. package/dist/looma/looma.esm.js +1 -0
  198. package/dist/looma/p-03f0594b.entry.js +1 -0
  199. package/dist/looma/p-15e619fd.entry.js +1 -0
  200. package/dist/looma/p-201243dc.entry.js +1 -0
  201. package/dist/looma/p-24d7aa5b.entry.js +1 -0
  202. package/dist/looma/p-341ba64a.entry.js +1 -0
  203. package/dist/looma/p-41d62a83.entry.js +1 -0
  204. package/dist/looma/p-4742e6b4.entry.js +1 -0
  205. package/dist/looma/p-4c54d489.entry.js +1 -0
  206. package/dist/looma/p-52c537fa.entry.js +1 -0
  207. package/dist/looma/p-5a645647.entry.js +1 -0
  208. package/dist/looma/p-610b2eca.entry.js +1 -0
  209. package/dist/looma/p-649dad92.entry.js +1 -0
  210. package/dist/looma/p-66a203a1.entry.js +1 -0
  211. package/dist/looma/p-754cfff3.entry.js +1 -0
  212. package/dist/looma/p-93ce1c62.entry.js +1 -0
  213. package/dist/looma/p-955fb814.entry.js +1 -0
  214. package/dist/looma/p-96de71ad.entry.js +1 -0
  215. package/dist/looma/p-CEeiinfk.js +2 -0
  216. package/dist/looma/p-CR7f2MQC.js +1 -0
  217. package/dist/looma/p-DQuL1Twl.js +1 -0
  218. package/dist/looma/p-JwSoedEO.js +1 -0
  219. package/dist/looma/p-ab4151d5.entry.js +1 -0
  220. package/dist/looma/p-c14233bc.entry.js +1 -0
  221. package/dist/looma/p-dc857ed4.entry.js +1 -0
  222. package/dist/looma/p-dfcb2cca.entry.js +1 -0
  223. package/dist/looma/p-dff144bd.entry.js +1 -0
  224. package/dist/looma/p-ebb74106.entry.js +1 -0
  225. package/dist/looma/p-ecb5739b.entry.js +1 -0
  226. package/dist/looma/p-ee31c7b4.entry.js +1 -0
  227. package/dist/looma/p-fa4659c4.entry.js +1 -0
  228. package/dist/looma/p-hgBUJRDa.js +1 -0
  229. package/dist/types/components/ui-avatar/ui-avatar.d.ts +11 -0
  230. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +12 -0
  231. package/dist/types/components/ui-badge/ui-badge.d.ts +5 -0
  232. package/dist/types/components/ui-button/ui-button.d.ts +13 -0
  233. package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +19 -0
  234. package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +37 -0
  235. package/dist/types/components/ui-dialog/ui-dialog.d.ts +19 -0
  236. package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +20 -0
  237. package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +6 -0
  238. package/dist/types/components/ui-form-field/ui-form-field.d.ts +10 -0
  239. package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +7 -0
  240. package/dist/types/components/ui-input/ui-input.d.ts +19 -0
  241. package/dist/types/components/ui-menu/ui-menu.d.ts +14 -0
  242. package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +5 -0
  243. package/dist/types/components/ui-popover/ui-popover.d.ts +16 -0
  244. package/dist/types/components/ui-radio/ui-radio.d.ts +17 -0
  245. package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +21 -0
  246. package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +15 -0
  247. package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +9 -0
  248. package/dist/types/components/ui-select/ui-select.d.ts +19 -0
  249. package/dist/types/components/ui-switch/ui-switch.d.ts +15 -0
  250. package/dist/types/components/ui-tabs/ui-tabs.d.ts +17 -0
  251. package/dist/types/components/ui-textarea/ui-textarea.d.ts +20 -0
  252. package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +12 -0
  253. package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +24 -0
  254. package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +12 -0
  255. package/dist/types/components.d.ts +1148 -0
  256. package/dist/types/overlay/manager.d.ts +14 -0
  257. package/dist/types/stencil-public-runtime.d.ts +1860 -0
  258. package/dist/types/utils/events.d.ts +4 -0
  259. package/dist/types/utils/id.d.ts +1 -0
  260. package/dist/types/utils/initials.d.ts +1 -0
  261. package/dist/ui-avatar-group.entry-BZGXBOSE.js +59 -0
  262. package/dist/ui-avatar.entry-S2O2W5SA.js +51 -0
  263. package/dist/ui-badge.entry-CVJDISCR.js +22 -0
  264. package/dist/ui-button.entry-LNJBEJFE.js +72 -0
  265. package/dist/ui-checkbox.entry-5RA2CB43.js +102 -0
  266. package/dist/ui-context-menu.entry-UUOCT75F.js +211 -0
  267. package/dist/ui-dialog.entry-OEPJTEES.js +106 -0
  268. package/dist/ui-disclosure.entry-LRRISGUD.js +120 -0
  269. package/dist/ui-floating-action-button.entry-7TSAZRXP.js +23 -0
  270. package/dist/ui-form-field.entry-73YOVICF.js +67 -0
  271. package/dist/ui-icon-button.entry-MNXGPG36.js +24 -0
  272. package/dist/ui-input.entry-UWRVAOSW.js +112 -0
  273. package/dist/ui-menu-item.entry-5AOJO5MP.js +22 -0
  274. package/dist/ui-menu.entry-YDS6UMB5.js +98 -0
  275. package/dist/ui-popover.entry-PGWDCQIX.js +104 -0
  276. package/dist/ui-radio-group.entry-RHP5GNWU.js +142 -0
  277. package/dist/ui-radio.entry-5WRWPSTK.js +96 -0
  278. package/dist/ui-search-result-row.entry-IKJB2SJJ.js +50 -0
  279. package/dist/ui-search-shell.entry-ZIWF4ZHH.js +41 -0
  280. package/dist/ui-select.entry-N5TIKHR7.js +111 -0
  281. package/dist/ui-switch.entry-WUSZTXIR.js +75 -0
  282. package/dist/ui-tabs.entry-UFAVAQIF.js +124 -0
  283. package/dist/ui-textarea.entry-BYT47RAQ.js +117 -0
  284. package/dist/ui-toast-region.entry-6UYR3ZU2.js +78 -0
  285. package/dist/ui-tooltip.entry-YS7UX4FS.js +145 -0
  286. package/dist/ui-top-bar.entry-V27H6NFO.js +49 -0
  287. package/editor/chunk-JKRA4D4W.js +435 -0
  288. package/editor/chunk-NOOV344H.js +783 -0
  289. package/editor/extensions/index.d.ts +78 -0
  290. package/editor/extensions/index.js +28 -0
  291. package/editor/index.d.ts +7 -0
  292. package/editor/index.js +29 -0
  293. package/editor/table-overlay-DTr3KC9e.d.ts +12 -0
  294. package/editor/ui.d.ts +48 -0
  295. package/editor/ui.js +1 -0
  296. package/editor.css +662 -0
  297. package/layout/index.cjs +207 -0
  298. package/layout/index.css +166 -0
  299. package/layout/index.d.cts +3 -0
  300. package/layout/index.d.ts +3 -0
  301. package/layout/index.js +182 -0
  302. package/layout.css +124 -0
  303. package/loader/cdn.js +1 -0
  304. package/loader/index.cjs.js +1 -0
  305. package/loader/index.d.ts +24 -0
  306. package/loader/index.es2017.js +1 -0
  307. package/loader/index.js +2 -0
  308. package/package.json +244 -0
  309. package/styles.css +899 -0
  310. package/theme-dark.css +59 -0
  311. package/theme-high-contrast.css +21 -0
  312. package/theme-light.css +30 -0
  313. package/tokens.css +148 -0
  314. package/vue/chunk-J4UBEIIL.js +83 -0
  315. package/vue/editor/index.d.ts +89 -0
  316. package/vue/editor/index.js +125 -0
  317. package/vue/index.d.ts +167 -0
  318. package/vue/index.js +113 -0
@@ -0,0 +1,106 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-D07f6BOw.js');
4
+ var events = require('./events-TcQIzpNv.js');
5
+
6
+ const uiTextareaCss = () => `:host{display:inline-flex;color:var(--ui-text-primary)}::slotted(textarea){width:100%;appearance:none;border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-2);background:var(--ui-surface-default);color:inherit;font:inherit;line-height:var(--ui-line-height-md);min-block-size:calc(var(--ui-space-12, 3rem) * 2);padding:var(--ui-space-2) var(--ui-space-3);margin:0;resize:vertical;transition:border-color var(--ui-motion-fast) var(--ui-motion-ease), box-shadow var(--ui-motion-fast) var(--ui-motion-ease), background-color var(--ui-motion-fast) var(--ui-motion-ease)}::slotted(textarea:hover:not(:focus):not(:disabled)){border-color:var(--ui-border-strong)}::slotted(textarea:focus){border-color:var(--ui-focus-ring);box-shadow:0 0 0 3px var(--ui-accent-soft)}:host([data-invalid='true'])::slotted(textarea),::slotted(textarea[aria-invalid='true']){border-color:var(--ui-accent-active)}::slotted(textarea:disabled){background:var(--ui-surface-muted);color:var(--ui-text-muted);cursor:not-allowed}::slotted(textarea:focus-visible){outline:2px solid var(--ui-focus-ring);outline-offset:2px}`;
7
+
8
+ const UITextarea = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ }
12
+ get host() { return index.getElement(this); }
13
+ value = '';
14
+ defaultValue = '';
15
+ disabled = false;
16
+ invalid = false;
17
+ readOnly = false;
18
+ rows = 4;
19
+ internalValue = '';
20
+ slotRef;
21
+ syncFromProp() {
22
+ this.internalValue = this.value;
23
+ }
24
+ syncToTextarea() {
25
+ const textarea = this.getTextarea();
26
+ if (!textarea)
27
+ return;
28
+ this.host.dataset.invalid = this.invalid ? 'true' : '';
29
+ textarea.value = this.internalValue;
30
+ textarea.defaultValue = this.defaultValue;
31
+ textarea.disabled = this.disabled;
32
+ textarea.readOnly = this.readOnly;
33
+ textarea.rows = this.rows;
34
+ textarea.setAttribute('aria-invalid', this.invalid ? 'true' : 'false');
35
+ }
36
+ componentDidLoad() {
37
+ this.syncFromProp();
38
+ this.slotRef?.addEventListener('slotchange', () => this.syncToTextarea());
39
+ this.syncToTextarea();
40
+ const textarea = this.getTextarea();
41
+ textarea?.addEventListener('input', this.onInput);
42
+ textarea?.addEventListener('change', this.onChange);
43
+ }
44
+ disconnectedCallback() {
45
+ const textarea = this.getTextarea();
46
+ textarea?.removeEventListener('input', this.onInput);
47
+ textarea?.removeEventListener('change', this.onChange);
48
+ }
49
+ componentDidUpdate() {
50
+ this.syncToTextarea();
51
+ }
52
+ getTextarea() {
53
+ const slot = this.host.shadowRoot?.querySelector('slot');
54
+ const nodes = slot?.assignedElements() ?? Array.from(this.host.children);
55
+ return nodes.find((el) => el.tagName === 'TEXTAREA') ?? null;
56
+ }
57
+ onInput = (e) => {
58
+ const textarea = e.target;
59
+ if (!textarea)
60
+ return;
61
+ this.internalValue = textarea.value;
62
+ events.dispatchDetail(this.host, 'input', {
63
+ value: this.internalValue,
64
+ trigger: events.eventToTrigger(e),
65
+ });
66
+ };
67
+ onChange = (e) => {
68
+ const textarea = this.getTextarea();
69
+ if (!textarea)
70
+ return;
71
+ this.internalValue = textarea.value;
72
+ events.dispatchDetail(this.host, 'change', {
73
+ value: this.internalValue,
74
+ trigger: events.eventToTrigger(e),
75
+ });
76
+ };
77
+ render() {
78
+ return (index.h(index.Host, { key: 'd52719875939fa9b2f757a35fb4cd1aa31a194c5', "data-invalid": this.invalid ? '' : undefined }, index.h("slot", { key: 'e40ba71b60cae07437219d6ab4b5879b26af1ac2', ref: (el) => (this.slotRef = el) })));
79
+ }
80
+ static get watchers() { return {
81
+ "value": [{
82
+ "syncFromProp": 0
83
+ }],
84
+ "internalValue": [{
85
+ "syncToTextarea": 0
86
+ }],
87
+ "defaultValue": [{
88
+ "syncToTextarea": 0
89
+ }],
90
+ "disabled": [{
91
+ "syncToTextarea": 0
92
+ }],
93
+ "invalid": [{
94
+ "syncToTextarea": 0
95
+ }],
96
+ "readOnly": [{
97
+ "syncToTextarea": 0
98
+ }],
99
+ "rows": [{
100
+ "syncToTextarea": 0
101
+ }]
102
+ }; }
103
+ };
104
+ UITextarea.style = uiTextareaCss();
105
+
106
+ exports.ui_textarea = UITextarea;
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-D07f6BOw.js');
4
+ var events = require('./events-TcQIzpNv.js');
5
+
6
+ const uiToastRegionCss = () => `:host{position:fixed;top:var(--ui-space-4);left:50%;transform:translateX(-50%);z-index:9999;display:grid;gap:var(--ui-space-2);max-width:min(24rem, 90vw);pointer-events:none}:host>*{pointer-events:auto}::slotted([data-ui-toast]){display:grid;grid-template-columns:1fr auto;gap:var(--ui-space-2);align-items:start;border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-3);padding:var(--ui-space-3) var(--ui-space-4);background:var(--ui-surface-elevated);color:var(--ui-text-primary);box-shadow:var(--ui-shadow-lg);animation:ui-toast-enter 0.25s var(--ui-motion-ease) forwards}@keyframes ui-toast-enter{from{opacity:0;transform:translateY(-0.5rem)}to{opacity:1;transform:translateY(0)}}::slotted([data-ui-toast][aria-hidden='true']){display:none}::slotted([data-ui-toast-dismiss]){border:0;background:transparent;color:var(--ui-text-secondary);cursor:pointer;font:inherit}`;
7
+
8
+ const UIToastRegion = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ }
12
+ get host() { return index.getElement(this); }
13
+ open = true;
14
+ internalOpen = true;
15
+ syncFromProp() {
16
+ this.internalOpen = this.open;
17
+ }
18
+ componentDidLoad() {
19
+ this.syncFromProp();
20
+ this.host.addEventListener('click', this.onClick);
21
+ }
22
+ disconnectedCallback() {
23
+ this.host.removeEventListener('click', this.onClick);
24
+ }
25
+ getToasts() {
26
+ return Array.from(this.host.querySelectorAll('[data-ui-toast]'));
27
+ }
28
+ updateOpenState() {
29
+ const toasts = this.getToasts();
30
+ this.internalOpen = toasts.length > 0;
31
+ }
32
+ onClick = (e) => {
33
+ const dismissBtn = e.target.closest?.('[data-ui-toast-dismiss]');
34
+ if (!dismissBtn)
35
+ return;
36
+ const toast = dismissBtn.closest?.('[data-ui-toast]');
37
+ if (!toast)
38
+ return;
39
+ const id = toast.id ?? '';
40
+ toast.setAttribute('aria-hidden', 'true');
41
+ toast.remove();
42
+ events.dispatchDetail(this.host, 'dismiss', {
43
+ id,
44
+ reason: 'action',
45
+ trigger: events.eventToTrigger(e),
46
+ });
47
+ this.updateOpenState();
48
+ if (this.getToasts().length === 0) {
49
+ events.dispatchDetail(this.host, 'close', {
50
+ open: false,
51
+ reason: 'action',
52
+ trigger: events.eventToTrigger(e),
53
+ });
54
+ }
55
+ };
56
+ render() {
57
+ return (index.h(index.Host, { key: '8e99577d8770984b8d6d29e442931570c1f1bc4d', role: "region", "aria-label": "Notifications", "data-open": this.internalOpen ? '' : undefined }, index.h("slot", { key: '06f2c6cf39c4795afc0937669aa2104821aef3d6' })));
58
+ }
59
+ static get watchers() { return {
60
+ "open": [{
61
+ "syncFromProp": 0
62
+ }]
63
+ }; }
64
+ };
65
+ UIToastRegion.style = uiToastRegionCss();
66
+
67
+ exports.ui_toast_region = UIToastRegion;
@@ -0,0 +1,133 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-D07f6BOw.js');
4
+ var manager = require('./manager-BOpVXb92.js');
5
+ var events = require('./events-TcQIzpNv.js');
6
+
7
+ const uiTooltipCss = () => `:host{display:inline-block;border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-2);background:var(--ui-surface-elevated);color:var(--ui-text-primary);padding:var(--ui-space-2) var(--ui-space-3);font-size:var(--ui-font-size-sm);box-shadow:var(--ui-shadow-md)}:host([hidden]){display:none !important}`;
8
+
9
+ const UITooltip = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ }
13
+ get host() { return index.getElement(this); }
14
+ for = '';
15
+ open = false;
16
+ defaultOpen = false;
17
+ internalOpen = false;
18
+ overlayId = `ui-tooltip-${Math.random().toString(36).slice(2, 11)}`;
19
+ trigger = null;
20
+ syncFromProp() {
21
+ this.internalOpen = this.open;
22
+ }
23
+ syncOverlay() {
24
+ if (this.internalOpen) {
25
+ manager.openOverlay({
26
+ id: this.overlayId,
27
+ modal: false,
28
+ element: this.host,
29
+ dismissible: true,
30
+ requestClose: (reason, trigger) => this.handleRequestClose(reason, trigger),
31
+ });
32
+ }
33
+ else {
34
+ manager.closeOverlay(this.overlayId);
35
+ }
36
+ }
37
+ componentDidLoad() {
38
+ this.syncFromProp();
39
+ this.internalOpen = this.internalOpen || this.defaultOpen;
40
+ this.resolveTrigger();
41
+ this.attachTriggerListeners();
42
+ this.host.addEventListener('keydown', this.onKeydown);
43
+ this.syncOverlay();
44
+ }
45
+ componentDidUpdate() {
46
+ this.resolveTrigger();
47
+ this.attachTriggerListeners();
48
+ this.syncOverlay();
49
+ }
50
+ disconnectedCallback() {
51
+ this.detachTriggerListeners();
52
+ this.host.removeEventListener('keydown', this.onKeydown);
53
+ manager.closeOverlay(this.overlayId);
54
+ }
55
+ resolveTrigger() {
56
+ if (this.for) {
57
+ this.trigger = document.getElementById(this.for);
58
+ }
59
+ else {
60
+ this.trigger = this.host.previousElementSibling;
61
+ }
62
+ }
63
+ attachTriggerListeners() {
64
+ this.detachTriggerListeners();
65
+ if (!this.trigger)
66
+ return;
67
+ this.trigger.addEventListener('pointerenter', this.onTriggerEnter);
68
+ this.trigger.addEventListener('pointerleave', this.onTriggerLeave);
69
+ this.trigger.addEventListener('focusin', this.onTriggerFocusIn);
70
+ this.trigger.addEventListener('focusout', this.onTriggerFocusOut);
71
+ }
72
+ detachTriggerListeners() {
73
+ if (!this.trigger)
74
+ return;
75
+ this.trigger.removeEventListener('pointerenter', this.onTriggerEnter);
76
+ this.trigger.removeEventListener('pointerleave', this.onTriggerLeave);
77
+ this.trigger.removeEventListener('focusin', this.onTriggerFocusIn);
78
+ this.trigger.removeEventListener('focusout', this.onTriggerFocusOut);
79
+ }
80
+ onTriggerEnter = () => {
81
+ this.internalOpen = true;
82
+ events.dispatchDetail(this.host, 'open', { open: true, reason: 'action', trigger: 'pointer' });
83
+ this.syncOverlay();
84
+ };
85
+ onTriggerLeave = () => {
86
+ this.internalOpen = false;
87
+ events.dispatchDetail(this.host, 'close', { open: false, reason: 'action', trigger: 'pointer' });
88
+ this.syncOverlay();
89
+ };
90
+ onTriggerFocusIn = () => {
91
+ this.internalOpen = true;
92
+ events.dispatchDetail(this.host, 'open', { open: true, reason: 'action', trigger: 'keyboard' });
93
+ this.syncOverlay();
94
+ };
95
+ onTriggerFocusOut = (e) => {
96
+ const related = e.relatedTarget;
97
+ if (related && this.host.contains(related))
98
+ return;
99
+ this.internalOpen = false;
100
+ events.dispatchDetail(this.host, 'close', { open: false, reason: 'action', trigger: 'keyboard' });
101
+ this.syncOverlay();
102
+ };
103
+ handleRequestClose(reason, trigger) {
104
+ if (reason === 'escape') {
105
+ this.internalOpen = false;
106
+ events.dispatchDetail(this.host, 'close', {
107
+ open: false,
108
+ reason: 'escape',
109
+ trigger: trigger,
110
+ });
111
+ this.trigger?.focus();
112
+ }
113
+ }
114
+ onKeydown = (e) => {
115
+ if (e.key === 'Escape') {
116
+ manager.requestTopOverlayClose('escape', 'keyboard');
117
+ }
118
+ };
119
+ render() {
120
+ return (index.h(index.Host, { key: '900ec6fc08ea7a7965195e8203fd779e70cfa6e6', role: "tooltip", hidden: !this.internalOpen, "data-open": this.internalOpen ? '' : undefined, onKeyDown: this.onKeydown }, index.h("slot", { key: 'b384f779fa9a229cf635be5adb3476ca93270c24' })));
121
+ }
122
+ static get watchers() { return {
123
+ "open": [{
124
+ "syncFromProp": 0
125
+ }],
126
+ "internalOpen": [{
127
+ "syncOverlay": 0
128
+ }]
129
+ }; }
130
+ };
131
+ UITooltip.style = uiTooltipCss();
132
+
133
+ exports.ui_tooltip = UITooltip;
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-D07f6BOw.js');
4
+
5
+ const uiTopBarCss = () => `:host{position:sticky;inset-block-start:0;z-index:var(--ui-top-bar-z-index, 100);display:block}.top-bar{min-block-size:var(--ui-top-bar-height, 56px);display:flex;align-items:center;gap:var(--ui-top-bar-gap, var(--ui-space-3, 0.75rem));padding-inline:var(--ui-top-bar-padding-inline, var(--ui-space-4, 1rem));background:var(--ui-top-bar-bg, var(--ui-surface, #ffffff));border-block-end:1px solid var(--ui-top-bar-border, var(--ui-border, #e5e7eb))}.top-bar__leading,.top-bar__search,.top-bar__actions{display:flex;align-items:center;flex-shrink:0}.top-bar__actions{gap:var(--ui-top-bar-actions-gap, var(--ui-space-1, 0.25rem))}.top-bar__title{min-inline-size:0;flex:1}[hidden]{display:none}@media (min-width: 768px){:host{display:none}}`;
6
+
7
+ function slotHasContent(slot) {
8
+ if (!slot) {
9
+ return false;
10
+ }
11
+ return slot.assignedNodes({ flatten: true }).some((node) => {
12
+ if (node.nodeType === Node.TEXT_NODE) {
13
+ return Boolean(node.textContent?.trim());
14
+ }
15
+ return true;
16
+ });
17
+ }
18
+ const UITopBar = class {
19
+ constructor(hostRef) {
20
+ index.registerInstance(this, hostRef);
21
+ }
22
+ get host() { return index.getElement(this); }
23
+ hasLeading = false;
24
+ hasSearch = false;
25
+ hasActions = false;
26
+ leadingSlot;
27
+ searchSlot;
28
+ actionsSlot;
29
+ componentDidLoad() {
30
+ this.syncSlots();
31
+ }
32
+ syncSlots = () => {
33
+ this.hasLeading = slotHasContent(this.leadingSlot);
34
+ this.hasSearch = slotHasContent(this.searchSlot);
35
+ this.hasActions = slotHasContent(this.actionsSlot);
36
+ };
37
+ render() {
38
+ return (index.h(index.Host, { key: '23cbff2fdb06a40f0380dbf217d064cb1b9f7a9c' }, index.h("header", { key: '9472960f4445f8ed7d0800d71db3cbac020fca3f', class: "top-bar", part: "base" }, index.h("div", { key: 'd408be025d90fdcf1416213b9e76f3b780f47d97', class: "top-bar__leading", hidden: !this.hasLeading }, index.h("slot", { key: '3dc4db316a040ff10a8b8b218b42799d3e1a7b97', name: "leading", ref: (el) => (this.leadingSlot = el), onSlotchange: this.syncSlots })), index.h("div", { key: '1b362f19f9a738600afb266e9641c0ee5c8870c9', class: "top-bar__title" }, index.h("slot", { key: 'bb93d34a3dea15c697dcd19dc0ecc3488ee390c8' })), index.h("div", { key: '3d61d781b654ee1d91a6ce5ba64db9732ee1f8ee', class: "top-bar__search", hidden: !this.hasSearch }, index.h("slot", { key: '5731817be644f10ed745fdc0868b85b66a9c06d4', name: "search", ref: (el) => (this.searchSlot = el), onSlotchange: this.syncSlots })), index.h("div", { key: '2ee868b93f5195832830900382545b2131e78bb8', class: "top-bar__actions", hidden: !this.hasActions }, index.h("slot", { key: '1d410fa60f112904cfb866cff5a3f2fb18021c93', name: "actions", ref: (el) => (this.actionsSlot = el), onSlotchange: this.syncSlots })))));
39
+ }
40
+ };
41
+ UITopBar.style = uiTopBarCss();
42
+
43
+ exports.ui_top_bar = UITopBar;
@@ -0,0 +1,38 @@
1
+ {
2
+ "entries": [
3
+ "components/ui-avatar/ui-avatar.js",
4
+ "components/ui-avatar-group/ui-avatar-group.js",
5
+ "components/ui-badge/ui-badge.js",
6
+ "components/ui-button/ui-button.js",
7
+ "components/ui-checkbox/ui-checkbox.js",
8
+ "components/ui-context-menu/ui-context-menu.js",
9
+ "components/ui-dialog/ui-dialog.js",
10
+ "components/ui-disclosure/ui-disclosure.js",
11
+ "components/ui-floating-action-button/ui-floating-action-button.js",
12
+ "components/ui-form-field/ui-form-field.js",
13
+ "components/ui-icon-button/ui-icon-button.js",
14
+ "components/ui-input/ui-input.js",
15
+ "components/ui-menu/ui-menu.js",
16
+ "components/ui-menu-item/ui-menu-item.js",
17
+ "components/ui-popover/ui-popover.js",
18
+ "components/ui-radio/ui-radio.js",
19
+ "components/ui-radio-group/ui-radio-group.js",
20
+ "components/ui-search-result-row/ui-search-result-row.js",
21
+ "components/ui-search-shell/ui-search-shell.js",
22
+ "components/ui-select/ui-select.js",
23
+ "components/ui-switch/ui-switch.js",
24
+ "components/ui-tabs/ui-tabs.js",
25
+ "components/ui-textarea/ui-textarea.js",
26
+ "components/ui-toast-region/ui-toast-region.js",
27
+ "components/ui-tooltip/ui-tooltip.js",
28
+ "components/ui-top-bar/ui-top-bar.js"
29
+ ],
30
+ "mixins": [],
31
+ "compiler": {
32
+ "name": "@stencil/core",
33
+ "version": "4.43.2",
34
+ "typescriptVersion": "5.8.3"
35
+ },
36
+ "collections": [],
37
+ "bundles": []
38
+ }
@@ -0,0 +1,35 @@
1
+ :host {
2
+ display: inline-grid;
3
+ place-items: center;
4
+ overflow: hidden;
5
+ inline-size: 2.5rem;
6
+ block-size: 2.5rem;
7
+ border-radius: 999px;
8
+ border: 1px solid var(--ui-border-default);
9
+ background: var(--ui-surface-muted);
10
+ color: var(--ui-text-secondary);
11
+ font: inherit;
12
+ font-size: 0.875rem;
13
+ font-weight: 600;
14
+ text-transform: uppercase;
15
+ }
16
+
17
+ .avatar {
18
+ display: contents;
19
+ }
20
+
21
+ .avatar img {
22
+ grid-area: 1 / 1;
23
+ inline-size: 100%;
24
+ block-size: 100%;
25
+ object-fit: cover;
26
+ }
27
+
28
+ .avatar .fallback {
29
+ grid-area: 1 / 1;
30
+ display: inline-flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ inline-size: 100%;
34
+ block-size: 100%;
35
+ }
@@ -0,0 +1,130 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { toInitials } from "../../utils/initials";
3
+ export class UIAvatar {
4
+ src = '';
5
+ alt = '';
6
+ name = '';
7
+ fallback = '';
8
+ hasImage = false;
9
+ watchSrc() {
10
+ this.hasImage = false;
11
+ }
12
+ onImageLoad = () => {
13
+ this.hasImage = true;
14
+ };
15
+ onImageError = () => {
16
+ this.hasImage = false;
17
+ };
18
+ render() {
19
+ const fallbackText = this.fallback || toInitials(this.name || this.alt);
20
+ const label = this.alt || this.name || 'Avatar';
21
+ return (h(Host, { key: 'f61c3a4e5556be947b9f573591d4db0687fd01fd', role: "img", "aria-label": label, "data-has-image": this.hasImage ? '' : undefined }, h("div", { key: '03d4a3d1c86bb1d1779ad007ba12407230478dac', class: "avatar" }, h("img", { key: '512015d68f9118bf8b8181b5b5118c133e783baf', src: this.src, alt: label, onLoad: this.onImageLoad, onError: this.onImageError, hidden: !this.hasImage, "aria-hidden": this.hasImage ? 'false' : 'true' }), h("span", { key: '48b0f1f81a6465c6021d4c867af67a559b9b8a67', class: "fallback", hidden: this.hasImage, "aria-hidden": this.hasImage ? 'true' : 'false' }, fallbackText))));
22
+ }
23
+ static get is() { return "ui-avatar"; }
24
+ static get encapsulation() { return "shadow"; }
25
+ static get originalStyleUrls() {
26
+ return {
27
+ "$": ["ui-avatar.css"]
28
+ };
29
+ }
30
+ static get styleUrls() {
31
+ return {
32
+ "$": ["ui-avatar.css"]
33
+ };
34
+ }
35
+ static get properties() {
36
+ return {
37
+ "src": {
38
+ "type": "string",
39
+ "mutable": false,
40
+ "complexType": {
41
+ "original": "string",
42
+ "resolved": "string",
43
+ "references": {}
44
+ },
45
+ "required": false,
46
+ "optional": false,
47
+ "docs": {
48
+ "tags": [],
49
+ "text": ""
50
+ },
51
+ "getter": false,
52
+ "setter": false,
53
+ "reflect": false,
54
+ "attribute": "src",
55
+ "defaultValue": "''"
56
+ },
57
+ "alt": {
58
+ "type": "string",
59
+ "mutable": false,
60
+ "complexType": {
61
+ "original": "string",
62
+ "resolved": "string",
63
+ "references": {}
64
+ },
65
+ "required": false,
66
+ "optional": false,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": ""
70
+ },
71
+ "getter": false,
72
+ "setter": false,
73
+ "reflect": false,
74
+ "attribute": "alt",
75
+ "defaultValue": "''"
76
+ },
77
+ "name": {
78
+ "type": "string",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "string",
82
+ "resolved": "string",
83
+ "references": {}
84
+ },
85
+ "required": false,
86
+ "optional": false,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": ""
90
+ },
91
+ "getter": false,
92
+ "setter": false,
93
+ "reflect": false,
94
+ "attribute": "name",
95
+ "defaultValue": "''"
96
+ },
97
+ "fallback": {
98
+ "type": "string",
99
+ "mutable": false,
100
+ "complexType": {
101
+ "original": "string",
102
+ "resolved": "string",
103
+ "references": {}
104
+ },
105
+ "required": false,
106
+ "optional": false,
107
+ "docs": {
108
+ "tags": [],
109
+ "text": ""
110
+ },
111
+ "getter": false,
112
+ "setter": false,
113
+ "reflect": false,
114
+ "attribute": "fallback",
115
+ "defaultValue": "''"
116
+ }
117
+ };
118
+ }
119
+ static get states() {
120
+ return {
121
+ "hasImage": {}
122
+ };
123
+ }
124
+ static get watchers() {
125
+ return [{
126
+ "propName": "src",
127
+ "methodName": "watchSrc"
128
+ }];
129
+ }
130
+ }
@@ -0,0 +1,32 @@
1
+ :host {
2
+ display: flex;
3
+ align-items: center;
4
+ flex-direction: row-reverse;
5
+ gap: 0;
6
+ }
7
+
8
+ ::slotted(*:not([data-ui-avatar-group-overflow])) {
9
+ margin-inline-end: -0.5rem;
10
+ flex-shrink: 0;
11
+ }
12
+
13
+ ::slotted(*:last-of-type:not([data-ui-avatar-group-overflow])) {
14
+ margin-inline-end: 0;
15
+ }
16
+
17
+ .overflow {
18
+ margin-inline-end: -0.5rem;
19
+ display: inline-flex;
20
+ align-items: center;
21
+ justify-content: center;
22
+ inline-size: 2.5rem;
23
+ block-size: 2.5rem;
24
+ border-radius: 999px;
25
+ border: 1px solid var(--ui-border-default);
26
+ background: var(--ui-surface-muted);
27
+ color: var(--ui-text-secondary);
28
+ font: inherit;
29
+ font-size: 0.75rem;
30
+ font-weight: 600;
31
+ flex-shrink: 0;
32
+ }