@nice-digital/nds-alert 2.0.2-alpha.0 → 2.0.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/es/Alert.js.map +1 -1
- package/lib/Alert.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ The styling to apply to the alert box. Defaults to `info` if not supplied. Can b
|
|
|
59
59
|
If you're not using [React](#react), then import the SCSS directly into your application by:
|
|
60
60
|
|
|
61
61
|
```scss
|
|
62
|
-
@
|
|
62
|
+
@forward '@nice-digital/nds-alert/scss/alert';
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
### HTML
|
package/es/Alert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Alert.js","names":["React","PropTypes","classnames","allowedTypes","Alert","props","children","type","rest","classNames","alert","propTypes","oneOf","oneOfType","arrayOf","node","isRequired","defaultProps"],"sources":["../src/Alert.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnames from \"classnames\";\n\nimport \"../scss/alert.scss\";\n\nconst allowedTypes = [\"info\", \"caution\", \"error\", \"success\"];\n\nexport const Alert = (props) => {\n\tconst { children, type, ...rest } = props;\n\tconst classNames = classnames({\n\t\talert: true,\n\t\t[`alert--${type}`]: true\n\t});\n\treturn (\n\t\t<div {...rest} className={classNames}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nAlert.propTypes = {\n\ttype: PropTypes.oneOf(allowedTypes),\n\tchildren: PropTypes.oneOfType([\n\t\tPropTypes.arrayOf(PropTypes.node),\n\t\tPropTypes.node\n\t]).isRequired\n};\n\nAlert.defaultProps = {\n\ttype: \"info\"\n};\n"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAO,oBAAP;AAEA,IAAMC,YAAY,GAAG,CAAC,MAAD,EAAS,SAAT,EAAoB,OAApB,EAA6B,SAA7B,CAArB;AAEA,OAAO,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD,EAAW;EAAA;;EAC/B,IAAQC,QAAR,GAAoCD,KAApC,CAAQC,QAAR;EAAA,IAAkBC,IAAlB,GAAoCF,KAApC,CAAkBE,IAAlB;EAAA,IAA2BC,IAA3B,iCAAoCH,KAApC;;EACA,IAAMI,UAAU,GAAGP,UAAU;IAC5BQ,KAAK,EAAE;EADqB,2BAEjBH,IAFiB,IAER,IAFQ,eAA7B;EAIA,oBACC,wCAASC,IAAT;IAAe,SAAS,EAAEC;EAA1B,IACEH,QADF,CADD;AAKA,CAXM;AAaPF,KAAK,CAACO,SAAN,GAAkB;EACjBJ,IAAI,EAAEN,SAAS,CAACW,KAAV,CAAgBT,YAAhB,CADW;EAEjBG,QAAQ,EAAEL,SAAS,CAACY,SAAV,CAAoB,CAC7BZ,SAAS,CAACa,OAAV,CAAkBb,SAAS,CAACc,IAA5B,CAD6B,EAE7Bd,SAAS,CAACc,IAFmB,CAApB,EAGPC;AALc,CAAlB;AAQAZ,KAAK,CAACa,YAAN,GAAqB;EACpBV,IAAI,EAAE;AADc,CAArB"}
|
package/lib/Alert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Alert.js","names":["allowedTypes","Alert","props","children","type","rest","classNames","classnames","alert","propTypes","PropTypes","oneOf","oneOfType","arrayOf","node","isRequired","defaultProps"],"sources":["../src/Alert.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnames from \"classnames\";\n\nimport \"../scss/alert.scss\";\n\nconst allowedTypes = [\"info\", \"caution\", \"error\", \"success\"];\n\nexport const Alert = (props) => {\n\tconst { children, type, ...rest } = props;\n\tconst classNames = classnames({\n\t\talert: true,\n\t\t[`alert--${type}`]: true\n\t});\n\treturn (\n\t\t<div {...rest} className={classNames}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nAlert.propTypes = {\n\ttype: PropTypes.oneOf(allowedTypes),\n\tchildren: PropTypes.oneOfType([\n\t\tPropTypes.arrayOf(PropTypes.node),\n\t\tPropTypes.node\n\t]).isRequired\n};\n\nAlert.defaultProps = {\n\ttype: \"info\"\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;;;;;;AAEA,IAAMA,YAAY,GAAG,CAAC,MAAD,EAAS,SAAT,EAAoB,OAApB,EAA6B,SAA7B,CAArB;;AAEO,IAAMC,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD,EAAW;EAAA;;EAC/B,IAAQC,QAAR,GAAoCD,KAApC,CAAQC,QAAR;EAAA,IAAkBC,IAAlB,GAAoCF,KAApC,CAAkBE,IAAlB;EAAA,IAA2BC,IAA3B,kDAAoCH,KAApC;EACA,IAAMI,UAAU,GAAG,IAAAC,uBAAA;IAClBC,KAAK,EAAE;EADW,2BAEPJ,IAFO,IAEE,IAFF,eAAnB;EAIA,oBACC,qEAASC,IAAT;IAAe,SAAS,EAAEC,UAA1B;IAAA;IAAA;MAAA;MAAA;MAAA;IAAA;EAAA,IACEH,QADF,CADD;AAKA,CAXM;;;AAaPF,KAAK,CAACQ,SAAN,GAAkB;EACjBL,IAAI,EAAEM,qBAAA,CAAUC,KAAV,CAAgBX,YAAhB,CADW;EAEjBG,QAAQ,EAAEO,qBAAA,CAAUE,SAAV,CAAoB,CAC7BF,qBAAA,CAAUG,OAAV,CAAkBH,qBAAA,CAAUI,IAA5B,CAD6B,EAE7BJ,qBAAA,CAAUI,IAFmB,CAApB,EAGPC;AALc,CAAlB;AAQAd,KAAK,CAACe,YAAN,GAAqB;EACpBZ,IAAI,EAAE;AADc,CAArB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-digital/nds-alert",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3-alpha.0",
|
|
4
4
|
"description": "Alert component for the NICE Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"alert"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"url": "https://github.com/nice-digital/nice-design-system/issues"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nice-digital/nds-core": "^2.0.
|
|
37
|
+
"@nice-digital/nds-core": "^2.0.3-alpha.0",
|
|
38
38
|
"classnames": "^2.2.6",
|
|
39
39
|
"prop-types": "^15.7.2"
|
|
40
40
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@babel/cli": "^7.5.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4a3743bed00bf33822d76b1815e85e96c0d699f4"
|
|
49
49
|
}
|