We encoutered an issue where stacked modal backdrop were not rendered above the modal below. It was caused by the dialog element that is natively rendered on the top layer regardless where it is create in the DOM. So we decided to use react modal that provides hand crafted dialog, and implementing a11y features. Closes #314
121 lines
3.9 KiB
JSON
121 lines
3.9 KiB
JSON
{
|
|
"name": "@openfun/cunningham-react",
|
|
"private": false,
|
|
"version": "2.7.0",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"license": "MIT",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.mjs",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"require": "./dist/index.js",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"./style": "./dist/style.css",
|
|
"./fonts": "./dist/fonts.css",
|
|
"./icons": "./dist/icons.css",
|
|
"./sass/fonts": "./dist/sass/fonts.scss",
|
|
"./sass/icons": "./dist/sass/icons.scss"
|
|
},
|
|
"files": [
|
|
"dist/"
|
|
],
|
|
"scripts": {
|
|
"lint": "eslint . \"src/**/*.{ts,tsx}\"",
|
|
"dev": "yarn storybook",
|
|
"build": "bash ./build",
|
|
"build:watch": "yarn build && vite build --mode watch",
|
|
"build:watch-polling": "yarn build && vite build --mode watch-polling",
|
|
"build-fonts": "vite build -c vite.fonts.config.ts && rm -rf dist/fonts.js && make-dir dist/sass && cp src/fonts.scss dist/sass/",
|
|
"build-icons": "vite build -c vite.icons.config.ts && rm -rf dist/icons.js && make-dir dist/sass && cp src/icons.scss dist/sass/",
|
|
"build-theme": "cunningham -o src -g css,ts,js,scss",
|
|
"preview": "vite preview",
|
|
"test": "cross-env FORCE_COLOR=1 vitest run",
|
|
"test-ci": "cross-env VITEST_MIN_THREADS=1 cross-env VITEST_MAX_THREADS=3 cross-env FORCE_COLOR=1 vitest run --shard $(($CIRCLE_NODE_INDEX + 1))/$CIRCLE_NODE_TOTAL",
|
|
"test-watch": "vitest",
|
|
"coverage": "vitest run --coverage",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/roboto-flex": "5.0.13",
|
|
"@fontsource/material-icons-outlined": "5.0.11",
|
|
"@internationalized/date": "3.5.2",
|
|
"@openfun/cunningham-tokens": "*",
|
|
"@react-aria/calendar": "3.5.6",
|
|
"@react-aria/datepicker": "3.9.3",
|
|
"@react-aria/i18n": "3.10.2",
|
|
"@react-stately/calendar": "3.4.4",
|
|
"@react-stately/datepicker": "3.9.2",
|
|
"@tanstack/react-table": "8.13.2",
|
|
"@types/react-modal": "3.16.3",
|
|
"chromatic": "11.2.0",
|
|
"classnames": "2.5.1",
|
|
"downshift": "8.4.0",
|
|
"react": "18.2.0",
|
|
"react-aria": "3.32.1",
|
|
"react-aria-components": "1.1.1",
|
|
"react-dom": "18.2.0",
|
|
"react-modal": "3.16.1",
|
|
"react-stately": "3.30.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.24.0",
|
|
"@babel/plugin-proposal-decorators": "7.24.0",
|
|
"@babel/plugin-proposal-export-default-from": "7.23.3",
|
|
"@babel/preset-typescript": "7.23.3",
|
|
"@chromatic-com/storybook": "1.2.22",
|
|
"@faker-js/faker": "8.4.1",
|
|
"@hookform/resolvers": "3.3.4",
|
|
"@openfun/cunningham-tokens": "*",
|
|
"@openfun/typescript-configs": "*",
|
|
"@storybook/addon-a11y": "8.0.0",
|
|
"@storybook/addon-actions": "8.0.0",
|
|
"@storybook/addon-essentials": "8.0.0",
|
|
"@storybook/addon-interactions": "8.0.0",
|
|
"@storybook/addon-links": "8.0.0",
|
|
"@storybook/preset-scss": "1.0.3",
|
|
"@storybook/react": "8.0.0",
|
|
"@storybook/react-vite": "8.0.0",
|
|
"@storybook/storybook-deployer": "2.8.16",
|
|
"@testing-library/dom": "9.3.4",
|
|
"@testing-library/jest-dom": "6.4.2",
|
|
"@testing-library/react": "14.2.1",
|
|
"@testing-library/user-event": "14.5.2",
|
|
"@types/jest": "29.5.12",
|
|
"@types/react": "18.2.64",
|
|
"@types/react-dom": "18.2.21",
|
|
"@vitejs/plugin-react": "4.2.1",
|
|
"@vitest/coverage-c8": "0.33.0",
|
|
"@vitest/ui": "1.3.1",
|
|
"babel-loader": "9.1.3",
|
|
"css-loader": "6.10.0",
|
|
"glob": "10.3.10",
|
|
"jsdom": "24.0.0",
|
|
"react-hook-form": "7.51.0",
|
|
"remark-gfm": "4.0.0",
|
|
"sass": "1.71.1",
|
|
"sass-loader": "14.1.1",
|
|
"storybook": "8.0.0",
|
|
"style-loader": "3.3.4",
|
|
"typescript": "5.4.2",
|
|
"vite": "5.1.5",
|
|
"vite-plugin-dts": "3.7.3",
|
|
"vite-tsconfig-paths": "4.3.1",
|
|
"vitest": "1.3.1",
|
|
"vitest-fetch-mock": "0.2.2",
|
|
"yup": "1.4.0"
|
|
},
|
|
"volta": {
|
|
"node": "18.18.2",
|
|
"yarn": "1.22.22"
|
|
}
|
|
}
|