@weni/unnnic-system 3.31.1 → 3.32.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 (34) hide show
  1. package/dist/index.d.ts +1518 -4106
  2. package/dist/style.css +1 -1
  3. package/dist/unnnic.mjs +12879 -13865
  4. package/dist/unnnic.umd.js +36 -36
  5. package/package.json +1 -1
  6. package/src/components/index.ts +1 -41
  7. package/src/stories/PageHeader.stories.js +11 -5
  8. package/src/types/index.d.ts +0 -1
  9. package/src/components/Button/ButtonIcon.vue +0 -106
  10. package/src/components/Button/__tests__/ButtonIcon.spec.js +0 -56
  11. package/src/components/Carousel/Carousel.vue +0 -59
  12. package/src/components/Carousel/TagCarousel.vue +0 -209
  13. package/src/components/Carousel/__tests__/TagCarousel.spec.js +0 -258
  14. package/src/components/ChatText/ChatText.vue +0 -179
  15. package/src/components/CircleProgressBar/CircleProgressBar.vue +0 -150
  16. package/src/components/Indicator/Indicator.vue +0 -110
  17. package/src/components/InputNext/InputNext.vue +0 -282
  18. package/src/components/ModalUpload/ModalUpload.vue +0 -181
  19. package/src/components/MoodRating/MoodRating.vue +0 -130
  20. package/src/components/Slider/Slider.vue +0 -438
  21. package/src/components/Slider/__tests__/Slider.spec.js +0 -321
  22. package/src/components/StarRating/StarRating.vue +0 -76
  23. package/src/components/TransitionRipple/TransitionRipple.vue +0 -126
  24. package/src/stories/ButtonIcon.stories.js +0 -31
  25. package/src/stories/Carousel.stories.js +0 -45
  26. package/src/stories/ChatText.stories.js +0 -57
  27. package/src/stories/CircleProgressBar.stories.js +0 -15
  28. package/src/stories/Indicator.stories.js +0 -18
  29. package/src/stories/InputNext.stories.js +0 -92
  30. package/src/stories/ModalUpload.stories.js +0 -25
  31. package/src/stories/MoodRating.stories.js +0 -33
  32. package/src/stories/Slider.stories.js +0 -23
  33. package/src/stories/StarRating.stories.js +0 -38
  34. package/src/stories/TransitionRipple.stories.js +0 -35
@@ -1,92 +0,0 @@
1
- import { action } from 'storybook/actions';
2
- import UnnnicInputNext from '../components/InputNext/InputNext.vue';
3
-
4
- const iconsOptions = [];
5
-
6
- export default {
7
- title: 'Form/InputNext',
8
- component: UnnnicInputNext,
9
- argTypes: {
10
- iconLeft: { control: { type: 'select', options: iconsOptions } },
11
- iconRight: { control: { type: 'select', options: iconsOptions } },
12
- size: { control: { type: 'select', options: ['md', 'sm'] } },
13
- type: { control: { type: 'select', options: ['normal', 'error'] } },
14
- nativeType: { control: { type: 'select', options: ['text', 'password'] } },
15
- },
16
- render: (args) => ({
17
- components: { UnnnicInputNext },
18
- setup() {
19
- const updateModelValue = (value) => {
20
- action('update:modelValue')(value);
21
- args.modelValue = value;
22
- };
23
- return { args, updateModelValue };
24
- },
25
- template: `
26
- <div><pre>v-model: {{ modelValue }}</pre><UnnnicInputNext v-bind="args" v-model="modelValue"></UnnnicInputNext></div>
27
- `,
28
- }),
29
- };
30
-
31
- export const Default = {
32
- args: {
33
- placeholder: 'Placeholder',
34
- },
35
- };
36
-
37
- export const WithLabel = {
38
- args: {
39
- placeholder: 'Placeholder',
40
- label: 'Label',
41
- },
42
- };
43
-
44
- export const Small = {
45
- args: {
46
- placeholder: 'Placeholder',
47
- size: 'sm',
48
- },
49
- };
50
-
51
- export const ErrorWithMessage = {
52
- args: {
53
- placeholder: 'Placeholder',
54
- error: 'Error message',
55
- },
56
- };
57
-
58
- export const ErrorWithoutMessage = {
59
- args: {
60
- placeholder: 'Placeholder',
61
- error: true,
62
- },
63
- };
64
-
65
- export const WithMessage = {
66
- args: {
67
- placeholder: 'Placeholder',
68
- message: 'Message',
69
- },
70
- };
71
-
72
- export const PasswordWithToggle = {
73
- args: {
74
- placeholder: 'Placeholder',
75
- allowTogglePassword: true,
76
- },
77
- };
78
-
79
- export const PasswordWithoutToggle = {
80
- args: {
81
- placeholder: 'Placeholder',
82
- nativeType: 'password',
83
- },
84
- };
85
-
86
- export const IconLeftAndRight = {
87
- args: {
88
- placeholder: 'Placeholder',
89
- iconLeft: 'read-email-at-1',
90
- iconRight: 'read-email-at-1',
91
- },
92
- };
@@ -1,25 +0,0 @@
1
- import i18n from '../utils/plugins/i18n';
2
- import unnnicModalUpload from '../components/ModalUpload/ModalUpload.vue';
3
-
4
- import { setup } from '@storybook/vue3';
5
-
6
- setup((app) => {
7
- app.use(i18n);
8
- });
9
-
10
- export default {
11
- title: 'example/ModalUpload',
12
- component: unnnicModalUpload,
13
- argTypes: {},
14
- };
15
-
16
- export const Default = {
17
- render: (args) => ({
18
- components: { unnnicModalUpload },
19
- setup() {
20
- return { args, files: [] };
21
- },
22
- template: '<unnnic-modal-upload v-bind="args" v-model="files" />',
23
- }),
24
- args: {},
25
- };
@@ -1,33 +0,0 @@
1
- import UnnnicMoodRating from '../components/MoodRating/MoodRating.vue';
2
-
3
- export default {
4
- title: 'Rating/MoodRating',
5
- component: UnnnicMoodRating,
6
- argTypes: {},
7
- render: (args) => ({
8
- setup() {
9
- return { args };
10
- },
11
- components: {
12
- UnnnicMoodRating,
13
- },
14
-
15
- data() {
16
- return {
17
- mood: null,
18
- };
19
- },
20
-
21
- template: `
22
- <div>
23
- <pre>v-model: {{ mood }}</pre>
24
- <unnnic-mood-rating v-bind="args" v-model="mood" />
25
- </div>
26
- `,
27
- }),
28
- args: {
29
- title: 'Avalie seu aprendizado nesta aula',
30
- },
31
- };
32
-
33
- export const Default = {};
@@ -1,23 +0,0 @@
1
- import unnnicSlider from '../components/Slider/Slider.vue';
2
-
3
- export default {
4
- title: 'Form/Slider',
5
- component: unnnicSlider,
6
- argTypes: {
7
- size: { control: { type: 'select', options: ['small', 'medium'] } },
8
- textLeft: { control: { type: 'text' } },
9
- textRight: { control: { type: 'text' } },
10
- disabled: { control: { type: 'boolean' } },
11
- },
12
- };
13
-
14
- export const Default = {
15
- args: {
16
- initialValue: 1,
17
- minValue: 1,
18
- maxValue: 4,
19
- step: 1,
20
- minLabel: '1',
21
- maxLabel: '4',
22
- },
23
- };
@@ -1,38 +0,0 @@
1
- import UnnnicStarRating from '../components/StarRating/StarRating.vue';
2
-
3
- export default {
4
- title: 'Rating/StarRating',
5
- component: UnnnicStarRating,
6
- argTypes: {
7
- showValue: { control: { type: 'boolean' } },
8
- readonly: { control: { type: 'boolean' } },
9
- },
10
- render: (args) => ({
11
- setup() {
12
- return { args };
13
- },
14
- components: {
15
- UnnnicStarRating,
16
- },
17
-
18
- data() {
19
- return {
20
- value: 4,
21
- };
22
- },
23
-
24
- template: `
25
- <div>
26
- <pre>v-model: {{ value }}</pre>
27
- <unnnic-star-rating v-model="value" showValue readonly />
28
- </div>
29
- `,
30
- }),
31
- args: {
32
- value: 3.6,
33
- showValue: true,
34
- readonly: true,
35
- },
36
- };
37
-
38
- export const Default = {};
@@ -1,35 +0,0 @@
1
- import unnnicTransitionRipple from '../components/TransitionRipple/TransitionRipple.vue';
2
- import colorsList from '../utils/colorsList';
3
-
4
- export default {
5
- title: 'Transitions/Ripple',
6
- component: unnnicTransitionRipple,
7
- argTypes: {
8
- color: {
9
- control: {
10
- type: 'select',
11
- options: colorsList,
12
- },
13
- },
14
- },
15
- render: (args) => ({
16
- setup() {
17
- return { args };
18
- },
19
- components: {
20
- unnnicTransitionRipple,
21
- },
22
- template: `
23
- <div ref="transitionContainer" @mousedown="(event) => this.$refs.transitionRipple.addRipple(event)" style="width: 100%; height: 100px;">
24
- Click to activate transition
25
-
26
- <unnnic-transition-ripple ref="transitionRipple" v-bind="args" />
27
- </div>
28
- `,
29
- }),
30
- args: {
31
- color: 'weni-600',
32
- },
33
- };
34
-
35
- export const Default = {};