@mieweb/ui 0.7.3-dev.9 → 0.8.0-dev.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 (313) hide show
  1. package/dist/brands/index.cjs +12 -12
  2. package/dist/brands/index.js +3 -3
  3. package/dist/chunk-3IMM2PM4.js +259 -0
  4. package/dist/chunk-3IMM2PM4.js.map +1 -0
  5. package/dist/chunk-3SHLOF4V.cjs +128 -0
  6. package/dist/chunk-3SHLOF4V.cjs.map +1 -0
  7. package/dist/chunk-3TXOFAXP.cjs +139 -0
  8. package/dist/chunk-3TXOFAXP.cjs.map +1 -0
  9. package/dist/{chunk-ZBI52NP2.cjs → chunk-56QJHQ5C.cjs} +156 -39
  10. package/dist/chunk-56QJHQ5C.cjs.map +1 -0
  11. package/dist/chunk-5JZIDILK.cjs +164 -0
  12. package/dist/chunk-5JZIDILK.cjs.map +1 -0
  13. package/dist/chunk-5MXO6PEV.cjs +78 -0
  14. package/dist/chunk-5MXO6PEV.cjs.map +1 -0
  15. package/dist/chunk-5QZ73PZC.js +62 -0
  16. package/dist/chunk-5QZ73PZC.js.map +1 -0
  17. package/dist/chunk-6NZXWKUE.js +3 -0
  18. package/dist/chunk-6NZXWKUE.js.map +1 -0
  19. package/dist/chunk-6SCQ7FKT.js +115 -0
  20. package/dist/chunk-6SCQ7FKT.js.map +1 -0
  21. package/dist/{chunk-KFLDXJEE.js → chunk-753Z3NXL.js} +46 -15
  22. package/dist/chunk-753Z3NXL.js.map +1 -0
  23. package/dist/{chunk-S3MKIDYG.cjs → chunk-7AECNMYV.cjs} +46 -15
  24. package/dist/chunk-7AECNMYV.cjs.map +1 -0
  25. package/dist/chunk-7IKLGH3Z.cjs +92 -0
  26. package/dist/chunk-7IKLGH3Z.cjs.map +1 -0
  27. package/dist/chunk-7L7OPISJ.cjs +291 -0
  28. package/dist/chunk-7L7OPISJ.cjs.map +1 -0
  29. package/dist/chunk-7RV6CAP6.cjs +106 -0
  30. package/dist/chunk-7RV6CAP6.cjs.map +1 -0
  31. package/dist/{chunk-LC7YHZXM.js → chunk-A5YOIJKL.js} +5 -5
  32. package/dist/{chunk-LC7YHZXM.js.map → chunk-A5YOIJKL.js.map} +1 -1
  33. package/dist/{chunk-CVZYOMEW.js → chunk-AESFOMSH.js} +325 -3
  34. package/dist/chunk-AESFOMSH.js.map +1 -0
  35. package/dist/{chunk-RBS3GHDZ.cjs → chunk-BOW7ZGI2.cjs} +4 -4
  36. package/dist/{chunk-RBS3GHDZ.cjs.map → chunk-BOW7ZGI2.cjs.map} +1 -1
  37. package/dist/{chunk-WUNWHOLA.cjs → chunk-BSDBI6H7.cjs} +116 -26
  38. package/dist/chunk-BSDBI6H7.cjs.map +1 -0
  39. package/dist/chunk-CG4ZKJLE.js +84 -0
  40. package/dist/chunk-CG4ZKJLE.js.map +1 -0
  41. package/dist/{chunk-Z4PECE5S.js → chunk-DX64KLSN.js} +2 -2
  42. package/dist/{chunk-Z4PECE5S.js.map → chunk-DX64KLSN.js.map} +1 -1
  43. package/dist/chunk-ELYGV32O.cjs +230 -0
  44. package/dist/chunk-ELYGV32O.cjs.map +1 -0
  45. package/dist/{chunk-QUUBTNMH.js → chunk-EPSB4WTL.js} +45 -15
  46. package/dist/chunk-EPSB4WTL.js.map +1 -0
  47. package/dist/chunk-F57VRLKP.js +708 -0
  48. package/dist/chunk-F57VRLKP.js.map +1 -0
  49. package/dist/{chunk-5IDYOJHO.cjs → chunk-G7EQ3JPX.cjs} +45 -15
  50. package/dist/chunk-G7EQ3JPX.cjs.map +1 -0
  51. package/dist/{chunk-FKLUSYFP.cjs → chunk-GQVL2JKQ.cjs} +4 -4
  52. package/dist/{chunk-FKLUSYFP.cjs.map → chunk-GQVL2JKQ.cjs.map} +1 -1
  53. package/dist/{chunk-3D4ITDLO.js → chunk-GXODR6V4.js} +3 -3
  54. package/dist/{chunk-3D4ITDLO.js.map → chunk-GXODR6V4.js.map} +1 -1
  55. package/dist/{chunk-AFGADE3B.js → chunk-H3YO5GBM.js} +117 -27
  56. package/dist/chunk-H3YO5GBM.js.map +1 -0
  57. package/dist/chunk-HK3AMH3Q.cjs +151 -0
  58. package/dist/chunk-HK3AMH3Q.cjs.map +1 -0
  59. package/dist/chunk-HQ3XPCHG.js +114 -0
  60. package/dist/chunk-HQ3XPCHG.js.map +1 -0
  61. package/dist/chunk-I44YNYI6.cjs +4 -0
  62. package/dist/chunk-I44YNYI6.cjs.map +1 -0
  63. package/dist/{chunk-5FAWCLPY.js → chunk-IILJGFI5.js} +40 -29
  64. package/dist/chunk-IILJGFI5.js.map +1 -0
  65. package/dist/{chunk-XFRQFWSY.js → chunk-IYXCFIMP.js} +8 -8
  66. package/dist/{chunk-XFRQFWSY.js.map → chunk-IYXCFIMP.js.map} +1 -1
  67. package/dist/{chunk-6J7UGYT5.cjs → chunk-JHGMZX4I.cjs} +47 -7
  68. package/dist/chunk-JHGMZX4I.cjs.map +1 -0
  69. package/dist/chunk-JHZW3Y62.js +142 -0
  70. package/dist/chunk-JHZW3Y62.js.map +1 -0
  71. package/dist/{chunk-JDHIBJ5K.cjs → chunk-JWTCEWQ4.cjs} +2 -2
  72. package/dist/{chunk-JDHIBJ5K.cjs.map → chunk-JWTCEWQ4.cjs.map} +1 -1
  73. package/dist/{chunk-URHXR5SC.cjs → chunk-KVE7PQ5P.cjs} +7 -7
  74. package/dist/{chunk-URHXR5SC.cjs.map → chunk-KVE7PQ5P.cjs.map} +1 -1
  75. package/dist/{chunk-MJFF4AXH.cjs → chunk-L6D4CKLV.cjs} +325 -3
  76. package/dist/chunk-L6D4CKLV.cjs.map +1 -0
  77. package/dist/chunk-L6MDULYB.js +87 -0
  78. package/dist/chunk-L6MDULYB.js.map +1 -0
  79. package/dist/{chunk-SYIFEJSF.cjs → chunk-LQHI44OZ.cjs} +13 -13
  80. package/dist/{chunk-SYIFEJSF.cjs.map → chunk-LQHI44OZ.cjs.map} +1 -1
  81. package/dist/{chunk-HIDV32ZX.js → chunk-LZU7YBXG.js} +3 -3
  82. package/dist/{chunk-HIDV32ZX.js.map → chunk-LZU7YBXG.js.map} +1 -1
  83. package/dist/chunk-N5O47VGS.cjs +109 -0
  84. package/dist/chunk-N5O47VGS.cjs.map +1 -0
  85. package/dist/chunk-NGSDBWKA.cjs +84 -0
  86. package/dist/chunk-NGSDBWKA.cjs.map +1 -0
  87. package/dist/chunk-NMBYU7D7.cjs +31 -0
  88. package/dist/chunk-NMBYU7D7.cjs.map +1 -0
  89. package/dist/{chunk-P6L74SKG.js → chunk-QGZC43L7.js} +47 -7
  90. package/dist/chunk-QGZC43L7.js.map +1 -0
  91. package/dist/{chunk-FTRGZOVJ.js → chunk-QHTDWIED.js} +3 -3
  92. package/dist/{chunk-FTRGZOVJ.js.map → chunk-QHTDWIED.js.map} +1 -1
  93. package/dist/chunk-RUGHNFQG.js +28 -0
  94. package/dist/chunk-RUGHNFQG.js.map +1 -0
  95. package/dist/{chunk-Q6A4RVAN.cjs → chunk-SK7H3Z67.cjs} +37 -37
  96. package/dist/{chunk-Q6A4RVAN.cjs.map → chunk-SK7H3Z67.cjs.map} +1 -1
  97. package/dist/{chunk-MO65V64I.js → chunk-TXRQQMG5.js} +2 -2
  98. package/dist/{chunk-MO65V64I.js.map → chunk-TXRQQMG5.js.map} +1 -1
  99. package/dist/{chunk-3YDTZUI6.cjs → chunk-U5TTXN45.cjs} +42 -31
  100. package/dist/chunk-U5TTXN45.cjs.map +1 -0
  101. package/dist/chunk-WBGUYSWY.js +90 -0
  102. package/dist/chunk-WBGUYSWY.js.map +1 -0
  103. package/dist/{chunk-LJBWCUKP.cjs → chunk-WIYQI35R.cjs} +2 -2
  104. package/dist/{chunk-LJBWCUKP.cjs.map → chunk-WIYQI35R.cjs.map} +1 -1
  105. package/dist/chunk-WKSUL2ZN.js +56 -0
  106. package/dist/chunk-WKSUL2ZN.js.map +1 -0
  107. package/dist/chunk-X5ZPYYMS.js +105 -0
  108. package/dist/chunk-X5ZPYYMS.js.map +1 -0
  109. package/dist/{chunk-DLBV42JD.js → chunk-XBKOZRDO.js} +156 -39
  110. package/dist/chunk-XBKOZRDO.js.map +1 -0
  111. package/dist/{chunk-XB54G7WS.cjs → chunk-XJTFZLWH.cjs} +2 -86
  112. package/dist/chunk-XJTFZLWH.cjs.map +1 -0
  113. package/dist/chunk-XMECP2MD.js +208 -0
  114. package/dist/chunk-XMECP2MD.js.map +1 -0
  115. package/dist/{chunk-GTHNWP4P.js → chunk-XUVEF2RQ.js} +4 -87
  116. package/dist/chunk-XUVEF2RQ.js.map +1 -0
  117. package/dist/chunk-XWYKLEKG.js +269 -0
  118. package/dist/chunk-XWYKLEKG.js.map +1 -0
  119. package/dist/chunk-Y6YSJPVC.js +129 -0
  120. package/dist/chunk-Y6YSJPVC.js.map +1 -0
  121. package/dist/chunk-YVIH26FG.cjs +736 -0
  122. package/dist/chunk-YVIH26FG.cjs.map +1 -0
  123. package/dist/chunk-Z5S5JEJD.cjs +286 -0
  124. package/dist/chunk-Z5S5JEJD.cjs.map +1 -0
  125. package/dist/chunk-ZO4L6C2Y.cjs +137 -0
  126. package/dist/chunk-ZO4L6C2Y.cjs.map +1 -0
  127. package/dist/{collabKit-QZL4P5T5.js → collabKit-A643VH2I.js} +7 -3
  128. package/dist/collabKit-A643VH2I.js.map +1 -0
  129. package/dist/{collabKit-UF7E6V3N.cjs → collabKit-Q4A36LDA.cjs} +7 -3
  130. package/dist/collabKit-Q4A36LDA.cjs.map +1 -0
  131. package/dist/components/Accordion/index.cjs +13 -0
  132. package/dist/components/Accordion/index.cjs.map +1 -0
  133. package/dist/components/Accordion/index.d.cts +50 -0
  134. package/dist/components/Accordion/index.d.ts +50 -0
  135. package/dist/components/Accordion/index.js +4 -0
  136. package/dist/components/Accordion/index.js.map +1 -0
  137. package/dist/components/Alert/index.d.cts +1 -1
  138. package/dist/components/Alert/index.d.ts +1 -1
  139. package/dist/components/Autocomplete/index.cjs +4 -3
  140. package/dist/components/Autocomplete/index.d.cts +20 -3
  141. package/dist/components/Autocomplete/index.d.ts +20 -3
  142. package/dist/components/Autocomplete/index.js +3 -2
  143. package/dist/components/Badge/index.d.cts +1 -1
  144. package/dist/components/Badge/index.d.ts +1 -1
  145. package/dist/components/Card/index.d.cts +1 -1
  146. package/dist/components/Card/index.d.ts +1 -1
  147. package/dist/components/Checkbox/index.cjs +5 -4
  148. package/dist/components/Checkbox/index.d.cts +9 -1
  149. package/dist/components/Checkbox/index.d.ts +9 -1
  150. package/dist/components/Checkbox/index.js +2 -1
  151. package/dist/components/ClampedText/index.cjs +13 -0
  152. package/dist/components/ClampedText/index.cjs.map +1 -0
  153. package/dist/components/ClampedText/index.d.cts +33 -0
  154. package/dist/components/ClampedText/index.d.ts +33 -0
  155. package/dist/components/ClampedText/index.js +4 -0
  156. package/dist/components/ClampedText/index.js.map +1 -0
  157. package/dist/components/CopyButton/index.cjs +13 -0
  158. package/dist/components/CopyButton/index.cjs.map +1 -0
  159. package/dist/components/CopyButton/index.d.cts +29 -0
  160. package/dist/components/CopyButton/index.d.ts +29 -0
  161. package/dist/components/CopyButton/index.js +4 -0
  162. package/dist/components/CopyButton/index.js.map +1 -0
  163. package/dist/components/CustomizableDashboard/index.cjs +43 -0
  164. package/dist/components/CustomizableDashboard/index.cjs.map +1 -0
  165. package/dist/components/CustomizableDashboard/index.d.cts +195 -0
  166. package/dist/components/CustomizableDashboard/index.d.ts +195 -0
  167. package/dist/components/CustomizableDashboard/index.js +10 -0
  168. package/dist/components/CustomizableDashboard/index.js.map +1 -0
  169. package/dist/components/DateInput/index.cjs +4 -3
  170. package/dist/components/DateInput/index.d.cts +1 -0
  171. package/dist/components/DateInput/index.d.ts +1 -0
  172. package/dist/components/DateInput/index.js +3 -2
  173. package/dist/components/Dropdown/index.cjs +9 -8
  174. package/dist/components/Dropdown/index.js +3 -2
  175. package/dist/components/FilterSummaryBar/index.cjs +13 -0
  176. package/dist/components/FilterSummaryBar/index.cjs.map +1 -0
  177. package/dist/components/FilterSummaryBar/index.d.cts +53 -0
  178. package/dist/components/FilterSummaryBar/index.d.ts +53 -0
  179. package/dist/components/FilterSummaryBar/index.js +4 -0
  180. package/dist/components/FilterSummaryBar/index.js.map +1 -0
  181. package/dist/components/FreshnessBadge/index.cjs +25 -0
  182. package/dist/components/FreshnessBadge/index.cjs.map +1 -0
  183. package/dist/components/FreshnessBadge/index.d.cts +49 -0
  184. package/dist/components/FreshnessBadge/index.d.ts +49 -0
  185. package/dist/components/FreshnessBadge/index.js +4 -0
  186. package/dist/components/FreshnessBadge/index.js.map +1 -0
  187. package/dist/components/GlossaryTooltip/index.cjs +15 -0
  188. package/dist/components/GlossaryTooltip/index.cjs.map +1 -0
  189. package/dist/components/GlossaryTooltip/index.d.cts +64 -0
  190. package/dist/components/GlossaryTooltip/index.d.ts +64 -0
  191. package/dist/components/GlossaryTooltip/index.js +6 -0
  192. package/dist/components/GlossaryTooltip/index.js.map +1 -0
  193. package/dist/components/Input/index.cjs +20 -3
  194. package/dist/components/Input/index.d.cts +37 -2
  195. package/dist/components/Input/index.d.ts +37 -2
  196. package/dist/components/Input/index.js +2 -1
  197. package/dist/components/KeyboardShortcutsOverlay/index.cjs +21 -0
  198. package/dist/components/KeyboardShortcutsOverlay/index.cjs.map +1 -0
  199. package/dist/components/KeyboardShortcutsOverlay/index.d.cts +54 -0
  200. package/dist/components/KeyboardShortcutsOverlay/index.d.ts +54 -0
  201. package/dist/components/KeyboardShortcutsOverlay/index.js +8 -0
  202. package/dist/components/KeyboardShortcutsOverlay/index.js.map +1 -0
  203. package/dist/components/Markdown/index.cjs +10 -10
  204. package/dist/components/Markdown/index.js +2 -2
  205. package/dist/components/MediaEditor/index.cjs +10 -9
  206. package/dist/components/MediaEditor/index.js +5 -4
  207. package/dist/components/PhoneInput/index.cjs +5 -4
  208. package/dist/components/PhoneInput/index.js +3 -2
  209. package/dist/components/Progress/index.d.cts +1 -1
  210. package/dist/components/Progress/index.d.ts +1 -1
  211. package/dist/components/Radio/index.cjs +5 -4
  212. package/dist/components/Radio/index.d.cts +9 -1
  213. package/dist/components/Radio/index.d.ts +9 -1
  214. package/dist/components/Radio/index.js +2 -1
  215. package/dist/components/ReadingProgressBar/index.cjs +13 -0
  216. package/dist/components/ReadingProgressBar/index.cjs.map +1 -0
  217. package/dist/components/ReadingProgressBar/index.d.cts +20 -0
  218. package/dist/components/ReadingProgressBar/index.d.ts +20 -0
  219. package/dist/components/ReadingProgressBar/index.js +4 -0
  220. package/dist/components/ReadingProgressBar/index.js.map +1 -0
  221. package/dist/components/RichTextEditor/index.cjs +7 -6
  222. package/dist/components/RichTextEditor/index.js +4 -3
  223. package/dist/components/SectionSpyNav/index.cjs +15 -0
  224. package/dist/components/SectionSpyNav/index.cjs.map +1 -0
  225. package/dist/components/SectionSpyNav/index.d.cts +63 -0
  226. package/dist/components/SectionSpyNav/index.d.ts +63 -0
  227. package/dist/components/SectionSpyNav/index.js +6 -0
  228. package/dist/components/SectionSpyNav/index.js.map +1 -0
  229. package/dist/components/Select/index.cjs +5 -3
  230. package/dist/components/Select/index.d.cts +56 -9
  231. package/dist/components/Select/index.d.ts +56 -9
  232. package/dist/components/Select/index.js +3 -1
  233. package/dist/components/Slider/index.d.cts +2 -2
  234. package/dist/components/Slider/index.d.ts +2 -2
  235. package/dist/components/SourceTip/index.cjs +15 -0
  236. package/dist/components/SourceTip/index.cjs.map +1 -0
  237. package/dist/components/SourceTip/index.d.cts +58 -0
  238. package/dist/components/SourceTip/index.d.ts +58 -0
  239. package/dist/components/SourceTip/index.js +6 -0
  240. package/dist/components/SourceTip/index.js.map +1 -0
  241. package/dist/components/Sparkline/index.cjs +13 -0
  242. package/dist/components/Sparkline/index.cjs.map +1 -0
  243. package/dist/components/Sparkline/index.d.cts +53 -0
  244. package/dist/components/Sparkline/index.d.ts +53 -0
  245. package/dist/components/Sparkline/index.js +4 -0
  246. package/dist/components/Sparkline/index.js.map +1 -0
  247. package/dist/components/Spinner/index.d.cts +1 -1
  248. package/dist/components/Spinner/index.d.ts +1 -1
  249. package/dist/components/SuperChat/index.cjs +8 -7
  250. package/dist/components/SuperChat/index.cjs.map +1 -1
  251. package/dist/components/SuperChat/index.js +4 -3
  252. package/dist/components/SuperChat/index.js.map +1 -1
  253. package/dist/components/SuperChat/plugins/index.cjs +2 -22
  254. package/dist/components/SuperChat/plugins/index.cjs.map +1 -1
  255. package/dist/components/SuperChat/plugins/index.js +1 -21
  256. package/dist/components/SuperChat/plugins/index.js.map +1 -1
  257. package/dist/components/Text/index.d.cts +1 -1
  258. package/dist/components/Text/index.d.ts +1 -1
  259. package/dist/components/Textarea/index.cjs +5 -3
  260. package/dist/components/Textarea/index.d.cts +19 -1
  261. package/dist/components/Textarea/index.d.ts +19 -1
  262. package/dist/components/Textarea/index.js +3 -1
  263. package/dist/datavis.cjs +1 -1
  264. package/dist/datavis.js +1 -1
  265. package/dist/esheet.cjs +11 -10
  266. package/dist/esheet.cjs.map +1 -1
  267. package/dist/esheet.js +8 -7
  268. package/dist/esheet.js.map +1 -1
  269. package/dist/hooks/index.cjs +27 -17
  270. package/dist/hooks/index.d.cts +16 -1
  271. package/dist/hooks/index.d.ts +16 -1
  272. package/dist/hooks/index.js +3 -1
  273. package/dist/index.cjs +1026 -651
  274. package/dist/index.cjs.map +1 -1
  275. package/dist/index.d.cts +83 -10
  276. package/dist/index.d.ts +83 -10
  277. package/dist/index.js +316 -53
  278. package/dist/index.js.map +1 -1
  279. package/dist/kerebron.cjs +200 -68
  280. package/dist/kerebron.cjs.map +1 -1
  281. package/dist/kerebron.css +129 -0
  282. package/dist/kerebron.d.cts +52 -3
  283. package/dist/kerebron.d.ts +52 -3
  284. package/dist/kerebron.js +201 -69
  285. package/dist/kerebron.js.map +1 -1
  286. package/dist/styles.css +1 -1
  287. package/dist/tailwind-preset.cjs +4 -4
  288. package/dist/tailwind-preset.js +1 -1
  289. package/dist/utils/index.cjs +9 -9
  290. package/dist/utils/index.js +1 -1
  291. package/package.json +9 -4
  292. package/dist/chunk-3YDTZUI6.cjs.map +0 -1
  293. package/dist/chunk-5FAWCLPY.js.map +0 -1
  294. package/dist/chunk-5IDYOJHO.cjs.map +0 -1
  295. package/dist/chunk-6ECKH4DJ.cjs +0 -147
  296. package/dist/chunk-6ECKH4DJ.cjs.map +0 -1
  297. package/dist/chunk-6J7UGYT5.cjs.map +0 -1
  298. package/dist/chunk-AFGADE3B.js.map +0 -1
  299. package/dist/chunk-CVZYOMEW.js.map +0 -1
  300. package/dist/chunk-DLBV42JD.js.map +0 -1
  301. package/dist/chunk-GTHNWP4P.js.map +0 -1
  302. package/dist/chunk-KFLDXJEE.js.map +0 -1
  303. package/dist/chunk-MJFF4AXH.cjs.map +0 -1
  304. package/dist/chunk-P6L74SKG.js.map +0 -1
  305. package/dist/chunk-QUUBTNMH.js.map +0 -1
  306. package/dist/chunk-S3MKIDYG.cjs.map +0 -1
  307. package/dist/chunk-WUNWHOLA.cjs.map +0 -1
  308. package/dist/chunk-XB54G7WS.cjs.map +0 -1
  309. package/dist/chunk-YXCE2HSK.js +0 -124
  310. package/dist/chunk-YXCE2HSK.js.map +0 -1
  311. package/dist/chunk-ZBI52NP2.cjs.map +0 -1
  312. package/dist/collabKit-QZL4P5T5.js.map +0 -1
  313. package/dist/collabKit-UF7E6V3N.cjs.map +0 -1
@@ -12,18 +12,21 @@ function defaultWsUrl() {
12
12
  return `${protocol}//${host}/yjs`;
13
13
  }
14
14
  var HuddleYjsKit = class {
15
- constructor(url, params, WebSocketImpl) {
15
+ constructor(url, params, WebSocketImpl, user) {
16
16
  this.url = url;
17
17
  this.params = params;
18
18
  this.WebSocketImpl = WebSocketImpl;
19
+ this.user = user;
19
20
  }
20
21
  url;
21
22
  params;
22
23
  WebSocketImpl;
24
+ user;
23
25
  name = "yjs-editor";
24
26
  getExtensions() {
25
27
  const url = this.url;
26
28
  const params = this.params;
29
+ const user = this.user;
27
30
  const WebSocketImpl = this.WebSocketImpl ?? globalThis.WebSocket;
28
31
  const createYjsProvider = (roomId) => {
29
32
  const ydoc = new Y.Doc({ gc: false });
@@ -37,6 +40,7 @@ var HuddleYjsKit = class {
37
40
  maxBackoffTime: 2500,
38
41
  disableBc: false
39
42
  });
43
+ if (user) provider.awareness.setLocalStateField("kerebron:user", user);
40
44
  return [provider, ydoc];
41
45
  };
42
46
  return [new MarkYChange(), new ExtensionYjs({ createYjsProvider })];
@@ -44,5 +48,5 @@ var HuddleYjsKit = class {
44
48
  };
45
49
 
46
50
  export { HuddleYjsKit, defaultWsUrl };
47
- //# sourceMappingURL=collabKit-QZL4P5T5.js.map
48
- //# sourceMappingURL=collabKit-QZL4P5T5.js.map
51
+ //# sourceMappingURL=collabKit-A643VH2I.js.map
52
+ //# sourceMappingURL=collabKit-A643VH2I.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/RichEditor/collabKit.ts"],"names":[],"mappings":";;;;;;;AAsBO,SAAS,YAAA,GAAuB;AACrC,EAAA,MAAM,MAAM,UAAA,CAAW,QAAA;AACvB,EAAA,MAAM,QAAA,GAAW,GAAA,IAAO,GAAA,CAAI,QAAA,KAAa,WAAW,MAAA,GAAS,KAAA;AAC7D,EAAA,MAAM,IAAA,GAAO,GAAA,GAAM,GAAA,CAAI,IAAA,GAAO,WAAA;AAC9B,EAAA,OAAO,CAAA,EAAG,QAAQ,CAAA,EAAA,EAAK,IAAI,CAAA,IAAA,CAAA;AAC7B;AAGO,IAAM,eAAN,MAAwC;AAAA,EAE7C,WAAA,CACmB,GAAA,EACA,MAAA,EACA,aAAA,EACA,IAAA,EACjB;AAJiB,IAAA,IAAA,CAAA,GAAA,GAAA,GAAA;AACA,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AACA,IAAA,IAAA,CAAA,aAAA,GAAA,aAAA;AACA,IAAA,IAAA,CAAA,IAAA,GAAA,IAAA;AAAA,EAChB;AAAA,EAJgB,GAAA;AAAA,EACA,MAAA;AAAA,EACA,aAAA;AAAA,EACA,IAAA;AAAA,EALnB,IAAA,GAAO,YAAA;AAAA,EAQP,aAAA,GAAgB;AACd,IAAA,MAAM,MAAM,IAAA,CAAK,GAAA;AACjB,IAAA,MAAM,SAAS,IAAA,CAAK,MAAA;AACpB,IAAA,MAAM,OAAO,IAAA,CAAK,IAAA;AAClB,IAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,aAAA,IAAiB,UAAA,CAAW,SAAA;AACvD,IAAA,MAAM,iBAAA,GAAoB,CAAC,MAAA,KAA+C;AACxE,MAAA,MAAM,OAAO,IAAM,CAAA,CAAA,GAAA,CAAI,EAAE,EAAA,EAAI,OAAO,CAAA;AAGpC,MAAA,MAAM,QAAA,GAAW,IAAI,iBAAA,CAAkB,GAAA,EAAK,QAAQ,IAAA,EAAM;AAAA,QACxD,OAAA,EAAS,IAAA;AAAA,QACT,SAAA,EAAW,IAAsB,iBAAA,CAAA,SAAA,CAAU,IAAI,CAAA;AAAA,QAC/C,MAAA;AAAA,QACA,WAAW,EAAC;AAAA,QACZ,iBAAA,EAAmB,aAAA;AAAA,QACnB,cAAA,EAAgB,EAAA;AAAA,QAChB,cAAA,EAAgB,IAAA;AAAA,QAChB,SAAA,EAAW;AAAA,OACZ,CAAA;AAED,MAAA,IAAI,IAAA,EAAM,QAAA,CAAS,SAAA,CAAU,kBAAA,CAAmB,iBAAiB,IAAI,CAAA;AACrE,MAAA,OAAO,CAAC,UAAU,IAAI,CAAA;AAAA,IACxB,CAAA;AACA,IAAA,OAAO,CAAC,IAAI,WAAA,EAAY,EAAG,IAAI,YAAA,CAAa,EAAE,iBAAA,EAAmB,CAAC,CAAA;AAAA,EACpE;AACF","file":"collabKit-A643VH2I.js","sourcesContent":["/**\n * Collaborative (Yjs) editor kit for {@link RichEditor}.\n *\n * Kept in its own module — loaded via dynamic `import()` from `editorKits.ts`\n * only when a `collab` config is passed — so `@kerebron/extension-yjs`, `yjs`\n * and `y-protocols` stay truly optional peers: plain-mode consumers never load\n * them and don't need them installed.\n *\n * We deliberately do not use `@kerebron/editor-kits`' own `YjsEditorKit`: it\n * constructs the `WebsocketProvider` with no query params, leaving no way to\n * authenticate the socket. Here we thread caller-supplied `params` (e.g. an\n * auth token) into the provider so the backend `/yjs` route can authorize the\n * room.\n */\nimport type { EditorKit } from '@kerebron/editor';\nimport { ExtensionYjs } from '@kerebron/extension-yjs';\nimport { WebsocketProvider } from '@kerebron/extension-yjs/WebsocketProvider';\nimport { MarkYChange } from '@kerebron/extension-yjs/MarkYChange';\nimport * as awarenessProtocol from 'y-protocols/awareness';\nimport * as Y from 'yjs';\n\n/** Derive the default `/yjs` websocket URL from the current page origin. */\nexport function defaultWsUrl(): string {\n const loc = globalThis.location;\n const protocol = loc && loc.protocol === 'https:' ? 'wss:' : 'ws:';\n const host = loc ? loc.host : 'localhost';\n return `${protocol}//${host}/yjs`;\n}\n\n/** MarkYChange + ExtensionYjs, with an authenticated websocket provider. */\nexport class HuddleYjsKit implements EditorKit {\n name = 'yjs-editor';\n constructor(\n private readonly url: string,\n private readonly params: Record<string, string>,\n private readonly WebSocketImpl?: typeof globalThis.WebSocket,\n private readonly user?: { id: string; name: string; color?: string }\n ) {}\n\n getExtensions() {\n const url = this.url;\n const params = this.params;\n const user = this.user;\n const WebSocketImpl = this.WebSocketImpl ?? globalThis.WebSocket;\n const createYjsProvider = (roomId: string): [WebsocketProvider, Y.Doc] => {\n const ydoc = new Y.Doc({ gc: false });\n // The provider's opts default is a *default parameter*, not a merge, so we\n // must pass every field when we want to set `params`.\n const provider = new WebsocketProvider(url, roomId, ydoc, {\n connect: true,\n awareness: new awarenessProtocol.Awareness(ydoc),\n params,\n protocols: [],\n WebSocketPolyfill: WebSocketImpl,\n resyncInterval: -1,\n maxBackoffTime: 2500,\n disableBc: false,\n });\n // Named cursors: the position plugin skips states with no user field.\n if (user) provider.awareness.setLocalStateField('kerebron:user', user);\n return [provider, ydoc];\n };\n return [new MarkYChange(), new ExtensionYjs({ createYjsProvider })];\n }\n}\n"]}
@@ -35,18 +35,21 @@ function defaultWsUrl() {
35
35
  return `${protocol}//${host}/yjs`;
36
36
  }
37
37
  var HuddleYjsKit = class {
38
- constructor(url, params, WebSocketImpl) {
38
+ constructor(url, params, WebSocketImpl, user) {
39
39
  this.url = url;
40
40
  this.params = params;
41
41
  this.WebSocketImpl = WebSocketImpl;
42
+ this.user = user;
42
43
  }
43
44
  url;
44
45
  params;
45
46
  WebSocketImpl;
47
+ user;
46
48
  name = "yjs-editor";
47
49
  getExtensions() {
48
50
  const url = this.url;
49
51
  const params = this.params;
52
+ const user = this.user;
50
53
  const WebSocketImpl = this.WebSocketImpl ?? globalThis.WebSocket;
51
54
  const createYjsProvider = (roomId) => {
52
55
  const ydoc = new Y__namespace.Doc({ gc: false });
@@ -60,6 +63,7 @@ var HuddleYjsKit = class {
60
63
  maxBackoffTime: 2500,
61
64
  disableBc: false
62
65
  });
66
+ if (user) provider.awareness.setLocalStateField("kerebron:user", user);
63
67
  return [provider, ydoc];
64
68
  };
65
69
  return [new MarkYChange.MarkYChange(), new extensionYjs.ExtensionYjs({ createYjsProvider })];
@@ -68,5 +72,5 @@ var HuddleYjsKit = class {
68
72
 
69
73
  exports.HuddleYjsKit = HuddleYjsKit;
70
74
  exports.defaultWsUrl = defaultWsUrl;
71
- //# sourceMappingURL=collabKit-UF7E6V3N.cjs.map
72
- //# sourceMappingURL=collabKit-UF7E6V3N.cjs.map
75
+ //# sourceMappingURL=collabKit-Q4A36LDA.cjs.map
76
+ //# sourceMappingURL=collabKit-Q4A36LDA.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/RichEditor/collabKit.ts"],"names":["Y","WebsocketProvider","awarenessProtocol","MarkYChange","ExtensionYjs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBO,SAAS,YAAA,GAAuB;AACrC,EAAA,MAAM,MAAM,UAAA,CAAW,QAAA;AACvB,EAAA,MAAM,QAAA,GAAW,GAAA,IAAO,GAAA,CAAI,QAAA,KAAa,WAAW,MAAA,GAAS,KAAA;AAC7D,EAAA,MAAM,IAAA,GAAO,GAAA,GAAM,GAAA,CAAI,IAAA,GAAO,WAAA;AAC9B,EAAA,OAAO,CAAA,EAAG,QAAQ,CAAA,EAAA,EAAK,IAAI,CAAA,IAAA,CAAA;AAC7B;AAGO,IAAM,eAAN,MAAwC;AAAA,EAE7C,WAAA,CACmB,GAAA,EACA,MAAA,EACA,aAAA,EACA,IAAA,EACjB;AAJiB,IAAA,IAAA,CAAA,GAAA,GAAA,GAAA;AACA,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AACA,IAAA,IAAA,CAAA,aAAA,GAAA,aAAA;AACA,IAAA,IAAA,CAAA,IAAA,GAAA,IAAA;AAAA,EAChB;AAAA,EAJgB,GAAA;AAAA,EACA,MAAA;AAAA,EACA,aAAA;AAAA,EACA,IAAA;AAAA,EALnB,IAAA,GAAO,YAAA;AAAA,EAQP,aAAA,GAAgB;AACd,IAAA,MAAM,MAAM,IAAA,CAAK,GAAA;AACjB,IAAA,MAAM,SAAS,IAAA,CAAK,MAAA;AACpB,IAAA,MAAM,OAAO,IAAA,CAAK,IAAA;AAClB,IAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,aAAA,IAAiB,UAAA,CAAW,SAAA;AACvD,IAAA,MAAM,iBAAA,GAAoB,CAAC,MAAA,KAA+C;AACxE,MAAA,MAAM,OAAO,IAAMA,YAAA,CAAA,GAAA,CAAI,EAAE,EAAA,EAAI,OAAO,CAAA;AAGpC,MAAA,MAAM,QAAA,GAAW,IAAIC,mCAAA,CAAkB,GAAA,EAAK,QAAQ,IAAA,EAAM;AAAA,QACxD,OAAA,EAAS,IAAA;AAAA,QACT,SAAA,EAAW,IAAsBC,4BAAA,CAAA,SAAA,CAAU,IAAI,CAAA;AAAA,QAC/C,MAAA;AAAA,QACA,WAAW,EAAC;AAAA,QACZ,iBAAA,EAAmB,aAAA;AAAA,QACnB,cAAA,EAAgB,EAAA;AAAA,QAChB,cAAA,EAAgB,IAAA;AAAA,QAChB,SAAA,EAAW;AAAA,OACZ,CAAA;AAED,MAAA,IAAI,IAAA,EAAM,QAAA,CAAS,SAAA,CAAU,kBAAA,CAAmB,iBAAiB,IAAI,CAAA;AACrE,MAAA,OAAO,CAAC,UAAU,IAAI,CAAA;AAAA,IACxB,CAAA;AACA,IAAA,OAAO,CAAC,IAAIC,uBAAA,EAAY,EAAG,IAAIC,yBAAA,CAAa,EAAE,iBAAA,EAAmB,CAAC,CAAA;AAAA,EACpE;AACF","file":"collabKit-Q4A36LDA.cjs","sourcesContent":["/**\n * Collaborative (Yjs) editor kit for {@link RichEditor}.\n *\n * Kept in its own module — loaded via dynamic `import()` from `editorKits.ts`\n * only when a `collab` config is passed — so `@kerebron/extension-yjs`, `yjs`\n * and `y-protocols` stay truly optional peers: plain-mode consumers never load\n * them and don't need them installed.\n *\n * We deliberately do not use `@kerebron/editor-kits`' own `YjsEditorKit`: it\n * constructs the `WebsocketProvider` with no query params, leaving no way to\n * authenticate the socket. Here we thread caller-supplied `params` (e.g. an\n * auth token) into the provider so the backend `/yjs` route can authorize the\n * room.\n */\nimport type { EditorKit } from '@kerebron/editor';\nimport { ExtensionYjs } from '@kerebron/extension-yjs';\nimport { WebsocketProvider } from '@kerebron/extension-yjs/WebsocketProvider';\nimport { MarkYChange } from '@kerebron/extension-yjs/MarkYChange';\nimport * as awarenessProtocol from 'y-protocols/awareness';\nimport * as Y from 'yjs';\n\n/** Derive the default `/yjs` websocket URL from the current page origin. */\nexport function defaultWsUrl(): string {\n const loc = globalThis.location;\n const protocol = loc && loc.protocol === 'https:' ? 'wss:' : 'ws:';\n const host = loc ? loc.host : 'localhost';\n return `${protocol}//${host}/yjs`;\n}\n\n/** MarkYChange + ExtensionYjs, with an authenticated websocket provider. */\nexport class HuddleYjsKit implements EditorKit {\n name = 'yjs-editor';\n constructor(\n private readonly url: string,\n private readonly params: Record<string, string>,\n private readonly WebSocketImpl?: typeof globalThis.WebSocket,\n private readonly user?: { id: string; name: string; color?: string }\n ) {}\n\n getExtensions() {\n const url = this.url;\n const params = this.params;\n const user = this.user;\n const WebSocketImpl = this.WebSocketImpl ?? globalThis.WebSocket;\n const createYjsProvider = (roomId: string): [WebsocketProvider, Y.Doc] => {\n const ydoc = new Y.Doc({ gc: false });\n // The provider's opts default is a *default parameter*, not a merge, so we\n // must pass every field when we want to set `params`.\n const provider = new WebsocketProvider(url, roomId, ydoc, {\n connect: true,\n awareness: new awarenessProtocol.Awareness(ydoc),\n params,\n protocols: [],\n WebSocketPolyfill: WebSocketImpl,\n resyncInterval: -1,\n maxBackoffTime: 2500,\n disableBc: false,\n });\n // Named cursors: the position plugin skips states with no user field.\n if (user) provider.awareness.setLocalStateField('kerebron:user', user);\n return [provider, ydoc];\n };\n return [new MarkYChange(), new ExtensionYjs({ createYjsProvider })];\n }\n}\n"]}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkHK3AMH3Q_cjs = require('../../chunk-HK3AMH3Q.cjs');
4
+ require('../../chunk-S5RVSXDV.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Accordion", {
9
+ enumerable: true,
10
+ get: function () { return chunkHK3AMH3Q_cjs.Accordion; }
11
+ });
12
+ //# sourceMappingURL=index.cjs.map
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,50 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const accordionVariants: (props?: ({
6
+ variant?: "separated" | "joined" | null | undefined;
7
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8
+ interface AccordionItem {
9
+ /** Stable id used for open state and aria wiring. */
10
+ id: string;
11
+ /** Header label (e.g. an FAQ question). */
12
+ title: React.ReactNode;
13
+ /** Panel content (e.g. the answer). */
14
+ content: React.ReactNode;
15
+ disabled?: boolean;
16
+ }
17
+ interface AccordionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>, VariantProps<typeof accordionVariants> {
18
+ items: AccordionItem[];
19
+ /** `single` keeps at most one panel open; `multiple` allows any number. */
20
+ type?: 'single' | 'multiple';
21
+ /** Ids open initially (uncontrolled). */
22
+ defaultOpenIds?: string[];
23
+ /** Controlled open ids. Changes reported via `onOpenChange`. */
24
+ openIds?: string[];
25
+ onOpenChange?: (openIds: string[]) => void;
26
+ /** In `single` mode, allow closing the open panel (default true). */
27
+ collapsible?: boolean;
28
+ /** Heading level wrapping each trigger for document outline (default h3). */
29
+ headingLevel?: 'h2' | 'h3' | 'h4';
30
+ }
31
+ /**
32
+ * A vertically stacked set of expandable panels — FAQ lists, settings
33
+ * groups, progressive disclosure. Panels animate open to their natural
34
+ * height (CSS grid rows, no max-height clipping), and headers are real
35
+ * buttons inside headings with full `aria-expanded`/`aria-controls` wiring.
36
+ *
37
+ * @example
38
+ * ```tsx
39
+ * <Accordion
40
+ * type="single"
41
+ * items={[
42
+ * { id: 'pricing', title: 'How is pricing calculated?', content: <p>…</p> },
43
+ * { id: 'billing', title: 'When am I billed?', content: <p>…</p> },
44
+ * ]}
45
+ * />
46
+ * ```
47
+ */
48
+ declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
49
+
50
+ export { Accordion, type AccordionItem, type AccordionProps };
@@ -0,0 +1,50 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+
5
+ declare const accordionVariants: (props?: ({
6
+ variant?: "separated" | "joined" | null | undefined;
7
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
8
+ interface AccordionItem {
9
+ /** Stable id used for open state and aria wiring. */
10
+ id: string;
11
+ /** Header label (e.g. an FAQ question). */
12
+ title: React.ReactNode;
13
+ /** Panel content (e.g. the answer). */
14
+ content: React.ReactNode;
15
+ disabled?: boolean;
16
+ }
17
+ interface AccordionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>, VariantProps<typeof accordionVariants> {
18
+ items: AccordionItem[];
19
+ /** `single` keeps at most one panel open; `multiple` allows any number. */
20
+ type?: 'single' | 'multiple';
21
+ /** Ids open initially (uncontrolled). */
22
+ defaultOpenIds?: string[];
23
+ /** Controlled open ids. Changes reported via `onOpenChange`. */
24
+ openIds?: string[];
25
+ onOpenChange?: (openIds: string[]) => void;
26
+ /** In `single` mode, allow closing the open panel (default true). */
27
+ collapsible?: boolean;
28
+ /** Heading level wrapping each trigger for document outline (default h3). */
29
+ headingLevel?: 'h2' | 'h3' | 'h4';
30
+ }
31
+ /**
32
+ * A vertically stacked set of expandable panels — FAQ lists, settings
33
+ * groups, progressive disclosure. Panels animate open to their natural
34
+ * height (CSS grid rows, no max-height clipping), and headers are real
35
+ * buttons inside headings with full `aria-expanded`/`aria-controls` wiring.
36
+ *
37
+ * @example
38
+ * ```tsx
39
+ * <Accordion
40
+ * type="single"
41
+ * items={[
42
+ * { id: 'pricing', title: 'How is pricing calculated?', content: <p>…</p> },
43
+ * { id: 'billing', title: 'When am I billed?', content: <p>…</p> },
44
+ * ]}
45
+ * />
46
+ * ```
47
+ */
48
+ declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
49
+
50
+ export { Accordion, type AccordionItem, type AccordionProps };
@@ -0,0 +1,4 @@
1
+ export { Accordion } from '../../chunk-Y6YSJPVC.js';
2
+ import '../../chunk-TQONQSJO.js';
3
+ //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const alertVariants: (props?: ({
6
- variant?: "danger" | "default" | "success" | "info" | "warning" | null | undefined;
6
+ variant?: "danger" | "default" | "warning" | "success" | "info" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
9
9
  /** Icon to display in the alert */
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const alertVariants: (props?: ({
6
- variant?: "danger" | "default" | "success" | "info" | "warning" | null | undefined;
6
+ variant?: "danger" | "default" | "warning" | "success" | "info" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
9
9
  /** Icon to display in the alert */
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk6J7UGYT5_cjs = require('../../chunk-6J7UGYT5.cjs');
4
- require('../../chunk-6ECKH4DJ.cjs');
3
+ var chunkJHGMZX4I_cjs = require('../../chunk-JHGMZX4I.cjs');
4
+ require('../../chunk-I44YNYI6.cjs');
5
+ require('../../chunk-Z5S5JEJD.cjs');
5
6
  require('../../chunk-FSGEDDF2.cjs');
6
7
  require('../../chunk-MYFZYUPR.cjs');
7
8
  require('../../chunk-S5RVSXDV.cjs');
@@ -10,7 +11,7 @@ require('../../chunk-S5RVSXDV.cjs');
10
11
 
11
12
  Object.defineProperty(exports, "Autocomplete", {
12
13
  enumerable: true,
13
- get: function () { return chunk6J7UGYT5_cjs.Autocomplete; }
14
+ get: function () { return chunkJHGMZX4I_cjs.Autocomplete; }
14
15
  });
15
16
  //# sourceMappingURL=index.cjs.map
16
17
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { inputVariants } from '../Input/index.cjs';
4
+ import { inputVariants, RequiredMarkVariant } from '../Input/index.cjs';
5
5
  import 'class-variance-authority/types';
6
6
 
7
7
  interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>, 'size'> {
@@ -41,6 +41,23 @@ interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>,
41
41
  clearOnSelect?: boolean;
42
42
  /** Disable the input. */
43
43
  disabled?: boolean;
44
+ /** Label for the input. */
45
+ label?: string;
46
+ /**
47
+ * How the label is rendered.
48
+ * - `stacked` (default): label above the input.
49
+ * - `floating`: label rests inside the input like a placeholder and floats
50
+ * to the top of the field when focused or filled. Ignores `placeholder`.
51
+ */
52
+ labelVariant?: 'stacked' | 'floating';
53
+ /** Whether the input is required. */
54
+ required?: boolean;
55
+ /**
56
+ * Color of the required asterisk.
57
+ * - `default`: destructive (hard requirement).
58
+ * - `warning`: warning color (soft requirement / recommended).
59
+ */
60
+ requiredVariant?: RequiredMarkVariant;
44
61
  /** Accessible label for the combobox input. */
45
62
  'aria-label'?: string;
46
63
  /** Class applied to the outer wrapper. */
@@ -50,7 +67,7 @@ interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>,
50
67
  /** Forwarded ref to the underlying input. */
51
68
  inputRef?: React.Ref<HTMLInputElement>;
52
69
  /** Additional props forwarded to the input element. */
53
- inputProps?: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'size' | 'placeholder' | 'disabled' | 'aria-label'>;
70
+ inputProps?: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'size' | 'placeholder' | 'disabled' | 'required' | 'aria-label'>;
54
71
  }
55
72
  /**
56
73
  * A data-agnostic, presentational combobox. It renders a search input with a
@@ -69,7 +86,7 @@ interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>,
69
86
  * />
70
87
  * ```
71
88
  */
72
- declare function Autocomplete<T>({ items, onSelect, getItemKey, renderItem, filter, value: controlledValue, defaultValue, onValueChange, placeholder, emptyMessage, createLabel, onCreate, minQueryLength, clearOnSelect, disabled, size, className, inputClassName, inputRef, inputProps, 'aria-label': ariaLabel, }: AutocompleteProps<T>): react_jsx_runtime.JSX.Element;
89
+ declare function Autocomplete<T>({ items, onSelect, getItemKey, renderItem, filter, value: controlledValue, defaultValue, onValueChange, placeholder, emptyMessage, createLabel, onCreate, minQueryLength, clearOnSelect, disabled, label, labelVariant, required, requiredVariant, size, className, inputClassName, inputRef, inputProps, 'aria-label': ariaLabel, }: AutocompleteProps<T>): react_jsx_runtime.JSX.Element;
73
90
  declare namespace Autocomplete {
74
91
  var displayName: string;
75
92
  }
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { inputVariants } from '../Input/index.js';
4
+ import { inputVariants, RequiredMarkVariant } from '../Input/index.js';
5
5
  import 'class-variance-authority/types';
6
6
 
7
7
  interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>, 'size'> {
@@ -41,6 +41,23 @@ interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>,
41
41
  clearOnSelect?: boolean;
42
42
  /** Disable the input. */
43
43
  disabled?: boolean;
44
+ /** Label for the input. */
45
+ label?: string;
46
+ /**
47
+ * How the label is rendered.
48
+ * - `stacked` (default): label above the input.
49
+ * - `floating`: label rests inside the input like a placeholder and floats
50
+ * to the top of the field when focused or filled. Ignores `placeholder`.
51
+ */
52
+ labelVariant?: 'stacked' | 'floating';
53
+ /** Whether the input is required. */
54
+ required?: boolean;
55
+ /**
56
+ * Color of the required asterisk.
57
+ * - `default`: destructive (hard requirement).
58
+ * - `warning`: warning color (soft requirement / recommended).
59
+ */
60
+ requiredVariant?: RequiredMarkVariant;
44
61
  /** Accessible label for the combobox input. */
45
62
  'aria-label'?: string;
46
63
  /** Class applied to the outer wrapper. */
@@ -50,7 +67,7 @@ interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>,
50
67
  /** Forwarded ref to the underlying input. */
51
68
  inputRef?: React.Ref<HTMLInputElement>;
52
69
  /** Additional props forwarded to the input element. */
53
- inputProps?: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'size' | 'placeholder' | 'disabled' | 'aria-label'>;
70
+ inputProps?: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'size' | 'placeholder' | 'disabled' | 'required' | 'aria-label'>;
54
71
  }
55
72
  /**
56
73
  * A data-agnostic, presentational combobox. It renders a search input with a
@@ -69,7 +86,7 @@ interface AutocompleteProps<T> extends Pick<VariantProps<typeof inputVariants>,
69
86
  * />
70
87
  * ```
71
88
  */
72
- declare function Autocomplete<T>({ items, onSelect, getItemKey, renderItem, filter, value: controlledValue, defaultValue, onValueChange, placeholder, emptyMessage, createLabel, onCreate, minQueryLength, clearOnSelect, disabled, size, className, inputClassName, inputRef, inputProps, 'aria-label': ariaLabel, }: AutocompleteProps<T>): react_jsx_runtime.JSX.Element;
89
+ declare function Autocomplete<T>({ items, onSelect, getItemKey, renderItem, filter, value: controlledValue, defaultValue, onValueChange, placeholder, emptyMessage, createLabel, onCreate, minQueryLength, clearOnSelect, disabled, label, labelVariant, required, requiredVariant, size, className, inputClassName, inputRef, inputProps, 'aria-label': ariaLabel, }: AutocompleteProps<T>): react_jsx_runtime.JSX.Element;
73
90
  declare namespace Autocomplete {
74
91
  var displayName: string;
75
92
  }
@@ -1,5 +1,6 @@
1
- export { Autocomplete } from '../../chunk-P6L74SKG.js';
2
- import '../../chunk-YXCE2HSK.js';
1
+ export { Autocomplete } from '../../chunk-QGZC43L7.js';
2
+ import '../../chunk-6NZXWKUE.js';
3
+ import '../../chunk-3IMM2PM4.js';
3
4
  import '../../chunk-62ZOA6PX.js';
4
5
  import '../../chunk-BOOJDRJO.js';
5
6
  import '../../chunk-TQONQSJO.js';
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const badgeVariants: (props?: ({
6
- variant?: "secondary" | "outline" | "danger" | "default" | "success" | "warning" | null | undefined;
6
+ variant?: "secondary" | "outline" | "danger" | "default" | "warning" | "success" | null | undefined;
7
7
  size?: "sm" | "md" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const badgeVariants: (props?: ({
6
- variant?: "secondary" | "outline" | "danger" | "default" | "success" | "warning" | null | undefined;
6
+ variant?: "secondary" | "outline" | "danger" | "default" | "warning" | "success" | null | undefined;
7
7
  size?: "sm" | "md" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
@@ -10,7 +10,7 @@ declare const cardVariants: (props?: ({
10
10
  orientation?: "horizontal" | "vertical" | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  declare const cardAccentVariants: (props?: ({
13
- color?: "primary" | "success" | "info" | "warning" | "destructive" | null | undefined;
13
+ color?: "primary" | "warning" | "success" | "info" | "destructive" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
16
16
  /** Semantic HTML element to render as */
@@ -10,7 +10,7 @@ declare const cardVariants: (props?: ({
10
10
  orientation?: "horizontal" | "vertical" | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  declare const cardAccentVariants: (props?: ({
13
- color?: "primary" | "success" | "info" | "warning" | "destructive" | null | undefined;
13
+ color?: "primary" | "warning" | "success" | "info" | "destructive" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
16
16
  /** Semantic HTML element to render as */
@@ -1,21 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkS3MKIDYG_cjs = require('../../chunk-S3MKIDYG.cjs');
3
+ var chunk7AECNMYV_cjs = require('../../chunk-7AECNMYV.cjs');
4
+ require('../../chunk-Z5S5JEJD.cjs');
4
5
  require('../../chunk-S5RVSXDV.cjs');
5
6
 
6
7
 
7
8
 
8
9
  Object.defineProperty(exports, "Checkbox", {
9
10
  enumerable: true,
10
- get: function () { return chunkS3MKIDYG_cjs.Checkbox; }
11
+ get: function () { return chunk7AECNMYV_cjs.Checkbox; }
11
12
  });
12
13
  Object.defineProperty(exports, "CheckboxGroup", {
13
14
  enumerable: true,
14
- get: function () { return chunkS3MKIDYG_cjs.CheckboxGroup; }
15
+ get: function () { return chunk7AECNMYV_cjs.CheckboxGroup; }
15
16
  });
16
17
  Object.defineProperty(exports, "checkboxVariants", {
17
18
  enumerable: true,
18
- get: function () { return chunkS3MKIDYG_cjs.checkboxVariants; }
19
+ get: function () { return chunk7AECNMYV_cjs.checkboxVariants; }
19
20
  });
20
21
  //# sourceMappingURL=index.cjs.map
21
22
  //# sourceMappingURL=index.cjs.map
@@ -32,6 +32,14 @@ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.Re
32
32
  interface CheckboxGroupProps {
33
33
  /** Group label */
34
34
  label?: string;
35
+ /**
36
+ * How the group label is rendered.
37
+ * - `stacked` (default): label above the options.
38
+ * - `floating`: renders the group as a bordered field matching floating
39
+ * inputs, with the label fixed in the floated position so mixed forms
40
+ * stay vertically aligned.
41
+ */
42
+ labelVariant?: 'stacked' | 'floating';
35
43
  /** Description for the group */
36
44
  description?: string;
37
45
  /** Error message for the group */
@@ -55,7 +63,7 @@ interface CheckboxGroupProps {
55
63
  * </CheckboxGroup>
56
64
  * ```
57
65
  */
58
- declare function CheckboxGroup({ label, description, error, orientation, children, className, }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
66
+ declare function CheckboxGroup({ label, labelVariant, description, error, orientation, children, className, }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
59
67
  declare namespace CheckboxGroup {
60
68
  var displayName: string;
61
69
  }
@@ -32,6 +32,14 @@ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.Re
32
32
  interface CheckboxGroupProps {
33
33
  /** Group label */
34
34
  label?: string;
35
+ /**
36
+ * How the group label is rendered.
37
+ * - `stacked` (default): label above the options.
38
+ * - `floating`: renders the group as a bordered field matching floating
39
+ * inputs, with the label fixed in the floated position so mixed forms
40
+ * stay vertically aligned.
41
+ */
42
+ labelVariant?: 'stacked' | 'floating';
35
43
  /** Description for the group */
36
44
  description?: string;
37
45
  /** Error message for the group */
@@ -55,7 +63,7 @@ interface CheckboxGroupProps {
55
63
  * </CheckboxGroup>
56
64
  * ```
57
65
  */
58
- declare function CheckboxGroup({ label, description, error, orientation, children, className, }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
66
+ declare function CheckboxGroup({ label, labelVariant, description, error, orientation, children, className, }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
59
67
  declare namespace CheckboxGroup {
60
68
  var displayName: string;
61
69
  }
@@ -1,4 +1,5 @@
1
- export { Checkbox, CheckboxGroup, checkboxVariants } from '../../chunk-KFLDXJEE.js';
1
+ export { Checkbox, CheckboxGroup, checkboxVariants } from '../../chunk-753Z3NXL.js';
2
+ import '../../chunk-3IMM2PM4.js';
2
3
  import '../../chunk-TQONQSJO.js';
3
4
  //# sourceMappingURL=index.js.map
4
5
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkN5O47VGS_cjs = require('../../chunk-N5O47VGS.cjs');
4
+ require('../../chunk-S5RVSXDV.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "ClampedText", {
9
+ enumerable: true,
10
+ get: function () { return chunkN5O47VGS_cjs.ClampedText; }
11
+ });
12
+ //# sourceMappingURL=index.cjs.map
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+
3
+ interface ClampedTextProps extends React.HTMLAttributes<HTMLElement> {
4
+ /** The long text to clamp. */
5
+ text: string;
6
+ /** Lines visible while collapsed (2–8, default 6). */
7
+ lines?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
8
+ /** Skip the clamp entirely below this character count (default 280). */
9
+ threshold?: number;
10
+ /** Toggle labels, overridable for i18n. */
11
+ showMoreLabel?: string;
12
+ showLessLabel?: string;
13
+ /**
14
+ * Gradient start for the fade at the clamp edge — match it to the
15
+ * surface behind the text (default `from-card`).
16
+ */
17
+ fadeClassName?: string;
18
+ }
19
+ /**
20
+ * Clamps long text to N lines with a fade-out gradient and a
21
+ * Show more / Show less toggle. Short text renders inline with no
22
+ * toggle, so brief values stay flat. Pure presentation — ideal for
23
+ * free-text fields (messages, notes, descriptions) inside detail
24
+ * panels and modals.
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * <ClampedText text={note.body} lines={4} />
29
+ * ```
30
+ */
31
+ declare const ClampedText: React.ForwardRefExoticComponent<ClampedTextProps & React.RefAttributes<HTMLElement>>;
32
+
33
+ export { ClampedText, type ClampedTextProps };
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+
3
+ interface ClampedTextProps extends React.HTMLAttributes<HTMLElement> {
4
+ /** The long text to clamp. */
5
+ text: string;
6
+ /** Lines visible while collapsed (2–8, default 6). */
7
+ lines?: 2 | 3 | 4 | 5 | 6 | 7 | 8;
8
+ /** Skip the clamp entirely below this character count (default 280). */
9
+ threshold?: number;
10
+ /** Toggle labels, overridable for i18n. */
11
+ showMoreLabel?: string;
12
+ showLessLabel?: string;
13
+ /**
14
+ * Gradient start for the fade at the clamp edge — match it to the
15
+ * surface behind the text (default `from-card`).
16
+ */
17
+ fadeClassName?: string;
18
+ }
19
+ /**
20
+ * Clamps long text to N lines with a fade-out gradient and a
21
+ * Show more / Show less toggle. Short text renders inline with no
22
+ * toggle, so brief values stay flat. Pure presentation — ideal for
23
+ * free-text fields (messages, notes, descriptions) inside detail
24
+ * panels and modals.
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * <ClampedText text={note.body} lines={4} />
29
+ * ```
30
+ */
31
+ declare const ClampedText: React.ForwardRefExoticComponent<ClampedTextProps & React.RefAttributes<HTMLElement>>;
32
+
33
+ export { ClampedText, type ClampedTextProps };
@@ -0,0 +1,4 @@
1
+ export { ClampedText } from '../../chunk-L6MDULYB.js';
2
+ import '../../chunk-TQONQSJO.js';
3
+ //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkNGSDBWKA_cjs = require('../../chunk-NGSDBWKA.cjs');
4
+ require('../../chunk-S5RVSXDV.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "CopyButton", {
9
+ enumerable: true,
10
+ get: function () { return chunkNGSDBWKA_cjs.CopyButton; }
11
+ });
12
+ //# sourceMappingURL=index.cjs.map
13
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}