@7onic-ui/react 0.3.9 → 0.3.10
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 +2 -2
- package/dist/chart.mjs +3 -9
- package/dist/chart.mjs.map +1 -1
- package/dist/chunk-234NAXGV.mjs +252 -0
- package/dist/chunk-234NAXGV.mjs.map +1 -0
- package/dist/chunk-53MIUPSY.mjs +13 -0
- package/dist/chunk-53MIUPSY.mjs.map +1 -0
- package/dist/chunk-BN5BEA3V.mjs +195 -0
- package/dist/chunk-BN5BEA3V.mjs.map +1 -0
- package/dist/chunk-COW3B62M.mjs +214 -0
- package/dist/chunk-COW3B62M.mjs.map +1 -0
- package/dist/chunk-CTH6SN5Y.mjs +114 -0
- package/dist/chunk-CTH6SN5Y.mjs.map +1 -0
- package/dist/chunk-D3NTQNDW.mjs +440 -0
- package/dist/chunk-D3NTQNDW.mjs.map +1 -0
- package/dist/chunk-DDRYEJBJ.mjs +164 -0
- package/dist/chunk-DDRYEJBJ.mjs.map +1 -0
- package/dist/chunk-DJAEXCRU.mjs +190 -0
- package/dist/chunk-DJAEXCRU.mjs.map +1 -0
- package/dist/chunk-DRVHHEAY.mjs +145 -0
- package/dist/chunk-DRVHHEAY.mjs.map +1 -0
- package/dist/chunk-DTLNWOTR.mjs +482 -0
- package/dist/chunk-DTLNWOTR.mjs.map +1 -0
- package/dist/chunk-DYYQOHQR.mjs +214 -0
- package/dist/chunk-DYYQOHQR.mjs.map +1 -0
- package/dist/chunk-FHUAH6AJ.mjs +93 -0
- package/dist/chunk-FHUAH6AJ.mjs.map +1 -0
- package/dist/chunk-GD4YE5AE.mjs +209 -0
- package/dist/chunk-GD4YE5AE.mjs.map +1 -0
- package/dist/chunk-GRCJ35DX.mjs +144 -0
- package/dist/chunk-GRCJ35DX.mjs.map +1 -0
- package/dist/chunk-HHX4GABH.mjs +129 -0
- package/dist/chunk-HHX4GABH.mjs.map +1 -0
- package/dist/chunk-IPCIC2BI.mjs +148 -0
- package/dist/chunk-IPCIC2BI.mjs.map +1 -0
- package/dist/chunk-IY3R2VGB.mjs +272 -0
- package/dist/chunk-IY3R2VGB.mjs.map +1 -0
- package/dist/chunk-JCJEVXER.mjs +170 -0
- package/dist/chunk-JCJEVXER.mjs.map +1 -0
- package/dist/chunk-KBPYAMGS.mjs +157 -0
- package/dist/chunk-KBPYAMGS.mjs.map +1 -0
- package/dist/chunk-LJJ6K4IU.mjs +318 -0
- package/dist/chunk-LJJ6K4IU.mjs.map +1 -0
- package/dist/chunk-MRUVGHGP.mjs +375 -0
- package/dist/chunk-MRUVGHGP.mjs.map +1 -0
- package/dist/chunk-N4K2BDGM.mjs +153 -0
- package/dist/chunk-N4K2BDGM.mjs.map +1 -0
- package/dist/chunk-NWFMJWGX.mjs +165 -0
- package/dist/chunk-NWFMJWGX.mjs.map +1 -0
- package/dist/chunk-PTAPPOKU.mjs +117 -0
- package/dist/chunk-PTAPPOKU.mjs.map +1 -0
- package/dist/chunk-PVTBM7V7.mjs +316 -0
- package/dist/chunk-PVTBM7V7.mjs.map +1 -0
- package/dist/chunk-Q5WVLK2L.mjs +77 -0
- package/dist/chunk-Q5WVLK2L.mjs.map +1 -0
- package/dist/chunk-RKSB2N5L.mjs +206 -0
- package/dist/chunk-RKSB2N5L.mjs.map +1 -0
- package/dist/chunk-S4DGVKBK.mjs +151 -0
- package/dist/chunk-S4DGVKBK.mjs.map +1 -0
- package/dist/chunk-S4T4PU7F.mjs +114 -0
- package/dist/chunk-S4T4PU7F.mjs.map +1 -0
- package/dist/chunk-SZPZOGPC.mjs +394 -0
- package/dist/chunk-SZPZOGPC.mjs.map +1 -0
- package/dist/chunk-T546XBQG.mjs +443 -0
- package/dist/chunk-T546XBQG.mjs.map +1 -0
- package/dist/chunk-UWTT5AE6.mjs +145 -0
- package/dist/chunk-UWTT5AE6.mjs.map +1 -0
- package/dist/chunk-V5UFWYFI.mjs +255 -0
- package/dist/chunk-V5UFWYFI.mjs.map +1 -0
- package/dist/chunk-VUPGBB5X.mjs +150 -0
- package/dist/chunk-VUPGBB5X.mjs.map +1 -0
- package/dist/chunk-W6YNEU53.mjs +175 -0
- package/dist/chunk-W6YNEU53.mjs.map +1 -0
- package/dist/chunk-WWSN5YME.mjs +222 -0
- package/dist/chunk-WWSN5YME.mjs.map +1 -0
- package/dist/chunk-XK52LYR4.mjs +182 -0
- package/dist/chunk-XK52LYR4.mjs.map +1 -0
- package/dist/chunk-YIAH6KHV.mjs +164 -0
- package/dist/chunk-YIAH6KHV.mjs.map +1 -0
- package/dist/chunk-Z6JWWCNL.mjs +108 -0
- package/dist/chunk-Z6JWWCNL.mjs.map +1 -0
- package/dist/chunk-ZDRUTJ4T.mjs +119 -0
- package/dist/chunk-ZDRUTJ4T.mjs.map +1 -0
- package/dist/components/accordion.mjs +19 -0
- package/dist/components/accordion.mjs.map +1 -0
- package/dist/components/alert.mjs +15 -0
- package/dist/components/alert.mjs.map +1 -0
- package/dist/components/avatar.mjs +23 -0
- package/dist/components/avatar.mjs.map +1 -0
- package/dist/components/badge.mjs +11 -0
- package/dist/components/badge.mjs.map +1 -0
- package/dist/components/breadcrumb.mjs +23 -0
- package/dist/components/breadcrumb.mjs.map +1 -0
- package/dist/components/button-group.mjs +11 -0
- package/dist/components/button-group.mjs.map +1 -0
- package/dist/components/button.mjs +12 -0
- package/dist/components/button.mjs.map +1 -0
- package/dist/components/card.mjs +25 -0
- package/dist/components/card.mjs.map +1 -0
- package/dist/components/chat-input.mjs +15 -0
- package/dist/components/chat-input.mjs.map +1 -0
- package/dist/components/chat-message.mjs +17 -0
- package/dist/components/chat-message.mjs.map +1 -0
- package/dist/components/checkbox.mjs +12 -0
- package/dist/components/checkbox.mjs.map +1 -0
- package/dist/components/divider.mjs +11 -0
- package/dist/components/divider.mjs.map +1 -0
- package/dist/components/drawer.mjs +33 -0
- package/dist/components/drawer.mjs.map +1 -0
- package/dist/components/dropdown.mjs +35 -0
- package/dist/components/dropdown.mjs.map +1 -0
- package/dist/components/field.mjs +17 -0
- package/dist/components/field.mjs.map +1 -0
- package/dist/components/icon-button.mjs +12 -0
- package/dist/components/icon-button.mjs.map +1 -0
- package/dist/components/input.mjs +12 -0
- package/dist/components/input.mjs.map +1 -0
- package/dist/components/metric-card.mjs +23 -0
- package/dist/components/metric-card.mjs.map +1 -0
- package/dist/components/modal.mjs +57 -0
- package/dist/components/modal.mjs.map +1 -0
- package/dist/components/navigation-menu.mjs +27 -0
- package/dist/components/navigation-menu.mjs.map +1 -0
- package/dist/components/pagination.mjs +33 -0
- package/dist/components/pagination.mjs.map +1 -0
- package/dist/components/popover.mjs +23 -0
- package/dist/components/popover.mjs.map +1 -0
- package/dist/components/progress.mjs +11 -0
- package/dist/components/progress.mjs.map +1 -0
- package/dist/components/quick-reply.mjs +15 -0
- package/dist/components/quick-reply.mjs.map +1 -0
- package/dist/components/radio-group.mjs +16 -0
- package/dist/components/radio-group.mjs.map +1 -0
- package/dist/components/segmented.mjs +15 -0
- package/dist/components/segmented.mjs.map +1 -0
- package/dist/components/select.mjs +23 -0
- package/dist/components/select.mjs.map +1 -0
- package/dist/components/skeleton.mjs +11 -0
- package/dist/components/skeleton.mjs.map +1 -0
- package/dist/components/slider.mjs +11 -0
- package/dist/components/slider.mjs.map +1 -0
- package/dist/components/spinner.mjs +11 -0
- package/dist/components/spinner.mjs.map +1 -0
- package/dist/components/switch.mjs +12 -0
- package/dist/components/switch.mjs.map +1 -0
- package/dist/components/table.mjs +23 -0
- package/dist/components/table.mjs.map +1 -0
- package/dist/components/tabs.mjs +19 -0
- package/dist/components/tabs.mjs.map +1 -0
- package/dist/components/textarea.mjs +12 -0
- package/dist/components/textarea.mjs.map +1 -0
- package/dist/components/toast.mjs +13 -0
- package/dist/components/toast.mjs.map +1 -0
- package/dist/components/toggle-group.mjs +15 -0
- package/dist/components/toggle-group.mjs.map +1 -0
- package/dist/components/toggle.mjs +11 -0
- package/dist/components/toggle.mjs.map +1 -0
- package/dist/components/tooltip.mjs +21 -0
- package/dist/components/tooltip.mjs.map +1 -0
- package/dist/components/typing-indicator.mjs +11 -0
- package/dist/components/typing-indicator.mjs.map +1 -0
- package/dist/index.mjs +296 -7536
- package/dist/index.mjs.map +1 -1
- package/llms.txt +23 -23
- package/package.json +4 -3
- package/dist/chart.d.mts +0 -147
- package/dist/index.d.mts +0 -1535
package/llms.txt
CHANGED
|
@@ -530,7 +530,7 @@ import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrig
|
|
|
530
530
|
| defaultValue | `string` | — | Uncontrolled default |
|
|
531
531
|
| onValueChange | `(value: string) => void` | — | Change handler |
|
|
532
532
|
|
|
533
|
-
**Sub-components:**
|
|
533
|
+
**Sub-components:** SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator
|
|
534
534
|
|
|
535
535
|
---
|
|
536
536
|
|
|
@@ -559,7 +559,7 @@ import { Button, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMe
|
|
|
559
559
|
| flush | `boolean` | `false` | Full-width items (no padding) |
|
|
560
560
|
| sideOffset | `number` | `4` | Gap from trigger |
|
|
561
561
|
|
|
562
|
-
**Sub-components:**
|
|
562
|
+
**Sub-components:** DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, DropdownMenuShortcut
|
|
563
563
|
|
|
564
564
|
---
|
|
565
565
|
|
|
@@ -609,7 +609,7 @@ import { RadioGroup, RadioGroupItem } from '@7onic-ui/react'
|
|
|
609
609
|
| defaultValue | `string` | — | Uncontrolled default |
|
|
610
610
|
| onValueChange | `(value: string) => void` | — | Change handler |
|
|
611
611
|
|
|
612
|
-
**Sub-components:**
|
|
612
|
+
**Sub-components:** RadioGroupItem (with `label` prop)
|
|
613
613
|
|
|
614
614
|
---
|
|
615
615
|
|
|
@@ -689,7 +689,7 @@ import { ToggleGroup, ToggleGroupItem } from '@7onic-ui/react'
|
|
|
689
689
|
| defaultValue | `string \| string[]` | — | Uncontrolled default |
|
|
690
690
|
| onValueChange | `(value) => void` | — | Change handler |
|
|
691
691
|
|
|
692
|
-
**Sub-components:**
|
|
692
|
+
**Sub-components:** ToggleGroupItem
|
|
693
693
|
|
|
694
694
|
---
|
|
695
695
|
|
|
@@ -715,7 +715,7 @@ import { Segmented, SegmentedItem } from '@7onic-ui/react'
|
|
|
715
715
|
| defaultValue | `string` | — | Uncontrolled default |
|
|
716
716
|
| onValueChange | `(value: string) => void` | — | Change handler |
|
|
717
717
|
|
|
718
|
-
**Sub-components:**
|
|
718
|
+
**Sub-components:** SegmentedItem
|
|
719
719
|
**Note:** Only 4 sizes (no xs) — intentional design decision.
|
|
720
720
|
|
|
721
721
|
---
|
|
@@ -771,7 +771,7 @@ import { Field, FieldCharCount, FieldError, FieldLabel, Input, Textarea } from '
|
|
|
771
771
|
| error | `string \| boolean` | — | Error message (passed to children via context) |
|
|
772
772
|
| disabled | `boolean` | `false` | Disabled state (passed to children via context) |
|
|
773
773
|
|
|
774
|
-
**Sub-components:**
|
|
774
|
+
**Sub-components:** FieldLabel (with `required` prop), FieldError, FieldCharCount
|
|
775
775
|
**Context:** Input, Textarea, Checkbox, RadioGroup, Select auto-detect Field context for error/disabled/id.
|
|
776
776
|
|
|
777
777
|
---
|
|
@@ -814,7 +814,7 @@ import { Avatar, AvatarFallback, AvatarGroup, AvatarImage } from '@7onic-ui/reac
|
|
|
814
814
|
| size | Same as Root | — | Override all children |
|
|
815
815
|
| shape | Same as Root | — | Override all children |
|
|
816
816
|
|
|
817
|
-
**Sub-components:**
|
|
817
|
+
**Sub-components:** AvatarImage, AvatarFallback, AvatarGroup
|
|
818
818
|
|
|
819
819
|
---
|
|
820
820
|
|
|
@@ -873,7 +873,7 @@ import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader,
|
|
|
873
873
|
| overlay | `boolean` | `false` | Gradient overlay |
|
|
874
874
|
| overlayOpacity | `10-90` | `60` | Overlay darkness |
|
|
875
875
|
|
|
876
|
-
**Sub-components:**
|
|
876
|
+
**Sub-components:** CardImage, CardHeader, CardTitle (with `icon`), CardDescription, CardAction, CardContent, CardFooter
|
|
877
877
|
|
|
878
878
|
---
|
|
879
879
|
|
|
@@ -920,7 +920,7 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@
|
|
|
920
920
|
|---|---|---|---|
|
|
921
921
|
| align | `'left' \| 'center' \| 'right'` | `'left'` | Text alignment |
|
|
922
922
|
|
|
923
|
-
**Sub-components:**
|
|
923
|
+
**Sub-components:** TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption
|
|
924
924
|
|
|
925
925
|
---
|
|
926
926
|
|
|
@@ -949,7 +949,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from '@7onic-ui/react'
|
|
|
949
949
|
| color | `'default' \| 'primary'` | `'default'` | Active tab color |
|
|
950
950
|
| radius | `'none' \| 'sm' \| 'base' \| 'md' \| 'lg' \| 'xl' \| '2xl' \| '3xl' \| 'full'` | `'md'` | Border radius (enclosed/pill) |
|
|
951
951
|
|
|
952
|
-
**Sub-components:**
|
|
952
|
+
**Sub-components:** TabsList, TabsTrigger, TabsContent
|
|
953
953
|
|
|
954
954
|
---
|
|
955
955
|
|
|
@@ -978,7 +978,7 @@ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@7
|
|
|
978
978
|
| iconPosition | `'left' \| 'right'` | `'right'` | Chevron placement |
|
|
979
979
|
| collapsible | `boolean` | `true` | Allow all closed (single only) |
|
|
980
980
|
|
|
981
|
-
**Sub-components:**
|
|
981
|
+
**Sub-components:** AccordionItem, AccordionTrigger (with `icon` prop), AccordionContent
|
|
982
982
|
|
|
983
983
|
---
|
|
984
984
|
|
|
@@ -1038,7 +1038,7 @@ import { Button, Modal, ModalBody, ModalClose, ModalContent, ModalDescription, M
|
|
|
1038
1038
|
| scrollBehavior | `'inside' \| 'outside'` | `'outside'` | Scroll target |
|
|
1039
1039
|
| showCloseButton | `boolean` | `true` | Show X button |
|
|
1040
1040
|
|
|
1041
|
-
**Sub-components:**
|
|
1041
|
+
**Sub-components:** ModalTrigger, ModalPortal, ModalOverlay, ModalContent, ModalHeader, ModalTitle, ModalDescription, ModalBody, ModalFooter, ModalClose
|
|
1042
1042
|
|
|
1043
1043
|
**Required structure:** Portal → Overlay + Content. Don't forget Portal and Overlay.
|
|
1044
1044
|
|
|
@@ -1074,7 +1074,7 @@ import { AlertModal, AlertModalAction, AlertModalBody, AlertModalCancel, AlertMo
|
|
|
1074
1074
|
|---|---|---|---|
|
|
1075
1075
|
| size | `'xs' \| 'sm'` | `'sm'` | AlertModal width (smaller than Modal by design) |
|
|
1076
1076
|
|
|
1077
|
-
**Sub-components:**
|
|
1077
|
+
**Sub-components:** AlertModalTrigger, AlertModalPortal, AlertModalOverlay, AlertModalContent, AlertModalHeader, AlertModalTitle, AlertModalDescription, AlertModalBody, AlertModalFooter, AlertModalAction, AlertModalCancel
|
|
1078
1078
|
|
|
1079
1079
|
**Required structure:** Portal → Overlay + Content (same as Modal). Use for destructive confirmations — renders as `role="alertdialog"` via Radix AlertDialog primitive. No close button by default (force user to Action or Cancel).
|
|
1080
1080
|
|
|
@@ -1110,7 +1110,7 @@ import { Button, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerFooter, D
|
|
|
1110
1110
|
| size | `'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | `'md'` | Width/height |
|
|
1111
1111
|
| showCloseButton | `boolean` | `true` | Show X button |
|
|
1112
1112
|
|
|
1113
|
-
**Sub-components:**
|
|
1113
|
+
**Sub-components:** DrawerTrigger, DrawerPortal, DrawerOverlay, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerBody, DrawerFooter, DrawerClose
|
|
1114
1114
|
|
|
1115
1115
|
---
|
|
1116
1116
|
|
|
@@ -1146,8 +1146,8 @@ import { Button, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipPr
|
|
|
1146
1146
|
| showArrow | `boolean` | `true` | Show arrow |
|
|
1147
1147
|
| sideOffset | `number` | `6` | Gap from trigger |
|
|
1148
1148
|
|
|
1149
|
-
**⚠️
|
|
1150
|
-
**Sub-components:**
|
|
1149
|
+
**⚠️ TooltipProvider is required** — wrap your app or section with it.
|
|
1150
|
+
**Sub-components:** TooltipProvider, TooltipTrigger, TooltipContent, TooltipArrow, TooltipPortal
|
|
1151
1151
|
|
|
1152
1152
|
---
|
|
1153
1153
|
|
|
@@ -1177,7 +1177,7 @@ import { Button, Popover, PopoverArrow, PopoverContent, PopoverPortal, PopoverTr
|
|
|
1177
1177
|
| showArrow | `boolean` | `true` | Show arrow |
|
|
1178
1178
|
| showClose | `boolean` | `false` | Show X button |
|
|
1179
1179
|
|
|
1180
|
-
**Sub-components:**
|
|
1180
|
+
**Sub-components:** PopoverTrigger, PopoverContent, PopoverArrow, PopoverClose, PopoverAnchor, PopoverPortal
|
|
1181
1181
|
|
|
1182
1182
|
**Height:** PopoverContent never grows past the space left in the viewport; taller content scrolls inside it. Put layout classes (`flex`, `grid`, `gap-*`) on your own child element, not on `PopoverContent`.
|
|
1183
1183
|
|
|
@@ -1211,7 +1211,7 @@ import { Alert, AlertDescription, AlertTitle } from '@7onic-ui/react'
|
|
|
1211
1211
|
| icon | `ReactNode` | auto | Custom icon (auto-selects by color) |
|
|
1212
1212
|
| hideIcon | `boolean` | `false` | Hide icon |
|
|
1213
1213
|
|
|
1214
|
-
**Sub-components:**
|
|
1214
|
+
**Sub-components:** AlertTitle, AlertDescription
|
|
1215
1215
|
|
|
1216
1216
|
---
|
|
1217
1217
|
|
|
@@ -1371,7 +1371,7 @@ import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbP
|
|
|
1371
1371
|
| itemsBeforeCollapse | `number` | `1` | Items before ellipsis |
|
|
1372
1372
|
| itemsAfterCollapse | `number` | `1` | Items after ellipsis |
|
|
1373
1373
|
|
|
1374
|
-
**Sub-components:**
|
|
1374
|
+
**Sub-components:** BreadcrumbList, BreadcrumbItem, BreadcrumbLink (with `asChild`), BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis
|
|
1375
1375
|
|
|
1376
1376
|
---
|
|
1377
1377
|
|
|
@@ -1412,7 +1412,7 @@ import { Pagination, PaginationContent, PaginationItems, PaginationNext, Paginat
|
|
|
1412
1412
|
| loop | `boolean` | `false` | Wrap around |
|
|
1413
1413
|
| disabled | `boolean` | `false` | Disabled state |
|
|
1414
1414
|
|
|
1415
|
-
**Sub-components:**
|
|
1415
|
+
**Sub-components:** PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationFirst, PaginationLast, PaginationEllipsis, PaginationItems
|
|
1416
1416
|
|
|
1417
1417
|
---
|
|
1418
1418
|
|
|
@@ -1477,7 +1477,7 @@ import { NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationM
|
|
|
1477
1477
|
|---|---|---|---|
|
|
1478
1478
|
| color | `'default' \| 'primary'` | `'default'` | Indicator color (horizontal variant only) |
|
|
1479
1479
|
|
|
1480
|
-
**Sub-components:**
|
|
1480
|
+
**Sub-components:** NavigationMenuList, NavigationMenuItem, NavigationMenuTrigger, NavigationMenuContent, NavigationMenuLink, NavigationMenuGroup (vertical only, with `label`), NavigationMenuIndicator (horizontal only), NavigationMenuViewport
|
|
1481
1481
|
|
|
1482
1482
|
---
|
|
1483
1483
|
|
|
@@ -1617,7 +1617,7 @@ import { MetricCard, MetricCardDescription, MetricCardHeader, MetricCardSymbol,
|
|
|
1617
1617
|
|---|---|---|---|
|
|
1618
1618
|
| direction | `'up' \| 'down' \| 'neutral'` | — | Trend arrow + color |
|
|
1619
1619
|
|
|
1620
|
-
**Sub-components:**
|
|
1620
|
+
**Sub-components:** MetricCardHeader, MetricCardTitle, MetricCardValue, MetricCardTrend, MetricCardDescription, MetricCardSymbol
|
|
1621
1621
|
|
|
1622
1622
|
---
|
|
1623
1623
|
|
|
@@ -2005,7 +2005,7 @@ toast.success('Done')
|
|
|
2005
2005
|
```
|
|
2006
2006
|
|
|
2007
2007
|
**Use `asChild` when combining 7onic components with routing `<Link>`.**
|
|
2008
|
-
Components that support `asChild`: Button, IconButton, Badge, Card,
|
|
2008
|
+
Components that support `asChild`: Button, IconButton, Badge, Card, ModalTrigger, ModalClose, DrawerTrigger, DrawerClose, DropdownMenuItem, BreadcrumbLink, NavigationMenuLink, TooltipTrigger, PopoverTrigger
|
|
2009
2009
|
|
|
2010
2010
|
---
|
|
2011
2011
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7onic-ui/react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"types": "./dist/chart.d.ts",
|
|
20
20
|
"import": "./dist/chart.mjs",
|
|
21
21
|
"require": "./dist/chart.js"
|
|
22
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
23
24
|
},
|
|
24
25
|
"typesVersions": {
|
|
25
26
|
"*": {
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"dev:clean": "rm -rf .next && next dev",
|
|
38
39
|
"build": "next build",
|
|
39
40
|
"build:clean": "rm -rf .next && next build",
|
|
40
|
-
"build:lib": "tsup",
|
|
41
|
+
"build:lib": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsup",
|
|
41
42
|
"start": "next start",
|
|
42
43
|
"lint": "eslint . --ext .ts,.tsx",
|
|
43
44
|
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
package/dist/chart.d.mts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as RechartsPrimitive from 'recharts';
|
|
3
|
-
|
|
4
|
-
declare const THEMES: {
|
|
5
|
-
readonly light: "";
|
|
6
|
-
readonly dark: ".dark";
|
|
7
|
-
};
|
|
8
|
-
type ChartConfig = {
|
|
9
|
-
[k in string]: {
|
|
10
|
-
label?: React.ReactNode;
|
|
11
|
-
icon?: React.ComponentType;
|
|
12
|
-
} & ({
|
|
13
|
-
color?: string;
|
|
14
|
-
theme?: never;
|
|
15
|
-
} | {
|
|
16
|
-
color?: never;
|
|
17
|
-
theme: Record<keyof typeof THEMES, string>;
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
type ChartContextProps = {
|
|
21
|
-
config: ChartConfig;
|
|
22
|
-
hoverFade: boolean;
|
|
23
|
-
activeIndex: number | null;
|
|
24
|
-
setActiveIndex: (index: number | null) => void;
|
|
25
|
-
activeDataKey: string | null;
|
|
26
|
-
setActiveDataKey: (key: string | null) => void;
|
|
27
|
-
};
|
|
28
|
-
declare function useChart(): ChartContextProps;
|
|
29
|
-
declare function ChartContainer({ id, className, children, config, hoverFade, ...props }: React.ComponentProps<'div'> & {
|
|
30
|
-
config: ChartConfig;
|
|
31
|
-
/** Enable hover-to-highlight: hovered bar group stays full opacity, others fade. */
|
|
32
|
-
hoverFade?: boolean;
|
|
33
|
-
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
|
|
34
|
-
}): React.JSX.Element;
|
|
35
|
-
declare const ChartStyle: ({ id, config }: {
|
|
36
|
-
id: string;
|
|
37
|
-
config: ChartConfig;
|
|
38
|
-
}) => React.JSX.Element;
|
|
39
|
-
type ChartBarRadius = 'none' | 'sm' | 'base' | 'md' | 'lg';
|
|
40
|
-
type ChartBarVariant = 'solid' | 'outline';
|
|
41
|
-
type ChartBarProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Bar>, 'radius'> & {
|
|
42
|
-
/** Named radius token. Auto-adapts corners based on layout and stack position. */
|
|
43
|
-
radius?: ChartBarRadius;
|
|
44
|
-
/** 'horizontal' rounds the right side (away from Y-axis). Default: 'vertical' */
|
|
45
|
-
layout?: 'vertical' | 'horizontal';
|
|
46
|
-
/** 'bottom' rounds the bottom corners (base of a stack). Default: 'top' */
|
|
47
|
-
stackPosition?: 'top' | 'bottom';
|
|
48
|
-
/** 'outline' renders a thick border with a semi-transparent fill. Default: 'solid' */
|
|
49
|
-
variant?: ChartBarVariant;
|
|
50
|
-
};
|
|
51
|
-
declare function ChartBar({ radius, layout, stackPosition, variant, fill, stackId, ...props }: ChartBarProps): React.JSX.Element;
|
|
52
|
-
declare function ChartTooltip(props: React.ComponentProps<typeof RechartsPrimitive.Tooltip>): React.JSX.Element;
|
|
53
|
-
type TooltipPayloadItem = {
|
|
54
|
-
dataKey?: string | number;
|
|
55
|
-
name?: string;
|
|
56
|
-
value?: number | string;
|
|
57
|
-
type?: string;
|
|
58
|
-
color?: string;
|
|
59
|
-
payload?: Record<string, unknown>;
|
|
60
|
-
fill?: string;
|
|
61
|
-
};
|
|
62
|
-
type ChartTooltipContentProps = React.ComponentProps<'div'> & {
|
|
63
|
-
active?: boolean;
|
|
64
|
-
payload?: TooltipPayloadItem[];
|
|
65
|
-
label?: string;
|
|
66
|
-
labelFormatter?: (value: unknown, payload: TooltipPayloadItem[]) => React.ReactNode;
|
|
67
|
-
labelClassName?: string;
|
|
68
|
-
formatter?: (value: unknown, name: string, item: TooltipPayloadItem, index: number, payload: Record<string, unknown>) => React.ReactNode;
|
|
69
|
-
color?: string;
|
|
70
|
-
hideLabel?: boolean;
|
|
71
|
-
hideIndicator?: boolean;
|
|
72
|
-
indicator?: 'line' | 'dot' | 'dashed';
|
|
73
|
-
nameKey?: string;
|
|
74
|
-
labelKey?: string;
|
|
75
|
-
};
|
|
76
|
-
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: ChartTooltipContentProps): React.JSX.Element | null;
|
|
77
|
-
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
78
|
-
type LegendPayloadItem = {
|
|
79
|
-
value?: string;
|
|
80
|
-
type?: string;
|
|
81
|
-
color?: string;
|
|
82
|
-
dataKey?: string;
|
|
83
|
-
};
|
|
84
|
-
type ChartLegendContentProps = React.ComponentProps<'div'> & {
|
|
85
|
-
payload?: LegendPayloadItem[];
|
|
86
|
-
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
87
|
-
align?: 'left' | 'center' | 'right';
|
|
88
|
-
/** Recharts passes layout when Legend uses layout prop */
|
|
89
|
-
layout?: 'horizontal' | 'vertical';
|
|
90
|
-
hideIcon?: boolean;
|
|
91
|
-
nameKey?: string;
|
|
92
|
-
};
|
|
93
|
-
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, align, layout, nameKey, }: ChartLegendContentProps): React.JSX.Element | null;
|
|
94
|
-
type ChartXAxisProps = React.ComponentProps<typeof RechartsPrimitive.XAxis>;
|
|
95
|
-
type ChartYAxisProps = React.ComponentProps<typeof RechartsPrimitive.YAxis>;
|
|
96
|
-
declare function ChartXAxis({ tick, padding, ...props }: ChartXAxisProps): React.JSX.Element;
|
|
97
|
-
declare function ChartYAxis({ tick, width, ...props }: ChartYAxisProps): React.JSX.Element;
|
|
98
|
-
type ChartLineType = 'linear' | 'monotone' | 'step' | 'natural';
|
|
99
|
-
type ChartLineVariant = 'solid' | 'dashed';
|
|
100
|
-
type ChartLineProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Line>, 'type' | 'dot' | 'activeDot'> & {
|
|
101
|
-
/** Curve interpolation type. Default: 'monotone' */
|
|
102
|
-
type?: ChartLineType;
|
|
103
|
-
/** Line style. 'dashed' applies stroke-dasharray. Default: 'solid' */
|
|
104
|
-
variant?: ChartLineVariant;
|
|
105
|
-
/** Show data point dots. Default: true */
|
|
106
|
-
dot?: boolean;
|
|
107
|
-
/** Show highlighted dot on hover. Default: true */
|
|
108
|
-
activeDot?: boolean;
|
|
109
|
-
};
|
|
110
|
-
declare function ChartLine({ type, variant, dot: showDot, activeDot: showActiveDot, stroke, dataKey, ...props }: ChartLineProps): React.JSX.Element;
|
|
111
|
-
type ChartAreaType = 'linear' | 'monotone' | 'step' | 'natural';
|
|
112
|
-
type ChartAreaVariant = 'solid' | 'gradient';
|
|
113
|
-
type ChartAreaProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Area>, 'type' | 'dot' | 'activeDot'> & {
|
|
114
|
-
/** Curve interpolation type. Default: 'monotone' */
|
|
115
|
-
type?: ChartAreaType;
|
|
116
|
-
/** Fill style. 'gradient' auto-generates an SVG linearGradient. Default: 'solid' */
|
|
117
|
-
variant?: ChartAreaVariant;
|
|
118
|
-
/** Show data point dots. Default: true */
|
|
119
|
-
dot?: boolean;
|
|
120
|
-
/** Show highlighted dot on hover. Default: true */
|
|
121
|
-
activeDot?: boolean;
|
|
122
|
-
/** Fill opacity for this area (0–1). Default: 0.4 */
|
|
123
|
-
fillOpacity?: number;
|
|
124
|
-
};
|
|
125
|
-
declare function ChartArea({ type, variant, dot: showDot, activeDot: showActiveDot, fillOpacity, stroke, fill, dataKey, ...props }: ChartAreaProps): React.JSX.Element;
|
|
126
|
-
type ChartPieVariant = 'pie' | 'donut';
|
|
127
|
-
type ChartPieLabel = 'none' | 'outside' | 'inside';
|
|
128
|
-
type ChartPieLabelContent = 'value' | 'percent';
|
|
129
|
-
type ChartPieProps = Omit<React.ComponentProps<typeof RechartsPrimitive.Pie>, 'label' | 'labelLine' | 'activeShape'> & {
|
|
130
|
-
/** 'donut' applies innerRadius automatically. Default: 'pie' */
|
|
131
|
-
variant?: ChartPieVariant;
|
|
132
|
-
/** Label position. Default: 'none' */
|
|
133
|
-
label?: ChartPieLabel;
|
|
134
|
-
/** Label display content. Default: 'value' */
|
|
135
|
-
labelContent?: ChartPieLabelContent;
|
|
136
|
-
/** Hover expand effect. Default: true */
|
|
137
|
-
activeShape?: boolean;
|
|
138
|
-
/** Override inner radius (default: 0 for pie, 60 for donut) */
|
|
139
|
-
innerRadius?: number;
|
|
140
|
-
/** Padding angle between slices (degrees). Default: 0 */
|
|
141
|
-
paddingAngle?: number;
|
|
142
|
-
/** Corner radius for slices. Default: 0 */
|
|
143
|
-
cornerRadius?: number;
|
|
144
|
-
};
|
|
145
|
-
declare function ChartPie({ variant, label: labelMode, labelContent, activeShape: showActiveShape, innerRadius, paddingAngle, cornerRadius, startAngle, endAngle, ...props }: ChartPieProps): React.JSX.Element;
|
|
146
|
-
|
|
147
|
-
export { ChartContainer as Chart, ChartArea, type ChartAreaType, type ChartAreaVariant, ChartBar, type ChartBarRadius, type ChartBarVariant, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartLine, type ChartLineType, type ChartLineVariant, ChartPie, type ChartPieLabel, type ChartPieLabelContent, type ChartPieVariant, ChartStyle, ChartTooltip, ChartTooltipContent, ChartXAxis, ChartYAxis, useChart };
|