@dxc-technology/halstack-react 0.0.0-9bd9511 → 0.0.0-9c20370

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 (213) hide show
  1. package/BackgroundColorContext.d.ts +3 -3
  2. package/BackgroundColorContext.js +12 -2
  3. package/HalstackContext.d.ts +1330 -7
  4. package/HalstackContext.js +84 -67
  5. package/accordion/Accordion.d.ts +1 -1
  6. package/accordion/Accordion.js +74 -55
  7. package/accordion/Accordion.stories.tsx +3 -101
  8. package/accordion/Accordion.test.js +34 -19
  9. package/accordion/types.d.ts +4 -16
  10. package/accordion-group/AccordionGroup.d.ts +4 -3
  11. package/accordion-group/AccordionGroup.js +49 -42
  12. package/accordion-group/AccordionGroup.stories.tsx +77 -76
  13. package/accordion-group/AccordionGroup.test.js +62 -54
  14. package/accordion-group/AccordionGroupAccordion.d.ts +4 -0
  15. package/accordion-group/AccordionGroupAccordion.js +43 -0
  16. package/accordion-group/types.d.ts +6 -18
  17. package/alert/Alert.js +47 -20
  18. package/alert/Alert.test.js +46 -29
  19. package/alert/types.d.ts +3 -3
  20. package/badge/Badge.js +14 -2
  21. package/badge/types.d.ts +1 -1
  22. package/bleed/Bleed.js +21 -13
  23. package/bleed/Bleed.stories.tsx +1 -0
  24. package/bleed/types.d.ts +2 -2
  25. package/box/Box.d.ts +1 -1
  26. package/box/Box.js +33 -33
  27. package/box/Box.stories.tsx +25 -53
  28. package/box/Box.test.js +7 -2
  29. package/box/types.d.ts +3 -15
  30. package/bulleted-list/BulletedList.js +36 -9
  31. package/bulleted-list/BulletedList.stories.tsx +7 -1
  32. package/bulleted-list/types.d.ts +32 -5
  33. package/button/Button.d.ts +1 -1
  34. package/button/Button.js +83 -71
  35. package/button/Button.stories.tsx +4 -4
  36. package/button/Button.test.js +28 -8
  37. package/button/types.d.ts +8 -4
  38. package/card/Card.d.ts +1 -1
  39. package/card/Card.js +67 -62
  40. package/card/Card.stories.tsx +12 -42
  41. package/card/Card.test.js +22 -11
  42. package/card/types.d.ts +4 -10
  43. package/checkbox/Checkbox.js +71 -27
  44. package/checkbox/Checkbox.test.js +60 -33
  45. package/checkbox/types.d.ts +4 -4
  46. package/chip/Chip.js +51 -48
  47. package/chip/Chip.stories.tsx +25 -17
  48. package/chip/Chip.test.js +29 -17
  49. package/chip/types.d.ts +4 -4
  50. package/common/OpenSans.css +68 -80
  51. package/common/coreTokens.d.ts +146 -0
  52. package/common/coreTokens.js +167 -0
  53. package/common/utils.d.ts +1 -0
  54. package/common/utils.js +8 -3
  55. package/common/variables.d.ts +226 -175
  56. package/common/variables.js +956 -1133
  57. package/date-input/Calendar.js +55 -12
  58. package/date-input/DateInput.js +82 -35
  59. package/date-input/DateInput.test.js +351 -164
  60. package/date-input/DatePicker.js +38 -8
  61. package/date-input/Icons.js +12 -0
  62. package/date-input/YearPicker.js +30 -5
  63. package/date-input/types.d.ts +7 -7
  64. package/dialog/Dialog.d.ts +1 -1
  65. package/dialog/Dialog.js +83 -86
  66. package/dialog/Dialog.stories.tsx +127 -221
  67. package/dialog/Dialog.test.js +331 -18
  68. package/dialog/types.d.ts +1 -14
  69. package/dropdown/Dropdown.js +86 -32
  70. package/dropdown/Dropdown.test.js +211 -104
  71. package/dropdown/DropdownMenu.js +22 -8
  72. package/dropdown/DropdownMenuItem.js +15 -6
  73. package/dropdown/types.d.ts +8 -8
  74. package/file-input/FileInput.js +218 -134
  75. package/file-input/FileInput.test.js +343 -331
  76. package/file-input/FileItem.js +39 -12
  77. package/file-input/types.d.ts +10 -10
  78. package/flex/Flex.js +39 -25
  79. package/flex/Flex.stories.tsx +35 -26
  80. package/flex/types.d.ts +74 -9
  81. package/footer/Footer.d.ts +1 -1
  82. package/footer/Footer.js +80 -68
  83. package/footer/Footer.stories.tsx +12 -89
  84. package/footer/Footer.test.js +47 -40
  85. package/footer/Icons.js +4 -0
  86. package/footer/types.d.ts +15 -17
  87. package/grid/Grid.d.ts +7 -0
  88. package/grid/Grid.js +91 -0
  89. package/grid/Grid.stories.tsx +219 -0
  90. package/grid/types.d.ts +115 -0
  91. package/header/Header.d.ts +4 -3
  92. package/header/Header.js +72 -55
  93. package/header/Header.stories.tsx +7 -71
  94. package/header/Header.test.js +26 -13
  95. package/header/Icons.js +4 -0
  96. package/header/types.d.ts +2 -16
  97. package/heading/Heading.js +28 -7
  98. package/heading/Heading.test.js +88 -71
  99. package/heading/types.d.ts +3 -3
  100. package/inset/Inset.js +21 -13
  101. package/inset/Inset.stories.tsx +2 -1
  102. package/inset/types.d.ts +2 -2
  103. package/layout/ApplicationLayout.d.ts +5 -5
  104. package/layout/ApplicationLayout.js +57 -15
  105. package/layout/Icons.js +10 -0
  106. package/layout/SidenavContext.d.ts +1 -1
  107. package/layout/SidenavContext.js +4 -0
  108. package/layout/types.d.ts +5 -6
  109. package/link/Link.js +41 -21
  110. package/link/Link.test.js +42 -26
  111. package/link/types.d.ts +4 -4
  112. package/main.d.ts +2 -1
  113. package/main.js +55 -0
  114. package/nav-tabs/NavTabs.d.ts +2 -2
  115. package/nav-tabs/NavTabs.js +43 -16
  116. package/nav-tabs/NavTabs.stories.tsx +14 -0
  117. package/nav-tabs/NavTabs.test.js +44 -37
  118. package/nav-tabs/Tab.js +71 -45
  119. package/nav-tabs/types.d.ts +10 -11
  120. package/number-input/NumberInput.js +30 -20
  121. package/number-input/NumberInput.test.js +249 -113
  122. package/number-input/NumberInputContext.js +5 -0
  123. package/number-input/numberInputContextTypes.d.ts +1 -1
  124. package/number-input/types.d.ts +4 -4
  125. package/package.json +7 -7
  126. package/paginator/Icons.js +10 -0
  127. package/paginator/Paginator.js +39 -17
  128. package/paginator/Paginator.test.js +156 -104
  129. package/paginator/types.d.ts +1 -1
  130. package/paragraph/Paragraph.d.ts +3 -4
  131. package/paragraph/Paragraph.js +18 -8
  132. package/password-input/PasswordInput.js +51 -22
  133. package/password-input/PasswordInput.test.js +94 -51
  134. package/password-input/types.d.ts +4 -4
  135. package/progress-bar/ProgressBar.d.ts +2 -2
  136. package/progress-bar/ProgressBar.js +39 -14
  137. package/progress-bar/ProgressBar.test.js +53 -36
  138. package/progress-bar/types.d.ts +4 -3
  139. package/quick-nav/QuickNav.js +24 -2
  140. package/quick-nav/types.d.ts +2 -2
  141. package/radio-group/Radio.js +53 -22
  142. package/radio-group/RadioGroup.js +84 -41
  143. package/radio-group/RadioGroup.test.js +288 -186
  144. package/radio-group/types.d.ts +4 -4
  145. package/resultsetTable/Icons.js +3 -0
  146. package/resultsetTable/ResultsetTable.js +56 -21
  147. package/resultsetTable/ResultsetTable.test.js +75 -42
  148. package/resultsetTable/types.d.ts +5 -5
  149. package/select/Icons.js +3 -0
  150. package/select/Listbox.js +35 -10
  151. package/select/Option.js +24 -8
  152. package/select/Select.js +143 -56
  153. package/select/Select.test.js +839 -456
  154. package/select/types.d.ts +12 -12
  155. package/sidenav/Icons.d.ts +7 -0
  156. package/sidenav/Icons.js +51 -0
  157. package/sidenav/Sidenav.d.ts +2 -2
  158. package/sidenav/Sidenav.js +116 -104
  159. package/sidenav/Sidenav.stories.tsx +60 -60
  160. package/sidenav/Sidenav.test.js +10 -3
  161. package/sidenav/types.d.ts +26 -23
  162. package/slider/Slider.js +84 -38
  163. package/slider/Slider.test.js +104 -76
  164. package/slider/types.d.ts +4 -4
  165. package/spinner/Spinner.js +51 -28
  166. package/spinner/Spinner.stories.jsx +28 -28
  167. package/spinner/Spinner.test.js +35 -26
  168. package/spinner/types.d.ts +3 -3
  169. package/switch/Switch.js +66 -24
  170. package/switch/Switch.test.js +97 -52
  171. package/switch/types.d.ts +4 -4
  172. package/table/Table.js +22 -4
  173. package/table/Table.test.js +7 -2
  174. package/table/types.d.ts +3 -3
  175. package/tabs/Tab.js +39 -22
  176. package/tabs/Tabs.js +131 -62
  177. package/tabs/Tabs.test.js +122 -67
  178. package/tabs/types.d.ts +8 -8
  179. package/tag/Tag.js +54 -27
  180. package/tag/Tag.test.js +31 -20
  181. package/tag/types.d.ts +7 -7
  182. package/text-input/Icons.js +3 -0
  183. package/text-input/Suggestion.js +24 -8
  184. package/text-input/Suggestions.js +36 -11
  185. package/text-input/TextInput.js +144 -59
  186. package/text-input/TextInput.stories.tsx +1 -1
  187. package/text-input/TextInput.test.js +858 -539
  188. package/text-input/types.d.ts +9 -9
  189. package/textarea/Textarea.js +73 -38
  190. package/textarea/Textarea.test.js +173 -98
  191. package/textarea/types.d.ts +4 -4
  192. package/toggle-group/ToggleGroup.d.ts +2 -2
  193. package/toggle-group/ToggleGroup.js +59 -21
  194. package/toggle-group/ToggleGroup.test.js +72 -40
  195. package/toggle-group/types.d.ts +11 -11
  196. package/typography/Typography.d.ts +2 -2
  197. package/typography/Typography.js +23 -110
  198. package/typography/Typography.stories.tsx +1 -1
  199. package/typography/types.d.ts +1 -1
  200. package/useTheme.d.ts +1234 -1
  201. package/useTheme.js +6 -0
  202. package/useTranslatedLabels.d.ts +84 -2
  203. package/useTranslatedLabels.js +5 -0
  204. package/utils/BaseTypography.d.ts +21 -0
  205. package/utils/BaseTypography.js +108 -0
  206. package/utils/FocusLock.d.ts +13 -0
  207. package/utils/FocusLock.js +138 -0
  208. package/wizard/Wizard.js +47 -13
  209. package/wizard/Wizard.test.js +81 -54
  210. package/wizard/types.d.ts +7 -8
  211. package/card/ice-cream.jpg +0 -0
  212. package/translatedLabelsType.d.ts +0 -82
  213. /package/{translatedLabelsType.js → grid/types.js} +0 -0
package/useTheme.js CHANGED
@@ -1,16 +1,22 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports["default"] = void 0;
9
+
8
10
  var _react = require("react");
11
+
9
12
  var _variables = require("./common/variables");
13
+
10
14
  var _HalstackContext = _interopRequireDefault(require("./HalstackContext"));
15
+
11
16
  var useTheme = function useTheme() {
12
17
  var colorsTheme = (0, _react.useContext)(_HalstackContext["default"]);
13
18
  return colorsTheme || _variables.componentTokens;
14
19
  };
20
+
15
21
  var _default = useTheme;
16
22
  exports["default"] = _default;
@@ -1,3 +1,85 @@
1
- import TranslatedLabelsContextTypes from "./translatedLabelsType";
2
- declare const useTranslatedLabels: () => TranslatedLabelsContextTypes;
1
+ declare const useTranslatedLabels: () => {
2
+ formFields?: Partial<{
3
+ optionalLabel: string;
4
+ requiredSelectionErrorMessage: string;
5
+ requiredValueErrorMessage: string;
6
+ formatRequestedErrorMessage: string;
7
+ lengthErrorMessage: (minLength?: number, maxLength?: number) => string;
8
+ logoAlternativeText: string;
9
+ }>;
10
+ applicationLayout?: Partial<{
11
+ visibilityToggleTitle: string;
12
+ }>;
13
+ alert?: Partial<{
14
+ infoTitleText: string;
15
+ successTitleText: string;
16
+ warningTitleText: string;
17
+ errorTitleText: string;
18
+ }>;
19
+ dateInput?: Partial<{
20
+ invalidDateErrorMessage: string;
21
+ }>;
22
+ dialog?: Partial<{
23
+ closeIconAriaLabel: string;
24
+ }>;
25
+ fileInput?: Partial<{
26
+ fileSizeGreaterThanErrorMessage: string;
27
+ fileSizeLessThanErrorMessage: string;
28
+ multipleButtonLabelDefault: string;
29
+ singleButtonLabelDefault: string;
30
+ dropAreaButtonLabelDefault: string;
31
+ multipleDropAreaLabelDefault: string;
32
+ singleDropAreaLabelDefault: string;
33
+ deleteFileActionTitle: string;
34
+ }>;
35
+ footer?: Partial<{
36
+ copyrightText: (year: number) => string;
37
+ }>;
38
+ header?: Partial<{
39
+ closeIcon: string;
40
+ hamburguerTitle: string;
41
+ }>;
42
+ numberInput?: Partial<{
43
+ valueGreaterThanOrEqualToErrorMessage: (value: number) => string;
44
+ valueLessThanOrEqualToErrorMessage: (value: number) => string;
45
+ decrementValueTitle: string;
46
+ incrementValueTitle: string;
47
+ }>;
48
+ paginator?: Partial<{
49
+ itemsPerPageText: string;
50
+ minToMaxOfText: (minNumberOfItems: number, maxNumberOfItems: number, totalItems: number) => string;
51
+ goToPageText: string;
52
+ pageOfText: (pageNumber: number, totalPagesNumber: number) => string;
53
+ }>;
54
+ passwordInput?: Partial<{
55
+ inputShowPasswordTitle: string;
56
+ inputHidePasswordTitle: string;
57
+ }>;
58
+ quickNav?: Partial<{
59
+ contentTitle: string;
60
+ }>;
61
+ radioGroup?: Partial<{
62
+ optionalItemLabelDefault: string;
63
+ }>;
64
+ select?: Partial<{
65
+ noMatchesErrorMessage: string;
66
+ actionClearSelectionTitle: string;
67
+ actionClearSearchTitle: string;
68
+ }>;
69
+ tabs?: Partial<{
70
+ scrollLeft: string;
71
+ scrollRight: string;
72
+ }>;
73
+ textInput?: Partial<{
74
+ clearFieldActionTitle: string;
75
+ searchingMessage: string;
76
+ fetchingDataErrorMessage: string;
77
+ }>;
78
+ calendar?: Partial<{
79
+ daysShort: string[];
80
+ months: string[];
81
+ previousMonthTitle: string;
82
+ nextMonthTitle: string;
83
+ }>;
84
+ };
3
85
  export default useTranslatedLabels;
@@ -4,12 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
+
7
8
  var _react = require("react");
9
+
8
10
  var _variables = require("./common/variables");
11
+
9
12
  var _HalstackContext = require("./HalstackContext");
13
+
10
14
  var useTranslatedLabels = function useTranslatedLabels() {
11
15
  var labels = (0, _react.useContext)(_HalstackContext.HalstackLanguageContext);
12
16
  return labels || _variables.defaultTranslatedComponentLabels;
13
17
  };
18
+
14
19
  var _default = useTranslatedLabels;
15
20
  exports["default"] = _default;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ declare type TypographyContextProps = {
3
+ as?: keyof HTMLElementTagNameMap;
4
+ display?: string;
5
+ fontFamily?: string;
6
+ fontSize?: string;
7
+ fontStyle?: string;
8
+ fontWeight?: string;
9
+ letterSpacing?: string;
10
+ lineHeight?: string;
11
+ textAlign?: string;
12
+ color?: string;
13
+ textDecoration?: string;
14
+ textOverflow?: string;
15
+ whiteSpace?: string;
16
+ };
17
+ declare type BaseTypographyProps = TypographyContextProps & {
18
+ children: React.ReactNode;
19
+ };
20
+ declare const BaseTypography: ({ as, display, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, color, textDecoration, textOverflow, whiteSpace, children, }: BaseTypographyProps) => JSX.Element;
21
+ export default BaseTypography;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
17
+
18
+ var _templateObject;
19
+
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
+
24
+ var TypographyContext = /*#__PURE__*/_react["default"].createContext(null);
25
+
26
+ var BaseTypography = function BaseTypography(_ref) {
27
+ var as = _ref.as,
28
+ display = _ref.display,
29
+ fontFamily = _ref.fontFamily,
30
+ fontSize = _ref.fontSize,
31
+ fontStyle = _ref.fontStyle,
32
+ fontWeight = _ref.fontWeight,
33
+ letterSpacing = _ref.letterSpacing,
34
+ lineHeight = _ref.lineHeight,
35
+ textAlign = _ref.textAlign,
36
+ color = _ref.color,
37
+ textDecoration = _ref.textDecoration,
38
+ textOverflow = _ref.textOverflow,
39
+ whiteSpace = _ref.whiteSpace,
40
+ children = _ref.children;
41
+ var componentContext = (0, _react.useContext)(TypographyContext);
42
+ var contextValue = (0, _react.useMemo)(function () {
43
+ var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
44
+
45
+ return {
46
+ as: (_ref2 = as !== null && as !== void 0 ? as : componentContext === null || componentContext === void 0 ? void 0 : componentContext.as) !== null && _ref2 !== void 0 ? _ref2 : "span",
47
+ display: (_ref3 = display !== null && display !== void 0 ? display : componentContext === null || componentContext === void 0 ? void 0 : componentContext.display) !== null && _ref3 !== void 0 ? _ref3 : "inline",
48
+ fontFamily: (_ref4 = fontFamily !== null && fontFamily !== void 0 ? fontFamily : componentContext === null || componentContext === void 0 ? void 0 : componentContext.fontFamily) !== null && _ref4 !== void 0 ? _ref4 : "Open Sans, sans-serif",
49
+ fontSize: (_ref5 = fontSize !== null && fontSize !== void 0 ? fontSize : componentContext === null || componentContext === void 0 ? void 0 : componentContext.fontSize) !== null && _ref5 !== void 0 ? _ref5 : "1rem",
50
+ fontStyle: (_ref6 = fontStyle !== null && fontStyle !== void 0 ? fontStyle : componentContext === null || componentContext === void 0 ? void 0 : componentContext.fontStyle) !== null && _ref6 !== void 0 ? _ref6 : "normal",
51
+ fontWeight: (_ref7 = fontWeight !== null && fontWeight !== void 0 ? fontWeight : componentContext === null || componentContext === void 0 ? void 0 : componentContext.fontWeight) !== null && _ref7 !== void 0 ? _ref7 : "400",
52
+ letterSpacing: (_ref8 = letterSpacing !== null && letterSpacing !== void 0 ? letterSpacing : componentContext === null || componentContext === void 0 ? void 0 : componentContext.letterSpacing) !== null && _ref8 !== void 0 ? _ref8 : "0em",
53
+ lineHeight: (_ref9 = lineHeight !== null && lineHeight !== void 0 ? lineHeight : componentContext === null || componentContext === void 0 ? void 0 : componentContext.lineHeight) !== null && _ref9 !== void 0 ? _ref9 : "1.5em",
54
+ textAlign: (_ref10 = textAlign !== null && textAlign !== void 0 ? textAlign : componentContext === null || componentContext === void 0 ? void 0 : componentContext.textAlign) !== null && _ref10 !== void 0 ? _ref10 : "left",
55
+ color: (_ref11 = color !== null && color !== void 0 ? color : componentContext === null || componentContext === void 0 ? void 0 : componentContext.color) !== null && _ref11 !== void 0 ? _ref11 : "#000000",
56
+ textDecoration: (_ref12 = textDecoration !== null && textDecoration !== void 0 ? textDecoration : componentContext === null || componentContext === void 0 ? void 0 : componentContext.textDecoration) !== null && _ref12 !== void 0 ? _ref12 : "none",
57
+ textOverflow: (_ref13 = textOverflow !== null && textOverflow !== void 0 ? textOverflow : componentContext === null || componentContext === void 0 ? void 0 : componentContext.textOverflow) !== null && _ref13 !== void 0 ? _ref13 : "unset",
58
+ whiteSpace: (_ref14 = whiteSpace !== null && whiteSpace !== void 0 ? whiteSpace : componentContext === null || componentContext === void 0 ? void 0 : componentContext.whiteSpace) !== null && _ref14 !== void 0 ? _ref14 : "normal"
59
+ };
60
+ }, [as, display, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, color, textDecoration, textOverflow, whiteSpace]);
61
+ return /*#__PURE__*/_react["default"].createElement(TypographyContext.Provider, {
62
+ value: contextValue
63
+ }, /*#__PURE__*/_react["default"].createElement(StyledTypography, contextValue, children));
64
+ };
65
+
66
+ var StyledTypography = _styledComponents["default"].span(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: ", ";\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n line-height: ", ";\n text-align: ", ";\n text-decoration: ", ";\n text-overflow: ", ";\n white-space: ", ";\n overflow: ", ";\n margin: 0;\n"])), function (_ref15) {
67
+ var display = _ref15.display;
68
+ return display;
69
+ }, function (_ref16) {
70
+ var color = _ref16.color;
71
+ return color;
72
+ }, function (_ref17) {
73
+ var fontFamily = _ref17.fontFamily;
74
+ return fontFamily;
75
+ }, function (_ref18) {
76
+ var fontSize = _ref18.fontSize;
77
+ return fontSize;
78
+ }, function (_ref19) {
79
+ var fontStyle = _ref19.fontStyle;
80
+ return fontStyle;
81
+ }, function (_ref20) {
82
+ var fontWeight = _ref20.fontWeight;
83
+ return fontWeight;
84
+ }, function (_ref21) {
85
+ var letterSpacing = _ref21.letterSpacing;
86
+ return letterSpacing;
87
+ }, function (_ref22) {
88
+ var lineHeight = _ref22.lineHeight;
89
+ return lineHeight;
90
+ }, function (_ref23) {
91
+ var textAlign = _ref23.textAlign;
92
+ return textAlign;
93
+ }, function (_ref24) {
94
+ var textDecoration = _ref24.textDecoration;
95
+ return textDecoration;
96
+ }, function (_ref25) {
97
+ var textOverflow = _ref25.textOverflow;
98
+ return textOverflow;
99
+ }, function (_ref26) {
100
+ var whiteSpace = _ref26.whiteSpace;
101
+ return whiteSpace;
102
+ }, function (_ref27) {
103
+ var textOverflow = _ref27.textOverflow;
104
+ return textOverflow !== "unset" ? "hidden" : "visible";
105
+ });
106
+
107
+ var _default = BaseTypography;
108
+ exports["default"] = _default;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ /**
3
+ * Traps the focus inside the children of the component. It will focus the first focusable element when the component is mounted.
4
+ * When the focus is on the last focusable element and the user tries to focus the next element, it will focus the first element.
5
+ * When the focus is on the first focusable element and the user tries to focus the previous element, it will focus the last element.
6
+ * The focus can't be moved outside the children unless the children are removed from the DOM (for example, a Dialog, a Modal, etc).
7
+ * @param children: React.ReactNode
8
+ * @returns
9
+ */
10
+ declare const FocusLock: ({ children }: {
11
+ children: React.ReactNode;
12
+ }) => JSX.Element;
13
+ export default FocusLock;
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
+
14
+ var _react = _interopRequireWildcard(require("react"));
15
+
16
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
+
18
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+
20
+ var not = {
21
+ negTabIndex: ':not([tabindex^="-"])',
22
+ disabled: ":not(:disabled)"
23
+ };
24
+ var focusableQuery = ["a[href]".concat(not.negTabIndex), "area[href]".concat(not.negTabIndex), "input:not([type=\"hidden\"])".concat(not.negTabIndex).concat(not.disabled), "select".concat(not.negTabIndex).concat(not.disabled), "textarea".concat(not.negTabIndex).concat(not.disabled), "button".concat(not.negTabIndex).concat(not.disabled), "details > summary:first-of-type".concat(not.negTabIndex), "iframe".concat(not.negTabIndex), "audio[controls]".concat(not.negTabIndex), "video[controls]".concat(not.negTabIndex), "[contenteditable]".concat(not.negTabIndex), "[tabindex]".concat(not.negTabIndex).concat(not.disabled)].join(",");
25
+
26
+ var getFocusableElements = function getFocusableElements(container) {
27
+ return Array.prototype.slice.call(container.querySelectorAll(focusableQuery)).filter(function (element) {
28
+ return element.getAttribute("aria-hidden") !== "true" && window.getComputedStyle(element).display !== "none" && window.getComputedStyle(element).visibility !== "hidden";
29
+ });
30
+ };
31
+ /**
32
+ * This function will try to focus the element and return true if it was able to receive the focus.
33
+ * Even if the element is focusable (passes any of the conditions of our selector), there is the possibility
34
+ * that the element may not be focusable at all.
35
+ * @param element: HTMLElement
36
+ * @returns
37
+ */
38
+
39
+
40
+ var attempFocus = function attempFocus(element) {
41
+ element === null || element === void 0 ? void 0 : element.focus();
42
+ return document.activeElement === element;
43
+ };
44
+ /**
45
+ * @param element: HTMLElement
46
+ * @returns boolean: true if element is contained inside a Radix Portal, false otherwise.
47
+ */
48
+
49
+
50
+ var radixPortalContains = function radixPortalContains(activeElement) {
51
+ var radixPortals = document.querySelectorAll("[data-radix-portal]");
52
+ return Array.prototype.slice.call(radixPortals).some(function (portal) {
53
+ return portal.contains(activeElement);
54
+ });
55
+ };
56
+ /**
57
+ * Custom hook that returns an array of focusable elements inside a container.
58
+ * @param ref: React.MutableRefObject<HTMLDivElement>
59
+ * @returns
60
+ */
61
+
62
+
63
+ var useFocusableElements = function useFocusableElements(ref) {
64
+ var _useState = (0, _react.useState)(),
65
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
66
+ focusableElements = _useState2[0],
67
+ setFocusableElements = _useState2[1];
68
+
69
+ (0, _react.useEffect)(function () {
70
+ if (ref.current != null) {
71
+ setFocusableElements(getFocusableElements(ref.current));
72
+ var observer = new MutationObserver(function () {
73
+ setFocusableElements(getFocusableElements(ref.current));
74
+ });
75
+ observer.observe(ref.current, {
76
+ childList: true,
77
+ subtree: true,
78
+ attributes: true
79
+ });
80
+ return function () {
81
+ observer.disconnect();
82
+ };
83
+ }
84
+ }, []);
85
+ return focusableElements;
86
+ };
87
+ /**
88
+ * Traps the focus inside the children of the component. It will focus the first focusable element when the component is mounted.
89
+ * When the focus is on the last focusable element and the user tries to focus the next element, it will focus the first element.
90
+ * When the focus is on the first focusable element and the user tries to focus the previous element, it will focus the last element.
91
+ * The focus can't be moved outside the children unless the children are removed from the DOM (for example, a Dialog, a Modal, etc).
92
+ * @param children: React.ReactNode
93
+ * @returns
94
+ */
95
+
96
+
97
+ var FocusLock = function FocusLock(_ref) {
98
+ var children = _ref.children;
99
+ var childrenContainerRef = (0, _react.useRef)();
100
+ var focusableElements = useFocusableElements(childrenContainerRef);
101
+ var focusFirst = (0, _react.useCallback)(function () {
102
+ var _childrenContainerRef;
103
+
104
+ if ((focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) === 0) (_childrenContainerRef = childrenContainerRef.current) === null || _childrenContainerRef === void 0 ? void 0 : _childrenContainerRef.focus();else if ((focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) > 0) for (var i = 0; i < focusableElements.length; i++) {
105
+ if (attempFocus(focusableElements[i])) return;
106
+ }
107
+ }, [focusableElements]);
108
+
109
+ var focusLast = function focusLast() {
110
+ for (var i = focusableElements.length - 1; i >= 0; i--) {
111
+ if (attempFocus(focusableElements[i])) return;
112
+ }
113
+ };
114
+
115
+ var focusLock = function focusLock(event) {
116
+ if (event.key === "Tab") focusableElements.length === 0 && event.preventDefault();else if (event.key === "Tab" && event.key === "Shift") focusableElements.length === 0 && event.preventDefault();
117
+ };
118
+
119
+ (0, _react.useEffect)(function () {
120
+ var _childrenContainerRef2;
121
+
122
+ if (!((_childrenContainerRef2 = childrenContainerRef.current) !== null && _childrenContainerRef2 !== void 0 && _childrenContainerRef2.contains(document.activeElement)) && !radixPortalContains(document.activeElement)) focusFirst();
123
+ }, [focusFirst]);
124
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
125
+ onFocus: focusLast,
126
+ tabIndex: 0
127
+ }), /*#__PURE__*/_react["default"].createElement("div", {
128
+ onKeyDown: focusLock,
129
+ ref: childrenContainerRef,
130
+ tabIndex: (focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) === 0 ? 0 : -1
131
+ }, children), /*#__PURE__*/_react["default"].createElement("div", {
132
+ onFocus: focusFirst,
133
+ tabIndex: 0
134
+ }));
135
+ };
136
+
137
+ var _default = FocusLock;
138
+ exports["default"] = _default;
package/wizard/Wizard.js CHANGED
@@ -1,21 +1,34 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
4
5
  var _typeof3 = require("@babel/runtime/helpers/typeof");
6
+
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
8
10
  exports["default"] = void 0;
11
+
9
12
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
13
+
10
14
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
15
+
11
16
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
+
12
18
  var _react = _interopRequireWildcard(require("react"));
19
+
13
20
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
21
+
14
22
  var _variables = require("../common/variables");
23
+
15
24
  var _useTheme = _interopRequireDefault(require("../useTheme"));
25
+
16
26
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
27
+
17
28
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
+
18
30
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
+
19
32
  var icons = {
20
33
  validIcon: /*#__PURE__*/_react["default"].createElement("svg", {
21
34
  id: "check_circle_black_18dp",
@@ -67,33 +80,40 @@ var icons = {
67
80
  fill: "#d0011b"
68
81
  }))
69
82
  };
83
+
70
84
  var DxcWizard = function DxcWizard(_ref) {
71
85
  var _ref2;
86
+
72
87
  var _ref$mode = _ref.mode,
73
- mode = _ref$mode === void 0 ? "horizontal" : _ref$mode,
74
- defaultCurrentStep = _ref.defaultCurrentStep,
75
- currentStep = _ref.currentStep,
76
- onStepClick = _ref.onStepClick,
77
- steps = _ref.steps,
78
- margin = _ref.margin,
79
- _ref$tabIndex = _ref.tabIndex,
80
- tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
88
+ mode = _ref$mode === void 0 ? "horizontal" : _ref$mode,
89
+ defaultCurrentStep = _ref.defaultCurrentStep,
90
+ currentStep = _ref.currentStep,
91
+ onStepClick = _ref.onStepClick,
92
+ steps = _ref.steps,
93
+ margin = _ref.margin,
94
+ _ref$tabIndex = _ref.tabIndex,
95
+ tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex;
96
+
81
97
  var _useState = (0, _react.useState)((_ref2 = currentStep !== null && currentStep !== void 0 ? currentStep : defaultCurrentStep) !== null && _ref2 !== void 0 ? _ref2 : 0),
82
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
83
- innerCurrent = _useState2[0],
84
- setInnerCurrentStep = _useState2[1];
98
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
99
+ innerCurrent = _useState2[0],
100
+ setInnerCurrentStep = _useState2[1];
101
+
85
102
  var renderedCurrent = currentStep == null ? innerCurrent : currentStep;
86
103
  var colorsTheme = (0, _useTheme["default"])();
104
+
87
105
  var handleStepClick = function handleStepClick(newValue) {
88
106
  if (currentStep == null) {
89
107
  setInnerCurrentStep(newValue);
90
108
  }
109
+
91
110
  if (onStepClick) {
92
111
  onStepClick(newValue);
93
112
  }
94
113
  };
114
+
95
115
  return /*#__PURE__*/_react["default"].createElement(_styledComponents.ThemeProvider, {
96
- theme: colorsTheme["wizard"]
116
+ theme: colorsTheme.wizard
97
117
  }, /*#__PURE__*/_react["default"].createElement(StepsContainer, {
98
118
  mode: mode,
99
119
  margin: margin,
@@ -134,7 +154,8 @@ var DxcWizard = function DxcWizard(_ref) {
134
154
  }));
135
155
  })));
136
156
  };
137
- var StepsContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: ", ";\n justify-content: center;\n ", ";\n font-family: ", ";\n\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"])), function (props) {
157
+
158
+ var StepsContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-direction: ", ";\n justify-content: center;\n ", ";\n font-family: ", ";\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n"])), function (props) {
138
159
  return props.mode === "vertical" ? "column" : "row";
139
160
  }, function (props) {
140
161
  return props.mode === "vertical" && "height: 500px";
@@ -151,6 +172,7 @@ var StepsContainer = _styledComponents["default"].div(_templateObject || (_templ
151
172
  }, function (props) {
152
173
  return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
153
174
  });
175
+
154
176
  var StepContainer = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: inline-flex;\n ", "\n flex-grow: ", ";\n flex-direction: ", ";\n ", "\n"])), function (props) {
155
177
  return props.mode !== "vertical" && "align-items: center;";
156
178
  }, function (props) {
@@ -160,6 +182,7 @@ var StepContainer = _styledComponents["default"].div(_templateObject2 || (_templ
160
182
  }, function (props) {
161
183
  return props.mode === "vertical" && "width: fit-content;";
162
184
  });
185
+
163
186
  var Step = _styledComponents["default"].button(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n border: none;\n border-radius: 0.25rem;\n background: inherit;\n margin: ", ";\n\n padding: 0px;\n ", ";\n\n &:hover {\n ", ";\n }\n &:focus {\n outline: 2px solid ", ";\n }\n"])), function (props) {
164
187
  return props.first ? props.mode === "vertical" ? "0 0 24px 0" : "0 24px 0 0" : props.last ? props.mode === "vertical" ? "24px 0 0 0" : "0 0 0 24px" : props.mode === "vertical" ? "24px 0" : "0 24px";
165
188
  }, function (props) {
@@ -169,9 +192,11 @@ var Step = _styledComponents["default"].button(_templateObject3 || (_templateObj
169
192
  }, function (props) {
170
193
  return props.theme.focusColor;
171
194
  });
195
+
172
196
  var StepHeader = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n display: inline-flex;\n ", "\n"])), function (props) {
173
197
  return props.validityIcon && "padding-bottom: 4px;";
174
198
  });
199
+
175
200
  var IconContainer = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n\n ", "\n ", ";\n\n border-radius: ", ";\n\n display: flex;\n justify-content: center;\n align-items: center;\n"])), function (props) {
176
201
  return props.disabled ? props.theme.disabledStepWidth : props.current ? props.theme.selectedStepWidth : props.theme.stepWidth;
177
202
  }, function (props) {
@@ -183,16 +208,19 @@ var IconContainer = _styledComponents["default"].div(_templateObject5 || (_templ
183
208
  }, function (props) {
184
209
  return !props.current && !props.disabled ? props.theme.stepBorderRadius : props.current ? props.theme.selectedStepBorderRadius : props.disabled ? props.theme.disabledStepBorderRadius : "";
185
210
  });
211
+
186
212
  var Icon = _styledComponents["default"].img(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n"])), function (props) {
187
213
  return props.theme.stepIconSize;
188
214
  }, function (props) {
189
215
  return props.theme.stepIconSize;
190
216
  });
217
+
191
218
  var StepIconContainer = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n width: ", ";\n height: ", ";\n overflow: hidden;\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"])), function (props) {
192
219
  return props.theme.stepIconSize;
193
220
  }, function (props) {
194
221
  return props.theme.stepIconSize;
195
222
  });
223
+
196
224
  var Number = _styledComponents["default"].p(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", ";\n font-family: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n opacity: 1;\n margin: 0px 0px 0px 1px;\n"])), function (props) {
197
225
  return props.theme.stepFontSize;
198
226
  }, function (props) {
@@ -204,8 +232,11 @@ var Number = _styledComponents["default"].p(_templateObject8 || (_templateObject
204
232
  }, function (props) {
205
233
  return props.theme.stepFontTracking;
206
234
  });
235
+
207
236
  var ValidityIconContainer = _styledComponents["default"].div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n width: 18px;\n height: 18px;\n position: absolute;\n top: 22.5px;\n left: 22.5px;\n"])));
237
+
208
238
  var InfoContainer = _styledComponents["default"].div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["\n margin-left: 12px;\n"])));
239
+
209
240
  var Label = _styledComponents["default"].p(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n ", ";\n text-transform: ", ";\n margin: 0;\n"])), function (props) {
210
241
  return props.theme.labelTextAlign;
211
242
  }, function (props) {
@@ -223,6 +254,7 @@ var Label = _styledComponents["default"].p(_templateObject11 || (_templateObject
223
254
  }, function (props) {
224
255
  return props.theme.labelFontTextTransform;
225
256
  });
257
+
226
258
  var Description = _styledComponents["default"].p(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n ", ";\n margin: 0;\n"])), function (props) {
227
259
  return props.theme.helperTextTextAlign;
228
260
  }, function (props) {
@@ -240,6 +272,7 @@ var Description = _styledComponents["default"].p(_templateObject12 || (_template
240
272
  }, function (props) {
241
273
  return props.disabled ? "color: ".concat(props.theme.disabledHelperTextFontColor, ";") : "color: ".concat(!props.visited ? props.theme.unvisitedHelperTextFontColor : props.current ? props.theme.selectedHelperTextFontColor : props.theme.visitedHelperTextFontColor, ";");
242
274
  });
275
+
243
276
  var StepSeparator = _styledComponents["default"].div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n ", "\n border: ", ";\n opacity: 1;\n flex-grow: 1;\n"])), function (props) {
244
277
  return props.mode === "horizontal" ? "height: 0;" : "width: 0;";
245
278
  }, function (props) {
@@ -247,5 +280,6 @@ var StepSeparator = _styledComponents["default"].div(_templateObject13 || (_temp
247
280
  }, function (props) {
248
281
  return "".concat(props.theme.separatorBorderStyle, " ").concat(props.theme.separatorBorderThickness, " ").concat(props.theme.separatorColor);
249
282
  });
283
+
250
284
  var _default = DxcWizard;
251
285
  exports["default"] = _default;