react-uberconsole
Advanced tools
Comparing version 1.0.1-alpha-4 to 1.0.1-alpha-5
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { AppShellProps } from "./types"; | ||
declare function AppShell({ children, sidebar: CustomSidebar, height }: AppShellProps): JSX.Element; | ||
export default AppShell; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
declare function AppShellUI({ sidebar, height, children, onMobileSidebarBtn, onClick, isSidebarOpen, moduleConfig }: { | ||
@@ -2,0 +3,0 @@ sidebar: any; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { LoaderProps } from "./types"; | ||
declare function Loader({ children, className }: LoaderProps): JSX.Element; | ||
export default Loader; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
import { SNSIP, SidebarNavigationSectionProps } from "./types"; | ||
@@ -2,0 +3,0 @@ declare function Sidebar({ className, isCollapsed, children, maxHeight, onCollapseClick }: { |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
import { SidebarItemWithModules } from "../../../types"; | ||
@@ -2,0 +3,0 @@ declare function SidebarItem({ item }: { |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { FooterProps } from "./types"; | ||
declare function Footer({ className, isFixed, children }: FooterProps): JSX.Element; | ||
export default Footer; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { HeaderProps } from "./types"; | ||
declare function Header({ className, children, mobileMenuToggle, mobileMenu }: HeaderProps): JSX.Element; | ||
export default Header; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { HeaderDropdownProps } from "./types"; | ||
declare function HeaderDropdown({ id, className, showOverlay, hideOnOverlayClick, dropdownClass, isVisible, onChangeVisibility, showOnMobile, overlayOffset, children, headerElement, showOnHeaderElementClick, dropdownTopOffset, dropdownLeftOffset }: HeaderDropdownProps): JSX.Element; | ||
declare function HeaderDropdown({ className, dropdownClass, onControllerConnect, showOnMobile, children, headerElement, showOnHeaderElementClick, dropdownLeftOffset, dropdownTopOffset, headerHeight }: HeaderDropdownProps): JSX.Element; | ||
export default HeaderDropdown; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { HeaderDropdownProps } from "./types"; | ||
declare function HeaderDropdown({ id, showOverlay, hideOnOverlayClick, dropdownClass, isVisible, onChangeVisibility, showOnMobile, overlayOffset, children, headerElement: title, dropdownTopOffset, dropdownLeftOffset }: HeaderDropdownProps): JSX.Element; | ||
export default HeaderDropdown; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { MobileMenuProps } from "./types"; | ||
declare function MobileMenu({ className, children }: MobileMenuProps): JSX.Element; | ||
export default MobileMenu; |
import { BaseProps, ReactChildren } from "../../../types"; | ||
import { Bounds } from "../../core/overlay/types"; | ||
export interface HeaderProps extends BaseProps { | ||
@@ -8,16 +7,12 @@ mobileMenuToggle?: ReactChildren; | ||
export interface HeaderDropdownProps extends BaseProps { | ||
id: number; | ||
isVisible: boolean; | ||
onChangeVisibility: (id: number, show: boolean) => void; | ||
showOverlay: boolean; | ||
overlayOffset?: Bounds; | ||
onControllerConnect?: (requestShow: (show: boolean) => void) => void; | ||
headerElement: ReactChildren; | ||
dropdownClass: string; | ||
showOnHeaderElementClick?: boolean; | ||
dropdownTopOffset?: number; | ||
dropdownLeftOffset?: number; | ||
hideOnOverlayClick: boolean; | ||
dropdownLeftOffset: number; | ||
dropdownTopOffset: number; | ||
showOnMobile?: boolean; | ||
headerHeight: number; | ||
} | ||
export interface MobileMenuProps extends BaseProps { | ||
} |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { BoxProps } from "./types"; | ||
declare function Box({ className, children }: BoxProps): JSX.Element; | ||
export default Box; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { FrameworkButtonProps } from "./types"; | ||
declare function BusyButton({ children, onClick, isBusy, busyContent, isEnabled, className, type }: FrameworkButtonProps): JSX.Element; | ||
export default BusyButton; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { FrameworkButtonProps } from './types'; | ||
declare function Button({ children, onClick, className, isEnabled, type }: FrameworkButtonProps): JSX.Element; | ||
export default Button; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { FrameworkButtonProps } from './types'; | ||
declare function FrameworkButton(props: FrameworkButtonProps): JSX.Element; | ||
export default FrameworkButton; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { CheckboxProps } from "./types"; | ||
declare function CheckBox({ className, isChecked, htmlID, name, isEnabled, value, onChange, children }: CheckboxProps): JSX.Element; | ||
export default CheckBox; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="react" /> | ||
import { CheckboxProps } from "./types"; | ||
export default function FrameworkCheckBox({ className, htmlID, name, isChecked, isEnabled, value, onChange, toggleComponent, children }: CheckboxProps): JSX.Element; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { CheckboxProps } from "./types"; | ||
declare function Switch({ className, isChecked, isEnabled, onChange, value, children, htmlID, name }: CheckboxProps): JSX.Element; | ||
export default Switch; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { BaseDropdownProps } from './types'; | ||
declare function FrameworkDropdown({ className, isBlur, dataSource, onSearchChange, isEnabled, selectedId, htmlID, name, labelComponent, listItemComponent }: BaseDropdownProps): JSX.Element; | ||
declare function FrameworkDropdown({ className, isBlur, dataSource, onSearchChange, isEnabled, selectedId, htmlID, name, onSelectItem, labelComponent, listItemComponent }: BaseDropdownProps): JSX.Element; | ||
export default FrameworkDropdown; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { DropdownProps } from './types'; | ||
declare function SimpleDropdown({ className, dataSource, isBlur, selectedId, htmlID, name, textSelector, isEnabled }: DropdownProps): JSX.Element; | ||
declare function SimpleDropdown({ className, onSelectItem, dataSource, isBlur, selectedId, htmlID, name, textSelector, isEnabled }: DropdownProps): JSX.Element; | ||
export default SimpleDropdown; |
@@ -11,2 +11,3 @@ import * as React from "react"; | ||
onSearchChange?: (text: string) => void; | ||
onSelectItem?: (item: any) => void; | ||
labelComponent: React.FC<{ | ||
@@ -13,0 +14,0 @@ item: object; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { OptionProps } from './types'; | ||
declare function FrameworkOption({ isEnabled, isChecked, className, htmlID, name, value, children, onChange }: OptionProps): JSX.Element; | ||
export default FrameworkOption; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { OptionGroupProps } from './types'; | ||
declare function OptionGroup({ htmlID, dataSource, selectedId, name, textSelector, isEnabled, onChange }: OptionGroupProps): JSX.Element; | ||
export default OptionGroup; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { ContextMenuProps } from "./types"; | ||
declare function ContextMenu({ children, className, owner }: ContextMenuProps): JSX.Element; | ||
export default ContextMenu; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { ModalProps } from "./types"; | ||
declare function Modal({ className, children, isShowing, title, showCloseBtn, onCloseBtnClick }: ModalProps): JSX.Element; | ||
export default Modal; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { ModalBaseProps } from "./types"; | ||
declare function ModalBase({ className, children, isShowing }: ModalBaseProps): JSX.Element; | ||
export default ModalBase; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { TextboxProps } from './types'; | ||
declare function FrameworkTextBox({ className, isEnabled, name, value, htmlID, hasBorder, canClear, onChange, placeholder, clearBtnSize, onClear }: TextboxProps): JSX.Element; | ||
export default FrameworkTextBox; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { SearchTextBoxProps } from './types'; | ||
declare function SearchTextBox(props: SearchTextBoxProps): JSX.Element; | ||
export default SearchTextBox; |
import UberConsoleProvider from "./UberConsoleProvider"; | ||
import useUberConfig from "./useUberConfig"; | ||
export { useUberConfig, UberConsoleProvider }; | ||
import PopoverManager from "./PopoverManager"; | ||
export { useUberConfig, UberConsoleProvider, PopoverManager }; |
@@ -6,6 +6,8 @@ import { ModuleConfig, ReactChildren } from "../../../types"; | ||
}; | ||
export declare type UberContextType = { | ||
export interface UberContextType { | ||
moduleConfig: ModuleConfig; | ||
} | ||
export interface UberContextInternalType extends UberContextType { | ||
screenSize: Rectangle; | ||
}; | ||
} | ||
export declare type UberConfigType = { | ||
@@ -21,1 +23,10 @@ moduleConfig: ModuleConfig; | ||
} | ||
export interface PopoverManagerContextType { | ||
currentPopoverId: number; | ||
setCurrentPopoverId: (id: number) => void; | ||
add: () => number; | ||
} | ||
export interface PopoverManager { | ||
isShowing: () => boolean; | ||
setVisibility: (show: boolean) => void; | ||
} |
import React from 'react'; | ||
import { UberConsoleProps, UberConsoleState, UberContextType } from './types'; | ||
export declare const UberConsoleContext: React.Context<UberContextType>; | ||
import { UberConsoleProps, UberConsoleState, UberContextInternalType } from './types'; | ||
export declare const UberConsoleContext: React.Context<UberContextInternalType>; | ||
export default class UberConsoleProvider extends React.Component<UberConsoleProps, UberConsoleState> { | ||
@@ -5,0 +5,0 @@ constructor(props: UberConsoleProps); |
@@ -1,2 +0,2 @@ | ||
declare function useUberConfig(): import("./types").UberContextType; | ||
declare function useUberConfig(): import("./types").UberContextInternalType; | ||
export default useUberConfig; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { AlertProps } from './types'; | ||
declare function FrameworkAlert({ className, icon, onClose, type, children, canClose }: AlertProps): JSX.Element; | ||
export default FrameworkAlert; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="react" /> | ||
declare function BasicBreadcrumbs(): JSX.Element; | ||
export default BasicBreadcrumbs; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { FrameworkBreadcrumbsProps } from "./types"; | ||
declare function FrameworkBreadcrumbs({ className, children, links, separator, currentPageName }: FrameworkBreadcrumbsProps): JSX.Element; | ||
export default FrameworkBreadcrumbs; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { DataTableProps } from "./types"; | ||
declare function DataTable({ className, dataSource, columnConfig, onAction }: DataTableProps): JSX.Element; | ||
export default DataTable; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { FrameworkSnapProps } from "./types"; | ||
declare function FrameworkSnap({ className, header, children, hasPadding }: FrameworkSnapProps): JSX.Element; | ||
export default FrameworkSnap; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { SnapProps } from './types'; | ||
declare function Snap({ title, className, actionArea, isCollapsible, hasPadding, children }: SnapProps): JSX.Element; | ||
export default Snap; |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { TabPanelProps } from "./types"; | ||
declare function TabPanel({ className, children, hasPadding }: TabPanelProps): JSX.Element; | ||
export default TabPanel; |
{ | ||
"name": "react-uberconsole", | ||
"version": "1.0.1-alpha-4", | ||
"version": "1.0.1-alpha-5", | ||
"description": "A modular light weight backend console framework for react.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
175231
120
3598