Skip to content

Commit c745145

Browse files
committed
Move <Callout> from @automattic/components into dashboard directory
1 parent 8cc2c15 commit c745145

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

client/dashboard/components/callout-overlay/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Callout } from '@automattic/components/src/callout';
21
import { Meta, StoryObj } from '@storybook/react';
32
import { Button } from '@wordpress/components';
3+
import { Callout } from '../callout';
44
import { PageHeader } from '../page-header';
55
import PageLayout from '../page-layout';
66
import { CalloutOverlay } from './index';

packages/components/src/callout/index.stories.tsx renamed to client/dashboard/components/callout/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Button, __experimentalText as Text } from '@wordpress/components';
33
import { Callout } from './';
44

55
const meta: Meta< typeof Callout > = {
6-
title: 'Callout',
6+
title: 'client/dashboard/Callout',
77
component: Callout,
88
tags: [ 'autodocs' ],
99
};

packages/components/src/callout/index.tsx renamed to client/dashboard/components/callout/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@ function UnforwardedCallout(
2323
ref: React.ForwardedRef< HTMLElement >
2424
) {
2525
return (
26-
<Card ref={ ref } className={ `a8c-components-callout is-${ variant }` }>
26+
<Card ref={ ref } className={ `dashboard-callout is-${ variant }` }>
2727
<HStack
28-
className="a8c-components-callout__h-container"
28+
className="dashboard-callout__h-container"
2929
spacing="6"
3030
alignment="stretch"
3131
justify="stretch"
3232
expanded={ false }
3333
>
3434
<VStack justify="flex-start" alignment="flex-start" spacing="4">
3535
{ icon && <Icon icon={ icon } /> }
36-
<Heading level={ headingLevel } className="a8c-components-callout__title">
36+
<Heading level={ headingLevel } className="dashboard-callout__title">
3737
{ title }
3838
</Heading>
3939
{ description }
4040
{ actions }
4141
</VStack>
4242
{ imageSrc && (
43-
<VStack justify="stretch" alignment="stretch" className="a8c-components-callout__image">
43+
<VStack justify="stretch" alignment="stretch" className="dashboard-callout__image">
4444
<img src={ imageSrc } alt={ imageAlt } />
4545
</VStack>
4646
) }

packages/components/src/callout/styles.scss renamed to client/dashboard/components/callout/styles.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
@import "@wordpress/base-styles/breakpoints";
44
@import "@wordpress/base-styles/mixins";
55

6-
.a8c-components-callout {
6+
.dashboard-callout {
77
max-width: 600px;
88

99
&.is-highlight {
1010
background: rgba(56, 88, 233, 0.04);
1111
}
1212
}
1313

14-
.a8c-components-callout__h-container {
14+
.dashboard-callout__h-container {
1515
padding: $grid-unit-40;
1616
@include body-medium;
1717
color: $gray-700;
@@ -21,12 +21,12 @@
2121
}
2222
}
2323

24-
.a8c-components-callout__title {
24+
.dashboard-callout__title {
2525
@include heading-large;
2626
color: $gray-900;
2727
}
2828

29-
.a8c-components-callout__image {
29+
.dashboard-callout__image {
3030
display: none;
3131
position: relative;
3232

client/dashboard/sites/deployments/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Callout } from '@automattic/components/src/callout';
21
import { useQuery } from '@tanstack/react-query';
32
import { __experimentalText as Text } from '@wordpress/components';
43
import { __ } from '@wordpress/i18n';
54
import { siteQuery } from '../../app/queries';
65
import { siteRoute } from '../../app/router';
6+
import { Callout } from '../../components/callout';
77
import { CalloutOverlay } from '../../components/callout-overlay';
88
import DataViewsCard from '../../components/dataviews-card';
99
import { PageHeader } from '../../components/page-header';

0 commit comments

Comments
 (0)