@dxc-technology/halstack-react 0.0.0-933ff75 → 0.0.0-9410524

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 (162) hide show
  1. package/README.md +27 -47
  2. package/dist/index.d.mts +6589 -0
  3. package/dist/index.d.ts +6589 -0
  4. package/dist/index.js +13762 -0
  5. package/dist/index.mjs +13704 -0
  6. package/package.json +76 -68
  7. package/babel.config.js +0 -8
  8. package/dist/BackgroundColorContext.js +0 -46
  9. package/dist/ThemeContext.js +0 -248
  10. package/dist/V3Textarea/V3Textarea.js +0 -264
  11. package/dist/accordion/Accordion.js +0 -353
  12. package/dist/accordion-group/AccordionGroup.js +0 -186
  13. package/dist/alert/Alert.js +0 -403
  14. package/dist/alert/index.d.ts +0 -51
  15. package/dist/badge/Badge.js +0 -63
  16. package/dist/box/Box.js +0 -156
  17. package/dist/button/Button.js +0 -238
  18. package/dist/card/Card.js +0 -254
  19. package/dist/checkbox/Checkbox.js +0 -300
  20. package/dist/checkbox/Checkbox.stories.js +0 -144
  21. package/dist/checkbox/readme.md +0 -116
  22. package/dist/chip/Chip.js +0 -265
  23. package/dist/common/OpenSans.css +0 -81
  24. package/dist/common/RequiredComponent.js +0 -40
  25. package/dist/common/fonts/OpenSans-Bold.ttf +0 -0
  26. package/dist/common/fonts/OpenSans-BoldItalic.ttf +0 -0
  27. package/dist/common/fonts/OpenSans-ExtraBold.ttf +0 -0
  28. package/dist/common/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  29. package/dist/common/fonts/OpenSans-Italic.ttf +0 -0
  30. package/dist/common/fonts/OpenSans-Light.ttf +0 -0
  31. package/dist/common/fonts/OpenSans-LightItalic.ttf +0 -0
  32. package/dist/common/fonts/OpenSans-Regular.ttf +0 -0
  33. package/dist/common/fonts/OpenSans-SemiBold.ttf +0 -0
  34. package/dist/common/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  35. package/dist/common/utils.js +0 -22
  36. package/dist/common/variables.js +0 -1569
  37. package/dist/date/Date.js +0 -379
  38. package/dist/date/Date.stories.js +0 -205
  39. package/dist/date/readme.md +0 -73
  40. package/dist/date-input/DateInput.js +0 -400
  41. package/dist/date-input/index.d.ts +0 -95
  42. package/dist/dialog/Dialog.js +0 -218
  43. package/dist/dropdown/Dropdown.js +0 -544
  44. package/dist/file-input/FileInput.js +0 -644
  45. package/dist/file-input/FileItem.js +0 -280
  46. package/dist/file-input/index.d.ts +0 -81
  47. package/dist/footer/Footer.js +0 -421
  48. package/dist/footer/Icons.js +0 -77
  49. package/dist/header/Header.js +0 -434
  50. package/dist/header/Icons.js +0 -59
  51. package/dist/heading/Heading.js +0 -218
  52. package/dist/input-text/Icons.js +0 -22
  53. package/dist/input-text/InputText.js +0 -705
  54. package/dist/layout/ApplicationLayout.js +0 -327
  55. package/dist/layout/Icons.js +0 -55
  56. package/dist/link/Link.js +0 -237
  57. package/dist/link/readme.md +0 -51
  58. package/dist/main.d.ts +0 -8
  59. package/dist/main.js +0 -367
  60. package/dist/new-select/NewSelect.js +0 -836
  61. package/dist/new-select/index.d.ts +0 -53
  62. package/dist/number-input/NumberInput.js +0 -136
  63. package/dist/number-input/NumberInputContext.js +0 -16
  64. package/dist/number-input/index.d.ts +0 -113
  65. package/dist/paginator/Icons.js +0 -66
  66. package/dist/paginator/Paginator.js +0 -283
  67. package/dist/password-input/PasswordInput.js +0 -198
  68. package/dist/password-input/index.d.ts +0 -94
  69. package/dist/progress-bar/ProgressBar.js +0 -242
  70. package/dist/progress-bar/ProgressBar.stories.js +0 -280
  71. package/dist/progress-bar/readme.md +0 -63
  72. package/dist/radio/Radio.js +0 -209
  73. package/dist/radio/Radio.stories.js +0 -166
  74. package/dist/radio/readme.md +0 -70
  75. package/dist/resultsetTable/ResultsetTable.js +0 -358
  76. package/dist/select/Select.js +0 -549
  77. package/dist/sidenav/Sidenav.js +0 -179
  78. package/dist/slider/Slider.js +0 -404
  79. package/dist/slider/readme.md +0 -64
  80. package/dist/spinner/Spinner.js +0 -381
  81. package/dist/spinner/Spinner.stories.js +0 -183
  82. package/dist/spinner/readme.md +0 -65
  83. package/dist/switch/Switch.js +0 -222
  84. package/dist/switch/Switch.stories.js +0 -134
  85. package/dist/switch/readme.md +0 -133
  86. package/dist/table/Table.js +0 -132
  87. package/dist/tabs/Tabs.js +0 -343
  88. package/dist/tabs/Tabs.stories.js +0 -130
  89. package/dist/tabs/readme.md +0 -78
  90. package/dist/tabs-for-sections/TabsForSections.js +0 -92
  91. package/dist/tabs-for-sections/readme.md +0 -78
  92. package/dist/tag/Tag.js +0 -282
  93. package/dist/text-input/TextInput.js +0 -971
  94. package/dist/text-input/index.d.ts +0 -135
  95. package/dist/textarea/Textarea.js +0 -369
  96. package/dist/textarea/index.d.ts +0 -117
  97. package/dist/toggle/Toggle.js +0 -220
  98. package/dist/toggle/Toggle.stories.js +0 -297
  99. package/dist/toggle/readme.md +0 -80
  100. package/dist/toggle-group/ToggleGroup.js +0 -327
  101. package/dist/upload/Upload.js +0 -205
  102. package/dist/upload/Upload.stories.js +0 -72
  103. package/dist/upload/buttons-upload/ButtonsUpload.js +0 -139
  104. package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
  105. package/dist/upload/buttons-upload/upload-button.svg +0 -1
  106. package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -329
  107. package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
  108. package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
  109. package/dist/upload/file-upload/FileToUpload.js +0 -184
  110. package/dist/upload/file-upload/audio-icon.svg +0 -4
  111. package/dist/upload/file-upload/close.svg +0 -4
  112. package/dist/upload/file-upload/file-icon.svg +0 -4
  113. package/dist/upload/file-upload/video-icon.svg +0 -4
  114. package/dist/upload/files-upload/FilesToUpload.js +0 -123
  115. package/dist/upload/readme.md +0 -37
  116. package/dist/upload/transaction/Icons.js +0 -160
  117. package/dist/upload/transaction/Transaction.js +0 -148
  118. package/dist/upload/transactions/Transactions.js +0 -138
  119. package/dist/useTheme.js +0 -22
  120. package/dist/wizard/Icons.js +0 -65
  121. package/dist/wizard/Wizard.js +0 -405
  122. package/test/Accordion.test.js +0 -33
  123. package/test/AccordionGroup.test.js +0 -125
  124. package/test/Alert.test.js +0 -53
  125. package/test/Box.test.js +0 -10
  126. package/test/Button.test.js +0 -18
  127. package/test/Card.test.js +0 -30
  128. package/test/Checkbox.test.js +0 -45
  129. package/test/Chip.test.js +0 -25
  130. package/test/Date.test.js +0 -397
  131. package/test/DateInput.test.js +0 -242
  132. package/test/Dialog.test.js +0 -23
  133. package/test/Dropdown.test.js +0 -145
  134. package/test/FileInput.test.js +0 -201
  135. package/test/Footer.test.js +0 -94
  136. package/test/Header.test.js +0 -34
  137. package/test/Heading.test.js +0 -35
  138. package/test/InputText.test.js +0 -248
  139. package/test/Link.test.js +0 -43
  140. package/test/NumberInput.test.js +0 -259
  141. package/test/Paginator.test.js +0 -177
  142. package/test/PasswordInput.test.js +0 -83
  143. package/test/ProgressBar.test.js +0 -35
  144. package/test/Radio.test.js +0 -37
  145. package/test/ResultsetTable.test.js +0 -329
  146. package/test/Select.test.js +0 -212
  147. package/test/Sidenav.test.js +0 -45
  148. package/test/Slider.test.js +0 -74
  149. package/test/Spinner.test.js +0 -32
  150. package/test/Switch.test.js +0 -45
  151. package/test/Table.test.js +0 -36
  152. package/test/Tabs.test.js +0 -109
  153. package/test/TabsForSections.test.js +0 -34
  154. package/test/Tag.test.js +0 -32
  155. package/test/TextInput.test.js +0 -732
  156. package/test/Textarea.test.js +0 -193
  157. package/test/ToggleGroup.test.js +0 -85
  158. package/test/Upload.test.js +0 -60
  159. package/test/V3TextArea.test.js +0 -51
  160. package/test/Wizard.test.js +0 -130
  161. package/test/mocks/pngMock.js +0 -1
  162. package/test/mocks/svgMock.js +0 -1
package/README.md CHANGED
@@ -1,66 +1,46 @@
1
- # Halstack React CDK
1
+ <p align="center">
2
+ <a href="https://developer.dxc.com/halstack/">
3
+ <img src="apps/website/screens/common/images/halstack_logo.svg" alt="Halstack Design System logo" />
4
+ </a>
5
+ </p>
2
6
 
3
- Halstack React CDK is a npm library of reusable React components, made with the purpose of helping React developers with the task of implementing User Interfaces following the DXC Design Guidelines.
7
+ <h1 align="center">Halstack Design System</h1>
4
8
 
5
- - It increases visual and behavioral consistency across the applications using the library.
9
+ Halstack is an Open Source Design System built and maintained by DXC Technology with the purpose of providing all the necessary tools for designing and implementing accessible, intuitive and consistent User Experiences with React.
6
10
 
7
- - It cuts down development efforts, taking the responsability of following the Design Guidelines away from the developer, and allowing him to focus on providing business value.
11
+ ## How to start
8
12
 
9
- ## Usage
10
-
11
- Halstack React CDK is a set of reusable components distributed as a npm library. See the [documentation site](https://developer.dxc.com/tools/react/) for details on how to use it.
12
-
13
- ## Contributing
14
-
15
- Before opening new issues or pull requests, please refer to [CONTRIBUTING.MD](https://github.com/dxc-technology/halstack-react/blob/master/CONTRIBUTING.md).
16
-
17
- ## Development Setup
18
-
19
- These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
20
-
21
-
22
- The project is divided in two main folders. One is for the actual library, and the other one is a React application using the library.
23
-
24
- ### Library
25
-
26
- Contained in the `lib` folder.
13
+ You can start using Halstack right now:
27
14
 
28
15
  ```bash
29
- cd lib
16
+ npm i @dxc-technology/halstack-react
30
17
  ```
31
18
 
32
- Install the library dependencies.
33
-
34
- ```bash
35
- npm install
36
- ```
19
+ ### Usage
37
20
 
38
- Run the build process into `dist` folder, detecting and automatically building changes in src.
21
+ ```jsx
22
+ import { DxcButton, DxcTextInput } from "@dxc-technology/halstack-react";
39
23
 
40
- ```bash
41
- npm run build:watch #'npm run build' if there is no need to watch for changes
24
+ const App = () => (
25
+ <>
26
+ <DxcTextInput label="Enter your name" />
27
+ <DxcButton label="Submit" type="submit" />
28
+ </>
29
+ );
42
30
  ```
43
31
 
44
- ### Example Application
32
+ ## Where to start
45
33
 
46
- Contained in the `app` folder.
47
-
48
- ```bash
49
- cd app # from the root folder
50
- ```
34
+ Learn everything you need to know about Halstack principles and components on the [official documentation site](https://developer.dxc.com/halstack/).
51
35
 
52
- Install the application dependencies. The Halstack React CDK dependency is linked to the local `lib` folder. This one must have been previously built.
36
+ ## Contributing
53
37
 
54
- ```bash
55
- npm install
56
- ```
38
+ Any feedback is always welcome in Halstack!
57
39
 
58
- Start the application.
40
+ Before opening a new issue, pull request or discussion, please read carefully and respect our [contribution guidelines](https://github.com/dxc-technology/halstack-react/wiki/Contributing).
59
41
 
60
- ```bash
61
- npm start # runs create-react-app dev server
62
- ```
42
+ ## Thanks
63
43
 
64
- Now, anytime you make a change to the library or the app, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.
44
+ <a href="https://www.chromatic.com/"><img src="https://user-images.githubusercontent.com/321738/84662277-e3db4f80-af1b-11ea-88f5-91d67a5e59f6.png" width="153" height="30" alt="Chromatic" /></a>
65
45
 
66
- ## Running the tests
46
+ Thanks to [Chromatic](https://www.chromatic.com/) for providing the visual testing platform that helps us review UI changes and catch visual regressions.