@thecb/components 10.4.3-beta.0 → 10.4.3
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 +20 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +20 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/IconAdd.js +9 -3
- package/src/components/atoms/placeholder/Placeholder.js +5 -5
- package/src/components/atoms/placeholder/Placeholder.stories.js +2 -1
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +50 -50
package/dist/index.esm.js
CHANGED
|
@@ -14123,7 +14123,9 @@ var GenericErrorIcon = function GenericErrorIcon() {
|
|
|
14123
14123
|
}));
|
|
14124
14124
|
};
|
|
14125
14125
|
|
|
14126
|
-
var IconAdd = function IconAdd() {
|
|
14126
|
+
var IconAdd = function IconAdd(_ref) {
|
|
14127
|
+
var _ref$strokeWidth = _ref.strokeWidth,
|
|
14128
|
+
strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth;
|
|
14127
14129
|
return /*#__PURE__*/React.createElement("svg", {
|
|
14128
14130
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14129
14131
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
@@ -14138,7 +14140,7 @@ var IconAdd = function IconAdd() {
|
|
|
14138
14140
|
fill: "none",
|
|
14139
14141
|
fillRule: "evenodd",
|
|
14140
14142
|
stroke: "none",
|
|
14141
|
-
strokeWidth:
|
|
14143
|
+
strokeWidth: strokeWidth
|
|
14142
14144
|
}, /*#__PURE__*/React.createElement("g", {
|
|
14143
14145
|
transform: "translate(-407 -563)"
|
|
14144
14146
|
}, /*#__PURE__*/React.createElement("g", {
|
|
@@ -14156,6 +14158,7 @@ var IconAdd = function IconAdd() {
|
|
|
14156
14158
|
xlinkHref: "#path-1"
|
|
14157
14159
|
})), /*#__PURE__*/React.createElement("circle", {
|
|
14158
14160
|
className: "stroke",
|
|
14161
|
+
strokeWidth: strokeWidth,
|
|
14159
14162
|
cx: "8.155",
|
|
14160
14163
|
cy: "8.072",
|
|
14161
14164
|
r: "8"
|
|
@@ -27828,13 +27831,13 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
27828
27831
|
childGap: "0"
|
|
27829
27832
|
}, variant === "large" && /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement(Box, {
|
|
27830
27833
|
padding: "0",
|
|
27831
|
-
extraStyles: ".fill { \n fill: ".concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n }")
|
|
27834
|
+
extraStyles: ".fill { \n fill: ".concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } ")
|
|
27832
27835
|
}, variant === "large" ? /*#__PURE__*/React.createElement(Center, {
|
|
27833
27836
|
intrinsic: true
|
|
27834
27837
|
}, getLargeIcon(largeIcon), /*#__PURE__*/React.createElement(Text$1, {
|
|
27835
27838
|
variant: "pS",
|
|
27836
27839
|
color: themeValues.color,
|
|
27837
|
-
weight:
|
|
27840
|
+
weight: FONT_WEIGHT_SEMIBOLD,
|
|
27838
27841
|
extraStyles: "text-align: center;"
|
|
27839
27842
|
}, text)) : /*#__PURE__*/React.createElement(Cover, {
|
|
27840
27843
|
singleChild: true,
|
|
@@ -27842,12 +27845,14 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
27842
27845
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
27843
27846
|
justify: "center",
|
|
27844
27847
|
align: "center"
|
|
27845
|
-
}, /*#__PURE__*/React.createElement(IconAdd,
|
|
27848
|
+
}, /*#__PURE__*/React.createElement(IconAdd, {
|
|
27849
|
+
strokeWidth: "2"
|
|
27850
|
+
}), /*#__PURE__*/React.createElement(Center, {
|
|
27846
27851
|
intrinsic: true
|
|
27847
27852
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
27848
27853
|
variant: "pS",
|
|
27849
27854
|
color: themeValues.color,
|
|
27850
|
-
weight:
|
|
27855
|
+
weight: FONT_WEIGHT_SEMIBOLD,
|
|
27851
27856
|
extraStyles: "padding: 0 0 0 8px; text-align: center;"
|
|
27852
27857
|
}, text)))))))))));
|
|
27853
27858
|
};
|
|
@@ -48257,23 +48262,21 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48257
48262
|
toggleOpen(false);
|
|
48258
48263
|
},
|
|
48259
48264
|
initialFocusSelector: "[name='Close']"
|
|
48260
|
-
}, /*#__PURE__*/React.createElement(
|
|
48261
|
-
variant: "
|
|
48265
|
+
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
48266
|
+
variant: "ghost",
|
|
48267
|
+
tabIndex: "0",
|
|
48262
48268
|
onClick: function onClick() {
|
|
48263
48269
|
return toggleOpen(true);
|
|
48264
48270
|
},
|
|
48265
48271
|
onKeyPress: function onKeyPress(e) {
|
|
48266
48272
|
return e.key === "Enter" && toggleOpen(true);
|
|
48267
48273
|
},
|
|
48268
|
-
|
|
48269
|
-
|
|
48270
|
-
|
|
48271
|
-
|
|
48272
|
-
|
|
48273
|
-
|
|
48274
|
-
role: "button",
|
|
48275
|
-
className: "modal-trigger"
|
|
48276
|
-
}, link));
|
|
48274
|
+
extraStyles: "min-width: 0; min-height: 0;margin: 0; padding: 0; text-transform: none;",
|
|
48275
|
+
text: /*#__PURE__*/React.createElement(Text$1, {
|
|
48276
|
+
variant: "pS",
|
|
48277
|
+
color: "inherit"
|
|
48278
|
+
}, link)
|
|
48279
|
+
}));
|
|
48277
48280
|
};
|
|
48278
48281
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$O, "default");
|
|
48279
48282
|
|