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