-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1427 from habx/feature/APP-15727
APP-15727: Introduce the `TogglePanel` component
- Loading branch information
Showing
21 changed files
with
318 additions
and
204 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { AutocompleteInput } from './AutocompleteInput' | ||
|
||
export { AutocompleteInputProps } from './AutocompleteInput.interface' | ||
export type { AutocompleteInputProps } from './AutocompleteInput.interface' |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export { Layout } from './Layout' | ||
|
||
export { LayoutProps, LayoutChild } from './Layout.interface' | ||
export { useParentLayout } from './Layout.context' | ||
export { LayoutChild } from './Layout.interface' | ||
|
||
export type { LayoutProps } from './Layout.interface' |
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 |
---|---|---|
@@ -1,30 +1,21 @@ | ||
import { Modal } from '@delangle/use-modal' | ||
import * as React from 'react' | ||
|
||
import { TogglePanelProps } from '../TogglePanel' | ||
import { WithTriggerElement } from '../withTriggerElement' | ||
|
||
export interface MenuInstance { | ||
open: boolean | ||
onClose: () => void | ||
} | ||
|
||
export interface MenuInnerProps | ||
extends React.HTMLAttributes<HTMLUListElement>, | ||
export interface InnerMenuProps | ||
extends Omit<TogglePanelProps, 'setStyle' | keyof MenuInstance>, | ||
MenuInstance { | ||
fullScreenOnMobile?: boolean | ||
scrollable?: boolean | ||
position?: 'horizontal' | 'vertical' | ||
triggerRef?: React.RefObject<HTMLElement> | ||
withOverlay?: boolean | ||
setPosition?: (dimensions: { | ||
triggerDimensions: DOMRect | ||
menuHeight: number | ||
menuWidth: number | ||
}) => { top?: number; left?: number; right?: number; bottom?: number } | ||
children?: | ||
| React.ReactNode | ||
| ((modal: Modal<HTMLUListElement>) => React.ReactNode) | ||
} | ||
|
||
export interface MenuProps | ||
extends WithTriggerElement<MenuInnerProps, HTMLUListElement> {} | ||
export type MenuProps = WithTriggerElement<InnerMenuProps, HTMLDivElement> |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { NavBar } from './NavBar' | ||
|
||
export { NavBarProps } from './NavBar.interface' | ||
export type { NavBarProps } from './NavBar.interface' |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export { Provider } from './Provider' | ||
export { ProviderContext } from './Provider.context' | ||
|
||
export { ProviderProps } from './Provider.interface' | ||
|
||
export { ProviderContext, ProviderContextValue } from './Provider.context' | ||
export type { ProviderContextValue, ProviderProps } from './Provider.interface' |
Oops, something went wrong.