@nice-digital/nds-alert 4.0.2 → 4.0.4

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.
Files changed (2) hide show
  1. package/package.json +4 -3
  2. package/es/Alert.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/nds-alert",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "Alert component for the NICE Design System",
5
5
  "keywords": [
6
6
  "alert"
@@ -9,6 +9,7 @@
9
9
  "homepage": "https://design-system.nice.org.uk/",
10
10
  "license": "MIT",
11
11
  "main": "es/Alert.js",
12
+ "types": "es/Alert.d.ts",
12
13
  "style": "scss/alert.scss",
13
14
  "directories": {
14
15
  "test": "__tests__"
@@ -30,7 +31,7 @@
30
31
  "url": "https://github.com/nice-digital/nice-design-system/issues"
31
32
  },
32
33
  "dependencies": {
33
- "@nice-digital/nds-core": "^4.0.2",
34
+ "@nice-digital/nds-core": "^4.0.4",
34
35
  "classnames": "^2.2.6"
35
36
  },
36
37
  "peerDependencies": {
@@ -45,5 +46,5 @@
45
46
  "@types/node": "^18.11.9",
46
47
  "typescript": "^4.8.4"
47
48
  },
48
- "gitHead": "d8feb7beba5fffa49da42d6a550cb8f67a50727d"
49
+ "gitHead": "c8db07e6492c3b18564bd4f46c2ab098f185109a"
49
50
  }
package/es/Alert.js.map DELETED
@@ -1 +0,0 @@
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"}