@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,403 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local font = Enum.Font.Gotham
3
+ local DefaultTheme = {
4
+ colors = {
5
+ intents = {
6
+ primary = {
7
+ default = {
8
+ textColor = Color3.fromHex("#1D2433"),
9
+ borderColor = Color3.fromHex("#D9DEE8"),
10
+ backgroundColor = Color3.fromHex("#FFFFFF"),
11
+ },
12
+ hover = {
13
+ textColor = Color3.fromHex("#477FE8"),
14
+ borderColor = Color3.fromHex("#D9DEE8"),
15
+ backgroundColor = Color3.fromHex("F5F5F5"),
16
+ },
17
+ },
18
+ success = {
19
+ default = {
20
+ textColor = Color3.fromHex("#2E9D63"),
21
+ borderColor = Color3.fromHex("#237D4D"),
22
+ backgroundColor = Color3.fromHex("#2E9D63"),
23
+ },
24
+ hover = {
25
+ textColor = Color3.fromHex("#38AC70"),
26
+ borderColor = Color3.fromHex("#237D4D"),
27
+ backgroundColor = Color3.fromHex("#1f824e"),
28
+ },
29
+ },
30
+ danger = {
31
+ default = {
32
+ textColor = Color3.fromHex("#D64545"),
33
+ borderColor = Color3.fromHex("#B53535"),
34
+ backgroundColor = Color3.fromHex("#D64545"),
35
+ },
36
+ hover = {
37
+ textColor = Color3.fromHex("#E05252"),
38
+ borderColor = Color3.fromHex("#D64545"),
39
+ backgroundColor = Color3.fromHex("#b03131"),
40
+ },
41
+ },
42
+ warning = {
43
+ default = {
44
+ textColor = Color3.fromHex("#E7A92F"),
45
+ borderColor = Color3.fromHex("#C58B1D"),
46
+ backgroundColor = Color3.fromHex("#E7A92F"),
47
+ },
48
+ hover = {
49
+ textColor = Color3.fromHex("#F0B640"),
50
+ borderColor = Color3.fromHex("#C58B1D"),
51
+ backgroundColor = Color3.fromHex("#bf8a22"),
52
+ },
53
+ },
54
+ info = {
55
+ default = {
56
+ textColor = Color3.fromHex("#3187C8"),
57
+ borderColor = Color3.fromHex("#266CA2"),
58
+ backgroundColor = Color3.fromHex("#3187C8"),
59
+ },
60
+ hover = {
61
+ textColor = Color3.fromHex("#4097D8"),
62
+ borderColor = Color3.fromHex("#266CA2"),
63
+ backgroundColor = Color3.fromHex("#2977b3"),
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 = 4,
88
+ md = 8,
89
+ lg = 12,
90
+ default = "md",
91
+ },
92
+ typography = {
93
+ display = {
94
+ font = font,
95
+ weight = Enum.FontWeight.Bold,
96
+ size = Enum.FontSize.Size48,
97
+ lineHeight = 1.1,
98
+ },
99
+ title = {
100
+ font = font,
101
+ weight = Enum.FontWeight.Bold,
102
+ size = Enum.FontSize.Size32,
103
+ lineHeight = 1.2,
104
+ },
105
+ heading = {
106
+ font = font,
107
+ weight = Enum.FontWeight.Bold,
108
+ size = Enum.FontSize.Size24,
109
+ lineHeight = 1.25,
110
+ },
111
+ body = {
112
+ font = font,
113
+ size = Enum.FontSize.Size18,
114
+ lineHeight = 1.4,
115
+ },
116
+ label = {
117
+ font = font,
118
+ weight = Enum.FontWeight.Bold,
119
+ size = Enum.FontSize.Size14,
120
+ lineHeight = 1.2,
121
+ },
122
+ caption = {
123
+ font = Enum.Font.Gotham,
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("#000000"),
138
+ },
139
+ boxShadow = {
140
+ color = Color3.fromHex("#000000"),
141
+ transparency = 0.9,
142
+ },
143
+ box = {
144
+ backgroundColor = Color3.fromHex("#FFFFFF"),
145
+ backgroundTransparency = 0,
146
+ borderColor = Color3.fromHex("#D9DEE8"),
147
+ borderThickness = 1,
148
+ cornerRadius = 8,
149
+ boxShadow = "2px 2px 2px 2px",
150
+ },
151
+ button = {
152
+ backgroundTransparency = 0,
153
+ borderThickness = 1,
154
+ cornerRadius = 8,
155
+ intents = {
156
+ primary = {
157
+ default = {
158
+ textColor = Color3.fromHex("#1D2433"),
159
+ },
160
+ },
161
+ success = {
162
+ default = {
163
+ textColor = Color3.fromHex("#FFFFFF"),
164
+ },
165
+ },
166
+ info = {
167
+ default = {
168
+ textColor = Color3.fromHex("#FFFFFF"),
169
+ },
170
+ },
171
+ warning = {
172
+ default = {
173
+ textColor = Color3.fromHex("#FFFFFF"),
174
+ },
175
+ },
176
+ danger = {
177
+ default = {
178
+ textColor = Color3.fromHex("#FFFFFF"),
179
+ },
180
+ },
181
+ },
182
+ },
183
+ input = {
184
+ borderColor = Color3.fromHex("#D9DEE8"),
185
+ borderThickness = 1,
186
+ cornerRadius = 8,
187
+ },
188
+ select = {
189
+ dropDownBackgroundColor = Color3.fromHex("#FFFFFF"),
190
+ maxDropDownHeight = 200,
191
+ borderColor = Color3.fromHex("#D9DEE8"),
192
+ borderThickness = 1,
193
+ cornerRadius = 8,
194
+ intents = {
195
+ primary = {
196
+ default = {
197
+ textColor = Color3.fromHex("#1D2433"),
198
+ },
199
+ hover = {
200
+ textColor = Color3.fromHex("#000000"),
201
+ backgroundColor = Color3.fromHex("#CCCCCC"),
202
+ },
203
+ focus = {
204
+ textColor = Color3.fromHex("#FFFFFF"),
205
+ backgroundColor = Color3.fromHex("#3187C8"),
206
+ },
207
+ },
208
+ },
209
+ },
210
+ checkbox = {
211
+ borderColor = Color3.fromHex("#D9DEE8"),
212
+ borderThickness = 1,
213
+ cornerRadius = 8,
214
+ spacing = {
215
+ xs = 1,
216
+ sm = 2,
217
+ md = 4,
218
+ lg = 6,
219
+ xl = 8,
220
+ },
221
+ },
222
+ tabs = {
223
+ borderColor = Color3.fromHex("#D9DEE8"),
224
+ backgroundColor = Color3.fromHex("#FFFFFF"),
225
+ borderThickness = 1,
226
+ cornerRadius = 4,
227
+ list = {
228
+ backgroundColor = Color3.fromHex("#F5F5F5"),
229
+ borderThickness = 0,
230
+ cornerRadius = 8,
231
+ spacing = {
232
+ xs = 2,
233
+ sm = 4,
234
+ md = 6,
235
+ lg = 8,
236
+ xl = 12,
237
+ },
238
+ },
239
+ button = {
240
+ borderThickness = 0,
241
+ cornerRadius = 4,
242
+ spacing = {
243
+ xs = 1,
244
+ sm = 2,
245
+ md = 4,
246
+ lg = 6,
247
+ xl = 8,
248
+ },
249
+ intents = {
250
+ primary = {
251
+ default = {
252
+ backgroundTransparency = 1,
253
+ textColor = Color3.fromHex("#4f4f4f"),
254
+ },
255
+ hover = {
256
+ backgroundTransparency = 1,
257
+ textColor = Color3.fromHex("#000000"),
258
+ },
259
+ focus = {
260
+ textColor = Color3.fromHex("#000000"),
261
+ backgroundColor = Color3.fromHex("#FFFFFF"),
262
+ backgroundTransparency = 0,
263
+ boxShadow = "2px 2px 2px 2px",
264
+ typography = {
265
+ weight = Enum.FontWeight.Bold,
266
+ },
267
+ },
268
+ },
269
+ },
270
+ },
271
+ },
272
+ draggable = {
273
+ placeholder = {
274
+ backgroundColor = Color3.fromHex("#D9DEE8"),
275
+ backgroundTransparency = 0.5,
276
+ borderColor = Color3.fromHex("#D9DEE8"),
277
+ borderThickness = 2,
278
+ cornerRadius = 8,
279
+ },
280
+ },
281
+ card = {
282
+ borderThickness = 1,
283
+ cornerRadius = 8,
284
+ header = {
285
+ intents = {
286
+ primary = {
287
+ default = {
288
+ backgroundColor = Color3.fromHex("#F5F5F5"),
289
+ backgroundTransparency = 0,
290
+ borderColor = Color3.fromHex("#D9DEE8"),
291
+ },
292
+ },
293
+ success = {
294
+ default = {
295
+ backgroundColor = Color3.fromHex("#2E9D63"),
296
+ backgroundTransparency = 0.7,
297
+ borderColor = Color3.fromHex("#237D4D"),
298
+ },
299
+ },
300
+ info = {
301
+ default = {
302
+ borderColor = Color3.fromHex("#266CA2"),
303
+ backgroundColor = Color3.fromHex("#3187C8"),
304
+ backgroundTransparency = 0.7,
305
+ },
306
+ },
307
+ warning = {
308
+ default = {
309
+ borderColor = Color3.fromHex("#C58B1D"),
310
+ backgroundColor = Color3.fromHex("#E7A92F"),
311
+ backgroundTransparency = 0.7,
312
+ },
313
+ },
314
+ danger = {
315
+ default = {
316
+ borderColor = Color3.fromHex("#B53535"),
317
+ backgroundColor = Color3.fromHex("#D64545"),
318
+ backgroundTransparency = 0.7,
319
+ },
320
+ },
321
+ },
322
+ },
323
+ footer = {
324
+ intents = {
325
+ primary = {
326
+ default = {
327
+ backgroundColor = Color3.fromHex("#F5F5F5"),
328
+ backgroundTransparency = 0,
329
+ borderColor = Color3.fromHex("#D9DEE8"),
330
+ },
331
+ },
332
+ success = {
333
+ default = {
334
+ backgroundColor = Color3.fromHex("#2E9D63"),
335
+ backgroundTransparency = 0.7,
336
+ borderColor = Color3.fromHex("#237D4D"),
337
+ },
338
+ },
339
+ info = {
340
+ default = {
341
+ borderColor = Color3.fromHex("#266CA2"),
342
+ backgroundColor = Color3.fromHex("#3187C8"),
343
+ backgroundTransparency = 0.7,
344
+ },
345
+ },
346
+ warning = {
347
+ default = {
348
+ borderColor = Color3.fromHex("#C58B1D"),
349
+ backgroundColor = Color3.fromHex("#E7A92F"),
350
+ backgroundTransparency = 0.7,
351
+ },
352
+ },
353
+ danger = {
354
+ default = {
355
+ borderColor = Color3.fromHex("#B53535"),
356
+ backgroundColor = Color3.fromHex("#D64545"),
357
+ backgroundTransparency = 0.7,
358
+ },
359
+ },
360
+ },
361
+ },
362
+ },
363
+ slider = {
364
+ height = 20,
365
+ bar = {
366
+ backgroundColor = Color3.fromHex("#F5F5F5"),
367
+ height = "30%",
368
+ padding = 25,
369
+ borderThickness = 1,
370
+ backgroundTransparency = 0,
371
+ borderColor = Color3.fromHex("#D9DEE8"),
372
+ cornerRadius = 8,
373
+ highlight = {
374
+ backgroundColor = Color3.fromHex("#333333"),
375
+ backgroundTransparency = 0.3,
376
+ borderColor = Color3.fromHex("#000000"),
377
+ },
378
+ },
379
+ handle = {
380
+ boxShadow = "0px 0px 5px 5px",
381
+ backgroundColor = Color3.fromHex("#F5F5F5"),
382
+ borderThickness = 1,
383
+ backgroundTransparency = 0,
384
+ borderColor = Color3.fromHex("#D9DEE8"),
385
+ cornerRadius = 8,
386
+ aspectRation = 1,
387
+ },
388
+ },
389
+ },
390
+ icons = {
391
+ ["shopping-cart"] = 112388431913339,
392
+ },
393
+ iconSize = {
394
+ xs = 10,
395
+ sm = 16,
396
+ md = 20,
397
+ lg = 24,
398
+ xl = 30,
399
+ },
400
+ }
401
+ return {
402
+ DefaultTheme = DefaultTheme,
403
+ }
@@ -0,0 +1,3 @@
1
+ export * from './dark.theme';
2
+ export * from './default.theme';
3
+ export * from './sandstone.theme';
@@ -0,0 +1,13 @@
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, "dark.theme") or {} do
5
+ exports[_k] = _v
6
+ end
7
+ for _k, _v in TS.import(script, script, "default.theme") or {} do
8
+ exports[_k] = _v
9
+ end
10
+ for _k, _v in TS.import(script, script, "sandstone.theme") or {} do
11
+ exports[_k] = _v
12
+ end
13
+ return exports
@@ -0,0 +1,2 @@
1
+ import { CleanTheme } from "../CleanTheme";
2
+ export declare const SandstoneTheme: CleanTheme;