@eturnity/eturnity_reusable_components 7.20.0--EPDM-10564.2 → 7.20.0-EPDM-10528.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/babel.config.js +4 -2
- package/package.json +2 -1
- package/src/assets/svgIcons/house_3d-1.svg +8 -0
- package/src/assets/svgIcons/house_3d.svg +8 -0
- package/src/components/buttons/mainButton/index.vue +7 -1
- package/src/components/infoText/index.vue +1 -1
- package/src/components/inputs/select/index.vue +13 -54
- package/src/components/inputs/select/option/index.vue +0 -6
- package/src/components/pageTitle/index.vue +15 -10
- package/src/components/markerItem/index.vue +0 -86
package/babel.config.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@eturnity/eturnity_reusable_components",
|
3
|
-
"version": "7.20.0
|
3
|
+
"version": "7.20.0-EPDM-10528.0",
|
4
4
|
"private": false,
|
5
5
|
"scripts": {
|
6
6
|
"dev": "vue-cli-service serve",
|
@@ -23,6 +23,7 @@
|
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
25
|
"@babel/core": "7.12.16",
|
26
|
+
"@babel/eslint-parser": "7.12.16",
|
26
27
|
"@vue/cli-plugin-babel": "5.0.8",
|
27
28
|
"@vue/cli-plugin-eslint": "5.0.8",
|
28
29
|
"@vue/cli-service": "5.0.8",
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
|
2
|
+
<mask id="path-1-inside-1_57915_53334" fill="white">
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.0303 2.75757L0 5.30302V11.2424L3.41022 12.4091V8.96996L4.53143 9.41845V12.7926L8.0606 14V8.0606L4.0303 2.75757Z"/>
|
4
|
+
</mask>
|
5
|
+
<path d="M0 5.30302L-0.694191 4.20389L-1.3 4.5865V5.30302H0ZM4.0303 2.75757L5.06531 1.97096L4.344 1.02187L3.33611 1.65843L4.0303 2.75757ZM0 11.2424H-1.3V12.1716L-0.420794 12.4724L0 11.2424ZM3.41022 12.4091L2.98943 13.6391L4.71022 14.2278V12.4091H3.41022ZM3.41022 8.96996L3.89303 7.76294L2.11022 7.04982V8.96996H3.41022ZM4.53143 9.41845H5.83143V8.5383L5.01424 8.21143L4.53143 9.41845ZM4.53143 12.7926H3.23143V13.7219L4.11064 14.0227L4.53143 12.7926ZM8.0606 14L7.63981 15.23L9.3606 15.8187V14H8.0606ZM8.0606 8.0606H9.3606V7.62266L9.09561 7.27399L8.0606 8.0606ZM0.694191 6.40216L4.72449 3.8567L3.33611 1.65843L-0.694191 4.20389L0.694191 6.40216ZM1.3 11.2424V5.30302H-1.3V11.2424H1.3ZM3.83102 11.1791L0.420794 10.0124L-0.420794 12.4724L2.98943 13.6391L3.83102 11.1791ZM4.71022 12.4091V8.96996H2.11022V12.4091H4.71022ZM2.92741 10.177L4.04862 10.6255L5.01424 8.21143L3.89303 7.76294L2.92741 10.177ZM3.23143 9.41845V12.7926H5.83143V9.41845H3.23143ZM8.48139 12.77L4.95223 11.5626L4.11064 14.0227L7.63981 15.23L8.48139 12.77ZM6.7606 8.0606V14H9.3606V8.0606H6.7606ZM2.99529 3.54418L7.02559 8.8472L9.09561 7.27399L5.06531 1.97096L2.99529 3.54418Z" fill="#0068DE" mask="url(#path-1-inside-1_57915_53334)"/>
|
6
|
+
<path d="M8.55859 13.2165V8.37967L13.498 6.08638V10.9232L8.55859 13.2165Z" fill="#0068DE" stroke="#0068DE"/>
|
7
|
+
<path d="M8.21608 7.43759L4.80515 2.94953L9.81611 0.623007L13.227 5.11107L8.21608 7.43759Z" fill="#0068DE" stroke="#0068DE"/>
|
8
|
+
</svg>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16" fill="none">
|
2
|
+
<mask id="path-1-inside-1_57915_3657" fill="white">
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.03081 3.71851L0 6.28736V12.2814L3.41065 13.4587V9.98801L4.532 10.4406V13.8458L8.06161 15.0643V9.07028L4.03081 3.71851Z"/>
|
4
|
+
</mask>
|
5
|
+
<path d="M0 6.28736L-0.698673 5.19107L-1.3 5.5743V6.28736H0ZM4.03081 3.71851L5.06922 2.9364L4.34595 1.9761L3.33213 2.62221L4.03081 3.71851ZM0 12.2814H-1.3V13.2079L-0.424205 13.5102L0 12.2814ZM3.41065 13.4587L2.98645 14.6876L4.71065 15.2828V13.4587H3.41065ZM3.41065 9.98801L3.89722 8.78251L2.11065 8.0614V9.98801H3.41065ZM4.532 10.4406H5.832V9.56343L5.01858 9.23511L4.532 10.4406ZM4.532 13.8458H3.232V14.7723L4.1078 15.0747L4.532 13.8458ZM8.06161 15.0643L7.63741 16.2931L9.36161 16.8883V15.0643H8.06161ZM8.06161 9.07028H9.36161V8.63549L9.10003 8.28818L8.06161 9.07028ZM0.698673 7.38365L4.72948 4.8148L3.33213 2.62221L-0.698673 5.19107L0.698673 7.38365ZM1.3 12.2814V6.28736H-1.3V12.2814H1.3ZM3.83485 12.2299L0.424205 11.0525L-0.424205 13.5102L2.98645 14.6876L3.83485 12.2299ZM4.71065 13.4587V9.98801H2.11065V13.4587H4.71065ZM2.92408 11.1935L4.04543 11.6461L5.01858 9.23511L3.89722 8.78251L2.92408 11.1935ZM3.232 10.4406V13.8458H5.832V10.4406H3.232ZM8.48582 13.8354L4.95621 12.617L4.1078 15.0747L7.63741 16.2931L8.48582 13.8354ZM6.76161 9.07028V15.0643H9.36161V9.07028H6.76161ZM2.99239 4.50061L7.0232 9.85239L9.10003 8.28818L5.06922 2.9364L2.99239 4.50061Z" fill="white" mask="url(#path-1-inside-1_57915_3657)"/>
|
6
|
+
<path d="M8.5625 14.2779V9.38818L13.5026 7.07375V11.9634L8.5625 14.2779Z" fill="white" stroke="white"/>
|
7
|
+
<path d="M8.21735 8.44534L4.80134 3.90984L9.81609 1.56045L13.2321 6.09596L8.21735 8.44534Z" fill="white" stroke="white"/>
|
8
|
+
</svg>
|
@@ -8,6 +8,7 @@
|
|
8
8
|
:customColor="customColor"
|
9
9
|
:noWrap="noWrap"
|
10
10
|
:data-id="dataId"
|
11
|
+
:fontColor="fontColor"
|
11
12
|
>
|
12
13
|
{{ text }}
|
13
14
|
</button-container>
|
@@ -35,12 +36,14 @@ const ButtonAttrs = {
|
|
35
36
|
isDisabled: Boolean,
|
36
37
|
minWidth: String,
|
37
38
|
customColor: String,
|
39
|
+
fontColor: String,
|
38
40
|
noWrap: Boolean
|
39
41
|
}
|
40
42
|
const ButtonContainer = styled('div', ButtonAttrs)`
|
41
43
|
padding: 7px 15px;
|
42
44
|
font-size: 13px;
|
43
|
-
color: ${(props) =>
|
45
|
+
color: ${(props) =>
|
46
|
+
props.fontColor ? props.fontColor : props.theme.colors.white};
|
44
47
|
background-color: ${(props) =>
|
45
48
|
props.isDisabled
|
46
49
|
? props.theme.colors.disabled
|
@@ -91,6 +94,9 @@ export default {
|
|
91
94
|
required: false,
|
92
95
|
default: null
|
93
96
|
},
|
97
|
+
fontColor: {
|
98
|
+
required: false
|
99
|
+
},
|
94
100
|
noWrap: {
|
95
101
|
required: false,
|
96
102
|
default: false
|
@@ -1,14 +1,12 @@
|
|
1
1
|
<template>
|
2
2
|
<Container
|
3
3
|
:selectWidth="selectWidth"
|
4
|
-
:noRelative="noRelative"
|
5
4
|
@mouseenter="mouseEnterHandler"
|
6
5
|
@mouseleave="mouseLeaveHandler"
|
7
6
|
>
|
8
7
|
<input-wrapper
|
9
8
|
:hasLabel="!!label && label.length > 0"
|
10
9
|
:alignItems="alignItems"
|
11
|
-
:noRelative="noRelative"
|
12
10
|
>
|
13
11
|
<label-wrapper v-if="label" :data-id="labelDataId">
|
14
12
|
<input-label
|
@@ -49,9 +47,6 @@
|
|
49
47
|
:showBorder="showBorder"
|
50
48
|
:data-id="dataId"
|
51
49
|
:paddingLeft="paddingLeft"
|
52
|
-
:tablePaddingLeft="tablePaddingLeft"
|
53
|
-
:noRelative="noRelative"
|
54
|
-
:showDisabledBackground="showDisabledBackground"
|
55
50
|
>
|
56
51
|
<draggableInputHandle
|
57
52
|
v-if="isDraggable && !isSearchBarVisible"
|
@@ -81,7 +76,7 @@
|
|
81
76
|
>
|
82
77
|
<slot name="selector" :selectedValue="selectedValue"></slot>
|
83
78
|
</selector>
|
84
|
-
<Caret @click.stop="toggleCaretDropdown"
|
79
|
+
<Caret @click.stop="toggleCaretDropdown">
|
85
80
|
<icon
|
86
81
|
v-if="isDropdownOpen"
|
87
82
|
name="arrow_up"
|
@@ -104,7 +99,7 @@
|
|
104
99
|
/>
|
105
100
|
</Caret>
|
106
101
|
</selectButton>
|
107
|
-
<DropdownWrapper ref="dropdownWrapperRef"
|
102
|
+
<DropdownWrapper ref="dropdownWrapperRef">
|
108
103
|
<Teleport to="#portal-target">
|
109
104
|
<selectDropdown
|
110
105
|
ref="dropdown"
|
@@ -123,13 +118,10 @@
|
|
123
118
|
:fontColor="
|
124
119
|
dropdownFontColor || colorMode == 'dark' ? 'white' : 'black'
|
125
120
|
"
|
126
|
-
:noRelative="noRelative"
|
127
121
|
:fontSize="fontSize"
|
128
|
-
:minWidth="minWidth"
|
129
122
|
:selectedValue="selectedValue"
|
130
123
|
@option-selected="optionSelected"
|
131
124
|
@option-hovered="optionHovered"
|
132
|
-
@mouseleave="optionLeave"
|
133
125
|
>
|
134
126
|
<slot name="dropdown"></slot>
|
135
127
|
</selectDropdown>
|
@@ -220,12 +212,11 @@ const optionalLabel = styled.span`
|
|
220
212
|
`
|
221
213
|
const inputProps = {
|
222
214
|
selectWidth: String,
|
223
|
-
optionWidth: String
|
224
|
-
noRelative: Boolean
|
215
|
+
optionWidth: String
|
225
216
|
}
|
226
217
|
const Container = styled('div', inputProps)`
|
227
218
|
width: ${(props) => props.selectWidth};
|
228
|
-
position:
|
219
|
+
position: relative;
|
229
220
|
display: inline-block;
|
230
221
|
`
|
231
222
|
const LabelWrapper = styled.div`
|
@@ -254,22 +245,13 @@ const selectButtonAttrs = {
|
|
254
245
|
selectMinHeight: String,
|
255
246
|
hasNoPadding: Boolean,
|
256
247
|
showBorder: Boolean,
|
257
|
-
paddingLeft: String
|
258
|
-
noRelative: Boolean,
|
259
|
-
tablePaddingLeft: String,
|
260
|
-
showDisabledBackground: Boolean
|
248
|
+
paddingLeft: String
|
261
249
|
}
|
262
250
|
const selectButton = styled('div', selectButtonAttrs)`
|
263
|
-
position:
|
251
|
+
position: relative;
|
264
252
|
box-sizing: border-box;
|
265
253
|
border-radius: 4px;
|
266
254
|
max-width: ${(props) => (props.selectWidth ? props.selectWidth : '100%')};
|
267
|
-
${(props) =>
|
268
|
-
props.isSearchBarVisible
|
269
|
-
? ''
|
270
|
-
: `padding-left: ${
|
271
|
-
props.tablePaddingLeft ? props.tablePaddingLeft : props.paddingLeft
|
272
|
-
}`};
|
273
255
|
${(props) =>
|
274
256
|
props.hasNoPadding ? '' : `padding-left: ${props.paddingLeft}`};
|
275
257
|
text-align: left;
|
@@ -292,7 +274,7 @@ const selectButton = styled('div', selectButtonAttrs)`
|
|
292
274
|
}
|
293
275
|
`}
|
294
276
|
background-color:${(props) =>
|
295
|
-
props.disabled
|
277
|
+
props.disabled
|
296
278
|
? props.theme.colors.grey5
|
297
279
|
: props.theme.colors[props.bgColor]
|
298
280
|
? props.theme.colors[props.bgColor]
|
@@ -318,16 +300,13 @@ const selectDropdownAttrs = {
|
|
318
300
|
fontSize: String,
|
319
301
|
dropdownPosition: Object,
|
320
302
|
hoveredValue: Number | String,
|
321
|
-
selectedValue: Number | String
|
322
|
-
noRelative: Boolean,
|
323
|
-
minWidth: String
|
303
|
+
selectedValue: Number | String
|
324
304
|
}
|
325
305
|
const selectDropdown = styled('div', selectDropdownAttrs)`
|
326
306
|
box-sizing: border-box;
|
327
307
|
z-index: ${(props) => (props.isActive ? '2' : '99999')};
|
328
308
|
position: absolute;
|
329
|
-
top: ${(props) =>
|
330
|
-
props.noRelative ? 'auto' : props.dropdownPosition?.top + 'px'};
|
309
|
+
top: ${(props) => props.dropdownPosition?.top}px;
|
331
310
|
left: ${(props) => props.dropdownPosition?.left}px;
|
332
311
|
border: ${BORDER_WIDTH} solid ${(props) => props.theme.colors.grey4};
|
333
312
|
border-radius: 4px;
|
@@ -337,7 +316,6 @@ const selectDropdown = styled('div', selectDropdownAttrs)`
|
|
337
316
|
padding: 0px;
|
338
317
|
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
339
318
|
width: ${(props) => (props.optionWidth ? props.optionWidth : '100%')};
|
340
|
-
min-width: ${(props) => (props.minWidth ? props.minWidth : '100%')};
|
341
319
|
background-color: ${(props) =>
|
342
320
|
props.theme.colors[props.bgColor]
|
343
321
|
? props.theme.colors[props.bgColor]
|
@@ -357,17 +335,12 @@ const selectDropdown = styled('div', selectDropdownAttrs)`
|
|
357
335
|
font-size: ${(props) => props.fontSize};
|
358
336
|
`
|
359
337
|
selectDropdown.emits = ['option-hovered', 'option-selected']
|
360
|
-
const
|
361
|
-
|
362
|
-
position: ${(props) => (props.noRelative ? 'static' : 'relative')};
|
338
|
+
const DropdownWrapper = styled('div')`
|
339
|
+
position: relative;
|
363
340
|
`
|
364
|
-
const inputAttrs = {
|
365
|
-
alignItems: String,
|
366
|
-
hasLabel: Boolean,
|
367
|
-
noRelative: Boolean
|
368
|
-
}
|
341
|
+
const inputAttrs = { alignItems: String, hasLabel: Boolean }
|
369
342
|
const InputWrapper = styled('div', inputAttrs)`
|
370
|
-
position:
|
343
|
+
position: relative;
|
371
344
|
display: grid;
|
372
345
|
align-items: center;
|
373
346
|
gap: 8px;
|
@@ -396,10 +369,6 @@ export default {
|
|
396
369
|
required: false,
|
397
370
|
default: '13px'
|
398
371
|
},
|
399
|
-
noRelative: {
|
400
|
-
required: false,
|
401
|
-
default: false
|
402
|
-
},
|
403
372
|
label: {
|
404
373
|
required: false
|
405
374
|
},
|
@@ -432,9 +401,6 @@ export default {
|
|
432
401
|
required: false,
|
433
402
|
default: '36px'
|
434
403
|
},
|
435
|
-
minWidth: {
|
436
|
-
required: false
|
437
|
-
},
|
438
404
|
optionWidth: {
|
439
405
|
required: false,
|
440
406
|
default: null
|
@@ -510,13 +476,6 @@ export default {
|
|
510
476
|
type: Boolean,
|
511
477
|
default: false
|
512
478
|
},
|
513
|
-
tablePaddingLeft: {
|
514
|
-
required: false
|
515
|
-
},
|
516
|
-
showDisabledBackground: {
|
517
|
-
required: false,
|
518
|
-
default: true
|
519
|
-
},
|
520
479
|
minOptionLength: {
|
521
480
|
type: Number,
|
522
481
|
default: MIN_OPTION_LENGTH
|
@@ -16,7 +16,6 @@
|
|
16
16
|
:disabledTextColor="disabledTextColor"
|
17
17
|
:backgroundColor="colorMode == 'dark' ? '#000000' : backgroundColor"
|
18
18
|
:title="hoverText"
|
19
|
-
:minWidth="minWidth"
|
20
19
|
:padding="padding"
|
21
20
|
>
|
22
21
|
<slot></slot>
|
@@ -32,7 +31,6 @@ const optionProps = {
|
|
32
31
|
hoveredBgColor: String,
|
33
32
|
cursorType: String,
|
34
33
|
backgroundColor: String,
|
35
|
-
minWidth: String,
|
36
34
|
disabledBgColor: String,
|
37
35
|
disabledTextColor: String,
|
38
36
|
padding: String
|
@@ -46,7 +44,6 @@ const optionContainer = styled('div', optionProps)`
|
|
46
44
|
padding: ${(props) => props.padding};
|
47
45
|
gap: 14px;
|
48
46
|
width: 100%;
|
49
|
-
min-width: ${(props) => (props.minWidth ? props.minWidth : '100%')};
|
50
47
|
background-color: ${(props) =>
|
51
48
|
props.isDisabled
|
52
49
|
? props.theme.colors[props.disabledBgColor]
|
@@ -109,9 +106,6 @@ export default {
|
|
109
106
|
required: false,
|
110
107
|
default: false
|
111
108
|
},
|
112
|
-
minWidth: {
|
113
|
-
required: false
|
114
|
-
},
|
115
109
|
disabledBgColor: {
|
116
110
|
required: false,
|
117
111
|
default: 'white'
|
@@ -3,7 +3,11 @@
|
|
3
3
|
<title-text :color="color" :fontSize="fontSize" :uppercase="uppercase">
|
4
4
|
{{ text }}
|
5
5
|
</title-text>
|
6
|
-
<info-text
|
6
|
+
<info-text
|
7
|
+
v-if="!!infoText"
|
8
|
+
:text="infoText"
|
9
|
+
:alignArrow="infoAlign"
|
10
|
+
/>
|
7
11
|
</title-wrap>
|
8
12
|
</template>
|
9
13
|
|
@@ -14,16 +18,16 @@
|
|
14
18
|
// text="My Page Title"
|
15
19
|
// color="red"
|
16
20
|
// />
|
17
|
-
import styled from
|
18
|
-
import InfoText from
|
21
|
+
import styled from "vue3-styled-components"
|
22
|
+
import InfoText from "../infoText"
|
19
23
|
|
20
24
|
const wrapAttrs = { hasInfoText: Boolean }
|
21
|
-
const TitleWrap = styled(
|
25
|
+
const TitleWrap = styled("div", wrapAttrs)`
|
22
26
|
display: grid;
|
23
27
|
align-items: center;
|
24
28
|
grid-gap: 12px;
|
25
29
|
grid-template-columns: ${(props) =>
|
26
|
-
props.hasInfoText ?
|
30
|
+
props.hasInfoText ? "auto auto 1fr" : "1fr"};
|
27
31
|
margin-bottom: 20px;
|
28
32
|
`
|
29
33
|
|
@@ -31,7 +35,7 @@ const titleAttrs = { color: String, fontSize: String, uppercase: Boolean }
|
|
31
35
|
const TitleText = styled('span', titleAttrs)`
|
32
36
|
color: ${(props) => (props.color ? props.color : props.theme.colors.black)};
|
33
37
|
font-weight: bold;
|
34
|
-
font-size: ${(props) => (props.fontSize ? props.fontSize : '
|
38
|
+
font-size: ${(props) => (props.fontSize ? props.fontSize : '16px')};
|
35
39
|
text-transform: ${(props) => (props.uppercase ? 'uppercase' : 'none')};
|
36
40
|
`
|
37
41
|
|
@@ -50,7 +54,8 @@ export default {
|
|
50
54
|
required: false
|
51
55
|
},
|
52
56
|
fontSize: {
|
53
|
-
required: false
|
57
|
+
required: false,
|
58
|
+
default: '16px'
|
54
59
|
},
|
55
60
|
uppercase: {
|
56
61
|
required: false,
|
@@ -58,11 +63,11 @@ export default {
|
|
58
63
|
},
|
59
64
|
infoText: {
|
60
65
|
required: false,
|
61
|
-
default: null
|
66
|
+
default: null,
|
62
67
|
},
|
63
68
|
infoAlign: {
|
64
|
-
required: false
|
69
|
+
required: false,
|
65
70
|
}
|
66
|
-
}
|
71
|
+
},
|
67
72
|
}
|
68
73
|
</script>
|
@@ -1,86 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<page-container>
|
3
|
-
<marker-container
|
4
|
-
:backgroundColor="backgroundColor"
|
5
|
-
:hasIcon="!!iconName"
|
6
|
-
:cursor="cursor"
|
7
|
-
>
|
8
|
-
<icon
|
9
|
-
v-if="!!iconName"
|
10
|
-
:name="iconName"
|
11
|
-
color="white"
|
12
|
-
size="10px"
|
13
|
-
:cursor="cursor"
|
14
|
-
/>
|
15
|
-
<span>{{ label }}</span>
|
16
|
-
</marker-container>
|
17
|
-
</page-container>
|
18
|
-
</template>
|
19
|
-
|
20
|
-
<script>
|
21
|
-
// import MarkerItem from "@eturnity/eturnity_reusable_components/src/components/markerItem"
|
22
|
-
// To use:
|
23
|
-
// <marker-item
|
24
|
-
// label="Label"
|
25
|
-
// backgroundColor="#ab5348"
|
26
|
-
// iconName="icon_name"
|
27
|
-
// cursor="pointer"
|
28
|
-
// />
|
29
|
-
|
30
|
-
import styled from 'vue3-styled-components'
|
31
|
-
import Icon from '../icon'
|
32
|
-
|
33
|
-
const PageContainer = styled.div`
|
34
|
-
display: flex;
|
35
|
-
align-items: center;
|
36
|
-
font-size: 12px;
|
37
|
-
line-height: 14px;
|
38
|
-
`
|
39
|
-
|
40
|
-
const MarkerAttrs = {
|
41
|
-
backgroundColor: String,
|
42
|
-
hasIcon: Boolean,
|
43
|
-
cursor: String
|
44
|
-
}
|
45
|
-
const MarkerContainer = styled('div', MarkerAttrs)`
|
46
|
-
display: grid;
|
47
|
-
grid-template-columns: ${(props) => (props.hasIcon ? 'auto 1fr' : '1fr')};
|
48
|
-
grid-gap: 5px;
|
49
|
-
position: relative;
|
50
|
-
align-items: center;
|
51
|
-
padding: 2px 7px;
|
52
|
-
color: ${(props) => props.theme.colors.white};
|
53
|
-
background-color: ${(props) =>
|
54
|
-
props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
|
55
|
-
border: 1px solid
|
56
|
-
${(props) =>
|
57
|
-
props.backgroundColor ? props.backgroundColor : props.theme.colors.grey3};
|
58
|
-
border-radius: 4px;
|
59
|
-
white-space: nowrap;
|
60
|
-
cursor: ${(props) => (props.isEditionAllowed ? 'pointer' : props.cursor)};
|
61
|
-
`
|
62
|
-
|
63
|
-
export default {
|
64
|
-
name: 'project-marker',
|
65
|
-
components: {
|
66
|
-
PageContainer,
|
67
|
-
MarkerContainer,
|
68
|
-
Icon
|
69
|
-
},
|
70
|
-
props: {
|
71
|
-
backgroundColor: {
|
72
|
-
required: false
|
73
|
-
},
|
74
|
-
iconName: {
|
75
|
-
required: false
|
76
|
-
},
|
77
|
-
label: {
|
78
|
-
required: true
|
79
|
-
},
|
80
|
-
cursor: {
|
81
|
-
required: false,
|
82
|
-
default: 'default'
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
</script>
|