cozy-ui 113.1.0 → 113.3.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 +14 -0
- package/assets/icons/ui/server.svg +1 -0
- package/package.json +1 -1
- package/react/Icon/Readme.md +3 -1
- package/react/Icons/Server.jsx +16 -0
- package/react/SquareAppIcon/Readme.md +53 -13
- package/react/SquareAppIcon/index.jsx +5 -2
- package/transpiled/react/Icon/icons-sprite.js +1 -1
- package/transpiled/react/Icons/Server.js +15 -0
- package/transpiled/react/SquareAppIcon/index.js +5 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/server.svg` to regenerate;
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
function SvgServer(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
|
+
viewBox: "0 0 16 16"
|
|
8
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
9
|
+
fillRule: "evenodd",
|
|
10
|
+
clipRule: "evenodd",
|
|
11
|
+
d: "M0 2a2 2 0 012-2h12a2 2 0 012 2v3a2 2 0 01-2 2H2a2 2 0 01-2-2V2zm5 1.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM0 11a2 2 0 012-2h12a2 2 0 012 2v3a2 2 0 01-2 2H2a2 2 0 01-2-2v-3zm5 1.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z"
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default SvgServer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["display", "name", "variant", "IconContent", "description"];
|
|
4
|
+
var _excluded = ["display", "name", "variant", "IconContent", "description", "hideShortcutBadge"];
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import get from 'lodash/get';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -115,6 +115,8 @@ export var SquareAppIcon = function SquareAppIcon(_ref2) {
|
|
|
115
115
|
variant = _ref2.variant,
|
|
116
116
|
IconContent = _ref2.IconContent,
|
|
117
117
|
description = _ref2.description,
|
|
118
|
+
_ref2$hideShortcutBad = _ref2.hideShortcutBadge,
|
|
119
|
+
hideShortcutBadge = _ref2$hideShortcutBad === void 0 ? false : _ref2$hideShortcutBad,
|
|
118
120
|
appIconProps = _objectWithoutProperties(_ref2, _excluded);
|
|
119
121
|
|
|
120
122
|
var _useCozyTheme = useCozyTheme(),
|
|
@@ -147,13 +149,13 @@ export var SquareAppIcon = function SquareAppIcon(_ref2) {
|
|
|
147
149
|
}, /*#__PURE__*/React.createElement(CozyTheme, {
|
|
148
150
|
variant: squareTheme
|
|
149
151
|
}, /*#__PURE__*/React.createElement(InfosBadge, {
|
|
150
|
-
badgeContent: variant === 'shortcut' ? /*#__PURE__*/React.createElement(Icon, {
|
|
152
|
+
badgeContent: variant === 'shortcut' && !hideShortcutBadge ? /*#__PURE__*/React.createElement(Icon, {
|
|
151
153
|
size: "10",
|
|
152
154
|
icon: iconOut
|
|
153
155
|
}) : null,
|
|
154
156
|
className: cx(_defineProperty({}, 'u-mr-1', display === 'detailed')),
|
|
155
157
|
overlap: "rectangular",
|
|
156
|
-
invisible: variant !== 'shortcut'
|
|
158
|
+
invisible: variant !== 'shortcut' || hideShortcutBadge
|
|
157
159
|
}, /*#__PURE__*/React.createElement(SquareAppIconSpinner, {
|
|
158
160
|
variant: variant,
|
|
159
161
|
animationState: animationState
|