@eturnity/eturnity_reusable_components 1.1.26 → 1.1.27

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.1.26",
3
+ "version": "1.1.27",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <container>
3
- <input-wrapper :alignItems="alignItems">
3
+ <input-wrapper
4
+ :alignItems="alignItems"
5
+ :hasLabel="!!label && label.length > 0"
6
+ >
4
7
  <label-wrapper v-if="label">
5
8
  <input-label>{{ label }}</input-label>
6
9
  <info-text
@@ -85,14 +88,14 @@ const InputContainer = styled("input", inputProps)`
85
88
  }
86
89
  `
87
90
 
88
- const inputAttrs = { alignItems: String }
91
+ const inputAttrs = { alignItems: String, hasLabel: Boolean }
89
92
  const InputWrapper = styled("div", inputAttrs)`
90
93
  position: relative;
91
94
  display: grid;
92
95
  align-items: center;
93
96
  gap: 14px;
94
97
  grid-template-columns: ${(props) =>
95
- props.alignItems === "vertical" ? "1fr" : "auto 1fr"};
98
+ props.alignItems === "vertical" || !props.hasLabel ? "1fr" : "auto 1fr"};
96
99
  `
97
100
 
98
101
  const ErrorMessage = styled.div`