@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.
@@ -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' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='6.5' cy='6.5' r='6.5' fill='%23333'/%3E%3Cpath d='m4.414 3 2.12 2.121L8.658 3l1.414 1.414-2.122 2.122 2.122 2.121-1.414 1.414-2.122-2.12-2.12 2.12L3 8.656l2.12-2.12L3 4.412 4.414 3Z' fill='%23fff'/%3E%3C/svg%3E");
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
 
@@ -38,4 +38,8 @@
38
38
  border-radius: 100%;
39
39
  overflow: hidden;
40
40
  flex: 0 0 auto;
41
+
42
+ @include a.bp(m) {
43
+ display: none;
44
+ }
41
45
  }
@@ -21,7 +21,8 @@
21
21
 
22
22
  display: inline-flex;
23
23
  column-gap: var(--e-space-2);
24
- min-height: a.rem(24);
24
+
25
+ // min-height: a.rem(24);
25
26
  }
26
27
 
27
28
  // Horizontal align options
@@ -33,7 +33,7 @@
33
33
  position: relative;
34
34
 
35
35
  #{$el} {
36
- padding: var(--e-space-3) var(--e-space-4);
36
+ padding: 13px var(--e-space-4) 11px;
37
37
  transition: box-shadow a.$trs-default;
38
38
  width: 100%;
39
39
 
@@ -13,12 +13,14 @@
13
13
  position: absolute;
14
14
  top: 50%;
15
15
  right: var(--e-space-4);
16
- width: a.rem(16);
17
- height: a.rem(16);
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='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");
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
  }
@@ -43,4 +43,16 @@
43
43
  cursor: pointer;
44
44
  }
45
45
  }
46
+
47
+ &.has-cta {
48
+ .wrapper {
49
+ padding-right: calc(48px + var(--e-space-2));
50
+ }
51
+
52
+ .text-field__cta {
53
+ position: absolute;
54
+ right: 0;
55
+ top: 0;
56
+ }
57
+ }
46
58
  }
@@ -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: 680px;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energie360/ui-library",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,6 +28,7 @@
28
28
  .wizard-top-bar__right-column {
29
29
  display: flex;
30
30
  column-gap: var(--e-space-6);
31
+ align-items: center;
31
32
  }
32
33
 
33
34
  .wizard-top-bar__right-column {