@janiscommerce/ui-web 0.35.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/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.37.0] - 2025-05-02
11
+
12
+ ### Removed
13
+
14
+ - Prop iconSize to chip and format styles
15
+
16
+ ## [0.36.0] - 2025-04-30
17
+
18
+ ### Added
19
+
20
+ - Prop iconSize to chip and format styles
21
+
10
22
  ## [0.35.0] - 2025-04-24
11
23
 
12
24
  ### Added
package/dist/index.esm.js CHANGED
@@ -5625,9 +5625,9 @@ var styles$2 = {
5625
5625
  Svg: styled$g.svg.withConfig({
5626
5626
  displayName: "styles__Svg",
5627
5627
  componentId: "sc-jf3e5i-0"
5628
- })(["fill:", ";", " ", ";"], function (props) {
5628
+ })(["fill:", ";", " ", ";", ";"], function (props) {
5629
5629
  return getColor(props.color);
5630
- }, mediaBreaks.onlyPrint(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n\t\t\tfill: ", ";\n\t\t"])), palette.darkGrey), function (props) {
5630
+ }, mediaBreaks.onlyPrint(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n\t\t\tfill: ", ";\n\t\t"])), palette.darkGrey), mixins.transition('fill'), function (props) {
5631
5631
  return props.styles;
5632
5632
  }),
5633
5633
  Path: styled$g.path.withConfig({
@@ -7153,19 +7153,17 @@ var styled$d = {
7153
7153
  }, function (props) {
7154
7154
  return props.textColor && "color: ".concat(getColor(props.textColor), ";");
7155
7155
  }, mediaBreaks.onlyPrint(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), palette.darkGrey)),
7156
- iconPathStyles: css(["", ";"], mixins.transition('fill')),
7157
7156
  DeleteButton: styled$g.button.withConfig({
7158
7157
  displayName: "styles__DeleteButton",
7159
7158
  componentId: "sc-1vnh4co-1"
7160
7159
  })(["width:16px;height:16px;margin-left:12px;"]),
7161
- deleteButtonPathStyles: css(["", ";"], mixins.transition('fill')),
7162
7160
  Children: styled$g.div.withConfig({
7163
7161
  displayName: "styles__Children",
7164
7162
  componentId: "sc-1vnh4co-2"
7165
7163
  })(["text-overflow:ellipsis;overflow:hidden;"])
7166
7164
  };
7167
7165
 
7168
- var _excluded$9 = ["backgroundColor", "borderColor", "children", "disabled", "icon", "iconColor", "onClick", "onDelete", "selected", "textColor", "variant", "hasLink"];
7166
+ var _excluded$9 = ["backgroundColor", "borderColor", "children", "disabled", "icon", "iconColor", "iconSize", "onClick", "onDelete", "selected", "textColor", "variant", "hasLink"];
7169
7167
 
7170
7168
  var Chip = function Chip(_ref) {
7171
7169
  var backgroundColor = _ref.backgroundColor,
@@ -7174,6 +7172,7 @@ var Chip = function Chip(_ref) {
7174
7172
  disabled = _ref.disabled,
7175
7173
  icon = _ref.icon,
7176
7174
  iconColor = _ref.iconColor,
7175
+ iconSize = _ref.iconSize,
7177
7176
  onClick = _ref.onClick,
7178
7177
  onDelete = _ref.onDelete,
7179
7178
  selected = _ref.selected,
@@ -7194,20 +7193,18 @@ var Chip = function Chip(_ref) {
7194
7193
  selected: selected,
7195
7194
  textColor: textColor,
7196
7195
  variant: variant,
7197
- iconColor: iconColor,
7198
7196
  hasLink: hasLink,
7199
7197
  onlyIcon: !children && icon
7200
7198
  }, props), icon && /*#__PURE__*/React__default.createElement(Icon, {
7201
7199
  className: "chip-icon",
7202
7200
  name: icon,
7203
7201
  color: iconColor,
7204
- pathStyles: styled$d.iconPathStyles
7202
+ size: iconSize
7205
7203
  }), children && /*#__PURE__*/React__default.createElement(styled$d.Children, null, children), onDelete && /*#__PURE__*/React__default.createElement(styled$d.DeleteButton, {
7206
7204
  type: "button",
7207
7205
  onClick: onDelete
7208
7206
  }, /*#__PURE__*/React__default.createElement(Icon, {
7209
7207
  color: "black",
7210
- pathStyles: styled$d.deleteButtonPathStyles,
7211
7208
  className: "delete-button",
7212
7209
  name: "cross_circle_flat",
7213
7210
  size: 16