@rbxts/react-clean-ui 1.1.0 → 1.2.4

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 (110) hide show
  1. package/out/Components/Chart/BarChart.d.ts +1 -0
  2. package/out/Components/Chart/BarChart.luau +149 -112
  3. package/out/Components/Chart/Pie.d.ts +1 -0
  4. package/out/Components/Chart/Pie.luau +21 -6
  5. package/out/Components/Decorator/BoxShadow.d.ts +1 -0
  6. package/out/Components/Decorator/BoxShadow.luau +12 -5
  7. package/out/Components/Decorator/Corners.d.ts +1 -0
  8. package/out/Components/Decorator/Corners.luau +8 -3
  9. package/out/Components/Decorator/Gradient.d.ts +8 -0
  10. package/out/Components/Decorator/Gradient.luau +23 -0
  11. package/out/Components/Decorator/Padding.d.ts +3 -1
  12. package/out/Components/Decorator/Padding.luau +11 -6
  13. package/out/Components/Decorator/index.d.ts +1 -0
  14. package/out/Components/Decorator/init.luau +3 -0
  15. package/out/Components/Input/Button.d.ts +1 -0
  16. package/out/Components/Input/Button.luau +49 -34
  17. package/out/Components/Input/Checkbox.d.ts +1 -0
  18. package/out/Components/Input/Checkbox.luau +28 -18
  19. package/out/Components/Input/HoverButton.d.ts +1 -0
  20. package/out/Components/Input/HoverButton.luau +44 -42
  21. package/out/Components/Input/Increment.d.ts +1 -0
  22. package/out/Components/Input/Increment.luau +10 -3
  23. package/out/Components/Input/Input.d.ts +3 -1
  24. package/out/Components/Input/Input.luau +89 -68
  25. package/out/Components/Input/Select.d.ts +11 -1
  26. package/out/Components/Input/Select.luau +315 -39
  27. package/out/Components/Input/Slider.luau +44 -53
  28. package/out/Components/Input/Switch.d.ts +9 -0
  29. package/out/Components/Input/Switch.luau +145 -0
  30. package/out/Components/Input/index.d.ts +1 -0
  31. package/out/Components/Input/init.luau +3 -0
  32. package/out/Components/Interaction/Modal.d.ts +14 -0
  33. package/out/Components/Interaction/Modal.luau +262 -0
  34. package/out/Components/Interaction/Toast.d.ts +2 -1
  35. package/out/Components/Interaction/Toast.luau +53 -28
  36. package/out/Components/Interaction/Tooltip.luau +36 -25
  37. package/out/Components/Interaction/index.d.ts +1 -0
  38. package/out/Components/Interaction/init.luau +3 -0
  39. package/out/Components/Layout/Accordion.d.ts +1 -0
  40. package/out/Components/Layout/Accordion.luau +51 -55
  41. package/out/Components/Layout/Column.d.ts +1 -0
  42. package/out/Components/Layout/Column.luau +11 -6
  43. package/out/Components/Layout/Container.d.ts +3 -0
  44. package/out/Components/Layout/Container.luau +26 -17
  45. package/out/Components/Layout/Draggable.luau +25 -3
  46. package/out/Components/Layout/Fieldset.d.ts +1 -0
  47. package/out/Components/Layout/Fieldset.luau +14 -42
  48. package/out/Components/Layout/FlexItem.luau +7 -0
  49. package/out/Components/Layout/Grid.d.ts +10 -0
  50. package/out/Components/Layout/Grid.luau +172 -0
  51. package/out/Components/Layout/Group.d.ts +1 -0
  52. package/out/Components/Layout/Group.luau +48 -60
  53. package/out/Components/Layout/HStack.d.ts +4 -0
  54. package/out/Components/Layout/HStack.luau +17 -10
  55. package/out/Components/Layout/Pagination.d.ts +32 -0
  56. package/out/Components/Layout/Pagination.luau +400 -0
  57. package/out/Components/Layout/Row.d.ts +1 -0
  58. package/out/Components/Layout/Row.luau +20 -48
  59. package/out/Components/Layout/Scroller.d.ts +1 -0
  60. package/out/Components/Layout/Scroller.luau +26 -34
  61. package/out/Components/Layout/Table.d.ts +31 -0
  62. package/out/Components/Layout/Table.luau +342 -0
  63. package/out/Components/Layout/Tabs.d.ts +20 -10
  64. package/out/Components/Layout/Tabs.luau +113 -119
  65. package/out/Components/Layout/VStack.d.ts +3 -0
  66. package/out/Components/Layout/VStack.luau +17 -10
  67. package/out/Components/Layout/index.d.ts +3 -0
  68. package/out/Components/Layout/init.luau +9 -0
  69. package/out/Components/Navigation/Menu.d.ts +1 -0
  70. package/out/Components/Navigation/Menu.luau +12 -3
  71. package/out/Components/Surface/Box.d.ts +3 -1
  72. package/out/Components/Surface/Box.luau +15 -4
  73. package/out/Components/Surface/Card.d.ts +1 -0
  74. package/out/Components/Surface/Card.luau +56 -154
  75. package/out/Components/Surface/Icon.d.ts +1 -0
  76. package/out/Components/Surface/Icon.luau +25 -16
  77. package/out/Components/Surface/ProgressBar.d.ts +14 -0
  78. package/out/Components/Surface/ProgressBar.luau +230 -0
  79. package/out/Components/Surface/index.d.ts +1 -0
  80. package/out/Components/Surface/init.luau +3 -0
  81. package/out/Components/Typography/Text.d.ts +1 -0
  82. package/out/Components/Typography/Text.luau +57 -53
  83. package/out/Contexts/index.d.ts +1 -0
  84. package/out/Contexts/init.luau +3 -0
  85. package/out/Contexts/modal.context.d.ts +15 -0
  86. package/out/Contexts/modal.context.luau +23 -0
  87. package/out/Contexts/toast.context.d.ts +1 -0
  88. package/out/Helpers/color.helper.luau +28 -0
  89. package/out/Helpers/css.helper.d.ts +4 -1
  90. package/out/Helpers/css.helper.luau +76 -6
  91. package/out/Helpers/gui.helper.luau +0 -3
  92. package/out/Helpers/size.helper.luau +0 -2
  93. package/out/Helpers/spacing.helper.luau +0 -3
  94. package/out/Helpers/typography.helper.luau +0 -2
  95. package/out/Interfaces/css.types.d.ts +7 -0
  96. package/out/Interfaces/css.types.luau +0 -20
  97. package/out/Providers/app.provider.luau +2 -1
  98. package/out/Providers/index.d.ts +1 -0
  99. package/out/Providers/init.luau +3 -0
  100. package/out/Providers/modal.provider.d.ts +6 -0
  101. package/out/Providers/modal.provider.luau +86 -0
  102. package/out/Providers/overlay.provider.luau +1 -0
  103. package/out/Providers/registry.provider.luau +0 -2
  104. package/out/Theme/theme.style.d.ts +2 -1
  105. package/out/Theme/theme.template.d.ts +126 -1
  106. package/out/Theme/themes/dark.theme.luau +225 -0
  107. package/out/Theme/themes/default.theme.luau +210 -0
  108. package/out/Theme/themes/sandstone.theme.luau +173 -0
  109. package/out/Theme/themes/wooden.theme.luau +195 -0
  110. package/package.json +1 -1
@@ -211,6 +211,7 @@ local SandstoneTheme = createTheme({
211
211
  borderColor = Color3.fromHex("#CDBFA8"),
212
212
  borderThickness = 1,
213
213
  cornerRadius = 4,
214
+ iconColor = Color3.fromHex("#8A7A61"),
214
215
  },
215
216
  select = {
216
217
  dropDownBackgroundColor = Color3.fromHex("#FFF9ED"),
@@ -235,6 +236,25 @@ local SandstoneTheme = createTheme({
235
236
  },
236
237
  },
237
238
  },
239
+ optGroup = {
240
+ textColor = Color3.fromHex("#8A7A61"),
241
+ spacing = {
242
+ xs = 4,
243
+ sm = 6,
244
+ md = 8,
245
+ lg = 10,
246
+ xl = 12,
247
+ },
248
+ },
249
+ search = {
250
+ spacing = {
251
+ xs = 4,
252
+ sm = 6,
253
+ md = 8,
254
+ lg = 10,
255
+ xl = 12,
256
+ },
257
+ },
238
258
  },
239
259
  checkbox = {
240
260
  borderColor = Color3.fromHex("#CDBFA8"),
@@ -248,6 +268,30 @@ local SandstoneTheme = createTheme({
248
268
  xl = 8,
249
269
  },
250
270
  },
271
+ switch = {
272
+ width = 40,
273
+ height = 22,
274
+ cornerRadius = 4,
275
+ borderThickness = 1,
276
+ disabledTransparency = 0.5,
277
+ animation = {
278
+ duration = 0.15,
279
+ },
280
+ track = {
281
+ backgroundColor = Color3.fromHex("#EFE5D3"),
282
+ backgroundTransparency = 0,
283
+ borderColor = Color3.fromHex("#CDBFA8"),
284
+ },
285
+ thumb = {
286
+ inset = 2,
287
+ cornerRadius = 4,
288
+ backgroundColor = Color3.fromHex("#FFF9ED"),
289
+ backgroundTransparency = 0,
290
+ borderColor = Color3.fromHex("#CDBFA8"),
291
+ borderThickness = 1,
292
+ boxShadow = "0px 0px 2px 1px",
293
+ },
294
+ },
251
295
  tabs = {
252
296
  borderColor = Color3.fromHex("#D8CDBA"),
253
297
  backgroundColor = Color3.fromHex("#FFF9ED"),
@@ -298,6 +342,57 @@ local SandstoneTheme = createTheme({
298
342
  },
299
343
  },
300
344
  },
345
+ pagination = {
346
+ backgroundColor = Color3.fromHex("#EFE5D3"),
347
+ backgroundTransparency = 0,
348
+ borderColor = Color3.fromHex("#D8CDBA"),
349
+ borderThickness = 1,
350
+ cornerRadius = 2,
351
+ spacing = {
352
+ xs = 2,
353
+ sm = 4,
354
+ md = 6,
355
+ lg = 8,
356
+ xl = 12,
357
+ },
358
+ item = {
359
+ borderThickness = 0,
360
+ cornerRadius = 2,
361
+ spacing = {
362
+ xs = 1,
363
+ sm = 2,
364
+ md = 4,
365
+ lg = 6,
366
+ xl = 8,
367
+ },
368
+ intents = {
369
+ primary = {
370
+ default = {
371
+ backgroundTransparency = 1,
372
+ textColor = Color3.fromHex("#746754"),
373
+ },
374
+ hover = {
375
+ backgroundTransparency = 1,
376
+ textColor = Color3.fromHex("#244F4A"),
377
+ },
378
+ focus = {
379
+ textColor = Color3.fromHex("#244F4A"),
380
+ backgroundColor = Color3.fromHex("#FFF9ED"),
381
+ backgroundTransparency = 0,
382
+ boxShadow = "0px 2px 5px 0px",
383
+ typography = {
384
+ weight = Enum.FontWeight.SemiBold,
385
+ },
386
+ },
387
+ disabled = {
388
+ backgroundTransparency = 1,
389
+ borderColor = Color3.fromHex("#D8CDBA"),
390
+ textColor = Color3.fromHex("#9B8B73"),
391
+ },
392
+ },
393
+ },
394
+ },
395
+ },
301
396
  accordion = {
302
397
  borderColor = Color3.fromHex("#B9A98F"),
303
398
  header = {
@@ -327,6 +422,14 @@ local SandstoneTheme = createTheme({
327
422
  backgroundColor = Color3.fromHex("#FFF9ED"),
328
423
  },
329
424
  },
425
+ table = {
426
+ backgroundColor = Color3.fromHex("#FFF9ED"),
427
+ borderColor = Color3.fromHex("#B9A98F"),
428
+ rowDividerColor = Color3.fromHex("#D8CBB5"),
429
+ header = {
430
+ backgroundColor = Color3.fromHex("#EFE5D3"),
431
+ },
432
+ },
330
433
  draggable = {
331
434
  placeholder = {
332
435
  backgroundColor = Color3.fromHex("#EFE5D3"),
@@ -384,6 +487,76 @@ local SandstoneTheme = createTheme({
384
487
  cornerRadius = 4,
385
488
  },
386
489
  },
490
+ progressBar = {
491
+ header = {
492
+ spacing = {
493
+ xs = 2,
494
+ sm = 4,
495
+ md = 6,
496
+ lg = 8,
497
+ xl = 10,
498
+ },
499
+ label = {
500
+ typography = {
501
+ size = Enum.FontSize.Size18,
502
+ color = Color3.fromHex("#244F4A"),
503
+ },
504
+ },
505
+ value = {
506
+ typography = {
507
+ size = Enum.FontSize.Size18,
508
+ color = Color3.fromHex("#9B8B73"),
509
+ },
510
+ },
511
+ },
512
+ track = {
513
+ backgroundColor = Color3.fromHex("#EFE5D3"),
514
+ backgroundTransparency = 0,
515
+ borderColor = Color3.fromHex("#CDBFA8"),
516
+ borderThickness = 1,
517
+ cornerRadius = 4,
518
+ },
519
+ fill = {
520
+ cornerRadius = 4,
521
+ intents = {
522
+ primary = {
523
+ default = {
524
+ backgroundColor = Color3.fromHex("#4E8179"),
525
+ },
526
+ },
527
+ success = {
528
+ default = {
529
+ backgroundColor = Color3.fromHex("#5B8A6A"),
530
+ },
531
+ },
532
+ info = {
533
+ default = {
534
+ backgroundColor = Color3.fromHex("#6F98AE"),
535
+ },
536
+ },
537
+ warning = {
538
+ default = {
539
+ backgroundColor = Color3.fromHex("#C3994C"),
540
+ },
541
+ },
542
+ danger = {
543
+ default = {
544
+ backgroundColor = Color3.fromHex("#B46861"),
545
+ },
546
+ },
547
+ },
548
+ stripe = {
549
+ enabled = false,
550
+ image = {
551
+ image = 86644568183933,
552
+ tileSize = "16px",
553
+ transparency = 0.85,
554
+ },
555
+ duration = 0.75,
556
+ direction = 1,
557
+ },
558
+ },
559
+ },
387
560
  toast = {
388
561
  width = 300,
389
562
  fadeDuration = 0.5,
@@ -163,6 +163,19 @@ local WoodenTheme = createTheme({
163
163
  backgroundTransparency = 0,
164
164
  },
165
165
  },
166
+ table = {
167
+ backgroundColor = Color3.fromHex("#5C3A18"),
168
+ backgroundTransparency = 0,
169
+ borderColor = Color3.fromHex("#3D2712"),
170
+ borderThickness = 2,
171
+ cornerRadius = 0,
172
+ rowDividerColor = Color3.fromHex("#3D2712"),
173
+ rowDividerThickness = 2,
174
+ header = {
175
+ backgroundColor = Color3.fromHex("#7A4A20"),
176
+ backgroundTransparency = 0,
177
+ },
178
+ },
166
179
  tabs = {
167
180
  backgroundImage = {
168
181
  image = 137043424796720,
@@ -292,6 +305,7 @@ local WoodenTheme = createTheme({
292
305
  placeholder = {
293
306
  color = Color3.fromHex("#546b8a"),
294
307
  },
308
+ iconColor = Color3.fromHex("#FFF7CF"),
295
309
  },
296
310
  card = {
297
311
  borderThickness = 0,
@@ -441,6 +455,27 @@ local WoodenTheme = createTheme({
441
455
  },
442
456
  },
443
457
  },
458
+ optGroup = {
459
+ textColor = Color3.fromHex("#FFF7CF"),
460
+ backgroundColor = Color3.fromHex("#1F477D"),
461
+ backgroundTransparency = 0,
462
+ spacing = {
463
+ xs = 4,
464
+ sm = 6,
465
+ md = 8,
466
+ lg = 10,
467
+ xl = 12,
468
+ },
469
+ },
470
+ search = {
471
+ spacing = {
472
+ xs = 4,
473
+ sm = 6,
474
+ md = 8,
475
+ lg = 10,
476
+ xl = 12,
477
+ },
478
+ },
444
479
  },
445
480
  increment = {
446
481
  button = {
@@ -492,6 +527,121 @@ local WoodenTheme = createTheme({
492
527
  },
493
528
  },
494
529
  },
530
+ switch = {
531
+ track = {
532
+ backgroundColor = Color3.fromHex("#5C3A18"),
533
+ borderColor = Color3.fromHex("#3D2712"),
534
+ intents = {
535
+ primary = {
536
+ default = {
537
+ backgroundColor = Color3.fromHex("#A16B30"),
538
+ borderColor = Color3.fromHex("#3D2712"),
539
+ },
540
+ },
541
+ success = {
542
+ default = {
543
+ backgroundColor = Color3.fromHex("#4E6A24"),
544
+ borderColor = Color3.fromHex("#3D2712"),
545
+ },
546
+ },
547
+ info = {
548
+ default = {
549
+ backgroundColor = Color3.fromHex("#2C5270"),
550
+ borderColor = Color3.fromHex("#3D2712"),
551
+ },
552
+ },
553
+ warning = {
554
+ default = {
555
+ backgroundColor = Color3.fromHex("#A67A20"),
556
+ borderColor = Color3.fromHex("#3D2712"),
557
+ },
558
+ },
559
+ danger = {
560
+ default = {
561
+ backgroundColor = Color3.fromHex("#7A3220"),
562
+ borderColor = Color3.fromHex("#3D2712"),
563
+ },
564
+ },
565
+ },
566
+ },
567
+ thumb = {
568
+ backgroundColor = Color3.fromHex("#BA854A"),
569
+ borderColor = Color3.fromHex("#3D2712"),
570
+ },
571
+ },
572
+ progressBar = {
573
+ animation = {
574
+ duration = 0.2,
575
+ },
576
+ header = {
577
+ spacing = {
578
+ xs = 2,
579
+ sm = 4,
580
+ md = 6,
581
+ lg = 8,
582
+ xl = 10,
583
+ },
584
+ label = {
585
+ typography = {
586
+ size = Enum.FontSize.Size18,
587
+ color = Color3.fromHex("#FFF7CF"),
588
+ },
589
+ },
590
+ value = {
591
+ typography = {
592
+ size = Enum.FontSize.Size18,
593
+ color = Color3.fromHex("#D3CBA3"),
594
+ },
595
+ },
596
+ },
597
+ track = {
598
+ backgroundColor = Color3.fromHex("#5C3A18"),
599
+ backgroundTransparency = 0,
600
+ borderColor = Color3.fromHex("#3D2712"),
601
+ borderThickness = 2,
602
+ cornerRadius = 0,
603
+ },
604
+ fill = {
605
+ cornerRadius = 0,
606
+ intents = {
607
+ primary = {
608
+ default = {
609
+ backgroundColor = Color3.fromHex("#A16B30"),
610
+ },
611
+ },
612
+ success = {
613
+ default = {
614
+ backgroundColor = Color3.fromHex("#4E6A24"),
615
+ },
616
+ },
617
+ info = {
618
+ default = {
619
+ backgroundColor = Color3.fromHex("#2C5270"),
620
+ },
621
+ },
622
+ warning = {
623
+ default = {
624
+ backgroundColor = Color3.fromHex("#A67A20"),
625
+ },
626
+ },
627
+ danger = {
628
+ default = {
629
+ backgroundColor = Color3.fromHex("#7A3220"),
630
+ },
631
+ },
632
+ },
633
+ stripe = {
634
+ enabled = false,
635
+ image = {
636
+ image = 86644568183933,
637
+ tileSize = "16px",
638
+ transparency = 0.65,
639
+ },
640
+ duration = 0.85,
641
+ direction = 1,
642
+ },
643
+ },
644
+ },
495
645
  slider = {
496
646
  height = 20,
497
647
  bar = {
@@ -517,6 +667,51 @@ local WoodenTheme = createTheme({
517
667
  cornerRadius = "100%",
518
668
  },
519
669
  },
670
+ pagination = {
671
+ backgroundColor = Color3.fromHex("#5C3A18"),
672
+ backgroundTransparency = 1,
673
+ borderColor = Color3.fromHex("#331D07"),
674
+ borderThickness = 1,
675
+ cornerRadius = 0,
676
+ item = {
677
+ borderThickness = 0,
678
+ cornerRadius = 0,
679
+ intents = {
680
+ primary = {
681
+ default = {
682
+ textColor = Color3.fromHex("#FFF7CF"),
683
+ backgroundTransparency = 1,
684
+ backgroundImage = {
685
+ image = 92016395170536,
686
+ slice = "10 5 240 40",
687
+ tintColor = Color3.fromHex("#A16B30"),
688
+ },
689
+ },
690
+ hover = {
691
+ textColor = Color3.fromHex("#D3CBA3"),
692
+ backgroundImage = {
693
+ tintColor = Color3.fromHex("#BA854A"),
694
+ },
695
+ },
696
+ focus = {
697
+ textColor = Color3.fromHex("#FFF7CF"),
698
+ backgroundTransparency = 1,
699
+ boxShadow = 0,
700
+ backgroundImage = {
701
+ tintColor = Color3.fromHex("#7A4A20"),
702
+ },
703
+ },
704
+ disabled = {
705
+ textColor = Color3.fromHex("#a4a29f"),
706
+ backgroundTransparency = 1,
707
+ backgroundImage = {
708
+ transparency = 0.3,
709
+ },
710
+ },
711
+ },
712
+ },
713
+ },
714
+ },
520
715
  toast = {
521
716
  intents = {
522
717
  primary = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/react-clean-ui",
3
- "version": "1.1.0",
3
+ "version": "1.2.4",
4
4
  "description": "A clean UI library for Roblox TypeScript projects",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {