|
@@ -25,9 +25,11 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
variants: variantsProps = [],
|
|
variants: variantsProps = [],
|
|
|
isWorkWithHighlightButton,
|
|
isWorkWithHighlightButton,
|
|
|
isWorkWithNextShowSystem,
|
|
isWorkWithNextShowSystem,
|
|
|
|
|
+ customBorderColor,
|
|
|
customTheme,
|
|
customTheme,
|
|
|
- color,
|
|
|
|
|
|
|
+ customColor,
|
|
|
style,
|
|
style,
|
|
|
|
|
+ color,
|
|
|
...props
|
|
...props
|
|
|
}) => {
|
|
}) => {
|
|
|
const {
|
|
const {
|
|
@@ -138,14 +140,14 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
|
|
|
|
|
const allProps = {
|
|
const allProps = {
|
|
|
...props,
|
|
...props,
|
|
|
- customBorderColor: currentVariant && currentVariant.borderColor ?
|
|
|
|
|
|
|
+ customBorderColor: customBorderColor || (currentVariant && currentVariant.borderColor ?
|
|
|
currentVariant.borderColor
|
|
currentVariant.borderColor
|
|
|
:
|
|
:
|
|
|
- color,
|
|
|
|
|
- customColor: currentVariant && currentVariant.backgroundColor ?
|
|
|
|
|
|
|
+ color),
|
|
|
|
|
+ customColor: customColor || (currentVariant && currentVariant.backgroundColor ?
|
|
|
currentVariant.backgroundColor
|
|
currentVariant.backgroundColor
|
|
|
:
|
|
:
|
|
|
- color,
|
|
|
|
|
|
|
+ color),
|
|
|
icon: ({
|
|
icon: ({
|
|
|
color,
|
|
color,
|
|
|
size
|
|
size
|