@logicplanes/kaeso-ui 0.6.0-rc.8 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/ai/component-guides.md +246 -49
- package/ai/component-registry.json +984 -172
- package/ai/component-registry.md +238 -44
- package/ai/icons.md +3 -3
- package/ai/tokens.md +23 -1
- package/dist/chunks/{app-frame-BQglMYqg.js → app-frame-R1TWy5PY.js} +6 -6
- package/dist/chunks/{app-frame-BQglMYqg.js.map → app-frame-R1TWy5PY.js.map} +1 -1
- package/dist/chunks/{avatar-BxurPxr-.js → avatar-DVrkoFEg.js} +3 -3
- package/dist/chunks/{avatar-BxurPxr-.js.map → avatar-DVrkoFEg.js.map} +1 -1
- package/dist/chunks/{badge-D0xd2NJD.js → badge-CTYrfTwc.js} +3 -3
- package/dist/chunks/{badge-D0xd2NJD.js.map → badge-CTYrfTwc.js.map} +1 -1
- package/dist/chunks/{banner-CDxD8uNX.js → banner-cJ89c-IR.js} +4 -4
- package/dist/chunks/{banner-CDxD8uNX.js.map → banner-cJ89c-IR.js.map} +1 -1
- package/dist/chunks/{button-CcXKlcXd.js → button-Da8b-8ub.js} +83 -72
- package/dist/chunks/button-Da8b-8ub.js.map +1 -0
- package/dist/chunks/{button-group-DuDLB-P0.js → button-group-BJxaz0sb.js} +5 -5
- package/dist/chunks/{button-group-DuDLB-P0.js.map → button-group-BJxaz0sb.js.map} +1 -1
- package/dist/chunks/{calendar-65N4gUmO.js → calendar-CA9mDtwp.js} +2 -2
- package/dist/chunks/{calendar-65N4gUmO.js.map → calendar-CA9mDtwp.js.map} +1 -1
- package/dist/chunks/{checkbox-BB_tV5ic.js → checkbox-CPL47-us.js} +4 -4
- package/dist/chunks/{checkbox-BB_tV5ic.js.map → checkbox-CPL47-us.js.map} +1 -1
- package/dist/chunks/{cn-BUMD6lNz.js → cn-CLpm819s.js} +4 -1
- package/dist/chunks/cn-CLpm819s.js.map +1 -0
- package/dist/chunks/{code-BBeW-m4W.js → code-CpqXogQK.js} +2 -2
- package/dist/chunks/{code-BBeW-m4W.js.map → code-CpqXogQK.js.map} +1 -1
- package/dist/chunks/code-block-7c_BOBlJ.js +247 -0
- package/dist/chunks/code-block-7c_BOBlJ.js.map +1 -0
- package/dist/chunks/{code-block-CbVLyIr-.js → code-block-BqFGa1-b.js} +82 -81
- package/dist/chunks/code-block-BqFGa1-b.js.map +1 -0
- package/dist/chunks/{collapsible-CiDUGq5u.js → collapsible-DmLyF8Ol.js} +3 -3
- package/dist/chunks/{collapsible-CiDUGq5u.js.map → collapsible-DmLyF8Ol.js.map} +1 -1
- package/dist/chunks/{combobox-BX703kW9.js → combobox-B-xciC2c.js} +6 -6
- package/dist/chunks/{combobox-BX703kW9.js.map → combobox-B-xciC2c.js.map} +1 -1
- package/dist/chunks/{command-list-BLVmk0z6.js → command-list-GQ3y8on6.js} +4 -4
- package/dist/chunks/{command-list-BLVmk0z6.js.map → command-list-GQ3y8on6.js.map} +1 -1
- package/dist/chunks/{command-palette-s_qW_RRa.js → command-palette-DEJDRW31.js} +5 -5
- package/dist/chunks/{command-palette-s_qW_RRa.js.map → command-palette-DEJDRW31.js.map} +1 -1
- package/dist/chunks/{copy-button-CK-ddxCg.js → copy-button-B67MEIu2.js} +6 -5
- package/dist/chunks/copy-button-B67MEIu2.js.map +1 -0
- package/dist/chunks/core-CQUQdd7y.js +414 -0
- package/dist/chunks/core-CQUQdd7y.js.map +1 -0
- package/dist/chunks/dashboard-NqG9Wgga.js +132 -0
- package/dist/chunks/dashboard-NqG9Wgga.js.map +1 -0
- package/dist/chunks/data-table-ByhxIgY2.js +625 -0
- package/dist/chunks/data-table-ByhxIgY2.js.map +1 -0
- package/dist/chunks/{date-picker-DGM5bXxD.js → date-picker-BmLb22jd.js} +8 -8
- package/dist/chunks/{date-picker-DGM5bXxD.js.map → date-picker-BmLb22jd.js.map} +1 -1
- package/dist/chunks/{date-popup-C2FLIETP.js → date-popup-7ZzVxhY1.js} +4 -4
- package/dist/chunks/{date-popup-C2FLIETP.js.map → date-popup-7ZzVxhY1.js.map} +1 -1
- package/dist/chunks/{de-aLc0-E5B.js → de-V_lN_KKk.js} +40 -4
- package/dist/chunks/de-V_lN_KKk.js.map +1 -0
- package/dist/chunks/delta-BCIXqi3O.js +36 -0
- package/dist/chunks/delta-BCIXqi3O.js.map +1 -0
- package/dist/chunks/{dialog-DhT0sDr6.js → dialog-C3CMOFxU.js} +4 -4
- package/dist/chunks/{dialog-DhT0sDr6.js.map → dialog-C3CMOFxU.js.map} +1 -1
- package/dist/chunks/{disclosure-DDSekEH6.js → disclosure-DhMvGSll.js} +2 -2
- package/dist/chunks/{disclosure-DDSekEH6.js.map → disclosure-DhMvGSll.js.map} +1 -1
- package/dist/chunks/{display-options-CRZO-ODl.js → display-options-BTFqLSJX.js} +9 -9
- package/dist/chunks/{display-options-CRZO-ODl.js.map → display-options-BTFqLSJX.js.map} +1 -1
- package/dist/chunks/{domain-aTOiqhIX.js → domain-DtP6QrOA.js} +9 -9
- package/dist/chunks/{domain-aTOiqhIX.js.map → domain-DtP6QrOA.js.map} +1 -1
- package/dist/chunks/{empty-DWXE3-2p.js → empty-BSAHpS5Q.js} +2 -2
- package/dist/chunks/{empty-DWXE3-2p.js.map → empty-BSAHpS5Q.js.map} +1 -1
- package/dist/chunks/{field-CRbWDIsH.js → field-ng87P1GV.js} +2 -2
- package/dist/chunks/{field-CRbWDIsH.js.map → field-ng87P1GV.js.map} +1 -1
- package/dist/chunks/{figure-C2WlBeYZ.js → figure-_uZS1Y52.js} +3 -3
- package/dist/chunks/{figure-C2WlBeYZ.js.map → figure-_uZS1Y52.js.map} +1 -1
- package/dist/chunks/{filter-chip-hGC4Okb0.js → filter-chip-CQO2lHeZ.js} +6 -6
- package/dist/chunks/{filter-chip-hGC4Okb0.js.map → filter-chip-CQO2lHeZ.js.map} +1 -1
- package/dist/chunks/{filter-row-BcBy7gxN.js → filter-row-Bs2lFT67.js} +2 -2
- package/dist/chunks/{filter-row-BcBy7gxN.js.map → filter-row-Bs2lFT67.js.map} +1 -1
- package/dist/chunks/{flow-T4mRzmsP.js → flow-BGFXfXgJ.js} +3 -3
- package/dist/chunks/{flow-T4mRzmsP.js.map → flow-BGFXfXgJ.js.map} +1 -1
- package/dist/chunks/{heading-Dua_i106.js → heading-wBU2QK4s.js} +2 -2
- package/dist/chunks/{heading-Dua_i106.js.map → heading-wBU2QK4s.js.map} +1 -1
- package/dist/chunks/{icon-DI6L-F9F.js → icon-CPiYZMTw.js} +2 -2
- package/dist/chunks/{icon-DI6L-F9F.js.map → icon-CPiYZMTw.js.map} +1 -1
- package/dist/chunks/icon-lgMMe3zk.js +108 -0
- package/dist/chunks/icon-lgMMe3zk.js.map +1 -0
- package/dist/chunks/identity-DCghs4Wp.js +872 -0
- package/dist/chunks/identity-DCghs4Wp.js.map +1 -0
- package/dist/chunks/{input-DHrCmxvX.js → input-QQR4KS9D.js} +5 -5
- package/dist/chunks/{input-DHrCmxvX.js.map → input-QQR4KS9D.js.map} +1 -1
- package/dist/chunks/{input-group-6LrjOci-.js → input-group-A2mru3OM.js} +4 -4
- package/dist/chunks/{input-group-6LrjOci-.js.map → input-group-A2mru3OM.js.map} +1 -1
- package/dist/chunks/{input-Ia8Mqd8q.js → input-iSaRkw-V.js} +5 -5
- package/dist/chunks/{input-Ia8Mqd8q.js.map → input-iSaRkw-V.js.map} +1 -1
- package/dist/chunks/{iso-field-CKN-M0PC.js → iso-field-D2CISQaB.js} +2 -2
- package/dist/chunks/{iso-field-CKN-M0PC.js.map → iso-field-D2CISQaB.js.map} +1 -1
- package/dist/chunks/{json-view-B6NjVdYp.js → json-view-DeHSFq-2.js} +9 -12
- package/dist/chunks/json-view-DeHSFq-2.js.map +1 -0
- package/dist/chunks/{kaeso-CE3QS6Xl.js → kaeso-Bs1aLSTp.js} +128 -124
- package/dist/chunks/kaeso-Bs1aLSTp.js.map +1 -0
- package/dist/chunks/kaeso-theme-BIgOZi41.js +299 -0
- package/dist/chunks/kaeso-theme-BIgOZi41.js.map +1 -0
- package/dist/chunks/{kbd-CFkkPtOm.js → kbd-xC3k90CH.js} +2 -2
- package/dist/chunks/{kbd-CFkkPtOm.js.map → kbd-xC3k90CH.js.map} +1 -1
- package/dist/chunks/{key-value-BsnQl9_-.js → key-value-DKW2q0zt.js} +4 -4
- package/dist/chunks/{key-value-BsnQl9_-.js.map → key-value-DKW2q0zt.js.map} +1 -1
- package/dist/chunks/{link-jtnw0XQV.js → link-CWYlF_dE.js} +3 -3
- package/dist/chunks/{link-jtnw0XQV.js.map → link-CWYlF_dE.js.map} +1 -1
- package/dist/chunks/{list-Ch4Y7IZk.js → list-CT7yIoA5.js} +9 -9
- package/dist/chunks/{list-Ch4Y7IZk.js.map → list-CT7yIoA5.js.map} +1 -1
- package/dist/chunks/{loader-2Tsz3V9j.js → loader-D27YO1c3.js} +3 -3
- package/dist/chunks/{loader-2Tsz3V9j.js.map → loader-D27YO1c3.js.map} +1 -1
- package/dist/chunks/{loader-C9qbRLAi.js → loader-DtZd9btk.js} +2 -2
- package/dist/chunks/{loader-C9qbRLAi.js.map → loader-DtZd9btk.js.map} +1 -1
- package/dist/chunks/{logo-DlxX9yDU.js → logo-DTqTs3vV.js} +3 -3
- package/dist/chunks/{logo-DlxX9yDU.js.map → logo-DTqTs3vV.js.map} +1 -1
- package/dist/chunks/markdown-BlIl3LuV.js +325 -0
- package/dist/chunks/markdown-BlIl3LuV.js.map +1 -0
- package/dist/chunks/{menu-DxmOaBVN.js → menu-D3tUjkCM.js} +4 -4
- package/dist/chunks/{menu-DxmOaBVN.js.map → menu-D3tUjkCM.js.map} +1 -1
- package/dist/chunks/{meter-CJqtlPjV.js → meter-wcH0LXva.js} +4 -4
- package/dist/chunks/{meter-CJqtlPjV.js.map → meter-wcH0LXva.js.map} +1 -1
- package/dist/chunks/{nav-sheet-DwAJdFCD.js → nav-sheet-CteQQuMz.js} +3 -3
- package/dist/chunks/{nav-sheet-DwAJdFCD.js.map → nav-sheet-CteQQuMz.js.map} +1 -1
- package/dist/chunks/{nav-wordmark-3Bvc2UI6.js → nav-wordmark-DR4Glswt.js} +2 -2
- package/dist/chunks/{nav-wordmark-3Bvc2UI6.js.map → nav-wordmark-DR4Glswt.js.map} +1 -1
- package/dist/chunks/{page-header-DIZCC9oT.js → page-header-JWk6TQNN.js} +5 -5
- package/dist/chunks/{page-header-DIZCC9oT.js.map → page-header-JWk6TQNN.js.map} +1 -1
- package/dist/chunks/{pagination-DFxZ2d3u.js → pagination-BT-lQc45.js} +3 -3
- package/dist/chunks/{pagination-DFxZ2d3u.js.map → pagination-BT-lQc45.js.map} +1 -1
- package/dist/chunks/{picker-popover-tBL7TLJC.js → picker-popover-Bb-2Amjw.js} +8 -7
- package/dist/chunks/{picker-popover-tBL7TLJC.js.map → picker-popover-Bb-2Amjw.js.map} +1 -1
- package/dist/chunks/{popover-DRvCfHVs.js → popover-CAoo5c59.js} +2 -2
- package/dist/chunks/{popover-DRvCfHVs.js.map → popover-CAoo5c59.js.map} +1 -1
- package/dist/chunks/provider-marks-BVbDRIv-.js +19 -0
- package/dist/chunks/provider-marks-BVbDRIv-.js.map +1 -0
- package/dist/chunks/{qr-code-HlCtD0aP.js → qr-code-DOsFDNiz.js} +2 -2
- package/dist/chunks/{qr-code-HlCtD0aP.js.map → qr-code-DOsFDNiz.js.map} +1 -1
- package/dist/chunks/{radio-BNZqKDn4.js → radio-DfOB6J3Z.js} +3 -3
- package/dist/chunks/{radio-BNZqKDn4.js.map → radio-DfOB6J3Z.js.map} +1 -1
- package/dist/chunks/{range-popup-H1040MdD.js → range-popup-iBru5bpM.js} +7 -7
- package/dist/chunks/{range-popup-H1040MdD.js.map → range-popup-iBru5bpM.js.map} +1 -1
- package/dist/chunks/{reasoning-frame-BuhiGUBq.js → reasoning-frame-DBIq2SMT.js} +3 -3
- package/dist/chunks/{reasoning-frame-BuhiGUBq.js.map → reasoning-frame-DBIq2SMT.js.map} +1 -1
- package/dist/chunks/{release-art-BeseUxSj.js → release-art-D7Iq6Qhv.js} +25 -25
- package/dist/chunks/release-art-D7Iq6Qhv.js.map +1 -0
- package/dist/chunks/{rights-QyZEMemh.js → rights-DDGgi823.js} +10 -10
- package/dist/chunks/{rights-QyZEMemh.js.map → rights-DDGgi823.js.map} +1 -1
- package/dist/chunks/rolling-number-ea1iiycC.js +41 -0
- package/dist/chunks/rolling-number-ea1iiycC.js.map +1 -0
- package/dist/chunks/{scroll-area-BvxoHcHS.js → scroll-area-D-ykAChX.js} +2 -2
- package/dist/chunks/{scroll-area-BvxoHcHS.js.map → scroll-area-D-ykAChX.js.map} +1 -1
- package/dist/chunks/{section-Dd5vmuR1.js → section-BmR6_Wts.js} +3 -3
- package/dist/chunks/{section-Dd5vmuR1.js.map → section-BmR6_Wts.js.map} +1 -1
- package/dist/chunks/{segmented-Clv2P1AB.js → segmented-BJJHHn0N.js} +17 -67
- package/dist/chunks/segmented-BJJHHn0N.js.map +1 -0
- package/dist/chunks/{select-DU6O_iW6.js → select-Ch4u5oIg.js} +4 -4
- package/dist/chunks/{select-DU6O_iW6.js.map → select-Ch4u5oIg.js.map} +1 -1
- package/dist/chunks/{separator-DMXz46Ge.js → separator-B2CT4qia.js} +2 -2
- package/dist/chunks/{separator-DMXz46Ge.js.map → separator-B2CT4qia.js.map} +1 -1
- package/dist/chunks/{settings-CWvZ9h4g.js → settings-BnheJGYB.js} +3 -3
- package/dist/chunks/{settings-CWvZ9h4g.js.map → settings-BnheJGYB.js.map} +1 -1
- package/dist/chunks/{sheet-DrxdaMjN.js → sheet-K6qa1kRf.js} +3 -3
- package/dist/chunks/{sheet-DrxdaMjN.js.map → sheet-K6qa1kRf.js.map} +1 -1
- package/dist/chunks/shiki-CRJpi_Hd.js +99 -0
- package/dist/chunks/shiki-CRJpi_Hd.js.map +1 -0
- package/dist/chunks/{sidebar-ZDmAFOVM.js → sidebar-D7eSzz33.js} +8 -8
- package/dist/chunks/{sidebar-ZDmAFOVM.js.map → sidebar-D7eSzz33.js.map} +1 -1
- package/dist/chunks/{sidebar-menu-Iq_ADCGg.js → sidebar-menu-f5NMgTdE.js} +2 -2
- package/dist/chunks/{sidebar-menu-Iq_ADCGg.js.map → sidebar-menu-f5NMgTdE.js.map} +1 -1
- package/dist/chunks/{skeleton-E7yXpAaT.js → skeleton-Bx-vRJdy.js} +2 -2
- package/dist/chunks/{skeleton-E7yXpAaT.js.map → skeleton-Bx-vRJdy.js.map} +1 -1
- package/dist/chunks/{slider-DoJfRjX1.js → slider-BuEZfzNB.js} +2 -2
- package/dist/chunks/{slider-DoJfRjX1.js.map → slider-BuEZfzNB.js.map} +1 -1
- package/dist/chunks/{stat-7VFJ8QW-.js → stat-gR4hFqO8.js} +68 -81
- package/dist/chunks/stat-gR4hFqO8.js.map +1 -0
- package/dist/chunks/{status-BvzxKVpT.js → status-CejTEkqR.js} +3 -3
- package/dist/chunks/{status-BvzxKVpT.js.map → status-CejTEkqR.js.map} +1 -1
- package/dist/chunks/{swap-text-BgdoVD3v.js → swap-text-CxWcVD0a.js} +2 -2
- package/dist/chunks/{swap-text-BgdoVD3v.js.map → swap-text-CxWcVD0a.js.map} +1 -1
- package/dist/chunks/swap-value-DMEInk8V.js +30 -0
- package/dist/chunks/swap-value-DMEInk8V.js.map +1 -0
- package/dist/chunks/{switch-lxwwqvbG.js → switch-CklvBjKu.js} +4 -4
- package/dist/chunks/{switch-lxwwqvbG.js.map → switch-CklvBjKu.js.map} +1 -1
- package/dist/chunks/{table-6rmKwlCw.js → table-BTUUwlXD.js} +2 -2
- package/dist/chunks/{table-6rmKwlCw.js.map → table-BTUUwlXD.js.map} +1 -1
- package/dist/chunks/{tabs-BZj11L5c.js → tabs-D0I6Jkd4.js} +3 -3
- package/dist/chunks/{tabs-BZj11L5c.js.map → tabs-D0I6Jkd4.js.map} +1 -1
- package/dist/chunks/{tag-Bnc0j1jP.js → tag-BGvgGsvr.js} +4 -4
- package/dist/chunks/{tag-Bnc0j1jP.js.map → tag-BGvgGsvr.js.map} +1 -1
- package/dist/chunks/{text-D_rqwSaG.js → text-ChUk0Z46.js} +3 -3
- package/dist/chunks/{text-D_rqwSaG.js.map → text-ChUk0Z46.js.map} +1 -1
- package/dist/chunks/{textarea-BzMbsYD7.js → textarea-Bmj2Yk79.js} +5 -5
- package/dist/chunks/{textarea-BzMbsYD7.js.map → textarea-Bmj2Yk79.js.map} +1 -1
- package/dist/chunks/{theme-image-DjI_Zymf.js → theme-image-Bk97CYp8.js} +4 -4
- package/dist/chunks/{theme-image-DjI_Zymf.js.map → theme-image-Bk97CYp8.js.map} +1 -1
- package/dist/chunks/{theme-menu-BLNYvmuB.js → theme-menu-DvtuCuuN.js} +3 -3
- package/dist/chunks/{theme-menu-BLNYvmuB.js.map → theme-menu-DvtuCuuN.js.map} +1 -1
- package/dist/chunks/{thumbnail-CRdk7mvC.js → thumbnail-D2hD8aEk.js} +2 -2
- package/dist/chunks/{thumbnail-CRdk7mvC.js.map → thumbnail-D2hD8aEk.js.map} +1 -1
- package/dist/chunks/thumbnail-DadL1nPU.js +71 -0
- package/dist/chunks/thumbnail-DadL1nPU.js.map +1 -0
- package/dist/chunks/{timeline-CWQdqBVv.js → timeline-BQm5Q-Ul.js} +3 -3
- package/dist/chunks/{timeline-CWQdqBVv.js.map → timeline-BQm5Q-Ul.js.map} +1 -1
- package/dist/chunks/timeseries-B_Z3nNn6.js +403 -0
- package/dist/chunks/timeseries-B_Z3nNn6.js.map +1 -0
- package/dist/chunks/{toast-C78w9ewo.js → toast-CSlvlu-r.js} +5 -5
- package/dist/chunks/{toast-C78w9ewo.js.map → toast-CSlvlu-r.js.map} +1 -1
- package/dist/chunks/{toc-BHf7IbFL.js → toc-Cu2QJL5A.js} +2 -2
- package/dist/chunks/{toc-BHf7IbFL.js.map → toc-Cu2QJL5A.js.map} +1 -1
- package/dist/chunks/{toolbar-CjykT3ZP.js → toolbar-DE-R3sjA.js} +2 -2
- package/dist/chunks/{toolbar-CjykT3ZP.js.map → toolbar-DE-R3sjA.js.map} +1 -1
- package/dist/chunks/tooltip-C8ehtFju.js +104 -0
- package/dist/chunks/tooltip-C8ehtFju.js.map +1 -0
- package/dist/chunks/{tooltip-F3l2S3Ad.js → tooltip-SZvkUaq9.js} +4 -4
- package/dist/chunks/{tooltip-F3l2S3Ad.js.map → tooltip-SZvkUaq9.js.map} +1 -1
- package/dist/chunks/{tooltip-root-Co-dVnZj.js → tooltip-root-CrLuOT4j.js} +4 -4
- package/dist/chunks/{tooltip-root-Co-dVnZj.js.map → tooltip-root-CrLuOT4j.js.map} +1 -1
- package/dist/chunks/{truncated-CzAJxfAD.js → truncated-C0A4AU-U.js} +3 -3
- package/dist/chunks/{truncated-CzAJxfAD.js.map → truncated-C0A4AU-U.js.map} +1 -1
- package/dist/chunks/use-indicator-C1ovED2B.js +57 -0
- package/dist/chunks/use-indicator-C1ovED2B.js.map +1 -0
- package/dist/chunks/{visually-hidden-UprFAwfn.js → visually-hidden-CLTH1HKD.js} +2 -2
- package/dist/chunks/{visually-hidden-UprFAwfn.js.map → visually-hidden-CLTH1HKD.js.map} +1 -1
- package/dist/chunks/{zh-CN-RCSVKiQh.js → zh-CN-Dv7n5mAr.js} +40 -4
- package/dist/chunks/zh-CN-Dv7n5mAr.js.map +1 -0
- package/dist/components/app-frame.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/button-group.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/charts/bar.js +20 -19
- package/dist/components/charts/bar.js.map +1 -1
- package/dist/components/charts/donut.js +16 -15
- package/dist/components/charts/donut.js.map +1 -1
- package/dist/components/charts/heatmap.js +3 -2
- package/dist/components/charts/heatmap.js.map +1 -1
- package/dist/components/charts/sankey.js +11 -10
- package/dist/components/charts/sankey.js.map +1 -1
- package/dist/components/charts/sparkline.js +114 -42
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/timeseries.js +1 -1
- package/dist/components/charts.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/code-block.js +5 -4
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/dashboard/legend.js +43 -0
- package/dist/components/dashboard/legend.js.map +1 -0
- package/dist/components/dashboard/metric-tabs.js +140 -0
- package/dist/components/dashboard/metric-tabs.js.map +1 -0
- package/dist/components/dashboard/model-card.js +82 -0
- package/dist/components/dashboard/model-card.js.map +1 -0
- package/dist/components/dashboard/rank-list.js +107 -0
- package/dist/components/dashboard/rank-list.js.map +1 -0
- package/dist/components/dashboard.js +7 -0
- package/dist/components/data-table.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/display-options.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/figure.js +1 -1
- package/dist/components/filter-chip.js +1 -1
- package/dist/components/filter-row.js +1 -1
- package/dist/components/flow-canvas.js +4 -4
- package/dist/components/flow.js +1 -1
- package/dist/components/heading.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/input.js +3 -3
- package/dist/components/kaeso/conversation.js +37 -8
- package/dist/components/kaeso/conversation.js.map +1 -1
- package/dist/components/kaeso/identity.js +1 -1
- package/dist/components/kaeso/moments.js +5 -5
- package/dist/components/kaeso/moments.js.map +1 -1
- package/dist/components/kaeso/rights.js +1 -1
- package/dist/components/kaeso/usage.js +17 -16
- package/dist/components/kaeso/usage.js.map +1 -1
- package/dist/components/kaeso.js +3 -3
- package/dist/components/kbd.js +1 -1
- package/dist/components/key-value.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loader.js +2 -2
- package/dist/components/logo.js +1 -1
- package/dist/components/markdown.js +2 -2
- package/dist/components/menu.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/playground.js +911 -545
- package/dist/components/playground.js.map +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/qr-code.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/release-art.js +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/section.js +1 -1
- package/dist/components/segmented.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/settings.js +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/stat.js +4 -1
- package/dist/components/status.js +1 -1
- package/dist/components/swap-text.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/theme-image.js +1 -1
- package/dist/components/theme-menu.js +1 -1
- package/dist/components/thumbnail.js +3 -1
- package/dist/components/timeline.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toc.js +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/visually-hidden.js +1 -1
- package/dist/i18n-provider.js +1 -1
- package/dist/index.js +112 -102
- package/dist/kaeso.css +97 -10
- package/dist/styles.css +1 -1
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/button/docs.d.ts +1 -0
- package/dist/types/components/charts/core.d.ts +3 -27
- package/dist/types/components/charts/docs.d.ts +4 -0
- package/dist/types/components/charts/sparkline.d.ts +4 -0
- package/dist/types/components/charts/timeseries.d.ts +2 -0
- package/dist/types/components/charts/tooltip.d.ts +28 -0
- package/dist/types/components/code-block/highlighter.d.ts +9 -18
- package/dist/types/components/code-block/index.d.ts +1 -1
- package/dist/types/components/code-block/kaeso-theme.d.ts +74 -8
- package/dist/types/components/code-block/shiki.d.ts +18 -0
- package/dist/types/components/code-block/tones.d.ts +64 -0
- package/dist/types/components/copy-button/copy-button.d.ts +4 -0
- package/dist/types/components/dashboard/dashboard.d.ts +61 -0
- package/dist/types/components/dashboard/docs.d.ts +92 -0
- package/dist/types/components/dashboard/index.d.ts +6 -0
- package/dist/types/components/dashboard/legend.d.ts +11 -0
- package/dist/types/components/dashboard/metric-tabs.d.ts +22 -0
- package/dist/types/components/dashboard/model-card.d.ts +23 -0
- package/dist/types/components/dashboard/rank-list.d.ts +21 -0
- package/dist/types/components/dashboard/swap-value.d.ts +7 -0
- package/dist/types/components/field/field.d.ts +1 -1
- package/dist/types/components/kaeso/conversation.d.ts +8 -0
- package/dist/types/components/kaeso/docs.d.ts +3 -0
- package/dist/types/components/kaeso/identity.d.ts +3 -0
- package/dist/types/components/kaeso/provider-picker.d.ts +4 -1
- package/dist/types/components/markdown/index.d.ts +1 -1
- package/dist/types/components/markdown/markdown.d.ts +9 -2
- package/dist/types/components/playground/attachments.d.ts +32 -0
- package/dist/types/components/playground/compare-grid.d.ts +1 -0
- package/dist/types/components/playground/composer.d.ts +8 -2
- package/dist/types/components/playground/docs.d.ts +36 -10
- package/dist/types/components/playground/index.d.ts +5 -3
- package/dist/types/components/playground/media-response.d.ts +46 -0
- package/dist/types/components/playground/parameter-panel.d.ts +17 -0
- package/dist/types/components/playground/response-metrics.d.ts +3 -3
- package/dist/types/components/playground/response-view.d.ts +2 -0
- package/dist/types/components/release-art/docs.d.ts +1 -0
- package/dist/types/components/release-art/release-art.d.ts +1 -0
- package/dist/types/components/stat/delta.d.ts +28 -0
- package/dist/types/components/stat/docs.d.ts +13 -0
- package/dist/types/components/stat/index.d.ts +4 -0
- package/dist/types/components/stat/rolling-number.d.ts +7 -0
- package/dist/types/components/stat/stat.d.ts +1 -1
- package/dist/types/components/thumbnail/docs.d.ts +11 -0
- package/dist/types/components/thumbnail/index.d.ts +2 -0
- package/dist/types/components/thumbnail/media-view.d.ts +33 -0
- package/dist/types/hooks/use-sticky-top.d.ts +2 -0
- package/dist/types/icons/groups.d.ts +2 -2
- package/dist/types/icons/vocabulary.d.ts +30 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/provider-marks.d.ts +11 -0
- package/dist/utils.js +7 -6
- package/foundations/color.md +24 -2
- package/foundations/motion.md +1 -0
- package/package.json +2 -2
- package/dist/chunks/button-CcXKlcXd.js.map +0 -1
- package/dist/chunks/cn-BUMD6lNz.js.map +0 -1
- package/dist/chunks/code-block-8rW57rUV.js +0 -345
- package/dist/chunks/code-block-8rW57rUV.js.map +0 -1
- package/dist/chunks/code-block-CbVLyIr-.js.map +0 -1
- package/dist/chunks/copy-button-CK-ddxCg.js.map +0 -1
- package/dist/chunks/core-nqsBmktJ.js +0 -496
- package/dist/chunks/core-nqsBmktJ.js.map +0 -1
- package/dist/chunks/data-table-FQlJ_Ae4.js +0 -605
- package/dist/chunks/data-table-FQlJ_Ae4.js.map +0 -1
- package/dist/chunks/de-aLc0-E5B.js.map +0 -1
- package/dist/chunks/icon-CPNoEw5s.js +0 -102
- package/dist/chunks/icon-CPNoEw5s.js.map +0 -1
- package/dist/chunks/identity-CpM7nAZ3.js +0 -494
- package/dist/chunks/identity-CpM7nAZ3.js.map +0 -1
- package/dist/chunks/json-view-B6NjVdYp.js.map +0 -1
- package/dist/chunks/kaeso-CE3QS6Xl.js.map +0 -1
- package/dist/chunks/markdown-8YRbGHeS.js +0 -338
- package/dist/chunks/markdown-8YRbGHeS.js.map +0 -1
- package/dist/chunks/release-art-BeseUxSj.js.map +0 -1
- package/dist/chunks/segmented-Clv2P1AB.js.map +0 -1
- package/dist/chunks/stat-7VFJ8QW-.js.map +0 -1
- package/dist/chunks/timeseries-Cj50XALJ.js +0 -381
- package/dist/chunks/timeseries-Cj50XALJ.js.map +0 -1
- package/dist/chunks/zh-CN-RCSVKiQh.js.map +0 -1
- package/dist/types/components/playground/prompt-suggestions.d.ts +0 -24
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
//#region src/components/code-block/tones.ts
|
|
2
|
+
var e = {
|
|
3
|
+
text: {
|
|
4
|
+
color: "var(--k-text)",
|
|
5
|
+
className: ""
|
|
6
|
+
},
|
|
7
|
+
keyword: {
|
|
8
|
+
color: "var(--k-code-keyword)",
|
|
9
|
+
className: "text-code-keyword"
|
|
10
|
+
},
|
|
11
|
+
string: {
|
|
12
|
+
color: "var(--k-code-string)",
|
|
13
|
+
className: "text-code-string"
|
|
14
|
+
},
|
|
15
|
+
constant: {
|
|
16
|
+
color: "var(--k-code-constant)",
|
|
17
|
+
className: "text-code-constant"
|
|
18
|
+
},
|
|
19
|
+
comment: {
|
|
20
|
+
color: "var(--k-code-comment)",
|
|
21
|
+
className: "text-code-comment"
|
|
22
|
+
},
|
|
23
|
+
function: {
|
|
24
|
+
color: "var(--k-code-function)",
|
|
25
|
+
className: "text-code-function"
|
|
26
|
+
},
|
|
27
|
+
type: {
|
|
28
|
+
color: "var(--k-code-type)",
|
|
29
|
+
className: "text-code-type"
|
|
30
|
+
},
|
|
31
|
+
property: {
|
|
32
|
+
color: "var(--k-code-property)",
|
|
33
|
+
className: "text-code-property"
|
|
34
|
+
},
|
|
35
|
+
tag: {
|
|
36
|
+
color: "var(--k-code-tag)",
|
|
37
|
+
className: "text-code-tag"
|
|
38
|
+
},
|
|
39
|
+
attribute: {
|
|
40
|
+
color: "var(--k-code-attribute)",
|
|
41
|
+
className: "text-code-attribute"
|
|
42
|
+
},
|
|
43
|
+
variable: {
|
|
44
|
+
color: "var(--k-code-variable)",
|
|
45
|
+
className: "text-code-variable"
|
|
46
|
+
},
|
|
47
|
+
punctuation: {
|
|
48
|
+
color: "var(--k-code-punctuation)",
|
|
49
|
+
className: "text-code-punctuation"
|
|
50
|
+
},
|
|
51
|
+
inserted: {
|
|
52
|
+
color: "var(--k-code-inserted)",
|
|
53
|
+
className: "text-code-inserted"
|
|
54
|
+
},
|
|
55
|
+
deleted: {
|
|
56
|
+
color: "var(--k-code-deleted)",
|
|
57
|
+
className: "text-code-deleted"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
function t(t) {
|
|
61
|
+
return e[t].className;
|
|
62
|
+
}
|
|
63
|
+
var n = 1, r = 2;
|
|
64
|
+
function i(t, i) {
|
|
65
|
+
let a = i ?? 0;
|
|
66
|
+
return [
|
|
67
|
+
Object.values(e).find((e) => e.color === t?.toLowerCase())?.className ?? "",
|
|
68
|
+
a & n ? "italic" : "",
|
|
69
|
+
a & r ? "font-semibold" : ""
|
|
70
|
+
].filter(Boolean).join(" ");
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/code-block/kaeso-theme.ts
|
|
74
|
+
var a = {
|
|
75
|
+
name: "kaeso",
|
|
76
|
+
type: "light",
|
|
77
|
+
colors: {
|
|
78
|
+
"editor.background": "transparent",
|
|
79
|
+
"editor.foreground": e.text.color
|
|
80
|
+
},
|
|
81
|
+
settings: [
|
|
82
|
+
{ settings: {
|
|
83
|
+
foreground: e.text.color,
|
|
84
|
+
background: "transparent"
|
|
85
|
+
} },
|
|
86
|
+
{
|
|
87
|
+
scope: [
|
|
88
|
+
"punctuation",
|
|
89
|
+
"meta.brace",
|
|
90
|
+
"keyword.operator",
|
|
91
|
+
"storage.type.function.arrow",
|
|
92
|
+
"keyword.other.http"
|
|
93
|
+
],
|
|
94
|
+
settings: { foreground: e.punctuation.color }
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
scope: [
|
|
98
|
+
"keyword",
|
|
99
|
+
"storage",
|
|
100
|
+
"keyword.operator.new",
|
|
101
|
+
"keyword.operator.expression",
|
|
102
|
+
"keyword.operator.logical.python",
|
|
103
|
+
"keyword.operator.word",
|
|
104
|
+
"keyword.operator.wordlike",
|
|
105
|
+
"keyword.operator.sizeof",
|
|
106
|
+
"keyword.control.http",
|
|
107
|
+
"variable.language",
|
|
108
|
+
"punctuation.definition.template-expression",
|
|
109
|
+
"punctuation.section.embedded",
|
|
110
|
+
"punctuation.section.interpolation",
|
|
111
|
+
"punctuation.definition.interpolation",
|
|
112
|
+
"meta.fstring.python constant.character.format.placeholder",
|
|
113
|
+
"entity.name.type.hcl",
|
|
114
|
+
"meta.diff.range",
|
|
115
|
+
"meta.diff.header.git"
|
|
116
|
+
],
|
|
117
|
+
settings: { foreground: e.keyword.color }
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
scope: [
|
|
121
|
+
"string",
|
|
122
|
+
"punctuation.definition.string",
|
|
123
|
+
"storage.type.string.python",
|
|
124
|
+
"markup.inline.raw",
|
|
125
|
+
"markup.fenced_code.block",
|
|
126
|
+
"property.value.dotenv"
|
|
127
|
+
],
|
|
128
|
+
settings: { foreground: e.string.color }
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
scope: [
|
|
132
|
+
"constant",
|
|
133
|
+
"support.constant",
|
|
134
|
+
"keyword.other.unit",
|
|
135
|
+
"storage.type.number.python"
|
|
136
|
+
],
|
|
137
|
+
settings: { foreground: e.constant.color }
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
scope: [
|
|
141
|
+
"entity.name.function",
|
|
142
|
+
"support.function",
|
|
143
|
+
"variable.function",
|
|
144
|
+
"entity.name.command",
|
|
145
|
+
"meta.function-call.generic",
|
|
146
|
+
"string.other.link.title",
|
|
147
|
+
"string.other.link.description"
|
|
148
|
+
],
|
|
149
|
+
settings: { foreground: e.function.color }
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
scope: [
|
|
153
|
+
"markup.heading",
|
|
154
|
+
"markup.heading entity.name.section",
|
|
155
|
+
"markup.heading punctuation.definition.heading"
|
|
156
|
+
],
|
|
157
|
+
settings: {
|
|
158
|
+
foreground: e.function.color,
|
|
159
|
+
fontStyle: "bold"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
scope: [
|
|
164
|
+
"entity.name.type",
|
|
165
|
+
"entity.name.class",
|
|
166
|
+
"entity.name.namespace",
|
|
167
|
+
"entity.other.inherited-class",
|
|
168
|
+
"entity.name.section",
|
|
169
|
+
"support.type",
|
|
170
|
+
"support.class",
|
|
171
|
+
"storage.type.primitive",
|
|
172
|
+
"storage.type.built-in",
|
|
173
|
+
"storage.type.java",
|
|
174
|
+
"storage.type.generic.java",
|
|
175
|
+
"storage.type.string.go",
|
|
176
|
+
"storage.type.numeric.go",
|
|
177
|
+
"storage.type.boolean.go",
|
|
178
|
+
"storage.type.byte.go",
|
|
179
|
+
"storage.type.error.go",
|
|
180
|
+
"storage.type.rune.go",
|
|
181
|
+
"storage.type.uintptr.go",
|
|
182
|
+
"storage.modifier.package.java",
|
|
183
|
+
"storage.modifier.import.java",
|
|
184
|
+
"keyword.other.type.php",
|
|
185
|
+
"variable.fragment.graphql"
|
|
186
|
+
],
|
|
187
|
+
settings: { foreground: e.type.color }
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
scope: [
|
|
191
|
+
"support.type.property-name",
|
|
192
|
+
"meta.object-literal.key",
|
|
193
|
+
"entity.name.tag.yaml",
|
|
194
|
+
"variable.key.dotenv",
|
|
195
|
+
"variable.other.key.toml",
|
|
196
|
+
"keyword.other.definition.ini",
|
|
197
|
+
"entity.name.tag.http",
|
|
198
|
+
"entity.name.variable.field",
|
|
199
|
+
"variable.other.member",
|
|
200
|
+
"variable.declaration.hcl variable.other.readwrite"
|
|
201
|
+
],
|
|
202
|
+
settings: { foreground: e.property.color }
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
scope: ["entity.name.tag", "support.class.component"],
|
|
206
|
+
settings: { foreground: e.tag.color }
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
scope: [
|
|
210
|
+
"entity.other.attribute-name",
|
|
211
|
+
"storage.type.annotation",
|
|
212
|
+
"meta.preprocessor",
|
|
213
|
+
"keyword.control.directive",
|
|
214
|
+
"punctuation.definition.directive",
|
|
215
|
+
"meta.attribute.rust"
|
|
216
|
+
],
|
|
217
|
+
settings: { foreground: e.attribute.color }
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
scope: [
|
|
221
|
+
"variable.other.normal.shell",
|
|
222
|
+
"variable.other.positional.shell",
|
|
223
|
+
"variable.parameter.positional.shell",
|
|
224
|
+
"variable.other.special.shell",
|
|
225
|
+
"variable.other.bracket.shell",
|
|
226
|
+
"variable.other.assignment.shell",
|
|
227
|
+
"punctuation.definition.variable",
|
|
228
|
+
"variable.other.php",
|
|
229
|
+
"variable.other.readwrite.instance",
|
|
230
|
+
"variable.other.readwrite.class",
|
|
231
|
+
"variable.other.readwrite.global",
|
|
232
|
+
"variable.other.readwrite.powershell",
|
|
233
|
+
"variable.other.makefile",
|
|
234
|
+
"variable.other.nginx",
|
|
235
|
+
"variable.scss",
|
|
236
|
+
"variable.css",
|
|
237
|
+
"variable.argument.css",
|
|
238
|
+
"meta.variables.graphql variable.parameter.graphql",
|
|
239
|
+
"meta.arguments.graphql variable.graphql"
|
|
240
|
+
],
|
|
241
|
+
settings: { foreground: e.variable.color }
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
scope: [
|
|
245
|
+
"comment",
|
|
246
|
+
"punctuation.definition.comment",
|
|
247
|
+
"markup.quote"
|
|
248
|
+
],
|
|
249
|
+
settings: {
|
|
250
|
+
foreground: e.comment.color,
|
|
251
|
+
fontStyle: "italic"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
scope: [
|
|
256
|
+
"markup.inserted",
|
|
257
|
+
"meta.diff.header.to-file",
|
|
258
|
+
"punctuation.definition.inserted",
|
|
259
|
+
"punctuation.definition.to-file"
|
|
260
|
+
],
|
|
261
|
+
settings: { foreground: e.inserted.color }
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
scope: [
|
|
265
|
+
"markup.deleted",
|
|
266
|
+
"meta.diff.header.from-file",
|
|
267
|
+
"punctuation.definition.deleted",
|
|
268
|
+
"punctuation.definition.from-file"
|
|
269
|
+
],
|
|
270
|
+
settings: { foreground: e.deleted.color }
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
scope: ["markup.underline.link"],
|
|
274
|
+
settings: { foreground: e.string.color }
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
scope: ["markup.bold"],
|
|
278
|
+
settings: { fontStyle: "bold" }
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
scope: ["markup.italic"],
|
|
282
|
+
settings: { fontStyle: "italic" }
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
scope: [
|
|
286
|
+
"meta.template.expression",
|
|
287
|
+
"meta.embedded",
|
|
288
|
+
"meta.interpolation",
|
|
289
|
+
"variable.parameter",
|
|
290
|
+
"string.unquoted.argument.shell"
|
|
291
|
+
],
|
|
292
|
+
settings: { foreground: e.text.color }
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
};
|
|
296
|
+
//#endregion
|
|
297
|
+
export { i as n, t as r, a as t };
|
|
298
|
+
|
|
299
|
+
//# sourceMappingURL=kaeso-theme-BIgOZi41.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kaeso-theme-BIgOZi41.js","names":["TONES","codeToneClass","tone","ITALIC","BOLD","codeTokenClass","style","fontStyle","t","color","kaesoShikiTheme"],"sources":["../../src/components/code-block/tones.ts","../../src/components/code-block/kaeso-theme.ts"],"sourcesContent":["export const TONES = {\n text: { color: \"var(--k-text)\", className: \"\" },\n keyword: { color: \"var(--k-code-keyword)\", className: \"text-code-keyword\" },\n string: { color: \"var(--k-code-string)\", className: \"text-code-string\" },\n constant: { color: \"var(--k-code-constant)\", className: \"text-code-constant\" },\n comment: { color: \"var(--k-code-comment)\", className: \"text-code-comment\" },\n function: { color: \"var(--k-code-function)\", className: \"text-code-function\" },\n type: { color: \"var(--k-code-type)\", className: \"text-code-type\" },\n property: { color: \"var(--k-code-property)\", className: \"text-code-property\" },\n tag: { color: \"var(--k-code-tag)\", className: \"text-code-tag\" },\n attribute: { color: \"var(--k-code-attribute)\", className: \"text-code-attribute\" },\n variable: { color: \"var(--k-code-variable)\", className: \"text-code-variable\" },\n punctuation: { color: \"var(--k-code-punctuation)\", className: \"text-code-punctuation\" },\n inserted: { color: \"var(--k-code-inserted)\", className: \"text-code-inserted\" },\n deleted: { color: \"var(--k-code-deleted)\", className: \"text-code-deleted\" },\n} as const;\n\n/** A role of Kaeso's syntax palette, drawn with the `--k-code-<role>` token and the `text-code-<role>` class. */\nexport type CodeTone = Exclude<keyof typeof TONES, \"text\">;\n\n/** The class that draws text in a role of the syntax palette. */\nexport function codeToneClass(tone: CodeTone): string {\n return TONES[tone].className;\n}\n\nconst ITALIC = 1;\nconst BOLD = 2;\n\n/** The classes for a token Shiki coloured with the Kaeso theme: its palette colour, italic and bold. Plain text gets an empty string. */\nexport function codeTokenClass(color: string | undefined, fontStyle: number | undefined): string {\n const style = fontStyle ?? 0;\n return [\n Object.values(TONES).find((t) => t.color === color?.toLowerCase())?.className ?? \"\",\n style & ITALIC ? \"italic\" : \"\",\n style & BOLD ? \"font-semibold\" : \"\",\n ]\n .filter(Boolean)\n .join(\" \");\n}\n","import { TONES } from \"./tones.js\";\n\n/**\n * Kaeso's Shiki theme. Every colour is a `var(--k-code-…)` token, so light and dark switch through CSS without highlighting again.\n * A deeper scope wins over the scope around it, which is how keys, interpolations and variables inside strings get their own colour.\n */\nexport const kaesoShikiTheme = {\n name: \"kaeso\",\n type: \"light\" as const,\n colors: { \"editor.background\": \"transparent\", \"editor.foreground\": TONES.text.color },\n settings: [\n { settings: { foreground: TONES.text.color, background: \"transparent\" } },\n {\n scope: [\"punctuation\", \"meta.brace\", \"keyword.operator\", \"storage.type.function.arrow\", \"keyword.other.http\"],\n settings: { foreground: TONES.punctuation.color },\n },\n {\n scope: [\n \"keyword\",\n \"storage\",\n \"keyword.operator.new\",\n \"keyword.operator.expression\",\n \"keyword.operator.logical.python\",\n \"keyword.operator.word\",\n \"keyword.operator.wordlike\",\n \"keyword.operator.sizeof\",\n \"keyword.control.http\",\n \"variable.language\",\n \"punctuation.definition.template-expression\",\n \"punctuation.section.embedded\",\n \"punctuation.section.interpolation\",\n \"punctuation.definition.interpolation\",\n \"meta.fstring.python constant.character.format.placeholder\",\n \"entity.name.type.hcl\",\n \"meta.diff.range\",\n \"meta.diff.header.git\",\n ],\n settings: { foreground: TONES.keyword.color },\n },\n {\n scope: [\n \"string\",\n \"punctuation.definition.string\",\n \"storage.type.string.python\",\n \"markup.inline.raw\",\n \"markup.fenced_code.block\",\n \"property.value.dotenv\",\n ],\n settings: { foreground: TONES.string.color },\n },\n { scope: [\"constant\", \"support.constant\", \"keyword.other.unit\", \"storage.type.number.python\"], settings: { foreground: TONES.constant.color } },\n {\n scope: [\n \"entity.name.function\",\n \"support.function\",\n \"variable.function\",\n \"entity.name.command\",\n \"meta.function-call.generic\",\n \"string.other.link.title\",\n \"string.other.link.description\",\n ],\n settings: { foreground: TONES.function.color },\n },\n {\n scope: [\"markup.heading\", \"markup.heading entity.name.section\", \"markup.heading punctuation.definition.heading\"],\n settings: { foreground: TONES.function.color, fontStyle: \"bold\" },\n },\n {\n scope: [\n \"entity.name.type\",\n \"entity.name.class\",\n \"entity.name.namespace\",\n \"entity.other.inherited-class\",\n \"entity.name.section\",\n \"support.type\",\n \"support.class\",\n \"storage.type.primitive\",\n \"storage.type.built-in\",\n \"storage.type.java\",\n \"storage.type.generic.java\",\n \"storage.type.string.go\",\n \"storage.type.numeric.go\",\n \"storage.type.boolean.go\",\n \"storage.type.byte.go\",\n \"storage.type.error.go\",\n \"storage.type.rune.go\",\n \"storage.type.uintptr.go\",\n \"storage.modifier.package.java\",\n \"storage.modifier.import.java\",\n \"keyword.other.type.php\",\n \"variable.fragment.graphql\",\n ],\n settings: { foreground: TONES.type.color },\n },\n {\n scope: [\n \"support.type.property-name\",\n \"meta.object-literal.key\",\n \"entity.name.tag.yaml\",\n \"variable.key.dotenv\",\n \"variable.other.key.toml\",\n \"keyword.other.definition.ini\",\n \"entity.name.tag.http\",\n \"entity.name.variable.field\",\n \"variable.other.member\",\n \"variable.declaration.hcl variable.other.readwrite\",\n ],\n settings: { foreground: TONES.property.color },\n },\n { scope: [\"entity.name.tag\", \"support.class.component\"], settings: { foreground: TONES.tag.color } },\n {\n scope: [\n \"entity.other.attribute-name\",\n \"storage.type.annotation\",\n \"meta.preprocessor\",\n \"keyword.control.directive\",\n \"punctuation.definition.directive\",\n \"meta.attribute.rust\",\n ],\n settings: { foreground: TONES.attribute.color },\n },\n {\n scope: [\n \"variable.other.normal.shell\",\n \"variable.other.positional.shell\",\n \"variable.parameter.positional.shell\",\n \"variable.other.special.shell\",\n \"variable.other.bracket.shell\",\n \"variable.other.assignment.shell\",\n \"punctuation.definition.variable\",\n \"variable.other.php\",\n \"variable.other.readwrite.instance\",\n \"variable.other.readwrite.class\",\n \"variable.other.readwrite.global\",\n \"variable.other.readwrite.powershell\",\n \"variable.other.makefile\",\n \"variable.other.nginx\",\n \"variable.scss\",\n \"variable.css\",\n \"variable.argument.css\",\n \"meta.variables.graphql variable.parameter.graphql\",\n \"meta.arguments.graphql variable.graphql\",\n ],\n settings: { foreground: TONES.variable.color },\n },\n { scope: [\"comment\", \"punctuation.definition.comment\", \"markup.quote\"], settings: { foreground: TONES.comment.color, fontStyle: \"italic\" } },\n {\n scope: [\"markup.inserted\", \"meta.diff.header.to-file\", \"punctuation.definition.inserted\", \"punctuation.definition.to-file\"],\n settings: { foreground: TONES.inserted.color },\n },\n {\n scope: [\"markup.deleted\", \"meta.diff.header.from-file\", \"punctuation.definition.deleted\", \"punctuation.definition.from-file\"],\n settings: { foreground: TONES.deleted.color },\n },\n { scope: [\"markup.underline.link\"], settings: { foreground: TONES.string.color } },\n { scope: [\"markup.bold\"], settings: { fontStyle: \"bold\" } },\n { scope: [\"markup.italic\"], settings: { fontStyle: \"italic\" } },\n {\n scope: [\"meta.template.expression\", \"meta.embedded\", \"meta.interpolation\", \"variable.parameter\", \"string.unquoted.argument.shell\"],\n settings: { foreground: TONES.text.color },\n },\n ],\n};\n"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./cn-
|
|
2
|
+
import { t as e } from "./cn-CLpm819s.js";
|
|
3
3
|
import { i as t, n } from "./context-BELWW79w.js";
|
|
4
4
|
import { Fragment as r, forwardRef as i, useSyncExternalStore as a } from "react";
|
|
5
5
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -137,4 +137,4 @@ process.env.NODE_ENV !== "production" && (_.displayName = "Kbd");
|
|
|
137
137
|
//#endregion
|
|
138
138
|
export { h as i, l as n, _ as r, u as t };
|
|
139
139
|
|
|
140
|
-
//# sourceMappingURL=kbd-
|
|
140
|
+
//# sourceMappingURL=kbd-xC3k90CH.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd-
|
|
1
|
+
{"version":3,"file":"kbd-xC3k90CH.js","names":["_Fragment","cn","useUiText","Fragment$1","KAESO_KBD_VARIANTS","KAESO_KBD_DEFAULT_VARIANTS","isMac","subscribePlatform","useMac","useSyncExternalStore","modifiers","ctrl","t","option","keyLabel","englishText","m","key","mac","KeyCap","props","label","children","spoken","tone","className","Kbd","keys","steps","Fragment","i","chord","k","j"],"sources":["../../src/components/kbd/kbd.tsx"],"sourcesContent":["import { forwardRef, Fragment, useSyncExternalStore, type HTMLAttributes, type ReactNode, type Ref } from \"react\";\nimport { cn } from \"../../utils/cn.js\";\nimport { englishText, useUiText, type UiText } from \"../../i18n/context.js\";\n\nexport const KAESO_KBD_VARIANTS = {\n tone: {\n default: { classes: \"bg-fill-1 text-fg-secondary shadow-ring\" },\n onInk: { classes: \"bg-on-ink/15 text-on-ink/80 shadow-none\" },\n },\n} as const;\nexport const KAESO_KBD_DEFAULT_VARIANTS = { tone: \"default\" } as const;\n\nconst isMac = () => typeof navigator !== \"undefined\" && /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent);\nconst subscribePlatform = () => () => undefined;\nconst useMac = () => useSyncExternalStore(subscribePlatform, isMac, () => false);\n\nfunction modifiers(t: UiText): Record<string, [mac: string, other: string, name: string]> {\n const ctrl = t(\"kbd.ctrl\", \"Ctrl\");\n const option = t(\"kbd.optionName\", \"Option\");\n return {\n mod: [\"⌘\", ctrl, t(\"kbd.commandName\", \"Command\")],\n cmd: [\"⌘\", ctrl, t(\"kbd.commandName\", \"Command\")],\n ctrl: [\"⌃\", ctrl, t(\"kbd.controlName\", \"Control\")],\n alt: [\"⌥\", \"Alt\", option],\n option: [\"⌥\", \"Alt\", option],\n shift: [\"⇧\", t(\"kbd.shift\", \"Shift\"), t(\"kbd.shiftName\", \"Shift\")],\n enter: [\"↵\", \"Enter\", t(\"kbd.enterName\", \"Enter\")],\n esc: [\"esc\", \"Esc\", t(\"kbd.escapeName\", \"Escape\")],\n backspace: [\"⌫\", t(\"kbd.backspace\", \"Backspace\"), t(\"kbd.backspaceName\", \"Backspace\")],\n up: [\"↑\", \"↑\", t(\"kbd.upName\", \"Up\")],\n down: [\"↓\", \"↓\", t(\"kbd.downName\", \"Down\")],\n left: [\"←\", \"←\", t(\"kbd.leftName\", \"Left\")],\n right: [\"→\", \"→\", t(\"kbd.rightName\", \"Right\")],\n tab: [\"⇥\", \"Tab\", t(\"kbd.tabName\", \"Tab\")],\n };\n}\n\nexport function keyLabel(key: string, t: UiText = englishText, mac: boolean = isMac()): { visual: string; spoken: string } {\n const m = modifiers(t)[key.toLowerCase()];\n if (!m) return { visual: key.length === 1 ? key.toUpperCase() : key, spoken: key };\n return { visual: mac ? m[0] : m[1], spoken: m[2] };\n}\n\nexport interface KbdProps extends HTMLAttributes<HTMLElement> {\n children?: ReactNode | undefined;\n keys?: string[][] | string[] | undefined;\n tone?: keyof typeof KAESO_KBD_VARIANTS.tone | undefined;\n}\n\nfunction KeyCap({ children, tone, className, ...props }: KbdProps & { ref?: Ref<HTMLElement> | undefined }) {\n const t = useUiText();\n const mac = useMac();\n const label = typeof children === \"string\" ? keyLabel(children, t, mac) : null;\n const spoken = label && label.spoken.toLowerCase() !== label.visual.toLowerCase() ? label.spoken : null;\n return (\n <kbd\n className={cn(\n \"relative inline-flex h-20 min-w-20 shrink-0 items-center justify-center rounded-kbd px-5 font-sans text-caption font-medium tabular\",\n KAESO_KBD_VARIANTS.tone[tone ?? \"default\"].classes,\n className,\n )}\n {...props}\n >\n {spoken ? (\n <>\n <span aria-hidden=\"true\">{label?.visual}</span>\n <span className=\"sr-only\">{spoken}</span>\n </>\n ) : label ? (\n label.visual\n ) : (\n children\n )}\n </kbd>\n );\n}\n\nexport const Kbd = /* @__PURE__ */ forwardRef<HTMLElement, KbdProps>(function Kbd({ children, keys, tone = \"default\", className, ...props }, ref) {\n const t = useUiText();\n if (!keys) {\n return (\n <KeyCap ref={ref} tone={tone} className={className} {...props}>\n {children}\n </KeyCap>\n );\n }\n const steps: string[][] = keys.length > 0 && Array.isArray(keys[0]) ? (keys as string[][]) : [keys as string[]];\n return (\n <span ref={ref} className={cn(\"inline-flex items-center gap-4 align-middle\", className)} {...props}>\n {steps.map((chord, i) => (\n <Fragment key={i}>\n {i > 0 && <span className={cn(\"text-caption font-medium\", tone === \"onInk\" ? \"text-on-ink/70\" : \"text-fg-secondary\")}>{t(\"kbd.then\", \"then\")}</span>}\n <span className=\"inline-flex items-center gap-2\">\n {chord.map((k, j) => (\n <KeyCap key={`${k}-${j}`} tone={tone}>\n {k}\n </KeyCap>\n ))}\n </span>\n </Fragment>\n ))}\n </span>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Kbd.displayName = \"Kbd\";\n"],"mappings":";;;;;;AAIA,IAAaI,IAAqB,EAChC,MAAM;CACJ,SAAS,EAAE,SAAS,0CAA0C;CAC9D,OAAO,EAAE,SAAS,0CAA0C;AAC9D,EACF,GACaC,IAA6B,EAAE,MAAM,UAAU,GAEtDC,UAAc,OAAO,YAAc,OAAe,kBAAkB,KAAK,UAAU,YAAY,UAAU,SAAS,GAClHC,gBAAgC,KAAA,GAChCC,UAAeC,EAAqBF,GAAmBD,SAAa,EAAK;AAE/E,SAASI,EAAU,GAAuE;CACxF,IAAMC,IAAOC,EAAE,YAAY,MAAM,GAC3BC,IAASD,EAAE,kBAAkB,QAAQ;CAC3C,OAAO;EACL,KAAK;GAAC;GAAKD;GAAMC,EAAE,mBAAmB,SAAS;EAAC;EAChD,KAAK;GAAC;GAAKD;GAAMC,EAAE,mBAAmB,SAAS;EAAC;EAChD,MAAM;GAAC;GAAKD;GAAMC,EAAE,mBAAmB,SAAS;EAAC;EACjD,KAAK;GAAC;GAAK;GAAOC;EAAM;EACxB,QAAQ;GAAC;GAAK;GAAOA;EAAM;EAC3B,OAAO;GAAC;GAAKD,EAAE,aAAa,OAAO;GAAGA,EAAE,iBAAiB,OAAO;EAAC;EACjE,OAAO;GAAC;GAAK;GAASA,EAAE,iBAAiB,OAAO;EAAC;EACjD,KAAK;GAAC;GAAO;GAAOA,EAAE,kBAAkB,QAAQ;EAAC;EACjD,WAAW;GAAC;GAAKA,EAAE,iBAAiB,WAAW;GAAGA,EAAE,qBAAqB,WAAW;EAAC;EACrF,IAAI;GAAC;GAAK;GAAKA,EAAE,cAAc,IAAI;EAAC;EACpC,MAAM;GAAC;GAAK;GAAKA,EAAE,gBAAgB,MAAM;EAAC;EAC1C,MAAM;GAAC;GAAK;GAAKA,EAAE,gBAAgB,MAAM;EAAC;EAC1C,OAAO;GAAC;GAAK;GAAKA,EAAE,iBAAiB,OAAO;EAAC;EAC7C,KAAK;GAAC;GAAK;GAAOA,EAAE,eAAe,KAAK;EAAC;CAC3C;AACF;AAEA,SAAgBE,EAAS,GAAa,IAAYC,GAAa,IAAeT,EAAM,GAAuC;CACzH,IAAMU,IAAIN,EAAU,CAAC,CAAC,CAACO,EAAI,YAAY;CAEvC,OADKD,IACE;EAAE,QAAQE,IAAMF,EAAE,KAAKA,EAAE;EAAI,QAAQA,EAAE;CAAG,IADlC;EAAE,QAAQC,EAAI,WAAW,IAAIA,EAAI,YAAY,IAAIA;EAAK,QAAQA;CAAI;AAEnF;AAQA,SAASE,EAAO,EAAE,aAAU,SAAM,cAAW,GAAGC,KAA4D;CAC1G,IAAMR,IAAIV,EAAU,GACdgB,IAAMV,EAAO,GACba,IAAQ,OAAOC,KAAa,WAAWR,EAASQ,GAAUV,GAAGM,CAAG,IAAI,MACpEK,IAASF,KAASA,EAAM,OAAO,YAAY,MAAMA,EAAM,OAAO,YAAY,IAAIA,EAAM,SAAS;CACnG,OACE,kBAAC,OAAD;EACE,WAAWpB,EACT,uIACAG,EAAmB,KAAKoB,KAAQ,UAAU,CAAC,SAC3CC,CACF;EACA,GAAIL;EAEH,UAAAG,IACC,kBAAAvB,GAAA,EAAA,UAAA,CACE,kBAAC,QAAD;GAAM,eAAY;GAAQ,UAAAqB,GAAO;EAAa,CAAA,GAC9C,kBAAC,QAAD;GAAM,WAAU;GAAW,UAAAE;EAAa,CAAA,CACxC,EAAA,CAAA,IACAF,IACFA,EAAM,SAENC;CAEC,CAAA;AAET;AAEA,IAAaI,IAAsB,kBAAkC,SAAa,EAAE,aAAU,SAAM,UAAO,WAAW,cAAW,GAAGN,KAAS,GAAK;CAChJ,IAAMR,IAAIV,EAAU;CACpB,IAAI,CAACyB,GACH,OACE,kBAACR,GAAD;EAAa;EAAW;EAAiB;EAAW,GAAIC;EACrD;CACK,CAAA;CAGZ,IAAMQ,IAAoBD,EAAK,SAAS,KAAK,MAAM,QAAQA,EAAK,EAAE,IAAKA,IAAsB,CAACA,CAAgB;CAC9G,OACE,kBAAC,QAAD;EAAW;EAAK,WAAW1B,EAAG,+CAA+CwB,CAAS;EAAG,GAAIL;EAC1F,UAAAQ,EAAM,KAAK,GAAO,MACjB,kBAACC,GAAD,EAAA,UAAA,CACGC,IAAI,KAAK,kBAAC,QAAD;GAAM,WAAW7B,EAAG,4BAA4BuB,MAAS,UAAU,mBAAmB,mBAAmB;GAAI,UAAAZ,EAAE,YAAY,MAAM;EAAQ,CAAA,GACnJ,kBAAC,QAAD;GAAM,WAAU;GACb,UAAAmB,EAAM,KAAK,GAAG,MACb,kBAACZ,GAAD;IAAgC;IAC7B,UAAAa;GACK,GAFK,GAAGA,EAAE,GAAGC,GAEb,CACT;EACG,CAAA,CACE,EAAA,GATKH,CASL,CACX;CACG,CAAA;AAEV,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAI,cAAc"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./cn-
|
|
3
|
-
import { t } from "./copy-button-
|
|
4
|
-
import { t as n } from "./truncated-
|
|
2
|
+
import { t as e } from "./cn-CLpm819s.js";
|
|
3
|
+
import { t } from "./copy-button-B67MEIu2.js";
|
|
4
|
+
import { t as n } from "./truncated-C0A4AU-U.js";
|
|
5
5
|
import { forwardRef as r } from "react";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/key-value/key-value.tsx
|
|
@@ -55,4 +55,4 @@ process.env.NODE_ENV !== "production" && (c.displayName = "KeyValue");
|
|
|
55
55
|
//#endregion
|
|
56
56
|
export { o as n, c as r, s as t };
|
|
57
57
|
|
|
58
|
-
//# sourceMappingURL=key-value-
|
|
58
|
+
//# sourceMappingURL=key-value-DKW2q0zt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-value-
|
|
1
|
+
{"version":3,"file":"key-value-DKW2q0zt.js","names":["cn","TruncatedText","KAESO_KEY_VALUE_VARIANTS","KAESO_KEY_VALUE_DEFAULT_VARIANTS","KeyValue","grid","layout","list","columns","className","items","it","CopyButton","i"],"sources":["../../src/components/key-value/key-value.tsx"],"sourcesContent":["import { forwardRef, type ReactNode } from \"react\";\nimport { cn } from \"../../utils/cn.js\";\nimport { CopyButton } from \"../copy-button/copy-button.js\";\nimport { TruncatedText } from \"../text/truncated.js\";\n\nexport const KAESO_KEY_VALUE_VARIANTS = {\n layout: {\n columns: { classes: \"grid grid-cols-kv content-start self-start gap-x-24\" },\n stacked: { classes: \"flex flex-col\" },\n grid: { classes: \"grid content-start self-start gap-x-32\" },\n },\n columns: {\n 2: { classes: \"grid-cols-1 @kv:grid-cols-2\" },\n 3: { classes: \"grid-cols-2 @kv:grid-cols-3\" },\n 4: { classes: \"grid-cols-2 @kv:grid-cols-4\" },\n },\n} as const;\nexport const KAESO_KEY_VALUE_DEFAULT_VARIANTS = { layout: \"columns\", columns: 2 } as const;\n\nexport interface KeyValueItem {\n label: ReactNode;\n value: ReactNode;\n copy?: string | undefined;\n mono?: boolean | undefined;\n wrap?: boolean | undefined;\n span?: \"row\" | undefined;\n}\n\nexport interface KeyValueProps {\n items: KeyValueItem[];\n layout?: keyof typeof KAESO_KEY_VALUE_VARIANTS.layout | undefined;\n columns?: keyof typeof KAESO_KEY_VALUE_VARIANTS.columns | undefined;\n className?: string | undefined;\n}\n\nexport const KeyValue = /* @__PURE__ */ forwardRef<HTMLDListElement, KeyValueProps>(function KeyValue({ items, layout = \"columns\", columns = 2, className }, ref) {\n const grid = layout === \"grid\";\n const list = (\n <dl ref={ref} className={cn(KAESO_KEY_VALUE_VARIANTS.layout[layout].classes, grid && KAESO_KEY_VALUE_VARIANTS.columns[columns].classes, className)}>\n {items.map((it, i) => (\n <div key={i} className={cn(layout === \"columns\" ? \"contents\" : \"flex min-w-0 flex-col gap-2 py-8\", grid && it.span === \"row\" && \"col-span-full\")}>\n <dt\n className={cn(\n \"text-small text-fg-secondary\",\n layout === \"columns\" && \"flex min-h-36 min-w-120 items-center py-8\",\n layout === \"columns\" && it.wrap && \"items-start\",\n grid && \"flex min-w-0\",\n )}\n >\n {grid ? <TruncatedText>{it.label}</TruncatedText> : it.label}\n </dt>\n <dd\n className={cn(\n \"group/kv flex min-w-0 items-center gap-4 text-body text-fg\",\n grid ? \"min-h-24\" : \"min-h-36\",\n it.mono && \"mono text-small\",\n it.wrap && (grid ? \"items-start\" : \"items-start py-8\"),\n )}\n >\n {it.wrap ? <span className=\"min-w-0 break-words\">{it.value}</span> : <TruncatedText className=\"block min-w-0\">{it.value}</TruncatedText>}\n {it.copy && (\n <span className=\"shrink-0 opacity-0 transition-control group-hover/kv:opacity-100 coarse:opacity-100 focus-within:opacity-100\">\n <CopyButton value={it.copy} size=\"xs\" />\n </span>\n )}\n </dd>\n </div>\n ))}\n </dl>\n );\n return grid ? <div className=\"@container min-w-0\">{list}</div> : list;\n});\nif (process.env.NODE_ENV !== \"production\") KeyValue.displayName = \"KeyValue\";\n"],"mappings":";;;;;;;AAKA,IAAaE,IAA2B;CACtC,QAAQ;EACN,SAAS,EAAE,SAAS,sDAAsD;EAC1E,SAAS,EAAE,SAAS,gBAAgB;EACpC,MAAM,EAAE,SAAS,yCAAyC;CAC5D;CACA,SAAS;EACP,GAAG,EAAE,SAAS,8BAA8B;EAC5C,GAAG,EAAE,SAAS,8BAA8B;EAC5C,GAAG,EAAE,SAAS,8BAA8B;CAC9C;AACF,GACaC,IAAmC;CAAE,QAAQ;CAAW,SAAS;AAAE,GAkBnEC,IAA2B,kBAA4C,SAAkB,EAAE,UAAO,YAAS,WAAW,aAAU,GAAG,gBAAa,GAAK;CAChK,IAAMC,IAAOC,MAAW,QAClBC,IACJ,kBAAC,MAAD;EAAS;EAAK,WAAWP,EAAGE,EAAyB,OAAOI,EAAO,CAAC,SAASD,KAAQH,EAAyB,QAAQM,EAAQ,CAAC,SAASC,CAAS;EAC9I,UAAAC,EAAM,KAAK,GAAI,MACd,kBAAC,OAAD;GAAa,WAAWV,EAAGM,MAAW,YAAY,aAAa,oCAAoCD,KAAQM,EAAG,SAAS,SAAS,eAAe;GAA/I,UAAA,CACE,kBAAC,MAAD;IACE,WAAWX,EACT,gCACAM,MAAW,aAAa,6CACxBA,MAAW,aAAaK,EAAG,QAAQ,eACnCN,KAAQ,cACV;IAEC,UAAAA,IAAO,kBAACJ,GAAD,EAAA,UAAgBU,EAAG,MAAqB,CAAA,IAAIA,EAAG;GACrD,CAAA,GACJ,kBAAC,MAAD;IACE,WAAWX,EACT,8DACAK,IAAO,aAAa,YACpBM,EAAG,QAAQ,mBACXA,EAAG,SAASN,IAAO,gBAAgB,mBACrC;IANF,UAAA,CAQGM,EAAG,OAAO,kBAAC,QAAD;KAAM,WAAU;KAAuB,UAAAA,EAAG;IAAY,CAAA,IAAI,kBAACV,GAAD;KAAe,WAAU;KAAiB,UAAAU,EAAG;IAAqB,CAAA,GACtIA,EAAG,QACF,kBAAC,QAAD;KAAM,WAAU;KACd,UAAA,kBAACC,GAAD;MAAY,OAAOD,EAAG;MAAM,MAAK;KAAM,CAAA;IACnC,CAAA,CAEN;GACD,CAAA,CAAA;EA1BK,GAAAE,CA0BL,CACN;CACC,CAAA;CAEN,OAAOR,IAAO,kBAAC,OAAD;EAAK,WAAU;EAAsB,UAAAE;CAAU,CAAA,IAAIA;AACnE,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAS,cAAc"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./cn-
|
|
2
|
+
import { t as e } from "./cn-CLpm819s.js";
|
|
3
3
|
import { n as t, r as n } from "./link-provider-cvl8lSTT.js";
|
|
4
4
|
import { i as r } from "./context-BELWW79w.js";
|
|
5
|
-
import { t as i } from "./icon-
|
|
5
|
+
import { t as i } from "./icon-CPiYZMTw.js";
|
|
6
6
|
import { forwardRef as a } from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { ArrowUpRight01Icon as c } from "@hugeicons/core-free-icons";
|
|
@@ -51,4 +51,4 @@ process.env.NODE_ENV !== "production" && (d.displayName = "Link");
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { l as n, d as r, u as t };
|
|
53
53
|
|
|
54
|
-
//# sourceMappingURL=link-
|
|
54
|
+
//# sourceMappingURL=link-CWYlF_dE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-
|
|
1
|
+
{"version":3,"file":"link-CWYlF_dE.js","names":["__icon_ArrowUpRight01Icon","cn","isExternalHref","useLinkComponent","useUiText","Icon","KAESO_LINK_VARIANTS","KAESO_LINK_DEFAULT_VARIANTS","Link","props","LinkComp","t","isExternal","external","href","variant","className","children","ArrowUpRight01Icon"],"sources":["../../src/components/link/link.tsx"],"sourcesContent":["import { forwardRef, type AnchorHTMLAttributes, type ReactNode } from \"react\";\nimport { cn } from \"../../utils/cn.js\";\nimport { isExternalHref, useLinkComponent } from \"../../utils/link-provider.js\";\nimport { Icon } from \"../icon/icon.js\";\nimport { ArrowUpRight01Icon as __icon_ArrowUpRight01Icon } from \"@hugeicons/core-free-icons\";\nimport { useUiText } from \"../../i18n/context.js\";\n\nexport const KAESO_LINK_VARIANTS = {\n variant: {\n inline: {\n classes: \"text-inherit underline decoration-fg-tertiary decoration-1 underline-offset-3 hover:decoration-current\",\n },\n quiet: {\n classes: \"text-fg-secondary no-underline hover:text-fg\",\n },\n standalone: {\n classes: \"font-medium text-fg no-underline hover:underline hover:decoration-fg-tertiary hover:underline-offset-3\",\n },\n heading: {\n classes: \"group/heading text-inherit no-underline\",\n },\n card: {\n classes: \"mx-0 flex flex-col gap-4 rounded-well bg-fill-1 px-16 py-12 text-fg no-underline outline-offset-2 hover:bg-fill-2\",\n },\n },\n} as const;\nexport const KAESO_LINK_DEFAULT_VARIANTS = { variant: \"inline\" } as const;\n\nexport interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, \"href\"> {\n href: string;\n variant?: keyof typeof KAESO_LINK_VARIANTS.variant | undefined;\n external?: boolean | undefined;\n children: ReactNode;\n}\n\nexport const Link = /* @__PURE__ */ forwardRef<HTMLAnchorElement, LinkProps>(function Link({ href, variant = \"inline\", external, className, children, ...props }, ref) {\n const LinkComp = useLinkComponent();\n const t = useUiText();\n const isExternal = external ?? isExternalHref(href);\n return (\n <LinkComp\n ref={ref}\n href={href}\n className={cn(\n \"relative -mx-2 box-decoration-clone rounded-code px-2 outline-offset-0 transition-control focus-ring\",\n variant !== \"inline\" && \"tap-target\",\n KAESO_LINK_VARIANTS.variant[variant].classes,\n variant === \"card\" && isExternal && \"pe-36\",\n className,\n )}\n {...(isExternal ? { target: \"_blank\", rel: \"noopener noreferrer\" } : {})}\n {...props}\n >\n {children}\n {isExternal && (\n <span aria-hidden=\"true\" className={cn(\"whitespace-nowrap\", variant === \"card\" && \"absolute end-16 top-12\")}>\n {\"\\u2060\"}\n <Icon icon={__icon_ArrowUpRight01Icon} size=\"xs\" className=\"ms-2 inline-block align-middle\" />\n </span>\n )}\n {variant === \"heading\" && (\n <span\n aria-hidden=\"true\"\n className=\"ms-8 inline-block text-fg-tertiary opacity-0 transition-control group-hover/heading:opacity-100 group-focus-visible/heading:opacity-100\"\n >\n #\n </span>\n )}\n {isExternal && <span className=\"sr-only\">{t(\"link.opensInNewTab\", \" (opens in a new tab)\")}</span>}\n </LinkComp>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Link.displayName = \"Link\";\n"],"mappings":";;;;;;;;;AAOA,IAAaM,IAAsB,EACjC,SAAS;CACP,QAAQ,EACN,SAAS,yGACX;CACA,OAAO,EACL,SAAS,+CACX;CACA,YAAY,EACV,SAAS,yGACX;CACA,SAAS,EACP,SAAS,0CACX;CACA,MAAM,EACJ,SAAS,oHACX;AACF,EACF,GACaC,IAA8B,EAAE,SAAS,SAAS,GASlDC,IAAuB,kBAAyC,SAAc,EAAE,SAAM,aAAU,UAAU,aAAU,cAAW,aAAU,GAAGC,KAAS,GAAK;CACrK,IAAMC,IAAWP,EAAiB,GAC5BQ,IAAIP,EAAU,GACdQ,IAAaC,KAAYX,EAAeY,CAAI;CAClD,OACE,kBAACJ,GAAD;EACO;EACC;EACN,WAAWT,EACT,wGACAc,MAAY,YAAY,cACxBT,EAAoB,QAAQS,EAAQ,CAAC,SACrCA,MAAY,UAAUH,KAAc,SACpCI,CACF;EACA,GAAKJ,IAAa;GAAE,QAAQ;GAAU,KAAK;EAAsB,IAAI,CAAC;EACtE,GAAIH;EAXN,UAAA;GAaGQ;GACAL,KACC,kBAAC,QAAD;IAAM,eAAY;IAAO,WAAWX,EAAG,qBAAqBc,MAAY,UAAU,wBAAwB;IAA1G,UAAA,CACG,KACD,kBAACV,GAAD;KAAM,MAAML;KAA2B,MAAK;KAAK,WAAU;IAAkC,CAAA,CACzF;;GAEPe,MAAY,aACX,kBAAC,QAAD;IACE,eAAY;IACZ,WAAU;IACX,UAAA;GAEK,CAAA;GAEPH,KAAc,kBAAC,QAAD;IAAM,WAAU;IAAW,UAAAD,EAAE,sBAAsB,uBAAuB;GAAQ,CAAA;EACzF;;AAEd,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAK,cAAc"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./cn-
|
|
2
|
+
import { t as e } from "./cn-CLpm819s.js";
|
|
3
3
|
import { r as t } from "./portal-context-CTatR2Z8.js";
|
|
4
4
|
import { a as n, i as r } from "./inset-BUzyXLK4.js";
|
|
5
5
|
import { i } from "./context-BELWW79w.js";
|
|
6
|
-
import { t as a } from "./icon-
|
|
7
|
-
import { l as o, o as s } from "./tooltip-
|
|
8
|
-
import { r as c } from "./text-
|
|
9
|
-
import { n as l } from "./button-
|
|
6
|
+
import { t as a } from "./icon-CPiYZMTw.js";
|
|
7
|
+
import { l as o, o as s } from "./tooltip-SZvkUaq9.js";
|
|
8
|
+
import { r as c } from "./text-ChUk0Z46.js";
|
|
9
|
+
import { n as l } from "./button-Da8b-8ub.js";
|
|
10
10
|
import { n as u } from "./use-layout-width-CbSDbRb0.js";
|
|
11
|
-
import { r as d } from "./skeleton-
|
|
12
|
-
import { t as f } from "./truncated-
|
|
11
|
+
import { r as d } from "./skeleton-Bx-vRJdy.js";
|
|
12
|
+
import { t as f } from "./truncated-C0A4AU-U.js";
|
|
13
13
|
import { n as p, r as m, t as h } from "./selects-text-R1lZHLKm.js";
|
|
14
14
|
import { forwardRef as g, useCallback as _, useEffect as v, useLayoutEffect as y, useMemo as b, useRef as x, useState as S } from "react";
|
|
15
15
|
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
16
16
|
import { Add01Icon as T, Cancel01Icon as E } from "@hugeicons/core-free-icons";
|
|
17
17
|
import { createPortal as D } from "react-dom";
|
|
18
18
|
//#region src/components/list/row-checkbox.tsx
|
|
19
|
-
var O = /* @__PURE__ */ s(() => import("./checkbox-
|
|
19
|
+
var O = /* @__PURE__ */ s(() => import("./checkbox-CPL47-us.js").then((e) => e.c), { base: () => import.meta.url });
|
|
20
20
|
function k({ checked: t, onToggle: n, "aria-label": r }) {
|
|
21
21
|
let [i, a] = o(O, !0), [s, c] = S(!1), [l, u] = S(!1);
|
|
22
22
|
return v(() => {
|
|
@@ -562,4 +562,4 @@ process.env.NODE_ENV !== "production" && (R.displayName = "SelectionAction");
|
|
|
562
562
|
//#endregion
|
|
563
563
|
export { R as i, j as n, I as r, M as t };
|
|
564
564
|
|
|
565
|
-
//# sourceMappingURL=list-
|
|
565
|
+
//# sourceMappingURL=list-CT7yIoA5.js.map
|