mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:22:10 +08:00
Onboarding Addon: Update import paths from internal modules to direct package imports
This commit is contained in:
parent
cc34bea12f
commit
ea04ec397f
@ -1,7 +1,7 @@
|
||||
import type { ComponentProps } from 'react';
|
||||
import React, { forwardRef } from 'react';
|
||||
|
||||
import { styled } from 'storybook/internal/theming';
|
||||
import { styled } from 'storybook/theming';
|
||||
|
||||
export interface ButtonProps extends ComponentProps<'button'> {
|
||||
children: string;
|
||||
|
@ -1,8 +1,7 @@
|
||||
import React, { type ComponentProps } from 'react';
|
||||
|
||||
import { styled } from 'storybook/internal/theming';
|
||||
|
||||
import { Confetti as ReactConfetti } from '@neoconfetti/react';
|
||||
import { styled } from 'storybook/theming';
|
||||
|
||||
const Wrapper = styled.div({
|
||||
zIndex: 9999,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { styled } from 'storybook/internal/theming';
|
||||
import { styled } from 'storybook/theming';
|
||||
|
||||
export const ListWrapper = styled.ul({
|
||||
display: 'flex',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { styled } from 'storybook/internal/theming';
|
||||
import { styled } from 'storybook/theming';
|
||||
|
||||
export const ListItemWrapper = styled.li(() => ({
|
||||
display: 'flex',
|
||||
|
@ -1,9 +1,8 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import { useTheme } from 'storybook/internal/theming';
|
||||
|
||||
import type { CallBackProps } from 'react-joyride';
|
||||
import Joyride, { ACTIONS } from 'react-joyride';
|
||||
import { useTheme } from 'storybook/theming';
|
||||
|
||||
import type { StepDefinition, StepKey } from '../../Onboarding';
|
||||
import { Tooltip } from './Tooltip';
|
||||
|
@ -2,11 +2,11 @@ import type { FC } from 'react';
|
||||
import React, { useEffect } from 'react';
|
||||
|
||||
import { IconButton } from 'storybook/internal/components';
|
||||
import { color, styled } from 'storybook/internal/theming';
|
||||
|
||||
import { CloseAltIcon } from '@storybook/icons';
|
||||
|
||||
import type { Step, TooltipRenderProps } from 'react-joyride';
|
||||
import { color, styled } from 'storybook/theming';
|
||||
|
||||
import { Button } from '../../components/Button/Button';
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { keyframes, styled } from 'storybook/internal/theming';
|
||||
|
||||
import { ArrowRightIcon } from '@storybook/icons';
|
||||
|
||||
import { keyframes, styled } from 'storybook/theming';
|
||||
|
||||
const fadeIn = keyframes({
|
||||
from: {
|
||||
opacity: 0,
|
||||
|
@ -2,7 +2,8 @@ import React, { Suspense, lazy } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
|
||||
import { STORY_SPECIFIED } from 'storybook/internal/core-events';
|
||||
import { addons } from 'storybook/internal/manager-api';
|
||||
|
||||
import { addons } from 'storybook/manager-api';
|
||||
|
||||
const Onboarding = lazy(() => import('./Onboarding'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user