@energie360/ui-library 0.1.36 → 0.1.37
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/components/badge/badge.scss +3 -1
- package/components/card-contact/card-contact.scss +4 -0
- package/components/table/table-cell.mixins.scss +2 -1
- package/elements/form-field/form-field-base.scss +1 -1
- package/elements/select/select.scss +17 -3
- package/elements/text-field/text-field.scss +12 -0
- package/elements/text-field/u-text-field.vue +6 -0
- package/modules/login-animation/login-animation.scss +5 -1
- package/package.json +1 -1
- package/wizard/wizard-top-bar/wizard-top-bar.scss +1 -0
|
@@ -48,9 +48,11 @@ $ease-out-bounce: cubic-bezier(0.674, 1.901, 0.651, 0.744);
|
|
|
48
48
|
.badge__sup.state {
|
|
49
49
|
width: 13px;
|
|
50
50
|
height: 13px;
|
|
51
|
+
top: -2px;
|
|
52
|
+
right: -2px;
|
|
51
53
|
|
|
52
54
|
&.inactive {
|
|
53
|
-
background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' fill='none'
|
|
55
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='none' viewBox='0 0 13 13'%3E%3Cpath fill='%23333' d='M13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0'/%3E%3Cpath fill='%23fff' d='M8.089 3.496A1.001 1.001 0 0 1 9.504 4.91L7.914 6.5l1.59 1.589.068.076a1.001 1.001 0 0 1-1.407 1.407l-.076-.068-1.59-1.59-1.589 1.59-.076.068A1 1 0 0 1 3.496 8.09l1.59-1.59-1.59-1.589A1 1 0 1 1 4.91 3.496l1.59 1.59z'/%3E%3C/svg%3E");
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
|
|
@@ -13,12 +13,14 @@
|
|
|
13
13
|
position: absolute;
|
|
14
14
|
top: 50%;
|
|
15
15
|
right: var(--e-space-4);
|
|
16
|
-
width: a.rem(
|
|
17
|
-
height: a.rem(
|
|
16
|
+
width: a.rem(24);
|
|
17
|
+
height: a.rem(24);
|
|
18
18
|
transform: translateY(-50%);
|
|
19
19
|
|
|
20
20
|
// TODO: find a better solution for this.
|
|
21
|
-
background-image: url("data:image/svg+xml,%3Csvg width='
|
|
21
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%233c8420' fill-rule='evenodd' d='M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414' clip-rule='evenodd'/%3E%3C/svg%3E");
|
|
22
|
+
|
|
23
|
+
// background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.06 5.53 8 8.583 4.94 5.53 4 6.47l4 4 4-4-.94-.94Z' fill='%23333'/%3E%3C/svg%3E");
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
select {
|
|
@@ -29,4 +31,16 @@
|
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
}
|
|
34
|
+
|
|
35
|
+
&.has-error {
|
|
36
|
+
.control::after {
|
|
37
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23B90D31' fill-rule='evenodd' d='M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414' clip-rule='evenodd'/%3E%3C/svg%3E");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.disabled {
|
|
42
|
+
.control::after {
|
|
43
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23b3b3b3' fill-rule='evenodd' d='M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414' clip-rule='evenodd'/%3E%3C/svg%3E");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
32
46
|
}
|
|
@@ -4,6 +4,7 @@ import { TextFieldTypes } from './text-field.types'
|
|
|
4
4
|
import { computed, ref, useId, useSlots, useTemplateRef, watch } from 'vue'
|
|
5
5
|
import { FormFieldBase } from '../form-field/form-field.types'
|
|
6
6
|
import { getTranslation } from '../../utils/translations/translate'
|
|
7
|
+
import { hasSlotContent } from '../../utils/vue/helpers'
|
|
7
8
|
|
|
8
9
|
interface Props extends FormFieldBase {
|
|
9
10
|
name: string
|
|
@@ -131,6 +132,7 @@ watch(model, () => {
|
|
|
131
132
|
'float-label': isFocused || hasValue || placeholder || forceFloatLabel,
|
|
132
133
|
'has-error': error,
|
|
133
134
|
'show-help-text': hasHelpText,
|
|
135
|
+
'has-cta': hasSlotContent($slots.cta),
|
|
134
136
|
},
|
|
135
137
|
type,
|
|
136
138
|
]"
|
|
@@ -206,6 +208,10 @@ watch(model, () => {
|
|
|
206
208
|
<span v-if="!!slots.action" class="suffix-action custom-action">
|
|
207
209
|
<slot name="action"></slot>
|
|
208
210
|
</span>
|
|
211
|
+
|
|
212
|
+
<div v-if="hasSlotContent($slots.cta)" class="text-field__cta">
|
|
213
|
+
<slot name="cta"></slot>
|
|
214
|
+
</div>
|
|
209
215
|
</div>
|
|
210
216
|
|
|
211
217
|
<div class="help-text">
|
|
@@ -25,7 +25,7 @@ $sprite-height-mobile: 59px;
|
|
|
25
25
|
|
|
26
26
|
.login-animation__image {
|
|
27
27
|
position: relative;
|
|
28
|
-
max-width:
|
|
28
|
+
max-width: 900px;
|
|
29
29
|
margin: 0 60px;
|
|
30
30
|
padding: 5%;
|
|
31
31
|
|
|
@@ -41,6 +41,10 @@ $sprite-height-mobile: 59px;
|
|
|
41
41
|
animation-timing-function: ease-in-out;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
@media (width <= 2400px) {
|
|
45
|
+
max-width: 680px;
|
|
46
|
+
}
|
|
47
|
+
|
|
44
48
|
@include a.bp(lg) {
|
|
45
49
|
margin: 0 40px;
|
|
46
50
|
}
|
package/package.json
CHANGED