From d1f83bee86854908f367fefa6ef1d587e889547a Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Fri, 19 May 2017 22:21:34 +0900 Subject: [PATCH] Remove react-autosuggest (#3140) react-autosuggest is added from b91faaebbb4803c248fe9112fa34cef199e8bf42 Dependence removed from d088b3cadeb688f0d5809900796bcc7d70f39d61 --- app/javascript/styles/components.scss | 38 --------------------------- package.json | 1 - yarn.lock | 33 +++++------------------ 3 files changed, 6 insertions(+), 66 deletions(-) diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss index f639ca8d46..a6771cce0a 100644 --- a/app/javascript/styles/components.scss +++ b/app/javascript/styles/components.scss @@ -1482,44 +1482,6 @@ } } -.react-autosuggest__container { - position: relative; -} - -.react-autosuggest__suggestions-container { - position: absolute; - top: 100%; - width: 100%; - z-index: 99; - box-shadow: 0 0 15px rgba($base-shadow-color, 0.4); -} - -.react-autosuggest__section-title { - background: $ui-primary-color; - padding: 4px 10px; - font-weight: 500; - cursor: default; - color: $ui-base-color; - text-transform: uppercase; - font-size: 11px; -} - -.react-autosuggest__suggestions-list { - background: $ui-secondary-color; - color: $ui-base-color; - font-size: 14px; -} - -.react-autosuggest__suggestion { - padding: 10px; - cursor: pointer; -} - -.react-autosuggest__suggestion--focused { - background: $ui-highlight-color; - color: $primary-text-color; -} - .scrollable { overflow-y: scroll; overflow-x: hidden; diff --git a/package.json b/package.json index d7da8487f2..2a89d02e90 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,6 @@ "react": "^15.5.4", "react-addons-perf": "^15.4.2", "react-addons-shallow-compare": "^15.5.2", - "react-autosuggest": "^7.0.1", "react-dom": "^15.5.4", "react-imageloader": "^2.1.0", "react-immutable-proptypes": "^2.1.0", diff --git a/yarn.lock b/yarn.lock index a60e451dcd..04960d083a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4316,10 +4316,6 @@ object-assign@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.0.tgz#7a3b3d0e98063d43f4c03f2e8ae6cd51a86883a0" -object-assign@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-3.0.0.tgz#9bedd5ca0897949bca47e7ff408062d549f587f2" - object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -5288,22 +5284,6 @@ react-addons-shallow-compare@>=0.14.0, react-addons-shallow-compare@^15.5.2: fbjs "^0.8.4" object-assign "^4.1.0" -react-autosuggest@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/react-autosuggest/-/react-autosuggest-7.0.1.tgz#e751d2c2e516a344f6cdc150672e85f134f5f2f1" - dependencies: - react-autowhatever "^7.0.0" - react-redux "^4.4.5" - redux "^3.6.0" - shallow-equal "^1.0.0" - -react-autowhatever@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/react-autowhatever/-/react-autowhatever-7.0.0.tgz#7ea19f8024183acf1568fc8e4b76c0d0cc250d00" - dependencies: - react-themeable "^1.1.0" - section-iterator "^2.0.0" - react-docgen@^2.12.1: version "2.13.0" resolved "https://registry.yarnpkg.com/react-docgen/-/react-docgen-2.13.0.tgz#7fcc4a3104ea8d4fd428383ba38df11166837be9" @@ -5863,9 +5843,12 @@ scroll-behavior@^0.8.0: dom-helpers "^2.4.0" invariant "^2.2.1" -section-iterator@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/section-iterator/-/section-iterator-2.0.0.tgz#bf444d7afeeb94ad43c39ad2fb26151627ccba2a" +scss-tokenizer@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" + dependencies: + js-base64 "^2.1.8" + source-map "^0.4.2" seed-random@2.2.0: version "2.2.0" @@ -5966,10 +5949,6 @@ shallow-clone@^0.1.2: lazy-cache "^0.2.3" mixin-object "^2.0.1" -shallow-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shallow-equal/-/shallow-equal-1.0.0.tgz#508d1838b3de590ab8757b011b25e430900945f7" - shallowequal@0.2.x, shallowequal@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-0.2.2.tgz#1e32fd5bcab6ad688a4812cb0cc04efc75c7014e"