@weni/unnnic-system 2.13.0 → 2.13.1

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 (41) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +56 -19
  3. package/dist/style.css +1 -1
  4. package/dist/unnnic.mjs +4546 -4471
  5. package/dist/unnnic.umd.js +19 -19
  6. package/package.json +1 -1
  7. package/src/components/Alert/Alert.vue +2 -0
  8. package/src/components/Alert/AlertBanner.vue +2 -0
  9. package/src/components/Alert/Version1dot1.vue +1 -0
  10. package/src/components/Alert/__tests__/Alert.spec.js +84 -0
  11. package/src/components/Alert/__tests__/AlertBanner.spec.js +89 -0
  12. package/src/components/Alert/__tests__/AlertCaller.spec.js +98 -0
  13. package/src/components/Alert/__tests__/Version1dot1.spec.js +124 -0
  14. package/src/components/AudioRecorder/AudioRecorder.vue +30 -1
  15. package/src/components/AvatarIcon/__tests__/AvatarIcon.spec.js +84 -0
  16. package/src/components/AvatarIcon/__tests__/__snapshots__/AvatarIcon.spec.js.snap +7 -0
  17. package/src/components/Breadcrumb/Breadcrumb.vue +4 -0
  18. package/src/components/Breadcrumb/__tests__/Breadcrumb.spec.js +68 -0
  19. package/src/components/FormElement/FormElement.vue +101 -28
  20. package/src/components/Input/BaseInput.vue +30 -38
  21. package/src/components/Input/Input.scss +43 -0
  22. package/src/components/Input/TextInput.vue +24 -25
  23. package/src/components/Input/__test__/TextInput.spec.js +2 -2
  24. package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +1 -1
  25. package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +1 -1
  26. package/src/components/Pagination/Pagination.vue +23 -4
  27. package/src/components/Pagination/__tests__/Pagination.spec.js +208 -0
  28. package/src/components/SelectSmart/SelectSmart.vue +16 -44
  29. package/src/components/SelectSmart/SelectSmartMultipleHeader.vue +5 -13
  30. package/src/components/SelectSmart/SelectSmartOption.vue +13 -9
  31. package/src/components/SkeletonLoading/SkeletonLoading.vue +17 -11
  32. package/src/components/SkeletonLoading/__tests__/SkeletonLoading.spec.js +125 -0
  33. package/src/components/TextArea/TextArea.vue +45 -128
  34. package/src/components/TextArea/__test__/TextArea.spec.js +26 -24
  35. package/src/components/TextArea/__test__/__snapshots__/TextArea.spec.js.snap +4 -4
  36. package/src/stories/Input.mdx +76 -0
  37. package/src/stories/Input.stories.js +82 -8
  38. package/src/stories/SelectSmart.mdx +15 -17
  39. package/src/stories/SelectSmart.stories.js +72 -6
  40. package/src/stories/TextArea.mdx +68 -0
  41. package/src/stories/TextArea.stories.js +68 -6
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 2.13.1 (2024-10-15)
9
+
10
+ ### Fixed
11
+
12
+ - Resolved an issue where the AudioRecorder player displayed incorrect audio duration. ([Related to this Chromium bug](https://bugs.chromium.org/p/chromium/issues/detail?id=642012))
13
+
8
14
  ## 2.13.0 (2024-09-30)
9
15
 
10
16
  ### Added
package/README.md CHANGED
@@ -1,36 +1,73 @@
1
- # unnnic
2
- Design system
1
+ <div align="center">
3
2
 
4
- This template should help get you started developing with Vue 3 in Vite.
3
+ <img src="https://github.com/weni-ai/unnnic/assets/69015179/659e88c0-9e42-4a03-8e64-a35961e6079c" height="100" />
5
4
 
6
- ## Recommended IDE Setup
7
5
 
8
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
6
+ # Unnnic
9
7
 
10
- ## Customize configuration
8
+ <img src="https://github.com/Ilhasoft/weni-webapp/raw/main/src/assets/LogoWeniAnimada.svg" height="20" />
11
9
 
12
- See [Vite Configuration Reference](https://vitejs.dev/config/).
13
10
 
14
- ## Project Setup
11
+ *This project is the design system of [Weni](https://github.com/weni-ai)*
12
+
13
+ [![codecov](https://codecov.io/github/weni-ai/unnnic/graph/badge.svg?token=UR64TB938Z)](https://codecov.io/github/weni-ai/unnnic) [![CI](https://github.com/weni-ai/unnnic/workflows/CI/badge.svg)](https://github.com/weni-ai/unnnic/actions?workflow=CI)
14
+
15
+ </div>
16
+
17
+ # Requirements
18
+ Before install the lib, make sure you have installed the following tools on your machine:
19
+
20
+ - [Node.js 20](https://nodejs.org/en)
21
+ - [NPM](https://www.npmjs.com/) or [Yarn](https://yarnpkg.com/) (recommended)
22
+
23
+ # Set up at projects with Vue 3
24
+
25
+ 1. Install unnnic in your project
15
26
 
16
- ```sh
17
- npm install
27
+ ```
28
+ yarn add @weni/unnnic-system
18
29
  ```
19
30
 
20
- ### Compile and Hot-Reload for Development
31
+ 2. Configuration in main.js
21
32
 
22
- ```sh
23
- npm run dev
24
33
  ```
34
+ import Unnnic from "@weni/unnnic-system";
35
+ import "@weni/unnnic-system/dist/style.css";
25
36
 
26
- ### Compile and Minify for Production
37
+ const app = createApp(App);
27
38
 
28
- ```sh
29
- npm run build
39
+ app.use(Unnnic);
30
40
  ```
31
41
 
32
- ### Lint with [ESLint](https://eslint.org/)
42
+ 3. Configuration in vite.config.js
33
43
 
34
- ```sh
35
- npm run lint
36
44
  ```
45
+ css: {
46
+ preprocessorOptions: {
47
+ scss: {
48
+ additionalData: `
49
+ @import '@weni/unnnic-system/src/assets/scss/unnnic.scss';
50
+ `,
51
+ },
52
+ },
53
+ },
54
+ ```
55
+
56
+ # Open-Source Governance
57
+ The Weni Platform open source projects are governed by @weni-ai. Weni opens all its software parts under terms of an open-source license to reach potential users and partners mainly. Secondly, Weni wants to reach developers by building a community for some pieces that are more reusable in other businesses or software projects, such as NLP models or tools. Besides that, the openness of our software is also related to building trust by enabling our external stakeholders to audit the security of our software.
58
+
59
+ # Community
60
+
61
+ - Join our [community chat](https://community-chat.weni.ai) to discuss with our internal team
62
+ - Join [#dev](https://community-chat.weni.ai/channel/dev) for help from the community to development issues
63
+
64
+ # Contributing
65
+
66
+ **We are looking for collaboration from the Open Source community!** There's so much we want to do,
67
+ including but not limited to: enhancing existing applications with new features,
68
+ optimizing the NLP tasks and algorithms involved that boost accuracy, new communication channels and integrations.
69
+
70
+ * Please read our [contribution guidelines](https://github.com/ilhasoft/weni-platform/blob/main/.github/CONTRIBUTING.md) for details on what and how you can contribute.
71
+
72
+ * Report a bug by using [this guideline](https://github.com/ilhasoft/weni-platform/blob/main/.github/CONTRIBUTING.md#report-a-bug)
73
+ for details on what and how you can contribute.