@trussworks/react-uswds
Version:
React USWDS 3 component library
154 lines • 5 kB
JSON
{
"name": "@trussworks/react-uswds",
"version": "11.0.0",
"description": "React USWDS 3 component library",
"keywords": [
"react",
"uswds",
"uswds 3",
"react component",
"us web design",
"design system",
"component library"
],
"type": "module",
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
".": {
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.cjs"
}
},
"./lib/index.css": "./lib/index.css",
"./lib/uswds.css": "./lib/uswds.css"
},
"files": [
"lib"
],
"engines": {
"node": ">= 20"
},
"scripts": {
"test": "vitest --run",
"test:debug": "vitest --inspect --pool threads --poolOptions.threads.singleThread",
"test:watch": "vitest",
"test:coverage": "vitest --run --coverage",
"test:bundles": "vitest --run bundles.test.tsx --mode bundles",
"test:serverside": "yarn build && node src/serverSideTest.js",
"storybook": "storybook dev -p 9009",
"build-storybook": "storybook build",
"build": "vite build && yarn run build:uswds && yarn run test:bundles",
"build:uswds": "vite build --mode uswds",
"build:watch": "vite dev",
"lint": "tsc && eslint src && stylelint \"src/**/*.{css,scss}\"",
"lint:fix": "tsc && eslint src --fix && stylelint \"src/**/*.{css,scss}\" --fix",
"format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx,css,scss,json,md}\"",
"format:fix": "prettier --write \"src/**/*.{js,jsx,ts,tsx,css,scss,json,md}\"",
"prepack": "yarn lint && yarn test && yarn build",
"happo": "happo run --config ./.happo.js",
"happo-ci": "HAPPO_CONFIG_FILE='./.happo.js' npx -p happo.io happo-ci-github-actions --config ./.happo.js",
"contributors:add": "all-contributors add"
},
"simple-git-hooks": {
"pre-commit": "yarn nano-staged"
},
"nano-staged": {
"**/*.{ts,tsx,js,jsx}": [
"eslint --max-warnings=0 --fix",
"prettier --write"
],
"**/*.{css,scss}": [
"stylelint --fix",
"prettier --write"
],
"**/*.{json,md}": [
"prettier --write"
]
},
"repository": {
"type": "git",
"url": "github:trussworks/react-uswds"
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/trussworks/react-uswds/issues"
},
"homepage": "https://github.com/trussworks/react-uswds#readme",
"peerDependencies": {
"@types/react": "^16.x || ^17.x || ^18.x || ^19.x",
"@types/react-dom": "^16.x || ^17.x || ^18.x || ^19.x",
"@uswds/uswds": "^3.13.0",
"focus-trap-react": "^11.0.4",
"react": "^16.x || ^17.x || ^18.x || ^19.x",
"react-dom": "^16.x || ^17.x || ^18.x || ^19.x"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@eslint/compat": "^2.0.0",
"@eslint/eslintrc": "^3.3.0",
"@eslint/js": "^9.22.0",
"@laynezh/vite-plugin-lib-assets": "^2.1.0",
"@storybook/addon-a11y": "^10.0.5",
"@storybook/addon-docs": "^10.0.5",
"@storybook/addon-links": "^10.0.5",
"@storybook/react": "^10.0.5",
"@storybook/react-vite": "^10.0.5",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@uswds/uswds": "3.13.0",
"@vitejs/plugin-react": "^5.0.0",
"@vitest/coverage-istanbul": "^4.0.8",
"@vitest/eslint-plugin": "^1.1.44",
"all-contributors-cli": "^6.24.0",
"babel-loader": "^10.0.0",
"classnames": "^2.3.2",
"danger": "^13.0.4",
"eslint": "^9.24.0",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-storybook": "^10.0.5",
"focus-trap-react": "^11.0.3",
"globals": "^16.0.0",
"happo-plugin-storybook": "^5.0.4",
"happo.io": "^13.0.1",
"jsdom": "^27.0.1",
"nano-staged": "^0.9.0",
"prettier": "^3.2.5",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sass-embedded": "^1.86.0",
"simple-git-hooks": "^2.13.1",
"storybook": "^10.0.5",
"stylelint": "^16.16.0",
"stylelint-config-css-modules": "^4.4.0",
"stylelint-config-recommended": "^17.0.0",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-config-standard-scss": "^16.0.0",
"typescript": "^5.8.3",
"vite": "^7.0.2",
"vite-plugin-checker": "^0.12.0",
"vite-plugin-dts": "^4.5.4",
"vite-plugin-svgr": "^4.3.0",
"vitest": "^4.0.8",
"webpack": "^5.90.1"
},
"packageManager": "yarn@3.8.7"
}