@eturnity/eturnity_reusable_components 1.2.86-EPDM-7435-1 → 1.2.86

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": "1.2.86-EPDM-7435-1",
3
+ "version": "1.2.86",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -7,7 +7,7 @@
7
7
  <label-wrapper v-if="label">
8
8
  <input-label :labelFontColor="labelFontColor" :fontSize="fontSize">{{
9
9
  label
10
- }} <optionalLabel v-if="labelOptional">({{ $gettext('Optional') }})</optionalLabel></input-label>
10
+ }}</input-label>
11
11
  <info-text
12
12
  v-if="infoTextMessage"
13
13
  :text="infoTextMessage"
@@ -81,9 +81,7 @@ const InputLabel = styled('div', labelAttrs)`
81
81
  font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
82
82
  font-weight: 700;
83
83
  `
84
- const optionalLabel = styled.span`
85
- font-weight: 300;
86
- `
84
+
87
85
  const LabelWrapper = styled.div`
88
86
  display: inline-grid;
89
87
  grid-template-columns: auto auto;
@@ -219,8 +217,7 @@ export default {
219
217
  Icon,
220
218
  IconWrapper,
221
219
  IconContainer,
222
- InputErrorWrapper,
223
- optionalLabel
220
+ InputErrorWrapper
224
221
  },
225
222
  data() {
226
223
  return {
@@ -269,10 +266,6 @@ export default {
269
266
  label: {
270
267
  required: false
271
268
  },
272
- labelOptional: {
273
- required: false,
274
- default: false
275
- },
276
269
  noBorder: {
277
270
  required: false,
278
271
  default: false
@@ -14,8 +14,7 @@
14
14
  labelFontColor || colorMode == 'dark' ? 'white' : 'eturnityGrey'
15
15
  "
16
16
  :fontSize="fontSize"
17
- >{{ label }} <optionalLabel v-if="labelOptional"> ({{ $gettext('Optional') }})</optionalLabel>
18
- </input-label
17
+ >{{ label }}</input-label
19
18
  >
20
19
  <info-text
21
20
  v-if="infoTextMessage"
@@ -159,10 +158,6 @@ const InputLabel = styled('div', labelAttrs)`
159
158
  font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
160
159
  font-weight: 700;
161
160
  `
162
- const optionalLabel = styled.span`
163
- font-weight: 300;
164
-
165
- `
166
161
  const inputProps = { selectWidth: String, optionWidth: String }
167
162
  const Container = styled('div', inputProps)`
168
163
  width: ${(props) => (props.selectWidth ? props.selectWidth : '100%')};
@@ -198,7 +193,7 @@ const selectButton = styled('div', selectButtonAttrs)`
198
193
  box-sizing: border-box;
199
194
  border-radius: 4px;
200
195
  padding: ${(props) =>
201
- props.isSearchBarVisible ? '0' : '0px 0px 0 15px'};
196
+ props.isSearchBarVisible ? '0 10px 0 0' : '0px 10px 0 15px'};
202
197
  text-align: left;
203
198
  border-radius: 4px;
204
199
  min-height: 36px;
@@ -235,6 +230,7 @@ const selectDropdown = styled('div', selectDropdownAttrs)`
235
230
  z-index:${(props) => (props.isActive ? '2' : '1')};
236
231
  position:absolute;
237
232
  top:5px;
233
+ padding:10px;
238
234
  border:1px solid ${(props) => props.theme.colors.grey4}
239
235
  border-radius:4px;
240
236
  display: flex;
@@ -287,10 +283,6 @@ export default {
287
283
  label: {
288
284
  required: false
289
285
  },
290
- labelOptional: {
291
- required: false,
292
- default: false
293
- },
294
286
  infoTextMessage: {
295
287
  required: false
296
288
  },
@@ -368,7 +360,6 @@ export default {
368
360
  Container,
369
361
  InputLabel,
370
362
  LabelWrapper,
371
- optionalLabel,
372
363
  InfoText,
373
364
  InputWrapper,
374
365
  DropdownWrapper,