@awell-health/ui-library 0.1.33

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 (131) hide show
  1. package/README.md +77 -0
  2. package/dist/index.css +8917 -0
  3. package/dist/index.js +50543 -0
  4. package/dist/types/atoms/button/Button.d.ts +8 -0
  5. package/dist/types/atoms/button/index.d.ts +2 -0
  6. package/dist/types/atoms/checkboxButton/CheckboxButton.d.ts +8 -0
  7. package/dist/types/atoms/checkboxButton/index.d.ts +2 -0
  8. package/dist/types/atoms/datePicker/DatePicker.d.ts +10 -0
  9. package/dist/types/atoms/datePicker/index.d.ts +1 -0
  10. package/dist/types/atoms/description/Description.d.ts +6 -0
  11. package/dist/types/atoms/description/index.d.ts +2 -0
  12. package/dist/types/atoms/index.d.ts +21 -0
  13. package/dist/types/atoms/inputField/InputField.d.ts +10 -0
  14. package/dist/types/atoms/inputField/index.d.ts +2 -0
  15. package/dist/types/atoms/logo/Logo.d.ts +6 -0
  16. package/dist/types/atoms/logo/index.d.ts +2 -0
  17. package/dist/types/atoms/longTextField/LongTextField.d.ts +9 -0
  18. package/dist/types/atoms/longTextField/index.d.ts +2 -0
  19. package/dist/types/atoms/messageAttachment/MessageAttachment.d.ts +8 -0
  20. package/dist/types/atoms/messageAttachment/index.d.ts +2 -0
  21. package/dist/types/atoms/modal/Modal.d.ts +11 -0
  22. package/dist/types/atoms/modal/index.d.ts +1 -0
  23. package/dist/types/atoms/phoneInputField/PhoneInputField.d.ts +22 -0
  24. package/dist/types/atoms/phoneInputField/helpers.d.ts +3 -0
  25. package/dist/types/atoms/phoneInputField/index.d.ts +3 -0
  26. package/dist/types/atoms/progressIndicator/ProgressIndicator.d.ts +6 -0
  27. package/dist/types/atoms/progressIndicator/index.d.ts +1 -0
  28. package/dist/types/atoms/questionLabel/QuestionLabel.d.ts +6 -0
  29. package/dist/types/atoms/questionLabel/index.d.ts +2 -0
  30. package/dist/types/atoms/radioButton/RadioButton.d.ts +9 -0
  31. package/dist/types/atoms/radioButton/index.d.ts +2 -0
  32. package/dist/types/atoms/rangeInput/RangeInput.d.ts +18 -0
  33. package/dist/types/atoms/rangeInput/index.d.ts +2 -0
  34. package/dist/types/atoms/richTextViewer/RichTextViewer.d.ts +6 -0
  35. package/dist/types/atoms/richTextViewer/index.d.ts +1 -0
  36. package/dist/types/atoms/richTextViewer/serializeHtml.d.ts +3 -0
  37. package/dist/types/atoms/scheduling/cal.com/CalDotComScheduling.d.ts +11 -0
  38. package/dist/types/atoms/scheduling/cal.com/calDotComTypes.d.ts +8 -0
  39. package/dist/types/atoms/scheduling/cal.com/index.d.ts +2 -0
  40. package/dist/types/atoms/scheduling/index.d.ts +1 -0
  41. package/dist/types/atoms/scrollIndicator/ScrollIndicator.d.ts +2 -0
  42. package/dist/types/atoms/scrollIndicator/index.d.ts +1 -0
  43. package/dist/types/atoms/select/Select.d.ts +22 -0
  44. package/dist/types/atoms/select/index.d.ts +3 -0
  45. package/dist/types/atoms/select/types.d.ts +1 -0
  46. package/dist/types/atoms/spinner/Spinner.d.ts +7 -0
  47. package/dist/types/atoms/spinner/index.d.ts +1 -0
  48. package/dist/types/atoms/themeProvider/ThemeProvider.d.ts +6 -0
  49. package/dist/types/atoms/themeProvider/helpers.d.ts +3 -0
  50. package/dist/types/atoms/themeProvider/index.d.ts +2 -0
  51. package/dist/types/atoms/typingCaret/TypingCaret.d.ts +8 -0
  52. package/dist/types/atoms/typingCaret/index.d.ts +1 -0
  53. package/dist/types/atoms/typography/Typography.d.ts +22 -0
  54. package/dist/types/atoms/typography/index.d.ts +3 -0
  55. package/dist/types/atoms/typography/types.d.ts +3 -0
  56. package/dist/types/constants/descriptionFixture.d.ts +56 -0
  57. package/dist/types/constants/formFixture.d.ts +3 -0
  58. package/dist/types/constants/messageFixture.d.ts +56 -0
  59. package/dist/types/hooks/index.d.ts +5 -0
  60. package/dist/types/hooks/useAccentColor/index.d.ts +1 -0
  61. package/dist/types/hooks/useAccentColor/useAccentColor.d.ts +5 -0
  62. package/dist/types/hooks/useClickOutsideNotifier/index.d.ts +7 -0
  63. package/dist/types/hooks/useForm/helpers.d.ts +20 -0
  64. package/dist/types/hooks/useForm/index.d.ts +2 -0
  65. package/dist/types/hooks/useForm/types.d.ts +55 -0
  66. package/dist/types/hooks/useForm/useConversationalForm.d.ts +3 -0
  67. package/dist/types/hooks/useForm/useTraditionalForm.d.ts +3 -0
  68. package/dist/types/hooks/useHtmlScript.d.ts +5 -0
  69. package/dist/types/hooks/useScrollHint/index.d.ts +1 -0
  70. package/dist/types/hooks/useScrollHint/useScrollHint.d.ts +6 -0
  71. package/dist/types/hooks/useValidate/index.d.ts +2 -0
  72. package/dist/types/hooks/useValidate/types.d.ts +24 -0
  73. package/dist/types/hooks/useValidate/useValidate.d.ts +9 -0
  74. package/dist/types/hostedPages/activities/checklist/Checklist.d.ts +14 -0
  75. package/dist/types/hostedPages/activities/checklist/index.d.ts +2 -0
  76. package/dist/types/hostedPages/activities/cloudinary/CloudinarySingleFileUpload.d.ts +3 -0
  77. package/dist/types/hostedPages/activities/cloudinary/CloudinaryUpload.d.ts +3 -0
  78. package/dist/types/hostedPages/activities/cloudinary/components/CloudinaryUploadWidget.d.ts +10 -0
  79. package/dist/types/hostedPages/activities/cloudinary/components/index.d.ts +1 -0
  80. package/dist/types/hostedPages/activities/cloudinary/index.d.ts +2 -0
  81. package/dist/types/hostedPages/activities/cloudinary/types.d.ts +86 -0
  82. package/dist/types/hostedPages/activities/cloudinary/utils.d.ts +5 -0
  83. package/dist/types/hostedPages/activities/form/ConversationalForm.d.ts +3 -0
  84. package/dist/types/hostedPages/activities/form/TraditionalForm.d.ts +3 -0
  85. package/dist/types/hostedPages/activities/form/__testdata__/eq5d5lFixture.d.ts +51 -0
  86. package/dist/types/hostedPages/activities/form/__testdata__/testFormFixture.d.ts +5 -0
  87. package/dist/types/hostedPages/activities/form/index.d.ts +2 -0
  88. package/dist/types/hostedPages/activities/form/types.d.ts +20 -0
  89. package/dist/types/hostedPages/activities/message/Message.d.ts +3 -0
  90. package/dist/types/hostedPages/activities/message/index.d.ts +1 -0
  91. package/dist/types/hostedPages/activities/message/types.d.ts +16 -0
  92. package/dist/types/hostedPages/activities/scheduling/cal.com/CalDotcomActivity.d.ts +3 -0
  93. package/dist/types/hostedPages/activities/scheduling/cal.com/index.d.ts +1 -0
  94. package/dist/types/hostedPages/activities/scheduling/cal.com/types.d.ts +6 -0
  95. package/dist/types/hostedPages/activities/scheduling/index.d.ts +1 -0
  96. package/dist/types/hostedPages/activities/wizardForm/WizardForm.d.ts +2 -0
  97. package/dist/types/hostedPages/activities/wizardForm/__testdata__/testFormFixture.d.ts +6 -0
  98. package/dist/types/hostedPages/activities/wizardForm/index.d.ts +1 -0
  99. package/dist/types/hostedPages/index.d.ts +9 -0
  100. package/dist/types/hostedPages/layouts/HostedPageLayout/CloseButton/CloseButton.d.ts +6 -0
  101. package/dist/types/hostedPages/layouts/HostedPageLayout/CloseButton/index.d.ts +1 -0
  102. package/dist/types/hostedPages/layouts/HostedPageLayout/HostedPageFooter/HostedPageFooter.d.ts +6 -0
  103. package/dist/types/hostedPages/layouts/HostedPageLayout/HostedPageFooter/index.d.ts +1 -0
  104. package/dist/types/hostedPages/layouts/HostedPageLayout/HostedPageLayout.d.ts +8 -0
  105. package/dist/types/hostedPages/layouts/HostedPageLayout/index.d.ts +2 -0
  106. package/dist/types/index.d.ts +5 -0
  107. package/dist/types/molecules/attachmentList/AttachmentList.d.ts +3 -0
  108. package/dist/types/molecules/attachmentList/index.d.ts +2 -0
  109. package/dist/types/molecules/attachmentList/types.d.ts +8 -0
  110. package/dist/types/molecules/avaGPT/avaGPT.d.ts +3 -0
  111. package/dist/types/molecules/avaGPT/index.d.ts +1 -0
  112. package/dist/types/molecules/avaGPT/types.d.ts +12 -0
  113. package/dist/types/molecules/index.d.ts +5 -0
  114. package/dist/types/molecules/multipleChoiceQuestion/MultipleChoiceQuestion.d.ts +11 -0
  115. package/dist/types/molecules/multipleChoiceQuestion/index.d.ts +1 -0
  116. package/dist/types/molecules/navbar/Navbar.d.ts +7 -0
  117. package/dist/types/molecules/navbar/index.d.ts +2 -0
  118. package/dist/types/molecules/question/Question.d.ts +4 -0
  119. package/dist/types/molecules/question/index.d.ts +1 -0
  120. package/dist/types/molecules/question/types.d.ts +31 -0
  121. package/dist/types/molecules/singleChoiceQuestion/SingleChoiceQuestion.d.ts +12 -0
  122. package/dist/types/molecules/singleChoiceQuestion/index.d.ts +1 -0
  123. package/dist/types/setupTests.d.ts +1 -0
  124. package/dist/types/types/form.d.ts +26 -0
  125. package/dist/types/types/generated/fragment-types.d.ts +0 -0
  126. package/dist/types/types/generated/types-orchestration.d.ts +1874 -0
  127. package/dist/types/types/index.d.ts +8 -0
  128. package/dist/types/types/message.d.ts +6 -0
  129. package/dist/types/types/question.d.ts +27 -0
  130. package/dist/types/types/richText.d.ts +7 -0
  131. package/package.json +194 -0
package/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # UI-library
2
+
3
+ UI components to be used for integrating with Awell Health products.
4
+
5
+ ## Environment variables
6
+
7
+ To set up your local development environment, more specifically automated generation of types based on our API, you need to configure the below two variables in your `.env` file which should exist at the root of the repository.
8
+
9
+ ```
10
+ CODEGEN_AWELL_API_URL=
11
+ CODEGEN_AWELL_API_KEY=
12
+ ```
13
+
14
+ ## Preview components in storybook
15
+
16
+ `yarn storybook`
17
+
18
+ ## Develop on local with [yalc](https://github.com/wclr/yalc)
19
+
20
+ ### Install
21
+
22
+ `yarn global add yalc`
23
+
24
+ ### Build (in ui-library)
25
+
26
+ `yarn build`
27
+
28
+ Note: before running the build commmand, you need to update the version in `package.json` manually. You can chose any version you like, it just need to make sense and be a different version than it was.
29
+
30
+ ### Publish (in ui-library)
31
+
32
+ `yalc publish`
33
+
34
+ ### Use in other project
35
+
36
+ `yalc add <package-name>`
37
+
38
+ ## How to use it in your project
39
+
40
+ ### Import styles in root directory
41
+
42
+ ```
43
+ import '@awell-health/ui-library/dist/index.css'
44
+ ```
45
+
46
+ ### Use ThemeProvider
47
+
48
+ Make sure to wrap the application with the `ThemeProvider`. This will make sure all styles are properly loaded.
49
+
50
+ ### Use components
51
+
52
+ ```
53
+ import { ConversationalForm } from '@awell-health/ui-library'
54
+
55
+ (...)
56
+ return <ConversationalForm (...) />
57
+
58
+ ```
59
+
60
+ ## Possible known issues
61
+
62
+ ### Empty SCSS file
63
+
64
+ #### Following error
65
+
66
+ ```
67
+ [!] (plugin rollup-plugin-sass) TypeError: Cannot read properties of undefined (reading 'then')
68
+ src/atoms/message/message.module.scss
69
+ TypeError: Cannot read properties of undefined (reading 'then')
70
+ at /Users/katarzynamarciniszyn/Desktop/ui-library/node_modules/rollup-plugin-sass/dist/index.js:132:17
71
+ at transform (/Users/katarzynamarciniszyn/Desktop/ui-library/node_modules/rollup/dist/shared/rollup.js:22042:16)
72
+ at ModuleLoader.addModuleSource (/Users/katarzynamarciniszyn/Desktop/ui-library/node_modules/rollup/dist/shared/rollup.js:22267:30)
73
+ ```
74
+
75
+ #### Solution
76
+
77
+ Fill up the file with css or remove it.