@weni/unnnic-system 3.12.3-alpha.2 → 3.12.3-alpha.4

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 (32) hide show
  1. package/dist/components/Disclaimer/Disclaimer.vue.d.ts +6 -3
  2. package/dist/components/Disclaimer/Disclaimer.vue.d.ts.map +1 -1
  3. package/dist/components/Disclaimer/types.d.ts +6 -3
  4. package/dist/components/Disclaimer/types.d.ts.map +1 -1
  5. package/dist/components/MultiSelect/index.vue.d.ts.map +1 -1
  6. package/dist/components/Select/index.vue.d.ts.map +1 -1
  7. package/dist/components/index.d.ts +6 -0
  8. package/dist/components/index.d.ts.map +1 -1
  9. package/dist/components/ui/popover/PopoverContent.vue.d.ts.map +1 -1
  10. package/dist/{es-d8dee0fd.mjs → es-e4e4f53d.mjs} +1 -1
  11. package/dist/{index-97fc812f.mjs → index-492e2532.mjs} +3595 -3742
  12. package/dist/locales/en.json.d.ts +2 -1
  13. package/dist/locales/es.json.d.ts +2 -1
  14. package/dist/locales/pt_br.json.d.ts +2 -1
  15. package/dist/{pt-br-11081c69.mjs → pt-br-ac2463c3.mjs} +1 -1
  16. package/dist/style.css +1 -1
  17. package/dist/unnnic.mjs +1 -1
  18. package/dist/unnnic.umd.js +19 -19
  19. package/package.json +1 -1
  20. package/src/components/Disclaimer/Disclaimer.vue +136 -42
  21. package/src/components/Disclaimer/__tests__/Disclaimer.spec.js +70 -45
  22. package/src/components/Disclaimer/types.ts +12 -3
  23. package/src/components/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +12 -6
  24. package/src/components/MultiSelect/index.vue +1 -1
  25. package/src/components/Select/__tests__/Select.spec.js +8 -8
  26. package/src/components/Select/__tests__/__snapshots__/Select.spec.js.snap +12 -6
  27. package/src/components/Select/index.vue +45 -9
  28. package/src/components/ui/popover/PopoverContent.vue +15 -0
  29. package/src/locales/en.json +2 -1
  30. package/src/locales/es.json +2 -1
  31. package/src/locales/pt_br.json +2 -1
  32. package/src/stories/Disclaimer.stories.js +53 -12
@@ -93,6 +93,21 @@ $popover-space: $unnnic-space-4;
93
93
  .unnnic-popover {
94
94
  border-radius: $unnnic-radius-2;
95
95
  box-shadow: $unnnic-shadow-1;
96
+ border: 1px solid $unnnic-color-border-soft;
97
+
98
+ &::-webkit-scrollbar {
99
+ width: $unnnic-spacing-inline-nano;
100
+ }
101
+
102
+ &::-webkit-scrollbar-thumb {
103
+ background: $unnnic-color-neutral-cleanest;
104
+ border-radius: $unnnic-border-radius-pill;
105
+ }
106
+
107
+ &::-webkit-scrollbar-track {
108
+ background: $unnnic-color-neutral-soft;
109
+ border-radius: $unnnic-border-radius-pill;
110
+ }
96
111
 
97
112
  &--size-small {
98
113
  width: 240px;
@@ -42,5 +42,6 @@
42
42
  "custom": "Custom"
43
43
  }
44
44
  },
45
- "search": "Search"
45
+ "search": "Search",
46
+ "without_results": "No results found"
46
47
  }
@@ -42,5 +42,6 @@
42
42
  "custom": "Personalizados"
43
43
  }
44
44
  },
45
- "search": "Buscar"
45
+ "search": "Buscar",
46
+ "without_results": "No se encontró ningún resultado"
46
47
  }
@@ -42,5 +42,6 @@
42
42
  "custom": "Personalizados"
43
43
  }
44
44
  },
45
- "search": "Buscar"
45
+ "search": "Buscar",
46
+ "without_results": "Nenhum resultado encontrado"
46
47
  }
@@ -1,22 +1,63 @@
1
1
  import UnnnicDisclaimer from '../components/Disclaimer/Disclaimer.vue';
2
- import icons from '../utils/iconList';
3
- import colors from '../utils/colorsList';
4
2
 
5
3
  export default {
6
- title: 'Example/Disclaimer',
4
+ title: 'Feedback/Disclaimer',
7
5
  component: UnnnicDisclaimer,
8
- args: {},
9
6
  argTypes: {
10
- text: { control: { type: 'text' } },
11
- icon: { options: icons, control: { type: 'select' } },
12
- iconColor: { options: colors, control: { type: 'select' } },
7
+ type: {
8
+ control: { type: 'select' },
9
+ options: ['informational', 'success', 'attention', 'error', 'neutral'],
10
+ },
13
11
  },
14
12
  };
15
13
 
16
- export const Default = {
17
- args: {
18
- text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
19
- icon: 'alert-circle-1-1',
20
- iconColor: 'feedback-yellow',
14
+ const Template = (args) => ({
15
+ components: { UnnnicDisclaimer },
16
+ setup() {
17
+ return { args };
21
18
  },
19
+ template: '<UnnnicDisclaimer v-bind="args" />',
20
+ });
21
+
22
+ export const Default = Template.bind({});
23
+ Default.args = {
24
+ title: 'Disclaimer',
25
+ description: 'The quick brown fox jumps over the lazy dog',
26
+ type: 'informational',
27
+ };
28
+
29
+ export const Success = Template.bind({});
30
+ Success.args = {
31
+ ...Default.args,
32
+ type: 'success',
33
+ };
34
+
35
+ export const Attention = Template.bind({});
36
+ Attention.args = {
37
+ ...Default.args,
38
+ type: 'attention',
39
+ };
40
+
41
+ export const ErrorState = Template.bind({});
42
+ ErrorState.args = {
43
+ ...Default.args,
44
+ type: 'error',
45
+ };
46
+
47
+ export const Neutral = Template.bind({});
48
+ Neutral.args = {
49
+ ...Default.args,
50
+ type: 'neutral',
51
+ };
52
+
53
+ export const OnlyTitle = Template.bind({});
54
+ OnlyTitle.args = {
55
+ ...Default.args,
56
+ description: '',
57
+ };
58
+
59
+ export const OnlyDescription = Template.bind({});
60
+ OnlyDescription.args = {
61
+ ...Default.args,
62
+ title: '',
22
63
  };