diff --git a/packages/grafana-ui/src/components/ColorPicker/SpectrumPicker.tsx b/packages/grafana-ui/src/components/ColorPicker/SpectrumPicker.tsx index 6974eed142e..a225db09046 100644 --- a/packages/grafana-ui/src/components/ColorPicker/SpectrumPicker.tsx +++ b/packages/grafana-ui/src/components/ColorPicker/SpectrumPicker.tsx @@ -1,7 +1,7 @@ import React from 'react'; import _ from 'lodash'; import $ from 'jquery'; -import 'vendor/spectrum'; +import '../../vendor/spectrum'; export interface Props { color: string; diff --git a/public/sass/components/_color_picker.scss b/packages/grafana-ui/src/components/ColorPicker/_ColorPicker.scss similarity index 100% rename from public/sass/components/_color_picker.scss rename to packages/grafana-ui/src/components/ColorPicker/_ColorPicker.scss diff --git a/packages/grafana-ui/src/components/index.scss b/packages/grafana-ui/src/components/index.scss index 5a9263844a4..b894cf73c1a 100644 --- a/packages/grafana-ui/src/components/index.scss +++ b/packages/grafana-ui/src/components/index.scss @@ -5,3 +5,4 @@ @import 'Select/Select'; @import 'PanelOptionsGroup/PanelOptionsGroup'; @import 'PanelOptionsGrid/PanelOptionsGrid'; +@import 'ColorPicker/ColorPicker'; diff --git a/packages/grafana-ui/src/index.scss b/packages/grafana-ui/src/index.scss index 841415620d6..74fdcde3072 100644 --- a/packages/grafana-ui/src/index.scss +++ b/packages/grafana-ui/src/index.scss @@ -1 +1,3 @@ +@import 'vendor/spectrum'; @import 'components/index'; + diff --git a/public/vendor/css/spectrum.css b/packages/grafana-ui/src/vendor/spectrum.css similarity index 100% rename from public/vendor/css/spectrum.css rename to packages/grafana-ui/src/vendor/spectrum.css diff --git a/public/vendor/spectrum.js b/packages/grafana-ui/src/vendor/spectrum.js similarity index 100% rename from public/vendor/spectrum.js rename to packages/grafana-ui/src/vendor/spectrum.js diff --git a/public/sass/_grafana.scss b/public/sass/_grafana.scss index b8498f18b19..93fd26b7ca8 100644 --- a/public/sass/_grafana.scss +++ b/public/sass/_grafana.scss @@ -3,7 +3,6 @@ // VENDOR @import '../vendor/css/timepicker.css'; -@import '../vendor/css/spectrum.css'; @import '../vendor/css/rc-cascader.scss'; // MIXINS @@ -76,7 +75,6 @@ @import 'components/typeahead'; @import 'components/modals'; @import 'components/dropdown'; -@import 'components/color_picker'; @import 'components/footer'; @import 'components/infobox'; @import 'components/shortcuts';