From c6abb106dd5bfe0b22036a81c8559fee8ab40f99 Mon Sep 17 00:00:00 2001 From: "Alex.hxy" <1872591453@qq.com> Date: Thu, 9 Jan 2025 17:45:02 +0800 Subject: [PATCH] feat: all layout and 2 nav coms --- pnpm-lock.yaml | 436 ++++++++++++++---- src/packages/backtop/demos/h5/demo1.tsx | 13 +- src/packages/backtop/demos/h5/demo2.tsx | 13 +- src/packages/backtop/demos/h5/demo3.tsx | 15 +- src/packages/backtop/demos/h5/demo4.tsx | 13 +- src/packages/backtop/demos/h5/demo5.tsx | 14 +- src/packages/elevator/demos/h5/demo1.tsx | 26 +- src/packages/elevator/demos/h5/demo2.tsx | 54 ++- src/packages/elevator/demos/h5/demo3.tsx | 26 +- src/packages/elevator/demos/h5/demo4.tsx | 48 +- src/packages/elevator/demos/h5/demo5.tsx | 26 +- src/packages/grid/demos/h5/demo1.tsx | 8 +- src/packages/grid/demos/h5/demo10.tsx | 11 +- src/packages/grid/demos/h5/demo2.tsx | 8 +- src/packages/grid/demos/h5/demo3.tsx | 8 +- src/packages/grid/demos/h5/demo4.tsx | 8 +- src/packages/grid/demos/h5/demo5.tsx | 8 +- src/packages/grid/demos/h5/demo6.tsx | 8 +- src/packages/grid/demos/h5/demo7.tsx | 8 +- src/packages/grid/demos/h5/demo8.tsx | 12 +- src/packages/space/demos/h5/demo1.tsx | 12 +- src/packages/space/demos/h5/demo2.tsx | 18 +- src/packages/space/demos/h5/demo3.tsx | 12 +- src/packages/space/demos/h5/demo4.tsx | 12 +- src/packages/space/demos/h5/demo5.tsx | 18 +- src/packages/space/demos/h5/demo6.tsx | 18 +- src/packages/sticky/demos/h5/demo1.tsx | 11 +- src/packages/sticky/demos/h5/demo2.tsx | 8 +- src/packages/sticky/demos/h5/demo3.tsx | 8 +- src/packages/sticky/demos/h5/demo4.tsx | 8 +- .../doc/components/demoblock/replacePlugin.ts | 32 +- src/translation/demo.translation.tsx | 47 +- src/translation/translation.ts | 89 ++++ 33 files changed, 737 insertions(+), 319 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 049a253b00..cb765088cd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,9 +44,6 @@ importers: classnames: specifier: ^2.5.1 version: 2.5.1 - lodash.isequal: - specifier: ^4.5.0 - version: 4.5.0 lodash.kebabcase: specifier: ^4.1.1 version: 4.1.1 @@ -56,6 +53,9 @@ importers: lottie-react: specifier: ^2.4.0 version: 2.4.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react-fast-compare: + specifier: ^3.2.2 + version: 3.2.2 react-transition-group: specifier: ^4.4.5 version: 4.4.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -141,9 +141,6 @@ importers: '@types/loadable__component': specifier: ^5.13.8 version: 5.13.9 - '@types/lodash.isequal': - specifier: ^4.5.8 - version: 4.5.8 '@types/lodash.kebabcase': specifier: ^4.1.9 version: 4.1.9 @@ -475,7 +472,7 @@ importers: devDependencies: jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)) + version: 29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)) prettier: specifier: ^3.2.5 version: 3.3.3 @@ -484,7 +481,53 @@ importers: version: 17.6.0(typescript@5.7.2) ts-jest: specifier: ^29.1.2 - version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)))(typescript@5.7.2) + version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)))(typescript@5.7.2) + + packages/nutui-replace-icons: + dependencies: + '@babel/cli': + specifier: ^7.25.7 + version: 7.26.4(@babel/core@7.26.0) + '@babel/core': + specifier: ^7.23.9 + version: 7.26.0 + '@babel/generator': + specifier: ^7.24.5 + version: 7.26.0 + '@babel/preset-env': + specifier: ^7.25.7 + version: 7.26.0(@babel/core@7.26.0) + '@babel/preset-react': + specifier: ^7.25.7 + version: 7.25.9(@babel/core@7.26.0) + '@types/babel__core': + specifier: ^7.20.5 + version: 7.20.5 + '@types/babel__generator': + specifier: ^7.6.8 + version: 7.6.8 + vitest: + specifier: ^1.5.0 + version: 1.6.0(@types/node@18.19.70)(@vitest/ui@2.0.5(vitest@2.0.5))(happy-dom@14.12.3)(jsdom@24.1.3(canvas@2.11.2))(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6) + devDependencies: + '@types/lodash.kebabcase': + specifier: ^4.1.9 + version: 4.1.9 + '@types/node': + specifier: ^18.13.0 + version: 18.19.70 + prettier: + specifier: ^3.2.5 + version: 3.3.3 + rollup: + specifier: ^2.79.0 + version: 2.79.2 + rollup-plugin-ts: + specifier: ^3.0.2 + version: 3.4.5(@babel/core@7.26.0)(@babel/plugin-transform-runtime@7.25.4(@babel/core@7.26.0))(@babel/preset-env@7.26.0(@babel/core@7.26.0))(@babel/preset-typescript@7.24.7(@babel/core@7.26.0))(@babel/runtime@7.25.4)(@swc/core@1.10.1(@swc/helpers@0.5.15))(@swc/helpers@0.5.15)(rollup@2.79.2)(typescript@5.7.2) + typescript: + specifier: ^5.4.5 + version: 5.7.2 packages/nutui-taro-demo: dependencies: @@ -928,12 +971,6 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 - '@babel/plugin-syntax-import-attributes@7.24.7': - resolution: {integrity: sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - '@babel/plugin-syntax-import-attributes@7.26.0': resolution: {integrity: sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==} engines: {node: '>=6.9.0'} @@ -2317,6 +2354,9 @@ packages: resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==} hasBin: true + '@mdn/browser-compat-data@5.6.28': + resolution: {integrity: sha512-tMEFXKQXHbWsndyTtLkheUAMlN/oKGqXeP6iSQuDJ3VwPZD5qkkSb+BNmFkO67EWyC2kJbOu79/XJ+pSiF8LZQ==} + '@mdx-js/mdx@3.0.1': resolution: {integrity: sha512-eIQ4QTrOWyL3LWEe/bu6Taqzq2HQvHcyTMaOrI95P2/LmJE7AsfPfgJGuFLPVqBUE1BC1rik3VIhU+s9u72arA==} @@ -3639,9 +3679,6 @@ packages: '@types/lodash.debounce@4.0.9': resolution: {integrity: sha512-Ma5JcgTREwpLRwMM+XwBR7DaWe96nC38uCBDFKZWbNKD+osjVzdpnUSwBcqCptrp16sSOLBAUb50Car5I0TCsQ==} - '@types/lodash.isequal@4.5.8': - resolution: {integrity: sha512-uput6pg4E/tj2LGxCZo9+y27JNyB2OZuuI/T5F+ylVDYuqICLG2/ktjxx0v6GvVntAf8TvEzeQLcV0ffRirXuA==} - '@types/lodash.kebabcase@4.1.9': resolution: {integrity: sha512-kPrrmcVOhSsjAVRovN0lRfrbuidfg0wYsrQa5IYuoQO1fpHHGSme66oyiYA/5eQPVl8Z95OA3HG0+d2SvYC85w==} @@ -3672,6 +3709,12 @@ packages: '@types/node-forge@1.3.11': resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} + '@types/node@17.0.45': + resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} + + '@types/node@18.19.70': + resolution: {integrity: sha512-RE+K0+KZoEpDUbGGctnGdkrLFwi1eYKTlIHNl2Um98mUkGsm1u2Ff6Ltd0e8DktTtC98uy7rSj+hO8t/QuLoVQ==} + '@types/node@20.16.1': resolution: {integrity: sha512-zJDo7wEadFtSyNz5QITDfRcrhqDvQI1xQNQ0VoizPjM/dVAODqqIUWbJPkvsxmTI0MYRGRikcdjMPhOssnPejQ==} @@ -3681,6 +3724,9 @@ packages: '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} + '@types/object-path@0.11.4': + resolution: {integrity: sha512-4tgJ1Z3elF/tOMpA8JLVuR9spt9Ynsf7+JjqsQ2IqtiPJtcLoHoXcT6qU4E10cPFqyXX5HDm9QwIzZhBSkLxsw==} + '@types/postcss-import@14.0.3': resolution: {integrity: sha512-raZhRVTf6Vw5+QbmQ7LOHSDML71A5rj4+EqDzAbrZPfxfoGzFxMHRCq16VlddGIZpHELw0BG4G0YE2ANkdZiIQ==} @@ -3758,6 +3804,9 @@ packages: resolution: {integrity: sha512-bnreXCgus6IIadyHNlN/oI5FfX4dWgvGhOPvpr7zzCYDGAPIfvyIoAozMBINmhmsVuqV0cncejF2y5KC7ScqOg==} deprecated: This is a stub types definition. @testing-library/jest-dom provides its own type definitions, so you do not need this installed. + '@types/ua-parser-js@0.7.39': + resolution: {integrity: sha512-P/oDfpofrdtF5xw433SPALpdSchtJmY7nsJItf8h3KXqOslkbySh8zq4dSWXH2oTjRvJ5PczVEoCZPow6GicLg==} + '@types/unist@2.0.11': resolution: {integrity: sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==} @@ -4132,6 +4181,10 @@ packages: '@webassemblyjs/wast-printer@1.12.1': resolution: {integrity: sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==} + '@wessberg/stringutil@1.0.19': + resolution: {integrity: sha512-9AZHVXWlpN8Cn9k5BC/O0Dzb9E9xfEMXzYrNunwvkUTvuK7xgQPVRZpLo+jWCOZ5r8oBa8NIrHuPEu1hzbb6bg==} + engines: {node: '>=8.0.0'} + '@xtuc/ieee754@1.2.0': resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} @@ -4710,6 +4763,10 @@ packages: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} + browserslist-generator@2.3.0: + resolution: {integrity: sha512-NEvS2dNlBKfSL3qDUTM3NkJMfjMAPEjvEGnhMZKql6ZNzJ8asqFpmuTizwOpRQeYA0/VktmOXa+mFPv8nvcIGw==} + engines: {node: '>=16.15.1', npm: '>=7.0.0', pnpm: '>=3.2.0', yarn: '>=1.13'} + browserslist@4.23.3: resolution: {integrity: sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} @@ -5133,6 +5190,12 @@ packages: compare-versions@6.1.1: resolution: {integrity: sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==} + compatfactory@3.0.0: + resolution: {integrity: sha512-WD5kF7koPwVoyKL8p0LlrmIZtilrD46sQStyzzxzTFinMKN2Dxk1hN+sddLSQU1mGIZvQfU8c+ONSghvvM40jg==} + engines: {node: '>=14.9.0'} + peerDependencies: + typescript: '>=3.x || >= 4.x || >= 5.x' + compressible@2.0.18: resolution: {integrity: sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==} engines: {node: '>= 0.6'} @@ -5279,6 +5342,10 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} + crosspath@2.0.0: + resolution: {integrity: sha512-ju88BYCQ2uvjO2bR+SsgLSTwTSctU+6Vp2ePbKPgSCZyy4MWZxYsT738DlKVRE5utUjobjPRm1MkTYKJxCmpTA==} + engines: {node: '>=14.9.0'} + crypt@0.0.2: resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==} @@ -7008,6 +7075,10 @@ packages: header-case@2.0.4: resolution: {integrity: sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==} + helpertypes@0.0.19: + resolution: {integrity: sha512-J00e55zffgi3yVnUp0UdbMztNkr2PnizEkOe9URNohnrNhW5X0QpegkuLpOmFQInpi93Nb8MCjQRHAiCDF42NQ==} + engines: {node: '>=10.0.0'} + highlight.js@10.7.3: resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} @@ -7637,6 +7708,10 @@ packages: isarray@2.0.5: resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} + isbot@3.8.0: + resolution: {integrity: sha512-vne1mzQUTR+qsMLeCBL9+/tgnDXRyc2pygLGl/WsgA+EZKIiB5Ehu0CiVTHIIk30zhJ24uGz4M5Ppse37aR0Hg==} + engines: {node: '>=12'} + isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -9022,6 +9097,10 @@ packages: resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} engines: {node: '>= 0.4'} + object-path@0.11.8: + resolution: {integrity: sha512-YJjNZrlXJFM42wTBn6zgOJVar9KFJvzx6sTWDte8sWZF//cnjl0BxHNpfZx+ZffXX63A9q0b1zsFiBX4g4X5KA==} + engines: {node: '>= 10.12.0'} + object.assign@4.1.5: resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} engines: {node: '>= 0.4'} @@ -9943,6 +10022,9 @@ packages: peerDependencies: react: ^18.3.1 + react-fast-compare@3.2.2: + resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} + react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} @@ -10279,6 +10361,41 @@ packages: deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true + rollup-plugin-ts@3.4.5: + resolution: {integrity: sha512-9iCstRJpEZXSRQuXitlSZAzcGlrqTbJg1pE4CMbEi6xYldxVncdPyzA2I+j6vnh73wBymZckerS+Q/iEE/M3Ow==} + engines: {node: '>=16.15.1', npm: '>=7.0.0', pnpm: '>=3.2.0', yarn: '>=1.13'} + deprecated: please use @rollup/plugin-typescript and rollup-plugin-dts instead + peerDependencies: + '@babel/core': '>=7.x' + '@babel/plugin-transform-runtime': '>=7.x' + '@babel/preset-env': '>=7.x' + '@babel/preset-typescript': '>=7.x' + '@babel/runtime': '>=7.x' + '@swc/core': '>=1.x' + '@swc/helpers': '>=0.2' + rollup: '>=1.x || >=2.x || >=3.x' + typescript: '>=3.2.x || >= 4.x || >= 5.x' + peerDependenciesMeta: + '@babel/core': + optional: true + '@babel/plugin-transform-runtime': + optional: true + '@babel/preset-env': + optional: true + '@babel/preset-typescript': + optional: true + '@babel/runtime': + optional: true + '@swc/core': + optional: true + '@swc/helpers': + optional: true + + rollup@2.79.2: + resolution: {integrity: sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==} + engines: {node: '>=10.0.0'} + hasBin: true + rollup@3.29.5: resolution: {integrity: sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} @@ -11173,6 +11290,12 @@ packages: peerDependencies: typescript: '>=4.2.0' + ts-clone-node@3.0.0: + resolution: {integrity: sha512-egavvyHbIoelkgh1IC2agNB1uMNjB8VJgh0g/cn0bg2XXTcrtjrGMzEk4OD3Fi2hocICjP3vMa56nkzIzq0FRg==} + engines: {node: '>=14.9.0'} + peerDependencies: + typescript: ^3.x || ^4.x || ^5.x + ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} @@ -11343,6 +11466,10 @@ packages: engines: {node: '>=14.17'} hasBin: true + ua-parser-js@1.0.40: + resolution: {integrity: sha512-z6PJ8Lml+v3ichVojCiB8toQJBuwR42ySM4ezjXIqXK3M0HczmKQ3LF4rhU55PfD99KEEXQG6yb7iOMyvYuHew==} + hasBin: true + uc.micro@2.1.0: resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} @@ -11375,6 +11502,9 @@ packages: resolution: {integrity: sha512-tO/bf30wBbTsJ7go80j0RzA2rcwX6o7XPBpeFcb+jzoeb4pfMM2zUeSDIkY1AWqeZabWxaQZ/h8N9t35QKDLPQ==} engines: {node: '>=10.13.0'} + undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + undici-types@6.19.8: resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} @@ -12167,7 +12297,7 @@ snapshots: '@babel/helper-builder-binary-assignment-operator-visitor@7.25.9': dependencies: '@babel/traverse': 7.25.9 - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 transitivePeerDependencies: - supports-color @@ -12233,13 +12363,13 @@ snapshots: '@babel/helper-member-expression-to-functions@7.25.9': dependencies: '@babel/traverse': 7.25.9 - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 transitivePeerDependencies: - supports-color '@babel/helper-module-imports@7.18.6': dependencies: - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 '@babel/helper-module-imports@7.24.7': dependencies: @@ -12270,7 +12400,7 @@ snapshots: '@babel/helper-optimise-call-expression@7.25.9': dependencies: - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 '@babel/helper-plugin-utils@7.24.8': {} @@ -12313,7 +12443,7 @@ snapshots: '@babel/helper-simple-access@7.25.9': dependencies: '@babel/traverse': 7.25.9 - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 transitivePeerDependencies: - supports-color @@ -12327,7 +12457,7 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers@7.25.9': dependencies: '@babel/traverse': 7.25.9 - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 transitivePeerDependencies: - supports-color @@ -12343,7 +12473,7 @@ snapshots: dependencies: '@babel/template': 7.25.9 '@babel/traverse': 7.25.9 - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 transitivePeerDependencies: - supports-color @@ -12451,11 +12581,6 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 - '@babel/plugin-syntax-import-attributes@7.24.7(@babel/core@7.26.0)': - dependencies: - '@babel/core': 7.26.0 - '@babel/helper-plugin-utils': 7.25.9 - '@babel/plugin-syntax-import-attributes@7.26.0(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 @@ -13049,7 +13174,7 @@ snapshots: dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 esutils: 2.0.3 '@babel/preset-react@7.25.9(@babel/core@7.26.0)': @@ -13774,27 +13899,27 @@ snapshots: '@jest/console@29.7.0': dependencies: '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 chalk: 4.1.2 jest-message-util: 29.7.0 jest-util: 29.7.0 slash: 3.0.0 - '@jest/core@29.7.0(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2))': + '@jest/core@29.7.0(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2))': dependencies: '@jest/console': 29.7.0 '@jest/reporters': 29.7.0 '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.9.0 exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)) + jest-config: 29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -13819,7 +13944,7 @@ snapshots: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 jest-mock: 29.7.0 '@jest/expect-utils@29.7.0': @@ -13837,7 +13962,7 @@ snapshots: dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 20.16.1 + '@types/node': 22.10.1 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -13859,7 +13984,7 @@ snapshots: '@jest/transform': 29.7.0 '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.25 - '@types/node': 20.16.1 + '@types/node': 22.10.1 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 @@ -13937,7 +14062,7 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 20.16.1 + '@types/node': 22.10.1 '@types/yargs': 17.0.33 chalk: 4.1.2 @@ -14002,6 +14127,8 @@ snapshots: - supports-color optional: true + '@mdn/browser-compat-data@5.6.28': {} + '@mdx-js/mdx@3.0.1': dependencies: '@types/estree': 1.0.5 @@ -14451,6 +14578,14 @@ snapshots: optionalDependencies: rollup: 4.28.1 + '@rollup/pluginutils@5.1.3(rollup@2.79.2)': + dependencies: + '@types/estree': 1.0.5 + estree-walker: 2.0.2 + picomatch: 4.0.2 + optionalDependencies: + rollup: 2.79.2 + '@rollup/pluginutils@5.1.3(rollup@3.29.5)': dependencies: '@types/estree': 1.0.5 @@ -15547,7 +15682,7 @@ snapshots: '@types/babel__generator@7.6.8': dependencies: - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 '@types/babel__template@7.4.4': dependencies: @@ -15578,7 +15713,7 @@ snapshots: '@types/conventional-commits-parser@5.0.0': dependencies: - '@types/node': 20.16.1 + '@types/node': 22.10.1 '@types/debug@4.1.12': dependencies: @@ -15634,7 +15769,7 @@ snapshots: '@types/graceful-fs@4.1.9': dependencies: - '@types/node': 20.16.1 + '@types/node': 22.10.1 '@types/hast@2.3.10': dependencies: @@ -15672,7 +15807,7 @@ snapshots: '@types/jsonfile@6.1.4': dependencies: - '@types/node': 20.16.1 + '@types/node': 22.10.1 '@types/keyv@3.1.4': dependencies: @@ -15686,10 +15821,6 @@ snapshots: dependencies: '@types/lodash': 4.17.7 - '@types/lodash.isequal@4.5.8': - dependencies: - '@types/lodash': 4.17.7 - '@types/lodash.kebabcase@4.1.9': dependencies: '@types/lodash': 4.17.7 @@ -15714,12 +15845,18 @@ snapshots: '@types/mute-stream@0.0.4': dependencies: - '@types/node': 20.16.1 + '@types/node': 22.10.1 '@types/node-forge@1.3.11': dependencies: '@types/node': 22.10.1 + '@types/node@17.0.45': {} + + '@types/node@18.19.70': + dependencies: + undici-types: 5.26.5 + '@types/node@20.16.1': dependencies: undici-types: 6.19.8 @@ -15730,13 +15867,15 @@ snapshots: '@types/normalize-package-data@2.4.4': {} + '@types/object-path@0.11.4': {} + '@types/postcss-import@14.0.3': dependencies: postcss: 8.4.41 '@types/postcss-url@10.0.4': dependencies: - '@types/node': 20.16.1 + '@types/node': 22.10.1 postcss: 8.4.47 '@types/prop-types@15.7.12': {} @@ -15820,6 +15959,8 @@ snapshots: dependencies: '@testing-library/jest-dom': 6.5.0 + '@types/ua-parser-js@0.7.39': {} + '@types/unist@2.0.11': {} '@types/unist@3.0.3': {} @@ -15827,7 +15968,7 @@ snapshots: '@types/vinyl@2.0.12': dependencies: '@types/expect': 1.20.4 - '@types/node': 20.16.1 + '@types/node': 22.10.1 '@types/webpack-env@1.18.5': {} @@ -15849,7 +15990,7 @@ snapshots: '@types/yauzl@2.10.3': dependencies: - '@types/node': 20.16.1 + '@types/node': 22.10.1 optional: true '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.7.2))(eslint@8.57.0)(typescript@5.7.2)': @@ -16484,6 +16625,8 @@ snapshots: '@webassemblyjs/ast': 1.12.1 '@xtuc/long': 4.2.2 + '@wessberg/stringutil@1.0.19': {} + '@xtuc/ieee754@1.2.0': {} '@xtuc/long@4.2.2': {} @@ -16798,7 +16941,7 @@ snapshots: ast-types@0.13.4: dependencies: - tslib: 2.7.0 + tslib: 2.8.1 ast-types@0.16.1: dependencies: @@ -16939,7 +17082,7 @@ snapshots: babel-plugin-jest-hoist@29.6.3: dependencies: '@babel/template': 7.25.9 - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 '@types/babel__core': 7.20.5 '@types/babel__traverse': 7.20.6 @@ -16992,7 +17135,7 @@ snapshots: '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.26.0) '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.26.0) '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.26.0) - '@babel/plugin-syntax-import-attributes': 7.24.7(@babel/core@7.26.0) + '@babel/plugin-syntax-import-attributes': 7.26.0(@babel/core@7.26.0) '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.26.0) '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.26.0) '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.26.0) @@ -17138,6 +17281,19 @@ snapshots: dependencies: fill-range: 7.1.1 + browserslist-generator@2.3.0: + dependencies: + '@mdn/browser-compat-data': 5.6.28 + '@types/object-path': 0.11.4 + '@types/semver': 7.5.8 + '@types/ua-parser-js': 0.7.39 + browserslist: 4.24.2 + caniuse-lite: 1.0.30001673 + isbot: 3.8.0 + object-path: 0.11.8 + semver: 7.6.3 + ua-parser-js: 1.0.40 + browserslist@4.23.3: dependencies: caniuse-lite: 1.0.30001653 @@ -17593,6 +17749,11 @@ snapshots: compare-versions@6.1.1: {} + compatfactory@3.0.0(typescript@5.7.2): + dependencies: + helpertypes: 0.0.19 + typescript: 5.7.2 + compressible@2.0.18: dependencies: mime-db: 1.53.0 @@ -17732,13 +17893,13 @@ snapshots: optionalDependencies: typescript: 5.7.2 - create-jest@29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)): + create-jest@29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)): dependencies: '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)) + jest-config: 29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -17767,6 +17928,10 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + crosspath@2.0.0: + dependencies: + '@types/node': 17.0.45 + crypt@0.0.2: {} crypto-random-string@4.0.0: @@ -20196,6 +20361,8 @@ snapshots: capital-case: 1.0.4 tslib: 2.8.1 + helpertypes@0.0.19: {} + highlight.js@10.7.3: {} highlight.js@11.10.0: {} @@ -20800,6 +20967,8 @@ snapshots: isarray@2.0.5: {} + isbot@3.8.0: {} + isexe@2.0.0: {} isobject@3.0.1: {} @@ -20931,7 +21100,7 @@ snapshots: '@jest/expect': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 chalk: 4.1.2 co: 4.6.0 dedent: 1.5.3 @@ -20951,16 +21120,16 @@ snapshots: - babel-plugin-macros - supports-color - jest-cli@29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)): + jest-cli@29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)): dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)) + '@jest/core': 29.7.0(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)) '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)) + create-jest: 29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)) exit: 0.1.2 import-local: 3.2.0 - jest-config: 29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)) + jest-config: 29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -20970,7 +21139,7 @@ snapshots: - supports-color - ts-node - jest-config@29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)): + jest-config@29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)): dependencies: '@babel/core': 7.26.0 '@jest/test-sequencer': 29.7.0 @@ -20995,8 +21164,8 @@ snapshots: slash: 3.0.0 strip-json-comments: 3.1.1 optionalDependencies: - '@types/node': 20.16.1 - ts-node: 10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2) + '@types/node': 22.10.1 + ts-node: 10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -21025,7 +21194,7 @@ snapshots: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -21035,7 +21204,7 @@ snapshots: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.9 - '@types/node': 20.16.1 + '@types/node': 22.10.1 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -21074,7 +21243,7 @@ snapshots: jest-mock@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 jest-util: 29.7.0 jest-pnp-resolver@1.2.3(jest-resolve@29.7.0): @@ -21109,7 +21278,7 @@ snapshots: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -21137,7 +21306,7 @@ snapshots: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 chalk: 4.1.2 cjs-module-lexer: 1.4.0 collect-v8-coverage: 1.0.2 @@ -21161,7 +21330,7 @@ snapshots: '@babel/generator': 7.26.0 '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.26.0) '@babel/plugin-syntax-typescript': 7.25.4(@babel/core@7.26.0) - '@babel/types': 7.26.0 + '@babel/types': 7.26.3 '@jest/expect-utils': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 @@ -21183,7 +21352,7 @@ snapshots: jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -21202,7 +21371,7 @@ snapshots: dependencies: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.16.1 + '@types/node': 22.10.1 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -21217,17 +21386,17 @@ snapshots: jest-worker@29.7.0: dependencies: - '@types/node': 20.16.1 + '@types/node': 22.10.1 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 - jest@29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)): + jest@29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)): dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)) + '@jest/core': 29.7.0(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)) '@jest/types': 29.6.3 import-local: 3.2.0 - jest-cli: 29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)) + jest-cli: 29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -22647,6 +22816,8 @@ snapshots: object-keys@1.1.1: {} + object-path@0.11.8: {} + object.assign@4.1.5: dependencies: call-bind: 1.0.7 @@ -23626,6 +23797,8 @@ snapshots: react: 18.3.1 scheduler: 0.23.2 + react-fast-compare@3.2.2: {} + react-is@16.13.1: {} react-is@17.0.2: {} @@ -24067,6 +24240,33 @@ snapshots: dependencies: glob: 7.2.3 + rollup-plugin-ts@3.4.5(@babel/core@7.26.0)(@babel/plugin-transform-runtime@7.25.4(@babel/core@7.26.0))(@babel/preset-env@7.26.0(@babel/core@7.26.0))(@babel/preset-typescript@7.24.7(@babel/core@7.26.0))(@babel/runtime@7.25.4)(@swc/core@1.10.1(@swc/helpers@0.5.15))(@swc/helpers@0.5.15)(rollup@2.79.2)(typescript@5.7.2): + dependencies: + '@rollup/pluginutils': 5.1.3(rollup@2.79.2) + '@wessberg/stringutil': 1.0.19 + ansi-colors: 4.1.3 + browserslist: 4.24.2 + browserslist-generator: 2.3.0 + compatfactory: 3.0.0(typescript@5.7.2) + crosspath: 2.0.0 + magic-string: 0.30.14 + rollup: 2.79.2 + ts-clone-node: 3.0.0(typescript@5.7.2) + tslib: 2.8.1 + typescript: 5.7.2 + optionalDependencies: + '@babel/core': 7.26.0 + '@babel/plugin-transform-runtime': 7.25.4(@babel/core@7.26.0) + '@babel/preset-env': 7.26.0(@babel/core@7.26.0) + '@babel/preset-typescript': 7.24.7(@babel/core@7.26.0) + '@babel/runtime': 7.25.4 + '@swc/core': 1.10.1(@swc/helpers@0.5.15) + '@swc/helpers': 0.5.15 + + rollup@2.79.2: + optionalDependencies: + fsevents: 2.3.3 + rollup@3.29.5: optionalDependencies: fsevents: 2.3.3 @@ -25115,14 +25315,19 @@ snapshots: dependencies: typescript: 5.7.2 + ts-clone-node@3.0.0(typescript@5.7.2): + dependencies: + compatfactory: 3.0.0(typescript@5.7.2) + typescript: 5.7.2 + ts-interface-checker@0.1.13: {} - ts-jest@29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)))(typescript@5.7.2): + ts-jest@29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)))(typescript@5.7.2): dependencies: bs-logger: 0.2.6 ejs: 3.1.10 fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@types/node@20.16.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2)) + jest: 29.7.0(@types/node@22.10.1)(ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2)) jest-util: 29.7.0 json5: 2.2.3 lodash.memoize: 4.1.2 @@ -25136,14 +25341,14 @@ snapshots: '@jest/types': 29.6.3 babel-jest: 29.7.0(@babel/core@7.26.0) - ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@20.16.1)(typescript@5.7.2): + ts-node@10.9.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(@types/node@22.10.1)(typescript@5.7.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.16.1 + '@types/node': 22.10.1 acorn: 8.14.0 acorn-walk: 8.3.3 arg: 4.1.3 @@ -25295,6 +25500,8 @@ snapshots: typescript@5.7.2: {} + ua-parser-js@1.0.40: {} + uc.micro@2.1.0: {} ufo@1.5.4: {} @@ -25332,6 +25539,8 @@ snapshots: last-run: 2.0.0 undertaker-registry: 2.0.0 + undici-types@5.26.5: {} + undici-types@6.19.8: {} undici-types@6.20.0: {} @@ -25574,6 +25783,24 @@ snapshots: replace-ext: 2.0.0 teex: 1.0.1 + vite-node@1.6.0(@types/node@18.19.70)(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6): + dependencies: + cac: 6.7.14 + debug: 4.3.7(supports-color@8.1.1) + pathe: 1.1.2 + picocolors: 1.1.1 + vite: 5.4.11(@types/node@18.19.70)(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + vite-node@1.6.0(@types/node@22.10.1)(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6): dependencies: cac: 6.7.14 @@ -25655,6 +25882,20 @@ snapshots: picocolors: 1.1.1 vite: 5.4.11(@types/node@22.10.1)(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6) + vite@5.4.11(@types/node@18.19.70)(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6): + dependencies: + esbuild: 0.21.5 + postcss: 8.4.47 + rollup: 4.21.1 + optionalDependencies: + '@types/node': 18.19.70 + fsevents: 2.3.3 + less: 4.2.0 + lightningcss: 1.26.0 + sass: 1.77.6 + stylus: 0.55.0 + terser: 5.31.6 + vite@5.4.11(@types/node@20.16.1)(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6): dependencies: esbuild: 0.21.5 @@ -25702,6 +25943,43 @@ snapshots: jest-canvas-mock: 2.5.2 vitest: 2.0.5(@types/node@20.16.1)(@vitest/ui@2.0.5)(happy-dom@14.12.3)(jsdom@24.1.3(canvas@2.11.2))(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6) + vitest@1.6.0(@types/node@18.19.70)(@vitest/ui@2.0.5(vitest@2.0.5))(happy-dom@14.12.3)(jsdom@24.1.3(canvas@2.11.2))(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6): + dependencies: + '@vitest/expect': 1.6.0 + '@vitest/runner': 1.6.0 + '@vitest/snapshot': 1.6.0 + '@vitest/spy': 1.6.0 + '@vitest/utils': 1.6.0 + acorn-walk: 8.3.3 + chai: 4.5.0 + debug: 4.3.7(supports-color@8.1.1) + execa: 8.0.1 + local-pkg: 0.5.1 + magic-string: 0.30.14 + pathe: 1.1.2 + picocolors: 1.1.1 + std-env: 3.8.0 + strip-literal: 2.1.1 + tinybench: 2.9.0 + tinypool: 0.8.4 + vite: 5.4.11(@types/node@18.19.70)(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6) + vite-node: 1.6.0(@types/node@18.19.70)(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 18.19.70 + '@vitest/ui': 2.0.5(vitest@2.0.5) + happy-dom: 14.12.3 + jsdom: 24.1.3(canvas@2.11.2) + transitivePeerDependencies: + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + vitest@1.6.0(@types/node@22.10.1)(@vitest/ui@2.0.5(vitest@2.0.5))(happy-dom@14.12.3)(jsdom@24.1.3(canvas@2.11.2))(less@4.2.0)(lightningcss@1.26.0)(sass@1.77.6)(stylus@0.55.0)(terser@5.31.6): dependencies: '@vitest/expect': 1.6.0 diff --git a/src/packages/backtop/demos/h5/demo1.tsx b/src/packages/backtop/demos/h5/demo1.tsx index 02f195d174..6971f9471b 100644 --- a/src/packages/backtop/demos/h5/demo1.tsx +++ b/src/packages/backtop/demos/h5/demo1.tsx @@ -1,14 +1,21 @@ import React from 'react' import { BackTop, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo1 = () => { +const Demo1 = ({ t }: propsType) => { return ( <> {new Array(24).fill(0).map((_, index) => { - return 我是测试数据{index} + return ( + + {t.testData} + {index} + + ) })} ) } -export default Demo1 + +export default withTranslation(Demo1) diff --git a/src/packages/backtop/demos/h5/demo2.tsx b/src/packages/backtop/demos/h5/demo2.tsx index fd0a71727a..6f32f26914 100644 --- a/src/packages/backtop/demos/h5/demo2.tsx +++ b/src/packages/backtop/demos/h5/demo2.tsx @@ -1,14 +1,21 @@ import React from 'react' import { BackTop, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo2 = () => { +const Demo2 = ({ t }: propsType) => { return ( <> {new Array(24).fill(0).map((_, index) => { - return 我是测试数据{index} + return ( + + {t.testData} + {index} + + ) })} ) } -export default Demo2 + +export default withTranslation(Demo2) diff --git a/src/packages/backtop/demos/h5/demo3.tsx b/src/packages/backtop/demos/h5/demo3.tsx index d516babff8..4234c6a33f 100644 --- a/src/packages/backtop/demos/h5/demo3.tsx +++ b/src/packages/backtop/demos/h5/demo3.tsx @@ -1,18 +1,25 @@ import React from 'react' import { Top } from '@nutui/icons-react' import { BackTop, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo3 = () => { +const Demo3 = ({ t }: propsType) => { return ( <> {new Array(24).fill(0).map((_, index) => { - return 我是测试数据{index} + return ( + + {t.testData} + {index} + + ) })} -
顶部
+
{t.top}
) } -export default Demo3 + +export default withTranslation(Demo3) diff --git a/src/packages/backtop/demos/h5/demo4.tsx b/src/packages/backtop/demos/h5/demo4.tsx index 0377c9040d..a9bbd953b6 100644 --- a/src/packages/backtop/demos/h5/demo4.tsx +++ b/src/packages/backtop/demos/h5/demo4.tsx @@ -1,14 +1,21 @@ import React from 'react' import { BackTop, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo4 = () => { +const Demo4 = ({ t }: propsType) => { return (
{new Array(24).fill(0).map((_, index) => { - return 我是测试数据{index} + return ( + + {t.testData} + {index} + + ) })}
) } -export default Demo4 + +export default withTranslation(Demo4) diff --git a/src/packages/backtop/demos/h5/demo5.tsx b/src/packages/backtop/demos/h5/demo5.tsx index 28a569a6c8..d2def524dd 100644 --- a/src/packages/backtop/demos/h5/demo5.tsx +++ b/src/packages/backtop/demos/h5/demo5.tsx @@ -1,14 +1,21 @@ import React from 'react' import { BackTop, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo5 = () => { +const Demo5 = ({ t }: propsType) => { const handleClick = () => { const ele = document.getElementsByClassName('backtop-button')[0] } + return ( <> {new Array(24).fill(0).map((_, index) => { - return 我是测试数据{index} + return ( + + {t.testData} + {index} + + ) })} { @@ -20,4 +27,5 @@ const Demo5 = () => { ) } -export default Demo5 + +export default withTranslation(Demo5) diff --git a/src/packages/elevator/demos/h5/demo1.tsx b/src/packages/elevator/demos/h5/demo1.tsx index 068389f674..ce25a416cb 100644 --- a/src/packages/elevator/demos/h5/demo1.tsx +++ b/src/packages/elevator/demos/h5/demo1.tsx @@ -1,13 +1,14 @@ import React from 'react' import { Elevator } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo1 = () => { +const Demo1 = ({ t }: propsType) => { const dataList = [ { title: 'A', list: [ { - name: '安徽', + name: t.anhui, id: 1, }, ], @@ -16,7 +17,7 @@ const Demo1 = () => { title: 'B', list: [ { - name: '北京', + name: t.beijing, id: 2, }, ], @@ -25,11 +26,11 @@ const Demo1 = () => { title: 'G', list: [ { - name: '广西', + name: t.guangxi, id: 3, }, { - name: '广东', + name: t.guangdong, id: 4, }, ], @@ -38,20 +39,21 @@ const Demo1 = () => { title: 'H', list: [ { - name: '湖南', + name: t.hunan, id: 5, }, { - name: '湖北', + name: t.hubei, id: 6, }, { - name: '河南', + name: t.henan, id: 7, }, ], }, ] + const onItemClick = (key: string, item: any) => { console.log(key, JSON.stringify(item)) } @@ -59,13 +61,15 @@ const Demo1 = () => { const onIndexClick = (key: string) => { console.log(key) } + return ( onItemClick(key, item)} - onIndexClick={(key: string) => onIndexClick(key)} + onItemClick={onItemClick} + onIndexClick={onIndexClick} /> ) } -export default Demo1 + +export default withTranslation(Demo1) diff --git a/src/packages/elevator/demos/h5/demo2.tsx b/src/packages/elevator/demos/h5/demo2.tsx index 09a3d3ebb5..00e359b4b3 100644 --- a/src/packages/elevator/demos/h5/demo2.tsx +++ b/src/packages/elevator/demos/h5/demo2.tsx @@ -1,29 +1,30 @@ import React from 'react' import { Elevator } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo2 = () => { +const Demo2 = ({ t }: propsType) => { const dataList = [ { num: '一', list: [ { - name: '北京', + name: t.beijing, id: 1, }, { - name: '上海', + name: t.shanghai, id: 2, }, { - name: '深圳', + name: t.shenzhen, id: 3, }, { - name: '广州', + name: t.guangzhou, id: 4, }, { - name: '杭州', + name: t.hangzhou, id: 5, }, ], @@ -32,35 +33,35 @@ const Demo2 = () => { num: '二', list: [ { - name: '成都', + name: t.chengdu, id: 6, }, { - name: '西安', + name: t.xian, id: 7, }, { - name: '天津', + name: t.tianjin, id: 8, }, { - name: '武汉', + name: t.wuhan, id: 9, }, { - name: '长沙', + name: t.changsha, id: 10, }, { - name: '重庆', + name: t.chongqing, id: 11, }, { - name: '苏州', + name: t.suzhou, id: 12, }, { - name: '南京', + name: t.nanjing, id: 13, }, ], @@ -69,40 +70,41 @@ const Demo2 = () => { num: '三', list: [ { - name: '西宁', + name: t.xining, id: 14, }, { - name: '兰州', + name: t.lanzhou, id: 15, }, { - name: '石家庄', + name: t.shijiazhuang, id: 16, }, { - name: '秦皇岛', + name: t.qinhuangdao, id: 17, }, { - name: '大连', + name: t.dalian, id: 18, }, { - name: '哈尔滨', + name: t.haerbin, id: 19, }, { - name: '长春', + name: t.changchun, id: 20, }, { - name: '太原', + name: t.taiyuan, id: 21, }, ], }, ] + const onItemClick = (key: string, item: any) => { console.log(key, JSON.stringify(item)) } @@ -110,14 +112,16 @@ const Demo2 = () => { const onIndexClick = (key: string) => { console.log(key) } + return ( onItemClick(key, item)} - onIndexClick={(key: string) => onIndexClick(key)} + onItemClick={onItemClick} + onIndexClick={onIndexClick} /> ) } -export default Demo2 + +export default withTranslation(Demo2) diff --git a/src/packages/elevator/demos/h5/demo3.tsx b/src/packages/elevator/demos/h5/demo3.tsx index 5900d3407e..79ba586b29 100644 --- a/src/packages/elevator/demos/h5/demo3.tsx +++ b/src/packages/elevator/demos/h5/demo3.tsx @@ -1,13 +1,14 @@ import React from 'react' import { Elevator } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo3 = () => { +const Demo3 = ({ t }: propsType) => { const dataList = [ { title: 'A', list: [ { - name: '安徽', + name: t.anhui, id: 1, }, ], @@ -16,7 +17,7 @@ const Demo3 = () => { title: 'B', list: [ { - name: '北京', + name: t.beijing, id: 2, }, ], @@ -25,11 +26,11 @@ const Demo3 = () => { title: 'G', list: [ { - name: '广西', + name: t.guangxi, id: 3, }, { - name: '广东', + name: t.guangdong, id: 4, }, ], @@ -38,20 +39,21 @@ const Demo3 = () => { title: 'H', list: [ { - name: '湖南', + name: t.hunan, id: 5, }, { - name: '湖北', + name: t.hubei, id: 6, }, { - name: '河南', + name: t.henan, id: 7, }, ], }, ] + const onItemClick = (key: string, item: any) => { console.log(key, JSON.stringify(item)) } @@ -59,14 +61,16 @@ const Demo3 = () => { const onIndexClick = (key: string) => { console.log(key) } + return ( onItemClick(key, item)} - onIndexClick={(key: string) => onIndexClick(key)} + onItemClick={onItemClick} + onIndexClick={onIndexClick} /> ) } -export default Demo3 + +export default withTranslation(Demo3) diff --git a/src/packages/elevator/demos/h5/demo4.tsx b/src/packages/elevator/demos/h5/demo4.tsx index 72df5634ad..9d794be7af 100644 --- a/src/packages/elevator/demos/h5/demo4.tsx +++ b/src/packages/elevator/demos/h5/demo4.tsx @@ -1,13 +1,14 @@ import React from 'react' import { Elevator } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo4 = () => { +const Demo4 = ({ t }: propsType) => { const dataList = [ { title: 'A', list: [ { - name: '安徽', + name: t.anhui, id: 1, }, ], @@ -16,7 +17,7 @@ const Demo4 = () => { title: 'B', list: [ { - name: '北京', + name: t.beijing, id: 2, }, ], @@ -25,7 +26,7 @@ const Demo4 = () => { title: 'C', list: [ { - name: '重庆', + name: t.chongqing, id: 3, }, ], @@ -34,7 +35,7 @@ const Demo4 = () => { title: 'F', list: [ { - name: '福建', + name: t.fujian, id: 4, }, ], @@ -43,19 +44,19 @@ const Demo4 = () => { title: 'G', list: [ { - name: '广西', + name: t.guangxi, id: 5, }, { - name: '广东', + name: t.guangdong, id: 6, }, { - name: '甘肃', + name: t.gansu, id: 7, }, { - name: '贵州', + name: t.guizhou, id: 8, }, ], @@ -64,27 +65,27 @@ const Demo4 = () => { title: 'H', list: [ { - name: '湖南', + name: t.hunan, id: 9, }, { - name: '湖北', + name: t.hubei, id: 10, }, { - name: '海南', + name: t.hainan, id: 11, }, { - name: '河北', + name: t.hebei, id: 12, }, { - name: '河南', + name: t.henan, id: 13, }, { - name: '黑龙江', + name: t.heilongjiang, id: 14, }, ], @@ -93,15 +94,15 @@ const Demo4 = () => { title: 'J', list: [ { - name: '吉林', + name: t.jilin, id: 15, }, { - name: '江苏', + name: t.jiangsu, id: 16, }, { - name: '江西', + name: t.jiangxi, id: 17, }, ], @@ -110,12 +111,13 @@ const Demo4 = () => { title: 'L', list: [ { - name: '辽宁', + name: t.liaoning, id: 18, }, ], }, ] + const onItemClick = (key: string, item: any) => { console.log(key, JSON.stringify(item)) } @@ -123,14 +125,16 @@ const Demo4 = () => { const onIndexClick = (key: string) => { console.log(key) } + return ( onItemClick(key, item)} - onIndexClick={(key: string) => onIndexClick(key)} + onItemClick={onItemClick} + onIndexClick={onIndexClick} /> ) } -export default Demo4 + +export default withTranslation(Demo4) diff --git a/src/packages/elevator/demos/h5/demo5.tsx b/src/packages/elevator/demos/h5/demo5.tsx index 42524fb609..c902c6e644 100644 --- a/src/packages/elevator/demos/h5/demo5.tsx +++ b/src/packages/elevator/demos/h5/demo5.tsx @@ -1,14 +1,15 @@ import React from 'react' import { Elevator } from '@nutui/nutui-react' import { Fabulous } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo5 = () => { +const Demo5 = ({ t }: propsType) => { const dataList = [ { title: 'A', list: [ { - name: '安徽', + name: t.anhui, id: 1, }, ], @@ -17,7 +18,7 @@ const Demo5 = () => { title: 'B', list: [ { - name: '北京', + name: t.beijing, id: 2, }, ], @@ -26,11 +27,11 @@ const Demo5 = () => { title: 'G', list: [ { - name: '广西', + name: t.guangxi, id: 3, }, { - name: '广东', + name: t.guangdong, id: 4, }, ], @@ -39,20 +40,21 @@ const Demo5 = () => { title: 'H', list: [ { - name: '湖南', + name: t.hunan, id: 5, }, { - name: '湖北', + name: t.hubei, id: 6, }, { - name: '河南', + name: t.henan, id: 7, }, ], }, ] + const onItemClick = (key: string, item: any) => { console.log(key, JSON.stringify(item)) } @@ -60,12 +62,13 @@ const Demo5 = () => { const onIndexClick = (key: string) => { console.log(key) } + return ( onItemClick(key, item)} - onIndexClick={(key: string) => onIndexClick(key)} + onItemClick={onItemClick} + onIndexClick={onIndexClick} > {(value) => { @@ -80,4 +83,5 @@ const Demo5 = () => { ) } -export default Demo5 + +export default withTranslation(Demo5) diff --git a/src/packages/grid/demos/h5/demo1.tsx b/src/packages/grid/demos/h5/demo1.tsx index 31232f9ccd..bcb3abb6c0 100644 --- a/src/packages/grid/demos/h5/demo1.tsx +++ b/src/packages/grid/demos/h5/demo1.tsx @@ -1,16 +1,18 @@ import React from 'react' import { Grid } from '@nutui/nutui-react' import { Image } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo1 = () => { +const Demo1 = ({ t }: propsType) => { return ( {Array.from({ length: 8 }, (_, index) => ( - + ))} ) } -export default Demo1 + +export default withTranslation(Demo1) diff --git a/src/packages/grid/demos/h5/demo10.tsx b/src/packages/grid/demos/h5/demo10.tsx index 6d15facd3d..8c314baa98 100644 --- a/src/packages/grid/demos/h5/demo10.tsx +++ b/src/packages/grid/demos/h5/demo10.tsx @@ -1,19 +1,22 @@ import React from 'react' import { Grid, Toast } from '@nutui/nutui-react' import { Image } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo10 = () => { +const Demo10 = ({ t }: propsType) => { const onClick = (item: any, index: number) => { - Toast.show(`点击了${item.text},第${index}个`) + Toast.show(`Click${t.text} ${index}`) } + return ( {Array.from({ length: 4 }, (_, index) => ( - + ))} ) } -export default Demo10 + +export default withTranslation(Demo10) diff --git a/src/packages/grid/demos/h5/demo2.tsx b/src/packages/grid/demos/h5/demo2.tsx index fb07da2d15..7ed21e78ae 100644 --- a/src/packages/grid/demos/h5/demo2.tsx +++ b/src/packages/grid/demos/h5/demo2.tsx @@ -1,16 +1,18 @@ import React from 'react' import { Grid } from '@nutui/nutui-react' import { Image } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo2 = () => { +const Demo2 = ({ t }: propsType) => { return ( {Array.from({ length: 6 }, (_, index) => ( - + ))} ) } -export default Demo2 + +export default withTranslation(Demo2) diff --git a/src/packages/grid/demos/h5/demo3.tsx b/src/packages/grid/demos/h5/demo3.tsx index 4c065fdf34..93c12bbe23 100644 --- a/src/packages/grid/demos/h5/demo3.tsx +++ b/src/packages/grid/demos/h5/demo3.tsx @@ -1,8 +1,9 @@ import React from 'react' import { Grid } from '@nutui/nutui-react' import { Image } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo3 = () => { +const Demo3 = ({ t }: propsType) => { return ( { }} > {Array.from({ length: 4 }, (_, index) => ( - + ))} ) } -export default Demo3 + +export default withTranslation(Demo3) diff --git a/src/packages/grid/demos/h5/demo4.tsx b/src/packages/grid/demos/h5/demo4.tsx index 4de609fb91..5f85b664d2 100644 --- a/src/packages/grid/demos/h5/demo4.tsx +++ b/src/packages/grid/demos/h5/demo4.tsx @@ -1,16 +1,18 @@ import React from 'react' import { Grid } from '@nutui/nutui-react' import { Image } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo4 = () => { +const Demo4 = ({ t }: propsType) => { return ( {Array.from({ length: 8 }, (_, index) => ( - + ))} ) } -export default Demo4 + +export default withTranslation(Demo4) diff --git a/src/packages/grid/demos/h5/demo5.tsx b/src/packages/grid/demos/h5/demo5.tsx index 27d4f5bc84..dfd5874658 100644 --- a/src/packages/grid/demos/h5/demo5.tsx +++ b/src/packages/grid/demos/h5/demo5.tsx @@ -1,16 +1,18 @@ import React from 'react' import { Grid } from '@nutui/nutui-react' import { Image } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo5 = () => { +const Demo5 = ({ t }: propsType) => { return ( {Array.from({ length: 4 }, (_, index) => ( - + ))} ) } -export default Demo5 + +export default withTranslation(Demo5) diff --git a/src/packages/grid/demos/h5/demo6.tsx b/src/packages/grid/demos/h5/demo6.tsx index ce65642806..937ab32e03 100644 --- a/src/packages/grid/demos/h5/demo6.tsx +++ b/src/packages/grid/demos/h5/demo6.tsx @@ -1,16 +1,18 @@ import React from 'react' import { Grid } from '@nutui/nutui-react' import { Image } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo6 = () => { +const Demo6 = ({ t }: propsType) => { return ( {Array.from({ length: 4 }, (_, index) => ( - + ))} ) } -export default Demo6 + +export default withTranslation(Demo6) diff --git a/src/packages/grid/demos/h5/demo7.tsx b/src/packages/grid/demos/h5/demo7.tsx index bfac476d11..c1fb3fcf39 100644 --- a/src/packages/grid/demos/h5/demo7.tsx +++ b/src/packages/grid/demos/h5/demo7.tsx @@ -1,16 +1,18 @@ import React from 'react' import { Grid } from '@nutui/nutui-react' import { Image } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo7 = () => { +const Demo7 = ({ t }: propsType) => { return ( {Array.from({ length: 4 }, (_, index) => ( - + ))} ) } -export default Demo7 + +export default withTranslation(Demo7) diff --git a/src/packages/grid/demos/h5/demo8.tsx b/src/packages/grid/demos/h5/demo8.tsx index a87b45e76a..7bc3a7adb9 100644 --- a/src/packages/grid/demos/h5/demo8.tsx +++ b/src/packages/grid/demos/h5/demo8.tsx @@ -1,20 +1,22 @@ import React from 'react' import { Grid } from '@nutui/nutui-react' import { Image } from '@nutui/icons-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo8 = () => { +const Demo8 = ({ t }: propsType) => { return ( - + - + - + ) } -export default Demo8 + +export default withTranslation(Demo8) diff --git a/src/packages/space/demos/h5/demo1.tsx b/src/packages/space/demos/h5/demo1.tsx index bfb1140102..20e6f2b0a8 100644 --- a/src/packages/space/demos/h5/demo1.tsx +++ b/src/packages/space/demos/h5/demo1.tsx @@ -1,15 +1,17 @@ import React from 'react' import { Space, Button, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo1 = () => { +const Demo1 = ({ t }: propsType) => { return ( - - - + + + ) } -export default Demo1 + +export default withTranslation(Demo1) diff --git a/src/packages/space/demos/h5/demo2.tsx b/src/packages/space/demos/h5/demo2.tsx index aa7daaee72..fe83eac142 100644 --- a/src/packages/space/demos/h5/demo2.tsx +++ b/src/packages/space/demos/h5/demo2.tsx @@ -1,18 +1,20 @@ import React from 'react' import { Space, Button, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo2 = () => { +const Demo2 = ({ t }: propsType) => { return ( - - - - - - + + + + + + ) } -export default Demo2 + +export default withTranslation(Demo2) diff --git a/src/packages/space/demos/h5/demo3.tsx b/src/packages/space/demos/h5/demo3.tsx index 60f1a4ce41..2c56fdc9dd 100644 --- a/src/packages/space/demos/h5/demo3.tsx +++ b/src/packages/space/demos/h5/demo3.tsx @@ -1,15 +1,17 @@ import React from 'react' import { Space, Button, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo3 = () => { +const Demo3 = ({ t }: propsType) => { return ( - - - + + + ) } -export default Demo3 + +export default withTranslation(Demo3) diff --git a/src/packages/space/demos/h5/demo4.tsx b/src/packages/space/demos/h5/demo4.tsx index 15f1aff98a..3f8fb1d02d 100644 --- a/src/packages/space/demos/h5/demo4.tsx +++ b/src/packages/space/demos/h5/demo4.tsx @@ -1,7 +1,8 @@ import React from 'react' import { Space, Button, ConfigProvider, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo4 = () => { +const Demo4 = ({ t }: propsType) => { return ( { }} > - - - + + + ) } -export default Demo4 + +export default withTranslation(Demo4) diff --git a/src/packages/space/demos/h5/demo5.tsx b/src/packages/space/demos/h5/demo5.tsx index 9c3395a617..c15c1804ca 100644 --- a/src/packages/space/demos/h5/demo5.tsx +++ b/src/packages/space/demos/h5/demo5.tsx @@ -1,22 +1,24 @@ import React from 'react' import { Space, Button, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo5 = () => { +const Demo5 = ({ t }: propsType) => { return ( - + - - + + - - - + + + ) } -export default Demo5 + +export default withTranslation(Demo5) diff --git a/src/packages/space/demos/h5/demo6.tsx b/src/packages/space/demos/h5/demo6.tsx index e8020e71d5..e51a0c8ffa 100644 --- a/src/packages/space/demos/h5/demo6.tsx +++ b/src/packages/space/demos/h5/demo6.tsx @@ -1,22 +1,24 @@ import React from 'react' import { Space, Button, Cell } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo6 = () => { +const Demo6 = ({ t }: propsType) => { return ( - + - - + + - - - + + + ) } -export default Demo6 + +export default withTranslation(Demo6) diff --git a/src/packages/sticky/demos/h5/demo1.tsx b/src/packages/sticky/demos/h5/demo1.tsx index 906ccddcec..89da63d6b8 100644 --- a/src/packages/sticky/demos/h5/demo1.tsx +++ b/src/packages/sticky/demos/h5/demo1.tsx @@ -1,16 +1,19 @@ import React from 'react' import { Button, Sticky } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo1 = () => { +const Demo1 = ({ t }: propsType) => { const handleChange = (val: boolean) => { - console.log('吸顶状态发生了改变,当前fixed为', val) + console.log(t.stickyChangeText, val) } + return ( <> handleChange(val)}> - + ) } -export default Demo1 + +export default withTranslation(Demo1) diff --git a/src/packages/sticky/demos/h5/demo2.tsx b/src/packages/sticky/demos/h5/demo2.tsx index 3cd9ee97ca..d283ad5c89 100644 --- a/src/packages/sticky/demos/h5/demo2.tsx +++ b/src/packages/sticky/demos/h5/demo2.tsx @@ -1,13 +1,15 @@ import React from 'react' import { Button, Sticky } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo2 = () => { +const Demo2 = ({ t }: propsType) => { return ( <> - + ) } -export default Demo2 + +export default withTranslation(Demo2) diff --git a/src/packages/sticky/demos/h5/demo3.tsx b/src/packages/sticky/demos/h5/demo3.tsx index 433eef3bde..ba3db1a3f9 100644 --- a/src/packages/sticky/demos/h5/demo3.tsx +++ b/src/packages/sticky/demos/h5/demo3.tsx @@ -1,18 +1,20 @@ import React, { useRef } from 'react' import { Button, Sticky } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo3 = () => { +const Demo3 = ({ t }: propsType) => { const containerTopRef = useRef(null) return ( <>
) } -export default Demo3 + +export default withTranslation(Demo3) diff --git a/src/packages/sticky/demos/h5/demo4.tsx b/src/packages/sticky/demos/h5/demo4.tsx index d8a7e6f1fe..b22e5f533e 100644 --- a/src/packages/sticky/demos/h5/demo4.tsx +++ b/src/packages/sticky/demos/h5/demo4.tsx @@ -1,13 +1,15 @@ import React from 'react' import { Button, Sticky } from '@nutui/nutui-react' +import { withTranslation, propsType } from '@/translation/demo.translation' -const Demo4 = () => { +const Demo4 = ({ t }: propsType) => { return ( <> - + ) } -export default Demo4 + +export default withTranslation(Demo4) diff --git a/src/sites/doc/components/demoblock/replacePlugin.ts b/src/sites/doc/components/demoblock/replacePlugin.ts index 167f69b187..56059da28b 100644 --- a/src/sites/doc/components/demoblock/replacePlugin.ts +++ b/src/sites/doc/components/demoblock/replacePlugin.ts @@ -21,25 +21,25 @@ export default function replacePlugin(babel) { } }, // 替换 js中 的t对象 - // MemberExpression(path, state) { - // const { map } = state.opts; - // const { object, property, computed } = path.node; + MemberExpression(path, state) { + const { map } = state.opts; + const { object, property, computed } = path.node; - // if (t.isIdentifier(object, { name: 't' })) { - // let key = null; + if (t.isIdentifier(object, { name: 't' })) { + let key = null; - // if (t.isIdentifier(property) && !computed) { - // key = property.name; - // } else if (t.isStringLiteral(property) && computed) { - // key = property.value; - // } + if (t.isIdentifier(property) && !computed) { + key = property.name; + } else if (t.isStringLiteral(property) && computed) { + key = property.value; + } - // if (key !== null) { - // const replacementValue = map.hasOwnProperty(key) ? map[key] : key; - // path.replaceWith(t.valueToNode(replacementValue)); - // } - // } - // }, + if (key !== null) { + const replacementValue = map.hasOwnProperty(key) ? map[key] : key; + path.replaceWith(t.valueToNode(replacementValue)); + } + } + }, JSXAttribute(path, state) { const { opts } = state; const map = opts.map || {}; diff --git a/src/translation/demo.translation.tsx b/src/translation/demo.translation.tsx index ee235837b6..aa2ce25559 100644 --- a/src/translation/demo.translation.tsx +++ b/src/translation/demo.translation.tsx @@ -11,52 +11,7 @@ export function withTranslation(C: React.ComponentType) { } } // type of t -export type tType = BaseLang & { - primary: string - info: string - default: string - danger: string - warning: string - success: string - solid: string - outline: string - dashed: string - none: string - button: string - disabled: string - squareButton: string - roundButton: string - loading: string - clickMe: string - normal: string - small: string - mini: string - large: string - xlarge: string - blockButton: string - simpleButton: string - gradientButton: string - title: string - descriptionText: string - description: string - clickTest: string - setRadius: string - customContent: string - switch: string - jump: string - link: string - clickEvent: string - submit: string - custom: string - imageText: string - showOverlay: string - customOverlay: string - setAnimateTime: string - noLockBgScroll: string - nestedConetnt: string - closeOnOverlayClick: string - text: string -} +export type tType = BaseLang & { [key: string]: string } export type propsType = { t: tType } diff --git a/src/translation/translation.ts b/src/translation/translation.ts index 8e8096f051..8a1ef6d745 100644 --- a/src/translation/translation.ts +++ b/src/translation/translation.ts @@ -44,6 +44,50 @@ const translation = { nestedConetnt: '嵌套内容', closeOnOverlayClick: '点击覆盖层关闭', text: '文本', + sticky: '吸顶', + distanceFromTop: '距离顶部', + stickyWithinContainer: '指定容器内吸顶', + distanceFromBottom: '距离底部', + stickyChangeText: '吸顶状态发生了改变,当前fixed为', + testData: '我是测试数据', + top: '顶部', + beijing: '北京', + shanghai: '上海', + shenzhen: '深圳', + guangzhou: '广州', + hangzhou: '杭州', + chengdu: '成都', + xian: '西安', + tianjin: '天津', + wuhan: '武汉', + changsha: '长沙', + chongqing: '重庆', + suzhou: '苏州', + nanjing: '南京', + xining: '西宁', + lanzhou: '兰州', + shijiazhuang: '石家庄', + qinhuangdao: '秦皇岛', + dalian: '大连', + haerbin: '哈尔滨', + changchun: '长春', + taiyuan: '太原', + anhui: '安徽', + guangxi: '广西', + guangdong: '广东', + hunan: '湖南', + hubei: '湖北', + henan: '河南', + fujian: '福建', + gansu: '甘肃', + guizhou: '贵州', + hainan: '海南', + hebei: '河北', + jilin: '吉林', + jiangsu: '江苏', + jiangxi: '江西', + liaoning: '辽宁', + heilongjiang: '黑龙江', }, 'en-US': { primary: 'Primary', @@ -91,6 +135,51 @@ const translation = { nestedConetnt: 'Nested Content', closeOnOverlayClick: 'Close on Overlay Click', text: 'Text', + sticky: 'Sticky', + distanceFromTop: 'Distance from Top', + stickyWithinContainer: 'Sticky Within Container', + distanceFromBottom: 'Distance from Bottom', + stickyChangeText: + 'The sticky state has changed, the current fixed state is', + testData: 'Test Data', + top: 'Top', + beijing: 'Beijing', + shanghai: 'Shanghai', + shenzhen: 'Shenzhen', + guangzhou: 'Guangzhou', + hangzhou: 'Hangzhou', + chengdu: 'Chengdu', + xian: "Xi'an", + tianjin: 'Tianjin', + wuhan: 'Wuhan', + changsha: 'Changsha', + chongqing: 'Chongqing', + suzhou: 'Suzhou', + nanjing: 'Nanjing', + xining: 'Xining', + lanzhou: 'Lanzhou', + shijiazhuang: 'Shijiazhuang', + qinhuangdao: 'Qinhuangdao', + dalian: 'Dalian', + haerbin: 'Harbin', + changchun: 'Changchun', + taiyuan: 'Taiyuan', + anhui: 'Anhui', + guangxi: 'Guanxi', + guangdong: 'Guangdong', + hunan: 'Hunan', + hubei: 'Hubei', + henan: 'Henan', + fujian: 'Fujian', + gansu: 'Gansu', + guizhou: 'Guizhou', + hainan: 'Hainan', + hebei: 'Hebei', + jilin: 'Jilin', + jiangsu: 'Jiangsu', + jiangxi: 'Jiangxi', + liaoning: 'Liaoning', + heilongjiang: 'Heilongjiang', }, }