@touchtech/baselayer-ui 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -75
- package/dist/components/Button/Button.d.ts +24 -24
- package/dist/components/Button/__tests__/Button.test.d.ts +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/ButtonBadge/ButtonBadge.d.ts +7 -7
- package/dist/components/ButtonBadge/__tests__/ButtonBadge.test.d.ts +1 -1
- package/dist/components/ButtonBadge/index.d.ts +1 -1
- package/dist/components/ButtonLink/ButtonLink.d.ts +23 -23
- package/dist/components/ButtonLink/__tests__/ButtonLink.test.d.ts +1 -1
- package/dist/components/ButtonLink/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +16 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +12 -11
- package/dist/components/ColorPicker/__tests__/ColorPicker.test.d.ts +1 -1
- package/dist/components/ColorPicker/index.d.ts +1 -1
- package/dist/components/ColorSwatch/ColorSwatch.d.ts +10 -10
- package/dist/components/ColorSwatch/__tests__/ColorSwatch.test.d.ts +1 -1
- package/dist/components/ColorSwatch/index.d.ts +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +19 -19
- package/dist/components/ConfirmationModal/__tests__/ConfirmationModal.test.d.ts +1 -1
- package/dist/components/ConfirmationModal/index.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +20 -20
- package/dist/components/Dropdown/Dropdown.test.d.ts +1 -1
- package/dist/components/Dropdown/index.d.ts +1 -1
- package/dist/components/EditableText/EditableText.d.ts +11 -0
- package/dist/components/EditableText/__tests__/EditableText.test.d.ts +1 -0
- package/dist/components/EditableText/index.d.ts +1 -0
- package/dist/components/FileInput/FileInput.d.ts +22 -22
- package/dist/components/FileInput/__tests__/FileInput.test.d.ts +1 -1
- package/dist/components/FileInput/index.d.ts +2 -2
- package/dist/components/FloatingPanel/FloatingPanel.d.ts +14 -14
- package/dist/components/FloatingPanel/__tests__/FloatingPanel.test.d.ts +1 -1
- package/dist/components/FloatingPanel/index.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +10 -10
- package/dist/components/Icon/__tests__/Icon.test.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +21 -21
- package/dist/components/IconButton/__tests__/IconButton.test.d.ts +1 -1
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/IconButtonLink/IconButtonLink.d.ts +21 -21
- package/dist/components/IconButtonLink/__tests__/IconButtonLink.test.d.ts +1 -1
- package/dist/components/IconButtonLink/index.d.ts +1 -1
- package/dist/components/Image/Image.d.ts +14 -14
- package/dist/components/Image/__tests__/Image.test.d.ts +1 -1
- package/dist/components/Image/index.d.ts +1 -1
- package/dist/components/Label/Label.d.ts +9 -9
- package/dist/components/Label/__tests/Label.test.d.ts +1 -1
- package/dist/components/Label/index.d.ts +1 -1
- package/dist/components/ListView/ListView.d.ts +10 -10
- package/dist/components/ListView/ListViewItem.d.ts +14 -14
- package/dist/components/ListView/ListViewLinkItem.d.ts +13 -13
- package/dist/components/ListView/__tests__/ListView.test.d.ts +1 -1
- package/dist/components/ListView/index.d.ts +3 -3
- package/dist/components/Menu/Menu.d.ts +11 -11
- package/dist/components/Menu/MenuContainer.d.ts +13 -13
- package/dist/components/Menu/MenuItem.d.ts +10 -10
- package/dist/components/Menu/MenuLinkItem.d.ts +9 -9
- package/dist/components/Menu/__tests__/Menu.test.d.ts +1 -1
- package/dist/components/Menu/__tests__/MenuLinkItem.test.d.ts +1 -1
- package/dist/components/Menu/index.d.ts +4 -4
- package/dist/components/Modal/Modal.d.ts +14 -14
- package/dist/components/Modal/__tests__/Modal.test.d.ts +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Overlay/Overlay.d.ts +10 -10
- package/dist/components/Overlay/__tests__/Overlay.test.d.ts +1 -1
- package/dist/components/Overlay/index.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +18 -18
- package/dist/components/TextInput/__tests__/TextInput.test.d.ts +1 -1
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts +8 -8
- package/dist/components/Toast/ToastContainer.d.ts +7 -7
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -1
- package/dist/components/Toast/__tests__/ToastContainer.test.d.ts +1 -1
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/Video/Video.d.ts +23 -23
- package/dist/components/Video/__tests__/Video.test.d.ts +1 -1
- package/dist/components/Video/index.d.ts +1 -1
- package/dist/hooks/__tests__/useToggle.test.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useOutsideClick.d.ts +4 -0
- package/dist/hooks/useToggle.d.ts +1 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.js +1 -1
- package/dist/styles.css +1383 -1383
- package/dist/types/index.d.ts +7 -7
- package/package.json +100 -100
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Icon } from "./Icon";
|
|
1
|
+
export { default as Icon } from "./Icon";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ReactNode, RefObject, SyntheticEvent } from "react";
|
|
2
|
-
import { Size } from "../../types";
|
|
3
|
-
declare type IconButtonProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
containerRef?: RefObject<HTMLButtonElement>;
|
|
6
|
-
src: string;
|
|
7
|
-
alt: string;
|
|
8
|
-
badgeContent?: ReactNode;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
inverted?: boolean;
|
|
11
|
-
noShadow?: boolean;
|
|
12
|
-
noBorder?: boolean;
|
|
13
|
-
transparent?: boolean;
|
|
14
|
-
rounded?: boolean;
|
|
15
|
-
onClick?: (event?: SyntheticEvent<HTMLButtonElement>) => void;
|
|
16
|
-
size?: Size;
|
|
17
|
-
type?: "submit" | "reset" | "button";
|
|
18
|
-
offsetSides?: Array<"top" | "right" | "bottom" | "left">;
|
|
19
|
-
};
|
|
20
|
-
declare function IconButton({ className, containerRef, src, alt, badgeContent, offsetSides, onClick, disabled, inverted, noShadow, noBorder, transparent, rounded, size, type, }: IconButtonProps): JSX.Element;
|
|
21
|
-
export default IconButton;
|
|
1
|
+
import { ReactNode, RefObject, SyntheticEvent } from "react";
|
|
2
|
+
import { Size } from "../../types";
|
|
3
|
+
declare type IconButtonProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
containerRef?: RefObject<HTMLButtonElement>;
|
|
6
|
+
src: string;
|
|
7
|
+
alt: string;
|
|
8
|
+
badgeContent?: ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
inverted?: boolean;
|
|
11
|
+
noShadow?: boolean;
|
|
12
|
+
noBorder?: boolean;
|
|
13
|
+
transparent?: boolean;
|
|
14
|
+
rounded?: boolean;
|
|
15
|
+
onClick?: (event?: SyntheticEvent<HTMLButtonElement>) => void;
|
|
16
|
+
size?: Size;
|
|
17
|
+
type?: "submit" | "reset" | "button";
|
|
18
|
+
offsetSides?: Array<"top" | "right" | "bottom" | "left">;
|
|
19
|
+
};
|
|
20
|
+
declare function IconButton({ className, containerRef, src, alt, badgeContent, offsetSides, onClick, disabled, inverted, noShadow, noBorder, transparent, rounded, size, type, }: IconButtonProps): JSX.Element;
|
|
21
|
+
export default IconButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as IconButton } from "./IconButton";
|
|
1
|
+
export { default as IconButton } from "./IconButton";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ElementType, ReactNode, RefObject } from "react";
|
|
2
|
-
import { Size } from "../../types";
|
|
3
|
-
declare type OffsetSide = "top" | "right" | "bottom" | "left";
|
|
4
|
-
declare type IconButtonLinkProps = {
|
|
5
|
-
as?: ElementType;
|
|
6
|
-
containerRef?: RefObject<HTMLElement>;
|
|
7
|
-
src: string;
|
|
8
|
-
alt: string;
|
|
9
|
-
badgeContent?: ReactNode;
|
|
10
|
-
className?: string;
|
|
11
|
-
inverted?: boolean;
|
|
12
|
-
rounded?: boolean;
|
|
13
|
-
transparent?: boolean;
|
|
14
|
-
noShadow?: boolean;
|
|
15
|
-
noBorder?: boolean;
|
|
16
|
-
size?: Size;
|
|
17
|
-
offsetSides?: Array<OffsetSide>;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
} | any;
|
|
20
|
-
declare function IconButtonLink({ as: Component, containerRef, className, src, alt, badgeContent, inverted, noShadow, noBorder, transparent, rounded, offsetSides, disabled, size, ...props }: IconButtonLinkProps): JSX.Element;
|
|
21
|
-
export default IconButtonLink;
|
|
1
|
+
import { ElementType, ReactNode, RefObject } from "react";
|
|
2
|
+
import { Size } from "../../types";
|
|
3
|
+
declare type OffsetSide = "top" | "right" | "bottom" | "left";
|
|
4
|
+
declare type IconButtonLinkProps = {
|
|
5
|
+
as?: ElementType;
|
|
6
|
+
containerRef?: RefObject<HTMLElement>;
|
|
7
|
+
src: string;
|
|
8
|
+
alt: string;
|
|
9
|
+
badgeContent?: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
inverted?: boolean;
|
|
12
|
+
rounded?: boolean;
|
|
13
|
+
transparent?: boolean;
|
|
14
|
+
noShadow?: boolean;
|
|
15
|
+
noBorder?: boolean;
|
|
16
|
+
size?: Size;
|
|
17
|
+
offsetSides?: Array<OffsetSide>;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
} | any;
|
|
20
|
+
declare function IconButtonLink({ as: Component, containerRef, className, src, alt, badgeContent, inverted, noShadow, noBorder, transparent, rounded, offsetSides, disabled, size, ...props }: IconButtonLinkProps): JSX.Element;
|
|
21
|
+
export default IconButtonLink;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as IconButtonLink } from "./IconButtonLink";
|
|
1
|
+
export { default as IconButtonLink } from "./IconButtonLink";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React, { RefObject } from "react";
|
|
2
|
-
export declare type ImageProps = {
|
|
3
|
-
alt?: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
6
|
-
layout?: "cover" | "contain" | "stretchHorizontally" | "stretchVertically";
|
|
7
|
-
src: string;
|
|
8
|
-
srcWidth?: number;
|
|
9
|
-
srcHeight?: number;
|
|
10
|
-
decoding?: "async" | "sync" | "auto";
|
|
11
|
-
loading?: "eager" | "lazy";
|
|
12
|
-
};
|
|
13
|
-
declare function ImageComponent({ src, alt, srcWidth, srcHeight, children, containerRef, layout, decoding, loading }: ImageProps): JSX.Element;
|
|
14
|
-
export default ImageComponent;
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
|
+
export declare type ImageProps = {
|
|
3
|
+
alt?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
6
|
+
layout?: "cover" | "contain" | "stretchHorizontally" | "stretchVertically";
|
|
7
|
+
src: string;
|
|
8
|
+
srcWidth?: number;
|
|
9
|
+
srcHeight?: number;
|
|
10
|
+
decoding?: "async" | "sync" | "auto";
|
|
11
|
+
loading?: "eager" | "lazy";
|
|
12
|
+
};
|
|
13
|
+
declare function ImageComponent({ src, alt, srcWidth, srcHeight, children, containerRef, layout, decoding, loading }: ImageProps): JSX.Element;
|
|
14
|
+
export default ImageComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Image, ImageProps } from "./Image";
|
|
1
|
+
export { default as Image, ImageProps } from "./Image";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RefObject, ReactNode } from "react";
|
|
2
|
-
declare type LabelInputProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
containerRef?: RefObject<HTMLLabelElement>;
|
|
6
|
-
value: ReactNode;
|
|
7
|
-
};
|
|
8
|
-
declare function Label({ className, children, value, containerRef }: LabelInputProps): JSX.Element;
|
|
9
|
-
export default Label;
|
|
1
|
+
import { RefObject, ReactNode } from "react";
|
|
2
|
+
declare type LabelInputProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
containerRef?: RefObject<HTMLLabelElement>;
|
|
6
|
+
value: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare function Label({ className, children, value, containerRef }: LabelInputProps): JSX.Element;
|
|
9
|
+
export default Label;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Label } from "./Label";
|
|
1
|
+
export { default as Label } from "./Label";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from "react";
|
|
2
|
-
declare type ListViewProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
6
|
-
header?: string;
|
|
7
|
-
headerActions?: ReactNode;
|
|
8
|
-
};
|
|
9
|
-
declare function ListView({ children, className, containerRef, header, headerActions, }: ListViewProps): JSX.Element;
|
|
10
|
-
export default ListView;
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
|
+
declare type ListViewProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
6
|
+
header?: string;
|
|
7
|
+
headerActions?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare function ListView({ children, className, containerRef, header, headerActions, }: ListViewProps): JSX.Element;
|
|
10
|
+
export default ListView;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Size } from "../../types";
|
|
3
|
-
declare type ListViewItemProps = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
active?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
transparent?: boolean;
|
|
8
|
-
noPadding?: boolean;
|
|
9
|
-
size?: Size;
|
|
10
|
-
align?: "left" | "center";
|
|
11
|
-
onClick?: () => void;
|
|
12
|
-
};
|
|
13
|
-
declare function ListViewItem({ children, active, disabled, transparent, noPadding, size, align, onClick, }: ListViewItemProps): JSX.Element;
|
|
14
|
-
export default ListViewItem;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Size } from "../../types";
|
|
3
|
+
declare type ListViewItemProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
transparent?: boolean;
|
|
8
|
+
noPadding?: boolean;
|
|
9
|
+
size?: Size;
|
|
10
|
+
align?: "left" | "center";
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare function ListViewItem({ children, active, disabled, transparent, noPadding, size, align, onClick, }: ListViewItemProps): JSX.Element;
|
|
14
|
+
export default ListViewItem;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from "react";
|
|
2
|
-
import { Size } from "../../types";
|
|
3
|
-
declare type ListViewLinkItemProps = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
as?: ElementType;
|
|
6
|
-
active: boolean;
|
|
7
|
-
transparent: boolean;
|
|
8
|
-
noPadding: boolean;
|
|
9
|
-
align: "left" | "center";
|
|
10
|
-
size: Size;
|
|
11
|
-
} | any;
|
|
12
|
-
declare function ListViewLinkItem({ children, as: Component, active, transparent, noPadding, align, size, ...props }: ListViewLinkItemProps): JSX.Element;
|
|
13
|
-
export default ListViewLinkItem;
|
|
1
|
+
import { ElementType, ReactNode } from "react";
|
|
2
|
+
import { Size } from "../../types";
|
|
3
|
+
declare type ListViewLinkItemProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
as?: ElementType;
|
|
6
|
+
active: boolean;
|
|
7
|
+
transparent: boolean;
|
|
8
|
+
noPadding: boolean;
|
|
9
|
+
align: "left" | "center";
|
|
10
|
+
size: Size;
|
|
11
|
+
} | any;
|
|
12
|
+
declare function ListViewLinkItem({ children, as: Component, active, transparent, noPadding, align, size, ...props }: ListViewLinkItemProps): JSX.Element;
|
|
13
|
+
export default ListViewLinkItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as ListView } from "./ListView";
|
|
2
|
-
export { default as ListViewItem } from "./ListViewItem";
|
|
3
|
-
export { default as ListViewLinkItem } from "./ListViewLinkItem";
|
|
1
|
+
export { default as ListView } from "./ListView";
|
|
2
|
+
export { default as ListViewItem } from "./ListViewItem";
|
|
3
|
+
export { default as ListViewLinkItem } from "./ListViewLinkItem";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from "react";
|
|
2
|
-
declare type MenuProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
5
|
-
className?: string;
|
|
6
|
-
isOpen?: boolean;
|
|
7
|
-
header?: string;
|
|
8
|
-
footer?: ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare function Menu({ children, containerRef, className, isOpen, header, footer, }: MenuProps): JSX.Element;
|
|
11
|
-
export default Menu;
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
|
+
declare type MenuProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
5
|
+
className?: string;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
header?: string;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare function Menu({ children, containerRef, className, isOpen, header, footer, }: MenuProps): JSX.Element;
|
|
11
|
+
export default Menu;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, { ReactNode, ReactElement } from "react";
|
|
2
|
-
export declare type MenuPlacement = {
|
|
3
|
-
horizontal: "right" | "left";
|
|
4
|
-
vertical: "top" | "bottom";
|
|
5
|
-
};
|
|
6
|
-
declare type MenuContainerProps = {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
button?: ReactElement;
|
|
9
|
-
className?: string;
|
|
10
|
-
placement?: MenuPlacement;
|
|
11
|
-
};
|
|
12
|
-
declare const _default: React.ForwardRefExoticComponent<MenuContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export default _default;
|
|
1
|
+
import React, { ReactNode, ReactElement } from "react";
|
|
2
|
+
export declare type MenuPlacement = {
|
|
3
|
+
horizontal: "right" | "left";
|
|
4
|
+
vertical: "top" | "bottom";
|
|
5
|
+
};
|
|
6
|
+
declare type MenuContainerProps = {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
button?: ReactElement;
|
|
9
|
+
className?: string;
|
|
10
|
+
placement?: MenuPlacement;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: React.ForwardRefExoticComponent<MenuContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode, SyntheticEvent } from "react";
|
|
2
|
-
declare type MenuItemProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
isActive?: boolean;
|
|
6
|
-
noPadding?: boolean;
|
|
7
|
-
onClick?: (event?: SyntheticEvent<HTMLLIElement>) => void;
|
|
8
|
-
};
|
|
9
|
-
declare function MenuItem({ children, className, onClick, noPadding, isActive, }: MenuItemProps): JSX.Element;
|
|
10
|
-
export default MenuItem;
|
|
1
|
+
import { ReactNode, SyntheticEvent } from "react";
|
|
2
|
+
declare type MenuItemProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
noPadding?: boolean;
|
|
7
|
+
onClick?: (event?: SyntheticEvent<HTMLLIElement>) => void;
|
|
8
|
+
};
|
|
9
|
+
declare function MenuItem({ children, className, onClick, noPadding, isActive, }: MenuItemProps): JSX.Element;
|
|
10
|
+
export default MenuItem;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactNode, ElementType } from "react";
|
|
2
|
-
declare type MenuLinkItemProps = {
|
|
3
|
-
as: ElementType;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className: string;
|
|
6
|
-
noPadding?: boolean;
|
|
7
|
-
} | any;
|
|
8
|
-
declare function MenuLinkItem({ as: Component, children, className, noPadding, ...props }: MenuLinkItemProps): JSX.Element;
|
|
9
|
-
export default MenuLinkItem;
|
|
1
|
+
import { ReactNode, ElementType } from "react";
|
|
2
|
+
declare type MenuLinkItemProps = {
|
|
3
|
+
as: ElementType;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className: string;
|
|
6
|
+
noPadding?: boolean;
|
|
7
|
+
} | any;
|
|
8
|
+
declare function MenuLinkItem({ as: Component, children, className, noPadding, ...props }: MenuLinkItemProps): JSX.Element;
|
|
9
|
+
export default MenuLinkItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Menu } from "./Menu";
|
|
2
|
-
export { default as MenuContainer, MenuPlacement } from "./MenuContainer";
|
|
3
|
-
export { default as MenuItem } from "./MenuItem";
|
|
4
|
-
export { default as MenuLinkItem } from "./MenuLinkItem";
|
|
1
|
+
export { default as Menu } from "./Menu";
|
|
2
|
+
export { default as MenuContainer, MenuPlacement } from "./MenuContainer";
|
|
3
|
+
export { default as MenuItem } from "./MenuItem";
|
|
4
|
+
export { default as MenuLinkItem } from "./MenuLinkItem";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from "react";
|
|
2
|
-
declare type ModalProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
button?: ReactNode;
|
|
8
|
-
transparent?: boolean;
|
|
9
|
-
noShadow?: boolean;
|
|
10
|
-
noOverlay?: boolean;
|
|
11
|
-
baseZIndex?: number;
|
|
12
|
-
};
|
|
13
|
-
declare function Modal({ children, containerRef, isOpen, button, transparent, noShadow, noOverlay, onClose, baseZIndex, }: ModalProps): JSX.Element;
|
|
14
|
-
export default Modal;
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
|
+
declare type ModalProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
button?: ReactNode;
|
|
8
|
+
transparent?: boolean;
|
|
9
|
+
noShadow?: boolean;
|
|
10
|
+
noOverlay?: boolean;
|
|
11
|
+
baseZIndex?: number;
|
|
12
|
+
};
|
|
13
|
+
declare function Modal({ children, containerRef, isOpen, button, transparent, noShadow, noOverlay, onClose, baseZIndex, }: ModalProps): JSX.Element;
|
|
14
|
+
export default Modal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Modal } from "./Modal";
|
|
1
|
+
export { default as Modal } from "./Modal";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from "react";
|
|
2
|
-
declare type OverlayProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
5
|
-
transparent?: boolean;
|
|
6
|
-
isFixed?: boolean;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
};
|
|
9
|
-
declare function Overlay({ children, containerRef, transparent, isFixed, onClick, }: OverlayProps): JSX.Element;
|
|
10
|
-
export default Overlay;
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
|
+
declare type OverlayProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
5
|
+
transparent?: boolean;
|
|
6
|
+
isFixed?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare function Overlay({ children, containerRef, transparent, isFixed, onClick, }: OverlayProps): JSX.Element;
|
|
10
|
+
export default Overlay;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Overlay } from "./Overlay";
|
|
1
|
+
export { default as Overlay } from "./Overlay";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Size, TextInputType } from "../../types";
|
|
3
|
-
declare type TextInputProps = {
|
|
4
|
-
label?: string;
|
|
5
|
-
onChange?: (value: string) => void;
|
|
6
|
-
onBlur?: () => void;
|
|
7
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
value?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
type?: TextInputType;
|
|
12
|
-
size?: Size;
|
|
13
|
-
noBorder?: boolean;
|
|
14
|
-
autoFocus?: boolean;
|
|
15
|
-
inputRef?: React.RefObject<HTMLInputElement>;
|
|
16
|
-
};
|
|
17
|
-
declare function TextInput({ label, onChange, onBlur, onKeyDown, placeholder, value, name, inputRef, size, type, autoFocus, noBorder, }: TextInputProps): JSX.Element;
|
|
18
|
-
export default TextInput;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Size, TextInputType } from "../../types";
|
|
3
|
+
declare type TextInputProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
onBlur?: () => void;
|
|
7
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
type?: TextInputType;
|
|
12
|
+
size?: Size;
|
|
13
|
+
noBorder?: boolean;
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
16
|
+
};
|
|
17
|
+
declare function TextInput({ label, onChange, onBlur, onKeyDown, placeholder, value, name, inputRef, size, type, autoFocus, noBorder, }: TextInputProps): JSX.Element;
|
|
18
|
+
export default TextInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as TextInput } from "./TextInput";
|
|
1
|
+
export { default as TextInput } from "./TextInput";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from "react";
|
|
2
|
-
declare type ToastProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
};
|
|
7
|
-
declare function Toast({ children, containerRef, onClick }: ToastProps): JSX.Element;
|
|
8
|
-
export default Toast;
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
|
+
declare type ToastProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare function Toast({ children, containerRef, onClick }: ToastProps): JSX.Element;
|
|
8
|
+
export default Toast;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
declare type ToastContainerProps = {
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
baseZIndex?: number;
|
|
5
|
-
};
|
|
6
|
-
declare function ToastContainer({ children, baseZIndex }: ToastContainerProps): JSX.Element;
|
|
7
|
-
export default ToastContainer;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
declare type ToastContainerProps = {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
baseZIndex?: number;
|
|
5
|
+
};
|
|
6
|
+
declare function ToastContainer({ children, baseZIndex }: ToastContainerProps): JSX.Element;
|
|
7
|
+
export default ToastContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Toast } from "./Toast";
|
|
2
|
-
export { default as ToastContainer } from "./ToastContainer";
|
|
1
|
+
export { default as Toast } from "./Toast";
|
|
2
|
+
export { default as ToastContainer } from "./ToastContainer";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* There is a known issue in React in regards to the 'muted' property which causes the warning:
|
|
4
|
-
* "Warning: unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering."
|
|
5
|
-
*
|
|
6
|
-
* https://github.com/facebook/react/issues/10389
|
|
7
|
-
* https://github.com/facebook/react/issues/6544
|
|
8
|
-
* https://github.com/testing-library/react-testing-library/issues/470
|
|
9
|
-
*/
|
|
10
|
-
declare type Layout = "cover" | "contain" | "stretchHorizontally" | "stretchVertically";
|
|
11
|
-
export declare type VideoProps = {
|
|
12
|
-
src: string;
|
|
13
|
-
type: string;
|
|
14
|
-
layout?: Layout;
|
|
15
|
-
autoPlay?: boolean;
|
|
16
|
-
loop?: boolean;
|
|
17
|
-
muted?: boolean;
|
|
18
|
-
children?: ReactNode;
|
|
19
|
-
containerRef?: RefObject<HTMLDivElement>;
|
|
20
|
-
poster?: string;
|
|
21
|
-
};
|
|
22
|
-
declare function Video({ src, type, children, containerRef, poster, muted, loop, autoPlay, layout, }: VideoProps): JSX.Element;
|
|
23
|
-
export default Video;
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* There is a known issue in React in regards to the 'muted' property which causes the warning:
|
|
4
|
+
* "Warning: unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering."
|
|
5
|
+
*
|
|
6
|
+
* https://github.com/facebook/react/issues/10389
|
|
7
|
+
* https://github.com/facebook/react/issues/6544
|
|
8
|
+
* https://github.com/testing-library/react-testing-library/issues/470
|
|
9
|
+
*/
|
|
10
|
+
declare type Layout = "cover" | "contain" | "stretchHorizontally" | "stretchVertically";
|
|
11
|
+
export declare type VideoProps = {
|
|
12
|
+
src: string;
|
|
13
|
+
type: string;
|
|
14
|
+
layout?: Layout;
|
|
15
|
+
autoPlay?: boolean;
|
|
16
|
+
loop?: boolean;
|
|
17
|
+
muted?: boolean;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
20
|
+
poster?: string;
|
|
21
|
+
};
|
|
22
|
+
declare function Video({ src, type, children, containerRef, poster, muted, loop, autoPlay, layout, }: VideoProps): JSX.Element;
|
|
23
|
+
export default Video;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Video, VideoProps } from "./Video";
|
|
1
|
+
export { default as Video, VideoProps } from "./Video";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useToggle(initialValue?: boolean): [boolean, (newValue?: boolean) => void];
|