chore(superset-core): move ui to new core (#35308)

This commit is contained in:
Mehmet Salih Yavuz
2025-11-07 19:53:06 +03:00
committed by GitHub
parent 728bc2c632
commit 9546ee37e5
563 changed files with 2436 additions and 2357 deletions

View File

@@ -18,14 +18,12 @@
*/
import { useEffect, useMemo, useState } from 'react';
import {
css,
ensureIsArray,
fetchTimeRange,
getTimeOffset,
styled,
t,
useTheme,
} from '@superset-ui/core';
import { css, styled, useTheme } from '@apache-superset/core/ui';
import { Tooltip } from '@superset-ui/core/components';
import { DEFAULT_DATE_PATTERN } from '@superset-ui/chart-controls';
import { isEmpty } from 'lodash';

View File

@@ -24,10 +24,9 @@ import {
SMART_DATE_VERBOSE_ID,
computeMaxFontSize,
BRAND_COLOR,
styled,
BinaryQueryObjectFilterClause,
useTheme,
} from '@superset-ui/core';
import { styled, useTheme } from '@apache-superset/core/ui';
import Echart from '../components/Echart';
import { BigNumberVizProps } from './types';
import { EventHandlers } from '../types';

View File

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { SupersetTheme } from '@superset-ui/core';
import { SupersetTheme } from '@apache-superset/core/ui';
import type { GaugeSeriesOption } from 'echarts/charts';
export const defaultGaugeSeriesOption = (

View File

@@ -25,13 +25,12 @@ import {
FilterState,
FormulaAnnotationLayer,
IntervalAnnotationLayer,
isThemeDark,
LegendState,
SupersetTheme,
TimeseriesAnnotationLayer,
TimeseriesDataRecord,
ValueFormatter,
} from '@superset-ui/core';
import { SupersetTheme, isThemeDark } from '@apache-superset/core/ui';
import type {
CallbackDataParams,
DefaultStatesMixin,

View File

@@ -29,7 +29,8 @@ import {
} from 'react';
import { useSelector } from 'react-redux';
import { styled, useTheme, mergeReplaceArrays } from '@superset-ui/core';
import { mergeReplaceArrays } from '@superset-ui/core';
import { styled, useTheme } from '@apache-superset/core/ui';
import { use, init, EChartsType, registerLocale } from 'echarts/core';
import {
SankeyChart,

View File

@@ -17,7 +17,8 @@
* under the License.
*/
import { useState, useEffect, useMemo, useCallback } from 'react';
import { HandlerFunction, JsonValue, styled } from '@superset-ui/core';
import { HandlerFunction, JsonValue } from '@superset-ui/core';
import { styled } from '@apache-superset/core/ui';
import {
RadioButtonOption,
sharedControlComponents,

View File

@@ -28,10 +28,10 @@ import {
normalizeTimestamp,
NumberFormats,
NumberFormatter,
SupersetTheme,
TimeFormatter,
ValueFormatter,
} from '@superset-ui/core';
import { SupersetTheme } from '@apache-superset/core/ui';
import { GenericDataType } from '@apache-superset/core/api/core';
import { SortSeriesType, LegendPaddingType } from '@superset-ui/chart-controls';
import { format } from 'echarts/core';