chore: rip antd-v4 from the app! (#33411)

This commit is contained in:
Maxime Beauchemin
2025-05-15 10:42:56 -07:00
committed by GitHub
parent fcea7e4af9
commit 33f2ffd2a9
249 changed files with 1574 additions and 2147 deletions

View File

@@ -33,11 +33,11 @@
"memoize-one": "^5.2.1",
"react-table": "^7.8.0",
"regenerator-runtime": "^0.14.1",
"xss": "^1.0.15",
"antd-v5": "npm:antd@^5.24.6"
"xss": "^1.0.15"
},
"peerDependencies": {
"@ant-design/icons": "^5.2.6",
"antd": "^5.24.6",
"@superset-ui/chart-controls": "*",
"@superset-ui/core": "*",
"@testing-library/dom": "^8.20.1",

View File

@@ -25,7 +25,7 @@ import {
Ref,
} from 'react';
import { Row, FilterValue } from 'react-table';
import { Input, type InputRef, Space } from 'antd-v5';
import { Input, type InputRef, Space } from 'antd';
import useAsyncState from '../utils/useAsyncState';
export interface SearchInputProps {

View File

@@ -18,7 +18,7 @@
*/
/* eslint-disable import/no-extraneous-dependencies */
import { styled } from '@superset-ui/core';
import { Select } from 'antd-v5';
import { Select } from 'antd';
import { SearchOption } from '../../types';
const StyledSelect = styled(Select)`
@@ -29,7 +29,7 @@ const StyledSelect = styled(Select)`
interface SearchSelectDropdownProps {
/** The currently selected search column value */
value?: string;
/** Callback triggered when a new search column is selected */
/** Function triggered when a new search column is selected */
onChange: (searchCol: string) => void;
/** Available search column options to populate the dropdown */
searchOptions: SearchOption[];

View File

@@ -19,7 +19,7 @@
import { memo } from 'react';
import { css, t } from '@superset-ui/core';
import { formatSelectOptions } from '@superset-ui/chart-controls';
import { Select } from 'antd-v5';
import { Select } from 'antd';
export type SizeOption = [number, string];

View File

@@ -64,7 +64,7 @@ import {
TableOutlined,
} from '@ant-design/icons';
import { isEmpty, debounce, isEqual } from 'lodash';
import { Input, Space, Select } from 'antd-v5';
import { Input, Space, Select } from 'antd';
import {
ColorSchemeEnum,
DataColumnMeta,