@nice-digital/nds-container 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.
- package/package.json +4 -3
- package/es/Container.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-digital/nds-container",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Container component for the NICE Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"container"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"homepage": "https://design-system.nice.org.uk/",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"main": "es/Container.js",
|
|
12
|
+
"types": "es/Container.d.ts",
|
|
12
13
|
"style": "scss/container.scss",
|
|
13
14
|
"directories": {
|
|
14
15
|
"test": "__tests__"
|
|
@@ -33,13 +34,13 @@
|
|
|
33
34
|
"url": "https://github.com/nice-digital/nice-design-system/issues"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@nice-digital/nds-core": "^4.0.
|
|
37
|
+
"@nice-digital/nds-core": "^4.0.4",
|
|
37
38
|
"classnames": "^2.2.6"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
41
|
"react": "^16 || ^17 || ^18"
|
|
41
42
|
},
|
|
42
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c8db07e6492c3b18564bd4f46c2ab098f185109a",
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@testing-library/jest-dom": "^5.16.5",
|
|
45
46
|
"@testing-library/react": "^13.4.0",
|
package/es/Container.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","names":["React","PropTypes","classnames","Container","props","children","className","elementType","ElementType","fullWidth","rest","classes","propTypes","oneOfType","arrayOf","node","isRequired","string","bool"],"sources":["../src/Container.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnames from \"classnames\";\nimport \"../scss/container.scss\";\n\nexport const Container = (props) => {\n\tconst {\n\t\tchildren,\n\t\tclassName,\n\t\telementType: ElementType = \"div\",\n\t\tfullWidth,\n\t\t...rest\n\t} = props;\n\n\tconst classes = classnames([\n\t\t\"container\",\n\t\tfullWidth && \"container--full\",\n\t\tclassName\n\t]);\n\n\treturn (\n\t\t<ElementType className={classes} {...rest}>\n\t\t\t{children}\n\t\t</ElementType>\n\t);\n};\n\nContainer.propTypes = {\n\tchildren: PropTypes.oneOfType([\n\t\tPropTypes.arrayOf(PropTypes.node),\n\t\tPropTypes.node\n\t]).isRequired,\n\tclassName: PropTypes.string,\n\telementType: PropTypes.elementType,\n\tfullWidth: PropTypes.bool\n};\n"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAO,wBAAP;AAEA,OAAO,IAAMC,SAAS,GAAG,SAAZA,SAAY,CAACC,KAAD,EAAW;EACnC,IACCC,QADD,GAMID,KANJ,CACCC,QADD;EAAA,IAECC,SAFD,GAMIF,KANJ,CAECE,SAFD;EAAA,yBAMIF,KANJ,CAGCG,WAHD;EAAA,IAGcC,WAHd,mCAG4B,KAH5B;EAAA,IAICC,SAJD,GAMIL,KANJ,CAICK,SAJD;EAAA,IAKIC,IALJ,iCAMIN,KANJ;;EAQA,IAAMO,OAAO,GAAGT,UAAU,CAAC,CAC1B,WAD0B,EAE1BO,SAAS,IAAI,iBAFa,EAG1BH,SAH0B,CAAD,CAA1B;EAMA,oBACC,oBAAC,WAAD;IAAa,SAAS,EAAEK;EAAxB,GAAqCD,IAArC,GACEL,QADF,CADD;AAKA,CApBM;AAsBPF,SAAS,CAACS,SAAV,GAAsB;EACrBP,QAAQ,EAAEJ,SAAS,CAACY,SAAV,CAAoB,CAC7BZ,SAAS,CAACa,OAAV,CAAkBb,SAAS,CAACc,IAA5B,CAD6B,EAE7Bd,SAAS,CAACc,IAFmB,CAApB,EAGPC,UAJkB;EAKrBV,SAAS,EAAEL,SAAS,CAACgB,MALA;EAMrBV,WAAW,EAAEN,SAAS,CAACM,WANF;EAOrBE,SAAS,EAAER,SAAS,CAACiB;AAPA,CAAtB"}
|