@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,3 @@
1
+ export * from './CleanTheme';
2
+ export * from './DefaultIcons';
3
+ export * from './themes/';
@@ -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, "CleanTheme") or {} do
5
+ exports[_k] = _v
6
+ end
7
+ for _k, _v in TS.import(script, script, "DefaultIcons") or {} do
8
+ exports[_k] = _v
9
+ end
10
+ for _k, _v in TS.import(script, script, "themes") or {} do
11
+ exports[_k] = _v
12
+ end
13
+ return exports
@@ -0,0 +1,2 @@
1
+ import { CleanTheme } from "../CleanTheme";
2
+ export declare const DarkTheme: CleanTheme;
@@ -0,0 +1,345 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local font = Enum.Font.Jura
3
+ local DarkTheme = {
4
+ colors = {
5
+ intents = {
6
+ primary = {
7
+ default = {
8
+ textColor = Color3.fromHex("#E8EDF8"),
9
+ borderColor = Color3.fromHex("#4B74C7"),
10
+ backgroundColor = Color3.fromHex("#365FAF"),
11
+ },
12
+ hover = {
13
+ textColor = Color3.fromHex("#FFFFFF"),
14
+ borderColor = Color3.fromHex("#6B96F0"),
15
+ backgroundColor = Color3.fromHex("#4775CC"),
16
+ },
17
+ },
18
+ success = {
19
+ default = {
20
+ textColor = Color3.fromHex("#75E0A7"),
21
+ borderColor = Color3.fromHex("#258A56"),
22
+ backgroundColor = Color3.fromHex("#237A4D"),
23
+ },
24
+ hover = {
25
+ textColor = Color3.fromHex("#FFFFFF"),
26
+ borderColor = Color3.fromHex("#42C982"),
27
+ backgroundColor = Color3.fromHex("#2D965F"),
28
+ },
29
+ },
30
+ danger = {
31
+ default = {
32
+ textColor = Color3.fromHex("#FF8D8D"),
33
+ borderColor = Color3.fromHex("#B93A3A"),
34
+ backgroundColor = Color3.fromHex("#A63737"),
35
+ },
36
+ hover = {
37
+ textColor = Color3.fromHex("#FFFFFF"),
38
+ borderColor = Color3.fromHex("#EB6262"),
39
+ backgroundColor = Color3.fromHex("#C64646"),
40
+ },
41
+ },
42
+ warning = {
43
+ default = {
44
+ textColor = Color3.fromHex("#FFD978"),
45
+ borderColor = Color3.fromHex("#B68522"),
46
+ backgroundColor = Color3.fromHex("#916B1D"),
47
+ },
48
+ hover = {
49
+ textColor = Color3.fromHex("#FFF8E5"),
50
+ borderColor = Color3.fromHex("#E0AD3E"),
51
+ backgroundColor = Color3.fromHex("#AF8427"),
52
+ },
53
+ },
54
+ info = {
55
+ default = {
56
+ textColor = Color3.fromHex("#8DD0FF"),
57
+ borderColor = Color3.fromHex("#2F79B4"),
58
+ backgroundColor = Color3.fromHex("#286D9F"),
59
+ },
60
+ hover = {
61
+ textColor = Color3.fromHex("#FFFFFF"),
62
+ borderColor = Color3.fromHex("#58ACE8"),
63
+ backgroundColor = Color3.fromHex("#3487BE"),
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 = 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("#697386"),
138
+ },
139
+ boxShadow = {
140
+ color = Color3.fromHex("#000000"),
141
+ transparency = 0.5,
142
+ },
143
+ box = {
144
+ backgroundColor = Color3.fromHex("#1B1F27"),
145
+ backgroundTransparency = 0,
146
+ borderColor = Color3.fromHex("#343B49"),
147
+ borderThickness = 1,
148
+ cornerRadius = 8,
149
+ boxShadow = "2px 2px 8px 0px",
150
+ },
151
+ button = {
152
+ backgroundTransparency = 0,
153
+ borderThickness = 1,
154
+ cornerRadius = 8,
155
+ intents = {
156
+ primary = {
157
+ default = {
158
+ textColor = Color3.fromHex("#FFFFFF"),
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("#3A4352"),
185
+ borderThickness = 1,
186
+ cornerRadius = 8,
187
+ },
188
+ select = {
189
+ dropDownBackgroundColor = Color3.fromHex("#20252E"),
190
+ maxDropDownHeight = 200,
191
+ borderColor = Color3.fromHex("#3A4352"),
192
+ borderThickness = 1,
193
+ cornerRadius = 8,
194
+ intents = {
195
+ primary = {
196
+ default = {
197
+ textColor = Color3.fromHex("#E8EDF8"),
198
+ backgroundColor = Color3.fromHex("#20252E"),
199
+ },
200
+ hover = {
201
+ textColor = Color3.fromHex("#FFFFFF"),
202
+ backgroundColor = Color3.fromHex("#2B3340"),
203
+ },
204
+ focus = {
205
+ textColor = Color3.fromHex("#FFFFFF"),
206
+ backgroundColor = Color3.fromHex("#365FAF"),
207
+ borderColor = Color3.fromHex("#6B96F0"),
208
+ },
209
+ },
210
+ },
211
+ },
212
+ checkbox = {
213
+ borderColor = Color3.fromHex("#3A4352"),
214
+ borderThickness = 1,
215
+ cornerRadius = 8,
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("#343B49"),
226
+ backgroundColor = Color3.fromHex("#1B1F27"),
227
+ borderThickness = 1,
228
+ cornerRadius = 4,
229
+ list = {
230
+ backgroundColor = Color3.fromHex("#14181F"),
231
+ borderThickness = 0,
232
+ cornerRadius = 8,
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 = 4,
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("#AAB3C2"),
256
+ },
257
+ hover = {
258
+ backgroundTransparency = 1,
259
+ textColor = Color3.fromHex("#FFFFFF"),
260
+ },
261
+ focus = {
262
+ textColor = Color3.fromHex("#FFFFFF"),
263
+ backgroundColor = Color3.fromHex("#2A303B"),
264
+ backgroundTransparency = 0,
265
+ boxShadow = "2px 2px 6px 0px",
266
+ typography = {
267
+ weight = Enum.FontWeight.Bold,
268
+ },
269
+ },
270
+ },
271
+ },
272
+ },
273
+ },
274
+ draggable = {
275
+ placeholder = {
276
+ backgroundColor = Color3.fromHex("#2A303B"),
277
+ backgroundTransparency = 0.35,
278
+ borderColor = Color3.fromHex("#4B74C7"),
279
+ borderThickness = 1,
280
+ cornerRadius = 8,
281
+ },
282
+ },
283
+ card = {
284
+ borderThickness = 1,
285
+ cornerRadius = 8,
286
+ header = {
287
+ intents = {
288
+ primary = {
289
+ default = {
290
+ backgroundColor = Color3.fromHex("#20252E"),
291
+ backgroundTransparency = 0,
292
+ },
293
+ },
294
+ },
295
+ },
296
+ footer = {
297
+ intents = {
298
+ primary = {
299
+ default = {
300
+ backgroundColor = Color3.fromHex("#20252E"),
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("#2A303B"),
313
+ borderThickness = 1,
314
+ backgroundTransparency = 0,
315
+ borderColor = Color3.fromHex("#3A4352"),
316
+ cornerRadius = 8,
317
+ highlight = {
318
+ backgroundColor = Color3.fromHex("#3d57ff"),
319
+ backgroundTransparency = 0.7,
320
+ borderColor = Color3.fromHex("#3A4352"),
321
+ },
322
+ },
323
+ handle = {
324
+ backgroundColor = Color3.fromHex("#365FAF"),
325
+ borderThickness = 1,
326
+ backgroundTransparency = 0,
327
+ borderColor = Color3.fromHex("#6B96F0"),
328
+ cornerRadius = "100%",
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
+ DarkTheme = DarkTheme,
345
+ }
@@ -0,0 +1,2 @@
1
+ import { CleanTheme } from "../CleanTheme";
2
+ export declare const DefaultTheme: CleanTheme;