@true-tech-team/react-components 0.0.3 → 0.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 (143) hide show
  1. package/README.md +138 -0
  2. package/index.css +1 -1
  3. package/index.d.ts +12 -0
  4. package/index.js +1 -1
  5. package/index.mjs +10774 -5477
  6. package/lib/components/buttons/Button/Button.d.ts +14 -3
  7. package/lib/components/buttons/ButtonToggleGroup/ButtonToggleGroup.d.ts +79 -0
  8. package/lib/components/buttons/ButtonToggleGroup/ButtonToggleGroupContext.d.ts +38 -0
  9. package/lib/components/buttons/ButtonToggleGroup/ButtonToggleGroupItem.d.ts +37 -0
  10. package/lib/components/buttons/ButtonToggleGroup/index.d.ts +7 -0
  11. package/lib/components/buttons/ToggleButton/ToggleButton.d.ts +96 -0
  12. package/lib/components/buttons/ToggleButton/index.d.ts +3 -0
  13. package/lib/components/display/Accordion/Accordion.d.ts +112 -0
  14. package/lib/components/display/Accordion/AccordionContainer.d.ts +101 -0
  15. package/lib/components/display/Accordion/AccordionContext.d.ts +57 -0
  16. package/lib/components/display/Accordion/index.d.ts +6 -0
  17. package/lib/components/display/Avatar/Avatar.d.ts +1 -1
  18. package/lib/components/display/Card/Card.d.ts +101 -0
  19. package/lib/components/display/Card/index.d.ts +3 -0
  20. package/lib/components/display/Carousel/Carousel.d.ts +125 -0
  21. package/lib/components/display/Carousel/index.d.ts +3 -0
  22. package/lib/components/display/Collapse/Collapse.d.ts +57 -0
  23. package/lib/components/display/Collapse/index.d.ts +2 -0
  24. package/lib/components/display/CountUp/CountUp.d.ts +119 -0
  25. package/lib/components/display/CountUp/index.d.ts +3 -0
  26. package/lib/components/display/FlipCard/FlipCard.d.ts +125 -0
  27. package/lib/components/display/FlipCard/index.d.ts +3 -0
  28. package/lib/components/display/Icon/icons/BookmarkFilled.d.ts +3 -0
  29. package/lib/components/display/Icon/icons/ChevronsLeft.d.ts +3 -0
  30. package/lib/components/display/Icon/icons/ChevronsRight.d.ts +3 -0
  31. package/lib/components/display/Icon/icons/HeartFilled.d.ts +3 -0
  32. package/lib/components/display/Icon/icons/More.d.ts +3 -0
  33. package/lib/components/display/Icon/icons/StarFilled.d.ts +3 -0
  34. package/lib/components/display/Icon/icons/ThumbsUpFilled.d.ts +3 -0
  35. package/lib/components/display/Icon/icons/index.d.ts +15 -1
  36. package/lib/components/display/Icon/index.d.ts +1 -0
  37. package/lib/components/display/OverflowText/OverflowText.d.ts +81 -0
  38. package/lib/components/display/OverflowText/index.d.ts +2 -0
  39. package/lib/components/display/PageMessages/PageMessageContent.d.ts +19 -0
  40. package/lib/components/display/PageMessages/PageMessages.d.ts +49 -0
  41. package/lib/components/display/PageMessages/defaultConfigs.d.ts +5 -0
  42. package/lib/components/display/PageMessages/index.d.ts +3 -0
  43. package/lib/components/display/PageMessages/types.d.ts +175 -0
  44. package/lib/components/display/ProgressBar/ProgressBar.d.ts +11 -0
  45. package/lib/components/display/Reveal/Reveal.d.ts +109 -0
  46. package/lib/components/display/Reveal/index.d.ts +3 -0
  47. package/lib/components/display/ScrollArea/ScrollArea.d.ts +112 -0
  48. package/lib/components/display/ScrollArea/index.d.ts +3 -0
  49. package/lib/components/display/Spinner/Spinner.d.ts +79 -0
  50. package/lib/components/display/Spinner/index.d.ts +3 -0
  51. package/lib/components/display/StatusIndicator/StatusIndicator.d.ts +1 -1
  52. package/lib/components/display/Tabs/Tab.d.ts +41 -0
  53. package/lib/components/display/Tabs/TabList.d.ts +27 -0
  54. package/lib/components/display/Tabs/TabPanel.d.ts +31 -0
  55. package/lib/components/display/Tabs/Tabs.d.ts +90 -0
  56. package/lib/components/display/Tabs/TabsContext.d.ts +63 -0
  57. package/lib/components/display/Tabs/index.d.ts +11 -0
  58. package/lib/components/display/TruncatedList/TruncatedList.d.ts +69 -0
  59. package/lib/components/display/TruncatedList/index.d.ts +2 -0
  60. package/lib/components/display/index.d.ts +3 -0
  61. package/lib/components/index.d.ts +65 -0
  62. package/lib/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +122 -0
  63. package/lib/components/inputs/CheckboxGroup/CheckboxGroupContext.d.ts +42 -0
  64. package/lib/components/inputs/CheckboxGroup/CheckboxGroupItem.d.ts +50 -0
  65. package/lib/components/inputs/CheckboxGroup/index.d.ts +7 -0
  66. package/lib/components/inputs/Toggle/Toggle.d.ts +5 -0
  67. package/lib/components/layout/AdaptiveGrid/AdaptiveGrid.d.ts +100 -0
  68. package/lib/components/layout/AdaptiveGrid/index.d.ts +2 -0
  69. package/lib/components/layout/MasonryLayout/MasonryLayout.d.ts +74 -0
  70. package/lib/components/layout/MasonryLayout/index.d.ts +2 -0
  71. package/lib/components/layout/Panes/Pane.d.ts +72 -0
  72. package/lib/components/layout/Panes/Panes.d.ts +75 -0
  73. package/lib/components/layout/Panes/PanesContext.d.ts +60 -0
  74. package/lib/components/layout/Panes/index.d.ts +6 -0
  75. package/lib/components/layout/ResponsiveStack/ResponsiveStack.d.ts +99 -0
  76. package/lib/components/layout/ResponsiveStack/index.d.ts +2 -0
  77. package/lib/components/layout/index.d.ts +4 -0
  78. package/lib/components/navigation/BottomNavigation/BottomNavigation.d.ts +53 -0
  79. package/lib/components/navigation/BottomNavigation/BottomNavigationContext.d.ts +27 -0
  80. package/lib/components/navigation/BottomNavigation/BottomNavigationItem.d.ts +59 -0
  81. package/lib/components/navigation/BottomNavigation/index.d.ts +7 -0
  82. package/lib/components/navigation/Breadcrumbs/BreadcrumbItem.d.ts +37 -0
  83. package/lib/components/navigation/Breadcrumbs/BreadcrumbSeparator.d.ts +22 -0
  84. package/lib/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +96 -0
  85. package/lib/components/navigation/Breadcrumbs/index.d.ts +9 -0
  86. package/lib/components/navigation/Breadcrumbs/useBreadcrumbsFromPath.d.ts +73 -0
  87. package/lib/components/navigation/CollapsibleSidebar/CollapsibleSidebar.d.ts +113 -0
  88. package/lib/components/navigation/CollapsibleSidebar/index.d.ts +2 -0
  89. package/lib/components/navigation/NavLink/NavLink.d.ts +74 -0
  90. package/lib/components/navigation/NavLink/index.d.ts +3 -0
  91. package/lib/components/navigation/Navbar/Navbar.d.ts +81 -0
  92. package/lib/components/navigation/Navbar/NavbarActions.d.ts +21 -0
  93. package/lib/components/navigation/Navbar/NavbarBrand.d.ts +29 -0
  94. package/lib/components/navigation/Navbar/NavbarCollapse.d.ts +26 -0
  95. package/lib/components/navigation/Navbar/NavbarContext.d.ts +50 -0
  96. package/lib/components/navigation/Navbar/NavbarNav.d.ts +22 -0
  97. package/lib/components/navigation/Navbar/NavbarToggle.d.ts +21 -0
  98. package/lib/components/navigation/Navbar/index.d.ts +15 -0
  99. package/lib/components/navigation/Pagination/Pagination.d.ts +99 -0
  100. package/lib/components/navigation/Pagination/index.d.ts +3 -0
  101. package/lib/components/navigation/SideNav/SideNav.d.ts +89 -0
  102. package/lib/components/navigation/SideNav/SideNavContext.d.ts +43 -0
  103. package/lib/components/navigation/SideNav/SideNavDivider.d.ts +22 -0
  104. package/lib/components/navigation/SideNav/SideNavGroup.d.ts +44 -0
  105. package/lib/components/navigation/SideNav/SideNavItem.d.ts +71 -0
  106. package/lib/components/navigation/SideNav/index.d.ts +11 -0
  107. package/lib/components/navigation/Stepper/Step.d.ts +57 -0
  108. package/lib/components/navigation/Stepper/Stepper.d.ts +80 -0
  109. package/lib/components/navigation/Stepper/StepperContext.d.ts +58 -0
  110. package/lib/components/navigation/Stepper/index.d.ts +7 -0
  111. package/lib/components/navigation/index.d.ts +16 -0
  112. package/lib/components/overlays/Alert/Alert.d.ts +102 -0
  113. package/lib/components/overlays/Alert/AlertContext.d.ts +94 -0
  114. package/lib/components/overlays/Alert/AlertPresets.d.ts +42 -0
  115. package/lib/components/overlays/Alert/AlertProvider.d.ts +40 -0
  116. package/lib/components/overlays/Alert/index.d.ts +11 -0
  117. package/lib/components/overlays/Dialog/Dialog.d.ts +197 -0
  118. package/lib/components/overlays/Dialog/DialogContext.d.ts +75 -0
  119. package/lib/components/overlays/Dialog/DialogProvider.d.ts +30 -0
  120. package/lib/components/overlays/Dialog/index.d.ts +9 -0
  121. package/lib/components/overlays/LoadingOverlay/LoadingOverlay.d.ts +101 -0
  122. package/lib/components/overlays/LoadingOverlay/index.d.ts +3 -0
  123. package/lib/components/overlays/Toast/Toast.d.ts +103 -0
  124. package/lib/components/overlays/Toast/ToastContainer.d.ts +37 -0
  125. package/lib/components/overlays/Toast/ToastContext.d.ts +126 -0
  126. package/lib/components/overlays/Toast/ToastProvider.d.ts +71 -0
  127. package/lib/components/overlays/Toast/index.d.ts +11 -0
  128. package/lib/contexts/PageMessagesContext/PageMessagesContext.d.ts +91 -0
  129. package/lib/contexts/PageMessagesContext/index.d.ts +2 -0
  130. package/lib/contexts/index.d.ts +2 -0
  131. package/lib/hooks/index.d.ts +10 -0
  132. package/lib/hooks/useAlert/index.d.ts +2 -0
  133. package/lib/hooks/useAlert/useAlert.d.ts +99 -0
  134. package/lib/hooks/useAsyncToast/index.d.ts +2 -0
  135. package/lib/hooks/useAsyncToast/useAsyncToast.d.ts +93 -0
  136. package/lib/hooks/useDialog/index.d.ts +2 -0
  137. package/lib/hooks/useDialog/useDialog.d.ts +58 -0
  138. package/lib/hooks/useResizeObserver/index.d.ts +2 -0
  139. package/lib/hooks/useResizeObserver/useResizeObserver.d.ts +69 -0
  140. package/lib/hooks/useToast/index.d.ts +2 -0
  141. package/lib/hooks/useToast/useToast.d.ts +97 -0
  142. package/lib/providers/GlobalProvider/GlobalProvider.d.ts +21 -1
  143. package/package.json +1 -1
package/README.md CHANGED
@@ -444,6 +444,144 @@ Flexible menu system with items, groups, and dividers.
444
444
  </Menu>
445
445
  ```
446
446
 
447
+ ### Navigation
448
+
449
+ #### Stepper
450
+ Multi-step progress indicator for wizard-like interfaces.
451
+
452
+ ```tsx
453
+ <Stepper activeStep={1}>
454
+ <Step label="Account" description="Create your account" />
455
+ <Step label="Profile" description="Set up your profile" />
456
+ <Step label="Review" description="Review and submit" />
457
+ </Stepper>
458
+ ```
459
+
460
+ #### Breadcrumbs
461
+ Navigation breadcrumb trail for hierarchical page structure.
462
+
463
+ ```tsx
464
+ <Breadcrumbs>
465
+ <BreadcrumbItem href="/">Home</BreadcrumbItem>
466
+ <BreadcrumbItem href="/products">Products</BreadcrumbItem>
467
+ <BreadcrumbItem>Current Page</BreadcrumbItem>
468
+ </Breadcrumbs>
469
+ ```
470
+
471
+ #### Navbar
472
+ Responsive navigation bar with collapsible menu support.
473
+
474
+ ```tsx
475
+ <Navbar>
476
+ <NavbarBrand>My App</NavbarBrand>
477
+ <NavbarToggle />
478
+ <NavbarCollapse>
479
+ <NavbarNav>
480
+ <NavLink href="/">Home</NavLink>
481
+ <NavLink href="/about">About</NavLink>
482
+ </NavbarNav>
483
+ <NavbarActions>
484
+ <Button>Sign In</Button>
485
+ </NavbarActions>
486
+ </NavbarCollapse>
487
+ </Navbar>
488
+ ```
489
+
490
+ #### SideNav
491
+ Sidebar navigation with groups, items, and dividers.
492
+
493
+ ```tsx
494
+ <SideNav>
495
+ <SideNavGroup label="Main">
496
+ <SideNavItem icon={<Icon name="home" />} href="/">Dashboard</SideNavItem>
497
+ <SideNavItem icon={<Icon name="users" />} href="/users">Users</SideNavItem>
498
+ </SideNavGroup>
499
+ <SideNavDivider />
500
+ <SideNavItem icon={<Icon name="settings" />} href="/settings">Settings</SideNavItem>
501
+ </SideNav>
502
+ ```
503
+
504
+ #### Pagination
505
+ Page navigation with customizable controls.
506
+
507
+ ```tsx
508
+ <Pagination
509
+ currentPage={page}
510
+ totalPages={10}
511
+ onPageChange={setPage}
512
+ showFirstLast
513
+ />
514
+ ```
515
+
516
+ #### BottomNavigation
517
+ Mobile-friendly bottom navigation bar.
518
+
519
+ ```tsx
520
+ <BottomNavigation value={tab} onChange={setTab}>
521
+ <BottomNavigationItem icon={<Icon name="home" />} label="Home" value="home" />
522
+ <BottomNavigationItem icon={<Icon name="search" />} label="Search" value="search" />
523
+ <BottomNavigationItem icon={<Icon name="user" />} label="Profile" value="profile" />
524
+ </BottomNavigation>
525
+ ```
526
+
527
+ #### Tabs
528
+ Tabbed content navigation.
529
+
530
+ ```tsx
531
+ <Tabs defaultValue="tab1">
532
+ <TabList>
533
+ <Tab value="tab1">Tab 1</Tab>
534
+ <Tab value="tab2">Tab 2</Tab>
535
+ </TabList>
536
+ <TabPanel value="tab1">Content 1</TabPanel>
537
+ <TabPanel value="tab2">Content 2</TabPanel>
538
+ </Tabs>
539
+ ```
540
+
541
+ ### Layout
542
+
543
+ #### Panes
544
+ Resizable split pane layouts.
545
+
546
+ ```tsx
547
+ <Panes direction="horizontal">
548
+ <Pane minSize={200}>Left Panel</Pane>
549
+ <Pane>Right Panel</Pane>
550
+ </Panes>
551
+ ```
552
+
553
+ #### ResponsiveStack
554
+ Stack layout that adapts to screen size.
555
+
556
+ ```tsx
557
+ <ResponsiveStack breakpoint={768} spacing={4}>
558
+ <Card>Item 1</Card>
559
+ <Card>Item 2</Card>
560
+ </ResponsiveStack>
561
+ ```
562
+
563
+ #### AdaptiveGrid
564
+ Auto-adjusting grid layout based on container width.
565
+
566
+ ```tsx
567
+ <AdaptiveGrid minItemWidth={250} gap={16}>
568
+ <Card>Item 1</Card>
569
+ <Card>Item 2</Card>
570
+ <Card>Item 3</Card>
571
+ </AdaptiveGrid>
572
+ ```
573
+
574
+ #### MasonryLayout
575
+ Pinterest-style masonry grid for variable-height items.
576
+
577
+ ```tsx
578
+ <MasonryLayout columns={3} gap={16}>
579
+ <Card>Short content</Card>
580
+ <Card>Much longer content that takes more space</Card>
581
+ <Card>Medium content</Card>
582
+ </MasonryLayout>
583
+ ```
584
+
447
585
  ### Forms
448
586
 
449
587
  #### FormBuilder