@touchtech/baselayer-ui 2.5.1 → 2.5.3
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/dist/index.js +12 -0
- package/package.json +2 -2
- package/dist/bundle.js +0 -12
- package/dist/components/Button/Button.d.ts +0 -22
- package/dist/components/Button/__tests__/Button.test.d.ts +0 -1
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/ButtonLink/ButtonLink.d.ts +0 -21
- package/dist/components/ButtonLink/__tests__/ButtonLink.test.d.ts +0 -1
- package/dist/components/ButtonLink/index.d.ts +0 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +0 -9
- package/dist/components/ColorPicker/__tests__/ColorPicker.test.d.ts +0 -1
- package/dist/components/ColorPicker/index.d.ts +0 -1
- package/dist/components/ColorSwatch/ColorSwatch.d.ts +0 -8
- package/dist/components/ColorSwatch/__tests__/ColorSwatch.test.d.ts +0 -1
- package/dist/components/ColorSwatch/index.d.ts +0 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -15
- package/dist/components/ConfirmationModal/__tests__/ConfirmationModal.test.d.ts +0 -1
- package/dist/components/ConfirmationModal/index.d.ts +0 -1
- package/dist/components/FloatingPanel/FloatingPanel.d.ts +0 -13
- package/dist/components/FloatingPanel/__tests__/FloatingPanel.test.d.ts +0 -1
- package/dist/components/FloatingPanel/index.d.ts +0 -1
- package/dist/components/Icon/Icon.d.ts +0 -8
- package/dist/components/Icon/__tests__/Icon.test.d.ts +0 -1
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/IconButton/IconButton.d.ts +0 -17
- package/dist/components/IconButton/__tests__/IconButton.test.d.ts +0 -1
- package/dist/components/IconButton/index.d.ts +0 -1
- package/dist/components/IconButtonLink/IconButtonLink.d.ts +0 -18
- package/dist/components/IconButtonLink/__tests__/IconButtonLink.test.d.ts +0 -1
- package/dist/components/IconButtonLink/index.d.ts +0 -1
- package/dist/components/Image/Image.d.ts +0 -11
- package/dist/components/Image/__tests__/Image.test.d.ts +0 -1
- package/dist/components/Image/index.d.ts +0 -1
- package/dist/components/ListView/ListView.d.ts +0 -8
- package/dist/components/ListView/ListViewItem.d.ts +0 -14
- package/dist/components/ListView/__tests__/ListView.test.d.ts +0 -1
- package/dist/components/ListView/index.d.ts +0 -3
- package/dist/components/Menu/Menu.d.ts +0 -14
- package/dist/components/Menu/MenuContainer.d.ts +0 -10
- package/dist/components/Menu/MenuItem.d.ts +0 -9
- package/dist/components/Menu/MenuLinkItem.d.ts +0 -8
- package/dist/components/Menu/__tests__/Menu.test.d.ts +0 -1
- package/dist/components/Menu/__tests__/MenuLinkItem.test.d.ts +0 -1
- package/dist/components/Menu/index.d.ts +0 -4
- package/dist/components/Modal/Modal.d.ts +0 -9
- package/dist/components/Modal/__tests__/Modal.test.d.ts +0 -1
- package/dist/components/Modal/index.d.ts +0 -1
- package/dist/components/Overlay/Overlay.d.ts +0 -9
- package/dist/components/Overlay/__tests__/Overlay.test.d.ts +0 -1
- package/dist/components/Overlay/index.d.ts +0 -1
- package/dist/components/TextInput/TextInput.d.ts +0 -16
- package/dist/components/TextInput/__tests__/TextInput.test.d.ts +0 -1
- package/dist/components/TextInput/index.d.ts +0 -1
- package/dist/components/Toast/Toast.d.ts +0 -13
- package/dist/components/Toast/ToastContainer.d.ts +0 -6
- package/dist/components/Toast/__tests__/Toast.test.d.ts +0 -1
- package/dist/components/Toast/__tests__/ToastContainer.test.d.ts +0 -1
- package/dist/components/Toast/index.d.ts +0 -2
- package/dist/components/Video/Video.d.ts +0 -21
- package/dist/components/Video/__tests__/Video.test.d.ts +0 -1
- package/dist/components/Video/index.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/useOutsideClick.d.ts +0 -4
- package/dist/hooks/useToggle.d.ts +0 -5
- package/dist/index.d.ts +0 -18
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare type ImageProps = {
|
|
3
|
-
src: string;
|
|
4
|
-
alt?: string;
|
|
5
|
-
srcWidth?: number;
|
|
6
|
-
srcHeight?: number;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
layout?: "cover" | "contain" | "stretchHorizontally" | "stretchVertically";
|
|
9
|
-
};
|
|
10
|
-
declare function Image({ src, alt, srcWidth, srcHeight, children, layout }: ImageProps): JSX.Element;
|
|
11
|
-
export default Image;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Image } from "./Image";
|
|
@@ -1,14 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
declare type Placement = {
|
|
3
|
-
horizontal: "right" | "left";
|
|
4
|
-
vertical: "top" | "bottom";
|
|
5
|
-
};
|
|
6
|
-
declare type MenuProps = {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
className?: string;
|
|
9
|
-
isOpen?: boolean;
|
|
10
|
-
header?: string;
|
|
11
|
-
placement?: Placement;
|
|
12
|
-
};
|
|
13
|
-
declare function Menu({ children, className, isOpen, placement, header }: MenuProps): JSX.Element;
|
|
14
|
-
export default Menu;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
declare type MenuContainerProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
ref?: () => void | {
|
|
6
|
-
current: any;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<MenuContainerProps, "children" | "className"> & React.RefAttributes<unknown>>;
|
|
10
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
declare type MenuItemProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
isActive?: boolean;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
};
|
|
8
|
-
declare function MenuItem({ children, className, onClick, isActive }: MenuItemProps): JSX.Element;
|
|
9
|
-
export default MenuItem;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode, ReactType } from "react";
|
|
2
|
-
declare type MenuLinkItemProps = {
|
|
3
|
-
as: ReactType;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className: string;
|
|
6
|
-
} | any;
|
|
7
|
-
declare function MenuLinkItem({ as: Component, children, className, ...props }: MenuLinkItemProps): JSX.Element;
|
|
8
|
-
export default MenuLinkItem;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
declare type ModalProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
onClose?: () => void;
|
|
6
|
-
button?: ReactNode;
|
|
7
|
-
};
|
|
8
|
-
declare function Modal({ children, isOpen, button, onClose }: ModalProps): JSX.Element;
|
|
9
|
-
export default Modal;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Modal } from "./Modal";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
declare type OverlayProps = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
transparent?: boolean;
|
|
5
|
-
isFixed?: boolean;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
};
|
|
8
|
-
declare function Overlay({ children, transparent, isFixed, onClick }: OverlayProps): JSX.Element;
|
|
9
|
-
export default Overlay;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Overlay } from "./Overlay";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Size, TextInputType } from "../../types";
|
|
2
|
-
declare type TextInputProps = {
|
|
3
|
-
label: string;
|
|
4
|
-
onChange?: (value: string) => void;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
value?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
type?: TextInputType;
|
|
9
|
-
size?: Size;
|
|
10
|
-
autoFocus?: boolean;
|
|
11
|
-
inputRef?: () => void | {
|
|
12
|
-
current: any;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
declare function TextInput({ label, onChange, placeholder, value, name, inputRef, size, autoFocus, type, }: TextInputProps): JSX.Element;
|
|
16
|
-
export default TextInput;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TextInput } from "./TextInput";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ReactNode, ReactNodeArray } from "react";
|
|
2
|
-
declare type ImageType = {
|
|
3
|
-
src: string;
|
|
4
|
-
alt: string;
|
|
5
|
-
};
|
|
6
|
-
declare type ToastProps = {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
buttons: ReactNodeArray;
|
|
9
|
-
image?: ImageType;
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
};
|
|
12
|
-
declare function Toast({ children, image, buttons, onClick }: ToastProps): JSX.Element;
|
|
13
|
-
export default Toast;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ReactNode } 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
|
-
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
|
-
};
|
|
20
|
-
declare function Video({ src, type, children, muted, loop, autoPlay, layout }: VideoProps): JSX.Element;
|
|
21
|
-
export default Video;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Video } from "./Video";
|
package/dist/hooks/index.d.ts
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from "./components/Button";
|
|
2
|
-
export * from "./components/ButtonLink";
|
|
3
|
-
export * from "./components/ColorPicker";
|
|
4
|
-
export * from "./components/ColorSwatch";
|
|
5
|
-
export * from "./components/ConfirmationModal";
|
|
6
|
-
export * from "./components/FloatingPanel";
|
|
7
|
-
export * from "./components/Icon";
|
|
8
|
-
export * from "./components/IconButton";
|
|
9
|
-
export * from "./components/IconButtonLink";
|
|
10
|
-
export * from "./components/Image";
|
|
11
|
-
export * from "./components/ListView";
|
|
12
|
-
export * from "./components/Menu";
|
|
13
|
-
export * from "./components/Modal";
|
|
14
|
-
export * from "./components/Overlay";
|
|
15
|
-
export * from "./components/TextInput";
|
|
16
|
-
export * from "./components/Toast";
|
|
17
|
-
export * from "./components/Video";
|
|
18
|
-
export * from "./hooks";
|