UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

207 lines (206 loc) • 6.48 kB
{ "name": "@primer/react", "type": "module", "version": "38.6.2", "description": "An implementation of GitHub's Primer Design System using React", "main": "./dist/index.js", "module": "./dist/index.js", "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./experimental": { "types": "./dist/experimental/index.d.ts", "default": "./dist/experimental/index.js" }, "./deprecated": { "types": "./dist/deprecated/index.d.ts", "default": "./dist/deprecated/index.js" }, "./next": { "types": "./dist/next/index.d.ts", "default": "./dist/next/index.js" }, "./test-helpers": { "types": "./dist/utils/test-helpers.d.ts", "default": "./dist/test-helpers.js" }, "./generated/components.json": "./generated/components.json", "./generated/hooks.json": "./generated/hooks.json" }, "typings": "dist/index.d.ts", "sideEffects": [ "dist/**/*.css", "src/**/test-helpers.tsx", "dist/**/test-helpers.js" ], "scripts": { "build": "./script/build", "clean": "rimraf dist generated", "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", "lint:npm": "publint --types", "storybook": "storybook", "type-check": "tsc --noEmit", "type-css-modules": "tcm -p src/**/*.module.css" }, "repository": { "type": "git", "url": "git+https://github.com/primer/react.git" }, "keywords": [ "react", "components", "library", "design-system" ], "files": [ "dist", "!dist/legacy-theme/ts/colors", "generated", "CHANGELOG.md" ], "author": "GitHub, Inc.", "license": "MIT", "engines": { "node": ">=12", "npm": ">=7" }, "dependencies": { "@github/mini-throttle": "^2.1.1", "@github/relative-time-element": "^4.5.0", "@github/tab-container-element": "^4.8.2", "@lit-labs/react": "1.2.1", "@oddbird/popover-polyfill": "^0.5.2", "@primer/behaviors": "^1.9.0", "@primer/live-region-element": "^0.7.1", "@primer/octicons-react": "^19.13.0", "@primer/primitives": "10.x || 11.x", "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": "^1.0.0", "react-intersection-observer": "^9.16.0" }, "devDependencies": { "@actions/core": "1.11.1", "@babel/cli": "7.28.3", "@babel/core": "7.28.5", "@babel/parser": "7.28.5", "@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.28.5", "@babel/preset-typescript": "7.28.5", "@figma/code-connect": "1.3.2", "@primer/css": "^21.5.1", "@primer/doc-gen": "^0.0.1", "@tanstack/react-virtual": "^3.13.12", "@rollup/plugin-babel": "6.1.0", "@rollup/plugin-commonjs": "29.0.0", "@rollup/plugin-json": "6.1.0", "@rollup/plugin-node-resolve": "16.0.3", "@rollup/plugin-typescript": "12.3.0", "@rollup/plugin-virtual": "3.0.2", "@storybook/addon-a11y": "^10.1.4", "@storybook/addon-docs": "^10.1.4", "@storybook/addon-links": "^10.1.4", "@storybook/icons": "^2.0.1", "@storybook/react-vite": "^10.1.4", "@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", "@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": "^1.0.0", "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", "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", "publint": "^0.3.15", "react": "18.3.1", "react-dom": "18.3.1", "react-is": "18.3.1", "recast": "0.23.7", "rimraf": "5.0.5", "rollup": "4.53.3", "rollup-plugin-import-css": "^0.0.0", "storybook": "^10.1.4", "terser": "5.36.0", "ts-toolbelt": "9.6.0", "tsx": "4.20.3", "typed-css-modules": "^0.9.1", "typescript": "^5.9.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", "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", "react": "18.x || 19.x", "react-dom": "18.x || 19.x", "react-is": "18.x || 19.x" }, "peerDependenciesMeta": { "@types/react": { "optional": true }, "@types/react-dom": { "optional": true }, "@types/react-is": { "optional": true } } }