@spaced-out/ui-design-system 0.1.8 → 0.1.10
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/CHANGELOG.md +17 -0
- package/lib/components/Button/Button.js +2 -0
- package/lib/components/Button/Button.js.flow +4 -0
- package/lib/components/Dropdown/Dropdown.js +2 -3
- package/lib/components/Dropdown/Dropdown.js.flow +2 -1
- package/lib/components/Input/Input.js +2 -2
- package/lib/components/Input/Input.js.flow +2 -1
- package/lib/components/Menu/Menu.js +4 -3
- package/lib/components/Menu/Menu.js.flow +23 -19
- package/lib/components/SearchInput/SearchInput.js +4 -4
- package/lib/components/SearchInput/SearchInput.js.flow +7 -2
- package/lib/components/SearchInput/SearchInput.module.css +8 -8
- package/lib/components/Table/Row.js +6 -2
- package/lib/components/Table/Row.js.flow +2 -0
- package/lib/components/Table/TableHeader.js +3 -1
- package/lib/components/Table/TableHeader.js.flow +1 -0
- package/lib/components/Text/Text.js +71 -52
- package/lib/components/Text/Text.js.flow +568 -399
- package/lib/components/Textarea/Textarea.js +2 -2
- package/lib/components/Textarea/Textarea.js.flow +2 -1
- package/lib/components/Toast/Toast.js +10 -6
- package/lib/components/Toast/Toast.js.flow +18 -10
- package/lib/components/Toggle/Toggle.js +4 -3
- package/lib/components/Toggle/Toggle.js.flow +69 -62
- package/lib/components/Truncate/Truncate.js +10 -7
- package/lib/components/Truncate/Truncate.js.flow +49 -37
- package/lib/components/Typeahead/Typeahead.js +2 -3
- package/lib/components/Typeahead/Typeahead.js.flow +2 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
|
-
const HighlightText = _ref => {
|
|
16
|
+
const HighlightText = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
17
17
|
let {
|
|
18
18
|
text,
|
|
19
19
|
highlight,
|
|
@@ -29,14 +29,17 @@ const HighlightText = _ref => {
|
|
|
29
29
|
highlights = (0, _string.escapeRegExp)(highlight);
|
|
30
30
|
}
|
|
31
31
|
const parts = text.split(new RegExp(`(${highlights})`, caseSensitiveHighlighting ? '' : 'gi')).filter(part => part !== '');
|
|
32
|
-
return /*#__PURE__*/React.createElement("span",
|
|
33
|
-
|
|
32
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
ref: ref
|
|
34
|
+
}, parts.map((part, idx) => highlights.toLowerCase().includes((0, _string.escapeRegExp)(part).toLowerCase()) ? /*#__PURE__*/React.createElement("span", {
|
|
35
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
36
|
+
key: idx,
|
|
34
37
|
className: (0, _classify.default)(_typographyModule.default.highlightText, {
|
|
35
38
|
[_typographyModule.default.bgHighlighting]: highlightWithBackground
|
|
36
39
|
}, highlightClassName)
|
|
37
40
|
}, part) : part));
|
|
38
|
-
};
|
|
39
|
-
const JumboMedium = _ref2 => {
|
|
41
|
+
});
|
|
42
|
+
const JumboMedium = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
40
43
|
let {
|
|
41
44
|
color = _typography.TEXT_COLORS.primary,
|
|
42
45
|
children,
|
|
@@ -48,7 +51,8 @@ const JumboMedium = _ref2 => {
|
|
|
48
51
|
...props
|
|
49
52
|
} = _ref2;
|
|
50
53
|
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
51
|
-
className: (0, _classify.default)(_typographyModule.default.jumboMedium, _typographyModule.default[color], className)
|
|
54
|
+
className: (0, _classify.default)(_typographyModule.default.jumboMedium, _typographyModule.default[color], className),
|
|
55
|
+
ref: ref
|
|
52
56
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
53
57
|
text: children,
|
|
54
58
|
highlight: highlightString,
|
|
@@ -56,9 +60,9 @@ const JumboMedium = _ref2 => {
|
|
|
56
60
|
highlightClassName: highlightedTextClassName,
|
|
57
61
|
highlightWithBackground: highlightWithBackground
|
|
58
62
|
}) : children);
|
|
59
|
-
};
|
|
63
|
+
});
|
|
60
64
|
exports.JumboMedium = JumboMedium;
|
|
61
|
-
const TitleMedium = _ref3 => {
|
|
65
|
+
const TitleMedium = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
62
66
|
let {
|
|
63
67
|
color = _typography.TEXT_COLORS.primary,
|
|
64
68
|
children,
|
|
@@ -70,7 +74,8 @@ const TitleMedium = _ref3 => {
|
|
|
70
74
|
...props
|
|
71
75
|
} = _ref3;
|
|
72
76
|
return /*#__PURE__*/React.createElement("h1", _extends({}, props, {
|
|
73
|
-
className: (0, _classify.default)(_typographyModule.default.titleMedium, _typographyModule.default[color], className)
|
|
77
|
+
className: (0, _classify.default)(_typographyModule.default.titleMedium, _typographyModule.default[color], className),
|
|
78
|
+
ref: ref
|
|
74
79
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
75
80
|
text: children,
|
|
76
81
|
highlight: highlightString,
|
|
@@ -78,9 +83,9 @@ const TitleMedium = _ref3 => {
|
|
|
78
83
|
highlightClassName: highlightedTextClassName,
|
|
79
84
|
highlightWithBackground: highlightWithBackground
|
|
80
85
|
}) : children);
|
|
81
|
-
};
|
|
86
|
+
});
|
|
82
87
|
exports.TitleMedium = TitleMedium;
|
|
83
|
-
const SubTitleLarge = _ref4 => {
|
|
88
|
+
const SubTitleLarge = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
84
89
|
let {
|
|
85
90
|
color = _typography.TEXT_COLORS.primary,
|
|
86
91
|
children,
|
|
@@ -92,7 +97,8 @@ const SubTitleLarge = _ref4 => {
|
|
|
92
97
|
...props
|
|
93
98
|
} = _ref4;
|
|
94
99
|
return /*#__PURE__*/React.createElement("h2", _extends({}, props, {
|
|
95
|
-
className: (0, _classify.default)(_typographyModule.default.subTitleLarge, _typographyModule.default[color], className)
|
|
100
|
+
className: (0, _classify.default)(_typographyModule.default.subTitleLarge, _typographyModule.default[color], className),
|
|
101
|
+
ref: ref
|
|
96
102
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
97
103
|
text: children,
|
|
98
104
|
highlight: highlightString,
|
|
@@ -100,9 +106,9 @@ const SubTitleLarge = _ref4 => {
|
|
|
100
106
|
highlightClassName: highlightedTextClassName,
|
|
101
107
|
highlightWithBackground: highlightWithBackground
|
|
102
108
|
}) : children);
|
|
103
|
-
};
|
|
109
|
+
});
|
|
104
110
|
exports.SubTitleLarge = SubTitleLarge;
|
|
105
|
-
const SubTitleMedium = _ref5 => {
|
|
111
|
+
const SubTitleMedium = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
106
112
|
let {
|
|
107
113
|
color = _typography.TEXT_COLORS.primary,
|
|
108
114
|
children,
|
|
@@ -114,7 +120,8 @@ const SubTitleMedium = _ref5 => {
|
|
|
114
120
|
...props
|
|
115
121
|
} = _ref5;
|
|
116
122
|
return /*#__PURE__*/React.createElement("h3", _extends({}, props, {
|
|
117
|
-
className: (0, _classify.default)(_typographyModule.default.subTitleMedium, _typographyModule.default[color], className)
|
|
123
|
+
className: (0, _classify.default)(_typographyModule.default.subTitleMedium, _typographyModule.default[color], className),
|
|
124
|
+
ref: ref
|
|
118
125
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
119
126
|
text: children,
|
|
120
127
|
highlight: highlightString,
|
|
@@ -122,9 +129,9 @@ const SubTitleMedium = _ref5 => {
|
|
|
122
129
|
highlightClassName: highlightedTextClassName,
|
|
123
130
|
highlightWithBackground: highlightWithBackground
|
|
124
131
|
}) : children);
|
|
125
|
-
};
|
|
132
|
+
});
|
|
126
133
|
exports.SubTitleMedium = SubTitleMedium;
|
|
127
|
-
const SubTitleSmall = _ref6 => {
|
|
134
|
+
const SubTitleSmall = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
128
135
|
let {
|
|
129
136
|
color = _typography.TEXT_COLORS.primary,
|
|
130
137
|
children,
|
|
@@ -136,7 +143,8 @@ const SubTitleSmall = _ref6 => {
|
|
|
136
143
|
...props
|
|
137
144
|
} = _ref6;
|
|
138
145
|
return /*#__PURE__*/React.createElement("h4", _extends({}, props, {
|
|
139
|
-
className: (0, _classify.default)(_typographyModule.default.subTitleSmall, _typographyModule.default[color], className)
|
|
146
|
+
className: (0, _classify.default)(_typographyModule.default.subTitleSmall, _typographyModule.default[color], className),
|
|
147
|
+
ref: ref
|
|
140
148
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
141
149
|
text: children,
|
|
142
150
|
highlight: highlightString,
|
|
@@ -144,9 +152,9 @@ const SubTitleSmall = _ref6 => {
|
|
|
144
152
|
highlightClassName: highlightedTextClassName,
|
|
145
153
|
highlightWithBackground: highlightWithBackground
|
|
146
154
|
}) : children);
|
|
147
|
-
};
|
|
155
|
+
});
|
|
148
156
|
exports.SubTitleSmall = SubTitleSmall;
|
|
149
|
-
const SubTitleExtraSmall = _ref7 => {
|
|
157
|
+
const SubTitleExtraSmall = /*#__PURE__*/React.forwardRef((_ref7, ref) => {
|
|
150
158
|
let {
|
|
151
159
|
color = _typography.TEXT_COLORS.primary,
|
|
152
160
|
children,
|
|
@@ -158,7 +166,8 @@ const SubTitleExtraSmall = _ref7 => {
|
|
|
158
166
|
...props
|
|
159
167
|
} = _ref7;
|
|
160
168
|
return /*#__PURE__*/React.createElement("h5", _extends({}, props, {
|
|
161
|
-
className: (0, _classify.default)(_typographyModule.default.subTitleExtraSmall, _typographyModule.default[color], className)
|
|
169
|
+
className: (0, _classify.default)(_typographyModule.default.subTitleExtraSmall, _typographyModule.default[color], className),
|
|
170
|
+
ref: ref
|
|
162
171
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
163
172
|
text: children,
|
|
164
173
|
highlight: highlightString,
|
|
@@ -166,9 +175,9 @@ const SubTitleExtraSmall = _ref7 => {
|
|
|
166
175
|
highlightClassName: highlightedTextClassName,
|
|
167
176
|
highlightWithBackground: highlightWithBackground
|
|
168
177
|
}) : children);
|
|
169
|
-
};
|
|
178
|
+
});
|
|
170
179
|
exports.SubTitleExtraSmall = SubTitleExtraSmall;
|
|
171
|
-
const ButtonTextMedium = _ref8 => {
|
|
180
|
+
const ButtonTextMedium = /*#__PURE__*/React.forwardRef((_ref8, ref) => {
|
|
172
181
|
let {
|
|
173
182
|
color = _typography.TEXT_COLORS.primary,
|
|
174
183
|
children,
|
|
@@ -180,7 +189,8 @@ const ButtonTextMedium = _ref8 => {
|
|
|
180
189
|
...props
|
|
181
190
|
} = _ref8;
|
|
182
191
|
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
183
|
-
className: (0, _classify.default)(_typographyModule.default.buttonTextMedium, _typographyModule.default[color], className)
|
|
192
|
+
className: (0, _classify.default)(_typographyModule.default.buttonTextMedium, _typographyModule.default[color], className),
|
|
193
|
+
ref: ref
|
|
184
194
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
185
195
|
text: children,
|
|
186
196
|
highlight: highlightString,
|
|
@@ -188,9 +198,9 @@ const ButtonTextMedium = _ref8 => {
|
|
|
188
198
|
highlightClassName: highlightedTextClassName,
|
|
189
199
|
highlightWithBackground: highlightWithBackground
|
|
190
200
|
}) : children);
|
|
191
|
-
};
|
|
201
|
+
});
|
|
192
202
|
exports.ButtonTextMedium = ButtonTextMedium;
|
|
193
|
-
const ButtonTextSmall = _ref9 => {
|
|
203
|
+
const ButtonTextSmall = /*#__PURE__*/React.forwardRef((_ref9, ref) => {
|
|
194
204
|
let {
|
|
195
205
|
color = _typography.TEXT_COLORS.primary,
|
|
196
206
|
children,
|
|
@@ -202,7 +212,8 @@ const ButtonTextSmall = _ref9 => {
|
|
|
202
212
|
...props
|
|
203
213
|
} = _ref9;
|
|
204
214
|
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
205
|
-
className: (0, _classify.default)(_typographyModule.default.buttonTextSmall, _typographyModule.default[color], className)
|
|
215
|
+
className: (0, _classify.default)(_typographyModule.default.buttonTextSmall, _typographyModule.default[color], className),
|
|
216
|
+
ref: ref
|
|
206
217
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
207
218
|
text: children,
|
|
208
219
|
highlight: highlightString,
|
|
@@ -210,9 +221,9 @@ const ButtonTextSmall = _ref9 => {
|
|
|
210
221
|
highlightClassName: highlightedTextClassName,
|
|
211
222
|
highlightWithBackground: highlightWithBackground
|
|
212
223
|
}) : children);
|
|
213
|
-
};
|
|
224
|
+
});
|
|
214
225
|
exports.ButtonTextSmall = ButtonTextSmall;
|
|
215
|
-
const ButtonTextExtraSmall = _ref10 => {
|
|
226
|
+
const ButtonTextExtraSmall = /*#__PURE__*/React.forwardRef((_ref10, ref) => {
|
|
216
227
|
let {
|
|
217
228
|
color = _typography.TEXT_COLORS.primary,
|
|
218
229
|
children,
|
|
@@ -224,7 +235,8 @@ const ButtonTextExtraSmall = _ref10 => {
|
|
|
224
235
|
...props
|
|
225
236
|
} = _ref10;
|
|
226
237
|
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
227
|
-
className: (0, _classify.default)(_typographyModule.default.buttonTextExtraSmall, _typographyModule.default[color], className)
|
|
238
|
+
className: (0, _classify.default)(_typographyModule.default.buttonTextExtraSmall, _typographyModule.default[color], className),
|
|
239
|
+
ref: ref
|
|
228
240
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
229
241
|
text: children,
|
|
230
242
|
highlight: highlightString,
|
|
@@ -232,9 +244,9 @@ const ButtonTextExtraSmall = _ref10 => {
|
|
|
232
244
|
highlightClassName: highlightedTextClassName,
|
|
233
245
|
highlightWithBackground: highlightWithBackground
|
|
234
246
|
}) : children);
|
|
235
|
-
};
|
|
247
|
+
});
|
|
236
248
|
exports.ButtonTextExtraSmall = ButtonTextExtraSmall;
|
|
237
|
-
const FormInputMedium = _ref11 => {
|
|
249
|
+
const FormInputMedium = /*#__PURE__*/React.forwardRef((_ref11, ref) => {
|
|
238
250
|
let {
|
|
239
251
|
color = _typography.TEXT_COLORS.primary,
|
|
240
252
|
children,
|
|
@@ -246,7 +258,8 @@ const FormInputMedium = _ref11 => {
|
|
|
246
258
|
...props
|
|
247
259
|
} = _ref11;
|
|
248
260
|
return /*#__PURE__*/React.createElement("p", _extends({}, props, {
|
|
249
|
-
className: (0, _classify.default)(_typographyModule.default.formInputMedium, _typographyModule.default[color], className)
|
|
261
|
+
className: (0, _classify.default)(_typographyModule.default.formInputMedium, _typographyModule.default[color], className),
|
|
262
|
+
ref: ref
|
|
250
263
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
251
264
|
text: children,
|
|
252
265
|
highlight: highlightString,
|
|
@@ -254,9 +267,9 @@ const FormInputMedium = _ref11 => {
|
|
|
254
267
|
highlightClassName: highlightedTextClassName,
|
|
255
268
|
highlightWithBackground: highlightWithBackground
|
|
256
269
|
}) : children);
|
|
257
|
-
};
|
|
270
|
+
});
|
|
258
271
|
exports.FormInputMedium = FormInputMedium;
|
|
259
|
-
const FormInputSmall = _ref12 => {
|
|
272
|
+
const FormInputSmall = /*#__PURE__*/React.forwardRef((_ref12, ref) => {
|
|
260
273
|
let {
|
|
261
274
|
color = _typography.TEXT_COLORS.primary,
|
|
262
275
|
children,
|
|
@@ -268,7 +281,8 @@ const FormInputSmall = _ref12 => {
|
|
|
268
281
|
...props
|
|
269
282
|
} = _ref12;
|
|
270
283
|
return /*#__PURE__*/React.createElement("p", _extends({}, props, {
|
|
271
|
-
className: (0, _classify.default)(_typographyModule.default.formInputSmall, _typographyModule.default[color], className)
|
|
284
|
+
className: (0, _classify.default)(_typographyModule.default.formInputSmall, _typographyModule.default[color], className),
|
|
285
|
+
ref: ref
|
|
272
286
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
273
287
|
text: children,
|
|
274
288
|
highlight: highlightString,
|
|
@@ -276,9 +290,9 @@ const FormInputSmall = _ref12 => {
|
|
|
276
290
|
highlightClassName: highlightedTextClassName,
|
|
277
291
|
highlightWithBackground: highlightWithBackground
|
|
278
292
|
}) : children);
|
|
279
|
-
};
|
|
293
|
+
});
|
|
280
294
|
exports.FormInputSmall = FormInputSmall;
|
|
281
|
-
const BodyLarge = _ref13 => {
|
|
295
|
+
const BodyLarge = /*#__PURE__*/React.forwardRef((_ref13, ref) => {
|
|
282
296
|
let {
|
|
283
297
|
color = _typography.TEXT_COLORS.primary,
|
|
284
298
|
children,
|
|
@@ -290,7 +304,8 @@ const BodyLarge = _ref13 => {
|
|
|
290
304
|
...props
|
|
291
305
|
} = _ref13;
|
|
292
306
|
return /*#__PURE__*/React.createElement("p", _extends({}, props, {
|
|
293
|
-
className: (0, _classify.default)(_typographyModule.default.bodyLarge, _typographyModule.default[color], className)
|
|
307
|
+
className: (0, _classify.default)(_typographyModule.default.bodyLarge, _typographyModule.default[color], className),
|
|
308
|
+
ref: ref
|
|
294
309
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
295
310
|
text: children,
|
|
296
311
|
highlight: highlightString,
|
|
@@ -298,9 +313,9 @@ const BodyLarge = _ref13 => {
|
|
|
298
313
|
highlightClassName: highlightedTextClassName,
|
|
299
314
|
highlightWithBackground: highlightWithBackground
|
|
300
315
|
}) : children);
|
|
301
|
-
};
|
|
316
|
+
});
|
|
302
317
|
exports.BodyLarge = BodyLarge;
|
|
303
|
-
const BodyMedium = _ref14 => {
|
|
318
|
+
const BodyMedium = /*#__PURE__*/React.forwardRef((_ref14, ref) => {
|
|
304
319
|
let {
|
|
305
320
|
color = _typography.TEXT_COLORS.primary,
|
|
306
321
|
children,
|
|
@@ -312,7 +327,8 @@ const BodyMedium = _ref14 => {
|
|
|
312
327
|
...props
|
|
313
328
|
} = _ref14;
|
|
314
329
|
return /*#__PURE__*/React.createElement("p", _extends({}, props, {
|
|
315
|
-
className: (0, _classify.default)(_typographyModule.default.bodyMedium, _typographyModule.default[color], className)
|
|
330
|
+
className: (0, _classify.default)(_typographyModule.default.bodyMedium, _typographyModule.default[color], className),
|
|
331
|
+
ref: ref
|
|
316
332
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
317
333
|
text: children,
|
|
318
334
|
highlight: highlightString,
|
|
@@ -320,9 +336,9 @@ const BodyMedium = _ref14 => {
|
|
|
320
336
|
highlightClassName: highlightedTextClassName,
|
|
321
337
|
highlightWithBackground: highlightWithBackground
|
|
322
338
|
}) : children);
|
|
323
|
-
};
|
|
339
|
+
});
|
|
324
340
|
exports.BodyMedium = BodyMedium;
|
|
325
|
-
const BodySmall = _ref15 => {
|
|
341
|
+
const BodySmall = /*#__PURE__*/React.forwardRef((_ref15, ref) => {
|
|
326
342
|
let {
|
|
327
343
|
color = _typography.TEXT_COLORS.primary,
|
|
328
344
|
children,
|
|
@@ -334,7 +350,8 @@ const BodySmall = _ref15 => {
|
|
|
334
350
|
...props
|
|
335
351
|
} = _ref15;
|
|
336
352
|
return /*#__PURE__*/React.createElement("p", _extends({}, props, {
|
|
337
|
-
className: (0, _classify.default)(_typographyModule.default.bodySmall, _typographyModule.default[color], className)
|
|
353
|
+
className: (0, _classify.default)(_typographyModule.default.bodySmall, _typographyModule.default[color], className),
|
|
354
|
+
ref: ref
|
|
338
355
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
339
356
|
text: children,
|
|
340
357
|
highlight: highlightString,
|
|
@@ -342,9 +359,9 @@ const BodySmall = _ref15 => {
|
|
|
342
359
|
highlightClassName: highlightedTextClassName,
|
|
343
360
|
highlightWithBackground: highlightWithBackground
|
|
344
361
|
}) : children);
|
|
345
|
-
};
|
|
362
|
+
});
|
|
346
363
|
exports.BodySmall = BodySmall;
|
|
347
|
-
const FormLabelMedium = _ref16 => {
|
|
364
|
+
const FormLabelMedium = /*#__PURE__*/React.forwardRef((_ref16, ref) => {
|
|
348
365
|
let {
|
|
349
366
|
color = _typography.TEXT_COLORS.primary,
|
|
350
367
|
children,
|
|
@@ -356,7 +373,8 @@ const FormLabelMedium = _ref16 => {
|
|
|
356
373
|
...props
|
|
357
374
|
} = _ref16;
|
|
358
375
|
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
359
|
-
className: (0, _classify.default)(_typographyModule.default.formLabelMedium, _typographyModule.default[color], className)
|
|
376
|
+
className: (0, _classify.default)(_typographyModule.default.formLabelMedium, _typographyModule.default[color], className),
|
|
377
|
+
ref: ref
|
|
360
378
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
361
379
|
text: children,
|
|
362
380
|
highlight: highlightString,
|
|
@@ -364,9 +382,9 @@ const FormLabelMedium = _ref16 => {
|
|
|
364
382
|
highlightClassName: highlightedTextClassName,
|
|
365
383
|
highlightWithBackground: highlightWithBackground
|
|
366
384
|
}) : children);
|
|
367
|
-
};
|
|
385
|
+
});
|
|
368
386
|
exports.FormLabelMedium = FormLabelMedium;
|
|
369
|
-
const FormLabelSmall = _ref17 => {
|
|
387
|
+
const FormLabelSmall = /*#__PURE__*/React.forwardRef((_ref17, ref) => {
|
|
370
388
|
let {
|
|
371
389
|
color = _typography.TEXT_COLORS.primary,
|
|
372
390
|
children,
|
|
@@ -378,7 +396,8 @@ const FormLabelSmall = _ref17 => {
|
|
|
378
396
|
...props
|
|
379
397
|
} = _ref17;
|
|
380
398
|
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
381
|
-
className: (0, _classify.default)(_typographyModule.default.formLabelSmall, _typographyModule.default[color], className)
|
|
399
|
+
className: (0, _classify.default)(_typographyModule.default.formLabelSmall, _typographyModule.default[color], className),
|
|
400
|
+
ref: ref
|
|
382
401
|
}), !!highlightString?.length && typeof children === 'string' ? /*#__PURE__*/React.createElement(HighlightText, {
|
|
383
402
|
text: children,
|
|
384
403
|
highlight: highlightString,
|
|
@@ -386,5 +405,5 @@ const FormLabelSmall = _ref17 => {
|
|
|
386
405
|
highlightClassName: highlightedTextClassName,
|
|
387
406
|
highlightWithBackground: highlightWithBackground
|
|
388
407
|
}) : children);
|
|
389
|
-
};
|
|
408
|
+
});
|
|
390
409
|
exports.FormLabelSmall = FormLabelSmall;
|