@touchtech/baselayer-ui 8.3.3 → 8.3.4-alpha.1
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/Drawer/Drawer.d.ts +4 -2
- package/dist/components/Radio/Radio.d.ts +8 -0
- package/dist/components/Radio/Radio.stories.d.ts +10 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/TextField/TextField.d.ts +21 -0
- package/dist/components/TextField/TextField.stories.d.ts +25 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/icons/Asterisk.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/styles.css +24 -3
- package/package.json +4 -1
|
@@ -6,7 +6,9 @@ type DrawerProps = {
|
|
|
6
6
|
open: boolean;
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
|
|
9
|
+
noCloseIcon?: boolean;
|
|
10
|
+
unmountOnExit?: boolean;
|
|
11
|
+
onClose?: () => void;
|
|
10
12
|
};
|
|
11
|
-
declare function Drawer({ header, footer, open,
|
|
13
|
+
declare function Drawer({ header, footer, open, className, style, noCloseIcon, onClose, children, unmountOnExit, }: DrawerProps): JSX.Element;
|
|
12
14
|
export default Drawer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
title: string | React.ReactNode;
|
|
5
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const Radio: ({ checked, onChange, title }: Props) => JSX.Element;
|
|
8
|
+
export default Radio;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Radio";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TextFieldType = "text" | "password" | "email";
|
|
3
|
+
export type TextFieldMode = "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
4
|
+
export type TextFieldProps = {
|
|
5
|
+
label?: string;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
onBlur?: () => void;
|
|
8
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
pattern?: string;
|
|
13
|
+
type?: TextFieldType;
|
|
14
|
+
autoFocus?: boolean;
|
|
15
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
16
|
+
inputMode?: TextFieldMode;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare function TextField({ label, onChange, onBlur, onKeyDown, placeholder, value, name, pattern, inputRef, type, autoFocus, inputMode, required, disabled, }: TextFieldProps): JSX.Element;
|
|
21
|
+
export default TextField;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { TextField as component };
|
|
3
|
+
export const title: string;
|
|
4
|
+
}
|
|
5
|
+
export default _default;
|
|
6
|
+
export function Default(): JSX.Element;
|
|
7
|
+
export namespace Default {
|
|
8
|
+
const parameters: any;
|
|
9
|
+
}
|
|
10
|
+
export function WithoutLabel(): JSX.Element;
|
|
11
|
+
export namespace WithoutLabel {
|
|
12
|
+
const parameters_1: any;
|
|
13
|
+
export { parameters_1 as parameters };
|
|
14
|
+
}
|
|
15
|
+
export function WithOnBlur(): JSX.Element;
|
|
16
|
+
export namespace WithOnBlur {
|
|
17
|
+
const parameters_2: any;
|
|
18
|
+
export { parameters_2 as parameters };
|
|
19
|
+
}
|
|
20
|
+
export function WithPattern(): JSX.Element;
|
|
21
|
+
export namespace WithPattern {
|
|
22
|
+
const parameters_3: any;
|
|
23
|
+
export { parameters_3 as parameters };
|
|
24
|
+
}
|
|
25
|
+
import TextField from "./TextField";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextField } from "./TextField";
|