@rbxts/react-clean-ui 1.0.5

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 (134) hide show
  1. package/README.md +3 -0
  2. package/out/Components/Decorator/BoxShadow.d.ts +10 -0
  3. package/out/Components/Decorator/BoxShadow.luau +41 -0
  4. package/out/Components/Decorator/Corners.d.ts +7 -0
  5. package/out/Components/Decorator/Corners.luau +15 -0
  6. package/out/Components/Decorator/Padding.d.ts +3 -0
  7. package/out/Components/Decorator/Padding.luau +18 -0
  8. package/out/Components/Decorator/index.d.ts +3 -0
  9. package/out/Components/Decorator/init.luau +13 -0
  10. package/out/Components/Input/Button.d.ts +24 -0
  11. package/out/Components/Input/Button.luau +159 -0
  12. package/out/Components/Input/Checkbox.d.ts +12 -0
  13. package/out/Components/Input/Checkbox.luau +79 -0
  14. package/out/Components/Input/HoverButton.d.ts +16 -0
  15. package/out/Components/Input/HoverButton.luau +127 -0
  16. package/out/Components/Input/Input.d.ts +12 -0
  17. package/out/Components/Input/Input.luau +92 -0
  18. package/out/Components/Input/Select.d.ts +30 -0
  19. package/out/Components/Input/Select.luau +288 -0
  20. package/out/Components/Input/Slider.d.ts +51 -0
  21. package/out/Components/Input/Slider.luau +415 -0
  22. package/out/Components/Input/index.d.ts +6 -0
  23. package/out/Components/Input/init.luau +22 -0
  24. package/out/Components/Layout/Column.d.ts +13 -0
  25. package/out/Components/Layout/Column.luau +60 -0
  26. package/out/Components/Layout/Container.d.ts +6 -0
  27. package/out/Components/Layout/Container.luau +73 -0
  28. package/out/Components/Layout/Draggable.d.ts +46 -0
  29. package/out/Components/Layout/Draggable.luau +315 -0
  30. package/out/Components/Layout/Droppable.d.ts +10 -0
  31. package/out/Components/Layout/Droppable.luau +34 -0
  32. package/out/Components/Layout/Fieldset.d.ts +34 -0
  33. package/out/Components/Layout/Fieldset.luau +130 -0
  34. package/out/Components/Layout/FlexItem.d.ts +11 -0
  35. package/out/Components/Layout/FlexItem.luau +20 -0
  36. package/out/Components/Layout/Group.d.ts +34 -0
  37. package/out/Components/Layout/Group.luau +168 -0
  38. package/out/Components/Layout/HStack.d.ts +12 -0
  39. package/out/Components/Layout/HStack.luau +21 -0
  40. package/out/Components/Layout/Row.d.ts +15 -0
  41. package/out/Components/Layout/Row.luau +87 -0
  42. package/out/Components/Layout/Scroller.d.ts +7 -0
  43. package/out/Components/Layout/Scroller.luau +54 -0
  44. package/out/Components/Layout/Tabs.d.ts +31 -0
  45. package/out/Components/Layout/Tabs.luau +189 -0
  46. package/out/Components/Layout/VStack.d.ts +11 -0
  47. package/out/Components/Layout/VStack.luau +21 -0
  48. package/out/Components/Layout/index.d.ts +12 -0
  49. package/out/Components/Layout/init.luau +40 -0
  50. package/out/Components/Navigation/Menu.d.ts +19 -0
  51. package/out/Components/Navigation/Menu.luau +91 -0
  52. package/out/Components/Navigation/index.d.ts +1 -0
  53. package/out/Components/Navigation/init.luau +7 -0
  54. package/out/Components/Surface/Box.d.ts +7 -0
  55. package/out/Components/Surface/Box.luau +50 -0
  56. package/out/Components/Surface/Card.d.ts +25 -0
  57. package/out/Components/Surface/Card.luau +138 -0
  58. package/out/Components/Surface/Icon.d.ts +10 -0
  59. package/out/Components/Surface/Icon.luau +64 -0
  60. package/out/Components/Surface/Panel.d.ts +4 -0
  61. package/out/Components/Surface/Panel.luau +33 -0
  62. package/out/Components/Surface/index.d.ts +4 -0
  63. package/out/Components/Surface/init.luau +16 -0
  64. package/out/Components/Typography/Text.d.ts +18 -0
  65. package/out/Components/Typography/Text.luau +48 -0
  66. package/out/Components/Typography/index.d.ts +1 -0
  67. package/out/Components/Typography/init.luau +7 -0
  68. package/out/Components/index.d.ts +8 -0
  69. package/out/Components/init.luau +28 -0
  70. package/out/Contexts/draggable.context.d.ts +8 -0
  71. package/out/Contexts/draggable.context.luau +7 -0
  72. package/out/Contexts/droppable.context.d.ts +6 -0
  73. package/out/Contexts/droppable.context.luau +7 -0
  74. package/out/Contexts/index.d.ts +6 -0
  75. package/out/Contexts/init.luau +22 -0
  76. package/out/Contexts/navigation.context.d.ts +5 -0
  77. package/out/Contexts/navigation.context.luau +9 -0
  78. package/out/Contexts/overlay.context.d.ts +13 -0
  79. package/out/Contexts/overlay.context.luau +17 -0
  80. package/out/Contexts/row.context.d.ts +9 -0
  81. package/out/Contexts/row.context.luau +12 -0
  82. package/out/Contexts/theme.context.d.ts +3 -0
  83. package/out/Contexts/theme.context.luau +8 -0
  84. package/out/Helpers/breakpoint.helper.d.ts +7 -0
  85. package/out/Helpers/breakpoint.helper.luau +124 -0
  86. package/out/Helpers/color.helper.d.ts +5 -0
  87. package/out/Helpers/color.helper.luau +101 -0
  88. package/out/Helpers/create-ui-story.d.ts +16 -0
  89. package/out/Helpers/create-ui-story.luau +38 -0
  90. package/out/Helpers/css.helper.d.ts +12 -0
  91. package/out/Helpers/css.helper.luau +114 -0
  92. package/out/Helpers/gui.helper.d.ts +10 -0
  93. package/out/Helpers/gui.helper.luau +134 -0
  94. package/out/Helpers/index.d.ts +8 -0
  95. package/out/Helpers/init.luau +28 -0
  96. package/out/Helpers/size.helper.d.ts +14 -0
  97. package/out/Helpers/size.helper.luau +162 -0
  98. package/out/Helpers/spacing.helper.d.ts +7 -0
  99. package/out/Helpers/spacing.helper.luau +57 -0
  100. package/out/Helpers/typography.helper.d.ts +7 -0
  101. package/out/Helpers/typography.helper.luau +91 -0
  102. package/out/Interfaces/clean.element.props.d.ts +109 -0
  103. package/out/Interfaces/clean.element.props.luau +5 -0
  104. package/out/Interfaces/icon.d.ts +2 -0
  105. package/out/Interfaces/icon.luau +2 -0
  106. package/out/Interfaces/index.d.ts +3 -0
  107. package/out/Interfaces/init.luau +13 -0
  108. package/out/Interfaces/userinput.d.ts +22 -0
  109. package/out/Interfaces/userinput.luau +8 -0
  110. package/out/Providers/index.d.ts +3 -0
  111. package/out/Providers/init.luau +13 -0
  112. package/out/Providers/overlay.provider.d.ts +3 -0
  113. package/out/Providers/overlay.provider.luau +25 -0
  114. package/out/Providers/registry.provider.d.ts +33 -0
  115. package/out/Providers/registry.provider.luau +119 -0
  116. package/out/Providers/theme.provider.d.ts +8 -0
  117. package/out/Providers/theme.provider.luau +12 -0
  118. package/out/Theme/CleanTheme.d.ts +169 -0
  119. package/out/Theme/CleanTheme.luau +2 -0
  120. package/out/Theme/DefaultIcons.d.ts +2 -0
  121. package/out/Theme/DefaultIcons.luau +791 -0
  122. package/out/Theme/index.d.ts +3 -0
  123. package/out/Theme/init.luau +13 -0
  124. package/out/Theme/themes/dark.theme.d.ts +2 -0
  125. package/out/Theme/themes/dark.theme.luau +345 -0
  126. package/out/Theme/themes/default.theme.d.ts +2 -0
  127. package/out/Theme/themes/default.theme.luau +403 -0
  128. package/out/Theme/themes/index.d.ts +3 -0
  129. package/out/Theme/themes/init.luau +13 -0
  130. package/out/Theme/themes/sandstone.theme.d.ts +2 -0
  131. package/out/Theme/themes/sandstone.theme.luau +345 -0
  132. package/out/index.d.ts +6 -0
  133. package/out/init.luau +22 -0
  134. package/package.json +43 -0
@@ -0,0 +1,345 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local font = Enum.Font.SourceSans
3
+ local SandstoneTheme = {
4
+ colors = {
5
+ intents = {
6
+ primary = {
7
+ default = {
8
+ textColor = Color3.fromHex("#244F4A"),
9
+ borderColor = Color3.fromHex("#4E8179"),
10
+ backgroundColor = Color3.fromHex("#D9E9E5"),
11
+ },
12
+ hover = {
13
+ textColor = Color3.fromHex("#183B37"),
14
+ borderColor = Color3.fromHex("#376A63"),
15
+ backgroundColor = Color3.fromHex("#C4DDD7"),
16
+ },
17
+ },
18
+ success = {
19
+ default = {
20
+ textColor = Color3.fromHex("#2E6245"),
21
+ borderColor = Color3.fromHex("#5B8A6A"),
22
+ backgroundColor = Color3.fromHex("#DDEBDD"),
23
+ },
24
+ hover = {
25
+ textColor = Color3.fromHex("#214E35"),
26
+ borderColor = Color3.fromHex("#467554"),
27
+ backgroundColor = Color3.fromHex("#C9E0CB"),
28
+ },
29
+ },
30
+ danger = {
31
+ default = {
32
+ textColor = Color3.fromHex("#8A3D3A"),
33
+ borderColor = Color3.fromHex("#B46861"),
34
+ backgroundColor = Color3.fromHex("#F2D9D5"),
35
+ },
36
+ hover = {
37
+ textColor = Color3.fromHex("#6F2D2B"),
38
+ borderColor = Color3.fromHex("#9F504A"),
39
+ backgroundColor = Color3.fromHex("#EBC5C0"),
40
+ },
41
+ },
42
+ warning = {
43
+ default = {
44
+ textColor = Color3.fromHex("#7A5721"),
45
+ borderColor = Color3.fromHex("#C3994C"),
46
+ backgroundColor = Color3.fromHex("#F5E8C8"),
47
+ },
48
+ hover = {
49
+ textColor = Color3.fromHex("#644515"),
50
+ borderColor = Color3.fromHex("#AA7E34"),
51
+ backgroundColor = Color3.fromHex("#EED9A7"),
52
+ },
53
+ },
54
+ info = {
55
+ default = {
56
+ textColor = Color3.fromHex("#365F78"),
57
+ borderColor = Color3.fromHex("#6F98AE"),
58
+ backgroundColor = Color3.fromHex("#DDEAF0"),
59
+ },
60
+ hover = {
61
+ textColor = Color3.fromHex("#294A5D"),
62
+ borderColor = Color3.fromHex("#578097"),
63
+ backgroundColor = Color3.fromHex("#C8DDE7"),
64
+ },
65
+ },
66
+ },
67
+ },
68
+ default = {
69
+ scale = "md",
70
+ spacing = "md",
71
+ },
72
+ breakpoints = {
73
+ xs = 100,
74
+ sm = 200,
75
+ md = 300,
76
+ lg = 400,
77
+ xl = 500,
78
+ },
79
+ spacing = {
80
+ xs = 4,
81
+ sm = 8,
82
+ md = 12,
83
+ lg = 16,
84
+ xl = 24,
85
+ },
86
+ radius = {
87
+ sm = 2,
88
+ md = 4,
89
+ lg = 8,
90
+ default = "md",
91
+ },
92
+ typography = {
93
+ display = {
94
+ font = font,
95
+ weight = Enum.FontWeight.Bold,
96
+ size = Enum.FontSize.Size48,
97
+ lineHeight = 1.05,
98
+ },
99
+ title = {
100
+ font = font,
101
+ weight = Enum.FontWeight.SemiBold,
102
+ size = Enum.FontSize.Size32,
103
+ lineHeight = 1.15,
104
+ },
105
+ heading = {
106
+ font = font,
107
+ weight = Enum.FontWeight.SemiBold,
108
+ size = Enum.FontSize.Size24,
109
+ lineHeight = 1.2,
110
+ },
111
+ body = {
112
+ font = font,
113
+ size = Enum.FontSize.Size18,
114
+ lineHeight = 1.45,
115
+ },
116
+ label = {
117
+ font = font,
118
+ weight = Enum.FontWeight.SemiBold,
119
+ size = Enum.FontSize.Size14,
120
+ lineHeight = 1.2,
121
+ },
122
+ caption = {
123
+ font = font,
124
+ size = Enum.FontSize.Size10,
125
+ lineHeight = 1.3,
126
+ },
127
+ },
128
+ typeScaleMap = {
129
+ xs = "caption",
130
+ sm = "label",
131
+ md = "body",
132
+ lg = "heading",
133
+ xl = "title",
134
+ },
135
+ components = {
136
+ scroller = {
137
+ barColor = Color3.fromHex("#9B8B73"),
138
+ },
139
+ boxShadow = {
140
+ color = Color3.fromHex("#4F4538"),
141
+ transparency = 0.82,
142
+ },
143
+ box = {
144
+ backgroundColor = Color3.fromHex("#FFF9ED"),
145
+ backgroundTransparency = 0,
146
+ borderColor = Color3.fromHex("#D8CDBA"),
147
+ borderThickness = 1,
148
+ cornerRadius = 4,
149
+ boxShadow = "0px 3px 8px 0px",
150
+ },
151
+ button = {
152
+ backgroundTransparency = 0,
153
+ borderThickness = 1,
154
+ cornerRadius = 4,
155
+ intents = {
156
+ primary = {
157
+ default = {
158
+ textColor = Color3.fromHex("#244F4A"),
159
+ },
160
+ },
161
+ success = {
162
+ default = {
163
+ textColor = Color3.fromHex("#2E6245"),
164
+ },
165
+ },
166
+ info = {
167
+ default = {
168
+ textColor = Color3.fromHex("#365F78"),
169
+ },
170
+ },
171
+ warning = {
172
+ default = {
173
+ textColor = Color3.fromHex("#7A5721"),
174
+ },
175
+ },
176
+ danger = {
177
+ default = {
178
+ textColor = Color3.fromHex("#8A3D3A"),
179
+ },
180
+ },
181
+ },
182
+ },
183
+ input = {
184
+ borderColor = Color3.fromHex("#CDBFA8"),
185
+ borderThickness = 1,
186
+ cornerRadius = 4,
187
+ },
188
+ select = {
189
+ dropDownBackgroundColor = Color3.fromHex("#FFF9ED"),
190
+ maxDropDownHeight = 200,
191
+ borderColor = Color3.fromHex("#CDBFA8"),
192
+ borderThickness = 1,
193
+ cornerRadius = 4,
194
+ intents = {
195
+ primary = {
196
+ default = {
197
+ textColor = Color3.fromHex("#4A4034"),
198
+ backgroundColor = Color3.fromHex("#FFF9ED"),
199
+ },
200
+ hover = {
201
+ textColor = Color3.fromHex("#244F4A"),
202
+ backgroundColor = Color3.fromHex("#E7F0EB"),
203
+ },
204
+ focus = {
205
+ textColor = Color3.fromHex("#FFFFFF"),
206
+ borderColor = Color3.fromHex("#376A63"),
207
+ backgroundColor = Color3.fromHex("#4E8179"),
208
+ },
209
+ },
210
+ },
211
+ },
212
+ checkbox = {
213
+ borderColor = Color3.fromHex("#CDBFA8"),
214
+ borderThickness = 1,
215
+ cornerRadius = 4,
216
+ spacing = {
217
+ xs = 1,
218
+ sm = 2,
219
+ md = 4,
220
+ lg = 6,
221
+ xl = 8,
222
+ },
223
+ },
224
+ tabs = {
225
+ borderColor = Color3.fromHex("#D8CDBA"),
226
+ backgroundColor = Color3.fromHex("#FFF9ED"),
227
+ borderThickness = 1,
228
+ cornerRadius = 4,
229
+ list = {
230
+ backgroundColor = Color3.fromHex("#EFE5D3"),
231
+ borderThickness = 0,
232
+ cornerRadius = 2,
233
+ spacing = {
234
+ xs = 2,
235
+ sm = 4,
236
+ md = 6,
237
+ lg = 8,
238
+ xl = 12,
239
+ },
240
+ },
241
+ button = {
242
+ borderThickness = 0,
243
+ cornerRadius = 2,
244
+ spacing = {
245
+ xs = 1,
246
+ sm = 2,
247
+ md = 4,
248
+ lg = 6,
249
+ xl = 8,
250
+ },
251
+ intents = {
252
+ primary = {
253
+ default = {
254
+ backgroundTransparency = 1,
255
+ textColor = Color3.fromHex("#746754"),
256
+ },
257
+ hover = {
258
+ backgroundTransparency = 1,
259
+ textColor = Color3.fromHex("#244F4A"),
260
+ },
261
+ focus = {
262
+ textColor = Color3.fromHex("#244F4A"),
263
+ backgroundColor = Color3.fromHex("#FFF9ED"),
264
+ backgroundTransparency = 0,
265
+ boxShadow = "0px 2px 5px 0px",
266
+ typography = {
267
+ weight = Enum.FontWeight.SemiBold,
268
+ },
269
+ },
270
+ },
271
+ },
272
+ },
273
+ },
274
+ draggable = {
275
+ placeholder = {
276
+ backgroundColor = Color3.fromHex("#EFE5D3"),
277
+ backgroundTransparency = 0.35,
278
+ borderColor = Color3.fromHex("#CDBFA8"),
279
+ borderThickness = 1,
280
+ cornerRadius = 4,
281
+ },
282
+ },
283
+ card = {
284
+ borderThickness = 1,
285
+ cornerRadius = 4,
286
+ header = {
287
+ intents = {
288
+ primary = {
289
+ default = {
290
+ backgroundColor = Color3.fromHex("#EFE5D3"),
291
+ backgroundTransparency = 0,
292
+ },
293
+ },
294
+ },
295
+ },
296
+ footer = {
297
+ intents = {
298
+ primary = {
299
+ default = {
300
+ backgroundColor = Color3.fromHex("#EFE5D3"),
301
+ backgroundTransparency = 0,
302
+ },
303
+ },
304
+ },
305
+ },
306
+ },
307
+ slider = {
308
+ height = 20,
309
+ bar = {
310
+ height = "50%",
311
+ padding = 10,
312
+ backgroundColor = Color3.fromHex("#EFE5D3"),
313
+ borderThickness = 1,
314
+ backgroundTransparency = 0,
315
+ borderColor = Color3.fromHex("#CDBFA8"),
316
+ cornerRadius = 4,
317
+ highlight = {
318
+ backgroundColor = Color3.fromHex("#CDBFA8"),
319
+ backgroundTransparency = 0.3,
320
+ borderColor = Color3.fromHex("#CDBFA8"),
321
+ },
322
+ },
323
+ handle = {
324
+ backgroundColor = Color3.fromHex("#D9E9E5"),
325
+ borderThickness = 1,
326
+ backgroundTransparency = 0,
327
+ borderColor = Color3.fromHex("#4E8179"),
328
+ cornerRadius = 4,
329
+ },
330
+ },
331
+ },
332
+ icons = {
333
+ ["shopping-cart"] = 112388431913339,
334
+ },
335
+ iconSize = {
336
+ xs = 10,
337
+ sm = 16,
338
+ md = 20,
339
+ lg = 24,
340
+ xl = 30,
341
+ },
342
+ }
343
+ return {
344
+ SandstoneTheme = SandstoneTheme,
345
+ }
package/out/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from "./Components";
2
+ export * from "./Helpers";
3
+ export * from "./Theme";
4
+ export * from "./Interfaces";
5
+ export * from "./Providers";
6
+ export * from "./Contexts";
package/out/init.luau ADDED
@@ -0,0 +1,22 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local exports = {}
4
+ for _k, _v in TS.import(script, script, "Components") or {} do
5
+ exports[_k] = _v
6
+ end
7
+ for _k, _v in TS.import(script, script, "Helpers") or {} do
8
+ exports[_k] = _v
9
+ end
10
+ for _k, _v in TS.import(script, script, "Theme") or {} do
11
+ exports[_k] = _v
12
+ end
13
+ for _k, _v in TS.import(script, script, "Interfaces") or {} do
14
+ exports[_k] = _v
15
+ end
16
+ for _k, _v in TS.import(script, script, "Providers") or {} do
17
+ exports[_k] = _v
18
+ end
19
+ for _k, _v in TS.import(script, script, "Contexts") or {} do
20
+ exports[_k] = _v
21
+ end
22
+ return exports
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@rbxts/react-clean-ui",
3
+ "version": "1.0.5",
4
+ "description": "",
5
+ "main": "out/init.lua",
6
+ "scripts": {
7
+ "build": "rbxtsc",
8
+ "watch": "rbxtsc -w",
9
+ "prepublishOnly": "npm run build"
10
+ },
11
+ "keywords": [],
12
+ "author": "",
13
+ "license": "ISC",
14
+ "type": "commonjs",
15
+ "types": "out/index.d.ts",
16
+ "files": [
17
+ "out",
18
+ "!**/*.tsbuildinfo"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "devDependencies": {
24
+ "@rbxts/compiler-types": "^3.0.0-types.0",
25
+ "@rbxts/types": "^1.0.938",
26
+ "@typescript-eslint/eslint-plugin": "^8.63.0",
27
+ "@typescript-eslint/parser": "^8.63.0",
28
+ "eslint": "^9.39.5",
29
+ "eslint-config-prettier": "^10.1.8",
30
+ "eslint-plugin-prettier": "^5.5.6",
31
+ "eslint-plugin-roblox-ts": "^1.4.0",
32
+ "prettier": "^3.9.5",
33
+ "roblox-ts": "^3.0.0",
34
+ "typescript": "^5.9.3"
35
+ },
36
+ "dependencies": {
37
+ "@rbxts/react": "^17.3.7-ts.2",
38
+ "@rbxts/react-ripple": "^3.0.1",
39
+ "@rbxts/react-roblox": "^17.3.7-ts.2",
40
+ "@rbxts/services": "^1.6.0",
41
+ "@rbxts/ui-labs": "^2.4.2"
42
+ }
43
+ }