mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
32 lines
794 B
JavaScript
32 lines
794 B
JavaScript
import deprecate from 'util-deprecate';
|
|
|
|
import {
|
|
knob,
|
|
text,
|
|
boolean,
|
|
number,
|
|
color,
|
|
object,
|
|
array,
|
|
date,
|
|
select,
|
|
files,
|
|
button,
|
|
withKnobs as commonWithKnobs,
|
|
withKnobsOptions as commonWithKnobsOptions,
|
|
} from '.';
|
|
|
|
export { knob, text, boolean, number, color, object, array, date, select, files, button };
|
|
|
|
export const selectV2 = deprecate(select, 'selectV2 has been renamed to select');
|
|
|
|
export const withKnobs = deprecate(
|
|
commonWithKnobs,
|
|
"addon-knobs: framework-specific imports are deprecated, just use `import {withKnobs} from '@storybook/addon-knobs`"
|
|
);
|
|
|
|
export const withKnobsOptions = deprecate(
|
|
commonWithKnobsOptions,
|
|
"addon-knobs: framework-specific imports are deprecated, just use `import {withKnobsOptions} from '@storybook/addon-knobs`"
|
|
);
|