@xyd-js/components 0.1.0-xyd.5 → 0.1.0-xyd.52
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/.idea/git_toolbox_blame.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/xyd-components.iml +12 -0
- package/CHANGELOG.md +378 -0
- package/LICENSE +21 -0
- package/TODO.md +1 -0
- package/content.ts +0 -2
- package/dist/CTABanner-4mVtgtg1.js +2 -0
- package/dist/CTABanner-4mVtgtg1.js.map +1 -0
- package/dist/CTABanner-8awHx3iq.js +2 -0
- package/dist/CTABanner-8awHx3iq.js.map +1 -0
- package/dist/CTABanner-BW4YN4-n.js +2 -0
- package/dist/CTABanner-BW4YN4-n.js.map +1 -0
- package/dist/CTABanner-C-6auNiO.js +2 -0
- package/dist/CTABanner-C-6auNiO.js.map +1 -0
- package/dist/CTABanner-CUwluXcM.js +2 -0
- package/dist/CTABanner-CUwluXcM.js.map +1 -0
- package/dist/CTABanner-CV8B6kGd.js +2 -0
- package/dist/CTABanner-CV8B6kGd.js.map +1 -0
- package/dist/CTABanner-CYq6zqzK.js +2 -0
- package/dist/CTABanner-CYq6zqzK.js.map +1 -0
- package/dist/CTABanner-CmOPCiBU.js +2 -0
- package/dist/CTABanner-CmOPCiBU.js.map +1 -0
- package/dist/CTABanner-DW0jn0tm.js +2 -0
- package/dist/CTABanner-DW0jn0tm.js.map +1 -0
- package/dist/CTABanner-D_vBSERH.js +2 -0
- package/dist/CTABanner-D_vBSERH.js.map +1 -0
- package/dist/CTABanner-RYtzotAc.js +2 -0
- package/dist/CTABanner-RYtzotAc.js.map +1 -0
- package/dist/CTABanner-d0dU_3UV.js +2 -0
- package/dist/CTABanner-d0dU_3UV.js.map +1 -0
- package/dist/CTABanner-f-kYjXeS.js +2 -0
- package/dist/CTABanner-f-kYjXeS.js.map +1 -0
- package/dist/CTABanner-hl7edywo.js +2 -0
- package/dist/CTABanner-hl7edywo.js.map +1 -0
- package/dist/CTABanner-kg01fEFO.js +2 -0
- package/dist/CTABanner-kg01fEFO.js.map +1 -0
- package/dist/CTABanner-yKuWX36F.js +2 -0
- package/dist/CTABanner-yKuWX36F.js.map +1 -0
- package/dist/CTABanner-zHhZFxmC.js +2 -0
- package/dist/CTABanner-zHhZFxmC.js.map +1 -0
- package/dist/CodeSample-60eygvma.js +2 -0
- package/dist/CodeSample-60eygvma.js.map +1 -0
- package/dist/CodeSample-BOwTybu7.js +2 -0
- package/dist/CodeSample-BOwTybu7.js.map +1 -0
- package/dist/CodeSample-BabNvAXq.js +2 -0
- package/dist/CodeSample-BabNvAXq.js.map +1 -0
- package/dist/CodeSample-BeKAECzE.js +2 -0
- package/dist/CodeSample-BeKAECzE.js.map +1 -0
- package/dist/CodeSample-Bmj6O9cO.js +2 -0
- package/dist/CodeSample-Bmj6O9cO.js.map +1 -0
- package/dist/CodeSample-By1h0pjl.js +2 -0
- package/dist/CodeSample-By1h0pjl.js.map +1 -0
- package/dist/CodeSample-C1A9mpxa.js +2 -0
- package/dist/CodeSample-C1A9mpxa.js.map +1 -0
- package/dist/CodeSample-C8UmShST.js +2 -0
- package/dist/CodeSample-C8UmShST.js.map +1 -0
- package/dist/CodeSample-CirMT2VK.js +2 -0
- package/dist/CodeSample-CirMT2VK.js.map +1 -0
- package/dist/CodeSample-D1cQIpZA.js +2 -0
- package/dist/CodeSample-D1cQIpZA.js.map +1 -0
- package/dist/CodeSample-D8oms9v4.js +2 -0
- package/dist/CodeSample-D8oms9v4.js.map +1 -0
- package/dist/CodeSample-DAYrHZ42.js +2 -0
- package/dist/CodeSample-DAYrHZ42.js.map +1 -0
- package/dist/CodeSample-DV4gehAY.js +2 -0
- package/dist/CodeSample-DV4gehAY.js.map +1 -0
- package/dist/CodeSample-DkfSxkpp.js +2 -0
- package/dist/CodeSample-DkfSxkpp.js.map +1 -0
- package/dist/CodeSample-VlH3bfzC.js +2 -0
- package/dist/CodeSample-VlH3bfzC.js.map +1 -0
- package/dist/CodeSample-dW2vKCd1.js +2 -0
- package/dist/CodeSample-dW2vKCd1.js.map +1 -0
- package/dist/CodeSample-vnPcdu-x.js +2 -0
- package/dist/CodeSample-vnPcdu-x.js.map +1 -0
- package/dist/HomeView-B9Ve1Kuh.js +2 -0
- package/dist/HomeView-B9Ve1Kuh.js.map +1 -0
- package/dist/HomeView-CH5Po1Ed.js +2 -0
- package/dist/HomeView-CH5Po1Ed.js.map +1 -0
- package/dist/HomeView-CL0kAYj1.js +2 -0
- package/dist/HomeView-CL0kAYj1.js.map +1 -0
- package/dist/HomeView-CMvkJdJa.js +2 -0
- package/dist/HomeView-CMvkJdJa.js.map +1 -0
- package/dist/HomeView-CQK9q_tO.js +2 -0
- package/dist/HomeView-CQK9q_tO.js.map +1 -0
- package/dist/HomeView-CTDZ19B3.js +2 -0
- package/dist/HomeView-CTDZ19B3.js.map +1 -0
- package/dist/HomeView-CU-l-tLg.js +2 -0
- package/dist/HomeView-CU-l-tLg.js.map +1 -0
- package/dist/HomeView-CWNvXmSg.js +2 -0
- package/dist/HomeView-CWNvXmSg.js.map +1 -0
- package/dist/HomeView-CdyaQH15.js +2 -0
- package/dist/HomeView-CdyaQH15.js.map +1 -0
- package/dist/HomeView-CzlycqNf.js +2 -0
- package/dist/HomeView-CzlycqNf.js.map +1 -0
- package/dist/HomeView-D0NBPUfo.js +2 -0
- package/dist/HomeView-D0NBPUfo.js.map +1 -0
- package/dist/HomeView-D8G2HjcZ.js +2 -0
- package/dist/HomeView-D8G2HjcZ.js.map +1 -0
- package/dist/HomeView-DGW10Fml.js +2 -0
- package/dist/HomeView-DGW10Fml.js.map +1 -0
- package/dist/HomeView-DgQI-VH2.js +2 -0
- package/dist/HomeView-DgQI-VH2.js.map +1 -0
- package/dist/HomeView-FTlkTnsT.js +2 -0
- package/dist/HomeView-FTlkTnsT.js.map +1 -0
- package/dist/HomeView-hSpU5kot.js +2 -0
- package/dist/HomeView-hSpU5kot.js.map +1 -0
- package/dist/HomeView-vZozpVGs.js +2 -0
- package/dist/HomeView-vZozpVGs.js.map +1 -0
- package/dist/Icon-B2OPWMtK.js +2 -0
- package/dist/Icon-B2OPWMtK.js.map +1 -0
- package/dist/Icon-BRAhu_Eb.js +2 -0
- package/dist/Icon-BRAhu_Eb.js.map +1 -0
- package/dist/Icon-C822nO1R.js +2 -0
- package/dist/Icon-C822nO1R.js.map +1 -0
- package/dist/Icon-CEm2iFxX.js +2 -0
- package/dist/Icon-CEm2iFxX.js.map +1 -0
- package/dist/Icon-CINO4Gs-.js +2 -0
- package/dist/Icon-CINO4Gs-.js.map +1 -0
- package/dist/Icon-CNvRfLaE.js +2 -0
- package/dist/Icon-CNvRfLaE.js.map +1 -0
- package/dist/Icon-CWAF56rs.js +2 -0
- package/dist/Icon-CWAF56rs.js.map +1 -0
- package/dist/Icon-CzVtM54u.js +2 -0
- package/dist/Icon-CzVtM54u.js.map +1 -0
- package/dist/Icon-D-fnSCsP.js +2 -0
- package/dist/Icon-D-fnSCsP.js.map +1 -0
- package/dist/Icon-D4gOtCv9.js +2 -0
- package/dist/Icon-D4gOtCv9.js.map +1 -0
- package/dist/Icon-DP1qesF5.js +2 -0
- package/dist/Icon-DP1qesF5.js.map +1 -0
- package/dist/Icon-DQdRqDU9.js +2 -0
- package/dist/Icon-DQdRqDU9.js.map +1 -0
- package/dist/Icon-Dogc3o95.js +2 -0
- package/dist/Icon-Dogc3o95.js.map +1 -0
- package/dist/Icon-FVBVv2mV.js +2 -0
- package/dist/Icon-FVBVv2mV.js.map +1 -0
- package/dist/Icon-KY6ULovn.js +2 -0
- package/dist/Icon-KY6ULovn.js.map +1 -0
- package/dist/Icon-XgHKz5VO.js +2 -0
- package/dist/Icon-XgHKz5VO.js.map +1 -0
- package/dist/Icon-sBVn0l7I.js +2 -0
- package/dist/Icon-sBVn0l7I.js.map +1 -0
- package/dist/Text-B-0yh8la.js +2 -0
- package/dist/Text-B-0yh8la.js.map +1 -0
- package/dist/Text-BCFz4JU-.js +2 -0
- package/dist/Text-BCFz4JU-.js.map +1 -0
- package/dist/Text-BNiddUr4.js +2 -0
- package/dist/Text-BNiddUr4.js.map +1 -0
- package/dist/Text-Bf364_Q8.js +2 -0
- package/dist/Text-Bf364_Q8.js.map +1 -0
- package/dist/Text-Bxe0mzUL.js +2 -0
- package/dist/Text-Bxe0mzUL.js.map +1 -0
- package/dist/Text-CfVL9URz.js +2 -0
- package/dist/Text-CfVL9URz.js.map +1 -0
- package/dist/Text-ChiAdn4X.js +2 -0
- package/dist/Text-ChiAdn4X.js.map +1 -0
- package/dist/Text-D5uguhzM.js +2 -0
- package/dist/Text-D5uguhzM.js.map +1 -0
- package/dist/Text-D9DhNy4J.js +2 -0
- package/dist/Text-D9DhNy4J.js.map +1 -0
- package/dist/Text-DFWZt4lj.js +2 -0
- package/dist/Text-DFWZt4lj.js.map +1 -0
- package/dist/Text-DGY59P42.js +2 -0
- package/dist/Text-DGY59P42.js.map +1 -0
- package/dist/Text-DfXk3ZuK.js +2 -0
- package/dist/Text-DfXk3ZuK.js.map +1 -0
- package/dist/Text-DwHGYbrw.js +2 -0
- package/dist/Text-DwHGYbrw.js.map +1 -0
- package/dist/Text-DxqdnsZ5.js +2 -0
- package/dist/Text-DxqdnsZ5.js.map +1 -0
- package/dist/Text-K_2YR6jw.js +2 -0
- package/dist/Text-K_2YR6jw.js.map +1 -0
- package/dist/Text-XHfscYPw.js +2 -0
- package/dist/Text-XHfscYPw.js.map +1 -0
- package/dist/Text-b8fT0OYO.js +2 -0
- package/dist/Text-b8fT0OYO.js.map +1 -0
- package/dist/Update-48mkPPHi.js +2 -0
- package/dist/Update-48mkPPHi.js.map +1 -0
- package/dist/Update-6IvrCbUn.js +2 -0
- package/dist/Update-6IvrCbUn.js.map +1 -0
- package/dist/Update-B31SkKLO.js +2 -0
- package/dist/Update-B31SkKLO.js.map +1 -0
- package/dist/Update-BDC6jF5Q.js +2 -0
- package/dist/Update-BDC6jF5Q.js.map +1 -0
- package/dist/Update-BdhhXj2D.js +2 -0
- package/dist/Update-BdhhXj2D.js.map +1 -0
- package/dist/Update-BzuP6PUF.js +2 -0
- package/dist/Update-BzuP6PUF.js.map +1 -0
- package/dist/Update-C-w0Og8S.js +2 -0
- package/dist/Update-C-w0Og8S.js.map +1 -0
- package/dist/Update-CRZyUhwE.js +2 -0
- package/dist/Update-CRZyUhwE.js.map +1 -0
- package/dist/Update-Cmw6WVrs.js +2 -0
- package/dist/Update-Cmw6WVrs.js.map +1 -0
- package/dist/Update-D5pUmk9V.js +2 -0
- package/dist/Update-D5pUmk9V.js.map +1 -0
- package/dist/Update-D7tzid9y.js +2 -0
- package/dist/Update-D7tzid9y.js.map +1 -0
- package/dist/Update-DDQewhuu.js +2 -0
- package/dist/Update-DDQewhuu.js.map +1 -0
- package/dist/Update-DPeHa_01.js +2 -0
- package/dist/Update-DPeHa_01.js.map +1 -0
- package/dist/Update-DUFcLP3-.js +2 -0
- package/dist/Update-DUFcLP3-.js.map +1 -0
- package/dist/Update-DbvzJGdB.js +2 -0
- package/dist/Update-DbvzJGdB.js.map +1 -0
- package/dist/Update-SFXhorqS.js +2 -0
- package/dist/Update-SFXhorqS.js.map +1 -0
- package/dist/Update-b8FT7xsG.js +2 -0
- package/dist/Update-b8FT7xsG.js.map +1 -0
- package/dist/VideoGuide-B0uoxh7k.js +2 -0
- package/dist/VideoGuide-B0uoxh7k.js.map +1 -0
- package/dist/VideoGuide-BELHPOmy.js +2 -0
- package/dist/VideoGuide-BELHPOmy.js.map +1 -0
- package/dist/VideoGuide-BPpz9He-.js +2 -0
- package/dist/VideoGuide-BPpz9He-.js.map +1 -0
- package/dist/VideoGuide-CMURpSE8.js +2 -0
- package/dist/VideoGuide-CMURpSE8.js.map +1 -0
- package/dist/VideoGuide-CXGDgkuc.js +2 -0
- package/dist/VideoGuide-CXGDgkuc.js.map +1 -0
- package/dist/VideoGuide-CXL3G2yS.js +2 -0
- package/dist/VideoGuide-CXL3G2yS.js.map +1 -0
- package/dist/VideoGuide-Cdi9zWS2.js +2 -0
- package/dist/VideoGuide-Cdi9zWS2.js.map +1 -0
- package/dist/VideoGuide-CrW6tvqB.js +2 -0
- package/dist/VideoGuide-CrW6tvqB.js.map +1 -0
- package/dist/VideoGuide-D6TRphry.js +2 -0
- package/dist/VideoGuide-D6TRphry.js.map +1 -0
- package/dist/VideoGuide-DkMriANN.js +2 -0
- package/dist/VideoGuide-DkMriANN.js.map +1 -0
- package/dist/VideoGuide-Ds1vQrb7.js +2 -0
- package/dist/VideoGuide-Ds1vQrb7.js.map +1 -0
- package/dist/VideoGuide-Dyf3clMb.js +2 -0
- package/dist/VideoGuide-Dyf3clMb.js.map +1 -0
- package/dist/VideoGuide-QouYMQx_.js +2 -0
- package/dist/VideoGuide-QouYMQx_.js.map +1 -0
- package/dist/VideoGuide-ZBarZs4D.js +2 -0
- package/dist/VideoGuide-ZBarZs4D.js.map +1 -0
- package/dist/VideoGuide-oYwuE6Lg.js +2 -0
- package/dist/VideoGuide-oYwuE6Lg.js.map +1 -0
- package/dist/VideoGuide-qcVqW6Su.js +2 -0
- package/dist/VideoGuide-qcVqW6Su.js.map +1 -0
- package/dist/VideoGuide-yyBprKvP.js +2 -0
- package/dist/VideoGuide-yyBprKvP.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-B1yJb5Rh.js +4 -0
- package/dist/_rollupPluginBabelHelpers-B1yJb5Rh.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-BaNafudn.js +4 -0
- package/dist/_rollupPluginBabelHelpers-BaNafudn.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-BuF1bLAd.js +4 -0
- package/dist/_rollupPluginBabelHelpers-BuF1bLAd.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-C10TYBta.js +4 -0
- package/dist/_rollupPluginBabelHelpers-C10TYBta.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CV-SOB7x.js +4 -0
- package/dist/_rollupPluginBabelHelpers-CV-SOB7x.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CVesZFRP.js +4 -0
- package/dist/_rollupPluginBabelHelpers-CVesZFRP.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-Ch3Y817m.js +4 -0
- package/dist/_rollupPluginBabelHelpers-Ch3Y817m.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-CxxbOh5W.js +4 -0
- package/dist/_rollupPluginBabelHelpers-CxxbOh5W.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-D19Us8SI.js +4 -0
- package/dist/_rollupPluginBabelHelpers-D19Us8SI.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-D2-m_SFt.js +4 -0
- package/dist/_rollupPluginBabelHelpers-D2-m_SFt.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-D5TiGB2z.js +4 -0
- package/dist/_rollupPluginBabelHelpers-D5TiGB2z.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-D6C3DhAR.js +4 -0
- package/dist/_rollupPluginBabelHelpers-D6C3DhAR.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-IYA2a-lX.js +4 -0
- package/dist/_rollupPluginBabelHelpers-IYA2a-lX.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-IZwOU41g.js +4 -0
- package/dist/_rollupPluginBabelHelpers-IZwOU41g.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-PCuXrt2F.js +4 -0
- package/dist/_rollupPluginBabelHelpers-PCuXrt2F.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-k3SPIMH4.js +4 -0
- package/dist/_rollupPluginBabelHelpers-k3SPIMH4.js.map +1 -0
- package/dist/_rollupPluginBabelHelpers-mdhlT6e0.js +4 -0
- package/dist/_rollupPluginBabelHelpers-mdhlT6e0.js.map +1 -0
- package/dist/brand.d.ts +9 -9
- package/dist/brand.js +1 -1
- package/dist/brand.js.map +1 -1
- package/dist/coder/themes/cosmo-light.js.map +1 -1
- package/dist/coder.d.ts +33 -9
- package/dist/coder.js +1 -1
- package/dist/coder.js.map +1 -1
- package/dist/content.d.ts +260 -171
- package/dist/content.js +1 -1
- package/dist/content.js.map +1 -1
- package/dist/index.css +267 -137
- package/dist/layouts.d.ts +23 -14
- package/dist/layouts.js +1 -1
- package/dist/layouts.js.map +1 -1
- package/dist/pages.js +1 -1
- package/dist/pages.js.map +1 -1
- package/dist/system.d.ts +10 -0
- package/dist/system.js +2 -0
- package/dist/system.js.map +1 -0
- package/dist/tslib.es6-2HddmpXk.js +2 -0
- package/dist/{tslib.es6-BS8I3nP0.js.map → tslib.es6-2HddmpXk.js.map} +1 -1
- package/dist/tslib.es6-B3WQO7bC.js +2 -0
- package/dist/{tslib.es6-DNz-U5oh.js.map → tslib.es6-B3WQO7bC.js.map} +1 -1
- package/dist/tslib.es6-B4LqmUlh.js +2 -0
- package/dist/{tslib.es6-BJOaQ_lJ.js.map → tslib.es6-B4LqmUlh.js.map} +1 -1
- package/dist/tslib.es6-BJtAe2Ef.js +2 -0
- package/dist/tslib.es6-BJtAe2Ef.js.map +1 -0
- package/dist/tslib.es6-BUCTXb7p.js +2 -0
- package/dist/tslib.es6-BUCTXb7p.js.map +1 -0
- package/dist/tslib.es6-BVagjPgu.js +2 -0
- package/dist/tslib.es6-BVagjPgu.js.map +1 -0
- package/dist/tslib.es6-Baxakhew.js +2 -0
- package/dist/tslib.es6-Baxakhew.js.map +1 -0
- package/dist/tslib.es6-BeaYjpg4.js +2 -0
- package/dist/tslib.es6-BeaYjpg4.js.map +1 -0
- package/dist/tslib.es6-C5x7jiZr.js +2 -0
- package/dist/tslib.es6-C5x7jiZr.js.map +1 -0
- package/dist/tslib.es6-CGuo9hNf.js +2 -0
- package/dist/tslib.es6-CGuo9hNf.js.map +1 -0
- package/dist/tslib.es6-CaUFBY2d.js +2 -0
- package/dist/tslib.es6-CaUFBY2d.js.map +1 -0
- package/dist/tslib.es6-CiOfWANY.js +2 -0
- package/dist/tslib.es6-CiOfWANY.js.map +1 -0
- package/dist/tslib.es6-D6Dmrhuy.js +2 -0
- package/dist/tslib.es6-D6Dmrhuy.js.map +1 -0
- package/dist/tslib.es6-DS8w8jUy.js +2 -0
- package/dist/tslib.es6-DS8w8jUy.js.map +1 -0
- package/dist/tslib.es6-DhpaRs87.js +2 -0
- package/dist/tslib.es6-DhpaRs87.js.map +1 -0
- package/dist/tslib.es6-Y3-sJK9A.js +2 -0
- package/dist/tslib.es6-Y3-sJK9A.js.map +1 -0
- package/dist/tslib.es6-iVzSobQR.js +2 -0
- package/dist/tslib.es6-iVzSobQR.js.map +1 -0
- package/dist/views.js +1 -1
- package/dist/writer.d.ts +427 -53
- package/dist/writer.js +1 -1
- package/dist/writer.js.map +1 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +22 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1640 -0
- package/docs/functions/GuideCard.html +6 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +2 -0
- package/docs/interfaces/GuideCardProps.html +18 -0
- package/docs/modules.html +1 -0
- package/index.ts +0 -1
- package/package.json +16 -20
- package/project.json +677 -0
- package/rollup.config.js +32 -3
- package/src/brand/Button/Button.styles.tsx +28 -0
- package/src/brand/Button/Button.tsx +3 -35
- package/src/brand/CTABanner/CTABanner.styles.tsx +80 -0
- package/src/brand/CTABanner/CTABanner.tsx +34 -112
- package/src/brand/Footer/Footer.styles.tsx +18 -0
- package/src/brand/Footer/Footer.tsx +4 -24
- package/src/brand/TODO.md +1 -0
- package/src/coder/Code/Code.styles.tsx +134 -35
- package/src/coder/Code/Code.tsx +131 -43
- package/src/coder/Code/CodeLoader.tsx +10 -0
- package/src/coder/Code/annotations.tsx +28 -8
- package/src/coder/Code/highlight.ts +38 -0
- package/src/coder/Code/index.ts +6 -2
- package/src/coder/CodeCopy/{CodeCopy.style.tsx → CodeCopy.styles.tsx} +6 -6
- package/src/coder/CodeCopy/CodeCopy.tsx +6 -6
- package/src/coder/CodeSample/CodeSample.tsx +87 -19
- package/src/coder/CodeTabs/CodeTabs.styles.tsx +98 -66
- package/src/coder/CodeTabs/CodeTabs.tsx +78 -47
- package/src/coder/CodeTheme/CodeTheme.tsx +89 -48
- package/src/coder/CodeTheme/index.ts +0 -1
- package/src/coder/CoderProvider.tsx +26 -0
- package/src/coder/hooks/highlight.ts +182 -0
- package/src/coder/index.ts +11 -7
- package/src/content/ContentDecoator.styles.tsx +113 -0
- package/src/content/ContentDecorator.tsx +17 -0
- package/src/content/GridDecorator.styles.tsx +67 -0
- package/src/content/GridDecorator.tsx +21 -0
- package/src/content/ReactContent.tsx +575 -0
- package/src/content/index.ts +10 -2
- package/src/icons/index.ts +0 -0
- package/src/kit/Loader/Loader.styles.tsx +53 -0
- package/src/kit/Loader/Loader.tsx +22 -0
- package/src/kit/TODO.md +2 -0
- package/src/kit/index.ts +1 -0
- package/src/layouts/LayoutPrimary/LayoutPrimary.styles.tsx +305 -0
- package/src/layouts/LayoutPrimary/LayoutPrimary.tsx +237 -0
- package/src/layouts/LayoutPrimary/index.ts +3 -0
- package/src/layouts/index.ts +2 -3
- package/src/pages/HomePage/HomePage.styles.tsx +16 -0
- package/src/pages/HomePage/HomePage.tsx +7 -21
- package/src/pages/TODO.md +1 -0
- package/src/system/SearchButton/SearchButton.styles.tsx +86 -0
- package/src/system/SearchButton/SearchButton.tsx +116 -0
- package/src/system/SearchButton/index.ts +1 -0
- package/src/system/index.ts +1 -0
- package/src/utils/useStyle.ts +19 -0
- package/src/views/HomeView/HomeView.styles.tsx +37 -0
- package/src/views/HomeView/HomeView.tsx +5 -45
- package/src/views/TODO.md +1 -0
- package/src/writer/Anchor/Anchor.styles.tsx +11 -0
- package/src/writer/Anchor/Anchor.tsx +51 -0
- package/src/writer/Anchor/index.tsx +1 -0
- package/src/writer/Badge/Badge.styles.tsx +39 -28
- package/src/writer/Badge/Badge.tsx +37 -20
- package/src/writer/Banner/Banner.styles.tsx +91 -0
- package/src/writer/Banner/Banner.tsx +70 -0
- package/src/writer/Banner/index.ts +1 -0
- package/src/writer/Blockquote/Blockquote.styles.tsx +4 -4
- package/src/writer/Blockquote/Blockquote.tsx +6 -3
- package/src/writer/Breadcrumbs/Breadcrumbs.styles.ts +22 -21
- package/src/writer/Breadcrumbs/Breadcrumbs.tsx +19 -13
- package/src/writer/Button/Button.styles.tsx +137 -0
- package/src/writer/Button/Button.tsx +75 -0
- package/src/writer/Button/index.ts +2 -0
- package/src/writer/Callout/Callout.styles.tsx +29 -40
- package/src/writer/Callout/Callout.tsx +31 -16
- package/src/writer/Card/Card.styles.tsx +47 -0
- package/src/writer/Card/Card.tsx +69 -0
- package/src/writer/Card/index.ts +1 -0
- package/src/writer/Code/Code.styles.tsx +10 -11
- package/src/writer/Code/Code.tsx +7 -4
- package/src/writer/ColorSchemeButton/ColorSchemeButton.tsx +172 -0
- package/src/writer/ColorSchemeButton/index.ts +1 -0
- package/src/writer/Details/Details.styles.tsx +85 -68
- package/src/writer/Details/Details.tsx +83 -46
- package/src/writer/Example/index.tsx +5 -0
- package/src/writer/GuideCard/GuideCard.styles.tsx +108 -107
- package/src/writer/GuideCard/GuideCard.tsx +72 -37
- package/src/writer/Heading/Heading.styles.tsx +69 -49
- package/src/writer/Heading/Heading.tsx +92 -22
- package/src/writer/Hr/Hr.styles.tsx +5 -5
- package/src/writer/Hr/Hr.tsx +3 -6
- package/src/writer/Icon/Icon.tsx +48 -0
- package/src/writer/Icon/index.ts +1 -0
- package/src/writer/Image/Image.styles.tsx +9 -0
- package/src/writer/Image/Image.tsx +19 -0
- package/src/writer/Image/index.ts +1 -0
- package/src/writer/List/List.styles.tsx +47 -0
- package/src/writer/List/List.tsx +29 -0
- package/src/writer/List/index.ts +4 -0
- package/src/writer/NavLinks/NavLinks.styles.ts +23 -23
- package/src/writer/NavLinks/NavLinks.tsx +66 -19
- package/src/writer/Pre/Pre.styles.tsx +5 -5
- package/src/writer/Pre/Pre.tsx +4 -3
- package/src/writer/Steps/Steps.styles.tsx +14 -12
- package/src/writer/Steps/Steps.tsx +39 -10
- package/src/writer/Table/Table.styles.tsx +62 -30
- package/src/writer/Table/Table.tsx +121 -11
- package/src/writer/Table/index.ts +0 -7
- package/src/writer/Tabs/Tabs.styles.tsx +63 -70
- package/src/writer/Tabs/Tabs.tsx +31 -29
- package/src/writer/Text/Text.styles.tsx +66 -0
- package/src/writer/Text/Text.tsx +79 -0
- package/src/writer/Text/index.ts +3 -0
- package/src/writer/TocCard/TocCard.module.css +44 -0
- package/src/writer/TocCard/TocCard.tsx +42 -0
- package/src/writer/TocCard/index.ts +3 -0
- package/src/writer/UnderlineNav/Tabs.tsx +51 -0
- package/src/writer/UnderlineNav/TabsPrimary.styles.tsx +184 -0
- package/src/writer/UnderlineNav/TabsPrimary.tsx +209 -0
- package/src/writer/UnderlineNav/TabsSecondary.styles.tsx +77 -0
- package/src/writer/UnderlineNav/TabsSecondary.tsx +171 -0
- package/src/writer/UnderlineNav/UnderlineNav.styles.tsx +181 -45
- package/src/writer/UnderlineNav/UnderlineNav.tsx +258 -23
- package/src/writer/UnderlineNav/index.ts +2 -1
- package/src/writer/UnderlineNav/useValueChange.ts +60 -0
- package/src/writer/Update/Update.styles.tsx +33 -0
- package/src/writer/Update/Update.tsx +37 -0
- package/src/writer/Update/index.ts +1 -0
- package/src/writer/VideoGuide/VideoGuide.module.css +105 -0
- package/src/writer/VideoGuide/VideoGuide.tsx +75 -0
- package/src/writer/VideoGuide/index.ts +1 -0
- package/src/writer/index.ts +23 -1
- package/tsconfig.json +11 -6
- package/types.d.ts +50 -0
- package/writer.ts +1 -1
- package/dist/CTABanner-B-metiuR.js +0 -2
- package/dist/CTABanner-B-metiuR.js.map +0 -1
- package/dist/CTABanner-BytLRAOg.js +0 -2
- package/dist/CTABanner-BytLRAOg.js.map +0 -1
- package/dist/CTABanner-hcWUnRIm.js +0 -2
- package/dist/CTABanner-hcWUnRIm.js.map +0 -1
- package/dist/CodeSample-Bkdm9TLb.js +0 -2
- package/dist/CodeSample-Bkdm9TLb.js.map +0 -1
- package/dist/CodeSample-Bt6WJOYx.js +0 -2
- package/dist/CodeSample-Bt6WJOYx.js.map +0 -1
- package/dist/CodeSample-D-bGz40b.js +0 -2
- package/dist/CodeSample-D-bGz40b.js.map +0 -1
- package/dist/HomeView-C70Vzl0K.js +0 -2
- package/dist/HomeView-C70Vzl0K.js.map +0 -1
- package/dist/HomeView-DA0hRPl2.js +0 -2
- package/dist/HomeView-DA0hRPl2.js.map +0 -1
- package/dist/HomeView-sbl_99l1.js +0 -2
- package/dist/HomeView-sbl_99l1.js.map +0 -1
- package/dist/UnderlineNav-3vpnAIF7.js +0 -2
- package/dist/UnderlineNav-3vpnAIF7.js.map +0 -1
- package/dist/UnderlineNav-CnSXtQ0o.js +0 -2
- package/dist/UnderlineNav-CnSXtQ0o.js.map +0 -1
- package/dist/UnderlineNav-hAt4ieuk.js +0 -2
- package/dist/UnderlineNav-hAt4ieuk.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-CdarGYFF.js +0 -2
- package/dist/_rollupPluginBabelHelpers-CdarGYFF.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-DNCsaSlj.js +0 -2
- package/dist/_rollupPluginBabelHelpers-DNCsaSlj.js.map +0 -1
- package/dist/_rollupPluginBabelHelpers-Dyp77Dty.js +0 -2
- package/dist/_rollupPluginBabelHelpers-Dyp77Dty.js.map +0 -1
- package/dist/index-Bj8cSv3b.js +0 -2
- package/dist/index-Bj8cSv3b.js.map +0 -1
- package/dist/index-ByyyJDhj.js +0 -2
- package/dist/index-ByyyJDhj.js.map +0 -1
- package/dist/index-DcT-QJgO.js +0 -2
- package/dist/index-DcT-QJgO.js.map +0 -1
- package/dist/tslib.es6-BJOaQ_lJ.js +0 -2
- package/dist/tslib.es6-BS8I3nP0.js +0 -2
- package/dist/tslib.es6-DNz-U5oh.js +0 -2
- package/src/content/Anchor/Anchor.tsx +0 -63
- package/src/content/Anchor/index.tsx +0 -3
- package/src/content/Content/Content.tsx +0 -21
- package/src/content/Content/index.tsx +0 -3
- package/src/content/Content.tsx +0 -171
- package/src/content/Subtitle/Subtitle.tsx +0 -21
- package/src/content/Subtitle/index.tsx +0 -3
- package/src/layouts/Layout.styles.tsx +0 -151
- package/src/layouts/Layout.tsx +0 -121
- package/src/writer/Icon/index.tsx +0 -342
package/src/writer/Pre/Pre.tsx
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import * as cn from "./Pre.styles"
|
|
4
4
|
|
|
5
5
|
export interface PreProps {
|
|
6
6
|
children: React.ReactNode
|
|
7
|
+
className?: string
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
export function Pre({children}: PreProps) {
|
|
10
|
-
return <pre className={
|
|
10
|
+
export function Pre({ children, className }: PreProps) {
|
|
11
|
+
return <pre className={`${cn.PreHost} ${className || ""}`}>
|
|
11
12
|
{children}
|
|
12
13
|
</pre>
|
|
13
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {css} from "@linaria/core";
|
|
2
2
|
|
|
3
|
-
export const
|
|
4
|
-
|
|
3
|
+
export const StepsHost = css`
|
|
4
|
+
@layer defaults {
|
|
5
5
|
padding-left: 0;
|
|
6
6
|
list-style: none;
|
|
7
7
|
counter-reset: ordered-listitem;
|
|
@@ -9,11 +9,13 @@ export const $steps = {
|
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
gap: 6px;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
export const StepsLi = css`
|
|
16
|
+
@layer defaults {
|
|
14
17
|
padding-left: 32px;
|
|
15
18
|
position: relative;
|
|
16
|
-
line-height: 1.5;
|
|
17
19
|
|
|
18
20
|
&::after {
|
|
19
21
|
position: absolute;
|
|
@@ -22,15 +24,15 @@ export const $steps = {
|
|
|
22
24
|
counter-increment: ordered-listitem;
|
|
23
25
|
content: counter(ordered-listitem);
|
|
24
26
|
|
|
25
|
-
background:
|
|
26
|
-
color:
|
|
27
|
-
font-size:
|
|
28
|
-
line-height:
|
|
29
|
-
font-weight:
|
|
27
|
+
background: var(--xyd-steps-marker-bgcolor);
|
|
28
|
+
color: var(--xyd-steps-marker-color);
|
|
29
|
+
font-size: var(--xyd-font-size-xsmall);
|
|
30
|
+
line-height: var(--xyd-line-height-medium);
|
|
31
|
+
font-weight: var(--xyd-font-weight-medium);
|
|
30
32
|
text-align: center;
|
|
31
33
|
height: 24px;
|
|
32
34
|
width: 24px;
|
|
33
35
|
border-radius: 12px;
|
|
34
36
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
@@ -1,24 +1,53 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import * as cn from "./Steps.styles";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Props for the Steps component
|
|
7
|
+
*/
|
|
5
8
|
export interface StepsProps {
|
|
9
|
+
/** Content to be rendered inside the steps list */
|
|
6
10
|
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</ol>
|
|
12
|
+
/** Optional CSS class name to be applied to the steps container */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
13
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Steps component that renders a numbered list of steps or stages.
|
|
18
|
+
* Use this component to display a sequence of steps in a process or workflow.
|
|
19
|
+
*
|
|
20
|
+
* @category Component
|
|
21
|
+
*/
|
|
22
|
+
export function Steps({ children, className }: StepsProps) {
|
|
23
|
+
return <xyd-steps>
|
|
24
|
+
<ol className={`${cn.StepsHost} ${className || ""}`}>
|
|
25
|
+
{children}
|
|
26
|
+
</ol>
|
|
27
|
+
</xyd-steps>
|
|
14
28
|
}
|
|
15
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Props for the Steps.Item component
|
|
32
|
+
*/
|
|
16
33
|
export interface StepsItemProps {
|
|
34
|
+
/** Content to be rendered inside the step item */
|
|
17
35
|
children: React.ReactNode;
|
|
36
|
+
|
|
37
|
+
/** Optional CSS class name to be applied to the step item */
|
|
38
|
+
className?: string;
|
|
18
39
|
}
|
|
19
40
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Individual step item component that represents a single step in the sequence.
|
|
43
|
+
* This component should be used as a child of the Steps component.
|
|
44
|
+
*
|
|
45
|
+
* @category Component
|
|
46
|
+
*/
|
|
47
|
+
Steps.Item = function StepsItem({ children, className }: StepsItemProps) {
|
|
48
|
+
return <xyd-steps-item>
|
|
49
|
+
<li className={`${cn.StepsLi} ${className || ""}`}>
|
|
50
|
+
{children}
|
|
51
|
+
</li>
|
|
52
|
+
</xyd-steps-item>
|
|
24
53
|
}
|
|
@@ -1,39 +1,71 @@
|
|
|
1
1
|
import {css} from "@linaria/core";
|
|
2
2
|
|
|
3
|
-
const colors = {
|
|
4
|
-
primary: "#D1D5DB"
|
|
5
|
-
}
|
|
6
3
|
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
export default {
|
|
5
|
+
Host: css`
|
|
6
|
+
@layer defaults {
|
|
7
|
+
display: table;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-width: 640px; // Ensures table doesn't get too squished
|
|
10
|
+
border-collapse: separate;
|
|
11
|
+
border-spacing: 0;
|
|
12
|
+
border: 1px solid var(--xyd-table-border-color);
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
margin-top: 1rem;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
14
17
|
`,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
Thead: css`
|
|
19
|
+
@layer defaults {
|
|
20
|
+
background: var(--xyd-table-bgcolor);
|
|
21
|
+
}
|
|
22
|
+
`,
|
|
23
|
+
Tbody: css`
|
|
24
|
+
|
|
25
|
+
`,
|
|
26
|
+
Th: css`
|
|
27
|
+
@layer defaults {
|
|
28
|
+
text-align: left;
|
|
29
|
+
font-weight: var(--xyd-font-weight-medium);
|
|
30
|
+
padding: 0.5rem 1rem;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
vertical-align: middle;
|
|
33
|
+
color: var(--xyd-table-color);
|
|
34
|
+
border-bottom: 1px solid var(--xyd-table-border-color);
|
|
35
|
+
border-right: 1px solid var(--xyd-table-border-color);
|
|
36
|
+
}
|
|
23
37
|
`,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
38
|
+
Tr: css`
|
|
39
|
+
@layer defaults {
|
|
40
|
+
&:not(:last-child) {
|
|
41
|
+
border-bottom: 1px solid var(--xyd-table-border-color);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
29
44
|
`,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
45
|
+
Td: css`
|
|
46
|
+
@layer defaults {
|
|
47
|
+
padding: 0.5rem 1rem;
|
|
48
|
+
vertical-align: middle;
|
|
49
|
+
border-top: 1px solid var(--xyd-table-border-color);
|
|
50
|
+
border-right: 1px solid var(--xyd-table-border-color);
|
|
33
51
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
52
|
+
@media (max-width: 768px) {
|
|
53
|
+
padding: 0.5rem;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`,
|
|
57
|
+
Cell: css`
|
|
58
|
+
@layer defaults {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: baseline;
|
|
61
|
+
width: 100%;
|
|
62
|
+
gap: 0.5rem;
|
|
38
63
|
|
|
64
|
+
[part="child"] {
|
|
65
|
+
flex: 1;
|
|
66
|
+
text-align: right;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`
|
|
70
|
+
}
|
|
39
71
|
|
|
@@ -1,45 +1,155 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import cn from "./Table.styles";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Props for the Table component
|
|
7
|
+
*/
|
|
5
8
|
export interface TableProps {
|
|
9
|
+
/** The content to be rendered inside the table */
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
|
|
12
|
+
/** Optional CSS class name to be applied to the table */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A table component that provides a structured way to display tabular data.
|
|
18
|
+
* It supports custom styling through className prop and can contain various table elements.
|
|
19
|
+
*
|
|
20
|
+
* @category Component
|
|
21
|
+
*/
|
|
22
|
+
export function Table({ children, className }: TableProps) {
|
|
23
|
+
return (
|
|
24
|
+
<table className={`${cn.Host} ${className || ''}`}>
|
|
25
|
+
{children}
|
|
26
|
+
</table>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Props for the TableHead component
|
|
32
|
+
*/
|
|
33
|
+
export interface TableHeadProps {
|
|
34
|
+
/** The content to be rendered inside the table header */
|
|
6
35
|
children: React.ReactNode;
|
|
7
36
|
}
|
|
8
37
|
|
|
9
|
-
|
|
10
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Represents the header section of a table.
|
|
40
|
+
* Use this component to group header content at the top of the table.
|
|
41
|
+
*/
|
|
42
|
+
Table.Head = function TableHead({ children }: TableHeadProps) {
|
|
43
|
+
return <thead className={cn.Thead}>
|
|
11
44
|
{children}
|
|
12
|
-
</
|
|
45
|
+
</thead>
|
|
13
46
|
}
|
|
14
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Props for the TableTh component
|
|
50
|
+
*/
|
|
15
51
|
export interface TableThProps {
|
|
52
|
+
/** The content to be rendered inside the table header cell */
|
|
16
53
|
children: React.ReactNode;
|
|
54
|
+
|
|
55
|
+
/** Whether the cell content should be right-aligned (for numeric values) */
|
|
56
|
+
numeric?: boolean;
|
|
17
57
|
}
|
|
18
58
|
|
|
19
|
-
|
|
20
|
-
|
|
59
|
+
/**
|
|
60
|
+
* Represents a header cell in the table.
|
|
61
|
+
* Use this component for column headers in the table.
|
|
62
|
+
*/
|
|
63
|
+
Table.Th = function TableTh({ children, numeric }: TableThProps) {
|
|
64
|
+
return <th className={`${cn.Th} ${numeric ? 'numeric' : ''}`}>
|
|
21
65
|
{children}
|
|
22
66
|
</th>
|
|
23
67
|
}
|
|
24
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Props for the TableTr component
|
|
71
|
+
*/
|
|
25
72
|
export interface TableTrProps {
|
|
73
|
+
/** The content to be rendered inside the table row */
|
|
26
74
|
children: React.ReactNode;
|
|
27
75
|
}
|
|
28
76
|
|
|
29
|
-
|
|
30
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Represents a row in the table.
|
|
79
|
+
* Use this component to create rows in the table body or header.
|
|
80
|
+
*/
|
|
81
|
+
Table.Tr = function TableTr({ children }: TableTrProps) {
|
|
82
|
+
return <tr className={cn.Tr}>
|
|
31
83
|
{children}
|
|
32
84
|
</tr>
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Props for the TableBody component
|
|
89
|
+
*/
|
|
90
|
+
export interface TableBodyProps {
|
|
91
|
+
/** The content to be rendered inside the table body */
|
|
92
|
+
children: React.ReactNode;
|
|
93
|
+
}
|
|
33
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Represents the main content area of the table.
|
|
97
|
+
* Use this component to group the main content rows of the table.
|
|
98
|
+
*/
|
|
99
|
+
Table.Body = function TableBody({ children }: TableBodyProps) {
|
|
100
|
+
return <tbody className={cn.Tbody}>
|
|
101
|
+
{children}
|
|
102
|
+
</tbody>
|
|
34
103
|
}
|
|
35
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Props for the TableTd component
|
|
107
|
+
*/
|
|
36
108
|
export interface TableTdProps {
|
|
109
|
+
/** The content to be rendered inside the table cell */
|
|
37
110
|
children: React.ReactNode;
|
|
111
|
+
|
|
112
|
+
/** Whether the cell content should be right-aligned (for numeric values) */
|
|
113
|
+
numeric?: boolean;
|
|
114
|
+
|
|
115
|
+
/** Whether the cell should have a muted appearance */
|
|
116
|
+
muted?: boolean;
|
|
38
117
|
}
|
|
39
118
|
|
|
40
|
-
|
|
41
|
-
|
|
119
|
+
/**
|
|
120
|
+
* Represents a data cell in the table.
|
|
121
|
+
* Use this component for regular data cells in the table body.
|
|
122
|
+
*/
|
|
123
|
+
Table.Td = function TableTd({ children, numeric, muted }: TableTdProps) {
|
|
124
|
+
return <td className={`${cn.Td} ${numeric ? 'numeric' : ''} ${muted ? 'muted' : ''}`}>
|
|
42
125
|
{children}
|
|
43
126
|
</td>
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Props for the TableCell component
|
|
131
|
+
*/
|
|
132
|
+
export interface TableCellProps {
|
|
133
|
+
/** The content to be rendered inside the table cell */
|
|
134
|
+
children: React.ReactNode;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* A custom table cell component that wraps content in a div with specific styling.
|
|
139
|
+
* Use this component when you need a custom-styled cell with additional structure.
|
|
140
|
+
*/
|
|
141
|
+
Table.Cell = function TableCell({ children }: TableCellProps) {
|
|
142
|
+
return <xyd-table-cell className={cn.Cell}>
|
|
143
|
+
<div part="child">
|
|
144
|
+
{children}
|
|
145
|
+
</div>
|
|
146
|
+
</xyd-table-cell>
|
|
147
|
+
}
|
|
44
148
|
|
|
45
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Props for the TableModelCell component
|
|
151
|
+
*/
|
|
152
|
+
export interface TableModelCellProps {
|
|
153
|
+
/** The content to be rendered inside the model cell */
|
|
154
|
+
children: React.ReactNode;
|
|
155
|
+
}
|
|
@@ -1,77 +1,70 @@
|
|
|
1
1
|
import {css} from "@linaria/core";
|
|
2
2
|
|
|
3
|
-
export const
|
|
4
|
-
|
|
3
|
+
export const TabsSampleHost = css`
|
|
4
|
+
@layer defaults {
|
|
5
|
+
display: block;
|
|
5
6
|
position: relative;
|
|
6
7
|
max-width: 100%;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
`,
|
|
23
|
-
icon: css`
|
|
24
|
-
width: 16px;
|
|
25
|
-
height: 16px;
|
|
26
|
-
`
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const $scroller = {
|
|
30
|
-
host: css`
|
|
31
|
-
overflow-x: auto;
|
|
32
|
-
flex-grow: 1;
|
|
33
|
-
`,
|
|
34
|
-
container: css`
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
gap: 4px;
|
|
37
|
-
|
|
38
|
-
border-radius: 8px;
|
|
39
|
-
background-color: #F3F4F6;
|
|
40
|
-
|
|
41
|
-
padding: 4px;
|
|
42
|
-
margin-left: 4px;
|
|
43
|
-
`
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export const $button = {
|
|
47
|
-
host: css`
|
|
48
|
-
padding: 0.5rem 1rem;
|
|
49
|
-
|
|
50
|
-
border-radius: 0.375rem;
|
|
51
|
-
font-size: 0.875rem;
|
|
52
|
-
line-height: 1.25rem;
|
|
53
|
-
font-weight: 500;
|
|
54
|
-
white-space: nowrap;
|
|
55
|
-
|
|
56
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
57
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
58
|
-
transition-duration: 300ms;
|
|
59
|
-
|
|
60
|
-
color: #6B7280;
|
|
61
|
-
|
|
62
|
-
&:hover {
|
|
63
|
-
color: #111827;
|
|
8
|
+
|
|
9
|
+
[part="buttons"] {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[part="arrow"] {
|
|
15
|
+
padding: 8px;
|
|
16
|
+
background-color: var(--xyd-tabs-arrow-bgcolor);
|
|
17
|
+
box-shadow: 0 1px 2px 0 var(--xyd-tabs-shadow-color--active);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[part="arrow-icon"] {
|
|
21
|
+
width: 16px;
|
|
22
|
+
height: 16px;
|
|
64
23
|
}
|
|
65
24
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
25
|
+
[part="scroller"] {
|
|
26
|
+
overflow-x: auto;
|
|
27
|
+
flex-grow: 1;
|
|
70
28
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
29
|
+
|
|
30
|
+
[part="scroller-container"] {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
gap: 4px;
|
|
33
|
+
|
|
34
|
+
border-radius: 8px;
|
|
35
|
+
background-color: var(--xyd-tabs-bgcolor);
|
|
36
|
+
|
|
37
|
+
padding: 4px;
|
|
38
|
+
margin-left: 4px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[part="button"] {
|
|
42
|
+
padding: 5px 16px;
|
|
43
|
+
|
|
44
|
+
border-radius: 0.375rem;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
|
|
47
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
48
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
49
|
+
transition-duration: 300ms;
|
|
50
|
+
|
|
51
|
+
color: var(--xyd-tabs-color);
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
color: var(--xyd-tabs-color--active);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-state="active"] {
|
|
58
|
+
color: var(--xyd-tabs-color--active);
|
|
59
|
+
background-color: var(--xyd-tabs-bgcolor--active);
|
|
60
|
+
box-shadow: 0 1px 2px 0 var(--xyd-tabs-shadow-color--active);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[part="content"] {
|
|
65
|
+
margin-top: 16px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
|
package/src/writer/Tabs/Tabs.tsx
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import React, {useState, useRef, useEffect} from 'react'
|
|
2
|
-
import
|
|
3
|
-
import {ChevronLeft, ChevronRight} from "lucide-react"
|
|
1
|
+
import React, { useState, useRef, useEffect } from 'react'
|
|
2
|
+
import {Tabs as RadixTabs} from "radix-ui"; // TODO: remove and use separation
|
|
3
|
+
import { ChevronLeft, ChevronRight } from "lucide-react"
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
$sample,
|
|
7
|
-
$arrow,
|
|
8
|
-
$scroller,
|
|
9
|
-
$button
|
|
10
|
-
} from "./Tabs.styles";
|
|
5
|
+
import * as cn from "./Tabs.styles";
|
|
11
6
|
|
|
12
7
|
export interface TabsProps {
|
|
13
8
|
children: React.ReactNode;
|
|
14
9
|
items: string[];
|
|
15
10
|
tabIndex?: number;
|
|
11
|
+
className?: string;
|
|
16
12
|
}
|
|
17
13
|
|
|
18
|
-
export function Tabs({children, items, tabIndex}: TabsProps) {
|
|
14
|
+
export function Tabs({ children, items, tabIndex, className }: TabsProps) {
|
|
19
15
|
const [showLeftArrow, setShowLeftArrow] = useState(false)
|
|
20
16
|
const [showRightArrow, setShowRightArrow] = useState(false)
|
|
21
17
|
const scrollContainerRef = useRef<HTMLDivElement>(null)
|
|
@@ -24,7 +20,7 @@ export function Tabs({children, items, tabIndex}: TabsProps) {
|
|
|
24
20
|
|
|
25
21
|
const handleScroll = () => {
|
|
26
22
|
if (scrollContainerRef.current) {
|
|
27
|
-
const {scrollLeft, scrollWidth, clientWidth} = scrollContainerRef.current
|
|
23
|
+
const { scrollLeft, scrollWidth, clientWidth } = scrollContainerRef.current
|
|
28
24
|
setShowLeftArrow(scrollLeft > 0)
|
|
29
25
|
setShowRightArrow(scrollLeft < scrollWidth - clientWidth)
|
|
30
26
|
}
|
|
@@ -39,33 +35,37 @@ export function Tabs({children, items, tabIndex}: TabsProps) {
|
|
|
39
35
|
const scroll = (direction: 'left' | 'right') => {
|
|
40
36
|
if (scrollContainerRef.current) {
|
|
41
37
|
const scrollAmount = direction === 'left' ? -200 : 200
|
|
42
|
-
scrollContainerRef.current.scrollBy({left: scrollAmount, behavior: 'smooth'})
|
|
38
|
+
scrollContainerRef.current.scrollBy({ left: scrollAmount, behavior: 'smooth' })
|
|
43
39
|
}
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
return (
|
|
47
43
|
<RadixTabs.Root asChild value={value} onValueChange={setActiveTab}>
|
|
48
|
-
<
|
|
49
|
-
|
|
44
|
+
<xyd-tabs
|
|
45
|
+
className={`${cn.TabsSampleHost} ${className || ""}`}
|
|
46
|
+
>
|
|
47
|
+
<div part="buttons">
|
|
50
48
|
{showLeftArrow && (
|
|
51
49
|
<button
|
|
52
50
|
onClick={() => scroll('left')}
|
|
53
|
-
|
|
51
|
+
part="arrow"
|
|
54
52
|
>
|
|
55
|
-
<ChevronLeft
|
|
53
|
+
<ChevronLeft part="arrow-icon" />
|
|
56
54
|
</button>
|
|
57
55
|
)}
|
|
58
56
|
|
|
59
57
|
<div
|
|
60
58
|
ref={scrollContainerRef}
|
|
61
59
|
onScroll={handleScroll}
|
|
62
|
-
|
|
60
|
+
part="scroller"
|
|
63
61
|
>
|
|
64
|
-
<div
|
|
62
|
+
<div
|
|
63
|
+
part="scroller-container"
|
|
64
|
+
>
|
|
65
65
|
<RadixTabs.List>
|
|
66
|
-
{items.map((item, index) =>
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
{items.map((item, index) => <$TabsItem key={index} value={item}>
|
|
67
|
+
{item}
|
|
68
|
+
</$TabsItem>
|
|
69
69
|
)}
|
|
70
70
|
</RadixTabs.List>
|
|
71
71
|
</div>
|
|
@@ -74,31 +74,33 @@ export function Tabs({children, items, tabIndex}: TabsProps) {
|
|
|
74
74
|
{showRightArrow && (
|
|
75
75
|
<button
|
|
76
76
|
onClick={() => scroll('right')}
|
|
77
|
-
|
|
77
|
+
part="arrow"
|
|
78
78
|
>
|
|
79
|
-
<ChevronRight
|
|
79
|
+
<ChevronRight part="arrow-icon" />
|
|
80
80
|
</button>
|
|
81
81
|
)}
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
|
-
<div
|
|
84
|
+
<div part="content">
|
|
85
85
|
{children}
|
|
86
86
|
</div>
|
|
87
|
-
</
|
|
87
|
+
</xyd-tabs>
|
|
88
88
|
</RadixTabs.Root>
|
|
89
89
|
)
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
function TabsItem({children, value}) {
|
|
92
|
+
function $TabsItem({ children, value }) {
|
|
93
93
|
return <RadixTabs.Trigger asChild value={value}>
|
|
94
|
-
<button
|
|
94
|
+
<button part="button">
|
|
95
95
|
{children}
|
|
96
96
|
</button>
|
|
97
97
|
</RadixTabs.Trigger>
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
Tabs.Content = function TabsContent({children, value}) {
|
|
100
|
+
Tabs.Content = function TabsContent({ children, value }) {
|
|
101
101
|
return <RadixTabs.Content asChild value={value}>
|
|
102
|
-
|
|
102
|
+
<div>
|
|
103
|
+
{children}
|
|
104
|
+
</div>
|
|
103
105
|
</RadixTabs.Content>
|
|
104
106
|
}
|