cozy-ui 113.2.0 → 113.4.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 +15 -0
- package/assets/icons/ui/folder-open.svg +1 -0
- package/package.json +1 -1
- package/react/ActionsMenu/Actions/index.js +1 -0
- package/react/ActionsMenu/Actions/locales/en.json +1 -0
- package/react/ActionsMenu/Actions/locales/fr.json +1 -0
- package/react/ActionsMenu/Actions/viewInDrive.js +52 -0
- package/react/ActionsMenu/Readme.md +2 -2
- package/react/Icon/Readme.md +3 -1
- package/react/Icons/FolderOpen.jsx +12 -0
- package/react/SquareAppIcon/Readme.md +53 -13
- package/react/SquareAppIcon/index.jsx +5 -2
- package/transpiled/react/ActionsMenu/Actions/index.js +1 -0
- package/transpiled/react/ActionsMenu/Actions/locales/withActionsLocales.js +2 -0
- package/transpiled/react/ActionsMenu/Actions/viewInDrive.js +49 -0
- package/transpiled/react/Icon/icons-sprite.js +1 -1
- package/transpiled/react/Icons/FolderOpen.js +13 -0
- package/transpiled/react/SquareAppIcon/index.js +5 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/folder-open.svg` to regenerate;
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
function SvgFolderOpen(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
|
+
viewBox: "0 0 16 16"
|
|
8
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
9
|
+
d: "M0 13V3a2 2 0 012-2h3.172a2 2 0 011.414.586l.828.828A2 2 0 008.828 3H12a2 2 0 012 2H3.5a.5.5 0 00-.474.342l-2 6a.5.5 0 10.948.316L3.86 6h11.142a1 1 0 01.952 1.304l-2.01 6.304A2 2 0 0112.039 15H2a2 2 0 01-2-2z"
|
|
10
|
+
}));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default SvgFolderOpen;
|
|
@@ -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
|