@weni/unnnic-system 3.8.2-alpha.0 → 3.8.2-alpha.2
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/dist/assets/tokens/colors.json.d.ts +376 -0
- package/dist/components/Card/CardCompany.vue.d.ts +11 -414
- package/dist/components/Carousel/Carousel.vue.d.ts +11 -414
- package/dist/components/Carousel/TagCarousel.vue.d.ts +11 -414
- package/dist/components/ChatsContact/ChatsContact.vue.d.ts +0 -418
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/ModalUpload/ModalUpload.vue.d.ts +1 -1
- package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
- package/dist/components/SelectSmart/SelectSmart.vue.d.ts +12 -415
- package/dist/components/SelectSmart/SelectSmartMultipleHeader.vue.d.ts +11 -414
- package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
- package/dist/components/Tag/DefaultTag.vue.d.ts +4 -83
- package/dist/components/Tag/DefaultTag.vue.d.ts.map +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +12 -414
- package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Tag/types.d.ts +18 -0
- package/dist/components/Tag/types.d.ts.map +1 -0
- package/dist/components/index.d.ts +12229 -15483
- package/dist/components/index.d.ts.map +1 -1
- package/dist/{es-4bdcf86e.mjs → es-4f3d094b.mjs} +1 -1
- package/dist/{index-0d6fa367.mjs → index-43281ff3.mjs} +6777 -6600
- package/dist/{pt-br-51af7f2a.mjs → pt-br-8a34ccb7.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +1 -1
- package/dist/unnnic.umd.js +32 -36
- package/package.json +1 -1
- package/src/components/Alert/__tests__/__snapshots__/Alert.spec.js.snap +7 -11
- package/src/components/Alert/__tests__/__snapshots__/AlertBanner.spec.js.snap +2 -2
- package/src/components/Alert/__tests__/__snapshots__/Version1dot1.spec.js.snap +1 -1
- package/src/components/AvatarIcon/__tests__/__snapshots__/AvatarIcon.spec.js.snap +1 -1
- package/src/components/ChatsContact/ChatsContact.vue +10 -6
- package/src/components/Checkbox/Checkbox.vue +72 -54
- package/src/components/Collapse/__tests__/__snapshots__/Collapse.spec.js.snap +3 -1
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.spec.js.snap +3 -3
- package/src/components/Input/__test__/__snapshots__/Input.spec.js.snap +5 -14
- package/src/components/Input/__test__/__snapshots__/TextInput.spec.js.snap +1 -1
- package/src/components/Label/__tests__/__snapshots__/Label.spec.js.snap +1 -1
- package/src/components/Radio/Radio.vue +25 -7
- package/src/components/Radio/__test__/__snapshots__/Radio.spec.js.snap +3 -3
- package/src/components/Switch/Switch.vue +47 -33
- package/src/components/Switch/__tests__/__snapshots__/Switch.spec.js.snap +6 -5
- package/src/components/Tab/__test__/__snapshots__/Tab.spec.js.snap +1 -1
- package/src/components/TableNext/__test__/__snapshots__/TableNext.spec.js.snap +2 -2
- package/src/components/TableNext/__test__/__snapshots__/TablePagination.spec.js.snap +2 -2
- package/src/components/Tag/DefaultTag.vue +46 -107
- package/src/components/Tag/Tag.vue +32 -79
- package/src/components/Tag/types.ts +19 -0
- package/src/components/TextArea/__test__/__snapshots__/TextArea.spec.js.snap +3 -11
- package/src/stories/Tag.stories.js +24 -43
- package/dist/components/Tag/BrandTag.vue.d.ts +0 -51
- package/dist/components/Tag/BrandTag.vue.d.ts.map +0 -1
- package/dist/components/Tag/IndicatorTag.vue.d.ts +0 -151
- package/dist/components/Tag/IndicatorTag.vue.d.ts.map +0 -1
- package/dist/components/Tag/TagNext.vue.d.ts +0 -24
- package/dist/components/Tag/TagNext.vue.d.ts.map +0 -1
- package/src/components/Tag/BrandTag.vue +0 -96
- package/src/components/Tag/IndicatorTag.vue +0 -107
- package/src/components/Tag/TagNext.vue +0 -60
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="{
|
|
4
|
-
'unnnic-brand-tag': true,
|
|
5
|
-
'unnnic-brand-tag--disabled': !disabled,
|
|
6
|
-
'unnnic-brand-tag--clickable': clickable,
|
|
7
|
-
}"
|
|
8
|
-
>
|
|
9
|
-
<span class="unnnic-brand-tag__label">{{ text }}</span>
|
|
10
|
-
<UnnnicIcon
|
|
11
|
-
:icon="disabled ? 'close-1' : 'add-1'"
|
|
12
|
-
:scheme="disabled ? 'neutral-snow' : 'brand-weni-dark'"
|
|
13
|
-
class="unnnic-brand-tag__icon"
|
|
14
|
-
size="xs"
|
|
15
|
-
/>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
import UnnnicIcon from '../Icon.vue';
|
|
21
|
-
|
|
22
|
-
export default {
|
|
23
|
-
name: 'UnnnicBrandTag',
|
|
24
|
-
components: {
|
|
25
|
-
UnnnicIcon,
|
|
26
|
-
},
|
|
27
|
-
props: {
|
|
28
|
-
text: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: null,
|
|
31
|
-
},
|
|
32
|
-
clickable: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: false,
|
|
35
|
-
},
|
|
36
|
-
disabled: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: false,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
methods: {
|
|
42
|
-
closeClicked() {
|
|
43
|
-
if (!this.closeClicked) return;
|
|
44
|
-
this.$emit('close-click');
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
</script>
|
|
49
|
-
|
|
50
|
-
<style lang="scss" scoped>
|
|
51
|
-
@use '@/assets/scss/unnnic' as *;
|
|
52
|
-
|
|
53
|
-
.unnnic-brand-tag {
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
justify-content: center;
|
|
57
|
-
border-radius: $unnnic-border-radius-pill;
|
|
58
|
-
border: 1px solid $unnnic-color-brand-weni-soft;
|
|
59
|
-
height: 1.875 * $unnnic-font-size;
|
|
60
|
-
white-space: nowrap;
|
|
61
|
-
transition: 0.2s;
|
|
62
|
-
|
|
63
|
-
color: $unnnic-color-neutral-snow;
|
|
64
|
-
background-color: $unnnic-color-brand-weni-dark;
|
|
65
|
-
&:hover {
|
|
66
|
-
background-color: $unnnic-color-brand-weni-soft;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&--disabled {
|
|
70
|
-
color: $unnnic-color-brand-weni-dark;
|
|
71
|
-
background-color: $unnnic-color-background-snow;
|
|
72
|
-
&:hover {
|
|
73
|
-
background-color: rgba(
|
|
74
|
-
$unnnic-color-brand-weni,
|
|
75
|
-
$unnnic-opacity-level-extra-light
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
&--clickable {
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&__label {
|
|
84
|
-
font-family: $unnnic-font-family-secondary;
|
|
85
|
-
font-size: $unnnic-font-size-body-md;
|
|
86
|
-
font-weight: $unnnic-font-weight-regular;
|
|
87
|
-
line-height: ($unnnic-font-size-body-md + $unnnic-line-height-medium);
|
|
88
|
-
padding: $unnnic-spacing-stack-nano $unnnic-inline-ant;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&__icon {
|
|
92
|
-
margin-right: $unnnic-inline-ant;
|
|
93
|
-
cursor: pointer;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
</style>
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="`unnnic-tag
|
|
4
|
-
${clickable ? 'unnnic-tag--clickable' : ''}`"
|
|
5
|
-
>
|
|
6
|
-
<ToolTip
|
|
7
|
-
:enabled="enableTooltip"
|
|
8
|
-
:text="tooltipText"
|
|
9
|
-
side="bottom"
|
|
10
|
-
>
|
|
11
|
-
<span class="unnnic-tag__count">{{ count }}</span>
|
|
12
|
-
</ToolTip>
|
|
13
|
-
<span class="unnnic-tag__label">{{ text }}</span>
|
|
14
|
-
<UnnnicIcon
|
|
15
|
-
v-if="hasBackButton"
|
|
16
|
-
icon="arrow-right-1-1"
|
|
17
|
-
class="unnnic-tag__icon"
|
|
18
|
-
scheme="neutral-darkest"
|
|
19
|
-
size="xs"
|
|
20
|
-
/>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script>
|
|
25
|
-
import UnnnicIcon from '../Icon.vue';
|
|
26
|
-
import ToolTip from '../ToolTip/ToolTip.vue';
|
|
27
|
-
|
|
28
|
-
export default {
|
|
29
|
-
name: 'UnnnicTag',
|
|
30
|
-
components: {
|
|
31
|
-
UnnnicIcon,
|
|
32
|
-
ToolTip,
|
|
33
|
-
},
|
|
34
|
-
props: {
|
|
35
|
-
text: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: null,
|
|
38
|
-
},
|
|
39
|
-
tooltipText: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: null,
|
|
42
|
-
},
|
|
43
|
-
count: {
|
|
44
|
-
type: Number,
|
|
45
|
-
default: 0,
|
|
46
|
-
},
|
|
47
|
-
clickable: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: false,
|
|
50
|
-
},
|
|
51
|
-
hasBackButton: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: false,
|
|
54
|
-
},
|
|
55
|
-
enableTooltip: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: false,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
</script>
|
|
62
|
-
|
|
63
|
-
<style lang="scss" scoped>
|
|
64
|
-
@use '@/assets/scss/unnnic' as *;
|
|
65
|
-
|
|
66
|
-
.unnnic-tag {
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
border-radius: $unnnic-border-radius-sm;
|
|
71
|
-
background-color: $unnnic-color-background-sky;
|
|
72
|
-
padding: $unnnic-inset-nano;
|
|
73
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-background-sky;
|
|
74
|
-
|
|
75
|
-
&:hover {
|
|
76
|
-
border: $unnnic-border-width-thinner solid $unnnic-color-neutral-cleanest;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&--clickable {
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&__count {
|
|
84
|
-
background-color: $unnnic-color-neutral-soft;
|
|
85
|
-
border-radius: $unnnic-border-radius-sm;
|
|
86
|
-
padding: $unnnic-inline-nano;
|
|
87
|
-
font-family: $unnnic-font-family-secondary;
|
|
88
|
-
font-size: $unnnic-font-size-body-md;
|
|
89
|
-
font-weight: $unnnic-font-weight-regular;
|
|
90
|
-
line-height: ($unnnic-font-size-body-md + $unnnic-line-height-medium);
|
|
91
|
-
color: $unnnic-color-neutral-darkest;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&__label {
|
|
95
|
-
padding: 0 $unnnic-inline-xs;
|
|
96
|
-
font-family: $unnnic-font-family-secondary;
|
|
97
|
-
font-size: $unnnic-font-size-body-md;
|
|
98
|
-
font-weight: $unnnic-font-weight-regular;
|
|
99
|
-
line-height: ($unnnic-font-size-body-md + $unnnic-line-height-medium);
|
|
100
|
-
color: $unnnic-color-neutral-darkest;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&__icon {
|
|
104
|
-
margin-right: $unnnic-inline-ant;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
</style>
|
|
@@ -1,60 +0,0 @@
|
|
|
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>
|