diff --git a/package.json b/package.json
index a62b70f93..2a50d6660 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"npm": "^5.3.0",
"ramda": "0.24.1",
"react": "^16.0.0",
+ "react-addons-css-transition-group": "^15.6.2",
"react-dom": "^16.0.0",
"react-helmet": "^5.2.0",
"react-redux": "^5.0.6",
@@ -30,6 +31,7 @@
"react-scroll": "^1.5.4",
"react-select": "^1.0.0-rc.10",
"react-select-fast-filter-options": "^0.2.3",
+ "react-transition-group": "^2.2.1",
"react-virtualized": "^9.10.1",
"react-virtualized-select": "^3.1.0",
"reduce-reducers": "^0.1.2",
diff --git a/source/components/rule/RuleValueVignette.js b/source/components/rule/RuleValueVignette.js
index 1ee4969f0..b98145492 100644
--- a/source/components/rule/RuleValueVignette.js
+++ b/source/components/rule/RuleValueVignette.js
@@ -1,11 +1,13 @@
import React from "react"
-import {Link} from 'react-router-dom'
-import {encodeRuleName} from 'Engine/rules'
-import classNames from 'classnames'
-import {capitalise0} from '../../utils'
-let fmt = new Intl.NumberFormat('fr-FR').format
-export let humanFigure = decimalDigits => value => fmt(value.toFixed(decimalDigits))
-import './RuleValueVignette2.css'
+import { Link } from "react-router-dom"
+import { encodeRuleName } from "Engine/rules"
+import classNames from "classnames"
+import { capitalise0 } from "../../utils"
+let fmt = new Intl.NumberFormat("fr-FR").format
+export let humanFigure = decimalDigits => value =>
+ fmt(value.toFixed(decimalDigits))
+import "./RuleValueVignette2.css"
+import ReactCSSTransitionGroup from "react-addons-css-transition-group"
export default ({
name,
@@ -15,36 +17,49 @@ export default ({
nodeValue: ruleValue
}) =>
do {
- let
- unsatisfied = ruleValue == null,
+ let unsatisfied = ruleValue == null,
irrelevant = ruleValue == 0,
- number = typeof ruleValue == 'number' && ruleValue > 0
-
+ number = typeof ruleValue == "number" && ruleValue > 0
;
- Pourquoi ?
Pourquoi ?
*/ + } + +