This commit introduces a comprehensive update to the theme tokens in the Cunningham package. The previous color definitions have been replaced with a new structure that includes global color tokens for branding and contextual elements. Additionally, the SCSS and JS files have been refactored to align with this new token architecture, enhancing maintainability and ensuring a cohesive design system across the application. The TypeScript configuration has also been updated to support JSX syntax.
123 lines
4.0 KiB
JSON
123 lines
4.0 KiB
JSON
{
|
|
"name": "@openfun/cunningham-react",
|
|
"private": false,
|
|
"version": "4.0.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.mts && rm -rf dist/fonts.js && make-dir dist/sass && cp src/fonts.scss dist/sass/",
|
|
"build-icons": "vite build -c vite.icons.config.mts && 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"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "19.1.0",
|
|
"react-dom": "19.1.0"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/roboto-flex": "5.2.5",
|
|
"@fontsource/material-icons-outlined": "5.2.5",
|
|
"@internationalized/date": "3.8.0",
|
|
"@openfun/cunningham-tokens": "*",
|
|
"@react-aria/calendar": "3.8.0",
|
|
"@react-aria/datepicker": "3.14.2",
|
|
"@react-aria/i18n": "3.12.8",
|
|
"@react-stately/calendar": "3.8.0",
|
|
"@react-stately/datepicker": "3.14.0",
|
|
"@tanstack/react-table": "8.21.3",
|
|
"@types/react-modal": "3.16.3",
|
|
"chromatic": "11.28.2",
|
|
"classnames": "2.5.1",
|
|
"downshift": "9.0.9",
|
|
"react-aria": "3.39.0",
|
|
"react-aria-components": "1.8.0",
|
|
"react-modal": "3.16.3",
|
|
"react-stately": "3.37.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.27.1",
|
|
"@babel/plugin-proposal-decorators": "7.27.1",
|
|
"@babel/plugin-proposal-export-default-from": "7.27.1",
|
|
"@babel/preset-typescript": "7.27.1",
|
|
"@chromatic-com/storybook": "3.2.6",
|
|
"@faker-js/faker": "9.7.0",
|
|
"@hookform/resolvers": "5.0.1",
|
|
"@openfun/cunningham-tokens": "*",
|
|
"@openfun/typescript-configs": "*",
|
|
"@storybook/addon-a11y": "8.6.12",
|
|
"@storybook/addon-actions": "8.6.12",
|
|
"@storybook/addon-essentials": "8.6.12",
|
|
"@storybook/addon-interactions": "8.6.12",
|
|
"@storybook/addon-links": "8.6.12",
|
|
"@storybook/preset-scss": "1.0.3",
|
|
"@storybook/react": "8.6.12",
|
|
"@storybook/react-vite": "8.6.12",
|
|
"@storybook/storybook-deployer": "2.8.16",
|
|
"@testing-library/dom": "10.4.0",
|
|
"@testing-library/jest-dom": "6.6.3",
|
|
"@testing-library/react": "16.3.0",
|
|
"@testing-library/user-event": "14.6.1",
|
|
"@types/jest": "29.5.14",
|
|
"@types/react": "19.1.2",
|
|
"@types/react-dom": "19.1.3",
|
|
"@vitejs/plugin-react": "4.4.1",
|
|
"@vitest/coverage-c8": "0.33.0",
|
|
"@vitest/ui": "3.1.2",
|
|
"babel-loader": "10.0.0",
|
|
"css-loader": "7.1.2",
|
|
"glob": "11.0.2",
|
|
"jsdom": "26.1.0",
|
|
"react-hook-form": "7.56.2",
|
|
"remark-gfm": "4.0.0",
|
|
"sass": "1.87.0",
|
|
"sass-loader": "16.0.5",
|
|
"storybook": "8.6.12",
|
|
"style-loader": "4.0.0",
|
|
"typescript": "5.8.3",
|
|
"vite": "6.3.4",
|
|
"vite-plugin-dts": "4.5.3",
|
|
"vite-tsconfig-paths": "5.1.4",
|
|
"vitest": "3.1.2",
|
|
"vitest-fetch-mock": "0.4.5",
|
|
"yup": "1.6.1"
|
|
},
|
|
"volta": {
|
|
"node": "20.16.0",
|
|
"yarn": "1.22.22"
|
|
}
|
|
}
|