@amityco/ui-kit-open-source 4.0.0 → 4.1.0

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 (52) hide show
  1. package/README.md +126 -16
  2. package/dist/esm/index.css +6 -1
  3. package/dist/esm/index.js +1660 -2980
  4. package/dist/index.css +6 -1
  5. package/dist/index.d.mts +718 -86
  6. package/dist/index.d.ts +718 -86
  7. package/dist/index.js +1847 -3126
  8. package/dist/metafile-cjs.json +1 -1
  9. package/dist/metafile-esm.json +1 -1
  10. package/package.json +46 -24
  11. package/dist/Inter-Black-PFV6RWF7.woff2 +0 -0
  12. package/dist/Inter-BlackItalic-OUXR4CVK.woff2 +0 -0
  13. package/dist/Inter-Bold-K6PA7FOK.woff2 +0 -0
  14. package/dist/Inter-BoldItalic-QKFESTQE.woff2 +0 -0
  15. package/dist/Inter-ExtraBold-2ZPQFALF.woff2 +0 -0
  16. package/dist/Inter-ExtraBoldItalic-RR7KYXHD.woff2 +0 -0
  17. package/dist/Inter-ExtraLight-NASBO7I6.woff2 +0 -0
  18. package/dist/Inter-ExtraLightItalic-AUJY3XPT.woff2 +0 -0
  19. package/dist/Inter-Italic-2WJ2RX3Z.woff2 +0 -0
  20. package/dist/Inter-Light-E4ED7JRX.woff2 +0 -0
  21. package/dist/Inter-LightItalic-BJ4DXCNT.woff2 +0 -0
  22. package/dist/Inter-Medium-3R4SWUEO.woff2 +0 -0
  23. package/dist/Inter-MediumItalic-QTJUSOU7.woff2 +0 -0
  24. package/dist/Inter-Regular-6HYMGWZS.woff2 +0 -0
  25. package/dist/Inter-SemiBold-7SYQBR3A.woff2 +0 -0
  26. package/dist/Inter-SemiBoldItalic-3EHSSXIM.woff2 +0 -0
  27. package/dist/Inter-Thin-3L5KITMZ.woff2 +0 -0
  28. package/dist/Inter-ThinItalic-J7DGFM6P.woff2 +0 -0
  29. package/dist/Inter-italic.var-SWFAXF2C.woff2 +0 -0
  30. package/dist/Inter-roman.var-WIJJYAE4.woff2 +0 -0
  31. package/dist/Inter.var-OMHIC2JW.woff2 +0 -0
  32. package/dist/esm/Inter-Black-PFV6RWF7.woff2 +0 -0
  33. package/dist/esm/Inter-BlackItalic-OUXR4CVK.woff2 +0 -0
  34. package/dist/esm/Inter-Bold-K6PA7FOK.woff2 +0 -0
  35. package/dist/esm/Inter-BoldItalic-QKFESTQE.woff2 +0 -0
  36. package/dist/esm/Inter-ExtraBold-2ZPQFALF.woff2 +0 -0
  37. package/dist/esm/Inter-ExtraBoldItalic-RR7KYXHD.woff2 +0 -0
  38. package/dist/esm/Inter-ExtraLight-NASBO7I6.woff2 +0 -0
  39. package/dist/esm/Inter-ExtraLightItalic-AUJY3XPT.woff2 +0 -0
  40. package/dist/esm/Inter-Italic-2WJ2RX3Z.woff2 +0 -0
  41. package/dist/esm/Inter-Light-E4ED7JRX.woff2 +0 -0
  42. package/dist/esm/Inter-LightItalic-BJ4DXCNT.woff2 +0 -0
  43. package/dist/esm/Inter-Medium-3R4SWUEO.woff2 +0 -0
  44. package/dist/esm/Inter-MediumItalic-QTJUSOU7.woff2 +0 -0
  45. package/dist/esm/Inter-Regular-6HYMGWZS.woff2 +0 -0
  46. package/dist/esm/Inter-SemiBold-7SYQBR3A.woff2 +0 -0
  47. package/dist/esm/Inter-SemiBoldItalic-3EHSSXIM.woff2 +0 -0
  48. package/dist/esm/Inter-Thin-3L5KITMZ.woff2 +0 -0
  49. package/dist/esm/Inter-ThinItalic-J7DGFM6P.woff2 +0 -0
  50. package/dist/esm/Inter-italic.var-SWFAXF2C.woff2 +0 -0
  51. package/dist/esm/Inter-roman.var-WIJJYAE4.woff2 +0 -0
  52. package/dist/esm/Inter.var-OMHIC2JW.woff2 +0 -0
package/README.md CHANGED
@@ -1,26 +1,136 @@
1
- # Amity Ui-Kit for Web (open-source)
1
+ # Amity UI-Kit for Web (Open-Source)
2
2
 
3
- ## Getting started
3
+ ## Prerequisites
4
4
 
5
- ### Installation
5
+ Before getting started, ensure that you have the following prerequisites installed on your system:
6
6
 
7
- Here are the steps to install ui-kit together with another project.
7
+ - [Node.js](https://nodejs.org/) LTS version (currently version 20)
8
+ - [pnpm](https://pnpm.io/) version 8
8
9
 
9
- 1. git clone git@github.com:AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource.git
10
- 2. cd ./Amity-Social-Cloud-UIKit-Web-OpenSource
11
- 3. npm ci
12
- 4. npm link
13
- 5. npm link ./`<path-to-your-app>`/node_modules/react ./`<path-to-your-app>`/node_modules/react-dom
14
- 6. npm run build
15
- 7. cd ./`<path-to-your-app>`
16
- 8. npm link @amityco/ui-kit-open-source --save
10
+ ## How to install PNPM (Optional)
17
11
 
18
- ** We need to link react module to react module in destination project so that react is the same instance otherwise we will encounter [issues with react hook](https://medium.com/bbc-product-technology/solving-the-problem-with-npm-link-and-react-hooks-266c832dd019).
12
+ ```
13
+ corepack enable pnpm
14
+ ```
19
15
 
20
- ### Documentation
16
+ Ref: https://pnpm.io/installation#using-corepack
21
17
 
22
- Please refer to our online documentation at https://docs.amity.co or contact a Ui-Kit representative at **developers@amity.co** for support.
18
+ ## Running Storybook (Optional)
19
+
20
+ To run Storybook and view the UI components in isolation, follow these steps:
21
+
22
+ 1. Clone the Amity UI-Kit repository:
23
+
24
+ ```
25
+ git clone https://github.com/AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource.git
26
+ ```
27
+
28
+ 2. Navigate to the cloned repository's directory:
29
+
30
+ ```
31
+ cd Amity-Social-Cloud-UIKit-Web-OpenSource
32
+ ```
33
+
34
+ 3. Install the dependencies using pnpm:
35
+
36
+ ```
37
+ pnpm install
38
+ ```
39
+
40
+ 4. Create a `.env` file at the root of the project with the following content:
41
+
42
+ ```
43
+ STORYBOOK_API_REGION=<API_REGION>
44
+ STORYBOOK_API_KEY=<API_KEY>
45
+ ```
46
+
47
+ Replace `<API_REGION>` and `<API_KEY>` with your actual credentials.
48
+
49
+ 5. Run Storybook:
50
+
51
+ ```
52
+ pnpm run storybook
53
+ ```
54
+
55
+ 6. Open your browser and navigate to `http://localhost:6006` to view the Storybook interface.
56
+
57
+ ## Installation
58
+
59
+ To install the Amity UI-Kit together with another project, follow these steps:
60
+
61
+ 1. Clone the repository using the following command:
62
+
63
+ ```
64
+ git clone https://github.com/AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource.git
65
+ ```
66
+
67
+ 2. Navigate to the cloned repository's directory:
68
+
69
+ ```
70
+ cd ./Amity-Social-Cloud-UIKit-Web-OpenSource
71
+ ```
72
+
73
+ 3. Install the dependencies using pnpm:
74
+
75
+ ```
76
+ pnpm install
77
+ ```
78
+
79
+ 4. Build the project:
80
+
81
+ ```
82
+ pnpm run build
83
+ ```
84
+
85
+ 5. Pack the project
86
+
87
+ ```
88
+ pnpm pack
89
+ ```
90
+
91
+ 6. Navigate to your application's directory:
92
+
93
+ ```
94
+ cd <path-to-your-app>
95
+ ```
96
+
97
+ 7. Install the Amity UI-Kit to your application using one of the following package managers:
98
+ - NPM:
99
+ ```
100
+ npm i file:<path-to-amity-ui-kit-repository>/<path-to-tgz-file> --save
101
+ ```
102
+ - Yarn (Classic):
103
+ ```
104
+ yarn add file:<path-to-amity-ui-kit-repository>/<path-to-tgz-file>
105
+ ```
106
+ - PNPM:
107
+ ```
108
+ pnpm i file:<path-to-amity-ui-kit-repository>/<path-to-tgz-file>
109
+ ```
110
+
111
+ ## Documentation
112
+
113
+ For detailed information and guidance on using the Amity UI-Kit, please refer to our comprehensive online documentation available at [https://docs.amity.co](https://docs.amity.co).
114
+
115
+ If you require further assistance or have any questions, please don't hesitate to contact our dedicated UI-Kit support team at **developers@amity.co**. We are here to help you make the most of the Amity UI-Kit.
23
116
 
24
117
  ## Contributing
25
118
 
26
- See [our contributing guide](https://github.com/EkoCommunications/AmityUiKitWeb/blob/develop/CONTRIBUTING.md)
119
+ We welcome contributions from the community to help improve and enhance the Amity UI-Kit. If you are interested in contributing to this project, please review our [contributing guide](https://github.com/AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource/blob/develop/contributing.md) for guidelines and best practices.
120
+
121
+ Thank you for choosing the Amity UI-Kit for your web development needs!
122
+
123
+ ### FAQ
124
+
125
+ Q: I tried to run `pnpm build` and it throws a types error.
126
+ A: Try to structure your project to be like this:
127
+
128
+ ```
129
+ - your_app
130
+ - src
131
+ - Amity-Social-Cloud-UIKit-Web-OpenSource
132
+ - src
133
+ ```
134
+
135
+ Q: The modifications I made to the code do not appear to be applied.
136
+ A: Please attempt to execute `npm cache clean` or `npm cache clean --force` to resolve this issue.