Dominik Prokop
9a08a994f4
Initialize named colors palete lazily
2019-01-28 15:49:59 +01:00
Dominik Prokop
053d4060e8
Fix thresholds default colors not being applied
2019-01-28 15:48:54 +01:00
Dominik Prokop
778ed912b8
Add cursor pointer to color swatches
2019-01-28 09:25:35 +01:00
Dominik Prokop
07b9735263
Do not update color picker popover position on tab change
...
Position update caused tabs to move up and down. This led to confusing user experience, as tabs position was dependent on tab's content.
2019-01-25 14:07:22 +01:00
Dominik Prokop
5f41c5ca5e
Rename deprecation warning helper
2019-01-25 13:30:02 +01:00
Dominik Prokop
3c60f98d13
Implemented tests for ColorPickerPopover and NamedColorsPalette
2019-01-25 13:24:20 +01:00
Dominik Prokop
e75b0a3c70
Fix light theme issues with named colors disabled
2019-01-25 12:13:36 +01:00
Dominik Prokop
f01441f4a7
Stories cleanup
2019-01-25 12:03:42 +01:00
Dominik Prokop
5032c74b79
Use Switch to control y-axis in series color picker
2019-01-24 15:36:28 +01:00
Dominik Prokop
1d3122632f
Move Switch component to grafana-ui
2019-01-24 15:35:50 +01:00
ijin08
ce440b85fc
minor styling changes to gaps, font-size and width
2019-01-24 14:39:52 +01:00
Dominik Prokop
8d8f944a1f
Enable custom picers on color color picker popovers (for y-axis support in legend picker)
2019-01-24 13:18:21 +01:00
Dominik Prokop
40dc29d135
Make series overrides color picker display correctly
2019-01-24 12:01:15 +01:00
Dominik Prokop
1e69a7b8b7
Update story for NamedColorsPalette
2019-01-24 10:37:53 +01:00
Dominik Prokop
d414e463bd
Update imports of NamedColorsPalette
2019-01-24 10:37:34 +01:00
Dominik Prokop
549e0993c4
Restore missing styles
2019-01-24 10:28:48 +01:00
Dominik Prokop
071b1f8478
Fixed issue with color name retrieval not being aware of current theme
2019-01-24 09:56:52 +01:00
Dominik Prokop
d13efb3372
Removed sass import of spectrum.scss
2019-01-23 16:37:23 +01:00
ijin08
7bdbe3ea9d
Merge branch 'named-colors' of github.com:grafana/grafana into named-colors
2019-01-23 16:25:51 +01:00
ijin08
387c40c6d2
replaced palette colors with current palette adjusted for dark and light theme
2019-01-23 16:23:48 +01:00
Dominik Prokop
573e64ef11
Remove spectrum.js vendor dependency from grafana/ui
2019-01-23 16:02:21 +01:00
Dominik Prokop
580b919424
Fix hide timeout for color picker
2019-01-23 15:34:39 +01:00
Dominik Prokop
e5f74fdf93
Rename colorsPalette util to namedColorsPalette
2019-01-23 15:31:41 +01:00
Dominik Prokop
511895c079
Make small swatches react to theme changes
2019-01-23 15:30:33 +01:00
Dominik Prokop
3c7a5bdf7b
Update styles of selected named color swatch
2019-01-23 14:59:43 +01:00
Dominik Prokop
8cce80a851
Implement pointer component for spectrum palette sliders
2019-01-23 14:46:38 +01:00
Dominik Prokop
ab7756ecb4
Make default color picker close on trigger mouse leave
2019-01-23 13:46:13 +01:00
Dominik Prokop
53f52a67e1
Added deprecation warning to old color picker API props. Moved named color support handling to color popovers
2019-01-23 13:29:56 +01:00
Dominik Prokop
5c5265829a
Reduce padding in color picker popover
2019-01-23 09:39:59 +01:00
Dominik Prokop
9fd9bba1f4
Implemented new spectrum palette
2019-01-22 20:00:22 +01:00
Dominik Prokop
ba4b774c96
Stories update for color picker
2019-01-22 13:36:21 +01:00
Dominik Prokop
c3e5737fb8
Make named colors optional in color picker, enable named colors in graph legend series picker
2019-01-22 13:35:57 +01:00
Dominik Prokop
5b63ee4bfb
Storybook - add actions addon
2019-01-22 13:19:47 +01:00
Dominik Prokop
dd8f7aa7a9
CustomScrollbar - expose underlying's react-custom-scrollbars API to allow scroll tracks config.
...
Updated config for Graph legend not to display horizontal scroll track which caused legend being not accessible in ceertain situations (e.g. when native OS scroll overlay disabled)
2019-01-22 10:58:31 +01:00
Dominik Prokop
d86d063900
Make popover hide delay configurable to enable better UX
2019-01-22 09:14:30 +01:00
Dominik Prokop
2b34933554
Stories - fix import
2019-01-22 09:14:30 +01:00
Dominik Prokop
93bb30a561
Enable new color picker in Gauge and Thresholds editor, use ThemeProvider instead of ContextSrv
2019-01-22 09:14:30 +01:00
Dominik Prokop
ed48ecfe1d
Updated table tests to new behavior for colors (values are always rendered as hex/rgb)
2019-01-22 09:11:30 +01:00
Dominik Prokop
597cbb5b9b
Story updates
2019-01-22 09:11:30 +01:00
Dominik Prokop
b560dcac3d
Update grafana/ui exports
2019-01-22 09:11:30 +01:00
Dominik Prokop
a214b5748e
Refactor color picker to remove code duplicartion (introduced colorPickerFactory). Allow popver position update on content change
2019-01-22 09:11:30 +01:00
Dominik Prokop
4f516faa82
Fix lint
2019-01-22 09:11:30 +01:00
Dominik Prokop
25e60565ad
Updated stories
2019-01-22 09:11:30 +01:00
Dominik Prokop
c8ac23f3c1
Rendering arrows for color picker, applying color changes to time series
2019-01-22 09:11:30 +01:00
Dominik Prokop
b02c89c3ba
Stories updates
2019-01-22 09:11:30 +01:00
Dominik Prokop
e33614ade3
Unified color picker API, allowed for color specified for theme selection, updated code to changes in PopperController API
2019-01-22 09:11:30 +01:00
Dominik Prokop
977d53c8c9
Get rid of unused renderContent prop on PopperController
2019-01-22 09:11:30 +01:00
Dominik Prokop
0505add7f6
Enabled knobs for storybook and implemented some stories
2019-01-22 09:11:30 +01:00
Dominik Prokop
3d2955f24f
Lint fix
2019-01-22 09:11:30 +01:00
Dominik Prokop
33fa40a1f3
Migrating color pickers to Popper from drop.js pt1
2019-01-22 09:11:30 +01:00