@thecb/components 3.3.4 → 3.3.6
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/dist/index.cjs.js
CHANGED
|
@@ -14200,8 +14200,9 @@ var Heading = function Heading(_ref) {
|
|
|
14200
14200
|
className = _ref.className,
|
|
14201
14201
|
_ref$variant = _ref.variant,
|
|
14202
14202
|
variant = _ref$variant === void 0 ? "h1" : _ref$variant,
|
|
14203
|
+
dataQa = _ref.dataQa,
|
|
14203
14204
|
children = _ref.children,
|
|
14204
|
-
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "children"]);
|
|
14205
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "dataQa", "children"]);
|
|
14205
14206
|
|
|
14206
14207
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
14207
14208
|
as: variant,
|
|
@@ -14212,7 +14213,8 @@ var Heading = function Heading(_ref) {
|
|
|
14212
14213
|
extraStyles: extraStyles,
|
|
14213
14214
|
className: className,
|
|
14214
14215
|
fontFamily: themeValues.fontFamily,
|
|
14215
|
-
fontSize: themeValues.fontSize
|
|
14216
|
+
fontSize: themeValues.fontSize,
|
|
14217
|
+
"data-qa": dataQa
|
|
14216
14218
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
14217
14219
|
};
|
|
14218
14220
|
|
|
@@ -16116,7 +16118,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
16116
16118
|
url: url,
|
|
16117
16119
|
disabled: disabled,
|
|
16118
16120
|
newTab: newTab,
|
|
16119
|
-
extraStyles: "text-decoration: none;
|
|
16121
|
+
extraStyles: "text-decoration: none; &:hover {\n text-decoration: none; }"
|
|
16120
16122
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, _extends({}, otherProps, {
|
|
16121
16123
|
extraStyles: extraStyles
|
|
16122
16124
|
})));
|
|
@@ -17856,8 +17858,9 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
17856
17858
|
margin = _ref$margin === void 0 ? 0 : _ref$margin,
|
|
17857
17859
|
_ref$extraStyles = _ref.extraStyles,
|
|
17858
17860
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
17861
|
+
dataQa = _ref.dataQa,
|
|
17859
17862
|
children = _ref.children,
|
|
17860
|
-
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "extraStyles", "children"]);
|
|
17863
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children"]);
|
|
17861
17864
|
|
|
17862
17865
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
17863
17866
|
weight: weight,
|
|
@@ -17865,7 +17868,8 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
17865
17868
|
margin: margin,
|
|
17866
17869
|
fontFamily: themeValues.fontFamily,
|
|
17867
17870
|
fontSize: themeValues.fontSize,
|
|
17868
|
-
extraStyles: extraStyles
|
|
17871
|
+
extraStyles: extraStyles,
|
|
17872
|
+
"data-qa": dataQa
|
|
17869
17873
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
17870
17874
|
};
|
|
17871
17875
|
|
package/package.json
CHANGED
|
@@ -44,7 +44,7 @@ const ButtonWithLink = ({
|
|
|
44
44
|
url={url}
|
|
45
45
|
disabled={disabled}
|
|
46
46
|
newTab={newTab}
|
|
47
|
-
extraStyles={`text-decoration: none;
|
|
47
|
+
extraStyles={`text-decoration: none; &:hover {
|
|
48
48
|
text-decoration: none; }`}
|
|
49
49
|
>
|
|
50
50
|
<ButtonWithAction {...otherProps} extraStyles={extraStyles} />
|
|
@@ -15,6 +15,7 @@ const Heading = ({
|
|
|
15
15
|
extraStyles = ``,
|
|
16
16
|
className,
|
|
17
17
|
variant = "h1",
|
|
18
|
+
dataQa,
|
|
18
19
|
children,
|
|
19
20
|
...rest
|
|
20
21
|
}) => (
|
|
@@ -28,6 +29,7 @@ const Heading = ({
|
|
|
28
29
|
className={className}
|
|
29
30
|
fontFamily={themeValues.fontFamily}
|
|
30
31
|
fontSize={themeValues.fontSize}
|
|
32
|
+
data-qa={dataQa}
|
|
31
33
|
{...rest}
|
|
32
34
|
>
|
|
33
35
|
{safeChildren(children, <span />)}
|
|
@@ -12,6 +12,7 @@ const Paragraph = ({
|
|
|
12
12
|
color = FIREFLY_GREY,
|
|
13
13
|
margin = 0,
|
|
14
14
|
extraStyles = ``,
|
|
15
|
+
dataQa,
|
|
15
16
|
children,
|
|
16
17
|
...rest
|
|
17
18
|
}) => (
|
|
@@ -22,6 +23,7 @@ const Paragraph = ({
|
|
|
22
23
|
fontFamily={themeValues.fontFamily}
|
|
23
24
|
fontSize={themeValues.fontSize}
|
|
24
25
|
extraStyles={extraStyles}
|
|
26
|
+
data-qa={dataQa}
|
|
25
27
|
{...rest}
|
|
26
28
|
>
|
|
27
29
|
{safeChildren(children, <span />)}
|