diff --git a/package.json b/package.json index 653174cfd..518f02740 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@palmetto/palmetto-components", "author": "@palmetto", - "version": "0.1.3", + "version": "0.1.4", "private": false, "main": "dist/index.js", "module": "dist/index.esm.js", diff --git a/src/components/FormLabel/FormLabel.jsx b/src/components/FormLabel/FormLabel.jsx index 6ced0c26d..09e84f1e3 100644 --- a/src/components/FormLabel/FormLabel.jsx +++ b/src/components/FormLabel/FormLabel.jsx @@ -36,7 +36,10 @@ FormLabel.propTypes = { /** * The label text */ - labelText: PropTypes.string.isRequired, + labelText: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.node, + ]).isRequired, /** * Render an asterisk after the label to mark it as required */ diff --git a/yarn.lock b/yarn.lock index 6c0a70a70..7d42dbf82 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2051,10 +2051,10 @@ "@nodelib/fs.scandir" "2.1.3" fastq "^1.6.0" -"@palmetto/palmetto-design-tokens@^0.1.9": - version "0.1.9" - resolved "https://registry.yarnpkg.com/@palmetto/palmetto-design-tokens/-/palmetto-design-tokens-0.1.9.tgz#b08111a4c2e5ab447f68c90c466fa7e266de80f5" - integrity sha512-TKWO/CO8NzmbK/GpB1RPSwoib8WAL7kHNMvChNrCeO/q4HalZs6tkdHRxXtxWQNEjgO+pJBoM9f9sf2dgF18dg== +"@palmetto/palmetto-design-tokens@^0.1.10": + version "0.1.10" + resolved "https://registry.yarnpkg.com/@palmetto/palmetto-design-tokens/-/palmetto-design-tokens-0.1.10.tgz#0511ff9b7190b776d70b3ebb0a6cb404f277f359" + integrity sha512-G0KZCTiY6zHARuPbB+nI+DUWb5bPtyZSylco89HML6+6dhtONNIv+RDgN3Bz4NjiuVEDw6rbae0wUtyFB8qUeg== "@reach/router@^1.2.1": version "1.3.3"