@eturnity/eturnity_reusable_components 7.8.1-EPDM-9696.0 → 7.8.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.8.1-EPDM-9696.0",
3
+ "version": "7.8.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -136,7 +136,8 @@ export default {
136
136
  iconCollection,
137
137
  dropdownComponent,
138
138
  videoThumbnail,
139
- icon,
139
+ icon
140
+ // infoCard
140
141
  },
141
142
  data() {
142
143
  return {
@@ -1,104 +0,0 @@
1
- <template>
2
- <label-wrapper
3
- :labelAlign="labelAlign">
4
- <input-label
5
- :labelFontColor="labelFontColor"
6
- :fontSize="fontSize"
7
- >
8
- <slot></slot>
9
- <optionalLabel v-if="labelOptional"
10
- >({{ $gettext('Optional') }})</optionalLabel
11
- ></input-label
12
- >
13
- <info-text
14
- v-if="infoTextMessage"
15
- :text="infoTextMessage"
16
- borderColor="#ccc"
17
- :size="fontSize ? fontSize : '16px'"
18
- :alignArrow="infoTextAlign"
19
- />
20
- </label-wrapper>
21
- </template>
22
-
23
- <script>
24
- import styled from 'vue-styled-components'
25
- import InfoText from '../infoText'
26
-
27
-
28
- const labelAttrs = { fontSize: String, labelFontColor: String }
29
- const InputLabel = styled('div', labelAttrs)`
30
- color: ${(props) =>
31
- props.theme.colors[props.labelFontColor]
32
- ? props.theme.colors[props.labelFontColor]
33
- : props.labelFontColor
34
- ? props.labelFontColor
35
- : props.theme.colors.eturnityGrey};
36
-
37
- font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
38
- font-weight: 700;
39
- `
40
- const optionalLabel = styled.span`
41
- font-weight: 300;
42
- `
43
-
44
- const LabelWrapper = styled('div',{labelAlign:String})`
45
- ${props=>props.labelAlign=='horizontal'?
46
- 'display: inline-grid;':
47
- 'display: grid;'
48
- }
49
- ${props=>props.labelAlign=='horizontal'?
50
- 'margin-right: 10px;':
51
- 'margin-bottom: 8px;'
52
- }
53
- vertical-align: center;
54
- grid-template-columns: auto auto;
55
- grid-gap: 12px;
56
- align-items: center;
57
- justify-content: start;
58
- `
59
- export default {
60
- // import labelText from "@eturnity/eturnity_reusable_components/src/components/label"
61
- // To use:
62
- // <label-text
63
- // infoTextAlign="right" // left by default
64
- // infoTextMessage="My info message"
65
- // label="Question 5"
66
- // />
67
- name: 'input-text',
68
- components: {
69
- InfoText,
70
- InputLabel,
71
- LabelWrapper,
72
- optionalLabel
73
- },
74
- data() {
75
- return {
76
- inputTypeData: 'text'
77
- }
78
- },
79
- props: {
80
- infoTextMessage: {
81
- required: false
82
- },
83
- infoTextAlign: {
84
- required: false
85
- },
86
- labelOptional: {
87
- required: false,
88
- default: false
89
- },
90
- fontSize: {
91
- required: false,
92
- default: null
93
- },
94
- labelFontColor: {
95
- required: false,
96
- default: 'black'
97
- },
98
- labelAlign: {
99
- required: false,
100
- default: 'vertical'
101
- },
102
- },
103
- }
104
- </script>