@dxc-technology/halstack-react 0.0.0-d238e47 → 0.0.0-d30020b

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 (161) hide show
  1. package/BackgroundColorContext.d.ts +10 -0
  2. package/BackgroundColorContext.js +1 -4
  3. package/ThemeContext.d.ts +15 -0
  4. package/ThemeContext.js +5 -8
  5. package/V3Select/V3Select.js +2 -2
  6. package/V3Textarea/V3Textarea.js +2 -2
  7. package/accordion/Accordion.d.ts +1 -1
  8. package/accordion/Accordion.js +11 -22
  9. package/accordion/Accordion.stories.tsx +307 -0
  10. package/accordion/types.d.ts +4 -8
  11. package/accordion-group/AccordionGroup.js +2 -2
  12. package/accordion-group/AccordionGroup.stories.tsx +225 -0
  13. package/accordion-group/types.d.ts +4 -8
  14. package/alert/Alert.js +2 -2
  15. package/badge/Badge.js +1 -1
  16. package/bleed/Bleed.d.ts +3 -0
  17. package/bleed/Bleed.js +84 -0
  18. package/bleed/Bleed.stories.tsx +342 -0
  19. package/bleed/types.d.ts +13 -0
  20. package/bleed/types.js +5 -0
  21. package/box/Box.js +2 -2
  22. package/button/Button.d.ts +1 -1
  23. package/button/Button.js +9 -17
  24. package/button/Button.stories.tsx +6 -8
  25. package/button/types.d.ts +3 -7
  26. package/card/Card.js +1 -1
  27. package/card/Card.stories.tsx +1 -1
  28. package/checkbox/Checkbox.js +2 -2
  29. package/checkbox/types.d.ts +1 -1
  30. package/chip/Chip.d.ts +4 -0
  31. package/chip/Chip.js +16 -76
  32. package/chip/Chip.stories.tsx +6 -8
  33. package/chip/types.d.ts +45 -0
  34. package/chip/types.js +5 -0
  35. package/common/variables.js +57 -23
  36. package/date/Date.js +1 -1
  37. package/date-input/DateInput.js +10 -13
  38. package/dialog/Dialog.js +4 -3
  39. package/dropdown/Dropdown.d.ts +1 -1
  40. package/dropdown/Dropdown.js +13 -35
  41. package/dropdown/Dropdown.stories.tsx +249 -0
  42. package/dropdown/types.d.ts +6 -15
  43. package/file-input/FileInput.d.ts +1 -1
  44. package/file-input/FileInput.js +160 -81
  45. package/file-input/FileInput.stories.tsx +507 -0
  46. package/file-input/FileItem.js +8 -6
  47. package/file-input/types.d.ts +32 -7
  48. package/footer/Footer.d.ts +1 -1
  49. package/footer/Footer.js +28 -36
  50. package/footer/{Footer.stories.jsx → Footer.stories.tsx} +1 -22
  51. package/footer/Icons.d.ts +2 -0
  52. package/footer/Icons.js +3 -3
  53. package/footer/types.d.ts +21 -17
  54. package/header/Header.js +2 -2
  55. package/header/Icons.d.ts +2 -0
  56. package/heading/Heading.js +1 -1
  57. package/heading/Heading.stories.tsx +3 -2
  58. package/input-text/InputText.js +2 -2
  59. package/inset/Inset.d.ts +3 -0
  60. package/inset/Inset.js +84 -0
  61. package/inset/Inset.stories.tsx +229 -0
  62. package/inset/types.d.ts +13 -0
  63. package/inset/types.js +5 -0
  64. package/layout/ApplicationLayout.d.ts +10 -0
  65. package/layout/ApplicationLayout.js +17 -21
  66. package/layout/ApplicationLayout.stories.tsx +171 -0
  67. package/layout/types.d.ts +57 -0
  68. package/layout/types.js +5 -0
  69. package/link/Link.js +8 -16
  70. package/link/Link.stories.tsx +6 -1
  71. package/link/types.d.ts +5 -9
  72. package/list/List.d.ts +4 -0
  73. package/list/List.js +47 -0
  74. package/list/List.stories.tsx +95 -0
  75. package/list/types.d.ts +7 -0
  76. package/list/types.js +5 -0
  77. package/main.d.ts +8 -3
  78. package/main.js +42 -2
  79. package/number-input/NumberInput.js +3 -6
  80. package/package.json +4 -2
  81. package/paginator/Paginator.js +2 -8
  82. package/password-input/PasswordInput.js +19 -18
  83. package/password-input/PasswordInput.stories.tsx +3 -3
  84. package/password-input/types.d.ts +13 -11
  85. package/progress-bar/ProgressBar.js +4 -4
  86. package/radio/Radio.js +2 -2
  87. package/radio-group/Radio.d.ts +4 -0
  88. package/radio-group/Radio.js +140 -0
  89. package/radio-group/RadioGroup.d.ts +4 -0
  90. package/radio-group/RadioGroup.js +273 -0
  91. package/radio-group/RadioGroup.stories.tsx +79 -0
  92. package/radio-group/RadioGroup.test.js +248 -0
  93. package/radio-group/types.d.ts +36 -0
  94. package/radio-group/types.js +5 -0
  95. package/resultsetTable/ResultsetTable.d.ts +1 -1
  96. package/resultsetTable/ResultsetTable.js +9 -4
  97. package/resultsetTable/ResultsetTable.stories.tsx +275 -0
  98. package/resultsetTable/types.d.ts +6 -2
  99. package/row/Row.d.ts +3 -0
  100. package/row/Row.js +127 -0
  101. package/row/Row.stories.tsx +237 -0
  102. package/row/types.d.ts +10 -0
  103. package/row/types.js +5 -0
  104. package/select/Select.d.ts +4 -0
  105. package/select/Select.js +20 -22
  106. package/select/types.d.ts +170 -0
  107. package/select/types.js +5 -0
  108. package/sidenav/Sidenav.js +2 -2
  109. package/sidenav/Sidenav.stories.tsx +18 -1
  110. package/slider/Slider.js +2 -2
  111. package/spinner/Spinner.js +2 -2
  112. package/spinner/Spinner.stories.jsx +1 -0
  113. package/stack/Stack.d.ts +3 -0
  114. package/stack/Stack.js +97 -0
  115. package/stack/Stack.stories.tsx +164 -0
  116. package/stack/types.d.ts +9 -0
  117. package/stack/types.js +5 -0
  118. package/switch/Switch.js +2 -2
  119. package/switch/Switch.stories.tsx +1 -1
  120. package/table/Table.js +2 -2
  121. package/table/Table.stories.jsx +2 -1
  122. package/tabs/Tabs.js +8 -8
  123. package/tabs/Tabs.stories.tsx +120 -0
  124. package/tabs/types.d.ts +23 -15
  125. package/tag/Tag.d.ts +1 -1
  126. package/tag/Tag.js +7 -12
  127. package/tag/Tag.stories.tsx +15 -22
  128. package/tag/types.d.ts +23 -14
  129. package/text/Text.d.ts +7 -0
  130. package/text/Text.js +30 -0
  131. package/text/Text.stories.tsx +19 -0
  132. package/text-input/TextInput.js +50 -41
  133. package/text-input/TextInput.stories.tsx +456 -0
  134. package/text-input/types.d.ts +14 -12
  135. package/textarea/Textarea.d.ts +4 -0
  136. package/textarea/Textarea.js +27 -60
  137. package/textarea/Textarea.stories.jsx +4 -3
  138. package/textarea/types.d.ts +130 -0
  139. package/textarea/types.js +5 -0
  140. package/toggle/Toggle.js +1 -1
  141. package/toggle-group/ToggleGroup.d.ts +4 -0
  142. package/toggle-group/ToggleGroup.js +16 -45
  143. package/toggle-group/ToggleGroup.stories.tsx +23 -28
  144. package/toggle-group/types.d.ts +97 -0
  145. package/toggle-group/types.js +5 -0
  146. package/upload/buttons-upload/ButtonsUpload.js +2 -2
  147. package/upload/dragAndDropArea/DragAndDropArea.js +2 -2
  148. package/upload/file-upload/FileToUpload.js +1 -1
  149. package/upload/files-upload/FilesToUpload.js +1 -1
  150. package/upload/transaction/Transaction.js +2 -2
  151. package/upload/transactions/Transactions.js +1 -1
  152. package/useTheme.d.ts +2 -0
  153. package/useTheme.js +1 -1
  154. package/wizard/Wizard.js +59 -9
  155. package/wizard/{Wizard.stories.jsx → Wizard.stories.tsx} +0 -0
  156. package/wizard/types.d.ts +3 -7
  157. package/chip/index.d.ts +0 -22
  158. package/select/index.d.ts +0 -131
  159. package/textarea/index.d.ts +0 -117
  160. package/toggle-group/index.d.ts +0 -21
  161. package/wizard/Icons.js +0 -65
package/wizard/Icons.js DELETED
@@ -1,65 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.validIcon = exports.invalidIcon = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var invalidIcon = /*#__PURE__*/_react["default"].createElement("svg", {
13
- id: "highlight_off_black_18dp",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- width: "18",
16
- height: "18",
17
- viewBox: "0 0 18 18"
18
- }, /*#__PURE__*/_react["default"].createElement("path", {
19
- id: "Path_2943",
20
- "data-name": "Path 2943",
21
- d: "M0,0H18V18H0Z",
22
- fill: "none"
23
- }), /*#__PURE__*/_react["default"].createElement("path", {
24
- id: "Path_2944",
25
- "data-name": "Path 2944",
26
- d: "M10,4a6,6,0,1,0,6,6A6.01,6.01,0,0,0,10,4Zm3,7.945L11.945,13,10,11.06,8.059,13,7,11.945,8.944,10,7,8.059,8.059,7,10,8.944,11.945,7,13,8.059,11.06,10Z",
27
- transform: "translate(-1.002 -1.002)",
28
- fill: "#ffe6e9"
29
- }), /*#__PURE__*/_react["default"].createElement("path", {
30
- id: "Path_2945",
31
- "data-name": "Path 2945",
32
- d: "M11.444,6.5,9.5,8.443,7.558,6.5,6.5,7.558,8.443,9.5,6.5,11.444,7.558,12.5,9.5,10.558,11.444,12.5,12.5,11.444,10.558,9.5,12.5,7.558ZM9.5,2A7.5,7.5,0,1,0,17,9.5,7.494,7.494,0,0,0,9.5,2Zm0,13.5a6,6,0,1,1,6-6A6.009,6.009,0,0,1,9.5,15.5Z",
33
- transform: "translate(-0.501 -0.501)",
34
- fill: "#d0011b"
35
- }));
36
-
37
- exports.invalidIcon = invalidIcon;
38
-
39
- var validIcon = /*#__PURE__*/_react["default"].createElement("svg", {
40
- id: "check_circle_black_18dp",
41
- xmlns: "http://www.w3.org/2000/svg",
42
- width: "18",
43
- height: "18",
44
- viewBox: "0 0 18 18"
45
- }, /*#__PURE__*/_react["default"].createElement("path", {
46
- id: "Path_2946",
47
- "data-name": "Path 2946",
48
- d: "M0,0H18V18H0Z",
49
- fill: "none"
50
- }), /*#__PURE__*/_react["default"].createElement("path", {
51
- id: "Path_2947",
52
- "data-name": "Path 2947",
53
- d: "M9.986,4a5.986,5.986,0,1,0,5.986,5.986A5.994,5.994,0,0,0,9.986,4Zm-1.5,9.727L5.5,10.734,6.551,9.679l1.938,1.93L13.42,6.679l1.055,1.063Z",
54
- transform: "translate(-0.986 -0.986)",
55
- fill: "#eafaef",
56
- opacity: "0.999"
57
- }), /*#__PURE__*/_react["default"].createElement("path", {
58
- id: "Path_2948",
59
- "data-name": "Path 2948",
60
- d: "M9.493,2a7.493,7.493,0,1,0,7.493,7.493A7.5,7.5,0,0,0,9.493,2Zm0,13.487a5.994,5.994,0,1,1,5.994-5.994A6,6,0,0,1,9.493,15.487Zm3.439-9.306L7.994,11.119,6.054,9.186,5,10.242l3,3,5.994-5.994Z",
61
- transform: "translate(-0.493 -0.493)",
62
- fill: "#24a148"
63
- }));
64
-
65
- exports.validIcon = validIcon;