@janiscommerce/ui-web 0.35.0 → 0.36.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 +6 -0
- package/dist/index.esm.js +7 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +7 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -7128,7 +7128,7 @@ var styled$d = {
|
|
|
7128
7128
|
Chip: styled$g.button.withConfig({
|
|
7129
7129
|
displayName: "styles__Chip",
|
|
7130
7130
|
componentId: "sc-1vnh4co-0"
|
|
7131
|
-
})(["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{", ";
|
|
7131
|
+
})(["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) {
|
|
7132
7132
|
return !props.onlyIcon ? '0 12px' : '0';
|
|
7133
7133
|
}, function (props) {
|
|
7134
7134
|
return props.clickable ? 'pointer' : 'default';
|
|
@@ -7140,10 +7140,12 @@ var styled$d = {
|
|
|
7140
7140
|
return !props.onlyIcon ? '50px' : '50%';
|
|
7141
7141
|
}, function (props) {
|
|
7142
7142
|
return props.clickable || props.hasLink ? 'auto' : 'none';
|
|
7143
|
+
}, function (props) {
|
|
7144
|
+
return getChipVariant(props);
|
|
7143
7145
|
}, function (props) {
|
|
7144
7146
|
return !props.onlyIcon && 'margin-right: 8px';
|
|
7145
7147
|
}, function (props) {
|
|
7146
|
-
return
|
|
7148
|
+
return props.iconColor && "fill: ".concat(getColor(props.iconColor));
|
|
7147
7149
|
}, function (props) {
|
|
7148
7150
|
return props.styles;
|
|
7149
7151
|
}, function (props) {
|
|
@@ -7165,7 +7167,7 @@ var styled$d = {
|
|
|
7165
7167
|
})(["text-overflow:ellipsis;overflow:hidden;"])
|
|
7166
7168
|
};
|
|
7167
7169
|
|
|
7168
|
-
var _excluded$9 = ["backgroundColor", "borderColor", "children", "disabled", "icon", "iconColor", "onClick", "onDelete", "selected", "textColor", "variant", "hasLink"];
|
|
7170
|
+
var _excluded$9 = ["backgroundColor", "borderColor", "children", "disabled", "icon", "iconColor", "iconSize", "onClick", "onDelete", "selected", "textColor", "variant", "hasLink"];
|
|
7169
7171
|
|
|
7170
7172
|
var Chip = function Chip(_ref) {
|
|
7171
7173
|
var backgroundColor = _ref.backgroundColor,
|
|
@@ -7174,6 +7176,7 @@ var Chip = function Chip(_ref) {
|
|
|
7174
7176
|
disabled = _ref.disabled,
|
|
7175
7177
|
icon = _ref.icon,
|
|
7176
7178
|
iconColor = _ref.iconColor,
|
|
7179
|
+
iconSize = _ref.iconSize,
|
|
7177
7180
|
onClick = _ref.onClick,
|
|
7178
7181
|
onDelete = _ref.onDelete,
|
|
7179
7182
|
selected = _ref.selected,
|
|
@@ -7201,6 +7204,7 @@ var Chip = function Chip(_ref) {
|
|
|
7201
7204
|
className: "chip-icon",
|
|
7202
7205
|
name: icon,
|
|
7203
7206
|
color: iconColor,
|
|
7207
|
+
size: iconSize,
|
|
7204
7208
|
pathStyles: styled$d.iconPathStyles
|
|
7205
7209
|
}), children && /*#__PURE__*/React__default.createElement(styled$d.Children, null, children), onDelete && /*#__PURE__*/React__default.createElement(styled$d.DeleteButton, {
|
|
7206
7210
|
type: "button",
|