@thecb/components 7.12.2-beta.7 → 7.12.2-beta.9
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.esm.js
CHANGED
|
@@ -17836,8 +17836,13 @@ var Alert = function Alert(_ref) {
|
|
|
17836
17836
|
_ref$noBorder = _ref.noBorder,
|
|
17837
17837
|
noBorder = _ref$noBorder === void 0 ? false : _ref$noBorder,
|
|
17838
17838
|
_ref$enableBoxShadow = _ref.enableBoxShadow,
|
|
17839
|
-
enableBoxShadow = _ref$enableBoxShadow === void 0 ? false : _ref$enableBoxShadow
|
|
17839
|
+
enableBoxShadow = _ref$enableBoxShadow === void 0 ? false : _ref$enableBoxShadow,
|
|
17840
|
+
_ref$enableSmallText = _ref.enableSmallText,
|
|
17841
|
+
enableSmallText = _ref$enableSmallText === void 0 ? false : _ref$enableSmallText,
|
|
17842
|
+
_ref$innerContentPadd = _ref.innerContentPadding,
|
|
17843
|
+
innerContentPadding = _ref$innerContentPadd === void 0 ? "1rem" : _ref$innerContentPadd;
|
|
17840
17844
|
var Icon = AlertIcons[variant];
|
|
17845
|
+
var contentPadding = maxContentWidth ? "".concat(padding, " 1rem") : innerContentPadding;
|
|
17841
17846
|
var content = /*#__PURE__*/React.createElement(Sidebar, {
|
|
17842
17847
|
width: "24px",
|
|
17843
17848
|
childGap: "0rem"
|
|
@@ -17858,7 +17863,7 @@ var Alert = function Alert(_ref) {
|
|
|
17858
17863
|
width: "24px",
|
|
17859
17864
|
childGap: "0rem"
|
|
17860
17865
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
17861
|
-
padding:
|
|
17866
|
+
padding: contentPadding
|
|
17862
17867
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
17863
17868
|
justify: "flex-start",
|
|
17864
17869
|
align: "center"
|
|
@@ -17866,7 +17871,7 @@ var Alert = function Alert(_ref) {
|
|
|
17866
17871
|
fullHeight: true,
|
|
17867
17872
|
childGap: "0.25rem"
|
|
17868
17873
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
17869
|
-
variant: "p",
|
|
17874
|
+
variant: enableSmallText ? "pS" : "p",
|
|
17870
17875
|
color: themeValues.text,
|
|
17871
17876
|
weight: "600"
|
|
17872
17877
|
}, heading), /*#__PURE__*/React.createElement(Text$1, {
|
|
@@ -47085,6 +47090,8 @@ var ErrorDetails = function ErrorDetails() {
|
|
|
47085
47090
|
showQuitLink: false,
|
|
47086
47091
|
noBorder: true,
|
|
47087
47092
|
enableBoxShadow: true,
|
|
47093
|
+
enableSmallText: true,
|
|
47094
|
+
innerContentPadding: "0 16px",
|
|
47088
47095
|
extraStyles: "min-height: 67px; height: 67px;"
|
|
47089
47096
|
}));
|
|
47090
47097
|
};
|