@dxc-technology/halstack-react 0.0.0-910214a → 0.0.0-918d2c8

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 (195) hide show
  1. package/HalstackContext.js +90 -50
  2. package/accordion/Accordion.js +117 -104
  3. package/accordion/Accordion.stories.tsx +104 -16
  4. package/accordion/Accordion.test.js +9 -10
  5. package/accordion/types.d.ts +5 -4
  6. package/accordion-group/AccordionGroup.js +2 -21
  7. package/accordion-group/AccordionGroup.stories.tsx +27 -1
  8. package/accordion-group/AccordionGroup.test.js +20 -45
  9. package/accordion-group/types.d.ts +10 -3
  10. package/alert/Alert.js +1 -1
  11. package/alert/Alert.stories.tsx +28 -0
  12. package/bleed/Bleed.stories.tsx +63 -63
  13. package/box/Box.js +1 -1
  14. package/box/Box.stories.tsx +15 -0
  15. package/box/types.d.ts +1 -0
  16. package/bulleted-list/BulletedList.d.ts +7 -0
  17. package/bulleted-list/BulletedList.js +123 -0
  18. package/bulleted-list/BulletedList.stories.tsx +200 -0
  19. package/bulleted-list/types.d.ts +11 -0
  20. package/{list → bulleted-list}/types.js +0 -0
  21. package/button/Button.js +50 -70
  22. package/button/Button.stories.tsx +159 -8
  23. package/button/types.d.ts +7 -7
  24. package/card/types.d.ts +1 -0
  25. package/checkbox/Checkbox.d.ts +2 -2
  26. package/checkbox/Checkbox.js +92 -99
  27. package/checkbox/Checkbox.stories.tsx +131 -59
  28. package/checkbox/Checkbox.test.js +93 -16
  29. package/checkbox/types.d.ts +6 -2
  30. package/chip/Chip.js +16 -22
  31. package/chip/Chip.stories.tsx +96 -9
  32. package/chip/types.d.ts +1 -1
  33. package/common/variables.js +309 -260
  34. package/date-input/Calendar.d.ts +4 -0
  35. package/date-input/Calendar.js +258 -0
  36. package/date-input/DateInput.js +134 -237
  37. package/date-input/DateInput.stories.tsx +199 -33
  38. package/date-input/DateInput.test.js +494 -138
  39. package/date-input/DatePicker.d.ts +4 -0
  40. package/date-input/DatePicker.js +146 -0
  41. package/date-input/Icons.d.ts +6 -0
  42. package/date-input/Icons.js +75 -0
  43. package/date-input/YearPicker.d.ts +4 -0
  44. package/date-input/YearPicker.js +126 -0
  45. package/date-input/types.d.ts +51 -0
  46. package/dialog/Dialog.js +50 -28
  47. package/dialog/Dialog.stories.tsx +99 -22
  48. package/dialog/Dialog.test.js +34 -4
  49. package/dialog/types.d.ts +3 -2
  50. package/dropdown/Dropdown.d.ts +1 -1
  51. package/dropdown/Dropdown.js +246 -249
  52. package/dropdown/Dropdown.stories.tsx +245 -56
  53. package/dropdown/Dropdown.test.js +504 -108
  54. package/dropdown/DropdownMenu.d.ts +4 -0
  55. package/dropdown/DropdownMenu.js +70 -0
  56. package/dropdown/DropdownMenuItem.d.ts +4 -0
  57. package/dropdown/DropdownMenuItem.js +81 -0
  58. package/dropdown/types.d.ts +25 -5
  59. package/file-input/FileInput.d.ts +2 -2
  60. package/file-input/FileInput.js +177 -219
  61. package/file-input/FileInput.stories.tsx +122 -11
  62. package/file-input/FileInput.test.js +53 -12
  63. package/file-input/FileItem.d.ts +4 -14
  64. package/file-input/FileItem.js +38 -63
  65. package/file-input/types.d.ts +17 -0
  66. package/flex/Flex.d.ts +4 -0
  67. package/flex/Flex.js +69 -0
  68. package/flex/Flex.stories.tsx +103 -0
  69. package/flex/types.d.ts +32 -0
  70. package/{row → flex}/types.js +0 -0
  71. package/footer/Footer.stories.tsx +99 -1
  72. package/footer/Icons.js +1 -1
  73. package/footer/types.d.ts +2 -1
  74. package/header/Header.js +87 -87
  75. package/header/Header.stories.tsx +152 -9
  76. package/header/Icons.js +2 -2
  77. package/header/types.d.ts +3 -2
  78. package/inset/Inset.js +1 -34
  79. package/inset/Inset.stories.tsx +36 -36
  80. package/inset/types.d.ts +1 -1
  81. package/layout/ApplicationLayout.d.ts +15 -6
  82. package/layout/ApplicationLayout.js +37 -65
  83. package/layout/ApplicationLayout.stories.tsx +80 -44
  84. package/layout/types.d.ts +17 -27
  85. package/link/Link.js +2 -2
  86. package/link/Link.stories.tsx +73 -6
  87. package/link/types.d.ts +1 -1
  88. package/main.d.ts +5 -8
  89. package/main.js +28 -52
  90. package/number-input/NumberInput.test.js +43 -7
  91. package/package.json +16 -20
  92. package/paginator/Icons.d.ts +5 -0
  93. package/paginator/Icons.js +16 -28
  94. package/paginator/Paginator.js +6 -12
  95. package/paginator/Paginator.stories.tsx +24 -0
  96. package/paginator/Paginator.test.js +50 -1
  97. package/paragraph/Paragraph.d.ts +6 -0
  98. package/paragraph/Paragraph.js +38 -0
  99. package/paragraph/Paragraph.stories.tsx +44 -0
  100. package/password-input/PasswordInput.test.js +13 -12
  101. package/progress-bar/ProgressBar.d.ts +2 -2
  102. package/progress-bar/ProgressBar.js +59 -53
  103. package/progress-bar/ProgressBar.stories.jsx +38 -3
  104. package/progress-bar/ProgressBar.test.js +67 -22
  105. package/progress-bar/types.d.ts +3 -4
  106. package/quick-nav/QuickNav.js +25 -20
  107. package/quick-nav/QuickNav.stories.tsx +145 -26
  108. package/radio-group/Radio.d.ts +1 -1
  109. package/radio-group/Radio.js +43 -28
  110. package/radio-group/RadioGroup.js +23 -22
  111. package/radio-group/RadioGroup.stories.tsx +132 -18
  112. package/radio-group/RadioGroup.test.js +123 -96
  113. package/radio-group/types.d.ts +2 -2
  114. package/resultsetTable/Icons.d.ts +7 -0
  115. package/resultsetTable/Icons.js +51 -0
  116. package/resultsetTable/ResultsetTable.js +48 -107
  117. package/resultsetTable/ResultsetTable.stories.tsx +50 -25
  118. package/resultsetTable/ResultsetTable.test.js +60 -41
  119. package/resultsetTable/types.d.ts +2 -2
  120. package/select/Listbox.d.ts +1 -1
  121. package/select/Listbox.js +33 -16
  122. package/select/Option.js +11 -24
  123. package/select/Select.js +79 -60
  124. package/select/Select.stories.tsx +513 -136
  125. package/select/Select.test.js +358 -250
  126. package/select/types.d.ts +3 -6
  127. package/sidenav/Sidenav.d.ts +6 -5
  128. package/sidenav/Sidenav.js +174 -55
  129. package/sidenav/Sidenav.stories.tsx +249 -149
  130. package/sidenav/Sidenav.test.js +25 -37
  131. package/sidenav/types.d.ts +50 -27
  132. package/slider/Slider.d.ts +2 -2
  133. package/slider/Slider.js +120 -95
  134. package/slider/Slider.stories.tsx +64 -1
  135. package/slider/Slider.test.js +121 -21
  136. package/slider/types.d.ts +6 -2
  137. package/spinner/Spinner.js +2 -2
  138. package/spinner/Spinner.stories.jsx +27 -1
  139. package/switch/Switch.d.ts +2 -2
  140. package/switch/Switch.js +135 -68
  141. package/switch/Switch.stories.tsx +41 -30
  142. package/switch/Switch.test.js +144 -17
  143. package/switch/types.d.ts +6 -2
  144. package/table/Table.js +1 -1
  145. package/table/Table.stories.jsx +80 -1
  146. package/table/Table.test.js +1 -1
  147. package/tabs/Tab.d.ts +4 -0
  148. package/tabs/Tab.js +133 -0
  149. package/tabs/Tabs.js +360 -104
  150. package/tabs/Tabs.stories.tsx +119 -5
  151. package/tabs/Tabs.test.js +217 -6
  152. package/tabs/types.d.ts +15 -5
  153. package/tabs-nav/NavTabs.js +5 -5
  154. package/tabs-nav/NavTabs.stories.tsx +8 -6
  155. package/tabs-nav/Tab.js +8 -12
  156. package/tabs-nav/types.d.ts +1 -1
  157. package/tag/Tag.js +1 -1
  158. package/tag/Tag.stories.tsx +14 -1
  159. package/tag/types.d.ts +1 -1
  160. package/text-input/Icons.d.ts +8 -0
  161. package/text-input/Icons.js +60 -0
  162. package/text-input/Suggestion.js +38 -9
  163. package/text-input/Suggestions.d.ts +4 -0
  164. package/text-input/Suggestions.js +134 -0
  165. package/text-input/TextInput.js +195 -292
  166. package/text-input/TextInput.stories.tsx +280 -185
  167. package/text-input/TextInput.test.js +737 -725
  168. package/text-input/types.d.ts +22 -3
  169. package/textarea/Textarea.stories.jsx +60 -1
  170. package/toggle-group/ToggleGroup.stories.tsx +42 -0
  171. package/toggle-group/types.d.ts +1 -1
  172. package/typography/Typography.d.ts +4 -0
  173. package/typography/Typography.js +131 -0
  174. package/typography/Typography.stories.tsx +198 -0
  175. package/typography/types.d.ts +18 -0
  176. package/{stack → typography}/types.js +0 -0
  177. package/wizard/Wizard.js +9 -16
  178. package/wizard/Wizard.stories.tsx +40 -1
  179. package/wizard/types.d.ts +5 -4
  180. package/common/RequiredComponent.js +0 -32
  181. package/list/List.d.ts +0 -4
  182. package/list/List.js +0 -47
  183. package/list/List.stories.tsx +0 -95
  184. package/list/types.d.ts +0 -7
  185. package/row/Row.d.ts +0 -3
  186. package/row/Row.js +0 -127
  187. package/row/Row.stories.tsx +0 -237
  188. package/row/types.d.ts +0 -28
  189. package/stack/Stack.d.ts +0 -3
  190. package/stack/Stack.js +0 -97
  191. package/stack/Stack.stories.tsx +0 -164
  192. package/stack/types.d.ts +0 -24
  193. package/text/Text.d.ts +0 -7
  194. package/text/Text.js +0 -30
  195. package/text/Text.stories.tsx +0 -19
package/chip/types.d.ts CHANGED
@@ -6,7 +6,7 @@ declare type Margin = {
6
6
  left?: Space;
7
7
  right?: Space;
8
8
  };
9
- declare type SVG = React.SVGProps<SVGSVGElement>;
9
+ declare type SVG = React.ReactNode & React.SVGProps<SVGSVGElement>;
10
10
  declare type Props = {
11
11
  /**
12
12
  * Text to be placed on the chip.