@punica/components 0.0.0-stage → 2.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 (382) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/LICENSE +21 -0
  3. package/README.md +139 -2
  4. package/bin/punica-components.mjs +138 -0
  5. package/custom-elements.json +38745 -0
  6. package/dist/ai/index.d.ts +39 -0
  7. package/dist/ai/index.mjs +615 -0
  8. package/dist/ai/node.d.ts +5 -0
  9. package/dist/ai/node.mjs +625 -0
  10. package/dist/esm/chunks/chunk-25RFU6B5.js +25 -0
  11. package/dist/esm/chunks/chunk-2EK3PZFT.js +179 -0
  12. package/dist/esm/chunks/chunk-2KBDCVUH.js +20 -0
  13. package/dist/esm/chunks/chunk-2NCRRDPI.js +151 -0
  14. package/dist/esm/chunks/chunk-33GO7Z32.js +40 -0
  15. package/dist/esm/chunks/chunk-36BKRO3B.js +281 -0
  16. package/dist/esm/chunks/chunk-3DWJAU5S.js +607 -0
  17. package/dist/esm/chunks/chunk-3GOFXBR7.js +61 -0
  18. package/dist/esm/chunks/chunk-3H5QEUFO.js +21 -0
  19. package/dist/esm/chunks/chunk-3NHCLXYC.js +6 -0
  20. package/dist/esm/chunks/chunk-3NQ2RVWE.js +36 -0
  21. package/dist/esm/chunks/chunk-3SYFLID6.js +20 -0
  22. package/dist/esm/chunks/chunk-3TK5BG5K.js +322 -0
  23. package/dist/esm/chunks/chunk-3WLKVJO4.js +36 -0
  24. package/dist/esm/chunks/chunk-427DCAZS.js +49 -0
  25. package/dist/esm/chunks/chunk-4446KGJH.js +67 -0
  26. package/dist/esm/chunks/chunk-45UR4HAQ.js +128 -0
  27. package/dist/esm/chunks/chunk-46P3CPXM.js +81 -0
  28. package/dist/esm/chunks/chunk-4C3AUANN.js +271 -0
  29. package/dist/esm/chunks/chunk-4RURT4SK.js +142 -0
  30. package/dist/esm/chunks/chunk-4XJKCJQG.js +166 -0
  31. package/dist/esm/chunks/chunk-5PKJV3JP.js +61 -0
  32. package/dist/esm/chunks/chunk-5SSKNOUZ.js +141 -0
  33. package/dist/esm/chunks/chunk-5XB5CUJU.js +18 -0
  34. package/dist/esm/chunks/chunk-5XQX7D2B.js +27 -0
  35. package/dist/esm/chunks/chunk-6A5Q3TR2.js +73 -0
  36. package/dist/esm/chunks/chunk-6HE2DQS5.js +29 -0
  37. package/dist/esm/chunks/chunk-6IWDX7AR.js +32 -0
  38. package/dist/esm/chunks/chunk-6LO2ITXI.js +138 -0
  39. package/dist/esm/chunks/chunk-6NSNMUZE.js +36 -0
  40. package/dist/esm/chunks/chunk-6UQOC4YG.js +61 -0
  41. package/dist/esm/chunks/chunk-72ANEBJJ.js +138 -0
  42. package/dist/esm/chunks/chunk-7JTOYPC7.js +24 -0
  43. package/dist/esm/chunks/chunk-7O3D52ZO.js +27 -0
  44. package/dist/esm/chunks/chunk-7UN7TAOI.js +39 -0
  45. package/dist/esm/chunks/chunk-7WEISIJL.js +123 -0
  46. package/dist/esm/chunks/chunk-7YAUHJR2.js +225 -0
  47. package/dist/esm/chunks/chunk-7ZT7WUEL.js +35 -0
  48. package/dist/esm/chunks/chunk-ALU2KZWS.js +177 -0
  49. package/dist/esm/chunks/chunk-AMVMOCUW.js +81 -0
  50. package/dist/esm/chunks/chunk-APPQS53K.js +81 -0
  51. package/dist/esm/chunks/chunk-AVTATVAG.js +410 -0
  52. package/dist/esm/chunks/chunk-AZMUP33Z.js +56 -0
  53. package/dist/esm/chunks/chunk-B32J3O2V.js +21 -0
  54. package/dist/esm/chunks/chunk-B7YCX5VB.js +38 -0
  55. package/dist/esm/chunks/chunk-BBSDD7DS.js +55 -0
  56. package/dist/esm/chunks/chunk-BC657356.js +93 -0
  57. package/dist/esm/chunks/chunk-BFRWXGP4.js +44 -0
  58. package/dist/esm/chunks/chunk-BYZADSVQ.js +49 -0
  59. package/dist/esm/chunks/chunk-CDXX27FL.js +28 -0
  60. package/dist/esm/chunks/chunk-CKI34FQL.js +166 -0
  61. package/dist/esm/chunks/chunk-CNT47W5N.js +60 -0
  62. package/dist/esm/chunks/chunk-CU3RW3AS.js +515 -0
  63. package/dist/esm/chunks/chunk-CZ3R7GRW.js +73 -0
  64. package/dist/esm/chunks/chunk-DLEJ74RA.js +18 -0
  65. package/dist/esm/chunks/chunk-DPOPZQ7A.js +150 -0
  66. package/dist/esm/chunks/chunk-DYXHKPQU.js +18 -0
  67. package/dist/esm/chunks/chunk-E3XOZZSK.js +77 -0
  68. package/dist/esm/chunks/chunk-EJLQD3FS.js +89 -0
  69. package/dist/esm/chunks/chunk-ELY5HYAI.js +45 -0
  70. package/dist/esm/chunks/chunk-ELY5NJBV.js +152 -0
  71. package/dist/esm/chunks/chunk-EWIF3VBH.js +45 -0
  72. package/dist/esm/chunks/chunk-F2OASWR4.js +79 -0
  73. package/dist/esm/chunks/chunk-F4ODKLNS.js +62 -0
  74. package/dist/esm/chunks/chunk-F5HKSUTX.js +127 -0
  75. package/dist/esm/chunks/chunk-FFH6CIAJ.js +208 -0
  76. package/dist/esm/chunks/chunk-FFLBSXWE.js +21 -0
  77. package/dist/esm/chunks/chunk-FNTBMCUQ.js +184 -0
  78. package/dist/esm/chunks/chunk-FYSNICNC.js +71 -0
  79. package/dist/esm/chunks/chunk-G2QRQLP5.js +18 -0
  80. package/dist/esm/chunks/chunk-G36PG2LK.js +27 -0
  81. package/dist/esm/chunks/chunk-G5LARXMF.js +73 -0
  82. package/dist/esm/chunks/chunk-GQLNLUQX.js +42 -0
  83. package/dist/esm/chunks/chunk-GRWYCZQZ.js +73 -0
  84. package/dist/esm/chunks/chunk-GSXWSHYU.js +304 -0
  85. package/dist/esm/chunks/chunk-GVH32USX.js +48 -0
  86. package/dist/esm/chunks/chunk-GW3IYQNO.js +271 -0
  87. package/dist/esm/chunks/chunk-H4Q2HHZA.js +151 -0
  88. package/dist/esm/chunks/chunk-HDHVTBGS.js +330 -0
  89. package/dist/esm/chunks/chunk-HK6DEJO3.js +74 -0
  90. package/dist/esm/chunks/chunk-HUMTZKOD.js +114 -0
  91. package/dist/esm/chunks/chunk-HW2CN2JV.js +118 -0
  92. package/dist/esm/chunks/chunk-I6WGYC6M.js +50 -0
  93. package/dist/esm/chunks/chunk-ICGI6UOP.js +28 -0
  94. package/dist/esm/chunks/chunk-IYZKVVEX.js +285 -0
  95. package/dist/esm/chunks/chunk-J4HTWL4Q.js +34 -0
  96. package/dist/esm/chunks/chunk-J6FXZP6E.js +99 -0
  97. package/dist/esm/chunks/chunk-JTIBDZBU.js +392 -0
  98. package/dist/esm/chunks/chunk-K2OIQJ36.js +23 -0
  99. package/dist/esm/chunks/chunk-K5D5UHVI.js +99 -0
  100. package/dist/esm/chunks/chunk-K753LIJX.js +157 -0
  101. package/dist/esm/chunks/chunk-KV4Y5ZP5.js +105 -0
  102. package/dist/esm/chunks/chunk-KVWZQINH.js +44 -0
  103. package/dist/esm/chunks/chunk-LKKKFYM4.js +106 -0
  104. package/dist/esm/chunks/chunk-LKPOFLSP.js +337 -0
  105. package/dist/esm/chunks/chunk-LSDTMST7.js +6 -0
  106. package/dist/esm/chunks/chunk-LUASZ5NH.js +271 -0
  107. package/dist/esm/chunks/chunk-LUPYODQN.js +54 -0
  108. package/dist/esm/chunks/chunk-M3HQENQG.js +93 -0
  109. package/dist/esm/chunks/chunk-MCHPBSW4.js +155 -0
  110. package/dist/esm/chunks/chunk-MDEV5WIN.js +25 -0
  111. package/dist/esm/chunks/chunk-MF2ASALV.js +194 -0
  112. package/dist/esm/chunks/chunk-MIUSZNAX.js +62 -0
  113. package/dist/esm/chunks/chunk-NINGLTB2.js +194 -0
  114. package/dist/esm/chunks/chunk-NLFUTVKG.js +158 -0
  115. package/dist/esm/chunks/chunk-NNCGUKTM.js +44 -0
  116. package/dist/esm/chunks/chunk-NSCGX5GB.js +408 -0
  117. package/dist/esm/chunks/chunk-NTIMVMDT.js +51 -0
  118. package/dist/esm/chunks/chunk-OBUW2HDW.js +99 -0
  119. package/dist/esm/chunks/chunk-OKRRNW3E.js +202 -0
  120. package/dist/esm/chunks/chunk-PGWADMK3.js +198 -0
  121. package/dist/esm/chunks/chunk-PMGKVE2V.js +30 -0
  122. package/dist/esm/chunks/chunk-PMLVGWVZ.js +80 -0
  123. package/dist/esm/chunks/chunk-PXECURYJ.js +78 -0
  124. package/dist/esm/chunks/chunk-Q2766HFS.js +34 -0
  125. package/dist/esm/chunks/chunk-Q62K7757.js +22 -0
  126. package/dist/esm/chunks/chunk-Q7JNV3UN.js +192 -0
  127. package/dist/esm/chunks/chunk-QRJKBLYH.js +43 -0
  128. package/dist/esm/chunks/chunk-QRZWLIUQ.js +551 -0
  129. package/dist/esm/chunks/chunk-RKF3ZNBC.js +25 -0
  130. package/dist/esm/chunks/chunk-RMJM6NWT.js +58 -0
  131. package/dist/esm/chunks/chunk-ROTG34TD.js +81 -0
  132. package/dist/esm/chunks/chunk-RQ2NYS2W.js +51 -0
  133. package/dist/esm/chunks/chunk-RX5HOB7L.js +187 -0
  134. package/dist/esm/chunks/chunk-RYOY6CGB.js +174 -0
  135. package/dist/esm/chunks/chunk-S2P6I4PF.js +191 -0
  136. package/dist/esm/chunks/chunk-SCSGRIQM.js +27 -0
  137. package/dist/esm/chunks/chunk-SENDWPHS.js +115 -0
  138. package/dist/esm/chunks/chunk-SFY6NIVM.js +106 -0
  139. package/dist/esm/chunks/chunk-SHEACXCO.js +67 -0
  140. package/dist/esm/chunks/chunk-SII4GAN2.js +302 -0
  141. package/dist/esm/chunks/chunk-SIUUXS2M.js +172 -0
  142. package/dist/esm/chunks/chunk-SLXOGLX4.js +39 -0
  143. package/dist/esm/chunks/chunk-ST7UASSS.js +43 -0
  144. package/dist/esm/chunks/chunk-SUNHM3W2.js +211 -0
  145. package/dist/esm/chunks/chunk-SWTIN4AS.js +43 -0
  146. package/dist/esm/chunks/chunk-T2FH4DTZ.js +163 -0
  147. package/dist/esm/chunks/chunk-TK5H2DLW.js +157 -0
  148. package/dist/esm/chunks/chunk-U3SSEG6P.js +31 -0
  149. package/dist/esm/chunks/chunk-UNQEQ3F2.js +118 -0
  150. package/dist/esm/chunks/chunk-UP3ZQ5S6.js +155 -0
  151. package/dist/esm/chunks/chunk-UQFS4FAE.js +80 -0
  152. package/dist/esm/chunks/chunk-UZXXUKV6.js +124 -0
  153. package/dist/esm/chunks/chunk-VF4NHXZG.js +33 -0
  154. package/dist/esm/chunks/chunk-VIGFMBQW.js +337 -0
  155. package/dist/esm/chunks/chunk-VJBXT6L2.js +86 -0
  156. package/dist/esm/chunks/chunk-VM4IKZDR.js +211 -0
  157. package/dist/esm/chunks/chunk-VPCWI2SH.js +18 -0
  158. package/dist/esm/chunks/chunk-VR225VA6.js +29 -0
  159. package/dist/esm/chunks/chunk-WEGQW4SS.js +285 -0
  160. package/dist/esm/chunks/chunk-WHXEETCS.js +80 -0
  161. package/dist/esm/chunks/chunk-X2XT4SYI.js +71 -0
  162. package/dist/esm/chunks/chunk-X6Y3S66P.js +91 -0
  163. package/dist/esm/chunks/chunk-XBFOPEHZ.js +86 -0
  164. package/dist/esm/chunks/chunk-XE74KQOC.js +18 -0
  165. package/dist/esm/chunks/chunk-XNMQ4SC7.js +95 -0
  166. package/dist/esm/chunks/chunk-XWPDELI6.js +53 -0
  167. package/dist/esm/chunks/chunk-XWZPKK2I.js +6 -0
  168. package/dist/esm/chunks/chunk-XZSAOJUV.js +83 -0
  169. package/dist/esm/chunks/chunk-Y5BQXWLM.js +58 -0
  170. package/dist/esm/chunks/chunk-Y5HOTHVK.js +22 -0
  171. package/dist/esm/chunks/chunk-Y7B65FYJ.js +336 -0
  172. package/dist/esm/chunks/chunk-YIAEOUGS.js +46 -0
  173. package/dist/esm/chunks/chunk-YKL6MAIV.js +208 -0
  174. package/dist/esm/chunks/chunk-YPH3G6P7.js +125 -0
  175. package/dist/esm/chunks/chunk-YSGWORUD.js +36 -0
  176. package/dist/esm/chunks/chunk-ZB7DQSJK.js +204 -0
  177. package/dist/esm/chunks/chunk-ZC7JPIL7.js +182 -0
  178. package/dist/esm/chunks/chunk-ZGBBW7U4.js +35 -0
  179. package/dist/esm/chunks/chunk-ZIQREEEI.js +210 -0
  180. package/dist/esm/chunks/chunk-ZJ3UIJ46.js +30 -0
  181. package/dist/esm/chunks/chunk-ZK6JTE6K.js +826 -0
  182. package/dist/esm/chunks/chunk-ZPIJWNFB.js +150 -0
  183. package/dist/esm/chunks/chunk-ZQVI42RW.js +136 -0
  184. package/dist/esm/chunks/chunk-ZWP6KATC.js +25 -0
  185. package/dist/esm/chunks/chunk-ZY5YHMTQ.js +88 -0
  186. package/dist/esm/components/accordion/accordion.js +8 -0
  187. package/dist/esm/components/accordion/accordionGroup.js +7 -0
  188. package/dist/esm/components/agenda/agenda.js +9 -0
  189. package/dist/esm/components/alert/alert.js +8 -0
  190. package/dist/esm/components/alertDialog/alertDialog.js +14 -0
  191. package/dist/esm/components/appBar/appBar.js +7 -0
  192. package/dist/esm/components/appShell/appShell.js +11 -0
  193. package/dist/esm/components/aspectRatio/aspectRatio.js +7 -0
  194. package/dist/esm/components/autocomplete/autocomplete.js +14 -0
  195. package/dist/esm/components/avatar/avatar.js +7 -0
  196. package/dist/esm/components/avatarGroup/avatarGroup.js +11 -0
  197. package/dist/esm/components/badge/badge.js +7 -0
  198. package/dist/esm/components/banner/banner.js +9 -0
  199. package/dist/esm/components/blockquote/blockquote.js +7 -0
  200. package/dist/esm/components/bottomSheet/bottomSheet.js +9 -0
  201. package/dist/esm/components/box/box.js +7 -0
  202. package/dist/esm/components/breadcrumbs/breadcrumbItem.js +8 -0
  203. package/dist/esm/components/breadcrumbs/breadcrumbs.js +11 -0
  204. package/dist/esm/components/button/button.js +8 -0
  205. package/dist/esm/components/buttonGroup/buttonGroup.js +7 -0
  206. package/dist/esm/components/calendar/calendar.js +12 -0
  207. package/dist/esm/components/calendar/dates.js +44 -0
  208. package/dist/esm/components/card/card.js +7 -0
  209. package/dist/esm/components/card/cardActions.js +7 -0
  210. package/dist/esm/components/card/cardContent.js +7 -0
  211. package/dist/esm/components/card/cardHeader.js +7 -0
  212. package/dist/esm/components/card/cardMedia.js +7 -0
  213. package/dist/esm/components/carousel/carousel.js +9 -0
  214. package/dist/esm/components/carousel/carouselItem.js +7 -0
  215. package/dist/esm/components/center/center.js +7 -0
  216. package/dist/esm/components/chat/chatComposer.js +9 -0
  217. package/dist/esm/components/chat/chatDictationButton.js +8 -0
  218. package/dist/esm/components/chat/chatLayout.js +9 -0
  219. package/dist/esm/components/chat/chatMessage.js +9 -0
  220. package/dist/esm/components/chat/chatMessageBubble.js +7 -0
  221. package/dist/esm/components/chat/chatMessageList.js +8 -0
  222. package/dist/esm/components/chat/chatMessageMetadata.js +7 -0
  223. package/dist/esm/components/chat/chatSystemMessage.js +7 -0
  224. package/dist/esm/components/chat/chatToolCall.js +9 -0
  225. package/dist/esm/components/chat/chatToolCalls.js +8 -0
  226. package/dist/esm/components/chat/slots.js +6 -0
  227. package/dist/esm/components/checkbox/checkbox.js +9 -0
  228. package/dist/esm/components/checkboxGroup/checkboxGroup.js +10 -0
  229. package/dist/esm/components/chip/chip.js +8 -0
  230. package/dist/esm/components/citation/citation.js +11 -0
  231. package/dist/esm/components/code/code.js +7 -0
  232. package/dist/esm/components/codeBlock/codeBlock.js +8 -0
  233. package/dist/esm/components/collapsible/collapsible.js +7 -0
  234. package/dist/esm/components/commandPalette/commandGroup.js +7 -0
  235. package/dist/esm/components/commandPalette/commandItem.js +7 -0
  236. package/dist/esm/components/commandPalette/commandPalette.js +10 -0
  237. package/dist/esm/components/complexSelector/complexOption.js +9 -0
  238. package/dist/esm/components/complexSelector/complexSelector.js +16 -0
  239. package/dist/esm/components/complexSelector/optionGroup.js +7 -0
  240. package/dist/esm/components/container/container.js +7 -0
  241. package/dist/esm/components/contextMenu/contextMenu.js +12 -0
  242. package/dist/esm/components/datePicker/datePicker.js +15 -0
  243. package/dist/esm/components/dateRangeInput/dateRangeInput.js +15 -0
  244. package/dist/esm/components/dateTimeInput/dateTimeInput.js +18 -0
  245. package/dist/esm/components/dialog/dialog.js +11 -0
  246. package/dist/esm/components/dialog/dialogContent.js +7 -0
  247. package/dist/esm/components/dialog/dialogFooter.js +7 -0
  248. package/dist/esm/components/dialog/dialogHeader.js +7 -0
  249. package/dist/esm/components/dialog/modalSurface.js +8 -0
  250. package/dist/esm/components/divider/divider.js +7 -0
  251. package/dist/esm/components/drawer/drawer.js +10 -0
  252. package/dist/esm/components/emptyState/emptyState.js +7 -0
  253. package/dist/esm/components/field/field.js +7 -0
  254. package/dist/esm/components/fileInput/fileInput.js +9 -0
  255. package/dist/esm/components/formLayout/formLayout.js +7 -0
  256. package/dist/esm/components/grid/col.js +7 -0
  257. package/dist/esm/components/grid/row.js +7 -0
  258. package/dist/esm/components/heading/heading.js +7 -0
  259. package/dist/esm/components/hidden/hidden.js +7 -0
  260. package/dist/esm/components/hoverCard/hoverCard.js +9 -0
  261. package/dist/esm/components/icon/icon.js +8 -0
  262. package/dist/esm/components/iconButton/iconButton.js +8 -0
  263. package/dist/esm/components/infoTip/infoTip.js +10 -0
  264. package/dist/esm/components/input/input.js +9 -0
  265. package/dist/esm/components/inputGroup/inputGroup.js +9 -0
  266. package/dist/esm/components/inputGroup/inputGroupText.js +7 -0
  267. package/dist/esm/components/kbd/kbd.js +7 -0
  268. package/dist/esm/components/lightbox/lightbox.js +10 -0
  269. package/dist/esm/components/link/link.js +8 -0
  270. package/dist/esm/components/listView/list.js +7 -0
  271. package/dist/esm/components/listView/listItem.js +7 -0
  272. package/dist/esm/components/listbox/listbox.js +9 -0
  273. package/dist/esm/components/listbox/listboxItem.js +8 -0
  274. package/dist/esm/components/markdown/markdown.js +9 -0
  275. package/dist/esm/components/markdown/parser.js +9 -0
  276. package/dist/esm/components/markdown/url.js +6 -0
  277. package/dist/esm/components/menu/menu.js +11 -0
  278. package/dist/esm/components/menu/menuCheckboxItem.js +9 -0
  279. package/dist/esm/components/menu/menuDivider.js +7 -0
  280. package/dist/esm/components/menu/menuGroup.js +7 -0
  281. package/dist/esm/components/menu/menuItem.js +8 -0
  282. package/dist/esm/components/menu/menuRadioGroup.js +7 -0
  283. package/dist/esm/components/menu/menuRadioItem.js +9 -0
  284. package/dist/esm/components/metadataList/metadataList.js +9 -0
  285. package/dist/esm/components/metadataList/metadataListItem.js +8 -0
  286. package/dist/esm/components/mobileNav/mobileNav.js +10 -0
  287. package/dist/esm/components/numberInput/numberInput.js +9 -0
  288. package/dist/esm/components/outline/outline.js +8 -0
  289. package/dist/esm/components/overflowList/overflowList.js +11 -0
  290. package/dist/esm/components/pagination/pagination.js +8 -0
  291. package/dist/esm/components/paper/paper.js +7 -0
  292. package/dist/esm/components/popover/popover.js +9 -0
  293. package/dist/esm/components/powerSearch/powerSearch.js +14 -0
  294. package/dist/esm/components/progressBar/progressBar.js +7 -0
  295. package/dist/esm/components/qrCode/qrCode.js +9 -0
  296. package/dist/esm/components/radio/radio.js +7 -0
  297. package/dist/esm/components/radio/radioGroup.js +10 -0
  298. package/dist/esm/components/scrollArea/scrollArea.js +8 -0
  299. package/dist/esm/components/section/section.js +8 -0
  300. package/dist/esm/components/segmentedControl/segmentedControl.js +12 -0
  301. package/dist/esm/components/segmentedControl/segmentedControlItem.js +7 -0
  302. package/dist/esm/components/select/field.js +18 -0
  303. package/dist/esm/components/select/option.js +8 -0
  304. package/dist/esm/components/select/select.js +14 -0
  305. package/dist/esm/components/selectableCard/selectableCard.js +9 -0
  306. package/dist/esm/components/selectableCard/selectableCardGroup.js +13 -0
  307. package/dist/esm/components/sideNav/sideNav.js +9 -0
  308. package/dist/esm/components/sideNav/sideNavItem.js +9 -0
  309. package/dist/esm/components/sideNav/sideNavSection.js +8 -0
  310. package/dist/esm/components/skeleton/skeleton.js +7 -0
  311. package/dist/esm/components/slider/slider.js +9 -0
  312. package/dist/esm/components/spinner/spinner.js +7 -0
  313. package/dist/esm/components/split/split.js +8 -0
  314. package/dist/esm/components/splitButton/splitButton.js +12 -0
  315. package/dist/esm/components/stack/stack.js +7 -0
  316. package/dist/esm/components/statusDot/statusDot.js +7 -0
  317. package/dist/esm/components/stepper/step.js +8 -0
  318. package/dist/esm/components/stepper/stepper.js +7 -0
  319. package/dist/esm/components/switch/switch.js +8 -0
  320. package/dist/esm/components/tab/tab.js +7 -0
  321. package/dist/esm/components/tab/tabPanel.js +7 -0
  322. package/dist/esm/components/tab/tabs.js +8 -0
  323. package/dist/esm/components/table/table.js +7 -0
  324. package/dist/esm/components/table/tableBody.js +7 -0
  325. package/dist/esm/components/table/tableCell.js +7 -0
  326. package/dist/esm/components/table/tableFooter.js +7 -0
  327. package/dist/esm/components/table/tableHeader.js +7 -0
  328. package/dist/esm/components/table/tableHeaderCell.js +8 -0
  329. package/dist/esm/components/table/tableRow.js +7 -0
  330. package/dist/esm/components/table/tableSelectionToolbar.js +8 -0
  331. package/dist/esm/components/text/text.js +7 -0
  332. package/dist/esm/components/textarea/textarea.js +8 -0
  333. package/dist/esm/components/thumbnail/thumbnail.js +8 -0
  334. package/dist/esm/components/timePicker/timePicker.js +15 -0
  335. package/dist/esm/components/timer/timer.js +7 -0
  336. package/dist/esm/components/timestamp/timestamp.js +7 -0
  337. package/dist/esm/components/toast/toast.js +8 -0
  338. package/dist/esm/components/toast/toaster.js +12 -0
  339. package/dist/esm/components/toggleButton/toggleButton.js +8 -0
  340. package/dist/esm/components/toggleButtonGroup/toggleButtonGroup.js +10 -0
  341. package/dist/esm/components/tokenizer/tokenizer.js +14 -0
  342. package/dist/esm/components/toolbar/toolbar.js +8 -0
  343. package/dist/esm/components/tooltip/tooltip.js +9 -0
  344. package/dist/esm/components/topNav/topNav.js +11 -0
  345. package/dist/esm/components/topNav/topNavItem.js +11 -0
  346. package/dist/esm/components/topNav/topNavMegaMenu.js +7 -0
  347. package/dist/esm/components/topNav/topNavMegaMenuCard.js +8 -0
  348. package/dist/esm/components/topNav/topNavMegaMenuGroup.js +7 -0
  349. package/dist/esm/components/topNav/topNavMegaMenuItem.js +7 -0
  350. package/dist/esm/components/tree/tree.js +8 -0
  351. package/dist/esm/components/tree/treeItem.js +8 -0
  352. package/dist/esm/components/virtualList/virtualList.js +7 -0
  353. package/dist/esm/components/virtualTable/virtualTable.js +9 -0
  354. package/dist/esm/components/visuallyHidden/visuallyHidden.js +7 -0
  355. package/dist/esm/core/a11y.js +22 -0
  356. package/dist/esm/core/element.js +14 -0
  357. package/dist/esm/core/form.js +6 -0
  358. package/dist/esm/core/overlay.js +8 -0
  359. package/dist/esm/index.js +779 -0
  360. package/dist/llms-full.txt +8890 -0
  361. package/dist/llms.txt +275 -0
  362. package/dist/punica-components.min.js +14283 -0
  363. package/dist/tokens.css +158 -0
  364. package/dist/types/index.d.ts +6753 -0
  365. package/dist/types/react.d.ts +1914 -0
  366. package/dist/vscode.css-custom-data.json +3892 -0
  367. package/dist/vscode.html-custom-data.json +6912 -0
  368. package/dist/web-types.json +12404 -0
  369. package/docs/MIGRATION-2.0.md +112 -0
  370. package/docs/contract.md +130 -0
  371. package/docs/migration/chat.md +309 -0
  372. package/docs/migration/content.md +806 -0
  373. package/docs/migration/data.md +140 -0
  374. package/docs/migration/display.md +625 -0
  375. package/docs/migration/form-basic.md +262 -0
  376. package/docs/migration/navigation.md +368 -0
  377. package/docs/migration/overlays.md +261 -0
  378. package/docs/migration/pickers.md +194 -0
  379. package/package.json +131 -4
  380. package/scripts/codemod-2.0.mjs +50 -0
  381. package/scripts/codemod-rules.mjs +102 -0
  382. package/skills/punica-components/SKILL.md +48 -0
@@ -0,0 +1,607 @@
1
+ import {
2
+ safeUrl
3
+ } from "./chunk-3NQ2RVWE.js";
4
+
5
+ // src/components/markdown/parser.js
6
+ var FENCE = /^( {0,3})(`{3,}|~{3,})[ \t]*(.*)$/;
7
+ var HEADING = /^ {0,3}(#{1,6})(?:[ \t]+(.*))?$/;
8
+ var HR = /^ {0,3}(?:(?:\*[ \t]*){3,}|(?:-[ \t]*){3,}|(?:_[ \t]*){3,})$/;
9
+ var QUOTE = /^ {0,3}>/;
10
+ var LIST = /^( {0,3})([-+*]|\d{1,9}[.)])(?:( +|\t)(.*))?$/;
11
+ var TABLE_DELIMITER = /^ {0,3}\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/;
12
+ var TASK = /^\[([ xX])\](?:[ \t]+|$)/;
13
+ var isBlank = (line) => line.trim() === "";
14
+ var indentOf = (line) => line.length - line.trimStart().length;
15
+ function fenceOpen(line) {
16
+ const m = FENCE.exec(line);
17
+ if (!m) return null;
18
+ if (m[2][0] === "`" && m[3].includes("`")) return null;
19
+ return { indent: m[1].length, char: m[2][0], length: m[2].length, info: m[3].trim() };
20
+ }
21
+ function listMarker(line) {
22
+ if (HR.test(line)) return null;
23
+ const m = LIST.exec(line);
24
+ if (!m) return null;
25
+ const ordered = m[2].length > 1 || /\d/.test(m[2]);
26
+ return {
27
+ indent: m[1].length,
28
+ ordered,
29
+ // Items belong to one list while their bullet or delimiter is the same.
30
+ kind: ordered ? m[2].slice(-1) : m[2],
31
+ start: ordered ? parseInt(m[2], 10) : 1,
32
+ width: m[1].length + m[2].length,
33
+ pad: m[3] === void 0 ? 0 : m[3] === " " ? 1 : m[3].length,
34
+ rest: m[4] ?? ""
35
+ };
36
+ }
37
+ function interrupts(line) {
38
+ if (fenceOpen(line) || HEADING.test(line) || HR.test(line) || QUOTE.test(line)) return true;
39
+ const marker = listMarker(line);
40
+ return !!marker && marker.rest.trim() !== "" && (!marker.ordered || marker.start === 1);
41
+ }
42
+ function splitRow(line) {
43
+ let s = line.trim();
44
+ if (s.startsWith("|")) s = s.slice(1);
45
+ if (s.endsWith("|") && !s.endsWith("\\|")) s = s.slice(0, -1);
46
+ const cells = [];
47
+ let cell = "";
48
+ for (let i = 0; i < s.length; i++) {
49
+ if (s[i] === "\\" && s[i + 1] === "|") {
50
+ cell += "|";
51
+ i++;
52
+ } else if (s[i] === "|") {
53
+ cells.push(cell.trim());
54
+ cell = "";
55
+ } else {
56
+ cell += s[i];
57
+ }
58
+ }
59
+ cells.push(cell.trim());
60
+ return cells;
61
+ }
62
+ function tableStart(lines, i) {
63
+ const line = lines[i];
64
+ if (!line.includes("|") || i + 1 >= lines.length || !TABLE_DELIMITER.test(lines[i + 1])) return null;
65
+ const head = splitRow(line);
66
+ const delimiter = splitRow(lines[i + 1]);
67
+ if (head.length !== delimiter.length) return null;
68
+ const align = delimiter.map((cell) => {
69
+ const start = cell.startsWith(":");
70
+ const end = cell.endsWith(":");
71
+ return start && end ? "center" : end ? "end" : start ? "start" : null;
72
+ });
73
+ return { head, align };
74
+ }
75
+ function parseBlocks(lines) {
76
+ const out = [];
77
+ const n = lines.length;
78
+ let i = 0;
79
+ const push = (start, block) => {
80
+ block.raw = lines.slice(start, i).join("\n");
81
+ block.sig ||= block.type;
82
+ block.from = start;
83
+ block.to = i;
84
+ out.push(block);
85
+ };
86
+ while (i < n) {
87
+ const line = lines[i];
88
+ if (isBlank(line)) {
89
+ i++;
90
+ continue;
91
+ }
92
+ const start = i;
93
+ const fence = fenceOpen(line);
94
+ if (fence) {
95
+ const body = [];
96
+ let closed = false;
97
+ i++;
98
+ while (i < n) {
99
+ const close = /^ {0,3}(`{3,}|~{3,})[ \t]*$/.exec(lines[i]);
100
+ if (close && close[1][0] === fence.char && close[1].length >= fence.length) {
101
+ closed = true;
102
+ i++;
103
+ break;
104
+ }
105
+ const l = lines[i];
106
+ body.push(l.slice(Math.min(fence.indent, indentOf(l))));
107
+ i++;
108
+ }
109
+ const language = fence.info.split(/\s+/)[0] || "";
110
+ push(start, { type: "code", sig: `code:${language}`, language, text: body.join("\n"), closed });
111
+ continue;
112
+ }
113
+ const heading = HEADING.exec(line);
114
+ if (heading) {
115
+ i++;
116
+ let text2 = (heading[2] || "").trim();
117
+ text2 = /^#+$/.test(text2) ? "" : text2.replace(/[ \t]+#+$/, "");
118
+ const level = heading[1].length;
119
+ push(start, { type: "heading", sig: `h${level}`, level, inline: parseInline(text2) });
120
+ continue;
121
+ }
122
+ if (HR.test(line)) {
123
+ i++;
124
+ push(start, { type: "hr" });
125
+ continue;
126
+ }
127
+ if (QUOTE.test(line)) {
128
+ const inner = [];
129
+ while (i < n) {
130
+ const l = lines[i];
131
+ if (QUOTE.test(l)) inner.push(l.replace(/^ {0,3}> ?/, ""));
132
+ else if (!isBlank(l) && inner.length && !isBlank(inner[inner.length - 1]) && !interrupts(l)) inner.push(l);
133
+ else break;
134
+ i++;
135
+ }
136
+ push(start, { type: "blockquote", children: parseBlocks(inner) });
137
+ continue;
138
+ }
139
+ const first = listMarker(line);
140
+ if (first) {
141
+ const items = [];
142
+ let loose = false;
143
+ while (i < n) {
144
+ const marker = listMarker(lines[i]);
145
+ if (!marker || marker.ordered !== first.ordered || marker.kind !== first.kind) break;
146
+ const pad = marker.rest === "" || marker.pad > 4 ? 1 : marker.pad;
147
+ const indent = marker.width + pad;
148
+ const itemLines = [lines[i].slice(Math.min(indent, lines[i].length))];
149
+ i++;
150
+ while (i < n) {
151
+ const l = lines[i];
152
+ if (isBlank(l)) {
153
+ let j2 = i;
154
+ while (j2 < n && isBlank(lines[j2])) j2++;
155
+ if (j2 < n && indentOf(lines[j2]) >= indent) {
156
+ for (; i < j2; i++) itemLines.push("");
157
+ continue;
158
+ }
159
+ break;
160
+ }
161
+ if (indentOf(l) >= indent) itemLines.push(l.slice(indent));
162
+ else if (listMarker(l) || interrupts(l)) break;
163
+ else if (!isBlank(itemLines[itemLines.length - 1])) itemLines.push(l.trimStart());
164
+ else break;
165
+ i++;
166
+ }
167
+ let task = false;
168
+ let checked = false;
169
+ const box = TASK.exec(itemLines[0]);
170
+ if (box) {
171
+ task = true;
172
+ checked = box[1] !== " ";
173
+ itemLines[0] = itemLines[0].slice(box[0].length);
174
+ }
175
+ const children = parseBlocks(itemLines);
176
+ for (let k = 1; k < children.length; k++) {
177
+ if (itemLines.slice(children[k - 1].to, children[k].from).some(isBlank)) loose = true;
178
+ }
179
+ items.push({
180
+ type: "item",
181
+ sig: task ? `item:task:${checked}` : "item",
182
+ raw: itemLines.join("\n"),
183
+ task,
184
+ checked,
185
+ label: itemLines[0].trim(),
186
+ children
187
+ });
188
+ let j = i;
189
+ while (j < n && isBlank(lines[j])) j++;
190
+ if (j > i && j < n) {
191
+ const next = listMarker(lines[j]);
192
+ if (next && next.ordered === first.ordered && next.kind === first.kind) {
193
+ loose = true;
194
+ i = j;
195
+ }
196
+ }
197
+ }
198
+ push(start, {
199
+ type: "list",
200
+ sig: `list:${first.ordered ? `o${first.start}` : "u"}:${loose ? "loose" : "tight"}`,
201
+ ordered: first.ordered,
202
+ start: first.start,
203
+ loose,
204
+ children: items
205
+ });
206
+ continue;
207
+ }
208
+ const table = tableStart(lines, i);
209
+ if (table) {
210
+ i += 2;
211
+ const rows = [];
212
+ while (i < n && !isBlank(lines[i]) && !interrupts(lines[i])) {
213
+ const cells = splitRow(lines[i]);
214
+ rows.push(table.head.map((_, c) => parseInline(cells[c] ?? "")));
215
+ i++;
216
+ }
217
+ push(start, { type: "table", align: table.align, head: table.head.map((cell) => parseInline(cell)), rows });
218
+ continue;
219
+ }
220
+ if (indentOf(line) >= 4) {
221
+ const body = [];
222
+ while (i < n && (isBlank(lines[i]) || indentOf(lines[i]) >= 4)) {
223
+ body.push(lines[i].slice(4));
224
+ i++;
225
+ }
226
+ while (body.length && isBlank(body[body.length - 1])) {
227
+ body.pop();
228
+ i--;
229
+ }
230
+ push(start, { type: "code", sig: "code:", language: "", text: body.join("\n"), closed: true });
231
+ continue;
232
+ }
233
+ const text = [line.trimStart()];
234
+ i++;
235
+ while (i < n && !isBlank(lines[i]) && !interrupts(lines[i]) && !tableStart(lines, i)) {
236
+ text.push(lines[i].trimStart());
237
+ i++;
238
+ }
239
+ push(start, { type: "paragraph", inline: parseInline(text.join("\n").trimEnd()) });
240
+ }
241
+ return out;
242
+ }
243
+ function parseMarkdown(source) {
244
+ const lines = String(source ?? "").replace(/\r\n?/g, "\n").replaceAll(String.fromCharCode(0), "\uFFFD").split("\n").map((line) => line.replace(/^[ \t]+/, (ws) => ws.replace(/\t/g, " ")));
245
+ return parseBlocks(lines);
246
+ }
247
+ var ASCII_PUNCTUATION = /[!-/:-@[-`{-~]/;
248
+ var PUNCTUATION = /[\p{P}\p{S}]/u;
249
+ var WHITESPACE = /\s/;
250
+ var ENTITIES = {
251
+ amp: "&",
252
+ lt: "<",
253
+ gt: ">",
254
+ quot: '"',
255
+ apos: "'",
256
+ nbsp: "\xA0",
257
+ copy: "\xA9",
258
+ reg: "\xAE",
259
+ trade: "\u2122",
260
+ hellip: "\u2026",
261
+ mdash: "\u2014",
262
+ ndash: "\u2013",
263
+ lsquo: "\u2018",
264
+ rsquo: "\u2019",
265
+ ldquo: "\u201C",
266
+ rdquo: "\u201D",
267
+ laquo: "\xAB",
268
+ raquo: "\xBB",
269
+ bull: "\u2022",
270
+ middot: "\xB7",
271
+ deg: "\xB0",
272
+ plusmn: "\xB1",
273
+ times: "\xD7",
274
+ divide: "\xF7",
275
+ larr: "\u2190",
276
+ rarr: "\u2192",
277
+ uarr: "\u2191",
278
+ darr: "\u2193",
279
+ euro: "\u20AC",
280
+ pound: "\xA3",
281
+ yen: "\xA5",
282
+ cent: "\xA2",
283
+ sect: "\xA7",
284
+ para: "\xB6",
285
+ le: "\u2264",
286
+ ge: "\u2265",
287
+ ne: "\u2260",
288
+ infin: "\u221E"
289
+ };
290
+ var ENTITY = /^&(?:#(\d{1,7})|#[xX]([0-9a-fA-F]{1,6})|([a-zA-Z][a-zA-Z0-9]{1,31}));/;
291
+ function entityAt(src, i) {
292
+ const m = ENTITY.exec(src.slice(i, i + 40));
293
+ if (!m) return null;
294
+ if (m[3]) {
295
+ return Object.hasOwn(ENTITIES, m[3]) ? { text: ENTITIES[m[3]], length: m[0].length } : null;
296
+ }
297
+ const code = m[1] ? parseInt(m[1], 10) : parseInt(m[2], 16);
298
+ const valid = code > 0 && code <= 1114111 && !(code >= 55296 && code <= 57343);
299
+ return { text: valid ? String.fromCodePoint(code) : "\uFFFD", length: m[0].length };
300
+ }
301
+ function unescape(text) {
302
+ let out = "";
303
+ for (let i = 0; i < text.length; i++) {
304
+ const ch = text[i];
305
+ if (ch === "\\" && i + 1 < text.length && ASCII_PUNCTUATION.test(text[i + 1])) {
306
+ out += text[++i];
307
+ } else if (ch === "&") {
308
+ const entity = entityAt(text, i);
309
+ if (entity) {
310
+ out += entity.text;
311
+ i += entity.length - 1;
312
+ } else out += ch;
313
+ } else out += ch;
314
+ }
315
+ return out;
316
+ }
317
+ function codeSpanEnd(src, i) {
318
+ let j = i;
319
+ while (src[j] === "`") j++;
320
+ const length = j - i;
321
+ let k = j;
322
+ while (k < src.length) {
323
+ const p = src.indexOf("`", k);
324
+ if (p < 0) return -1;
325
+ let q = p;
326
+ while (src[q] === "`") q++;
327
+ if (q - p === length) return q;
328
+ k = q;
329
+ }
330
+ return -1;
331
+ }
332
+ function bracketEnd(src, i) {
333
+ let depth = 0;
334
+ for (let k = i; k < src.length; k++) {
335
+ const ch = src[k];
336
+ if (ch === "\\") k++;
337
+ else if (ch === "`") {
338
+ const end = codeSpanEnd(src, k);
339
+ if (end > 0) k = end - 1;
340
+ else while (src[k + 1] === "`") k++;
341
+ } else if (ch === "[") depth++;
342
+ else if (ch === "]" && --depth === 0) return k;
343
+ }
344
+ return -1;
345
+ }
346
+ function linkTail(src, p) {
347
+ if (src[p] !== "(") return null;
348
+ let i = p + 1;
349
+ const skip = () => {
350
+ while (i < src.length && WHITESPACE.test(src[i])) i++;
351
+ };
352
+ skip();
353
+ let destination;
354
+ if (src[i] === "<") {
355
+ const end = src.indexOf(">", i);
356
+ if (end < 0 || src.slice(i, end).includes("\n")) return null;
357
+ destination = src.slice(i + 1, end);
358
+ i = end + 1;
359
+ } else {
360
+ const from = i;
361
+ let depth = 0;
362
+ while (i < src.length) {
363
+ const ch = src[i];
364
+ if (ch === "\\" && i + 1 < src.length) {
365
+ i += 2;
366
+ continue;
367
+ }
368
+ if (WHITESPACE.test(ch)) break;
369
+ if (ch === "(") depth++;
370
+ else if (ch === ")") {
371
+ if (!depth) break;
372
+ depth--;
373
+ }
374
+ i++;
375
+ }
376
+ destination = src.slice(from, i);
377
+ }
378
+ skip();
379
+ let title = null;
380
+ const quote = src[i];
381
+ if (quote === '"' || quote === "'" || quote === "(") {
382
+ const close = quote === "(" ? ")" : quote;
383
+ let end = i + 1;
384
+ while (end < src.length && src[end] !== close) end += src[end] === "\\" ? 2 : 1;
385
+ if (end >= src.length) return null;
386
+ title = unescape(src.slice(i + 1, end));
387
+ i = end + 1;
388
+ skip();
389
+ }
390
+ if (src[i] !== ")") return null;
391
+ return { destination: unescape(destination), title, end: i + 1 };
392
+ }
393
+ function plainText(items) {
394
+ let out = "";
395
+ for (const item of items) {
396
+ if (item.t === "text" || item.t === "code") out += item.s;
397
+ else if (item.t === "delim") out += item.ch.repeat(item.n);
398
+ else if (item.t === "br") out += " ";
399
+ else if (item.t === "img") out += item.alt;
400
+ else if (item.children) out += plainText(item.children);
401
+ }
402
+ return out;
403
+ }
404
+ function pairDelimiters(items) {
405
+ let c = 0;
406
+ while (c < items.length) {
407
+ const closer = items[c];
408
+ if (closer.t !== "delim" || !closer.close) {
409
+ c++;
410
+ continue;
411
+ }
412
+ let found = -1;
413
+ for (let o = c - 1; o >= 0; o--) {
414
+ const opener2 = items[o];
415
+ if (opener2.t !== "delim" || opener2.ch !== closer.ch || !opener2.open) continue;
416
+ if (closer.ch === "~") {
417
+ if (opener2.n !== closer.n) continue;
418
+ } else if ((opener2.close || closer.open) && (opener2.orig + closer.orig) % 3 === 0 && !(opener2.orig % 3 === 0 && closer.orig % 3 === 0)) {
419
+ continue;
420
+ }
421
+ found = o;
422
+ break;
423
+ }
424
+ if (found < 0) {
425
+ c++;
426
+ continue;
427
+ }
428
+ const opener = items[found];
429
+ const use = closer.ch === "~" ? closer.n : opener.n >= 2 && closer.n >= 2 ? 2 : 1;
430
+ const tag = closer.ch === "~" ? "del" : use === 2 ? "strong" : "em";
431
+ const children = items.splice(found + 1, c - found - 1);
432
+ items.splice(found + 1, 0, { t: "wrap", tag, children });
433
+ opener.n -= use;
434
+ closer.n -= use;
435
+ c = found + 2;
436
+ if (opener.n === 0) {
437
+ items.splice(found, 1);
438
+ c--;
439
+ }
440
+ if (closer.n === 0) items.splice(c, 1);
441
+ }
442
+ return items;
443
+ }
444
+ function parseInline(src, context = {}) {
445
+ const items = [];
446
+ let text = "";
447
+ const flush = () => {
448
+ if (text) items.push({ t: "text", s: text });
449
+ text = "";
450
+ };
451
+ const link = (url, title, children) => items.push({ t: "link", href: url.href, external: url.external, title, children });
452
+ let i = 0;
453
+ while (i < src.length) {
454
+ const ch = src[i];
455
+ if (ch === "\\") {
456
+ const next = src[i + 1];
457
+ if (next === "\n") {
458
+ flush();
459
+ items.push({ t: "br" });
460
+ i += 2;
461
+ while (src[i] === " ") i++;
462
+ } else if (next && ASCII_PUNCTUATION.test(next)) {
463
+ text += next;
464
+ i += 2;
465
+ } else {
466
+ text += ch;
467
+ i++;
468
+ }
469
+ continue;
470
+ }
471
+ if (ch === "\n") {
472
+ const hard = / {2,}$/.test(text);
473
+ text = text.replace(/ +$/, "");
474
+ if (hard) {
475
+ flush();
476
+ items.push({ t: "br" });
477
+ } else {
478
+ text += "\n";
479
+ }
480
+ i++;
481
+ while (src[i] === " ") i++;
482
+ continue;
483
+ }
484
+ if (ch === "`") {
485
+ const end = codeSpanEnd(src, i);
486
+ let open = i;
487
+ while (src[open] === "`") open++;
488
+ if (end < 0) {
489
+ text += src.slice(i, open);
490
+ i = open;
491
+ continue;
492
+ }
493
+ let code = src.slice(open, end - (open - i)).replace(/\n/g, " ");
494
+ if (code.length > 1 && code.startsWith(" ") && code.endsWith(" ") && code.trim()) code = code.slice(1, -1);
495
+ flush();
496
+ items.push({ t: "code", s: code });
497
+ i = end;
498
+ continue;
499
+ }
500
+ if (ch === "&") {
501
+ const entity = entityAt(src, i);
502
+ if (entity) {
503
+ text += entity.text;
504
+ i += entity.length;
505
+ continue;
506
+ }
507
+ }
508
+ if (ch === "<" && !context.inLink) {
509
+ const auto = /^<([a-zA-Z][a-zA-Z0-9+.-]{1,31}:[^\s<>]*)>/.exec(src.slice(i));
510
+ const mail = auto ? null : /^<([^\s<>@]+@[^\s<>@]+\.[^\s<>@]+)>/.exec(src.slice(i));
511
+ const found = auto || mail;
512
+ if (found) {
513
+ const url = safeUrl(auto ? auto[1] : `mailto:${mail[1]}`);
514
+ if (url) {
515
+ flush();
516
+ link(url, null, [{ t: "text", s: found[1] }]);
517
+ } else {
518
+ text += found[0];
519
+ }
520
+ i += found[0].length;
521
+ continue;
522
+ }
523
+ }
524
+ if (ch === "[" || ch === "!" && src[i + 1] === "[") {
525
+ const image = ch === "!";
526
+ const open = image ? i + 1 : i;
527
+ const close = image || !context.inLink ? bracketEnd(src, open) : -1;
528
+ const tail = close > 0 ? linkTail(src, close + 1) : null;
529
+ if (tail) {
530
+ const raw = src.slice(i, tail.end);
531
+ const url = safeUrl(tail.destination);
532
+ const label = src.slice(open + 1, close);
533
+ if (url && image) {
534
+ const alt = plainText(parseInline(label, { inLink: true })).trim();
535
+ if (alt) {
536
+ flush();
537
+ items.push({ t: "img", src: url.href, alt, title: tail.title });
538
+ } else {
539
+ text += raw;
540
+ }
541
+ } else if (url) {
542
+ flush();
543
+ link(url, tail.title, parseInline(label, { inLink: true }));
544
+ } else {
545
+ text += raw;
546
+ }
547
+ i = tail.end;
548
+ continue;
549
+ }
550
+ text += ch;
551
+ i++;
552
+ continue;
553
+ }
554
+ if (ch === "*" || ch === "_" || ch === "~") {
555
+ let j = i;
556
+ while (src[j] === ch) j++;
557
+ const n = j - i;
558
+ if (ch === "~" && n !== 2) {
559
+ text += src.slice(i, j);
560
+ i = j;
561
+ continue;
562
+ }
563
+ const prev = i > 0 ? src[i - 1] : " ";
564
+ const next = j < src.length ? src[j] : " ";
565
+ const prevSpace = WHITESPACE.test(prev);
566
+ const nextSpace = WHITESPACE.test(next);
567
+ const prevPunct = PUNCTUATION.test(prev);
568
+ const nextPunct = PUNCTUATION.test(next);
569
+ const left = !nextSpace && (!nextPunct || prevSpace || prevPunct);
570
+ const right = !prevSpace && (!prevPunct || nextSpace || nextPunct);
571
+ const open = ch === "_" ? left && (!right || prevPunct) : left;
572
+ const close = ch === "_" ? right && (!left || nextPunct) : right;
573
+ flush();
574
+ items.push({ t: "delim", ch, n, orig: n, open, close });
575
+ i = j;
576
+ continue;
577
+ }
578
+ if (ch === "h" && !context.inLink && (i === 0 || /[\s(*_~]/.test(src[i - 1]))) {
579
+ const bare = /^https?:\/\/[^\s<]+/.exec(src.slice(i));
580
+ if (bare) {
581
+ let address = bare[0];
582
+ for (; ; ) {
583
+ const last = address[address.length - 1];
584
+ const unbalanced = last === ")" && address.split(")").length > address.split("(").length;
585
+ if (/[?!.,:;*_~'"]/.test(last) || unbalanced) address = address.slice(0, -1);
586
+ else break;
587
+ }
588
+ const url = address.length > bare[0].indexOf("//") + 2 ? safeUrl(address) : null;
589
+ if (url) {
590
+ flush();
591
+ link(url, null, [{ t: "text", s: address }]);
592
+ i += address.length;
593
+ continue;
594
+ }
595
+ }
596
+ }
597
+ text += ch;
598
+ i++;
599
+ }
600
+ flush();
601
+ return pairDelimiters(items);
602
+ }
603
+
604
+ export {
605
+ parseMarkdown,
606
+ parseInline
607
+ };
@@ -0,0 +1,61 @@
1
+ import {
2
+ PunicaElement,
3
+ define,
4
+ uid
5
+ } from "./chunk-Y7B65FYJ.js";
6
+
7
+ // src/components/collapsible/collapsible.css
8
+ var collapsible_default = ":host {\n --punica-collapsible-duration: var(--punica-duration);\n\n display: block;\n}\n\n.content {\n display: grid;\n grid-template-rows: 0fr;\n visibility: hidden;\n transition: grid-template-rows var(--punica-collapsible-duration) var(--punica-ease),\n visibility 0s linear var(--punica-collapsible-duration);\n}\n\n:host([open]) .content {\n grid-template-rows: 1fr;\n visibility: visible;\n transition: grid-template-rows var(--punica-collapsible-duration) var(--punica-ease), visibility 0s;\n}\n\n.clip {\n min-block-size: 0;\n overflow: hidden;\n}\n\n:host([open]) .clip {\n overflow: visible;\n}\n\n::slotted([slot='trigger']:focus-visible) {\n outline: var(--punica-focus-ring);\n outline-offset: var(--punica-focus-ring-offset);\n}\n\n@media (forced-colors: active) {\n ::slotted([slot='trigger']:focus-visible) {\n outline-color: Highlight;\n }\n}\n";
9
+
10
+ // src/components/collapsible/collapsible.js
11
+ var PunicaCollapsible = class extends PunicaElement {
12
+ static properties = {
13
+ open: { type: Boolean },
14
+ disabled: { type: Boolean }
15
+ };
16
+ static styles = collapsible_default;
17
+ static template = `
18
+ <slot name="trigger"></slot>
19
+ <div part="content" class="content"><div class="clip"><slot></slot></div></div>
20
+ `;
21
+ #triggerSlot = this.$('slot[name="trigger"]');
22
+ constructor() {
23
+ super();
24
+ this.#triggerSlot.addEventListener("click", () => {
25
+ const trigger = this.#trigger;
26
+ if (this.disabled || !trigger || trigger.hasAttribute("disabled")) return;
27
+ this.open = !this.open;
28
+ this.emit("toggle", { open: this.open });
29
+ });
30
+ this.#triggerSlot.addEventListener("slotchange", () => this.requestUpdate());
31
+ }
32
+ get #trigger() {
33
+ return this.#triggerSlot.assignedElements({ flatten: true })[0] || null;
34
+ }
35
+ /** Expands the content. Fires nothing. */
36
+ show() {
37
+ this.open = true;
38
+ }
39
+ /** Collapses the content. Fires nothing. */
40
+ hide() {
41
+ this.open = false;
42
+ }
43
+ /** Expands when collapsed and collapses when expanded. Fires nothing. */
44
+ toggle() {
45
+ this.open = !this.open;
46
+ }
47
+ update() {
48
+ this.toggleState("open", this.open);
49
+ const trigger = this.#trigger;
50
+ if (trigger) {
51
+ if (!this.id) this.id = uid("punica-collapsible");
52
+ trigger.setAttribute("aria-expanded", String(this.open));
53
+ trigger.setAttribute("aria-controls", this.id);
54
+ }
55
+ }
56
+ };
57
+ define("punica-collapsible", PunicaCollapsible);
58
+
59
+ export {
60
+ PunicaCollapsible
61
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ PunicaElement,
3
+ define
4
+ } from "./chunk-Y7B65FYJ.js";
5
+
6
+ // src/components/card/cardActions.css
7
+ var cardActions_default = ":host {\n --punica-card-actions-padding: var(--punica-space-16);\n --punica-card-actions-gap: var(--punica-space-8);\n\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: var(--punica-card-actions-gap);\n padding: var(--punica-card-actions-padding);\n}\n\n:host([align='start']) {\n justify-content: flex-start;\n}\n:host([align='between']) {\n justify-content: space-between;\n}\n\n/* The browser maps an `align` attribute to text-align; here it means\n alignment of the children, so the text keeps what it inherits. */\n:host([align]) {\n text-align: inherit;\n}\n";
8
+
9
+ // src/components/card/cardActions.js
10
+ var PunicaCardActions = class extends PunicaElement {
11
+ static properties = {
12
+ align: {}
13
+ };
14
+ static styles = cardActions_default;
15
+ static template = `<slot></slot>`;
16
+ };
17
+ define("punica-card-actions", PunicaCardActions);
18
+
19
+ export {
20
+ PunicaCardActions
21
+ };
@@ -0,0 +1,6 @@
1
+ // src/components/dialog/dialog.css
2
+ var dialog_default = ":host {\n --punica-dialog-radius: var(--punica-radius);\n --punica-dialog-padding: var(--punica-padding);\n --punica-dialog-background: var(--punica-color-bg);\n --punica-dialog-backdrop: var(--punica-color-backdrop);\n --punica-dialog-shadow: var(--punica-shadow-xl);\n --punica-dialog-width: 440px;\n\n display: contents;\n}\n\n:host([size='small']) {\n --punica-dialog-width: 320px;\n}\n:host([size='large']) {\n --punica-dialog-width: 720px;\n}\n\ndialog {\n inline-size: var(--punica-dialog-width);\n max-inline-size: calc(100% - 2 * var(--punica-space-16));\n max-block-size: calc(100dvh - 2 * var(--punica-space-16));\n padding: 0;\n border: var(--punica-border-width) solid transparent;\n border-radius: var(--punica-dialog-radius);\n background: var(--punica-dialog-background);\n color: var(--punica-color-text);\n font-family: var(--punica-font-family);\n box-shadow: var(--punica-dialog-shadow);\n overflow: hidden;\n opacity: 0;\n transform: translateY(var(--punica-space-8));\n transition: opacity var(--punica-duration) var(--punica-ease),\n transform var(--punica-duration) var(--punica-ease),\n display var(--punica-duration) allow-discrete,\n overlay var(--punica-duration) allow-discrete;\n}\n\ndialog[open] {\n display: flex;\n opacity: 1;\n transform: none;\n}\n\n@starting-style {\n dialog[open] {\n opacity: 0;\n transform: translateY(var(--punica-space-8));\n }\n}\n\ndialog::backdrop {\n background: var(--punica-dialog-backdrop);\n opacity: 0;\n transition: opacity var(--punica-duration) var(--punica-ease),\n display var(--punica-duration) allow-discrete,\n overlay var(--punica-duration) allow-discrete;\n}\n\ndialog[open]::backdrop {\n opacity: 1;\n}\n\n@starting-style {\n dialog[open]::backdrop {\n opacity: 0;\n }\n}\n\ndialog:focus-visible {\n outline: var(--punica-focus-ring);\n outline-offset: calc(-1 * var(--punica-focus-ring-width));\n}\n\n.panel {\n position: relative;\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: auto minmax(0, 1fr) auto;\n grid-template-areas:\n 'header'\n 'content'\n 'footer';\n flex: 1;\n min-block-size: 0;\n padding: var(--punica-dialog-padding);\n}\n\n.close {\n all: unset;\n position: absolute;\n inset-block-start: var(--punica-space-12);\n inset-inline-end: var(--punica-space-12);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n inline-size: var(--punica-size-sm);\n block-size: var(--punica-size-sm);\n border-radius: var(--punica-radius-full);\n color: var(--punica-color-text);\n cursor: pointer;\n transition: background-color var(--punica-duration) var(--punica-ease);\n}\n\n.close:hover {\n background: var(--punica-color-hover);\n}\n\n.close:focus-visible {\n outline: var(--punica-focus-ring);\n outline-offset: var(--punica-focus-ring-offset);\n}\n\n:host([no-close-button]) .close {\n display: none;\n}\n\n:host(:not([no-close-button])) ::slotted(punica-dialog-header) {\n padding-inline-end: var(--punica-space-36);\n}\n\n@media (forced-colors: active) {\n dialog {\n border-color: CanvasText;\n }\n .close {\n border: var(--punica-border-width) solid ButtonText;\n }\n}\n";
3
+
4
+ export {
5
+ dialog_default
6
+ };