fleetcor-lwc 2.4.2 → 2.5.0

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/README.md CHANGED
@@ -253,6 +253,9 @@ $FLT_RADIO_GROUP_CIRCLE_DISABLED_SELECTED_BG_COLOR: var(
253
253
 
254
254
  ## Release Notes:
255
255
 
256
+ - v.2.5.0
257
+ - Available icons for `flt-radio-group`
258
+
256
259
  - v.2.4.2
257
260
  - Bug fix at `flt-radio-group`
258
261
 
@@ -33,6 +33,13 @@
33
33
  @media (min-width: 768px) {
34
34
  margin-top: 0;
35
35
  }
36
+
37
+ &:last-child {
38
+ margin-right: 0;
39
+ .flt-radio-item__icon {
40
+ margin-right: 0;
41
+ }
42
+ }
36
43
  }
37
44
 
38
45
  &__error-message {
@@ -1,6 +1,11 @@
1
1
  <template lwc:render-mode="light">
2
2
  <div onclick={handleClick} class={styleClass} autotests-value={option.value}>
3
3
  <span class="flt-radio-item__circle"></span>
4
- <span class="flt-radio-item__label">{option.label}</span>
4
+ <template if:true={option.icon}>
5
+ <img class="flt-radio-item__icon" src={option.icon} alt={option.label} />
6
+ </template>
7
+ <template if:false={option.icon}>
8
+ <span class="flt-radio-item__label">{option.label}</span>
9
+ </template>
5
10
  </div>
6
11
  </template>
@@ -52,4 +52,11 @@
52
52
  margin-right: 1rem;
53
53
  border-radius: 100%;
54
54
  }
55
+
56
+ &__icon {
57
+ width: 58px;
58
+ height: 40px;
59
+ object-fit: contain;
60
+ margin-right: 1rem;
61
+ }
55
62
  }
@@ -21,6 +21,7 @@ export default class SelectElement extends UserDataValidator {
21
21
  result = this.options.map((item) => {
22
22
  return {
23
23
  label: item.label,
24
+ icon: item.icon,
24
25
  key: `${this.name}_${item.value}`,
25
26
  disabled: this.disabled,
26
27
  value: item.value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetcor-lwc",
3
- "version": "2.4.2",
3
+ "version": "2.5.0",
4
4
  "description": "LWC framework by Fleetcor",
5
5
  "repository": {
6
6
  "type": "git",