handleMove(e)}
+ // className="rbgcp-advanced-bar-wrap"
style={{ cursor: 'resize', position: 'relative' }}
>
handleMove(e)}
onClick={(e) => handleClick(e)}
tabIndex={0}
@@ -103,6 +106,7 @@ const AdvBar = ({
height="14px"
width={`${squareWidth}px`}
onClick={(e) => handleClick(e)}
+ // className="rbgcp-advanced-bar-canvas"
style={{ position: 'relative', borderRadius: 14 }}
/>
@@ -147,6 +151,7 @@ const AdvancedControls = ({ openAdvanced }: { openAdvanced: boolean }) => {
width: '100%',
transition: 'all 120ms linear',
}}
+ // className="rbgcp-advanced-controls-wrap"
>
{
overflow: 'hidden',
transition: 'height 100ms linear',
}}
+ // className="rbgcp-advanced-controls-inner"
>
Color Guide
@@ -54,6 +57,7 @@ const ComparibleColors = ({
marginTop: 3,
...defaultStyles.rbgcpComparibleLabel,
}}
+ // className="rbgcp-comparible-colors-label"
>
Analogous
@@ -74,6 +78,7 @@ const ComparibleColors = ({
marginTop: 3,
...defaultStyles.rbgcpComparibleLabel,
}}
+ // className="rbgcp-comparible-colors-label"
>
Monochromatic
@@ -84,10 +89,12 @@ const ComparibleColors = ({
display: 'flex',
justifyContent: 'flex-end',
}}
+ // className="rbgcp-comparible-colors-colors"
>
{monochromatic?.map((c: any, key: number) => (
handleClick(c)}
/>
@@ -101,6 +108,7 @@ const ComparibleColors = ({
marginTop: 3,
...defaultStyles.rbgcpComparibleLabel,
}}
+ // className="rbgcp-comparible-colors-label"
>
Triad
@@ -111,10 +119,12 @@ const ComparibleColors = ({
display: 'flex',
justifyContent: 'flex-end',
}}
+ // className="rbgcp-comparible-colors-colors"
>
{triad?.map((c: any, key: number) => (
Tetrad
@@ -142,10 +153,12 @@ const ComparibleColors = ({
display: 'flex',
justifyContent: 'flex-end',
}}
+ // className="rbgcp-comparible-colors-colors"
>
{tetrad?.map((c: any, key: number) => (
handleClick(c)}
/>
diff --git a/src/components/Controls.tsx b/src/components/Controls.tsx
index beff4cf..dbc9f0e 100644
--- a/src/components/Controls.tsx
+++ b/src/components/Controls.tsx
@@ -42,13 +42,15 @@ const ColorTypeBtns = ({
onClick={setSolid}
id="rbgcp-solid-btn"
style={colorTypeBtnStyles(!isGradient, defaultStyles)}
+ // className="rbgcp-control-btn rbgcp-solid-btn"
>
{locales?.CONTROLS?.SOLID}
{locales?.CONTROLS?.GRADIENT}
@@ -85,6 +87,7 @@ const InputTypeDropdown = ({
return (
{
onChange(solidColor)
@@ -190,6 +193,7 @@ const Controls = ({
alignItems: 'center',
justifyContent: 'space-between',
}}
+ // className="rbgcp-controls-wrapper"
>
{!hideEyeDrop && }
- setOpenAdvanced(!openAdvanced)}
- style={{
- display: hideAdvancedSliders ? 'none' : 'flex',
- ...controlBtnStyles(openAdvanced, defaultStyles),
- }}
- >
-
-
- setOpenComparibles(!openComparibles)}
- >
-
-
- setOpenInputType(!openInputType)}
- style={{
- display: hideInputType ? 'none' : 'flex',
- ...controlBtnStyles(openInputType, defaultStyles),
- }}
- >
-
-
-
+ {!hideAdvancedSliders && (
+ setOpenAdvanced(!openAdvanced)}
+ // className="rbgcp-control-btn rbgcp-advanced-btn"
+ style={controlBtnStyles(openAdvanced, defaultStyles)}
+ >
+
+
+ )}
+ {!hideColorGuide && (
+ setOpenComparibles(!openComparibles)}
+ // className="rbgcp-control-btn rbgcp-comparibles-btn"
+ id="rbgcp-comparibles-btn"
+ >
+
+
+ )}
+ {!hideInputType && (
+ setOpenInputType(!openInputType)}
+ // className="rbgcp-control-btn rbgcp-color-model-btn"
+ style={controlBtnStyles(openInputType, defaultStyles)}
+ >
+
+
+
+ )}
)}
diff --git a/src/components/EyeDropper.tsx b/src/components/EyeDropper.tsx
index b2bd11f..40b09e7 100644
--- a/src/components/EyeDropper.tsx
+++ b/src/components/EyeDropper.tsx
@@ -9,7 +9,7 @@ import { usePicker } from '../context.js'
const DropperIcon = ({ color }: { color: string }) => {
const { defaultStyles } = usePicker()
- const col = color || ''
+ const col = color ?? ''
return (