diff --git a/.agent/skills/basalt-html/parts/icons.json b/.agent/skills/basalt-html/parts/icons.json index 2a8d11fa..748d4ebe 100644 --- a/.agent/skills/basalt-html/parts/icons.json +++ b/.agent/skills/basalt-html/parts/icons.json @@ -1 +1 @@ -{"notice":"/*! The icon paths below are from Phosphor Icons (@phosphor-icons/react):\nMIT License\n\nCopyright (c) 2020 Phosphor Icons\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/","icons":{"Command":["M180,140H164V116h16a40,40,0,1,0-40-40V92H116V76a40,40,0,1,0-40,40H92v24H76a40,40,0,1,0,40,40V164h24v16a40,40,0,1,0,40-40ZM164,76a16,16,0,1,1,16,16H164ZM60,76a16,16,0,0,1,32,0V92H76A16,16,0,0,1,60,76ZM92,180a16,16,0,1,1-16-16H92Zm24-64h24v24H116Zm64,80a16,16,0,0,1-16-16V164h16a16,16,0,0,1,0,32Z"],"Option":["M236,192a12,12,0,0,1-12,12H160.94a19.89,19.89,0,0,1-17.88-11.06L92.58,92H32a12,12,0,0,1,0-24H95.06a19.89,19.89,0,0,1,17.88,11.06L163.42,180H224A12,12,0,0,1,236,192ZM152,92h72a12,12,0,0,0,0-24H152a12,12,0,0,0,0,24Z"],"Control":["M208.49,128.49a12,12,0,0,1-17,0L128,65,64.49,128.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,128.49Z"],"Sun":["M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"],"Moon":["M236.37,139.4a12,12,0,0,0-12-3A84.07,84.07,0,0,1,119.6,31.59a12,12,0,0,0-15-15A108.86,108.86,0,0,0,49.69,55.07,108,108,0,0,0,136,228a107.09,107.09,0,0,0,64.93-21.69,108.86,108.86,0,0,0,38.44-54.94A12,12,0,0,0,236.37,139.4Zm-49.88,47.74A84,84,0,0,1,68.86,69.51,84.93,84.93,0,0,1,92.27,48.29Q92,52.13,92,56A108.12,108.12,0,0,0,200,164q3.87,0,7.71-.27A84.79,84.79,0,0,1,186.49,187.14Z"],"Info":["M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"],"Warning":["M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"],"ArrowRight":["M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"],"ArrowLeft":["M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"],"ArrowUp":["M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"],"ArrowDown":["M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"],"CaretUpDown":["M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"],"Trash":["M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"],"Download":["M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"],"ArrowClockwise":["M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"],"CheckCircle":["M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"],"XCircle":["M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"],"GithubLogo":["M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z"],"XLogo":["M218.12,209.56l-61-95.8,59.72-65.69a12,12,0,0,0-17.76-16.14L143.81,92.77,106.12,33.56A12,12,0,0,0,96,28H48A12,12,0,0,0,37.88,46.44l61,95.8L39.12,207.93a12,12,0,1,0,17.76,16.14l55.31-60.84,37.69,59.21A12,12,0,0,0,160,228h48a12,12,0,0,0,10.12-18.44ZM166.59,204,69.86,52H89.41l96.73,152Z"],"LinkedinLogo":["M216,20H40A20,20,0,0,0,20,40V216a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V40A20,20,0,0,0,216,20Zm-4,192H44V44H212ZM112,176V120a12,12,0,0,1,21.43-7.41A40,40,0,0,1,192,148v28a12,12,0,0,1-24,0V148a16,16,0,0,0-32,0v28a12,12,0,0,1-24,0ZM96,120v56a12,12,0,0,1-24,0V120a12,12,0,0,1,24,0ZM68,80A16,16,0,1,1,84,96,16,16,0,0,1,68,80Z"],"InstagramLogo":["M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,152ZM176,20H80A60.07,60.07,0,0,0,20,80v96a60.07,60.07,0,0,0,60,60h96a60.07,60.07,0,0,0,60-60V80A60.07,60.07,0,0,0,176,20Zm36,156a36,36,0,0,1-36,36H80a36,36,0,0,1-36-36V80A36,36,0,0,1,80,44h96a36,36,0,0,1,36,36ZM196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Z"],"YoutubeLogo":["M170.49,117.91l-56-36A12,12,0,0,0,96,92v72a12,12,0,0,0,18.49,10.09l56-36a12,12,0,0,0,0-20.18ZM120,142V114l21.81,14Zm118.21-73.5a28.05,28.05,0,0,0-16.93-19.14C186.4,35.91,131.29,36,128,36s-58.4-.09-93.28,13.38A28.05,28.05,0,0,0,17.79,68.52C15.15,78.72,12,97.32,12,128s3.15,49.28,5.79,59.48a28.05,28.05,0,0,0,16.93,19.14C68.21,219.55,120.36,220,127.37,220h1.26c7,0,59.16-.45,92.65-13.38a28.05,28.05,0,0,0,16.93-19.14c2.64-10.2,5.79-28.8,5.79-59.48S240.85,78.72,238.21,68.52ZM215,181.46a4,4,0,0,1-2.34,2.77C182.78,195.76,132.27,196,128.32,196h-.39c-.53,0-53.64.17-84.56-11.77A4,4,0,0,1,41,181.46c-1.88-7.24-5-23.82-5-53.46s3.15-46.22,5-53.46a4,4,0,0,1,2.34-2.77C74.29,59.83,127.39,60,127.92,60h.15c.54,0,53.64-.17,84.56,11.77A4,4,0,0,1,215,74.54c1.88,7.24,5,23.82,5,53.46S216.85,174.22,215,181.46Z"],"EnvelopeSimple":["M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"],"TerminalWindow":["M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z"]}} +{"notice":"/*! The icon paths below are from Phosphor Icons (@phosphor-icons/react):\nMIT License\n\nCopyright (c) 2020 Phosphor Icons\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/","icons":{"Command":["M180,140H164V116h16a40,40,0,1,0-40-40V92H116V76a40,40,0,1,0-40,40H92v24H76a40,40,0,1,0,40,40V164h24v16a40,40,0,1,0,40-40ZM164,76a16,16,0,1,1,16,16H164ZM60,76a16,16,0,0,1,32,0V92H76A16,16,0,0,1,60,76ZM92,180a16,16,0,1,1-16-16H92Zm24-64h24v24H116Zm64,80a16,16,0,0,1-16-16V164h16a16,16,0,0,1,0,32Z"],"Option":["M236,192a12,12,0,0,1-12,12H160.94a19.89,19.89,0,0,1-17.88-11.06L92.58,92H32a12,12,0,0,1,0-24H95.06a19.89,19.89,0,0,1,17.88,11.06L163.42,180H224A12,12,0,0,1,236,192ZM152,92h72a12,12,0,0,0,0-24H152a12,12,0,0,0,0,24Z"],"Control":["M208.49,128.49a12,12,0,0,1-17,0L128,65,64.49,128.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,128.49Z"],"Sun":["M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"],"Moon":["M236.37,139.4a12,12,0,0,0-12-3A84.07,84.07,0,0,1,119.6,31.59a12,12,0,0,0-15-15A108.86,108.86,0,0,0,49.69,55.07,108,108,0,0,0,136,228a107.09,107.09,0,0,0,64.93-21.69,108.86,108.86,0,0,0,38.44-54.94A12,12,0,0,0,236.37,139.4Zm-49.88,47.74A84,84,0,0,1,68.86,69.51,84.93,84.93,0,0,1,92.27,48.29Q92,52.13,92,56A108.12,108.12,0,0,0,200,164q3.87,0,7.71-.27A84.79,84.79,0,0,1,186.49,187.14Z"],"Info":["M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"],"Warning":["M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"],"ArrowRight":["M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"],"ArrowLeft":["M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"],"ArrowUp":["M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"],"ArrowDown":["M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"],"CaretUpDown":["M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"],"Trash":["M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"],"Download":["M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"],"ArrowClockwise":["M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"],"CheckCircle":["M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"],"XCircle":["M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"],"Circle":["M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"],"GithubLogo":["M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z"],"XLogo":["M218.12,209.56l-61-95.8,59.72-65.69a12,12,0,0,0-17.76-16.14L143.81,92.77,106.12,33.56A12,12,0,0,0,96,28H48A12,12,0,0,0,37.88,46.44l61,95.8L39.12,207.93a12,12,0,1,0,17.76,16.14l55.31-60.84,37.69,59.21A12,12,0,0,0,160,228h48a12,12,0,0,0,10.12-18.44ZM166.59,204,69.86,52H89.41l96.73,152Z"],"LinkedinLogo":["M216,20H40A20,20,0,0,0,20,40V216a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V40A20,20,0,0,0,216,20Zm-4,192H44V44H212ZM112,176V120a12,12,0,0,1,21.43-7.41A40,40,0,0,1,192,148v28a12,12,0,0,1-24,0V148a16,16,0,0,0-32,0v28a12,12,0,0,1-24,0ZM96,120v56a12,12,0,0,1-24,0V120a12,12,0,0,1,24,0ZM68,80A16,16,0,1,1,84,96,16,16,0,0,1,68,80Z"],"InstagramLogo":["M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,152ZM176,20H80A60.07,60.07,0,0,0,20,80v96a60.07,60.07,0,0,0,60,60h96a60.07,60.07,0,0,0,60-60V80A60.07,60.07,0,0,0,176,20Zm36,156a36,36,0,0,1-36,36H80a36,36,0,0,1-36-36V80A36,36,0,0,1,80,44h96a36,36,0,0,1,36,36ZM196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Z"],"YoutubeLogo":["M170.49,117.91l-56-36A12,12,0,0,0,96,92v72a12,12,0,0,0,18.49,10.09l56-36a12,12,0,0,0,0-20.18ZM120,142V114l21.81,14Zm118.21-73.5a28.05,28.05,0,0,0-16.93-19.14C186.4,35.91,131.29,36,128,36s-58.4-.09-93.28,13.38A28.05,28.05,0,0,0,17.79,68.52C15.15,78.72,12,97.32,12,128s3.15,49.28,5.79,59.48a28.05,28.05,0,0,0,16.93,19.14C68.21,219.55,120.36,220,127.37,220h1.26c7,0,59.16-.45,92.65-13.38a28.05,28.05,0,0,0,16.93-19.14c2.64-10.2,5.79-28.8,5.79-59.48S240.85,78.72,238.21,68.52ZM215,181.46a4,4,0,0,1-2.34,2.77C182.78,195.76,132.27,196,128.32,196h-.39c-.53,0-53.64.17-84.56-11.77A4,4,0,0,1,41,181.46c-1.88-7.24-5-23.82-5-53.46s3.15-46.22,5-53.46a4,4,0,0,1,2.34-2.77C74.29,59.83,127.39,60,127.92,60h.15c.54,0,53.64-.17,84.56,11.77A4,4,0,0,1,215,74.54c1.88,7.24,5,23.82,5,53.46S216.85,174.22,215,181.46Z"],"EnvelopeSimple":["M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"],"TerminalWindow":["M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z"]}} diff --git a/.agent/skills/basalt-html/parts/manifest.json b/.agent/skills/basalt-html/parts/manifest.json index 1d853b0b..75cdfd9b 100644 --- a/.agent/skills/basalt-html/parts/manifest.json +++ b/.agent/skills/basalt-html/parts/manifest.json @@ -1072,7 +1072,11 @@ "notification-text", "notification-title", "notification-line", - "notification-time" + "notification-time", + "notification-head", + "notification-count", + "notification-caret", + "notification-entries" ], "text": [ "Basalt\\s*\\.\\s*notifications\\b" @@ -1087,9 +1091,10 @@ "icons": [ "CheckCircle", "Warning", - "XCircle" + "XCircle", + "Circle" ], - "budget": 9550, + "budget": 12450, "usage": 1100, "builds": [ "popover", diff --git a/.agent/skills/basalt-html/parts/notifications.css b/.agent/skills/basalt-html/parts/notifications.css index af4eeacb..3f0daedc 100644 --- a/.agent/skills/basalt-html/parts/notifications.css +++ b/.agent/skills/basalt-html/parts/notifications.css @@ -1 +1 @@ -@layer basalt{.notifications-dot{position:absolute;top:var(--basalt-space-1-5);right:var(--basalt-space-1-5);width:var(--basalt-size-dot);height:var(--basalt-size-dot);border-radius:var(--basalt-radius-full);background:var(--basalt-text-primary);pointer-events:none}.popover.notifications:popover-open{display:flex}.popover.notifications{flex-direction:column;width:min(var(--basalt-size-toast-width),calc(100vw - 2 * var(--basalt-space-4)));max-width:none;max-height:var(--available-height, 100vh);padding:0;overflow:hidden}.notifications-head{display:flex;align-items:center;gap:var(--basalt-space-2);padding:var(--basalt-space-2-5) var(--basalt-space-2-5) var(--basalt-space-2-5) var(--basalt-space-4);border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.notifications-title{flex:none;line-height:var(--basalt-text-base-line-height)}.notifications-count{flex:1;min-width:0;font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height);color:var(--basalt-text-secondary);font-variant-numeric:tabular-nums}.notifications-mark{flex:none}.notifications-foot{display:flex;justify-content:flex-end;padding:var(--basalt-space-2-5);border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.notifications-clear{margin-inline-end:auto}.notifications-empty{margin:0;padding:var(--basalt-space-6) var(--basalt-space-4);text-align:center;color:var(--basalt-text-secondary)}.notifications-scroll{position:relative;flex:1;min-height:0;overflow-y:auto}.notifications-list{margin:0;padding:var(--basalt-space-1-5);list-style:none}.notification{--_inset: var(--basalt-space-0-5);box-sizing:border-box;position:relative;isolation:isolate;display:grid;grid-template-columns:var(--basalt-size-dot) var(--basalt-size-icon-sm) minmax(0,1fr) auto;align-items:start;column-gap:var(--basalt-space-2-5);width:100%;margin:0;padding:calc(var(--basalt-space-2) + var(--_inset)) var(--basalt-space-3);border:0;border-radius:calc(var(--basalt-radius-md) + var(--_inset));background:none;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-base);text-align:start;text-decoration:none;cursor:pointer;user-select:none}@media(pointer:coarse){.notification{min-height:var(--basalt-size-tap-min);align-content:center}}.notification:before{content:"";position:absolute;inset:var(--_inset) 0;z-index:-1;border-radius:var(--basalt-radius-md);background-color:transparent;transition:background-color var(--basalt-duration-fast) var(--basalt-ease-out)}.notification:hover:before{background-color:var(--panel-plate);transition-duration:var(--basalt-duration-instant)}.notifications-scroll[data-keys] .notification:hover:before{background-color:transparent}.notification:focus-visible{outline:var(--basalt-size-focus-width) solid var(--basalt-border-focus);outline-offset:calc(var(--basalt-size-focus-offset) - var(--_inset))}.notification-dot{width:var(--basalt-size-dot);height:var(--basalt-size-dot);margin-top:calc((var(--basalt-text-base-line-height) - var(--basalt-size-dot)) / 2);border-radius:var(--basalt-radius-full)}.notification[data-unread] .notification-dot{background:var(--basalt-text-primary)}.notification-mark{display:grid;place-items:center;width:var(--basalt-size-icon-sm);height:var(--basalt-size-icon-sm);margin-top:calc((var(--basalt-text-base-line-height) - var(--basalt-size-icon-sm)) / 2)}.notification[data-status=success] .notification-mark{color:var(--basalt-status-success)}.notification[data-status=warning] .notification-mark{color:var(--basalt-status-warning)}.notification[data-status=danger] .notification-mark{color:var(--basalt-status-danger)}.notification-text{display:flex;flex-direction:column;min-width:0}.notification-title,.notification-line{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification[data-unread] .notification-title,.notification:hover .notification-title{color:var(--basalt-text-primary)}.notification-line{font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height);color:var(--basalt-text-tertiary)}.notification-time{margin-top:calc(var(--basalt-space-0-5) / 2);font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height);font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--basalt-text-tertiary)}.notification:hover .notification-line,.notification:hover .notification-time{color:var(--basalt-text-secondary)}@media(prefers-reduced-motion:no-preference)and (forced-colors:none)and (hover:hover)and (pointer:fine){.notifications-scroll[data-glide] .notification:before{background-color:transparent}}@media(forced-colors:active){.notifications-dot,.notification[data-unread] .notification-dot{box-sizing:border-box;border:calc(var(--basalt-size-dot) / 2) solid;background:none}.notification[data-status] .notification-mark{color:CanvasText}.notification:hover{forced-color-adjust:none;background:Highlight;color:HighlightText}.notification:hover:before{background-color:transparent}.notification:hover :is(.notification-title,.notification-line,.notification-time,.notification-mark){color:HighlightText}}} +@layer basalt{.notifications-dot{position:absolute;top:var(--basalt-space-1-5);right:var(--basalt-space-1-5);width:var(--basalt-size-dot);height:var(--basalt-size-dot);border-radius:var(--basalt-radius-full);background:var(--basalt-text-primary);pointer-events:none}.popover.notifications:popover-open{display:flex}.popover.notifications{flex-direction:column;width:min(var(--basalt-size-toast-width),calc(100vw - 2 * var(--basalt-space-4)));max-width:none;max-height:var(--available-height, 100vh);padding:0;overflow:hidden}.notifications-head{display:flex;align-items:center;gap:var(--basalt-space-2);padding:var(--basalt-space-2-5) var(--basalt-space-2-5) var(--basalt-space-2-5) var(--basalt-space-4);border-bottom:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.notifications-title{flex:none;line-height:var(--basalt-text-base-line-height)}.notifications-count{flex:1;min-width:0;font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height);color:var(--basalt-text-secondary);font-variant-numeric:tabular-nums}.notifications-mark{flex:none}.notifications-foot{display:flex;justify-content:flex-end;padding:var(--basalt-space-2-5);border-top:var(--basalt-size-hairline) solid var(--basalt-border-divider)}.notifications-clear{margin-inline-end:auto}.notifications-empty{margin:0;padding:var(--basalt-space-6) var(--basalt-space-4);text-align:center;color:var(--basalt-text-secondary)}.notifications-scroll{position:relative;flex:1;min-height:0;overflow-y:auto}.notifications-list{margin:0;padding:var(--basalt-space-1-5);list-style:none}.notification{--_inset: var(--basalt-space-0-5);box-sizing:border-box;position:relative;isolation:isolate;display:grid;grid-template-columns:var(--basalt-size-dot) var(--basalt-size-icon-sm) minmax(0,1fr) auto;align-items:start;column-gap:var(--basalt-space-2-5);width:100%;margin:0;padding:calc(var(--basalt-space-2) + var(--_inset)) var(--basalt-space-3);border:0;border-radius:calc(var(--basalt-radius-md) + var(--_inset));background:none;color:var(--basalt-text-secondary);font:var(--basalt-font-weight-regular) var(--bh-base);text-align:start;text-decoration:none;cursor:pointer;user-select:none}@media(pointer:coarse){.notification{min-height:var(--basalt-size-tap-min);align-content:center}}.notification:before{content:"";position:absolute;inset:var(--_inset) 0;z-index:-1;border-radius:var(--basalt-radius-md);background-color:transparent;transition:background-color var(--basalt-duration-fast) var(--basalt-ease-out)}.notification:hover:before{background-color:var(--panel-plate);transition-duration:var(--basalt-duration-instant)}.notifications-scroll[data-keys] .notification:hover:before{background-color:transparent}.notification:focus-visible{outline:var(--basalt-size-focus-width) solid var(--basalt-border-focus);outline-offset:calc(var(--basalt-size-focus-offset) - var(--_inset))}.notification-dot{width:var(--basalt-size-dot);height:var(--basalt-size-dot);margin-top:calc((var(--basalt-text-base-line-height) - var(--basalt-size-dot)) / 2);border-radius:var(--basalt-radius-full)}.notification[data-unread] .notification-dot{background:var(--basalt-text-primary)}.notification-mark{display:grid;place-items:center;width:var(--basalt-size-icon-sm);height:var(--basalt-size-icon-sm);margin-top:calc((var(--basalt-text-base-line-height) - var(--basalt-size-icon-sm)) / 2)}.notification[data-status=success] .notification-mark{color:var(--basalt-status-success)}.notification[data-status=warning] .notification-mark{color:var(--basalt-status-warning)}.notification[data-status=danger] .notification-mark{color:var(--basalt-status-danger)}.notification-text{display:flex;flex-direction:column;min-width:0}.notification-title,.notification-line{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification[data-unread] .notification-title,.notification:hover .notification-title{color:var(--basalt-text-primary)}.notification-line{font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height);color:var(--basalt-text-tertiary)}.notification-time{margin-top:calc(var(--basalt-space-0-5) / 2);font-size:var(--basalt-text-sm-size);line-height:var(--basalt-text-sm-line-height);font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--basalt-text-tertiary)}.notification:hover .notification-line,.notification:hover .notification-time,.notification[data-status=pending] .notification-mark{color:var(--basalt-text-secondary)}.notification[data-current] .notification-title{color:var(--basalt-text-primary);font-weight:var(--basalt-font-weight-semibold)}.notification-head{display:flex;align-items:center;min-width:0}.notification-head>.notification-title{position:relative;flex:0 1 auto}.notification-count{flex:none;margin-inline-start:var(--basalt-space-1-5);font-variant-numeric:tabular-nums;color:var(--basalt-text-secondary)}.notification-caret{flex:none;margin-inline-start:var(--basalt-space-1);color:var(--basalt-text-secondary)}.notification[aria-expanded=true] .notification-caret{transform:rotate(90deg)}.notification[aria-expanded=false] .notification-caret:dir(rtl){transform:scaleX(-1)}.notification-entries{margin:0;padding:0;padding-inline-start:calc(var(--basalt-size-dot) + var(--basalt-size-icon-sm) + 2 * var(--basalt-space-2-5));list-style:none}@media(prefers-reduced-motion:no-preference)and (forced-colors:none)and (hover:hover)and (pointer:fine){.notifications-scroll[data-glide] .notification:before{background-color:transparent}}@media(forced-colors:active){.notifications-dot,.notification[data-unread] .notification-dot{box-sizing:border-box;border:calc(var(--basalt-size-dot) / 2) solid;background:none}.notification[data-status] .notification-mark{color:CanvasText}.notification:hover{forced-color-adjust:none;background:Highlight;color:HighlightText}.notification:hover:before{background-color:transparent}.notification-count,.notification-caret{color:CanvasText}.notification:hover :is(.notification-title,.notification-line,.notification-time,.notification-mark,.notification-count,.notification-caret){color:HighlightText}}} diff --git a/.agent/skills/basalt-html/parts/notifications.js b/.agent/skills/basalt-html/parts/notifications.js index 2d9dfd5e..29b2e6cb 100644 --- a/.agent/skills/basalt-html/parts/notifications.js +++ b/.agent/skills/basalt-html/parts/notifications.js @@ -1 +1 @@ -(function(m){"use strict";var n=m._,C=0,g={success:"CheckCircle",warning:"Warning",danger:"XCircle"},M='';function L(s,S){var i=S||{};typeof s=="string"&&(s=document.querySelector(s));var l="bh-notes-"+ ++C,f=i.label||"Notifications",o=i.entries||[];s.innerHTML='

'+n.esc(f)+'

';var c=s.firstElementChild,a=s.lastElementChild,E=c.querySelector(".notifications-dot"),q=a.querySelector(".notifications-count"),d=a.querySelector(".notifications-mark"),x=a.querySelector(".notifications-empty"),v=a.querySelector(".notifications-scroll"),y=a.querySelector(".notifications-list"),A=a.querySelector(".notifications-foot");A.innerHTML=(i.onClearAll?'':"")+(i.viewAllHref?'View all':'');var H=A.lastElementChild,r=a.querySelector(".notifications-clear"),u;function p(){a.matches(":popover-open")&&a.hidePopover()}function k(){var e=o.reduce(function(t,b){return t+(b.unread?1:0)},0);c.setAttribute("aria-label",e>0?f+", "+e+" unread":f),E.hidden=e===0,q.textContent=e+" unread",e===0?d.setAttribute("aria-disabled","true"):d.removeAttribute("aria-disabled"),r&&(o.length===0?r.setAttribute("aria-disabled","true"):r.removeAttribute("aria-disabled")),x.hidden=o.length>0,v.hidden=o.length===0,y.innerHTML=o.map(function(t,b){var h=t.status||"neutral",w=t.href?"a":"button";return"
  • <"+w+(t.href?' href="'+n.esc(t.href)+'"':' type="button"')+' class="notification" data-index="'+b+'"'+(t.unread?" data-unread":"")+' data-status="'+n.esc(h)+'">'+(t.unread?'Unread: ':"")+n.esc(t.title)+""+(t.description?''+n.esc(t.description)+"":"")+'
  • "}).join("")}return y.addEventListener("click",function(e){var t=e.target.closest(".notification");t&&(i.onSelect&&i.onSelect(o[Number(t.dataset.index)]),p())}),d.addEventListener("click",function(){d.getAttribute("aria-disabled")!=="true"&&i.onMarkAllRead&&i.onMarkAllRead()}),r&&r.addEventListener("click",function(){r.getAttribute("aria-disabled")!=="true"&&i.onClearAll()}),H.addEventListener("click",function(){i.onViewAll&&i.onViewAll(),p()}),a.addEventListener("toggle",function(e){e.newState==="open"?u=n.glide(v,v.firstElementChild,{active:".notification[data-hovered]",item:".notification"}):u&&(u(),u=null)}),k(),{element:a,button:c,setEntries:function(e){o=e||[],k()},open:function(){a.showPopover({source:c})},close:p}}m.notifications=L})(window.Basalt); +(function(M){"use strict";var o=M._,T=0,L={success:"CheckCircle",warning:"Warning",danger:"XCircle",pending:"Circle"},j='',H='';function p(l){return!!(l.entries&&l.entries.length)}function S(l){var f=[];return l.forEach(function(i){if(!p(i))return f.push(i);var c=i.entries.filter(function(d){return d.status!=="danger"});c.length&&f.push(c.length===i.entries.length?i:Object.assign({},i,{entries:c})),i.entries.forEach(function(d){d.status==="danger"&&f.push(d)})}),f}function z(l,f){var i=f||{};typeof l=="string"&&(l=document.querySelector(l));var c="bh-notes-"+ ++T,d=i.label||"Notifications",u=S(i.entries||[]),k={};l.innerHTML='

    '+o.esc(d)+'

    ';var h=l.firstElementChild,r=l.lastElementChild,B=h.querySelector(".notifications-dot"),R=r.querySelector(".notifications-count"),b=r.querySelector(".notifications-mark"),V=r.querySelector(".notifications-empty"),w=r.querySelector(".notifications-scroll"),g=r.querySelector(".notifications-list"),q=r.querySelector(".notifications-foot");q.innerHTML=(i.onClearAll?'':"")+(i.viewAllHref?'View all':'');var I=q.lastElementChild,v=r.querySelector(".notifications-clear"),m;function C(){r.matches(":popover-open")&&r.hidePopover()}function P(t){return p(t)?t.entries.some(function(n){return!!n.unread}):!!t.unread}function E(t,n,e){var a=t.status||"neutral",s=e||!t.href?"button":"a",y=P(t),A=e?Number.isInteger(t.count)&&t.count>0?t.count:t.entries.length:0,N=''+(y?'Unread: ':"")+o.esc(t.title)+(e?', '+A+" times":"")+"";return"<"+s+(s==="a"?' href="'+o.esc(t.href)+'"':' type="button"')+' class="notification" data-index="'+n+'" data-id="'+o.esc(t.id)+'"'+(y?" data-unread":"")+' data-status="'+o.esc(a)+'"'+(t.current?' data-current aria-current="'+(s==="a"?"page":"true")+'"':"")+(e?' data-group aria-expanded="'+!!k[t.id]+'" aria-controls="'+e+'"':"")+'>'+(e?''+N+'"+j+"":N)+(t.description?''+o.esc(t.description)+"":"")+'"}function x(){var t=g.contains(document.activeElement)&&document.activeElement.dataset.id,n=u.reduce(function(e,a){return e+(p(a)?a.entries.filter(function(s){return s.unread}).length:a.unread?1:0)},0);h.setAttribute("aria-label",n>0?d+", "+n+" unread":d),B.hidden=n===0,R.textContent=n+" unread",n===0?b.setAttribute("aria-disabled","true"):b.removeAttribute("aria-disabled"),v&&(u.length===0?v.setAttribute("aria-disabled","true"):v.removeAttribute("aria-disabled")),V.hidden=u.length>0,w.hidden=u.length===0,g.innerHTML=u.map(function(e,a){if(!p(e))return"
  • "+E(e,a)+"
  • ";var s=c+"-g"+a;return"
  • "+E(e,a,s)+'
  • "}).join(""),t&&[].some.call(g.querySelectorAll(".notification"),function(e){return e.dataset.id===t&&(e.focus(),!0)})}return g.addEventListener("click",function(t){var n=t.target.closest(".notification");if(n){var e=n.dataset.index.split(".");if(n.hasAttribute("data-group")){var a=n.getAttribute("aria-expanded")!=="true";k[u[Number(e[0])].id]=a,n.setAttribute("aria-expanded",String(a)),document.getElementById(n.getAttribute("aria-controls")).hidden=!a;return}var s=u[Number(e[0])];i.onSelect&&i.onSelect(e.length>1?s.entries[Number(e[1])]:s),C()}}),b.addEventListener("click",function(){b.getAttribute("aria-disabled")!=="true"&&i.onMarkAllRead&&i.onMarkAllRead()}),v&&v.addEventListener("click",function(){v.getAttribute("aria-disabled")!=="true"&&i.onClearAll()}),I.addEventListener("click",function(){i.onViewAll&&i.onViewAll(),C()}),r.addEventListener("toggle",function(t){t.newState==="open"?m=o.glide(w,w.firstElementChild,{active:".notification[data-hovered]",item:".notification"}):m&&(m(),m=null)}),x(),{element:r,button:h,setEntries:function(t){u=S(t||[]),x()},open:function(){r.showPopover({source:h})},close:C}}M.notifications=z})(window.Basalt); diff --git a/.agent/skills/basalt-html/parts/usage/notifications.md b/.agent/skills/basalt-html/parts/usage/notifications.md index fc5f565a..45b78490 100644 --- a/.agent/skills/basalt-html/parts/usage/notifications.md +++ b/.agent/skills/basalt-html/parts/usage/notifications.md @@ -12,7 +12,6 @@ var centre = Basalt.notifications('#bell', { ``` -- The page owns the entries, their read state and persistence; call `setEntries` after any change; `onClearAll` adds Clear all. Entries run newest first. An entry with `href` is a link, one without is a button. `time` is the words you write ("2m ago"); `status` is `success`, `warning` or `danger`. -- It is where a toast's `home: 'centre'` lives. Keep an entry's action reachable while it is valid. -- Put it in a bar's end, 32px. The unread count is in the button's name, never drawn. -- On touch a one-line entry is 44 tall, its line centred. +- The page owns the entries and read state; call `setEntries` after a change; `onClearAll` adds Clear all. Newest first; `href` makes a link, else a button. `time` is your words ("2m ago"); `status`: `success`, `warning`, `danger`, `pending` (waiting; the title says it). +- A group: `entries: [...]` on an entry, its title naming who and what; the row adds "×N" (`count`) and opens to them. +- Home of a toast's `home: 'centre'`. In a bar's end, 32px; the unread count is in the button's name. diff --git a/.agent/skills/basalt-html/parts/usage/search.md b/.agent/skills/basalt-html/parts/usage/search.md index d1f5119e..b8dbc3da 100644 --- a/.agent/skills/basalt-html/parts/usage/search.md +++ b/.agent/skills/basalt-html/parts/usage/search.md @@ -17,7 +17,7 @@ A search dialog on the dialog's rules (`--usage dialog`): `