cozy-ui-plus 15.0.0 → 15.0.1
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/SquareAppIcon/AnimatedIcons.js +23 -0
- package/dist/SquareAppIcon/index.js +3 -1
- package/dist/src/SquareAppIcon/AnimatedIcons.d.ts +2 -0
- package/dist/stylesheet.css +23 -5
- package/package.json +3 -3
- package/src/SquareAppIcon/AnimatedIcons.jsx +24 -0
- package/src/SquareAppIcon/index.jsx +2 -8
- package/src/SquareAppIcon/styles.styl +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [15.0.1](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@15.0.0...cozy-ui-plus@15.0.1) (2026-11-09)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **cozy-ui-plus:** Ship the animated icons of SquareAppIcon ([250ba36](https://github.com/cozy/cozy-libs/commit/250ba36228dc05b9307d7fc89c3d1bf96c7fa949))
|
|
11
|
+
|
|
6
12
|
# [15.0.0](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@14.1.15...cozy-ui-plus@15.0.0) (2026-11-09)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
var strokeProps = {
|
|
4
|
+
strokeWidth: 2,
|
|
5
|
+
strokeLinecap: 'round',
|
|
6
|
+
strokeLinejoin: 'round'
|
|
7
|
+
};
|
|
8
|
+
export function IconCheckAnimated(props) {
|
|
9
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
10
|
+
viewBox: "0 0 16 16"
|
|
11
|
+
}, props), /*#__PURE__*/React.createElement("path", _extends({
|
|
12
|
+
d: "M1 11L4 14L15 3"
|
|
13
|
+
}, strokeProps)));
|
|
14
|
+
}
|
|
15
|
+
export function IconCrossAnimated(props) {
|
|
16
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
17
|
+
viewBox: "0 0 16 16"
|
|
18
|
+
}, props), /*#__PURE__*/React.createElement("path", _extends({
|
|
19
|
+
d: "M2 2L14 14"
|
|
20
|
+
}, strokeProps)), /*#__PURE__*/React.createElement("path", _extends({
|
|
21
|
+
d: "M14 2L2 14"
|
|
22
|
+
}, strokeProps)));
|
|
23
|
+
}
|
|
@@ -2,7 +2,7 @@ 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
4
|
var _excluded = ["display", "name", "variant", "IconContent", "description", "hideShortcutBadge"];
|
|
5
|
-
import { Icon,
|
|
5
|
+
import { Icon, LinkOut, Plus, WarningCircle } from '@linagora/twake-icons';
|
|
6
6
|
import cx from 'classnames';
|
|
7
7
|
import get from 'lodash/get';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -13,6 +13,7 @@ import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
|
13
13
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
14
14
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
15
15
|
import { alpha, makeStyles } from 'cozy-ui/transpiled/react/styles';
|
|
16
|
+
import { IconCheckAnimated, IconCrossAnimated } from './AnimatedIcons';
|
|
16
17
|
var styles = {
|
|
17
18
|
"SquareAppIcon-wrapper": "styles__SquareAppIcon-wrapper___3aoSx",
|
|
18
19
|
"SquareAppIcon-wrapper--light": "styles__SquareAppIcon-wrapper--light___AqjR-",
|
|
@@ -24,6 +25,7 @@ var styles = {
|
|
|
24
25
|
"SquareAppIcon-wrapper-loading": "styles__SquareAppIcon-wrapper-loading___18esc",
|
|
25
26
|
"SquareAppIcon-spinner": "styles__SquareAppIcon-spinner___3J_iT",
|
|
26
27
|
"onEnd": "styles__onEnd___1mc8z",
|
|
28
|
+
"draw-stroke": "styles__draw-stroke___EbTxD",
|
|
27
29
|
"isFailed": "styles__isFailed___bp2y0",
|
|
28
30
|
"isSuccess": "styles__isSuccess___sNM7F",
|
|
29
31
|
"end-animation": "styles__end-animation___60Hwm"
|
package/dist/stylesheet.css
CHANGED
|
@@ -528,13 +528,11 @@ iframe {
|
|
|
528
528
|
fill: transparent !important;
|
|
529
529
|
}
|
|
530
530
|
.styles__onEnd___1mc8z svg path {
|
|
531
|
-
animation
|
|
532
|
-
|
|
533
|
-
.styles__onEnd___1mc8z svg path:first-of-type {
|
|
534
|
-
animation-delay: 0.2s !important;
|
|
531
|
+
animation: styles__draw-stroke___EbTxD 0.2s ease-in-out 0.2s backwards;
|
|
532
|
+
stroke-dasharray: 100px;
|
|
535
533
|
}
|
|
536
534
|
.styles__onEnd___1mc8z svg path+path {
|
|
537
|
-
animation-delay: 0.36s
|
|
535
|
+
animation-delay: 0.36s;
|
|
538
536
|
}
|
|
539
537
|
.styles__onEnd___1mc8z svg * {
|
|
540
538
|
stroke: var(--white) !important;
|
|
@@ -549,6 +547,26 @@ iframe {
|
|
|
549
547
|
.styles__isFailed___bp2y0 {
|
|
550
548
|
animation: styles__end-animation___60Hwm 1.5s forwards;
|
|
551
549
|
}
|
|
550
|
+
@-moz-keyframes styles__draw-stroke___EbTxD {
|
|
551
|
+
from {
|
|
552
|
+
stroke-dashoffset: 100px;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
@-webkit-keyframes styles__draw-stroke___EbTxD {
|
|
556
|
+
from {
|
|
557
|
+
stroke-dashoffset: 100px;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
@-o-keyframes styles__draw-stroke___EbTxD {
|
|
561
|
+
from {
|
|
562
|
+
stroke-dashoffset: 100px;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
@keyframes styles__draw-stroke___EbTxD {
|
|
566
|
+
from {
|
|
567
|
+
stroke-dashoffset: 100px;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
552
570
|
@-moz-keyframes styles__end-animation___60Hwm {
|
|
553
571
|
0% {
|
|
554
572
|
background-color: transparent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-ui-plus",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.1",
|
|
4
4
|
"description": "Cozy-ui-plus is an extension of cozy-ui and provides components based on cozy-client",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"cozy-intent": "^2.31.1",
|
|
39
39
|
"cozy-interapp": "^0.22.2",
|
|
40
40
|
"cozy-logger": "^1.18.1",
|
|
41
|
-
"cozy-sharing": "^45.1.
|
|
41
|
+
"cozy-sharing": "^45.1.2",
|
|
42
42
|
"cozy-stack-client": "^60.21.1",
|
|
43
43
|
"cozy-ui": "^138.1.0",
|
|
44
44
|
"jest": "30.3.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"react-dom": "^16 || ^17 || ^18",
|
|
79
79
|
"twake-i18n": ">=0.3.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "34f759b0123f12e7082735419eb0a94d4499a2bf"
|
|
82
82
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
const strokeProps = {
|
|
4
|
+
strokeWidth: 2,
|
|
5
|
+
strokeLinecap: 'round',
|
|
6
|
+
strokeLinejoin: 'round'
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function IconCheckAnimated(props) {
|
|
10
|
+
return (
|
|
11
|
+
<svg viewBox="0 0 16 16" {...props}>
|
|
12
|
+
<path d="M1 11L4 14L15 3" {...strokeProps} />
|
|
13
|
+
</svg>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function IconCrossAnimated(props) {
|
|
18
|
+
return (
|
|
19
|
+
<svg viewBox="0 0 16 16" {...props}>
|
|
20
|
+
<path d="M2 2L14 14" {...strokeProps} />
|
|
21
|
+
<path d="M14 2L2 14" {...strokeProps} />
|
|
22
|
+
</svg>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Icon,
|
|
3
|
-
IconCheckAnimated,
|
|
4
|
-
IconCrossAnimated,
|
|
5
|
-
LinkOut,
|
|
6
|
-
Plus,
|
|
7
|
-
WarningCircle
|
|
8
|
-
} from '@linagora/twake-icons'
|
|
1
|
+
import { Icon, LinkOut, Plus, WarningCircle } from '@linagora/twake-icons'
|
|
9
2
|
import cx from 'classnames'
|
|
10
3
|
import get from 'lodash/get'
|
|
11
4
|
import PropTypes from 'prop-types'
|
|
@@ -18,6 +11,7 @@ import Spinner from 'cozy-ui/transpiled/react/Spinner'
|
|
|
18
11
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
19
12
|
import { alpha, makeStyles } from 'cozy-ui/transpiled/react/styles'
|
|
20
13
|
|
|
14
|
+
import { IconCheckAnimated, IconCrossAnimated } from './AnimatedIcons'
|
|
21
15
|
import styles from './styles.styl'
|
|
22
16
|
import AppIcon from '../AppIcon'
|
|
23
17
|
import { useCozyTheme } from '../providers/CozyTheme'
|
|
@@ -94,19 +94,22 @@ opacity-end = 1
|
|
|
94
94
|
fill transparent !important
|
|
95
95
|
|
|
96
96
|
path
|
|
97
|
-
animation-
|
|
97
|
+
animation draw-stroke icon-duration ease-in-out icon-start backwards
|
|
98
|
+
stroke-dasharray 100px
|
|
98
99
|
|
|
99
|
-
path
|
|
100
|
-
animation-delay icon-start !important
|
|
101
|
-
|
|
102
|
-
// The second path is a part of the cross,
|
|
103
|
-
// since it has its own hardcoded animation delay we need to add it again (.16s)
|
|
100
|
+
// The second path is the second stroke of the cross
|
|
104
101
|
path+path
|
|
105
|
-
animation-delay icon-start + .16s
|
|
102
|
+
animation-delay icon-start + .16s
|
|
106
103
|
|
|
107
104
|
*
|
|
108
105
|
stroke var(--white) !important
|
|
109
106
|
|
|
107
|
+
@keyframes draw-stroke {
|
|
108
|
+
from {
|
|
109
|
+
stroke-dashoffset 100px
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
110
113
|
.onEnd.isFailed
|
|
111
114
|
--animationColor var(--errorColor)
|
|
112
115
|
|