@nice-digital/nds-horizontal-nav 4.0.2 → 4.0.3
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 +3 -3
- package/es/HorizontalNav.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-digital/nds-horizontal-nav",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Horizontal navigation component for the NICE Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"navigation"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"url": "https://github.com/nice-digital/nice-design-system/issues"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@nice-digital/nds-core": "^4.0.
|
|
34
|
+
"@nice-digital/nds-core": "^4.0.3",
|
|
35
35
|
"classnames": "^2.2.6"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@types/node": "^18.11.9",
|
|
47
47
|
"typescript": "^4.8.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ae51389ba2e51dbe9ee3849e71d44fd567fb2822"
|
|
50
50
|
}
|
package/es/HorizontalNav.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalNav.js","names":["React","PropTypes","classnames","HorizontalNav","className","children","rest","HorizontalNavLink","title","isCurrent","destination","elementType","ElementType","method","props","propTypes","node","string","bool","isRequired"],"sources":["../src/HorizontalNav.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classnames from \"classnames\";\n\nimport \"./../scss/horizontal-nav.scss\";\n\nexport const HorizontalNav = ({ className, children, ...rest }) => {\n\treturn (\n\t\t<nav className={classnames(\"horizontal-nav\", className)} {...rest}>\n\t\t\t<ul className=\"horizontal-nav__list\">{children}</ul>\n\t\t</nav>\n\t);\n};\n\nexport const HorizontalNavLink = ({\n\ttitle,\n\tisCurrent = false,\n\tdestination,\n\telementType: ElementType = \"a\",\n\tchildren,\n\tclassName,\n\tmethod,\n\t...rest\n}) => {\n\t// Would like to make method a required prop in the future but not possible without a breaking change\n\tconst props = {\n\t\t\"aria-current\": isCurrent,\n\t\tclassName: classnames(\"horizontal-nav__link\", className),\n\t\t[method || (ElementType === \"a\" && \"href\") || \"to\"]: destination\n\t};\n\treturn (\n\t\t<li className=\"horizontal-nav__item\">\n\t\t\t<ElementType {...props} {...rest}>\n\t\t\t\t{title || children || destination || \"No Link\"}\n\t\t\t</ElementType>\n\t\t</li>\n\t);\n};\n\nHorizontalNav.propTypes = {\n\tchildren: PropTypes.node,\n\tclassName: PropTypes.string\n};\n\nHorizontalNavLink.propTypes = {\n\tchildren: PropTypes.node,\n\ttitle: PropTypes.string,\n\tisCurrent: PropTypes.bool,\n\tdestination: PropTypes.string.isRequired,\n\telementType: PropTypes.elementType,\n\tclassName: PropTypes.string,\n\tmethod: PropTypes.string\n};\n"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAO,+BAAP;AAEA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,OAAsC;EAAA,IAAnCC,SAAmC,QAAnCA,SAAmC;EAAA,IAAxBC,QAAwB,QAAxBA,QAAwB;EAAA,IAAXC,IAAW;;EAClE,oBACC;IAAK,SAAS,EAAEJ,UAAU,CAAC,gBAAD,EAAmBE,SAAnB;EAA1B,GAA6DE,IAA7D,gBACC;IAAI,SAAS,EAAC;EAAd,GAAsCD,QAAtC,CADD,CADD;AAKA,CANM;AAQP,OAAO,IAAME,iBAAiB,GAAG,SAApBA,iBAAoB,QAS3B;EAAA;;EAAA,IARLC,KAQK,SARLA,KAQK;EAAA,4BAPLC,SAOK;E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