@dxc-technology/halstack-react 12.0.2 → 12.1.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.
Files changed (58) hide show
  1. package/breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  2. package/breadcrumbs/Breadcrumbs.test.js +1 -2
  3. package/card/Card.stories.tsx +1 -1
  4. package/chip/Chip.stories.tsx +2 -6
  5. package/contextual-menu/ContextualMenu.js +24 -4
  6. package/contextual-menu/ContextualMenu.stories.tsx +5 -14
  7. package/contextual-menu/ContextualMenu.test.js +108 -66
  8. package/contextual-menu/GroupItem.js +9 -9
  9. package/contextual-menu/ItemAction.d.ts +1 -1
  10. package/contextual-menu/ItemAction.js +8 -9
  11. package/contextual-menu/SingleItem.d.ts +1 -1
  12. package/contextual-menu/SingleItem.js +14 -14
  13. package/contextual-menu/types.d.ts +9 -6
  14. package/date-input/Calendar.js +46 -30
  15. package/date-input/DateInput.accessibility.test.js +12 -13
  16. package/date-input/DateInput.js +9 -3
  17. package/date-input/DateInput.stories.tsx +5 -6
  18. package/date-input/DateInput.test.js +30 -31
  19. package/date-input/YearPicker.js +9 -4
  20. package/dialog/Dialog.stories.tsx +2 -3
  21. package/dialog/Dialog.test.js +1 -2
  22. package/dropdown/Dropdown.accessibility.test.js +1 -2
  23. package/dropdown/Dropdown.stories.tsx +1 -1
  24. package/dropdown/Dropdown.test.js +1 -2
  25. package/file-input/FileInput.js +1 -3
  26. package/file-input/types.d.ts +0 -4
  27. package/grid/Grid.stories.tsx +3 -1
  28. package/header/Header.stories.tsx +1 -1
  29. package/number-input/NumberInput.accessibility.test.js +1 -2
  30. package/number-input/NumberInput.stories.tsx +2 -16
  31. package/number-input/NumberInput.test.js +1 -2
  32. package/package.json +17 -15
  33. package/paginator/Paginator.accessibility.test.js +1 -2
  34. package/paginator/Paginator.test.js +1 -2
  35. package/password-input/PasswordInput.accessibility.test.js +1 -2
  36. package/password-input/PasswordInput.stories.tsx +1 -1
  37. package/password-input/PasswordInput.test.js +1 -2
  38. package/resultset-table/ResultsetTable.accessibility.test.js +1 -2
  39. package/resultset-table/ResultsetTable.stories.tsx +1 -1
  40. package/resultset-table/ResultsetTable.test.js +1 -2
  41. package/select/Select.accessibility.test.js +1 -2
  42. package/select/Select.stories.tsx +1 -1
  43. package/select/Select.test.js +1 -2
  44. package/sidenav/Sidenav.stories.tsx +1 -1
  45. package/slider/Slider.accessibility.test.js +1 -2
  46. package/slider/Slider.test.js +1 -2
  47. package/table/Table.accessibility.test.js +1 -2
  48. package/table/Table.stories.tsx +1 -1
  49. package/table/Table.test.js +1 -2
  50. package/tabs/Tabs.stories.tsx +2 -2
  51. package/tag/Tag.stories.tsx +1 -1
  52. package/text-input/TextInput.accessibility.test.js +1 -2
  53. package/text-input/TextInput.stories.tsx +2 -8
  54. package/text-input/TextInput.test.js +1 -2
  55. package/toggle-group/ToggleGroup.stories.tsx +1 -1
  56. package/typography/Typography.stories.tsx +1 -3
  57. package/utils/FocusLock.js +2 -1
  58. package/wizard/Wizard.stories.tsx +1 -1
@@ -32,25 +32,11 @@ export const Chromatic = () => (
32
32
  </ExampleContainer>
33
33
  <ExampleContainer>
34
34
  <Title title="Read only" theme="light" level={4} />
35
- <DxcNumberInput
36
- label="Example label"
37
- helperText="Help message"
38
- readOnly
39
- optional
40
- prefix="€"
41
- defaultValue="33"
42
- />
35
+ <DxcNumberInput label="Example label" helperText="Help message" readOnly optional prefix="€" defaultValue="33" />
43
36
  </ExampleContainer>
44
37
  <ExampleContainer pseudoState="pseudo-hover">
45
38
  <Title title="Hovered read only" theme="light" level={4} />
46
- <DxcNumberInput
47
- label="Example label"
48
- helperText="Help message"
49
- readOnly
50
- optional
51
- prefix="€"
52
- defaultValue="1"
53
- />
39
+ <DxcNumberInput label="Example label" helperText="Help message" readOnly optional prefix="€" defaultValue="1" />
54
40
  </ExampleContainer>
55
41
  <ExampleContainer pseudoState="pseudo-active">
56
42
  <Title title="Active read only" theme="light" level={4} />
@@ -27,7 +27,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
27
27
  function ResizeObserver() {
28
28
  (0, _classCallCheck2["default"])(this, ResizeObserver);
29
29
  }
30
- (0, _createClass2["default"])(ResizeObserver, [{
30
+ return (0, _createClass2["default"])(ResizeObserver, [{
31
31
  key: "observe",
32
32
  value: function observe() {}
33
33
  }, {
@@ -37,7 +37,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  key: "disconnect",
38
38
  value: function disconnect() {}
39
39
  }]);
40
- return ResizeObserver;
41
40
  }();
42
41
  describe("Number input component tests", function () {
43
42
  test("Number input renders with label, helper text, placeholder and increment/decrement action buttons", function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxc-technology/halstack-react",
3
- "version": "12.0.2",
3
+ "version": "12.1.0",
4
4
  "description": "DXC Halstack React components library",
5
5
  "repository": "dxc-technology/halstack-react",
6
6
  "homepage": "https://developer.dxc.com/halstack",
@@ -36,28 +36,30 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@babel/cli": "^7.16.8",
39
- "@babel/core": "^7.24.4",
39
+ "@babel/core": "^7.24.5",
40
40
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
41
41
  "@babel/plugin-proposal-optional-chaining": "^7.13.8",
42
42
  "@babel/plugin-transform-runtime": "^7.16.8",
43
43
  "@babel/preset-env": "^7.16.8",
44
44
  "@babel/preset-react": "^7.16.7",
45
45
  "@babel/preset-typescript": "^7.16.7",
46
- "@storybook/addon-a11y": "^7.6.17",
47
- "@storybook/addon-essentials": "^7.5.3",
48
- "@storybook/addon-interactions": "^7.5.3",
49
- "@storybook/addon-links": "^7.5.3",
50
- "@storybook/blocks": "^7.5.3",
51
- "@storybook/react": "^7.5.3",
52
- "@storybook/react-vite": "^7.5.3",
53
- "@storybook/test-runner": "^0.16.0",
54
- "@storybook/testing-library": "^0.2.2",
46
+ "@chromatic-com/storybook": "^1.3.3",
47
+ "@storybook/addon-a11y": "^8.0.8",
48
+ "@storybook/addon-essentials": "^8.0.8",
49
+ "@storybook/addon-interactions": "^8.0.8",
50
+ "@storybook/addon-links": "^8.0.8",
51
+ "@storybook/blocks": "^8.0.8",
52
+ "@storybook/builder-vite": "^8.0.8",
53
+ "@storybook/react": "^8.0.8",
54
+ "@storybook/react-vite": "^8.0.8",
55
+ "@storybook/test": "^8.0.8",
56
+ "@storybook/test-runner": "^0.17.0",
55
57
  "@testing-library/react": "^13.0.0",
56
58
  "@testing-library/user-event": "^13.0.0",
57
59
  "@types/color": "^3.0.3",
58
60
  "@types/jest": "^29.5.12",
59
61
  "@types/jest-axe": "^3.5.9",
60
- "@types/react": "^18.0.18",
62
+ "@types/react": "^18.2.79",
61
63
  "@types/styled-components": "5.1.29",
62
64
  "axe-playwright": "^2.0.1",
63
65
  "babel-jest": "^24.8.0",
@@ -70,9 +72,9 @@
70
72
  "eslint-plugin-import": "^2.29.0",
71
73
  "eslint-plugin-jest": "^27.6.0",
72
74
  "eslint-plugin-jsx-a11y": "^6.8.0",
73
- "eslint-plugin-react": "^7.33.2",
75
+ "eslint-plugin-react": "^7.34.1",
74
76
  "eslint-plugin-react-hooks": "^4.6.0",
75
- "eslint-plugin-storybook": "^0.6.15",
77
+ "eslint-plugin-storybook": "^0.8.0",
76
78
  "identity-obj-proxy": "^3.0.0",
77
79
  "jest": "^29.7.0",
78
80
  "jest-axe": "^8.0.0",
@@ -80,7 +82,7 @@
80
82
  "playwright": "^1.41.2",
81
83
  "react": "^18.2.0",
82
84
  "react-dom": "^18.2.0",
83
- "storybook": "^7.5.3",
85
+ "storybook": "^8.0.8",
84
86
  "storybook-addon-pseudo-states": "^3.0.1",
85
87
  "style-loader": "^4.0.0",
86
88
  "styled-components": "^5.0.1",
@@ -27,7 +27,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
27
27
  function ResizeObserver() {
28
28
  (0, _classCallCheck2["default"])(this, ResizeObserver);
29
29
  }
30
- (0, _createClass2["default"])(ResizeObserver, [{
30
+ return (0, _createClass2["default"])(ResizeObserver, [{
31
31
  key: "observe",
32
32
  value: function observe() {}
33
33
  }, {
@@ -37,7 +37,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  key: "disconnect",
38
38
  value: function disconnect() {}
39
39
  }]);
40
- return ResizeObserver;
41
40
  }();
42
41
  global.DOMRect = {
43
42
  fromRect: function fromRect() {
@@ -27,7 +27,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
27
27
  function ResizeObserver() {
28
28
  (0, _classCallCheck2["default"])(this, ResizeObserver);
29
29
  }
30
- (0, _createClass2["default"])(ResizeObserver, [{
30
+ return (0, _createClass2["default"])(ResizeObserver, [{
31
31
  key: "observe",
32
32
  value: function observe() {}
33
33
  }, {
@@ -37,7 +37,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  key: "disconnect",
38
38
  value: function disconnect() {}
39
39
  }]);
40
- return ResizeObserver;
41
40
  }();
42
41
  global.DOMRect = {
43
42
  fromRect: function fromRect() {
@@ -27,7 +27,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
27
27
  function ResizeObserver() {
28
28
  (0, _classCallCheck2["default"])(this, ResizeObserver);
29
29
  }
30
- (0, _createClass2["default"])(ResizeObserver, [{
30
+ return (0, _createClass2["default"])(ResizeObserver, [{
31
31
  key: "observe",
32
32
  value: function observe() {}
33
33
  }, {
@@ -37,7 +37,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  key: "disconnect",
38
38
  value: function disconnect() {}
39
39
  }]);
40
- return ResizeObserver;
41
40
  }();
42
41
  describe("Password input component accessibility tests", function () {
43
42
  it("Should not have basic accessibility issues", /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { userEvent, within } from "@storybook/testing-library";
2
+ import { userEvent, within } from "@storybook/test";
3
3
  import DxcPasswordInput from "./PasswordInput";
4
4
  import Title from "../../.storybook/components/Title";
5
5
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
@@ -27,7 +27,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
27
27
  function ResizeObserver() {
28
28
  (0, _classCallCheck2["default"])(this, ResizeObserver);
29
29
  }
30
- (0, _createClass2["default"])(ResizeObserver, [{
30
+ return (0, _createClass2["default"])(ResizeObserver, [{
31
31
  key: "observe",
32
32
  value: function observe() {}
33
33
  }, {
@@ -37,7 +37,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  key: "disconnect",
38
38
  value: function disconnect() {}
39
39
  }]);
40
- return ResizeObserver;
41
40
  }();
42
41
  describe("Password input component tests", function () {
43
42
  test("Password input renders with label and helper text", function () {
@@ -51,7 +51,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
51
51
  function ResizeObserver() {
52
52
  (0, _classCallCheck2["default"])(this, ResizeObserver);
53
53
  }
54
- (0, _createClass2["default"])(ResizeObserver, [{
54
+ return (0, _createClass2["default"])(ResizeObserver, [{
55
55
  key: "observe",
56
56
  value: function observe() {}
57
57
  }, {
@@ -61,7 +61,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
61
61
  key: "disconnect",
62
62
  value: function disconnect() {}
63
63
  }]);
64
- return ResizeObserver;
65
64
  }();
66
65
  var actions = [{
67
66
  title: "icon",
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import DxcResultsetTable from "./ResultsetTable";
3
3
  import Title from "../../.storybook/components/Title";
4
4
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
5
- import { userEvent, within } from "@storybook/testing-library";
5
+ import { userEvent, within } from "@storybook/test";
6
6
  import styled from "styled-components";
7
7
  import { HalstackProvider } from "../HalstackContext";
8
8
  import { disabledRules } from "../../test/accessibility/rules/specific/resultset-table/disabledRules";
@@ -27,7 +27,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
27
27
  function ResizeObserver() {
28
28
  (0, _classCallCheck2["default"])(this, ResizeObserver);
29
29
  }
30
- (0, _createClass2["default"])(ResizeObserver, [{
30
+ return (0, _createClass2["default"])(ResizeObserver, [{
31
31
  key: "observe",
32
32
  value: function observe() {}
33
33
  }, {
@@ -37,7 +37,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  key: "disconnect",
38
38
  value: function disconnect() {}
39
39
  }]);
40
- return ResizeObserver;
41
40
  }();
42
41
  var icon = /*#__PURE__*/_react["default"].createElement("svg", {
43
42
  xmlns: "http://www.w3.org/2000/svg",
@@ -130,7 +130,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
130
130
  function ResizeObserver() {
131
131
  (0, _classCallCheck2["default"])(this, ResizeObserver);
132
132
  }
133
- (0, _createClass2["default"])(ResizeObserver, [{
133
+ return (0, _createClass2["default"])(ResizeObserver, [{
134
134
  key: "observe",
135
135
  value: function observe() {}
136
136
  }, {
@@ -140,7 +140,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
140
140
  key: "disconnect",
141
141
  value: function disconnect() {}
142
142
  }]);
143
- return ResizeObserver;
144
143
  }();
145
144
  describe("Select component accessibility tests", function () {
146
145
  it("Should not have basic accessibility issues", /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { userEvent, within } from "@storybook/testing-library";
2
+ import { userEvent, within } from "@storybook/test";
3
3
  import Title from "../../.storybook/components/Title";
4
4
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
5
5
  import DxcSelect from "./Select";
@@ -27,7 +27,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
27
27
  function ResizeObserver() {
28
28
  (0, _classCallCheck2["default"])(this, ResizeObserver);
29
29
  }
30
- (0, _createClass2["default"])(ResizeObserver, [{
30
+ return (0, _createClass2["default"])(ResizeObserver, [{
31
31
  key: "observe",
32
32
  value: function observe() {}
33
33
  }, {
@@ -37,7 +37,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  key: "disconnect",
38
38
  value: function disconnect() {}
39
39
  }]);
40
- return ResizeObserver;
41
40
  }();
42
41
  var singleOptions = [{
43
42
  label: "Option 01",
@@ -4,7 +4,7 @@ import DxcSelect from "../select/Select";
4
4
  import DxcInset from "../inset/Inset";
5
5
  import Title from "../../.storybook/components/Title";
6
6
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
7
- import { userEvent, within } from "@storybook/testing-library";
7
+ import { userEvent, within } from "@storybook/test";
8
8
  import { HalstackProvider } from "../HalstackContext";
9
9
 
10
10
  export default {
@@ -27,7 +27,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
27
27
  function ResizeObserver() {
28
28
  (0, _classCallCheck2["default"])(this, ResizeObserver);
29
29
  }
30
- (0, _createClass2["default"])(ResizeObserver, [{
30
+ return (0, _createClass2["default"])(ResizeObserver, [{
31
31
  key: "observe",
32
32
  value: function observe() {}
33
33
  }, {
@@ -37,7 +37,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  key: "disconnect",
38
38
  value: function disconnect() {}
39
39
  }]);
40
- return ResizeObserver;
41
40
  }();
42
41
  describe("Slider component accessibility tests", function () {
43
42
  it("Should not have basic accessibility issues", /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
@@ -25,7 +25,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
25
25
  function ResizeObserver() {
26
26
  (0, _classCallCheck2["default"])(this, ResizeObserver);
27
27
  }
28
- (0, _createClass2["default"])(ResizeObserver, [{
28
+ return (0, _createClass2["default"])(ResizeObserver, [{
29
29
  key: "observe",
30
30
  value: function observe() {}
31
31
  }, {
@@ -35,7 +35,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
35
35
  key: "disconnect",
36
36
  value: function disconnect() {}
37
37
  }]);
38
- return ResizeObserver;
39
38
  }();
40
39
  describe("Slider component tests", function () {
41
40
  test("Slider renders with correct text and label id", function () {
@@ -37,7 +37,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  function ResizeObserver() {
38
38
  (0, _classCallCheck2["default"])(this, ResizeObserver);
39
39
  }
40
- (0, _createClass2["default"])(ResizeObserver, [{
40
+ return (0, _createClass2["default"])(ResizeObserver, [{
41
41
  key: "observe",
42
42
  value: function observe() {}
43
43
  }, {
@@ -47,7 +47,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
47
47
  key: "disconnect",
48
48
  value: function disconnect() {}
49
49
  }]);
50
- return ResizeObserver;
51
50
  }();
52
51
  describe("Table component accessibility tests", function () {
53
52
  it("Should not have basic accessibility issues", /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
@@ -3,7 +3,7 @@ import DxcTable from "./Table";
3
3
  import Title from "../../.storybook/components/Title";
4
4
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
5
5
  import { HalstackProvider } from "../HalstackContext";
6
- import { userEvent, within } from "@storybook/testing-library";
6
+ import { userEvent, within } from "@storybook/test";
7
7
  import { disabledRules } from "../../test/accessibility/rules/specific/table/disabledRules";
8
8
  import preview from "../../.storybook/preview";
9
9
 
@@ -26,7 +26,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
26
26
  function ResizeObserver() {
27
27
  (0, _classCallCheck2["default"])(this, ResizeObserver);
28
28
  }
29
- (0, _createClass2["default"])(ResizeObserver, [{
29
+ return (0, _createClass2["default"])(ResizeObserver, [{
30
30
  key: "observe",
31
31
  value: function observe() {}
32
32
  }, {
@@ -36,7 +36,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
36
36
  key: "disconnect",
37
37
  value: function disconnect() {}
38
38
  }]);
39
- return ResizeObserver;
40
39
  }();
41
40
  var icon = /*#__PURE__*/_react["default"].createElement("svg", {
42
41
  xmlns: "http://www.w3.org/2000/svg",
@@ -3,7 +3,7 @@ import DxcTabs from "./Tabs";
3
3
  import Title from "../../.storybook/components/Title";
4
4
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
5
5
  import { HalstackProvider } from "../HalstackContext";
6
- import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
6
+ import { INITIAL_VIEWPORTS } from "@storybook/addon-viewport";
7
7
 
8
8
  export default {
9
9
  title: "Tabs",
@@ -81,7 +81,7 @@ const tabsNotification = tabs.map((tab, index) => ({
81
81
  }));
82
82
 
83
83
  const tabsIcon = tabs.map((tab, index) =>
84
- index <= tabs.length / 2 ? { ...tab, icon: "mail" } : { ...tab, icon: iconSVG }
84
+ index <= tabs.length / 2 ? { ...tab, icon: "mail" } : { ...tab, icon: iconSVG },
85
85
  );
86
86
 
87
87
  const tabsNotificationIcon = tabsNotification.map((tab) => ({ ...tab, icon: iconSVG }));
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { userEvent, within } from "@storybook/testing-library";
2
+ import { userEvent, within } from "@storybook/test";
3
3
  import Title from "../../.storybook/components/Title";
4
4
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
5
5
  import DxcTag from "./Tag";
@@ -45,7 +45,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
45
45
  function ResizeObserver() {
46
46
  (0, _classCallCheck2["default"])(this, ResizeObserver);
47
47
  }
48
- (0, _createClass2["default"])(ResizeObserver, [{
48
+ return (0, _createClass2["default"])(ResizeObserver, [{
49
49
  key: "observe",
50
50
  value: function observe() {}
51
51
  }, {
@@ -55,7 +55,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
55
55
  key: "disconnect",
56
56
  value: function disconnect() {}
57
57
  }]);
58
- return ResizeObserver;
59
58
  }();
60
59
  describe("TextInput component accessibility tests", function () {
61
60
  it("Should not have basic accessibility issues", /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { userEvent, within } from "@storybook/testing-library";
2
+ import { userEvent, within } from "@storybook/test";
3
3
  import Title from "../../.storybook/components/Title";
4
4
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
5
5
  import DxcTextInput from "./TextInput";
@@ -27,13 +27,7 @@ const action = {
27
27
  const actionLargeIconSVG = {
28
28
  onClick: () => {},
29
29
  icon: (
30
- <svg
31
- xmlns="http://www.w3.org/2000/svg"
32
- height="48px"
33
- viewBox="0 0 24 24"
34
- width="48px"
35
- fill="currentColor"
36
- >
30
+ <svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px" fill="currentColor">
37
31
  <path d="M0 0h24v24H0V0z" fill="none" />
38
32
  <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z" />
39
33
  </svg>
@@ -27,7 +27,7 @@ global.ResizeObserver = /*#__PURE__*/function () {
27
27
  function ResizeObserver() {
28
28
  (0, _classCallCheck2["default"])(this, ResizeObserver);
29
29
  }
30
- (0, _createClass2["default"])(ResizeObserver, [{
30
+ return (0, _createClass2["default"])(ResizeObserver, [{
31
31
  key: "observe",
32
32
  value: function observe() {}
33
33
  }, {
@@ -37,7 +37,6 @@ global.ResizeObserver = /*#__PURE__*/function () {
37
37
  key: "disconnect",
38
38
  value: function disconnect() {}
39
39
  }]);
40
- return ResizeObserver;
41
40
  }();
42
41
  var countries = ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Cabo Verde", "Cambodia", "Cameroon", "Canada", "Cayman Islands, The", "Central African Republic", "Chad", "Democratic Republic of the Congo", "Dominican Republic", "Dominica", "Denmark", "Djibouti"];
43
42
  var specialCharacters = ["/", "\\", "*", "(", ")", "[", "]", "+", "?", "*{[]}|"];
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { userEvent, within } from "@storybook/testing-library";
2
+ import { userEvent, within } from "@storybook/test";
3
3
  import DxcToggleGroup from "./ToggleGroup";
4
4
  import Title from "../../.storybook/components/Title";
5
5
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
@@ -140,9 +140,7 @@ export const Chromatic = () => (
140
140
  <ExampleContainer>
141
141
  <Title title="Typography whitespace" theme="light" level={4} />
142
142
  <div style={{ margin: "50px", border: "1px solid red", width: "125px" }}>
143
- <DxcTypography fontSize="2rem">
144
- {" "} Normal: A bunch of words you see.
145
- </DxcTypography>
143
+ <DxcTypography fontSize="2rem">{" "} Normal: A bunch of words you see.</DxcTypography>
146
144
  </div>
147
145
  <div style={{ margin: "50px", border: "1px solid red", width: "125px" }}>
148
146
  <DxcTypography whiteSpace="nowrap" fontSize="2rem">
@@ -95,7 +95,8 @@ var FocusLock = function FocusLock(_ref) {
95
95
  });
96
96
  }, [focusableElements]);
97
97
  var focusLast = function focusLast() {
98
- focusableElements.reverse().some(function (element) {
98
+ var _focusableElements$re;
99
+ focusableElements === null || focusableElements === void 0 ? void 0 : (_focusableElements$re = focusableElements.reverse()) === null || _focusableElements$re === void 0 ? void 0 : _focusableElements$re.some(function (element) {
99
100
  return attemptFocus(element);
100
101
  });
101
102
  };
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import DxcWizard from "./Wizard";
3
3
  import Title from "../../.storybook/components/Title";
4
4
  import ExampleContainer from "../../.storybook/components/ExampleContainer";
5
- import { userEvent, within } from "@storybook/testing-library";
5
+ import { userEvent, within } from "@storybook/test";
6
6
  import { HalstackProvider } from "../HalstackContext";
7
7
 
8
8
  export default {