Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add folder to tsconfig, fix TS errors
  • Loading branch information
ciampo committed Jul 25, 2022
commit 97ca8a3aae6ebf2028645e53e5a52eb5337e2637
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { forwardRef } from '@wordpress/element';
* Internal dependencies
*/
import { useSelectControlArrow } from './hook';
import { WordPressComponentProps } from '../../ui/context';
import type { WordPressComponentProps } from '../../ui/context';
import type { SelectControlArrowProps } from '../types';

const UnforwardedSelectControlArrow = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useMemo } from '@wordpress/element';
import * as styles from '../styles';
import type { WordPressComponentProps } from '../../ui/context';
import { useCx } from '../../utils/hooks/use-cx';
import { SelectControlArrowProps } from '../types';
import type { SelectControlArrowProps } from '../types';

// TODO:
// - should we allow polymorphism ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { forwardRef } from '@wordpress/element';
* Internal dependencies
*/
import { useSelectControlGroupLabel } from './hook';
import { WordPressComponentProps } from '../../ui/context';
import type { WordPressComponentProps } from '../../ui/context';
import type { SelectControlGroupLabelProps } from '../types';

const UnforwardedSelectControlGroupLabel = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useMemo } from '@wordpress/element';
import * as styles from '../styles';
import type { WordPressComponentProps } from '../../ui/context';
import { useCx } from '../../utils/hooks/use-cx';
import { SelectControlGroupLabelProps } from '../types';
import type { SelectControlGroupLabelProps } from '../types';

// TODO:
// - should we use 'option' instead of `div` for props inheritance?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { forwardRef } from '@wordpress/element';
* Internal dependencies
*/
import { useSelectControlGroup } from './hook';
import { WordPressComponentProps } from '../../ui/context';
import type { WordPressComponentProps } from '../../ui/context';
import type { SelectControlGroupProps } from '../types';

const UnforwardedSelectControlGroup = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useMemo } from '@wordpress/element';
import * as styles from '../styles';
import type { WordPressComponentProps } from '../../ui/context';
import { useCx } from '../../utils/hooks/use-cx';
import { SelectControlGroupProps } from '../types';
import type { SelectControlGroupProps } from '../types';

// TODO:
// - should we allow polymorphism ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { forwardRef } from '@wordpress/element';
* Internal dependencies
*/
import { useSelectControlItem } from './hook';
import { WordPressComponentProps } from '../../ui/context';
import type { WordPressComponentProps } from '../../ui/context';
import type { SelectControlItemProps } from '../types';

const UnforwardedSelectControlItem = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useMemo } from '@wordpress/element';
import * as styles from '../styles';
import type { WordPressComponentProps } from '../../ui/context';
import { useCx } from '../../utils/hooks/use-cx';
import { SelectControlItemProps } from '../types';
import type { SelectControlItemProps } from '../types';

// TODO:
// - should we use 'option' instead of `div` for props inheritance?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { forwardRef } from '@wordpress/element';
* Internal dependencies
*/
import { useSelectControlSeparator } from './hook';
import { WordPressComponentProps } from '../../ui/context';
import type { WordPressComponentProps } from '../../ui/context';
import type { SelectControlSeparatorProps } from '../types';

const UnforwardedSelectControlSeparator = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useMemo } from '@wordpress/element';
import * as styles from '../styles';
import type { WordPressComponentProps } from '../../ui/context';
import { useCx } from '../../utils/hooks/use-cx';
import { SelectControlSeparatorProps } from '../types';
import type { SelectControlSeparatorProps } from '../types';

export const useSelectControlSeparator = ( {
className,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ import { forwardRef } from '@wordpress/element';
/**
* Internal dependencies
*/

import { useSelectControl } from './hook';
import { WordPressComponentProps } from '../../ui/context';
import type { WordPressComponentProps } from '../../ui/context';
import { CustomSelectControlItem, CustomSelectControlArrow } from '../';
import type { SelectControlOption, SelectControlProps } from '../types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useMemo } from '@wordpress/element';
import * as styles from '../styles';
import type { WordPressComponentProps } from '../../ui/context';
import { useCx } from '../../utils/hooks/use-cx';
import { SelectControlProps } from '../types';
import type { SelectControlProps } from '../types';

// TODO:
// - should we use 'select' instead of `div` for props inheritance?
Expand Down
1 change: 1 addition & 0 deletions packages/components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"src/color-palette/**/*",
"src/color-picker/**/*",
"src/confirm-dialog/**/*",
"src/custom-select-control-new/**/*",
"src/dashicon/**/*",
"src/date-time/**/*",
"src/disabled/**/*",
Expand Down