@eturnity/eturnity_reusable_components 1.1.38 → 1.1.41
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
package/src/App.vue
CHANGED
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
:value="inputValue"
|
|
45
45
|
@input-change="onInputChange($event)"
|
|
46
46
|
/>
|
|
47
|
+
<br />
|
|
48
|
+
<page-subtitle text="My Subtitle" infoText="My info Text" />
|
|
47
49
|
</page-container>
|
|
48
50
|
</ThemeProvider>
|
|
49
51
|
</template>
|
|
@@ -56,6 +58,7 @@ import MainTable from "@/components/tables/mainTable"
|
|
|
56
58
|
import ThreeDots from "@/components/threeDots"
|
|
57
59
|
import Toggle from "@/components/inputs/toggle"
|
|
58
60
|
import InputNumber from "@/components/inputs/inputNumber"
|
|
61
|
+
import PageSubtitle from "@/components/pageSubtitle"
|
|
59
62
|
// import TableDropdown from "@/components/tableDropdown"
|
|
60
63
|
|
|
61
64
|
const PageContainer = styled.div`
|
|
@@ -71,6 +74,7 @@ export default {
|
|
|
71
74
|
ThreeDots,
|
|
72
75
|
Toggle,
|
|
73
76
|
InputNumber,
|
|
77
|
+
PageSubtitle,
|
|
74
78
|
// TableDropdown,
|
|
75
79
|
},
|
|
76
80
|
data() {
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<subtitle-text :color="color"
|
|
2
|
+
<subtitle-text :color="color" :hasInfoText="!!infoText">
|
|
3
|
+
<span>
|
|
4
|
+
{{ text }}
|
|
5
|
+
</span>
|
|
6
|
+
<info-text
|
|
7
|
+
:text="infoText"
|
|
8
|
+
v-if="!!infoText"
|
|
9
|
+
size="14"
|
|
10
|
+
borderColor="#ccc"
|
|
11
|
+
/>
|
|
12
|
+
</subtitle-text>
|
|
3
13
|
</template>
|
|
4
14
|
|
|
5
15
|
<script>
|
|
@@ -8,21 +18,29 @@
|
|
|
8
18
|
// <page-subtitle
|
|
9
19
|
// text="My Page Subitle"
|
|
10
20
|
// color="red"
|
|
21
|
+
// infoText="My info text"
|
|
11
22
|
// />
|
|
12
23
|
import styled from "vue-styled-components"
|
|
24
|
+
import InfoText from "../infoText"
|
|
13
25
|
|
|
14
|
-
const textAttrs = { color: String }
|
|
26
|
+
const textAttrs = { color: String, hasInfoText: Boolean }
|
|
15
27
|
const SubtitleText = styled("div", textAttrs)`
|
|
28
|
+
display: grid;
|
|
29
|
+
grid-gap: 12px;
|
|
30
|
+
grid-template-columns: ${(props) =>
|
|
31
|
+
props.hasInfoText ? "auto auto 1fr" : "1fr"};
|
|
16
32
|
color: ${(props) => (props.color ? props.color : props.theme.colors.gray1)};
|
|
17
33
|
font-size: 13px;
|
|
18
34
|
margin-bottom: 30px;
|
|
19
35
|
line-height: 1.5;
|
|
36
|
+
position: relative;
|
|
20
37
|
`
|
|
21
38
|
|
|
22
39
|
export default {
|
|
23
40
|
name: "page-subtitle",
|
|
24
41
|
components: {
|
|
25
42
|
SubtitleText,
|
|
43
|
+
InfoText,
|
|
26
44
|
},
|
|
27
45
|
props: {
|
|
28
46
|
text: {
|
|
@@ -31,6 +49,10 @@ export default {
|
|
|
31
49
|
color: {
|
|
32
50
|
required: false,
|
|
33
51
|
},
|
|
52
|
+
infoText: {
|
|
53
|
+
required: false,
|
|
54
|
+
default: null,
|
|
55
|
+
},
|
|
34
56
|
},
|
|
35
57
|
}
|
|
36
58
|
</script>
|
|
@@ -49,7 +49,9 @@
|
|
|
49
49
|
@input-change="onCustomInputChange($event)"
|
|
50
50
|
/>
|
|
51
51
|
</input-container>
|
|
52
|
-
<
|
|
52
|
+
<text-container v-else>
|
|
53
|
+
<span> {{ item.value }}</span>
|
|
54
|
+
</text-container>
|
|
53
55
|
</component-item>
|
|
54
56
|
<arrow-container class="arrow-container">
|
|
55
57
|
<arrow-wrapper :showArchived="showArchived">
|
|
@@ -345,6 +347,12 @@ const CustomSubtext = styled.div`
|
|
|
345
347
|
color: ${(props) => props.theme.colors.grey3};
|
|
346
348
|
`
|
|
347
349
|
|
|
350
|
+
const TextContainer = styled.div`
|
|
351
|
+
height: 100%;
|
|
352
|
+
display: grid;
|
|
353
|
+
align-items: center;
|
|
354
|
+
`
|
|
355
|
+
|
|
348
356
|
export default {
|
|
349
357
|
name: "table-dropdown",
|
|
350
358
|
components: {
|
|
@@ -370,6 +378,7 @@ export default {
|
|
|
370
378
|
CustomName,
|
|
371
379
|
CustomSubtext,
|
|
372
380
|
ArrowContainer,
|
|
381
|
+
TextContainer,
|
|
373
382
|
},
|
|
374
383
|
props: {
|
|
375
384
|
colSpan: {
|