mirror of
https://github.com/apache/superset.git
synced 2026-05-29 11:45:16 +00:00
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:
@@ -21,7 +21,7 @@ import { connect } from 'react-redux';
|
||||
import { Redirect } from 'react-router-dom';
|
||||
import Mousetrap from 'mousetrap';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { css, styled } from '@apache-superset/core/ui';
|
||||
import { css, styled } from '@apache-superset/core/theme';
|
||||
import { throttle } from 'lodash';
|
||||
import {
|
||||
LOCALSTORAGE_MAX_USAGE_KB,
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
import { cloneElement, ReactElement, useCallback } from 'react';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { css, SupersetTheme } from '@apache-superset/core/ui';
|
||||
import { css, SupersetTheme } from '@apache-superset/core/theme';
|
||||
import copyTextToClipboard from 'src/utils/copy';
|
||||
import { Tooltip } from '@superset-ui/core/components';
|
||||
import withToasts from '../MessageToasts/withToasts';
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import { ReactNode, useState, useCallback, useEffect, useMemo } from 'react';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { styled, css, SupersetTheme } from '@apache-superset/core/ui';
|
||||
import { styled, css, SupersetTheme } from '@apache-superset/core/theme';
|
||||
import { Icons, Button, InfoTooltip } from '@superset-ui/core/components';
|
||||
import { FilterValue } from 'react-table';
|
||||
import Table, {
|
||||
|
||||
@@ -38,14 +38,9 @@ import {
|
||||
getExtensionsRegistry,
|
||||
} from '@superset-ui/core';
|
||||
import { GenericDataType } from '@apache-superset/core/api/core';
|
||||
import {
|
||||
css,
|
||||
styled,
|
||||
themeObject,
|
||||
Alert,
|
||||
useTheme,
|
||||
t,
|
||||
} from '@apache-superset/core/ui';
|
||||
import { t } from '@apache-superset/core/translation';
|
||||
import { css, styled, themeObject, useTheme } from '@apache-superset/core/theme';
|
||||
import { Alert } from '@apache-superset/core/components';
|
||||
import Tabs from '@superset-ui/core/components/Tabs';
|
||||
import WarningIconWithTooltip from '@superset-ui/core/components/WarningIconWithTooltip';
|
||||
import TableSelector from 'src/components/TableSelector';
|
||||
|
||||
@@ -46,7 +46,8 @@ import {
|
||||
} from '@superset-ui/core/components';
|
||||
import { t, logging } from '@apache-superset/core';
|
||||
import { DatasourceType, isDefined, SupersetClient } from '@superset-ui/core';
|
||||
import { css, styled, useTheme, Alert } from '@apache-superset/core/ui';
|
||||
import { css, styled, useTheme } from '@apache-superset/core/theme';
|
||||
import { Alert } from '@apache-superset/core/components';
|
||||
import { Radio } from '@superset-ui/core/components/Radio';
|
||||
import { GRID_COLUMN_COUNT } from 'src/dashboard/util/constants';
|
||||
import { canUserEditDashboard } from 'src/dashboard/util/permissionUtils';
|
||||
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
type QueryFormColumn,
|
||||
} from '@superset-ui/core';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { styled, useTheme } from '@apache-superset/core/ui';
|
||||
import { styled, useTheme } from '@apache-superset/core/theme';
|
||||
import SelectControl from 'src/explore/components/controls/SelectControl';
|
||||
import TextControl from 'src/explore/components/controls/TextControl';
|
||||
import CheckboxControl from 'src/explore/components/controls/CheckboxControl';
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
Payload,
|
||||
QueryFormData,
|
||||
} from '@superset-ui/core';
|
||||
import { SupersetTheme, useTheme } from '@apache-superset/core/ui';
|
||||
import { SupersetTheme, useTheme } from '@apache-superset/core/theme';
|
||||
import {
|
||||
AsyncEsmComponent,
|
||||
List,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { useCallback, type ReactNode } from 'react';
|
||||
import { styled, css } from '@apache-superset/core/ui';
|
||||
import { styled, css } from '@apache-superset/core/theme';
|
||||
import { Checkbox } from '@superset-ui/core/components';
|
||||
import ControlHeader from '../ControlHeader';
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import React, { useCallback } from 'react';
|
||||
import { IconTooltip, List } from '@superset-ui/core/components';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { useTheme, type SupersetTheme } from '@apache-superset/core/ui';
|
||||
import { useTheme, type SupersetTheme } from '@apache-superset/core/theme';
|
||||
import {
|
||||
SortableContainer,
|
||||
SortableHandle,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
import React, { useState, useCallback } from 'react';
|
||||
import { DatasourceType, SupersetClient, Datasource } from '@superset-ui/core';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { css, styled, useTheme } from '@apache-superset/core/ui';
|
||||
import { css, styled, useTheme } from '@apache-superset/core/theme';
|
||||
import { getTemporalColumns } from '@superset-ui/chart-controls';
|
||||
import { getUrlParam } from 'src/utils/urlUtils';
|
||||
import {
|
||||
|
||||
@@ -18,13 +18,12 @@
|
||||
*/
|
||||
import type React from 'react';
|
||||
import { useRef, useState, useCallback, useEffect } from 'react';
|
||||
import type { SupersetTheme } from '@apache-superset/core/ui';
|
||||
import type { SupersetTheme } from '@apache-superset/core/theme';
|
||||
import { Button, Icons, Select } from '@superset-ui/core/components';
|
||||
import { ErrorBoundary } from 'src/components';
|
||||
import { SupersetClient } from '@superset-ui/core';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { styled } from '@apache-superset/core/ui';
|
||||
|
||||
import { styled } from '@apache-superset/core/theme';
|
||||
import Tabs from '@superset-ui/core/components/Tabs';
|
||||
import AdhocFilter from 'src/explore/components/controls/FilterControl/AdhocFilter';
|
||||
import AdhocFilterEditPopoverSimpleTabContent from 'src/explore/components/controls/FilterControl/AdhocFilterEditPopoverSimpleTabContent';
|
||||
|
||||
@@ -21,7 +21,7 @@ import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { isDefined, ensureIsArray, DatasourceType } from '@superset-ui/core';
|
||||
import { t } from '@apache-superset/core';
|
||||
import type { editors } from '@apache-superset/core';
|
||||
import { styled } from '@apache-superset/core/ui';
|
||||
import { styled } from '@apache-superset/core/theme';
|
||||
import Tabs from '@superset-ui/core/components/Tabs';
|
||||
import {
|
||||
Button,
|
||||
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
} from 'react';
|
||||
import { isEqualArray } from '@superset-ui/core';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { css } from '@apache-superset/core/ui';
|
||||
import { css } from '@apache-superset/core/theme';
|
||||
import { Select } from '@superset-ui/core/components';
|
||||
import ControlHeader from 'src/explore/components/ControlHeader';
|
||||
|
||||
|
||||
@@ -26,8 +26,7 @@ import {
|
||||
ModalTrigger,
|
||||
} from '@superset-ui/core/components';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { useTheme } from '@apache-superset/core/ui';
|
||||
|
||||
import { useTheme } from '@apache-superset/core/theme';
|
||||
import 'ace-builds/src-min-noconflict/mode-handlebars';
|
||||
|
||||
import ControlHeader from 'src/explore/components/ControlHeader';
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
Select,
|
||||
} from '@superset-ui/core/components';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { styled } from '@apache-superset/core/ui';
|
||||
import { styled } from '@apache-superset/core/theme';
|
||||
import { Icons } from '@superset-ui/core/components/Icons';
|
||||
import BoundsControl from '../BoundsControl';
|
||||
import CheckboxControl from '../CheckboxControl';
|
||||
|
||||
@@ -37,7 +37,7 @@ import {
|
||||
isFeatureEnabled,
|
||||
FeatureFlag,
|
||||
} from '@superset-ui/core';
|
||||
import { styled, css, SupersetTheme, useTheme } from '@apache-superset/core/ui';
|
||||
import { styled, css, SupersetTheme, useTheme } from '@apache-superset/core/theme';
|
||||
import {
|
||||
Tag,
|
||||
Tooltip,
|
||||
|
||||
@@ -20,7 +20,7 @@ import { ReactNode, useState, useEffect, useCallback, useMemo } from 'react';
|
||||
import rison from 'rison';
|
||||
import { t } from '@apache-superset/core';
|
||||
import { isDefined, JsonResponse, SupersetClient } from '@superset-ui/core';
|
||||
import { styled, useTheme } from '@apache-superset/core/ui';
|
||||
import { styled, useTheme } from '@apache-superset/core/theme';
|
||||
import { getUrlParam } from 'src/utils/urlUtils';
|
||||
import { FilterPlugins, URL_PARAMS } from 'src/constants';
|
||||
import { Link, useHistory } from 'react-router-dom';
|
||||
|
||||
Reference in New Issue
Block a user