@weni/unnnic-system 3.31.1 → 3.32.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 (48) hide show
  1. package/dist/index.d.ts +3822 -10606
  2. package/dist/style.css +1 -1
  3. package/dist/unnnic.mjs +15979 -17314
  4. package/dist/unnnic.umd.js +37 -37
  5. package/package.json +1 -1
  6. package/src/components/AvatarIcon/AvatarIcon.vue +35 -49
  7. package/src/components/Breadcrumb/Breadcrumb.vue +20 -14
  8. package/src/components/Checkbox/Checkbox.vue +44 -57
  9. package/src/components/DatePicker/DatePicker.vue +53 -35
  10. package/src/components/DatePicker/{translations.js → translations.ts} +17 -5
  11. package/src/components/Input/BaseInput.vue +67 -75
  12. package/src/components/Input/Input.vue +84 -132
  13. package/src/components/Input/TextInput.vue +119 -136
  14. package/src/components/Input/__test__/TextInput.spec.js +10 -14
  15. package/src/components/Pagination/Pagination.vue +124 -141
  16. package/src/components/Radio/Radio.vue +36 -31
  17. package/src/components/Select/SelectItem.vue +24 -24
  18. package/src/components/SkeletonLoading/SkeletonLoading.vue +87 -88
  19. package/src/components/SkeletonLoading/skeletonTheme.vue +49 -44
  20. package/src/components/index.ts +1 -41
  21. package/src/stories/PageHeader.stories.js +11 -5
  22. package/src/types/index.d.ts +0 -1
  23. package/src/components/Button/ButtonIcon.vue +0 -106
  24. package/src/components/Button/__tests__/ButtonIcon.spec.js +0 -56
  25. package/src/components/Carousel/Carousel.vue +0 -59
  26. package/src/components/Carousel/TagCarousel.vue +0 -209
  27. package/src/components/Carousel/__tests__/TagCarousel.spec.js +0 -258
  28. package/src/components/ChatText/ChatText.vue +0 -179
  29. package/src/components/CircleProgressBar/CircleProgressBar.vue +0 -150
  30. package/src/components/Indicator/Indicator.vue +0 -110
  31. package/src/components/InputNext/InputNext.vue +0 -282
  32. package/src/components/ModalUpload/ModalUpload.vue +0 -181
  33. package/src/components/MoodRating/MoodRating.vue +0 -130
  34. package/src/components/Slider/Slider.vue +0 -438
  35. package/src/components/Slider/__tests__/Slider.spec.js +0 -321
  36. package/src/components/StarRating/StarRating.vue +0 -76
  37. package/src/components/TransitionRipple/TransitionRipple.vue +0 -126
  38. package/src/stories/ButtonIcon.stories.js +0 -31
  39. package/src/stories/Carousel.stories.js +0 -45
  40. package/src/stories/ChatText.stories.js +0 -57
  41. package/src/stories/CircleProgressBar.stories.js +0 -15
  42. package/src/stories/Indicator.stories.js +0 -18
  43. package/src/stories/InputNext.stories.js +0 -92
  44. package/src/stories/ModalUpload.stories.js +0 -25
  45. package/src/stories/MoodRating.stories.js +0 -33
  46. package/src/stories/Slider.stories.js +0 -23
  47. package/src/stories/StarRating.stories.js +0 -38
  48. 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 = {};