-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v1.2.1 * v1.3.1 * remove more * more cleanup * WIP * remove more * fix node
- Loading branch information
1 parent
124facf
commit 05ad890
Showing
27 changed files
with
166 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { AriaLinkProps } from '@react-types/link'; | ||
import { Key, ReactElement, ReactNode } from 'react'; | ||
import { AriaLabelingProps, DOMProps, LinkDOMProps } from './dom'; | ||
import { ItemProps } from './collection'; | ||
import { StyleProps } from './style'; | ||
|
||
export interface BreadcrumbItemProps extends AriaLinkProps, LinkDOMProps { | ||
/** Whether the breadcrumb item represents the current page. */ | ||
isCurrent?: boolean; | ||
/** | ||
* The type of current location the breadcrumb item represents, if `isCurrent` is true. | ||
* @default 'page' | ||
*/ | ||
'aria-current'?: | ||
| 'page' | ||
| 'step' | ||
| 'location' | ||
| 'date' | ||
| 'time' | ||
| boolean | ||
| 'true' | ||
| 'false'; | ||
/** Whether the breadcrumb item is disabled. */ | ||
isDisabled?: boolean; | ||
/** The contents of the breadcrumb item. */ | ||
children: ReactNode; | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface BreadcrumbsProps {} | ||
export interface AriaBreadcrumbsProps | ||
extends BreadcrumbsProps, | ||
DOMProps, | ||
AriaLabelingProps {} | ||
|
||
export interface ACBreadcrumbsProps<T> | ||
extends AriaBreadcrumbsProps, | ||
StyleProps { | ||
/** The breadcrumb items. */ | ||
children: ReactElement<ItemProps<T>> | ReactElement<ItemProps<T>>[]; | ||
/** Whether the Breadcrumbs are disabled. */ | ||
isDisabled?: boolean; | ||
/** Called when an item is acted upon (usually selection via press). */ | ||
onAction?: (key: Key) => void; | ||
/** | ||
* Size of the Breadcrumbs including spacing and layout. | ||
* @default 'L' | ||
*/ | ||
size?: 'S' | 'M' | 'L'; | ||
/** Whether to always show the root item if the items are collapsed. */ | ||
showRoot?: boolean; | ||
/** | ||
* Whether to place the last Breadcrumb item onto a new line. | ||
*/ | ||
isMultiline?: boolean; | ||
/** | ||
* Whether to autoFocus the last Breadcrumb item when the Breadcrumbs render. | ||
*/ | ||
autoFocusCurrent?: boolean; | ||
} |
Oops, something went wrong.