@rbxts-ui/components 2.1.0 → 3.0.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/DynamicWindow/DynamicWindow.d.ts +19 -0
- package/dist/DynamicWindow/DynamicWindow.luau +327 -0
- package/dist/DynamicWindow/DynamicWindow.utils.d.ts +13 -0
- package/dist/DynamicWindow/DynamicWindow.utils.luau +46 -0
- package/dist/DynamicWindow/ResizeCornerButton.d.ts +13 -0
- package/dist/DynamicWindow/ResizeCornerButton.luau +47 -0
- package/dist/DynamicWindow/TrafficLightButton.d.ts +8 -0
- package/dist/DynamicWindow/TrafficLightButton.luau +26 -0
- package/dist/{DropdownButton.d.ts → buttons/DropdownButton.d.ts} +1 -3
- package/dist/{DropdownButton.luau → buttons/DropdownButton.luau} +4 -9
- package/dist/{DropdownOptionButton.d.ts → buttons/DropdownOptionButton.d.ts} +1 -3
- package/dist/{DropdownOptionButton.luau → buttons/DropdownOptionButton.luau} +3 -7
- package/dist/{IconRoundButton.d.ts → buttons/IconRoundButton.d.ts} +1 -3
- package/dist/{IconRoundButton.luau → buttons/IconRoundButton.luau} +4 -8
- package/dist/{IconTileButton.d.ts → buttons/IconTileButton.d.ts} +1 -3
- package/dist/{IconTileButton.luau → buttons/IconTileButton.luau} +8 -11
- package/dist/{PrimaryButton.d.ts → buttons/PrimaryButton.d.ts} +1 -3
- package/dist/{PrimaryButton.luau → buttons/PrimaryButton.luau} +4 -9
- package/dist/{ReactiveButton.d.ts → buttons/ReactiveButton.d.ts} +1 -3
- package/dist/{ReactiveButton.luau → buttons/ReactiveButton.luau} +5 -10
- package/dist/{TextButton.d.ts → buttons/TextButton.d.ts} +1 -3
- package/dist/{TextButton.luau → buttons/TextButton.luau} +7 -11
- package/dist/{Checkmark.luau → display/Checkmark.luau} +1 -1
- package/dist/{Legend.luau → display/Legend.luau} +1 -1
- package/dist/{PillText.d.ts → display/PillText.d.ts} +0 -2
- package/dist/{PillText.luau → display/PillText.luau} +6 -10
- package/dist/error-handler/ErrorHandler.d.ts +3 -0
- package/dist/error-handler/ErrorHandler.luau +18 -0
- package/dist/error-handler/ErrorPage.d.ts +6 -0
- package/dist/error-handler/ErrorPage.luau +144 -0
- package/dist/error-handler/index.d.ts +3 -0
- package/dist/error-handler/init.luau +6 -0
- package/dist/{Checkbox.d.ts → form/Checkbox.d.ts} +1 -3
- package/dist/{Checkbox.luau → form/Checkbox.luau} +5 -10
- package/dist/{CheckboxRow.d.ts → form/CheckboxRow.d.ts} +1 -3
- package/dist/{CheckboxRow.luau → form/CheckboxRow.luau} +4 -8
- package/dist/{Dropdown.d.ts → form/Dropdown.d.ts} +0 -2
- package/dist/{Dropdown.luau → form/Dropdown.luau} +7 -12
- package/dist/form/DropdownRow.d.ts +18 -0
- package/dist/form/DropdownRow.luau +28 -0
- package/dist/form/FormRow.d.ts +9 -0
- package/dist/{FormRow.luau → form/FormRow.luau} +3 -6
- package/dist/form/InputRound.d.ts +18 -0
- package/dist/form/InputRound.luau +218 -0
- package/dist/form/InputRow.d.ts +13 -0
- package/dist/form/InputRow.luau +32 -0
- package/dist/{Radio.d.ts → form/Radio.d.ts} +1 -3
- package/dist/{Radio.luau → form/Radio.luau} +5 -10
- package/dist/{RadioRow.d.ts → form/RadioRow.d.ts} +1 -3
- package/dist/{RadioRow.luau → form/RadioRow.luau} +4 -8
- package/dist/form/RoundEmoji.d.ts +8 -0
- package/dist/form/RoundEmoji.luau +40 -0
- package/dist/form/TextBox.d.ts +24 -0
- package/dist/form/TextBox.luau +57 -0
- package/dist/{TextField.d.ts → form/TextField.d.ts} +1 -1
- package/dist/{TextField.luau → form/TextField.luau} +4 -2
- package/dist/form/validation.d.ts +13 -0
- package/dist/form/validation.luau +80 -0
- package/dist/{use-button-animation.d.ts → hooks/use-button-animation.d.ts} +1 -3
- package/dist/{use-button-animation.luau → hooks/use-button-animation.luau} +3 -6
- package/dist/index.d.ts +48 -32
- package/dist/init.luau +63 -34
- package/dist/{Accordion.d.ts → layout/Accordion.d.ts} +1 -3
- package/dist/{Accordion.luau → layout/Accordion.luau} +4 -8
- package/dist/{Divider.luau → layout/Divider.luau} +1 -1
- package/dist/{Section.d.ts → layout/Section.d.ts} +1 -3
- package/dist/{Section.luau → layout/Section.luau} +4 -7
- package/dist/{SegmentedToggle.d.ts → layout/SegmentedToggle.d.ts} +1 -3
- package/dist/{SegmentedToggle.luau → layout/SegmentedToggle.luau} +4 -7
- package/dist/layout/SegmentedToggle.story.d.ts +10 -0
- package/dist/layout/SegmentedToggle.story.luau +72 -0
- package/dist/table/ExampleTable.d.ts +2 -0
- package/dist/table/ExampleTable.luau +46 -0
- package/dist/table/Table.d.ts +10 -0
- package/dist/table/Table.luau +26 -0
- package/dist/table/TableCell.d.ts +9 -0
- package/dist/table/TableCell.luau +26 -0
- package/dist/table/TableFooter.d.ts +9 -0
- package/dist/table/TableFooter.luau +12 -0
- package/dist/table/TableHeader.d.ts +9 -0
- package/dist/table/TableHeader.luau +12 -0
- package/dist/table/TableRow.d.ts +9 -0
- package/dist/table/TableRow.luau +24 -0
- package/dist/tooltip/Tooltip.d.ts +14 -0
- package/dist/tooltip/Tooltip.luau +65 -0
- package/dist/tooltip/useTooltip.d.ts +12 -0
- package/dist/tooltip/useTooltip.luau +40 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{Outline.d.ts → utils/Outline.d.ts} +1 -3
- package/dist/{Outline.luau → utils/Outline.luau} +3 -6
- package/package.json +11 -9
- package/dist/FormRow.d.ts +0 -11
- package/dist/theme.d.ts +0 -41
- package/dist/theme.luau +0 -58
- /package/dist/{Button.d.ts → buttons/Button.d.ts} +0 -0
- /package/dist/{Button.luau → buttons/Button.luau} +0 -0
- /package/dist/{Checkmark.d.ts → display/Checkmark.d.ts} +0 -0
- /package/dist/{Legend.d.ts → display/Legend.d.ts} +0 -0
- /package/dist/{TimeAgo.d.ts → display/TimeAgo.d.ts} +0 -0
- /package/dist/{TimeAgo.luau → display/TimeAgo.luau} +0 -0
- /package/dist/{use-button-state.d.ts → hooks/use-button-state.d.ts} +0 -0
- /package/dist/{use-button-state.luau → hooks/use-button-state.luau} +0 -0
- /package/dist/{use-input-device.d.ts → hooks/use-input-device.d.ts} +0 -0
- /package/dist/{use-input-device.luau → hooks/use-input-device.luau} +0 -0
- /package/dist/{Divider.d.ts → layout/Divider.d.ts} +0 -0
- /package/dist/{Padding.d.ts → layout/Padding.d.ts} +0 -0
- /package/dist/{Padding.luau → layout/Padding.luau} +0 -0
- /package/dist/{ClickOutsideOverlay.d.ts → utils/ClickOutsideOverlay.d.ts} +0 -0
- /package/dist/{ClickOutsideOverlay.luau → utils/ClickOutsideOverlay.luau} +0 -0
- /package/dist/{DelayRender.d.ts → utils/DelayRender.d.ts} +0 -0
- /package/dist/{DelayRender.luau → utils/DelayRender.luau} +0 -0
- /package/dist/{ErrorBoundary.d.ts → utils/ErrorBoundary.d.ts} +0 -0
- /package/dist/{ErrorBoundary.luau → utils/ErrorBoundary.luau} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts-ui/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "General-purpose reusable UI components for roblox-ts",
|
|
5
5
|
"main": "dist/init.lua",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,10 +26,11 @@
|
|
|
26
26
|
"@rbxts/object-utils": "^1.0.0",
|
|
27
27
|
"@rbxts/services": "^1.5.5",
|
|
28
28
|
"@rbxts/ripple": "^0.9.3",
|
|
29
|
-
"@rbxts-ui/primitives": "2.
|
|
30
|
-
"@rbxts-ui/
|
|
31
|
-
"@rbxts-ui/
|
|
32
|
-
"@rbxts-ui/utils": "2.
|
|
29
|
+
"@rbxts-ui/primitives": "2.1.0",
|
|
30
|
+
"@rbxts-ui/layout": "3.0.0",
|
|
31
|
+
"@rbxts-ui/rem": "2.1.0",
|
|
32
|
+
"@rbxts-ui/utils": "2.1.0",
|
|
33
|
+
"@rbxts-ui/theme": "1.1.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@rbxts/types": "^1.0.859",
|
|
@@ -43,10 +44,11 @@
|
|
|
43
44
|
"typescript": "^5.3.3",
|
|
44
45
|
"@rbxts/ripple": "^0.9.3",
|
|
45
46
|
"@rbxts/services": "^1.5.5",
|
|
46
|
-
"@rbxts-ui/primitives": "2.
|
|
47
|
-
"@rbxts-ui/rem": "2.
|
|
48
|
-
"@rbxts-ui/layout": "
|
|
49
|
-
"@rbxts-ui/utils": "2.
|
|
47
|
+
"@rbxts-ui/primitives": "2.1.0",
|
|
48
|
+
"@rbxts-ui/rem": "2.1.0",
|
|
49
|
+
"@rbxts-ui/layout": "3.0.0",
|
|
50
|
+
"@rbxts-ui/utils": "2.1.0",
|
|
51
|
+
"@rbxts-ui/theme": "1.1.0"
|
|
50
52
|
},
|
|
51
53
|
"publishConfig": {
|
|
52
54
|
"access": "public"
|
package/dist/FormRow.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "@rbxts/react";
|
|
2
|
-
import { type Theme } from "./theme";
|
|
3
|
-
interface FormRowProps {
|
|
4
|
-
label: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
theme?: Theme;
|
|
8
|
-
}
|
|
9
|
-
export declare function FormRow({ label, children, disabled, theme }: FormRowProps): JSX.Element;
|
|
10
|
-
export type { FormRowProps };
|
|
11
|
-
//# sourceMappingURL=FormRow.d.ts.map
|
package/dist/theme.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { SpringOptions } from "@rbxts/ripple";
|
|
2
|
-
export interface Theme {
|
|
3
|
-
palette: {
|
|
4
|
-
white: Color3;
|
|
5
|
-
offwhite: Color3;
|
|
6
|
-
black: Color3;
|
|
7
|
-
darkgray: Color3;
|
|
8
|
-
crust: Color3;
|
|
9
|
-
overlay0: Color3;
|
|
10
|
-
disabled: Color3;
|
|
11
|
-
blue: Color3;
|
|
12
|
-
green: Color3;
|
|
13
|
-
red: Color3;
|
|
14
|
-
yellow: Color3;
|
|
15
|
-
blueishColor: Color3;
|
|
16
|
-
text: Color3;
|
|
17
|
-
surface1: Color3;
|
|
18
|
-
};
|
|
19
|
-
fonts: {
|
|
20
|
-
inter: {
|
|
21
|
-
regular: Font;
|
|
22
|
-
medium: Font;
|
|
23
|
-
bold: Font;
|
|
24
|
-
};
|
|
25
|
-
roboto: {
|
|
26
|
-
light: Font;
|
|
27
|
-
regular: Font;
|
|
28
|
-
medium: Font;
|
|
29
|
-
bold: Font;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
springs: {
|
|
33
|
-
slow: SpringOptions;
|
|
34
|
-
bubbly: SpringOptions;
|
|
35
|
-
responsive: SpringOptions;
|
|
36
|
-
gentle: SpringOptions;
|
|
37
|
-
world: SpringOptions;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export declare const defaultTheme: Theme;
|
|
41
|
-
//# sourceMappingURL=theme.d.ts.map
|
package/dist/theme.luau
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
-- Compiled with roblox-ts v3.0.0
|
|
2
|
-
local TS = _G[script]
|
|
3
|
-
local config = TS.import(script, TS.getModule(script, "@rbxts", "ripple").src).config
|
|
4
|
-
local defaultPalette = {
|
|
5
|
-
white = Color3.fromRGB(255, 255, 255),
|
|
6
|
-
offwhite = Color3.fromRGB(234, 238, 253),
|
|
7
|
-
black = Color3.fromRGB(0, 0, 0),
|
|
8
|
-
darkgray = Color3.fromRGB(69, 69, 79),
|
|
9
|
-
crust = Color3.fromRGB(17, 17, 27),
|
|
10
|
-
overlay0 = Color3.fromRGB(108, 112, 134),
|
|
11
|
-
disabled = Color3.fromRGB(108, 112, 134),
|
|
12
|
-
blue = Color3.fromRGB(137, 180, 250),
|
|
13
|
-
green = Color3.fromRGB(166, 227, 161),
|
|
14
|
-
red = Color3.fromRGB(243, 139, 168),
|
|
15
|
-
yellow = Color3.fromRGB(249, 226, 175),
|
|
16
|
-
blueishColor = Color3.fromRGB(0, 204, 255),
|
|
17
|
-
text = Color3.fromRGB(205, 214, 244),
|
|
18
|
-
surface1 = Color3.fromRGB(69, 71, 90),
|
|
19
|
-
}
|
|
20
|
-
local defaultFonts = {
|
|
21
|
-
inter = {
|
|
22
|
-
regular = Font.new("rbxassetid://12187365364"),
|
|
23
|
-
medium = Font.new("rbxassetid://12187365364", Enum.FontWeight.Medium),
|
|
24
|
-
bold = Font.new("rbxassetid://12187365364", Enum.FontWeight.Bold),
|
|
25
|
-
},
|
|
26
|
-
roboto = {
|
|
27
|
-
light = Font.fromName("Roboto", Enum.FontWeight.Light),
|
|
28
|
-
regular = Font.fromName("Roboto", Enum.FontWeight.Regular),
|
|
29
|
-
medium = Font.fromName("Roboto", Enum.FontWeight.Medium),
|
|
30
|
-
bold = Font.fromName("Roboto", Enum.FontWeight.Bold),
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
local _object = table.clone(config.spring)
|
|
34
|
-
setmetatable(_object, nil)
|
|
35
|
-
_object.bubbly = {
|
|
36
|
-
tension = 400,
|
|
37
|
-
friction = 14,
|
|
38
|
-
}
|
|
39
|
-
_object.responsive = {
|
|
40
|
-
tension = 400,
|
|
41
|
-
}
|
|
42
|
-
_object.gentle = {
|
|
43
|
-
tension = 250,
|
|
44
|
-
friction = 30,
|
|
45
|
-
}
|
|
46
|
-
_object.world = {
|
|
47
|
-
tension = 180,
|
|
48
|
-
friction = 30,
|
|
49
|
-
}
|
|
50
|
-
local defaultSprings = _object
|
|
51
|
-
local defaultTheme = {
|
|
52
|
-
palette = defaultPalette,
|
|
53
|
-
fonts = defaultFonts,
|
|
54
|
-
springs = defaultSprings,
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
defaultTheme = defaultTheme,
|
|
58
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|