UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

243 lines (242 loc) • 7.66 kB
{ "name": "@primer/react", "version": "37.30.0", "description": "An implementation of GitHub's Primer Design System using React", "main": "lib/index.js", "module": "lib-esm/index.js", "exports": { ".": { "import": "./lib-esm/index.js", "require": "./lib/index.js" }, "./experimental": { "import": "./lib-esm/experimental/index.js", "require": "./lib/experimental/index.js" }, "./deprecated": { "import": "./lib-esm/deprecated/index.js", "require": "./lib/deprecated/index.js" }, "./next": { "import": "./lib-esm/next/index.js", "require": "./lib/next/index.js" }, "./test-helpers": { "import": "./lib-esm/test-helpers.js", "require": "./lib/test-helpers.js" }, "./generated/components.json": "./generated/components.json", "./generated/hooks.json": "./generated/hooks.json" }, "typings": "lib/index.d.ts", "sideEffects": [ "lib-esm/**/*.css", "lib/**/*.css", "src/**/test-helpers.tsx", "lib-esm/**/test-helpers.js", "lib/**/test-helpers.js" ], "scripts": { "build": "./script/build", "clean": "rimraf dist lib lib-esm css", "start": "concurrently npm:start:*", "start:storybook": "STORYBOOK=true storybook dev -p 6006", "build:storybook": "storybook build", "build:docs": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs", "build:docs:preview": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs preview", "build:components.json": "tsx script/components-json/build.ts", "build:hooks.json": "tsx script/hooks-json/build.ts", "build:precompile-color-schemes": "tsx script/precompile-color-schemes.ts", "storybook": "storybook", "type-check": "tsc --noEmit", "type-css-modules": "tcm -p src/**/*.module.css" }, "repository": "primer/react", "keywords": [ "react", "components", "library", "design-system" ], "files": [ "codemods", "dist", "lib", "lib/node_modules", "lib-esm", "css", "index.d.ts", "deprecated/package.json", "experimental/package.json", "!lib/__tests__", "!lib/stories", "!lib-esm/__tests__", "!lib-esm/stories", "generated", "CHANGELOG.md" ], "author": "GitHub, Inc.", "license": "MIT", "engines": { "node": ">=12", "npm": ">=7" }, "dependencies": { "@github/relative-time-element": "^4.4.5", "@github/tab-container-element": "4.8.2", "@lit-labs/react": "1.2.1", "@oddbird/popover-polyfill": "^0.5.2", "@primer/behaviors": "^1.8.0", "@primer/live-region-element": "^0.7.1", "@primer/octicons-react": "^19.13.0", "@primer/primitives": "10.x || 11.x", "@styled-system/css": "^5.1.5", "@styled-system/props": "^5.1.5", "@styled-system/theme-get": "^5.1.2", "@types/styled-system": "^5.1.23", "@types/styled-system__css": "^5.0.16", "@types/styled-system__theme-get": "^5.0.1", "clsx": "^2.1.1", "color2k": "^2.0.3", "deepmerge": "^4.3.1", "focus-visible": "^5.2.1", "history": "^5.0.0", "hsluv": "1.0.1", "lodash.isempty": "^4.4.0", "lodash.isobject": "^3.0.2", "react-compiler-runtime": "^19.1.0-rc.2", "react-intersection-observer": "^9.16.0", "styled-system": "^5.1.5", "type-check": "0.4.0" }, "devDependencies": { "@actions/core": "1.11.1", "@babel/cli": "7.28.0", "@babel/core": "7.28.0", "@babel/parser": "7.28.0", "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", "@babel/plugin-proposal-optional-chaining": "7.21.0", "@babel/plugin-transform-modules-commonjs": "7.27.1", "@babel/preset-react": "7.27.1", "@babel/preset-typescript": "7.27.1", "@figma/code-connect": "1.3.2", "@primer/css": "^21.5.1", "@rollup/plugin-babel": "6.0.4", "@rollup/plugin-commonjs": "28.0.6", "@rollup/plugin-json": "6.1.0", "@rollup/plugin-node-resolve": "16.0.1", "@rollup/plugin-replace": "6.0.2", "@rollup/plugin-terser": "0.4.4", "@rollup/plugin-typescript": "12.1.4", "@rollup/plugin-virtual": "3.0.2", "@storybook/addon-a11y": "^9.0.17", "@storybook/addon-docs": "^9.0.17", "@storybook/addon-links": "^9.0.17", "@storybook/csf": "^0.1.13", "@storybook/icons": "^1.4.0", "@storybook/react-vite": "^9.0.17", "@storybook/source-loader": "^8.4.7", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.4.5", "@testing-library/react": "^16.3.0", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.5.2", "@types/lodash.groupby": "4.6.9", "@types/lodash.isempty": "4.4.9", "@types/lodash.isobject": "3.0.9", "@types/lodash.keyby": "4.6.9", "@types/node": "20.12.11", "@types/react": "18.3.11", "@types/react-dom": "18.3.1", "@types/react-is": "18.3.1", "@types/react-test-renderer": "18.3.1", "@types/semver": "7.7.0", "@types/styled-components": "^5.1.26", "@vitejs/plugin-react": "^4.3.3", "afterframe": "^1.0.2", "ajv": "8.16.0", "axe-core": "4.9.1", "babel-core": "7.0.0-bridge.0", "babel-plugin-add-react-displayname": "0.0.5", "babel-plugin-dev-expression": "0.2.3", "babel-plugin-macros": "3.1.0", "babel-plugin-open-source": "1.3.4", "babel-plugin-react-compiler": "^19.1.0-rc.2", "babel-plugin-styled-components": "2.1.4", "babel-plugin-transform-replace-expressions": "0.2.0", "babel-polyfill": "6.26.0", "chalk": "^5.4.1", "change-case": "5.4.4", "concurrently": "9.1.2", "copyfiles": "2.4.1", "cross-env": "7.0.3", "fast-glob": "3.3.2", "filesize": "10.1.6", "front-matter": "4.0.2", "gzip-size": "6.0.0", "jest-css-modules": "2.1.0", "jest-environment-jsdom": "29.7.0", "jest-fail-on-console": "3.2.0", "jest-matchmedia-mock": "1.1.0", "jest-styled-components": "7.2.0", "jscodeshift": "0.15.0", "lodash.groupby": "4.6.0", "lodash.keyby": "4.6.0", "markdownlint": "^0.38.0", "mdast-util-from-markdown": "2.0.1", "mdast-util-frontmatter": "2.0.1", "mdast-util-mdx": "3.0.0", "mdast-util-to-string": "4.0.0", "micromark-extension-frontmatter": "2.0.0", "micromark-extension-mdxjs": "3.0.0", "postcss-preset-primer": "^0.0.0", "react": "18.3.1", "react-dom": "18.3.1", "react-is": "18.3.1", "react-test-renderer": "18.3.1", "recast": "0.23.7", "rimraf": "5.0.5", "rollup": "4.45.1", "rollup-plugin-import-css": "^0.0.0", "rollup-plugin-postcss": "4.0.2", "rollup-plugin-visualizer": "6.0.3", "semver": "7.7.1", "storybook": "^9.0.17", "styled-components": "5.3.11", "terser": "5.36.0", "ts-toolbelt": "9.6.0", "tsx": "4.20.3", "typed-css-modules": "^0.9.1", "typescript": "^5.8.2", "typescript-plugin-css-modules": "^5.2.0", "unist-util-find": "3.0.0", "unist-util-find-before": "4.0.0", "unist-util-flat-filter": "2.0.0", "vitest-fail-on-console": "^0.7.1", "yaml": "2.7.0" }, "peerDependencies": { "@types/react": "18.x || 19.x", "@types/react-dom": "18.x || 19.x", "@types/react-is": "18.x || 19.x", "@types/styled-components": "^5.1.11", "react": "18.x || 19.x", "react-dom": "18.x || 19.x", "react-is": "18.x || 19.x", "styled-components": "5.x" }, "peerDependenciesMeta": { "@types/react": { "optional": true }, "@types/react-dom": { "optional": true }, "@types/react-is": { "optional": true }, "@types/styled-components": { "optional": true } } }