{
  "_id": "prop-types-extra",
  "maintainers": [
    {
      "name": "monastic.panic",
      "email": "monastic.panic@gmail.com"
    }
  ],
  "keywords": [
    "react",
    "proptypes"
  ],
  "dist-tags": {
    "latest": "1.1.1"
  },
  "author": {
    "name": "Matthew L Smith",
    "email": "mtscout6@gmail.com"
  },
  "_rev": "6-418357d99d50a02a4a071020bdd43a87",
  "description": "React PropType Utilities",
  "readme": "# prop-types-extra [![Travis][build-badge]][build] [![npm][npm-badge]][npm]\n\nAdditional [PropTypes](https://facebook.github.io/react/docs/reusable-components.html#prop-validation) for [React](https://facebook.github.io/react/).\n\n## Usage\n\n```js\nimport elementType from 'prop-types-extra/lib/elementType';\n// or\nimport { elementType } from 'prop-types-extra';\n\nconst propTypes = {\n  someProp: elementType,\n};\n```\n\nIf you want to minimize bundle size, import only the validators you use via:\n\n```js\nimport elementType from 'prop-types-extra/lib/elementType'\n```\n\n## Guide\n\n### Installation\n\n```sh\n$ npm i -S react\n$ npm i -S prop-types-extra\n```\n\n### [`all(...validators)`](/src/all.js)\n\nThis validator checks that all of the provided validators pass.\n\n```js\nconst propTypes = {\n  vertical:  PropTypes.bool.isRequired,\n\n  block: all(\n    PropTypes.bool.isRequired,\n    ({ block, vertical }) => (\n      block && !vertical ?\n        new Error('`block` requires `vertical` to be set to have any effect') :\n        null\n    ),\n  ),\n};\n```\n\nThe provided validators will be validated in order, stopping on the first failure. The combined validator will succeed only if all provided validators succeed.\n\nAs in the example, this can be used to make a type assertion along with additional semantic assertions.\n\n### [`componentOrElement`](/src/componentOrElement.js)\n\nChecks that the value is a `ReactComponent` or a `DOMElement`.\n\n```js\nconst propTypes = {\n  container: componentOrElement,\n  requiredContainer: componentOrElement.isRequired,\n};\n```\n\nThis ensures that the value is of the right type to pass to `ReactDOM.findDOMNode()`, for cases where you need a DOM node.\n\n### [`deprecated(validator, reason)`](/src/deprecated.js)\n\nThis validator will log a deprecation warning if the value is present.\n\n```js\nconst propTypes = {\n  collapsable: deprecated(PropTypes.bool, 'Use `collapsible` instead.'),\n};\n```\n\nIf the `collapsable` prop above is specified, this validator will log the warning:\n\n>The prop \\`collapsable\\` of \\`MyComponent\\` is deprecated. Use \\`collapsible\\` instead.\n\nThis validator warns instead of failing on invalid values, and will still call the underlying validator if the deprecated value is present.\n\nThis validator will only warn once on each deprecation. To clear the cache of warned messages, such as for clearing state between test cases intended to fail on deprecation warnings, call `deprecated._resetWarned()`.\n\n### [`elementType`](/src/elementType.js)\n\nChecks that the value is a React element type. This can be either a string (for DOM elements) or a `ReactClass` (for composite components).\n\n```js\nconst propTypes = {\n  Component: elementType.isRequired,\n};\n```\n\nThis ensures that the value of is the right type for creating a `ReactElement`, such as with `<Component {...props} />`.\n\n### [`isRequiredForA11y(validator)`](/src/isRequiredForA11y.js)\n\nThis validator checks that the value required for accessibility are present.\n\n```js\nconst propTypes = {\n  id: isRequiredForA11y(PropTypes.string),\n};\n```\n\nIf the `id` prop above is not specified, the validator will fail with:\n\n>The prop \\`id\\` is required to make \\`MyComponent\\` accessible for users of assistive technologies such as screen readers.\n\n[build-badge]: https://img.shields.io/travis/react-bootstrap/prop-types-extra/master.svg\n[build]: https://travis-ci.org/react-bootstrap/prop-types-extra\n\n[npm-badge]: https://img.shields.io/npm/v/prop-types-extra.svg\n[npm]: https://www.npmjs.org/package/prop-types-extra\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/react-bootstrap/prop-types-extra.git"
  },
  "bugs": {
    "url": "https://github.com/react-bootstrap/prop-types-extra/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "prop-types-extra",
      "version": "1.0.0",
      "description": "React PropType Utilities",
      "main": "lib/index.js",
      "files": [
        "LICENSE",
        "README.md",
        "lib"
      ],
      "scripts": {
        "build": "rm -rf lib && babel src --out-dir lib",
        "lint": "eslint .",
        "test": "npm run lint && jest",
        "tdd": "jest --watch",
        "release": "release"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/react-bootstrap/react-prop-types.git"
      },
      "keywords": [
        "react",
        "react-proptype",
        "react-proptypes",
        "react-prop-type",
        "react-prop-types",
        "react-component",
        "ecosystem-react"
      ],
      "author": {
        "name": "Matthew L Smith",
        "email": "mtscout6@gmail.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/react-bootstrap/react-prop-types/issues"
      },
      "homepage": "https://github.com/react-bootstrap/react-prop-types#readme",
      "jest": {
        "roots": [
          "<rootDir>/test"
        ],
        "testRegex": "Spec\\.js",
        "setupTestFrameworkScriptFile": "./test/test-setup.js"
      },
      "devDependencies": {
        "babel-cli": "^6.24.1",
        "babel-eslint": "^7.2.3",
        "babel-jest": "^20.0.1",
        "babel-plugin-add-module-exports": "^0.2.1",
        "babel-preset-env": "^1.4.0",
        "babel-preset-react": "^6.24.1",
        "chai": "^3.0.0",
        "dirty-chai": "^1.2.2",
        "eslint": "^2.13.1",
        "eslint-config-airbnb": "^9.0.1",
        "eslint-config-airbnb-base": "^3.0.1",
        "eslint-plugin-import": "^1.10.2",
        "eslint-plugin-jsx-a11y": "^1.5.5",
        "eslint-plugin-mocha": "^4.0.0",
        "eslint-plugin-react": "^5.2.2",
        "jest": "^20.0.1",
        "react": "^0.13.3",
        "release-script": "^0.5.0",
        "sinon": "^2.2.0",
        "sinon-chai": "^2.10.0"
      },
      "dependencies": {
        "warning": "^2.0.0"
      },
      "gitHead": "4aca8c0da2366910a868c34d18fe41c201ada247",
      "_id": "prop-types-extra@1.0.0",
      "_shasum": "6e24530e61d3b7e3b630b5a2a2756868dff216a4",
      "_from": ".",
      "_npmVersion": "4.2.0",
      "_nodeVersion": "7.10.0",
      "_npmUser": {
        "name": "monastic.panic",
        "email": "monastic.panic@gmail.com"
      },
      "dist": {
        "shasum": "6e24530e61d3b7e3b630b5a2a2756868dff216a4",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/prop-types-extra/-/prop-types-extra-1.0.0.tgz",
        "integrity": "sha512-i/YWMCQ47bHG+YQXLOiNL5mjZkvgYCU4HywZtgWyzjQCXBgTjUHPgeXe3ZMb1G6xzTzJD4uvjgw9laF27uMRvw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIBhbl1PjsSCM1umTWC1LdnQ7xjY6KMP779Yj39BBRUZxAiBVJJFs9GLJ5ackMdjM+p6WbcSp2bVAX6QUl9qTvpgJWw=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "monastic.panic",
          "email": "monastic.panic@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/prop-types-extra-1.0.0.tgz_1494609904159_0.7478713635355234"
      },
      "directories": {}
    },
    "1.0.1": {
      "name": "prop-types-extra",
      "version": "1.0.1",
      "description": "React PropType Utilities",
      "main": "lib/index.js",
      "files": [
        "LICENSE",
        "README.md",
        "lib"
      ],
      "scripts": {
        "build": "rm -rf lib && babel src --out-dir lib",
        "lint": "eslint .",
        "test": "npm run lint && jest",
        "tdd": "jest --watch",
        "release": "release"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/react-bootstrap/react-prop-types.git"
      },
      "keywords": [
        "react",
        "proptypes"
      ],
      "author": {
        "name": "Matthew L Smith",
        "email": "mtscout6@gmail.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/react-bootstrap/react-prop-types/issues"
      },
      "homepage": "https://github.com/react-bootstrap/react-prop-types#readme",
      "jest": {
        "roots": [
          "<rootDir>/test"
        ],
        "testRegex": "test\\.js",
        "setupTestFrameworkScriptFile": "./test/test-setup.js"
      },
      "peerDependencies": {
        "react": ">=0.14.0"
      },
      "devDependencies": {
        "babel-cli": "^6.24.1",
        "babel-eslint": "^7.2.3",
        "babel-jest": "^20.0.1",
        "babel-plugin-add-module-exports": "^0.2.1",
        "babel-preset-env": "^1.4.0",
        "babel-preset-react": "^6.24.1",
        "chai": "^3.0.0",
        "dirty-chai": "^1.2.2",
        "eslint": "^2.13.1",
        "eslint-config-airbnb": "^9.0.1",
        "eslint-config-airbnb-base": "^3.0.1",
        "eslint-plugin-import": "^1.10.2",
        "eslint-plugin-jsx-a11y": "^1.5.5",
        "eslint-plugin-mocha": "^4.0.0",
        "eslint-plugin-react": "^5.2.2",
        "jest": "^20.0.1",
        "prop-types": "^15.5.10",
        "react": "^15.2.1",
        "release-script": "^1.0.2",
        "sinon": "^2.2.0",
        "sinon-chai": "^2.10.0"
      },
      "dependencies": {
        "warning": "^3.0.0"
      },
      "gitHead": "fdd75d5018c859daa4ac2a68442684a42ed79c18",
      "_id": "prop-types-extra@1.0.1",
      "_shasum": "a57bd4810e82d27a3ff4317ecc1b4ad005f79a82",
      "_from": ".",
      "_npmVersion": "4.2.0",
      "_nodeVersion": "7.10.0",
      "_npmUser": {
        "name": "monastic.panic",
        "email": "monastic.panic@gmail.com"
      },
      "dist": {
        "shasum": "a57bd4810e82d27a3ff4317ecc1b4ad005f79a82",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/prop-types-extra/-/prop-types-extra-1.0.1.tgz",
        "integrity": "sha512-+YcqsOtIGdE+2DcbwOtE+kRq6ty2GjX8ZLq71JL2XlvdcPTFIDxJcG1OdmpwLpgGM06LT6Yb2qQKgY6gQUmdng==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDdtwzcs/Swtp7NFukivKLHCVXMKoiTPOl/18oAmU4U/wIhAJYkECnDNESeU18ue8NKLANzQ9d/hOmb3pWBs7qBsijS"
          }
        ]
      },
      "maintainers": [
        {
          "name": "monastic.panic",
          "email": "monastic.panic@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-18-east.internal.npmjs.com",
        "tmp": "tmp/prop-types-extra-1.0.1.tgz_1494611780576_0.23452994995750487"
      },
      "directories": {}
    },
    "1.1.0": {
      "name": "prop-types-extra",
      "version": "1.1.0",
      "description": "React PropType Utilities",
      "main": "lib/index.js",
      "files": [
        "LICENSE",
        "README.md",
        "lib"
      ],
      "scripts": {
        "build": "rm -rf lib && babel src --out-dir lib",
        "lint": "eslint .",
        "test": "npm run lint && jest",
        "tdd": "jest --watch",
        "release": "release"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/react-bootstrap/prop-types-extra.git"
      },
      "keywords": [
        "react",
        "proptypes"
      ],
      "author": {
        "name": "Matthew L Smith",
        "email": "mtscout6@gmail.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/react-bootstrap/prop-types-extra/issues"
      },
      "homepage": "https://github.com/react-bootstrap/prop-types-extra#readme",
      "jest": {
        "roots": [
          "<rootDir>/test"
        ],
        "testRegex": "test\\.js",
        "setupTestFrameworkScriptFile": "./test/test-setup.js"
      },
      "peerDependencies": {
        "react": ">=0.14.0"
      },
      "devDependencies": {
        "babel-cli": "^6.24.1",
        "babel-eslint": "^7.2.3",
        "babel-jest": "^20.0.1",
        "babel-plugin-add-module-exports": "^0.2.1",
        "babel-preset-env": "^1.4.0",
        "babel-preset-react": "^6.24.1",
        "chai": "^3.0.0",
        "dirty-chai": "^1.2.2",
        "eslint": "^2.13.1",
        "eslint-config-airbnb": "^9.0.1",
        "eslint-config-airbnb-base": "^3.0.1",
        "eslint-plugin-import": "^1.10.2",
        "eslint-plugin-jsx-a11y": "^1.5.5",
        "eslint-plugin-mocha": "^4.0.0",
        "eslint-plugin-react": "^5.2.2",
        "jest": "^20.0.1",
        "prop-types": "^15.6.1",
        "react": "^16.3.2",
        "release-script": "^1.0.2",
        "sinon": "^2.2.0",
        "sinon-chai": "^2.10.0"
      },
      "dependencies": {
        "react-is": "^16.3.2",
        "warning": "^3.0.0"
      },
      "gitHead": "dc04b2d142219aa22bc5f5b7141686924f7482d7",
      "_id": "prop-types-extra@1.1.0",
      "_npmVersion": "5.6.0",
      "_nodeVersion": "9.2.1",
      "_npmUser": {
        "name": "monastic.panic",
        "email": "monastic.panic@gmail.com"
      },
      "dist": {
        "integrity": "sha512-QFyuDxvMipmIVKD2TwxLVPzMnO4e5oOf1vr3tJIomL8E7d0lr6phTHd5nkPhFIzTD1idBLLEPeylL9g+rrTzRg==",
        "shasum": "32609910ea2dcf190366bacd3490d5a6412a605f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/prop-types-extra/-/prop-types-extra-1.1.0.tgz",
        "fileCount": 11,
        "unpackedSize": 16187,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6IPjCRA9TVsSAnZWagAAEwQQAJ9qKr6MhUKWHfHvrAvl\nGJEppe6SWgwqCzHxQCB2M8xzkvk6cSE8xDWfUfij8SIK/T2p4/tskAB/oWeD\njJl4uOwytD5XAoV8OiCdPzkyNY2muOL9P60X13jmuqcJLt1ULvoJ+cHDTC23\nxbGQw6Ai7Kfy3sNPuydUZq5R9DpvMUTNxp0egVmRLwubeuYasPoU0nkYD64K\nfFxq23pVPRLMl3g+ed0qAGTWOryZImq7eRRuFIYjpPK8wVhW7BKIfsFOKMLG\nro7mgFcQH7qBocrVCOn7Xl9DEymE+WaT/cSyPBoS+jbhVM1A1j/C+ZouNhxo\n9kSL8ccdVShtW5brIRtk/RWZTyIePv2ZfBiAw0fEtHDDMrrsRX5z/VnjCZ+X\nrDahLc6N7FD1Z4VlMRG0qBfpL+RyUebJxbhaTJOHbYkIx486/WxO1CGfz+cY\nN4iEPKWsJVUQ9WmZpCO76wGwJCW0vzUcm/xJaln0gU2W08O9awUv9yoEsgS5\nofx5JnWLf1wAi17S33Twel/y+6G5EmV9UsAPx/sqrStDb83tBEnPwS7Hdo1H\namC7oKQ+YBAjuCnOCtwlbDp1Xs3bSGK/vi06o9u7snh7rR8nYY/JIYGQ76nM\ncVrrup1AS1X7WZfWdIuM/h1+5tffs6TMcAqeSV5WAvhta4bJ5dzk4runAsiO\nkEKV\r\n=5qF+\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIGj3O//vEkTqjOp8VJbguoXGJCZrDBIiA9iGLsc4dNbWAiAlwV4fAh87F8BrrkQwiFj5QIyx3g06jBFELX25xELtLA=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "monastic.panic",
          "email": "monastic.panic@gmail.com"
        }
      ],
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/prop-types-extra_1.1.0_1525187552655_0.6045397991367134"
      },
      "_hasShrinkwrap": false
    },
    "1.1.1": {
      "name": "prop-types-extra",
      "version": "1.1.1",
      "description": "React PropType Utilities",
      "main": "lib/index.js",
      "scripts": {
        "build": "rm -rf lib && babel src --out-dir lib",
        "lint": "eslint .",
        "test": "npm run lint && jest",
        "tdd": "jest --watch",
        "release": "release"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/react-bootstrap/prop-types-extra.git"
      },
      "keywords": [
        "react",
        "proptypes"
      ],
      "author": {
        "name": "Matthew L Smith",
        "email": "mtscout6@gmail.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/react-bootstrap/prop-types-extra/issues"
      },
      "homepage": "https://github.com/react-bootstrap/prop-types-extra#readme",
      "jest": {
        "roots": [
          "<rootDir>/test"
        ],
        "testRegex": "test\\.js",
        "setupTestFrameworkScriptFile": "./test/test-setup.js"
      },
      "peerDependencies": {
        "react": ">=0.14.0"
      },
      "devDependencies": {
        "babel-cli": "^6.24.1",
        "babel-eslint": "^7.2.3",
        "babel-jest": "^20.0.1",
        "babel-plugin-add-module-exports": "^0.2.1",
        "babel-preset-env": "^1.4.0",
        "babel-preset-react": "^6.24.1",
        "chai": "^3.0.0",
        "dirty-chai": "^1.2.2",
        "eslint": "^2.13.1",
        "eslint-config-airbnb": "^9.0.1",
        "eslint-config-airbnb-base": "^3.0.1",
        "eslint-plugin-import": "^1.10.2",
        "eslint-plugin-jsx-a11y": "^1.5.5",
        "eslint-plugin-mocha": "^4.0.0",
        "eslint-plugin-react": "^5.2.2",
        "jest": "^20.0.1",
        "prop-types": "^15.6.1",
        "react": "^16.3.2",
        "release-script": "^1.0.2",
        "sinon": "^2.2.0",
        "sinon-chai": "^2.10.0"
      },
      "dependencies": {
        "react-is": "^16.3.2",
        "warning": "^4.0.0"
      },
      "gitHead": "2d1fe7b195dbab8f5d7fb2ae936f462eeca44ae4",
      "_id": "prop-types-extra@1.1.1",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "6.12.0",
      "dist": {
        "integrity": "sha512-59+AHNnHYCdiC+vMwY52WmvP5dM3QLeoumYuEyceQDi9aEhtwN9zIQ2ZNo25sMyXnbh32h+P1ezDsUpUH3JAew==",
        "shasum": "58c3b74cbfbb95d304625975aa2f0848329a010b",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/prop-types-extra/-/prop-types-extra-1.1.1.tgz",
        "fileCount": 11,
        "unpackedSize": 16187,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIJpDCRA9TVsSAnZWagAAAO4P+wbDH8n17Wv0uZalPWcB\nA9WgSgF4hMdgExPPONByoQdk+Abubeu9g8C3bbSu0MmR+LS2VUe96j6UNvpA\nbZI/u8ioy0VOg9aDn1p8Mdg0913D8X33aWrg/j4wtNZ7R8svmGoMOc2m3vuI\nJ6vMIfXGRum/MPOEjKR9m/loy4JmeWyQWKbHL/oovswFfGrZTrWb+eRiOMtP\nAnXiUPxVBBC+3X48oiAdln1fItQsp+9+FfqpsOvX5B+lfb2xxF1Gvit82tee\nALKtH3gQ5s0Oa4U5/6A1oASx2brFE1ElRo2HRXW8BtttzNkj9HlxSj11x199\nNv2M+HP7lm3g14pOo9huuHCZu3fh6DPODCmy96J8AiBlOZ8M3NpBfCGY5yDr\n1nUhjaQWi6jd3aJLXumrD2Glt3iOdNmJxNBFU0sIV6mBTK7lMp9osrhOvZCi\nnSyZk7lHJI2UjElGtiFq0qUCR0BsqX4/I7WVFNcVXtoNKDXirLQGjxijySQ2\nkHpyMDlPDAXF6i6a6VD5m1bbGGHzv/vYip3K4EZUPQaJ24Yr4bvslQRaYJB3\n7Om71N034z6uOYfsTuPSAO33FDgeVopmQTom8/Os3xsRMCq/TfB2kfgZD/aR\n1rz6BhlrNJnewyA+5tc1YNLaMDA8NrXEwR2NrTsmh4BWq/BqCxzKagYm/QaZ\nRwDL\r\n=pj2C\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIF1nerWZw4m6JFKt1XrN5Fbwmyn/HixRJEnNMigVoHPlAiB7Kp2NoW7pDwo2fuvSe4piZWaxQZRDBP/gUCvUquKFHw=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "monastic.panic",
          "email": "monastic.panic@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "monastic.panic",
        "email": "monastic.panic@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/prop-types-extra_1.1.1_1579194947143_0.8745722283561295"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "prop-types-extra",
  "time": {
    "modified": "2026-07-13T08:14:46.495Z",
    "created": "2017-05-12T17:25:06.100Z",
    "1.0.0": "2017-05-12T17:25:06.100Z",
    "1.0.1": "2017-05-12T17:56:21.542Z",
    "1.1.0": "2018-05-01T15:12:34.446Z",
    "1.1.1": "2020-01-16T17:15:47.250Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/react-bootstrap/prop-types-extra#readme"
}