components/toolbar: types is a types-only file

This commit is contained in:
David Lechner
2022-05-18 11:15:50 -05:00
parent 76475cc79b
commit c4c8da967c
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import React from 'react';
import { FocusScope } from 'react-aria';
import { useToolbar } from './aria';
import { ToolbarStateContext, useToolbarState } from './state';
import { AriaToolbarProps } from './types';
import type { AriaToolbarProps } from './types';
type ToolbarProps = Pick<
AriaToolbarProps,
+1 -1
View File
@@ -11,7 +11,7 @@ import {
} from 'react';
import { FocusScope, mergeProps, useFocusManager } from 'react-aria';
import { ToolbarStateContext } from './state';
import { AriaToolbarProps } from './types';
import type { AriaToolbarProps } from './types';
// for doc comment link
FocusScope;
+1 -1
View File
@@ -2,7 +2,7 @@
// Copyright (c) 2022 The Pybricks Authors
import { createContext, useState } from 'react';
import { ToolbarProps } from './types';
import type { ToolbarProps } from './types';
export type ToolbarState = Readonly<{
/** The DOM id of the most recently focused item. */