@weni/unnnic-system 1.3.2 → 1.3.3
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/unnnic.common.js +825 -925
- package/dist/unnnic.common.js.map +1 -1
- package/dist/unnnic.css +1 -1
- package/dist/unnnic.umd.js +825 -925
- package/dist/unnnic.umd.js.map +1 -1
- package/dist/unnnic.umd.min.js +67 -67
- package/dist/unnnic.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/icons/graph-stats-descend-2.svg +4 -4
- package/src/components/Accordion/Accordion.vue +1 -1
- package/src/components/Alert/Alert.vue +1 -1
- package/src/components/Alert/Version1dot1.vue +1 -1
- package/src/components/AvatarIcon/AvatarIcon.vue +1 -1
- package/src/components/Banner/InfoBanner.vue +1 -1
- package/src/components/Breadcrumb/Breadcrumb.vue +1 -1
- package/src/components/Button/Button.vue +1 -1
- package/src/components/Button/ButtonIcon.vue +1 -1
- package/src/components/Card/BlankCard.vue +1 -1
- package/src/components/Card/CardCompany.vue +1 -1
- package/src/components/Card/CardData.vue +1 -1
- package/src/components/Card/ContentCard.vue +1 -1
- package/src/components/Card/DashCard.vue +1 -1
- package/src/components/Card/MarketplaceCard.vue +1 -1
- package/src/components/Card/StatusCard.vue +1 -1
- package/src/components/Card/TitleCard.vue +1 -1
- package/src/components/CardProject/CardProject.vue +1 -1
- package/src/components/Carousel/TagCarousel.vue +1 -1
- package/src/components/ChatText/ChatText.vue +1 -1
- package/src/components/Checkbox/Checkbox.vue +1 -1
- package/src/components/Dropdown/LanguageSelect.vue +1 -1
- package/src/components/Flag.vue +1 -1
- package/src/components/Icon.vue +92 -61
- package/src/components/Input/TextInput.vue +1 -1
- package/src/components/Modal/Modal.vue +1 -1
- package/src/components/ModalUpload/ModalUpload.vue +1 -1
- package/src/components/MultiSelect/MultiSelect.vue +1 -1
- package/src/components/Radio/Radio.vue +1 -1
- package/src/components/Sidebar/SidebarItem.vue +1 -1
- package/src/components/Sidebar/SidebarPrimary.vue +1 -1
- package/src/components/Switch/Switch.vue +1 -1
- package/src/components/Tag/BrandTag.vue +1 -1
- package/src/components/Tag/DefaultTag.vue +1 -1
- package/src/components/Tag/IndicatorTag.vue +1 -1
- package/src/components/UploadArea/UploadArea.vue +1 -1
- package/src/components/index.js +2 -3
- package/src/stories/CardProject.stories.js +1 -1
- package/src/stories/Comment.stories.js +2 -2
- package/src/stories/Icon.stories.js +37 -12
- package/dist/fonts/icomoon.0357f645.eot +0 -0
- package/dist/fonts/icomoon.a58994c5.ttf +0 -0
- package/dist/fonts/icomoon.ba966620.woff +0 -0
- package/dist/img/icomoon.fcc6d2c8.svg +0 -164
- package/src/components/Icon-svg.vue +0 -147
- package/src/stories/IconSvg.stories.js +0 -48
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span
|
|
3
|
-
@click="onClick"
|
|
4
|
-
:class="[
|
|
5
|
-
'unnnic-icon',
|
|
6
|
-
`unnnic-icon__size--${size}`,
|
|
7
|
-
clickable ? 'unnnic--clickable' : '',
|
|
8
|
-
lineHeight ? `unnnic-icon__line-height--${lineHeight}` : '',
|
|
9
|
-
scheme ? `unnnic-icon-scheme--${scheme}` : '',
|
|
10
|
-
]"
|
|
11
|
-
v-html="svg" />
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script>
|
|
15
|
-
import icons from '../utils/icons';
|
|
16
|
-
|
|
17
|
-
export default {
|
|
18
|
-
name: 'uIcon',
|
|
19
|
-
props: {
|
|
20
|
-
icon: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: null,
|
|
23
|
-
},
|
|
24
|
-
clickable: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: false,
|
|
27
|
-
},
|
|
28
|
-
size: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: 'md',
|
|
31
|
-
validator(value) {
|
|
32
|
-
return ['nano', 'xs', 'sm', 'ant', 'md', 'lg', 'xl'].indexOf(value) !== -1;
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
lineHeight: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: null,
|
|
38
|
-
validator(value) {
|
|
39
|
-
return !value || ['sm', 'md', 'lg'].indexOf(value) !== -1;
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
scheme: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: '',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
mounted() {},
|
|
48
|
-
computed: {
|
|
49
|
-
svg() {
|
|
50
|
-
return icons[this.icon];
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
methods: {
|
|
54
|
-
onClick() {
|
|
55
|
-
if (!this.clickable) return;
|
|
56
|
-
this.$emit('click');
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
</script>
|
|
61
|
-
|
|
62
|
-
<style lang="scss" scoped>
|
|
63
|
-
@import "../assets/scss/unnnic.scss";
|
|
64
|
-
|
|
65
|
-
.unnnic-icon ::v-deep svg {
|
|
66
|
-
position: absolute;
|
|
67
|
-
top: 0;
|
|
68
|
-
left: 0;
|
|
69
|
-
}
|
|
70
|
-
</style>
|
|
71
|
-
|
|
72
|
-
<style lang="scss">
|
|
73
|
-
@import "../assets/scss/unnnic.scss";
|
|
74
|
-
|
|
75
|
-
$scheme-colors: "feedback-red" $unnnic-color-feedback-red,
|
|
76
|
-
"feedback-green" $unnnic-color-feedback-green, "feedback-yellow" $unnnic-color-feedback-yellow,
|
|
77
|
-
"feedback-blue" $unnnic-color-feedback-blue, "feedback-grey" $unnnic-color-feedback-grey,
|
|
78
|
-
"aux-blue" $unnnic-color-aux-blue, "aux-purple" $unnnic-color-aux-purple,
|
|
79
|
-
"aux-orange" $unnnic-color-aux-orange, "aux-lemon" $unnnic-color-aux-lemon,
|
|
80
|
-
"aux-pink" $unnnic-color-aux-pink,
|
|
81
|
-
"brand-weni" $unnnic-color-brand-weni,
|
|
82
|
-
"brand-weni-soft" $unnnic-color-brand-weni-soft,
|
|
83
|
-
"brand-weni-dark" $unnnic-color-brand-weni-dark,
|
|
84
|
-
"brand-sec" $unnnic-color-brand-sec,
|
|
85
|
-
"neutral-clean" $unnnic-color-neutral-clean,
|
|
86
|
-
"neutral-cleanest" $unnnic-color-neutral-cleanest,
|
|
87
|
-
"neutral-dark" $unnnic-color-neutral-dark,
|
|
88
|
-
"neutral-soft" $unnnic-color-neutral-soft,
|
|
89
|
-
"neutral-darkest" $unnnic-color-neutral-darkest,
|
|
90
|
-
"neutral-cloudy" $unnnic-color-neutral-cloudy,
|
|
91
|
-
"neutral-snow" $unnnic-color-neutral-snow,
|
|
92
|
-
"background-snow" $unnnic-color-background-snow;
|
|
93
|
-
|
|
94
|
-
@each $name, $color in $scheme-colors {
|
|
95
|
-
.unnnic-icon-scheme {
|
|
96
|
-
&--#{$name} {
|
|
97
|
-
& .primary {
|
|
98
|
-
fill: $color;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
& .primary-stroke {
|
|
102
|
-
stroke: $color;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
$icon-sizes:
|
|
109
|
-
'xl' $unnnic-icon-size-xl,
|
|
110
|
-
'lg' $unnnic-icon-size-lg,
|
|
111
|
-
'md' $unnnic-icon-size-md,
|
|
112
|
-
'ant' $unnnic-icon-size-ant,
|
|
113
|
-
'sm' $unnnic-icon-size-sm,
|
|
114
|
-
'xs' $unnnic-icon-size-xs;
|
|
115
|
-
|
|
116
|
-
$line-heights:
|
|
117
|
-
'sm' $unnnic-line-height-small,
|
|
118
|
-
'md' $unnnic-line-height-medium,
|
|
119
|
-
'lg' $unnnic-line-height-large;
|
|
120
|
-
|
|
121
|
-
.unnnic-icon {
|
|
122
|
-
position: relative;
|
|
123
|
-
display: inline-block;
|
|
124
|
-
vertical-align: middle;
|
|
125
|
-
|
|
126
|
-
@each $name, $size in $icon-sizes {
|
|
127
|
-
&__size--#{$name} {
|
|
128
|
-
width: $size;
|
|
129
|
-
height: $size;
|
|
130
|
-
min-width: $size;
|
|
131
|
-
min-height: $size;
|
|
132
|
-
|
|
133
|
-
@each $line-name, $line-size in $line-heights {
|
|
134
|
-
&.unnnic-icon__line-height--#{$line-name} svg {
|
|
135
|
-
position: relative;
|
|
136
|
-
top: (($size + $line-size) - ($size*1.2))/1.2;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
svg {
|
|
143
|
-
width: 100%;
|
|
144
|
-
height: 100%;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
</style>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import unnnicIconSvg from '../components/Icon-svg.vue';
|
|
2
|
-
import icons from '../utils/icons';
|
|
3
|
-
|
|
4
|
-
const iconsOptions = Object.keys(icons);
|
|
5
|
-
|
|
6
|
-
const schemes = [
|
|
7
|
-
'feedback-red',
|
|
8
|
-
'feedback-green',
|
|
9
|
-
'feedback-yellow',
|
|
10
|
-
'feedback-blue',
|
|
11
|
-
'feedback-grey',
|
|
12
|
-
'aux-blue',
|
|
13
|
-
'aux-purple',
|
|
14
|
-
'aux-orange',
|
|
15
|
-
'aux-lemon',
|
|
16
|
-
'aux-pink',
|
|
17
|
-
'brand-weni',
|
|
18
|
-
'brand-weni-soft',
|
|
19
|
-
'neutral-clean',
|
|
20
|
-
'neutral-cleanest',
|
|
21
|
-
'neutral-dark',
|
|
22
|
-
'neutral-soft',
|
|
23
|
-
'neutral-darkest',
|
|
24
|
-
];
|
|
25
|
-
|
|
26
|
-
export default {
|
|
27
|
-
title: 'example/IconSvg',
|
|
28
|
-
component: unnnicIconSvg,
|
|
29
|
-
argTypes: {
|
|
30
|
-
icon: { control: { type: 'select', options: iconsOptions } },
|
|
31
|
-
scheme: { control: { type: 'select', options: schemes } },
|
|
32
|
-
size: { control: { type: 'select', options: ['nano', 'xs', 'sm', 'md', 'lg'] } },
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const Template = (args, { argTypes }) => ({
|
|
37
|
-
props: Object.keys(argTypes),
|
|
38
|
-
components: { unnnicIconSvg },
|
|
39
|
-
template: `
|
|
40
|
-
<unnnic-icon-svg v-bind="$props" />
|
|
41
|
-
`,
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export const Normal = Template.bind({});
|
|
45
|
-
|
|
46
|
-
Normal.args = {
|
|
47
|
-
icon: iconsOptions[0],
|
|
48
|
-
};
|