@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.cjs.js
CHANGED
|
@@ -13585,7 +13585,8 @@ var SettingsIconSmall$1 = themeComponent(SettingsIconSmall, "Icons", fallbackVal
|
|
|
13585
13585
|
var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
13586
13586
|
var themeValues = _ref.themeValues,
|
|
13587
13587
|
_ref$iconIndex = _ref.iconIndex,
|
|
13588
|
-
iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex
|
|
13588
|
+
iconIndex = _ref$iconIndex === void 0 ? 0 : _ref$iconIndex,
|
|
13589
|
+
colorOverride = _ref.colorOverride;
|
|
13589
13590
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13590
13591
|
width: "20",
|
|
13591
13592
|
height: "20",
|
|
@@ -13596,7 +13597,7 @@ var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
|
13596
13597
|
fillRule: "evenodd",
|
|
13597
13598
|
clipRule: "evenodd",
|
|
13598
13599
|
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",
|
|
13599
|
-
fill: themeValues.singleIconColor
|
|
13600
|
+
fill: colorOverride || themeValues.singleIconColor
|
|
13600
13601
|
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
13601
13602
|
id: "mask0_503_574-".concat(iconIndex),
|
|
13602
13603
|
style: {
|
|
@@ -13617,7 +13618,7 @@ var WalletIconSmall = function WalletIconSmall(_ref) {
|
|
|
13617
13618
|
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
13618
13619
|
width: "20",
|
|
13619
13620
|
height: "20",
|
|
13620
|
-
fill: themeValues.singleIconColor
|
|
13621
|
+
fill: colorOverride || themeValues.singleIconColor
|
|
13621
13622
|
})));
|
|
13622
13623
|
};
|
|
13623
13624
|
var WalletIconSmall$1 = themeComponent(WalletIconSmall, "Icons", fallbackValues$2, "primary");
|
|
@@ -28149,7 +28150,6 @@ var Placeholder = function Placeholder(_ref4) {
|
|
|
28149
28150
|
_ref4$isDisabled = _ref4.isDisabled,
|
|
28150
28151
|
isDisabled = _ref4$isDisabled === void 0 ? false : _ref4$isDisabled,
|
|
28151
28152
|
dataQa = _ref4.dataQa;
|
|
28152
|
-
var borderColor = isDisabled ? MANATEE_GREY : themeValues.color;
|
|
28153
28153
|
return /*#__PURE__*/React__default.createElement(PlaceholderContentWrapper, {
|
|
28154
28154
|
isLink: isLink,
|
|
28155
28155
|
action: action,
|
|
@@ -28162,9 +28162,8 @@ var Placeholder = function Placeholder(_ref4) {
|
|
|
28162
28162
|
border: "none",
|
|
28163
28163
|
minHeight: themeValues.height,
|
|
28164
28164
|
hiddenStyles: !visible,
|
|
28165
|
-
extraStyles: "\n
|
|
28166
|
-
hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : curriedTint$1(0.9, themeValues.color), ";")
|
|
28167
|
-
activeStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : curriedTint$1(0.8, themeValues.color), ";")
|
|
28165
|
+
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;"),
|
|
28166
|
+
hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
|
|
28168
28167
|
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
28169
28168
|
maxWidth: "300px"
|
|
28170
28169
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -28197,8 +28196,9 @@ var Placeholder = function Placeholder(_ref4) {
|
|
|
28197
28196
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
28198
28197
|
justify: "center",
|
|
28199
28198
|
align: "center"
|
|
28200
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
28201
|
-
|
|
28199
|
+
}, /*#__PURE__*/React__default.createElement(IconAdd, {
|
|
28200
|
+
fill: isDisabled ? MANATEE_GREY : WHITE,
|
|
28201
|
+
strokeWidth: "2"
|
|
28202
28202
|
}), /*#__PURE__*/React__default.createElement(Center, {
|
|
28203
28203
|
intrinsic: true
|
|
28204
28204
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|