mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
components/toolbar: types is a types-only file
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user