@rbxts/uiblox 0.1.13 → 0.1.14
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/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/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
package/out/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Theme } from "../interfaces/theme/index";
|
|
2
|
+
import { InferState } from "@rbxts/reflex";
|
|
3
|
+
export declare const themeProducer: import("@rbxts/reflex").Producer<Theme, {
|
|
4
|
+
setTheme: (_state: Theme, theme: Theme) => Theme;
|
|
5
|
+
}>;
|
|
6
|
+
export type ThemeProducer = typeof themeProducer;
|
|
7
|
+
export type ThemeState = InferState<ThemeProducer>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Theme } from "../interfaces/theme/index";
|
|
2
|
+
import { CustomizedProps } from "../types/index";
|
|
3
|
+
export interface ThemeProviderProps {
|
|
4
|
+
theme?: Theme;
|
|
5
|
+
}
|
|
6
|
+
declare function ThemeProvider(props: CustomizedProps<Instance, ThemeProviderProps>): JSX.Element;
|
|
7
|
+
export default ThemeProvider;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Theme } from "../interfaces/theme/index";
|
|
2
|
+
import { CustomizedProps } from "../types/index";
|
|
3
|
+
export interface ThemeWrapperProps {
|
|
4
|
+
theme?: Theme;
|
|
5
|
+
}
|
|
6
|
+
declare function ThemeWrapper(props: CustomizedProps<Instance, ThemeWrapperProps>): JSX.Element;
|
|
7
|
+
export default ThemeWrapper;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { default as Theme } from "./interfaces/theme/Theme";
|
|
2
|
+
export { ThemeProvider } from "./components/index";
|
|
3
|
+
export { ThemeState } from "./components/index";
|
|
4
|
+
export * from "./components/index";
|
|
5
|
+
export * from "./constants/index";
|
|
6
|
+
export * from "./interfaces/index";
|
|
7
|
+
export * from "./styles/index";
|
|
8
|
+
export * from "./themes/index";
|
|
9
|
+
export { default as DefaultTheme } from "./themes/index";
|
|
10
|
+
export { default as DarkTheme } from "./themes/DarkTheme";
|
|
11
|
+
export { default as LightTheme } from "./themes/LightTheme";
|
|
12
|
+
export { CommonProps } from "./types/index";
|
|
13
|
+
export { BaseDefaultProps } from "./types/index";
|
|
14
|
+
export { BaseCustomizedProps } from "./types/index";
|
|
15
|
+
export { DefaultProps } from "./types/index";
|
|
16
|
+
export { CustomizedProps } from "./types/index";
|
|
17
|
+
export { CustomizedRef } from "./types/index";
|
|
18
|
+
export { CustomizedForwardRefComponent } from "./types/index";
|
|
19
|
+
export * from "./utilites/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as IconSizes } from "./IconSizes";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { IconSizes } from "./iconSizes/index";
|
|
2
|
+
export * from "./palette/index";
|
|
3
|
+
export { Borders } from "./spacing/index";
|
|
4
|
+
export { Padding } from "./spacing/index";
|
|
5
|
+
export { Shape } from "./spacing/index";
|
|
6
|
+
export { Spacing } from "./spacing/index";
|
|
7
|
+
export * from "../styles/index";
|
|
8
|
+
export { Theme } from "./theme/index";
|
|
9
|
+
export { ThemeConstants } from "./theme/index";
|
|
10
|
+
export { ThemeOptions } from "./theme/index";
|
|
11
|
+
export * from "../themes/index";
|
|
12
|
+
export { Tokens } from "./tokens/index";
|
|
13
|
+
export * from "./typography/index";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default interface Palette {
|
|
2
|
+
primary: {
|
|
3
|
+
main: Color3;
|
|
4
|
+
};
|
|
5
|
+
secondary: {
|
|
6
|
+
main: Color3;
|
|
7
|
+
};
|
|
8
|
+
error: {
|
|
9
|
+
main: Color3;
|
|
10
|
+
};
|
|
11
|
+
warning: {
|
|
12
|
+
main: Color3;
|
|
13
|
+
};
|
|
14
|
+
success: {
|
|
15
|
+
main: Color3;
|
|
16
|
+
};
|
|
17
|
+
background: {
|
|
18
|
+
default: Color3;
|
|
19
|
+
paper: Color3;
|
|
20
|
+
};
|
|
21
|
+
divider: Color3;
|
|
22
|
+
text: {
|
|
23
|
+
primary: Color3;
|
|
24
|
+
secondary: Color3;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ColorTokens } from "./ColorTokens";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default interface Colors {
|
|
2
|
+
backgroundDefault: Color3;
|
|
3
|
+
backgroundContrast: Color3;
|
|
4
|
+
backgroundMuted: Color3;
|
|
5
|
+
backgroundUIDefault: Color3;
|
|
6
|
+
backgroundUIMuted: Color3;
|
|
7
|
+
backgroundUIContrast: Color3;
|
|
8
|
+
UIDefault: Color3;
|
|
9
|
+
UIMuted: Color3;
|
|
10
|
+
UIEmphasis: Color3;
|
|
11
|
+
textDefault: Color3;
|
|
12
|
+
textMuted: Color3;
|
|
13
|
+
textEmphasis: Color3;
|
|
14
|
+
iconDefault: Color3;
|
|
15
|
+
iconEmphasis: Color3;
|
|
16
|
+
iconOnHover: Color3;
|
|
17
|
+
systemPrimaryDefault: Color3;
|
|
18
|
+
systemPrimaryOnHover: Color3;
|
|
19
|
+
systemPrimaryContent: Color3;
|
|
20
|
+
contextualPrimaryDefault: Color3;
|
|
21
|
+
contextualPrimaryOnHover: Color3;
|
|
22
|
+
contextualPrimaryContent: Color3;
|
|
23
|
+
secondaryDefault: Color3;
|
|
24
|
+
secondaryOnHover: Color3;
|
|
25
|
+
secondaryContent: Color3;
|
|
26
|
+
divider: Color3;
|
|
27
|
+
overlay: Color3;
|
|
28
|
+
dropShadow: Color3;
|
|
29
|
+
navigationBar: Color3;
|
|
30
|
+
badge: Color3;
|
|
31
|
+
badgeContent: Color3;
|
|
32
|
+
placeholder: Color3;
|
|
33
|
+
online: Color3;
|
|
34
|
+
offline: Color3;
|
|
35
|
+
alert: Color3;
|
|
36
|
+
success: Color3;
|
|
37
|
+
accent: Color3;
|
|
38
|
+
link: Color3;
|
|
39
|
+
caution: Color3;
|
|
40
|
+
text: Color3;
|
|
41
|
+
background: Color3;
|
|
42
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { default as Blue } from "./Blue";
|
|
2
|
+
export { default as Common } from "./Common";
|
|
3
|
+
export { default as Gray } from "./Gray";
|
|
4
|
+
export { default as Green } from "./Green";
|
|
5
|
+
export { default as Magenta } from "./Magenta";
|
|
6
|
+
export { default as Orange } from "./Orange";
|
|
7
|
+
export { default as Purple } from "./Purple";
|
|
8
|
+
export { default as Red } from "./Red";
|
|
9
|
+
export { default as Turquoise } from "./Turquoise";
|
|
10
|
+
export { default as Yellow } from "./Yellow";
|
|
11
|
+
export { default as Dark } from "./Dark";
|
|
12
|
+
export { default as Light } from "./Light";
|
|
13
|
+
export { default as Colors } from "./Colors";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Palette } from "../palette/index";
|
|
2
|
+
import { Padding, Shape, Spacing } from "../spacing/index";
|
|
3
|
+
import { ThemeTypography } from "../typography/index";
|
|
4
|
+
import ThemeOptions from "./ThemeOptions";
|
|
5
|
+
interface Theme {
|
|
6
|
+
type: string;
|
|
7
|
+
options: ThemeOptions;
|
|
8
|
+
palette: Palette;
|
|
9
|
+
padding: Padding;
|
|
10
|
+
shape: Shape;
|
|
11
|
+
spacing: Spacing;
|
|
12
|
+
typography: ThemeTypography;
|
|
13
|
+
}
|
|
14
|
+
export default Theme;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Borders } from "../spacing/index";
|
|
2
|
+
import { IconSizes } from "../iconSizes/index";
|
|
3
|
+
import { ColorTokens } from "../palette/colorTokens/index";
|
|
4
|
+
import { CommonColors } from "../palette/colors/Common";
|
|
5
|
+
import { Colors } from "../palette/colors/index";
|
|
6
|
+
export default interface ThemeConstants {
|
|
7
|
+
contentWidth: number;
|
|
8
|
+
iconSizes: IconSizes;
|
|
9
|
+
colors: Colors;
|
|
10
|
+
borders: Borders;
|
|
11
|
+
extendedPalette: {
|
|
12
|
+
Blue: ColorTokens;
|
|
13
|
+
Common: CommonColors;
|
|
14
|
+
Dark: ColorTokens;
|
|
15
|
+
Gray: ColorTokens;
|
|
16
|
+
Green: ColorTokens;
|
|
17
|
+
Light: ColorTokens;
|
|
18
|
+
Magenta: ColorTokens;
|
|
19
|
+
Orange: ColorTokens;
|
|
20
|
+
Purple: ColorTokens;
|
|
21
|
+
Red: ColorTokens;
|
|
22
|
+
Turquoise: ColorTokens;
|
|
23
|
+
Yellow: ColorTokens;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Tokens = "120" | "110" | "100" | "90" | "80" | "70" | "60" | "50" | "40" | "30" | "20" | "10";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tokens } from "./Tokens";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Tokens } from "../tokens/Tokens";
|
|
2
|
+
export type TypographyTokens = {
|
|
3
|
+
[key in Tokens]: string;
|
|
4
|
+
};
|
|
5
|
+
export interface TypographyWeights {
|
|
6
|
+
title: number;
|
|
7
|
+
heading: number;
|
|
8
|
+
body: number;
|
|
9
|
+
xl?: number;
|
|
10
|
+
lg?: number;
|
|
11
|
+
md?: number;
|
|
12
|
+
sm?: number;
|
|
13
|
+
xs?: number;
|
|
14
|
+
default?: number;
|
|
15
|
+
}
|
|
16
|
+
export type TypographyVariants = keyof TypographyWeights;
|
|
17
|
+
export declare const TypographyWeights: TypographyWeights;
|
|
18
|
+
export declare const TypographyTokens: TypographyTokens;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as ThemeTypography } from "./ThemeTypography";
|
|
2
|
+
export * from "./FontSizes";
|
|
3
|
+
export * from "./FontFamilies";
|
|
4
|
+
export { FontSizeVariant } from "./FontSizeOptions";
|
|
5
|
+
export { FontSizeOptions } from "./FontSizeOptions";
|
|
6
|
+
export { FontFamilyVariant } from "./FontFamilyOptions";
|
|
7
|
+
export { FontFamilyOptions } from "./FontFamilyOptions";
|
|
8
|
+
export * from "./Variants";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type WriteableStyle<T extends Instance> = Partial<WritableInstanceProperties<T>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WriteableStyle } from "../types/WriteableStyle";
|
|
2
|
+
export type GenericStyle = {
|
|
3
|
+
[property: string]: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type ConditionalStyles<T extends Instance> = Map<WriteableStyle<T>, boolean>;
|
|
6
|
+
declare const classNames: <T extends Instance>(conditionalStyles?: ConditionalStyles<T>, ...styles: Array<WriteableStyle<T>>) => WriteableStyle<T>;
|
|
7
|
+
export default classNames;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Theme } from "../../interfaces/theme/index";
|
|
2
|
+
import { ClassNameMap } from "../types/styles";
|
|
3
|
+
type TMakeStyles<ClassKey extends string = string> = (theme: Theme) => ClassNameMap<ClassKey>;
|
|
4
|
+
type TMakeStylesWithProps<Props, ClassKey extends string = string> = (theme: Theme, props: Props) => ClassNameMap<ClassKey>;
|
|
5
|
+
type TVariantF<Props> = keyof Props extends never ? TMakeStyles : TMakeStylesWithProps<Props>;
|
|
6
|
+
declare const makeStyles: <Props = {}, ClassKey extends string = string>(f: TVariantF<Props>) => keyof Props extends never ? () => ClassNameMap<ClassKey> : (props: Props) => ClassNameMap<ClassKey>;
|
|
7
|
+
export default makeStyles;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CommonProps } from "./types";
|
|
2
|
+
export { BaseDefaultProps } from "./types";
|
|
3
|
+
export { BaseCustomizedProps } from "./types";
|
|
4
|
+
export { DefaultProps } from "./types";
|
|
5
|
+
export { CustomizedProps } from "./types";
|
|
6
|
+
export { CustomizedRef } from "./types";
|
|
7
|
+
export { CustomizedForwardRefComponent } from "./types";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from "@rbxts/react";
|
|
2
|
+
import { WriteableStyle } from "../interfaces/index";
|
|
3
|
+
export interface CommonProps<T extends Instance> extends PropsWithChildren {
|
|
4
|
+
className?: WriteableStyle<T>;
|
|
5
|
+
component?: T;
|
|
6
|
+
}
|
|
7
|
+
export type BaseDefaultProps<T extends Instance, P> = CommonProps<T> & P;
|
|
8
|
+
export type BaseCustomizedProps<T extends Instance, P> = BaseDefaultProps<T, P>;
|
|
9
|
+
export type DefaultProps<T extends Instance, P = {}> = BaseDefaultProps<T, P>;
|
|
10
|
+
export type CustomizedProps<T extends Instance, P = {}> = BaseCustomizedProps<T, P>;
|
|
11
|
+
export type CustomizedRef<T extends Instance> = T extends Instance ? any : T extends keyof React.ReactElement<T> ? WritableInstanceProperties<T> : never;
|
|
12
|
+
export type CustomizedForwardRefComponent<D extends Instance, P = {}> = <T extends Instance = D>(props: CustomizedProps<T, P> & WritableInstanceProperties<CustomizedRef<T>>) => React.Element | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Color3FromHex } from "./Color3FromHex";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ROBLOX_UI_OFFSET: number;
|
|
@@ -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";
|