fix(imports): rewrite stale @apache-superset/core/ui to current subpaths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-04-17 10:56:29 -07:00
committed by Claude
parent 2a133d2d89
commit 4db31aea1f
15 changed files with 19 additions and 21 deletions

View File

@@ -17,7 +17,7 @@
* under the License.
*/
import { ReactNode, useCallback, useContext, useEffect, useRef } from 'react';
import { t } from '@apache-superset/core/ui';
import { t } from '@apache-superset/core/translation';
import { JsonObject } from '@superset-ui/core';
import { Loading } from '@superset-ui/core/components';

View File

@@ -19,7 +19,8 @@
import { Fragment, useCallback, useRef, useState } from 'react';
import classNames from 'classnames';
import { addAlpha } from '@superset-ui/core';
import { css, styled, t, useTheme } from '@apache-superset/core/ui';
import { t } from '@apache-superset/core/translation';
import { css, styled, useTheme } from '@apache-superset/core/theme';
import { EmptyState } from '@superset-ui/core/components';
import { Icons } from '@superset-ui/core/components/Icons';
import { navigateTo } from 'src/utils/navigationUtils';

View File

@@ -23,7 +23,7 @@ import { FixedSizeList as List } from 'react-window';
// @ts-expect-error
import { createFilter } from 'react-search-input';
import { t } from '@apache-superset/core';
import { styled, css, useTheme } from '@apache-superset/core/ui';
import { styled, css, useTheme } from '@apache-superset/core/theme';
import {
Button,
Checkbox,

View File

@@ -32,8 +32,7 @@ import {
ConnectDropTarget,
} from 'react-dnd';
import cx from 'classnames';
import { css, styled } from '@apache-superset/core/ui';
import { css, styled } from '@apache-superset/core/theme';
import { dragConfig, dropConfig } from './dragDroppableConfig';
import type { DragDroppableProps as BaseDragDroppableProps } from './dragDroppableConfig';
import { DROP_FORBIDDEN } from '../../util/getDropPosition';

View File

@@ -17,7 +17,7 @@
* under the License.
*/
import { useRef, useCallback } from 'react';
import { styled } from '@apache-superset/core/ui';
import { styled } from '@apache-superset/core/theme';
import {
ModalTrigger,
ModalTriggerRef,

View File

@@ -25,8 +25,8 @@ import {
} from 'react';
import cx from 'classnames';
import { Button, Input } from '@superset-ui/core/components';
import { css, styled, t } from '@apache-superset/core/ui';
import { t } from '@apache-superset/core/translation';
import { css, styled } from '@apache-superset/core/theme';
import buildFilterScopeTreeEntry from 'src/dashboard/util/buildFilterScopeTreeEntry';
import getFilterScopeNodesTree from 'src/dashboard/util/getFilterScopeNodesTree';
import getFilterFieldNodesTree from 'src/dashboard/util/getFilterFieldNodesTree';

View File

@@ -18,8 +18,7 @@
*/
import { useCallback, memo } from 'react';
import { css, styled } from '@apache-superset/core/ui';
import { css, styled } from '@apache-superset/core/theme';
import { Draggable } from '../../dnd/DragDroppable';
import HoverMenu from '../../menu/HoverMenu';
import DeleteComponentButton from '../../DeleteComponentButton';

View File

@@ -18,8 +18,7 @@
*/
import { useState, useCallback, memo } from 'react';
import cx from 'classnames';
import { css, styled } from '@apache-superset/core/ui';
import { css, styled } from '@apache-superset/core/theme';
import PopoverDropdown from '@superset-ui/core/components/PopoverDropdown';
import { EditableTitle } from '@superset-ui/core/components';
import { Draggable } from 'src/dashboard/components/dnd/DragDroppable';

View File

@@ -23,7 +23,8 @@ import type { JsonObject } from '@superset-ui/core';
import type { ResizeStartCallback, ResizeCallback } from 're-resizable';
import { ErrorBoundary } from 'src/components';
import { t, css, styled } from '@apache-superset/core/ui';
import { t } from '@apache-superset/core/translation';
import { css, styled } from '@apache-superset/core/theme';
import { SafeMarkdown } from '@superset-ui/core/components';
import { EditorHost } from 'src/core/editors';
import { Logger, LOG_ACTIONS_RENDER_CHART } from 'src/logger/LogUtils';

View File

@@ -18,7 +18,7 @@
*/
import { memo } from 'react';
import cx from 'classnames';
import { css, styled } from '@apache-superset/core/ui';
import { css, styled } from '@apache-superset/core/theme';
import { DragDroppable } from 'src/dashboard/components/dnd/DragDroppable';
import type { ConnectDragSource } from 'react-dnd';
import { NEW_COMPONENTS_SOURCE_ID } from 'src/dashboard/util/constants';

View File

@@ -18,8 +18,7 @@
*/
import cx from 'classnames';
import { t } from '@apache-superset/core';
import { css, styled } from '@apache-superset/core/ui';
import { css, styled } from '@apache-superset/core/theme';
import backgroundStyleOptions from 'src/dashboard/util/backgroundStyleOptions';
import PopoverDropdown, {
OptionProps,

View File

@@ -18,7 +18,7 @@
*/
import { RefObject, ReactNode, useCallback, memo } from 'react';
import { styled } from '@apache-superset/core/ui';
import { styled } from '@apache-superset/core/theme';
import cx from 'classnames';
interface HoverMenuProps {

View File

@@ -27,8 +27,7 @@ import {
} from 'react';
import cx from 'classnames';
import { addAlpha } from '@superset-ui/core';
import { css, styled } from '@apache-superset/core/ui';
import { css, styled } from '@apache-superset/core/theme';
type ShouldFocusContainer = HTMLDivElement & {
contains: (event_target: EventTarget & HTMLElement) => boolean;
};

View File

@@ -41,7 +41,7 @@ import {
getClientErrorObject,
isChartCustomization,
} from '@superset-ui/core';
import { styled, SupersetTheme } from '@apache-superset/core/ui';
import { styled, SupersetTheme } from '@apache-superset/core/theme';
import { useTheme } from '@emotion/react';
import { useDispatch, useSelector } from 'react-redux';
import { isEqual, isEqualWith } from 'lodash';

View File

@@ -17,7 +17,8 @@
* under the License.
*/
import { FC, useMemo } from 'react';
import { t, SupersetTheme } from '@apache-superset/core/ui';
import { t } from '@apache-superset/core/translation';
import { SupersetTheme } from '@apache-superset/core/theme';
import { useTheme } from '@emotion/react';
import {
Behavior,