@six-vallees/ui-react 0.6.0 → 0.7.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 +9 -13
- package/dist/actions/button-group.d.ts +21 -0
- package/dist/actions/button-group.js +8 -0
- package/dist/actions/button-group.js.map +1 -0
- package/dist/actions/context-menu.d.ts +48 -0
- package/dist/actions/context-menu.js +38 -0
- package/dist/actions/context-menu.js.map +1 -0
- package/dist/actions/dropdown-menu.d.ts +49 -0
- package/dist/actions/dropdown-menu.js +38 -0
- package/dist/actions/dropdown-menu.js.map +1 -0
- package/dist/actions/icon-button.d.ts +34 -0
- package/dist/actions/icon-button.js +10 -0
- package/dist/actions/icon-button.js.map +1 -0
- package/dist/actions/link.d.ts +23 -0
- package/dist/actions/link.js +8 -0
- package/dist/actions/link.js.map +1 -0
- package/dist/actions/menu-styles.d.ts +25 -0
- package/dist/actions/menu-styles.js +23 -0
- package/dist/actions/menu-styles.js.map +1 -0
- package/dist/avatar/avatar.d.ts +1 -1
- package/dist/avatar/avatar.js +1 -1
- package/dist/badge/badge.d.ts +3 -3
- package/dist/badge/badge.js +1 -1
- package/dist/button/button.d.ts +7 -4
- package/dist/button/button.js +1 -1
- package/dist/card/card.d.ts +11 -3
- package/dist/card/card.js +1 -1
- package/dist/charts/bar-chart.d.ts +50 -11
- package/dist/charts/bar-chart.js +7 -2
- package/dist/charts/benchmark-table.d.ts +47 -0
- package/dist/charts/benchmark-table.js +10 -0
- package/dist/charts/benchmark-table.js.map +1 -0
- package/dist/charts/delta.d.ts +23 -0
- package/dist/charts/delta.js +8 -0
- package/dist/charts/delta.js.map +1 -0
- package/dist/charts/dot-matrix.d.ts +38 -0
- package/dist/charts/dot-matrix.js +13 -0
- package/dist/charts/dot-matrix.js.map +1 -0
- package/dist/charts/heatmap.d.ts +33 -0
- package/dist/charts/heatmap.js +13 -0
- package/dist/charts/heatmap.js.map +1 -0
- package/dist/charts/lib/scale.d.ts +17 -0
- package/dist/charts/lib/scale.js +15 -0
- package/dist/charts/lib/scale.js.map +1 -0
- package/dist/charts/lib/series.d.ts +76 -44
- package/dist/charts/lib/series.js +25 -11
- package/dist/charts/lib/use-chart.d.ts +48 -0
- package/dist/charts/lib/use-chart.js +16 -0
- package/dist/charts/lib/use-chart.js.map +1 -0
- package/dist/charts/line-chart.d.ts +52 -19
- package/dist/charts/line-chart.js +11 -2
- package/dist/charts/meter.d.ts +30 -0
- package/dist/charts/meter.js +12 -0
- package/dist/charts/meter.js.map +1 -0
- package/dist/charts/primitives/chart-frame.d.ts +25 -0
- package/dist/charts/primitives/chart-frame.js +8 -0
- package/dist/charts/primitives/chart-frame.js.map +1 -0
- package/dist/charts/primitives/chart-grid.d.ts +29 -0
- package/dist/charts/primitives/chart-grid.js +9 -0
- package/dist/charts/primitives/chart-grid.js.map +1 -0
- package/dist/charts/primitives/chart-legend.d.ts +23 -0
- package/dist/charts/primitives/chart-legend.js +9 -0
- package/dist/charts/primitives/chart-legend.js.map +1 -0
- package/dist/charts/primitives/chart-tooltip.d.ts +31 -0
- package/dist/charts/primitives/chart-tooltip.js +9 -0
- package/dist/charts/primitives/chart-tooltip.js.map +1 -0
- package/dist/charts/rank-list.d.ts +29 -0
- package/dist/charts/rank-list.js +12 -0
- package/dist/charts/rank-list.js.map +1 -0
- package/dist/charts/ring.d.ts +25 -24
- package/dist/charts/ring.js +4 -2
- package/dist/charts/scatter-chart.d.ts +42 -0
- package/dist/charts/scatter-chart.js +14 -0
- package/dist/charts/scatter-chart.js.map +1 -0
- package/dist/charts/segmented-bar.d.ts +16 -11
- package/dist/charts/segmented-bar.js +6 -2
- package/dist/charts/sparkline.d.ts +32 -0
- package/dist/charts/sparkline.js +10 -0
- package/dist/charts/sparkline.js.map +1 -0
- package/dist/charts/stat.d.ts +13 -7
- package/dist/charts/stat.js +2 -1
- package/dist/chunk-24T7KWXQ.js +84 -0
- package/dist/chunk-24T7KWXQ.js.map +1 -0
- package/dist/chunk-2NJFAPRG.js +40 -0
- package/dist/chunk-2NJFAPRG.js.map +1 -0
- package/dist/chunk-3PHVZB3A.js +73 -0
- package/dist/chunk-3PHVZB3A.js.map +1 -0
- package/dist/chunk-5EGRSN37.js +102 -0
- package/dist/chunk-5EGRSN37.js.map +1 -0
- package/dist/chunk-7FRDEE43.js +35 -0
- package/dist/chunk-7FRDEE43.js.map +1 -0
- package/dist/{chunk-ULEDFFUJ.js → chunk-7YKHLP4S.js} +1 -1
- package/dist/chunk-7YKHLP4S.js.map +1 -0
- package/dist/{chunk-7GXL7U5X.js → chunk-A65X3XYB.js} +4 -3
- package/dist/chunk-A65X3XYB.js.map +1 -0
- package/dist/chunk-AGKLGZSW.js +74 -0
- package/dist/chunk-AGKLGZSW.js.map +1 -0
- package/dist/chunk-AQHYE6EF.js +109 -0
- package/dist/chunk-AQHYE6EF.js.map +1 -0
- package/dist/chunk-AWVTRQZJ.js +117 -0
- package/dist/chunk-AWVTRQZJ.js.map +1 -0
- package/dist/chunk-BDQUFQE7.js +30 -0
- package/dist/chunk-BDQUFQE7.js.map +1 -0
- package/dist/chunk-BJKQSXX4.js +54 -0
- package/dist/chunk-BJKQSXX4.js.map +1 -0
- package/dist/chunk-BKSKRGK7.js +81 -0
- package/dist/chunk-BKSKRGK7.js.map +1 -0
- package/dist/chunk-BVNDNRPW.js +44 -0
- package/dist/chunk-BVNDNRPW.js.map +1 -0
- package/dist/chunk-CN6QNKYV.js +24 -0
- package/dist/chunk-CN6QNKYV.js.map +1 -0
- package/dist/chunk-DD6QBBV2.js +119 -0
- package/dist/chunk-DD6QBBV2.js.map +1 -0
- package/dist/chunk-DHPFIP7P.js +50 -0
- package/dist/chunk-DHPFIP7P.js.map +1 -0
- package/dist/chunk-DRJWJ7KG.js +109 -0
- package/dist/chunk-DRJWJ7KG.js.map +1 -0
- package/dist/chunk-DUJEWU5O.js +72 -0
- package/dist/chunk-DUJEWU5O.js.map +1 -0
- package/dist/chunk-EKQQBSFF.js +79 -0
- package/dist/chunk-EKQQBSFF.js.map +1 -0
- package/dist/{chunk-RXDJPRH5.js → chunk-EM5UHI3U.js} +2 -2
- package/dist/chunk-EM5UHI3U.js.map +1 -0
- package/dist/chunk-ENL5WNFM.js +101 -0
- package/dist/chunk-ENL5WNFM.js.map +1 -0
- package/dist/chunk-EVKFEIM2.js +37 -0
- package/dist/chunk-EVKFEIM2.js.map +1 -0
- package/dist/chunk-EXEJG4IG.js +101 -0
- package/dist/chunk-EXEJG4IG.js.map +1 -0
- package/dist/chunk-FSVKQPMR.js +45 -0
- package/dist/chunk-FSVKQPMR.js.map +1 -0
- package/dist/chunk-GASC427L.js +34 -0
- package/dist/chunk-GASC427L.js.map +1 -0
- package/dist/chunk-GGQ6GQ75.js +24 -0
- package/dist/chunk-GGQ6GQ75.js.map +1 -0
- package/dist/chunk-GHXR4PCK.js +147 -0
- package/dist/chunk-GHXR4PCK.js.map +1 -0
- package/dist/{chunk-WHD5CSTB.js → chunk-HC3SNY5O.js} +5 -5
- package/dist/chunk-HC3SNY5O.js.map +1 -0
- package/dist/chunk-HJ7ICELB.js +76 -0
- package/dist/chunk-HJ7ICELB.js.map +1 -0
- package/dist/chunk-I355QWHH.js +40 -0
- package/dist/chunk-I355QWHH.js.map +1 -0
- package/dist/chunk-I6D5E5ZD.js +34 -0
- package/dist/chunk-I6D5E5ZD.js.map +1 -0
- package/dist/chunk-IBY25I76.js +49 -0
- package/dist/chunk-IBY25I76.js.map +1 -0
- package/dist/chunk-IGOTX5DA.js +19 -0
- package/dist/chunk-IGOTX5DA.js.map +1 -0
- package/dist/{chunk-WHJ4JVO6.js → chunk-JI4UZW6G.js} +2 -2
- package/dist/chunk-JI4UZW6G.js.map +1 -0
- package/dist/chunk-JZNXMBZ6.js +93 -0
- package/dist/chunk-JZNXMBZ6.js.map +1 -0
- package/dist/chunk-LAATHRKX.js +39 -0
- package/dist/chunk-LAATHRKX.js.map +1 -0
- package/dist/{chunk-POUL3ZTV.js → chunk-LL5GBPQN.js} +8 -4
- package/dist/chunk-LL5GBPQN.js.map +1 -0
- package/dist/chunk-ML3IXSZV.js +78 -0
- package/dist/chunk-ML3IXSZV.js.map +1 -0
- package/dist/chunk-MNECWWTU.js +62 -0
- package/dist/chunk-MNECWWTU.js.map +1 -0
- package/dist/chunk-MPYL4ED3.js +171 -0
- package/dist/chunk-MPYL4ED3.js.map +1 -0
- package/dist/chunk-MS7ZK2O6.js +65 -0
- package/dist/chunk-MS7ZK2O6.js.map +1 -0
- package/dist/chunk-MZVQ32JU.js +29 -0
- package/dist/chunk-MZVQ32JU.js.map +1 -0
- package/dist/chunk-NC4IUB2C.js +33 -0
- package/dist/chunk-NC4IUB2C.js.map +1 -0
- package/dist/chunk-NCAHIMIB.js +96 -0
- package/dist/chunk-NCAHIMIB.js.map +1 -0
- package/dist/chunk-NJVKZ5DE.js +114 -0
- package/dist/chunk-NJVKZ5DE.js.map +1 -0
- package/dist/chunk-OGSHLSI2.js +22 -0
- package/dist/chunk-OGSHLSI2.js.map +1 -0
- package/dist/chunk-OIAZH5EU.js +36 -0
- package/dist/chunk-OIAZH5EU.js.map +1 -0
- package/dist/chunk-P22B7HQS.js +45 -0
- package/dist/chunk-P22B7HQS.js.map +1 -0
- package/dist/{chunk-DCKWB3EY.js → chunk-P2CWISVU.js} +2 -2
- package/dist/chunk-P2CWISVU.js.map +1 -0
- package/dist/chunk-P4G5WFHH.js +18 -0
- package/dist/chunk-P4G5WFHH.js.map +1 -0
- package/dist/chunk-QNIIWNSR.js +78 -0
- package/dist/chunk-QNIIWNSR.js.map +1 -0
- package/dist/chunk-R23U2FRV.js +23 -0
- package/dist/chunk-R23U2FRV.js.map +1 -0
- package/dist/chunk-RB6DUG3M.js +9 -0
- package/dist/chunk-RB6DUG3M.js.map +1 -0
- package/dist/chunk-RKG72NSW.js +26 -0
- package/dist/chunk-RKG72NSW.js.map +1 -0
- package/dist/chunk-SAVUGRDZ.js +31 -0
- package/dist/chunk-SAVUGRDZ.js.map +1 -0
- package/dist/chunk-SEMDDFFB.js +37 -0
- package/dist/chunk-SEMDDFFB.js.map +1 -0
- package/dist/{chunk-R7BM6J75.js → chunk-SNTRWOF6.js} +2 -5
- package/dist/chunk-SNTRWOF6.js.map +1 -0
- package/dist/chunk-SOWWBAOB.js +36 -0
- package/dist/chunk-SOWWBAOB.js.map +1 -0
- package/dist/chunk-SYGAPDKX.js +45 -0
- package/dist/chunk-SYGAPDKX.js.map +1 -0
- package/dist/chunk-TBZIUIP2.js +87 -0
- package/dist/chunk-TBZIUIP2.js.map +1 -0
- package/dist/chunk-TD2NGENS.js +43 -0
- package/dist/chunk-TD2NGENS.js.map +1 -0
- package/dist/chunk-TH6WBEEL.js +58 -0
- package/dist/chunk-TH6WBEEL.js.map +1 -0
- package/dist/chunk-TUY3ZMDE.js +42 -0
- package/dist/chunk-TUY3ZMDE.js.map +1 -0
- package/dist/chunk-U4G72DSG.js +67 -0
- package/dist/chunk-U4G72DSG.js.map +1 -0
- package/dist/chunk-UG5TRIRZ.js +42 -0
- package/dist/chunk-UG5TRIRZ.js.map +1 -0
- package/dist/chunk-UOJZEP6N.js +39 -0
- package/dist/chunk-UOJZEP6N.js.map +1 -0
- package/dist/chunk-V5QWZ3LA.js +77 -0
- package/dist/chunk-V5QWZ3LA.js.map +1 -0
- package/dist/chunk-VDKJLIEZ.js +291 -0
- package/dist/chunk-VDKJLIEZ.js.map +1 -0
- package/dist/chunk-W2NESPKL.js +100 -0
- package/dist/chunk-W2NESPKL.js.map +1 -0
- package/dist/{chunk-HHUI32DT.js → chunk-W3RIYQPO.js} +3 -2
- package/dist/chunk-W3RIYQPO.js.map +1 -0
- package/dist/chunk-WO33CSUW.js +52 -0
- package/dist/chunk-WO33CSUW.js.map +1 -0
- package/dist/chunk-WSTHL6H7.js +33 -0
- package/dist/chunk-WSTHL6H7.js.map +1 -0
- package/dist/chunk-WZONN76V.js +55 -0
- package/dist/chunk-WZONN76V.js.map +1 -0
- package/dist/chunk-XGFM7GVN.js +39 -0
- package/dist/chunk-XGFM7GVN.js.map +1 -0
- package/dist/chunk-XSYY67X3.js +142 -0
- package/dist/chunk-XSYY67X3.js.map +1 -0
- package/dist/chunk-YFKM4ZLH.js +111 -0
- package/dist/chunk-YFKM4ZLH.js.map +1 -0
- package/dist/{chunk-OVF2VS3L.js → chunk-YM2TZ5UT.js} +4 -4
- package/dist/{chunk-OVF2VS3L.js.map → chunk-YM2TZ5UT.js.map} +1 -1
- package/dist/chunk-YP766ABA.js +268 -0
- package/dist/chunk-YP766ABA.js.map +1 -0
- package/dist/chunk-YT2PR4LF.js +38 -0
- package/dist/chunk-YT2PR4LF.js.map +1 -0
- package/dist/chunk-ZI4AJKES.js +29 -0
- package/dist/chunk-ZI4AJKES.js.map +1 -0
- package/dist/chunk-ZXVCMTM2.js +57 -0
- package/dist/chunk-ZXVCMTM2.js.map +1 -0
- package/dist/data-display/code-block.d.ts +26 -0
- package/dist/data-display/code-block.js +9 -0
- package/dist/data-display/code-block.js.map +1 -0
- package/dist/data-display/separator.d.ts +11 -0
- package/dist/data-display/separator.js +9 -0
- package/dist/data-display/separator.js.map +1 -0
- package/dist/data-display/stepper.d.ts +27 -0
- package/dist/data-display/stepper.js +8 -0
- package/dist/data-display/stepper.js.map +1 -0
- package/dist/data-display/table.d.ts +43 -0
- package/dist/data-display/table.js +24 -0
- package/dist/data-display/table.js.map +1 -0
- package/dist/data-display/tag.d.ts +27 -0
- package/dist/data-display/tag.js +10 -0
- package/dist/data-display/tag.js.map +1 -0
- package/dist/data-display/timeline.d.ts +24 -0
- package/dist/data-display/timeline.js +10 -0
- package/dist/data-display/timeline.js.map +1 -0
- package/dist/disclosure/accordion.d.ts +18 -0
- package/dist/disclosure/accordion.js +15 -0
- package/dist/disclosure/accordion.js.map +1 -0
- package/dist/disclosure/collapsible.d.ts +14 -0
- package/dist/disclosure/collapsible.js +13 -0
- package/dist/disclosure/collapsible.js.map +1 -0
- package/dist/disclosure/dialog.d.ts +43 -0
- package/dist/disclosure/dialog.js +27 -0
- package/dist/disclosure/dialog.js.map +1 -0
- package/dist/disclosure/hover-card.d.ts +21 -0
- package/dist/disclosure/hover-card.js +13 -0
- package/dist/disclosure/hover-card.js.map +1 -0
- package/dist/dots/dots.d.ts +41 -0
- package/dist/dots/dots.js +8 -0
- package/dist/dots/dots.js.map +1 -0
- package/dist/feedback/alert.d.ts +27 -0
- package/dist/feedback/alert.js +13 -0
- package/dist/feedback/alert.js.map +1 -0
- package/dist/feedback/empty-state.d.ts +28 -0
- package/dist/feedback/empty-state.js +8 -0
- package/dist/feedback/empty-state.js.map +1 -0
- package/dist/feedback/progress.d.ts +19 -0
- package/dist/feedback/progress.js +9 -0
- package/dist/feedback/progress.js.map +1 -0
- package/dist/feedback/skeleton.d.ts +16 -0
- package/dist/feedback/skeleton.js +8 -0
- package/dist/feedback/skeleton.js.map +1 -0
- package/dist/feedback/spinner.d.ts +19 -0
- package/dist/feedback/spinner.js +8 -0
- package/dist/feedback/spinner.js.map +1 -0
- package/dist/feedback/toast.d.ts +35 -0
- package/dist/feedback/toast.js +22 -0
- package/dist/feedback/toast.js.map +1 -0
- package/dist/feedback/tone.d.ts +20 -0
- package/dist/feedback/tone.js +11 -0
- package/dist/feedback/tone.js.map +1 -0
- package/dist/index.d.ts +78 -4
- package/dist/index.js +527 -41
- package/dist/input/chat-composer.d.ts +40 -0
- package/dist/input/chat-composer.js +9 -0
- package/dist/input/chat-composer.js.map +1 -0
- package/dist/input/checkbox.d.ts +15 -0
- package/dist/input/checkbox.js +9 -0
- package/dist/input/checkbox.js.map +1 -0
- package/dist/input/combobox.d.ts +121 -0
- package/dist/input/combobox.js +25 -0
- package/dist/input/combobox.js.map +1 -0
- package/dist/input/field-styles.d.ts +14 -0
- package/dist/input/field-styles.js +9 -0
- package/dist/input/field-styles.js.map +1 -0
- package/dist/input/input.d.ts +6 -11
- package/dist/input/input.js +2 -1
- package/dist/input/kbd.d.ts +11 -0
- package/dist/input/kbd.js +8 -0
- package/dist/input/kbd.js.map +1 -0
- package/dist/input/label.d.ts +10 -4
- package/dist/input/label.js +1 -1
- package/dist/input/radio-group.d.ts +15 -0
- package/dist/input/radio-group.js +11 -0
- package/dist/input/radio-group.js.map +1 -0
- package/dist/input/search-field.d.ts +24 -0
- package/dist/input/search-field.js +11 -0
- package/dist/input/search-field.js.map +1 -0
- package/dist/input/select.d.ts +29 -0
- package/dist/input/select.js +25 -0
- package/dist/input/select.js.map +1 -0
- package/dist/input/slider.d.ts +19 -0
- package/dist/input/slider.js +9 -0
- package/dist/input/slider.js.map +1 -0
- package/dist/input/switch.d.ts +15 -0
- package/dist/input/switch.js +9 -0
- package/dist/input/switch.js.map +1 -0
- package/dist/input/textarea.d.ts +1 -5
- package/dist/input/textarea.js +2 -1
- package/dist/logo/cairn-mark.d.ts +24 -0
- package/dist/logo/cairn-mark.js +8 -0
- package/dist/logo/cairn-mark.js.map +1 -0
- package/dist/marketing/carousel-dots.d.ts +22 -0
- package/dist/marketing/carousel-dots.js +8 -0
- package/dist/marketing/carousel-dots.js.map +1 -0
- package/dist/marketing/cta-band.d.ts +24 -0
- package/dist/marketing/cta-band.js +9 -0
- package/dist/marketing/cta-band.js.map +1 -0
- package/dist/marketing/feature-grid.d.ts +30 -0
- package/dist/marketing/feature-grid.js +10 -0
- package/dist/marketing/feature-grid.js.map +1 -0
- package/dist/marketing/footer.d.ts +33 -0
- package/dist/marketing/footer.js +18 -0
- package/dist/marketing/footer.js.map +1 -0
- package/dist/marketing/hero-badge.d.ts +19 -0
- package/dist/marketing/hero-badge.js +8 -0
- package/dist/marketing/hero-badge.js.map +1 -0
- package/dist/marketing/logo-strip.d.ts +28 -0
- package/dist/marketing/logo-strip.js +8 -0
- package/dist/marketing/logo-strip.js.map +1 -0
- package/dist/marketing/pricing-card.d.ts +37 -0
- package/dist/marketing/pricing-card.js +10 -0
- package/dist/marketing/pricing-card.js.map +1 -0
- package/dist/marketing/section-header.d.ts +23 -0
- package/dist/marketing/section-header.js +8 -0
- package/dist/marketing/section-header.js.map +1 -0
- package/dist/navigation/anchor-rail.d.ts +27 -0
- package/dist/navigation/anchor-rail.js +9 -0
- package/dist/navigation/anchor-rail.js.map +1 -0
- package/dist/navigation/breadcrumb.d.ts +33 -0
- package/dist/navigation/breadcrumb.js +20 -0
- package/dist/navigation/breadcrumb.js.map +1 -0
- package/dist/navigation/nav-bar.d.ts +47 -0
- package/dist/navigation/nav-bar.js +21 -0
- package/dist/navigation/nav-bar.js.map +1 -0
- package/dist/navigation/navigation-menu.d.ts +23 -0
- package/dist/navigation/navigation-menu.js +25 -0
- package/dist/navigation/navigation-menu.js.map +1 -0
- package/dist/navigation/pagination.d.ts +31 -0
- package/dist/navigation/pagination.js +20 -0
- package/dist/navigation/pagination.js.map +1 -0
- package/dist/navigation/side-nav.d.ts +31 -0
- package/dist/navigation/side-nav.js +13 -0
- package/dist/navigation/side-nav.js.map +1 -0
- package/dist/overlay/alert-dialog.d.ts +3 -3
- package/dist/overlay/alert-dialog.js +1 -1
- package/dist/overlay/popover.d.ts +3 -4
- package/dist/overlay/popover.js +1 -1
- package/dist/overlay/sheet.d.ts +4 -4
- package/dist/overlay/sheet.js +1 -1
- package/dist/overlay/tooltip.d.ts +1 -1
- package/dist/overlay/tooltip.js +1 -1
- package/dist/tabs/tabs.d.ts +1 -1
- package/dist/tabs/tabs.js +1 -1
- package/dist/tabs/toggle-group.js +1 -1
- package/package.json +17 -7
- package/dist/chunk-7GXL7U5X.js.map +0 -1
- package/dist/chunk-BWYWI4BC.js +0 -43
- package/dist/chunk-BWYWI4BC.js.map +0 -1
- package/dist/chunk-BYZCFI7X.js +0 -32
- package/dist/chunk-BYZCFI7X.js.map +0 -1
- package/dist/chunk-CZ3JB37A.js +0 -72
- package/dist/chunk-CZ3JB37A.js.map +0 -1
- package/dist/chunk-DCKWB3EY.js.map +0 -1
- package/dist/chunk-G2XJK244.js +0 -96
- package/dist/chunk-G2XJK244.js.map +0 -1
- package/dist/chunk-GNHNTI5A.js +0 -30
- package/dist/chunk-GNHNTI5A.js.map +0 -1
- package/dist/chunk-HHUI32DT.js.map +0 -1
- package/dist/chunk-OWIUMX76.js +0 -91
- package/dist/chunk-OWIUMX76.js.map +0 -1
- package/dist/chunk-POUL3ZTV.js.map +0 -1
- package/dist/chunk-R7BM6J75.js.map +0 -1
- package/dist/chunk-RXDJPRH5.js.map +0 -1
- package/dist/chunk-S4HVXD6Z.js +0 -92
- package/dist/chunk-S4HVXD6Z.js.map +0 -1
- package/dist/chunk-ULEDFFUJ.js.map +0 -1
- package/dist/chunk-WHD5CSTB.js.map +0 -1
- package/dist/chunk-WHJ4JVO6.js.map +0 -1
- package/dist/chunk-XGYKA3GE.js +0 -30
- package/dist/chunk-XGYKA3GE.js.map +0 -1
- package/dist/chunk-YX6MSLUB.js +0 -98
- package/dist/chunk-YX6MSLUB.js.map +0 -1
package/dist/charts/bar-chart.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
BarChart
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-VDKJLIEZ.js";
|
|
5
|
+
import "../chunk-TD2NGENS.js";
|
|
6
|
+
import "../chunk-ZI4AJKES.js";
|
|
7
|
+
import "../chunk-YT2PR4LF.js";
|
|
8
|
+
import "../chunk-W2NESPKL.js";
|
|
9
|
+
import "../chunk-I355QWHH.js";
|
|
10
|
+
import "../chunk-5EGRSN37.js";
|
|
6
11
|
import "../chunk-DXRY7AS4.js";
|
|
7
12
|
export {
|
|
8
13
|
BarChart
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface BenchmarkColumn {
|
|
4
|
+
label: string;
|
|
5
|
+
/** The subject column: tinted in `highlight` and outlined in `highlight-edge`. */
|
|
6
|
+
focus?: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface BenchmarkRow {
|
|
9
|
+
label: string;
|
|
10
|
+
/** Muted sub-label after the row label, e.g. the evaluation setting. */
|
|
11
|
+
note?: string;
|
|
12
|
+
/** One value per column; `null` prints a dash read as "not reported". */
|
|
13
|
+
values: (number | string | null)[];
|
|
14
|
+
}
|
|
15
|
+
interface BenchmarkGroup {
|
|
16
|
+
/** Small uppercase tag introducing the group. */
|
|
17
|
+
tag?: string;
|
|
18
|
+
rows: BenchmarkRow[];
|
|
19
|
+
/** One merged cell from column `from` to the last column, across every row of the group. */
|
|
20
|
+
unsupported?: {
|
|
21
|
+
from: number;
|
|
22
|
+
label: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
interface BenchmarkTableProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
columns: BenchmarkColumn[];
|
|
27
|
+
groups: BenchmarkGroup[];
|
|
28
|
+
/** Header of the row-label column. */
|
|
29
|
+
rowHeader?: string;
|
|
30
|
+
/** Format for numeric values. */
|
|
31
|
+
format?: (v: number) => string;
|
|
32
|
+
/** Table caption, visually hidden unless `showCaption`. */
|
|
33
|
+
caption?: string;
|
|
34
|
+
showCaption?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Cairn BenchmarkTable, a comparison table: a real `<table>` on hairline rows, the
|
|
38
|
+
* subject column tinted and outlined in orange from header to last row, groups opened by a small
|
|
39
|
+
* uppercase tag, a muted sub-label after each row name, tabular numerals, and an optional merged
|
|
40
|
+
* cell for a capability a column does not have. Scrolls horizontally on narrow screens.
|
|
41
|
+
*/
|
|
42
|
+
declare function BenchmarkTable({ columns, groups, rowHeader, format, caption, showCaption, className, ...props }: BenchmarkTableProps): React.JSX.Element;
|
|
43
|
+
declare namespace BenchmarkTable {
|
|
44
|
+
var displayName: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { type BenchmarkColumn, type BenchmarkGroup, type BenchmarkRow, BenchmarkTable, type BenchmarkTableProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface DeltaProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** The change, pre-formatted ("+7%") or a number (its sign sets the direction). */
|
|
5
|
+
value: string | number;
|
|
6
|
+
/** Direction of the change; derived from a numeric `value` when omitted. */
|
|
7
|
+
direction?: 'up' | 'down' | 'flat';
|
|
8
|
+
/** Whether the change is good news. Defaults: up positive, down negative. Invert it for a
|
|
9
|
+
* metric where lower is better (latency, cost). */
|
|
10
|
+
sentiment?: 'positive' | 'negative' | 'neutral';
|
|
11
|
+
format?: (v: number) => string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Cairn Delta: a trend badge. The meaning sits in a message container (`success` / `error`
|
|
15
|
+
* container with its on-* text, rule 4), and never on hue alone: the arrow glyph and the signed
|
|
16
|
+
* value say the direction too. Square, the eyebrow-free body size.
|
|
17
|
+
*/
|
|
18
|
+
declare function Delta({ value, direction, sentiment, format, className, ...props }: DeltaProps): React.JSX.Element;
|
|
19
|
+
declare namespace Delta {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Delta, type DeltaProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface DotMatrixPart {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
/** The subject part: warm. Without any flag, the first part is the subject. */
|
|
7
|
+
focus?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface DotMatrixProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/** Parts of the whole; each fills its share of the dots in order. */
|
|
11
|
+
parts?: DotMatrixPart[];
|
|
12
|
+
/** Shortcut for one share in percent (0 to 100). */
|
|
13
|
+
value?: number;
|
|
14
|
+
/** Label of `value` in the legend and the summary. */
|
|
15
|
+
label?: string;
|
|
16
|
+
/** Total the parts are a share of; defaults to their sum, or 100 with `value`. */
|
|
17
|
+
total?: number;
|
|
18
|
+
cols?: number;
|
|
19
|
+
rows?: number;
|
|
20
|
+
/** Dot diameter in px. */
|
|
21
|
+
dot?: number;
|
|
22
|
+
/** Space between dots in px. */
|
|
23
|
+
gap?: number;
|
|
24
|
+
legend?: boolean;
|
|
25
|
+
format?: (v: number) => string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Cairn DotMatrix, the waffle chart in SV's dots: a grid of true circles (10 by 10 by default,
|
|
29
|
+
* one dot per percent) filled in order by each part's share, the subject warm, the rest neutral,
|
|
30
|
+
* the remainder on the empty track. Dots pop in row by row. One `img` with a text summary; the
|
|
31
|
+
* legend prints every value.
|
|
32
|
+
*/
|
|
33
|
+
declare function DotMatrix({ parts: partsProp, value, label, total: totalProp, cols, rows, dot, gap, legend, format, className, ...props }: DotMatrixProps): React.JSX.Element;
|
|
34
|
+
declare namespace DotMatrix {
|
|
35
|
+
var displayName: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { DotMatrix, type DotMatrixPart, type DotMatrixProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
DotMatrix
|
|
4
|
+
} from "../chunk-EXEJG4IG.js";
|
|
5
|
+
import "../chunk-ZI4AJKES.js";
|
|
6
|
+
import "../chunk-W2NESPKL.js";
|
|
7
|
+
import "../chunk-I355QWHH.js";
|
|
8
|
+
import "../chunk-5EGRSN37.js";
|
|
9
|
+
import "../chunk-DXRY7AS4.js";
|
|
10
|
+
export {
|
|
11
|
+
DotMatrix
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=dot-matrix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface HeatmapProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Row labels (e.g. weekdays). An empty string leaves a row unlabelled. */
|
|
5
|
+
rows: string[];
|
|
6
|
+
/** Column labels (e.g. weeks). Empty strings keep the axis sparse. */
|
|
7
|
+
cols: string[];
|
|
8
|
+
/** `values[row][col]`; `null` is an empty cell. */
|
|
9
|
+
values: (number | null)[][];
|
|
10
|
+
/** `both` (default): size and tone grow with the value. `tone`: equal dots, tone only. `size`: one tone, size only. */
|
|
11
|
+
encode?: 'both' | 'tone' | 'size';
|
|
12
|
+
/** Cell pitch in px. */
|
|
13
|
+
cell?: number;
|
|
14
|
+
/** Value at full size and tone; defaults to the data maximum. */
|
|
15
|
+
max?: number;
|
|
16
|
+
/** Show the scale legend under the grid. */
|
|
17
|
+
legend?: boolean;
|
|
18
|
+
format?: (v: number) => string;
|
|
19
|
+
/** Accessible name of the grid. */
|
|
20
|
+
'aria-label'?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Cairn Heatmap, built from SV dots: a grid of true circles where size and tone (the `main`
|
|
24
|
+
* ramp, `sys.chart.sequential`) grow with the value, a contribution-calendar reading. Empty
|
|
25
|
+
* cells are a small dot on the track. Dots pop in column by column. One tab stop: arrow keys
|
|
26
|
+
* move in two dimensions, hover and focus show the same tooltip.
|
|
27
|
+
*/
|
|
28
|
+
declare function Heatmap({ rows, cols, values, encode, cell, max: maxProp, legend, format, 'aria-label': ariaLabel, className, ...props }: HeatmapProps): React.JSX.Element;
|
|
29
|
+
declare namespace Heatmap {
|
|
30
|
+
var displayName: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { Heatmap, type HeatmapProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Heatmap
|
|
4
|
+
} from "../chunk-DRJWJ7KG.js";
|
|
5
|
+
import "../chunk-YT2PR4LF.js";
|
|
6
|
+
import "../chunk-W2NESPKL.js";
|
|
7
|
+
import "../chunk-I355QWHH.js";
|
|
8
|
+
import "../chunk-5EGRSN37.js";
|
|
9
|
+
import "../chunk-DXRY7AS4.js";
|
|
10
|
+
export {
|
|
11
|
+
Heatmap
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=heatmap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Numeric helpers shared by the chart family. Pure functions, no DOM. */
|
|
2
|
+
/** Round domain and ticks covering [min, max], about `count` intervals. */
|
|
3
|
+
declare function niceDomain(min: number, max: number, count?: number): {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
ticks: number[];
|
|
7
|
+
};
|
|
8
|
+
/** Linear map from a domain to [0, 1]. */
|
|
9
|
+
declare function unit(min: number, max: number): (x: number) => number;
|
|
10
|
+
/** Default number format: up to one decimal, locale grouping. */
|
|
11
|
+
declare function formatNumber(v: number): string;
|
|
12
|
+
/** Clamp a value to [lo, hi]. */
|
|
13
|
+
declare const clamp: (x: number, lo: number, hi: number) => number;
|
|
14
|
+
/** Coerce non-finite values to 0. */
|
|
15
|
+
declare const safe: (x: number) => number;
|
|
16
|
+
|
|
17
|
+
export { clamp, formatNumber, niceDomain, safe, unit };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,55 +1,87 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Cairn data-viz colour, the single place a series gets a colour.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* The rule is "us versus them": the SUBJECT of a chart (the focal series, the focal point, the
|
|
5
|
+
* focal column) is warm, `brand(i)`; everything it is compared with is neutral, `neutral(i)`
|
|
6
|
+
* (cream on light, steel on dark, navy on black). Hue marks the subject, it never decorates.
|
|
7
|
+
* A chart with no declared focus treats its first series as the subject.
|
|
8
|
+
*
|
|
9
|
+
* Every value here is a `sys.chart.*` CSS variable, so the dark and black themes recolour the
|
|
10
|
+
* charts for free. Components never name a hex, never read `--sv-sys-chart-*` directly and
|
|
11
|
+
* never use `currentColor` on a mark: they call the helpers below.
|
|
12
|
+
*
|
|
13
|
+
* Values printed ON a fill take the index-matched `brandOn(i)` / `neutralOn(i)` foreground;
|
|
14
|
+
* each pair is measured AA in every theme (see sys.chart.json). A fill under 3:1 against the
|
|
15
|
+
* surface carries its information through a printed value (WCAG 1.4.11) or, when the value is
|
|
16
|
+
* hidden, through `markEdge()`.
|
|
9
17
|
*/
|
|
10
|
-
/**
|
|
11
|
-
* components consume these, never the raw `--sv-sys-chart-*` var. `accent` is the one
|
|
12
|
-
* opt-in hue (the signature accent) a fixed-shape chart may promote a value to. */
|
|
18
|
+
/** Named chart roles. `value` = text next to a mark, `label` = ticks, categories, footnotes. */
|
|
13
19
|
declare const chartToken: {
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
20
|
+
readonly value: string;
|
|
21
|
+
readonly label: string;
|
|
22
|
+
readonly axis: string;
|
|
23
|
+
readonly grid: string;
|
|
24
|
+
readonly track: string;
|
|
25
|
+
readonly highlight: string;
|
|
26
|
+
readonly highlightEdge: string;
|
|
27
|
+
readonly onHighlight: string;
|
|
28
|
+
readonly markEdge: string;
|
|
29
|
+
readonly tintBase: string;
|
|
21
30
|
};
|
|
22
|
-
declare const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
declare const BRAND_MAX = 5;
|
|
32
|
+
declare const NEUTRAL_MAX = 5;
|
|
33
|
+
/** Fill of the `i`-th focal series (0-based). brand-1 is the default subject. */
|
|
34
|
+
declare function brand(i?: number): string;
|
|
35
|
+
/** AA foreground for a value printed on `brand(i)`. */
|
|
36
|
+
declare function brandOn(i?: number): string;
|
|
37
|
+
/** Fill of the `i`-th comparison series. neutral-1 and 2 are marks, 3 to 5 are tints. */
|
|
38
|
+
declare function neutral(i?: number): string;
|
|
39
|
+
/** AA foreground for a value printed on `neutral(i)`. */
|
|
40
|
+
declare function neutralOn(i?: number): string;
|
|
41
|
+
/** Alias of `brand`: read as "the focus colour". */
|
|
42
|
+
declare const focus: typeof brand;
|
|
43
|
+
declare function brandNeedsEdge(i?: number): boolean;
|
|
44
|
+
declare function neutralNeedsEdge(i?: number): boolean;
|
|
45
|
+
/** The resolved paint of one series: fill, the foreground for a value on it, and whether the
|
|
46
|
+
* fill needs a keyline when its value is not printed. */
|
|
47
|
+
interface SeriesPaint {
|
|
48
|
+
fill: string;
|
|
49
|
+
on: string;
|
|
50
|
+
pale: boolean;
|
|
51
|
+
focus: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Assign paints to a list of series: focal series take brand-1, 2... in order,
|
|
55
|
+
* comparison series take neutral-1, 2... in order. When nothing is flagged, the first series is
|
|
56
|
+
* the subject. `mode: 'brand'` paints every series warm (unordered categories with no subject,
|
|
57
|
+
* capped at five hues, a sixth wraps and must be told apart by its label).
|
|
58
|
+
*/
|
|
59
|
+
declare function paintSeries(series: readonly {
|
|
60
|
+
focus?: boolean;
|
|
61
|
+
}[], mode?: 'focus' | 'brand'): SeriesPaint[];
|
|
62
|
+
/** A paler step of `color` for stacked extra layers (the maj@k pattern): mixed toward the
|
|
63
|
+
* theme-invariant `tint-base`, so it stays paler than its base and `brandOn` only gains
|
|
64
|
+
* contrast on it. `step` 1 is the first layer above the base. */
|
|
65
|
+
declare function tint(color: string, step: number): string;
|
|
66
|
+
declare function sequentialIndex(i: number, n: number): number;
|
|
67
|
+
declare function sequential(i: number, n: number): string;
|
|
68
|
+
declare function sequentialNeedsEdge(i: number, n: number): boolean;
|
|
69
|
+
/** The keyline itself, or `undefined` when the mark carries its own contrast or its value is
|
|
70
|
+
* printed. Feed straight to a style `boxShadow`. */
|
|
71
|
+
declare function markEdge(needed: boolean): string | undefined;
|
|
72
|
+
/** Chart line weights, in px: `line` for every trend line, `guide` for reference rules,
|
|
73
|
+
* `focus` for the focal series of a multi-series line chart. */
|
|
27
74
|
declare const chartStroke: {
|
|
28
75
|
readonly line: 2;
|
|
29
76
|
readonly guide: 1;
|
|
77
|
+
readonly focus: 2.5;
|
|
30
78
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
declare function categoricalOn(i: number): string;
|
|
39
|
-
/** Colour for the `i`-th of `n` steps on the single-hue magnitude ramp. */
|
|
40
|
-
declare function sequential(i: number, n: number): string;
|
|
41
|
-
/** WCAG-AA foreground for text drawn on `sequential(i, n)`. */
|
|
42
|
-
declare function sequentialOn(i: number, n: number): string;
|
|
43
|
-
/** True when `categorical(i)` needs a keyline. */
|
|
44
|
-
declare function categoricalNeedsEdge(i: number): boolean;
|
|
45
|
-
/** True when `sequential(i, n)` needs a keyline. */
|
|
46
|
-
declare function sequentialNeedsEdge(i: number, n: number): boolean;
|
|
47
|
-
/** True when a mono `tone` fill needs a keyline. None do: `muted` moved to neutral.500 and now
|
|
48
|
-
* clears 3:1 on its own (4.5:1 light / 3.7:1 dark), so mono marks draw no border at all. Kept as
|
|
49
|
-
* a function rather than inlined, so a future tone that IS pale has one place to declare it. */
|
|
50
|
-
declare function toneNeedsEdge(_tone: 'ink' | 'muted' | 'accent'): boolean;
|
|
51
|
-
/** The keyline itself, or `undefined` when the mark carries its own contrast. Feed straight to
|
|
52
|
-
* a style `boxShadow`, so a component never hand-writes the inset shadow. */
|
|
53
|
-
declare function markEdge(needed: boolean): string | undefined;
|
|
79
|
+
type Tone = 'focus' | 'neutral' | 'value' | 'ink' | 'muted' | 'accent';
|
|
80
|
+
/** Mono tone of a single mark: `focus` (brand-1, the default), `neutral` (neutral-1), `value`
|
|
81
|
+
* (the text colour, for a quiet monochrome mark). Legacy `ink`, `muted`, `accent` map to
|
|
82
|
+
* value, neutral and focus. */
|
|
83
|
+
declare function toneFill(tone?: Tone): string;
|
|
84
|
+
/** True when a mono `tone` fill needs a keyline on paper when its value is hidden. */
|
|
85
|
+
declare function toneNeedsEdge(tone?: Tone): boolean;
|
|
54
86
|
|
|
55
|
-
export {
|
|
87
|
+
export { BRAND_MAX, NEUTRAL_MAX, type SeriesPaint, type Tone, brand, brandNeedsEdge, brandOn, chartStroke, chartToken, focus, markEdge, neutral, neutralNeedsEdge, neutralOn, paintSeries, sequential, sequentialIndex, sequentialNeedsEdge, tint, toneFill, toneNeedsEdge };
|
|
@@ -1,28 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
BRAND_MAX,
|
|
3
|
+
NEUTRAL_MAX,
|
|
4
|
+
brand,
|
|
5
|
+
brandNeedsEdge,
|
|
6
|
+
brandOn,
|
|
6
7
|
chartStroke,
|
|
7
8
|
chartToken,
|
|
9
|
+
focus,
|
|
8
10
|
markEdge,
|
|
11
|
+
neutral,
|
|
12
|
+
neutralNeedsEdge,
|
|
13
|
+
neutralOn,
|
|
14
|
+
paintSeries,
|
|
9
15
|
sequential,
|
|
16
|
+
sequentialIndex,
|
|
10
17
|
sequentialNeedsEdge,
|
|
11
|
-
|
|
18
|
+
tint,
|
|
12
19
|
toneFill,
|
|
13
20
|
toneNeedsEdge
|
|
14
|
-
} from "../../chunk-
|
|
21
|
+
} from "../../chunk-5EGRSN37.js";
|
|
15
22
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
BRAND_MAX,
|
|
24
|
+
NEUTRAL_MAX,
|
|
25
|
+
brand,
|
|
26
|
+
brandNeedsEdge,
|
|
27
|
+
brandOn,
|
|
20
28
|
chartStroke,
|
|
21
29
|
chartToken,
|
|
30
|
+
focus,
|
|
22
31
|
markEdge,
|
|
32
|
+
neutral,
|
|
33
|
+
neutralNeedsEdge,
|
|
34
|
+
neutralOn,
|
|
35
|
+
paintSeries,
|
|
23
36
|
sequential,
|
|
37
|
+
sequentialIndex,
|
|
24
38
|
sequentialNeedsEdge,
|
|
25
|
-
|
|
39
|
+
tint,
|
|
26
40
|
toneFill,
|
|
27
41
|
toneNeedsEdge
|
|
28
42
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Entrance gate. Chart marks animate with `motion-safe:animate-sv-chart-*` and read
|
|
5
|
+
* `animationPlayState` from `--sv-chart-play`. The server renders `running` (a chart without
|
|
6
|
+
* JavaScript is a finished chart); on mount, a chart below the fold is paused until it scrolls
|
|
7
|
+
* into view, so the entrance is seen rather than spent offscreen.
|
|
8
|
+
*/
|
|
9
|
+
declare function useChartEntrance<T extends HTMLElement>(): {
|
|
10
|
+
ref: React.RefObject<T | null>;
|
|
11
|
+
style: React.CSSProperties;
|
|
12
|
+
};
|
|
13
|
+
/** Inline style for one animated mark: play state from the gate, staggered delay from the
|
|
14
|
+
* motion token (`delay.short` scaled by `step`). */
|
|
15
|
+
declare function markMotion(step?: number, scale?: number): React.CSSProperties;
|
|
16
|
+
/**
|
|
17
|
+
* Roving focus over a chart's marks: one tab stop for the whole chart, arrow keys move between
|
|
18
|
+
* marks, Home / End jump to the ends. Hover and focus drive the same `active` index, so the
|
|
19
|
+
* tooltip a pointer sees is the tooltip a keyboard sees. With `cols`, Up / Down move by row.
|
|
20
|
+
*/
|
|
21
|
+
declare function useRoving(count: number, opts?: {
|
|
22
|
+
cols?: number;
|
|
23
|
+
}): {
|
|
24
|
+
active: number | null;
|
|
25
|
+
setActive: React.Dispatch<React.SetStateAction<number | null>>;
|
|
26
|
+
itemProps: (i: number) => {
|
|
27
|
+
ref: (el: HTMLElement | null) => void;
|
|
28
|
+
tabIndex: number;
|
|
29
|
+
onKeyDown: (e: React.KeyboardEvent) => void;
|
|
30
|
+
onFocus: () => void;
|
|
31
|
+
onBlur: () => void;
|
|
32
|
+
onMouseEnter: () => void;
|
|
33
|
+
};
|
|
34
|
+
containerProps: {
|
|
35
|
+
onMouseLeave: () => void;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/** The focus outline every focusable mark carries (rule 9). */
|
|
39
|
+
declare const markFocus = "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus";
|
|
40
|
+
/** Width of an element in px, tracked with a ResizeObserver (0 before mount). Charts use it to
|
|
41
|
+
* drop value labels that would collide when the marks get too narrow; the values stay in the
|
|
42
|
+
* tooltip and the accessible names. */
|
|
43
|
+
declare function useWidth<T extends HTMLElement>(): {
|
|
44
|
+
ref: React.RefObject<T | null>;
|
|
45
|
+
width: number;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { markFocus, markMotion, useChartEntrance, useRoving, useWidth };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
markFocus,
|
|
4
|
+
markMotion,
|
|
5
|
+
useChartEntrance,
|
|
6
|
+
useRoving,
|
|
7
|
+
useWidth
|
|
8
|
+
} from "../../chunk-W2NESPKL.js";
|
|
9
|
+
export {
|
|
10
|
+
markFocus,
|
|
11
|
+
markMotion,
|
|
12
|
+
useChartEntrance,
|
|
13
|
+
useRoving,
|
|
14
|
+
useWidth
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=use-chart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,38 +1,71 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { Tone } from './lib/series.js';
|
|
2
3
|
|
|
4
|
+
interface LineSeries {
|
|
5
|
+
label: string;
|
|
6
|
+
values: (number | null)[];
|
|
7
|
+
/** The subject: warm and drawn on top. Without any flag, the first series is the subject. */
|
|
8
|
+
focus?: boolean;
|
|
9
|
+
}
|
|
3
10
|
interface LineChartProps {
|
|
4
|
-
/**
|
|
5
|
-
|
|
11
|
+
/** X labels, one per value. */
|
|
12
|
+
categories?: string[];
|
|
13
|
+
series?: LineSeries[];
|
|
14
|
+
/** Legacy single-series input: values or `{ label, value }` points. */
|
|
15
|
+
data?: (number | {
|
|
6
16
|
label?: string;
|
|
7
17
|
value: number;
|
|
8
18
|
})[];
|
|
9
|
-
/** Fill
|
|
10
|
-
area?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
|
|
19
|
+
/** Fill under the lines: `focus` fills the subject only, `all` every series. `true` = `focus`. */
|
|
20
|
+
area?: boolean | 'focus' | 'all';
|
|
21
|
+
/** Series name and last value printed at the right end of each line. On by default. */
|
|
22
|
+
endLabels?: boolean;
|
|
23
|
+
/** Point markers on the subject. Defaults on up to 16 points. */
|
|
24
|
+
dots?: boolean;
|
|
25
|
+
/** Dashed value grid with tick labels. */
|
|
26
|
+
grid?: boolean;
|
|
27
|
+
/** Start the value axis at zero instead of fitting the data. */
|
|
28
|
+
zero?: boolean;
|
|
29
|
+
/** Legend above the chart (off by default: the end labels name the lines). */
|
|
30
|
+
legend?: boolean;
|
|
31
|
+
palette?: 'focus' | 'brand';
|
|
32
|
+
format?: (v: number) => string;
|
|
33
|
+
/** Plot height in px. */
|
|
15
34
|
height?: number;
|
|
16
|
-
/**
|
|
35
|
+
/** Index to mark permanently with a guide and a label. */
|
|
17
36
|
markerIndex?: number;
|
|
18
37
|
markerLabel?: string;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/**
|
|
38
|
+
/** Compact word-sized sparkline (legacy; prefer `Sparkline`). */
|
|
39
|
+
inline?: boolean;
|
|
40
|
+
/** Inline width in px. */
|
|
41
|
+
width?: number;
|
|
42
|
+
/** Inline / single-series tone. */
|
|
43
|
+
tone?: Tone;
|
|
44
|
+
/** @deprecated Explicit colour; use `tone`. */
|
|
22
45
|
color?: string;
|
|
23
|
-
/** Stroke weight in px. Defaults to the shared chart line weight. */
|
|
24
46
|
strokeWidth?: number;
|
|
47
|
+
'aria-label'?: string;
|
|
25
48
|
className?: string;
|
|
26
49
|
}
|
|
27
50
|
/**
|
|
28
|
-
* Cairn LineChart
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
51
|
+
* Cairn LineChart: the subject line warm and on top, comparison lines neutral,
|
|
52
|
+
* each line named at its end with its last value (direct labels, no legend hunt), a dashed
|
|
53
|
+
* hairline grid, no frame. `area` fills under the subject: that is the AreaChart. Lines wipe in
|
|
54
|
+
* from the left, points pop in staggered (motion tokens, off under reduced motion). One tab
|
|
55
|
+
* stop: arrow keys walk the x positions, hover and focus show the same tooltip.
|
|
32
56
|
*/
|
|
33
|
-
declare function LineChart(
|
|
57
|
+
declare function LineChart(props: LineChartProps): React.JSX.Element;
|
|
34
58
|
declare namespace LineChart {
|
|
35
59
|
var displayName: string;
|
|
36
60
|
}
|
|
61
|
+
type AreaChartProps = Omit<LineChartProps, 'area'> & {
|
|
62
|
+
area?: 'focus' | 'all';
|
|
63
|
+
};
|
|
64
|
+
/** Cairn AreaChart: the LineChart with its area filled (`focus` by default, or `all`). A named
|
|
65
|
+
* entry point, not a second implementation. */
|
|
66
|
+
declare function AreaChart({ area, ...props }: AreaChartProps): React.JSX.Element;
|
|
67
|
+
declare namespace AreaChart {
|
|
68
|
+
var displayName: string;
|
|
69
|
+
}
|
|
37
70
|
|
|
38
|
-
export { LineChart, type LineChartProps };
|
|
71
|
+
export { AreaChart, type AreaChartProps, LineChart, type LineChartProps, type LineSeries };
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import {
|
|
3
|
+
AreaChart,
|
|
2
4
|
LineChart
|
|
3
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-YP766ABA.js";
|
|
6
|
+
import "../chunk-ML3IXSZV.js";
|
|
4
7
|
import "../chunk-27MWE4F5.js";
|
|
5
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-TD2NGENS.js";
|
|
9
|
+
import "../chunk-ZI4AJKES.js";
|
|
10
|
+
import "../chunk-YT2PR4LF.js";
|
|
11
|
+
import "../chunk-W2NESPKL.js";
|
|
12
|
+
import "../chunk-I355QWHH.js";
|
|
13
|
+
import "../chunk-5EGRSN37.js";
|
|
6
14
|
import "../chunk-DXRY7AS4.js";
|
|
7
15
|
export {
|
|
16
|
+
AreaChart,
|
|
8
17
|
LineChart
|
|
9
18
|
};
|
|
10
19
|
//# sourceMappingURL=line-chart.js.map
|