@nice-digital/nds-alphabet 3.0.2-alpha.0 → 3.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/es/Alphabet.d.ts CHANGED
@@ -20,7 +20,7 @@ export interface LinkProps {
20
20
  destination: string;
21
21
  elementType?: React.ElementType;
22
22
  method?: string;
23
- ariaLabel: string;
23
+ ariaLabel?: string;
24
24
  }
25
25
  export declare const Alphabet: React.FC<AlphabetProps>;
26
26
  export declare const Letter: React.FC<LetterProps>;
package/es/Alphabet.js CHANGED
@@ -43,10 +43,9 @@ const Letter = (props) => {
43
43
  }
44
44
  else {
45
45
  // Link to somewhere else!
46
- const linkLabel = label || "";
47
- body = ((0, jsx_runtime_1.jsx)(Link, { elementType: elementType, ariaLabel: linkLabel, destination: to, text: children }));
46
+ body = ((0, jsx_runtime_1.jsx)(Link, { elementType: elementType, ariaLabel: label, destination: to, text: children }));
48
47
  }
49
- return ((0, jsx_runtime_1.jsx)("li", Object.assign({ className: `alphabet__letter ${chunky ? "alphabet__letter--chunky" : ""}` }, attrs, { children: body })));
48
+ return ((0, jsx_runtime_1.jsx)("li", Object.assign({ className: `alphabet__letter ${chunky ? "alphabet__letter--chunky" : ""}`, "data-component": `alphabet-letter${chunky ? `--chunky` : ""}` }, attrs, { children: body })));
50
49
  };
51
50
  exports.Letter = Letter;
52
51
  const Link = ({ text, destination, elementType: ElementType = "a", method, ariaLabel }) => {
@@ -54,5 +53,5 @@ const Link = ({ text, destination, elementType: ElementType = "a", method, ariaL
54
53
  className: "alphabet__link",
55
54
  [method || (ElementType === "a" && "href") || "to"]: destination
56
55
  };
57
- return ((0, jsx_runtime_1.jsx)(ElementType, Object.assign({ "aria-label": ariaLabel }, linkProps, { children: text })));
56
+ return ((0, jsx_runtime_1.jsx)(ElementType, Object.assign({ "aria-label": ariaLabel, "data-component": `alphabet` }, linkProps, { children: text })));
58
57
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/nds-alphabet",
3
- "version": "3.0.2-alpha.0",
3
+ "version": "3.0.3",
4
4
  "description": "Alphabet component for the NICE Design System",
5
5
  "main": "es/Alphabet.js",
6
6
  "style": "scss/alphabet.js",
@@ -31,7 +31,7 @@
31
31
  "homepage": "https://design-system.nice.org.uk/",
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@nice-digital/nds-core": "^4.0.2-alpha.0"
34
+ "@nice-digital/nds-core": "^4.0.3"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@testing-library/jest-dom": "^5.16.5",
@@ -41,5 +41,5 @@
41
41
  "@types/node": "^18.11.9",
42
42
  "typescript": "^4.8.4"
43
43
  },
44
- "gitHead": "4e9cad8a2b94cdf4af05b18a6610835883bedf0e"
44
+ "gitHead": "ae51389ba2e51dbe9ee3849e71d44fd567fb2822"
45
45
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Alphabet.js","names":["React","Children","isValidElement","cloneElement","PropTypes","Alphabet","props","children","className","id","chunky","attrs","chunkyChild","child","join","map","propTypes","string","node","isRequired","bool","Letter","label","to","elementType","body","oneOfType","Link","text","destination","ElementType","method","ariaLabel","linkProps"],"sources":["../src/Alphabet.js"],"sourcesContent":["import React, { Children, isValidElement, cloneElement } from \"react\";\nimport PropTypes from \"prop-types\";\nimport \"../scss/alphabet.scss\";\n\nexport const Alphabet = (props) => {\n\tconst { children, className, id, chunky, ...attrs } = props;\n\n\tconst chunkyChild = (child) => {\n\t\treturn isValidElement(child)\n\t\t\t? cloneElement(child, { chunky: true })\n\t\t\t: child;\n\t};\n\n\treturn (\n\t\t<ol\n\t\t\tclassName={[\n\t\t\t\t`alphabet ${chunky ? \"alphabet--chunky\" : \"\"}`,\n\t\t\t\tclassName\n\t\t\t].join(\" \")}\n\t\t\tid={id || \"a-to-z\"}\n\t\t\t{...attrs}\n\t\t>\n\t\t\t{chunky\n\t\t\t\t? Children.map(children, (child) => chunkyChild(child))\n\t\t\t\t: children}\n\t\t</ol>\n\t);\n};\n\nAlphabet.propTypes = {\n\tid: PropTypes.string,\n\tchildren: PropTypes.node.isRequired,\n\tchunky: PropTypes.bool,\n\tclassName: PropTypes.string\n};\n\nexport const Letter = (props) => {\n\tconst { children, label, to, chunky, elementType, ...attrs } = props;\n\n\tlet body;\n\n\tif (!to) {\n\t\t// No link\n\t\tbody = <span aria-label={label}>{children}</span>;\n\t} else if (to[0] === \"#\") {\n\t\t// Link to an id on the same page\n\t\tbody = (\n\t\t\t<a href={to} aria-label={label}>\n\t\t\t\t{children}\n\t\t\t</a>\n\t\t);\n\t} else {\n\t\t// Link to somewhere else!\n\t\tbody = (\n\t\t\t<Link\n\t\t\t\telementType={elementType}\n\t\t\t\tariaLabel={label}\n\t\t\t\tdestination={to}\n\t\t\t\ttext={children}\n\t\t\t/>\n\t\t);\n\t}\n\n\treturn (\n\t\t<li\n\t\t\tclassName={`alphabet__letter ${chunky ? \"alphabet__letter--chunky\" : \"\"}`}\n\t\t\t{...attrs}\n\t\t>\n\t\t\t{body}\n\t\t</li>\n\t);\n};\n\nLetter.propTypes = {\n\tchildren: PropTypes.node.isRequired,\n\tchunky: PropTypes.bool,\n\tlabel: PropTypes.string,\n\tto: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n\telementType: PropTypes.elementType\n};\n\nconst Link = ({\n\ttext,\n\tdestination,\n\telementType: ElementType = \"a\",\n\tmethod,\n\tariaLabel\n}) => {\n\tlet linkProps = {\n\t\tclassName: \"alphabet__link\",\n\t\t[method || (ElementType === \"a\" && \"href\") || \"to\"]: destination\n\t};\n\n\treturn (\n\t\t<ElementType aria-label={ariaLabel} {...linkProps}>\n\t\t\t{text}\n\t\t</ElementType>\n\t);\n};\n\nLink.propTypes = {\n\ttext: PropTypes.string,\n\tdestination: PropTypes.string,\n\telementType: PropTypes.elementType,\n\tmethod: PropTypes.string,\n\tariaLabel: PropTypes.string\n};\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IAAIC,QAAQ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S,QAATA,SAAS;EAET,IAAIC,SAAS;IACZzB,SAAS,EAAE;EAAgB,cAC1BuB,MAAM,IAAKD,WAAW,KAAK,GAAG,IAAI,MAAO,IAAI,IAAI,IAAGD,WAAW,aAChE;EAED,oBACC,oBAAC,WAAW;IAAC,cAAYG;EAAU,GAAKC,SAAS,GAC/CL,IAAI,CACQ;AAEhB,CAAC;AAEDD,IAAI,CAACX,SAAS,GAAG;EAChBY,IAAI,EAAExB,SAAS,CAACa,MAAM;EACtBY,WAAW,EAAEzB,SAAS,CAACa,MAAM;EAC7BO,WAAW,EAAEpB,SAAS,CAACoB,WAAW;EAClCO,MAAM,EAAE3B,SAAS,CAACa,MAAM;EACxBe,SAAS,EAAE5B,SAAS,CAACa;AACtB,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("@testing-library/react");
5
- const Alphabet_1 = require("./Alphabet");
6
- describe("Alphabet", () => {
7
- const allLetters = "abcdefghijklmnopqrstuvwxyz".split("");
8
- const letterElements = allLetters.map((letter) => ((0, jsx_runtime_1.jsx)(Alphabet_1.Letter, Object.assign({ to: `#${letter}`, label: `Letter ${letter}` }, { children: letter.toUpperCase() }), letter)));
9
- it("should match snapshot", () => {
10
- const wrapper = (0, react_1.render)((0, jsx_runtime_1.jsx)(Alphabet_1.Alphabet, { children: letterElements }));
11
- expect(wrapper).toMatchSnapshot();
12
- });
13
- it("should add a class of 'alphabet' to the default variant", () => {
14
- const wrapper = (0, react_1.render)((0, jsx_runtime_1.jsx)(Alphabet_1.Alphabet, { children: letterElements }));
15
- expect(wrapper.getByRole("list")).toHaveClass("alphabet");
16
- });
17
- it("should add a custom class when one is specified", () => {
18
- const wrapper = (0, react_1.render)((0, jsx_runtime_1.jsx)(Alphabet_1.Alphabet, Object.assign({ className: "test-class" }, { children: letterElements })));
19
- expect(wrapper.getByRole("list")).toHaveClass("test-class");
20
- });
21
- it("should add a class of 'alphabet--chunky' to the chunky variant", () => {
22
- const wrapper = (0, react_1.render)((0, jsx_runtime_1.jsx)(Alphabet_1.Alphabet, Object.assign({ chunky: true }, { children: letterElements })));
23
- expect(wrapper.getByRole("list")).toHaveClass("alphabet--chunky");
24
- });
25
- it("should render a child component for each letter of the alphabet", () => {
26
- const wrapper = (0, react_1.render)((0, jsx_runtime_1.jsx)(Alphabet_1.Alphabet, { children: letterElements }));
27
- expect(wrapper.getByRole("list").children.length).toBe(allLetters.length);
28
- });
29
- it("should render chunky child components when the chunky variant is specified on the parent", () => {
30
- const wrapper = (0, react_1.render)((0, jsx_runtime_1.jsx)(Alphabet_1.Alphabet, Object.assign({ chunky: true }, { children: letterElements })));
31
- expect(wrapper.getAllByRole("listitem")[0]).toHaveClass("alphabet__letter alphabet__letter--chunky");
32
- });
33
- it("should append className prop to rendered class attribute", () => {
34
- const wrapper = (0, react_1.render)((0, jsx_runtime_1.jsx)(Alphabet_1.Alphabet, Object.assign({ className: "test" }, { children: letterElements })));
35
- expect(wrapper.getByRole("list")).toHaveClass("test");
36
- });
37
- it("should render additional props as attributes", () => {
38
- const wrapper = (0, react_1.render)((0, jsx_runtime_1.jsx)(Alphabet_1.Alphabet, Object.assign({ "aria-label": "hello" }, { children: letterElements })));
39
- expect(wrapper.getByRole("list").getAttribute("aria-label")).toBe("hello");
40
- });
41
- });
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- import React from "react";
4
- import { shallow } from "enzyme";
5
- import { Alphabet, Letter } from "../Alphabet";
6
- describe("Alphabet", function () {
7
- var allLetters = "abcdefghijklmnopqrstuvwxyz".split("");
8
- var letterElements = allLetters.map(function (letter) {
9
- return /*#__PURE__*/React.createElement(Letter, {
10
- key: letter,
11
- to: "#" + letter,
12
- label: "Letter " + letter
13
- }, letter.toUpperCase());
14
- });
15
- it("should render without crashing", function () {
16
- var wrapper = shallow( /*#__PURE__*/React.createElement(Alphabet, null, letterElements));
17
- expect(wrapper).toHaveLength(1);
18
- });
19
- it("should add a class of 'alphabet' to the default variant", function () {
20
- var wrapper = shallow( /*#__PURE__*/React.createElement(Alphabet, null, letterElements));
21
- expect(wrapper.hasClass("alphabet")).toEqual(true);
22
- });
23
- it("should add a custom class when one is specified", function () {
24
- var wrapper = shallow( /*#__PURE__*/React.createElement(Alphabet, {
25
- className: "test-class"
26
- }, letterElements));
27
- expect(wrapper.hasClass("test-class")).toEqual(true);
28
- });
29
- it("should add a class of 'alphabet--chunky' to the chunky variant", function () {
30
- var wrapper = shallow( /*#__PURE__*/React.createElement(Alphabet, {
31
- chunky: true
32
- }, letterElements));
33
- expect(wrapper.hasClass("alphabet--chunky")).toEqual(true);
34
- });
35
- it("should render a child component for each letter of the alphabet", function () {
36
- var wrapper = shallow( /*#__PURE__*/React.createElement(Alphabet, null, letterElements));
37
- expect(wrapper.children()).toHaveLength(allLetters.length);
38
- });
39
- it("should render chunky child components when the chunky variant is specified on the parent", function () {
40
- var wrapper = shallow( /*#__PURE__*/React.createElement(Alphabet, {
41
- chunky: true
42
- }, letterElements));
43
- expect(wrapper.childAt(0).render() // Used here due to this issue: https://github.com/enzymejs/enzyme/issues/1177#issuecomment-332717606
44
- .hasClass("alphabet__letter alphabet__letter--chunky")).toEqual(true);
45
- });
46
- it("should append className prop to rendered class attribute", function () {
47
- var wrapper = shallow( /*#__PURE__*/React.createElement(Alphabet, {
48
- className: "test"
49
- }, letterElements));
50
- expect(wrapper.hasClass("test")).toEqual(true);
51
- });
52
- it("should render additional props as attributes", function () {
53
- var wrapper = shallow( /*#__PURE__*/React.createElement(Alphabet, {
54
- "aria-label": "hello"
55
- }, letterElements));
56
- expect(wrapper.prop("aria-label")).toEqual("hello");
57
- });
58
- });
59
- //# sourceMappingURL=nds-alphabet.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nds-alphabet.test.js","names":["React","shallow","Alphabet","Letter","describe","allLetters","split","letterElements","map","letter","toUpperCase","it","wrapper","expect","toHaveLength","hasClass","toEqual","children","length","childAt","render","prop"],"sources":["../../src/__tests__/nds-alphabet.test.js"],"sourcesContent":["\"use strict\";\n\nimport React from \"react\";\nimport { shallow } from \"enzyme\";\nimport { Alphabet, Letter } from \"../Alphabet\";\n\ndescribe(\"Alphabet\", () => {\n\tconst allLetters = \"abcdefghijklmnopqrstuvwxyz\".split(\"\");\n\tconst letterElements = allLetters.map((letter) => (\n\t\t<Letter key={letter} to={`#${letter}`} label={`Letter ${letter}`}>\n\t\t\t{letter.toUpperCase()}\n\t\t</Letter>\n\t));\n\n\tit(\"should render without crashing\", () => {\n\t\tconst wrapper = shallow(<Alphabet>{letterElements}</Alphabet>);\n\t\texpect(wrapper).toHaveLength(1);\n\t});\n\n\tit(\"should add a class of 'alphabet' to the default variant\", () => {\n\t\tconst wrapper = shallow(<Alphabet>{letterElements}</Alphabet>);\n\t\texpect(wrapper.hasClass(\"alphabet\")).toEqual(true);\n\t});\n\n\tit(\"should add a custom class when one is specified\", () => {\n\t\tconst wrapper = shallow(\n\t\t\t<Alphabet className=\"test-class\">{letterElements}</Alphabet>\n\t\t);\n\t\texpect(wrapper.hasClass(\"test-class\")).toEqual(true);\n\t});\n\n\tit(\"should add a class of 'alphabet--chunky' to the chunky variant\", () => {\n\t\tconst wrapper = shallow(<Alphabet chunky>{letterElements}</Alphabet>);\n\t\texpect(wrapper.hasClass(\"alphabet--chunky\")).toEqual(true);\n\t});\n\n\tit(\"should render a child component for each letter of the alphabet\", () => {\n\t\tconst wrapper = shallow(<Alphabet>{letterElements}</Alphabet>);\n\t\texpect(wrapper.children()).toHaveLength(allLetters.length);\n\t});\n\n\tit(\"should render chunky child components when the chunky variant is specified on the parent\", () => {\n\t\tconst wrapper = shallow(<Alphabet chunky>{letterElements}</Alphabet>);\n\t\texpect(\n\t\t\twrapper\n\t\t\t\t.childAt(0)\n\t\t\t\t.render() // Used here due to this issue: https://github.com/enzymejs/enzyme/issues/1177#issuecomment-332717606\n\t\t\t\t.hasClass(\"alphabet__letter alphabet__letter--chunky\")\n\t\t).toEqual(true);\n\t});\n\n\tit(\"should append className prop to rendered class attribute\", () => {\n\t\tconst wrapper = shallow(\n\t\t\t<Alphabet className=\"test\">{letterElements}</Alphabet>\n\t\t);\n\t\texpect(wrapper.hasClass(\"test\")).toEqual(true);\n\t});\n\n\tit(\"should render additional props as attributes\", () => {\n\t\tconst wrapper = shallow(\n\t\t\t<Alphabet aria-label=\"hello\">{letterElements}</Alphabet>\n\t\t);\n\t\texpect(wrapper.prop(\"aria-label\")).toEqual(\"hello\");\n\t});\n});\n"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,QAAQ,QAAQ;AAChC,SAASC,QAAQ,EAAEC,MAAM,QAAQ,aAAa;AAE9CC,QAAQ,CAAC,UAAU,EAAE,YAAM;EAC1B,IAAMC,UAAU,GAAG,4BAA4B,CAACC,KAAK,CAAC,EAAE,CAAC;EACzD,IAAMC,cAAc,GAAGF,UAAU,CAACG,GAAG,CAAC,UAACC,MAAM;IAAA,oBAC5C,oBAAC,MAAM;MAAC,GAAG,EAAEA,MAAO;MAAC,EAAE,QAAMA,MAAS;MAAC,KAAK,cAAYA;IAAS,GAC/DA,MAAM,CAACC,WAAW,EAAE,CACb;EAAA,CACT,CAAC;EAEFC,EAAE,CAAC,gCAAgC,EAAE,YAAM;IAC1C,IAAMC,OAAO,GAAGX,OAAO,eAAC,oBAAC,QAAQ,QAAEM,cAAc,CAAY,CAAC;IAC9DM,MAAM,CAACD,OAAO,CAAC,CAACE,YAAY,CAAC,CAAC,CAAC;EAChC,CAAC,CAAC;EAEFH,EAAE,CAAC,yDAAyD,EAAE,YAAM;IACnE,IAAMC,OAAO,GAAGX,OAAO,eAAC,oBAAC,QAAQ,QAAEM,cAAc,CAAY,CAAC;IAC9DM,MAAM,CAACD,OAAO,CAACG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAACC,OAAO,CAAC,IAAI,C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