@thecb/components 10.6.2-beta.0 → 10.6.3-beta.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/dist/index.cjs.js +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -9
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
- package/src/components/atoms/icons/WalletIconSmall.js +7 -3
- package/src/components/atoms/icons/icons.stories.js +0 -2
- package/src/components/atoms/placeholder/Placeholder.js +106 -89
package/dist/index.esm.js
CHANGED
|
@@ -13577,7 +13577,8 @@ var SettingsIconSmall$1 = themeComponent(SettingsIconSmall, "Icons", fallbackVal
|
|
|
13577
13577
|
var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
13578
13578
|
var themeValues = _ref.themeValues,
|
|
13579
13579
|
_ref$iconIndex = _ref.iconIndex,
|
|
13580
|
-
iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex
|
|
13580
|
+
iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex,
|
|
13581
|
+
colorOverride = _ref.colorOverride;
|
|
13581
13582
|
return /*#__PURE__*/React.createElement("svg", {
|
|
13582
13583
|
width: "20",
|
|
13583
13584
|
height: "20",
|
|
@@ -13588,7 +13589,7 @@ var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
|
13588
13589
|
fillRule: "evenodd",
|
|
13589
13590
|
clipRule: "evenodd",
|
|
13590
13591
|
d: "M16.3125 6.94643C16.0446 6.70536 15.7232 6.57143 15.3482 6.57143L5.14283 6.57143C5.0089 6.57143 4.90176 6.54464 4.8214 6.46429C4.74104 6.38393 4.71426 6.27678 4.71426 6.14286C4.71426 6.03571 4.74104 5.92857 4.8214 5.84821C4.90176 5.76786 5.0089 5.71428 5.14283 5.71428L15.4285 5.71428C15.5357 5.71428 15.6428 5.6875 15.7232 5.60714C15.8035 5.52678 15.8571 5.41964 15.8571 5.28571C15.8571 4.9375 15.7232 4.64286 15.4821 4.375C15.2143 4.13393 14.9196 4 14.5714 4L4.71426 4C4.23211 4 3.80354 4.1875 3.48211 4.50893C3.16068 4.83036 2.99997 5.23214 2.99997 5.71428V14.2857C2.99997 14.7679 3.16068 15.1964 3.48211 15.5179C3.80354 15.8393 4.23211 16 4.71426 16L15.3482 16C15.7232 16 16.0446 15.8929 16.3125 15.625C16.5803 15.3839 16.7143 15.0893 16.7143 14.7143V7.85714C16.7143 7.50893 16.5803 7.21428 16.3125 6.94643ZM12.7142 13.143C13.661 13.143 14.4285 12.3755 14.4285 11.4288C14.4285 10.482 13.661 9.71447 12.7142 9.71447C11.7674 9.71447 10.9999 10.482 10.9999 11.4288C10.9999 12.3755 11.7674 13.143 12.7142 13.143Z",
|
|
13591
|
-
fill: themeValues.singleIconColor
|
|
13592
|
+
fill: colorOverride || themeValues.singleIconColor
|
|
13592
13593
|
}), /*#__PURE__*/React.createElement("mask", {
|
|
13593
13594
|
id: "mask0_503_574-".concat(iconIndex),
|
|
13594
13595
|
style: {
|
|
@@ -13609,7 +13610,7 @@ var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
|
13609
13610
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
13610
13611
|
width: "20",
|
|
13611
13612
|
height: "20",
|
|
13612
|
-
fill: themeValues.singleIconColor
|
|
13613
|
+
fill: colorOverride || themeValues.singleIconColor
|
|
13613
13614
|
})));
|
|
13614
13615
|
};
|
|
13615
13616
|
var WalletIconSmall$1 = themeComponent(WalletIconSmall, "Icons", fallbackValues$2, "primary");
|
|
@@ -28141,7 +28142,6 @@ var Placeholder = function Placeholder(_ref4) {
|
|
|
28141
28142
|
_ref4$isDisabled = _ref4.isDisabled,
|
|
28142
28143
|
isDisabled = _ref4$isDisabled === void 0 ? false : _ref4$isDisabled,
|
|
28143
28144
|
dataQa = _ref4.dataQa;
|
|
28144
|
-
var borderColor = isDisabled ? MANATEE_GREY : themeValues.color;
|
|
28145
28145
|
return /*#__PURE__*/React.createElement(PlaceholderContentWrapper, {
|
|
28146
28146
|
isLink: isLink,
|
|
28147
28147
|
action: action,
|
|
@@ -28154,9 +28154,8 @@ var Placeholder = function Placeholder(_ref4) {
|
|
|
28154
28154
|
border: "none",
|
|
28155
28155
|
minHeight: themeValues.height,
|
|
28156
28156
|
hiddenStyles: !visible,
|
|
28157
|
-
extraStyles: "\n
|
|
28158
|
-
hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : curriedTint$1(0.9, themeValues.color), ";")
|
|
28159
|
-
activeStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : curriedTint$1(0.8, themeValues.color), ";")
|
|
28157
|
+
extraStyles: isDisabled ? "border: 1px dashed ".concat(MANATEE_GREY, "; \n display: flex;\n justify-content: center;\n align-items:center;") : "\n background: linear-gradient(\n to right,\n ".concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, ").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;"),
|
|
28158
|
+
hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
|
|
28160
28159
|
}, /*#__PURE__*/React.createElement(Center, {
|
|
28161
28160
|
maxWidth: "300px"
|
|
28162
28161
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -28189,8 +28188,9 @@ var Placeholder = function Placeholder(_ref4) {
|
|
|
28189
28188
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
28190
28189
|
justify: "center",
|
|
28191
28190
|
align: "center"
|
|
28192
|
-
}, /*#__PURE__*/React.createElement(
|
|
28193
|
-
|
|
28191
|
+
}, /*#__PURE__*/React.createElement(IconAdd, {
|
|
28192
|
+
fill: isDisabled ? MANATEE_GREY : WHITE,
|
|
28193
|
+
strokeWidth: "2"
|
|
28194
28194
|
}), /*#__PURE__*/React.createElement(Center, {
|
|
28195
28195
|
intrinsic: true
|
|
28196
28196
|
}, /*#__PURE__*/React.createElement(Text$1, {
|