@rbxts/react-clean-ui 1.0.19 → 1.0.38

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 (99) hide show
  1. package/out/Components/Chart/BarChart.d.ts +47 -0
  2. package/out/Components/Chart/BarChart.luau +880 -0
  3. package/out/Components/Chart/Pie.luau +12 -12
  4. package/out/Components/Chart/index.d.ts +1 -0
  5. package/out/Components/Chart/init.luau +3 -0
  6. package/out/Components/Input/Button.d.ts +9 -0
  7. package/out/Components/Input/Button.luau +155 -46
  8. package/out/Components/Input/Checkbox.luau +21 -5
  9. package/out/Components/Input/Increment.d.ts +11 -0
  10. package/out/Components/Input/Increment.luau +107 -0
  11. package/out/Components/Input/Increment.step.d.ts +1 -0
  12. package/out/Components/Input/Increment.step.luau +25 -0
  13. package/out/Components/Input/Input.d.ts +4 -3
  14. package/out/Components/Input/Input.luau +124 -17
  15. package/out/Components/Input/Input.validation.d.ts +3 -0
  16. package/out/Components/Input/Input.validation.luau +21 -0
  17. package/out/Components/Input/Select.d.ts +4 -3
  18. package/out/Components/Input/Select.luau +23 -18
  19. package/out/Components/Input/Slider.d.ts +1 -1
  20. package/out/Components/Input/Slider.luau +68 -34
  21. package/out/Components/Input/index.d.ts +1 -0
  22. package/out/Components/Input/init.luau +3 -0
  23. package/out/Components/Interaction/Toast.d.ts +1 -1
  24. package/out/Components/Interaction/Toast.luau +4 -4
  25. package/out/Components/Interaction/Tooltip.d.ts +1 -1
  26. package/out/Components/Interaction/Tooltip.luau +8 -1
  27. package/out/Components/Layout/Accordion.d.ts +34 -0
  28. package/out/Components/Layout/Accordion.luau +431 -0
  29. package/out/Components/Layout/Container.d.ts +4 -2
  30. package/out/Components/Layout/Container.luau +32 -7
  31. package/out/Components/Layout/Draggable.luau +1 -1
  32. package/out/Components/Layout/Fieldset.d.ts +1 -1
  33. package/out/Components/Layout/FlexItem.d.ts +2 -1
  34. package/out/Components/Layout/FlexItem.luau +1 -0
  35. package/out/Components/Layout/HStack.d.ts +2 -1
  36. package/out/Components/Layout/HStack.luau +1 -2
  37. package/out/Components/Layout/Scroller.d.ts +1 -0
  38. package/out/Components/Layout/Scroller.luau +1 -1
  39. package/out/Components/Layout/Tabs.d.ts +1 -1
  40. package/out/Components/Layout/Tabs.luau +37 -7
  41. package/out/Components/Layout/VStack.d.ts +4 -1
  42. package/out/Components/Layout/VStack.luau +2 -2
  43. package/out/Components/Layout/index.d.ts +1 -0
  44. package/out/Components/Layout/init.luau +3 -0
  45. package/out/Components/Navigation/Menu.d.ts +1 -1
  46. package/out/Components/Surface/Box.d.ts +5 -3
  47. package/out/Components/Surface/Box.luau +12 -3
  48. package/out/Components/Surface/Card.d.ts +8 -6
  49. package/out/Components/Surface/Card.luau +430 -26
  50. package/out/Components/Surface/Icon.d.ts +1 -1
  51. package/out/Components/Surface/Icon.luau +43 -4
  52. package/out/Components/Typography/Text.d.ts +1 -0
  53. package/out/Components/Typography/Text.luau +135 -13
  54. package/out/Contexts/row.context.d.ts +1 -1
  55. package/out/Contexts/theme.context.d.ts +2 -2
  56. package/out/Helpers/color.helper.d.ts +5 -3
  57. package/out/Helpers/color.helper.luau +62 -34
  58. package/out/Helpers/create-ui-story.d.ts +8 -6
  59. package/out/Helpers/create-ui-story.luau +48 -5
  60. package/out/Helpers/css.helper.d.ts +28 -2
  61. package/out/Helpers/css.helper.luau +208 -0
  62. package/out/Helpers/index.d.ts +1 -0
  63. package/out/Helpers/init.luau +3 -0
  64. package/out/Helpers/size.helper.d.ts +3 -1
  65. package/out/Helpers/size.helper.luau +10 -9
  66. package/out/Helpers/spacing.helper.d.ts +3 -3
  67. package/out/Helpers/typography.helper.d.ts +2 -2
  68. package/out/Interfaces/css.types.d.ts +28 -0
  69. package/out/Interfaces/css.types.luau +17 -0
  70. package/out/Interfaces/element.props.d.ts +61 -0
  71. package/out/Interfaces/element.props.luau +1 -0
  72. package/out/Interfaces/index.d.ts +4 -2
  73. package/out/Interfaces/init.luau +9 -3
  74. package/out/Interfaces/responsive.types.d.ts +26 -0
  75. package/out/Interfaces/semantics.d.ts +3 -0
  76. package/out/Interfaces/semantics.luau +2 -0
  77. package/out/Providers/app.provider.d.ts +2 -2
  78. package/out/Providers/theme.provider.d.ts +2 -2
  79. package/out/Theme/index.d.ts +1 -0
  80. package/out/Theme/theme.factory.d.ts +3 -3
  81. package/out/Theme/theme.style.d.ts +48 -0
  82. package/out/Theme/theme.style.luau +1 -0
  83. package/out/Theme/theme.template.d.ts +90 -36
  84. package/out/Theme/themes/dark.theme.d.ts +1 -1
  85. package/out/Theme/themes/dark.theme.luau +73 -1
  86. package/out/Theme/themes/default.theme.d.ts +2 -2
  87. package/out/Theme/themes/default.theme.luau +122 -12
  88. package/out/Theme/themes/index.d.ts +1 -0
  89. package/out/Theme/themes/init.luau +3 -0
  90. package/out/Theme/themes/sandstone.theme.d.ts +1 -1
  91. package/out/Theme/themes/sandstone.theme.luau +81 -10
  92. package/out/Theme/themes/wooden.theme.d.ts +1 -0
  93. package/out/Theme/themes/wooden.theme.luau +443 -0
  94. package/out/index.d.ts +8 -8
  95. package/package.json +20 -6
  96. package/out/Interfaces/clean.element.props.d.ts +0 -114
  97. /package/out/{Interfaces/userinput.d.ts → Helpers/input.helper.d.ts} +0 -0
  98. /package/out/{Interfaces/userinput.luau → Helpers/input.helper.luau} +0 -0
  99. /package/out/Interfaces/{clean.element.props.luau → responsive.types.luau} +0 -0
@@ -159,26 +159,51 @@ local DarkTheme = createTheme({
159
159
  default = {
160
160
  textColor = Color3.fromHex("#FFFFFF"),
161
161
  },
162
+ disabled = {
163
+ backgroundColor = Color3.fromHex("#1D222B"),
164
+ borderColor = Color3.fromHex("#343B49"),
165
+ textColor = Color3.fromHex("#697386"),
166
+ },
162
167
  },
163
168
  success = {
164
169
  default = {
165
170
  textColor = Color3.fromHex("#FFFFFF"),
166
171
  },
172
+ disabled = {
173
+ backgroundColor = Color3.fromHex("#1D222B"),
174
+ borderColor = Color3.fromHex("#343B49"),
175
+ textColor = Color3.fromHex("#697386"),
176
+ },
167
177
  },
168
178
  info = {
169
179
  default = {
170
180
  textColor = Color3.fromHex("#FFFFFF"),
171
181
  },
182
+ disabled = {
183
+ backgroundColor = Color3.fromHex("#1D222B"),
184
+ borderColor = Color3.fromHex("#343B49"),
185
+ textColor = Color3.fromHex("#697386"),
186
+ },
172
187
  },
173
188
  warning = {
174
189
  default = {
175
190
  textColor = Color3.fromHex("#FFFFFF"),
176
191
  },
192
+ disabled = {
193
+ backgroundColor = Color3.fromHex("#1D222B"),
194
+ borderColor = Color3.fromHex("#343B49"),
195
+ textColor = Color3.fromHex("#697386"),
196
+ },
177
197
  },
178
198
  danger = {
179
199
  default = {
180
200
  textColor = Color3.fromHex("#FFFFFF"),
181
201
  },
202
+ disabled = {
203
+ backgroundColor = Color3.fromHex("#1D222B"),
204
+ borderColor = Color3.fromHex("#343B49"),
205
+ textColor = Color3.fromHex("#697386"),
206
+ },
182
207
  },
183
208
  },
184
209
  },
@@ -186,6 +211,9 @@ local DarkTheme = createTheme({
186
211
  borderColor = Color3.fromHex("#3A4352"),
187
212
  borderThickness = 1,
188
213
  cornerRadius = 8,
214
+ placeholder = {
215
+ color = Color3.fromHex("#697386"),
216
+ },
189
217
  },
190
218
  select = {
191
219
  dropDownBackgroundColor = Color3.fromHex("#20252E"),
@@ -273,6 +301,35 @@ local DarkTheme = createTheme({
273
301
  },
274
302
  },
275
303
  },
304
+ accordion = {
305
+ borderColor = Color3.fromHex("#4B5568"),
306
+ header = {
307
+ indicatorColor = Color3.fromHex("#C9CDD5"),
308
+ intents = {
309
+ primary = {
310
+ default = {
311
+ backgroundColor = Color3.fromHex("#252B36"),
312
+ textColor = Color3.fromHex("#E8EDF8"),
313
+ },
314
+ hover = {
315
+ backgroundColor = Color3.fromHex("#303949"),
316
+ textColor = Color3.fromHex("#FFFFFF"),
317
+ },
318
+ focus = {
319
+ backgroundColor = Color3.fromHex("#3A414D"),
320
+ textColor = Color3.fromHex("#FFFFFF"),
321
+ },
322
+ disabled = {
323
+ backgroundColor = Color3.fromHex("#1D222B"),
324
+ textColor = Color3.fromHex("#697386"),
325
+ },
326
+ },
327
+ },
328
+ },
329
+ content = {
330
+ backgroundColor = Color3.fromHex("#171B22"),
331
+ },
332
+ },
276
333
  draggable = {
277
334
  placeholder = {
278
335
  backgroundColor = Color3.fromHex("#2A303B"),
@@ -336,8 +393,23 @@ local DarkTheme = createTheme({
336
393
  header = {},
337
394
  body = {},
338
395
  },
339
- pie = {
396
+ charts = {
340
397
  colors = { Color3.fromHex("#4CC47A"), Color3.fromHex("#E35B5B"), Color3.fromHex("#F0B74A"), Color3.fromHex("#4D9EEA"), Color3.fromHex("#A676F0"), Color3.fromHex("#43C2BA"), Color3.fromHex("#F48A52"), Color3.fromHex("#E06AAE"), Color3.fromHex("#6FA8DC"), Color3.fromHex("#9CCC4A") },
398
+ bar = {
399
+ borderColor = Color3.fromHex("#111827"),
400
+ axis = {
401
+ color = Color3.fromHex("#AAB4C3"),
402
+ },
403
+ xAxis = {
404
+ tickColor = Color3.fromHex("#AAB4C3"),
405
+ },
406
+ yAxis = {
407
+ tickColor = Color3.fromHex("#AAB4C3"),
408
+ },
409
+ gridLines = {
410
+ color = Color3.fromHex("#6B7688"),
411
+ },
412
+ },
341
413
  },
342
414
  },
343
415
  icons = {
@@ -1,2 +1,2 @@
1
- import { CleanTheme } from "../theme.template";
2
- export declare const DefaultTheme: CleanTheme;
1
+ import { ThemeTemplate } from "../theme.template";
2
+ export declare const DefaultTheme: ThemeTemplate;
@@ -1,5 +1,5 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
- local font = Enum.Font.Gotham
2
+ local font = Enum.Font.Roboto
3
3
  local DefaultTheme = {
4
4
  colors = {
5
5
  intents = {
@@ -157,6 +157,12 @@ local DefaultTheme = {
157
157
  default = {
158
158
  textColor = Color3.fromHex("#1D2433"),
159
159
  },
160
+ disabled = {
161
+ backgroundColor = Color3.fromHex("#F5F5F5"),
162
+ backgroundTransparency = 0.35,
163
+ borderColor = Color3.fromHex("#D9DEE8"),
164
+ textColor = Color3.fromHex("#8A8A8A"),
165
+ },
160
166
  },
161
167
  success = {
162
168
  default = {
@@ -180,10 +186,14 @@ local DefaultTheme = {
180
186
  },
181
187
  },
182
188
  },
189
+ increment = {},
183
190
  input = {
184
191
  borderColor = Color3.fromHex("#D9DEE8"),
185
192
  borderThickness = 1,
186
193
  cornerRadius = 8,
194
+ placeholder = {
195
+ color = Color3.fromHex("#8A8A8A"),
196
+ },
187
197
  },
188
198
  select = {
189
199
  dropDownBackgroundColor = Color3.fromHex("#FFFFFF"),
@@ -269,6 +279,64 @@ local DefaultTheme = {
269
279
  },
270
280
  },
271
281
  },
282
+ accordion = {
283
+ borderColor = Color3.fromHex("#D9DEE8"),
284
+ borderThickness = 1,
285
+ cornerRadius = 8,
286
+ spacing = {
287
+ xs = 0,
288
+ sm = 0,
289
+ md = 0,
290
+ lg = 0,
291
+ xl = 0,
292
+ },
293
+ header = {
294
+ spacing = {
295
+ xs = 4,
296
+ sm = 8,
297
+ md = 12,
298
+ lg = 16,
299
+ xl = 24,
300
+ },
301
+ indicatorSize = 14,
302
+ indicatorColor = Color3.fromHex("#4F4F4F"),
303
+ intents = {
304
+ primary = {
305
+ default = {
306
+ backgroundColor = Color3.fromHex("#F2F4F8"),
307
+ textColor = Color3.fromHex("#1D2433"),
308
+ },
309
+ hover = {
310
+ backgroundColor = Color3.fromHex("#E7EBF2"),
311
+ textColor = Color3.fromHex("#000000"),
312
+ },
313
+ focus = {
314
+ backgroundColor = Color3.fromHex("#E1E3E7"),
315
+ textColor = Color3.fromHex("#000000"),
316
+ },
317
+ disabled = {
318
+ backgroundColor = Color3.fromHex("#F5F5F5"),
319
+ backgroundTransparency = 0.35,
320
+ textColor = Color3.fromHex("#8A8A8A"),
321
+ },
322
+ },
323
+ },
324
+ },
325
+ content = {
326
+ spacing = {
327
+ xs = 4,
328
+ sm = 8,
329
+ md = 12,
330
+ lg = 16,
331
+ xl = 24,
332
+ },
333
+ backgroundColor = Color3.fromHex("#FFFFFF"),
334
+ backgroundTransparency = 0,
335
+ },
336
+ animation = {
337
+ duration = 0.2,
338
+ },
339
+ },
272
340
  draggable = {
273
341
  placeholder = {
274
342
  backgroundColor = Color3.fromHex("#D9DEE8"),
@@ -383,7 +451,7 @@ local DefaultTheme = {
383
451
  backgroundTransparency = 0,
384
452
  borderColor = Color3.fromHex("#D9DEE8"),
385
453
  cornerRadius = 8,
386
- aspectRation = 1,
454
+ aspectRatio = 1,
387
455
  },
388
456
  },
389
457
  toast = {
@@ -468,18 +536,60 @@ local DefaultTheme = {
468
536
  },
469
537
  },
470
538
  },
471
- pie = {
472
- hoverDarken = 0.2,
473
- boxShadow = {
474
- shadow = "0px 0px 8px 3px",
475
- color = Color3.fromHex("#000000"),
476
- transparency = 0.6,
477
- },
539
+ charts = {
478
540
  colors = { Color3.fromHex("#2E9D63"), Color3.fromHex("#D64545"), Color3.fromHex("#E7A92F"), Color3.fromHex("#3187C8"), Color3.fromHex("#8E5AD7"), Color3.fromHex("#2FA7A1"), Color3.fromHex("#F26D4F"), Color3.fromHex("#D94F9D"), Color3.fromHex("#6B7C93"), Color3.fromHex("#7CB342") },
479
- labels = {
541
+ pie = {
542
+ hoverDarken = 0.2,
543
+ boxShadow = {
544
+ shadow = "0px 0px 8px 3px",
545
+ color = Color3.fromHex("#000000"),
546
+ transparency = 0.6,
547
+ },
548
+ labels = {
549
+ cornerRadius = 4,
550
+ typography = {
551
+ weight = Enum.FontWeight.Bold,
552
+ },
553
+ },
554
+ },
555
+ bar = {
556
+ spacing = {
557
+ xs = 4,
558
+ sm = 8,
559
+ md = 12,
560
+ lg = 16,
561
+ xl = 20,
562
+ },
563
+ unstackedTransparency = 0,
564
+ borderColor = Color3.fromHex("#3A4352"),
565
+ borderThickness = 1,
480
566
  cornerRadius = 4,
481
- typography = {
482
- weight = Enum.FontWeight.Bold,
567
+ tweenTime = 0.5,
568
+ axis = {
569
+ color = Color3.fromHex("#3A4352"),
570
+ transparency = 0.5,
571
+ thickness = 2,
572
+ },
573
+ xAxis = {
574
+ size = 50,
575
+ spacing = 4,
576
+ tickColor = Color3.fromHex("#3A4352"),
577
+ tickTransparency = 0.5,
578
+ tickThickness = 2,
579
+ tickSize = 10,
580
+ },
581
+ yAxis = {
582
+ size = 50,
583
+ spacing = 4,
584
+ tickColor = Color3.fromHex("#3A4352"),
585
+ tickTransparency = 0.5,
586
+ tickThickness = 2,
587
+ tickSize = 10,
588
+ },
589
+ gridLines = {
590
+ color = Color3.fromHex("#6B7C93"),
591
+ transparency = 0.8,
592
+ thickness = 2,
483
593
  },
484
594
  },
485
595
  },
@@ -1,3 +1,4 @@
1
1
  export * from './dark.theme';
2
2
  export * from './default.theme';
3
3
  export * from './sandstone.theme';
4
+ export * from './wooden.theme';
@@ -10,4 +10,7 @@ end
10
10
  for _k, _v in TS.import(script, script, "sandstone.theme") or {} do
11
11
  exports[_k] = _v
12
12
  end
13
+ for _k, _v in TS.import(script, script, "wooden.theme") or {} do
14
+ exports[_k] = _v
15
+ end
13
16
  return exports
@@ -1 +1 @@
1
- export declare const SandstoneTheme: import("..").CleanTheme;
1
+ export declare const SandstoneTheme: import("..").ThemeTemplate;
@@ -159,26 +159,51 @@ local SandstoneTheme = createTheme({
159
159
  default = {
160
160
  textColor = Color3.fromHex("#244F4A"),
161
161
  },
162
+ disabled = {
163
+ backgroundColor = Color3.fromHex("#E8DFCF"),
164
+ borderColor = Color3.fromHex("#D8CDBA"),
165
+ textColor = Color3.fromHex("#9B8B73"),
166
+ },
162
167
  },
163
168
  success = {
164
169
  default = {
165
170
  textColor = Color3.fromHex("#2E6245"),
166
171
  },
172
+ disabled = {
173
+ backgroundColor = Color3.fromHex("#E8DFCF"),
174
+ borderColor = Color3.fromHex("#D8CDBA"),
175
+ textColor = Color3.fromHex("#9B8B73"),
176
+ },
167
177
  },
168
178
  info = {
169
179
  default = {
170
180
  textColor = Color3.fromHex("#365F78"),
171
181
  },
182
+ disabled = {
183
+ backgroundColor = Color3.fromHex("#E8DFCF"),
184
+ borderColor = Color3.fromHex("#D8CDBA"),
185
+ textColor = Color3.fromHex("#9B8B73"),
186
+ },
172
187
  },
173
188
  warning = {
174
189
  default = {
175
190
  textColor = Color3.fromHex("#7A5721"),
176
191
  },
192
+ disabled = {
193
+ backgroundColor = Color3.fromHex("#E8DFCF"),
194
+ borderColor = Color3.fromHex("#D8CDBA"),
195
+ textColor = Color3.fromHex("#9B8B73"),
196
+ },
177
197
  },
178
198
  danger = {
179
199
  default = {
180
200
  textColor = Color3.fromHex("#8A3D3A"),
181
201
  },
202
+ disabled = {
203
+ backgroundColor = Color3.fromHex("#E8DFCF"),
204
+ borderColor = Color3.fromHex("#D8CDBA"),
205
+ textColor = Color3.fromHex("#9B8B73"),
206
+ },
182
207
  },
183
208
  },
184
209
  },
@@ -273,6 +298,35 @@ local SandstoneTheme = createTheme({
273
298
  },
274
299
  },
275
300
  },
301
+ accordion = {
302
+ borderColor = Color3.fromHex("#B9A98F"),
303
+ header = {
304
+ indicatorColor = Color3.fromHex("#496E68"),
305
+ intents = {
306
+ primary = {
307
+ default = {
308
+ backgroundColor = Color3.fromHex("#EFE5D3"),
309
+ textColor = Color3.fromHex("#4A4034"),
310
+ },
311
+ hover = {
312
+ backgroundColor = Color3.fromHex("#DFE8DC"),
313
+ textColor = Color3.fromHex("#244F4A"),
314
+ },
315
+ focus = {
316
+ backgroundColor = Color3.fromHex("#CFE1DC"),
317
+ textColor = Color3.fromHex("#183B37"),
318
+ },
319
+ disabled = {
320
+ backgroundColor = Color3.fromHex("#E8DFCF"),
321
+ textColor = Color3.fromHex("#9B8B73"),
322
+ },
323
+ },
324
+ },
325
+ },
326
+ content = {
327
+ backgroundColor = Color3.fromHex("#FFF9ED"),
328
+ },
329
+ },
276
330
  draggable = {
277
331
  placeholder = {
278
332
  backgroundColor = Color3.fromHex("#EFE5D3"),
@@ -336,17 +390,34 @@ local SandstoneTheme = createTheme({
336
390
  header = {},
337
391
  body = {},
338
392
  },
339
- pie = {
340
- boxShadow = {
341
- shadow = "0px 0px",
342
- color = Color3.fromHex("#FFFFFF"),
343
- transparency = 1,
344
- },
393
+ charts = {
345
394
  colors = { Color3.fromHex("#7A9E7E"), Color3.fromHex("#A66C5D"), Color3.fromHex("#B89A5A"), Color3.fromHex("#6E97A8"), Color3.fromHex("#8A729E"), Color3.fromHex("#6F9A90"), Color3.fromHex("#C97A4A"), Color3.fromHex("#C58A9A"), Color3.fromHex("#8F7B5E"), Color3.fromHex("#8C9B5E") },
346
- labels = {
347
- backgroundColor = Color3.fromHex("#FFF9ED"),
348
- backgroundTransparency = 0,
349
- borderColor = Color3.fromHex("#D8CDBA"),
395
+ pie = {
396
+ boxShadow = {
397
+ shadow = "0px 0px",
398
+ color = Color3.fromHex("#FFFFFF"),
399
+ transparency = 1,
400
+ },
401
+ labels = {
402
+ backgroundColor = Color3.fromHex("#FFF9ED"),
403
+ backgroundTransparency = 0,
404
+ borderColor = Color3.fromHex("#D8CDBA"),
405
+ },
406
+ },
407
+ bar = {
408
+ borderColor = Color3.fromHex("#5F5547"),
409
+ axis = {
410
+ color = Color3.fromHex("#5F5547"),
411
+ },
412
+ xAxis = {
413
+ tickColor = Color3.fromHex("#786B59"),
414
+ },
415
+ yAxis = {
416
+ tickColor = Color3.fromHex("#786B59"),
417
+ },
418
+ gridLines = {
419
+ color = Color3.fromHex("#8F7B5E"),
420
+ },
350
421
  },
351
422
  },
352
423
  },
@@ -0,0 +1 @@
1
+ export declare const WoodenTheme: import("..").ThemeTemplate;