@rbxts/uiblox 0.1.13 → 0.1.15
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 +10 -10
- package/out/index.d.ts +2 -0
- package/out/theme/components/ThemeProducer.d.ts +7 -0
- package/out/theme/components/ThemeProvider.d.ts +7 -0
- package/out/theme/components/ThemeWrapper.d.ts +7 -0
- package/out/theme/components/index.d.ts +5 -0
- package/out/theme/constants/NumberConstants.d.ts +6 -0
- package/out/theme/constants/ThemeConstants.d.ts +5 -0
- package/out/theme/constants/index.d.ts +2 -0
- package/out/theme/index.d.ts +19 -0
- package/out/theme/interfaces/iconSizes/IconSizes.d.ts +5 -0
- package/out/theme/interfaces/iconSizes/index.d.ts +1 -0
- package/out/theme/interfaces/index.d.ts +13 -0
- package/out/theme/interfaces/palette/Palette.d.ts +26 -0
- package/out/theme/interfaces/palette/colorTokens/ColorTokens.d.ts +4 -0
- package/out/theme/interfaces/palette/colorTokens/index.d.ts +1 -0
- package/out/theme/interfaces/palette/colors/Blue.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Colors.d.ts +42 -0
- package/out/theme/interfaces/palette/colors/Common.d.ts +6 -0
- package/out/theme/interfaces/palette/colors/Dark.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Gray.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Green.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Light.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Magenta.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Orange.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Purple.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Red.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Turquoise.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/Yellow.d.ts +3 -0
- package/out/theme/interfaces/palette/colors/index.d.ts +13 -0
- package/out/theme/interfaces/palette/index.d.ts +3 -0
- package/out/theme/interfaces/spacing/Borders.d.ts +4 -0
- package/out/theme/interfaces/spacing/Padding.d.ts +4 -0
- package/out/theme/interfaces/spacing/Shape.d.ts +3 -0
- package/out/theme/interfaces/spacing/Spacing.d.ts +4 -0
- package/out/theme/interfaces/spacing/index.d.ts +4 -0
- package/out/theme/interfaces/theme/Theme.d.ts +14 -0
- package/out/theme/interfaces/theme/ThemeConstants.d.ts +25 -0
- package/out/theme/interfaces/theme/ThemeOptions.d.ts +4 -0
- package/out/theme/interfaces/theme/index.d.ts +3 -0
- package/out/theme/interfaces/tokens/Tokens.d.ts +1 -0
- package/out/theme/interfaces/tokens/index.d.ts +1 -0
- package/out/theme/interfaces/typography/FontFamilies.d.ts +2 -0
- package/out/theme/interfaces/typography/FontFamilyOptions.d.ts +3 -0
- package/out/theme/interfaces/typography/FontSizeOptions.d.ts +3 -0
- package/out/theme/interfaces/typography/FontSizes.d.ts +3 -0
- package/out/theme/interfaces/typography/ThemeTypography.d.ts +7 -0
- package/out/theme/interfaces/typography/Variants.d.ts +18 -0
- package/out/theme/interfaces/typography/index.d.ts +8 -0
- package/out/theme/styles/index.d.ts +5 -0
- package/out/theme/styles/types/WriteableStyle.d.ts +1 -0
- package/out/theme/styles/types/index.d.ts +2 -0
- package/out/theme/styles/types/styles.d.ts +2 -0
- package/out/theme/styles/utilities/classNames.d.ts +7 -0
- package/out/theme/styles/utilities/classNames.luau +15 -1
- package/out/theme/styles/utilities/createStyles.d.ts +3 -0
- package/out/theme/styles/utilities/index.d.ts +3 -0
- package/out/theme/styles/utilities/makeStyles.d.ts +7 -0
- package/out/theme/themes/DarkTheme.d.ts +3 -0
- package/out/theme/themes/LightTheme.d.ts +3 -0
- package/out/theme/themes/index.d.ts +3 -0
- package/out/theme/types/index.d.ts +7 -0
- package/out/theme/types/types.d.ts +12 -0
- package/out/theme/utilites/Color3FromHex.d.ts +2 -0
- package/out/theme/utilites/index.d.ts +1 -0
- package/out/ui/constants/ImageConstants.d.ts +2 -0
- package/out/ui/constants/LayoutConstants.d.ts +1 -0
- package/out/ui/constants/index.d.ts +2 -0
- package/out/ui/enums/Directions.d.ts +8 -0
- package/out/ui/enums/Icons.d.ts +40 -0
- package/out/ui/enums/Orientations.d.ts +4 -0
- package/out/ui/enums/index.d.ts +3 -0
- package/out/ui/index.d.ts +34 -0
- package/out/ui/packages/button/components/Button.d.ts +24 -0
- package/out/ui/packages/button/components/Button.styles.d.ts +3 -0
- package/out/ui/packages/button/index.d.ts +6 -0
- package/out/ui/packages/button/types/ButtonColor.d.ts +1 -0
- package/out/ui/packages/button/types/ButtonSize.d.ts +1 -0
- package/out/ui/packages/button/types/ButtonVariant.d.ts +1 -0
- package/out/ui/packages/button/types/index.d.ts +3 -0
- package/out/ui/packages/divider/components/Divider.d.ts +13 -0
- package/out/ui/packages/divider/components/Divider.styles.d.ts +3 -0
- package/out/ui/packages/divider/index.d.ts +3 -0
- package/out/ui/packages/icon/components/Icon.d.ts +10 -0
- package/out/ui/packages/icon/components/Icon.styles.d.ts +3 -0
- package/out/ui/packages/icon/index.d.ts +3 -0
- package/out/ui/packages/iconButton/components/IconButton.d.ts +12 -0
- package/out/ui/packages/iconButton/components/IconButton.styles.d.ts +3 -0
- package/out/ui/packages/iconButton/index.d.ts +3 -0
- package/out/ui/packages/index.d.ts +11 -0
- package/out/ui/packages/input/components/Input.d.ts +22 -0
- package/out/ui/packages/input/components/Input.styles.d.ts +3 -0
- package/out/ui/packages/input/index.d.ts +6 -0
- package/out/ui/packages/input/types/InputColor.d.ts +1 -0
- package/out/ui/packages/input/types/InputMargin.d.ts +1 -0
- package/out/ui/packages/input/types/InputVariant.d.ts +1 -0
- package/out/ui/packages/input/types/index.d.ts +3 -0
- package/out/ui/packages/progressBar/components/ProgressBar.d.ts +7 -0
- package/out/ui/packages/progressBar/components/ProgressBar.styles.d.ts +2 -0
- package/out/ui/packages/progressBar/index.d.ts +3 -0
- package/out/ui/packages/shadow/components/Shadow.d.ts +2 -0
- package/out/ui/packages/shadow/components/Shadow.styles.d.ts +2 -0
- package/out/ui/packages/shadow/index.d.ts +2 -0
- package/out/ui/packages/sidebar/components/Sidebar.d.ts +8 -0
- package/out/ui/packages/sidebar/components/Sidebar.styles.d.ts +3 -0
- package/out/ui/packages/sidebar/index.d.ts +4 -0
- package/out/ui/packages/sidebar/types/SidebarType.d.ts +1 -0
- package/out/ui/packages/sidebar/types/index.d.ts +1 -0
- package/out/ui/packages/toast/components/Toast.d.ts +10 -0
- package/out/ui/packages/toast/components/Toast.styles.d.ts +3 -0
- package/out/ui/packages/toast/enums/ToastVariants.d.ts +7 -0
- package/out/ui/packages/toast/index.d.ts +5 -0
- package/out/ui/packages/toast/interfaces/ToastEvent.d.ts +5 -0
- package/out/ui/packages/treeView/components/TreeView.d.ts +11 -0
- package/out/ui/packages/treeView/components/TreeView.styles.d.ts +2 -0
- package/out/ui/packages/treeView/index.d.ts +6 -0
- package/out/ui/packages/treeView/interfaces/Branch.d.ts +6 -0
- package/out/ui/packages/treeView/interfaces/Leaf.d.ts +4 -0
- package/out/ui/packages/treeView/interfaces/Tree.d.ts +5 -0
- package/out/ui/packages/typography/components/Typography.d.ts +18 -0
- package/out/ui/packages/typography/components/Typography.styles.d.ts +3 -0
- package/out/ui/packages/typography/index.d.ts +6 -0
- package/out/ui/packages/typography/types/TypographyAlignment.d.ts +1 -0
- package/out/ui/packages/typography/types/TypographyColor.d.ts +1 -0
- package/out/ui/packages/typography/types/TypographyDisplay.d.ts +1 -0
- package/out/ui/packages/typography/types/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare enum Icons {
|
|
2
|
+
Delete = "rbxassetid://8583122940",
|
|
3
|
+
Move = "rbxassetid://8583137072",
|
|
4
|
+
OpenBox = "rbxassetid://8583122847",
|
|
5
|
+
Rotate2D = "rbxassetid://8583123169",
|
|
6
|
+
Rotate3D = "rbxassetid://8583123075",
|
|
7
|
+
Swipe = "rbxassetid://8583122640",
|
|
8
|
+
House = "rbxassetid://8771814151",
|
|
9
|
+
Furniture = "rbxassetid://8771814395",
|
|
10
|
+
Room = "rbxassetid://8771813821",
|
|
11
|
+
Arcade = "rbxassetid://8771986472",
|
|
12
|
+
Controller = "rbxassetid://8771986353",
|
|
13
|
+
Joystick = "rbxassetid://8771986232",
|
|
14
|
+
Save = "rbxassetid://8772040340",
|
|
15
|
+
EditEnabled = "rbxassetid://8772040549",
|
|
16
|
+
EditDisabled = "rbxassetid://8772040755",
|
|
17
|
+
Settings = "rbxassetid://8793943638",
|
|
18
|
+
VerticalDots = "rbxassetid://8793943269",
|
|
19
|
+
HorizontalDots = "rbxassetid://8793943828",
|
|
20
|
+
Store = "rbxassetid://8794697193",
|
|
21
|
+
Dresser = "rbxassetid://8794697532",
|
|
22
|
+
Hangar = "rbxassetid://8794697340",
|
|
23
|
+
Friends = "rbxassetid://8794697424",
|
|
24
|
+
Charity = "rbxassetid://8794697659",
|
|
25
|
+
Backpack = "rbxassetid://8794716095",
|
|
26
|
+
HelpBubble = "rbxassetid://8794738823",
|
|
27
|
+
HelpDesk = "rbxassetid://8835822182",
|
|
28
|
+
NewspaperVariant1 = "rbxassetid://9056545367",
|
|
29
|
+
NewspaperVariant2 = "rbxassetid://9056545251",
|
|
30
|
+
NewspaperVariant3 = "rbxassetid://9056545032",
|
|
31
|
+
Close = "rbxassetid://9070598165",
|
|
32
|
+
CloseCircle = "rbxassetid://9070597768",
|
|
33
|
+
Collapsed = "rbxassetid://9306279342",
|
|
34
|
+
Expanded = "rbxassetid://9306279848",
|
|
35
|
+
Book = "rbxassetid://9311703342",
|
|
36
|
+
BookStack = "rbxassetid://9311703545",
|
|
37
|
+
ListPrimary = "rbxassetid://9306610505",
|
|
38
|
+
LightTheme = "rbxassetid://9377269022",
|
|
39
|
+
DarkTheme = "rbxassetid://9377269322"
|
|
40
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export * from "./constants/index";
|
|
2
|
+
export * from "./enums/index";
|
|
3
|
+
export { Divider } from "./packages/index";
|
|
4
|
+
export { DividerProps } from "./packages/index";
|
|
5
|
+
export { Icon } from "./packages/index";
|
|
6
|
+
export { IconProps } from "./packages/index";
|
|
7
|
+
export { IconButton } from "./packages/index";
|
|
8
|
+
export { IconButtonProps } from "./packages/index";
|
|
9
|
+
export { Input } from "./packages/index";
|
|
10
|
+
export { InputProps } from "./packages/index";
|
|
11
|
+
export { InputColor } from "./packages/index";
|
|
12
|
+
export { InputMargin } from "./packages/index";
|
|
13
|
+
export { InputVariant } from "./packages/index";
|
|
14
|
+
export { ProgressBar } from "./packages/index";
|
|
15
|
+
export { ProgressBarProps } from "./packages/index";
|
|
16
|
+
export { Shadow } from "./packages/index";
|
|
17
|
+
export { Sidebar } from "./packages/index";
|
|
18
|
+
export { SidebarProps } from "./packages/index";
|
|
19
|
+
export { SidebarType } from "./packages/index";
|
|
20
|
+
export { Toast } from "./packages/index";
|
|
21
|
+
export { ToastProps } from "./packages/index";
|
|
22
|
+
export { TreeView } from "./packages/index";
|
|
23
|
+
export { TreeViewProps } from "./packages/index";
|
|
24
|
+
export { Branch } from "./packages/index";
|
|
25
|
+
export { Leaf } from "./packages/index";
|
|
26
|
+
export { Tree } from "./packages/index";
|
|
27
|
+
export { Typography } from "./packages/index";
|
|
28
|
+
export { TypographyProps } from "./packages/index";
|
|
29
|
+
export { TypographyAlignment } from "./packages/index";
|
|
30
|
+
export { TypographyColor } from "./packages/index";
|
|
31
|
+
export { TypographyDisplay } from "./packages/index";
|
|
32
|
+
export { Button } from "./packages/index";
|
|
33
|
+
export { ButtonProps } from "./packages/index";
|
|
34
|
+
export * from "./packages/index";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
+
import { ButtonSize, ButtonColor, ButtonVariant } from "../types/index";
|
|
3
|
+
export type DefaultButtonComponent = TextButton;
|
|
4
|
+
export interface ButtonProps {
|
|
5
|
+
text?: string;
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
color?: ButtonColor;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
rounded?: boolean;
|
|
13
|
+
hoveringDisabled?: boolean;
|
|
14
|
+
onLeftClick?: () => void;
|
|
15
|
+
onLeftDown?: () => void;
|
|
16
|
+
onLeftUp?: () => void;
|
|
17
|
+
onRightClick?: () => void;
|
|
18
|
+
onRightDown?: () => void;
|
|
19
|
+
onRightUp?: () => void;
|
|
20
|
+
mouseEnter?: () => void;
|
|
21
|
+
mouseLeave?: () => void;
|
|
22
|
+
}
|
|
23
|
+
declare function Button(props: CustomizedProps<DefaultButtonComponent, ButtonProps>): JSX.Element;
|
|
24
|
+
export default Button;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Button } from "./components/Button";
|
|
2
|
+
export { ButtonProps } from "./components/Button";
|
|
3
|
+
export * from "./components/Button";
|
|
4
|
+
export { ButtonColor } from "./types/index";
|
|
5
|
+
export { ButtonSize } from "./types/index";
|
|
6
|
+
export { ButtonVariant } from "./types/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ButtonColor = "primary" | "secondary";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ButtonSize = "small" | "medium" | "large";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ButtonVariant = "contained" | "outlined" | "text";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
+
import { Orientations } from "../../../enums/index";
|
|
3
|
+
type DefaultDividerComponent = Frame;
|
|
4
|
+
export interface DividerProps {
|
|
5
|
+
position?: UDim2;
|
|
6
|
+
orientation?: Orientations;
|
|
7
|
+
padding?: number;
|
|
8
|
+
color?: Color3;
|
|
9
|
+
transparency?: number;
|
|
10
|
+
weight?: number;
|
|
11
|
+
}
|
|
12
|
+
declare function Divider<T extends DefaultDividerComponent>(props: CustomizedProps<T, DividerProps>): JSX.Element;
|
|
13
|
+
export default Divider;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Icons } from "../../../enums/index";
|
|
2
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
icon: Icons;
|
|
5
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
|
+
tint?: Color3;
|
|
7
|
+
}
|
|
8
|
+
type DefaultIconComponent = ImageLabel;
|
|
9
|
+
declare function Icon(props: CustomizedProps<DefaultIconComponent, IconProps>): JSX.Element;
|
|
10
|
+
export default Icon;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Icons } from "../../../enums/index";
|
|
2
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
3
|
+
export interface IconButtonProps {
|
|
4
|
+
icon: Icons;
|
|
5
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
|
+
tint: Color3;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
type DefaultIconButtonComponent = ImageButton;
|
|
11
|
+
declare function IconButton(props: CustomizedProps<DefaultIconButtonComponent, IconButtonProps>): JSX.Element;
|
|
12
|
+
export default IconButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./divider/index";
|
|
2
|
+
export * from "./icon/index";
|
|
3
|
+
export * from "./iconButton/index";
|
|
4
|
+
export * from "./input/index";
|
|
5
|
+
export * from "./progressBar/index";
|
|
6
|
+
export * from "./shadow/index";
|
|
7
|
+
export * from "./sidebar/index";
|
|
8
|
+
export * from "./toast/index";
|
|
9
|
+
export * from "./treeView/index";
|
|
10
|
+
export * from "./typography/index";
|
|
11
|
+
export * from "./button/index";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
+
import { InputColor, InputMargin, InputVariant } from "../types/index";
|
|
3
|
+
export type DefaultInputComponent = Frame;
|
|
4
|
+
export interface InputProps {
|
|
5
|
+
color?: InputColor;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
hasError?: boolean;
|
|
8
|
+
helperText?: string;
|
|
9
|
+
margin?: InputMargin;
|
|
10
|
+
variant?: InputVariant;
|
|
11
|
+
width?: UDim;
|
|
12
|
+
text?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
rounded?: boolean;
|
|
15
|
+
clearsTextOnFocus?: boolean;
|
|
16
|
+
onTextChanged?: (text: string) => void;
|
|
17
|
+
onFocus?: () => void;
|
|
18
|
+
onBlur?: () => void;
|
|
19
|
+
onEnterPressed?: (text: string) => void;
|
|
20
|
+
}
|
|
21
|
+
declare function Input(props: CustomizedProps<DefaultInputComponent, InputProps>): JSX.Element;
|
|
22
|
+
export default Input;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Input } from "./components/Input";
|
|
2
|
+
export { InputProps } from "./components/Input";
|
|
3
|
+
export * from "./components/Input";
|
|
4
|
+
export { InputColor } from "./types/index";
|
|
5
|
+
export { InputMargin } from "./types/index";
|
|
6
|
+
export { InputVariant } from "./types/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputColor = "primary" | "secondary";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputMargin = "none" | "dense" | "normal";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputVariant = "filled" | "outlined" | "standard";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WriteableStyle } from "../../../../theme/index";
|
|
2
|
+
export interface ProgressBarProps {
|
|
3
|
+
progress: number;
|
|
4
|
+
className?: WriteableStyle<Frame>;
|
|
5
|
+
}
|
|
6
|
+
declare function ProgressBar({ progress, className }: ProgressBarProps): JSX.Element;
|
|
7
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
+
export type DefaultSidebarComponent = Frame;
|
|
3
|
+
export interface SidebarProps {
|
|
4
|
+
size: "compact" | "large";
|
|
5
|
+
ignoreInset?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function Sidebar<T extends DefaultSidebarComponent>(props: CustomizedProps<T, SidebarProps>): JSX.Element;
|
|
8
|
+
export default Sidebar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SidebarType = "compact" | "large";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SidebarType } from "./SidebarType";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ToastVariants from "../enums/ToastVariants";
|
|
2
|
+
export interface ToastProps {
|
|
3
|
+
text: string;
|
|
4
|
+
onDismiss: () => void;
|
|
5
|
+
duration?: number;
|
|
6
|
+
variant?: ToastVariants;
|
|
7
|
+
toggledAt?: number;
|
|
8
|
+
}
|
|
9
|
+
declare function Toast(props: ToastProps): JSX.Element;
|
|
10
|
+
export default Toast;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Toast } from "./components/Toast";
|
|
2
|
+
export { ToastProps } from "./components/Toast";
|
|
3
|
+
export * from "./components/Toast";
|
|
4
|
+
export { default as ToastVariants } from "./enums/ToastVariants";
|
|
5
|
+
export { default as ToastEvent } from "./interfaces/ToastEvent";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
+
import { Icons } from "../../../enums/index";
|
|
3
|
+
import Tree from "../interfaces/Tree";
|
|
4
|
+
type DefaultTreeViewComponent = Frame;
|
|
5
|
+
export interface TreeViewProps {
|
|
6
|
+
tree: Tree;
|
|
7
|
+
icon?: Icons;
|
|
8
|
+
filter?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function TreeView(props: CustomizedProps<DefaultTreeViewComponent, TreeViewProps>): JSX.Element;
|
|
11
|
+
export default TreeView;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as TreeView } from "./components/TreeView";
|
|
2
|
+
export { TreeViewProps } from "./components/TreeView";
|
|
3
|
+
export * from "./components/TreeView";
|
|
4
|
+
export { default as Branch } from "./interfaces/Branch";
|
|
5
|
+
export { default as Leaf } from "./interfaces/Leaf";
|
|
6
|
+
export { default as Tree } from "./interfaces/Tree";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CustomizedProps } from "../../../../theme/index";
|
|
2
|
+
import { FontFamilyVariant, FontSizeVariant } from "../../../../theme/interfaces/typography/index";
|
|
3
|
+
import { TypographyAlignment } from "../types/TypographyAlignment";
|
|
4
|
+
import { TypographyColor } from "../types/TypographyColor";
|
|
5
|
+
import { TypographyDisplay } from "../types/TypographyDisplay";
|
|
6
|
+
type DefaultTypographyComponent = TextLabel;
|
|
7
|
+
export interface TypographyProps {
|
|
8
|
+
text?: string;
|
|
9
|
+
variant?: FontSizeVariant;
|
|
10
|
+
family?: FontFamilyVariant;
|
|
11
|
+
color?: TypographyColor;
|
|
12
|
+
display?: TypographyDisplay;
|
|
13
|
+
align?: TypographyAlignment;
|
|
14
|
+
noWrap?: boolean;
|
|
15
|
+
lineClamp?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function Typography<T extends DefaultTypographyComponent>(props: CustomizedProps<T, TypographyProps>): JSX.Element;
|
|
18
|
+
export default Typography;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Typography } from "./components/Typography";
|
|
2
|
+
export { TypographyProps } from "./components/Typography";
|
|
3
|
+
export * from "./components/Typography";
|
|
4
|
+
export { TypographyAlignment } from "./types/index";
|
|
5
|
+
export { TypographyColor } from "./types/index";
|
|
6
|
+
export { TypographyDisplay } from "./types/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TypographyAlignment = "left" | "center" | "right";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TypographyColor = "initial" | "inherit" | "primary" | "secondary" | "textPrimary" | "textSecondary" | "error" | "warning";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TypographyDisplay = "initial" | "block" | "inline";
|