From c656f02f7c7bb673400235e494d3673b3d354997 Mon Sep 17 00:00:00 2001 From: Stef Williams Date: Wed, 13 Nov 2024 15:35:08 -0500 Subject: [PATCH] feat: add area chart options to theme builder --- .../components/theme-builder/color-picker.tsx | 4 +- .../theme-builder/color-scale-options.tsx | 2 +- .../theme-builder/config-mapper.tsx | 161 +++++++++++------- demo/ts/components/theme-builder/index.tsx | 19 ++- .../theme-builder/options-config.ts | 78 ++++++--- demo/ts/components/theme-builder/slider.tsx | 9 +- demo/ts/components/theme-builder/utils.ts | 1 + 7 files changed, 191 insertions(+), 83 deletions(-) diff --git a/demo/ts/components/theme-builder/color-picker.tsx b/demo/ts/components/theme-builder/color-picker.tsx index ba1609469..39dd8c58d 100644 --- a/demo/ts/components/theme-builder/color-picker.tsx +++ b/demo/ts/components/theme-builder/color-picker.tsx @@ -8,6 +8,7 @@ type ColorPickerProps = { id: string; onColorChange: (color: string) => void; showColorName?: boolean; + className?: string; }; const ColorPicker = ({ @@ -16,6 +17,7 @@ const ColorPicker = ({ id, onColorChange, showColorName = false, + className, }: ColorPickerProps) => { const [isPickerOpen, setIsPickerOpen] = React.useState(false); @@ -26,7 +28,7 @@ const ColorPicker = ({ }; return ( -
+
{label && (