@zohodesk/components 1.6.6 → 1.6.7-exp-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 +10 -0
- package/es/Avatar/Avatar.module.css +8 -8
- package/es/AvatarTeam/AvatarTeam.module.css +30 -30
- package/es/Button/css/Button.module.css +19 -19
- package/es/Buttongroup/Buttongroup.module.css +3 -5
- package/es/Card/Card.module.css +6 -4
- package/es/DateTime/DateWidget.module.css +1 -1
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +4 -4
- package/es/DropDown/DropDownItem.module.css +4 -4
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/Label/Label.module.css +5 -5
- package/es/ListItem/ListItem.module.css +19 -30
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +1 -1
- package/es/Radio/Radio.module.css +8 -9
- package/es/Ribbon/Ribbon.module.css +16 -19
- package/es/RippleEffect/RippleEffect.module.css +55 -17
- package/es/Stencils/Stencils.module.css +30 -14
- package/es/Tag/Tag.module.css +17 -18
- package/es/TextBox/TextBox.module.css +9 -9
- package/es/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/es/Textarea/Textarea.module.css +18 -18
- package/es/Tooltip/Tooltip.module.css +2 -2
- package/es/Typography/Typography.js +18 -8
- package/es/Typography/__tests__/Typography.spec.js +198 -6
- package/es/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1235 -2
- package/es/Typography/css/Typography.module.css +4 -0
- package/es/Typography/css/cssJSLogic.js +53 -21
- package/es/Typography/props/defaultProps.js +4 -3
- package/es/Typography/props/propTypes.js +68 -26
- package/es/Typography/utils/textHighlighter.js +2 -2
- package/es/common/avatarsizes.module.css +16 -16
- package/es/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/es/v1/Switch/css/Switch_v1.module.css +28 -28
- package/lib/Avatar/Avatar.module.css +8 -8
- package/lib/AvatarTeam/AvatarTeam.module.css +30 -30
- package/lib/Button/css/Button.module.css +19 -19
- package/lib/Buttongroup/Buttongroup.module.css +3 -5
- package/lib/Card/Card.module.css +6 -4
- package/lib/DateTime/DateWidget.module.css +1 -1
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +4 -4
- package/lib/DropDown/DropDownItem.module.css +4 -4
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/Label/Label.module.css +5 -5
- package/lib/ListItem/ListItem.module.css +19 -30
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +1 -1
- package/lib/Radio/Radio.module.css +8 -9
- package/lib/Ribbon/Ribbon.module.css +16 -19
- package/lib/RippleEffect/RippleEffect.module.css +55 -17
- package/lib/Stencils/Stencils.module.css +30 -14
- package/lib/Tag/Tag.module.css +17 -18
- package/lib/TextBox/TextBox.module.css +9 -9
- package/lib/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/lib/Textarea/Textarea.module.css +18 -18
- package/lib/Tooltip/Tooltip.module.css +2 -2
- package/lib/Typography/Typography.js +15 -5
- package/lib/Typography/__tests__/Typography.spec.js +284 -92
- package/lib/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1235 -2
- package/lib/Typography/css/Typography.module.css +4 -0
- package/lib/Typography/css/cssJSLogic.js +38 -6
- package/lib/Typography/props/defaultProps.js +6 -3
- package/lib/Typography/props/propTypes.js +67 -23
- package/lib/Typography/utils/textHighlighter.js +3 -3
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/lib/v1/Switch/css/Switch_v1.module.css +28 -28
- package/package.json +13 -10
- package/_react-cli.config.js +0 -24
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* stencils default variables */
|
|
3
|
-
--stencil_height:
|
|
3
|
+
--stencil_height: var(--zd_size9);
|
|
4
4
|
--stencil_width: 100%;
|
|
5
5
|
--stencil_border_radius: 5px;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
.container {
|
|
8
9
|
composes: varClass;
|
|
9
10
|
height: var(--stencil_height);
|
|
10
11
|
width: var(--stencil_width);
|
|
11
12
|
border-radius: var(--stencil_border_radius);
|
|
12
13
|
}
|
|
14
|
+
|
|
13
15
|
.stencil {
|
|
14
16
|
background-size: 800px 1px;
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
|
|
19
|
+
[dir=ltr] .animate {
|
|
17
20
|
animation-name: placeHolderShimmer-ltr ;
|
|
18
21
|
animation-fill-mode: forwards;
|
|
19
22
|
animation-iteration-count: infinite;
|
|
20
23
|
animation-duration: var(--zd_transition10);
|
|
21
24
|
animation-timing-function: linear;
|
|
22
25
|
}
|
|
23
|
-
|
|
26
|
+
|
|
27
|
+
[dir=rtl] .animate {
|
|
24
28
|
animation-name: placeHolderShimmer-rtl ;
|
|
25
29
|
animation-fill-mode: forwards;
|
|
26
30
|
animation-iteration-count: infinite;
|
|
27
31
|
animation-duration: var(--zd_transition10);
|
|
28
32
|
animation-timing-function: linear;
|
|
29
33
|
}
|
|
34
|
+
|
|
30
35
|
@keyframes placeHolderShimmer-ltr {
|
|
31
36
|
0% {
|
|
32
37
|
background-position: calc(var(--zd_size468) * -1) 0;
|
|
@@ -36,6 +41,7 @@
|
|
|
36
41
|
background-position: var(--zd_size468) 0;
|
|
37
42
|
}
|
|
38
43
|
}
|
|
44
|
+
|
|
39
45
|
@keyframes placeHolderShimmer-rtl {
|
|
40
46
|
0% {
|
|
41
47
|
background-position: calc(100% - (var(--zd_size468) * -1)) 0;
|
|
@@ -48,53 +54,63 @@
|
|
|
48
54
|
|
|
49
55
|
.rect {
|
|
50
56
|
composes: stencil;
|
|
51
|
-
--stencil_height:
|
|
57
|
+
--stencil_height: var(--zd_size9);
|
|
52
58
|
--stencil_border_radius: 5px;
|
|
53
59
|
}
|
|
60
|
+
|
|
54
61
|
.primary {
|
|
55
62
|
background-color: var(--zdt_stencil_primary_bg);
|
|
56
63
|
background-image: var(--zdt_stencil_primary_gradient_bg);
|
|
57
64
|
}
|
|
65
|
+
|
|
58
66
|
.secondary {
|
|
59
67
|
background-color: var(--zdt_stencil_secondary_bg);
|
|
60
68
|
background-image: var(--zdt_stencil_secondary_gradient_bg);
|
|
61
69
|
}
|
|
70
|
+
|
|
62
71
|
.dark {
|
|
63
72
|
background-color: var(--zdt_stencil_dark_bg);
|
|
64
73
|
background-image: var(--zdt_stencil_dark_gradient_bg);
|
|
65
74
|
}
|
|
66
75
|
|
|
67
76
|
.small {
|
|
68
|
-
--stencil_width:
|
|
77
|
+
--stencil_width: var(--zd_size110);
|
|
69
78
|
}
|
|
79
|
+
|
|
70
80
|
.default {
|
|
71
81
|
--stencil_width: 100%;
|
|
72
82
|
}
|
|
83
|
+
|
|
73
84
|
.medium {
|
|
74
|
-
--stencil_width:
|
|
85
|
+
--stencil_width: var(--zd_size170);
|
|
75
86
|
}
|
|
87
|
+
|
|
76
88
|
.large {
|
|
77
|
-
--stencil_width:
|
|
89
|
+
--stencil_width: var(--zd_size220);
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
.circle {
|
|
81
93
|
composes: stencil;
|
|
82
94
|
--stencil_border_radius: 50%;
|
|
83
95
|
}
|
|
96
|
+
|
|
84
97
|
.square {
|
|
85
98
|
composes: stencil;
|
|
86
99
|
--stencil_border_radius: 4px;
|
|
87
100
|
}
|
|
101
|
+
|
|
88
102
|
.size_large {
|
|
89
|
-
--stencil_width:
|
|
90
|
-
--stencil_height:
|
|
103
|
+
--stencil_width: var(--zd_size42);
|
|
104
|
+
--stencil_height: var(--zd_size42);
|
|
91
105
|
}
|
|
106
|
+
|
|
92
107
|
.size_medium,
|
|
93
108
|
.size_default {
|
|
94
|
-
--stencil_width:
|
|
95
|
-
--stencil_height:
|
|
109
|
+
--stencil_width: var(--zd_size30);
|
|
110
|
+
--stencil_height: var(--zd_size30);
|
|
96
111
|
}
|
|
112
|
+
|
|
97
113
|
.size_small {
|
|
98
|
-
--stencil_width:
|
|
99
|
-
--stencil_height:
|
|
100
|
-
}
|
|
114
|
+
--stencil_width: var(--zd_size20);
|
|
115
|
+
--stencil_height: var(--zd_size20);
|
|
116
|
+
}
|
package/lib/Tag/Tag.module.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* tag default variables */
|
|
3
3
|
--tag_text_color: var(--zdt_tag_default_text);
|
|
4
|
-
--tag_font_size:
|
|
4
|
+
--tag_font_size: var(--zd_font_size13);
|
|
5
5
|
--tag_letter_spacing: normal;
|
|
6
6
|
--tag_bg_color: var(--zdt_tag_default_bg);
|
|
7
7
|
--tag_border_radius: 25px;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
--tag_border_width: 0;
|
|
10
10
|
--tag_border_style: dashed;
|
|
11
11
|
--tag_border_color: var(--zdt_tag_default_border);
|
|
12
|
-
--tag_padding:
|
|
13
|
-
--tag_inner_text_padding: 0
|
|
12
|
+
--tag_padding: var(--zd_size2);
|
|
13
|
+
--tag_inner_text_padding: 0 var(--zd_size6);
|
|
14
14
|
--tag_cursor: default;
|
|
15
15
|
|
|
16
16
|
/* tag close icon default variables */
|
|
@@ -22,13 +22,12 @@
|
|
|
22
22
|
--tag_icon_bg_color: var(--zdt_tag_icon_bg);
|
|
23
23
|
}[dir=ltr] .varClass {
|
|
24
24
|
--tag_closeicon_border_radius: 0 12px 12px 0 /*rtl: 12px 0 0 12px*/;
|
|
25
|
-
--tag_closeicon_padding: 0
|
|
26
|
-
|
|
27
|
-
--tag_icon_margin: 0 0 0 5px /*rtl: 0 5px 0 0*/;
|
|
25
|
+
--tag_closeicon_padding: 0 var(--zd_size7) 0 var(--zd_size6);
|
|
26
|
+
--tag_icon_margin: 0 0 0 var(--zd_size5);
|
|
28
27
|
}[dir=rtl] .varClass {
|
|
29
28
|
--tag_closeicon_border_radius: 12px 0 0 12px;
|
|
30
|
-
--tag_closeicon_padding: 0
|
|
31
|
-
--tag_icon_margin: 0
|
|
29
|
+
--tag_closeicon_padding: 0 var(--zd_size6) 0 var(--zd_size7);
|
|
30
|
+
--tag_icon_margin: 0 var(--zd_size5) 0 0;
|
|
32
31
|
}
|
|
33
32
|
.container {
|
|
34
33
|
composes: varClass;
|
|
@@ -76,9 +75,9 @@
|
|
|
76
75
|
padding: var(--tag_inner_text_padding);
|
|
77
76
|
}
|
|
78
77
|
.small {
|
|
79
|
-
--tag_height:
|
|
80
|
-
--tag_padding:
|
|
81
|
-
--tag_inner_text_padding: 0
|
|
78
|
+
--tag_height: var(--zd_size20);
|
|
79
|
+
--tag_padding: var(--zd_size1);
|
|
80
|
+
--tag_inner_text_padding: 0 var(--zd_size7);
|
|
82
81
|
}
|
|
83
82
|
[dir=ltr] .small .avatar {
|
|
84
83
|
transform: scale(0.8) translateX(-2px);
|
|
@@ -89,22 +88,22 @@
|
|
|
89
88
|
margin-left: calc( var(--zd_size8) * -1 ) ;
|
|
90
89
|
}
|
|
91
90
|
.smalltext {
|
|
92
|
-
--tag_font_size:
|
|
91
|
+
--tag_font_size: var(--zd_font_size12);
|
|
93
92
|
}
|
|
94
93
|
.activesmallEffect {
|
|
95
|
-
--tag_inner_text_padding: 0
|
|
94
|
+
--tag_inner_text_padding: 0 var(--zd_size25) 0 var(--zd_size7);
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
.medium {
|
|
99
|
-
--tag_height:
|
|
100
|
-
--tag_padding:
|
|
101
|
-
--tag_inner_text_padding: 0
|
|
98
|
+
--tag_height: var(--zd_size26);
|
|
99
|
+
--tag_padding: var(--zd_size2);
|
|
100
|
+
--tag_inner_text_padding: 0 var(--zd_size6);
|
|
102
101
|
}
|
|
103
102
|
.mediumtext {
|
|
104
|
-
--tag_font_size:
|
|
103
|
+
--tag_font_size: var(--zd_font_size13);
|
|
105
104
|
}
|
|
106
105
|
.activemediumEffect {
|
|
107
|
-
--tag_inner_text_padding: 0
|
|
106
|
+
--tag_inner_text_padding: 0 var(--zd_size25) 0 var(--zd_size6);
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
.selected .close {
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
--textbox_border_width: 0;
|
|
6
6
|
--textbox_border_style: solid;
|
|
7
7
|
--textbox_border_color: var(--zdt_textbox_default_border);
|
|
8
|
-
--textbox_font_size:
|
|
8
|
+
--textbox_font_size: var(--zd_font_size14);
|
|
9
9
|
--textbox_width: 100%;
|
|
10
|
-
--textbox_height:
|
|
10
|
+
--textbox_height: var(--zd_size35);
|
|
11
11
|
--textbox_border_radius: none;
|
|
12
12
|
--textbox_font_weight: var(--zd-fw-normal);
|
|
13
13
|
/* Variable:Ignore */
|
|
@@ -137,28 +137,28 @@
|
|
|
137
137
|
/* Size */
|
|
138
138
|
.xmedium,
|
|
139
139
|
.medium {
|
|
140
|
-
--textbox_font_size:
|
|
140
|
+
--textbox_font_size: var(--zd_font_size14);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.xmedium {
|
|
144
|
-
--textbox_height:
|
|
144
|
+
--textbox_height: var(--zd_size28);
|
|
145
145
|
--textbox_line_height: 2;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.medium {
|
|
149
|
-
--textbox_height:
|
|
149
|
+
--textbox_height: var(--zd_size35);
|
|
150
150
|
--textbox_line_height: 2.5;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.small {
|
|
154
|
-
--textbox_font_size:
|
|
155
|
-
--textbox_height:
|
|
154
|
+
--textbox_font_size: var(--zd_font_size12);
|
|
155
|
+
--textbox_height: var(--zd_size28);
|
|
156
156
|
--textbox_line_height: 2.3334;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.xsmall {
|
|
160
|
-
--textbox_font_size:
|
|
161
|
-
--textbox_height:
|
|
160
|
+
--textbox_font_size: var(--zd_font_size13);
|
|
161
|
+
--textbox_height: var(--zd_size25);
|
|
162
162
|
--textbox_line_height: 1.9231;
|
|
163
163
|
}
|
|
164
164
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
--textarea_border_color: none;
|
|
5
5
|
--textarea_cursor: text;
|
|
6
6
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
7
|
-
--textarea_font_size:
|
|
7
|
+
--textarea_font_size: var(--zd_font_size14);
|
|
8
8
|
--textarea_line_height: 1.5712;
|
|
9
|
-
--textarea_padding:
|
|
9
|
+
--textarea_padding: var(--zd_size2) 0;
|
|
10
10
|
--textarea_height: auto;
|
|
11
11
|
--textarea_width: auto;
|
|
12
12
|
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.defaultHeight{
|
|
97
|
-
--textarea_height:
|
|
97
|
+
--textarea_height: var(--zd_size30);
|
|
98
98
|
}
|
|
99
99
|
.defaultWidth {
|
|
100
100
|
--textarea_width: 100%;
|
|
@@ -104,39 +104,39 @@
|
|
|
104
104
|
vertical-align: middle;
|
|
105
105
|
}
|
|
106
106
|
.xsmall {
|
|
107
|
-
--textarea_font_size:
|
|
108
|
-
--textarea_padding:
|
|
109
|
-
--textarea_height:
|
|
107
|
+
--textarea_font_size: var(--zd_font_size14);
|
|
108
|
+
--textarea_padding: var(--zd_size4) 0 var(--zd_size2);
|
|
109
|
+
--textarea_height: var(--zd_size28);
|
|
110
110
|
--textarea_line_height: 1.3572;
|
|
111
111
|
}
|
|
112
112
|
.xmedium {
|
|
113
|
-
--textarea_font_size:
|
|
114
|
-
--textarea_padding:
|
|
115
|
-
--textarea_height:
|
|
113
|
+
--textarea_font_size: var(--zd_font_size13);
|
|
114
|
+
--textarea_padding: var(--zd_size4) 0 var(--zd_size2);
|
|
115
|
+
--textarea_height: var(--zd_size25);
|
|
116
116
|
--textarea_line_height: 1.3077;
|
|
117
117
|
}
|
|
118
118
|
.small{
|
|
119
|
-
--textarea_height:
|
|
120
|
-
--textarea_padding:
|
|
119
|
+
--textarea_height: var(--zd_size30);
|
|
120
|
+
--textarea_padding: var(--zd_size2) 0;
|
|
121
121
|
}
|
|
122
122
|
.smallanimated:focus,
|
|
123
123
|
.xsmallanimated:focus,
|
|
124
124
|
.xmediumanimated:focus {
|
|
125
|
-
--textarea_height:
|
|
125
|
+
--textarea_height: var(--zd_size70);
|
|
126
126
|
}
|
|
127
127
|
.medium {
|
|
128
|
-
--textarea_height:
|
|
129
|
-
--textarea_padding:
|
|
128
|
+
--textarea_height: var(--zd_size88);
|
|
129
|
+
--textarea_padding: var(--zd_size2);
|
|
130
130
|
}
|
|
131
131
|
.large {
|
|
132
|
-
--textarea_height:
|
|
133
|
-
--textarea_padding:
|
|
132
|
+
--textarea_height: var(--zd_size45);
|
|
133
|
+
--textarea_padding: var(--zd_size2);
|
|
134
134
|
}
|
|
135
135
|
.largeanimated:focus {
|
|
136
|
-
--textarea_height:
|
|
136
|
+
--textarea_height: var(--zd_size220);
|
|
137
137
|
}
|
|
138
138
|
.xlarge {
|
|
139
|
-
--textarea_height:
|
|
139
|
+
--textarea_height: var(--zd_size184);
|
|
140
140
|
}
|
|
141
141
|
.default {
|
|
142
142
|
font-weight: var(--zd-fw-normal);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/*Hook for editor alert*/
|
|
5
5
|
pointer-events: none;
|
|
6
6
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
7
|
-
border-radius:
|
|
7
|
+
border-radius: 4px;
|
|
8
8
|
}[dir=ltr] .tooltiptext {
|
|
9
9
|
animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
|
|
10
10
|
}[dir=rtl] .tooltiptext {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
padding: 0 var(--zd_size10) ;
|
|
25
25
|
border-style: solid;
|
|
26
26
|
border-color: transparent;
|
|
27
|
-
border-radius:
|
|
27
|
+
border-radius: 4px;
|
|
28
28
|
}
|
|
29
29
|
.tooltiparrow {
|
|
30
30
|
content: '';
|
|
@@ -29,16 +29,19 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
29
29
|
|
|
30
30
|
var Typography = function Typography(props) {
|
|
31
31
|
var children = props.children,
|
|
32
|
+
as = props.as,
|
|
32
33
|
$ui_tagName = props.$ui_tagName,
|
|
34
|
+
dataTitle = props.dataTitle,
|
|
33
35
|
$i18n_dataTitle = props.$i18n_dataTitle,
|
|
34
36
|
testId = props.testId,
|
|
35
37
|
customId = props.customId,
|
|
38
|
+
tagAttributes = props.tagAttributes,
|
|
36
39
|
$tagAttributes_text = props.$tagAttributes_text,
|
|
40
|
+
a11yAttributes = props.a11yAttributes,
|
|
37
41
|
$a11yAttributes_text = props.$a11yAttributes_text,
|
|
38
42
|
customStyle = props.customStyle,
|
|
43
|
+
highlightConfig = props.highlightConfig,
|
|
39
44
|
$ui_highlightConfig = props.$ui_highlightConfig;
|
|
40
|
-
var _$ui_highlightConfig$ = $ui_highlightConfig.data,
|
|
41
|
-
highlightData = _$ui_highlightConfig$ === void 0 ? [] : _$ui_highlightConfig$;
|
|
42
45
|
var style = (0, _utils.mergeStyle)(_TypographyModule["default"], customStyle);
|
|
43
46
|
|
|
44
47
|
var _cssJSLogic = (0, _cssJSLogic2["default"])({
|
|
@@ -47,12 +50,19 @@ var Typography = function Typography(props) {
|
|
|
47
50
|
}),
|
|
48
51
|
typographyClass = _cssJSLogic.typographyClass;
|
|
49
52
|
|
|
50
|
-
|
|
53
|
+
var finalTagName = as !== undefined ? as : $ui_tagName;
|
|
54
|
+
var finalA11yAttributes = a11yAttributes !== undefined ? a11yAttributes : $a11yAttributes_text;
|
|
55
|
+
var finalTagAttributes = tagAttributes !== undefined ? tagAttributes : $tagAttributes_text;
|
|
56
|
+
var finalDataTitle = dataTitle !== undefined ? dataTitle : $i18n_dataTitle;
|
|
57
|
+
var finalHighlightConfig = highlightConfig !== undefined ? highlightConfig : $ui_highlightConfig;
|
|
58
|
+
var _finalHighlightConfig = finalHighlightConfig.data,
|
|
59
|
+
highlightData = _finalHighlightConfig === void 0 ? [] : _finalHighlightConfig;
|
|
60
|
+
return /*#__PURE__*/_react["default"].createElement(finalTagName, _objectSpread(_objectSpread({
|
|
51
61
|
className: typographyClass,
|
|
52
|
-
'data-title':
|
|
62
|
+
'data-title': finalDataTitle,
|
|
53
63
|
'data-id': customId,
|
|
54
64
|
'data-test-id': testId
|
|
55
|
-
},
|
|
65
|
+
}, finalTagAttributes), finalA11yAttributes), highlightData && highlightData.length > 0 && typeof children === 'string' ? (0, _textHighlighter.highlightText)(_objectSpread(_objectSpread({}, finalHighlightConfig), {}, {
|
|
56
66
|
text: children
|
|
57
67
|
})) : children);
|
|
58
68
|
};
|