groundfloor-react-ui 1.2.2 → 1.2.4

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.
Files changed (52) hide show
  1. package/components/Avatar/AvatarSBfooter.js +1 -3
  2. package/components/Button/PrimaryButton.js +1 -1
  3. package/components/Cards/DocumentCard.js +126 -126
  4. package/components/Cards/index.js +1 -1
  5. package/components/Content/Content.js +1 -2
  6. package/components/Content/index.js +1 -1
  7. package/components/DesignComponent/StyledComponent/StyledComponent.js +1 -0
  8. package/components/DesignComponent/StyledComponent/index.js +1 -1
  9. package/components/DesignComponent/index.js +1 -1
  10. package/components/ErrorBoundary/ErrorBoundary.js +1 -1
  11. package/components/Footer/Footer.js +1 -2
  12. package/components/Footer/FooterContent.js +1 -3
  13. package/components/Footer/index.js +2 -1
  14. package/components/Form/SubmitComponent.js +1 -1
  15. package/components/Form/index.js +1 -0
  16. package/components/GroupButtons/ButtonPopup.js +2 -2
  17. package/components/GroupButtons/GroupButtons.js +1 -1
  18. package/components/GroupButtons/index.js +1 -1
  19. package/components/GroupStatusCircle/GroupStatusCircle.js +1 -1
  20. package/components/Header/Header.js +2 -2
  21. package/components/HyperLink/HyperLink.js +2 -2
  22. package/components/Icon/Icon.js +46 -46
  23. package/components/Inputs/ColorInput.js +47 -46
  24. package/components/Inputs/DropzoneInput.js +1 -1
  25. package/components/Inputs/NumericInput.js +5 -5
  26. package/components/Inputs/PasswordInput.js +5 -5
  27. package/components/Inputs/RadioInput.js +15 -14
  28. package/components/Inputs/Signature.js +1 -1
  29. package/components/Inputs/TextInput.js +4 -4
  30. package/components/Inputs/TimeInput.js +1 -1
  31. package/components/Label/Label.js +8 -8
  32. package/components/Loaders/Loader.js +3 -3
  33. package/components/Overlay/Overlay.js +2 -2
  34. package/components/Pagination/Pagination.js +17 -17
  35. package/components/ProgressSteps/ProgressSteps.js +1 -1
  36. package/components/SecondaryLink/DarkSecondaryLink.js +1 -1
  37. package/components/SecondaryLink/LightSecondaryLink.js +1 -1
  38. package/components/SecondaryLink/index.js +1 -1
  39. package/components/Sidebar/Sidebar.js +1 -1
  40. package/components/Sidebar/index.js +1 -1
  41. package/components/StatusChip/PrimaryStatusChip.js +1 -1
  42. package/components/StatusChip/SecondaryStatusChip.js +1 -1
  43. package/components/StatusChip/SlimPrimaryStatusChip.js +1 -1
  44. package/components/StatusChip/SlimSecondaryStatusChip.js +1 -1
  45. package/components/StatusCircle/StatusCircle.js +1 -1
  46. package/components/Tooltip/Tooltip.js +279 -279
  47. package/components/constants/defaultStyle.js +20 -20
  48. package/components/constants/defaultThemeColor.js +1 -1
  49. package/components/global/FontStyle.js +10 -10
  50. package/dist/index.es.js +222 -222
  51. package/dist/index.js +156 -156
  52. package/package.json +1 -1
@@ -9,356 +9,356 @@ import getDefaultStyles from '../constants/utils';
9
9
  /**
10
10
  * Primary UI component for user interaction
11
11
  */
12
- const TooltipContainer = styled.div`
12
+ const TooltipContainer = styled.div`
13
13
  background-color: ${({ theme }) => theme.bgColor};
14
14
  border: 1px solid ${({ theme }) => theme.bgColor};
15
15
  color: ${({ theme }) => theme.black},
16
16
  ${({ inBuiltCss, type, customStylesTPContainer }) => {
17
- if (inBuiltCss) {
18
- let tempObj = {};
19
- if (inBuiltCss['tooltip-container']) {
20
- for (const property in inBuiltCss['common']) {
21
- tempObj[property] = inBuiltCss['common'][property]
22
- }
23
- for (const property in inBuiltCss['tooltip-container']) {
24
- tempObj[property] = inBuiltCss['tooltip-container'][property]
25
- delete inBuiltCss.common[property]
26
- }
27
- }
28
- return { ...tempObj, ...customStylesTPContainer };
29
- }
30
- }}
17
+ if (inBuiltCss) {
18
+ let tempObj = {};
19
+ if (inBuiltCss['tooltip-container']) {
20
+ for (const property in inBuiltCss['common']) {
21
+ tempObj[property] = inBuiltCss['common'][property]
22
+ }
23
+ for (const property in inBuiltCss['tooltip-container']) {
24
+ tempObj[property] = inBuiltCss['tooltip-container'][property]
25
+ delete inBuiltCss.common[property]
26
+ }
27
+ }
28
+ return { ...tempObj, ...customStylesTPContainer };
29
+ }
30
+ }}
31
31
 
32
32
  &[data-popper-placement*='bottom'] .tooltip-arrow {
33
33
  ${({ inBuiltCss, type, customStylesTPAbottom }) => {
34
- if (inBuiltCss) {
35
- let tempObj = {};
36
- if (inBuiltCss['tp-cont-bottom-arrow']) {
37
- for (const property in inBuiltCss['common']) {
38
- tempObj[property] = inBuiltCss['common'][property]
39
- }
40
- for (const property in inBuiltCss['tp-cont-bottom-arrow']) {
41
- tempObj[property] = inBuiltCss['tp-cont-bottom-arrow'][property]
42
- delete inBuiltCss.common[property]
43
- }
44
- }
45
- return { ...tempObj, ...customStylesTPAbottom };
46
- }
47
- }}
34
+ if (inBuiltCss) {
35
+ let tempObj = {};
36
+ if (inBuiltCss['tp-cont-bottom-arrow']) {
37
+ for (const property in inBuiltCss['common']) {
38
+ tempObj[property] = inBuiltCss['common'][property]
39
+ }
40
+ for (const property in inBuiltCss['tp-cont-bottom-arrow']) {
41
+ tempObj[property] = inBuiltCss['tp-cont-bottom-arrow'][property]
42
+ delete inBuiltCss.common[property]
43
+ }
44
+ }
45
+ return { ...tempObj, ...customStylesTPAbottom };
46
+ }
47
+ }}
48
48
  }
49
49
 
50
50
  &[data-popper-placement*='bottom'] .tooltip-arrow::before {
51
51
  border-color: transparent transparent ${({ theme }) => theme.bgColor} transparent;
52
52
  ${({ inBuiltCss, type, customStylesTPAbottomBefore, theme }) => {
53
- if (inBuiltCss) {
54
- let tempObj = {};
55
- if (inBuiltCss['tp-cont-bottom-arrow-before']) {
56
- for (const property in inBuiltCss['common']) {
57
- tempObj[property] = inBuiltCss['common'][property]
58
- }
59
- for (const property in inBuiltCss['tp-cont-bottom-arrow-before']) {
60
- tempObj[property] = inBuiltCss['tp-cont-bottom-arrow-before'][property]
61
- delete inBuiltCss.common[property]
62
- }
63
- }
64
- let customStyles = customStylesTPAbottomBefore ? customStylesTPAbottomBefore : {
65
- borderColor: `transparent transparent ${theme.primary['primary-1']} transparent`,
66
- }
67
- return { ...tempObj, ...customStyles };
68
- }
69
- }}
53
+ if (inBuiltCss) {
54
+ let tempObj = {};
55
+ if (inBuiltCss['tp-cont-bottom-arrow-before']) {
56
+ for (const property in inBuiltCss['common']) {
57
+ tempObj[property] = inBuiltCss['common'][property]
58
+ }
59
+ for (const property in inBuiltCss['tp-cont-bottom-arrow-before']) {
60
+ tempObj[property] = inBuiltCss['tp-cont-bottom-arrow-before'][property]
61
+ delete inBuiltCss.common[property]
62
+ }
63
+ }
64
+ let customStyles = customStylesTPAbottomBefore ? customStylesTPAbottomBefore : {
65
+ borderColor: `transparent transparent ${theme.primary['primary-1']} transparent`,
66
+ }
67
+ return { ...tempObj, ...customStyles };
68
+ }
69
+ }}
70
70
  }
71
71
 
72
72
  &[data-popper-placement*='bottom'] .tooltip-arrow::after {
73
73
  border-color: transparent transparent ${({ theme }) => theme.bgColor} transparent;
74
74
  ${({ inBuiltCss, type, customStylesTPAbottomAfter, theme }) => {
75
- if (inBuiltCss) {
76
- let tempObj = {};
77
- if (inBuiltCss['tp-cont-bottom-arrow-before']) {
78
- for (const property in inBuiltCss['common']) {
79
- tempObj[property] = inBuiltCss['common'][property]
80
- }
81
- for (const property in inBuiltCss['tp-cont-bottom-arrow-after']) {
82
- tempObj[property] = inBuiltCss['tp-cont-bottom-arrow-after'][property]
83
- delete inBuiltCss.common[property]
84
- }
85
- }
86
- let customStyles = customStylesTPAbottomAfter ? customStylesTPAbottomAfter : {
87
- borderColor: `transparent transparent ${theme.primary['primary-1']} transparent`,
88
- }
89
- return { ...tempObj, ...customStyles };
90
-
91
- }
92
- }}
75
+ if (inBuiltCss) {
76
+ let tempObj = {};
77
+ if (inBuiltCss['tp-cont-bottom-arrow-before']) {
78
+ for (const property in inBuiltCss['common']) {
79
+ tempObj[property] = inBuiltCss['common'][property]
80
+ }
81
+ for (const property in inBuiltCss['tp-cont-bottom-arrow-after']) {
82
+ tempObj[property] = inBuiltCss['tp-cont-bottom-arrow-after'][property]
83
+ delete inBuiltCss.common[property]
84
+ }
85
+ }
86
+ let customStyles = customStylesTPAbottomAfter ? customStylesTPAbottomAfter : {
87
+ borderColor: `transparent transparent ${theme.primary['primary-1']} transparent`,
88
+ }
89
+ return { ...tempObj, ...customStyles };
90
+
91
+ }
92
+ }}
93
93
  }
94
94
  &[data-popper-placement*='top'] .tooltip-arrow {
95
95
  ${({ inBuiltCss, type, customStylesTPAtop }) => {
96
- if (inBuiltCss) {
97
- let tempObj = {};
98
- if (inBuiltCss['tp-cont-top-arrow']) {
99
- for (const property in inBuiltCss['common']) {
100
- tempObj[property] = inBuiltCss['common'][property]
101
- }
102
- for (const property in inBuiltCss['tp-cont-top-arrow']) {
103
- tempObj[property] = inBuiltCss['tp-cont-top-arrow'][property]
104
- delete inBuiltCss.common[property]
105
- }
106
- }
107
- return { ...tempObj, ...customStylesTPAtop };
108
- }
109
- }}
96
+ if (inBuiltCss) {
97
+ let tempObj = {};
98
+ if (inBuiltCss['tp-cont-top-arrow']) {
99
+ for (const property in inBuiltCss['common']) {
100
+ tempObj[property] = inBuiltCss['common'][property]
101
+ }
102
+ for (const property in inBuiltCss['tp-cont-top-arrow']) {
103
+ tempObj[property] = inBuiltCss['tp-cont-top-arrow'][property]
104
+ delete inBuiltCss.common[property]
105
+ }
106
+ }
107
+ return { ...tempObj, ...customStylesTPAtop };
108
+ }
109
+ }}
110
110
  }
111
111
  &[data-popper-placement*='top'] .tooltip-arrow::before {
112
112
  border-color: ${({ theme }) => theme.bgColor} transparent transparent transparent;
113
113
  ${({ inBuiltCss, type, customStylesTPAtopBefore, theme }) => {
114
- if (inBuiltCss) {
115
- let tempObj = {};
116
- if (inBuiltCss['tp-cont-top-arrow-before']) {
117
- for (const property in inBuiltCss['common']) {
118
- tempObj[property] = inBuiltCss['common'][property]
119
- }
120
- for (const property in inBuiltCss['tp-cont-top-arrow-before']) {
121
- tempObj[property] = inBuiltCss['tp-cont-top-arrow-before'][property]
122
- delete inBuiltCss.common[property]
123
- }
124
- }
125
- let customStyles = customStylesTPAtopBefore ? customStylesTPAtopBefore : {
126
- borderColor: `${theme.primary['primary-1']} transparent transparent transparent`,
127
- }
128
- return { ...tempObj, ...customStyles };
129
- }
130
- }}
114
+ if (inBuiltCss) {
115
+ let tempObj = {};
116
+ if (inBuiltCss['tp-cont-top-arrow-before']) {
117
+ for (const property in inBuiltCss['common']) {
118
+ tempObj[property] = inBuiltCss['common'][property]
119
+ }
120
+ for (const property in inBuiltCss['tp-cont-top-arrow-before']) {
121
+ tempObj[property] = inBuiltCss['tp-cont-top-arrow-before'][property]
122
+ delete inBuiltCss.common[property]
123
+ }
124
+ }
125
+ let customStyles = customStylesTPAtopBefore ? customStylesTPAtopBefore : {
126
+ borderColor: `${theme.primary['primary-1']} transparent transparent transparent`,
127
+ }
128
+ return { ...tempObj, ...customStyles };
129
+ }
130
+ }}
131
131
  }
132
132
  &[data-popper-placement*='top'] .tooltip-arrow::after {
133
133
  border-color: ${({ theme }) => theme.bgColor} transparent transparent transparent;
134
134
  ${({ inBuiltCss, type, customStylesTPAtopAfter, theme }) => {
135
- if (inBuiltCss) {
136
- let tempObj = {};
137
- if (inBuiltCss['tp-cont-top-arrow-before']) {
138
- for (const property in inBuiltCss['common']) {
139
- tempObj[property] = inBuiltCss['common'][property]
140
- }
141
- for (const property in inBuiltCss['tp-cont-top-arrow-after']) {
142
- tempObj[property] = inBuiltCss['tp-cont-top-arrow-after'][property]
143
- delete inBuiltCss.common[property]
144
- }
145
- }
146
-
147
- let customStyles = customStylesTPAtopAfter ? customStylesTPAtopAfter : {
148
- borderColor: `${theme.primary['primary-1']} transparent transparent transparent`,
149
- }
150
- return { ...tempObj, ...customStyles};
151
- }
152
- }}
135
+ if (inBuiltCss) {
136
+ let tempObj = {};
137
+ if (inBuiltCss['tp-cont-top-arrow-before']) {
138
+ for (const property in inBuiltCss['common']) {
139
+ tempObj[property] = inBuiltCss['common'][property]
140
+ }
141
+ for (const property in inBuiltCss['tp-cont-top-arrow-after']) {
142
+ tempObj[property] = inBuiltCss['tp-cont-top-arrow-after'][property]
143
+ delete inBuiltCss.common[property]
144
+ }
145
+ }
146
+
147
+ let customStyles = customStylesTPAtopAfter ? customStylesTPAtopAfter : {
148
+ borderColor: `${theme.primary['primary-1']} transparent transparent transparent`,
149
+ }
150
+ return { ...tempObj, ...customStyles };
151
+ }
152
+ }}
153
153
  }
154
154
  &[data-popper-placement*='right'] .tooltip-arrow {
155
155
  ${({ inBuiltCss, type, customStylesTPAright }) => {
156
- if (inBuiltCss) {
157
- let tempObj = {};
158
- if (inBuiltCss['tp-cont-right-arrow']) {
159
- for (const property in inBuiltCss['common']) {
160
- tempObj[property] = inBuiltCss['common'][property]
161
- }
162
- for (const property in inBuiltCss['tp-cont-right-arrow']) {
163
- tempObj[property] = inBuiltCss['tp-cont-right-arrow'][property]
164
- delete inBuiltCss.common[property]
165
- }
166
- }
167
- return { ...tempObj, ...customStylesTPAright };
168
- }
169
- }}
156
+ if (inBuiltCss) {
157
+ let tempObj = {};
158
+ if (inBuiltCss['tp-cont-right-arrow']) {
159
+ for (const property in inBuiltCss['common']) {
160
+ tempObj[property] = inBuiltCss['common'][property]
161
+ }
162
+ for (const property in inBuiltCss['tp-cont-right-arrow']) {
163
+ tempObj[property] = inBuiltCss['tp-cont-right-arrow'][property]
164
+ delete inBuiltCss.common[property]
165
+ }
166
+ }
167
+ return { ...tempObj, ...customStylesTPAright };
168
+ }
169
+ }}
170
170
  }
171
171
  &[data-popper-placement*='right'] .tooltip-arrow::before {
172
172
  border-color: transparent ${({ theme }) => theme.bgColor} transparent transparent;
173
173
  ${({ inBuiltCss, type, customStylesTPArightBefore, theme }) => {
174
- if (inBuiltCss) {
175
- let tempObj = {};
176
- if (inBuiltCss['tp-cont-right-arrow-before']) {
177
- for (const property in inBuiltCss['common']) {
178
- tempObj[property] = inBuiltCss['common'][property]
179
- }
180
- for (const property in inBuiltCss['tp-cont-right-arrow-before']) {
181
- tempObj[property] = inBuiltCss['tp-cont-right-arrow-before'][property]
182
- delete inBuiltCss.common[property]
183
- }
184
- }
185
- let customStyles = customStylesTPArightBefore ? customStylesTPArightBefore : {
186
- borderColor: `transparent ${theme.primary['primary-1']} transparent transparent`,
187
- }
188
- return { ...tempObj, ...customStyles };
189
-
190
- }
191
- }}
174
+ if (inBuiltCss) {
175
+ let tempObj = {};
176
+ if (inBuiltCss['tp-cont-right-arrow-before']) {
177
+ for (const property in inBuiltCss['common']) {
178
+ tempObj[property] = inBuiltCss['common'][property]
179
+ }
180
+ for (const property in inBuiltCss['tp-cont-right-arrow-before']) {
181
+ tempObj[property] = inBuiltCss['tp-cont-right-arrow-before'][property]
182
+ delete inBuiltCss.common[property]
183
+ }
184
+ }
185
+ let customStyles = customStylesTPArightBefore ? customStylesTPArightBefore : {
186
+ borderColor: `transparent ${theme.primary['primary-1']} transparent transparent`,
187
+ }
188
+ return { ...tempObj, ...customStyles };
189
+
190
+ }
191
+ }}
192
192
  }
193
193
  &[data-popper-placement*='right'] .tooltip-arrow::after {
194
194
  border-color: transparent ${({ theme }) => theme.bgColor} transparent transparent;
195
195
  ${({ inBuiltCss, type, customStylesTPArightAfter, theme }) => {
196
- if (inBuiltCss) {
197
- let tempObj = {};
198
- if (inBuiltCss['tp-cont-right-arrow-before']) {
199
- for (const property in inBuiltCss['common']) {
200
- tempObj[property] = inBuiltCss['common'][property]
201
- }
202
- for (const property in inBuiltCss['tp-cont-right-arrow-after']) {
203
- tempObj[property] = inBuiltCss['tp-cont-right-arrow-after'][property]
204
- delete inBuiltCss.common[property]
205
- }
206
- }
207
- let customStyles = customStylesTPArightAfter ? customStylesTPArightAfter : {
208
- borderColor: `transparent ${theme.primary['primary-1']} transparent transparent`,
209
- }
210
- return { ...tempObj, ...customStyles };
211
-
212
- }
213
- }}
196
+ if (inBuiltCss) {
197
+ let tempObj = {};
198
+ if (inBuiltCss['tp-cont-right-arrow-before']) {
199
+ for (const property in inBuiltCss['common']) {
200
+ tempObj[property] = inBuiltCss['common'][property]
201
+ }
202
+ for (const property in inBuiltCss['tp-cont-right-arrow-after']) {
203
+ tempObj[property] = inBuiltCss['tp-cont-right-arrow-after'][property]
204
+ delete inBuiltCss.common[property]
205
+ }
206
+ }
207
+ let customStyles = customStylesTPArightAfter ? customStylesTPArightAfter : {
208
+ borderColor: `transparent ${theme.primary['primary-1']} transparent transparent`,
209
+ }
210
+ return { ...tempObj, ...customStyles };
211
+
212
+ }
213
+ }}
214
214
  }
215
215
  &[data-popper-placement*='left'] .tooltip-arrow {
216
216
  ${({ inBuiltCss, type, customStylesTPAleft }) => {
217
- if (inBuiltCss) {
218
- let tempObj = {};
219
- if (inBuiltCss['tp-cont-left-arrow']) {
220
- for (const property in inBuiltCss['common']) {
221
- tempObj[property] = inBuiltCss['common'][property]
222
- }
223
- for (const property in inBuiltCss['tp-cont-left-arrow']) {
224
- tempObj[property] = inBuiltCss['tp-cont-left-arrow'][property]
225
- delete inBuiltCss.common[property]
226
- }
227
- }
228
- return { ...tempObj, ...customStylesTPAleft };
229
- }
230
- }}
217
+ if (inBuiltCss) {
218
+ let tempObj = {};
219
+ if (inBuiltCss['tp-cont-left-arrow']) {
220
+ for (const property in inBuiltCss['common']) {
221
+ tempObj[property] = inBuiltCss['common'][property]
222
+ }
223
+ for (const property in inBuiltCss['tp-cont-left-arrow']) {
224
+ tempObj[property] = inBuiltCss['tp-cont-left-arrow'][property]
225
+ delete inBuiltCss.common[property]
226
+ }
227
+ }
228
+ return { ...tempObj, ...customStylesTPAleft };
229
+ }
230
+ }}
231
231
  }
232
232
  &[data-popper-placement*='left'] .tooltip-arrow::before {
233
233
 
234
234
  border-color: transparent transparent transparent ${({ theme }) => theme.bgColor};
235
235
  ${({ inBuiltCss, type, customStylesTPAleftBefore, theme }) => {
236
- if (inBuiltCss) {
237
- let tempObj = {};
238
- if (inBuiltCss['tp-cont-left-arrow-before']) {
239
- for (const property in inBuiltCss['common']) {
240
- tempObj[property] = inBuiltCss['common'][property]
241
- }
242
- for (const property in inBuiltCss['tp-cont-left-arrow-before']) {
243
- tempObj[property] = inBuiltCss['tp-cont-left-arrow-before'][property]
244
- delete inBuiltCss.common[property]
245
- }
246
- }
247
- let customStyles = customStylesTPAleftBefore ? customStylesTPAleftBefore : {
248
- borderColor: `transparent transparent transparent ${theme.primary['primary-1']} `,
249
- }
250
- return { ...tempObj, ...customStyles };
251
- }
252
- }}
236
+ if (inBuiltCss) {
237
+ let tempObj = {};
238
+ if (inBuiltCss['tp-cont-left-arrow-before']) {
239
+ for (const property in inBuiltCss['common']) {
240
+ tempObj[property] = inBuiltCss['common'][property]
241
+ }
242
+ for (const property in inBuiltCss['tp-cont-left-arrow-before']) {
243
+ tempObj[property] = inBuiltCss['tp-cont-left-arrow-before'][property]
244
+ delete inBuiltCss.common[property]
245
+ }
246
+ }
247
+ let customStyles = customStylesTPAleftBefore ? customStylesTPAleftBefore : {
248
+ borderColor: `transparent transparent transparent ${theme.primary['primary-1']} `,
249
+ }
250
+ return { ...tempObj, ...customStyles };
251
+ }
252
+ }}
253
253
  }
254
254
  &[data-popper-placement*='left'] .tooltip-arrow::after {
255
255
  border-color: transparent transparent transparent ${({ theme }) => theme.bgColor};
256
256
  ${({ inBuiltCss, type, customStylesTPAleftAfter, theme }) => {
257
- if (inBuiltCss) {
258
- let tempObj = {};
259
- if (inBuiltCss['tp-cont-left-arrow-before']) {
260
- for (const property in inBuiltCss['common']) {
261
- tempObj[property] = inBuiltCss['common'][property]
262
- }
263
- for (const property in inBuiltCss['tp-cont-left-arrow-after']) {
264
- tempObj[property] = inBuiltCss['tp-cont-left-arrow-after'][property]
265
- delete inBuiltCss.common[property]
266
- }
267
- }
268
- let customStyles = customStylesTPAleftAfter ? customStylesTPAleftAfter : {
269
- borderColor: `transparent transparent transparent ${theme.primary['primary-1']} `,
270
- }
271
- return { ...tempObj, ...customStyles };
272
-
273
- }
274
- }}
257
+ if (inBuiltCss) {
258
+ let tempObj = {};
259
+ if (inBuiltCss['tp-cont-left-arrow-before']) {
260
+ for (const property in inBuiltCss['common']) {
261
+ tempObj[property] = inBuiltCss['common'][property]
262
+ }
263
+ for (const property in inBuiltCss['tp-cont-left-arrow-after']) {
264
+ tempObj[property] = inBuiltCss['tp-cont-left-arrow-after'][property]
265
+ delete inBuiltCss.common[property]
266
+ }
267
+ }
268
+ let customStyles = customStylesTPAleftAfter ? customStylesTPAleftAfter : {
269
+ borderColor: `transparent transparent transparent ${theme.primary['primary-1']} `,
270
+ }
271
+ return { ...tempObj, ...customStyles };
272
+
273
+ }
274
+ }}
275
275
  }
276
276
  `;
277
-
278
- const TooltipArrow = styled.div`
277
+
278
+ const TooltipArrow = styled.div`
279
279
 
280
280
  ${({ inBuiltCss, type, customStylesTPArrow }) => {
281
- if (inBuiltCss) {
282
- let tempObj = {};
283
- if (inBuiltCss['tooltip-arrow']) {
284
- for (const property in inBuiltCss['common']) {
285
- tempObj[property] = inBuiltCss['common'][property]
286
- }
287
- for (const property in inBuiltCss['tooltip-arrow']) {
288
- tempObj[property] = inBuiltCss['tooltip-arrow'][property]
289
- delete inBuiltCss.common[property]
290
- }
291
- }
292
- return { ...tempObj, ...customStylesTPArrow };
293
- }
294
- }}
281
+ if (inBuiltCss) {
282
+ let tempObj = {};
283
+ if (inBuiltCss['tooltip-arrow']) {
284
+ for (const property in inBuiltCss['common']) {
285
+ tempObj[property] = inBuiltCss['common'][property]
286
+ }
287
+ for (const property in inBuiltCss['tooltip-arrow']) {
288
+ tempObj[property] = inBuiltCss['tooltip-arrow'][property]
289
+ delete inBuiltCss.common[property]
290
+ }
291
+ }
292
+ return { ...tempObj, ...customStylesTPArrow };
293
+ }
294
+ }}
295
295
 
296
296
 
297
297
  &::before{
298
298
  ${({ inBuiltCss, type, customStylesTPAbefore }) => {
299
- if (inBuiltCss) {
300
- let tempObj = {};
301
- if (inBuiltCss['tooltip-arrow-before']) {
302
- for (const property in inBuiltCss['common']) {
303
- tempObj[property] = inBuiltCss['common'][property]
304
- }
305
- for (const property in inBuiltCss['tooltip-arrow-before']) {
306
- tempObj[property] = inBuiltCss['tooltip-arrow-before'][property]
307
- delete inBuiltCss.common[property]
308
- }
309
- }
310
- return { ...tempObj, ...customStylesTPAbefore };
311
- }
312
- }}
299
+ if (inBuiltCss) {
300
+ let tempObj = {};
301
+ if (inBuiltCss['tooltip-arrow-before']) {
302
+ for (const property in inBuiltCss['common']) {
303
+ tempObj[property] = inBuiltCss['common'][property]
304
+ }
305
+ for (const property in inBuiltCss['tooltip-arrow-before']) {
306
+ tempObj[property] = inBuiltCss['tooltip-arrow-before'][property]
307
+ delete inBuiltCss.common[property]
308
+ }
309
+ }
310
+ return { ...tempObj, ...customStylesTPAbefore };
311
+ }
312
+ }}
313
313
  }
314
314
 
315
315
  &::after{
316
316
  ${({ inBuiltCss, type, customStylesTPAafter }) => {
317
- if (inBuiltCss) {
318
- let tempObj = {};
319
- if (inBuiltCss['tooltip-arrow-after']) {
320
- for (const property in inBuiltCss['common']) {
321
- tempObj[property] = inBuiltCss['common'][property]
322
- }
323
- for (const property in inBuiltCss['tooltip-arrow-after']) {
324
- tempObj[property] = inBuiltCss['tooltip-arrow-after'][property]
325
- delete inBuiltCss.common[property]
326
- }
327
- }
328
- return { ...tempObj, ...customStylesTPAafter };
329
- }
330
- }}
317
+ if (inBuiltCss) {
318
+ let tempObj = {};
319
+ if (inBuiltCss['tooltip-arrow-after']) {
320
+ for (const property in inBuiltCss['common']) {
321
+ tempObj[property] = inBuiltCss['common'][property]
322
+ }
323
+ for (const property in inBuiltCss['tooltip-arrow-after']) {
324
+ tempObj[property] = inBuiltCss['tooltip-arrow-after'][property]
325
+ delete inBuiltCss.common[property]
326
+ }
327
+ }
328
+ return { ...tempObj, ...customStylesTPAafter };
329
+ }
330
+ }}
331
331
  }
332
332
  `;
333
-
334
-
335
- const TooltipContent = styled.div`
333
+
334
+
335
+ const TooltipContent = styled.div`
336
336
 
337
337
  background-color: ${({ theme }) => theme.primary['primary-1']};
338
338
  ${({ inBuiltCss, defaultTooltipContentStyle }) => {
339
- return getDefaultStyles(inBuiltCss, defaultTooltipContentStyle);
340
- }}
339
+ return getDefaultStyles(inBuiltCss, defaultTooltipContentStyle);
340
+ }}
341
341
  // custom styles
342
342
  ${({ customContentStyle }) => customContentStyle}
343
343
  `
344
-
345
- const Header = styled.div`
344
+
345
+ const Header = styled.div`
346
346
  ${({ inBuiltCss, defaultTooltipHeaderStyle }) => {
347
- return getDefaultStyles(inBuiltCss, defaultTooltipHeaderStyle);
348
- }}
347
+ return getDefaultStyles(inBuiltCss, defaultTooltipHeaderStyle);
348
+ }}
349
349
  // custom styles
350
350
  ${({ customHeaderStyle }) => customHeaderStyle}
351
351
  `
352
-
353
- const Body = styled.div`
352
+
353
+ const Body = styled.div`
354
354
  ${({ inBuiltCss, defaultTooltipBodyStyle }) => {
355
- return getDefaultStyles(inBuiltCss, defaultTooltipBodyStyle);
356
- }}
355
+ return getDefaultStyles(inBuiltCss, defaultTooltipBodyStyle);
356
+ }}
357
357
  // custom styles
358
358
  ${({ customBodyStyle }) => customBodyStyle}
359
359
  `
360
-
361
- const Footer = styled.div`
360
+
361
+ const Footer = styled.div`
362
362
  `
363
363
 
364
364
  export const Tooltip = ({
@@ -452,11 +452,11 @@ export const Tooltip = ({
452
452
  customStylesTPAafter={customStylesTPAafter}
453
453
  />
454
454
  <TooltipContent defaultTooltipContentStyle={'popOver-Content'} theme={activeTheme} inBuiltCss={defaultStyles}
455
- {...props} customContentStyle={customContentStyle}>
455
+ {...props} customContentStyle={customContentStyle}>
456
456
  <Header defaultTooltipHeaderStyle={'popOver-header'} theme={activeTheme} inBuiltCss={defaultStyles}
457
- {...props} customHeaderStyle={customHeaderStyle}>{headerTooltip}</Header>
457
+ {...props} customHeaderStyle={customHeaderStyle}>{headerTooltip}</Header>
458
458
  <Body defaultTooltipBodyStyle={'popOver-body'} theme={activeTheme} inBuiltCss={defaultStyles}
459
- {...props} customBodyStyle={customBodyStyle}>{contentTooltip}</Body>
459
+ {...props} customBodyStyle={customBodyStyle}>{contentTooltip}</Body>
460
460
  <Footer >{footerTooltip}</Footer>
461
461
  </TooltipContent>
462
462
  </TooltipContainer>
@@ -478,7 +478,7 @@ Tooltip.propTypes = {
478
478
  /**
479
479
  * The Body element to put inside the tooltip
480
480
  */
481
- contentTooltip: PropTypes.any,
481
+ contentTooltip: PropTypes.any,
482
482
  /**
483
483
  * The footer element to put inside the tooltip
484
484
  */
@@ -500,12 +500,12 @@ Tooltip.propTypes = {
500
500
  /**
501
501
  * Object to pass custom style to the Tooltip container
502
502
  */
503
- customHeaderStyle: PropTypes.object,
503
+ customHeaderStyle: PropTypes.object,
504
504
  /**
505
505
  * Object to pass custom style to the Tooltip container
506
506
  */
507
- customBodyStyle: PropTypes.object,
508
-
507
+ customBodyStyle: PropTypes.object,
508
+
509
509
  /**
510
510
  * Object to pass custom style to the Tooltip container
511
511
  */
@@ -577,5 +577,5 @@ Tooltip.defaultProps = {
577
577
  headerTooltip: 'Lovely tooltip title',
578
578
  contentTooltip: '',
579
579
  footerTooltip: '',
580
- customStylesTPContainer:{border: 'none'},
580
+ customStylesTPContainer: { border: 'none' },
581
581
  };