@silverpoint/react 0.2.0 → 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 +27 -2
- package/dist/activity-grid.js +3 -2
- package/dist/area-chart.js +3 -2
- package/dist/bar-chart.js +3 -2
- package/dist/base-C6zY78Va.d.ts +8 -0
- package/dist/beeswarm-chart.d.ts +10 -0
- package/dist/beeswarm-chart.js +11 -0
- package/dist/beeswarm-chart.js.map +1 -0
- package/dist/box-plot-chart.d.ts +10 -0
- package/dist/box-plot-chart.js +11 -0
- package/dist/box-plot-chart.js.map +1 -0
- package/dist/bubble-chart.js +3 -2
- package/dist/bullet-chart.js +3 -2
- package/dist/bump-chart.d.ts +10 -0
- package/dist/bump-chart.js +11 -0
- package/dist/bump-chart.js.map +1 -0
- package/dist/candlestick-chart.js +3 -2
- package/dist/chord-ring.js +3 -2
- package/dist/chunk-2JWLXUY5.js +16 -0
- package/dist/chunk-2JWLXUY5.js.map +1 -0
- package/dist/{chunk-74ONV2GE.js → chunk-3BREGZ7C.js} +2 -2
- package/dist/chunk-3JXO2533.js +13 -0
- package/dist/chunk-3JXO2533.js.map +1 -0
- package/dist/{chunk-J5OOZDFF.js → chunk-3U3Z5U6H.js} +2 -2
- package/dist/chunk-3WUPWJP2.js +17 -0
- package/dist/chunk-3WUPWJP2.js.map +1 -0
- package/dist/chunk-43AIURD6.js +21 -0
- package/dist/chunk-43AIURD6.js.map +1 -0
- package/dist/chunk-4CDW7VWK.js +13 -0
- package/dist/chunk-4CDW7VWK.js.map +1 -0
- package/dist/chunk-4DG5NJWM.js +13 -0
- package/dist/chunk-4DG5NJWM.js.map +1 -0
- package/dist/chunk-5FKONGCL.js +16 -0
- package/dist/chunk-5FKONGCL.js.map +1 -0
- package/dist/chunk-5FYPFU6B.js +13 -0
- package/dist/chunk-5FYPFU6B.js.map +1 -0
- package/dist/chunk-67FND3TB.js +26 -0
- package/dist/chunk-67FND3TB.js.map +1 -0
- package/dist/{chunk-X2ACXB2U.js → chunk-6EFRIK7Q.js} +2 -2
- package/dist/{chunk-6KPX5HYV.js → chunk-6M4REUJE.js} +2 -2
- package/dist/chunk-6NXL245Z.js +16 -0
- package/dist/chunk-6NXL245Z.js.map +1 -0
- package/dist/chunk-6P5Z6IRH.js +13 -0
- package/dist/chunk-6P5Z6IRH.js.map +1 -0
- package/dist/{chunk-WOKDS6AK.js → chunk-6S6VKQ3E.js} +2 -2
- package/dist/chunk-7EH4NGBM.js +13 -0
- package/dist/chunk-7EH4NGBM.js.map +1 -0
- package/dist/{chunk-DTBEXYYC.js → chunk-AEU6UHVG.js} +2 -2
- package/dist/chunk-ART7CMBL.js +16 -0
- package/dist/chunk-ART7CMBL.js.map +1 -0
- package/dist/chunk-BJZOF2YZ.js +13 -0
- package/dist/chunk-BJZOF2YZ.js.map +1 -0
- package/dist/{chunk-A42AKCPS.js → chunk-C3NHZ4N5.js} +2 -2
- package/dist/chunk-CNRSQPRE.js +13 -0
- package/dist/chunk-CNRSQPRE.js.map +1 -0
- package/dist/chunk-CWFUPKSS.js +20 -0
- package/dist/chunk-CWFUPKSS.js.map +1 -0
- package/dist/chunk-DGZN27CF.js +13 -0
- package/dist/chunk-DGZN27CF.js.map +1 -0
- package/dist/chunk-DO4VUIUU.js +61 -0
- package/dist/chunk-DO4VUIUU.js.map +1 -0
- package/dist/chunk-DWXG7WLM.js +13 -0
- package/dist/chunk-DWXG7WLM.js.map +1 -0
- package/dist/chunk-E7OSOGUT.js +13 -0
- package/dist/chunk-E7OSOGUT.js.map +1 -0
- package/dist/{chunk-2NQ4DXLT.js → chunk-ESFN6FJY.js} +2 -2
- package/dist/{chunk-WNX4XCL6.js → chunk-FBJLA3P7.js} +11 -45
- package/dist/chunk-FBJLA3P7.js.map +1 -0
- package/dist/{chunk-NW2SQ6QW.js → chunk-FHX2HWN3.js} +2 -2
- package/dist/{chunk-KDQHOND7.js → chunk-FZ46YSJA.js} +2 -2
- package/dist/chunk-G7C4CH54.js +17 -0
- package/dist/chunk-G7C4CH54.js.map +1 -0
- package/dist/{chunk-GYUTG5R2.js → chunk-GSJYA76X.js} +2 -2
- package/dist/{chunk-TKQ2PQDW.js → chunk-GUKXFITX.js} +2 -2
- package/dist/{chunk-TAQOBBF7.js → chunk-I72JGA6Q.js} +2 -2
- package/dist/chunk-IHWEQR42.js +13 -0
- package/dist/chunk-IHWEQR42.js.map +1 -0
- package/dist/chunk-INHBSJZX.js +13 -0
- package/dist/chunk-INHBSJZX.js.map +1 -0
- package/dist/{chunk-H4NCK6RE.js → chunk-J3E6IUUQ.js} +2 -2
- package/dist/{chunk-4LS7B7CK.js → chunk-JPTK2AAT.js} +2 -2
- package/dist/{chunk-WHZ4ALRI.js → chunk-JWCVL7VE.js} +2 -2
- package/dist/chunk-K4YKDPDJ.js +13 -0
- package/dist/chunk-K4YKDPDJ.js.map +1 -0
- package/dist/chunk-KOWQNNTS.js +13 -0
- package/dist/chunk-KOWQNNTS.js.map +1 -0
- package/dist/{chunk-XWSCKTPG.js → chunk-KVOBNPDN.js} +2 -2
- package/dist/chunk-L65CMJRG.js +13 -0
- package/dist/chunk-L65CMJRG.js.map +1 -0
- package/dist/chunk-LPKOFXAA.js +13 -0
- package/dist/chunk-LPKOFXAA.js.map +1 -0
- package/dist/chunk-LSA5XU52.js +18 -0
- package/dist/chunk-LSA5XU52.js.map +1 -0
- package/dist/chunk-M3MZMHGS.js +13 -0
- package/dist/chunk-M3MZMHGS.js.map +1 -0
- package/dist/chunk-M56MDRNT.js +17 -0
- package/dist/chunk-M56MDRNT.js.map +1 -0
- package/dist/{chunk-FZMY6NWJ.js → chunk-MC7N4KQA.js} +2 -2
- package/dist/chunk-MS5BH6TU.js +13 -0
- package/dist/chunk-MS5BH6TU.js.map +1 -0
- package/dist/{chunk-UXVYCPFL.js → chunk-MYKZWY2E.js} +2 -2
- package/dist/{chunk-GBTH55AM.js → chunk-NA6K372D.js} +2 -2
- package/dist/chunk-NEOD2DSH.js +13 -0
- package/dist/chunk-NEOD2DSH.js.map +1 -0
- package/dist/{chunk-E5LIZKJT.js → chunk-NWK6VBCJ.js} +2 -2
- package/dist/{chunk-WICFKWEZ.js → chunk-NWRCFNYB.js} +2 -2
- package/dist/{chunk-CERHTEML.js → chunk-OAH7AEGE.js} +2 -2
- package/dist/chunk-OP2WE7MA.js +31 -0
- package/dist/chunk-OP2WE7MA.js.map +1 -0
- package/dist/chunk-OSDENB6W.js +13 -0
- package/dist/chunk-OSDENB6W.js.map +1 -0
- package/dist/{chunk-OFDVE64G.js → chunk-PRVJKYEQ.js} +2 -2
- package/dist/chunk-QRYI7BEO.js +21 -0
- package/dist/chunk-QRYI7BEO.js.map +1 -0
- package/dist/chunk-R7AKJYNB.js +13 -0
- package/dist/chunk-R7AKJYNB.js.map +1 -0
- package/dist/{chunk-P53KSCPE.js → chunk-RAATAHXZ.js} +2 -2
- package/dist/{chunk-FQHAHZBR.js → chunk-RIGQTEKW.js} +2 -2
- package/dist/{chunk-NHUVAE4Z.js → chunk-RMIIFPXA.js} +2 -2
- package/dist/chunk-SNWXRA2D.js +13 -0
- package/dist/chunk-SNWXRA2D.js.map +1 -0
- package/dist/chunk-SQ6GWXDK.js +48 -0
- package/dist/chunk-SQ6GWXDK.js.map +1 -0
- package/dist/chunk-T2IYBDCL.js +28 -0
- package/dist/chunk-T2IYBDCL.js.map +1 -0
- package/dist/chunk-TH6Q4E7C.js +21 -0
- package/dist/chunk-TH6Q4E7C.js.map +1 -0
- package/dist/{chunk-H3UH7F5S.js → chunk-TSQWTDBK.js} +2 -2
- package/dist/{chunk-7KED5KUU.js → chunk-U3LT444G.js} +2 -2
- package/dist/chunk-UC7ADKFU.js +13 -0
- package/dist/chunk-UC7ADKFU.js.map +1 -0
- package/dist/{chunk-JRAHTS5O.js → chunk-UOOHQAJU.js} +2 -2
- package/dist/{chunk-VISNFHPM.js → chunk-VKNGQ4NW.js} +2 -2
- package/dist/{chunk-ZKLVP4JE.js → chunk-WFO6BICV.js} +2 -2
- package/dist/chunk-WMU6O6KZ.js +21 -0
- package/dist/chunk-WMU6O6KZ.js.map +1 -0
- package/dist/chunk-WZZA2IGN.js +44 -0
- package/dist/chunk-WZZA2IGN.js.map +1 -0
- package/dist/{chunk-PWFDYIXV.js → chunk-X2F56RYM.js} +2 -2
- package/dist/chunk-XQTZOVFF.js +13 -0
- package/dist/chunk-XQTZOVFF.js.map +1 -0
- package/dist/chunk-Y4V5AZ32.js +13 -0
- package/dist/chunk-Y4V5AZ32.js.map +1 -0
- package/dist/chunk-YRRWP5HL.js +13 -0
- package/dist/chunk-YRRWP5HL.js.map +1 -0
- package/dist/chunk-ZBSCLF56.js +33 -0
- package/dist/chunk-ZBSCLF56.js.map +1 -0
- package/dist/chunk-ZOB6BH7H.js +21 -0
- package/dist/chunk-ZOB6BH7H.js.map +1 -0
- package/dist/composed-chart.js +3 -2
- package/dist/connected-scatter-chart.d.ts +10 -0
- package/dist/connected-scatter-chart.js +11 -0
- package/dist/connected-scatter-chart.js.map +1 -0
- package/dist/contour-chart.d.ts +10 -0
- package/dist/contour-chart.js +11 -0
- package/dist/contour-chart.js.map +1 -0
- package/dist/coxcomb-chart.js +3 -2
- package/dist/delaunay-chart.d.ts +10 -0
- package/dist/delaunay-chart.js +11 -0
- package/dist/delaunay-chart.js.map +1 -0
- package/dist/density-bin-chart.d.ts +10 -0
- package/dist/density-bin-chart.js +11 -0
- package/dist/density-bin-chart.js.map +1 -0
- package/dist/diverging-bar-chart.d.ts +10 -0
- package/dist/diverging-bar-chart.js +11 -0
- package/dist/diverging-bar-chart.js.map +1 -0
- package/dist/donut-chart.js +3 -2
- package/dist/drillable-C_86b56V.d.ts +7 -0
- package/dist/dumbbell-chart.d.ts +10 -0
- package/dist/dumbbell-chart.js +11 -0
- package/dist/dumbbell-chart.js.map +1 -0
- package/dist/ecdf-chart.d.ts +10 -0
- package/dist/ecdf-chart.js +11 -0
- package/dist/ecdf-chart.js.map +1 -0
- package/dist/error-bar-chart.d.ts +10 -0
- package/dist/error-bar-chart.js +11 -0
- package/dist/error-bar-chart.js.map +1 -0
- package/dist/funnel-chart.js +3 -2
- package/dist/gauge-arc.js +3 -2
- package/dist/heatmap-chart.js +3 -2
- package/dist/histogram-chart.d.ts +10 -0
- package/dist/histogram-chart.js +11 -0
- package/dist/histogram-chart.js.map +1 -0
- package/dist/index.d.ts +29 -1
- package/dist/index.js +145 -35
- package/dist/index.js.map +1 -1
- package/dist/interval-chart.d.ts +10 -0
- package/dist/interval-chart.js +11 -0
- package/dist/interval-chart.js.map +1 -0
- package/dist/kpi-card.js +3 -2
- package/dist/line-chart.js +3 -2
- package/dist/lollipop-chart.d.ts +10 -0
- package/dist/lollipop-chart.js +11 -0
- package/dist/lollipop-chart.js.map +1 -0
- package/dist/marimekko-chart.d.ts +10 -0
- package/dist/marimekko-chart.js +11 -0
- package/dist/marimekko-chart.js.map +1 -0
- package/dist/meter-chart.js +3 -2
- package/dist/network-chart.d.ts +10 -0
- package/dist/network-chart.js +11 -0
- package/dist/network-chart.js.map +1 -0
- package/dist/orbit-chart.js +3 -2
- package/dist/parallel-coordinates-chart.d.ts +10 -0
- package/dist/parallel-coordinates-chart.js +11 -0
- package/dist/parallel-coordinates-chart.js.map +1 -0
- package/dist/polar-bar-chart.js +3 -2
- package/dist/polar-line-chart.d.ts +10 -0
- package/dist/polar-line-chart.js +11 -0
- package/dist/polar-line-chart.js.map +1 -0
- package/dist/polar-scatter-chart.d.ts +10 -0
- package/dist/polar-scatter-chart.js +11 -0
- package/dist/polar-scatter-chart.js.map +1 -0
- package/dist/pyramid-chart.js +3 -2
- package/dist/radar-chart.js +3 -2
- package/dist/radial-arc-group.js +3 -2
- package/dist/radial-rings.js +3 -2
- package/dist/range-band-chart.js +3 -2
- package/dist/ridgeline-chart.d.ts +10 -0
- package/dist/ridgeline-chart.js +11 -0
- package/dist/ridgeline-chart.js.map +1 -0
- package/dist/sankey-chart.js +3 -2
- package/dist/scatter-chart.js +3 -2
- package/dist/server/beeswarm-chart.d.ts +19 -0
- package/dist/server/beeswarm-chart.js +11 -0
- package/dist/server/beeswarm-chart.js.map +1 -0
- package/dist/server/box-plot-chart.d.ts +19 -0
- package/dist/server/box-plot-chart.js +11 -0
- package/dist/server/box-plot-chart.js.map +1 -0
- package/dist/server/bump-chart.d.ts +19 -0
- package/dist/server/bump-chart.js +11 -0
- package/dist/server/bump-chart.js.map +1 -0
- package/dist/server/connected-scatter-chart.d.ts +19 -0
- package/dist/server/connected-scatter-chart.js +11 -0
- package/dist/server/connected-scatter-chart.js.map +1 -0
- package/dist/server/contour-chart.d.ts +19 -0
- package/dist/server/contour-chart.js +11 -0
- package/dist/server/contour-chart.js.map +1 -0
- package/dist/server/delaunay-chart.d.ts +19 -0
- package/dist/server/delaunay-chart.js +11 -0
- package/dist/server/delaunay-chart.js.map +1 -0
- package/dist/server/density-bin-chart.d.ts +19 -0
- package/dist/server/density-bin-chart.js +11 -0
- package/dist/server/density-bin-chart.js.map +1 -0
- package/dist/server/diverging-bar-chart.d.ts +19 -0
- package/dist/server/diverging-bar-chart.js +11 -0
- package/dist/server/diverging-bar-chart.js.map +1 -0
- package/dist/server/dumbbell-chart.d.ts +19 -0
- package/dist/server/dumbbell-chart.js +11 -0
- package/dist/server/dumbbell-chart.js.map +1 -0
- package/dist/server/ecdf-chart.d.ts +19 -0
- package/dist/server/ecdf-chart.js +11 -0
- package/dist/server/ecdf-chart.js.map +1 -0
- package/dist/server/error-bar-chart.d.ts +19 -0
- package/dist/server/error-bar-chart.js +11 -0
- package/dist/server/error-bar-chart.js.map +1 -0
- package/dist/server/histogram-chart.d.ts +19 -0
- package/dist/server/histogram-chart.js +11 -0
- package/dist/server/histogram-chart.js.map +1 -0
- package/dist/server/interval-chart.d.ts +19 -0
- package/dist/server/interval-chart.js +11 -0
- package/dist/server/interval-chart.js.map +1 -0
- package/dist/server/lollipop-chart.d.ts +19 -0
- package/dist/server/lollipop-chart.js +11 -0
- package/dist/server/lollipop-chart.js.map +1 -0
- package/dist/server/marimekko-chart.d.ts +19 -0
- package/dist/server/marimekko-chart.js +11 -0
- package/dist/server/marimekko-chart.js.map +1 -0
- package/dist/server/network-chart.d.ts +19 -0
- package/dist/server/network-chart.js +11 -0
- package/dist/server/network-chart.js.map +1 -0
- package/dist/server/parallel-coordinates-chart.d.ts +19 -0
- package/dist/server/parallel-coordinates-chart.js +11 -0
- package/dist/server/parallel-coordinates-chart.js.map +1 -0
- package/dist/server/polar-line-chart.d.ts +19 -0
- package/dist/server/polar-line-chart.js +11 -0
- package/dist/server/polar-line-chart.js.map +1 -0
- package/dist/server/polar-scatter-chart.d.ts +19 -0
- package/dist/server/polar-scatter-chart.js +11 -0
- package/dist/server/polar-scatter-chart.js.map +1 -0
- package/dist/server/ridgeline-chart.d.ts +19 -0
- package/dist/server/ridgeline-chart.js +11 -0
- package/dist/server/ridgeline-chart.js.map +1 -0
- package/dist/server/slope-chart.d.ts +19 -0
- package/dist/server/slope-chart.js +11 -0
- package/dist/server/slope-chart.js.map +1 -0
- package/dist/server/squarified-treemap.d.ts +19 -0
- package/dist/server/squarified-treemap.js +11 -0
- package/dist/server/squarified-treemap.js.map +1 -0
- package/dist/server/sunburst-chart.d.ts +19 -0
- package/dist/server/sunburst-chart.js +11 -0
- package/dist/server/sunburst-chart.js.map +1 -0
- package/dist/server/tree-chart.d.ts +19 -0
- package/dist/server/tree-chart.js +11 -0
- package/dist/server/tree-chart.js.map +1 -0
- package/dist/server/ui/alert.d.ts +17 -0
- package/dist/server/ui/alert.js +13 -0
- package/dist/server/ui/alert.js.map +1 -0
- package/dist/server/ui/badge.d.ts +15 -0
- package/dist/server/ui/badge.js +14 -0
- package/dist/server/ui/badge.js.map +1 -0
- package/dist/server/ui/card.d.ts +18 -0
- package/dist/server/ui/card.js +14 -0
- package/dist/server/ui/card.js.map +1 -0
- package/dist/server/ui/divider.d.ts +12 -0
- package/dist/server/ui/divider.js +13 -0
- package/dist/server/ui/divider.js.map +1 -0
- package/dist/server/ui/progress.d.ts +14 -0
- package/dist/server/ui/progress.js +13 -0
- package/dist/server/ui/progress.js.map +1 -0
- package/dist/server/ui/skeleton.d.ts +14 -0
- package/dist/server/ui/skeleton.js +13 -0
- package/dist/server/ui/skeleton.js.map +1 -0
- package/dist/server/ui/steps.d.ts +14 -0
- package/dist/server/ui/steps.js +13 -0
- package/dist/server/ui/steps.js.map +1 -0
- package/dist/server/ui/tag.d.ts +17 -0
- package/dist/server/ui/tag.js +14 -0
- package/dist/server/ui/tag.js.map +1 -0
- package/dist/server/vector-field-chart.d.ts +19 -0
- package/dist/server/vector-field-chart.js +11 -0
- package/dist/server/vector-field-chart.js.map +1 -0
- package/dist/server/violin-chart.d.ts +19 -0
- package/dist/server/violin-chart.js +11 -0
- package/dist/server/violin-chart.js.map +1 -0
- package/dist/server/waffle-chart.d.ts +19 -0
- package/dist/server/waffle-chart.js +11 -0
- package/dist/server/waffle-chart.js.map +1 -0
- package/dist/slope-chart.d.ts +10 -0
- package/dist/slope-chart.js +11 -0
- package/dist/slope-chart.js.map +1 -0
- package/dist/sparkline-rows.js +3 -2
- package/dist/squarified-treemap.d.ts +11 -0
- package/dist/squarified-treemap.js +12 -0
- package/dist/squarified-treemap.js.map +1 -0
- package/dist/stacked-bar-chart.js +3 -2
- package/dist/step-chart.js +3 -2
- package/dist/stream-chart.js +3 -2
- package/dist/sunburst-chart.d.ts +11 -0
- package/dist/sunburst-chart.js +12 -0
- package/dist/sunburst-chart.js.map +1 -0
- package/dist/tree-chart.d.ts +10 -0
- package/dist/tree-chart.js +11 -0
- package/dist/tree-chart.js.map +1 -0
- package/dist/treemap-chart.js +3 -2
- package/dist/ui/alert.d.ts +14 -0
- package/dist/ui/alert.js +10 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/badge.d.ts +12 -0
- package/dist/ui/badge.js +10 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/button.d.ts +14 -0
- package/dist/ui/button.js +10 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/card.d.ts +14 -0
- package/dist/ui/card.js +10 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/checkbox.d.ts +14 -0
- package/dist/ui/checkbox.js +10 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/divider.d.ts +11 -0
- package/dist/ui/divider.js +10 -0
- package/dist/ui/divider.js.map +1 -0
- package/dist/ui/input.d.ts +19 -0
- package/dist/ui/input.js +10 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/progress.d.ts +11 -0
- package/dist/ui/progress.js +10 -0
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/radio-group.d.ts +16 -0
- package/dist/ui/radio-group.js +10 -0
- package/dist/ui/radio-group.js.map +1 -0
- package/dist/ui/rate.d.ts +15 -0
- package/dist/ui/rate.js +10 -0
- package/dist/ui/rate.js.map +1 -0
- package/dist/ui/segmented.d.ts +16 -0
- package/dist/ui/segmented.js +10 -0
- package/dist/ui/segmented.js.map +1 -0
- package/dist/ui/skeleton.d.ts +11 -0
- package/dist/ui/skeleton.js +10 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/slider.d.ts +15 -0
- package/dist/ui/slider.js +10 -0
- package/dist/ui/slider.js.map +1 -0
- package/dist/ui/steps.d.ts +11 -0
- package/dist/ui/steps.js +10 -0
- package/dist/ui/steps.js.map +1 -0
- package/dist/ui/switch.d.ts +14 -0
- package/dist/ui/switch.js +10 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/tabs.d.ts +25 -0
- package/dist/ui/tabs.js +12 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/tag.d.ts +14 -0
- package/dist/ui/tag.js +10 -0
- package/dist/ui/tag.js.map +1 -0
- package/dist/ui.d.ts +21 -0
- package/dist/ui.js +76 -0
- package/dist/ui.js.map +1 -0
- package/dist/vector-field-chart.d.ts +10 -0
- package/dist/vector-field-chart.js +11 -0
- package/dist/vector-field-chart.js.map +1 -0
- package/dist/violin-chart.d.ts +10 -0
- package/dist/violin-chart.js +11 -0
- package/dist/violin-chart.js.map +1 -0
- package/dist/volvelle-chart.js +3 -2
- package/dist/waffle-chart.d.ts +10 -0
- package/dist/waffle-chart.js +11 -0
- package/dist/waffle-chart.js.map +1 -0
- package/dist/waterfall-chart.js +3 -2
- package/dist/wind-rose.js +3 -2
- package/package.json +483 -3
- package/dist/chunk-WNX4XCL6.js.map +0 -1
- /package/dist/{chunk-74ONV2GE.js.map → chunk-3BREGZ7C.js.map} +0 -0
- /package/dist/{chunk-J5OOZDFF.js.map → chunk-3U3Z5U6H.js.map} +0 -0
- /package/dist/{chunk-X2ACXB2U.js.map → chunk-6EFRIK7Q.js.map} +0 -0
- /package/dist/{chunk-6KPX5HYV.js.map → chunk-6M4REUJE.js.map} +0 -0
- /package/dist/{chunk-WOKDS6AK.js.map → chunk-6S6VKQ3E.js.map} +0 -0
- /package/dist/{chunk-DTBEXYYC.js.map → chunk-AEU6UHVG.js.map} +0 -0
- /package/dist/{chunk-A42AKCPS.js.map → chunk-C3NHZ4N5.js.map} +0 -0
- /package/dist/{chunk-2NQ4DXLT.js.map → chunk-ESFN6FJY.js.map} +0 -0
- /package/dist/{chunk-NW2SQ6QW.js.map → chunk-FHX2HWN3.js.map} +0 -0
- /package/dist/{chunk-KDQHOND7.js.map → chunk-FZ46YSJA.js.map} +0 -0
- /package/dist/{chunk-GYUTG5R2.js.map → chunk-GSJYA76X.js.map} +0 -0
- /package/dist/{chunk-TKQ2PQDW.js.map → chunk-GUKXFITX.js.map} +0 -0
- /package/dist/{chunk-TAQOBBF7.js.map → chunk-I72JGA6Q.js.map} +0 -0
- /package/dist/{chunk-H4NCK6RE.js.map → chunk-J3E6IUUQ.js.map} +0 -0
- /package/dist/{chunk-4LS7B7CK.js.map → chunk-JPTK2AAT.js.map} +0 -0
- /package/dist/{chunk-WHZ4ALRI.js.map → chunk-JWCVL7VE.js.map} +0 -0
- /package/dist/{chunk-XWSCKTPG.js.map → chunk-KVOBNPDN.js.map} +0 -0
- /package/dist/{chunk-FZMY6NWJ.js.map → chunk-MC7N4KQA.js.map} +0 -0
- /package/dist/{chunk-UXVYCPFL.js.map → chunk-MYKZWY2E.js.map} +0 -0
- /package/dist/{chunk-GBTH55AM.js.map → chunk-NA6K372D.js.map} +0 -0
- /package/dist/{chunk-E5LIZKJT.js.map → chunk-NWK6VBCJ.js.map} +0 -0
- /package/dist/{chunk-WICFKWEZ.js.map → chunk-NWRCFNYB.js.map} +0 -0
- /package/dist/{chunk-CERHTEML.js.map → chunk-OAH7AEGE.js.map} +0 -0
- /package/dist/{chunk-OFDVE64G.js.map → chunk-PRVJKYEQ.js.map} +0 -0
- /package/dist/{chunk-P53KSCPE.js.map → chunk-RAATAHXZ.js.map} +0 -0
- /package/dist/{chunk-FQHAHZBR.js.map → chunk-RIGQTEKW.js.map} +0 -0
- /package/dist/{chunk-NHUVAE4Z.js.map → chunk-RMIIFPXA.js.map} +0 -0
- /package/dist/{chunk-H3UH7F5S.js.map → chunk-TSQWTDBK.js.map} +0 -0
- /package/dist/{chunk-7KED5KUU.js.map → chunk-U3LT444G.js.map} +0 -0
- /package/dist/{chunk-JRAHTS5O.js.map → chunk-UOOHQAJU.js.map} +0 -0
- /package/dist/{chunk-VISNFHPM.js.map → chunk-VKNGQ4NW.js.map} +0 -0
- /package/dist/{chunk-ZKLVP4JE.js.map → chunk-WFO6BICV.js.map} +0 -0
- /package/dist/{chunk-PWFDYIXV.js.map → chunk-X2F56RYM.js.map} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
|
+
|
|
6
|
+
// src/vector-field-chart.tsx
|
|
7
|
+
import { vectorFieldChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var VectorFieldChart = createClientChart(vectorFieldChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
VectorFieldChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-LPKOFXAA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/vector-field-chart.tsx"],"sourcesContent":["import { vectorFieldChart } from '@silverpoint/core/catalog';\nimport type { VectorFieldChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { VectorFieldChartProps } from '@silverpoint/core';\n\nexport type ClientVectorFieldChartProps = VectorFieldChartProps & InteractionProps;\n\n/** `VectorFieldChart` (REQ-425): an arrow per grid point (API Spec §7.3). */\nexport const VectorFieldChart = createClientChart<VectorFieldChartProps>(vectorFieldChart);\n"],"mappings":";;;;;;AAAA,SAAS,wBAAwB;AAU1B,IAAM,mBAAmB,kBAAyC,gBAAgB;","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
textOf,
|
|
5
|
+
useUi
|
|
6
|
+
} from "./chunk-DO4VUIUU.js";
|
|
7
|
+
|
|
8
|
+
// src/ui/tag.tsx
|
|
9
|
+
import { uiTagView } from "@silverpoint/core/ui";
|
|
10
|
+
function SpTag({ children, onClose, dashboardCell, ...props }) {
|
|
11
|
+
const view = uiTagView(props, useUi(props, dashboardCell), { text: textOf(children) });
|
|
12
|
+
return renderUi(view, { close: { onClick: onClose }, slots: { content: children } });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
SpTag
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=chunk-LSA5XU52.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/tag.tsx"],"sourcesContent":["import { uiTagView, type SpTagProps as CoreProps } from '@silverpoint/core/ui';\nimport type { MouseEvent, ReactElement, ReactNode } from 'react';\nimport { textOf, useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpTagProps extends CoreProps, UiCellProps {\n readonly children?: ReactNode;\n /** From the close button of a closable tag. */\n readonly onClose?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/** `SpTag`: framed and toned; closable, a native close button (REQ-308). */\nexport function SpTag({ children, onClose, dashboardCell, ...props }: SpTagProps) {\n const view = uiTagView(props, useUi(props, dashboardCell), { text: textOf(children) });\n return renderUi(view, { close: { onClick: onClose }, slots: { content: children } }) as ReactElement;\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,iBAA+C;AAYjD,SAAS,MAAM,EAAE,UAAU,SAAS,eAAe,GAAG,MAAM,GAAe;AAChF,QAAM,OAAO,UAAU,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,MAAM,OAAO,QAAQ,EAAE,CAAC;AACrF,SAAO,SAAS,MAAM,EAAE,OAAO,EAAE,SAAS,QAAQ,GAAG,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;AACrF;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
|
+
|
|
6
|
+
// src/interval-chart.tsx
|
|
7
|
+
import { intervalChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var IntervalChart = createClientChart(intervalChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
IntervalChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-M3MZMHGS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/interval-chart.tsx"],"sourcesContent":["import { intervalChart } from '@silverpoint/core/catalog';\nimport type { IntervalChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { IntervalChartProps } from '@silverpoint/core';\n\nexport type ClientIntervalChartProps = IntervalChartProps & InteractionProps;\n\n/** `IntervalChart` (REQ-411): floating bars from start to end on lanes (API Spec §7.3). */\nexport const IntervalChart = createClientChart<IntervalChartProps>(intervalChart);\n"],"mappings":";;;;;;AAAA,SAAS,qBAAqB;AAUvB,IAAM,gBAAgB,kBAAsC,aAAa;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi
|
|
5
|
+
} from "./chunk-DO4VUIUU.js";
|
|
6
|
+
|
|
7
|
+
// src/ui/alert.tsx
|
|
8
|
+
import { uiAlertView } from "@silverpoint/core/ui";
|
|
9
|
+
function SpAlert({ children, onClose, dashboardCell, ...props }) {
|
|
10
|
+
const view = uiAlertView(props, useUi(props, dashboardCell), { closable: props.closable === true });
|
|
11
|
+
return renderUi(view, { close: { onClick: onClose }, slots: { content: children } });
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
SpAlert
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=chunk-M56MDRNT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/alert.tsx"],"sourcesContent":["import { uiAlertView, type SpAlertProps as CoreProps } from '@silverpoint/core/ui';\nimport type { MouseEvent, ReactElement, ReactNode } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpAlertProps extends CoreProps, UiCellProps {\n readonly children?: ReactNode;\n /** From the close button of a closable alert. */\n readonly onClose?: (event: MouseEvent<HTMLButtonElement>) => void;\n}\n\n/** `SpAlert`: `alert` or `status` by kind (REQ-318); closable, a native close button. */\nexport function SpAlert({ children, onClose, dashboardCell, ...props }: SpAlertProps) {\n const view = uiAlertView(props, useUi(props, dashboardCell), { closable: props.closable === true });\n return renderUi(view, { close: { onClick: onClose }, slots: { content: children } }) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,mBAAmD;AAYrD,SAAS,QAAQ,EAAE,UAAU,SAAS,eAAe,GAAG,MAAM,GAAiB;AACpF,QAAM,OAAO,YAAY,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,UAAU,MAAM,aAAa,KAAK,CAAC;AAClG,SAAO,SAAS,MAAM,EAAE,OAAO,EAAE,SAAS,QAAQ,GAAG,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;AACrF;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/treemap-chart.tsx
|
|
7
7
|
import { treemapChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var TreemapChart = createClientChart(treemapChart);
|
|
|
10
10
|
export {
|
|
11
11
|
TreemapChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-MC7N4KQA.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
|
+
|
|
6
|
+
// src/histogram-chart.tsx
|
|
7
|
+
import { histogramChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var HistogramChart = createClientChart(histogramChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
HistogramChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-MS5BH6TU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/histogram-chart.tsx"],"sourcesContent":["import { histogramChart } from '@silverpoint/core/catalog';\nimport type { HistogramChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { HistogramChartProps } from '@silverpoint/core';\n\nexport type ClientHistogramChartProps = HistogramChartProps & InteractionProps;\n\n/** `HistogramChart` (REQ-400): raw observations binned in the core (API Spec §7.3). */\nexport const HistogramChart = createClientChart<HistogramChartProps>(histogramChart);\n"],"mappings":";;;;;;AAAA,SAAS,sBAAsB;AAUxB,IAAM,iBAAiB,kBAAuC,cAAc;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/wind-rose.tsx
|
|
7
7
|
import { windRose } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var WindRose = createClientChart(windRose);
|
|
|
10
10
|
export {
|
|
11
11
|
WindRose
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-MYKZWY2E.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/polar-bar-chart.tsx
|
|
7
7
|
import { polarBarChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var PolarBarChart = createClientChart(polarBarChart);
|
|
|
10
10
|
export {
|
|
11
11
|
PolarBarChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-NA6K372D.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
|
+
|
|
6
|
+
// src/dumbbell-chart.tsx
|
|
7
|
+
import { dumbbellChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var DumbbellChart = createClientChart(dumbbellChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
DumbbellChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-NEOD2DSH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/dumbbell-chart.tsx"],"sourcesContent":["import { dumbbellChart } from '@silverpoint/core/catalog';\nimport type { DumbbellChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { DumbbellChartProps } from '@silverpoint/core';\n\nexport type ClientDumbbellChartProps = DumbbellChartProps & InteractionProps;\n\n/** `DumbbellChart` (REQ-407): two values per category joined by a segment (API Spec §7.3). */\nexport const DumbbellChart = createClientChart<DumbbellChartProps>(dumbbellChart);\n"],"mappings":";;;;;;AAAA,SAAS,qBAAqB;AAUvB,IAAM,gBAAgB,kBAAsC,aAAa;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/sparkline-rows.tsx
|
|
7
7
|
import { sparklineRows } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var SparklineRows = createClientChart(sparklineRows);
|
|
|
10
10
|
export {
|
|
11
11
|
SparklineRows
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-NWK6VBCJ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/range-band-chart.tsx
|
|
7
7
|
import { rangeBandChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var RangeBandChart = createClientChart(rangeBandChart);
|
|
|
10
10
|
export {
|
|
11
11
|
RangeBandChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-NWRCFNYB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/radial-arc-group.tsx
|
|
7
7
|
import { radialArcGroup } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var RadialArcGroup = createClientChart(radialArcGroup);
|
|
|
10
10
|
export {
|
|
11
11
|
RadialArcGroup
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-OAH7AEGE.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi,
|
|
5
|
+
useValue
|
|
6
|
+
} from "./chunk-DO4VUIUU.js";
|
|
7
|
+
|
|
8
|
+
// src/ui/tabs.tsx
|
|
9
|
+
import { uiItems, uiRovingFocus, uiSelectedKey, uiTabPanelView, uiTabsView } from "@silverpoint/core/ui";
|
|
10
|
+
import { createContext, useContext } from "react";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
var TabsContext = createContext({ value: null });
|
|
13
|
+
function SpTabs({ value, defaultValue, onChange, children, dashboardCell, ...props }) {
|
|
14
|
+
const [current, set] = useValue(value, defaultValue, onChange);
|
|
15
|
+
const view = uiTabsView(props, useUi(props, dashboardCell), { value: current ?? null });
|
|
16
|
+
const selected = uiSelectedKey(uiItems(props.items, "SpTabs"), current, "first");
|
|
17
|
+
const native = { onClick: (event) => set(String(event.currentTarget.dataset.key)) };
|
|
18
|
+
const orientation = props.orientation ?? "horizontal";
|
|
19
|
+
const onKeyDown = (event) => uiRovingFocus(event, event.currentTarget, '[role="tab"]', orientation, props.activation !== "manual");
|
|
20
|
+
const content = /* @__PURE__ */ jsx(TabsContext.Provider, { value: { id: props.id, value: selected }, children });
|
|
21
|
+
return renderUi(view, { root: { onKeyDown }, native, slots: { content } });
|
|
22
|
+
}
|
|
23
|
+
function SpTabPanel({ value, children }) {
|
|
24
|
+
return renderUi(uiTabPanelView({ value }, useContext(TabsContext)), { slots: { content: children } });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
SpTabs,
|
|
29
|
+
SpTabPanel
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=chunk-OP2WE7MA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/tabs.tsx"],"sourcesContent":["import { uiItems, uiRovingFocus, uiSelectedKey, uiTabPanelView, uiTabsView, type SpTabsProps as CoreProps } from '@silverpoint/core/ui';\nimport { createContext, useContext, type KeyboardEvent, type MouseEvent, type ReactElement, type ReactNode } from 'react';\nimport { useUi, useValue, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpTabsProps extends CoreProps, UiCellProps {\n /** Controlled key; an unknown one shows the first enabled tab. */\n readonly value?: string;\n readonly defaultValue?: string;\n /** The key selected, not the DOM event (REQ-322). */\n readonly onChange?: (value: string) => void;\n /** `SpTabPanel` elements. */\n readonly children?: ReactNode;\n}\n\n/** What a panel reads from its tabs: their id, for the ids that relate them, and the selected key. */\nconst TabsContext = createContext<{ readonly id?: string; readonly value: string | null }>({ value: null });\n\n/** `SpTabs`: a tablist of native buttons, one tab stop; arrows through the core, `activation` as APG (REQ-315). */\nexport function SpTabs({ value, defaultValue, onChange, children, dashboardCell, ...props }: SpTabsProps) {\n const [current, set] = useValue<string | undefined>(value, defaultValue, onChange as (next: string | undefined) => void);\n const view = uiTabsView(props, useUi(props, dashboardCell), { value: current ?? null });\n const selected = uiSelectedKey(uiItems(props.items, 'SpTabs'), current, 'first');\n const native = { onClick: (event: MouseEvent<HTMLButtonElement>) => set(String(event.currentTarget.dataset.key)) };\n const orientation = props.orientation ?? 'horizontal';\n const onKeyDown = (event: KeyboardEvent<HTMLElement>) =>\n uiRovingFocus(event, event.currentTarget, '[role=\"tab\"]', orientation, props.activation !== 'manual');\n const content = <TabsContext.Provider value={{ id: props.id, value: selected }}>{children}</TabsContext.Provider>;\n return renderUi(view, { root: { onKeyDown }, native, slots: { content } }) as ReactElement;\n}\n\nexport interface SpTabPanelProps {\n /** The key of the tab that shows this panel. */\n readonly value: string;\n readonly children?: ReactNode;\n}\n\n/** `SpTabPanel`: a `tabpanel` labelled by its tab, hidden unless its tab is selected. */\nexport function SpTabPanel({ value, children }: SpTabPanelProps) {\n return renderUi(uiTabPanelView({ value }, useContext(TabsContext)), { slots: { content: children } }) as ReactElement;\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,SAAS,eAAe,eAAe,gBAAgB,kBAAiD;AACjH,SAAS,eAAe,kBAA0F;AA0BhG;AAXlB,IAAM,cAAc,cAAuE,EAAE,OAAO,KAAK,CAAC;AAGnG,SAAS,OAAO,EAAE,OAAO,cAAc,UAAU,UAAU,eAAe,GAAG,MAAM,GAAgB;AACxG,QAAM,CAAC,SAAS,GAAG,IAAI,SAA6B,OAAO,cAAc,QAA8C;AACvH,QAAM,OAAO,WAAW,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,OAAO,WAAW,KAAK,CAAC;AACtF,QAAM,WAAW,cAAc,QAAQ,MAAM,OAAO,QAAQ,GAAG,SAAS,OAAO;AAC/E,QAAM,SAAS,EAAE,SAAS,CAAC,UAAyC,IAAI,OAAO,MAAM,cAAc,QAAQ,GAAG,CAAC,EAAE;AACjH,QAAM,cAAc,MAAM,eAAe;AACzC,QAAM,YAAY,CAAC,UACjB,cAAc,OAAO,MAAM,eAAe,gBAAgB,aAAa,MAAM,eAAe,QAAQ;AACtG,QAAM,UAAU,oBAAC,YAAY,UAAZ,EAAqB,OAAO,EAAE,IAAI,MAAM,IAAI,OAAO,SAAS,GAAI,UAAS;AAC1F,SAAO,SAAS,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,QAAQ,OAAO,EAAE,QAAQ,EAAE,CAAC;AAC3E;AASO,SAAS,WAAW,EAAE,OAAO,SAAS,GAAoB;AAC/D,SAAO,SAAS,eAAe,EAAE,MAAM,GAAG,WAAW,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;AACtG;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
|
+
|
|
6
|
+
// src/polar-line-chart.tsx
|
|
7
|
+
import { polarLineChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var PolarLineChart = createClientChart(polarLineChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
PolarLineChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-OSDENB6W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/polar-line-chart.tsx"],"sourcesContent":["import { polarLineChart } from '@silverpoint/core/catalog';\nimport type { PolarLineChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { PolarLineChartProps } from '@silverpoint/core';\n\nexport type ClientPolarLineChartProps = PolarLineChartProps & InteractionProps;\n\n/** `PolarLineChart` (REQ-420): a line over angle and radius (API Spec §7.3). */\nexport const PolarLineChart = createClientChart<PolarLineChartProps>(polarLineChart);\n"],"mappings":";;;;;;AAAA,SAAS,sBAAsB;AAUxB,IAAM,iBAAiB,kBAAuC,cAAc;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/radar-chart.tsx
|
|
7
7
|
import { radarChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var RadarChart = createClientChart(radarChart);
|
|
|
10
10
|
export {
|
|
11
11
|
RadarChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-PRVJKYEQ.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi,
|
|
5
|
+
useValue
|
|
6
|
+
} from "./chunk-DO4VUIUU.js";
|
|
7
|
+
|
|
8
|
+
// src/ui/input.tsx
|
|
9
|
+
import { uiInputView } from "@silverpoint/core/ui";
|
|
10
|
+
import { forwardRef } from "react";
|
|
11
|
+
var SpInput = forwardRef(function SpInput2({ value, defaultValue, onChange, prefix, suffix, dashboardCell, ...props }, ref) {
|
|
12
|
+
const [current, set] = useValue(value, defaultValue ?? "", onChange);
|
|
13
|
+
const view = uiInputView(props, useUi(props, dashboardCell), { value: current, prefix: prefix != null, suffix: suffix != null });
|
|
14
|
+
const native = { ref, value: current, onChange: (event) => set(event.target.value) };
|
|
15
|
+
return renderUi(view, { native, slots: { prefix, suffix } });
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
SpInput
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-QRYI7BEO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/input.tsx"],"sourcesContent":["import { uiInputView, type SpInputProps as CoreProps } from '@silverpoint/core/ui';\nimport { forwardRef, type ChangeEvent, type ReactNode, type ReactElement } from 'react';\nimport { useUi, useValue, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpInputProps extends CoreProps, UiCellProps {\n /** Controlled value. */\n readonly value?: string;\n readonly defaultValue?: string;\n /** The new value, not the DOM event (REQ-322). */\n readonly onChange?: (value: string) => void;\n readonly prefix?: ReactNode;\n readonly suffix?: ReactNode;\n}\n\n/** `SpInput`: a native `<input>` in a framed box; its ref is the input (REQ-314, REQ-334). */\nexport const SpInput = forwardRef<HTMLInputElement, SpInputProps>(function SpInput(\n { value, defaultValue, onChange, prefix, suffix, dashboardCell, ...props },\n ref,\n) {\n const [current, set] = useValue(value, defaultValue ?? '', onChange);\n const view = uiInputView(props, useUi(props, dashboardCell), { value: current, prefix: prefix != null, suffix: suffix != null });\n const native = { ref, value: current, onChange: (event: ChangeEvent<HTMLInputElement>) => set(event.target.value) };\n return renderUi(view, { native, slots: { prefix, suffix } }) as ReactElement;\n});\n"],"mappings":";;;;;;;;AAAA,SAAS,mBAAmD;AAC5D,SAAS,kBAAuE;AAezE,IAAM,UAAU,WAA2C,SAASA,SACzE,EAAE,OAAO,cAAc,UAAU,QAAQ,QAAQ,eAAe,GAAG,MAAM,GACzE,KACA;AACA,QAAM,CAAC,SAAS,GAAG,IAAI,SAAS,OAAO,gBAAgB,IAAI,QAAQ;AACnE,QAAM,OAAO,YAAY,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,OAAO,SAAS,QAAQ,UAAU,MAAM,QAAQ,UAAU,KAAK,CAAC;AAC/H,QAAM,SAAS,EAAE,KAAK,OAAO,SAAS,UAAU,CAAC,UAAyC,IAAI,MAAM,OAAO,KAAK,EAAE;AAClH,SAAO,SAAS,MAAM,EAAE,QAAQ,OAAO,EAAE,QAAQ,OAAO,EAAE,CAAC;AAC7D,CAAC;","names":["SpInput"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
|
+
|
|
6
|
+
// src/contour-chart.tsx
|
|
7
|
+
import { contourChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var ContourChart = createClientChart(contourChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
ContourChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-R7AKJYNB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/contour-chart.tsx"],"sourcesContent":["import { contourChart } from '@silverpoint/core/catalog';\nimport type { ContourChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { ContourChartProps } from '@silverpoint/core';\n\nexport type ClientContourChartProps = ContourChartProps & InteractionProps;\n\n/** `ContourChart` (REQ-423): iso-lines and filled bands of a density or a grid (API Spec §7.3). */\nexport const ContourChart = createClientChart<ContourChartProps>(contourChart);\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAUtB,IAAM,eAAe,kBAAqC,YAAY;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/sankey-chart.tsx
|
|
7
7
|
import { sankeyChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var SankeyChart = createClientChart(sankeyChart);
|
|
|
10
10
|
export {
|
|
11
11
|
SankeyChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-RAATAHXZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/funnel-chart.tsx
|
|
7
7
|
import { funnelChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var FunnelChart = createClientChart(funnelChart);
|
|
|
10
10
|
export {
|
|
11
11
|
FunnelChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-RIGQTEKW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/coxcomb-chart.tsx
|
|
7
7
|
import { coxcombChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var CoxcombChart = createClientChart(coxcombChart);
|
|
|
10
10
|
export {
|
|
11
11
|
CoxcombChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-RMIIFPXA.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
|
+
|
|
6
|
+
// src/slope-chart.tsx
|
|
7
|
+
import { slopeChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var SlopeChart = createClientChart(slopeChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
SlopeChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-SNWXRA2D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/slope-chart.tsx"],"sourcesContent":["import { slopeChart } from '@silverpoint/core/catalog';\nimport type { SlopeChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { SlopeChartProps } from '@silverpoint/core';\n\nexport type ClientSlopeChartProps = SlopeChartProps & InteractionProps;\n\n/** `SlopeChart` (REQ-408): two period axes, one segment per category (API Spec §7.3). */\nexport const SlopeChart = createClientChart<SlopeChartProps>(slopeChart);\n"],"mappings":";;;;;;AAAA,SAAS,kBAAkB;AAUpB,IAAM,aAAa,kBAAmC,UAAU;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// src/context.ts
|
|
4
|
+
import { createContext } from "react";
|
|
5
|
+
var SilverpointContext = createContext({});
|
|
6
|
+
|
|
7
|
+
// src/environment.ts
|
|
8
|
+
import { checkTypeface, FORCED_PRECISION_QUERY } from "@silverpoint/core";
|
|
9
|
+
import { useEffect, useState } from "react";
|
|
10
|
+
function useForcedPrecision() {
|
|
11
|
+
const [forced, setForced] = useState(false);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (typeof matchMedia !== "function") return;
|
|
14
|
+
const query = matchMedia(FORCED_PRECISION_QUERY);
|
|
15
|
+
const update = () => setForced(query.matches);
|
|
16
|
+
update();
|
|
17
|
+
query.addEventListener?.("change", update);
|
|
18
|
+
return () => query.removeEventListener?.("change", update);
|
|
19
|
+
}, []);
|
|
20
|
+
return forced;
|
|
21
|
+
}
|
|
22
|
+
function useMeasuredWidth(ref, enabled) {
|
|
23
|
+
const [width, setWidth] = useState(void 0);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
const element = ref.current;
|
|
26
|
+
if (!enabled || !element || typeof ResizeObserver !== "function") return;
|
|
27
|
+
const observer = new ResizeObserver((entries) => {
|
|
28
|
+
const entry = entries[0];
|
|
29
|
+
if (entry) setWidth(entry.contentRect.width);
|
|
30
|
+
});
|
|
31
|
+
observer.observe(element);
|
|
32
|
+
return () => observer.disconnect();
|
|
33
|
+
}, [ref, enabled]);
|
|
34
|
+
return width;
|
|
35
|
+
}
|
|
36
|
+
function useTypefaceCheck(chart) {
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (typeof document !== "undefined" && document.fonts) void checkTypeface(document.fonts, chart);
|
|
39
|
+
}, [chart]);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
SilverpointContext,
|
|
44
|
+
useForcedPrecision,
|
|
45
|
+
useMeasuredWidth,
|
|
46
|
+
useTypefaceCheck
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=chunk-SQ6GWXDK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/context.ts","../src/environment.ts"],"sourcesContent":["import type { ProviderConfig } from '@silverpoint/core';\nimport { createContext } from 'react';\n\n/** Application-wide configuration (API Spec §8.1); a chart prop always wins over it. */\nexport const SilverpointContext = createContext<ProviderConfig>({});\n","import { checkTypeface, FORCED_PRECISION_QUERY } from '@silverpoint/core';\nimport { useEffect, useState, type RefObject } from 'react';\n\n/**\n * Whether the environment forces `precision` (REQ-123). Read after hydration, so the server\n * render and the first client render agree (REQ-103).\n */\nexport function useForcedPrecision(): boolean {\n const [forced, setForced] = useState(false);\n useEffect(() => {\n if (typeof matchMedia !== 'function') return;\n const query = matchMedia(FORCED_PRECISION_QUERY);\n const update = () => setForced(query.matches);\n update();\n query.addEventListener?.('change', update);\n return () => query.removeEventListener?.('change', update);\n }, []);\n return forced;\n}\n\n/** Width of the container, measured with ResizeObserver; `undefined` until measured (REQ-009). */\nexport function useMeasuredWidth(ref: RefObject<HTMLElement | null>, enabled: boolean): number | undefined {\n const [width, setWidth] = useState<number | undefined>(undefined);\n useEffect(() => {\n const element = ref.current;\n if (!enabled || !element || typeof ResizeObserver !== 'function') return;\n const observer = new ResizeObserver((entries) => {\n const entry = entries[0];\n if (entry) setWidth(entry.contentRect.width);\n });\n observer.observe(element);\n return () => observer.disconnect();\n }, [ref, enabled]);\n return width;\n}\n\n/** Reports SP013 when the display typeface fails to load; never blocks the render (REQ-032). */\nexport function useTypefaceCheck(chart: string): void {\n useEffect(() => {\n if (typeof document !== 'undefined' && document.fonts) void checkTypeface(document.fonts, chart);\n }, [chart]);\n}\n"],"mappings":";;;AACA,SAAS,qBAAqB;AAGvB,IAAM,qBAAqB,cAA8B,CAAC,CAAC;;;ACJlE,SAAS,eAAe,8BAA8B;AACtD,SAAS,WAAW,gBAAgC;AAM7C,SAAS,qBAA8B;AAC5C,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,KAAK;AAC1C,YAAU,MAAM;AACd,QAAI,OAAO,eAAe,WAAY;AACtC,UAAM,QAAQ,WAAW,sBAAsB;AAC/C,UAAM,SAAS,MAAM,UAAU,MAAM,OAAO;AAC5C,WAAO;AACP,UAAM,mBAAmB,UAAU,MAAM;AACzC,WAAO,MAAM,MAAM,sBAAsB,UAAU,MAAM;AAAA,EAC3D,GAAG,CAAC,CAAC;AACL,SAAO;AACT;AAGO,SAAS,iBAAiB,KAAoC,SAAsC;AACzG,QAAM,CAAC,OAAO,QAAQ,IAAI,SAA6B,MAAS;AAChE,YAAU,MAAM;AACd,UAAM,UAAU,IAAI;AACpB,QAAI,CAAC,WAAW,CAAC,WAAW,OAAO,mBAAmB,WAAY;AAClE,UAAM,WAAW,IAAI,eAAe,CAAC,YAAY;AAC/C,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,MAAO,UAAS,MAAM,YAAY,KAAK;AAAA,IAC7C,CAAC;AACD,aAAS,QAAQ,OAAO;AACxB,WAAO,MAAM,SAAS,WAAW;AAAA,EACnC,GAAG,CAAC,KAAK,OAAO,CAAC;AACjB,SAAO;AACT;AAGO,SAAS,iBAAiB,OAAqB;AACpD,YAAU,MAAM;AACd,QAAI,OAAO,aAAa,eAAe,SAAS,MAAO,MAAK,cAAc,SAAS,OAAO,KAAK;AAAA,EACjG,GAAG,CAAC,KAAK,CAAC;AACZ;","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
|
+
|
|
6
|
+
// src/drillable.tsx
|
|
7
|
+
import { rootChangeOf } from "@silverpoint/core/catalog";
|
|
8
|
+
import { forwardRef, useImperativeHandle, useRef } from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
function createDrillableChart(recipe) {
|
|
11
|
+
const Chart = createClientChart(recipe);
|
|
12
|
+
const Drillable = forwardRef(function Drillable2({ onRootChange, onSelect, ...props }, ref) {
|
|
13
|
+
const chart = useRef(null);
|
|
14
|
+
useImperativeHandle(ref, () => ({ getGeometry: () => chart.current.getGeometry(), toSVGString: () => chart.current.toSVGString() }), []);
|
|
15
|
+
const select = (item) => {
|
|
16
|
+
onSelect?.(item);
|
|
17
|
+
if (onRootChange && chart.current) onRootChange(rootChangeOf(chart.current.getGeometry(), item));
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ jsx(Chart, { ...props, onSelect: select, ref: chart });
|
|
20
|
+
});
|
|
21
|
+
Drillable.displayName = recipe.name;
|
|
22
|
+
return Drillable;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
createDrillableChart
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=chunk-T2IYBDCL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/drillable.tsx"],"sourcesContent":["import { rootChangeOf } from '@silverpoint/core/catalog';\nimport type { ActiveItem, ChartHandle, ChartRecipe, CommonChartProps } from '@silverpoint/core';\nimport { forwardRef, useImperativeHandle, useRef } from 'react';\nimport { createClientChart, type ClientChart, type InteractionProps } from './create-chart';\n\n/** The event of the two drillable charts (API delta §4). */\nexport interface RootChangeProps {\n /** A node was activated: the id to draw as root, `null` for the data root (REQ-439). */\n onRootChange?: (id: string | null) => void;\n}\n\n/**\n * The client component of a drillable recipe: the client chart, whose `onSelect` also emits\n * `onRootChange`, read from the drawing as it is now. The root stays the consumer's `rootId`; this\n * component holds none (REQ-108).\n */\nexport function createDrillableChart<P extends CommonChartProps>(recipe: ChartRecipe<P>): ClientChart<P & RootChangeProps> {\n const Chart = createClientChart(recipe) as unknown as ClientChart<CommonChartProps>;\n const Drillable = forwardRef<ChartHandle, P & InteractionProps & RootChangeProps>(function Drillable({ onRootChange, onSelect, ...props }, ref) {\n const chart = useRef<ChartHandle>(null);\n // The inner handle changes with every drawing, so the outer one reads it at call time.\n useImperativeHandle(ref, () => ({ getGeometry: () => (chart.current as ChartHandle).getGeometry(), toSVGString: () => (chart.current as ChartHandle).toSVGString() }), []);\n const select = (item: ActiveItem) => {\n onSelect?.(item);\n if (onRootChange && chart.current) onRootChange(rootChangeOf(chart.current.getGeometry(), item));\n };\n return <Chart {...(props as CommonChartProps)} onSelect={select} ref={chart} />;\n });\n Drillable.displayName = recipe.name;\n return Drillable as unknown as ClientChart<P & RootChangeProps>;\n}\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAE7B,SAAS,YAAY,qBAAqB,cAAc;AAwB7C;AAVJ,SAAS,qBAAiD,QAA0D;AACzH,QAAM,QAAQ,kBAAkB,MAAM;AACtC,QAAM,YAAY,WAAgE,SAASA,WAAU,EAAE,cAAc,UAAU,GAAG,MAAM,GAAG,KAAK;AAC9I,UAAM,QAAQ,OAAoB,IAAI;AAEtC,wBAAoB,KAAK,OAAO,EAAE,aAAa,MAAO,MAAM,QAAwB,YAAY,GAAG,aAAa,MAAO,MAAM,QAAwB,YAAY,EAAE,IAAI,CAAC,CAAC;AACzK,UAAM,SAAS,CAAC,SAAqB;AACnC,iBAAW,IAAI;AACf,UAAI,gBAAgB,MAAM,QAAS,cAAa,aAAa,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC;AAAA,IACjG;AACA,WAAO,oBAAC,SAAO,GAAI,OAA4B,UAAU,QAAQ,KAAK,OAAO;AAAA,EAC/E,CAAC;AACD,YAAU,cAAc,OAAO;AAC/B,SAAO;AACT;","names":["Drillable"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi,
|
|
5
|
+
useValue
|
|
6
|
+
} from "./chunk-DO4VUIUU.js";
|
|
7
|
+
|
|
8
|
+
// src/ui/segmented.tsx
|
|
9
|
+
import { uiRovingFocus, uiSegmentedView } from "@silverpoint/core/ui";
|
|
10
|
+
function SpSegmented({ value, defaultValue, onChange, dashboardCell, ...props }) {
|
|
11
|
+
const [current, set] = useValue(value, defaultValue, onChange);
|
|
12
|
+
const view = uiSegmentedView(props, useUi(props, dashboardCell), { value: current ?? null });
|
|
13
|
+
const native = (node) => ({ checked: node.attrs.checked === true, onChange: (event) => set(event.target.value) });
|
|
14
|
+
const onKeyDown = (event) => uiRovingFocus(event, event.currentTarget, "input.sp-ui-native", "both", true);
|
|
15
|
+
return renderUi(view, { root: { onKeyDown }, native });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
SpSegmented
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-TH6Q4E7C.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/segmented.tsx"],"sourcesContent":["import { uiRovingFocus, uiSegmentedView, type SpSegmentedProps as CoreProps, type UiElement } from '@silverpoint/core/ui';\nimport type { ChangeEvent, KeyboardEvent, ReactElement } from 'react';\nimport { useUi, useValue, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpSegmentedProps extends CoreProps, UiCellProps {\n /** Controlled key; an unknown one shows the first enabled segment. */\n readonly value?: string;\n readonly defaultValue?: string;\n /** The key selected, not the DOM event (REQ-322). */\n readonly onChange?: (value: string) => void;\n}\n\n/** `SpSegmented`: native radios in one frame; arrows move and select through the core (REQ-315). */\nexport function SpSegmented({ value, defaultValue, onChange, dashboardCell, ...props }: SpSegmentedProps) {\n const [current, set] = useValue<string | undefined>(value, defaultValue, onChange as (next: string | undefined) => void);\n const view = uiSegmentedView(props, useUi(props, dashboardCell), { value: current ?? null });\n const native = (node: UiElement) => ({ checked: node.attrs.checked === true, onChange: (event: ChangeEvent<HTMLInputElement>) => set(event.target.value) });\n const onKeyDown = (event: KeyboardEvent<HTMLElement>) => uiRovingFocus(event, event.currentTarget, 'input.sp-ui-native', 'both', true);\n return renderUi(view, { root: { onKeyDown }, native }) as ReactElement;\n}\n"],"mappings":";;;;;;;;AAAA,SAAS,eAAe,uBAA2E;AAc5F,SAAS,YAAY,EAAE,OAAO,cAAc,UAAU,eAAe,GAAG,MAAM,GAAqB;AACxG,QAAM,CAAC,SAAS,GAAG,IAAI,SAA6B,OAAO,cAAc,QAA8C;AACvH,QAAM,OAAO,gBAAgB,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,OAAO,WAAW,KAAK,CAAC;AAC3F,QAAM,SAAS,CAAC,UAAqB,EAAE,SAAS,KAAK,MAAM,YAAY,MAAM,UAAU,CAAC,UAAyC,IAAI,MAAM,OAAO,KAAK,EAAE;AACzJ,QAAM,YAAY,CAAC,UAAsC,cAAc,OAAO,MAAM,eAAe,sBAAsB,QAAQ,IAAI;AACrI,SAAO,SAAS,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC;AACvD;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/orbit-chart.tsx
|
|
7
7
|
import { orbitChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var OrbitChart = createClientChart(orbitChart);
|
|
|
10
10
|
export {
|
|
11
11
|
OrbitChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-TSQWTDBK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/area-chart.tsx
|
|
7
7
|
import { areaChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var AreaChart = createClientChart(areaChart);
|
|
|
10
10
|
export {
|
|
11
11
|
AreaChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-U3LT444G.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
|
+
|
|
6
|
+
// src/lollipop-chart.tsx
|
|
7
|
+
import { lollipopChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var LollipopChart = createClientChart(lollipopChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
LollipopChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-UC7ADKFU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lollipop-chart.tsx"],"sourcesContent":["import { lollipopChart } from '@silverpoint/core/catalog';\nimport type { LollipopChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { LollipopChartProps } from '@silverpoint/core';\n\nexport type ClientLollipopChartProps = LollipopChartProps & InteractionProps;\n\n/** `LollipopChart` (REQ-406): a stem from the baseline and a head at the value (API Spec §7.3). */\nexport const LollipopChart = createClientChart<LollipopChartProps>(lollipopChart);\n"],"mappings":";;;;;;AAAA,SAAS,qBAAqB;AAUvB,IAAM,gBAAgB,kBAAsC,aAAa;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/stream-chart.tsx
|
|
7
7
|
import { streamChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var StreamChart = createClientChart(streamChart);
|
|
|
10
10
|
export {
|
|
11
11
|
StreamChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-UOOHQAJU.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/kpi-card.tsx
|
|
7
7
|
import { kpiCard } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var KpiCard = createClientChart(kpiCard);
|
|
|
10
10
|
export {
|
|
11
11
|
KpiCard
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-VKNGQ4NW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBJLA3P7.js";
|
|
5
5
|
|
|
6
6
|
// src/radial-rings.tsx
|
|
7
7
|
import { radialRings } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var RadialRings = createClientChart(radialRings);
|
|
|
10
10
|
export {
|
|
11
11
|
RadialRings
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-WFO6BICV.js.map
|