@weni/unnnic-system 2.23.0 → 2.24.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weni/unnnic-system",
3
- "version": "2.23.0",
3
+ "version": "2.24.0",
4
4
  "type": "commonjs",
5
5
  "files": [
6
6
  "dist",
@@ -21,6 +21,7 @@
21
21
  import DefaultTag from './DefaultTag.vue';
22
22
  import IndicatorTag from './IndicatorTag.vue';
23
23
  import BrandTag from './BrandTag.vue';
24
+ import TagNext from './TagNext.vue';
24
25
 
25
26
  export default {
26
27
  name: 'UnnnicTag',
@@ -29,7 +30,7 @@ export default {
29
30
  type: String,
30
31
  default: 'default',
31
32
  validator(value) {
32
- return ['default', 'indicator', 'brand'].indexOf(value) !== -1;
33
+ return ['default', 'indicator', 'brand', 'next'].indexOf(value) !== -1;
33
34
  },
34
35
  },
35
36
  text: {
@@ -81,6 +82,7 @@ export default {
81
82
  currentComponent() {
82
83
  if (this.type === 'indicator') return IndicatorTag;
83
84
  if (this.type === 'brand') return BrandTag;
85
+ if (this.type === 'next') return TagNext;
84
86
  return DefaultTag;
85
87
  },
86
88
  },
@@ -0,0 +1,60 @@
1
+ <template>
2
+ <section :class="['unnnic-tag-next', `unnnic-tag-next--${scheme}`]">
3
+ <p class="unnnic-tag-next__text">
4
+ {{ text }}
5
+ </p>
6
+ </section>
7
+ </template>
8
+
9
+ <script>
10
+ export default {
11
+ name: 'TagNext',
12
+ props: {
13
+ text: {
14
+ type: String,
15
+ default: null,
16
+ },
17
+ scheme: {
18
+ type: String,
19
+ default: 'weni',
20
+ },
21
+ },
22
+ };
23
+ </script>
24
+
25
+ <style lang="scss" scoped>
26
+ @use '@/assets/scss/unnnic' as *;
27
+
28
+ .unnnic-tag-next {
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ width: auto;
33
+
34
+ border-radius: $unnnic-border-radius-pill;
35
+ padding: 0 $unnnic-spacing-xs;
36
+
37
+ font-family: $unnnic-font-family-secondary;
38
+ font-size: $unnnic-font-size-body-md;
39
+ font-weight: $unnnic-font-weight-regular;
40
+ line-height: ($unnnic-font-size-body-md + $unnnic-line-height-medium);
41
+
42
+ &__text {
43
+ margin: 0;
44
+
45
+ overflow: hidden;
46
+ white-space: nowrap;
47
+ text-overflow: ellipsis;
48
+ }
49
+
50
+ &--aux-purple {
51
+ background-color: $unnnic-color-aux-purple-100;
52
+ color: $unnnic-color-aux-purple-500;
53
+ }
54
+
55
+ &--weni {
56
+ background-color: $unnnic-color-weni-100;
57
+ color: $unnnic-color-weni-600;
58
+ }
59
+ }
60
+ </style>
@@ -50,6 +50,14 @@ export const CloseIcon = {
50
50
  },
51
51
  };
52
52
 
53
+ export const Next = {
54
+ args: {
55
+ text: 'Label',
56
+ type: 'next',
57
+ scheme: 'weni',
58
+ },
59
+ };
60
+
53
61
  export const Indicator = {
54
62
  args: {
55
63
  text: 'Tag Name',