@energie360/ui-library 0.1.13 → 0.1.14

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.
@@ -2,7 +2,7 @@
2
2
  import { FormFieldBase } from '../form-field/form-field.types'
3
3
  import { computed, ref, useId, useSlots } from 'vue'
4
4
  import { SelectOption } from '../types'
5
- import { translate } from '../../utils/translations/translate'
5
+ import { getTranslation } from '../../utils/translations/translate'
6
6
 
7
7
  interface Props extends FormFieldBase {
8
8
  name: string
@@ -112,15 +112,15 @@ const needsHelpTextSpacer = computed(() => {
112
112
 
113
113
  <div class="help-text">
114
114
  <span class="optional-text"
115
- >{{ translate('common.optional')
115
+ >{{ getTranslation('optional')
116
116
  }}<span v-if="needsHelpTextSpacer" v-html="spacer"></span></span
117
117
  ><slot name="helpText">{{ helpText }}</slot>
118
118
  </div>
119
119
 
120
120
  <div class="error-messages-container">
121
- <slot name="error-message"
122
- ><span>{{ errorMessage }}</span></slot
123
- >
121
+ <slot name="error-message">
122
+ <span>{{ errorMessage }}</span>
123
+ </slot>
124
124
  </div>
125
125
  </div>
126
126
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energie360/ui-library",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",