File tree Expand file tree Collapse file tree 16 files changed +5
-158
lines changed
packages/ui/src/empty-state Expand file tree Collapse file tree 16 files changed +5
-158
lines changed Original file line number Diff line number Diff line change 1- /**
2- * External dependencies
3- */
41import { useRender , mergeProps } from '@base-ui/react' ;
52import clsx from 'clsx' ;
6-
7- /**
8- * WordPress dependencies
9- */
103import { forwardRef } from '@wordpress/element' ;
11-
12- /**
13- * Internal dependencies
14- */
154import type { EmptyStateActionsProps } from './types' ;
165import styles from './style.module.css' ;
176
Original file line number Diff line number Diff line change 1- /**
2- * External dependencies
3- */
41import { useRender , mergeProps } from '@base-ui/react' ;
52import clsx from 'clsx' ;
6-
7- /**
8- * WordPress dependencies
9- */
103import { forwardRef } from '@wordpress/element' ;
11-
12- /**
13- * Internal dependencies
14- */
154import type { EmptyStateDescriptionProps } from './types' ;
165import styles from './style.module.css' ;
176
Original file line number Diff line number Diff line change 1- /**
2- * External dependencies
3- */
41import clsx from 'clsx' ;
5-
6- /**
7- * WordPress dependencies
8- */
92import { forwardRef } from '@wordpress/element' ;
10-
11- /**
12- * Internal dependencies
13- */
143import { Icon as IconComponent } from '../icon' ;
154import { Visual } from './visual' ;
165import type { EmptyStateIconProps } from './types' ;
Original file line number Diff line number Diff line change 1- /**
2- * Internal dependencies
3- */
41import { Root } from './root' ;
52import { Visual } from './visual' ;
63import { Icon } from './icon' ;
Original file line number Diff line number Diff line change 1- /**
2- * External dependencies
3- */
41import { useRender , mergeProps } from '@base-ui/react' ;
52import clsx from 'clsx' ;
6-
7- /**
8- * WordPress dependencies
9- */
103import { forwardRef } from '@wordpress/element' ;
11-
12- /**
13- * Internal dependencies
14- */
154import type { EmptyStateRootProps } from './types' ;
165import styles from './style.module.css' ;
176
Original file line number Diff line number Diff line change 1- /**
2- * External dependencies
3- */
41import type { Meta , StoryObj } from '@storybook/react-vite' ;
5-
6- /**
7- * WordPress dependencies
8- */
92import { search } from '@wordpress/icons' ;
10-
11- /**
12- * Internal dependencies
13- */
143import { Button , EmptyState } from '../..' ;
154
165const meta : Meta < typeof EmptyState . Root > = {
Original file line number Diff line number Diff line change 66 flex-direction : column;
77 align-items : center;
88 text-align : center;
9- gap : calc ( 2 * var ( --wpds-dimension-base ) );
9+ gap : var ( --wpds-dimension-gap-xs );
1010 font-family : var ( --wpds-font-family-body );
1111 color : var ( --wpds-color-fg-content-neutral );
1212 text-wrap : balance;
1313 }
1414
1515 .visual {
1616 display : flex;
17- margin-block-end : calc ( 2 * var ( --wpds-dimension-base ) );
17+ margin-block-end : var ( --wpds-dimension-gap-xs );
1818 align-items : center;
1919 justify-content : center;
2020 color : var ( --wpds-color-fg-content-neutral-weak );
2121 line-height : 1 ;
2222 }
2323
2424 .icon {
25- padding : calc ( 2 * var ( --wpds-dimension-base ) );
25+ padding : var ( --wpds-dimension-padding-surface-xs );
2626 border : 1px solid var ( --wpds-color-stroke-surface-neutral-weak );
2727 border-radius : 50% ;
2828 background-color : var ( --wpds-color-bg-surface-neutral );
4545
4646 .actions {
4747 display : flex;
48- margin-block-start : calc ( 4 * var ( --wpds-dimension-base ) );
48+ margin-block-start : var ( --wpds-dimension-gap-md );
4949 flex-direction : column;
50- gap : calc ( 2 * var ( --wpds-dimension-base ) );
50+ gap : var ( --wpds-dimension-gap-xs );
5151 align-items : center;
5252
5353 @media ( min-width : 480px ) {
Original file line number Diff line number Diff line change 1- /**
2- * External dependencies
3- */
41import { render } from '@testing-library/react' ;
5-
6- /**
7- * WordPress dependencies
8- */
92import { createRef } from '@wordpress/element' ;
10-
11- /**
12- * Internal dependencies
13- */
143import { Actions } from '../index' ;
154import { Button } from '../../button' ;
165
Original file line number Diff line number Diff line change 1- /**
2- * External dependencies
3- */
41import { render } from '@testing-library/react' ;
5-
6- /**
7- * WordPress dependencies
8- */
92import { createRef } from '@wordpress/element' ;
10-
11- /**
12- * Internal dependencies
13- */
143import { Description } from '../index' ;
154
165describe ( 'EmptyState.Description' , ( ) => {
Original file line number Diff line number Diff line change 1- /**
2- * External dependencies
3- */
41import { render } from '@testing-library/react' ;
5-
6- /**
7- * WordPress dependencies
8- */
92import { createRef } from '@wordpress/element' ;
10-
11- /**
12- * Internal dependencies
13- */
143import { Icon } from '../index' ;
154
165describe ( 'EmptyState.Icon' , ( ) => {
You can’t perform that action at this time.
0 commit comments