File tree Expand file tree Collapse file tree 3 files changed +5
-26
lines changed Expand file tree Collapse file tree 3 files changed +5
-26
lines changed Original file line number Diff line number Diff line change 6666 "@babel/core" : " ^7.20.2" ,
6767 "@emotion/react" : " ^11.10.4" ,
6868 "@emotion/styled" : " ^11.10.4" ,
69- "@gouvfr/dsfr" : " 1.10.0 " ,
69+ "@gouvfr/dsfr" : " 1.10.1 " ,
7070 "@mui/icons-material" : " ^5.11.16" ,
7171 "@mui/material" : " ^5.13.3" ,
7272 "@storybook/addon-a11y" : " ^6.5.16" ,
Original file line number Diff line number Diff line change @@ -34,27 +34,6 @@ import { patchCssForMui } from "./patchCssForMui";
3434 "recursive" : true
3535 } ) ;
3636
37- //Hack for @gouvfr /dsfr v1.10
38- for ( const basename of [ "dsfr.css" , "dsfr.min.css" ] ) {
39- const cssFilePath = pathJoin ( dsfrDirPath , basename ) ;
40-
41- fs . writeFileSync (
42- cssFilePath ,
43- Buffer . from (
44- ( ( ) => {
45- let dsfrCssRaw = fs . readFileSync ( cssFilePath ) . toString ( "utf8" ) ;
46-
47- for ( const value of [ "var(--background-disabled-grey)" , "#E5E5E5" ] ) {
48- dsfrCssRaw = dsfrCssRaw . replace ( / ( \$ c o l o r # 2 ) / , value ) ;
49- }
50-
51- return dsfrCssRaw ;
52- } ) ( ) ,
53- "utf8"
54- )
55- ) ;
56- }
57-
5837 const rawDsfrCssCode = fs . readFileSync ( pathJoin ( dsfrDirPath , "dsfr.css" ) ) . toString ( "utf8" ) ;
5938
6039 fs . writeFileSync (
Original file line number Diff line number Diff line change 13941394 resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"
13951395 integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==
13961396
1397- "@gouvfr/dsfr@1.10.0 ":
1398- version "1.10.0 "
1399- resolved "https://registry.yarnpkg.com/@gouvfr/dsfr/-/dsfr-1.10.0 .tgz#a3f4939c728e35d8c9ecf06f7a62369ae46256db "
1400- integrity sha512-fHqGCvc8jGtkX2AKRCWi9o3jf/kirP/BeeZ2FBVGwS9Oxd8KsG22xk/6Tls8nA+qPaI+2ZkZQxATBV8KlhwNhQ ==
1397+ "@gouvfr/dsfr@1.10.1 ":
1398+ version "1.10.1 "
1399+ resolved "https://registry.yarnpkg.com/@gouvfr/dsfr/-/dsfr-1.10.1 .tgz#a8470374d1f52d4195bd7c3c2b218fe3aaddac90 "
1400+ integrity sha512-epBjsV9zmaOev+Sv2rrV9jgKfcs0U+gOVirthfG7EymeKUVX0eLQit+ra9yrDzLgk4mm7ZkWfy/6FekOuNgj1w ==
14011401
14021402"@humanwhocodes/config-array@^0.5.0":
14031403 version "0.5.0"
You can’t perform that action at this time.
0 commit comments