@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.
- package/CHANGELOG.md +48 -0
- package/LICENSE +21 -0
- package/README.md +139 -2
- package/bin/punica-components.mjs +138 -0
- package/custom-elements.json +38745 -0
- package/dist/ai/index.d.ts +39 -0
- package/dist/ai/index.mjs +615 -0
- package/dist/ai/node.d.ts +5 -0
- package/dist/ai/node.mjs +625 -0
- package/dist/esm/chunks/chunk-25RFU6B5.js +25 -0
- package/dist/esm/chunks/chunk-2EK3PZFT.js +179 -0
- package/dist/esm/chunks/chunk-2KBDCVUH.js +20 -0
- package/dist/esm/chunks/chunk-2NCRRDPI.js +151 -0
- package/dist/esm/chunks/chunk-33GO7Z32.js +40 -0
- package/dist/esm/chunks/chunk-36BKRO3B.js +281 -0
- package/dist/esm/chunks/chunk-3DWJAU5S.js +607 -0
- package/dist/esm/chunks/chunk-3GOFXBR7.js +61 -0
- package/dist/esm/chunks/chunk-3H5QEUFO.js +21 -0
- package/dist/esm/chunks/chunk-3NHCLXYC.js +6 -0
- package/dist/esm/chunks/chunk-3NQ2RVWE.js +36 -0
- package/dist/esm/chunks/chunk-3SYFLID6.js +20 -0
- package/dist/esm/chunks/chunk-3TK5BG5K.js +322 -0
- package/dist/esm/chunks/chunk-3WLKVJO4.js +36 -0
- package/dist/esm/chunks/chunk-427DCAZS.js +49 -0
- package/dist/esm/chunks/chunk-4446KGJH.js +67 -0
- package/dist/esm/chunks/chunk-45UR4HAQ.js +128 -0
- package/dist/esm/chunks/chunk-46P3CPXM.js +81 -0
- package/dist/esm/chunks/chunk-4C3AUANN.js +271 -0
- package/dist/esm/chunks/chunk-4RURT4SK.js +142 -0
- package/dist/esm/chunks/chunk-4XJKCJQG.js +166 -0
- package/dist/esm/chunks/chunk-5PKJV3JP.js +61 -0
- package/dist/esm/chunks/chunk-5SSKNOUZ.js +141 -0
- package/dist/esm/chunks/chunk-5XB5CUJU.js +18 -0
- package/dist/esm/chunks/chunk-5XQX7D2B.js +27 -0
- package/dist/esm/chunks/chunk-6A5Q3TR2.js +73 -0
- package/dist/esm/chunks/chunk-6HE2DQS5.js +29 -0
- package/dist/esm/chunks/chunk-6IWDX7AR.js +32 -0
- package/dist/esm/chunks/chunk-6LO2ITXI.js +138 -0
- package/dist/esm/chunks/chunk-6NSNMUZE.js +36 -0
- package/dist/esm/chunks/chunk-6UQOC4YG.js +61 -0
- package/dist/esm/chunks/chunk-72ANEBJJ.js +138 -0
- package/dist/esm/chunks/chunk-7JTOYPC7.js +24 -0
- package/dist/esm/chunks/chunk-7O3D52ZO.js +27 -0
- package/dist/esm/chunks/chunk-7UN7TAOI.js +39 -0
- package/dist/esm/chunks/chunk-7WEISIJL.js +123 -0
- package/dist/esm/chunks/chunk-7YAUHJR2.js +225 -0
- package/dist/esm/chunks/chunk-7ZT7WUEL.js +35 -0
- package/dist/esm/chunks/chunk-ALU2KZWS.js +177 -0
- package/dist/esm/chunks/chunk-AMVMOCUW.js +81 -0
- package/dist/esm/chunks/chunk-APPQS53K.js +81 -0
- package/dist/esm/chunks/chunk-AVTATVAG.js +410 -0
- package/dist/esm/chunks/chunk-AZMUP33Z.js +56 -0
- package/dist/esm/chunks/chunk-B32J3O2V.js +21 -0
- package/dist/esm/chunks/chunk-B7YCX5VB.js +38 -0
- package/dist/esm/chunks/chunk-BBSDD7DS.js +55 -0
- package/dist/esm/chunks/chunk-BC657356.js +93 -0
- package/dist/esm/chunks/chunk-BFRWXGP4.js +44 -0
- package/dist/esm/chunks/chunk-BYZADSVQ.js +49 -0
- package/dist/esm/chunks/chunk-CDXX27FL.js +28 -0
- package/dist/esm/chunks/chunk-CKI34FQL.js +166 -0
- package/dist/esm/chunks/chunk-CNT47W5N.js +60 -0
- package/dist/esm/chunks/chunk-CU3RW3AS.js +515 -0
- package/dist/esm/chunks/chunk-CZ3R7GRW.js +73 -0
- package/dist/esm/chunks/chunk-DLEJ74RA.js +18 -0
- package/dist/esm/chunks/chunk-DPOPZQ7A.js +150 -0
- package/dist/esm/chunks/chunk-DYXHKPQU.js +18 -0
- package/dist/esm/chunks/chunk-E3XOZZSK.js +77 -0
- package/dist/esm/chunks/chunk-EJLQD3FS.js +89 -0
- package/dist/esm/chunks/chunk-ELY5HYAI.js +45 -0
- package/dist/esm/chunks/chunk-ELY5NJBV.js +152 -0
- package/dist/esm/chunks/chunk-EWIF3VBH.js +45 -0
- package/dist/esm/chunks/chunk-F2OASWR4.js +79 -0
- package/dist/esm/chunks/chunk-F4ODKLNS.js +62 -0
- package/dist/esm/chunks/chunk-F5HKSUTX.js +127 -0
- package/dist/esm/chunks/chunk-FFH6CIAJ.js +208 -0
- package/dist/esm/chunks/chunk-FFLBSXWE.js +21 -0
- package/dist/esm/chunks/chunk-FNTBMCUQ.js +184 -0
- package/dist/esm/chunks/chunk-FYSNICNC.js +71 -0
- package/dist/esm/chunks/chunk-G2QRQLP5.js +18 -0
- package/dist/esm/chunks/chunk-G36PG2LK.js +27 -0
- package/dist/esm/chunks/chunk-G5LARXMF.js +73 -0
- package/dist/esm/chunks/chunk-GQLNLUQX.js +42 -0
- package/dist/esm/chunks/chunk-GRWYCZQZ.js +73 -0
- package/dist/esm/chunks/chunk-GSXWSHYU.js +304 -0
- package/dist/esm/chunks/chunk-GVH32USX.js +48 -0
- package/dist/esm/chunks/chunk-GW3IYQNO.js +271 -0
- package/dist/esm/chunks/chunk-H4Q2HHZA.js +151 -0
- package/dist/esm/chunks/chunk-HDHVTBGS.js +330 -0
- package/dist/esm/chunks/chunk-HK6DEJO3.js +74 -0
- package/dist/esm/chunks/chunk-HUMTZKOD.js +114 -0
- package/dist/esm/chunks/chunk-HW2CN2JV.js +118 -0
- package/dist/esm/chunks/chunk-I6WGYC6M.js +50 -0
- package/dist/esm/chunks/chunk-ICGI6UOP.js +28 -0
- package/dist/esm/chunks/chunk-IYZKVVEX.js +285 -0
- package/dist/esm/chunks/chunk-J4HTWL4Q.js +34 -0
- package/dist/esm/chunks/chunk-J6FXZP6E.js +99 -0
- package/dist/esm/chunks/chunk-JTIBDZBU.js +392 -0
- package/dist/esm/chunks/chunk-K2OIQJ36.js +23 -0
- package/dist/esm/chunks/chunk-K5D5UHVI.js +99 -0
- package/dist/esm/chunks/chunk-K753LIJX.js +157 -0
- package/dist/esm/chunks/chunk-KV4Y5ZP5.js +105 -0
- package/dist/esm/chunks/chunk-KVWZQINH.js +44 -0
- package/dist/esm/chunks/chunk-LKKKFYM4.js +106 -0
- package/dist/esm/chunks/chunk-LKPOFLSP.js +337 -0
- package/dist/esm/chunks/chunk-LSDTMST7.js +6 -0
- package/dist/esm/chunks/chunk-LUASZ5NH.js +271 -0
- package/dist/esm/chunks/chunk-LUPYODQN.js +54 -0
- package/dist/esm/chunks/chunk-M3HQENQG.js +93 -0
- package/dist/esm/chunks/chunk-MCHPBSW4.js +155 -0
- package/dist/esm/chunks/chunk-MDEV5WIN.js +25 -0
- package/dist/esm/chunks/chunk-MF2ASALV.js +194 -0
- package/dist/esm/chunks/chunk-MIUSZNAX.js +62 -0
- package/dist/esm/chunks/chunk-NINGLTB2.js +194 -0
- package/dist/esm/chunks/chunk-NLFUTVKG.js +158 -0
- package/dist/esm/chunks/chunk-NNCGUKTM.js +44 -0
- package/dist/esm/chunks/chunk-NSCGX5GB.js +408 -0
- package/dist/esm/chunks/chunk-NTIMVMDT.js +51 -0
- package/dist/esm/chunks/chunk-OBUW2HDW.js +99 -0
- package/dist/esm/chunks/chunk-OKRRNW3E.js +202 -0
- package/dist/esm/chunks/chunk-PGWADMK3.js +198 -0
- package/dist/esm/chunks/chunk-PMGKVE2V.js +30 -0
- package/dist/esm/chunks/chunk-PMLVGWVZ.js +80 -0
- package/dist/esm/chunks/chunk-PXECURYJ.js +78 -0
- package/dist/esm/chunks/chunk-Q2766HFS.js +34 -0
- package/dist/esm/chunks/chunk-Q62K7757.js +22 -0
- package/dist/esm/chunks/chunk-Q7JNV3UN.js +192 -0
- package/dist/esm/chunks/chunk-QRJKBLYH.js +43 -0
- package/dist/esm/chunks/chunk-QRZWLIUQ.js +551 -0
- package/dist/esm/chunks/chunk-RKF3ZNBC.js +25 -0
- package/dist/esm/chunks/chunk-RMJM6NWT.js +58 -0
- package/dist/esm/chunks/chunk-ROTG34TD.js +81 -0
- package/dist/esm/chunks/chunk-RQ2NYS2W.js +51 -0
- package/dist/esm/chunks/chunk-RX5HOB7L.js +187 -0
- package/dist/esm/chunks/chunk-RYOY6CGB.js +174 -0
- package/dist/esm/chunks/chunk-S2P6I4PF.js +191 -0
- package/dist/esm/chunks/chunk-SCSGRIQM.js +27 -0
- package/dist/esm/chunks/chunk-SENDWPHS.js +115 -0
- package/dist/esm/chunks/chunk-SFY6NIVM.js +106 -0
- package/dist/esm/chunks/chunk-SHEACXCO.js +67 -0
- package/dist/esm/chunks/chunk-SII4GAN2.js +302 -0
- package/dist/esm/chunks/chunk-SIUUXS2M.js +172 -0
- package/dist/esm/chunks/chunk-SLXOGLX4.js +39 -0
- package/dist/esm/chunks/chunk-ST7UASSS.js +43 -0
- package/dist/esm/chunks/chunk-SUNHM3W2.js +211 -0
- package/dist/esm/chunks/chunk-SWTIN4AS.js +43 -0
- package/dist/esm/chunks/chunk-T2FH4DTZ.js +163 -0
- package/dist/esm/chunks/chunk-TK5H2DLW.js +157 -0
- package/dist/esm/chunks/chunk-U3SSEG6P.js +31 -0
- package/dist/esm/chunks/chunk-UNQEQ3F2.js +118 -0
- package/dist/esm/chunks/chunk-UP3ZQ5S6.js +155 -0
- package/dist/esm/chunks/chunk-UQFS4FAE.js +80 -0
- package/dist/esm/chunks/chunk-UZXXUKV6.js +124 -0
- package/dist/esm/chunks/chunk-VF4NHXZG.js +33 -0
- package/dist/esm/chunks/chunk-VIGFMBQW.js +337 -0
- package/dist/esm/chunks/chunk-VJBXT6L2.js +86 -0
- package/dist/esm/chunks/chunk-VM4IKZDR.js +211 -0
- package/dist/esm/chunks/chunk-VPCWI2SH.js +18 -0
- package/dist/esm/chunks/chunk-VR225VA6.js +29 -0
- package/dist/esm/chunks/chunk-WEGQW4SS.js +285 -0
- package/dist/esm/chunks/chunk-WHXEETCS.js +80 -0
- package/dist/esm/chunks/chunk-X2XT4SYI.js +71 -0
- package/dist/esm/chunks/chunk-X6Y3S66P.js +91 -0
- package/dist/esm/chunks/chunk-XBFOPEHZ.js +86 -0
- package/dist/esm/chunks/chunk-XE74KQOC.js +18 -0
- package/dist/esm/chunks/chunk-XNMQ4SC7.js +95 -0
- package/dist/esm/chunks/chunk-XWPDELI6.js +53 -0
- package/dist/esm/chunks/chunk-XWZPKK2I.js +6 -0
- package/dist/esm/chunks/chunk-XZSAOJUV.js +83 -0
- package/dist/esm/chunks/chunk-Y5BQXWLM.js +58 -0
- package/dist/esm/chunks/chunk-Y5HOTHVK.js +22 -0
- package/dist/esm/chunks/chunk-Y7B65FYJ.js +336 -0
- package/dist/esm/chunks/chunk-YIAEOUGS.js +46 -0
- package/dist/esm/chunks/chunk-YKL6MAIV.js +208 -0
- package/dist/esm/chunks/chunk-YPH3G6P7.js +125 -0
- package/dist/esm/chunks/chunk-YSGWORUD.js +36 -0
- package/dist/esm/chunks/chunk-ZB7DQSJK.js +204 -0
- package/dist/esm/chunks/chunk-ZC7JPIL7.js +182 -0
- package/dist/esm/chunks/chunk-ZGBBW7U4.js +35 -0
- package/dist/esm/chunks/chunk-ZIQREEEI.js +210 -0
- package/dist/esm/chunks/chunk-ZJ3UIJ46.js +30 -0
- package/dist/esm/chunks/chunk-ZK6JTE6K.js +826 -0
- package/dist/esm/chunks/chunk-ZPIJWNFB.js +150 -0
- package/dist/esm/chunks/chunk-ZQVI42RW.js +136 -0
- package/dist/esm/chunks/chunk-ZWP6KATC.js +25 -0
- package/dist/esm/chunks/chunk-ZY5YHMTQ.js +88 -0
- package/dist/esm/components/accordion/accordion.js +8 -0
- package/dist/esm/components/accordion/accordionGroup.js +7 -0
- package/dist/esm/components/agenda/agenda.js +9 -0
- package/dist/esm/components/alert/alert.js +8 -0
- package/dist/esm/components/alertDialog/alertDialog.js +14 -0
- package/dist/esm/components/appBar/appBar.js +7 -0
- package/dist/esm/components/appShell/appShell.js +11 -0
- package/dist/esm/components/aspectRatio/aspectRatio.js +7 -0
- package/dist/esm/components/autocomplete/autocomplete.js +14 -0
- package/dist/esm/components/avatar/avatar.js +7 -0
- package/dist/esm/components/avatarGroup/avatarGroup.js +11 -0
- package/dist/esm/components/badge/badge.js +7 -0
- package/dist/esm/components/banner/banner.js +9 -0
- package/dist/esm/components/blockquote/blockquote.js +7 -0
- package/dist/esm/components/bottomSheet/bottomSheet.js +9 -0
- package/dist/esm/components/box/box.js +7 -0
- package/dist/esm/components/breadcrumbs/breadcrumbItem.js +8 -0
- package/dist/esm/components/breadcrumbs/breadcrumbs.js +11 -0
- package/dist/esm/components/button/button.js +8 -0
- package/dist/esm/components/buttonGroup/buttonGroup.js +7 -0
- package/dist/esm/components/calendar/calendar.js +12 -0
- package/dist/esm/components/calendar/dates.js +44 -0
- package/dist/esm/components/card/card.js +7 -0
- package/dist/esm/components/card/cardActions.js +7 -0
- package/dist/esm/components/card/cardContent.js +7 -0
- package/dist/esm/components/card/cardHeader.js +7 -0
- package/dist/esm/components/card/cardMedia.js +7 -0
- package/dist/esm/components/carousel/carousel.js +9 -0
- package/dist/esm/components/carousel/carouselItem.js +7 -0
- package/dist/esm/components/center/center.js +7 -0
- package/dist/esm/components/chat/chatComposer.js +9 -0
- package/dist/esm/components/chat/chatDictationButton.js +8 -0
- package/dist/esm/components/chat/chatLayout.js +9 -0
- package/dist/esm/components/chat/chatMessage.js +9 -0
- package/dist/esm/components/chat/chatMessageBubble.js +7 -0
- package/dist/esm/components/chat/chatMessageList.js +8 -0
- package/dist/esm/components/chat/chatMessageMetadata.js +7 -0
- package/dist/esm/components/chat/chatSystemMessage.js +7 -0
- package/dist/esm/components/chat/chatToolCall.js +9 -0
- package/dist/esm/components/chat/chatToolCalls.js +8 -0
- package/dist/esm/components/chat/slots.js +6 -0
- package/dist/esm/components/checkbox/checkbox.js +9 -0
- package/dist/esm/components/checkboxGroup/checkboxGroup.js +10 -0
- package/dist/esm/components/chip/chip.js +8 -0
- package/dist/esm/components/citation/citation.js +11 -0
- package/dist/esm/components/code/code.js +7 -0
- package/dist/esm/components/codeBlock/codeBlock.js +8 -0
- package/dist/esm/components/collapsible/collapsible.js +7 -0
- package/dist/esm/components/commandPalette/commandGroup.js +7 -0
- package/dist/esm/components/commandPalette/commandItem.js +7 -0
- package/dist/esm/components/commandPalette/commandPalette.js +10 -0
- package/dist/esm/components/complexSelector/complexOption.js +9 -0
- package/dist/esm/components/complexSelector/complexSelector.js +16 -0
- package/dist/esm/components/complexSelector/optionGroup.js +7 -0
- package/dist/esm/components/container/container.js +7 -0
- package/dist/esm/components/contextMenu/contextMenu.js +12 -0
- package/dist/esm/components/datePicker/datePicker.js +15 -0
- package/dist/esm/components/dateRangeInput/dateRangeInput.js +15 -0
- package/dist/esm/components/dateTimeInput/dateTimeInput.js +18 -0
- package/dist/esm/components/dialog/dialog.js +11 -0
- package/dist/esm/components/dialog/dialogContent.js +7 -0
- package/dist/esm/components/dialog/dialogFooter.js +7 -0
- package/dist/esm/components/dialog/dialogHeader.js +7 -0
- package/dist/esm/components/dialog/modalSurface.js +8 -0
- package/dist/esm/components/divider/divider.js +7 -0
- package/dist/esm/components/drawer/drawer.js +10 -0
- package/dist/esm/components/emptyState/emptyState.js +7 -0
- package/dist/esm/components/field/field.js +7 -0
- package/dist/esm/components/fileInput/fileInput.js +9 -0
- package/dist/esm/components/formLayout/formLayout.js +7 -0
- package/dist/esm/components/grid/col.js +7 -0
- package/dist/esm/components/grid/row.js +7 -0
- package/dist/esm/components/heading/heading.js +7 -0
- package/dist/esm/components/hidden/hidden.js +7 -0
- package/dist/esm/components/hoverCard/hoverCard.js +9 -0
- package/dist/esm/components/icon/icon.js +8 -0
- package/dist/esm/components/iconButton/iconButton.js +8 -0
- package/dist/esm/components/infoTip/infoTip.js +10 -0
- package/dist/esm/components/input/input.js +9 -0
- package/dist/esm/components/inputGroup/inputGroup.js +9 -0
- package/dist/esm/components/inputGroup/inputGroupText.js +7 -0
- package/dist/esm/components/kbd/kbd.js +7 -0
- package/dist/esm/components/lightbox/lightbox.js +10 -0
- package/dist/esm/components/link/link.js +8 -0
- package/dist/esm/components/listView/list.js +7 -0
- package/dist/esm/components/listView/listItem.js +7 -0
- package/dist/esm/components/listbox/listbox.js +9 -0
- package/dist/esm/components/listbox/listboxItem.js +8 -0
- package/dist/esm/components/markdown/markdown.js +9 -0
- package/dist/esm/components/markdown/parser.js +9 -0
- package/dist/esm/components/markdown/url.js +6 -0
- package/dist/esm/components/menu/menu.js +11 -0
- package/dist/esm/components/menu/menuCheckboxItem.js +9 -0
- package/dist/esm/components/menu/menuDivider.js +7 -0
- package/dist/esm/components/menu/menuGroup.js +7 -0
- package/dist/esm/components/menu/menuItem.js +8 -0
- package/dist/esm/components/menu/menuRadioGroup.js +7 -0
- package/dist/esm/components/menu/menuRadioItem.js +9 -0
- package/dist/esm/components/metadataList/metadataList.js +9 -0
- package/dist/esm/components/metadataList/metadataListItem.js +8 -0
- package/dist/esm/components/mobileNav/mobileNav.js +10 -0
- package/dist/esm/components/numberInput/numberInput.js +9 -0
- package/dist/esm/components/outline/outline.js +8 -0
- package/dist/esm/components/overflowList/overflowList.js +11 -0
- package/dist/esm/components/pagination/pagination.js +8 -0
- package/dist/esm/components/paper/paper.js +7 -0
- package/dist/esm/components/popover/popover.js +9 -0
- package/dist/esm/components/powerSearch/powerSearch.js +14 -0
- package/dist/esm/components/progressBar/progressBar.js +7 -0
- package/dist/esm/components/qrCode/qrCode.js +9 -0
- package/dist/esm/components/radio/radio.js +7 -0
- package/dist/esm/components/radio/radioGroup.js +10 -0
- package/dist/esm/components/scrollArea/scrollArea.js +8 -0
- package/dist/esm/components/section/section.js +8 -0
- package/dist/esm/components/segmentedControl/segmentedControl.js +12 -0
- package/dist/esm/components/segmentedControl/segmentedControlItem.js +7 -0
- package/dist/esm/components/select/field.js +18 -0
- package/dist/esm/components/select/option.js +8 -0
- package/dist/esm/components/select/select.js +14 -0
- package/dist/esm/components/selectableCard/selectableCard.js +9 -0
- package/dist/esm/components/selectableCard/selectableCardGroup.js +13 -0
- package/dist/esm/components/sideNav/sideNav.js +9 -0
- package/dist/esm/components/sideNav/sideNavItem.js +9 -0
- package/dist/esm/components/sideNav/sideNavSection.js +8 -0
- package/dist/esm/components/skeleton/skeleton.js +7 -0
- package/dist/esm/components/slider/slider.js +9 -0
- package/dist/esm/components/spinner/spinner.js +7 -0
- package/dist/esm/components/split/split.js +8 -0
- package/dist/esm/components/splitButton/splitButton.js +12 -0
- package/dist/esm/components/stack/stack.js +7 -0
- package/dist/esm/components/statusDot/statusDot.js +7 -0
- package/dist/esm/components/stepper/step.js +8 -0
- package/dist/esm/components/stepper/stepper.js +7 -0
- package/dist/esm/components/switch/switch.js +8 -0
- package/dist/esm/components/tab/tab.js +7 -0
- package/dist/esm/components/tab/tabPanel.js +7 -0
- package/dist/esm/components/tab/tabs.js +8 -0
- package/dist/esm/components/table/table.js +7 -0
- package/dist/esm/components/table/tableBody.js +7 -0
- package/dist/esm/components/table/tableCell.js +7 -0
- package/dist/esm/components/table/tableFooter.js +7 -0
- package/dist/esm/components/table/tableHeader.js +7 -0
- package/dist/esm/components/table/tableHeaderCell.js +8 -0
- package/dist/esm/components/table/tableRow.js +7 -0
- package/dist/esm/components/table/tableSelectionToolbar.js +8 -0
- package/dist/esm/components/text/text.js +7 -0
- package/dist/esm/components/textarea/textarea.js +8 -0
- package/dist/esm/components/thumbnail/thumbnail.js +8 -0
- package/dist/esm/components/timePicker/timePicker.js +15 -0
- package/dist/esm/components/timer/timer.js +7 -0
- package/dist/esm/components/timestamp/timestamp.js +7 -0
- package/dist/esm/components/toast/toast.js +8 -0
- package/dist/esm/components/toast/toaster.js +12 -0
- package/dist/esm/components/toggleButton/toggleButton.js +8 -0
- package/dist/esm/components/toggleButtonGroup/toggleButtonGroup.js +10 -0
- package/dist/esm/components/tokenizer/tokenizer.js +14 -0
- package/dist/esm/components/toolbar/toolbar.js +8 -0
- package/dist/esm/components/tooltip/tooltip.js +9 -0
- package/dist/esm/components/topNav/topNav.js +11 -0
- package/dist/esm/components/topNav/topNavItem.js +11 -0
- package/dist/esm/components/topNav/topNavMegaMenu.js +7 -0
- package/dist/esm/components/topNav/topNavMegaMenuCard.js +8 -0
- package/dist/esm/components/topNav/topNavMegaMenuGroup.js +7 -0
- package/dist/esm/components/topNav/topNavMegaMenuItem.js +7 -0
- package/dist/esm/components/tree/tree.js +8 -0
- package/dist/esm/components/tree/treeItem.js +8 -0
- package/dist/esm/components/virtualList/virtualList.js +7 -0
- package/dist/esm/components/virtualTable/virtualTable.js +9 -0
- package/dist/esm/components/visuallyHidden/visuallyHidden.js +7 -0
- package/dist/esm/core/a11y.js +22 -0
- package/dist/esm/core/element.js +14 -0
- package/dist/esm/core/form.js +6 -0
- package/dist/esm/core/overlay.js +8 -0
- package/dist/esm/index.js +779 -0
- package/dist/llms-full.txt +8903 -0
- package/dist/llms.txt +288 -0
- package/dist/punica-components.min.js +14283 -0
- package/dist/tokens.css +158 -0
- package/dist/types/index.d.ts +6762 -0
- package/dist/types/react.d.ts +1914 -0
- package/dist/vscode.css-custom-data.json +3892 -0
- package/dist/vscode.html-custom-data.json +6912 -0
- package/dist/web-types.json +12404 -0
- package/docs/MIGRATION-2.0.md +112 -0
- package/docs/contract.md +130 -0
- package/docs/migration/chat.md +309 -0
- package/docs/migration/content.md +806 -0
- package/docs/migration/data.md +140 -0
- package/docs/migration/display.md +625 -0
- package/docs/migration/form-basic.md +262 -0
- package/docs/migration/navigation.md +368 -0
- package/docs/migration/overlays.md +261 -0
- package/docs/migration/pickers.md +194 -0
- package/package.json +135 -4
- package/scripts/codemod-2.0.mjs +50 -0
- package/scripts/codemod-rules.mjs +102 -0
- package/skills/punica-components/SKILL.md +48 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# Migration 1.x → 2.0: agenda, virtual list, virtual table
|
|
2
|
+
|
|
3
|
+
All three now extend `PunicaElement`, take their data as properties, fire
|
|
4
|
+
only `punica-*` events and read every colour from the `--punica-*` tokens.
|
|
5
|
+
The tag names are unchanged; almost everything else moved.
|
|
6
|
+
|
|
7
|
+
## `punica-agenda`
|
|
8
|
+
|
|
9
|
+
| | 1.x | 2.0 |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| Tag | `punica-agenda` | `punica-agenda` |
|
|
12
|
+
| Base class | `HTMLElement` | `PunicaElement` |
|
|
13
|
+
| Attribute | `starthour` | `start-hour` (property `startHour`), whole hours 0–23 |
|
|
14
|
+
| Attribute | `endhour` | `end-hour` (property `endHour`), whole hours 1–24 |
|
|
15
|
+
| Attribute | none | `view` (`day` \| `week` \| `month` \| `year`, default `day`) |
|
|
16
|
+
| Attribute | none | `date` (`YYYY-MM-DD`, default today): a date inside the period shown |
|
|
17
|
+
| Attribute | none | `locale` (BCP 47; default the nearest `lang`, then `navigator.language`; 1.x defaulted to `en-US`) |
|
|
18
|
+
| Attribute | none | `first-day-of-week` (0 Sunday … 6 Saturday; default the locale's; 1.x was always Monday) |
|
|
19
|
+
| Attribute | none | `no-toolbar` hides the built-in navigation and view buttons |
|
|
20
|
+
| Attribute | none | `label` (accessible name), `label-previous`, `label-next`, `label-today`, `label-day`, `label-week`, `label-month`, `label-year`, `label-more` (`+{count} more`), `label-events` (`{count} events`) |
|
|
21
|
+
| Property | none | `events` (array, no attribute) |
|
|
22
|
+
| Property | none | `range` (read-only `{ start, end }`, `YYYY-MM-DD`, of the period shown) |
|
|
23
|
+
| Event data | `{ name, startDate, endDate }` | `{ id?, title, start, end?, color? }`; `start`/`end` take a Date, a timestamp or a date string; a bare `YYYY-MM-DD` is local midnight |
|
|
24
|
+
| Event colour | by position in the day, eight fixed hex pastels | `color`: `primary` \| `secondary` \| `error` \| `warning` \| `info` \| `success` \| `neutral`; without it events take palettes in turn by their index in `events` |
|
|
25
|
+
| Method | `setEvents(events)` | `el.events = events` |
|
|
26
|
+
| Method | `addEvent(event)` | `addEvent(event)` (appends to `events`) |
|
|
27
|
+
| Method | `getView()` / `setView(view)` | `view` property |
|
|
28
|
+
| Method | `getCurrentDate()` / `setCurrentDate(date)` | `date` property (an ISO string, not a Date) |
|
|
29
|
+
| Method | `navigate(-1 \| 1)` | `navigate(-1 \| 1)` |
|
|
30
|
+
| Method | none | `today()` |
|
|
31
|
+
| Method | none | `focus()` moves focus to the grid's active day |
|
|
32
|
+
| Method | `getTimeRange()` / `setTimeRange({ startMin, endMin, startHour, endHour, start, end })` | `startHour` / `endHour` properties |
|
|
33
|
+
| Method | `getLocale()` / `setLocale(locale)` | `locale` property |
|
|
34
|
+
| Event | none | `punica-select` `{ value, item }`: an event was clicked or activated; `value` is its `id` (its index when it has none), `item` the object given |
|
|
35
|
+
| Event | none | `punica-change` `{ view, date }`: the user moved to another period or view (toolbar, keyboard, "+N more", a year day) |
|
|
36
|
+
| Slots | none | none |
|
|
37
|
+
| CSS parts | none | `base`, `toolbar`, `nav-button`, `today-button`, `title`, `view-button`, `content`, `grid`, `day`, `day-header`, `event`, `more-button`, `icon` |
|
|
38
|
+
| CSS custom properties | none (42 hard-coded colours) | `--punica-agenda-background`, `--punica-agenda-muted-background`, `--punica-agenda-border-color`, `--punica-agenda-radius`, `--punica-agenda-today-color`, `--punica-agenda-gutter-width`, `--punica-agenda-day-hour-height`, `--punica-agenda-week-hour-height`, `--punica-agenda-month-cell-height` |
|
|
39
|
+
| CSS state | none | `:state(today)` while the period shown contains today |
|
|
40
|
+
|
|
41
|
+
New behaviour to know about:
|
|
42
|
+
|
|
43
|
+
- A toolbar (previous, today, next, the period's name, four view buttons) is
|
|
44
|
+
part of the element. Add `no-toolbar` to keep driving it from your own
|
|
45
|
+
controls as in 1.x.
|
|
46
|
+
- Every view is a keyboard grid: arrow keys between days, Home/End to the
|
|
47
|
+
ends of the week, PageUp/PageDown to the previous/next period, Enter into a
|
|
48
|
+
day's events (Enter on a year day opens it), arrows between the events,
|
|
49
|
+
Escape back to the day.
|
|
50
|
+
- Events are native buttons. An event that spans several days is drawn on
|
|
51
|
+
each of them (1.x drew it on its start day only), and overlapping events
|
|
52
|
+
sit side by side in the week view as well as the day view.
|
|
53
|
+
- In the day and week views, an event of whole days (a bare `YYYY-MM-DD`, or
|
|
54
|
+
midnight to midnight) or of 24 hours or more sits in an all-day lane above
|
|
55
|
+
the hours instead of filling its columns. The week's day headers stay in
|
|
56
|
+
view while the hours scroll, and a timed view opens scrolled to its first
|
|
57
|
+
event.
|
|
58
|
+
- "+N more" in the month view is a button that opens that day; a day of the
|
|
59
|
+
year view does the same.
|
|
60
|
+
- Month and year grids follow the locale's first day of the week, and the
|
|
61
|
+
year view's weekday letters come from `Intl` (1.x hard-coded Turkish
|
|
62
|
+
letters). All text is Gregorian whatever the locale's default calendar.
|
|
63
|
+
|
|
64
|
+
Removed:
|
|
65
|
+
|
|
66
|
+
| 1.x | Why |
|
|
67
|
+
|---|---|
|
|
68
|
+
| `setTimeRange` with minutes or `"HH:MM"`, snapped to 15 minutes | The range is whole hours. A fractional range produced an invalid grid in 1.x (`repeat(8.5, …)`). |
|
|
69
|
+
| `getTimeRange().start` / `.end` strings | Read `startHour` / `endHour`. |
|
|
70
|
+
| The built-in "more" translations (`en`, `tr`, `de`, `fr`, `es`) | `label-more`. |
|
|
71
|
+
| HTML in `name` | Titles are text. 1.x wrote `name` through `innerHTML`. |
|
|
72
|
+
| The per-event drop shadow | No token matches it; events are a tint with an accent edge. |
|
|
73
|
+
|
|
74
|
+
## `punica-virtual-list`
|
|
75
|
+
|
|
76
|
+
| | 1.x | 2.0 |
|
|
77
|
+
|---|---|---|
|
|
78
|
+
| Tag | `punica-virtual-list` | `punica-virtual-list` |
|
|
79
|
+
| Base class | `PunicaBase` | `PunicaElement` |
|
|
80
|
+
| Attribute | `itemheight` (default 48) | `item-height` (property `itemHeight`, default 48) |
|
|
81
|
+
| Attribute | `overscan` (default 6) | `overscan` (default 6) |
|
|
82
|
+
| Attribute | none | `label` (accessible name) |
|
|
83
|
+
| Property | `items` + `setData(items)` | `items` |
|
|
84
|
+
| Property | `renderer(container, item, index)`, which had to append exactly one element, + `setRenderer(fn)` | `renderItem(item, index)` returns a Node (or a string, shown as text); with none set a row shows the item as text |
|
|
85
|
+
| Property | `onNearEnd(endIndex)` callback | `punica-near-end` event |
|
|
86
|
+
| Property | none | `range` (read-only `{ start, end }` of the rows in view) |
|
|
87
|
+
| Method | `setData(items)`, `setRenderer(fn)` | removed: assign the properties |
|
|
88
|
+
| Method | none | `scrollToIndex(index, { align })`, `align` = `start` (default) \| `center` \| `end` \| `nearest` |
|
|
89
|
+
| Event | none | `punica-range-change` `{ start, end }`: first index in view and the one after the last |
|
|
90
|
+
| Event | none | `punica-near-end` `{ end }`: within one screen of the last item; once per `items` value (1.x called `onNearEnd` on every frame near the end) |
|
|
91
|
+
| Roles | none | scroller `role="list"`, rows `role="listitem"` with `aria-setsize` / `aria-posinset` |
|
|
92
|
+
| Scrolling element | the host | `::part(viewport)` inside the host; it is focusable and scrolls with the keyboard |
|
|
93
|
+
| Slots | none | none |
|
|
94
|
+
| CSS parts | none | `viewport`, `item` |
|
|
95
|
+
| CSS custom properties | `--total-height`, `--row-height` (internal) | `--punica-virtual-list-max-height` (cap for a host with no height, default `100vb`) |
|
|
96
|
+
|
|
97
|
+
Behaviour changes: rows are kept when their item is the same object, so a
|
|
98
|
+
new `items` array re-renders only the rows that changed; a row that holds
|
|
99
|
+
focus stays mounted while scrolled out of view; the ResizeObserver exists
|
|
100
|
+
only while the element is connected (1.x created one in the constructor and
|
|
101
|
+
never disconnected it). A host with no height no longer renders every item:
|
|
102
|
+
the scroller is capped at one viewport.
|
|
103
|
+
|
|
104
|
+
## `punica-virtual-table`
|
|
105
|
+
|
|
106
|
+
| | 1.x | 2.0 |
|
|
107
|
+
|---|---|---|
|
|
108
|
+
| Tag | `punica-virtual-table` | `punica-virtual-table` |
|
|
109
|
+
| Base class | `PunicaBase` | `PunicaElement` |
|
|
110
|
+
| Attribute | `itemheight` (default 48) | `row-height` (property `rowHeight`, default 48) |
|
|
111
|
+
| Attribute | `overscan` (default 6) | `overscan` (default 6) |
|
|
112
|
+
| Attribute | none | `label` (accessible name) |
|
|
113
|
+
| Attribute | none | `selectable`: rows can be picked; the table becomes a `grid` |
|
|
114
|
+
| Attribute | none | `row-key`: field that identifies a row (default: its index) |
|
|
115
|
+
| Attribute | none | `sort-column`, `sort-direction` (`ascending` \| `descending`): which header shows the sort |
|
|
116
|
+
| Header | hard-coded `Name / Company / Title` | `columns`: `{ key, label, width, align, sortable, render? }[]` |
|
|
117
|
+
| Property | `items` + `setData(items)` | `rows` (array of objects) |
|
|
118
|
+
| Property | `renderer(tbody, item, index)`, which had to append one `<tr>`, + `setRenderer(fn)` | per column: text of `row[key]`, or `column.render(row, index, column)` returning a Node (anything else is shown as text) |
|
|
119
|
+
| Property | `onNearEnd(endIndex)` callback | `punica-near-end` event |
|
|
120
|
+
| Property | none | `value`: key of the selected row |
|
|
121
|
+
| Property | none | `range` (read-only `{ start, end }` of the rows in view) |
|
|
122
|
+
| Method | `setData(items)`, `setRenderer(fn)` | removed: assign the properties |
|
|
123
|
+
| Method | none | `scrollToIndex(index, { align })` |
|
|
124
|
+
| Event | none | `punica-sort` `{ column, direction }`, cancelable: a sortable header was activated. The table shows the direction and never sorts `rows` |
|
|
125
|
+
| Event | none | `punica-select` `{ value, item }`: a row was picked (click, Enter, Space) |
|
|
126
|
+
| Event | none | `punica-range-change` `{ start, end }`, `punica-near-end` `{ end }` |
|
|
127
|
+
| Markup | a real `<table>` with padding rows | `div`s with `table`/`grid`, `rowgroup`, `row`, `columnheader`, `cell`/`gridcell` roles, `aria-rowcount`, `aria-colcount`, `aria-rowindex`, `aria-sort`, `aria-selected` |
|
|
128
|
+
| Header | scrolled away with the rows | sticky |
|
|
129
|
+
| Attribute on a row | `data-divider` removed from the last `<tr>` | the last row draws no line by itself |
|
|
130
|
+
| Slots | none | none |
|
|
131
|
+
| CSS parts | none | `viewport`, `header`, `header-cell`, `sort-button`, `body`, `row`, `cell`, `icon` |
|
|
132
|
+
| CSS custom properties | `--row-height` (internal) | `--punica-virtual-table-background`, `--punica-virtual-table-header-background`, `--punica-virtual-table-border-color`, `--punica-virtual-table-cell-padding`, `--punica-virtual-table-max-height` |
|
|
133
|
+
|
|
134
|
+
Keyboard: a plain table's scroller is focusable and scrolls natively. With
|
|
135
|
+
`selectable`, one row is the tab stop and Up/Down, Home/End and
|
|
136
|
+
PageUp/PageDown move between rows, Enter or Space picks one. The focused row
|
|
137
|
+
and the tab stop stay mounted while scrolled out of view.
|
|
138
|
+
|
|
139
|
+
Removed: the free-form row renderer (a `<tr>` of any shape). A row is now
|
|
140
|
+
the declared columns; put custom content in a column's `render`.
|