@trussworks/react-uswds
Version:
React USWDS 3 component library
142 lines • 4.83 kB
JSON
{
"name": "@trussworks/react-uswds",
"version": "10.0.2",
"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"
},
"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.7.1",
"focus-trap-react": "^10.2.3",
"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": "^1.2.9",
"@eslint/eslintrc": "^3.3.0",
"@eslint/js": "^9.22.0",
"@laynezh/vite-plugin-lib-assets": "^1.1.0",
"@storybook/addon-a11y": "^8.6.11",
"@storybook/addon-essentials": "^8.6.11",
"@storybook/addon-interactions": "^8.6.11",
"@storybook/addon-links": "^8.6.11",
"@storybook/blocks": "^8.6.11",
"@storybook/manager-api": "^8.6.11",
"@storybook/react": "^8.6.11",
"@storybook/react-vite": "^8.6.11",
"@storybook/test": "^8.6.11",
"@storybook/theming": "^8.6.11",
"@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.7.1",
"@vitejs/plugin-react": "^4.4.1",
"@vitest/coverage-istanbul": "^3.1.3",
"@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": "^5.2.0",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-storybook": "^0.12.0",
"focus-trap-react": "^11.0.3",
"globals": "^16.0.0",
"happo-plugin-storybook": "^4.4.3",
"happo.io": "^12.1.0",
"jsdom": "^24.0.0",
"pinst": "^3.0.0",
"prettier": "^3.2.5",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"sass-embedded": "^1.86.0",
"storybook": "^8.6.11",
"stylelint": "^16.16.0",
"stylelint-config-css-modules": "^4.4.0",
"stylelint-config-recommended": "^15.0.0",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-config-standard-scss": "^14.0.0",
"typescript": "^5.8.3",
"vite": "^6.3.5",
"vite-plugin-checker": "^0.9.3",
"vite-plugin-dts": "^4.5.4",
"vite-plugin-svgr": "^4.3.0",
"vitest": "^3.1.3",
"webpack": "^5.90.1"
},
"packageManager": "yarn@3.8.7"
}