@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.
- package/README.md +77 -0
- package/dist/index.css +8917 -0
- package/dist/index.js +50543 -0
- package/dist/types/atoms/button/Button.d.ts +8 -0
- package/dist/types/atoms/button/index.d.ts +2 -0
- package/dist/types/atoms/checkboxButton/CheckboxButton.d.ts +8 -0
- package/dist/types/atoms/checkboxButton/index.d.ts +2 -0
- package/dist/types/atoms/datePicker/DatePicker.d.ts +10 -0
- package/dist/types/atoms/datePicker/index.d.ts +1 -0
- package/dist/types/atoms/description/Description.d.ts +6 -0
- package/dist/types/atoms/description/index.d.ts +2 -0
- package/dist/types/atoms/index.d.ts +21 -0
- package/dist/types/atoms/inputField/InputField.d.ts +10 -0
- package/dist/types/atoms/inputField/index.d.ts +2 -0
- package/dist/types/atoms/logo/Logo.d.ts +6 -0
- package/dist/types/atoms/logo/index.d.ts +2 -0
- package/dist/types/atoms/longTextField/LongTextField.d.ts +9 -0
- package/dist/types/atoms/longTextField/index.d.ts +2 -0
- package/dist/types/atoms/messageAttachment/MessageAttachment.d.ts +8 -0
- package/dist/types/atoms/messageAttachment/index.d.ts +2 -0
- package/dist/types/atoms/modal/Modal.d.ts +11 -0
- package/dist/types/atoms/modal/index.d.ts +1 -0
- package/dist/types/atoms/phoneInputField/PhoneInputField.d.ts +22 -0
- package/dist/types/atoms/phoneInputField/helpers.d.ts +3 -0
- package/dist/types/atoms/phoneInputField/index.d.ts +3 -0
- package/dist/types/atoms/progressIndicator/ProgressIndicator.d.ts +6 -0
- package/dist/types/atoms/progressIndicator/index.d.ts +1 -0
- package/dist/types/atoms/questionLabel/QuestionLabel.d.ts +6 -0
- package/dist/types/atoms/questionLabel/index.d.ts +2 -0
- package/dist/types/atoms/radioButton/RadioButton.d.ts +9 -0
- package/dist/types/atoms/radioButton/index.d.ts +2 -0
- package/dist/types/atoms/rangeInput/RangeInput.d.ts +18 -0
- package/dist/types/atoms/rangeInput/index.d.ts +2 -0
- package/dist/types/atoms/richTextViewer/RichTextViewer.d.ts +6 -0
- package/dist/types/atoms/richTextViewer/index.d.ts +1 -0
- package/dist/types/atoms/richTextViewer/serializeHtml.d.ts +3 -0
- package/dist/types/atoms/scheduling/cal.com/CalDotComScheduling.d.ts +11 -0
- package/dist/types/atoms/scheduling/cal.com/calDotComTypes.d.ts +8 -0
- package/dist/types/atoms/scheduling/cal.com/index.d.ts +2 -0
- package/dist/types/atoms/scheduling/index.d.ts +1 -0
- package/dist/types/atoms/scrollIndicator/ScrollIndicator.d.ts +2 -0
- package/dist/types/atoms/scrollIndicator/index.d.ts +1 -0
- package/dist/types/atoms/select/Select.d.ts +22 -0
- package/dist/types/atoms/select/index.d.ts +3 -0
- package/dist/types/atoms/select/types.d.ts +1 -0
- package/dist/types/atoms/spinner/Spinner.d.ts +7 -0
- package/dist/types/atoms/spinner/index.d.ts +1 -0
- package/dist/types/atoms/themeProvider/ThemeProvider.d.ts +6 -0
- package/dist/types/atoms/themeProvider/helpers.d.ts +3 -0
- package/dist/types/atoms/themeProvider/index.d.ts +2 -0
- package/dist/types/atoms/typingCaret/TypingCaret.d.ts +8 -0
- package/dist/types/atoms/typingCaret/index.d.ts +1 -0
- package/dist/types/atoms/typography/Typography.d.ts +22 -0
- package/dist/types/atoms/typography/index.d.ts +3 -0
- package/dist/types/atoms/typography/types.d.ts +3 -0
- package/dist/types/constants/descriptionFixture.d.ts +56 -0
- package/dist/types/constants/formFixture.d.ts +3 -0
- package/dist/types/constants/messageFixture.d.ts +56 -0
- package/dist/types/hooks/index.d.ts +5 -0
- package/dist/types/hooks/useAccentColor/index.d.ts +1 -0
- package/dist/types/hooks/useAccentColor/useAccentColor.d.ts +5 -0
- package/dist/types/hooks/useClickOutsideNotifier/index.d.ts +7 -0
- package/dist/types/hooks/useForm/helpers.d.ts +20 -0
- package/dist/types/hooks/useForm/index.d.ts +2 -0
- package/dist/types/hooks/useForm/types.d.ts +55 -0
- package/dist/types/hooks/useForm/useConversationalForm.d.ts +3 -0
- package/dist/types/hooks/useForm/useTraditionalForm.d.ts +3 -0
- package/dist/types/hooks/useHtmlScript.d.ts +5 -0
- package/dist/types/hooks/useScrollHint/index.d.ts +1 -0
- package/dist/types/hooks/useScrollHint/useScrollHint.d.ts +6 -0
- package/dist/types/hooks/useValidate/index.d.ts +2 -0
- package/dist/types/hooks/useValidate/types.d.ts +24 -0
- package/dist/types/hooks/useValidate/useValidate.d.ts +9 -0
- package/dist/types/hostedPages/activities/checklist/Checklist.d.ts +14 -0
- package/dist/types/hostedPages/activities/checklist/index.d.ts +2 -0
- package/dist/types/hostedPages/activities/cloudinary/CloudinarySingleFileUpload.d.ts +3 -0
- package/dist/types/hostedPages/activities/cloudinary/CloudinaryUpload.d.ts +3 -0
- package/dist/types/hostedPages/activities/cloudinary/components/CloudinaryUploadWidget.d.ts +10 -0
- package/dist/types/hostedPages/activities/cloudinary/components/index.d.ts +1 -0
- package/dist/types/hostedPages/activities/cloudinary/index.d.ts +2 -0
- package/dist/types/hostedPages/activities/cloudinary/types.d.ts +86 -0
- package/dist/types/hostedPages/activities/cloudinary/utils.d.ts +5 -0
- package/dist/types/hostedPages/activities/form/ConversationalForm.d.ts +3 -0
- package/dist/types/hostedPages/activities/form/TraditionalForm.d.ts +3 -0
- package/dist/types/hostedPages/activities/form/__testdata__/eq5d5lFixture.d.ts +51 -0
- package/dist/types/hostedPages/activities/form/__testdata__/testFormFixture.d.ts +5 -0
- package/dist/types/hostedPages/activities/form/index.d.ts +2 -0
- package/dist/types/hostedPages/activities/form/types.d.ts +20 -0
- package/dist/types/hostedPages/activities/message/Message.d.ts +3 -0
- package/dist/types/hostedPages/activities/message/index.d.ts +1 -0
- package/dist/types/hostedPages/activities/message/types.d.ts +16 -0
- package/dist/types/hostedPages/activities/scheduling/cal.com/CalDotcomActivity.d.ts +3 -0
- package/dist/types/hostedPages/activities/scheduling/cal.com/index.d.ts +1 -0
- package/dist/types/hostedPages/activities/scheduling/cal.com/types.d.ts +6 -0
- package/dist/types/hostedPages/activities/scheduling/index.d.ts +1 -0
- package/dist/types/hostedPages/activities/wizardForm/WizardForm.d.ts +2 -0
- package/dist/types/hostedPages/activities/wizardForm/__testdata__/testFormFixture.d.ts +6 -0
- package/dist/types/hostedPages/activities/wizardForm/index.d.ts +1 -0
- package/dist/types/hostedPages/index.d.ts +9 -0
- package/dist/types/hostedPages/layouts/HostedPageLayout/CloseButton/CloseButton.d.ts +6 -0
- package/dist/types/hostedPages/layouts/HostedPageLayout/CloseButton/index.d.ts +1 -0
- package/dist/types/hostedPages/layouts/HostedPageLayout/HostedPageFooter/HostedPageFooter.d.ts +6 -0
- package/dist/types/hostedPages/layouts/HostedPageLayout/HostedPageFooter/index.d.ts +1 -0
- package/dist/types/hostedPages/layouts/HostedPageLayout/HostedPageLayout.d.ts +8 -0
- package/dist/types/hostedPages/layouts/HostedPageLayout/index.d.ts +2 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/molecules/attachmentList/AttachmentList.d.ts +3 -0
- package/dist/types/molecules/attachmentList/index.d.ts +2 -0
- package/dist/types/molecules/attachmentList/types.d.ts +8 -0
- package/dist/types/molecules/avaGPT/avaGPT.d.ts +3 -0
- package/dist/types/molecules/avaGPT/index.d.ts +1 -0
- package/dist/types/molecules/avaGPT/types.d.ts +12 -0
- package/dist/types/molecules/index.d.ts +5 -0
- package/dist/types/molecules/multipleChoiceQuestion/MultipleChoiceQuestion.d.ts +11 -0
- package/dist/types/molecules/multipleChoiceQuestion/index.d.ts +1 -0
- package/dist/types/molecules/navbar/Navbar.d.ts +7 -0
- package/dist/types/molecules/navbar/index.d.ts +2 -0
- package/dist/types/molecules/question/Question.d.ts +4 -0
- package/dist/types/molecules/question/index.d.ts +1 -0
- package/dist/types/molecules/question/types.d.ts +31 -0
- package/dist/types/molecules/singleChoiceQuestion/SingleChoiceQuestion.d.ts +12 -0
- package/dist/types/molecules/singleChoiceQuestion/index.d.ts +1 -0
- package/dist/types/setupTests.d.ts +1 -0
- package/dist/types/types/form.d.ts +26 -0
- package/dist/types/types/generated/fragment-types.d.ts +0 -0
- package/dist/types/types/generated/types-orchestration.d.ts +1874 -0
- package/dist/types/types/index.d.ts +8 -0
- package/dist/types/types/message.d.ts +6 -0
- package/dist/types/types/question.d.ts +27 -0
- package/dist/types/types/richText.d.ts +7 -0
- 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.
|