@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,271 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseMarkdown
|
|
3
|
+
} from "./chunk-3DWJAU5S.js";
|
|
4
|
+
import {
|
|
5
|
+
PunicaElement,
|
|
6
|
+
define
|
|
7
|
+
} from "./chunk-Y7B65FYJ.js";
|
|
8
|
+
|
|
9
|
+
// src/components/markdown/markdown.css
|
|
10
|
+
var markdown_default = ":host {\n --punica-markdown-gap: var(--punica-space-12);\n --punica-markdown-link-color: var(--punica-color-primary);\n --punica-markdown-code-background: var(--punica-color-neutral-light);\n --punica-markdown-code-font-family: var(--punica-font-family-mono);\n --punica-markdown-border-color: var(--punica-color-border);\n\n display: block;\n min-inline-size: 0;\n font-family: var(--punica-font-family);\n font-size: var(--punica-font-size);\n line-height: var(--punica-line-height);\n overflow-wrap: anywhere;\n}\n\n/* A grid track of minmax(0, auto) gives the content a min-content size of\n nothing, so a long code line or a wide table scrolls inside its block\n instead of widening whatever shrink-wraps the element. */\n.base {\n display: grid;\n grid-template-columns: minmax(0, auto);\n}\n\n.base > *,\nblockquote > *,\nli > * {\n margin-block: 0;\n}\n\n.base > * + *,\nblockquote > * + *,\n.loose > li + li,\n.loose > li > * + * {\n margin-block-start: var(--punica-markdown-gap);\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-weight: var(--punica-font-weight-bold);\n line-height: 1.25;\n}\n\nh1 {\n font-size: 1.5em;\n}\nh2 {\n font-size: 1.3em;\n}\nh3 {\n font-size: 1.15em;\n}\nh4,\nh5,\nh6 {\n font-size: 1em;\n}\n\n.base > * + :is(h1, h2, h3, h4, h5, h6) {\n margin-block-start: calc(var(--punica-markdown-gap) * 1.5);\n}\n\na {\n color: var(--punica-markdown-link-color);\n text-decoration: underline;\n text-underline-offset: 0.15em;\n border-radius: var(--punica-radius-sm);\n}\n\na:focus-visible {\n outline: var(--punica-focus-ring);\n outline-offset: var(--punica-focus-ring-offset);\n}\n\nimg {\n max-inline-size: 100%;\n block-size: auto;\n border-radius: var(--punica-radius);\n vertical-align: middle;\n}\n\ncode {\n font-family: var(--punica-markdown-code-font-family);\n font-size: 0.9em;\n}\n\n:not(pre) > code {\n padding: var(--punica-space-2) var(--punica-space-4);\n border-radius: var(--punica-radius-sm);\n background: var(--punica-markdown-code-background);\n color: var(--punica-color-text);\n}\n\n/* Code reads left to right in a right-to-left page too. */\npre {\n direction: ltr;\n unicode-bidi: isolate;\n text-align: start;\n padding: var(--punica-space-12);\n overflow-x: auto;\n border-radius: var(--punica-radius);\n background: var(--punica-markdown-code-background);\n color: var(--punica-color-text);\n line-height: 1.45;\n overflow-wrap: normal;\n tab-size: 2;\n}\n\nblockquote {\n margin-inline: 0;\n padding-inline-start: var(--punica-space-12);\n border-inline-start: var(--punica-space-4) solid var(--punica-markdown-border-color);\n}\n\nul,\nol {\n padding-inline-start: var(--punica-space-24);\n}\n\nli > :is(ul, ol) {\n margin-block-start: var(--punica-space-4);\n}\n\n.tight > li + li {\n margin-block-start: var(--punica-space-4);\n}\n\nli.task {\n position: relative;\n list-style: none;\n}\n\nli.task > input {\n position: absolute;\n inset-inline-start: calc(var(--punica-space-22) * -1);\n inset-block-start: 0.3em;\n inline-size: 1em;\n block-size: 1em;\n margin: 0;\n accent-color: var(--punica-color-primary);\n}\n\n.table-wrap {\n overflow-x: auto;\n}\n\ntable {\n border-collapse: collapse;\n font-size: var(--punica-font-size-sm);\n overflow-wrap: normal;\n}\n\nth,\ntd {\n padding: var(--punica-space-6) var(--punica-space-10);\n border: var(--punica-border-width) solid var(--punica-markdown-border-color);\n text-align: start;\n vertical-align: top;\n}\n\nth {\n background: var(--punica-color-hover);\n font-weight: var(--punica-font-weight-semi-bold);\n}\n\n.align-center {\n text-align: center;\n}\n\n.align-end {\n text-align: end;\n}\n\nhr {\n block-size: 0;\n border: 0;\n border-block-start: var(--punica-border-width) solid var(--punica-markdown-border-color);\n}\n\ndel {\n text-decoration: line-through;\n}\n\n/* A caret after the last block while the source is still growing. */\n:host(:state(streaming)) .base > :last-child:is(p, h1, h2, h3, h4, h5, h6)::after {\n content: '';\n display: inline-block;\n inline-size: 0.5em;\n block-size: 1em;\n margin-inline-start: var(--punica-space-2);\n background: currentColor;\n vertical-align: text-bottom;\n animation: blink 1s steps(2, start) infinite;\n}\n\n@keyframes blink {\n to {\n visibility: hidden;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n :host(:state(streaming)) .base > :last-child::after {\n animation: none;\n }\n}\n\n@media (forced-colors: active) {\n pre,\n :not(pre) > code {\n border: var(--punica-border-width) solid CanvasText;\n }\n th,\n td,\n hr,\n blockquote {\n border-color: CanvasText;\n }\n}\n";
|
|
11
|
+
|
|
12
|
+
// src/components/markdown/markdown.js
|
|
13
|
+
function dedent(text) {
|
|
14
|
+
const lines = text.replace(/\r\n?/g, "\n").split("\n");
|
|
15
|
+
let indent = Infinity;
|
|
16
|
+
for (const line of lines) {
|
|
17
|
+
if (line.trim()) indent = Math.min(indent, line.length - line.trimStart().length);
|
|
18
|
+
}
|
|
19
|
+
return indent && indent !== Infinity ? lines.map((line) => line.slice(indent)).join("\n") : lines.join("\n");
|
|
20
|
+
}
|
|
21
|
+
var PunicaMarkdown = class extends PunicaElement {
|
|
22
|
+
static properties = {
|
|
23
|
+
value: { reflect: false },
|
|
24
|
+
streaming: { type: Boolean },
|
|
25
|
+
noImages: { type: Boolean },
|
|
26
|
+
renderCodeBlock: { type: Object, attribute: false }
|
|
27
|
+
};
|
|
28
|
+
static styles = markdown_default;
|
|
29
|
+
static template = `<div part="base" class="base"></div>`;
|
|
30
|
+
#base = this.$(".base");
|
|
31
|
+
/** @type {Rendered[]} */
|
|
32
|
+
#rendered = [];
|
|
33
|
+
/** @type {MutationObserver | null} */
|
|
34
|
+
#observer = null;
|
|
35
|
+
connected() {
|
|
36
|
+
this.#observer = new MutationObserver(() => {
|
|
37
|
+
if (this.value == null) this.#render();
|
|
38
|
+
});
|
|
39
|
+
this.#observer.observe(this, { childList: true, characterData: true, subtree: true });
|
|
40
|
+
}
|
|
41
|
+
disconnected() {
|
|
42
|
+
this.#observer?.disconnect();
|
|
43
|
+
this.#observer = null;
|
|
44
|
+
}
|
|
45
|
+
update(changed) {
|
|
46
|
+
this.toggleState("streaming", this.streaming);
|
|
47
|
+
this.internals.ariaBusy = this.streaming ? "true" : null;
|
|
48
|
+
if (changed.has("renderCodeBlock") || changed.has("noImages")) {
|
|
49
|
+
this.#base.replaceChildren();
|
|
50
|
+
this.#rendered = [];
|
|
51
|
+
}
|
|
52
|
+
if (changed.has("value") || changed.has("renderCodeBlock") || changed.has("noImages")) this.#render();
|
|
53
|
+
}
|
|
54
|
+
#render() {
|
|
55
|
+
const source = this.value ?? dedent(this.textContent || "");
|
|
56
|
+
this.#rendered = this.#patch(this.#base, this.#rendered, parseMarkdown(source));
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Brings `parent` in line with `blocks`, keeping every node whose block did
|
|
60
|
+
* not change and descending into a quote or list that only grew.
|
|
61
|
+
* @param {Node} parent
|
|
62
|
+
* @param {Rendered[]} old
|
|
63
|
+
* @param {import('./parser.js').MarkdownBlock[]} blocks
|
|
64
|
+
* @returns {Rendered[]}
|
|
65
|
+
*/
|
|
66
|
+
#patch(parent, old, blocks) {
|
|
67
|
+
const next = [];
|
|
68
|
+
for (let i = 0; i < blocks.length; i++) {
|
|
69
|
+
const block = blocks[i];
|
|
70
|
+
const was = old[i];
|
|
71
|
+
const same = was && was.sig === block.sig;
|
|
72
|
+
let rendered;
|
|
73
|
+
if (same && was.raw === block.raw) {
|
|
74
|
+
rendered = was;
|
|
75
|
+
} else if (same && was.kids && block.children) {
|
|
76
|
+
was.kids = this.#patch(was.node, was.kids, block.children);
|
|
77
|
+
was.raw = block.raw;
|
|
78
|
+
if (was.box) was.box.setAttribute("aria-label", block.label);
|
|
79
|
+
rendered = was;
|
|
80
|
+
} else if (same && was.code) {
|
|
81
|
+
was.code.textContent = block.text;
|
|
82
|
+
was.raw = block.raw;
|
|
83
|
+
rendered = was;
|
|
84
|
+
} else {
|
|
85
|
+
rendered = this.#create(block);
|
|
86
|
+
if (was) parent.replaceChild(rendered.node, was.node);
|
|
87
|
+
else parent.appendChild(rendered.node);
|
|
88
|
+
}
|
|
89
|
+
next.push(rendered);
|
|
90
|
+
}
|
|
91
|
+
for (let i = blocks.length; i < old.length; i++) old[i].node.parentNode?.removeChild(old[i].node);
|
|
92
|
+
return next;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @param {any} block
|
|
96
|
+
* @returns {Rendered}
|
|
97
|
+
*/
|
|
98
|
+
#create(block) {
|
|
99
|
+
const rendered = { raw: block.raw, sig: block.sig, node: (
|
|
100
|
+
/** @type {any} */
|
|
101
|
+
null
|
|
102
|
+
), kids: null };
|
|
103
|
+
switch (block.type) {
|
|
104
|
+
case "heading":
|
|
105
|
+
rendered.node = this.#inline(block.inline, el(`h${block.level}`, "heading"));
|
|
106
|
+
break;
|
|
107
|
+
case "paragraph":
|
|
108
|
+
rendered.node = this.#inline(block.inline, el("p", "paragraph"));
|
|
109
|
+
break;
|
|
110
|
+
case "hr":
|
|
111
|
+
rendered.node = el("hr", "hr");
|
|
112
|
+
break;
|
|
113
|
+
case "code": {
|
|
114
|
+
const custom = typeof this.renderCodeBlock === "function" ? this.renderCodeBlock(block.text, block.language) : null;
|
|
115
|
+
if (custom instanceof Node) {
|
|
116
|
+
rendered.node = custom;
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
const pre = el("pre", "code-block");
|
|
120
|
+
const code = el("code", "code");
|
|
121
|
+
const language = block.language.replace(/[^\w+#.-]/g, "");
|
|
122
|
+
if (language) code.className = `language-${language}`;
|
|
123
|
+
code.textContent = block.text;
|
|
124
|
+
pre.appendChild(code);
|
|
125
|
+
rendered.node = pre;
|
|
126
|
+
rendered.code = code;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
case "blockquote":
|
|
130
|
+
rendered.node = el("blockquote", "blockquote");
|
|
131
|
+
rendered.kids = this.#patch(rendered.node, [], block.children);
|
|
132
|
+
break;
|
|
133
|
+
case "list": {
|
|
134
|
+
const list = el(block.ordered ? "ol" : "ul", "list");
|
|
135
|
+
if (block.ordered && block.start !== 1) list.setAttribute("start", String(block.start));
|
|
136
|
+
list.className = block.loose ? "loose" : "tight";
|
|
137
|
+
rendered.node = list;
|
|
138
|
+
rendered.kids = this.#patch(list, [], block.children);
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
case "item": {
|
|
142
|
+
const item = el("li", "list-item");
|
|
143
|
+
if (block.task) {
|
|
144
|
+
item.className = "task";
|
|
145
|
+
const box = (
|
|
146
|
+
/** @type {HTMLInputElement} */
|
|
147
|
+
el("input", "checkbox")
|
|
148
|
+
);
|
|
149
|
+
box.type = "checkbox";
|
|
150
|
+
box.disabled = true;
|
|
151
|
+
box.checked = block.checked;
|
|
152
|
+
box.setAttribute("aria-label", block.label);
|
|
153
|
+
item.appendChild(box);
|
|
154
|
+
rendered.box = box;
|
|
155
|
+
}
|
|
156
|
+
rendered.node = item;
|
|
157
|
+
rendered.kids = this.#patch(item, [], block.children);
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
case "table": {
|
|
161
|
+
const wrap = el("div", "table-wrap");
|
|
162
|
+
wrap.className = "table-wrap";
|
|
163
|
+
const table = el("table", "table");
|
|
164
|
+
const row = (cells, tag) => {
|
|
165
|
+
const tr = document.createElement("tr");
|
|
166
|
+
cells.forEach((cell, c) => {
|
|
167
|
+
const td = this.#inline(cell, document.createElement(tag));
|
|
168
|
+
if (tag === "th") td.setAttribute("scope", "col");
|
|
169
|
+
if (block.align[c]) td.className = `align-${block.align[c]}`;
|
|
170
|
+
tr.appendChild(td);
|
|
171
|
+
});
|
|
172
|
+
return tr;
|
|
173
|
+
};
|
|
174
|
+
const head = document.createElement("thead");
|
|
175
|
+
head.appendChild(row(block.head, "th"));
|
|
176
|
+
table.appendChild(head);
|
|
177
|
+
if (block.rows.length) {
|
|
178
|
+
const body = document.createElement("tbody");
|
|
179
|
+
for (const cells of block.rows) body.appendChild(row(cells, "td"));
|
|
180
|
+
table.appendChild(body);
|
|
181
|
+
}
|
|
182
|
+
wrap.appendChild(table);
|
|
183
|
+
rendered.node = wrap;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
default:
|
|
187
|
+
rendered.node = document.createTextNode("");
|
|
188
|
+
}
|
|
189
|
+
return rendered;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Appends inline items to `parent` as text nodes and elements.
|
|
193
|
+
* @template {Element} T
|
|
194
|
+
* @param {any[]} items
|
|
195
|
+
* @param {T} parent
|
|
196
|
+
* @returns {T}
|
|
197
|
+
*/
|
|
198
|
+
#inline(items, parent) {
|
|
199
|
+
let text = "";
|
|
200
|
+
const flush = () => {
|
|
201
|
+
if (text) parent.appendChild(document.createTextNode(text));
|
|
202
|
+
text = "";
|
|
203
|
+
};
|
|
204
|
+
const anchor = (href, external, title) => {
|
|
205
|
+
const a = el("a", "link");
|
|
206
|
+
a.setAttribute("href", href);
|
|
207
|
+
if (title) a.setAttribute("title", title);
|
|
208
|
+
if (external) {
|
|
209
|
+
a.setAttribute("target", "_blank");
|
|
210
|
+
a.setAttribute("rel", "noopener noreferrer");
|
|
211
|
+
}
|
|
212
|
+
return a;
|
|
213
|
+
};
|
|
214
|
+
for (const item of items) {
|
|
215
|
+
switch (item.t) {
|
|
216
|
+
case "text":
|
|
217
|
+
text += item.s;
|
|
218
|
+
continue;
|
|
219
|
+
case "delim":
|
|
220
|
+
text += item.ch.repeat(item.n);
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
flush();
|
|
224
|
+
switch (item.t) {
|
|
225
|
+
case "br":
|
|
226
|
+
parent.appendChild(document.createElement("br"));
|
|
227
|
+
break;
|
|
228
|
+
case "code": {
|
|
229
|
+
const code = el("code", "inline-code");
|
|
230
|
+
code.textContent = item.s;
|
|
231
|
+
parent.appendChild(code);
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
case "wrap":
|
|
235
|
+
parent.appendChild(this.#inline(item.children, document.createElement(item.tag)));
|
|
236
|
+
break;
|
|
237
|
+
case "link":
|
|
238
|
+
parent.appendChild(this.#inline(item.children, anchor(item.href, item.external, item.title)));
|
|
239
|
+
break;
|
|
240
|
+
case "img": {
|
|
241
|
+
if (this.noImages) {
|
|
242
|
+
const a = anchor(item.src, true, item.title);
|
|
243
|
+
a.textContent = item.alt;
|
|
244
|
+
parent.appendChild(a);
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
const img = el("img", "image");
|
|
248
|
+
img.setAttribute("src", item.src);
|
|
249
|
+
img.setAttribute("alt", item.alt);
|
|
250
|
+
if (item.title) img.setAttribute("title", item.title);
|
|
251
|
+
img.setAttribute("loading", "lazy");
|
|
252
|
+
img.setAttribute("decoding", "async");
|
|
253
|
+
parent.appendChild(img);
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
flush();
|
|
259
|
+
return parent;
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
function el(tag, part) {
|
|
263
|
+
const node = document.createElement(tag);
|
|
264
|
+
node.setAttribute("part", part);
|
|
265
|
+
return node;
|
|
266
|
+
}
|
|
267
|
+
define("punica-markdown", PunicaMarkdown);
|
|
268
|
+
|
|
269
|
+
export {
|
|
270
|
+
PunicaMarkdown
|
|
271
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
composedContains,
|
|
3
|
+
deepActiveElement
|
|
4
|
+
} from "./chunk-4RURT4SK.js";
|
|
5
|
+
import {
|
|
6
|
+
PunicaElement,
|
|
7
|
+
define
|
|
8
|
+
} from "./chunk-Y7B65FYJ.js";
|
|
9
|
+
|
|
10
|
+
// src/components/inputGroup/inputGroup.css
|
|
11
|
+
var inputGroup_default = ":host {\n --punica-input-group-radius: var(--punica-radius);\n\n --_r: var(--punica-input-group-radius);\n /* Physical corner lists (top-left, top-right, bottom-right, bottom-left)\n for the first and last part, swapped right-to-left. */\n --_first: var(--_r) 0 0 var(--_r);\n --_last: 0 var(--_r) var(--_r) 0;\n\n display: inline-flex;\n vertical-align: middle;\n max-inline-size: 100%;\n}\n\n:host(:dir(rtl)) {\n --_first: 0 var(--_r) var(--_r) 0;\n --_last: var(--_r) 0 0 var(--_r);\n}\n\n:host([full-width]) {\n display: flex;\n inline-size: 100%;\n}\n\n.base {\n display: flex;\n flex: 1;\n align-items: stretch;\n min-inline-size: 0;\n border-radius: var(--_r);\n}\n\n:host(:state(focus-visible)) .base {\n outline: var(--punica-focus-ring);\n outline-offset: var(--punica-focus-ring-offset);\n}\n\n:host([disabled]) .base {\n opacity: var(--punica-disabled-opacity);\n}\n\n/* Every part: square inner corners, borders that overlap by one width. */\n::slotted(*) {\n --_corner: 0;\n position: relative;\n flex: none;\n margin: 0;\n}\n::slotted(:not(:first-child)) {\n margin-inline-start: calc(-1 * var(--punica-border-width));\n}\n::slotted(:first-child) {\n --_corner: var(--_first);\n}\n::slotted(:last-child) {\n --_corner: var(--_last);\n}\n::slotted(:only-child) {\n --_corner: var(--_r);\n}\n::slotted(*) {\n --punica-input-radius: var(--_corner);\n --punica-number-input-radius: var(--_corner);\n --punica-select-radius: var(--_corner);\n --punica-autocomplete-radius: var(--_corner);\n --punica-tokenizer-radius: var(--_corner);\n --punica-date-picker-radius: var(--_corner);\n --punica-time-picker-radius: var(--_corner);\n --punica-button-radius: var(--_corner);\n --punica-icon-button-radius: var(--_corner);\n --punica-input-group-text-radius: var(--_corner);\n border-radius: var(--_corner);\n}\n\n/* The field takes the room that is left. */\n::slotted(:is(punica-input, punica-number-input, punica-select, punica-autocomplete, punica-tokenizer, punica-date-picker, punica-time-picker, input, select)) {\n flex: 1 1 auto;\n min-inline-size: 0;\n /* The group draws the focus ring; the field draws none of its own. */\n --punica-focus-ring: 0 solid transparent;\n}\n\n/* A hovered or focused part's border lies over its neighbours'. */\n::slotted(:hover),\n::slotted(:focus-within) {\n z-index: 1;\n}\n\n/* A button marks itself inside the group's ring. */\n::slotted(:is(punica-button, punica-icon-button)) {\n --punica-focus-ring-offset: calc(-2 * var(--punica-focus-ring-width));\n}\n\n/* An icon button has no border of its own: draw the field's, inside its box. */\n::slotted(punica-icon-button) {\n outline: var(--punica-border-width) solid var(--punica-color-border);\n outline-offset: calc(-1 * var(--punica-border-width));\n background: var(--punica-color-surface);\n}\n\n:host([size='small']) ::slotted(*) {\n --punica-input-height: var(--punica-size-sm);\n --punica-input-padding: var(--punica-space-8);\n --punica-number-input-height: var(--punica-size-sm);\n --punica-select-height: var(--punica-size-sm);\n --punica-select-padding: var(--punica-space-12);\n --punica-autocomplete-height: var(--punica-size-sm);\n --punica-tokenizer-height: var(--punica-size-sm);\n --punica-date-picker-height: var(--punica-size-sm);\n --punica-time-picker-height: var(--punica-size-sm);\n --punica-button-height: var(--punica-size-sm);\n --punica-button-padding: var(--punica-space-8);\n --punica-icon-button-size: var(--punica-size-sm);\n --punica-input-group-text-height: var(--punica-size-sm);\n --punica-input-group-text-padding: var(--punica-space-8);\n}\n:host([size='medium']) ::slotted(*) {\n --punica-input-height: var(--punica-size-md);\n --punica-number-input-height: var(--punica-size-md);\n --punica-select-height: var(--punica-size-md);\n --punica-autocomplete-height: var(--punica-size-md);\n --punica-tokenizer-height: var(--punica-size-md);\n --punica-date-picker-height: var(--punica-size-md);\n --punica-time-picker-height: var(--punica-size-md);\n --punica-button-height: var(--punica-size-md);\n --punica-icon-button-size: var(--punica-size-md);\n --punica-input-group-text-height: var(--punica-size-md);\n}\n:host([size='large']) ::slotted(*) {\n --punica-input-height: var(--punica-size-lg);\n --punica-number-input-height: var(--punica-size-lg);\n --punica-select-height: var(--punica-size-lg);\n --punica-autocomplete-height: var(--punica-size-lg);\n --punica-tokenizer-height: var(--punica-size-lg);\n --punica-date-picker-height: var(--punica-size-lg);\n --punica-time-picker-height: var(--punica-size-lg);\n --punica-button-height: var(--punica-size-lg);\n --punica-button-padding: var(--punica-space-20);\n --punica-icon-button-size: var(--punica-size-lg);\n --punica-input-group-text-height: var(--punica-size-lg);\n --punica-input-group-text-padding: var(--punica-space-16);\n}\n\n@media (forced-colors: active) {\n :host(:state(focus-visible)) .base {\n outline-color: Highlight;\n }\n ::slotted(punica-icon-button) {\n outline-color: CanvasText;\n }\n}\n";
|
|
12
|
+
|
|
13
|
+
// src/components/inputGroup/inputGroup.js
|
|
14
|
+
var PunicaInputGroup = class extends PunicaElement {
|
|
15
|
+
static properties = {
|
|
16
|
+
size: {},
|
|
17
|
+
label: {},
|
|
18
|
+
disabled: { type: Boolean },
|
|
19
|
+
fullWidth: { type: Boolean }
|
|
20
|
+
};
|
|
21
|
+
static styles = inputGroup_default;
|
|
22
|
+
static template = `<div part="base" class="base"><slot></slot></div>`;
|
|
23
|
+
#base = this.$(".base");
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
const refresh = () => queueMicrotask(() => this.#focusChanged());
|
|
27
|
+
this.addEventListener("focusin", refresh);
|
|
28
|
+
this.addEventListener("focusout", refresh);
|
|
29
|
+
}
|
|
30
|
+
update() {
|
|
31
|
+
const internals = this.internals;
|
|
32
|
+
internals.role = this.label ? "group" : null;
|
|
33
|
+
internals.ariaLabel = this.label || null;
|
|
34
|
+
internals.ariaDisabled = this.disabled ? "true" : null;
|
|
35
|
+
this.#base.inert = this.disabled;
|
|
36
|
+
}
|
|
37
|
+
#focusChanged() {
|
|
38
|
+
const active = deepActiveElement();
|
|
39
|
+
const within = !!active && active !== document.body && composedContains(this, active);
|
|
40
|
+
let visible = false;
|
|
41
|
+
try {
|
|
42
|
+
visible = within && active.matches(":focus-visible");
|
|
43
|
+
} catch {
|
|
44
|
+
visible = within;
|
|
45
|
+
}
|
|
46
|
+
this.toggleState("focus-within", within);
|
|
47
|
+
this.toggleState("focus-visible", visible);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
define("punica-input-group", PunicaInputGroup);
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
PunicaInputGroup
|
|
54
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isRtl,
|
|
3
|
+
nextIndex,
|
|
4
|
+
setRovingTabindex
|
|
5
|
+
} from "./chunk-4RURT4SK.js";
|
|
6
|
+
import {
|
|
7
|
+
PunicaElement,
|
|
8
|
+
define
|
|
9
|
+
} from "./chunk-Y7B65FYJ.js";
|
|
10
|
+
|
|
11
|
+
// src/components/toolbar/toolbar.css
|
|
12
|
+
var toolbar_default = ":host {\n --punica-toolbar-size: var(--punica-space-64);\n --punica-toolbar-padding: var(--punica-space-16);\n --punica-toolbar-gap: var(--punica-space-8);\n\n display: flex;\n position: relative;\n align-items: center;\n gap: var(--punica-toolbar-gap);\n min-block-size: var(--punica-toolbar-size);\n padding-inline: var(--punica-toolbar-padding);\n font-family: var(--punica-font-family);\n}\n\n@media (min-width: 1200px) {\n :host {\n --punica-toolbar-padding: var(--punica-space-24);\n }\n}\n\n:host([size='small']) {\n --punica-toolbar-size: var(--punica-space-48);\n}\n:host([size='large']) {\n --punica-toolbar-size: var(--punica-space-80);\n}\n\n.content {\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n gap: var(--punica-toolbar-gap);\n min-inline-size: 0;\n}\n\n:host([orientation='vertical']) {\n display: inline-flex;\n flex-direction: column;\n min-block-size: 0;\n min-inline-size: var(--punica-toolbar-size);\n padding-inline: 0;\n padding-block: var(--punica-toolbar-padding);\n}\n:host([orientation='vertical']) .content {\n flex-direction: column;\n min-block-size: 0;\n}\n";
|
|
13
|
+
|
|
14
|
+
// src/components/toolbar/toolbar.js
|
|
15
|
+
var CONTROL = 'a[href],button,input:not([type="hidden"]),select,textarea,[tabindex],[contenteditable="true"]';
|
|
16
|
+
var TEXT_ENTRY = 'input:not([type="button"],[type="checkbox"],[type="radio"],[type="submit"],[type="reset"],[type="image"],[type="file"],[type="color"]),textarea,select,[contenteditable="true"]';
|
|
17
|
+
var PunicaToolbar = class extends PunicaElement {
|
|
18
|
+
static properties = {
|
|
19
|
+
label: {},
|
|
20
|
+
orientation: {},
|
|
21
|
+
size: {}
|
|
22
|
+
};
|
|
23
|
+
static styles = toolbar_default;
|
|
24
|
+
static template = `<slot name="start"></slot><div part="content" class="content"><slot></slot></div><slot name="end"></slot>`;
|
|
25
|
+
/** @type {HTMLElement | null} */
|
|
26
|
+
#active = null;
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.shadowRoot.addEventListener("slotchange", () => this.#rove());
|
|
30
|
+
this.addEventListener("keydown", (event) => this.#onKeydown(event));
|
|
31
|
+
this.addEventListener("focusin", (event) => {
|
|
32
|
+
const items = this.#items();
|
|
33
|
+
const item = items.find((i) => i === event.target || i.contains(
|
|
34
|
+
/** @type {Node} */
|
|
35
|
+
event.target
|
|
36
|
+
));
|
|
37
|
+
if (item) {
|
|
38
|
+
this.#active = item;
|
|
39
|
+
setRovingTabindex(items, item);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
update() {
|
|
44
|
+
const internals = this.internals;
|
|
45
|
+
internals.role = "toolbar";
|
|
46
|
+
internals.ariaLabel = this.label;
|
|
47
|
+
internals.ariaOrientation = this.orientation === "vertical" ? "vertical" : "horizontal";
|
|
48
|
+
this.#rove();
|
|
49
|
+
}
|
|
50
|
+
/** The enabled controls of the toolbar, in visual order. */
|
|
51
|
+
#items() {
|
|
52
|
+
const items = [];
|
|
53
|
+
const visit = (el) => {
|
|
54
|
+
if (!(el instanceof HTMLElement) || el.hidden || el.hasAttribute("disabled") || el.inert) return;
|
|
55
|
+
if (el.matches(CONTROL) || el.shadowRoot?.delegatesFocus) items.push(el);
|
|
56
|
+
else for (const child of el.children) visit(child);
|
|
57
|
+
};
|
|
58
|
+
for (const slot of this.shadowRoot.querySelectorAll("slot")) {
|
|
59
|
+
for (const el of slot.assignedElements({ flatten: true })) visit(el);
|
|
60
|
+
}
|
|
61
|
+
return items;
|
|
62
|
+
}
|
|
63
|
+
#rove() {
|
|
64
|
+
const items = this.#items();
|
|
65
|
+
if (!items.includes(this.#active)) this.#active = null;
|
|
66
|
+
setRovingTabindex(items, this.#active);
|
|
67
|
+
}
|
|
68
|
+
#onKeydown(event) {
|
|
69
|
+
if (event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return;
|
|
70
|
+
const origin = event.composedPath()[0];
|
|
71
|
+
if (origin instanceof Element && origin.matches(TEXT_ENTRY)) return;
|
|
72
|
+
const items = this.#items();
|
|
73
|
+
const current = items.findIndex((i) => i === event.target || i.contains(
|
|
74
|
+
/** @type {Node} */
|
|
75
|
+
event.target
|
|
76
|
+
));
|
|
77
|
+
if (current < 0) return;
|
|
78
|
+
const next = nextIndex(event, items.length, current, {
|
|
79
|
+
orientation: this.orientation === "vertical" ? "vertical" : "horizontal",
|
|
80
|
+
rtl: isRtl(this)
|
|
81
|
+
});
|
|
82
|
+
if (next < 0) return;
|
|
83
|
+
event.preventDefault();
|
|
84
|
+
this.#active = items[next];
|
|
85
|
+
setRovingTabindex(items, items[next]);
|
|
86
|
+
items[next].focus();
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
define("punica-toolbar", PunicaToolbar);
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
PunicaToolbar
|
|
93
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ModalSurface
|
|
3
|
+
} from "./chunk-FFH6CIAJ.js";
|
|
4
|
+
import {
|
|
5
|
+
nextIndex
|
|
6
|
+
} from "./chunk-4RURT4SK.js";
|
|
7
|
+
import {
|
|
8
|
+
icons
|
|
9
|
+
} from "./chunk-YSGWORUD.js";
|
|
10
|
+
import {
|
|
11
|
+
PunicaElement,
|
|
12
|
+
define
|
|
13
|
+
} from "./chunk-Y7B65FYJ.js";
|
|
14
|
+
|
|
15
|
+
// src/components/commandPalette/commandPalette.css
|
|
16
|
+
var commandPalette_default = ":host {\n --punica-command-palette-radius: var(--punica-radius-lg);\n --punica-command-palette-background: var(--punica-color-surface-raised);\n --punica-command-palette-backdrop: var(--punica-color-backdrop);\n --punica-command-palette-shadow: var(--punica-shadow-xl);\n --punica-command-palette-width: 560px;\n --punica-command-palette-max-height: min(420px, 70dvh);\n\n display: contents;\n}\n\ndialog {\n inset-block-start: 12dvh;\n inline-size: var(--punica-command-palette-width);\n max-inline-size: calc(100% - 2 * var(--punica-space-16));\n max-block-size: var(--punica-command-palette-max-height);\n margin-block: 0;\n margin-inline: auto;\n padding: 0;\n border: var(--punica-border-width) solid var(--punica-color-border);\n border-radius: var(--punica-command-palette-radius);\n background: var(--punica-command-palette-background);\n color: var(--punica-color-text);\n font-family: var(--punica-font-family);\n box-shadow: var(--punica-command-palette-shadow);\n overflow: hidden;\n opacity: 0;\n transition: opacity var(--punica-duration-fast) var(--punica-ease),\n display var(--punica-duration-fast) allow-discrete,\n overlay var(--punica-duration-fast) allow-discrete;\n}\n\ndialog[open] {\n display: flex;\n flex-direction: column;\n opacity: 1;\n}\n\n@starting-style {\n dialog[open] {\n opacity: 0;\n }\n}\n\ndialog::backdrop {\n background: var(--punica-command-palette-backdrop);\n}\n\n.search {\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--punica-space-8);\n padding-inline: var(--punica-space-16);\n border-block-end: var(--punica-border-width) solid var(--punica-color-border);\n font-size: var(--punica-font-size-lg);\n}\n\n.search:focus-within {\n outline: var(--punica-focus-ring);\n outline-offset: calc(-1 * var(--punica-focus-ring-width));\n}\n\ninput {\n all: unset;\n flex: 1;\n min-inline-size: 0;\n block-size: var(--punica-size-lg);\n font-family: var(--punica-font-family);\n font-size: var(--punica-font-size);\n color: var(--punica-color-text);\n}\n\ninput::placeholder {\n color: var(--punica-color-text-placeholder);\n}\n\n[part='list'] {\n flex: 1;\n min-block-size: 0;\n padding: var(--punica-space-4);\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n\n[part='empty'] {\n padding: var(--punica-space-24) var(--punica-space-16);\n font-size: var(--punica-font-size-sm);\n text-align: center;\n}\n\n[hidden] {\n display: none !important;\n}\n\n@media (forced-colors: active) {\n dialog {\n border-color: CanvasText;\n }\n}\n";
|
|
17
|
+
|
|
18
|
+
// src/components/commandPalette/commandPalette.js
|
|
19
|
+
var PunicaCommandPalette = class extends ModalSurface(PunicaElement) {
|
|
20
|
+
static properties = {
|
|
21
|
+
placeholder: {}
|
|
22
|
+
};
|
|
23
|
+
static styles = commandPalette_default;
|
|
24
|
+
static template = `
|
|
25
|
+
<dialog part="dialog">
|
|
26
|
+
<div part="search" class="search">
|
|
27
|
+
${icons.search}
|
|
28
|
+
<input part="input" type="text" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-controls="list" autocomplete="off" autocapitalize="off" spellcheck="false" enterkeyhint="go">
|
|
29
|
+
</div>
|
|
30
|
+
<div part="list" id="list" role="listbox"><slot></slot></div>
|
|
31
|
+
<div part="empty" class="empty" role="status" hidden><slot name="empty"></slot></div>
|
|
32
|
+
</dialog>
|
|
33
|
+
`;
|
|
34
|
+
#input = this.$("input");
|
|
35
|
+
#list = this.$("#list");
|
|
36
|
+
/** @type {any} */
|
|
37
|
+
#active = null;
|
|
38
|
+
constructor() {
|
|
39
|
+
super();
|
|
40
|
+
const input = this.#input;
|
|
41
|
+
input.addEventListener("input", () => {
|
|
42
|
+
this.#filter();
|
|
43
|
+
this.emit("input", { value: input.value });
|
|
44
|
+
});
|
|
45
|
+
input.addEventListener("keydown", (event) => this.#onKeydown(event));
|
|
46
|
+
this.$("slot:not([name])").addEventListener("slotchange", () => this.#filter());
|
|
47
|
+
this.#list.addEventListener("click", (event) => {
|
|
48
|
+
const item = this.#itemOf(event);
|
|
49
|
+
if (item) this.#choose(item);
|
|
50
|
+
});
|
|
51
|
+
this.#list.addEventListener("pointermove", (event) => {
|
|
52
|
+
const item = this.#itemOf(event);
|
|
53
|
+
if (item && item !== this.#active) this.#setActive(item, false);
|
|
54
|
+
});
|
|
55
|
+
this.#list.addEventListener("mousedown", (event) => event.preventDefault());
|
|
56
|
+
}
|
|
57
|
+
/** The text in the input. */
|
|
58
|
+
get query() {
|
|
59
|
+
return this.#input.value;
|
|
60
|
+
}
|
|
61
|
+
set query(value) {
|
|
62
|
+
this.#input.value = value ?? "";
|
|
63
|
+
this.#filter();
|
|
64
|
+
}
|
|
65
|
+
/** Every command item, in order. @returns {any[]} */
|
|
66
|
+
get items() {
|
|
67
|
+
return [...this.querySelectorAll("punica-command-item")];
|
|
68
|
+
}
|
|
69
|
+
/** The item Enter would choose. */
|
|
70
|
+
get activeItem() {
|
|
71
|
+
return this.#active;
|
|
72
|
+
}
|
|
73
|
+
surfaceOpened() {
|
|
74
|
+
this.#input.value = "";
|
|
75
|
+
this.#filter();
|
|
76
|
+
this.#input.focus({ preventScroll: true });
|
|
77
|
+
}
|
|
78
|
+
update(changed) {
|
|
79
|
+
super.update(changed);
|
|
80
|
+
const input = this.#input;
|
|
81
|
+
const name = this.label || this.placeholder;
|
|
82
|
+
if (this.placeholder) input.setAttribute("placeholder", this.placeholder);
|
|
83
|
+
else input.removeAttribute("placeholder");
|
|
84
|
+
for (const el of [input, this.#list]) {
|
|
85
|
+
if (name) el.setAttribute("aria-label", name);
|
|
86
|
+
else el.removeAttribute("aria-label");
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
#visible() {
|
|
90
|
+
return this.items.filter((item) => !item.filteredOut && !item.disabled);
|
|
91
|
+
}
|
|
92
|
+
#itemOf(event) {
|
|
93
|
+
const item = event.composedPath().find((node) => node instanceof Element && node.localName === "punica-command-item");
|
|
94
|
+
return item && !item.disabled && this.contains(item) ? item : null;
|
|
95
|
+
}
|
|
96
|
+
#filter() {
|
|
97
|
+
const words = this.#input.value.toLowerCase().split(/\s+/).filter(Boolean);
|
|
98
|
+
let shown = 0;
|
|
99
|
+
for (const item of this.items) {
|
|
100
|
+
const text = `${item.textContent} ${item.getAttribute("keywords") ?? ""}`.toLowerCase();
|
|
101
|
+
const out = !words.every((word) => text.includes(word));
|
|
102
|
+
item.filteredOut = out;
|
|
103
|
+
if (!out) shown++;
|
|
104
|
+
}
|
|
105
|
+
for (
|
|
106
|
+
const group of
|
|
107
|
+
/** @type {any[]} */
|
|
108
|
+
[...this.querySelectorAll("punica-command-group")]
|
|
109
|
+
) {
|
|
110
|
+
group.filteredOut = ![...group.querySelectorAll("punica-command-item")].some((item) => !item.filteredOut);
|
|
111
|
+
}
|
|
112
|
+
this.$(".empty").hidden = shown > 0;
|
|
113
|
+
this.#list.hidden = shown === 0;
|
|
114
|
+
this.#setActive(this.#visible()[0] || null, true);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @param {any} item
|
|
118
|
+
* @param {boolean} scroll
|
|
119
|
+
*/
|
|
120
|
+
#setActive(item, scroll) {
|
|
121
|
+
if (this.#active && this.#active !== item) this.#active.active = false;
|
|
122
|
+
this.#active = item;
|
|
123
|
+
const input = this.#input;
|
|
124
|
+
if (item) {
|
|
125
|
+
item.active = true;
|
|
126
|
+
if (scroll) item.scrollIntoView?.({ block: "nearest" });
|
|
127
|
+
}
|
|
128
|
+
if ("ariaActiveDescendantElement" in input) input.ariaActiveDescendantElement = item;
|
|
129
|
+
}
|
|
130
|
+
/** @param {KeyboardEvent} event */
|
|
131
|
+
#onKeydown(event) {
|
|
132
|
+
if (event.key === "Enter") {
|
|
133
|
+
if (event.isComposing) return;
|
|
134
|
+
event.preventDefault();
|
|
135
|
+
if (this.#active) this.#choose(this.#active);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const items = this.#visible();
|
|
139
|
+
const next = nextIndex(event, items.length, items.indexOf(this.#active), { orientation: "vertical" });
|
|
140
|
+
if (next < 0) return;
|
|
141
|
+
event.preventDefault();
|
|
142
|
+
this.#setActive(items[next], true);
|
|
143
|
+
}
|
|
144
|
+
/** @param {any} item */
|
|
145
|
+
#choose(item) {
|
|
146
|
+
const value = item.value ?? item.textContent.trim();
|
|
147
|
+
const event = this.emit("select", { value, item }, { cancelable: true });
|
|
148
|
+
if (!event.defaultPrevented) this.closeWith("select", value);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
define("punica-command-palette", PunicaCommandPalette);
|
|
152
|
+
|
|
153
|
+
export {
|
|
154
|
+
PunicaCommandPalette
|
|
155
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PunicaElement,
|
|
3
|
+
define
|
|
4
|
+
} from "./chunk-Y7B65FYJ.js";
|
|
5
|
+
|
|
6
|
+
// src/components/appBar/appBar.css
|
|
7
|
+
var appBar_default = ":host {\n --punica-app-bar-background: var(--punica-color-primary);\n --punica-app-bar-color: var(--punica-color-on-accent);\n --punica-app-bar-shadow: var(--punica-shadow-xs);\n --punica-app-bar-padding: var(--punica-space-0);\n --punica-app-bar-gap: var(--punica-space-8);\n\n display: flex;\n flex-shrink: 0;\n align-items: center;\n gap: var(--punica-app-bar-gap);\n box-sizing: border-box;\n inline-size: 100%;\n padding-inline: var(--punica-app-bar-padding);\n background: var(--punica-app-bar-background);\n color: var(--punica-app-bar-color);\n box-shadow: var(--punica-app-bar-shadow);\n font-family: var(--punica-font-family);\n}\n\n:host([color='secondary']) {\n --punica-app-bar-background: var(--punica-color-secondary);\n}\n:host([color='error']) {\n --punica-app-bar-background: var(--punica-color-error);\n}\n:host([color='warning']) {\n --punica-app-bar-background: var(--punica-color-warning);\n}\n:host([color='info']) {\n --punica-app-bar-background: var(--punica-color-info);\n}\n:host([color='success']) {\n --punica-app-bar-background: var(--punica-color-success);\n}\n:host([color='neutral']) {\n --punica-app-bar-background: var(--punica-color-surface);\n --punica-app-bar-color: var(--punica-color-text);\n --punica-app-bar-shadow: none;\n border-block-end: var(--punica-border-width) solid var(--punica-color-border);\n}\n\n:host([position='sticky']) {\n position: sticky;\n inset-block-start: 0;\n z-index: var(--punica-z-sticky);\n}\n:host([position='fixed']) {\n position: fixed;\n inset-block-start: 0;\n inset-inline: 0;\n z-index: var(--punica-z-fixed);\n}\n\n.content {\n flex: 1 1 auto;\n min-inline-size: 0;\n}\n\n@media (forced-colors: active) {\n :host {\n border-block-end: var(--punica-border-width) solid CanvasText;\n }\n}\n";
|
|
8
|
+
|
|
9
|
+
// src/components/appBar/appBar.js
|
|
10
|
+
var PunicaAppBar = class extends PunicaElement {
|
|
11
|
+
static properties = {
|
|
12
|
+
position: {},
|
|
13
|
+
color: {}
|
|
14
|
+
};
|
|
15
|
+
static styles = appBar_default;
|
|
16
|
+
static template = `<slot name="start"></slot><div part="content" class="content"><slot></slot></div><slot name="end"></slot>`;
|
|
17
|
+
update() {
|
|
18
|
+
this.internals.role = "banner";
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
define("punica-app-bar", PunicaAppBar);
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
PunicaAppBar
|
|
25
|
+
};
|