@punica/components 0.0.0-stage → 2.1.1

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 +48 -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 +8903 -0
  361. package/dist/llms.txt +288 -0
  362. package/dist/punica-components.min.js +14283 -0
  363. package/dist/tokens.css +158 -0
  364. package/dist/types/index.d.ts +6762 -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 +135 -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,261 @@
1
+ # Migrating overlays, menus and dialogs from 1.x to 2.0
2
+
3
+ 2.0 is a clean break. Every surface here now opens in the top layer (a
4
+ `popover="manual"` element or a native `<dialog>`) inside the component's own
5
+ shadow root: nothing is appended to `document.body`, no `--zindex-*` token
6
+ exists, and every listener on `document` is removed when the surface closes or
7
+ the element is disconnected.
8
+
9
+ Rules that hold for every element below:
10
+
11
+ - Booleans follow HTML: `open="false"` is open. Remove the attribute, or set
12
+ the property to `false`.
13
+ - Events are `punica-*`, bubble and are composed. No element fires `close`,
14
+ `select` or any other native-looking name any more.
15
+ - A string a person reads or hears is an attribute with an English default
16
+ (`label-close="Close"`).
17
+ - Text given through an attribute or property is rendered as text. 1.x parsed
18
+ several of them as HTML.
19
+ - 1.x tokens map as in [`MIGRATION-2.0.md`](../MIGRATION-2.0.md#tokens) (`--background-paper` →
20
+ `--punica-color-surface`, `--spacing-8` → `--punica-space-8`, …).
21
+
22
+ Removed tags: `punica-modal`, `punica-modal-header`, `punica-modal-content`,
23
+ `punica-modal-footer`, `punica-context-menu-item`,
24
+ `punica-context-menu-separator`.
25
+
26
+ New tags: `punica-menu-checkbox-item`, `punica-menu-radio-group`,
27
+ `punica-menu-radio-item`, `punica-menu-divider`, `punica-menu-group`,
28
+ `punica-hover-card`, `punica-bottom-sheet`, `punica-lightbox`,
29
+ `punica-command-palette`, `punica-command-group`, `punica-command-item`.
30
+
31
+ ---
32
+
33
+ ## punica-tooltip
34
+
35
+ | | 1.x | 2.0 |
36
+ |---|---|---|
37
+ | Tag | `punica-tooltip` | `punica-tooltip` |
38
+ | Attributes | `text` (parsed as HTML, read once at connect) | `text` (plain text, live), `open`, `side` (`block-start` default, `block-end`, `inline-start`, `inline-end`), `align` (`center` default, `start`, `end`), `delay` (ms, 300), `offset` (px, 6), `disabled` |
39
+ | Properties | `text` | one per attribute, plus `panel` (read-only) |
40
+ | Methods | none | `show()`, `hide()` |
41
+ | Events | none | `punica-open`; `punica-close` `{ reason: 'pointer' \| 'blur' \| 'escape' \| 'api' }` |
42
+ | Slots | default: the trigger | default: the trigger; `content`: the description, in place of `text` |
43
+ | Parts | none | `panel`, `text` |
44
+ | CSS custom properties | none | `--punica-tooltip-radius`, `-padding`, `-background`, `-color`, `-shadow`, `-max-width` |
45
+ | Behaviour | CSS `:hover` only, always above the trigger, clipped by any `overflow: hidden` ancestor | opens on hover after `delay` and on keyboard focus; closes on pointer leave, blur and Escape; stays while the pointer is on the tooltip; flips when there is no room |
46
+ | Accessibility | none | `role="tooltip"`; the trigger is described by the tooltip: `ariaDescribedByElements` pointing at the `content` slot's elements, or `aria-description` holding `text` (a reference from the trigger into the tooltip's shadow tree is dropped by browsers, so `text` always takes the `aria-description` path) |
47
+ | Removed | `position: relative; display: inline-block; cursor: pointer` on the host (it is `display: contents` now); HTML in `text` (use the `content` slot) | |
48
+
49
+ ## punica-menu
50
+
51
+ | | 1.x | 2.0 |
52
+ |---|---|---|
53
+ | Tag | `punica-menu` | `punica-menu` |
54
+ | Attributes | `open`, `left`, `top`, `bottom`, `width`, `height`, `placement` (the caller measured its own trigger) | `open`, `label`, `side` (`block-end` default), `align` (`start` default), `offset` (px, 4) |
55
+ | Properties | one per attribute | one per attribute, plus `anchor` (element), `point` (`{ x, y }`), `items` and `panel` (read-only) |
56
+ | Methods | `show()`, `hide()` | `show({ focus })`, `hide(reason)`, `toggle()`, `reposition()` |
57
+ | Events | `menu-item-click` `{ value: textContent, data: data-item }`; `close` | `punica-select` `{ value, item }` (cancelable: preventing it keeps the menu open); `punica-open`; `punica-close` `{ reason: 'select' \| 'escape' \| 'outside' \| 'tab' \| 'api' }` |
58
+ | Slots | default: `punica-menu-item` (cloned into `<body>`) | default: the items (never cloned); `trigger`: the menu button |
59
+ | Parts | none | `panel` |
60
+ | CSS custom properties | none (styles were injected into `<body>`) | `--punica-menu-radius`, `-padding`, `-background`, `-shadow`, `-min-width`, `-max-width`, `-max-height` |
61
+ | Keyboard | Escape | APG menu button: Enter, Space, ArrowDown, ArrowUp on the trigger open; arrows, Home, End, type-ahead; Enter and Space activate; ArrowRight / ArrowLeft open and close a submenu (mirrored in RTL); Escape closes and returns focus; Tab closes |
62
+ | Accessibility | none | `role="menu"`, named by `label` or the trigger; the trigger gets `aria-haspopup="menu"` and `aria-expanded` |
63
+ | Removed | `left`, `top`, `bottom`, `width`, `height`, `placement`; the `#menu` element and `<style>` in `<body>`; the transparent backdrop; `data-item` (use `value`, or read `detail.item`) | |
64
+
65
+ `detail.value` is the item's `value` attribute, or its text when it has none.
66
+ Events of a submenu bubble through its parents; `event.target` is the menu
67
+ they came from.
68
+
69
+ ## punica-menu-item
70
+
71
+ | | 1.x | 2.0 |
72
+ |---|---|---|
73
+ | Tag | `punica-menu-item` | `punica-menu-item` |
74
+ | Attributes | `value`, `disabled`, `role` (written by the element), `aria-disabled` | `value`, `disabled` |
75
+ | Properties | `value`, `disabled` | `value`, `disabled`, `submenu` and `labelText` (read-only) |
76
+ | Events | native `click` on a clone | none of its own; the menu fires `punica-select` |
77
+ | Slots | default | default: label; `start`; `end` (a shortcut); `submenu`: a `punica-menu` this item opens |
78
+ | Parts | none | `label`, `submenu-icon` |
79
+ | CSS custom properties | none | `--punica-menu-item-radius`, `-padding`, `-highlight` |
80
+ | States | none | `:state(has-submenu)`, `:state(submenu-open)` |
81
+ | Accessibility | `role="menuitem"` attribute | `role` through ElementInternals; `aria-haspopup` and `aria-expanded` for a submenu; a disabled item is skipped by the keyboard |
82
+
83
+ ### New siblings
84
+
85
+ | Tag | Attributes | Events | Slots | Parts / CSS |
86
+ |---|---|---|---|---|
87
+ | `punica-menu-checkbox-item` | `checked`, `value`, `disabled` | `punica-change` `{ value, checked }`, then the menu's `punica-select` | default, `start`, `end` | `indicator`, `label`; `--punica-menu-checkbox-item-indicator-color`; `:state(checked)` |
88
+ | `punica-menu-radio-group` | `value`, `label` | `punica-change` `{ value }` | default: radio items | `label` |
89
+ | `punica-menu-radio-item` | `value`, `checked`, `disabled` | none; the group fires `punica-change` | default, `start`, `end` | `indicator`, `label`; `--punica-menu-radio-item-indicator-color`; `:state(checked)` |
90
+ | `punica-menu-group` | `label` | none | default: items | `label` |
91
+ | `punica-menu-divider` | none | none | none | `--punica-menu-divider-color` |
92
+
93
+ ## punica-context-menu
94
+
95
+ | | 1.x | 2.0 |
96
+ |---|---|---|
97
+ | Tag | `punica-context-menu` with `punica-context-menu-item` and `punica-context-menu-separator` | `punica-context-menu` with `punica-menu-item` and its siblings, each given `slot="menu"` |
98
+ | Target | `target="<selector>"`, resolved against the document | the default slot: wrap the area in the element |
99
+ | Attributes | `target`, `disabled` | `label`, `open`, `disabled` |
100
+ | Item attributes | `value`, `label`, `icon` (parsed as HTML), `keyboard`, `disabled` | `punica-menu-item`: `value`, `disabled`; label is the content, icon the `start` slot, shortcut the `end` slot |
101
+ | Methods | `openAt(x, y)`, `close()` | `showAt({ x, y })`, `hide()` |
102
+ | Events | `punica-context-menu-select` `{ value, labels, path, originalEvent }` | `punica-select` `{ value, item }` (cancelable); `punica-open`; `punica-close` `{ reason }` |
103
+ | Slots | default: the items | default: the target area; `menu`: the items |
104
+ | Parts | none | `menu` (the inner `punica-menu`), `panel` (exported) |
105
+ | CSS custom properties | `--punica-context-menu-bg`, `-color`, `-border-color`, `-radius`, `-shadow`, `-padding`, `-font`, `-min-width`, `-max-width`, `-separator-color`, `-separator-margin`, `-icon-column`, `-icon-size`, `-icon-opacity`, `-item-gap`, `-item-padding`, `-item-radius`, `-item-hover-bg`, `-item-hover-color` | the menu's: `--punica-menu-background`, `-radius`, `-shadow`, `-padding`, `-min-width`, `-max-width`, `-max-height`; the item's: `--punica-menu-item-padding`, `-radius`, `-highlight`; `--punica-menu-divider-color` |
106
+ | Opens on | `contextmenu` on the targets | `contextmenu` at the pointer; Shift+F10 and the ContextMenu key beside the focused element, focus on the first item |
107
+ | Submenus | nested `punica-context-menu-item` | a `punica-menu` in an item's `submenu` slot |
108
+ | Removed | `target`; `detail.labels`, `detail.path`, `detail.originalEvent`; the `icon` attribute; three `window` listeners (scroll, resize, pointerdown) that were never removed; closing on scroll (the menu now follows) | |
109
+
110
+ ## punica-dialog
111
+
112
+ | | 1.x | 2.0 |
113
+ |---|---|---|
114
+ | Tag | `punica-dialog`, `punica-dialog-header`, `-content`, `-footer` | the same four |
115
+ | Attributes | `open`, `width` (px), `rounded` | `open`, `label`, `size` (`small` 320px, `medium` 440px, `large` 720px), `modeless`, `no-light-dismiss`, `no-close-button`, `label-close` (`Close`) |
116
+ | Properties | `open`, `width`, `rounded` | one per attribute, plus `returnValue` (read-only) |
117
+ | Methods | none | `show()`, `hide(returnValue)`, `requestClose(reason, returnValue)` |
118
+ | Events | none | `punica-open`; `punica-request-close` `{ reason }` (cancelable); `punica-close` `{ reason: 'escape' \| 'backdrop' \| 'close-button' \| 'api', returnValue }` |
119
+ | Slots | default | default |
120
+ | Parts | none | `dialog`, `panel`, `close-button` |
121
+ | CSS custom properties | `--dialog-border-radius`, `--dialog-padding`, `--dialog-background-color`, `--dialog-backdrop-background-color` | `--punica-dialog-radius`, `--punica-dialog-padding`, `--punica-dialog-background`, `--punica-dialog-backdrop`, plus `--punica-dialog-shadow`, `--punica-dialog-width` |
122
+ | `punica-dialog-header` | a slot | `role="heading"`, `level` (2); it names the dialog unless `label` does |
123
+ | `punica-dialog-content` | a slot | scrolls; `--punica-dialog-content-padding` |
124
+ | `punica-dialog-footer` | a slot | `--punica-dialog-footer-gap` |
125
+ | Behaviour | `open` in the markup threw (showModal before connect); Escape closed the native dialog and left `open` set; a backdrop click did nothing | `open` works in markup; Escape, the backdrop and the close button keep `open` in step; focus returns to the opener; the dialog survives being moved while open |
126
+ | Removed | `width` (use `size` or `--punica-dialog-width`); `rounded` (always rounded; set `--punica-dialog-radius: 0` for square corners) | |
127
+
128
+ ## punica-modal → punica-dialog
129
+
130
+ `punica-modal` is gone. It was a `<div>` with a hand-made backdrop: no focus
131
+ trap, no inert background, no Escape.
132
+
133
+ | 1.x | 2.0 |
134
+ |---|---|
135
+ | `<punica-modal>` | `<punica-dialog>` |
136
+ | `<punica-modal-header>`, `-content`, `-footer` | `<punica-dialog-header>`, `-content`, `-footer` |
137
+ | `open` | `open` |
138
+ | `rounded` | removed: always rounded; `--punica-dialog-radius` |
139
+ | `width`, `height` (any CSS length) | `size`, or `--punica-dialog-width`; height follows the content up to the viewport |
140
+ | `close` event on a backdrop click (the page had to remove `open` itself) | the dialog closes itself and fires `punica-close` `{ reason: 'backdrop', returnValue }`; prevent `punica-request-close` to keep it open, or set `no-light-dismiss` |
141
+ | `--modal-border-radius`, `--modal-padding`, `--modal-background-color`, `--modal-backdrop-background-color` | `--punica-dialog-radius`, `--punica-dialog-padding`, `--punica-dialog-background`, `--punica-dialog-backdrop` |
142
+
143
+ ## punica-drawer
144
+
145
+ | | 1.x | 2.0 |
146
+ |---|---|---|
147
+ | Tag | `punica-drawer` | `punica-drawer` |
148
+ | Attributes | `open`, `direction` (`left`, `right`, `top`, `bottom`), `size` (`small`, `medium`, `large`, `xlarge`, `2xlarge`, `fullSize`), `customsize`, `rounded` | `open`, `label`, `side` (`inline-end` default, `inline-start`, `block-start`, `block-end`), `size` (`small` 480px, `medium` 600px, `large` 900px), `no-light-dismiss`, `no-close-button`, `label-close` (`Close`) |
149
+ | Properties | one per attribute | one per attribute, plus `returnValue` (read-only) |
150
+ | Methods | none | `show()`, `hide(returnValue)`, `requestClose(reason, returnValue)` |
151
+ | Events | `close` on Escape or a backdrop click: a request, the page removed `open` itself | `punica-open`; `punica-request-close` `{ reason }` (cancelable); `punica-close` `{ reason: 'escape' \| 'backdrop' \| 'close-button' \| 'api', returnValue }`. The drawer closes itself |
152
+ | Slots | default | default: the body; `header`: the title, which names the drawer; `footer` |
153
+ | Parts | none | `dialog`, `header`, `body`, `footer`, `close-button` |
154
+ | CSS custom properties | `--drawer-background-color`, `--drawer-border-radius` | `--punica-drawer-background`, `--punica-drawer-radius` (0 by default), plus `--punica-drawer-size`, `-padding`, `-backdrop`, `-shadow` |
155
+ | Behaviour | a fixed `<div>`; a `document` keydown listener while closed; wrote `document.body.style.overflow` | a native `<dialog>` with `showModal()`: focus trap, inert page, Escape; no listener outside its shadow tree; the page's styles are not touched |
156
+ | Removed | `direction` (`left` → `inline-start`, `right` → `inline-end`, `top` → `block-start`, `bottom` → `block-end`); `customsize`, `xlarge`, `2xlarge`, `fullSize` (set `--punica-drawer-size`); `rounded` (set `--punica-drawer-radius`); the scroll lock on `<body>` | |
157
+
158
+ ## punica-toast
159
+
160
+ | | 1.x | 2.0 |
161
+ |---|---|---|
162
+ | Tag | `punica-toast` | `punica-toast` |
163
+ | Attributes | `title`, `message`, `variant` (`info`, `success`, `warning`, `error`, `neutral`), `duration` (ms; absent = stays), `dismissible`, `enter-from`, `leaving` | `color` (`neutral` default, `primary`, `secondary`, `error`, `warning`, `info`, `success`), `duration` (ms, 5000; 0 = stays), `no-close-button`, `label-close` (`Close`) |
164
+ | Content | `title` and `message` attributes | the default slot |
165
+ | Methods | `hide()` | `dismiss()` (fires nothing) |
166
+ | Properties | one per attribute | one per attribute, plus `paused` (read-only) |
167
+ | Events | `toast-close` after the exit animation | `punica-dismiss` `{ reason: 'user' \| 'timeout' }` when it starts to leave |
168
+ | Slots | none | default: the message; `start`: an icon; `action`: a button |
169
+ | Parts | none | `base`, `message`, `close-button`, `progress` |
170
+ | CSS custom properties | `--toast-border-radius`, `--toast-padding`, `--toast-duration`, `--toast-background`, `--toast-color` | `--punica-toast-radius`, `--punica-toast-padding`, `--punica-toast-background`, `--punica-toast-color`, plus `--punica-toast-shadow`, `--punica-toast-max-width`; the exit takes `--punica-duration-slow` |
171
+ | States | `[leaving]` attribute | `:state(leaving)`, `:state(paused)` |
172
+ | Behaviour | the countdown ran on an untracked timer and did not pause | pauses while hovered or focused; Escape on a focused toast dismisses it; the timer stops when the toast is removed |
173
+ | Removed | `title` (put a `<strong>` in the message); `message`; `variant` (→ `color`); `dismissible` (the close button shows unless `no-close-button`); `enter-from` | |
174
+
175
+ ## punica-toaster
176
+
177
+ | | 1.x | 2.0 |
178
+ |---|---|---|
179
+ | Tag | `punica-toaster` | `punica-toaster` |
180
+ | Attributes | none | `position` (`block-end-end` default, `block-end-center`, `block-end-start`, `block-start-end`, `block-start-center`, `block-start-start`), `label` (`Notifications`) |
181
+ | Methods | `push({ title, message, variant, duration, dismissible, placement })` | `add(message, { color, duration, labelClose, noCloseButton })` |
182
+ | Global | `window.Toast.show(options)`, `window.Toast.ensure()` | `import { toast } from '@punica/components'`: `toast(message, { color, duration, labelClose, noCloseButton, toaster })` returns the `punica-toast` |
183
+ | Slots | none (six fixed regions in the shadow tree) | default: the toasts |
184
+ | Parts | none | `region` |
185
+ | CSS custom properties | none | `--punica-toaster-gap`, `--punica-toaster-offset` |
186
+ | Placement | `placement` per toast: `top-left`, `top-center`, `top-right`, `bottom-left`, `bottom-center`, `bottom-right` | `position` on the toaster: `top` → `block-start`, `bottom` → `block-end`, `left` → `start`, `right` → `end`; use one toaster per position |
187
+ | Accessibility | none | `role="region"`, `aria-live="polite"`, named by `label`; in the top layer through `popover="manual"` only while it holds a toast |
188
+ | Removed | `window.Toast`; `push()`; `--zindex-popover`; a full-viewport fixed host | |
189
+
190
+ `toast()` uses the first `punica-toaster` in the document. When the page has
191
+ none it creates one and appends it to `<body>`; put a `<punica-toaster>` in
192
+ the page to choose where it lives.
193
+
194
+ ## punica-split-button
195
+
196
+ | | 1.x | 2.0 |
197
+ |---|---|---|
198
+ | Tag | `punica-split-button` holding a `punica-menu` | `punica-split-button` holding `punica-menu-item` children with `slot="menu"` |
199
+ | Attributes | `open`, `placement`, `disabled`, `variant`, `size`, `color`, `rounded`, `fullwidth`, `label`, `icon` | `variant`, `color`, `size`, `disabled`, `full-width`, `label` (accessible name of the primary button), `label-menu` (`More options`) |
200
+ | Properties | one per attribute | one per attribute, plus `menu` (the inner `punica-menu`, read-only) |
201
+ | Methods | `openMenu()`, `close()`, `toggle()` | `focus()`; `menu.show()`, `menu.hide()`, `menu.toggle()` |
202
+ | Events | `primary-click`; `select` `{ value: textContent, data }` | `punica-action` `{}`; `punica-select` `{ value, item }` (cancelable); `punica-open`; `punica-close` `{ reason }` |
203
+ | Slots | `label`: the primary label; default: a `punica-menu` | default: the primary label; `menu`: the items |
204
+ | Parts | none | `base`, `primary`, `toggle`, `menu` |
205
+ | CSS custom properties | none | `--punica-split-button-radius`, `-height`, `-padding` |
206
+ | Accessibility | a toggle button with a fixed English `aria-label` | two native buttons in a `role="group"`; the menu button has `aria-haspopup="menu"`, `aria-expanded` and its name from `label-menu` |
207
+ | Removed | `open` and `placement` (use `menu.open`, `menu.side`, `menu.align`); `rounded`; `icon`; `fullwidth` (→ `full-width`); the `label` slot (→ default slot) | |
208
+
209
+ ---
210
+
211
+ ## New in 2.0
212
+
213
+ ### punica-hover-card
214
+
215
+ | | |
216
+ |---|---|
217
+ | Attributes | `label`, `open`, `side` (`block-end`), `align` (`start`), `delay` (ms, 400), `close-delay` (ms, 200), `offset` (px, 8), `disabled` |
218
+ | Methods | `show()`, `hide()` |
219
+ | Events | `punica-open`; `punica-close` `{ reason: 'pointer' \| 'blur' \| 'escape' \| 'api' }` |
220
+ | Slots | `trigger`; default: the panel's content |
221
+ | Parts | `panel` |
222
+ | CSS custom properties | `--punica-hover-card-radius`, `-padding`, `-background`, `-shadow`, `-max-width` |
223
+
224
+ ### punica-bottom-sheet
225
+
226
+ | | |
227
+ |---|---|
228
+ | Attributes | `label`, `open`, `snap-points` (fractions of the viewport, `0.5 0.9`), `snap` (index, 0), `no-light-dismiss`, `label-handle` (`Sheet height`) |
229
+ | Methods | `show()`, `hide(returnValue)`, `requestClose(reason, returnValue)` |
230
+ | Events | `punica-open`; `punica-change` `{ value }` (the new `snap`); `punica-request-close` `{ reason }` (cancelable); `punica-close` `{ reason: 'escape' \| 'backdrop' \| 'drag' \| 'handle' \| 'api', returnValue }` |
231
+ | Slots | default: the body; `header`; `footer` |
232
+ | Parts | `dialog`, `handle`, `header`, `body`, `footer` |
233
+ | CSS custom properties | `--punica-bottom-sheet-radius`, `-padding`, `-background`, `-backdrop`, `-shadow`, `-max-width` |
234
+
235
+ ### punica-lightbox
236
+
237
+ | | |
238
+ |---|---|
239
+ | Attributes | `label`, `open`, `index` (0), `no-light-dismiss`, `label-close` (`Close`), `label-previous` (`Previous image`), `label-next` (`Next image`) |
240
+ | Properties | `items` (`{ src, alt, caption }[]`), `length` and `returnValue` (read-only) |
241
+ | Methods | `show()`, `hide(returnValue)`, `requestClose(reason, returnValue)`, `previous()`, `next()` |
242
+ | Events | `punica-open`; `punica-change` `{ index }`; `punica-request-close` `{ reason }` (cancelable); `punica-close` `{ reason: 'escape' \| 'backdrop' \| 'close-button' \| 'api', returnValue }` |
243
+ | Slots | default: thumbnails, `<img>` elements or buttons holding one; an image may carry `data-full` and `data-caption` |
244
+ | Parts | `dialog`, `figure`, `image`, `caption`, `counter`, `previous-button`, `next-button`, `close-button` |
245
+ | CSS custom properties | `--punica-lightbox-background`, `-color`, `-control-background`, `-padding`, `-radius` |
246
+
247
+ ### punica-command-palette, punica-command-group, punica-command-item
248
+
249
+ | | |
250
+ |---|---|
251
+ | Palette attributes | `label`, `open`, `placeholder`, `no-light-dismiss` |
252
+ | Palette properties | `query`, `items` (read-only), `activeItem` (read-only), `returnValue` (read-only) |
253
+ | Palette methods | `show()`, `hide(returnValue)`, `requestClose(reason, returnValue)` |
254
+ | Palette events | `punica-open`; `punica-input` `{ value }`; `punica-select` `{ value, item }` (cancelable); `punica-request-close` `{ reason }` (cancelable); `punica-close` `{ reason: 'select' \| 'escape' \| 'backdrop' \| 'api', returnValue }` |
255
+ | Palette slots | default: items and groups; `empty`: shown when nothing matches |
256
+ | Palette parts | `dialog`, `search`, `input`, `list`, `empty` |
257
+ | Palette CSS custom properties | `--punica-command-palette-radius`, `-background`, `-backdrop`, `-shadow`, `-width`, `-max-height` |
258
+ | Group | `label`; part `label`; `:state(filtered-out)` |
259
+ | Item attributes | `value`, `keywords`, `disabled` |
260
+ | Item slots | default: the label; `start`; `shortcut` |
261
+ | Item parts and CSS | `label`; `--punica-command-item-radius`, `-padding`, `-highlight`; `:state(active)`, `:state(filtered-out)` |
@@ -0,0 +1,194 @@
1
+ # Migrating select and the pickers from 1.x to 2.0
2
+
3
+ Nine elements: three rewritten (`punica-select`, `punica-date-picker`,
4
+ `punica-time-picker`), one renamed (`punica-select-item` → `punica-option`)
5
+ and five new. Every one that takes a value is a real form control now: it
6
+ has `name`, `disabled`, `required`, takes part in `FormData`, `form.reset()`,
7
+ `<fieldset disabled>` and constraint validation, and is named by `label` or
8
+ by a `<label for>`.
9
+
10
+ Shared across the package:
11
+
12
+ - Events are `punica-*` and carry `detail`. A value set from code fires nothing.
13
+ - `size` is `small | medium | large` (28 / 36 / 44 px from the tokens; 1.x was 32 / 40 / 48).
14
+ - `full-width` replaces `fullwidth`.
15
+ - A floating list or calendar is a `popover="manual"` panel in the element's own shadow root, in the top layer. Nothing is appended to `document.body` and no z-index token is read.
16
+ - Custom states: `:state(open)`, `:state(disabled)`, `:state(user-invalid)` (invalid after the user touched the field), plus `:state(valid)` / `:state(invalid)` from the form mixin.
17
+ - 1.x tokens map as in [`MIGRATION-2.0.md`](../MIGRATION-2.0.md#tokens).
18
+
19
+ ## `punica-select`
20
+
21
+ | | 1.x | 2.0 |
22
+ |---|---|---|
23
+ | Tag | `punica-select` | `punica-select` |
24
+ | Options | `punica-select-item` children, registered by calling `parent.itemAdd()` | `punica-option` children, read from the default slot |
25
+ | `value` attribute | the current value, rewritten on every pick | the **default** value; space-separated with `multiple`; an option with `selected` in the markup is a default too |
26
+ | `value` property | string, mirrors the attribute | current value: `string \| null`, or `string[]` with `multiple` |
27
+ | `multiple` | none | new |
28
+ | `placeholder` | `placeholder` | `placeholder` |
29
+ | `clearbutton` / `clear-button` + `clear` slot | consumer supplied the button | `clearable`; the button is built in and named by `label-clear` (default `Clear`) |
30
+ | `label` | none (no accessible name) | `label`, or a `<label for>` |
31
+ | `open` | none; `show()` / `hide()` methods | `open` attribute and property; `show()` / `hide()` kept |
32
+ | `disabled` | attribute, `pointer-events: none` | real: native button disabled, left out of `FormData`, follows `<fieldset disabled>` |
33
+ | `name`, `required` | none | new |
34
+ | `size` | `small \| medium \| large` | same names, token heights |
35
+ | `fullwidth` | `fullwidth` | `full-width` |
36
+ | `error` | `error` attribute coloured the border | removed: use `required` / `setCustomValidity()`; style `:state(user-invalid)` |
37
+ | `rounded` | attribute turned the radius on | removed: always rounded; set `--punica-select-radius: 0` for square |
38
+ | `loading` + `preload` slot | consumer supplied a spinner | removed |
39
+ | `adornment` attribute, `adornment` slot | leading content | slot `start` |
40
+ | `caret` slot | consumer supplied the chevron | removed: built in, `part="caret"` |
41
+ | `minimumtargetwidth` | list at least as wide as the field | removed: always so |
42
+ | `selecteditemdisplayitem` | selector of a node inside the item whose `innerHTML` was copied into the field | removed: the field shows the option's `label`, or its text, by `textContent` |
43
+ | Event: change | `change` `{ value }` | `punica-change` `{ value }` (string, array, or null after a clear) |
44
+ | Event: open | none | `punica-open` |
45
+ | Event: close | `close`, no detail | `punica-close` `{ reason }`: `select \| escape \| outside \| blur \| api` |
46
+ | Keyboard | Escape only | APG select-only combobox: Enter / Space / ArrowDown / ArrowUp open, arrows, Home, End, PageUp, PageDown, type-ahead, Enter or Space selects, Alt+ArrowUp selects and closes, Escape closes, Tab selects and moves on |
47
+ | Roles | none | `button[role=combobox]` with `aria-expanded`, `aria-controls`, `aria-activedescendant` (element reflection); `role=listbox`; options `role=option` with `aria-selected` |
48
+ | Parts | none | `field`, `trigger`, `value`, `clear`, `caret`, `listbox` |
49
+ | CSS custom properties | `--select-border-radius`, `--select-border-color` | `--punica-select-radius`, `--punica-select-border-color`, plus `--punica-select-height`, `-padding`, `-background`, `-min-width`, `-listbox-max-height` |
50
+ | Getters | none | `options`, `selectedOptions` |
51
+
52
+ Removed outright: the `div#select` and `<style>` appended to `document.body`
53
+ under a global id (two open selects shared them), the copy of an option's
54
+ `innerHTML` into the shadow tree, the override of
55
+ `HTMLElement.prototype.click`, the transparent full-page backdrop,
56
+ `itemAdd()`, `setSelectedItemContent()`, `updateContent()`, `fireOnChange()`,
57
+ `fireOnClose()`.
58
+
59
+ ## `punica-option` (was `punica-select-item`)
60
+
61
+ | | 1.x | 2.0 |
62
+ |---|---|---|
63
+ | Tag | `punica-select-item` | `punica-option` |
64
+ | Used by | `punica-select` | `punica-select`, `punica-autocomplete`, `punica-tokenizer` |
65
+ | `value` | attribute and property | same; when absent the row's text is the value |
66
+ | `label` | none | new: text used for display and filtering; defaults to the text content |
67
+ | `selected` | set by the select | same; in markup it marks the default selection |
68
+ | `disabled` | none | new |
69
+ | `active` | none | property set by the parent for the keyboard-highlighted row; `:state(active)`, no attribute |
70
+ | Slots | default | default, `start`, `end` |
71
+ | Events | none; the select listened for `click` | none; the parent still listens for `click` |
72
+ | Roles | none | `role=option`, `aria-selected`, `aria-disabled` through ElementInternals |
73
+ | Parts | none | `label`, `check` |
74
+ | CSS custom properties | none | `--punica-option-padding`, `--punica-option-active-background`, `--punica-option-selected-background` |
75
+ | Getters | none | `text`, `optionValue` |
76
+ | Removed | calling `parentElement.itemAdd(this)` on connect | the row no longer knows its parent |
77
+
78
+ ## `punica-date-picker`
79
+
80
+ | | 1.x | 2.0 |
81
+ |---|---|---|
82
+ | Tag | `punica-date-picker` | `punica-date-picker` |
83
+ | `value` | getter only, read from the attribute; a Unix-seconds `data-date` inside | attribute is the default, property is the current value; ISO `yyyy-mm-dd` or null |
84
+ | `minDate` / `maxDate` | getters over `minDate` / `maxDate` attributes | `min` / `max`, ISO dates; also checked on typed input (`rangeUnderflow` / `rangeOverflow`) |
85
+ | `timezone` | attribute, with a `setHours(3)` workaround | removed: the value is a calendar date and never passes through local time |
86
+ | `locale` | none; English month and day names hard-coded | `locale`, else the nearest `lang`, else the browser's; names and order from `Intl` |
87
+ | `open` | attribute | attribute and property; `show()` / `hide()` |
88
+ | `placeholder`, `label`, `name`, `disabled`, `readonly`, `required`, `size`, `full-width` | none (placeholder was a fixed `Lorem Ipsum...`) | new |
89
+ | Typing | not parsed | parsed in the language's own day / month / year order, or as ISO; text that is not a date stays and sets `badInput` |
90
+ | `disabledDates` | none | function property `(iso) => boolean` |
91
+ | Button labels | none | `label-toggle` (default `Choose date`), `label-previous-month`, `label-next-month`, `label-previous-year`, `label-next-year` |
92
+ | Slots | `endAdornment` (the open button), `previous-month`, `next-month` | `start`; the three buttons are built in |
93
+ | Event: change | none | `punica-change` `{ value }` |
94
+ | Events: surface | none | `punica-open`, `punica-close` `{ reason }` |
95
+ | Keyboard | none | ArrowDown in the input opens the calendar; the calendar's own grid keys; Escape closes; Enter in the input commits and submits the form |
96
+ | Parts | none | `field`, `input`, `toggle`, `panel`, `calendar` |
97
+ | CSS custom properties | none | `--punica-date-picker-radius`, `-height`, `-padding`, `-border-color`, `-background`, `-min-width`, `-panel-padding` |
98
+ | Getters | none | `calendar` (the inner `punica-calendar`) |
99
+ | Removed | composing `punica-input` and `punica-paper`; the listener that was added in `disconnectedCallback`; the `handle*` methods | |
100
+
101
+ ## `punica-time-picker`
102
+
103
+ | | 1.x | 2.0 |
104
+ |---|---|---|
105
+ | Tag | `punica-time-picker` | `punica-time-picker` |
106
+ | Shape | AM / PM toggle with hour and minute steppers; opened itself on connect | a text input (a combobox) with a list of times |
107
+ | `value` | none | attribute is the default, property is the current value; 24-hour `HH:mm` or null |
108
+ | `step` | none (one minute per click) | minutes between listed times, default 30; any minute can still be typed |
109
+ | `min` / `max` | none | `HH:mm`; the list is cut to them and typed input is checked |
110
+ | 12 / 24 hour | always 12-hour with English AM / PM | from `locale` / `lang` through `Intl` |
111
+ | `open` | attribute | attribute and property; `show()` / `hide()` |
112
+ | `placeholder`, `label`, `name`, `disabled`, `readonly`, `required`, `size`, `full-width`, `locale` | none | new |
113
+ | Slots | `endAdornment`, `hour-up`, `hour-down`, `minutes-up`, `minutes-down` | `start` |
114
+ | Events | none | `punica-change` `{ value }`, `punica-open`, `punica-close` `{ reason }` |
115
+ | Keyboard | none | ArrowDown / ArrowUp open and move, PageUp / PageDown, Enter selects, Escape closes, Enter in the closed field submits the form |
116
+ | Parts | none | `field`, `input`, `toggle`, `listbox`, `option` |
117
+ | CSS custom properties | none | `--punica-time-picker-radius`, `-height`, `-padding`, `-border-color`, `-background`, `-min-width`, `-listbox-max-height` |
118
+ | Removed | `incrementHour()`, `decrementHour()`, `incrementMinutes()`, `decrementMinutes()`; composing `punica-input`, `punica-paper`, `punica-toggle-button-group`, `punica-typography` | |
119
+
120
+ ## `punica-calendar` (new)
121
+
122
+ The month grid that was private to the 1.x date picker.
123
+
124
+ | | 1.x | 2.0 |
125
+ |---|---|---|
126
+ | Tag | none (markup inside `punica-date-picker`) | `punica-calendar` |
127
+ | Attributes | | `value`, `min`, `max`, `locale`, `first-day-of-week` (0 Sunday to 6 Saturday; from the locale by default), `range`, `value-start`, `value-end`, `disabled`, `label`, `label-previous-month`, `label-next-month`, `label-previous-year`, `label-next-year` |
128
+ | Properties | | the same, plus `disabledDates` (`(iso) => boolean`) and read-only `month` (`yyyy-mm`) |
129
+ | Methods | | `showDate(iso)`, `focus()` |
130
+ | Events | | `punica-change` `{ value }`; with `range`: `punica-input` `{ value, valueStart, valueEnd: null }` after the first pick and `punica-change` `{ value: 'start/end', valueStart, valueEnd }` after the second; `punica-select` `{ value, item }` on every activated day |
131
+ | Keyboard | click only | APG date grid: arrows by day and week, Home / End of the week, PageUp / PageDown month, Shift+PageUp / PageDown year, Enter / Space select; one day in the tab order |
132
+ | Roles | buttons in a `div` | `table[role=grid]`, `td[role=gridcell]` with `aria-selected`, `aria-disabled`, `aria-current="date"` and the full date as its name |
133
+ | Slots | `previous-month`, `next-month` on the date picker | none |
134
+ | Parts | | `header`, `title`, `nav`, `grid`, `weekday`, `day` (with `today`, `selected`, `outside`, `in-range`, `range-start`, `range-end`, `disabled`) |
135
+ | CSS custom properties | | `--punica-calendar-day-size`, `--punica-calendar-gap`, `--punica-calendar-accent`, `--punica-calendar-range-background` |
136
+
137
+ ## `punica-date-range-input` (new)
138
+
139
+ | | 2.0 |
140
+ |---|---|
141
+ | Tag | `punica-date-range-input` |
142
+ | Attributes | `value-start`, `value-end` (defaults), `min`, `max`, `locale`, `label`, `label-start` (`Start date`), `label-end` (`End date`), `placeholder-start`, `placeholder-end`, `open`, `name`, `disabled`, `readonly`, `required`, `size`, `full-width`, `label-toggle` (`Choose dates`), the four calendar navigation labels |
143
+ | Properties | `valueStart`, `valueEnd` (current), read-only `value` (`start/end` or null), `disabledDates`, `calendar` |
144
+ | Form | two entries: `<name>-start` and `<name>-end`; `required` needs both; an end before the start is `rangeUnderflow` |
145
+ | Events | `punica-change` `{ value, valueStart, valueEnd }`; `punica-input` with `valueEnd: null` after the first pick on the calendar; `punica-open`; `punica-close` `{ reason }` |
146
+ | Slots | `start` |
147
+ | Parts | `field`, `input`, `start`, `end`, `separator`, `toggle`, `panel`, `calendar` |
148
+ | CSS custom properties | `--punica-date-range-input-radius`, `-height`, `-padding`, `-border-color`, `-background`, `-min-width`, `-panel-padding` |
149
+
150
+ ## `punica-date-time-input` (new)
151
+
152
+ | | 2.0 |
153
+ |---|---|
154
+ | Tag | `punica-date-time-input` |
155
+ | Composition | a `punica-date-picker` and a `punica-time-picker` in its shadow root |
156
+ | Attributes | `value` (default, ISO local `yyyy-mm-ddTHH:mm`), `min`, `max` (date-times), `step`, `locale`, `label`, `label-date` (`Date`), `label-time` (`Time`), `placeholder-date`, `placeholder-time`, `name`, `disabled`, `readonly`, `required`, `size`, `full-width`, `label-toggle`, the four calendar navigation labels |
157
+ | Properties | `value` (current; null until both parts are filled) |
158
+ | Form | one entry; a filled date with an empty time, or the reverse, is `badInput` |
159
+ | Events | `punica-change` `{ value }`; `punica-open` / `punica-close` from whichever part opened |
160
+ | Slots | none |
161
+ | Parts | `group`, `date`, `time` |
162
+ | CSS custom properties | `--punica-date-time-input-gap`; the two parts take their own properties through `::part(date)` and `::part(time)` |
163
+
164
+ ## `punica-autocomplete` (new)
165
+
166
+ | | 2.0 |
167
+ |---|---|
168
+ | Tag | `punica-autocomplete` |
169
+ | Attributes | `value` (default), `placeholder`, `label`, `open`, `free-text`, `no-filter`, `clearable`, `label-clear` (`Clear`), `name`, `disabled`, `readonly`, `required`, `size`, `full-width` |
170
+ | Properties | `value` (current: the picked option's value, or the typed text with `free-text`), `options` (array of strings or `{ value, label?, disabled? }`) |
171
+ | Options | `punica-option` children, the `options` array, or both. The element sets `hidden` on the rows the typed text does not match |
172
+ | Remote data | listen for `punica-input`, fetch, assign `options`; add `no-filter` when the server already filtered |
173
+ | Events | `punica-input` `{ value }` (the text), `punica-change` `{ value }`, `punica-open`, `punica-close` `{ reason }`: `select \| escape \| outside \| blur \| empty \| api` |
174
+ | Keyboard | APG editable combobox with list autocomplete: typing filters, ArrowDown / ArrowUp open and move through `aria-activedescendant`, PageUp / PageDown, Enter picks, Escape closes, Alt+ArrowUp closes, Enter with no row highlighted commits and submits the form |
175
+ | Slots | default (options), `start`, `end` |
176
+ | Parts | `field`, `input`, `clear`, `listbox`, `option` |
177
+ | CSS custom properties | `--punica-autocomplete-radius`, `-height`, `-padding`, `-border-color`, `-background`, `-min-width`, `-listbox-max-height` |
178
+
179
+ ## `punica-tokenizer` (new)
180
+
181
+ | | 2.0 |
182
+ |---|---|
183
+ | Tag | `punica-tokenizer` |
184
+ | Attributes | `value` (default, a JSON array: `value='["a","b"]'`), `separator` (default `,`), `placeholder`, `label`, `label-remove` (`Remove`; the token's text follows it), `open`, `name`, `disabled`, `readonly`, `required`, `size`, `full-width` |
185
+ | Properties | `value` (current, `string[]`) |
186
+ | Form | one entry per value; `required` needs at least one |
187
+ | Adding | Enter, the separator, pasted or autofilled text split at the separator and at line breaks, a picked suggestion, text left in the input on blur. Trimmed; a duplicate is dropped |
188
+ | Removing | Backspace in the empty input removes the last token; Backspace or Delete on a focused token; the token's remove button |
189
+ | Keyboard | ArrowLeft at the start of the input goes to the last token; ArrowLeft / ArrowRight / Home walk the tokens, End returns to the input; with suggestions, ArrowDown / ArrowUp, Enter and Escape as in the autocomplete; Enter in the empty input submits the form |
190
+ | Suggestions | optional `punica-option` children; a taken one is hidden; the token shows the option's label and submits its value |
191
+ | Events | `punica-change` `{ value }`, `punica-input` `{ value }` (the text), `punica-open`, `punica-close` `{ reason }` |
192
+ | Slots | default (options), `start` |
193
+ | Parts | `field`, `tokens`, `token`, `token-label`, `remove`, `input`, `listbox` |
194
+ | CSS custom properties | `--punica-tokenizer-radius`, `-height`, `-padding`, `-border-color`, `-background`, `-min-width`, `-token-background`, `-token-radius`, `-listbox-max-height` |
package/package.json CHANGED
@@ -1,6 +1,137 @@
1
1
  {
2
2
  "name": "@punica/components",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "2.1.1",
4
+ "description": "Punica web components: framework-free custom elements on platform standards.",
5
+ "keywords": [
6
+ "web-components",
7
+ "custom-elements",
8
+ "design-system",
9
+ "ui",
10
+ "components",
11
+ "form-associated",
12
+ "accessibility",
13
+ "shadow-dom"
14
+ ],
15
+ "homepage": "https://components.punicalab.com",
16
+ "bugs": {
17
+ "url": "https://github.com/punicalab/punica-components/issues"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/punicalab/punica-components.git"
22
+ },
23
+ "license": "MIT",
24
+ "author": "PunicaLab",
25
+ "type": "module",
26
+ "main": "./dist/esm/index.js",
27
+ "module": "./dist/esm/index.js",
28
+ "types": "./dist/types/index.d.ts",
29
+ "unpkg": "./dist/punica-components.min.js",
30
+ "customElements": "custom-elements.json",
31
+ "web-types": "./dist/web-types.json",
32
+ "sideEffects": [
33
+ "./dist/**/*.js",
34
+ "*.css"
35
+ ],
36
+ "exports": {
37
+ ".": {
38
+ "types": "./dist/types/index.d.ts",
39
+ "default": "./dist/esm/index.js"
40
+ },
41
+ "./components/*": {
42
+ "types": "./dist/types/index.d.ts",
43
+ "default": "./dist/esm/components/*"
44
+ },
45
+ "./core/*": "./dist/esm/core/*",
46
+ "./tokens.css": "./dist/tokens.css",
47
+ "./react": {
48
+ "types": "./dist/types/react.d.ts"
49
+ },
50
+ "./custom-elements.json": "./custom-elements.json",
51
+ "./global": "./dist/punica-components.min.js",
52
+ "./ai": {
53
+ "types": "./dist/ai/index.d.ts",
54
+ "default": "./dist/ai/index.mjs"
55
+ },
56
+ "./ai/node": {
57
+ "types": "./dist/ai/node.d.ts",
58
+ "default": "./dist/ai/node.mjs"
59
+ },
60
+ "./llms.txt": "./dist/llms.txt",
61
+ "./llms-full.txt": "./dist/llms-full.txt",
62
+ "./vscode.html-custom-data.json": "./dist/vscode.html-custom-data.json",
63
+ "./vscode.css-custom-data.json": "./dist/vscode.css-custom-data.json",
64
+ "./web-types.json": "./dist/web-types.json"
65
+ },
66
+ "files": [
67
+ "dist",
68
+ "custom-elements.json",
69
+ "README.md",
70
+ "LICENSE",
71
+ "CHANGELOG.md",
72
+ "docs/MIGRATION-2.0.md",
73
+ "docs/contract.md",
74
+ "docs/migration",
75
+ "scripts/codemod-2.0.mjs",
76
+ "scripts/codemod-rules.mjs",
77
+ "bin",
78
+ "skills"
79
+ ],
80
+ "scripts": {
81
+ "build": "node scripts/build.mjs && npm run manifest",
82
+ "barrel": "node scripts/barrel.mjs",
83
+ "manifest": "cem analyze --config custom-elements-manifest.config.mjs && node scripts/types.mjs && node scripts/llms.mjs",
84
+ "audit": "node scripts/audit.mjs",
85
+ "lint": "eslint src scripts test bin packages/mcp/src packages/mcp/test packages/mcp/build.mjs eval",
86
+ "format": "prettier --write \"./**/*.{ts,js,mjs,json,md}\"",
87
+ "test": "vitest run && npm run test:types",
88
+ "test:types": "node --test test/types.test.mjs",
89
+ "test:watch": "vitest",
90
+ "changeset": "changeset",
91
+ "version": "changeset version",
92
+ "release": "npm run build && changeset publish",
93
+ "prepublishOnly": "npm run lint && npm test && npm run build",
94
+ "pack:check": "npm pack --dry-run",
95
+ "pretest": "npm run build",
96
+ "build:mcp": "npm --prefix packages/mcp run build",
97
+ "test:mcp": "npm --prefix packages/mcp test",
98
+ "eval": "node eval/run.mjs"
99
+ },
100
+ "engines": {
101
+ "node": ">=18"
102
+ },
103
+ "publishConfig": {
104
+ "access": "public"
105
+ },
106
+ "peerDependencies": {
107
+ "@types/react": ">=18"
108
+ },
109
+ "peerDependenciesMeta": {
110
+ "@types/react": {
111
+ "optional": true
112
+ }
113
+ },
114
+ "devDependencies": {
115
+ "@anthropic-ai/sdk": "^1.10.0",
116
+ "@changesets/cli": "^3.0.3",
117
+ "@custom-elements-manifest/analyzer": "^0.11.0",
118
+ "@eslint/js": "^9.39.5",
119
+ "@types/node": "^22.0.0",
120
+ "@vitest/browser": "^5.1.1",
121
+ "@vitest/browser-playwright": "^5.1.1",
122
+ "axe-core": "^4.14.1",
123
+ "custom-element-jet-brains-integration": "^1.8.0",
124
+ "custom-element-vs-code-integration": "^1.5.0",
125
+ "esbuild": "^0.28.2",
126
+ "eslint": "^9.39.5",
127
+ "globals": "^17.14.0",
128
+ "playwright": "^1.65.1",
129
+ "prettier": "^2.8.3",
130
+ "typescript": "^5.9.0",
131
+ "vite": "^8.3.8",
132
+ "vitest": "^5.1.1"
133
+ },
134
+ "bin": {
135
+ "punica-components": "bin/punica-components.mjs"
136
+ }
137
+ }