@true-tech-team/react-components 0.0.4 → 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.
- package/README.md +138 -0
- package/index.css +1 -1
- package/index.d.ts +10 -0
- package/index.js +1 -1
- package/index.mjs +10539 -6746
- package/lib/components/buttons/ButtonToggleGroup/ButtonToggleGroup.d.ts +79 -0
- package/lib/components/buttons/ButtonToggleGroup/ButtonToggleGroupContext.d.ts +38 -0
- package/lib/components/buttons/ButtonToggleGroup/ButtonToggleGroupItem.d.ts +37 -0
- package/lib/components/buttons/ButtonToggleGroup/index.d.ts +7 -0
- package/lib/components/buttons/ToggleButton/ToggleButton.d.ts +96 -0
- package/lib/components/buttons/ToggleButton/index.d.ts +3 -0
- package/lib/components/display/Icon/icons/BookmarkFilled.d.ts +3 -0
- package/lib/components/display/Icon/icons/ChevronsLeft.d.ts +3 -0
- package/lib/components/display/Icon/icons/ChevronsRight.d.ts +3 -0
- package/lib/components/display/Icon/icons/HeartFilled.d.ts +3 -0
- package/lib/components/display/Icon/icons/More.d.ts +3 -0
- package/lib/components/display/Icon/icons/StarFilled.d.ts +3 -0
- package/lib/components/display/Icon/icons/ThumbsUpFilled.d.ts +3 -0
- package/lib/components/display/Icon/icons/index.d.ts +15 -1
- package/lib/components/display/OverflowText/OverflowText.d.ts +81 -0
- package/lib/components/display/OverflowText/index.d.ts +2 -0
- package/lib/components/display/ScrollArea/ScrollArea.d.ts +112 -0
- package/lib/components/display/ScrollArea/index.d.ts +3 -0
- package/lib/components/display/Tabs/Tab.d.ts +41 -0
- package/lib/components/display/Tabs/TabList.d.ts +27 -0
- package/lib/components/display/Tabs/TabPanel.d.ts +31 -0
- package/lib/components/display/Tabs/Tabs.d.ts +90 -0
- package/lib/components/display/Tabs/TabsContext.d.ts +63 -0
- package/lib/components/display/Tabs/index.d.ts +11 -0
- package/lib/components/display/TruncatedList/TruncatedList.d.ts +69 -0
- package/lib/components/display/TruncatedList/index.d.ts +2 -0
- package/lib/components/display/index.d.ts +3 -0
- package/lib/components/index.d.ts +44 -0
- package/lib/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +122 -0
- package/lib/components/inputs/CheckboxGroup/CheckboxGroupContext.d.ts +42 -0
- package/lib/components/inputs/CheckboxGroup/CheckboxGroupItem.d.ts +50 -0
- package/lib/components/inputs/CheckboxGroup/index.d.ts +7 -0
- package/lib/components/layout/AdaptiveGrid/AdaptiveGrid.d.ts +100 -0
- package/lib/components/layout/AdaptiveGrid/index.d.ts +2 -0
- package/lib/components/layout/MasonryLayout/MasonryLayout.d.ts +74 -0
- package/lib/components/layout/MasonryLayout/index.d.ts +2 -0
- package/lib/components/layout/Panes/Pane.d.ts +72 -0
- package/lib/components/layout/Panes/Panes.d.ts +75 -0
- package/lib/components/layout/Panes/PanesContext.d.ts +60 -0
- package/lib/components/layout/Panes/index.d.ts +6 -0
- package/lib/components/layout/ResponsiveStack/ResponsiveStack.d.ts +99 -0
- package/lib/components/layout/ResponsiveStack/index.d.ts +2 -0
- package/lib/components/layout/index.d.ts +4 -0
- package/lib/components/navigation/BottomNavigation/BottomNavigation.d.ts +53 -0
- package/lib/components/navigation/BottomNavigation/BottomNavigationContext.d.ts +27 -0
- package/lib/components/navigation/BottomNavigation/BottomNavigationItem.d.ts +59 -0
- package/lib/components/navigation/BottomNavigation/index.d.ts +7 -0
- package/lib/components/navigation/Breadcrumbs/BreadcrumbItem.d.ts +37 -0
- package/lib/components/navigation/Breadcrumbs/BreadcrumbSeparator.d.ts +22 -0
- package/lib/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +96 -0
- package/lib/components/navigation/Breadcrumbs/index.d.ts +9 -0
- package/lib/components/navigation/Breadcrumbs/useBreadcrumbsFromPath.d.ts +73 -0
- package/lib/components/navigation/CollapsibleSidebar/CollapsibleSidebar.d.ts +113 -0
- package/lib/components/navigation/CollapsibleSidebar/index.d.ts +2 -0
- package/lib/components/navigation/NavLink/NavLink.d.ts +74 -0
- package/lib/components/navigation/NavLink/index.d.ts +3 -0
- package/lib/components/navigation/Navbar/Navbar.d.ts +81 -0
- package/lib/components/navigation/Navbar/NavbarActions.d.ts +21 -0
- package/lib/components/navigation/Navbar/NavbarBrand.d.ts +29 -0
- package/lib/components/navigation/Navbar/NavbarCollapse.d.ts +26 -0
- package/lib/components/navigation/Navbar/NavbarContext.d.ts +50 -0
- package/lib/components/navigation/Navbar/NavbarNav.d.ts +22 -0
- package/lib/components/navigation/Navbar/NavbarToggle.d.ts +21 -0
- package/lib/components/navigation/Navbar/index.d.ts +15 -0
- package/lib/components/navigation/Pagination/Pagination.d.ts +99 -0
- package/lib/components/navigation/Pagination/index.d.ts +3 -0
- package/lib/components/navigation/SideNav/SideNav.d.ts +89 -0
- package/lib/components/navigation/SideNav/SideNavContext.d.ts +43 -0
- package/lib/components/navigation/SideNav/SideNavDivider.d.ts +22 -0
- package/lib/components/navigation/SideNav/SideNavGroup.d.ts +44 -0
- package/lib/components/navigation/SideNav/SideNavItem.d.ts +71 -0
- package/lib/components/navigation/SideNav/index.d.ts +11 -0
- package/lib/components/navigation/Stepper/Step.d.ts +57 -0
- package/lib/components/navigation/Stepper/Stepper.d.ts +80 -0
- package/lib/components/navigation/Stepper/StepperContext.d.ts +58 -0
- package/lib/components/navigation/Stepper/index.d.ts +7 -0
- package/lib/components/navigation/index.d.ts +16 -0
- package/lib/components/overlays/Alert/Alert.d.ts +102 -0
- package/lib/components/overlays/Alert/AlertContext.d.ts +94 -0
- package/lib/components/overlays/Alert/AlertPresets.d.ts +42 -0
- package/lib/components/overlays/Alert/AlertProvider.d.ts +40 -0
- package/lib/components/overlays/Alert/index.d.ts +11 -0
- package/lib/components/overlays/Dialog/Dialog.d.ts +197 -0
- package/lib/components/overlays/Dialog/DialogContext.d.ts +75 -0
- package/lib/components/overlays/Dialog/DialogProvider.d.ts +30 -0
- package/lib/components/overlays/Dialog/index.d.ts +9 -0
- package/lib/components/overlays/Toast/Toast.d.ts +103 -0
- package/lib/components/overlays/Toast/ToastContainer.d.ts +37 -0
- package/lib/components/overlays/Toast/ToastContext.d.ts +126 -0
- package/lib/components/overlays/Toast/ToastProvider.d.ts +71 -0
- package/lib/components/overlays/Toast/index.d.ts +11 -0
- package/lib/hooks/index.d.ts +10 -0
- package/lib/hooks/useAlert/index.d.ts +2 -0
- package/lib/hooks/useAlert/useAlert.d.ts +99 -0
- package/lib/hooks/useAsyncToast/index.d.ts +2 -0
- package/lib/hooks/useAsyncToast/useAsyncToast.d.ts +93 -0
- package/lib/hooks/useDialog/index.d.ts +2 -0
- package/lib/hooks/useDialog/useDialog.d.ts +58 -0
- package/lib/hooks/useResizeObserver/index.d.ts +2 -0
- package/lib/hooks/useResizeObserver/useResizeObserver.d.ts +69 -0
- package/lib/hooks/useToast/index.d.ts +2 -0
- package/lib/hooks/useToast/useToast.d.ts +97 -0
- package/lib/providers/GlobalProvider/GlobalProvider.d.ts +16 -1
- 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
|