@trussworks/react-uswds
Version:
React USWDS 3.0 component library
158 lines (157 loc) • 5.24 kB
JSON
{
"name": "@trussworks/react-uswds",
"version": "9.1.0",
"description": "React USWDS 3.0 component library",
"keywords": [
"react",
"uswds",
"uswds 3.0",
"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"
},
"browser": "./lib/index.iife.js",
"default": "./lib/index.umd.cjs"
},
"./lib/index.css": "./lib/index.css",
"./lib/uswds.css": "./lib/uswds.css"
},
"files": [
"lib"
],
"engines": {
"node": ">= 18"
},
"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 --ext js,jsx,ts,tsx src && stylelint \"src/**/*.{css,scss}\"",
"lint:fix": "tsc && eslint --ext js,jsx,ts,tsx 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}\"",
"prepare": "husky && yarn build",
"prepublishOnly": "yarn test && yarn lint",
"happo": "happo --config ./.happo.cjs",
"happo-ci": "HAPPO_CONFIG_FILE='./.happo.cjs' happo-ci-github-actions --config ./.happo.cjs",
"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": {
"@uswds/uswds": "^3.7.1",
"focus-trap-react": "^10.2.3",
"react": "^16.x || ^17.x || ^18.x",
"react-dom": "^16.x || ^17.x || ^18.x"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@laynezh/vite-plugin-lib-assets": "^0.5.14",
"@storybook/addon-a11y": "^8.0.4",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-interactions": "^8.0.4",
"@storybook/addon-links": "^8.0.4",
"@storybook/addon-mdx-gfm": "^8.0.4",
"@storybook/addons": "^7.6.10",
"@storybook/blocks": "^8.0.0",
"@storybook/manager-api": "^8.0.4",
"@storybook/react": "^8.0.4",
"@storybook/react-vite": "^8.0.4",
"@storybook/test": "^8.0.4",
"@storybook/theming": "^8.0.4",
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.0.4",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@types/react-test-renderer": "^18.0.7",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.1.1",
"@uswds/uswds": "3.7.1",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-istanbul": "^2.0.4",
"all-contributors-cli": "^6.24.0",
"babel-loader": "^9.1.3",
"classnames": "^2.3.2",
"danger": "^12.1.0",
"eslint": "^8.25.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-no-only-tests": "^3.0.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-security": "^2.1.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-vitest": "^0.3.21",
"focus-trap-react": "^10.2.3",
"happo-plugin-storybook": "^4.1.0",
"happo.io": "^9.1.2",
"husky": "^9.0.10",
"jsdom": "^24.0.0",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"sass": "^1.26.0",
"storybook": "^8.0.4",
"stylelint": "^16.2.1",
"stylelint-config-css-modules": "^4.4.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-recommended": "^14.0.0",
"stylelint-config-sass-guidelines": "^12.0.0",
"stylelint-config-standard-scss": "^13.0.0",
"stylelint-prettier": "^5.0.0",
"typescript": "^5.1.6",
"vite": "^5.0.12",
"vite-plugin-checker": "^0.7.0",
"vite-plugin-dts": "^4.0.3",
"vite-plugin-svgr": "^4.2.0",
"vitest": "^2.0.4",
"webpack": "^5.90.1",
"yarn": "^1.22.22"
},
"resolutions": {
"loader-utils": "2.0.4",
"parse-url": "8.1.0",
"jackspeak": "2.1.1",
"json-schema": "0.4.0",
"glob-parent": "5.1.2",
"trim": "0.0.3",
"trim-newlines": "3.0.1",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18"
},
"packageManager": "yarn@1.22.22"
}