@janiscommerce/ui-web 0.36.0 → 0.37.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.umd.js CHANGED
@@ -5651,9 +5651,9 @@
5651
5651
  Svg: styled__default["default"].svg.withConfig({
5652
5652
  displayName: "styles__Svg",
5653
5653
  componentId: "sc-jf3e5i-0"
5654
- })(["fill:", ";", " ", ";"], function (props) {
5654
+ })(["fill:", ";", " ", ";", ";"], function (props) {
5655
5655
  return getColor(props.color);
5656
- }, mediaBreaks.onlyPrint(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n\t\t\tfill: ", ";\n\t\t"])), palette.darkGrey), function (props) {
5656
+ }, mediaBreaks.onlyPrint(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n\t\t\tfill: ", ";\n\t\t"])), palette.darkGrey), mixins.transition('fill'), function (props) {
5657
5657
  return props.styles;
5658
5658
  }),
5659
5659
  Path: styled__default["default"].path.withConfig({
@@ -7154,7 +7154,7 @@
7154
7154
  Chip: styled__default["default"].button.withConfig({
7155
7155
  displayName: "styles__Chip",
7156
7156
  componentId: "sc-1vnh4co-0"
7157
- })(["padding:", ";cursor:", ";font-size:13px;color:", ";height:", ";width:", ";min-width:36px;max-width:150px;border-radius:", ";display:inline-flex;justify-content:center;align-items:center;pointer-events:", ";white-space:nowrap;", ";.chip-icon{", ";", ";}", ";", " ", " ", " ", ""], function (props) {
7157
+ })(["padding:", ";cursor:", ";font-size:13px;color:", ";height:", ";width:", ";min-width:36px;max-width:150px;border-radius:", ";display:inline-flex;justify-content:center;align-items:center;pointer-events:", ";white-space:nowrap;.chip-icon{", ";}", ";", ";", " ", " ", " ", ""], function (props) {
7158
7158
  return !props.onlyIcon ? '0 12px' : '0';
7159
7159
  }, function (props) {
7160
7160
  return props.clickable ? 'pointer' : 'default';
@@ -7166,12 +7166,10 @@
7166
7166
  return !props.onlyIcon ? '50px' : '50%';
7167
7167
  }, function (props) {
7168
7168
  return props.clickable || props.hasLink ? 'auto' : 'none';
7169
- }, function (props) {
7170
- return getChipVariant(props);
7171
7169
  }, function (props) {
7172
7170
  return !props.onlyIcon && 'margin-right: 8px';
7173
7171
  }, function (props) {
7174
- return props.iconColor && "fill: ".concat(getColor(props.iconColor));
7172
+ return getChipVariant(props);
7175
7173
  }, function (props) {
7176
7174
  return props.styles;
7177
7175
  }, function (props) {
@@ -7181,12 +7179,10 @@
7181
7179
  }, function (props) {
7182
7180
  return props.textColor && "color: ".concat(getColor(props.textColor), ";");
7183
7181
  }, mediaBreaks.onlyPrint(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), palette.darkGrey)),
7184
- iconPathStyles: styled$g.css(["", ";"], mixins.transition('fill')),
7185
7182
  DeleteButton: styled__default["default"].button.withConfig({
7186
7183
  displayName: "styles__DeleteButton",
7187
7184
  componentId: "sc-1vnh4co-1"
7188
7185
  })(["width:16px;height:16px;margin-left:12px;"]),
7189
- deleteButtonPathStyles: styled$g.css(["", ";"], mixins.transition('fill')),
7190
7186
  Children: styled__default["default"].div.withConfig({
7191
7187
  displayName: "styles__Children",
7192
7188
  componentId: "sc-1vnh4co-2"
@@ -7223,21 +7219,18 @@
7223
7219
  selected: selected,
7224
7220
  textColor: textColor,
7225
7221
  variant: variant,
7226
- iconColor: iconColor,
7227
7222
  hasLink: hasLink,
7228
7223
  onlyIcon: !children && icon
7229
7224
  }, props), icon && /*#__PURE__*/React__default["default"].createElement(Icon, {
7230
7225
  className: "chip-icon",
7231
7226
  name: icon,
7232
7227
  color: iconColor,
7233
- size: iconSize,
7234
- pathStyles: styled$d.iconPathStyles
7228
+ size: iconSize
7235
7229
  }), children && /*#__PURE__*/React__default["default"].createElement(styled$d.Children, null, children), onDelete && /*#__PURE__*/React__default["default"].createElement(styled$d.DeleteButton, {
7236
7230
  type: "button",
7237
7231
  onClick: onDelete
7238
7232
  }, /*#__PURE__*/React__default["default"].createElement(Icon, {
7239
7233
  color: "black",
7240
- pathStyles: styled$d.deleteButtonPathStyles,
7241
7234
  className: "delete-button",
7242
7235
  name: "cross_circle_flat",
7243
7236
  size: 16