From 68c48890e4889fca3aef453e8d53d1407265d255 Mon Sep 17 00:00:00 2001 From: severinlandolt Date: Thu, 29 Aug 2024 00:29:51 +0200 Subject: [PATCH] update consolfe info --- src/components/chart-elements/AreaChart/AreaChart.tsx | 2 +- src/components/chart-elements/BarChart/BarChart.tsx | 6 +++++- src/components/chart-elements/DonutChart/DonutChart.tsx | 6 ++++++ src/components/chart-elements/LineChart/LineChart.tsx | 6 ++++++ src/components/icon-elements/Badge/Badge.tsx | 6 ++++++ src/components/input-elements/Button/Button.tsx | 6 ++++++ src/components/input-elements/Calendar/Calendar.tsx | 5 +++++ src/components/input-elements/DatePicker/DatePicker.tsx | 6 ++++++ .../input-elements/DateRangePicker/DateRangePicker.tsx | 6 ++++++ src/components/input-elements/Select/Select.tsx | 6 ++++++ src/components/input-elements/Switch/Switch.tsx | 6 ++++++ src/components/input-elements/Tabs/TabGroup.tsx | 6 +++++- src/components/input-elements/TextInput/TextInput.tsx | 5 +++++ src/components/input-elements/Textarea/Textarea.tsx | 6 +++++- src/components/layout-elements/Accordion/Accordion.tsx | 6 +++++- src/components/layout-elements/Card/Card.tsx | 5 +++++ src/components/layout-elements/Dialog/Dialog.tsx | 5 +++++ src/components/layout-elements/Divider/Divider.tsx | 5 +++++ src/components/list-elements/Table/Table.tsx | 5 +++++ src/components/text-elements/Callout/Callout.tsx | 6 +++++- src/components/util-elements/Tooltip/Tooltip.tsx | 5 +++++ src/components/vis-elements/BarList/BarList.tsx | 5 +++++ 22 files changed, 114 insertions(+), 6 deletions(-) diff --git a/src/components/chart-elements/AreaChart/AreaChart.tsx b/src/components/chart-elements/AreaChart/AreaChart.tsx index 1d0416a39..80450104a 100644 --- a/src/components/chart-elements/AreaChart/AreaChart.tsx +++ b/src/components/chart-elements/AreaChart/AreaChart.tsx @@ -142,7 +142,7 @@ const AreaChart = React.forwardRef((props, ref) if (process.env.NODE_ENV === "development") { console.info( - "The AreaChart is also available as a copy-and-paste component. Visit https://tremor.so/docs/visualizations/area-chart", + "The AreaChart is also available as a copy-and-paste component. Visit https://tremor.so/docs/visualizations/area-chart (This is only shown in development)", ); } return ( diff --git a/src/components/chart-elements/BarChart/BarChart.tsx b/src/components/chart-elements/BarChart/BarChart.tsx index 0f868f88f..af24f0145 100644 --- a/src/components/chart-elements/BarChart/BarChart.tsx +++ b/src/components/chart-elements/BarChart/BarChart.tsx @@ -144,7 +144,11 @@ const BarChart = React.forwardRef((props, ref) => setActiveBar(undefined); } const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue); - + if (process.env.NODE_ENV === "development") { + console.info( + "The BarChart is also available as a copy-and-paste component. Visit https://tremor.so/docs/visualizations/bar-chart (This is only shown in development)", + ); + } return (
diff --git a/src/components/chart-elements/DonutChart/DonutChart.tsx b/src/components/chart-elements/DonutChart/DonutChart.tsx index a3e0de11b..fbb865b0a 100644 --- a/src/components/chart-elements/DonutChart/DonutChart.tsx +++ b/src/components/chart-elements/DonutChart/DonutChart.tsx @@ -124,6 +124,12 @@ const DonutChart = React.forwardRef((props, ref } }, [activeIndex]); + if (process.env.NODE_ENV === "development") { + console.info( + "The DonutChart is also available as a copy-and-paste component. Visit https://tremor.so/docs/visualizations/donut-chart (This is only shown in development)", + ); + } + return (
diff --git a/src/components/chart-elements/LineChart/LineChart.tsx b/src/components/chart-elements/LineChart/LineChart.tsx index d3c0f7cd5..c66cb2b86 100644 --- a/src/components/chart-elements/LineChart/LineChart.tsx +++ b/src/components/chart-elements/LineChart/LineChart.tsx @@ -133,6 +133,12 @@ const LineChart = React.forwardRef((props, ref) setActiveDot(undefined); } + if (process.env.NODE_ENV === "development") { + console.info( + "The LineChart is also available as a copy-and-paste component. Visit https://tremor.so/docs/visualizations/line-chart (This is only shown in development)", + ); + } + return (
diff --git a/src/components/icon-elements/Badge/Badge.tsx b/src/components/icon-elements/Badge/Badge.tsx index bd0e1e52e..6d73e6089 100644 --- a/src/components/icon-elements/Badge/Badge.tsx +++ b/src/components/icon-elements/Badge/Badge.tsx @@ -29,6 +29,12 @@ const Badge = React.forwardRef((props, ref) => { const { tooltipProps, getReferenceProps } = useTooltip(); + if (process.env.NODE_ENV === "development") { + console.info( + "The Badge is also available as a copy-and-paste component. Visit https://tremor.so/docs/ui/badge (This is only shown in development)", + ); + } + return ( ((props, ref) => toggleTransition(loading); }, [loading]); + if (process.env.NODE_ENV === "development") { + console.info( + "The Button is also available as a copy-and-paste component. Visit https://tremor.so/docs/ui/button (This is only shown in development)", + ); + } + return ( // eslint-disable-next-line react/button-has-type