@thecb/components 10.6.1 → 10.6.2-beta.1

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
@@ -28114,7 +28114,11 @@ var renderContent = function renderContent(_ref2) {
28114
28114
  padding: "0",
28115
28115
  minHeight: "100%",
28116
28116
  extraStyles: "cursor: pointer;",
28117
- dataQa: dataQa
28117
+ dataQa: dataQa,
28118
+ tabIndex: "0",
28119
+ onKeyPress: function onKeyPress(e) {
28120
+ return e.key === "Enter" && action();
28121
+ }
28118
28122
  }, children);
28119
28123
  };
28120
28124
  var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref3) {
@@ -28149,6 +28153,7 @@ var Placeholder = function Placeholder(_ref4) {
28149
28153
  _ref4$isDisabled = _ref4.isDisabled,
28150
28154
  isDisabled = _ref4$isDisabled === void 0 ? false : _ref4$isDisabled,
28151
28155
  dataQa = _ref4.dataQa;
28156
+ var borderColor = isDisabled ? MANATEE_GREY : themeValues.color;
28152
28157
  return /*#__PURE__*/React__default.createElement(PlaceholderContentWrapper, {
28153
28158
  isLink: isLink,
28154
28159
  action: action,
@@ -28161,16 +28166,13 @@ var Placeholder = function Placeholder(_ref4) {
28161
28166
  border: "none",
28162
28167
  minHeight: themeValues.height,
28163
28168
  hiddenStyles: !visible,
28164
- 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;"),
28165
- hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
28169
+ extraStyles: "\n display: flex;\n justify-content: center;\n align-items:center;\n background-image: repeating-linear-gradient(0deg, ".concat(borderColor, ", ").concat(borderColor, " 2px, transparent 2px, transparent 4px, ").concat(borderColor, " 4px), repeating-linear-gradient(90deg, ").concat(borderColor, ", ").concat(borderColor, " 2px, transparent 2px, transparent 4px, ").concat(borderColor, " 4px), repeating-linear-gradient(180deg, ").concat(borderColor, ", ").concat(borderColor, " 2px, transparent 2px, transparent 4px, ").concat(borderColor, " 4px), repeating-linear-gradient(270deg, ").concat(borderColor, ", ").concat(borderColor, " 2px, transparent 2px, transparent 4px, ").concat(borderColor, " 4px);\n background-size: 2px 100%, 100% 2px, 2px 100% , 100% 2px;\n background-position: 0 0, 0 0, 100% 0, 0 100%;\n background-repeat: no-repeat;\n "),
28170
+ hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : curriedTint$1(0.9, themeValues.color), ";"),
28171
+ activeStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : curriedTint$1(0.8, themeValues.color), ";")
28166
28172
  }, /*#__PURE__*/React__default.createElement(Center, {
28167
28173
  maxWidth: "300px"
28168
28174
  }, /*#__PURE__*/React__default.createElement(Box, {
28169
- padding: "0",
28170
- tabIndex: "0",
28171
- onKeyPress: function onKeyPress(e) {
28172
- return isDisabled ? noop : e.key === "Enter" && action();
28173
- }
28175
+ padding: "0"
28174
28176
  }, /*#__PURE__*/React__default.createElement(Cluster, {
28175
28177
  justify: "center",
28176
28178
  align: "center",
@@ -28181,7 +28183,7 @@ var Placeholder = function Placeholder(_ref4) {
28181
28183
  }, variant === "large" && /*#__PURE__*/React__default.createElement("div", null), /*#__PURE__*/React__default.createElement(Box, {
28182
28184
  padding: "0",
28183
28185
  "aria-disabled": isDisabled,
28184
- extraStyles: ".fill { \n fill: ".concat(isDisabled ? MANATEE_GREY : variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(isDisabled ? MANATEE_GREY : variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } ")
28186
+ extraStyles: ".fill { \n fill: ".concat(isDisabled ? MANATEE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(isDisabled ? MANATEE_GREY : themeValues.color, "; \n } ")
28185
28187
  }, variant === "large" ? /*#__PURE__*/React__default.createElement(Center, {
28186
28188
  intrinsic: true
28187
28189
  }, getLargeIcon(largeIcon, isDisabled), /*#__PURE__*/React__default.createElement(Text$1, {
@@ -28195,9 +28197,8 @@ var Placeholder = function Placeholder(_ref4) {
28195
28197
  }, /*#__PURE__*/React__default.createElement(Cluster, {
28196
28198
  justify: "center",
28197
28199
  align: "center"
28198
- }, /*#__PURE__*/React__default.createElement(IconAdd, {
28199
- fill: isDisabled ? MANATEE_GREY : WHITE,
28200
- strokeWidth: "2"
28200
+ }, /*#__PURE__*/React__default.createElement(PlusCircleIcon, {
28201
+ color: isDisabled ? MANATEE_GREY : themeValues.color
28201
28202
  }), /*#__PURE__*/React__default.createElement(Center, {
28202
28203
  intrinsic: true
28203
28204
  }, /*#__PURE__*/React__default.createElement(Text$1, {