@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.
Files changed (113) hide show
  1. package/dist/DynamicWindow/DynamicWindow.d.ts +19 -0
  2. package/dist/DynamicWindow/DynamicWindow.luau +327 -0
  3. package/dist/DynamicWindow/DynamicWindow.utils.d.ts +13 -0
  4. package/dist/DynamicWindow/DynamicWindow.utils.luau +46 -0
  5. package/dist/DynamicWindow/ResizeCornerButton.d.ts +13 -0
  6. package/dist/DynamicWindow/ResizeCornerButton.luau +47 -0
  7. package/dist/DynamicWindow/TrafficLightButton.d.ts +8 -0
  8. package/dist/DynamicWindow/TrafficLightButton.luau +26 -0
  9. package/dist/{DropdownButton.d.ts → buttons/DropdownButton.d.ts} +1 -3
  10. package/dist/{DropdownButton.luau → buttons/DropdownButton.luau} +4 -9
  11. package/dist/{DropdownOptionButton.d.ts → buttons/DropdownOptionButton.d.ts} +1 -3
  12. package/dist/{DropdownOptionButton.luau → buttons/DropdownOptionButton.luau} +3 -7
  13. package/dist/{IconRoundButton.d.ts → buttons/IconRoundButton.d.ts} +1 -3
  14. package/dist/{IconRoundButton.luau → buttons/IconRoundButton.luau} +4 -8
  15. package/dist/{IconTileButton.d.ts → buttons/IconTileButton.d.ts} +1 -3
  16. package/dist/{IconTileButton.luau → buttons/IconTileButton.luau} +8 -11
  17. package/dist/{PrimaryButton.d.ts → buttons/PrimaryButton.d.ts} +1 -3
  18. package/dist/{PrimaryButton.luau → buttons/PrimaryButton.luau} +4 -9
  19. package/dist/{ReactiveButton.d.ts → buttons/ReactiveButton.d.ts} +1 -3
  20. package/dist/{ReactiveButton.luau → buttons/ReactiveButton.luau} +5 -10
  21. package/dist/{TextButton.d.ts → buttons/TextButton.d.ts} +1 -3
  22. package/dist/{TextButton.luau → buttons/TextButton.luau} +7 -11
  23. package/dist/{Checkmark.luau → display/Checkmark.luau} +1 -1
  24. package/dist/{Legend.luau → display/Legend.luau} +1 -1
  25. package/dist/{PillText.d.ts → display/PillText.d.ts} +0 -2
  26. package/dist/{PillText.luau → display/PillText.luau} +6 -10
  27. package/dist/error-handler/ErrorHandler.d.ts +3 -0
  28. package/dist/error-handler/ErrorHandler.luau +18 -0
  29. package/dist/error-handler/ErrorPage.d.ts +6 -0
  30. package/dist/error-handler/ErrorPage.luau +144 -0
  31. package/dist/error-handler/index.d.ts +3 -0
  32. package/dist/error-handler/init.luau +6 -0
  33. package/dist/{Checkbox.d.ts → form/Checkbox.d.ts} +1 -3
  34. package/dist/{Checkbox.luau → form/Checkbox.luau} +5 -10
  35. package/dist/{CheckboxRow.d.ts → form/CheckboxRow.d.ts} +1 -3
  36. package/dist/{CheckboxRow.luau → form/CheckboxRow.luau} +4 -8
  37. package/dist/{Dropdown.d.ts → form/Dropdown.d.ts} +0 -2
  38. package/dist/{Dropdown.luau → form/Dropdown.luau} +7 -12
  39. package/dist/form/DropdownRow.d.ts +18 -0
  40. package/dist/form/DropdownRow.luau +28 -0
  41. package/dist/form/FormRow.d.ts +9 -0
  42. package/dist/{FormRow.luau → form/FormRow.luau} +3 -6
  43. package/dist/form/InputRound.d.ts +18 -0
  44. package/dist/form/InputRound.luau +218 -0
  45. package/dist/form/InputRow.d.ts +13 -0
  46. package/dist/form/InputRow.luau +32 -0
  47. package/dist/{Radio.d.ts → form/Radio.d.ts} +1 -3
  48. package/dist/{Radio.luau → form/Radio.luau} +5 -10
  49. package/dist/{RadioRow.d.ts → form/RadioRow.d.ts} +1 -3
  50. package/dist/{RadioRow.luau → form/RadioRow.luau} +4 -8
  51. package/dist/form/RoundEmoji.d.ts +8 -0
  52. package/dist/form/RoundEmoji.luau +40 -0
  53. package/dist/form/TextBox.d.ts +24 -0
  54. package/dist/form/TextBox.luau +57 -0
  55. package/dist/{TextField.d.ts → form/TextField.d.ts} +1 -1
  56. package/dist/{TextField.luau → form/TextField.luau} +4 -2
  57. package/dist/form/validation.d.ts +13 -0
  58. package/dist/form/validation.luau +80 -0
  59. package/dist/{use-button-animation.d.ts → hooks/use-button-animation.d.ts} +1 -3
  60. package/dist/{use-button-animation.luau → hooks/use-button-animation.luau} +3 -6
  61. package/dist/index.d.ts +48 -32
  62. package/dist/init.luau +63 -34
  63. package/dist/{Accordion.d.ts → layout/Accordion.d.ts} +1 -3
  64. package/dist/{Accordion.luau → layout/Accordion.luau} +4 -8
  65. package/dist/{Divider.luau → layout/Divider.luau} +1 -1
  66. package/dist/{Section.d.ts → layout/Section.d.ts} +1 -3
  67. package/dist/{Section.luau → layout/Section.luau} +4 -7
  68. package/dist/{SegmentedToggle.d.ts → layout/SegmentedToggle.d.ts} +1 -3
  69. package/dist/{SegmentedToggle.luau → layout/SegmentedToggle.luau} +4 -7
  70. package/dist/layout/SegmentedToggle.story.d.ts +10 -0
  71. package/dist/layout/SegmentedToggle.story.luau +72 -0
  72. package/dist/table/ExampleTable.d.ts +2 -0
  73. package/dist/table/ExampleTable.luau +46 -0
  74. package/dist/table/Table.d.ts +10 -0
  75. package/dist/table/Table.luau +26 -0
  76. package/dist/table/TableCell.d.ts +9 -0
  77. package/dist/table/TableCell.luau +26 -0
  78. package/dist/table/TableFooter.d.ts +9 -0
  79. package/dist/table/TableFooter.luau +12 -0
  80. package/dist/table/TableHeader.d.ts +9 -0
  81. package/dist/table/TableHeader.luau +12 -0
  82. package/dist/table/TableRow.d.ts +9 -0
  83. package/dist/table/TableRow.luau +24 -0
  84. package/dist/tooltip/Tooltip.d.ts +14 -0
  85. package/dist/tooltip/Tooltip.luau +65 -0
  86. package/dist/tooltip/useTooltip.d.ts +12 -0
  87. package/dist/tooltip/useTooltip.luau +40 -0
  88. package/dist/tsconfig.tsbuildinfo +1 -1
  89. package/dist/{Outline.d.ts → utils/Outline.d.ts} +1 -3
  90. package/dist/{Outline.luau → utils/Outline.luau} +3 -6
  91. package/package.json +11 -9
  92. package/dist/FormRow.d.ts +0 -11
  93. package/dist/theme.d.ts +0 -41
  94. package/dist/theme.luau +0 -58
  95. /package/dist/{Button.d.ts → buttons/Button.d.ts} +0 -0
  96. /package/dist/{Button.luau → buttons/Button.luau} +0 -0
  97. /package/dist/{Checkmark.d.ts → display/Checkmark.d.ts} +0 -0
  98. /package/dist/{Legend.d.ts → display/Legend.d.ts} +0 -0
  99. /package/dist/{TimeAgo.d.ts → display/TimeAgo.d.ts} +0 -0
  100. /package/dist/{TimeAgo.luau → display/TimeAgo.luau} +0 -0
  101. /package/dist/{use-button-state.d.ts → hooks/use-button-state.d.ts} +0 -0
  102. /package/dist/{use-button-state.luau → hooks/use-button-state.luau} +0 -0
  103. /package/dist/{use-input-device.d.ts → hooks/use-input-device.d.ts} +0 -0
  104. /package/dist/{use-input-device.luau → hooks/use-input-device.luau} +0 -0
  105. /package/dist/{Divider.d.ts → layout/Divider.d.ts} +0 -0
  106. /package/dist/{Padding.d.ts → layout/Padding.d.ts} +0 -0
  107. /package/dist/{Padding.luau → layout/Padding.luau} +0 -0
  108. /package/dist/{ClickOutsideOverlay.d.ts → utils/ClickOutsideOverlay.d.ts} +0 -0
  109. /package/dist/{ClickOutsideOverlay.luau → utils/ClickOutsideOverlay.luau} +0 -0
  110. /package/dist/{DelayRender.d.ts → utils/DelayRender.d.ts} +0 -0
  111. /package/dist/{DelayRender.luau → utils/DelayRender.luau} +0 -0
  112. /package/dist/{ErrorBoundary.d.ts → utils/ErrorBoundary.d.ts} +0 -0
  113. /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": "2.1.0",
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.0.0",
30
- "@rbxts-ui/rem": "2.0.0",
31
- "@rbxts-ui/layout": "2.0.0",
32
- "@rbxts-ui/utils": "2.0.0"
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.0.0",
47
- "@rbxts-ui/rem": "2.0.0",
48
- "@rbxts-ui/layout": "2.0.0",
49
- "@rbxts-ui/utils": "2.0.0"
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