@eturnity/eturnity_reusable_components 7.30.3-EPDM-10647.0 → 7.30.3-EPDM-10576.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/.eslintrc.js +184 -0
- package/.prettierrc +8 -6
- package/package.json +9 -21
- package/src/App.vue +79 -78
- package/src/assets/theme.js +3 -3
- package/src/components/addNewButton/AddNewButton.stories.js +2 -2
- package/src/components/addNewButton/index.vue +48 -51
- package/src/components/banner/actionBanner/index.vue +54 -55
- package/src/components/banner/banner/banner.stories.js +5 -5
- package/src/components/banner/banner/index.vue +159 -159
- package/src/components/banner/infoBanner/index.vue +41 -53
- package/src/components/buttons/buttonIcon/index.vue +125 -122
- package/src/components/buttons/closeButton/CloseButton.stories.js +3 -3
- package/src/components/buttons/closeButton/index.vue +49 -49
- package/src/components/buttons/mainButton/index.vue +108 -108
- package/src/components/card/index.vue +70 -70
- package/src/components/collapsableInfoText/index.vue +96 -94
- package/src/components/deleteIcon/DeleteIcon.stories.js +4 -4
- package/src/components/deleteIcon/index.vue +54 -54
- package/src/components/draggableInputHandle/index.vue +37 -37
- package/src/components/dropdown/Dropdown.stories.js +9 -10
- package/src/components/dropdown/index.vue +106 -106
- package/src/components/errorMessage/index.vue +52 -52
- package/src/components/filter/filterSettings.vue +486 -452
- package/src/components/filter/index.vue +135 -135
- package/src/components/filter/parentDropdown.vue +73 -73
- package/src/components/icon/Icons.stories.js +7 -7
- package/src/components/icon/iconCollection.vue +53 -53
- package/src/components/icon/index.vue +122 -122
- package/src/components/iconWrapper/index.vue +156 -156
- package/src/components/infoCard/index.vue +30 -32
- package/src/components/infoText/index.vue +142 -137
- package/src/components/inputs/checkbox/Checkbox.stories.js +8 -8
- package/src/components/inputs/checkbox/index.vue +190 -180
- package/src/components/inputs/inputNumber/InputNumber.stories.js +41 -41
- package/src/components/inputs/inputNumber/index.vue +696 -701
- package/src/components/inputs/inputNumberQuestion/index.vue +185 -182
- package/src/components/inputs/inputText/InputText.stories.js +22 -22
- package/src/components/inputs/inputText/index.vue +337 -336
- package/src/components/inputs/radioButton/RadioButton.stories.js +16 -16
- package/src/components/inputs/radioButton/index.vue +222 -219
- package/src/components/inputs/searchInput/SearchInput.stories.js +8 -8
- package/src/components/inputs/searchInput/index.vue +127 -126
- package/src/components/inputs/select/index.vue +792 -792
- package/src/components/inputs/select/option/index.vue +124 -124
- package/src/components/inputs/select/select.stories.js +31 -32
- package/src/components/inputs/slider/index.vue +99 -99
- package/src/components/inputs/switchField/index.vue +220 -222
- package/src/components/inputs/textAreaInput/TextAreaInput.stories.js +57 -57
- package/src/components/inputs/textAreaInput/index.vue +171 -173
- package/src/components/inputs/toggle/Toggle.stories.js +14 -14
- package/src/components/inputs/toggle/index.vue +214 -217
- package/src/components/label/index.vue +82 -82
- package/src/components/markerItem/index.vue +68 -66
- package/src/components/modals/actionModal/index.vue +54 -54
- package/src/components/modals/infoModal/index.vue +39 -36
- package/src/components/modals/modal/index.vue +134 -134
- package/src/components/modals/modal/modal.stories.js +5 -5
- package/src/components/navigationTabs/index.vue +96 -94
- package/src/components/pageSubtitle/index.vue +55 -49
- package/src/components/pageTitle/index.vue +56 -56
- package/src/components/pagination/index.vue +92 -89
- package/src/components/progressBar/index.vue +107 -107
- package/src/components/projectMarker/index.vue +246 -244
- package/src/components/rangeSlider/Slider.vue +491 -465
- package/src/components/rangeSlider/index.vue +410 -410
- package/src/components/rangeSlider/utils/dom.js +5 -5
- package/src/components/selectedOptions/index.vue +119 -119
- package/src/components/sideMenu/index.vue +199 -199
- package/src/components/spinner/index.vue +57 -57
- package/src/components/tableDropdown/index.vue +520 -520
- package/src/components/tables/mainTable/index.vue +417 -400
- package/src/components/tables/viewTable/index.vue +171 -171
- package/src/components/threeDots/index.vue +340 -334
- package/src/components/videoThumbnail/index.vue +86 -86
- package/src/components/videoThumbnail/videoThumbnail.stories.js +14 -16
- package/src/helpers/numberConverter.js +2 -2
- package/src/helpers/translateLang.js +9 -9
- package/src/mixins/inputValidations.js +5 -5
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/src/utils/index.js +0 -12
@@ -1,140 +1,140 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
:
|
2
|
+
<Wrapper :cursor="cursor" :disabled="disabled" :size="size">
|
3
|
+
<IconImage
|
4
|
+
:animation="animation"
|
5
5
|
:background-color="backgroundColor"
|
6
|
+
:color="color"
|
6
7
|
:hovered-color="hoveredColor"
|
7
|
-
:animation="animation"
|
8
8
|
>
|
9
|
-
<i v-html="icon.html"
|
10
|
-
</
|
11
|
-
<
|
12
|
-
</
|
9
|
+
<i v-html="icon.html"></i>
|
10
|
+
</IconImage>
|
11
|
+
<StrikedLine v-if="isStriked" :color="color" />
|
12
|
+
</Wrapper>
|
13
13
|
</template>
|
14
14
|
|
15
15
|
<script setup>
|
16
|
-
// import Icon from "@eturnity/eturnity_reusable_components/src/components/icon"
|
17
|
-
// How to use:
|
18
|
-
//<icon
|
19
|
-
// name="House" //required. a svg file named [name].svg should be present in /assets/svgIcons
|
20
|
-
// color="red"
|
21
|
-
// hoveredColor="blue"
|
22
|
-
// size="60px" by default, this is 30px
|
23
|
-
// cursor="default"
|
24
|
-
// isStriked = "true"
|
25
|
-
// />
|
16
|
+
// import Icon from "@eturnity/eturnity_reusable_components/src/components/icon"
|
17
|
+
// How to use:
|
18
|
+
//<icon
|
19
|
+
// name="House" //required. a svg file named [name].svg should be present in /assets/svgIcons
|
20
|
+
// color="red"
|
21
|
+
// hoveredColor="blue"
|
22
|
+
// size="60px" by default, this is 30px
|
23
|
+
// cursor="default"
|
24
|
+
// isStriked = "true"
|
25
|
+
// />
|
26
26
|
|
27
|
-
import { onMounted, reactive, watch } from 'vue'
|
28
|
-
import styled from 'vue3-styled-components'
|
29
|
-
import { fetchIcon } from './iconCache'
|
27
|
+
import { onMounted, reactive, watch } from 'vue'
|
28
|
+
import styled from 'vue3-styled-components'
|
29
|
+
import { fetchIcon } from './iconCache'
|
30
30
|
|
31
|
-
const props = defineProps({
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
})
|
31
|
+
const props = defineProps({
|
32
|
+
disabled: {
|
33
|
+
required: false,
|
34
|
+
default: false,
|
35
|
+
},
|
36
|
+
name: {
|
37
|
+
required: true,
|
38
|
+
},
|
39
|
+
color: {
|
40
|
+
required: false,
|
41
|
+
},
|
42
|
+
hoveredColor: {
|
43
|
+
required: false,
|
44
|
+
},
|
45
|
+
size: {
|
46
|
+
required: false,
|
47
|
+
default: '30px',
|
48
|
+
},
|
49
|
+
cursor: {
|
50
|
+
required: false,
|
51
|
+
default: null,
|
52
|
+
},
|
53
|
+
isStriked: {
|
54
|
+
required: false,
|
55
|
+
default: false,
|
56
|
+
},
|
57
|
+
backgroundColor: {
|
58
|
+
required: false,
|
59
|
+
default: null,
|
60
|
+
},
|
61
|
+
animation: {
|
62
|
+
required: false,
|
63
|
+
default: 'none',
|
64
|
+
},
|
65
|
+
})
|
66
66
|
|
67
|
-
const Wrapper = styled('div', {
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
})`
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
`
|
67
|
+
const Wrapper = styled('div', {
|
68
|
+
size: String,
|
69
|
+
disabled: Boolean,
|
70
|
+
cursor: String,
|
71
|
+
})`
|
72
|
+
display: flex;
|
73
|
+
position: relative;
|
74
|
+
align-content: center;
|
75
|
+
justify-content: center;
|
76
|
+
width: ${(props) => props.size};
|
77
|
+
height: ${(props) => props.size};
|
78
|
+
min-width: ${(props) => props.size};
|
79
|
+
min-height: ${(props) => props.size};
|
80
|
+
cursor: ${(props) => (props.disabled ? 'not-allowed' : props.cursor)};
|
81
|
+
line-height: 0;
|
82
|
+
`
|
83
83
|
|
84
|
-
const StrikedLine = styled('div', { color: String })`
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
`
|
99
|
-
const IconImage = styled('div', {
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
})`
|
105
|
-
|
106
|
-
width: 100%;
|
107
|
-
svg {
|
84
|
+
const StrikedLine = styled('div', { color: String })`
|
85
|
+
display: flex;
|
86
|
+
position: absolute;
|
87
|
+
bottom: 0;
|
88
|
+
left: 0;
|
89
|
+
align-content: center;
|
90
|
+
justify-content: center;
|
91
|
+
width: 143%;
|
92
|
+
height: 8%;
|
93
|
+
background-color: ${({ theme, color }) => theme.colors[color] || color};
|
94
|
+
min-height: 0;
|
95
|
+
line-height: 0;
|
96
|
+
transform-origin: 0% 100%;
|
97
|
+
transform: rotate(-45deg);
|
98
|
+
`
|
99
|
+
const IconImage = styled('div', {
|
100
|
+
color: String,
|
101
|
+
backgroundColor: String,
|
102
|
+
hoveredColor: String,
|
103
|
+
animation: String,
|
104
|
+
})`
|
105
|
+
animation: ${(props) => props.animation};
|
108
106
|
width: 100%;
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
${({ theme, color }) => color && `fill: ${theme.colors[color] || color};`}
|
116
|
-
}
|
117
|
-
&:hover svg path {
|
118
|
-
${({ theme, hoveredColor }) =>
|
119
|
-
hoveredColor && `fill: ${theme.colors[hoveredColor] || hoveredColor};`}
|
120
|
-
}
|
121
|
-
&:hover + div {
|
122
|
-
background-color: ${(props) => props.hoveredColor};
|
123
|
-
}
|
124
|
-
@keyframes fade {
|
125
|
-
50% {
|
126
|
-
opacity: 0.3;
|
107
|
+
svg {
|
108
|
+
width: 100%;
|
109
|
+
height: 100%;
|
110
|
+
background-color: ${(props) =>
|
111
|
+
props.backgroundColor ? props.backgroundColor : 'transparent'};
|
112
|
+
padding: ${(props) => (props.backgroundColor ? '3px' : '0')};
|
127
113
|
}
|
128
|
-
|
129
|
-
`
|
114
|
+
svg path {
|
115
|
+
${({ theme, color }) => color && `fill: ${theme.colors[color] || color};`}
|
116
|
+
}
|
117
|
+
&:hover svg path {
|
118
|
+
${({ theme, hoveredColor }) =>
|
119
|
+
hoveredColor && `fill: ${theme.colors[hoveredColor] || hoveredColor};`}
|
120
|
+
}
|
121
|
+
&:hover + div {
|
122
|
+
background-color: ${(props) => props.hoveredColor};
|
123
|
+
}
|
124
|
+
@keyframes fade {
|
125
|
+
50% {
|
126
|
+
opacity: 0.3;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
`
|
130
130
|
|
131
|
-
const icon = reactive({ html: '' })
|
131
|
+
const icon = reactive({ html: '' })
|
132
132
|
|
133
|
-
const loadSvg = async () => {
|
134
|
-
|
135
|
-
}
|
133
|
+
const loadSvg = async () => {
|
134
|
+
icon.html = await fetchIcon(props.name.toLowerCase())
|
135
|
+
}
|
136
136
|
|
137
|
-
onMounted(() => loadSvg())
|
137
|
+
onMounted(() => loadSvg())
|
138
138
|
|
139
|
-
watch(() => props.name, loadSvg)
|
139
|
+
watch(() => props.name, loadSvg)
|
140
140
|
</script>
|
@@ -1,179 +1,179 @@
|
|
1
1
|
<template>
|
2
2
|
<Wrapper
|
3
|
-
:
|
4
|
-
:
|
5
|
-
:backgroundColor="backgroundColor"
|
6
|
-
:borderRadius="borderRadius"
|
7
|
-
:hasBorder="hasBorder"
|
3
|
+
:background-color="backgroundColor"
|
4
|
+
:border-radius="borderRadius"
|
8
5
|
:color="iconColor"
|
9
|
-
:hoveredBackgroundColor="hoveredBackgroundColor"
|
10
|
-
:isHovered="isHovered"
|
11
6
|
:data-id="dataId"
|
12
|
-
:
|
7
|
+
:disabled="disabled"
|
8
|
+
:has-border="hasBorder"
|
9
|
+
:hovered-background-color="hoveredBackgroundColor"
|
10
|
+
:is-hovered="isHovered"
|
11
|
+
:no-cursor="noCursor"
|
12
|
+
:size="size"
|
13
13
|
>
|
14
|
-
<
|
14
|
+
<RCIcon
|
15
|
+
:animation="isLoading ? 'fade 3s infinite' : 'none'"
|
16
|
+
:color="iconColor"
|
15
17
|
:disabled="disabled"
|
16
|
-
:
|
18
|
+
:hovered-color="hoveredIconColor"
|
19
|
+
:is-striked="isStriked"
|
17
20
|
:name="name"
|
18
|
-
:
|
19
|
-
:hoveredColor="hoveredIconColor"
|
20
|
-
:isStriked="isStriked"
|
21
|
-
:animation="isLoading ? 'fade 3s infinite' : 'none'"
|
21
|
+
:size="iconSize"
|
22
22
|
/>
|
23
23
|
|
24
|
-
<
|
25
|
-
<
|
24
|
+
<CaretIcon v-if="hasCaret">
|
25
|
+
<IconWrapper
|
26
|
+
border-radius="1px"
|
26
27
|
:disabled="disabled"
|
27
|
-
|
28
|
+
:hovered-background-color="hoveredIconColor"
|
29
|
+
:icon-color="iconColor"
|
28
30
|
name="arrow_down"
|
29
|
-
|
30
|
-
:hoveredBackgroundColor="hoveredIconColor"
|
31
|
-
borderRadius="1px"
|
31
|
+
size="10px"
|
32
32
|
/>
|
33
|
-
</
|
34
|
-
<
|
35
|
-
<
|
36
|
-
</
|
33
|
+
</CaretIcon>
|
34
|
+
<LockContainer v-if="hasLock">
|
35
|
+
<RCIcon color="yellow" name="lock" size="9px" />
|
36
|
+
</LockContainer>
|
37
37
|
</Wrapper>
|
38
38
|
</template>
|
39
39
|
|
40
40
|
<script>
|
41
|
-
// import Icon from "@eturnity/eturnity_reusable_components/src/components/icon"
|
42
|
-
// How to use:
|
43
|
-
//<icon
|
44
|
-
// name="House" //required. a svg file named [name].svg should be present in /assets/svgIcons
|
45
|
-
// color="red"
|
46
|
-
// hoveredColor="blue"
|
47
|
-
// size="60px" by default, this is 30px
|
48
|
-
// />
|
41
|
+
// import Icon from "@eturnity/eturnity_reusable_components/src/components/icon"
|
42
|
+
// How to use:
|
43
|
+
//<icon
|
44
|
+
// name="House" //required. a svg file named [name].svg should be present in /assets/svgIcons
|
45
|
+
// color="red"
|
46
|
+
// hoveredColor="blue"
|
47
|
+
// size="60px" by default, this is 30px
|
48
|
+
// />
|
49
49
|
|
50
|
-
import styled from 'vue3-styled-components'
|
51
|
-
import
|
50
|
+
import styled from 'vue3-styled-components'
|
51
|
+
import RCIcon from '../icon'
|
52
52
|
|
53
|
-
const wrapperAttrs = {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
}
|
64
|
-
const lockContainer = styled.div`
|
65
|
-
position: absolute;
|
66
|
-
bottom: 6px;
|
67
|
-
right: 6px;
|
68
|
-
`
|
69
|
-
const Wrapper = styled('div', wrapperAttrs)`
|
70
|
-
position: relative;
|
71
|
-
display: inline-flex;
|
72
|
-
width: ${(props) => props.size};
|
73
|
-
height: ${(props) => props.size};
|
74
|
-
border: ${(props) =>
|
75
|
-
props.hasBorder
|
76
|
-
? 'solid 1px ' + props.theme.colors[props.color] || props.color
|
77
|
-
: ''};
|
78
|
-
justify-content: center;
|
79
|
-
align-items: center;
|
80
|
-
cursor: ${(props) =>
|
81
|
-
props.noCursor ? 'auto' : props.disabled ? 'not-allowed' : 'pointer'};
|
82
|
-
background-color: ${(props) =>
|
83
|
-
props.theme.colors[props.backgroundColor] || props.backgroundColor};
|
84
|
-
border-radius: ${(props) => props.borderRadius};
|
85
|
-
${(props) =>
|
86
|
-
props.isHovered
|
87
|
-
? 'background-color:' +
|
88
|
-
props.theme.colors[props.hoveredBackgroundColor] ||
|
89
|
-
props.hoveredBackgroundColor
|
90
|
-
: ''};
|
91
|
-
&:hover {
|
92
|
-
background-color: ${(props) =>
|
93
|
-
props.theme.colors[props.hoveredBackgroundColor] ||
|
94
|
-
props.hoveredBackgroundColor};
|
53
|
+
const wrapperAttrs = {
|
54
|
+
color: String,
|
55
|
+
isHovered: Boolean,
|
56
|
+
borderRadius: String,
|
57
|
+
disabled: Boolean,
|
58
|
+
size: String,
|
59
|
+
backgroundColor: String,
|
60
|
+
hoveredBackgroundColor: String,
|
61
|
+
hasBorder: Boolean,
|
62
|
+
noCursor: Boolean,
|
95
63
|
}
|
96
|
-
`
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
64
|
+
const LockContainer = styled.div`
|
65
|
+
position: absolute;
|
66
|
+
bottom: 6px;
|
67
|
+
right: 6px;
|
68
|
+
`
|
69
|
+
const Wrapper = styled('div', wrapperAttrs)`
|
70
|
+
position: relative;
|
71
|
+
display: inline-flex;
|
72
|
+
width: ${(props) => props.size};
|
73
|
+
height: ${(props) => props.size};
|
74
|
+
border: ${(props) =>
|
75
|
+
props.hasBorder
|
76
|
+
? 'solid 1px ' + props.theme.colors[props.color] || props.color
|
77
|
+
: ''};
|
78
|
+
justify-content: center;
|
79
|
+
align-items: center;
|
80
|
+
cursor: ${(props) =>
|
81
|
+
props.noCursor ? 'auto' : props.disabled ? 'not-allowed' : 'pointer'};
|
82
|
+
background-color: ${(props) =>
|
83
|
+
props.theme.colors[props.backgroundColor] || props.backgroundColor};
|
84
|
+
border-radius: ${(props) => props.borderRadius};
|
85
|
+
${(props) =>
|
86
|
+
props.isHovered
|
87
|
+
? 'background-color:' +
|
88
|
+
props.theme.colors[props.hoveredBackgroundColor] ||
|
89
|
+
props.hoveredBackgroundColor
|
90
|
+
: ''};
|
91
|
+
&:hover {
|
92
|
+
background-color: ${(props) =>
|
93
|
+
props.theme.colors[props.hoveredBackgroundColor] ||
|
94
|
+
props.hoveredBackgroundColor};
|
95
|
+
}
|
96
|
+
`
|
97
|
+
const CaretIcon = styled.div`
|
98
|
+
position: absolute;
|
99
|
+
bottom: 3px;
|
100
|
+
right: 2px;
|
101
|
+
height: 10px;
|
102
|
+
`
|
103
103
|
|
104
|
-
export default {
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
104
|
+
export default {
|
105
|
+
name: 'IconWrapper',
|
106
|
+
components: {
|
107
|
+
Wrapper,
|
108
|
+
RCIcon,
|
109
|
+
CaretIcon,
|
110
|
+
LockContainer,
|
111
|
+
},
|
112
|
+
props: {
|
113
|
+
disabled: {
|
114
|
+
required: false,
|
115
|
+
default: false,
|
116
|
+
},
|
117
|
+
name: {
|
118
|
+
required: true,
|
119
|
+
},
|
120
|
+
iconColor: {
|
121
|
+
required: false,
|
122
|
+
default: 'white',
|
123
|
+
},
|
124
|
+
hoveredIconColor: {
|
125
|
+
required: false,
|
126
|
+
},
|
127
|
+
backgroundColor: {
|
128
|
+
required: false,
|
129
|
+
},
|
130
|
+
hasBorder: {
|
131
|
+
required: false,
|
132
|
+
},
|
133
|
+
hoveredBackgroundColor: {
|
134
|
+
required: false,
|
135
|
+
default: 'transparentWhite2',
|
136
|
+
},
|
137
|
+
size: {
|
138
|
+
required: false,
|
139
|
+
default: '32px',
|
140
|
+
},
|
141
|
+
iconSize: {
|
142
|
+
required: false,
|
143
|
+
default: '18px',
|
144
|
+
},
|
145
|
+
hasCaret: {
|
146
|
+
required: false,
|
147
|
+
default: false,
|
148
|
+
},
|
149
|
+
borderRadius: {
|
150
|
+
required: false,
|
151
|
+
default: '6px',
|
152
|
+
},
|
153
|
+
dataId: {
|
154
|
+
type: String,
|
155
|
+
default: '',
|
156
|
+
},
|
157
|
+
isHovered: {
|
158
|
+
required: false,
|
159
|
+
default: false,
|
160
|
+
},
|
161
|
+
isStriked: {
|
162
|
+
required: false,
|
163
|
+
default: false,
|
164
|
+
},
|
165
|
+
isLoading: {
|
166
|
+
required: false,
|
167
|
+
default: false,
|
168
|
+
},
|
169
|
+
noCursor: {
|
170
|
+
required: false,
|
171
|
+
default: false,
|
172
|
+
},
|
173
|
+
hasLock: {
|
174
|
+
required: false,
|
175
|
+
default: false,
|
176
|
+
},
|
119
177
|
},
|
120
|
-
iconColor: {
|
121
|
-
required: false,
|
122
|
-
default: 'white'
|
123
|
-
},
|
124
|
-
hoveredIconColor: {
|
125
|
-
required: false
|
126
|
-
},
|
127
|
-
backgroundColor: {
|
128
|
-
required: false
|
129
|
-
},
|
130
|
-
hasBorder: {
|
131
|
-
required: false
|
132
|
-
},
|
133
|
-
hoveredBackgroundColor: {
|
134
|
-
required: false,
|
135
|
-
default: 'transparentWhite2'
|
136
|
-
},
|
137
|
-
size: {
|
138
|
-
required: false,
|
139
|
-
default: '32px'
|
140
|
-
},
|
141
|
-
iconSize: {
|
142
|
-
required: false,
|
143
|
-
default: '18px'
|
144
|
-
},
|
145
|
-
hasCaret: {
|
146
|
-
required: false,
|
147
|
-
default: false
|
148
|
-
},
|
149
|
-
borderRadius: {
|
150
|
-
required: false,
|
151
|
-
default: '6px'
|
152
|
-
},
|
153
|
-
dataId: {
|
154
|
-
type: String,
|
155
|
-
default: ''
|
156
|
-
},
|
157
|
-
isHovered: {
|
158
|
-
required: false,
|
159
|
-
default: false
|
160
|
-
},
|
161
|
-
isStriked: {
|
162
|
-
required: false,
|
163
|
-
default: false
|
164
|
-
},
|
165
|
-
isLoading: {
|
166
|
-
required: false,
|
167
|
-
default: false
|
168
|
-
},
|
169
|
-
noCursor: {
|
170
|
-
required: false,
|
171
|
-
default: false
|
172
|
-
},
|
173
|
-
hasLock: {
|
174
|
-
required: false,
|
175
|
-
default: false
|
176
|
-
}
|
177
178
|
}
|
178
|
-
}
|
179
179
|
</script>
|
@@ -1,42 +1,40 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<
|
5
|
-
<slot
|
6
|
-
</
|
7
|
-
</
|
2
|
+
<InfoContainer>
|
3
|
+
<RCIcon name="info" size="24px" :color="color" />
|
4
|
+
<TextContainer>
|
5
|
+
<slot></slot>
|
6
|
+
</TextContainer>
|
7
|
+
</InfoContainer>
|
8
8
|
</template>
|
9
9
|
|
10
10
|
<script>
|
11
|
-
|
12
|
-
import
|
13
|
-
import Icon from '../icon'
|
11
|
+
import styled from 'vue3-styled-components'
|
12
|
+
import RCIcon from '../icon'
|
14
13
|
|
15
|
-
const InfoContainer = styled.div`
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
`
|
14
|
+
const InfoContainer = styled.div`
|
15
|
+
display: flex;
|
16
|
+
gap: 15px;
|
17
|
+
padding: 20px;
|
18
|
+
border: 1px dashed ${(props) => props.theme.colors.grey4};
|
19
|
+
border-radius: 4px;
|
20
|
+
`
|
23
21
|
|
24
|
-
const TextContainer = styled.div`
|
25
|
-
|
26
|
-
|
27
|
-
`
|
22
|
+
const TextContainer = styled.div`
|
23
|
+
font-size: 13px;
|
24
|
+
width: 100%;
|
25
|
+
`
|
28
26
|
|
29
|
-
export default {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
27
|
+
export default {
|
28
|
+
name: 'InfoCard',
|
29
|
+
components: {
|
30
|
+
RCIcon,
|
31
|
+
InfoContainer,
|
32
|
+
TextContainer,
|
33
|
+
},
|
34
|
+
props: {
|
35
|
+
color: {
|
36
|
+
required: false
|
37
|
+
}
|
39
38
|
}
|
40
39
|
}
|
41
|
-
}
|
42
40
|
</script>
|