@eturnity/eturnity_reusable_components 8.46.0 → 8.46.1

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": "8.46.0",
3
+ "version": "8.46.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -1,11 +1,13 @@
1
1
  <template>
2
2
  <Container data-test-id="iconTextContent_container">
3
- <RCIcon
4
- :color="iconColor"
5
- data-test-id="iconTextContent_icon"
6
- :name="iconName"
7
- :size="iconSize"
8
- />
3
+ <IconWrapper :icon-padding="iconPadding">
4
+ <RCIcon
5
+ :color="iconColor"
6
+ data-test-id="iconTextContent_icon"
7
+ :name="iconName"
8
+ :size="iconSize"
9
+ />
10
+ </IconWrapper>
9
11
  <TextWrapper
10
12
  data-test-id="iconTextContent_text"
11
13
  :font-color="fontColor"
@@ -64,12 +66,19 @@
64
66
  vertical-align: middle;
65
67
  `
66
68
 
69
+ const IconWrapper = styled('div', {
70
+ iconPadding: String,
71
+ })`
72
+ padding: ${(props) => props.iconPadding};
73
+ `
74
+
67
75
  export default {
68
76
  name: 'IconTextContent',
69
77
  components: {
70
78
  Container,
71
79
  TextWrapper,
72
80
  RCIcon,
81
+ IconWrapper,
73
82
  },
74
83
  props: {
75
84
  iconName: {
@@ -83,13 +92,18 @@
83
92
  iconSize: {
84
93
  type: String,
85
94
  required: false,
86
- default: '18px',
95
+ default: '16px',
87
96
  },
88
97
  iconColor: {
89
98
  type: String,
90
99
  required: false,
91
100
  default: '',
92
101
  },
102
+ iconPadding: {
103
+ type: String,
104
+ required: false,
105
+ default: '3px',
106
+ },
93
107
  fontSize: {
94
108
  type: String,
95
109
  required: false,