@janiscommerce/ui-web 0.34.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 +12 -0
- package/dist/index.esm.js +10 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +10 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -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{", ";
|
|
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,10 +7166,12 @@
|
|
|
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);
|
|
7169
7171
|
}, function (props) {
|
|
7170
7172
|
return !props.onlyIcon && 'margin-right: 8px';
|
|
7171
7173
|
}, function (props) {
|
|
7172
|
-
return
|
|
7174
|
+
return props.iconColor && "fill: ".concat(getColor(props.iconColor));
|
|
7173
7175
|
}, function (props) {
|
|
7174
7176
|
return props.styles;
|
|
7175
7177
|
}, function (props) {
|
|
@@ -7191,7 +7193,7 @@
|
|
|
7191
7193
|
})(["text-overflow:ellipsis;overflow:hidden;"])
|
|
7192
7194
|
};
|
|
7193
7195
|
|
|
7194
|
-
var _excluded$9 = ["backgroundColor", "borderColor", "children", "disabled", "icon", "iconColor", "onClick", "onDelete", "selected", "textColor", "variant", "hasLink"];
|
|
7196
|
+
var _excluded$9 = ["backgroundColor", "borderColor", "children", "disabled", "icon", "iconColor", "iconSize", "onClick", "onDelete", "selected", "textColor", "variant", "hasLink"];
|
|
7195
7197
|
|
|
7196
7198
|
var Chip = function Chip(_ref) {
|
|
7197
7199
|
var backgroundColor = _ref.backgroundColor,
|
|
@@ -7200,6 +7202,7 @@
|
|
|
7200
7202
|
disabled = _ref.disabled,
|
|
7201
7203
|
icon = _ref.icon,
|
|
7202
7204
|
iconColor = _ref.iconColor,
|
|
7205
|
+
iconSize = _ref.iconSize,
|
|
7203
7206
|
onClick = _ref.onClick,
|
|
7204
7207
|
onDelete = _ref.onDelete,
|
|
7205
7208
|
selected = _ref.selected,
|
|
@@ -7227,6 +7230,7 @@
|
|
|
7227
7230
|
className: "chip-icon",
|
|
7228
7231
|
name: icon,
|
|
7229
7232
|
color: iconColor,
|
|
7233
|
+
size: iconSize,
|
|
7230
7234
|
pathStyles: styled$d.iconPathStyles
|
|
7231
7235
|
}), children && /*#__PURE__*/React__default["default"].createElement(styled$d.Children, null, children), onDelete && /*#__PURE__*/React__default["default"].createElement(styled$d.DeleteButton, {
|
|
7232
7236
|
type: "button",
|
|
@@ -16039,6 +16043,9 @@
|
|
|
16039
16043
|
var delayedInfoWindowHover = debounce(function () {
|
|
16040
16044
|
if (!mouseOverInfoWindow) closeInfoWindow();
|
|
16041
16045
|
}, 100);
|
|
16046
|
+
React.useEffect(function () {
|
|
16047
|
+
setMarker(markerData);
|
|
16048
|
+
}, [markerData]);
|
|
16042
16049
|
|
|
16043
16050
|
var updateMarker = function updateMarker() {
|
|
16044
16051
|
var newData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|