@dxc-technology/halstack-react 0.0.0-b061aa1 → 0.0.0-b08b8e8

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 (227) hide show
  1. package/README.md +46 -0
  2. package/dist/index.d.mts +3914 -0
  3. package/dist/index.d.ts +3914 -0
  4. package/dist/index.js +14224 -0
  5. package/dist/index.mjs +14136 -0
  6. package/package.json +86 -69
  7. package/BackgroundColorContext.js +0 -50
  8. package/ThemeContext.js +0 -246
  9. package/V3Select/V3Select.js +0 -455
  10. package/V3Select/index.d.ts +0 -27
  11. package/V3Textarea/V3Textarea.js +0 -260
  12. package/V3Textarea/index.d.ts +0 -27
  13. package/accordion/Accordion.d.ts +0 -4
  14. package/accordion/Accordion.js +0 -258
  15. package/accordion/types.d.ts +0 -68
  16. package/accordion/types.js +0 -5
  17. package/accordion-group/AccordionGroup.d.ts +0 -7
  18. package/accordion-group/AccordionGroup.js +0 -170
  19. package/accordion-group/AccordionGroup.stories.tsx +0 -225
  20. package/accordion-group/types.d.ts +0 -72
  21. package/accordion-group/types.js +0 -5
  22. package/alert/Alert.d.ts +0 -4
  23. package/alert/Alert.js +0 -290
  24. package/alert/Alert.stories.tsx +0 -170
  25. package/alert/types.d.ts +0 -49
  26. package/alert/types.js +0 -5
  27. package/badge/Badge.js +0 -59
  28. package/box/Box.d.ts +0 -4
  29. package/box/Box.js +0 -126
  30. package/box/Box.stories.tsx +0 -132
  31. package/box/types.d.ts +0 -43
  32. package/box/types.js +0 -5
  33. package/button/Button.d.ts +0 -4
  34. package/button/Button.js +0 -179
  35. package/button/Button.stories.tsx +0 -276
  36. package/button/types.d.ts +0 -57
  37. package/button/types.js +0 -5
  38. package/card/Card.d.ts +0 -4
  39. package/card/Card.js +0 -164
  40. package/card/Card.stories.tsx +0 -201
  41. package/card/ice-cream.jpg +0 -0
  42. package/card/types.d.ts +0 -67
  43. package/card/types.js +0 -5
  44. package/checkbox/Checkbox.d.ts +0 -4
  45. package/checkbox/Checkbox.js +0 -253
  46. package/checkbox/Checkbox.stories.tsx +0 -192
  47. package/checkbox/types.d.ts +0 -60
  48. package/checkbox/types.js +0 -5
  49. package/chip/Chip.d.ts +0 -4
  50. package/chip/Chip.js +0 -199
  51. package/chip/Chip.stories.tsx +0 -121
  52. package/chip/types.d.ts +0 -53
  53. package/chip/types.js +0 -5
  54. package/common/OpenSans.css +0 -81
  55. package/common/RequiredComponent.js +0 -32
  56. package/common/fonts/OpenSans-Bold.ttf +0 -0
  57. package/common/fonts/OpenSans-BoldItalic.ttf +0 -0
  58. package/common/fonts/OpenSans-ExtraBold.ttf +0 -0
  59. package/common/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  60. package/common/fonts/OpenSans-Italic.ttf +0 -0
  61. package/common/fonts/OpenSans-Light.ttf +0 -0
  62. package/common/fonts/OpenSans-LightItalic.ttf +0 -0
  63. package/common/fonts/OpenSans-Regular.ttf +0 -0
  64. package/common/fonts/OpenSans-SemiBold.ttf +0 -0
  65. package/common/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  66. package/common/utils.js +0 -22
  67. package/common/variables.js +0 -1578
  68. package/date/Date.js +0 -373
  69. package/date/index.d.ts +0 -27
  70. package/date-input/DateInput.d.ts +0 -4
  71. package/date-input/DateInput.js +0 -361
  72. package/date-input/DateInput.stories.tsx +0 -138
  73. package/date-input/types.d.ts +0 -100
  74. package/date-input/types.js +0 -5
  75. package/dialog/Dialog.d.ts +0 -4
  76. package/dialog/Dialog.js +0 -165
  77. package/dialog/Dialog.stories.tsx +0 -212
  78. package/dialog/types.d.ts +0 -43
  79. package/dialog/types.js +0 -5
  80. package/dropdown/Dropdown.d.ts +0 -4
  81. package/dropdown/Dropdown.js +0 -417
  82. package/dropdown/types.d.ts +0 -89
  83. package/dropdown/types.js +0 -5
  84. package/file-input/FileInput.d.ts +0 -4
  85. package/file-input/FileInput.js +0 -511
  86. package/file-input/FileItem.d.ts +0 -14
  87. package/file-input/FileItem.js +0 -184
  88. package/file-input/types.d.ts +0 -87
  89. package/file-input/types.js +0 -5
  90. package/footer/Footer.d.ts +0 -4
  91. package/footer/Footer.js +0 -266
  92. package/footer/Footer.stories.jsx +0 -151
  93. package/footer/Icons.js +0 -77
  94. package/footer/types.d.ts +0 -69
  95. package/footer/types.js +0 -5
  96. package/header/Header.d.ts +0 -7
  97. package/header/Header.js +0 -324
  98. package/header/Header.stories.tsx +0 -162
  99. package/header/Icons.js +0 -34
  100. package/header/types.d.ts +0 -47
  101. package/header/types.js +0 -5
  102. package/heading/Heading.d.ts +0 -4
  103. package/heading/Heading.js +0 -159
  104. package/heading/Heading.stories.tsx +0 -53
  105. package/heading/types.d.ts +0 -33
  106. package/heading/types.js +0 -5
  107. package/input-text/Icons.js +0 -22
  108. package/input-text/InputText.js +0 -611
  109. package/input-text/index.d.ts +0 -36
  110. package/layout/ApplicationLayout.d.ts +0 -10
  111. package/layout/ApplicationLayout.js +0 -224
  112. package/layout/Icons.js +0 -55
  113. package/layout/types.d.ts +0 -57
  114. package/layout/types.js +0 -5
  115. package/link/Link.d.ts +0 -3
  116. package/link/Link.js +0 -161
  117. package/link/Link.stories.tsx +0 -146
  118. package/link/types.d.ts +0 -74
  119. package/link/types.js +0 -5
  120. package/main.d.ts +0 -44
  121. package/main.js +0 -363
  122. package/number-input/NumberInput.d.ts +0 -4
  123. package/number-input/NumberInput.js +0 -86
  124. package/number-input/NumberInput.stories.tsx +0 -115
  125. package/number-input/NumberInputContext.d.ts +0 -4
  126. package/number-input/NumberInputContext.js +0 -19
  127. package/number-input/numberInputContextTypes.d.ts +0 -19
  128. package/number-input/numberInputContextTypes.js +0 -5
  129. package/number-input/types.d.ts +0 -117
  130. package/number-input/types.js +0 -5
  131. package/paginator/Icons.js +0 -66
  132. package/paginator/Paginator.d.ts +0 -4
  133. package/paginator/Paginator.js +0 -198
  134. package/paginator/Paginator.stories.tsx +0 -63
  135. package/paginator/types.d.ts +0 -38
  136. package/paginator/types.js +0 -5
  137. package/password-input/PasswordInput.d.ts +0 -4
  138. package/password-input/PasswordInput.js +0 -164
  139. package/password-input/PasswordInput.stories.tsx +0 -131
  140. package/password-input/types.d.ts +0 -107
  141. package/password-input/types.js +0 -5
  142. package/progress-bar/ProgressBar.d.ts +0 -4
  143. package/progress-bar/ProgressBar.js +0 -170
  144. package/progress-bar/ProgressBar.stories.jsx +0 -58
  145. package/progress-bar/types.d.ts +0 -37
  146. package/progress-bar/types.js +0 -5
  147. package/radio/Radio.d.ts +0 -4
  148. package/radio/Radio.js +0 -174
  149. package/radio/Radio.stories.tsx +0 -192
  150. package/radio/types.d.ts +0 -54
  151. package/radio/types.js +0 -5
  152. package/resultsetTable/ResultsetTable.d.ts +0 -4
  153. package/resultsetTable/ResultsetTable.js +0 -251
  154. package/resultsetTable/types.d.ts +0 -67
  155. package/resultsetTable/types.js +0 -5
  156. package/select/Select.js +0 -865
  157. package/select/Select.stories.tsx +0 -572
  158. package/select/index.d.ts +0 -131
  159. package/sidenav/Sidenav.d.ts +0 -9
  160. package/sidenav/Sidenav.js +0 -136
  161. package/sidenav/Sidenav.stories.tsx +0 -165
  162. package/sidenav/types.d.ts +0 -50
  163. package/sidenav/types.js +0 -5
  164. package/slider/Slider.d.ts +0 -4
  165. package/slider/Slider.js +0 -317
  166. package/slider/Slider.stories.tsx +0 -177
  167. package/slider/types.d.ts +0 -78
  168. package/slider/types.js +0 -5
  169. package/spinner/Spinner.d.ts +0 -4
  170. package/spinner/Spinner.js +0 -250
  171. package/spinner/Spinner.stories.jsx +0 -102
  172. package/spinner/types.d.ts +0 -32
  173. package/spinner/types.js +0 -5
  174. package/switch/Switch.d.ts +0 -4
  175. package/switch/Switch.js +0 -179
  176. package/switch/Switch.stories.tsx +0 -160
  177. package/switch/types.d.ts +0 -58
  178. package/switch/types.js +0 -5
  179. package/table/Table.d.ts +0 -4
  180. package/table/Table.js +0 -118
  181. package/table/Table.stories.jsx +0 -276
  182. package/table/types.d.ts +0 -21
  183. package/table/types.js +0 -5
  184. package/tabs/Tabs.d.ts +0 -4
  185. package/tabs/Tabs.js +0 -213
  186. package/tabs/Tabs.stories.tsx +0 -121
  187. package/tabs/types.d.ts +0 -70
  188. package/tabs/types.js +0 -5
  189. package/tag/Tag.d.ts +0 -4
  190. package/tag/Tag.js +0 -193
  191. package/tag/Tag.stories.tsx +0 -145
  192. package/tag/types.d.ts +0 -60
  193. package/tag/types.js +0 -5
  194. package/text-input/TextInput.d.ts +0 -4
  195. package/text-input/TextInput.js +0 -788
  196. package/text-input/TextInput.stories.tsx +0 -456
  197. package/text-input/types.d.ts +0 -159
  198. package/text-input/types.js +0 -5
  199. package/textarea/Textarea.js +0 -316
  200. package/textarea/Textarea.stories.jsx +0 -135
  201. package/textarea/index.d.ts +0 -127
  202. package/toggle/Toggle.js +0 -186
  203. package/toggle/index.d.ts +0 -21
  204. package/toggle-group/ToggleGroup.d.ts +0 -4
  205. package/toggle-group/ToggleGroup.js +0 -217
  206. package/toggle-group/ToggleGroup.stories.tsx +0 -178
  207. package/toggle-group/types.d.ts +0 -84
  208. package/toggle-group/types.js +0 -5
  209. package/upload/Upload.js +0 -201
  210. package/upload/buttons-upload/ButtonsUpload.js +0 -111
  211. package/upload/buttons-upload/Icons.js +0 -40
  212. package/upload/dragAndDropArea/DragAndDropArea.js +0 -225
  213. package/upload/dragAndDropArea/Icons.js +0 -39
  214. package/upload/file-upload/FileToUpload.js +0 -115
  215. package/upload/file-upload/Icons.js +0 -66
  216. package/upload/files-upload/FilesToUpload.js +0 -109
  217. package/upload/index.d.ts +0 -15
  218. package/upload/transaction/Icons.js +0 -160
  219. package/upload/transaction/Transaction.js +0 -104
  220. package/upload/transactions/Transactions.js +0 -94
  221. package/useTheme.js +0 -22
  222. package/wizard/Icons.js +0 -65
  223. package/wizard/Wizard.d.ts +0 -4
  224. package/wizard/Wizard.js +0 -231
  225. package/wizard/Wizard.stories.jsx +0 -224
  226. package/wizard/types.d.ts +0 -64
  227. package/wizard/types.js +0 -5
@@ -1,81 +0,0 @@
1
-
2
- @font-face {
3
- font-family: 'Open Sans';
4
- src: url('./fonts/OpenSans-Light.ttf')
5
- format('truetype');
6
- font-style: normal;
7
- font-weight: 200;
8
- }
9
-
10
- @font-face {
11
- font-family: 'Open Sans';
12
- src: url('./fonts/OpenSans-Regular.ttf')
13
- format('truetype');
14
- font-style: normal;
15
- font-weight: 400;
16
- }
17
-
18
- @font-face {
19
- font-family: 'Open Sans';
20
- src: url('./fonts/OpenSans-SemiBold.ttf')
21
- format('truetype');
22
- font-style: normal;
23
- font-weight: 600;
24
- }
25
-
26
- @font-face {
27
- font-family: 'Open Sans';
28
- src: url('./fonts/OpenSans-Bold.ttf')
29
- format('truetype');
30
- font-style: normal;
31
- font-weight: 700;
32
- }
33
-
34
- @font-face {
35
- font-family: 'Open Sans';
36
- src: url('./fonts/OpenSans-ExtraBold.ttf')
37
- format('truetype');
38
- font-style: normal;
39
- font-weight: 800;
40
- }
41
-
42
- @font-face {
43
- font-family: 'Open Sans';
44
- src: url('./fonts/OpenSans-LightItalic.ttf')
45
- format('truetype');
46
- font-style: italic;
47
- font-weight: 200;
48
- }
49
-
50
- @font-face {
51
- font-family: 'Open Sans';
52
- src: url('./fonts/OpenSans-Italic.ttf')
53
- format('truetype');
54
- font-style: italic;
55
- font-weight: 400;
56
- }
57
-
58
- @font-face {
59
- font-family: 'Open Sans';
60
- src: url('./fonts/OpenSans-SemiBoldItalic.ttf')
61
- format('truetype');
62
- font-style: italic;
63
- font-weight: 600;
64
- }
65
-
66
- @font-face {
67
- font-family: 'Open Sans';
68
- src: url('./fonts/OpenSans-BoldItalic.ttf')
69
- format('truetype');
70
- font-style: italic;
71
- font-weight: 700;
72
- }
73
-
74
- @font-face {
75
- font-family: 'Open Sans';
76
- src: url('./fonts/OpenSans-ExtraBoldItalic.ttf')
77
- format('truetype');
78
- font-style: italic;
79
- font-weight: 800;
80
- }
81
-
@@ -1,32 +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["default"] = void 0;
9
-
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _styledComponents = _interopRequireDefault(require("styled-components"));
15
-
16
- var _propTypes = _interopRequireDefault(require("prop-types"));
17
-
18
- var _templateObject;
19
-
20
- var DxcRequired = function DxcRequired(_ref) {
21
- var _ref$theme = _ref.theme,
22
- theme = _ref$theme === void 0 ? "light" : _ref$theme;
23
- return /*#__PURE__*/_react["default"].createElement(RequiredSpan, null, "*");
24
- };
25
-
26
- var RequiredSpan = _styledComponents["default"].span(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n color: #d0011b;\n margin-right: 1px;\n cursor: default;\n"])));
27
-
28
- DxcRequired.propTypes = {
29
- theme: _propTypes["default"].oneOf(["dark", "light"])
30
- };
31
- var _default = DxcRequired;
32
- exports["default"] = _default;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/common/utils.js DELETED
@@ -1,22 +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.getMargin = void 0;
9
-
10
- var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
11
-
12
- var _variables = require("./variables.js");
13
-
14
- var getMargin = function getMargin(marginProp, side) {
15
- if (marginProp && (0, _typeof2["default"])(marginProp) === "object") {
16
- return marginProp[side] && _variables.spaces[marginProp[side]] || "0px";
17
- } else {
18
- return marginProp && _variables.spaces[marginProp] || "0px";
19
- }
20
- };
21
-
22
- exports.getMargin = getMargin;