mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
chore: Moves OnPasteSelect tests to component's folder (#13338)
This commit is contained in:
committed by
GitHub
parent
f91b4388ba
commit
19c8a62254
@@ -28,7 +28,7 @@ const OPTIONS = [
|
||||
];
|
||||
|
||||
export default {
|
||||
title: 'Select component',
|
||||
title: 'Select',
|
||||
argTypes: {
|
||||
options: {
|
||||
type: 'select',
|
||||
@@ -92,6 +92,14 @@ SelectGallery.args = {
|
||||
options: OPTIONS,
|
||||
};
|
||||
|
||||
SelectGallery.story = {
|
||||
parameters: {
|
||||
knobs: {
|
||||
disabled: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export const InteractiveSelect = (args: any) => {
|
||||
const [{ value, multi, clearable, placeholder }, updateArgs] = useArgs();
|
||||
@@ -125,3 +133,11 @@ InteractiveSelect.args = {
|
||||
clearable: false,
|
||||
placeholder: "I'm interactive",
|
||||
};
|
||||
|
||||
InteractiveSelect.story = {
|
||||
parameters: {
|
||||
knobs: {
|
||||
disabled: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
export * from './SupersetStyledSelect';
|
||||
export * from './Select';
|
||||
export * from './styles';
|
||||
export { default } from './SupersetStyledSelect';
|
||||
export { default } from './Select';
|
||||
export { default as OnPasteSelect } from './OnPasteSelect';
|
||||
|
||||
@@ -30,7 +30,7 @@ import { Props as SelectProps } from 'react-select/src/Select';
|
||||
import { colors as reactSelectColors } from 'react-select/src/theme';
|
||||
import { DeepNonNullable } from 'react-select/src/components';
|
||||
import { OptionType } from 'antd/lib/select';
|
||||
import { SupersetStyledSelectProps } from './SupersetStyledSelect';
|
||||
import { SupersetStyledSelectProps } from './Select';
|
||||
|
||||
export const DEFAULT_CLASS_NAME = 'Select';
|
||||
export const DEFAULT_CLASS_NAME_PREFIX = 'Select';
|
||||
|
||||
@@ -25,7 +25,7 @@ import {
|
||||
import { FormInstance } from 'antd/lib/form';
|
||||
import React, { useCallback } from 'react';
|
||||
import { Checkbox, Form, Input, Typography } from 'src/common/components';
|
||||
import { Select } from 'src/components/Select/SupersetStyledSelect';
|
||||
import { Select } from 'src/components/Select';
|
||||
import SupersetResourceSelect from 'src/components/SupersetResourceSelect';
|
||||
import { addDangerToast } from 'src/messageToasts/actions';
|
||||
import { ClientErrorObject } from 'src/utils/getClientErrorObject';
|
||||
|
||||
@@ -26,7 +26,7 @@ import { Radio } from 'src/common/components/Radio';
|
||||
import Modal from 'src/common/components/Modal';
|
||||
import Button from 'src/components/Button';
|
||||
import FormLabel from 'src/components/FormLabel';
|
||||
import { CreatableSelect } from 'src/components/Select/SupersetStyledSelect';
|
||||
import { CreatableSelect } from 'src/components/Select';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
// Session storage key for recent dashboard
|
||||
|
||||
Reference in New Issue
Block a user