Improve exports
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
@@ -20,7 +20,6 @@ import { HTMLAttributes } from 'react';
|
||||
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
||||
import { LinkProps as LinkProps_2 } from 'react-aria-components';
|
||||
import { Menu as Menu_2 } from '@base-ui-components/react/menu';
|
||||
import { MutableRefObject } from 'react';
|
||||
import type { RadioGroupProps as RadioGroupProps_2 } from 'react-aria-components';
|
||||
import type { RadioProps as RadioProps_2 } from 'react-aria-components';
|
||||
import { ReactElement } from 'react';
|
||||
@@ -948,18 +947,6 @@ export interface HeaderBreadcrumb {
|
||||
label: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface HeaderIndicatorsProps {
|
||||
// (undocumented)
|
||||
hoveredKey: string | null;
|
||||
// (undocumented)
|
||||
prevHoveredKey: MutableRefObject<string | null>;
|
||||
// (undocumented)
|
||||
tabRefs: MutableRefObject<Map<string, HTMLDivElement>>;
|
||||
// (undocumented)
|
||||
tabsRef: MutableRefObject<HTMLDivElement | null>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface HeaderOption {
|
||||
// (undocumented)
|
||||
@@ -1025,21 +1012,6 @@ export interface HeaderTab {
|
||||
label: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface HeaderTabProps {
|
||||
// (undocumented)
|
||||
setHoveredKey: (key: string | null) => void;
|
||||
// (undocumented)
|
||||
setTabRef: (key: string, element: HTMLDivElement | null) => void;
|
||||
// (undocumented)
|
||||
tab: HeaderTab;
|
||||
}
|
||||
|
||||
// @public
|
||||
export const HeaderTabsIndicators: (
|
||||
props: HeaderIndicatorsProps,
|
||||
) => JSX_2.Element;
|
||||
|
||||
// @public (undocumented)
|
||||
export const Heading: <T extends ElementType = 'h1'>(
|
||||
props: HeadingProps<T> & {
|
||||
|
||||
@@ -23,7 +23,7 @@ import type { HeaderProps, HeaderTabProps } from './types';
|
||||
/**
|
||||
* A component that renders header tabs.
|
||||
*
|
||||
* @public
|
||||
* @internal
|
||||
*/
|
||||
export const HeaderTabs = (props: HeaderProps) => {
|
||||
const { tabs } = props;
|
||||
@@ -70,7 +70,7 @@ export const HeaderTabs = (props: HeaderProps) => {
|
||||
/**
|
||||
* A component that renders a toolbar tab.
|
||||
*
|
||||
* @public
|
||||
* @internal
|
||||
*/
|
||||
const Tab = (props: HeaderTabProps) => {
|
||||
const { tab, setTabRef, setHoveredKey } = props;
|
||||
|
||||
@@ -22,7 +22,7 @@ import type { HeaderIndicatorsProps } from './types';
|
||||
/**
|
||||
* A component that renders the indicators for the toolbar.
|
||||
*
|
||||
* @public
|
||||
* @internal
|
||||
*/
|
||||
export const HeaderTabsIndicators = (props: HeaderIndicatorsProps) => {
|
||||
const { tabRefs, tabsRef, hoveredKey, prevHoveredKey } = props;
|
||||
|
||||
@@ -26,7 +26,7 @@ import { motion, useScroll, useTransform } from 'motion/react';
|
||||
/**
|
||||
* A component that renders a toolbar.
|
||||
*
|
||||
* @public
|
||||
* @internal
|
||||
*/
|
||||
export const HeaderToolbar = (props: HeaderProps) => {
|
||||
const { icon, title, options, breadcrumbs } = props;
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export * from './Header';
|
||||
export * from './HeaderTabsIndicators';
|
||||
export * from './types';
|
||||
export { Header } from './Header';
|
||||
export type {
|
||||
HeaderProps,
|
||||
HeaderTab,
|
||||
HeaderOption,
|
||||
HeaderBreadcrumb,
|
||||
} from './types';
|
||||
|
||||
@@ -71,11 +71,6 @@ export interface HeaderTabProps {
|
||||
setHoveredKey: (key: string | null) => void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Props for the header indicators component that handles tab highlighting and animation.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export interface HeaderIndicatorsProps {
|
||||
tabRefs: MutableRefObject<Map<string, HTMLDivElement>>;
|
||||
tabsRef: MutableRefObject<HTMLDivElement | null>;
|
||||
|
||||
@@ -14,5 +14,5 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export * from './HeaderPage';
|
||||
export * from './types';
|
||||
export { HeaderPage } from './HeaderPage';
|
||||
export type { HeaderPageProps, HeaderPageTab, HeaderPageOption } from './types';
|
||||
|
||||
Reference in New Issue
Block a user