@silverpoint/react 0.3.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 +146 -2
- package/dist/activity-grid.js +3 -3
- package/dist/area-chart.js +3 -3
- package/dist/bar-chart.js +3 -3
- 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 -3
- package/dist/bullet-chart.js +3 -3
- 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 -3
- package/dist/chord-ring.js +3 -3
- package/dist/{chunk-WZZA2IGN.js → chunk-25BXOLN7.js} +2 -2
- package/dist/chunk-26PNMZ4N.js +13 -0
- package/dist/chunk-26PNMZ4N.js.map +1 -0
- package/dist/chunk-27ILYIHO.js +56 -0
- package/dist/chunk-27ILYIHO.js.map +1 -0
- package/dist/chunk-2HDGFK6O.js +13 -0
- package/dist/chunk-2HDGFK6O.js.map +1 -0
- package/dist/chunk-2JLWAB4R.js +32 -0
- package/dist/chunk-2JLWAB4R.js.map +1 -0
- package/dist/{chunk-I72JGA6Q.js → chunk-2NBHAILL.js} +2 -2
- package/dist/chunk-2TDJIHGW.js +39 -0
- package/dist/chunk-2TDJIHGW.js.map +1 -0
- package/dist/{chunk-GUKXFITX.js → chunk-3MQJA564.js} +2 -2
- package/dist/{chunk-LSA5XU52.js → chunk-3UD7DUEM.js} +2 -2
- package/dist/chunk-3ZO7VEHS.js +59 -0
- package/dist/chunk-3ZO7VEHS.js.map +1 -0
- package/dist/{chunk-MC7N4KQA.js → chunk-45FUDQOF.js} +2 -2
- package/dist/chunk-4CZQHTP5.js +16 -0
- package/dist/chunk-4CZQHTP5.js.map +1 -0
- package/dist/{chunk-FHX2HWN3.js → chunk-4QE7BQ7J.js} +2 -2
- package/dist/chunk-5GNJS3Y3.js +13 -0
- package/dist/chunk-5GNJS3Y3.js.map +1 -0
- package/dist/chunk-5HX2UUIR.js +28 -0
- package/dist/chunk-5HX2UUIR.js.map +1 -0
- package/dist/chunk-5KS4JD5W.js +13 -0
- package/dist/chunk-5KS4JD5W.js.map +1 -0
- package/dist/chunk-5M4FS37X.js +13 -0
- package/dist/chunk-5M4FS37X.js.map +1 -0
- package/dist/chunk-65LAAEJZ.js +66 -0
- package/dist/chunk-65LAAEJZ.js.map +1 -0
- package/dist/chunk-6BZ2752M.js +13 -0
- package/dist/chunk-6BZ2752M.js.map +1 -0
- package/dist/chunk-6K4HSGXJ.js +16 -0
- package/dist/chunk-6K4HSGXJ.js.map +1 -0
- package/dist/{chunk-GSJYA76X.js → chunk-6Y2V7WIZ.js} +2 -2
- package/dist/chunk-74DQNJH2.js +16 -0
- package/dist/chunk-74DQNJH2.js.map +1 -0
- package/dist/chunk-75EKOWPE.js +16 -0
- package/dist/chunk-75EKOWPE.js.map +1 -0
- package/dist/chunk-7777FL4L.js +16 -0
- package/dist/chunk-7777FL4L.js.map +1 -0
- package/dist/{chunk-JPTK2AAT.js → chunk-7SZATSRO.js} +2 -2
- package/dist/chunk-AKOPH5MK.js +13 -0
- package/dist/chunk-AKOPH5MK.js.map +1 -0
- package/dist/chunk-AL6AXLYE.js +16 -0
- package/dist/chunk-AL6AXLYE.js.map +1 -0
- package/dist/{chunk-5FKONGCL.js → chunk-ANAAYEMQ.js} +2 -2
- package/dist/{chunk-MYKZWY2E.js → chunk-ANIMFO5C.js} +2 -2
- package/dist/{chunk-CWFUPKSS.js → chunk-ARN5BO7U.js} +2 -2
- package/dist/{chunk-6M4REUJE.js → chunk-B2TSWCF5.js} +2 -2
- package/dist/chunk-BKZ64BZS.js +31 -0
- package/dist/chunk-BKZ64BZS.js.map +1 -0
- package/dist/{chunk-X2F56RYM.js → chunk-CAFLXUSL.js} +2 -2
- package/dist/chunk-CJBZWJTN.js +21 -0
- package/dist/chunk-CJBZWJTN.js.map +1 -0
- package/dist/{chunk-G7C4CH54.js → chunk-CT2MHXSG.js} +2 -2
- package/dist/{chunk-RMIIFPXA.js → chunk-D65O5YJZ.js} +2 -2
- package/dist/{chunk-U3LT444G.js → chunk-DL3FIRSO.js} +2 -2
- package/dist/{chunk-AEU6UHVG.js → chunk-DOFLNIRZ.js} +2 -2
- package/dist/{chunk-DO4VUIUU.js → chunk-DX6FUHGB.js} +14 -11
- package/dist/chunk-DX6FUHGB.js.map +1 -0
- package/dist/chunk-DXFQNNRN.js +13 -0
- package/dist/chunk-DXFQNNRN.js.map +1 -0
- package/dist/{chunk-FZ46YSJA.js → chunk-DXNSJNEQ.js} +2 -2
- package/dist/{chunk-NWK6VBCJ.js → chunk-E6LPQWVM.js} +2 -2
- package/dist/{chunk-KVOBNPDN.js → chunk-ELNPDHOC.js} +2 -2
- package/dist/chunk-ENGG7T3F.js +13 -0
- package/dist/chunk-ENGG7T3F.js.map +1 -0
- package/dist/{chunk-ZOB6BH7H.js → chunk-EOMPQ2TX.js} +2 -2
- package/dist/{chunk-RIGQTEKW.js → chunk-EPTFI4BT.js} +2 -2
- package/dist/chunk-EX7AYOOW.js +13 -0
- package/dist/chunk-EX7AYOOW.js.map +1 -0
- package/dist/chunk-F27PSDYP.js +13 -0
- package/dist/chunk-F27PSDYP.js.map +1 -0
- package/dist/chunk-F6H7NPSP.js +13 -0
- package/dist/chunk-F6H7NPSP.js.map +1 -0
- package/dist/chunk-FI6FQRFE.js +13 -0
- package/dist/chunk-FI6FQRFE.js.map +1 -0
- package/dist/chunk-G3PPUBI5.js +79 -0
- package/dist/chunk-G3PPUBI5.js.map +1 -0
- package/dist/{chunk-ESFN6FJY.js → chunk-GEC5QL7C.js} +2 -2
- package/dist/chunk-GU5HJU7M.js +13 -0
- package/dist/chunk-GU5HJU7M.js.map +1 -0
- package/dist/{chunk-WFO6BICV.js → chunk-HHQI7CLZ.js} +2 -2
- package/dist/{chunk-PRVJKYEQ.js → chunk-IHIE2DK3.js} +2 -2
- package/dist/{chunk-2JWLXUY5.js → chunk-INYDD4FD.js} +2 -2
- package/dist/chunk-IQQMPYCN.js +13 -0
- package/dist/chunk-IQQMPYCN.js.map +1 -0
- package/dist/chunk-JIVM4CSU.js +13 -0
- package/dist/chunk-JIVM4CSU.js.map +1 -0
- package/dist/chunk-JMVH54WP.js +13 -0
- package/dist/chunk-JMVH54WP.js.map +1 -0
- package/dist/chunk-JRYGGBE6.js +20 -0
- package/dist/chunk-JRYGGBE6.js.map +1 -0
- package/dist/chunk-JUVBTR6L.js +66 -0
- package/dist/chunk-JUVBTR6L.js.map +1 -0
- package/dist/{chunk-NWRCFNYB.js → chunk-JY6ZMAYT.js} +2 -2
- package/dist/{chunk-6EFRIK7Q.js → chunk-K2JDM6SF.js} +2 -2
- package/dist/{chunk-RAATAHXZ.js → chunk-KMNQTGBN.js} +2 -2
- package/dist/{chunk-SQ6GWXDK.js → chunk-M2NKE3GQ.js} +12 -1
- package/dist/chunk-M2NKE3GQ.js.map +1 -0
- package/dist/{chunk-C3NHZ4N5.js → chunk-M4F272PN.js} +2 -2
- package/dist/{chunk-OP2WE7MA.js → chunk-M5R4CNKU.js} +2 -2
- package/dist/chunk-MEHYWMG7.js +13 -0
- package/dist/chunk-MEHYWMG7.js.map +1 -0
- package/dist/{chunk-VKNGQ4NW.js → chunk-MOO3XIC2.js} +2 -2
- package/dist/chunk-MTXREPUM.js +16 -0
- package/dist/chunk-MTXREPUM.js.map +1 -0
- package/dist/{chunk-UOOHQAJU.js → chunk-NNHM6OWA.js} +2 -2
- package/dist/{chunk-3U3Z5U6H.js → chunk-NUGUZMON.js} +2 -2
- package/dist/chunk-O2FNTA5U.js +13 -0
- package/dist/chunk-O2FNTA5U.js.map +1 -0
- package/dist/chunk-O4WI7LKM.js +13 -0
- package/dist/chunk-O4WI7LKM.js.map +1 -0
- package/dist/chunk-OB65KGYJ.js +13 -0
- package/dist/chunk-OB65KGYJ.js.map +1 -0
- package/dist/{chunk-TSQWTDBK.js → chunk-PXHT6PD5.js} +2 -2
- package/dist/chunk-Q6VFHFX3.js +16 -0
- package/dist/chunk-Q6VFHFX3.js.map +1 -0
- package/dist/{chunk-ZBSCLF56.js → chunk-QEHVGOJA.js} +16 -10
- package/dist/chunk-QEHVGOJA.js.map +1 -0
- package/dist/{chunk-QRYI7BEO.js → chunk-QEODW4IP.js} +2 -2
- package/dist/{chunk-3BREGZ7C.js → chunk-QJLESIWB.js} +2 -2
- package/dist/{chunk-WMU6O6KZ.js → chunk-QKBT4P5O.js} +2 -2
- package/dist/chunk-QOQTPSPV.js +13 -0
- package/dist/chunk-QOQTPSPV.js.map +1 -0
- package/dist/{chunk-FBJLA3P7.js → chunk-QRQ4RFCB.js} +4 -2
- package/dist/chunk-QRQ4RFCB.js.map +1 -0
- package/dist/chunk-QVCRJZMJ.js +13 -0
- package/dist/chunk-QVCRJZMJ.js.map +1 -0
- package/dist/{chunk-OD6N2ATZ.js → chunk-R66XACVV.js} +3 -2
- package/dist/chunk-R66XACVV.js.map +1 -0
- package/dist/{chunk-46S63XYT.js → chunk-RE4ZOKKK.js} +6 -1
- package/dist/chunk-RE4ZOKKK.js.map +1 -0
- package/dist/chunk-RFWELGCX.js +20 -0
- package/dist/chunk-RFWELGCX.js.map +1 -0
- package/dist/{chunk-6NXL245Z.js → chunk-S2A6EJSX.js} +2 -2
- package/dist/{chunk-6S6VKQ3E.js → chunk-SZHYT257.js} +2 -2
- package/dist/{chunk-JWCVL7VE.js → chunk-T52NYUKC.js} +2 -2
- package/dist/{chunk-M56MDRNT.js → chunk-TTIRFQ2W.js} +2 -2
- package/dist/{chunk-3WUPWJP2.js → chunk-TZGI7DMH.js} +2 -2
- package/dist/{chunk-67FND3TB.js → chunk-UA3V7LBC.js} +2 -2
- package/dist/chunk-UAWJIVQK.js +68 -0
- package/dist/chunk-UAWJIVQK.js.map +1 -0
- package/dist/chunk-UOINAVEH.js +32 -0
- package/dist/chunk-UOINAVEH.js.map +1 -0
- package/dist/chunk-VGX3GSOT.js +33 -0
- package/dist/chunk-VGX3GSOT.js.map +1 -0
- package/dist/chunk-VNVWUIVN.js +13 -0
- package/dist/chunk-VNVWUIVN.js.map +1 -0
- package/dist/{chunk-ART7CMBL.js → chunk-VQRXVACI.js} +2 -2
- package/dist/chunk-XOO5OQHZ.js +13 -0
- package/dist/chunk-XOO5OQHZ.js.map +1 -0
- package/dist/chunk-XPLCIRDZ.js +14 -0
- package/dist/chunk-XPLCIRDZ.js.map +1 -0
- package/dist/{chunk-TH6Q4E7C.js → chunk-XZX2HZI7.js} +2 -2
- package/dist/chunk-YHCAIRT3.js +13 -0
- package/dist/chunk-YHCAIRT3.js.map +1 -0
- package/dist/chunk-YO2P3ALL.js +13 -0
- package/dist/chunk-YO2P3ALL.js.map +1 -0
- package/dist/{chunk-OAH7AEGE.js → chunk-YYI6AXAT.js} +2 -2
- package/dist/chunk-ZGGWGSDF.js +17 -0
- package/dist/chunk-ZGGWGSDF.js.map +1 -0
- package/dist/{chunk-43AIURD6.js → chunk-ZLI7RM6W.js} +2 -2
- package/dist/{chunk-NA6K372D.js → chunk-ZMZYJ6I7.js} +2 -2
- package/dist/{chunk-J3E6IUUQ.js → chunk-ZVZMIGX4.js} +2 -2
- package/dist/composed-chart.js +3 -3
- 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 -3
- package/dist/dashboard.js +1 -1
- 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 -3
- 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 -3
- package/dist/gauge-arc.js +3 -3
- package/dist/heatmap-chart.js +3 -3
- 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 +34 -2
- package/dist/index.js +148 -36
- 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 -3
- package/dist/line-chart.js +3 -3
- 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 -3
- 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 -3
- package/dist/overlay-CMxteajk.d.ts +10 -0
- 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 -3
- 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 -3
- package/dist/radar-chart.js +3 -3
- package/dist/radial-arc-group.js +3 -3
- package/dist/radial-rings.js +3 -3
- package/dist/range-band-chart.js +3 -3
- 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 -3
- package/dist/scatter-chart.js +3 -3
- package/dist/server/activity-grid.js +2 -1
- package/dist/server/activity-grid.js.map +1 -1
- package/dist/server/area-chart.js +2 -1
- package/dist/server/area-chart.js.map +1 -1
- package/dist/server/bar-chart.js +2 -1
- package/dist/server/bar-chart.js.map +1 -1
- package/dist/server/beeswarm-chart.d.ts +19 -0
- package/dist/server/beeswarm-chart.js +12 -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 +12 -0
- package/dist/server/box-plot-chart.js.map +1 -0
- package/dist/server/bubble-chart.js +2 -1
- package/dist/server/bubble-chart.js.map +1 -1
- package/dist/server/bullet-chart.js +2 -1
- package/dist/server/bullet-chart.js.map +1 -1
- package/dist/server/bump-chart.d.ts +19 -0
- package/dist/server/bump-chart.js +12 -0
- package/dist/server/bump-chart.js.map +1 -0
- package/dist/server/candlestick-chart.js +2 -1
- package/dist/server/candlestick-chart.js.map +1 -1
- package/dist/server/chord-ring.js +2 -1
- package/dist/server/chord-ring.js.map +1 -1
- package/dist/server/composed-chart.js +2 -1
- package/dist/server/composed-chart.js.map +1 -1
- package/dist/server/connected-scatter-chart.d.ts +19 -0
- package/dist/server/connected-scatter-chart.js +12 -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 +12 -0
- package/dist/server/contour-chart.js.map +1 -0
- package/dist/server/coxcomb-chart.js +2 -1
- package/dist/server/coxcomb-chart.js.map +1 -1
- package/dist/server/dashboard.js +1 -1
- package/dist/server/delaunay-chart.d.ts +19 -0
- package/dist/server/delaunay-chart.js +12 -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 +12 -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 +12 -0
- package/dist/server/diverging-bar-chart.js.map +1 -0
- package/dist/server/donut-chart.js +2 -1
- package/dist/server/donut-chart.js.map +1 -1
- package/dist/server/dumbbell-chart.d.ts +19 -0
- package/dist/server/dumbbell-chart.js +12 -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 +12 -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 +12 -0
- package/dist/server/error-bar-chart.js.map +1 -0
- package/dist/server/funnel-chart.js +2 -1
- package/dist/server/funnel-chart.js.map +1 -1
- package/dist/server/gauge-arc.js +2 -1
- package/dist/server/gauge-arc.js.map +1 -1
- package/dist/server/heatmap-chart.js +2 -1
- package/dist/server/heatmap-chart.js.map +1 -1
- package/dist/server/histogram-chart.d.ts +19 -0
- package/dist/server/histogram-chart.js +12 -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 +12 -0
- package/dist/server/interval-chart.js.map +1 -0
- package/dist/server/kpi-card.js +2 -1
- package/dist/server/kpi-card.js.map +1 -1
- package/dist/server/line-chart.js +2 -1
- package/dist/server/line-chart.js.map +1 -1
- package/dist/server/lollipop-chart.d.ts +19 -0
- package/dist/server/lollipop-chart.js +12 -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 +12 -0
- package/dist/server/marimekko-chart.js.map +1 -0
- package/dist/server/meter-chart.js +2 -1
- package/dist/server/meter-chart.js.map +1 -1
- package/dist/server/network-chart.d.ts +19 -0
- package/dist/server/network-chart.js +12 -0
- package/dist/server/network-chart.js.map +1 -0
- package/dist/server/orbit-chart.js +2 -1
- package/dist/server/orbit-chart.js.map +1 -1
- package/dist/server/parallel-coordinates-chart.d.ts +19 -0
- package/dist/server/parallel-coordinates-chart.js +12 -0
- package/dist/server/parallel-coordinates-chart.js.map +1 -0
- package/dist/server/polar-bar-chart.js +2 -1
- package/dist/server/polar-bar-chart.js.map +1 -1
- package/dist/server/polar-line-chart.d.ts +19 -0
- package/dist/server/polar-line-chart.js +12 -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 +12 -0
- package/dist/server/polar-scatter-chart.js.map +1 -0
- package/dist/server/pyramid-chart.js +2 -1
- package/dist/server/pyramid-chart.js.map +1 -1
- package/dist/server/radar-chart.js +2 -1
- package/dist/server/radar-chart.js.map +1 -1
- package/dist/server/radial-arc-group.js +2 -1
- package/dist/server/radial-arc-group.js.map +1 -1
- package/dist/server/radial-rings.js +2 -1
- package/dist/server/radial-rings.js.map +1 -1
- package/dist/server/range-band-chart.js +2 -1
- package/dist/server/range-band-chart.js.map +1 -1
- package/dist/server/ridgeline-chart.d.ts +19 -0
- package/dist/server/ridgeline-chart.js +12 -0
- package/dist/server/ridgeline-chart.js.map +1 -0
- package/dist/server/sankey-chart.js +2 -1
- package/dist/server/sankey-chart.js.map +1 -1
- package/dist/server/scatter-chart.js +2 -1
- package/dist/server/scatter-chart.js.map +1 -1
- package/dist/server/slope-chart.d.ts +19 -0
- package/dist/server/slope-chart.js +12 -0
- package/dist/server/slope-chart.js.map +1 -0
- package/dist/server/sparkline-rows.js +2 -1
- package/dist/server/sparkline-rows.js.map +1 -1
- package/dist/server/squarified-treemap.d.ts +19 -0
- package/dist/server/squarified-treemap.js +12 -0
- package/dist/server/squarified-treemap.js.map +1 -0
- package/dist/server/stacked-bar-chart.js +2 -1
- package/dist/server/stacked-bar-chart.js.map +1 -1
- package/dist/server/step-chart.js +2 -1
- package/dist/server/step-chart.js.map +1 -1
- package/dist/server/stream-chart.js +2 -1
- package/dist/server/stream-chart.js.map +1 -1
- package/dist/server/sunburst-chart.d.ts +19 -0
- package/dist/server/sunburst-chart.js +12 -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 +12 -0
- package/dist/server/tree-chart.js.map +1 -0
- package/dist/server/treemap-chart.js +2 -1
- package/dist/server/treemap-chart.js.map +1 -1
- package/dist/server/ui/alert.js +2 -1
- package/dist/server/ui/alert.js.map +1 -1
- package/dist/server/ui/avatar.d.ts +18 -0
- package/dist/server/ui/avatar.js +18 -0
- package/dist/server/ui/avatar.js.map +1 -0
- package/dist/server/ui/badge.js +2 -1
- package/dist/server/ui/badge.js.map +1 -1
- package/dist/server/ui/breadcrumb.d.ts +12 -0
- package/dist/server/ui/breadcrumb.js +14 -0
- package/dist/server/ui/breadcrumb.js.map +1 -0
- package/dist/server/ui/card.js +2 -1
- package/dist/server/ui/card.js.map +1 -1
- package/dist/server/ui/descriptions.d.ts +12 -0
- package/dist/server/ui/descriptions.js +14 -0
- package/dist/server/ui/descriptions.js.map +1 -0
- package/dist/server/ui/divider.js +2 -1
- package/dist/server/ui/divider.js.map +1 -1
- package/dist/server/ui/empty.d.ts +14 -0
- package/dist/server/ui/empty.js +14 -0
- package/dist/server/ui/empty.js.map +1 -0
- package/dist/server/ui/glyph.d.ts +12 -0
- package/dist/server/ui/glyph.js +14 -0
- package/dist/server/ui/glyph.js.map +1 -0
- package/dist/server/ui/progress.js +2 -1
- package/dist/server/ui/progress.js.map +1 -1
- package/dist/server/ui/result.d.ts +14 -0
- package/dist/server/ui/result.js +14 -0
- package/dist/server/ui/result.js.map +1 -0
- package/dist/server/ui/skeleton.js +2 -1
- package/dist/server/ui/skeleton.js.map +1 -1
- package/dist/server/ui/statistic.d.ts +12 -0
- package/dist/server/ui/statistic.js +14 -0
- package/dist/server/ui/statistic.js.map +1 -0
- package/dist/server/ui/steps.js +2 -1
- package/dist/server/ui/steps.js.map +1 -1
- package/dist/server/ui/surface.d.ts +13 -0
- package/dist/server/ui/surface.js +14 -0
- package/dist/server/ui/surface.js.map +1 -0
- package/dist/server/ui/table.d.ts +14 -0
- package/dist/server/ui/table.js +14 -0
- package/dist/server/ui/table.js.map +1 -0
- package/dist/server/ui/tag.js +2 -1
- package/dist/server/ui/tag.js.map +1 -1
- package/dist/server/ui/timeline-list.d.ts +12 -0
- package/dist/server/ui/timeline-list.js +14 -0
- package/dist/server/ui/timeline-list.js.map +1 -0
- package/dist/server/vector-field-chart.d.ts +19 -0
- package/dist/server/vector-field-chart.js +12 -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 +12 -0
- package/dist/server/violin-chart.js.map +1 -0
- package/dist/server/volvelle-chart.js +2 -1
- package/dist/server/volvelle-chart.js.map +1 -1
- package/dist/server/waffle-chart.d.ts +19 -0
- package/dist/server/waffle-chart.js +12 -0
- package/dist/server/waffle-chart.js.map +1 -0
- package/dist/server/waterfall-chart.js +2 -1
- package/dist/server/waterfall-chart.js.map +1 -1
- package/dist/server/wind-rose.js +2 -1
- package/dist/server/wind-rose.js.map +1 -1
- 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 -3
- 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 -3
- package/dist/step-chart.js +3 -3
- package/dist/stream-chart.js +3 -3
- 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/timeline.d.ts +21 -0
- package/dist/timeline.js +36 -0
- package/dist/timeline.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 -3
- package/dist/ui/alert.js +3 -3
- package/dist/ui/avatar.d.ts +17 -0
- package/dist/ui/avatar.js +12 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.js +3 -3
- package/dist/ui/breadcrumb.d.ts +11 -0
- package/dist/ui/breadcrumb.js +10 -0
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/button.js +3 -3
- package/dist/ui/card.js +3 -3
- package/dist/ui/checkbox.js +3 -3
- package/dist/ui/collapse.d.ts +24 -0
- package/dist/ui/collapse.js +12 -0
- package/dist/ui/collapse.js.map +1 -0
- package/dist/ui/descriptions.d.ts +11 -0
- package/dist/ui/descriptions.js +10 -0
- package/dist/ui/descriptions.js.map +1 -0
- package/dist/ui/divider.js +3 -3
- package/dist/ui/drawer.d.ts +17 -0
- package/dist/ui/drawer.js +11 -0
- package/dist/ui/drawer.js.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +20 -0
- package/dist/ui/dropdown-menu.js +12 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/empty.d.ts +13 -0
- package/dist/ui/empty.js +10 -0
- package/dist/ui/empty.js.map +1 -0
- package/dist/ui/glyph.d.ts +11 -0
- package/dist/ui/glyph.js +10 -0
- package/dist/ui/glyph.js.map +1 -0
- package/dist/ui/input-number.d.ts +20 -0
- package/dist/ui/input-number.js +10 -0
- package/dist/ui/input-number.js.map +1 -0
- package/dist/ui/input.js +3 -3
- package/dist/ui/modal.d.ts +17 -0
- package/dist/ui/modal.js +11 -0
- package/dist/ui/modal.js.map +1 -0
- package/dist/ui/pagination.d.ts +17 -0
- package/dist/ui/pagination.js +10 -0
- package/dist/ui/pagination.js.map +1 -0
- package/dist/ui/popover.d.ts +16 -0
- package/dist/ui/popover.js +11 -0
- package/dist/ui/popover.js.map +1 -0
- package/dist/ui/progress.js +3 -3
- package/dist/ui/radio-group.js +3 -3
- package/dist/ui/rate.js +3 -3
- package/dist/ui/result.d.ts +13 -0
- package/dist/ui/result.js +10 -0
- package/dist/ui/result.js.map +1 -0
- package/dist/ui/segmented.js +3 -3
- package/dist/ui/select.d.ts +21 -0
- package/dist/ui/select.js +12 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/skeleton.js +3 -3
- package/dist/ui/slider.js +3 -3
- package/dist/ui/statistic.d.ts +11 -0
- package/dist/ui/statistic.js +10 -0
- package/dist/ui/statistic.js.map +1 -0
- package/dist/ui/steps.js +3 -3
- package/dist/ui/surface.d.ts +12 -0
- package/dist/ui/surface.js +10 -0
- package/dist/ui/surface.js.map +1 -0
- package/dist/ui/switch.js +3 -3
- package/dist/ui/table.d.ts +13 -0
- package/dist/ui/table.js +10 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.js +3 -3
- package/dist/ui/tag.js +3 -3
- package/dist/ui/textarea.d.ts +16 -0
- package/dist/ui/textarea.js +10 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/timeline-list.d.ts +11 -0
- package/dist/ui/timeline-list.js +10 -0
- package/dist/ui/timeline-list.js.map +1 -0
- package/dist/ui/toast.d.ts +25 -0
- package/dist/ui/toast.js +13 -0
- package/dist/ui/toast.js.map +1 -0
- package/dist/ui/tooltip.d.ts +19 -0
- package/dist/ui/tooltip.js +11 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/ui.d.ts +23 -1
- package/dist/ui.js +124 -32
- 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 -3
- 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 -3
- package/dist/wind-rose.js +3 -3
- package/package.json +527 -4
- package/dist/chunk-46S63XYT.js.map +0 -1
- package/dist/chunk-DO4VUIUU.js.map +0 -1
- package/dist/chunk-FBJLA3P7.js.map +0 -1
- package/dist/chunk-OD6N2ATZ.js.map +0 -1
- package/dist/chunk-SQ6GWXDK.js.map +0 -1
- package/dist/chunk-ZBSCLF56.js.map +0 -1
- /package/dist/{chunk-WZZA2IGN.js.map → chunk-25BXOLN7.js.map} +0 -0
- /package/dist/{chunk-I72JGA6Q.js.map → chunk-2NBHAILL.js.map} +0 -0
- /package/dist/{chunk-GUKXFITX.js.map → chunk-3MQJA564.js.map} +0 -0
- /package/dist/{chunk-LSA5XU52.js.map → chunk-3UD7DUEM.js.map} +0 -0
- /package/dist/{chunk-MC7N4KQA.js.map → chunk-45FUDQOF.js.map} +0 -0
- /package/dist/{chunk-FHX2HWN3.js.map → chunk-4QE7BQ7J.js.map} +0 -0
- /package/dist/{chunk-GSJYA76X.js.map → chunk-6Y2V7WIZ.js.map} +0 -0
- /package/dist/{chunk-JPTK2AAT.js.map → chunk-7SZATSRO.js.map} +0 -0
- /package/dist/{chunk-5FKONGCL.js.map → chunk-ANAAYEMQ.js.map} +0 -0
- /package/dist/{chunk-MYKZWY2E.js.map → chunk-ANIMFO5C.js.map} +0 -0
- /package/dist/{chunk-CWFUPKSS.js.map → chunk-ARN5BO7U.js.map} +0 -0
- /package/dist/{chunk-6M4REUJE.js.map → chunk-B2TSWCF5.js.map} +0 -0
- /package/dist/{chunk-X2F56RYM.js.map → chunk-CAFLXUSL.js.map} +0 -0
- /package/dist/{chunk-G7C4CH54.js.map → chunk-CT2MHXSG.js.map} +0 -0
- /package/dist/{chunk-RMIIFPXA.js.map → chunk-D65O5YJZ.js.map} +0 -0
- /package/dist/{chunk-U3LT444G.js.map → chunk-DL3FIRSO.js.map} +0 -0
- /package/dist/{chunk-AEU6UHVG.js.map → chunk-DOFLNIRZ.js.map} +0 -0
- /package/dist/{chunk-FZ46YSJA.js.map → chunk-DXNSJNEQ.js.map} +0 -0
- /package/dist/{chunk-NWK6VBCJ.js.map → chunk-E6LPQWVM.js.map} +0 -0
- /package/dist/{chunk-KVOBNPDN.js.map → chunk-ELNPDHOC.js.map} +0 -0
- /package/dist/{chunk-ZOB6BH7H.js.map → chunk-EOMPQ2TX.js.map} +0 -0
- /package/dist/{chunk-RIGQTEKW.js.map → chunk-EPTFI4BT.js.map} +0 -0
- /package/dist/{chunk-ESFN6FJY.js.map → chunk-GEC5QL7C.js.map} +0 -0
- /package/dist/{chunk-WFO6BICV.js.map → chunk-HHQI7CLZ.js.map} +0 -0
- /package/dist/{chunk-PRVJKYEQ.js.map → chunk-IHIE2DK3.js.map} +0 -0
- /package/dist/{chunk-2JWLXUY5.js.map → chunk-INYDD4FD.js.map} +0 -0
- /package/dist/{chunk-NWRCFNYB.js.map → chunk-JY6ZMAYT.js.map} +0 -0
- /package/dist/{chunk-6EFRIK7Q.js.map → chunk-K2JDM6SF.js.map} +0 -0
- /package/dist/{chunk-RAATAHXZ.js.map → chunk-KMNQTGBN.js.map} +0 -0
- /package/dist/{chunk-C3NHZ4N5.js.map → chunk-M4F272PN.js.map} +0 -0
- /package/dist/{chunk-OP2WE7MA.js.map → chunk-M5R4CNKU.js.map} +0 -0
- /package/dist/{chunk-VKNGQ4NW.js.map → chunk-MOO3XIC2.js.map} +0 -0
- /package/dist/{chunk-UOOHQAJU.js.map → chunk-NNHM6OWA.js.map} +0 -0
- /package/dist/{chunk-3U3Z5U6H.js.map → chunk-NUGUZMON.js.map} +0 -0
- /package/dist/{chunk-TSQWTDBK.js.map → chunk-PXHT6PD5.js.map} +0 -0
- /package/dist/{chunk-QRYI7BEO.js.map → chunk-QEODW4IP.js.map} +0 -0
- /package/dist/{chunk-3BREGZ7C.js.map → chunk-QJLESIWB.js.map} +0 -0
- /package/dist/{chunk-WMU6O6KZ.js.map → chunk-QKBT4P5O.js.map} +0 -0
- /package/dist/{chunk-6NXL245Z.js.map → chunk-S2A6EJSX.js.map} +0 -0
- /package/dist/{chunk-6S6VKQ3E.js.map → chunk-SZHYT257.js.map} +0 -0
- /package/dist/{chunk-JWCVL7VE.js.map → chunk-T52NYUKC.js.map} +0 -0
- /package/dist/{chunk-M56MDRNT.js.map → chunk-TTIRFQ2W.js.map} +0 -0
- /package/dist/{chunk-3WUPWJP2.js.map → chunk-TZGI7DMH.js.map} +0 -0
- /package/dist/{chunk-67FND3TB.js.map → chunk-UA3V7LBC.js.map} +0 -0
- /package/dist/{chunk-ART7CMBL.js.map → chunk-VQRXVACI.js.map} +0 -0
- /package/dist/{chunk-TH6Q4E7C.js.map → chunk-XZX2HZI7.js.map} +0 -0
- /package/dist/{chunk-OAH7AEGE.js.map → chunk-YYI6AXAT.js.map} +0 -0
- /package/dist/{chunk-43AIURD6.js.map → chunk-ZLI7RM6W.js.map} +0 -0
- /package/dist/{chunk-NA6K372D.js.map → chunk-ZMZYJ6I7.js.map} +0 -0
- /package/dist/{chunk-J3E6IUUQ.js.map → chunk-ZVZMIGX4.js.map} +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// src/ui/list.ts
|
|
4
|
+
import { uiListKey, uiTypeahead } from "@silverpoint/core/ui";
|
|
5
|
+
import { useEffect, useRef, useState } from "react";
|
|
6
|
+
var HANDLED = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp", "Home", "End", "PageDown", "PageUp", "Enter", " ", "Escape"]);
|
|
7
|
+
var TYPEAHEAD_RESET = 500;
|
|
8
|
+
function useListKeys(items, kind, open, from) {
|
|
9
|
+
const [active, setActive] = useState(null);
|
|
10
|
+
const [wasOpen, setWasOpen] = useState(open);
|
|
11
|
+
if (open !== wasOpen) {
|
|
12
|
+
setWasOpen(open);
|
|
13
|
+
if (!open) setActive(null);
|
|
14
|
+
}
|
|
15
|
+
const buffer = useRef("");
|
|
16
|
+
const timer = useRef(void 0);
|
|
17
|
+
useEffect(() => () => clearTimeout(timer.current), []);
|
|
18
|
+
const disabled = items.map((item) => item.disabled === true);
|
|
19
|
+
const count = items.length;
|
|
20
|
+
const opening = uiListKey({ active: from, count, disabled, open: false }, "Enter", kind).active;
|
|
21
|
+
const shown = open ? active ?? opening : -1;
|
|
22
|
+
const step = (index, intent) => {
|
|
23
|
+
setActive(index);
|
|
24
|
+
return { intent, key: items[index]?.key };
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
activeKey: items[shown]?.key ?? null,
|
|
28
|
+
key(event) {
|
|
29
|
+
const current = open ? shown : from;
|
|
30
|
+
const typed = event.key;
|
|
31
|
+
if (typed.length === 1 && (typed !== " " || buffer.current !== "")) {
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
buffer.current += typed;
|
|
34
|
+
clearTimeout(timer.current);
|
|
35
|
+
timer.current = setTimeout(() => buffer.current = "", TYPEAHEAD_RESET);
|
|
36
|
+
const found = uiTypeahead(
|
|
37
|
+
items.map((item) => item.label),
|
|
38
|
+
disabled,
|
|
39
|
+
buffer.current,
|
|
40
|
+
current
|
|
41
|
+
);
|
|
42
|
+
return found < 0 ? {} : step(found, open ? void 0 : "open");
|
|
43
|
+
}
|
|
44
|
+
if (HANDLED.has(typed)) event.preventDefault();
|
|
45
|
+
const result = uiListKey({ active: current, count, disabled, open }, typed, kind);
|
|
46
|
+
if (result.intent === void 0 && result.active === current) return HANDLED.has(typed) ? {} : void 0;
|
|
47
|
+
return step(result.active, result.intent);
|
|
48
|
+
},
|
|
49
|
+
keyUp(event) {
|
|
50
|
+
if (event.key === " ") event.preventDefault();
|
|
51
|
+
},
|
|
52
|
+
activate: setActive
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
useListKeys
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=chunk-3ZO7VEHS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/list.ts"],"sourcesContent":["import { uiListKey, uiTypeahead, type UiItem } from '@silverpoint/core/ui';\nimport { useEffect, useRef, useState, type KeyboardEvent } from 'react';\n\n/** Keys a list overlay answers; their default (scrolling, a button's click) is cancelled. */\nconst HANDLED: ReadonlySet<string> = new Set(['ArrowDown', 'ArrowUp', 'Home', 'End', 'PageDown', 'PageUp', 'Enter', ' ', 'Escape']);\n/** The typeahead buffer clears this long after the last key, ms (DD-039). */\nconst TYPEAHEAD_RESET = 500;\n\nexport interface ListStep {\n readonly intent?: 'open' | 'close' | 'select';\n /** The active item's key after the step. */\n readonly key?: string;\n}\n\nexport interface ListKeys {\n /** The active item of the open list; `null` when it is closed. */\n readonly activeKey: string | null;\n /** One key through `uiListKey`, or a character through `uiTypeahead`; `undefined` when the list does not answer it. */\n key(event: KeyboardEvent): ListStep | undefined;\n /** Cancels a Space's keyup, so no click follows the key that already acted. */\n keyUp(event: KeyboardEvent): void;\n /** Makes an item active: a list opened by a click starts on its first. */\n activate(index: number): void;\n}\n\n/**\n * The keyboard of a Select or a Menu (REQ-494, REQ-495, DD-039): the active item and the typeahead\n * buffer; every transition is the core's. The list opens on `from` (the chosen option) or its first\n * enabled item, as `uiListKey` says, and forgets its active item when it closes.\n */\nexport function useListKeys(items: readonly UiItem[], kind: 'listbox' | 'menu', open: boolean, from: number): ListKeys {\n const [active, setActive] = useState<number | null>(null);\n const [wasOpen, setWasOpen] = useState(open);\n if (open !== wasOpen) {\n setWasOpen(open);\n // A key that opens the list has just set its active item; a close forgets it.\n if (!open) setActive(null);\n }\n const buffer = useRef('');\n const timer = useRef<ReturnType<typeof setTimeout>>(undefined);\n useEffect(() => () => clearTimeout(timer.current), []);\n const disabled = items.map((item) => item.disabled === true);\n const count = items.length;\n const opening = uiListKey({ active: from, count, disabled, open: false }, 'Enter', kind).active;\n const shown = open ? (active ?? opening) : -1;\n\n const step = (index: number, intent?: ListStep['intent']): ListStep => {\n setActive(index);\n return { intent, key: items[index]?.key };\n };\n return {\n activeKey: items[shown]?.key ?? null,\n key(event) {\n const current = open ? shown : from;\n const typed = event.key;\n if (typed.length === 1 && (typed !== ' ' || buffer.current !== '')) {\n event.preventDefault();\n buffer.current += typed;\n clearTimeout(timer.current);\n timer.current = setTimeout(() => (buffer.current = ''), TYPEAHEAD_RESET);\n const found = uiTypeahead(\n items.map((item) => item.label),\n disabled,\n buffer.current,\n current,\n );\n return found < 0 ? {} : step(found, open ? undefined : 'open');\n }\n if (HANDLED.has(typed)) event.preventDefault();\n const result = uiListKey({ active: current, count, disabled, open }, typed, kind);\n if (result.intent === undefined && result.active === current) return HANDLED.has(typed) ? {} : undefined;\n return step(result.active, result.intent);\n },\n keyUp(event) {\n if (event.key === ' ') event.preventDefault();\n },\n activate: setActive,\n };\n}\n"],"mappings":";;;AAAA,SAAS,WAAW,mBAAgC;AACpD,SAAS,WAAW,QAAQ,gBAAoC;AAGhE,IAAM,UAA+B,oBAAI,IAAI,CAAC,aAAa,WAAW,QAAQ,OAAO,YAAY,UAAU,SAAS,KAAK,QAAQ,CAAC;AAElI,IAAM,kBAAkB;AAwBjB,SAAS,YAAY,OAA0B,MAA0B,MAAe,MAAwB;AACrH,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAwB,IAAI;AACxD,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,IAAI;AAC3C,MAAI,SAAS,SAAS;AACpB,eAAW,IAAI;AAEf,QAAI,CAAC,KAAM,WAAU,IAAI;AAAA,EAC3B;AACA,QAAM,SAAS,OAAO,EAAE;AACxB,QAAM,QAAQ,OAAsC,MAAS;AAC7D,YAAU,MAAM,MAAM,aAAa,MAAM,OAAO,GAAG,CAAC,CAAC;AACrD,QAAM,WAAW,MAAM,IAAI,CAAC,SAAS,KAAK,aAAa,IAAI;AAC3D,QAAM,QAAQ,MAAM;AACpB,QAAM,UAAU,UAAU,EAAE,QAAQ,MAAM,OAAO,UAAU,MAAM,MAAM,GAAG,SAAS,IAAI,EAAE;AACzF,QAAM,QAAQ,OAAQ,UAAU,UAAW;AAE3C,QAAM,OAAO,CAAC,OAAe,WAA0C;AACrE,cAAU,KAAK;AACf,WAAO,EAAE,QAAQ,KAAK,MAAM,KAAK,GAAG,IAAI;AAAA,EAC1C;AACA,SAAO;AAAA,IACL,WAAW,MAAM,KAAK,GAAG,OAAO;AAAA,IAChC,IAAI,OAAO;AACT,YAAM,UAAU,OAAO,QAAQ;AAC/B,YAAM,QAAQ,MAAM;AACpB,UAAI,MAAM,WAAW,MAAM,UAAU,OAAO,OAAO,YAAY,KAAK;AAClE,cAAM,eAAe;AACrB,eAAO,WAAW;AAClB,qBAAa,MAAM,OAAO;AAC1B,cAAM,UAAU,WAAW,MAAO,OAAO,UAAU,IAAK,eAAe;AACvE,cAAM,QAAQ;AAAA,UACZ,MAAM,IAAI,CAAC,SAAS,KAAK,KAAK;AAAA,UAC9B;AAAA,UACA,OAAO;AAAA,UACP;AAAA,QACF;AACA,eAAO,QAAQ,IAAI,CAAC,IAAI,KAAK,OAAO,OAAO,SAAY,MAAM;AAAA,MAC/D;AACA,UAAI,QAAQ,IAAI,KAAK,EAAG,OAAM,eAAe;AAC7C,YAAM,SAAS,UAAU,EAAE,QAAQ,SAAS,OAAO,UAAU,KAAK,GAAG,OAAO,IAAI;AAChF,UAAI,OAAO,WAAW,UAAa,OAAO,WAAW,QAAS,QAAO,QAAQ,IAAI,KAAK,IAAI,CAAC,IAAI;AAC/F,aAAO,KAAK,OAAO,QAAQ,OAAO,MAAM;AAAA,IAC1C;AAAA,IACA,MAAM,OAAO;AACX,UAAI,MAAM,QAAQ,IAAK,OAAM,eAAe;AAAA,IAC9C;AAAA,IACA,UAAU;AAAA,EACZ;AACF;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QRQ4RFCB.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-45FUDQOF.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi
|
|
5
|
+
} from "./chunk-DX6FUHGB.js";
|
|
6
|
+
|
|
7
|
+
// src/ui/breadcrumb.tsx
|
|
8
|
+
import { uiBreadcrumbView } from "@silverpoint/core/ui";
|
|
9
|
+
function SpBreadcrumb({ dashboardCell, ...props }) {
|
|
10
|
+
return renderUi(uiBreadcrumbView(props, useUi(props, dashboardCell)), {});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
SpBreadcrumb
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-4CZQHTP5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/breadcrumb.tsx"],"sourcesContent":["import { uiBreadcrumbView, type SpBreadcrumbProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpBreadcrumbProps extends CoreProps, UiCellProps {}\n\n/** `SpBreadcrumb`: a labelled nav; the last item is the current page (REQ-477). `@silverpoint/react/server/ui/breadcrumb` renders it in a Server Component. */\nexport function SpBreadcrumb({ dashboardCell, ...props }: SpBreadcrumbProps) {\n return renderUi(uiBreadcrumbView(props, useUi(props, dashboardCell)), {}) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,wBAA6D;AAQ/D,SAAS,aAAa,EAAE,eAAe,GAAG,MAAM,GAAsB;AAC3E,SAAO,SAAS,iBAAiB,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC1E;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QRQ4RFCB.js";
|
|
5
5
|
|
|
6
6
|
// src/waterfall-chart.tsx
|
|
7
7
|
import { waterfallChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var WaterfallChart = createClientChart(waterfallChart);
|
|
|
10
10
|
export {
|
|
11
11
|
WaterfallChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-4QE7BQ7J.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-QRQ4RFCB.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-5GNJS3Y3.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":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-QRQ4RFCB.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-5HX2UUIR.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,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-QRQ4RFCB.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-5KS4JD5W.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,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-QRQ4RFCB.js";
|
|
5
|
+
|
|
6
|
+
// src/beeswarm-chart.tsx
|
|
7
|
+
import { beeswarmChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var BeeswarmChart = createClientChart(beeswarmChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
BeeswarmChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-5M4FS37X.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/beeswarm-chart.tsx"],"sourcesContent":["import { beeswarmChart } from '@silverpoint/core/catalog';\nimport type { BeeswarmChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { BeeswarmChartProps } from '@silverpoint/core';\n\nexport type ClientBeeswarmChartProps = BeeswarmChartProps & InteractionProps;\n\n/** `BeeswarmChart` (REQ-405): one point per observation, packed without overlap (API Spec §7.3). */\nexport const BeeswarmChart = createClientChart<BeeswarmChartProps>(beeswarmChart);\n"],"mappings":";;;;;;AAAA,SAAS,qBAAqB;AAUvB,IAAM,gBAAgB,kBAAsC,aAAa;","names":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
useOpen
|
|
4
|
+
} from "./chunk-G3PPUBI5.js";
|
|
5
|
+
import {
|
|
6
|
+
renderUi,
|
|
7
|
+
useUi
|
|
8
|
+
} from "./chunk-DX6FUHGB.js";
|
|
9
|
+
|
|
10
|
+
// src/ui/toast.tsx
|
|
11
|
+
import { uiToastDuration, uiToasterView, uiToastView } from "@silverpoint/core/ui";
|
|
12
|
+
import { createContext, useContext, useEffect, useRef } from "react";
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
var ToasterDuration = createContext(void 0);
|
|
15
|
+
function SpToast({ action, open, defaultOpen, onOpenChange, dashboardCell, ...props }) {
|
|
16
|
+
const [isOpen, set] = useOpen({ open, defaultOpen, onOpenChange });
|
|
17
|
+
const ref = useRef(null);
|
|
18
|
+
const duration = uiToastDuration(props.duration, useContext(ToasterDuration));
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
const toast = ref.current;
|
|
21
|
+
if (!toast || !isOpen || duration === Infinity) return;
|
|
22
|
+
let timer = setTimeout(() => set(false), duration);
|
|
23
|
+
const pause = () => {
|
|
24
|
+
clearTimeout(timer);
|
|
25
|
+
timer = void 0;
|
|
26
|
+
};
|
|
27
|
+
const resume = () => {
|
|
28
|
+
if (timer !== void 0 || toast.contains(toast.ownerDocument.activeElement)) return;
|
|
29
|
+
timer = setTimeout(() => set(false), duration);
|
|
30
|
+
};
|
|
31
|
+
const on = [
|
|
32
|
+
["pointerenter", pause],
|
|
33
|
+
["focusin", pause],
|
|
34
|
+
["pointerleave", resume],
|
|
35
|
+
["focusout", resume]
|
|
36
|
+
];
|
|
37
|
+
for (const [type, listener] of on) toast.addEventListener(type, listener);
|
|
38
|
+
return () => {
|
|
39
|
+
clearTimeout(timer);
|
|
40
|
+
for (const [type, listener] of on) toast.removeEventListener(type, listener);
|
|
41
|
+
};
|
|
42
|
+
}, [isOpen, duration, set]);
|
|
43
|
+
const view = uiToastView(props, useUi(props, dashboardCell), { open: isOpen }, { action: action != null });
|
|
44
|
+
return renderUi(view, { root: { ref }, close: { onClick: () => set(false) }, slots: { action } });
|
|
45
|
+
}
|
|
46
|
+
function SpToaster({ children, dashboardCell, ...props }) {
|
|
47
|
+
const ref = useRef(null);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
const f8 = (event) => {
|
|
50
|
+
const region = ref.current;
|
|
51
|
+
if (event.key !== "F8" || !region) return;
|
|
52
|
+
region.setAttribute("tabindex", "-1");
|
|
53
|
+
region.focus();
|
|
54
|
+
};
|
|
55
|
+
document.addEventListener("keydown", f8);
|
|
56
|
+
return () => document.removeEventListener("keydown", f8);
|
|
57
|
+
}, []);
|
|
58
|
+
const view = uiToasterView(props, useUi(props, dashboardCell));
|
|
59
|
+
return /* @__PURE__ */ jsx(ToasterDuration.Provider, { value: props.duration, children: renderUi(view, { root: { ref }, slots: { content: children } }) });
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export {
|
|
63
|
+
SpToast,
|
|
64
|
+
SpToaster
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=chunk-65LAAEJZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/toast.tsx"],"sourcesContent":["import { uiToastDuration, uiToasterView, uiToastView, type SpToasterProps as CoreToasterProps, type SpToastProps as CoreProps } from '@silverpoint/core/ui';\nimport { createContext, useContext, useEffect, useRef, type ReactElement, type ReactNode } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { useOpen, type OverlayOpenProps } from './overlay';\nimport { renderUi } from './render';\n\n/** The duration a toaster gives the toasts it holds. */\nconst ToasterDuration = createContext<number | undefined>(undefined);\n\nexport interface SpToastProps extends CoreProps, OverlayOpenProps, UiCellProps {\n /** An action beside the text, as a button. */\n readonly action?: ReactNode;\n}\n\nexport interface SpToasterProps extends CoreToasterProps, UiCellProps {\n /** `SpToast`s. */\n readonly children?: ReactNode;\n}\n\n/**\n * `SpToast`: announced by its kind (REQ-497); it closes after its duration —its own, its toaster's\n * or 5000 ms, by `uiToastDuration`— counted again from the start once the pointer and focus have\n * left it, and reports the close through `onOpenChange`.\n */\nexport function SpToast({ action, open, defaultOpen, onOpenChange, dashboardCell, ...props }: SpToastProps) {\n const [isOpen, set] = useOpen({ open, defaultOpen, onOpenChange });\n const ref = useRef<HTMLLIElement>(null);\n const duration = uiToastDuration(props.duration, useContext(ToasterDuration));\n useEffect(() => {\n const toast = ref.current;\n if (!toast || !isOpen || duration === Infinity) return;\n // A pause restarts the whole duration when it ends: no clock is read (Art. 4).\n let timer: ReturnType<typeof setTimeout> | undefined = setTimeout(() => set(false), duration);\n const pause = () => {\n clearTimeout(timer);\n timer = undefined;\n };\n const resume = () => {\n if (timer !== undefined || toast.contains(toast.ownerDocument.activeElement)) return;\n timer = setTimeout(() => set(false), duration);\n };\n const on: [string, EventListener][] = [\n ['pointerenter', pause],\n ['focusin', pause],\n ['pointerleave', resume],\n ['focusout', resume],\n ];\n for (const [type, listener] of on) toast.addEventListener(type, listener);\n return () => {\n clearTimeout(timer);\n for (const [type, listener] of on) toast.removeEventListener(type, listener);\n };\n }, [isOpen, duration, set]);\n const view = uiToastView(props, useUi(props, dashboardCell), { open: isOpen }, { action: action != null });\n return renderUi(view, { root: { ref }, close: { onClick: () => set(false) }, slots: { action } }) as ReactElement;\n}\n\n/** `SpToaster`: the labelled region of its toasts (REQ-497); F8 moves focus to it. */\nexport function SpToaster({ children, dashboardCell, ...props }: SpToasterProps) {\n const ref = useRef<HTMLElement>(null);\n useEffect(() => {\n const f8 = (event: KeyboardEvent) => {\n const region = ref.current;\n if (event.key !== 'F8' || !region) return;\n // Focusable once asked, never in the server markup.\n region.setAttribute('tabindex', '-1');\n region.focus();\n };\n document.addEventListener('keydown', f8);\n return () => document.removeEventListener('keydown', f8);\n }, []);\n const view = uiToasterView(props, useUi(props, dashboardCell));\n return <ToasterDuration.Provider value={props.duration}>{renderUi(view, { root: { ref }, slots: { content: children } })}</ToasterDuration.Provider>;\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAS,iBAAiB,eAAe,mBAA4F;AACrI,SAAS,eAAe,YAAY,WAAW,cAAiD;AAuEvF;AAjET,IAAM,kBAAkB,cAAkC,MAAS;AAiB5D,SAAS,QAAQ,EAAE,QAAQ,MAAM,aAAa,cAAc,eAAe,GAAG,MAAM,GAAiB;AAC1G,QAAM,CAAC,QAAQ,GAAG,IAAI,QAAQ,EAAE,MAAM,aAAa,aAAa,CAAC;AACjE,QAAM,MAAM,OAAsB,IAAI;AACtC,QAAM,WAAW,gBAAgB,MAAM,UAAU,WAAW,eAAe,CAAC;AAC5E,YAAU,MAAM;AACd,UAAM,QAAQ,IAAI;AAClB,QAAI,CAAC,SAAS,CAAC,UAAU,aAAa,SAAU;AAEhD,QAAI,QAAmD,WAAW,MAAM,IAAI,KAAK,GAAG,QAAQ;AAC5F,UAAM,QAAQ,MAAM;AAClB,mBAAa,KAAK;AAClB,cAAQ;AAAA,IACV;AACA,UAAM,SAAS,MAAM;AACnB,UAAI,UAAU,UAAa,MAAM,SAAS,MAAM,cAAc,aAAa,EAAG;AAC9E,cAAQ,WAAW,MAAM,IAAI,KAAK,GAAG,QAAQ;AAAA,IAC/C;AACA,UAAM,KAAgC;AAAA,MACpC,CAAC,gBAAgB,KAAK;AAAA,MACtB,CAAC,WAAW,KAAK;AAAA,MACjB,CAAC,gBAAgB,MAAM;AAAA,MACvB,CAAC,YAAY,MAAM;AAAA,IACrB;AACA,eAAW,CAAC,MAAM,QAAQ,KAAK,GAAI,OAAM,iBAAiB,MAAM,QAAQ;AACxE,WAAO,MAAM;AACX,mBAAa,KAAK;AAClB,iBAAW,CAAC,MAAM,QAAQ,KAAK,GAAI,OAAM,oBAAoB,MAAM,QAAQ;AAAA,IAC7E;AAAA,EACF,GAAG,CAAC,QAAQ,UAAU,GAAG,CAAC;AAC1B,QAAM,OAAO,YAAY,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,MAAM,OAAO,GAAG,EAAE,QAAQ,UAAU,KAAK,CAAC;AACzG,SAAO,SAAS,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,SAAS,MAAM,IAAI,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,CAAC;AAClG;AAGO,SAAS,UAAU,EAAE,UAAU,eAAe,GAAG,MAAM,GAAmB;AAC/E,QAAM,MAAM,OAAoB,IAAI;AACpC,YAAU,MAAM;AACd,UAAM,KAAK,CAAC,UAAyB;AACnC,YAAM,SAAS,IAAI;AACnB,UAAI,MAAM,QAAQ,QAAQ,CAAC,OAAQ;AAEnC,aAAO,aAAa,YAAY,IAAI;AACpC,aAAO,MAAM;AAAA,IACf;AACA,aAAS,iBAAiB,WAAW,EAAE;AACvC,WAAO,MAAM,SAAS,oBAAoB,WAAW,EAAE;AAAA,EACzD,GAAG,CAAC,CAAC;AACL,QAAM,OAAO,cAAc,OAAO,MAAM,OAAO,aAAa,CAAC;AAC7D,SAAO,oBAAC,gBAAgB,UAAhB,EAAyB,OAAO,MAAM,UAAW,mBAAS,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC,GAAE;AAC3H;","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-QRQ4RFCB.js";
|
|
5
|
+
|
|
6
|
+
// src/box-plot-chart.tsx
|
|
7
|
+
import { boxPlotChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var BoxPlotChart = createClientChart(boxPlotChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
BoxPlotChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-6BZ2752M.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/box-plot-chart.tsx"],"sourcesContent":["import { boxPlotChart } from '@silverpoint/core/catalog';\nimport type { BoxPlotChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { BoxPlotChartProps } from '@silverpoint/core';\n\nexport type ClientBoxPlotChartProps = BoxPlotChartProps & InteractionProps;\n\n/** `BoxPlotChart` (REQ-402): quartiles, median, Tukey whiskers and outliers per group (API Spec §7.3). */\nexport const BoxPlotChart = createClientChart<BoxPlotChartProps>(boxPlotChart);\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAUtB,IAAM,eAAe,kBAAqC,YAAY;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi
|
|
5
|
+
} from "./chunk-DX6FUHGB.js";
|
|
6
|
+
|
|
7
|
+
// src/ui/descriptions.tsx
|
|
8
|
+
import { uiDescriptionsView } from "@silverpoint/core/ui";
|
|
9
|
+
function SpDescriptions({ dashboardCell, ...props }) {
|
|
10
|
+
return renderUi(uiDescriptionsView(props, useUi(props, dashboardCell)), {});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
SpDescriptions
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-6K4HSGXJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/descriptions.tsx"],"sourcesContent":["import { uiDescriptionsView, type SpDescriptionsProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpDescriptionsProps extends CoreProps, UiCellProps {}\n\n/** `SpDescriptions`: a section named by its heading around a `<dl>` (REQ-480). `@silverpoint/react/server/ui/descriptions` renders it in a Server Component. */\nexport function SpDescriptions({ dashboardCell, ...props }: SpDescriptionsProps) {\n return renderUi(uiDescriptionsView(props, useUi(props, dashboardCell)), {}) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,0BAAiE;AAQnE,SAAS,eAAe,EAAE,eAAe,GAAG,MAAM,GAAwB;AAC/E,SAAO,SAAS,mBAAmB,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5E;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QRQ4RFCB.js";
|
|
5
5
|
|
|
6
6
|
// src/heatmap-chart.tsx
|
|
7
7
|
import { heatmapChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var HeatmapChart = createClientChart(heatmapChart);
|
|
|
10
10
|
export {
|
|
11
11
|
HeatmapChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-6Y2V7WIZ.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi
|
|
5
|
+
} from "./chunk-DX6FUHGB.js";
|
|
6
|
+
|
|
7
|
+
// src/ui/statistic.tsx
|
|
8
|
+
import { uiStatisticView } from "@silverpoint/core/ui";
|
|
9
|
+
function SpStatistic({ dashboardCell, ...props }) {
|
|
10
|
+
return renderUi(uiStatisticView(props, useUi(props, dashboardCell)), {});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
SpStatistic
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-74DQNJH2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/statistic.tsx"],"sourcesContent":["import { uiStatisticView, type SpStatisticProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpStatisticProps extends CoreProps, UiCellProps {}\n\n/** `SpStatistic`: the trend by an exact arrow and by text (REQ-479). `@silverpoint/react/server/ui/statistic` renders it in a Server Component. */\nexport function SpStatistic({ dashboardCell, ...props }: SpStatisticProps) {\n return renderUi(uiStatisticView(props, useUi(props, dashboardCell)), {}) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,uBAA2D;AAQ7D,SAAS,YAAY,EAAE,eAAe,GAAG,MAAM,GAAqB;AACzE,SAAO,SAAS,gBAAgB,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AACzE;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi
|
|
5
|
+
} from "./chunk-DX6FUHGB.js";
|
|
6
|
+
|
|
7
|
+
// src/ui/empty.tsx
|
|
8
|
+
import { uiEmptyView } from "@silverpoint/core/ui";
|
|
9
|
+
function SpEmpty({ extra, dashboardCell, ...props }) {
|
|
10
|
+
return renderUi(uiEmptyView(props, useUi(props, dashboardCell), { extra: extra != null }), { slots: { extra } });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
SpEmpty
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-75EKOWPE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/empty.tsx"],"sourcesContent":["import { uiEmptyView, type SpEmptyProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement, ReactNode } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpEmptyProps extends CoreProps, UiCellProps {\n /** Actions under the description. */\n readonly extra?: ReactNode;\n}\n\n/** `SpEmpty`: a toned tray and a description; `extra` holds actions (REQ-483). `@silverpoint/react/server/ui/empty` renders it in a Server Component. */\nexport function SpEmpty({ extra, dashboardCell, ...props }: SpEmptyProps) {\n return renderUi(uiEmptyView(props, useUi(props, dashboardCell), { extra: extra != null }), { slots: { extra } }) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,mBAAmD;AAWrD,SAAS,QAAQ,EAAE,OAAO,eAAe,GAAG,MAAM,GAAiB;AACxE,SAAO,SAAS,YAAY,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,OAAO,SAAS,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AACjH;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi
|
|
5
|
+
} from "./chunk-DX6FUHGB.js";
|
|
6
|
+
|
|
7
|
+
// src/ui/timeline-list.tsx
|
|
8
|
+
import { uiTimelineListView } from "@silverpoint/core/ui";
|
|
9
|
+
function SpTimelineList({ dashboardCell, ...props }) {
|
|
10
|
+
return renderUi(uiTimelineListView(props, useUi(props, dashboardCell)), {});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
SpTimelineList
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-7777FL4L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/timeline-list.tsx"],"sourcesContent":["import { uiTimelineListView, type SpTimelineListProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpTimelineListProps extends CoreProps, UiCellProps {}\n\n/** `SpTimelineList`: an ordered list; each status by its mark's shape (REQ-481). `@silverpoint/react/server/ui/timeline-list` renders it in a Server Component. */\nexport function SpTimelineList({ dashboardCell, ...props }: SpTimelineListProps) {\n return renderUi(uiTimelineListView(props, useUi(props, dashboardCell)), {}) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,0BAAiE;AAQnE,SAAS,eAAe,EAAE,eAAe,GAAG,MAAM,GAAwB;AAC/E,SAAO,SAAS,mBAAmB,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5E;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QRQ4RFCB.js";
|
|
5
5
|
|
|
6
6
|
// src/bar-chart.tsx
|
|
7
7
|
import { barChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var BarChart = createClientChart(barChart);
|
|
|
10
10
|
export {
|
|
11
11
|
BarChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-7SZATSRO.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
createClientChart
|
|
4
|
+
} from "./chunk-QRQ4RFCB.js";
|
|
5
|
+
|
|
6
|
+
// src/violin-chart.tsx
|
|
7
|
+
import { violinChart } from "@silverpoint/core/catalog";
|
|
8
|
+
var ViolinChart = createClientChart(violinChart);
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
ViolinChart
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-AKOPH5MK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/violin-chart.tsx"],"sourcesContent":["import { violinChart } from '@silverpoint/core/catalog';\nimport type { ViolinChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { ViolinChartProps } from '@silverpoint/core';\n\nexport type ClientViolinChartProps = ViolinChartProps & InteractionProps;\n\n/** `ViolinChart` (REQ-403): a mirrored kernel density per group (API Spec §7.3). */\nexport const ViolinChart = createClientChart<ViolinChartProps>(violinChart);\n"],"mappings":";;;;;;AAAA,SAAS,mBAAmB;AAUrB,IAAM,cAAc,kBAAoC,WAAW;","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi
|
|
5
|
+
} from "./chunk-DX6FUHGB.js";
|
|
6
|
+
|
|
7
|
+
// src/ui/surface.tsx
|
|
8
|
+
import { uiSurfaceView } from "@silverpoint/core/ui";
|
|
9
|
+
function SpSurface({ children, dashboardCell, ...props }) {
|
|
10
|
+
return renderUi(uiSurfaceView(props, useUi(props, dashboardCell)), { slots: { content: children } });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
SpSurface
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-AL6AXLYE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/surface.tsx"],"sourcesContent":["import { uiSurfaceView, type SpSurfaceProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement, ReactNode } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpSurfaceProps extends CoreProps, UiCellProps {\n readonly children?: ReactNode;\n}\n\n/** `SpSurface`: the root contract on any element (`as`), with an optional frame and tone (REQ-472). `@silverpoint/react/server/ui/surface` renders it in a Server Component. */\nexport function SpSurface({ children, dashboardCell, ...props }: SpSurfaceProps) {\n return renderUi(uiSurfaceView(props, useUi(props, dashboardCell)), { slots: { content: children } }) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,qBAAuD;AAUzD,SAAS,UAAU,EAAE,UAAU,eAAe,GAAG,MAAM,GAAmB;AAC/E,SAAO,SAAS,cAAc,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;AACrG;","names":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
renderUi,
|
|
4
4
|
useUi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DX6FUHGB.js";
|
|
6
6
|
|
|
7
7
|
// src/ui/divider.tsx
|
|
8
8
|
import { uiDividerView } from "@silverpoint/core/ui";
|
|
@@ -13,4 +13,4 @@ function SpDivider({ dashboardCell, ...props }) {
|
|
|
13
13
|
export {
|
|
14
14
|
SpDivider
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=chunk-
|
|
16
|
+
//# sourceMappingURL=chunk-ANAAYEMQ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QRQ4RFCB.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-ANIMFO5C.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
renderUi,
|
|
4
4
|
textOf,
|
|
5
5
|
useUi
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DX6FUHGB.js";
|
|
7
7
|
|
|
8
8
|
// src/ui/button.tsx
|
|
9
9
|
import { uiButtonView } from "@silverpoint/core/ui";
|
|
@@ -17,4 +17,4 @@ var SpButton = forwardRef(function SpButton2({ children, onClick, dashboardCell,
|
|
|
17
17
|
export {
|
|
18
18
|
SpButton
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-ARN5BO7U.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QRQ4RFCB.js";
|
|
5
5
|
|
|
6
6
|
// src/line-chart.tsx
|
|
7
7
|
import { lineChart } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var LineChart = createClientChart(lineChart);
|
|
|
10
10
|
export {
|
|
11
11
|
LineChart
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-B2TSWCF5.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
useOpen,
|
|
4
|
+
useOverlay,
|
|
5
|
+
useTrigger
|
|
6
|
+
} from "./chunk-G3PPUBI5.js";
|
|
7
|
+
import {
|
|
8
|
+
renderUi,
|
|
9
|
+
useUi
|
|
10
|
+
} from "./chunk-DX6FUHGB.js";
|
|
11
|
+
|
|
12
|
+
// src/ui/popover.tsx
|
|
13
|
+
import { uiPopoverView } from "@silverpoint/core/ui";
|
|
14
|
+
import { useRef } from "react";
|
|
15
|
+
import { Fragment, jsxs } from "react/jsx-runtime";
|
|
16
|
+
function SpPopover({ trigger, children, open, defaultOpen, onOpenChange, dashboardCell, ...props }) {
|
|
17
|
+
const [isOpen, set, latest] = useOpen({ open, defaultOpen, onOpenChange });
|
|
18
|
+
const ref = useRef(null);
|
|
19
|
+
useOverlay(ref, "popover", isOpen, set, { place: { side: props.side ?? "bottom", align: props.align ?? "center", offset: props.offset } });
|
|
20
|
+
const view = uiPopoverView(props, useUi(props, dashboardCell), { open: isOpen });
|
|
21
|
+
const popover = renderUi(view, { root: { ref }, close: { onClick: () => set(false) }, slots: { content: children } });
|
|
22
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
23
|
+
useTrigger(trigger, "popover", props.id, latest, set),
|
|
24
|
+
popover
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
SpPopover
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=chunk-BKZ64BZS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/popover.tsx"],"sourcesContent":["import { uiPopoverView, type SpPopoverProps as CoreProps } from '@silverpoint/core/ui';\nimport { useRef, type ReactElement, type ReactNode } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { useOpen, useOverlay, useTrigger, type OverlayOpenProps } from './overlay';\nimport { renderUi } from './render';\n\nexport interface SpPopoverProps extends CoreProps, OverlayOpenProps, UiCellProps {\n /** The element that opens it, cloned with `aria-haspopup`, `aria-expanded` and `aria-controls`; the popover hangs from it. */\n readonly trigger?: ReactElement;\n readonly children?: ReactNode;\n}\n\n/** `SpPopover`: an `auto` popover with the dialog role, placed by `uiAnchor` on open (REQ-492, REQ-493). */\nexport function SpPopover({ trigger, children, open, defaultOpen, onOpenChange, dashboardCell, ...props }: SpPopoverProps) {\n const [isOpen, set, latest] = useOpen({ open, defaultOpen, onOpenChange });\n const ref = useRef<HTMLDivElement>(null);\n useOverlay(ref, 'popover', isOpen, set, { place: { side: props.side ?? 'bottom', align: props.align ?? 'center', offset: props.offset } });\n const view = uiPopoverView(props, useUi(props, dashboardCell), { open: isOpen });\n const popover = renderUi(view, { root: { ref }, close: { onClick: () => set(false) }, slots: { content: children } });\n return (\n <>\n {useTrigger(trigger, 'popover', props.id, latest, set)}\n {popover}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,qBAAuD;AAChE,SAAS,cAAiD;AAmBtD;AAPG,SAAS,UAAU,EAAE,SAAS,UAAU,MAAM,aAAa,cAAc,eAAe,GAAG,MAAM,GAAmB;AACzH,QAAM,CAAC,QAAQ,KAAK,MAAM,IAAI,QAAQ,EAAE,MAAM,aAAa,aAAa,CAAC;AACzE,QAAM,MAAM,OAAuB,IAAI;AACvC,aAAW,KAAK,WAAW,QAAQ,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,QAAQ,UAAU,OAAO,MAAM,SAAS,UAAU,QAAQ,MAAM,OAAO,EAAE,CAAC;AACzI,QAAM,OAAO,cAAc,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,MAAM,OAAO,CAAC;AAC/E,QAAM,UAAU,SAAS,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,SAAS,MAAM,IAAI,KAAK,EAAE,GAAG,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;AACpH,SACE,iCACG;AAAA,eAAW,SAAS,WAAW,MAAM,IAAI,QAAQ,GAAG;AAAA,IACpD;AAAA,KACH;AAEJ;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
createClientChart
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QRQ4RFCB.js";
|
|
5
5
|
|
|
6
6
|
// src/chord-ring.tsx
|
|
7
7
|
import { chordRing } from "@silverpoint/core";
|
|
@@ -10,4 +10,4 @@ var ChordRing = createClientChart(chordRing);
|
|
|
10
10
|
export {
|
|
11
11
|
ChordRing
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-CAFLXUSL.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
renderUi,
|
|
4
|
+
useUi,
|
|
5
|
+
useValue
|
|
6
|
+
} from "./chunk-DX6FUHGB.js";
|
|
7
|
+
|
|
8
|
+
// src/ui/textarea.tsx
|
|
9
|
+
import { uiTextareaView } from "@silverpoint/core/ui";
|
|
10
|
+
import { forwardRef } from "react";
|
|
11
|
+
var SpTextarea = forwardRef(function SpTextarea2({ value, defaultValue, onChange, dashboardCell, ...props }, ref) {
|
|
12
|
+
const [current, set] = useValue(value, defaultValue ?? "", onChange);
|
|
13
|
+
const view = uiTextareaView(props, useUi(props, dashboardCell), { value: current });
|
|
14
|
+
const native = { ref, value: current, onChange: (event) => set(event.target.value) };
|
|
15
|
+
return renderUi(view, { native });
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
SpTextarea
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chunk-CJBZWJTN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ui/textarea.tsx"],"sourcesContent":["import { uiTextareaView, type SpTextareaProps as CoreProps } from '@silverpoint/core/ui';\nimport { forwardRef, type ChangeEvent, type ReactElement } from 'react';\nimport { useUi, useValue, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpTextareaProps 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}\n\n/** `SpTextarea`: a native `<textarea>` on the `SpInput` contract; its ref is the textarea (REQ-484, REQ-488). */\nexport const SpTextarea = forwardRef<HTMLTextAreaElement, SpTextareaProps>(function SpTextarea({ value, defaultValue, onChange, dashboardCell, ...props }, ref) {\n const [current, set] = useValue(value, defaultValue ?? '', onChange);\n const view = uiTextareaView(props, useUi(props, dashboardCell), { value: current });\n const native = { ref, value: current, onChange: (event: ChangeEvent<HTMLTextAreaElement>) => set(event.target.value) };\n return renderUi(view, { native }) as ReactElement;\n});\n"],"mappings":";;;;;;;;AAAA,SAAS,sBAAyD;AAClE,SAAS,kBAAuD;AAazD,IAAM,aAAa,WAAiD,SAASA,YAAW,EAAE,OAAO,cAAc,UAAU,eAAe,GAAG,MAAM,GAAG,KAAK;AAC9J,QAAM,CAAC,SAAS,GAAG,IAAI,SAAS,OAAO,gBAAgB,IAAI,QAAQ;AACnE,QAAM,OAAO,eAAe,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,OAAO,QAAQ,CAAC;AAClF,QAAM,SAAS,EAAE,KAAK,OAAO,SAAS,UAAU,CAAC,UAA4C,IAAI,MAAM,OAAO,KAAK,EAAE;AACrH,SAAO,SAAS,MAAM,EAAE,OAAO,CAAC;AAClC,CAAC;","names":["SpTextarea"]}
|