Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
chore: clean up React warnings during test (#3450)
Igor Dykhtaa656370e7aad
diff --git a/src/components/src/annotations/annotation-panel.tsx b/src/components/src/annotations/annotation-panel.tsxindex 497c9015d..e3e45d676 100644--- a/src/components/src/annotations/annotation-panel.tsx+++ b/src/components/src/annotations/annotation-panel.tsx@@ -403,7 +403,7 @@ export default function AnnotationManagerFactory(): React.FC<any> {return (<StyledAnnotationItemWrapper key={annotation.id}><StyledAnnotationItemHeader- active={isSelected}+ $active={isSelected}onClick={() => handleSelectAnnotation(annotation.id)}><HeaderLabelSection>diff --git a/src/components/src/bottom-widget.tsx b/src/components/src/bottom-widget.tsxindex db23757e0..bf50e933c 100644--- a/src/components/src/bottom-widget.tsx+++ b/src/components/src/bottom-widget.tsx@@ -19,7 +19,7 @@ import {BaseComponentProps} from './types';const maxWidth = 1080;export type BottomWidgetContainerProps = BaseComponentProps & {- hasPadding?: boolean;+ $hasPadding?: boolean;width: number;ref: React.ForwardedRef<HTMLDivElement>;};@@ -30,10 +30,10 @@ const BottomWidgetContainer: IStyledComponent<> = styled.div<BottomWidgetContainerProps>`display: flex;flex-direction: column;- padding-top: ${props => (props.hasPadding ? props.theme.bottomWidgetPaddingTop : 0)}px;- padding-right: ${props => (props.hasPadding ? props.theme.bottomWidgetPaddingRight : 0)}px;- padding-bottom: ${props => (props.hasPadding ? props.theme.bottomWidgetPaddingBottom : 0)}px;- padding-left: ${props => (props.hasPadding ? props.theme.bottomWidgetPaddingLeft : 0)}px;+ padding-top: ${props => (props.$hasPadding ? props.theme.bottomWidgetPaddingTop : 0)}px;+ padding-right: ${props => (props.$hasPadding ? props.theme.bottomWidgetPaddingRight : 0)}px;+ padding-bottom: ${props => (props.$hasPadding ? props.theme.bottomWidgetPaddingBottom : 0)}px;+ padding-left: ${props => (props.$hasPadding ? props.theme.bottomWidgetPaddingLeft : 0)}px;pointer-events: none !important; /* prevent padding from blocking input */& > * {/* all children should allow input */@@ -169,7 +169,7 @@ export default function BottomWidgetFactory(width={Math.min(maxWidth, enlargedFilterWidth)}style={{marginRight: spaceForLegendWidth}}className="bottom-widget--container"- hasPadding={showAnimationControl || showTimeWidget}+ $hasPadding={showAnimationControl || showTimeWidget}ref={rootRef}>{!isTimelineLinkedWithFilter ? (diff --git a/src/components/src/common/color-legend.tsx b/src/components/src/common/color-legend.tsxindex 7a479d148..eb9160b56 100644--- a/src/components/src/common/color-legend.tsx+++ b/src/components/src/common/color-legend.tsx@@ -29,7 +29,7 @@ const inputCss = css`pointer-events: none;}`;-const StyledLegend = styled.div<{disableEdit: boolean; isExpanded?: boolean}>`+const StyledLegend = styled.div<{$disableEdit: boolean; isExpanded?: boolean}>`${props => props.theme.sidePanelScrollBar};${props => (props.isExpanded ? '' : `max-height: 156px;`)};overflow-y: auto;@@ -39,7 +39,7 @@ const StyledLegend = styled.div<{disableEdit: boolean; isExpanded?: boolean}>`grid-row-gap: ${GAP}px;padding: 2px 0;- ${props => (props.disableEdit ? inputCss : '')}+ ${props => (props.$disableEdit ? inputCss : '')}`;const StyledLegendRow = styled.div`@@ -366,7 +366,7 @@ function ColorLegendFactory(LegendRow: ReturnType<typeof LegendRowFactory>) {return (<StyledLegendclassName="styled-color-legend"- disableEdit={disableEdit}+ $disableEdit={disableEdit}isExpanded={isExpanded}>{legends.map((legend, i) => (diff --git a/src/components/src/common/data-table/index.tsx b/src/components/src/common/data-table/index.tsxindex bf658cadb..46b22b4f8 100644--- a/src/components/src/common/data-table/index.tsx+++ b/src/components/src/common/data-table/index.tsx@@ -44,7 +44,7 @@ const unpinnedClassList = {};type ContainerProps = {- hasCustomScrollBarStyle?: boolean;+ $hasCustomScrollBarStyle?: boolean;};export const Container = styled.div<ContainerProps>`@@ -59,7 +59,7 @@ export const Container = styled.div<ContainerProps>`outline: 0;}.body-grid {- ${props => props.hasCustomScrollBarStyle && props.theme.modalScrollBar}+ ${props => props.$hasCustomScrollBarStyle && props.theme.modalScrollBar}}.cell {@@ -615,7 +615,7 @@ function DataTableFactory(<ContainerclassName="data-table-container"ref={this.root}- hasCustomScrollBarStyle={hasCustomScrollBarStyle}+ $hasCustomScrollBarStyle={hasCustomScrollBarStyle}>{Object.keys(cellSizeCache).length ? (<>diff --git a/src/components/src/common/file-uploader/file-upload.tsx b/src/components/src/common/file-uploader/file-upload.tsxindex 36a44874a..9523581be 100644--- a/src/components/src/common/file-uploader/file-upload.tsx+++ b/src/components/src/common/file-uploader/file-upload.tsx@@ -38,15 +38,15 @@ export const WarningMsg = styled.span``;interface StyledFileDropProps {- dragOver?: boolean;+ $dragOver?: boolean;}const StyledFileDrop = styled.div<StyledFileDropProps>`background-color: white;border-radius: 4px;- border-style: ${props => (props.dragOver ? 'solid' : 'dashed')};+ border-style: ${props => (props.$dragOver ? 'solid' : 'dashed')};border-width: 1px;- border-color: ${props => (props.dragOver ? props.theme.textColorLT : props.theme.subtextColorLT)};+ border-color: ${props => (props.$dragOver ? props.theme.textColorLT : props.theme.subtextColorLT)};text-align: center;width: 100%;padding: 48px 8px 0;@@ -241,7 +241,7 @@ function FileUploadFactory() {{fileUploadInfoText}</Markdown></StyledUploadMessage>- <StyledFileDrop dragOver={dragOver}>+ <StyledFileDrop $dragOver={dragOver}><StyledFileTypeFow className="file-type-row">{fileExtensions.map(ext => (<FileType key={ext} ext={ext} height="50px" fontSize="9px" />diff --git a/src/components/src/common/icons/anchor_window.tsx b/src/components/src/common/icons/anchor_window.tsxindex db6f76eb9..b81af2a85 100644--- a/src/components/src/common/icons/anchor_window.tsx+++ b/src/components/src/common/icons/anchor_window.tsx@@ -4,8 +4,13 @@import React from 'react';import Base, {BaseProps} from './base';-const AnchorWindow = (props: Partial<BaseProps>) => (- <Base {...props}>+const AnchorWindow = ({+ height = '16px',+ viewBox = '0 0 16 16',+ predefinedClassName = 'data-ex-icons-anchorwindow',+ ...props+}: Partial<BaseProps>) => (+ <Base height={height} viewBox={viewBox} predefinedClassName={predefinedClassName} {...props}><pathfillRule="evenodd"clipRule="evenodd"@@ -24,9 +29,4 @@ const AnchorWindow = (props: Partial<BaseProps>) => (</Base>);-AnchorWindow.defaultProps = {- height: '16px',- viewBox: '0 0 16 16',- predefinedClassName: 'data-ex-icons-anchorwindow'-};export default AnchorWindow;diff --git a/src/components/src/common/item-selector/chickleted-input.tsx b/src/components/src/common/item-selector/chickleted-input.tsxindex b1bf82063..860815755 100644--- a/src/components/src/common/item-selector/chickleted-input.tsx+++ b/src/components/src/common/item-selector/chickleted-input.tsx@@ -16,7 +16,7 @@ import {BaseComponentProps} from '../../types';import {shouldForwardProp} from '../styled-components';export type ChickletButtonProps = BaseComponentProps & {- inputTheme?: string;+ $inputTheme?: string;ref?: (node: HTMLElement | null) => void;};@@ -25,10 +25,10 @@ export const ChickletButton: IStyledComponent<ChickletButtonProps> = styled.div<ChickletButtonProps>`background: ${props =>- props.inputTheme === 'light' ? props.theme.chickletBgdLT : props.theme.chickletBgd};+ props.$inputTheme === 'light' ? props.theme.chickletBgdLT : props.theme.chickletBgd};border-radius: 1px;color: ${props =>- props.inputTheme === 'light' ? props.theme.textColorLT : props.theme.textColor};+ props.$inputTheme === 'light' ? props.theme.textColorLT : props.theme.textColor};font-size: 11px;line-height: 20px;margin: 4px 10px 4px 3px;@@ -39,7 +39,7 @@ export const ChickletButton: IStyledComponent<&:hover {color: ${props =>- props.inputTheme === 'light' ? props.theme.textColorHlLT : props.theme.textColorHl};+ props.$inputTheme === 'light' ? props.theme.textColorHlLT : props.theme.textColorHl};}`;@@ -63,7 +63,7 @@ interface ChickletProps {}const Chicklet = ({disabled, name, remove, inputTheme}: ChickletProps) => (- <ChickletButton inputTheme={inputTheme}>+ <ChickletButton $inputTheme={inputTheme}><ChickletTag>{name}</ChickletTag><Delete height="16px" onClick={disabled ? undefined : remove} /></ChickletButton>diff --git a/src/components/src/common/styled-components.tsx b/src/components/src/common/styled-components.tsxindex 6011772dd..a66fa5146 100644--- a/src/components/src/common/styled-components.tsx+++ b/src/components/src/common/styled-components.tsx@@ -340,7 +340,7 @@ export const InlineInput = styled(Input)``;export interface StyledPanelHeaderProps {- active?: boolean;+ $active?: boolean;labelRCGColorValues?: RGBColor | null;warning?: boolean;isValid?: boolean;@@ -348,7 +348,7 @@ export interface StyledPanelHeaderProps {export const StyledPanelHeader = styled.div.withConfig({shouldForwardProp})<StyledPanelHeaderProps>`background-color: ${props =>- props.active ? props.theme.panelBackgroundHover : props.theme.panelBackground};+ props.$active ? props.theme.panelBackgroundHover : props.theme.panelBackground};border-left: 3px solidrgb(${props => (props.labelRCGColorValues ? props.labelRCGColorValues.join(',') : 'transparent')}diff --git a/src/components/src/common/time-range-slider-time-title.tsx b/src/components/src/common/time-range-slider-time-title.tsxindex 78836791e..41b17a0a2 100644--- a/src/components/src/common/time-range-slider-time-title.tsx+++ b/src/components/src/common/time-range-slider-time-title.tsx@@ -8,7 +8,7 @@ import {datetimeFormatter} from '@kepler.gl/utils';import {BaseComponentProps} from '../types';export type TimeValueWrapperProps = BaseComponentProps & {- isEnlarged?: boolean;+ $isEnlarged?: boolean;};const TimeValueWrapper: IStyledComponent<@@ -18,7 +18,7 @@ const TimeValueWrapper: IStyledComponent<display: flex;align-items: center;font-size: ${props => props.theme.timeTitleFontSize};- justify-content: ${props => (props.isEnlarged ? 'center' : 'space-between')};+ justify-content: ${props => (props.$isEnlarged ? 'center' : 'space-between')};.horizontal-bar {padding: 0 12px;@@ -27,9 +27,9 @@ const TimeValueWrapper: IStyledComponent<.time-value {display: flex;- flex-direction: ${props => (props.isEnlarged ? 'row' : 'column')};+ flex-direction: ${props => (props.$isEnlarged ? 'row' : 'column')};align-items: flex-start;- max-width: ${props => (!props.isEnlarged ? '40%' : 'auto')};+ max-width: ${props => (!props.$isEnlarged ? '40%' : 'auto')};span {color: ${props => props.theme.textColor};}@@ -57,7 +57,7 @@ interface TimeTitleProps {function TimeRangeSliderTimeTitleFactory() {const TimeTitle = ({value, isEnlarged, timezone, timeFormat}: TimeTitleProps) => (- <TimeValueWrapper isEnlarged={isEnlarged} className="time-range-slider__time-title">+ <TimeValueWrapper $isEnlarged={isEnlarged} className="time-range-slider__time-title"><TimeValue key={0} value={datetimeFormatter(timezone)(timeFormat)(value[0])} />{isEnlarged ? (<div className="horizontal-bar">diff --git a/src/components/src/common/time-range-slider.tsx b/src/components/src/common/time-range-slider.tsxindex 41f79f315..2b44becbd 100644--- a/src/components/src/common/time-range-slider.tsx+++ b/src/components/src/common/time-range-slider.tsx@@ -48,7 +48,7 @@ type TimeRangeSliderProps = {};export type StyledSliderContainerProps = BaseComponentProps & {- isEnlarged?: boolean;+ $isEnlarged?: boolean;};const StyledSliderContainer: IStyledComponent<@@ -59,7 +59,7 @@ const StyledSliderContainer: IStyledComponent<display: flex;flex-direction: row;justify-content: space-between;- padding-left: ${props => (props.isEnlarged ? 24 : 0)}px;+ padding-left: ${props => (props.$isEnlarged ? 24 : 0)}px;.timeline-container .kg-slider {display: none;@@ -149,7 +149,7 @@ export default function TimeRangeSliderFactory(/></div>) : null}- <StyledSliderContainer className="time-range-slider__container" isEnlarged={isEnlarged}>+ <StyledSliderContainer className="time-range-slider__container" $isEnlarged={isEnlarged}>{!isMinified ? (<div className="timeline-container" style={style}><RangeSliderdiff --git a/src/components/src/common/toolbar-item.tsx b/src/components/src/common/toolbar-item.tsxindex f4daaf018..df51fb68d 100644--- a/src/components/src/common/toolbar-item.tsx+++ b/src/components/src/common/toolbar-item.tsx@@ -8,24 +8,24 @@ import {FormattedMessage} from '@kepler.gl/localization';import {ComponentType, MouseEvent} from 'react';interface StyledDivProps {- active?: boolean;+ $active?: boolean;}const StyledDiv = styled.div.attrs(props => ({className: classnames('toolbar-item', props.className)}))<StyledDivProps>`color: ${props =>- props.active ? props.theme.toolbarItemIconHover : props.theme.panelHeaderIcon};+ props.$active ? props.theme.toolbarItemIconHover : props.theme.panelHeaderIcon};padding: 12px 20px;align-items: center;display: flex;flex-direction: column;width: 110px;justify-content: space-between;- border: 1px solid ${props => (props.active ? props.theme.toolbarItemBorderHover : 'transparent')};+ border: 1px solid ${props => (props.$active ? props.theme.toolbarItemBorderHover : 'transparent')};border-radius: ${props => props.theme.toolbarItemBorderRaddius};background-color: ${props =>- props.active ? props.theme.toolbarItemBgdHover : props.theme.dropdownListBgd};+ props.$active ? props.theme.toolbarItemBgdHover : props.theme.dropdownListBgd};.toolbar-item__svg-container {margin-bottom: 4px;@@ -60,7 +60,7 @@ const ToolbarItem = React.memo((props: ToolbarItemProps) => (<StyledDivid={props.id}className={props.className}- active={props.active}+ $active={props.active}onClick={e => {e.stopPropagation();e.preventDefault();diff --git a/src/components/src/common/toolbar.tsx b/src/components/src/common/toolbar.tsxindex c4ea87b81..8efed0494 100644--- a/src/components/src/common/toolbar.tsx+++ b/src/components/src/common/toolbar.tsx@@ -5,7 +5,7 @@ import styled, {IStyledComponent} from 'styled-components';import {BaseComponentProps} from '../types';export type ToolbarProps = {- show?: boolean;+ $show?: boolean;} & BaseComponentProps;const Toolbar: IStyledComponent<'web', ToolbarProps> = styled.div<ToolbarProps>`@@ -15,10 +15,10 @@ const Toolbar: IStyledComponent<'web', ToolbarProps> = styled.div<ToolbarProps>`box-shadow: ${props => props.theme.dropdownListShadow};font-size: 12px;transition: ${props => props.theme.transitionSlow};- margin-top: ${props => (props.show ? '6px' : '20px')};- opacity: ${props => (props.show ? 1 : 0)};+ margin-top: ${props => (props.$show ? '6px' : '20px')};+ opacity: ${props => (props.$show ? 1 : 0)};transform: translateX(calc(-50% + 20px));- pointer-events: ${props => (props.show ? 'all' : 'none')};+ pointer-events: ${props => (props.$show ? 'all' : 'none')};z-index: 1000;.panel-header-dropdown__inner {diff --git a/src/components/src/effects/effect-configurator.tsx b/src/components/src/effects/effect-configurator.tsxindex de58527af..6e02e92c3 100644--- a/src/components/src/effects/effect-configurator.tsx+++ b/src/components/src/effects/effect-configurator.tsx@@ -62,13 +62,13 @@ const StyledVerticalSeparator = styled.div``;type StyledWrapperProps = {- marginBottom?: number;+ $marginBottom?: number;};const StyledWrapper = styled.div<StyledWrapperProps>`display: flex;justify-content: space-between;align-items: center;- margin-bottom: ${props => props.marginBottom ?? 9}px;+ margin-bottom: ${props => props.$marginBottom ?? 9}px;`;const StyledConfigSection = styled.div`@@ -292,10 +292,10 @@ export default function EffectConfiguratorFactory(<StyledVerticalSeparator />- <StyledWrapper marginBottom={0}>+ <StyledWrapper $marginBottom={0}><SectionTitle>{'Shadow'}</SectionTitle></StyledWrapper>- <StyledWrapper marginBottom={16}>+ <StyledWrapper $marginBottom={16}><CompactColorPickerlabel={'Color'}color={colorPickerProps[2].colorSets[0].selectedColor}@@ -310,10 +310,10 @@ export default function EffectConfiguratorFactory(</StyledConfigSection></StyledWrapper>- <StyledWrapper marginBottom={0}>+ <StyledWrapper $marginBottom={0}><SectionTitle>{'Ambient light'}</SectionTitle></StyledWrapper>- <StyledWrapper marginBottom={16}>+ <StyledWrapper $marginBottom={16}><CompactColorPickerlabel={'Color'}color={colorPickerProps[0].colorSets[0].selectedColor}@@ -328,10 +328,10 @@ export default function EffectConfiguratorFactory(</StyledConfigSection></StyledWrapper>- <StyledWrapper marginBottom={0}>+ <StyledWrapper $marginBottom={0}><SectionTitle>{'Sun light'}</SectionTitle></StyledWrapper>- <StyledWrapper marginBottom={0}>+ <StyledWrapper $marginBottom={0}><CompactColorPickerlabel={'Color'}color={colorPickerProps[1].colorSets[0].selectedColor}diff --git a/src/components/src/effects/effect-manager.tsx b/src/components/src/effects/effect-manager.tsxindex b028c52ec..a476e3669 100644--- a/src/components/src/effects/effect-manager.tsx+++ b/src/components/src/effects/effect-manager.tsx@@ -75,11 +75,11 @@ const StyledEffectPanelHeader = styled.div``;type StyledEffectPanelContentProps = {- extended?: boolean;+ $extended?: boolean;};const StyledEffectPanelContent = styled.div<StyledEffectPanelContentProps>`${props => props.theme.sidePanelScrollBar};- padding: ${props => (props.extended ? '32px' : '10px 0px 10px 0px')};+ padding: ${props => (props.$extended ? '32px' : '10px 0px 10px 0px')};overflow: overlay;display: flex;flex-direction: column;@@ -154,7 +154,7 @@ function EffectManagerFactory(</SidePanelTitle></StyledEffectPanelHeader>- <StyledEffectPanelContent extended={typeSelectorOpened && effects.length === 0}>+ <StyledEffectPanelContent $extended={typeSelectorOpened && effects.length === 0}><EffectListeffects={effects}effectOrder={effectOrder}diff --git a/src/components/src/effects/effect-panel-header.tsx b/src/components/src/effects/effect-panel-header.tsxindex 34d99da5d..4ee743718 100644--- a/src/components/src/effects/effect-panel-header.tsx+++ b/src/components/src/effects/effect-panel-header.tsx@@ -160,7 +160,7 @@ const HeaderActionSection = styled.div``;// Hiden actions only show up on hover-type StyledPanelHeaderHiddenActionsProps = {isConfigActive: boolean};+type StyledPanelHeaderHiddenActionsProps = {$isConfigActive: boolean};const StyledPanelHeaderHiddenActions = styled.div.attrs({className: 'effect-panel__header__actions__hidden'})<StyledPanelHeaderHiddenActionsProps>`@@ -169,7 +169,7 @@ const StyledPanelHeaderHiddenActions = styled.div.attrs({align-items: center;transition: opacity 0.4s ease, background-color 0.4s ease;background-color: ${props =>- props.isConfigActive ? props.theme.panelBackgroundHover : props.theme.panelBackground};+ props.$isConfigActive ? props.theme.panelBackgroundHover : props.theme.panelBackground};&:hover {opacity: 1;@@ -249,7 +249,7 @@ export function EffectPanelHeaderActionSectionFactory(return (<HeaderActionSection className="effect-panel__header__actions">- <StyledPanelHeaderHiddenActions isConfigActive={isConfigActive}>+ <StyledPanelHeaderHiddenActions $isConfigActive={isConfigActive}>{effectActionItems.filter((item: ActionItem) => Boolean(item.isHidden)).map((item: ActionItem) => (@@ -340,7 +340,7 @@ function EffectPanelHeaderFactory(className={classnames('effect-panel__header', {'sort--handle': !isConfigActive})}- active={isConfigActive}+ $active={isConfigActive}onClick={onToggleEnableConfig}>{isDragNDropEnabled ? (diff --git a/src/components/src/effects/effect-panel.tsx b/src/components/src/effects/effect-panel.tsxindex 7abb70b8f..d601cdfa2 100644--- a/src/components/src/effects/effect-panel.tsx+++ b/src/components/src/effects/effect-panel.tsx@@ -26,7 +26,7 @@ export type EffectPanelProps = {};export type PanelWrapperProps = {- active: boolean;+ $active: boolean;};const PanelWrapper = styled.div<PanelWrapperProps>`@@ -93,7 +93,7 @@ function EffectPanelFactory(return (<PanelWrapper- active={false}+ $active={false}className={classnames('effect-panel', className)}data-testid={dataTestIds.effectPanel}style={style}diff --git a/src/components/src/effects/effect-time-configurator.tsx b/src/components/src/effects/effect-time-configurator.tsxindex e7e4b6dd6..4b297c6c6 100644--- a/src/components/src/effects/effect-time-configurator.tsx+++ b/src/components/src/effects/effect-time-configurator.tsx@@ -39,12 +39,12 @@ export type EffectTimeConfiguratorProps = {}) => void;};-type StyledWrapperProps = {disabled?: boolean; marginBottom?: number};+type StyledWrapperProps = {disabled?: boolean; $marginBottom?: number};const StyledWrapper = styled.div<StyledWrapperProps>`display: flex;justify-content: space-between;align-items: center;- margin-bottom: ${props => props.marginBottom ?? 9}px;+ margin-bottom: ${props => props.$marginBottom ?? 9}px;${props => (props.hidden ? 'display: none;' : '')}`;@@ -283,7 +283,7 @@ export default function EffectTimeConfiguratorFactory(return (<StyledEffectTimeConfigurator>- <StyledWrapper marginBottom={16}>+ <StyledWrapper $marginBottom={16}><StyledRadiotype="radio"checked={timeMode === LIGHT_AND_SHADOW_EFFECT_TIME_MODES.pick}@@ -305,7 +305,7 @@ export default function EffectTimeConfiguratorFactory(/></SliderWrapper>- <StyledWrapper hidden={disableDateTimePick} marginBottom={2}>+ <StyledWrapper hidden={disableDateTimePick} $marginBottom={2}><TextBlock width="32px" /><TextBlock width="110px"><FormattedMessage id={'effectManager.date'} />@@ -315,7 +315,7 @@ export default function EffectTimeConfiguratorFactory(</TextBlock></StyledWrapper>- <StyledWrapper hidden={disableDateTimePick} marginBottom={16}>+ <StyledWrapper hidden={disableDateTimePick} $marginBottom={16}><StyledButton onClick={setCurrentDateTime} data-for="pick-time-button" data-tip><LocationMarker height="16px" /><Tooltip id="pick-time-button" effect="solid" place="top" delayShow={500}>@@ -343,13 +343,13 @@ export default function EffectTimeConfiguratorFactory(</WithIconWrapper></StyledWrapper>- <StyledWrapper hidden={disableDateTimePick} marginBottom={2}>+ <StyledWrapper hidden={disableDateTimePick} $marginBottom={2}><TextBlock><FormattedMessage id={'effectManager.timezone'} /></TextBlock></StyledWrapper>- <StyledWrapper hidden={disableDateTimePick} marginBottom={24}>+ <StyledWrapper hidden={disableDateTimePick} $marginBottom={24}><WithIconWrapper width={'100%'}><TimezoneSelector selected={timezone} onSelect={setTimezone} /><StyledExtraIcon>@@ -358,7 +358,7 @@ export default function EffectTimeConfiguratorFactory(</WithIconWrapper></StyledWrapper>- <StyledWrapper marginBottom={16}>+ <StyledWrapper $marginBottom={16}><StyledRadiotype="radio"checked={timeMode === LIGHT_AND_SHADOW_EFFECT_TIME_MODES.current}@@ -372,7 +372,7 @@ export default function EffectTimeConfiguratorFactory(/></StyledWrapper>- <StyledWrapper marginBottom={16}>+ <StyledWrapper $marginBottom={16}><StyledRadiotype="radio"checked={timeMode === LIGHT_AND_SHADOW_EFFECT_TIME_MODES.animation}diff --git a/src/components/src/map-container.tsx b/src/components/src/map-container.tsxindex 394a17d91..ce66a7329 100644--- a/src/components/src/map-container.tsx+++ b/src/components/src/map-container.tsx@@ -166,11 +166,11 @@ const MapLibLogo = ({baseMapLibraryConfig}: MapLibLogoProps) => ();interface StyledDroppableProps {- isOver: boolean;+ $isOver: boolean;}const StyledDroppable = styled.div<StyledDroppableProps>`- background-color: ${props => (props.isOver ? props.theme.dndOverBackgroundColor : 'none')};+ background-color: ${props => (props.$isOver ? props.theme.dndOverBackgroundColor : 'none')};width: 100%;height: 100%;position: absolute;@@ -188,7 +188,7 @@ export const Droppable = ({containerId}) => {disabled: !containerId});- return <StyledDroppable ref={setNodeRef} isOver={isOver} />;+ return <StyledDroppable ref={setNodeRef} $isOver={isOver} />;};interface StyledDatasetAttributionsContainerProps {diff --git a/src/components/src/map/locale-panel.tsx b/src/components/src/map/locale-panel.tsxindex 7bb54c3c1..d00cd5cf8 100644--- a/src/components/src/map/locale-panel.tsx+++ b/src/components/src/map/locale-panel.tsx@@ -50,7 +50,7 @@ function LocalePanelFactory(return (<div className="locale-panel-controls" style={{position: 'relative'}}>{isActive ? (- <MapControlToolbar show={isActive}>+ <MapControlToolbar $show={isActive}>{availableLocales.map(locale => (<ToolbarItemkey={locale}diff --git a/src/components/src/map/map-draw-panel.tsx b/src/components/src/map/map-draw-panel.tsxindex 92c09f781..032f9fd34 100644--- a/src/components/src/map/map-draw-panel.tsx+++ b/src/components/src/map/map-draw-panel.tsx@@ -58,7 +58,7 @@ function MapDrawPanelFactory(return (<div className="map-draw-controls" style={{position: 'relative'}}>{isActive ? (- <MapControlToolbar show={isActive}>+ <MapControlToolbar $show={isActive}><ToolbarItemclassName="edit-feature"onClick={() => onSetEditorMode(EDITOR_MODES.EDIT)}diff --git a/src/components/src/map/map-legend-panel.tsx b/src/components/src/map/map-legend-panel.tsxindex 6e7405705..3295a0671 100644--- a/src/components/src/map/map-legend-panel.tsx+++ b/src/components/src/map/map-legend-panel.tsx@@ -38,8 +38,8 @@ const DRAG_RESIZE_ID = 'map-legend-resize';const DRAG_MOVE_ID = 'map-legend-move';const StyledDraggableLegendContent = styled.div<{- contentHeight?: number;- maxContentHeight?: number;+ $contentHeight?: number;+ $maxContentHeight?: number;}>`position: absolute;outline: none;@@ -71,8 +71,8 @@ const StyledDraggableLegendContent = styled.div<{}.map-control__panel-content {max-height: ${props =>- props.maxContentHeight ? `${props.maxContentHeight}px` : 'calc(100vh - 100px)'};- ${props => (props.contentHeight ? `height: ${props.contentHeight}px;` : '')};+ props.$maxContentHeight ? `${props.$maxContentHeight}px` : 'calc(100vh - 100px)'};+ ${props => (props.$contentHeight ? `height: ${props.$contentHeight}px;` : '')};}border-radius: 4px;z-index: 2;@@ -120,10 +120,10 @@ const StyledResizeHandle = styled.div`cursor: ns-resize;`;-const StyledFixedLegendContent = styled.div<{contentHeight?: number}>`+const StyledFixedLegendContent = styled.div<{$contentHeight?: number}>`.map-control__panel-content {max-height: calc(100vh - 100px);- ${props => (props.contentHeight ? `height: ${props.contentHeight}px;` : '')};+ ${props => (props.$contentHeight ? `height: ${props.$contentHeight}px;` : '')};}/* Hide scrollbars in export to avoid OS default styling differences */@@ -161,8 +161,8 @@ const DraggableLegendContent = forwardRef((props: DraggableLegendContentProps, rref={refs}className={classnames('draggable-legend', {'is-dragging': isDragging})}style={{...positionStyles, transform: CSS.Translate.toString(draggableMove.transform)}}- contentHeight={contentHeight}- maxContentHeight={maxContentHeight}+ $contentHeight={contentHeight}+ $maxContentHeight={maxContentHeight}{...draggableMove.attributes}>{children}@@ -292,7 +292,7 @@ const ImageExportLegend = withTheme(({settings, isSidePanelShown, theme, childreref={legendContentRef}style={{...positionStyles, position: 'absolute'}}>- <StyledFixedLegendContent contentHeight={contentHeight}>+ <StyledFixedLegendContent $contentHeight={contentHeight}>{children}</StyledFixedLegendContent></div>,diff --git a/src/components/src/map/map-legend.tsx b/src/components/src/map/map-legend.tsxindex acaccc69e..4b4b2d372 100644--- a/src/components/src/map/map-legend.tsx+++ b/src/components/src/map/map-legend.tsx@@ -18,7 +18,7 @@ import PanelHeaderActionFactory from '../side-panel/panel-header-action';interface StyledMapControlLegendProps {width?: number;- last?: boolean;+ $last?: boolean;}export const StyledMapControlLegend = styled.div<StyledMapControlLegendProps>`@@ -28,7 +28,7 @@ export const StyledMapControlLegend = styled.div<StyledMapControlLegendProps>`font-family: ${props => props.theme.fontFamily};border-bottom-color: ${props => props.theme.panelBorderColor};border-bottom-style: solid;- border-bottom-width: ${props => (props.last ? 0 : '1px')};+ border-bottom-width: ${props => (props.$last ? 0 : '1px')};width: ${props => props.width}px;box-sizing: border-box;@@ -79,13 +79,13 @@ const StyledLegendHeaderRow = styled.div`justify-content: space-between;`;-const StyledVisibilityToggle = styled.div<{isVisible: boolean}>`+const StyledVisibilityToggle = styled.div<{$isVisible: boolean}>`cursor: pointer;- color: ${props => (props.isVisible ? props.theme.textColor : props.theme.subtextColor)};+ color: ${props => (props.$isVisible ? props.theme.textColor : props.theme.subtextColor)};display: flex;align-items: center;margin-left: 8px;- opacity: ${props => (props.isVisible ? 1 : 0.5)};+ opacity: ${props => (props.$isVisible ? 1 : 0.5)};&:hover {color: ${props => props.theme.textColorHl};@@ -349,7 +349,7 @@ export function LayerLegendHeaderFactory() {{layer.config.label}</div>{onToggleLayerVisibility ? (- <StyledVisibilityToggle isVisible={isVisible} onClick={onToggle}>+ <StyledVisibilityToggle $isVisible={isVisible} onClick={onToggle}>{isVisible ? <EyeSeen height="12px" /> : <EyeUnseen height="12px" />}</StyledVisibilityToggle>) : null}@@ -497,7 +497,7 @@ function MapLegendFactory(return (<StyledMapControlLegendclassName="legend--layer"- last={index === layers.length - 1}+ $last={index === layers.length - 1}key={index}width={containerW}>diff --git a/src/components/src/modals/data-table-modal.tsx b/src/components/src/modals/data-table-modal.tsxindex 9d599bbb1..e0cf39fb2 100644--- a/src/components/src/modals/data-table-modal.tsx+++ b/src/components/src/modals/data-table-modal.tsx@@ -45,7 +45,7 @@ const DatasetCatalog = styled.div``;export type DatasetModalTabProps = BaseComponentProps & {- active?: boolean;+ $active?: boolean;};export const DatasetModalTab: IStyledComponent<@@ -53,7 +53,7 @@ export const DatasetModalTab: IStyledComponent<DatasetModalTabProps> = styled.div<DatasetModalTabProps>`align-items: center;- border-bottom: 3px solid ${props => (props.active ? 'black' : 'transparent')};+ border-bottom: 3px solid ${props => (props.$active ? 'black' : 'transparent')};cursor: pointer;display: flex;height: 35px;@@ -93,7 +93,7 @@ const DatasetTabsUnmemoized: React.FC<DatasetTabsUnmemoizedProps> = ({{Object.values(datasets).map((dataset: KeplerTable) => (<DatasetModalTabclassName="dataset-modal-tab"- active={dataset === activeDataset}+ $active={dataset === activeDataset}key={dataset.id}onClick={() => showDatasetTable(dataset.id)}>diff --git a/src/components/src/plot-container.tsx b/src/components/src/plot-container.tsxindex 773d85ecc..2c4e7e018 100644--- a/src/components/src/plot-container.tsx+++ b/src/components/src/plot-container.tsx@@ -65,7 +65,7 @@ PlotContainerFactory.deps = [MapContainerFactory, MapsLayoutFactory];// Remove mapbox logo in exported map, because it contains non-ascii characters// Remove split viewport UI controls from exported images when the legend is showninterface StyledPlotContainerProps {- legendZoom?: number;+ $legendZoom?: number;}const StyledPlotContainer = styled.div<StyledPlotContainerProps>`@@ -85,7 +85,7 @@ const StyledPlotContainer = styled.div<StyledPlotContainerProps>`/* Apply zoom to legend panel based on export height */.map-control-panel {- zoom: ${props => props.legendZoom || 1} !important;+ zoom: ${props => props.$legendZoom || 1} !important;}`;@@ -400,7 +400,7 @@ export default function PlotContainerFactory();return (- <StyledPlotContainer className="export-map-instance" legendZoom={legendZoom}>+ <StyledPlotContainer className="export-map-instance" $legendZoom={legendZoom}><StyledMapContainer ref={plottingAreaRef} width={size.width} height={size.height}><MapViewStateContextProvider mapState={newMapState}>{mapContainers}diff --git a/src/components/src/side-panel/layer-panel/layer-panel-header.tsx b/src/components/src/side-panel/layer-panel/layer-panel-header.tsxindex 4e729d1e8..b42ea945b 100644--- a/src/components/src/side-panel/layer-panel/layer-panel-header.tsx+++ b/src/components/src/side-panel/layer-panel/layer-panel-header.tsx@@ -417,7 +417,7 @@ function LayerPanelHeaderFactory(})}isValid={isValid}warning={warning}- active={isConfigActive}+ $active={isConfigActive}labelRCGColorValues={labelRCGColorValues}onClick={onToggleEnableConfig}>diff --git a/src/components/src/side-panel/panel-header.tsx b/src/components/src/side-panel/panel-header.tsxindex 130ed8767..738c41325 100644--- a/src/components/src/side-panel/panel-header.tsx+++ b/src/components/src/side-panel/panel-header.tsx@@ -176,7 +176,7 @@ export const PanelHeaderDropdownFactory = () => {const PanelHeaderDropdown: React.FC<PanelHeaderDropdownProps> = ({items, show, onClose, id}) => {const ref = useOnClickOutside<HTMLDivElement>(onClose);return (- <StyledToolbar show={show} className={`${id}-dropdown`}>+ <StyledToolbar $show={show} className={`${id}-dropdown`}>{show ? (<StyledPanelDropdown type="dark" ref={ref} className="panel-header-dropdown__inner">{items.map(item => (diff --git a/src/components/src/side-panel/panel-tab.tsx b/src/components/src/side-panel/panel-tab.tsxindex 6c7a7b808..56235aa9f 100644--- a/src/components/src/side-panel/panel-tab.tsx+++ b/src/components/src/side-panel/panel-tab.tsx@@ -8,7 +8,7 @@ import {FormattedMessage} from '@kepler.gl/localization';import {BaseProps} from '../common/icons';type StyledPanelTabProps = {- active?: boolean;+ $active?: boolean;};export type PanelItem = {@@ -30,8 +30,8 @@ export const StyledPanelTab = styled.div.attrs({border-bottom-style: solid;border-bottom-width: 2px;border-bottom-color: ${props =>- props.active ? props.theme.panelToggleBorderColor : 'transparent'};- color: ${props => (props.active ? props.theme.subtextColorActive : props.theme.panelTabColor)};+ props.$active ? props.theme.panelToggleBorderColor : 'transparent'};+ color: ${props => (props.$active ? props.theme.subtextColorActive : props.theme.panelTabColor)};display: flex;justify-content: center;margin-right: ${props => props.theme.panelToggleMarginRight}px;@@ -46,7 +46,7 @@ export const StyledPanelTab = styled.div.attrs({export function PanelTabFactory() {const PanelTab: React.FC<PanelTabProps> = ({isActive, onClick, panel}) => (- <StyledPanelTab data-tip data-for={`${panel.id}-nav`} active={isActive} onClick={onClick}>+ <StyledPanelTab data-tip data-for={`${panel.id}-nav`} $active={isActive} onClick={onClick}><panel.iconComponent height="20px" /><Tooltip id={`${panel.id}-nav`} effect="solid" delayShow={500} place="bottom"><span>diff --git a/test/browser/components/common/column-stats-chart-test.js b/test/browser/components/common/column-stats-chart-test.jsindex 12043be68..55e2200e4 100644--- a/test/browser/components/common/column-stats-chart-test.js+++ b/test/browser/components/common/column-stats-chart-test.js@@ -320,7 +320,7 @@ test('Components -> ColorBreaksPanel -> ColorBreaksDisplay', t => {const InitialProps1 = {currentBreaks: [],- onEdit: false+ onEdit: null};t.doesNotThrow(() => {@@ -334,7 +334,7 @@ test('Components -> ColorBreaksPanel -> ColorBreaksDisplay', t => {const {colorBreaks} = ColumnStatsChartProps();const InitialProps = {currentBreaks: colorBreaks,- onEdit: true+ onEdit: () => {}};t.doesNotThrow(() => {diff --git a/test/browser/components/modals/data-table-modal-test.js b/test/browser/components/modals/data-table-modal-test.jsindex 65267d8c5..65bfd645f 100644--- a/test/browser/components/modals/data-table-modal-test.js+++ b/test/browser/components/modals/data-table-modal-test.js@@ -276,16 +276,16 @@ test('Components -> DataTableModal -> click tab', t => {);t.equal(wrapper.find(DatasetModalTab).length, 2, 'should render 2 DatasetModalTab');- t.equal(wrapper.find(DatasetModalTab).at(0).prop('active'), true, 'prop 0 active should be true');+ t.equal(wrapper.find(DatasetModalTab).at(0).prop('$active'), true, 'prop 0 active should be true');t.equal(wrapper.find(DatasetModalTab).at(0).find('.dataset-name').text(),'hello.csv','dataset name should be correct');t.equal(- wrapper.find(DatasetModalTab).at(1).prop('active'),+ wrapper.find(DatasetModalTab).at(1).prop('$active'),false,- 'prop 1 active should be true'+ 'prop 1 active should be false');t.equal(wrapper.find(DatasetModalTab).at(1).find('.dataset-name').text(),