@touchtech/baselayer-ui 8.1.17 → 8.2.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/dist/components/TagsInput/TagsInput.d.ts +18 -0
- package/dist/components/TagsInput/TagsInput.stories.d.ts +8 -0
- package/dist/components/TagsInput/__tests__/TagsInput.test.d.ts +1 -0
- package/dist/components/TagsInput/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +11 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -2
- package/dist/styles.css +159 -40
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Size, TextInputMode, TextInputType } from "../../types";
|
|
3
|
+
type TagsInputProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
onChange?: (values: string[]) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
value?: string[];
|
|
8
|
+
name?: string;
|
|
9
|
+
pattern?: string;
|
|
10
|
+
type?: TextInputType;
|
|
11
|
+
size?: Size;
|
|
12
|
+
noBorder?: boolean;
|
|
13
|
+
autoFocus?: boolean;
|
|
14
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
15
|
+
inputMode?: TextInputMode;
|
|
16
|
+
};
|
|
17
|
+
declare function TagsInput({ className, onChange, placeholder, value, name, pattern, inputRef, size, type, autoFocus, noBorder, inputMode, }: TagsInputProps): JSX.Element;
|
|
18
|
+
export default TagsInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TagsInput } from "./TagsInput";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
type TooltipProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
text: string;
|
|
5
|
+
placement: "left" | "right" | "top" | "bottom";
|
|
6
|
+
showTooltip: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare function Tooltip({ children, text, placement, showTooltip }: TooltipProps): JSX.Element;
|
|
9
|
+
export default Tooltip;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { Tooltip as component };
|
|
3
|
+
export const title: string;
|
|
4
|
+
}
|
|
5
|
+
export default _default;
|
|
6
|
+
export function PlacementLeft(): JSX.Element;
|
|
7
|
+
export function PlacementRight(): JSX.Element;
|
|
8
|
+
export function PlacementTop(): JSX.Element;
|
|
9
|
+
export function PlacementBottom(): JSX.Element;
|
|
10
|
+
export function NotDisplayedForActiveElement(): JSX.Element;
|
|
11
|
+
import Tooltip from "./Tooltip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tooltip } from "./Tooltip";
|
package/dist/index.d.ts
CHANGED
|
@@ -16,11 +16,13 @@ export * from "./components/Label";
|
|
|
16
16
|
export * from "./components/ListView";
|
|
17
17
|
export * from "./components/Menu";
|
|
18
18
|
export * from "./components/Modal";
|
|
19
|
+
export * from "./components/Numpad";
|
|
19
20
|
export * from "./components/Overlay";
|
|
20
21
|
export * from "./components/Select";
|
|
21
|
-
export * from "./components/Tag";
|
|
22
22
|
export * from "./components/Table";
|
|
23
|
+
export * from "./components/Tag";
|
|
24
|
+
export * from "./components/TagsInput";
|
|
23
25
|
export * from "./components/TextInput";
|
|
24
26
|
export * from "./components/Toast";
|
|
27
|
+
export * from "./components/Tooltip";
|
|
25
28
|
export * from "./components/Video";
|
|
26
|
-
export * from "./components/Numpad";
|