@weni/unnnic-system 2.0.16 → 2.0.17

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 (69) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/unnnic.mjs +1044 -1033
  3. package/dist/unnnic.umd.js +18 -18
  4. package/package.json +3 -2
  5. package/src/components/AudioRecorder/AudioHandler.vue +2 -0
  6. package/src/components/AudioRecorder/AudioPlayer.vue +2 -0
  7. package/src/components/AudioRecorder/AudioRecorder.vue +6 -4
  8. package/src/components/Card/CardData.vue +2 -2
  9. package/src/components/CardProject/CardProject.vue +6 -6
  10. package/src/components/ChartRainbow/ChartRainbow.vue +4 -4
  11. package/src/components/ChatsMessage/ChatsMessage.vue +11 -2
  12. package/src/components/ChatsMessage/ChatsMessageStatusBackdrop.vue +1 -4
  13. package/src/components/DateFilter/DateFilter.vue +2 -2
  14. package/src/components/DatePicker/DatePicker.vue +2 -2
  15. package/src/components/Dropdown/LanguageSelect.vue +7 -7
  16. package/src/components/ImportCard/ImportCard.vue +2 -2
  17. package/src/components/ProgressBar/ProgressBar.vue +3 -3
  18. package/src/components/Sidebar/SidebarPrimary.vue +15 -5
  19. package/src/components/TabsExpanded/TabsExpanded.vue +1 -0
  20. package/src/stories/Accordion.stories.js +35 -40
  21. package/src/stories/Alert.stories.js +98 -83
  22. package/src/stories/Breadcrumb.stories.js +12 -23
  23. package/src/stories/ButtonIcon.stories.js +2 -2
  24. package/src/stories/CardCompany.stories.js +52 -58
  25. package/src/stories/CardData.stories.js +8 -26
  26. package/src/stories/CardImage.stories.js +49 -48
  27. package/src/stories/CardInformation.stories.js +33 -54
  28. package/src/stories/CardProject.stories.js +50 -52
  29. package/src/stories/Carousel.stories.js +32 -27
  30. package/src/stories/ChartBar.stories.js +82 -102
  31. package/src/stories/ChartLine.stories.js +42 -52
  32. package/src/stories/ChartMultiLine.stories.js +39 -49
  33. package/src/stories/ChartRainbow.stories.js +2 -2
  34. package/src/stories/ChatText.stories.js +38 -44
  35. package/src/stories/ChatsContact.stories.js +57 -54
  36. package/src/stories/ChatsDashboardTagLive.stories.js +1 -8
  37. package/src/stories/ChatsHeader.stories.js +63 -74
  38. package/src/stories/ChatsMessage.stories.js +208 -216
  39. package/src/stories/CircleProgressBar.stories.js +4 -20
  40. package/src/stories/Collapse.stories.js +49 -55
  41. package/src/stories/Comment.stories.js +57 -54
  42. package/src/stories/DataArea.stories.js +60 -65
  43. package/src/stories/DateFilter.stories.js +7 -12
  44. package/src/stories/DatePicker.stories.js +50 -68
  45. package/src/stories/Disclaimer.stories.js +12 -27
  46. package/src/stories/Drawer.stories.js +116 -110
  47. package/src/stories/Dropdown.stories.js +22 -12
  48. package/src/stories/FormElement.stories.js +18 -23
  49. package/src/stories/Grid.stories.js +4 -10
  50. package/src/stories/Icon.stories.js +2 -2
  51. package/src/stories/IconLoading.stories.js +5 -11
  52. package/src/stories/ImportCard.stories.js +12 -19
  53. package/src/stories/Indicator.stories.js +8 -13
  54. package/src/stories/InputDatePicker.stories.js +27 -32
  55. package/src/stories/LanguageSelect.stories.js +12 -16
  56. package/src/stories/Modal.stories.js +66 -40
  57. package/src/stories/MoodRating.stories.js +27 -32
  58. package/src/stories/MultiSelect.stories.js +56 -50
  59. package/src/stories/Pagination.stories.js +21 -29
  60. package/src/stories/ProgressBar.stories.js +19 -54
  61. package/src/stories/Radio.stories.js +36 -35
  62. package/src/stories/Sidebar.stories.js +29 -27
  63. package/src/stories/SidebarPrimary.stories.js +87 -80
  64. package/src/stories/SkeletonLoading.stories.js +12 -29
  65. package/src/stories/StarRating.stories.js +29 -33
  66. package/src/stories/Switch.stories.js +26 -19
  67. package/src/stories/TabsExpanded.stories.js +56 -58
  68. package/src/stories/TextArea.stories.js +29 -34
  69. package/src/stories/TransitionRipple.stories.js +19 -18
@@ -1,30 +1,29 @@
1
- import unnnicCardProject from '../components/CardProject/CardProject.vue';
2
- import unnnicDropdownItem from '../components/Dropdown/DropdownItem.vue';
3
- import unnnicIcon from '../components/Icon.vue';
1
+ import UnnnicCardProject from '../components/CardProject/CardProject.vue';
2
+ import UnnnicDropdownItem from '../components/Dropdown/DropdownItem.vue';
3
+ import UnnnicIcon from '../components/Icon.vue';
4
4
 
5
5
  export default {
6
6
  title: 'Card/CardProject',
7
- component: unnnicCardProject,
7
+ component: UnnnicCardProject,
8
8
  argTypes: {},
9
- };
10
-
11
- const Template = (args, { argTypes }) => ({
12
- props: Object.keys(argTypes),
13
-
14
- components: {
15
- unnnicCardProject,
16
- unnnicDropdownItem,
17
- unnnicIcon,
18
- },
19
-
20
- data() {
21
- return {};
22
- },
23
-
24
- template: `
25
- <div>
26
- <unnnic-card-project v-bind="$props">
27
- <template v-slot:actions>
9
+ render: (args) => ({
10
+ components: {
11
+ UnnnicCardProject,
12
+ UnnnicDropdownItem,
13
+ UnnnicIcon,
14
+ },
15
+ setup() {
16
+ return { args };
17
+ },
18
+ data() {
19
+ return {
20
+ value: true,
21
+ };
22
+ },
23
+ template: `
24
+ <div>
25
+ <unnnic-card-project v-bind="args">
26
+ <template #actions>
28
27
  <unnnic-dropdown-item>
29
28
  <unnnic-icon size="sm" icon="cog-1" />
30
29
  Configuração
@@ -37,34 +36,33 @@ const Template = (args, { argTypes }) => ({
37
36
  </template>
38
37
  </unnnic-card-project>
39
38
  </div>
40
- `,
41
-
42
- methods: {},
43
- });
44
-
45
- export const Default = Template.bind({});
39
+ `,
40
+ }),
41
+ };
46
42
 
47
- Default.args = {
48
- name: 'Nome do Projeto',
49
- actionText: 'Entrar',
50
- statuses: [
51
- {
52
- title: 'AI',
53
- icon: 'science-fiction-robot-2',
54
- scheme: 'aux-blue',
55
- count: 1,
56
- },
57
- {
58
- title: 'Flows',
59
- icon: 'hierarchy-3-2',
60
- scheme: 'aux-purple',
61
- count: 2,
62
- },
63
- {
64
- title: 'Contatos',
65
- icon: 'single-neutral-actions-1',
66
- scheme: 'aux-lemon',
67
- count: 3,
68
- },
69
- ],
43
+ export const Default = {
44
+ args: {
45
+ name: 'Nome do Projeto',
46
+ actionText: 'Entrar',
47
+ statuses: [
48
+ {
49
+ title: 'AI',
50
+ icon: 'science-fiction-robot-2',
51
+ scheme: 'aux-blue',
52
+ count: 1,
53
+ },
54
+ {
55
+ title: 'Flows',
56
+ icon: 'hierarchy-3-2',
57
+ scheme: 'aux-purple',
58
+ count: 2,
59
+ },
60
+ {
61
+ title: 'Contatos',
62
+ icon: 'single-neutral-actions-1',
63
+ scheme: 'aux-lemon',
64
+ count: 3,
65
+ },
66
+ ],
67
+ },
70
68
  };
@@ -1,39 +1,44 @@
1
- import unnnicCarousel from '../components/Carousel/Carousel.vue';
1
+ import UnnnicCarousel from '../components/Carousel/Carousel.vue';
2
2
  import iconList from '../utils/iconList';
3
3
 
4
4
  export default {
5
5
  title: 'Example/Carousel',
6
- component: unnnicCarousel,
6
+ component: UnnnicCarousel,
7
7
  argTypes: {
8
8
  type: { control: { type: 'select' }, options: ['brand'] },
9
9
  icon: { control: { type: 'select' }, options: iconList },
10
10
  },
11
+ render: (args) => ({
12
+ components: {
13
+ UnnnicCarousel,
14
+ },
15
+ setup() {
16
+ return { args };
17
+ },
18
+ data() {
19
+ return {
20
+ selecteds: [1],
21
+ };
22
+ },
23
+ template: `
24
+ <unnnic-carousel v-bind="args" v-model="selecteds" />
25
+ `,
26
+ }),
11
27
  };
12
28
 
13
- const Template = (args, { argTypes }) => ({
14
- props: Object.keys(argTypes),
15
- components: { unnnicCarousel },
16
- data() {
17
- return {
18
- selecteds: [1],
19
- };
29
+ export const Tag = {
30
+ args: {
31
+ type: 'brand',
32
+ tagItems: [
33
+ { id: 1, name: 'tag - 1' },
34
+ { id: 2, name: 'tag - 2' },
35
+ { id: 3, name: 'tag - 3' },
36
+ { id: 4, name: 'tag - 4' },
37
+ { id: 5, name: 'tag - 5' },
38
+ { id: 6, name: 'tag - 6' },
39
+ { id: 7, name: 'tag - 7' },
40
+ { id: 8, name: 'tag - 8' },
41
+ { id: 9, name: 'tag - 9' },
42
+ ],
20
43
  },
21
- template:
22
- '<div><pre>v-model: {{ selecteds }}</pre><unnnic-carousel v-bind="$props" v-model="selecteds" /></div>',
23
- });
24
-
25
- export const Tag = Template.bind({});
26
- Tag.args = {
27
- type: 'brand',
28
- tagItems: [
29
- { id: 1, name: 'tag - 1' },
30
- { id: 2, name: 'tag - 2' },
31
- { id: 3, name: 'tag - 3' },
32
- { id: 4, name: 'tag - 4' },
33
- { id: 5, name: 'tag - 5' },
34
- { id: 6, name: 'tag - 6' },
35
- { id: 7, name: 'tag - 7' },
36
- { id: 8, name: 'tag - 8' },
37
- { id: 9, name: 'tag - 9' },
38
- ],
39
44
  };
@@ -17,120 +17,100 @@ export default {
17
17
  },
18
18
  },
19
19
  };
20
-
21
- const Template = (args, { argTypes }) => ({
22
- components: {
23
- unnnicChartBar,
24
- },
25
-
26
- props: Object.keys(argTypes),
27
-
28
- template:
29
- '<unnnic-chart-bar v-bind="$props" @update="update" @previous="previous" @next="next" />',
30
- });
31
-
32
- export const Default = Template.bind({});
33
-
34
- Default.args = {
35
- title: 'Title Graph',
36
- description: 'Description graph',
37
- updateText: 'Atualizar',
38
- groups: [
39
- {
40
- values: {
41
- 'Legend 1': 1,
42
- 'Legend 2': 0.5,
20
+ export const Default = {
21
+ args: {
22
+ title: 'Title Graph',
23
+ description: 'Description graph',
24
+ updateText: 'Atualizar',
25
+ groups: [
26
+ {
27
+ values: {
28
+ 'Legend 1': 1,
29
+ 'Legend 2': 0.5,
30
+ },
31
+ title: 'Group 1',
43
32
  },
44
- title: 'Group 1',
45
- },
46
- {
47
- values: {
48
- 'Legend 1': 1,
49
- 'Legend 2': 1,
33
+ {
34
+ values: {
35
+ 'Legend 1': 1,
36
+ 'Legend 2': 1,
37
+ },
38
+ title: 'Group 2',
50
39
  },
51
- title: 'Group 2',
52
- },
53
- {
54
- values: {
55
- 'Legend 1': 1,
56
- 'Legend 2': 1,
40
+ {
41
+ values: {
42
+ 'Legend 1': 1,
43
+ 'Legend 2': 1,
44
+ },
45
+ title: 'Group 3',
57
46
  },
58
- title: 'Group 3',
59
- },
60
- {
61
- values: {
62
- 'Legend 1': 1,
63
- 'Legend 2': 1,
47
+ {
48
+ values: {
49
+ 'Legend 1': 1,
50
+ 'Legend 2': 1,
51
+ },
52
+ title: 'Group 4',
64
53
  },
65
- title: 'Group 4',
66
- },
67
- ],
68
- showFooterLegend: true,
54
+ ],
55
+ showFooterLegend: true,
56
+ },
69
57
  };
70
58
 
71
- export const Condensed = Template.bind({});
72
-
73
- Condensed.args = {
74
- condensed: true,
75
- fixedMaxValue: 1,
76
- groups: [
77
- {
78
- values: {
79
- 'Legend 1': 1,
80
- 'Legend 2': 0.5,
59
+ export const Condensed = {
60
+ args: {
61
+ condensed: true,
62
+ fixedMaxValue: 1,
63
+ groups: [
64
+ {
65
+ values: {
66
+ 'Legend 1': 1,
67
+ 'Legend 2': 0.5,
68
+ },
69
+ title: 'Group 1',
81
70
  },
82
- title: 'Group 1',
83
- },
84
- {
85
- values: {
86
- 'Legend 1': 1,
87
- 'Legend 2': 1,
71
+ {
72
+ values: {
73
+ 'Legend 1': 1,
74
+ 'Legend 2': 1,
75
+ },
76
+ title: 'Group 2',
88
77
  },
89
- title: 'Group 2',
90
- },
91
- ],
92
- };
93
-
94
- export const CondensedWithoutEventsAndTitleAndDescription = (
95
- args,
96
- { argTypes },
97
- ) => ({
98
- components: {
99
- unnnicChartBar,
78
+ ],
100
79
  },
80
+ };
101
81
 
102
- props: Object.keys(argTypes),
103
-
104
- template: '<unnnic-chart-bar v-bind="$props" />',
105
- });
106
-
107
- CondensedWithoutEventsAndTitleAndDescription.args = {
108
- condensed: true,
109
- fixedMaxValue: 1,
110
- groups: [
111
- {
112
- values: {
113
- 'Legend 1': 1,
82
+ export const CondensedWithoutEventsAndTitleAndDescription = {
83
+ args: {
84
+ condensed: true,
85
+ fixedMaxValue: 1,
86
+ groups: [
87
+ {
88
+ values: {
89
+ 'Legend 1': 1,
90
+ },
91
+ title: 'Group 1',
114
92
  },
115
- title: 'Group 1',
116
- },
117
- {
118
- values: {
119
- 'Legend 1': 1,
93
+ {
94
+ values: {
95
+ 'Legend 1': 1,
96
+ },
97
+ title: 'Group 2',
120
98
  },
121
- title: 'Group 2',
122
- },
123
- {
124
- values: {
125
- 'Legend 1': 1,
99
+ {
100
+ values: {
101
+ 'Legend 1': 1,
102
+ },
103
+ title: 'Group 3',
126
104
  },
127
- title: 'Group 3',
128
- },
129
- {
130
- values: {
131
- 'Legend 1': 0.5,
105
+ {
106
+ values: {
107
+ 'Legend 1': 0.5,
108
+ },
109
+ title: 'Group 4',
132
110
  },
133
- title: 'Group 4',
134
- },
135
- ],
111
+ ],
112
+ update: null,
113
+ previous: null,
114
+ next: null,
115
+ },
136
116
  };
@@ -6,59 +6,49 @@ export default {
6
6
  argTypes: {},
7
7
  };
8
8
 
9
- const Template = (args, { argTypes }) => ({
10
- components: {
11
- unnnicChartLine,
9
+ export const Default = {
10
+ args: {
11
+ title: 'Histórico de análises',
12
+ fixedMaxValue: 1,
13
+ data: [
14
+ {
15
+ title: 'Jan',
16
+ value: 0.5,
17
+ },
18
+ {
19
+ title: 'Fev',
20
+ value: 1,
21
+ },
22
+ {
23
+ title: 'Mar',
24
+ value: 1,
25
+ },
26
+ ],
12
27
  },
13
-
14
- props: Object.keys(argTypes),
15
-
16
- template: '<unnnic-chart-line v-bind="$props" />',
17
- });
18
-
19
- export const Default = Template.bind({});
20
-
21
- Default.args = {
22
- title: 'Histórico de análises',
23
- fixedMaxValue: 1,
24
- data: [
25
- {
26
- title: 'Jan',
27
- value: 0.5,
28
- },
29
- {
30
- title: 'Fev',
31
- value: 1,
32
- },
33
- {
34
- title: 'Mar',
35
- value: 1,
36
- },
37
- ],
38
28
  };
39
29
 
40
- export const Condensed = Template.bind({});
41
-
42
- Condensed.args = {
43
- title: 'Histórico de análises',
44
- condensed: true,
45
- fixedMaxValue: 1,
46
- data: [
47
- {
48
- title: 'Jan',
49
- value: 0,
50
- },
51
- {
52
- title: 'Fev',
53
- value: 1,
54
- },
55
- {
56
- title: 'Mar',
57
- value: 0.5,
58
- },
59
- {
60
- title: 'Abr',
61
- value: 1,
62
- },
63
- ],
30
+ export const Condensed = {
31
+ args: {
32
+ title: 'Histórico de análises',
33
+ condensed: true,
34
+ fixedMaxValue: 1,
35
+ data: [
36
+ {
37
+ title: 'Jan',
38
+ value: 0,
39
+ },
40
+ {
41
+ title: 'Fev',
42
+ value: 1,
43
+ },
44
+ {
45
+ title: 'Mar',
46
+ value: 0.5,
47
+ },
48
+ {
49
+ title: 'Abr',
50
+ value: 1,
51
+ },
52
+ ],
53
+ },
64
54
  };
@@ -6,54 +6,44 @@ export default {
6
6
  argTypes: {},
7
7
  };
8
8
 
9
- const Template = (args, { argTypes }) => ({
10
- components: {
11
- unnnicChartMultiLine,
9
+ export const Default = {
10
+ args: {
11
+ title: 'Histórico',
12
+ data: [
13
+ {
14
+ title: 'Grupo 1',
15
+ data: [
16
+ {
17
+ title: '1',
18
+ value: 5,
19
+ },
20
+ {
21
+ title: '2',
22
+ value: 7,
23
+ },
24
+ {
25
+ title: '3',
26
+ value: 9,
27
+ },
28
+ ],
29
+ },
30
+ {
31
+ title: 'Grupo 2',
32
+ data: [
33
+ {
34
+ title: '1',
35
+ value: 1,
36
+ },
37
+ {
38
+ title: '2',
39
+ value: 4,
40
+ },
41
+ {
42
+ title: '3',
43
+ value: 2,
44
+ },
45
+ ],
46
+ },
47
+ ],
12
48
  },
13
-
14
- props: Object.keys(argTypes),
15
-
16
- template: '<unnnic-chart-multi-line v-bind="$props" />',
17
- });
18
-
19
- export const Default = Template.bind({});
20
-
21
- Default.args = {
22
- title: 'Histórico',
23
- data: [
24
- {
25
- title: 'Grupo 1',
26
- data: [
27
- {
28
- title: '1',
29
- value: 5,
30
- },
31
- {
32
- title: '2',
33
- value: 7,
34
- },
35
- {
36
- title: '3',
37
- value: 9,
38
- },
39
- ],
40
- },
41
- {
42
- title: 'Grupo 2',
43
- data: [
44
- {
45
- title: '1',
46
- value: 1,
47
- },
48
- {
49
- title: '2',
50
- value: 4,
51
- },
52
- {
53
- title: '3',
54
- value: 2,
55
- },
56
- ],
57
- },
58
- ],
59
49
  };
@@ -4,14 +4,14 @@ export default {
4
4
  title: 'charts/ChartRainbow',
5
5
  component: unnnicChartRainbow,
6
6
  argTypes: {
7
- value: { control: { type: 'number', min: 0, max: 100, step: 0.1 } },
7
+ modelValue: { control: { type: 'number', min: 0, max: 100, step: 0.1 } },
8
8
  description: { control: 'text' },
9
9
  },
10
10
  };
11
11
 
12
12
  export const Default = {
13
13
  args: {
14
- value: 50,
14
+ modelValue: 50,
15
15
  description: 'Description',
16
16
  },
17
17
  };