@primer/react
Version:
An implementation of GitHub's Primer Design System using React
274 lines (273 loc) • 9.01 kB
JSON
{
"name": "@primer/react",
"version": "35.25.1",
"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"
},
"./drafts": {
"import": "./lib-esm/drafts/index.js",
"require": "./lib/drafts/index.js"
},
"./deprecated": {
"import": "./lib-esm/deprecated/index.js",
"require": "./lib/deprecated/index.js"
},
"./lib-esm/*": {
"import": [
"./lib-esm/*.js",
"./lib-esm/*/index.js"
],
"require": [
"./lib/*.js",
"./lib/*/index.js"
]
},
"./lib-esm/internal/*": null
},
"typings": "lib/index.d.ts",
"sideEffects": false,
"scripts": {
"setup": "./script/setup",
"build": "./script/build",
"clean": "rimraf dist lib lib-esm",
"format": "prettier --cache --write '**/*.{js,md,mdx,ts,tsx,yml}'",
"format:diff": "prettier --cache --list-different '**/*.{js.md,mdx,ts,tsx,yml}'",
"start": "concurrently npm:start:*",
"start:docs": "cd docs && npm run develop",
"start:storybook": "STORYBOOK=true start-storybook -p 6006",
"build:storybook": "script/build-storybook",
"build:docs": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs",
"build:docs:preview": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs preview",
"build:storybook:visual-testing": "build-storybook",
"build:components.json": "ts-node script/components-json/build",
"install:docs": "(cd docs && npm install --legacy-peer-deps)",
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0",
"lint:fix": "npm run lint -- --fix",
"lint:md": "markdownlint-cli2 \"**/*.{md,mdx}\" \"!.github\" \"!.changeset\" \"!node_modules\" \"!CHANGELOG.md\"",
"test": "jest",
"test:storybook": "test-storybook",
"test:update": "npm run test -- --updateSnapshot",
"test:watch": "npm run test -- --watch",
"test:coverage": "npm run test -- --coverage",
"test:type-check": "tsc --noEmit",
"release": "npm run build && changeset publish",
"size": "size-limit",
"prepare": "husky install"
},
"repository": "primer/react",
"keywords": [
"react",
"components",
"library",
"design-system"
],
"files": [
"codemods",
"dist",
"lib",
"lib/node_modules",
"lib-esm",
"index.d.ts",
"deprecated/package.json",
"drafts/package.json",
"!lib/__tests__",
"!lib/stories",
"!lib-esm/__tests__",
"!lib-esm/stories",
"generated"
],
"author": "GitHub, Inc.",
"license": "MIT",
"engines": {
"node": ">=12",
"npm": ">=7"
},
"dependencies": {
"@github/combobox-nav": "^2.1.5",
"@github/markdown-toolbar-element": "^2.1.0",
"@github/paste-markdown": "^1.4.0",
"@github/relative-time-element": "^4.1.2",
"@lit-labs/react": "1.1.1",
"@primer/behaviors": "1.3.3",
"@primer/octicons-react": "^18.0.0",
"@primer/primitives": "7.11.5",
"@react-aria/ssr": "^3.1.0",
"@styled-system/css": "^5.1.5",
"@styled-system/props": "^5.1.5",
"@styled-system/theme-get": "^5.1.2",
"@types/styled-components": "^5.1.11",
"@types/styled-system": "^5.1.12",
"@types/styled-system__css": "^5.0.16",
"@types/styled-system__theme-get": "^5.0.1",
"classnames": "^2.3.1",
"color2k": "^2.0.0",
"deepmerge": "^4.2.2",
"focus-visible": "^5.2.0",
"fzy.js": "0.4.1",
"history": "^5.0.0",
"react-intersection-observer": "9.4.3",
"styled-system": "^5.1.5"
},
"devDependencies": {
"@actions/core": "1.10.0",
"@babel/cli": "7.21.0",
"@babel/core": "7.21.0",
"@babel/eslint-parser": "7.21.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
"@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/plugin-transform-modules-commonjs": "7.21.2",
"@babel/preset-react": "7.18.6",
"@babel/preset-typescript": "7.21.0",
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.0",
"@github/markdownlint-github": "^0.3.0",
"@github/prettier-config": "0.0.6",
"@playwright/test": "1.32.0",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-commonjs": "24.0.1",
"@rollup/plugin-node-resolve": "15.0.1",
"@rollup/plugin-replace": "5.0.2",
"@rollup/plugin-terser": "0.4.0",
"@rollup/plugin-typescript": "11.1.0",
"@rollup/plugin-virtual": "3.0.1",
"@size-limit/preset-big-lib": "8.2.4",
"@storybook/addon-a11y": "6.5.16",
"@storybook/addon-actions": "6.5.16",
"@storybook/addon-essentials": "6.5.16",
"@storybook/addon-interactions": "6.5.14",
"@storybook/addon-links": "6.5.16",
"@storybook/addon-storysource": "6.5.14",
"@storybook/builder-webpack5": "6.5.16",
"@storybook/jest": "0.0.10",
"@storybook/manager-webpack5": "6.5.14",
"@storybook/react": "6.5.16",
"@storybook/test-runner": "0.9.1",
"@storybook/testing-library": "0.0.13",
"@storybook/theming": "6.5.16",
"@testing-library/dom": "9.2.0",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "14.0.0",
"@testing-library/react-hooks": "7.0.2",
"@testing-library/user-event": "^14.3.0",
"@types/chroma-js": "2.1.4",
"@types/jest": "29.4.0",
"@types/jest-axe": "3.5.5",
"@types/lodash.groupby": "4.6.7",
"@types/lodash.isempty": "4.4.7",
"@types/lodash.isobject": "3.0.7",
"@types/lodash.keyby": "4.6.7",
"@types/node": "16.11.11",
"@types/react": "18.0.28",
"@types/react-dom": "18.0.9",
"@typescript-eslint/eslint-plugin": "5.54.1",
"@typescript-eslint/parser": "5.54.1",
"ajv": "8.12.0",
"axe-core": "4.6.1",
"babel-core": "7.0.0-bridge.0",
"babel-loader": "^9.1.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-preval": "5.1.0",
"babel-plugin-styled-components": "2.1.1",
"babel-plugin-transform-commonjs": "1.1.6",
"babel-plugin-transform-replace-expressions": "0.2.0",
"babel-polyfill": "6.26.0",
"change-case": "4.1.2",
"chroma-js": "2.4.2",
"chromatic": "6.1.0",
"concurrently": "7.6.0",
"copyfiles": "2.4.1",
"cross-env": "7.0.3",
"eslint": "8.35.0",
"eslint-import-resolver-typescript": "3.5.3",
"eslint-plugin-github": "4.6.1",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-mdx": "2.0.5",
"eslint-plugin-playwright": "0.12.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-primer-react": "2.0.3",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-ssr-friendly": "1.2.0",
"eslint-plugin-storybook": "0.6.11",
"eslint-plugin-testing-library": "5.10.2",
"fast-glob": "3.2.12",
"filesize": "10.0.6",
"front-matter": "4.0.2",
"gzip-size": "6.0.0",
"husky": "8.0.2",
"jest": "29.4.2",
"jest-axe": "7.0.1",
"jest-environment-jsdom": "29.4.3",
"jest-fail-on-console": "3.1.1",
"jest-matchmedia-mock": "1.1.0",
"jest-styled-components": "6.3.4",
"jest-watch-typeahead": "2.2.2",
"jscodeshift": "0.14.0",
"lint-staged": "13.1.0",
"lodash.groupby": "4.6.0",
"lodash.isempty": "4.4.0",
"lodash.isobject": "3.0.2",
"lodash.keyby": "4.6.0",
"markdownlint-cli2": "^0.6.0",
"markdownlint-cli2-formatter-pretty": "0.0.3",
"mdast-util-from-markdown": "1.2.0",
"mdast-util-frontmatter": "1.0.1",
"mdast-util-mdx": "2.0.1",
"mdast-util-to-string": "3.1.1",
"micromark-extension-frontmatter": "1.0.0",
"micromark-extension-mdxjs": "1.0.0",
"prettier": "2.8.1",
"react": "18.2.0",
"react-dnd": "14.0.4",
"react-dnd-html5-backend": "14.0.2",
"react-dom": "18.2.0",
"react-test-renderer": "18.2.0",
"recast": "0.22.0",
"rimraf": "4.1.2",
"rollup": "3.20.2",
"rollup-plugin-visualizer": "5.9.0",
"semver": "7.3.8",
"size-limit": "8.2.4",
"storybook-addon-turbo-build": "1.1.0",
"styled-components": "4.4.1",
"terser": "5.16.1",
"ts-node": "10.9.1",
"ts-toolbelt": "9.6.0",
"typescript": "4.9.5",
"unist-util-find": "1.0.2",
"unist-util-find-before": "3.0.1",
"unist-util-flat-filter": "2.0.0",
"webpack": "5.77.0",
"yaml": "2.2.1"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"styled-components": "4.x || 5.x"
},
"prettier": "@github/prettier-config",
"size-limit": [
{
"path": "dist/browser.esm.js",
"webpack": false,
"running": false
},
{
"path": "dist/browser.umd.js",
"webpack": false,
"running": false
}
],
"lint-staged": {
"**/*.{js,ts,tsx,md,mdx}": "npm run lint"
}
}