Commit Graph

3849 Commits

Author SHA1 Message Date
renovate[bot]
4da4abc375
Update dependency rc-tooltip to v6.1.1 (#76635)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-17 17:29:47 +01:00
renovate[bot]
99c2467db3
Update dependency rc-slider to v10.3.1 (#76622)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-17 09:34:06 +01:00
Adela Almasan
19795f9c07
Legend: Better support for 2 y-axis (#76092) 2023-10-16 20:54:16 -06:00
renovate[bot]
6d5e728d99
Update dependency rc-drawer to v6.5.2 (#76621)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-16 16:13:27 +01:00
Alex Khomenko
406888d9aa
Stack: Filter out undefined children (#76617) 2023-10-16 15:25:09 +03:00
renovate[bot]
db4b7a38b2
Update dependency rc-cascader to v3.18.1 (#76616)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-16 12:52:09 +01:00
Alex Khomenko
bc98f3d139
Grafana UI: Add Avatar component (#76429)
* Grafana/UI: Add Avatar component

* Use the new component

* Add docs and story

* Update type check

* Codeformat
2023-10-16 13:59:54 +03:00
Joao Silva
a8b9c04cc1
Grafana/UI: Extend all layout component props to include html attributes (#76560) 2023-10-16 10:37:09 +01:00
Alex Khomenko
8bf0143908
Grafana/ui: Wrap Box in forwardRef (#76555)
* Grafana/ui: Wrap Box in forwardRef

* Destructure props
2023-10-13 17:40:25 +03:00
Jack Westbrook
d282b7a6f8
Grafana UI: Make it possible to bundle package with plugins (#76191)
* moved themecontext to data

* chore(grafana-ui): re-export ThemeContext from grafana/data for backwards compatibility

* Moved icon bundling to core.

* feat(plugins): share react-inlinesvg with plugins for grafana/ui bundling

* chore(codeowners): add generate-icon-bundle.js to file

* chore(storybook): update path to iconBundle file for theme

* feat(plugins): share i18n dependency via systemjs

* Make sure that icon bundle is initialized for tests.

* Removed comment.

* added tests for icon root.

* Removing the need of having an init variable.

* feat(grafana-ui): add icon svgs to bundle for projects that don't rely on grafana

---------

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2023-10-13 14:11:41 +02:00
Domas
239bda207e
SparklineCell: Display absolute value (#76125) 2023-10-13 11:00:42 +03:00
ismail simsek
5e918f031c
Chore: Update @testing-library/dom to v9.3.3 (#76364)
* Update @testing-library/dom to v9.3.3

* Update @testing-library/dom to v9.3.3 in packages

* Update yarn.lock

* Revert "Update yarn.lock"

This reverts commit 0cc2084273.

* point all @testing-library/dom packages to v9.3.3
2023-10-12 11:14:30 +02:00
Josh Hunt
46b0066644
Chore: Improve EchoSrv logging (#76385)
* Chore: Allow frontend logging to be logged via localStorage

* improve echo srv logging
2023-10-12 09:00:32 +00:00
Fabrizio
6e0825d6e2
Plugins: Fix sorting issue with expandable rows (#75553) 2023-10-12 10:39:23 +02:00
Leon Sorokin
94c15e4926
TooltipPlugin2: Raise parent grid item z-index when pinned (#76379) 2023-10-12 01:19:22 -05:00
Leon Sorokin
65a94d9e75
ZoomPlugin: No-op on modifier keys (#76398) 2023-10-12 00:05:21 -05:00
renovate[bot]
755805597b
Update dependency core-js to v3.33.0 (#76341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-11 14:40:04 +01:00
Erik Sundell
d17f25d8c4
Chore: Remove reference to storybook 6 (#75815)
remove reference to storybook 6
2023-10-11 14:09:10 +02:00
Torkel Ödegaard
555acdf180
Drawer: Add 1 grid unit padding between title and tabs (#76249) 2023-10-11 13:18:24 +02:00
renovate[bot]
0ec15de905
Update dependency @types/node to v18.18.4 (#76336)
* Update dependency @types/node to v18.18.4

* fix types

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-10-11 11:08:41 +00:00
renovate[bot]
58ba11ecbd
Update dependency @testing-library/user-event to v14.5.1 (#76329)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-11 11:18:30 +01:00
renovate[bot]
a0ab1e4fd7
Update dependency @rollup/plugin-node-resolve to v15.2.3 (#76261)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-11 10:18:54 +01:00
Tobias Skarhed
473f8899c5
Chore: Add @deprecation to LegacyForms (#76055)
* Add deprecations to LegacyForms

* Fix whitespace

* Update FormField.tsx

* Update Input.tsx

* Update IndicatorsContainer.tsx

* Update NoOptionsMessage.tsx

* Update Select.tsx

* Update Switch.tsx

* Update SecretFormField.tsx

* Update index.ts

* Update Select.tsx

* Add deprecated Links

* Update deprecation comments

* Update deprecation message
2023-10-10 16:21:11 +02:00
Torkel Ödegaard
8757f2baab
Tabs: Fixes focus style (#76246) 2023-10-10 12:42:20 +02:00
renovate[bot]
aee8c91ac8
Update dependency @monaco-editor/react to v4.6.0 (#76219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-10 11:15:46 +01:00
Josh Hunt
07266aa983
Rewrite old useStyles2 pattern to use new pattern (#76136)
* Rewrite old useStyles2 pattern to use new pattern

* fix lint from used imports
2023-10-09 10:49:08 +01:00
Abhi Shandilya
c238b1f02f
Grafana-ui: Improve a11y for radio button group cursor (#75933)
a11y: radio button group cursor
2023-10-09 10:08:08 +02:00
Leon Sorokin
e2dcd5184a
Dashboard: Overflow and z-index adjustments (#75597) 2023-10-05 22:46:15 -05:00
Nathan Marrs
b94d06bfa7
Bar Gauge: Add field name placement option (#75932)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-10-05 09:31:03 -07:00
Adela Almasan
586c78a636
Toggletip: Add support to programmatically close it (#75846) 2023-10-05 08:58:49 +02:00
Oscar Kilhed
40cdb30336
Transformations: Add support for dashboard variable in limit, sort by, filter by value, heatmap and histogram (#75372)
* variables for filterforvalue

* use datalinkinput for basic matcher

* fix user select issue

* heatmap transformation variable interpolation

* clean code

* interpolate sort by

* add options interpolation in histogram transformation

* interpolation for limit

* Add suggestions UI to Filter by data value Transformation

Co-authored-by: oscarkilhed <oscar.kilhed@grafana.com>

* add validation for number/variable fields

* Add variables to add field from calculation

* Add validator to limit transformation

* Refactor validator

* Refactor suggestionInput styles

* Add variable support in heatmap calculate options to be in sync with tranform

* Refactor SuggestionsInput

* Fix histogram, limit and filter by value matchers

* clean up weird state ref

* Only interpolate when the feature toggle is set

* Add feature toggle to ui

* Fix number of variable test

* Fix issue with characters typed after opening suggestions still remains after selecting a suggestion

* Clean up from review

* Add more tests for numberOrVariableValidator

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>
2023-10-04 17:28:46 +03:00
Josh Hunt
3b51acf44d
GrafanaUI: Pass rest of Text props through to element (#75948)
* spread rest of html props to text element

* prevent style prop from overriding styles
2023-10-04 13:49:49 +00:00
Marcus Andersson
cfd3e552df
Chore: Resolved circular dependency warnings in grafana/ui (#74908)
* Resolved circual dependency warnings.

* Fixed circular dependencies only 21 more to go.

* Fixed the align issue.

* fix betterer merge error

* Update betterer results

* Fix failing test

* reverted changes for Table

* removed utils updates.

* fixed some more 'easy' circular dependencies issues.

* Fixed incorrect imports.

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2023-10-04 09:05:58 +02:00
Nathan Marrs
35b48066ca
Stat: Disable wide layout (#75556)
update stat panel to disable the wide layout
2023-10-03 11:10:51 -07:00
Nathan Marrs
a417402c77
Legend: Fix desc sort so NaNs are not display first (#75685)
do not put NaNs as first in legend desc sort

Co-authored-by: Simon Podlipsky <simon@podlipsky.net>
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-10-03 08:50:57 -07:00
Jack Westbrook
cc590599de
Chore: Bump storybook 7.4.5 (#75652)
* Wip

* chore(grafana-ui): bump storybook to 7.4.5 and patch blocks
2023-10-03 16:35:29 +02:00
Adela Almasan
0c404a4cd9
Tooltip: VizTooltip components (#75794) 2023-10-03 06:10:22 +03:00
Ashley Harrison
e9555d727a
Drawer: remove wrapping div preventing Drawer from scrolling properly (#75823)
remove wrapping div prevent drawer from scrolling properly
2023-10-02 16:01:28 +01:00
Oscar Kilhed
f39ed59662
Table: Make sparkline cell respect no value option. (#75750)
Make sparkline respect no value option
2023-09-29 09:54:16 -05:00
David Harris
fd1032eeaa
docs: update storybook links (#75741) 2023-09-29 14:03:42 +01:00
Polina Boneva
d55c12c48e
Dashboard: Smaller padding on Save dashboards sidebar when smaller screen (#75354)
* content not scrollable

* not able to scroll the whole drawer

* reduce space inbetween drawer's title, subtitle, and tabs
2023-09-29 14:21:31 +03:00
Leon Sorokin
27aa1c466a
Tooltips: Add TooltipPlugin2 (#75708) 2023-09-28 20:53:26 -05:00
Adela Almasan
d66d577c33
DataLinkButton: Remove icon for target _self (#75598) 2023-09-28 12:28:10 -05:00
Torkel Ödegaard
6cede32535
Theme: Add borderTransparent to ThemeRichColor use in Box borders (#75407)
* Theme: Add borderTransparent to ThemeRichColor use in Box borders

* Fix spelling

* Update comment

* Update DashboardEmpty

* Restore prev value
2023-09-27 20:19:46 +02:00
Leon Sorokin
6fc4e93f73
Dashboard: Reduce scope of contain: strict to TextPanel (#75499) 2023-09-27 13:14:35 -05:00
Ashley Harrison
b374912937
Drawer: Make content scroll by default (#75287)
* deprecate scrollableContent prop and make it the default behaviour

* restore prop behaviour, just make it default to true

* Update packages/grafana-ui/src/components/Drawer/Drawer.tsx

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>

---------

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
2023-09-27 13:31:57 +01:00
Gilles De Mey
d24dc7f156
GrafanaUI: Adds overflow wrapper to loading bar (#75451) 2023-09-27 08:09:52 +02:00
Leon Sorokin
32ed3e8009
TimeSeries: Implement ad hoc y-zoom via Shift-drag (#75408) 2023-09-26 18:12:45 -05:00
Dominik Prokop
918f11d81e
Revert "Dashboard: Reduce scope of contain: strict to TextPanel (#75466)
Revert "Dashboard: Reduce scope of `contain: strict` to TextPanel (#75329)"

This reverts commit ade0de5ae9.
2023-09-26 08:51:26 -07:00
Laura Fernández
611df82259
Grafana UI: create Grid component in the unstable package (#75299) 2023-09-26 14:02:50 +02:00