@nexub/react 3.0.0 → 3.1.0
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/dist/components/Accordion/Accordion.d.ts +10 -0
- package/dist/{chunk-DOVZNUSH.js → components/Accordion/Accordion.js} +12 -17
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +1 -5
- package/dist/components/Alert/Alert.d.ts +14 -0
- package/dist/{chunk-U422B6UE.js → components/Alert/Alert.js} +8 -15
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.js +1 -7
- package/dist/components/AlertDialog/AlertDialog.d.ts +15 -0
- package/dist/{chunk-PDQTKE2C.js → components/AlertDialog/AlertDialog.js} +32 -42
- package/dist/components/AlertDialog/index.d.ts +1 -0
- package/dist/components/AlertDialog/index.js +1 -9
- package/dist/components/Amount/Amount.d.ts +22 -0
- package/dist/{chunk-IBBICKEZ.js → components/Amount/Amount.js} +10 -21
- package/dist/components/Amount/index.d.ts +2 -0
- package/dist/components/Amount/index.js +1 -8
- package/dist/components/AppShell/AppShell.d.ts +8 -0
- package/dist/{chunk-EPJ4CMZP.js → components/AppShell/AppShell.js} +8 -14
- package/dist/components/AppShell/index.d.ts +1 -0
- package/dist/components/AppShell/index.js +1 -5
- package/dist/components/AspectRatio/AspectRatio.d.ts +5 -0
- package/dist/{chunk-52CXVN3U.js → components/AspectRatio/AspectRatio.js} +4 -10
- package/dist/components/AspectRatio/index.d.ts +2 -0
- package/dist/components/AspectRatio/index.js +1 -5
- package/dist/components/Autocomplete/Autocomplete.d.ts +18 -0
- package/dist/{chunk-E7RLUHG3.js → components/Autocomplete/Autocomplete.js} +4 -11
- package/dist/components/Autocomplete/index.d.ts +2 -0
- package/dist/components/Autocomplete/index.js +1 -7
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/{chunk-AYG7HBDZ.js → components/Avatar/Avatar.js} +8 -13
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +1 -7
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +12 -0
- package/dist/{chunk-BMUAR6H2.js → components/AvatarGroup/AvatarGroup.js} +9 -18
- package/dist/components/AvatarGroup/index.d.ts +2 -0
- package/dist/components/AvatarGroup/index.js +1 -8
- package/dist/components/Badge/Badge.d.ts +12 -0
- package/dist/{chunk-FBUKWIWR.js → components/Badge/Badge.js} +7 -13
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +1 -6
- package/dist/components/Box/Box.d.ts +5 -0
- package/dist/{chunk-ZCHZNGWU.js → components/Box/Box.js} +3 -9
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Box/index.js +1 -5
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +21 -0
- package/dist/{chunk-SQGRT72E.js → components/Breadcrumb/Breadcrumb.js} +12 -19
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Breadcrumb/index.js +1 -6
- package/dist/components/Button/Button.d.ts +30 -0
- package/dist/{chunk-GHLMHKMV.js → components/Button/Button.js} +19 -37
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +1 -9
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -0
- package/dist/{chunk-7EQ2LIYD.js → components/ButtonGroup/ButtonGroup.js} +3 -9
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.js +1 -6
- package/dist/components/Card/Card.d.ts +27 -0
- package/dist/{chunk-T466ZB34.js → components/Card/Card.js} +18 -46
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +1 -8
- package/dist/components/CheckList/CheckList.d.ts +10 -0
- package/dist/{chunk-T3RBFJML.js → components/CheckList/CheckList.js} +4 -10
- package/dist/components/CheckList/index.d.ts +2 -0
- package/dist/components/CheckList/index.js +1 -6
- package/dist/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/{chunk-JOOKMCAF.js → components/Checkbox/Checkbox.js} +4 -9
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +1 -5
- package/dist/components/CheckboxCard/CheckboxCard.d.ts +9 -0
- package/dist/{chunk-EYGT5IX4.js → components/CheckboxCard/CheckboxCard.js} +7 -12
- package/dist/components/CheckboxCard/index.d.ts +2 -0
- package/dist/components/CheckboxCard/index.js +1 -6
- package/dist/components/Chip/Chip.d.ts +12 -0
- package/dist/{chunk-PFDUHXT5.js → components/Chip/Chip.js} +8 -15
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/index.js +1 -7
- package/dist/components/Citation/Citation.d.ts +44 -0
- package/dist/{chunk-IA2362SO.js → components/Citation/Citation.js} +12 -21
- package/dist/components/Citation/index.d.ts +2 -0
- package/dist/components/Citation/index.js +1 -11
- package/dist/components/Code/Code.d.ts +6 -0
- package/dist/{chunk-NX44VGON.js → components/Code/Code.js} +3 -9
- package/dist/components/Code/index.d.ts +2 -0
- package/dist/components/Code/index.js +1 -5
- package/dist/components/Collapsible/Collapsible.d.ts +7 -0
- package/dist/{chunk-4WIUGX5Z.js → components/Collapsible/Collapsible.js} +10 -15
- package/dist/components/Collapsible/index.d.ts +1 -0
- package/dist/components/Collapsible/index.js +1 -5
- package/dist/components/Combobox/Combobox.d.ts +75 -0
- package/dist/{chunk-XWELMPYD.js → components/Combobox/Combobox.js} +11 -16
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/Combobox/index.js +1 -6
- package/dist/components/CommandPalette/CommandPalette.d.ts +73 -0
- package/dist/{chunk-LASPHHH6.js → components/CommandPalette/CommandPalette.js} +16 -28
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.js +1 -8
- package/dist/components/Container/Container.d.ts +10 -0
- package/dist/{chunk-EQ5ASTJM.js → components/Container/Container.js} +7 -12
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/Container/index.js +1 -6
- package/dist/components/ContextMenu/ContextMenu.d.ts +18 -0
- package/dist/{chunk-CUCTSWR2.js → components/ContextMenu/ContextMenu.js} +42 -53
- package/dist/components/ContextMenu/index.d.ts +1 -0
- package/dist/components/ContextMenu/index.js +1 -6
- package/dist/components/CountryBadge/CountryBadge.d.ts +8 -0
- package/dist/{chunk-JZCZ2SDT.js → components/CountryBadge/CountryBadge.js} +5 -13
- package/dist/components/CountryBadge/index.d.ts +2 -0
- package/dist/components/CountryBadge/index.js +1 -6
- package/dist/components/DataTable/DataTable.d.ts +24 -0
- package/dist/{chunk-A7PS3EZO.js → components/DataTable/DataTable.js} +15 -27
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/index.js +1 -8
- package/dist/components/DatePicker/DatePicker.d.ts +39 -0
- package/dist/{chunk-OY5CWWIM.js → components/DatePicker/DatePicker.js} +11 -24
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +1 -9
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +20 -0
- package/dist/{chunk-YYAXXJH3.js → components/DateRangePicker/DateRangePicker.js} +9 -23
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +1 -9
- package/dist/components/Dialog/Dialog.d.ts +21 -0
- package/dist/{chunk-CEFGILJY.js → components/Dialog/Dialog.js} +28 -38
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.js +1 -7
- package/dist/components/Drawer/Drawer.d.ts +94 -0
- package/dist/components/Drawer/Drawer.js +131 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/index.js +1 -9
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +18 -0
- package/dist/{chunk-GWFIMQBC.js → components/DropdownMenu/DropdownMenu.js} +42 -53
- package/dist/components/DropdownMenu/index.d.ts +1 -0
- package/dist/components/DropdownMenu/index.js +1 -7
- package/dist/components/EmptyState/EmptyState.d.ts +8 -0
- package/dist/{chunk-AWTSLASB.js → components/EmptyState/EmptyState.js} +8 -14
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/EmptyState/index.js +1 -5
- package/dist/components/ErrorState/ErrorState.d.ts +10 -0
- package/dist/{chunk-NX5ZJSRU.js → components/ErrorState/ErrorState.js} +6 -13
- package/dist/components/ErrorState/index.d.ts +2 -0
- package/dist/components/ErrorState/index.js +1 -6
- package/dist/components/EyebrowChip/EyebrowChip.d.ts +11 -0
- package/dist/{chunk-MXXJOAWQ.js → components/EyebrowChip/EyebrowChip.js} +7 -13
- package/dist/components/EyebrowChip/index.d.ts +2 -0
- package/dist/components/EyebrowChip/index.js +1 -8
- package/dist/components/FileUpload/FileUpload.d.ts +16 -0
- package/dist/{chunk-LR6KNEKL.js → components/FileUpload/FileUpload.js} +12 -19
- package/dist/components/FileUpload/index.d.ts +2 -0
- package/dist/components/FileUpload/index.js +1 -6
- package/dist/components/FilterChip/FilterChip.d.ts +8 -0
- package/dist/{chunk-36QSSD7I.js → components/FilterChip/FilterChip.js} +6 -15
- package/dist/components/FilterChip/index.d.ts +2 -0
- package/dist/components/FilterChip/index.js +1 -7
- package/dist/components/Flag/Flag.d.ts +7 -0
- package/dist/{chunk-HOQPHAGW.js → components/Flag/Flag.js} +4 -10
- package/dist/components/Flag/index.d.ts +2 -0
- package/dist/components/Flag/index.js +1 -6
- package/dist/components/Flex/Flex.d.ts +10 -0
- package/dist/{chunk-BOO4VH3M.js → components/Flex/Flex.js} +5 -13
- package/dist/components/Flex/index.d.ts +2 -0
- package/dist/components/Flex/index.js +1 -6
- package/dist/components/FormError/FormError.d.ts +3 -0
- package/dist/{chunk-H2X6MSNY.js → components/FormError/FormError.js} +3 -9
- package/dist/components/FormError/index.d.ts +2 -0
- package/dist/components/FormError/index.js +1 -6
- package/dist/components/FormField/FormField.d.ts +46 -0
- package/dist/{chunk-FT73REUG.js → components/FormField/FormField.js} +9 -20
- package/dist/components/FormField/index.d.ts +2 -0
- package/dist/components/FormField/index.js +1 -11
- package/dist/components/GradientDivider/GradientDivider.d.ts +6 -0
- package/dist/{chunk-FDRAGYDV.js → components/GradientDivider/GradientDivider.js} +7 -13
- package/dist/components/GradientDivider/index.d.ts +2 -0
- package/dist/components/GradientDivider/index.js +1 -5
- package/dist/components/Grid/Grid.d.ts +9 -0
- package/dist/{chunk-F5S2KP3Z.js → components/Grid/Grid.js} +5 -13
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/index.js +1 -6
- package/dist/components/Heading/Heading.d.ts +17 -0
- package/dist/{chunk-Z7OR2LYG.js → components/Heading/Heading.js} +8 -16
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/index.js +1 -9
- package/dist/components/HelperText/HelperText.d.ts +6 -0
- package/dist/{chunk-QKGQBJ4U.js → components/HelperText/HelperText.js} +4 -12
- package/dist/components/HelperText/index.d.ts +2 -0
- package/dist/components/HelperText/index.js +1 -9
- package/dist/components/HoverCard/HoverCard.d.ts +10 -0
- package/dist/{chunk-KL55E5PE.js → components/HoverCard/HoverCard.js} +15 -22
- package/dist/components/HoverCard/index.d.ts +1 -0
- package/dist/components/HoverCard/index.js +1 -7
- package/dist/components/IconButton/IconButton.d.ts +11 -0
- package/dist/{chunk-RH2HEPC7.js → components/IconButton/IconButton.js} +7 -17
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/index.js +1 -8
- package/dist/components/Input/Input.d.ts +21 -0
- package/dist/{chunk-G7VMAWAX.js → components/Input/Input.js} +10 -21
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.js +1 -10
- package/dist/components/Kbd/Kbd.d.ts +4 -0
- package/dist/{chunk-OM62PQSE.js → components/Kbd/Kbd.js} +3 -9
- package/dist/components/Kbd/index.d.ts +2 -0
- package/dist/components/Kbd/index.js +1 -6
- package/dist/components/KeyboardShortcut/KeyboardShortcut.d.ts +5 -0
- package/dist/{chunk-PR3CEPFG.js → components/KeyboardShortcut/KeyboardShortcut.js} +4 -12
- package/dist/components/KeyboardShortcut/index.d.ts +2 -0
- package/dist/components/KeyboardShortcut/index.js +1 -6
- package/dist/components/Label/Label.d.ts +15 -0
- package/dist/{chunk-BM5PGGK2.js → components/Label/Label.js} +7 -15
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Label/index.js +1 -10
- package/dist/components/Link/Link.d.ts +11 -0
- package/dist/{chunk-QCLE5VQW.js → components/Link/Link.js} +6 -12
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Link/index.js +1 -6
- package/dist/components/Logo/Logo.d.ts +15 -0
- package/dist/{chunk-ZGJF4HAT.js → components/Logo/Logo.js} +8 -14
- package/dist/components/Logo/index.d.ts +2 -0
- package/dist/components/Logo/index.js +1 -6
- package/dist/components/MediaCard/MediaCard.d.ts +24 -0
- package/dist/{chunk-5DHLFPC4.js → components/MediaCard/MediaCard.js} +5 -13
- package/dist/components/MediaCard/index.d.ts +2 -0
- package/dist/components/MediaCard/index.js +1 -6
- package/dist/components/Menubar/Menubar.d.ts +1 -0
- package/dist/{chunk-PPECMYKJ.js → components/Menubar/Menubar.js} +50 -61
- package/dist/components/Menubar/index.d.ts +1 -0
- package/dist/components/Menubar/index.js +1 -6
- package/dist/components/MessageBubble/MessageBubble.d.ts +43 -0
- package/dist/{chunk-RNS35DNZ.js → components/MessageBubble/MessageBubble.js} +13 -27
- package/dist/components/MessageBubble/index.d.ts +2 -0
- package/dist/components/MessageBubble/index.js +1 -13
- package/dist/components/MoneyInput/MoneyInput.d.ts +19 -0
- package/dist/{chunk-FOFNTKCK.js → components/MoneyInput/MoneyInput.js} +8 -24
- package/dist/components/MoneyInput/index.d.ts +2 -0
- package/dist/components/MoneyInput/index.js +1 -11
- package/dist/components/Motion/Collapse.d.ts +29 -0
- package/dist/components/Motion/Collapse.js +103 -0
- package/dist/components/Motion/Fade.d.ts +16 -0
- package/dist/components/Motion/Fade.js +42 -0
- package/dist/components/Motion/Float.d.ts +8 -0
- package/dist/components/Motion/Float.js +14 -0
- package/dist/components/Motion/ListTransition.d.ts +46 -0
- package/dist/components/Motion/ListTransition.js +110 -0
- package/dist/components/Motion/Marquee.d.ts +13 -0
- package/dist/components/Motion/Marquee.js +13 -0
- package/dist/components/Motion/Reveal.d.ts +12 -0
- package/dist/components/Motion/Reveal.js +32 -0
- package/dist/components/Motion/Scale.d.ts +22 -0
- package/dist/components/Motion/Scale.js +45 -0
- package/dist/components/Motion/Slide.d.ts +22 -0
- package/dist/components/Motion/Slide.js +59 -0
- package/dist/components/Motion/index.d.ts +18 -0
- package/dist/components/Motion/index.js +12 -10
- package/dist/components/Motion/motion.types.d.ts +25 -0
- package/dist/components/Motion/motion.types.js +1 -0
- package/dist/components/Motion/useMotion.d.ts +41 -0
- package/dist/components/Motion/useMotion.js +102 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +12 -0
- package/dist/{chunk-FXVI4RCJ.js → components/NavigationMenu/NavigationMenu.js} +21 -28
- package/dist/components/NavigationMenu/index.d.ts +1 -0
- package/dist/components/NavigationMenu/index.js +1 -6
- package/dist/components/NavigationRail/NavigationRail.d.ts +19 -0
- package/dist/{chunk-5MGCYR4G.js → components/NavigationRail/NavigationRail.js} +7 -14
- package/dist/components/NavigationRail/index.d.ts +2 -0
- package/dist/components/NavigationRail/index.js +1 -6
- package/dist/components/NexubProvider/NexubProvider.d.ts +34 -0
- package/dist/{chunk-VMSWIC3O.js → components/NexubProvider/NexubProvider.js} +7 -9
- package/dist/components/NexubProvider/index.d.ts +2 -0
- package/dist/components/NexubProvider/index.js +1 -8
- package/dist/components/NumberInput/NumberInput.d.ts +15 -0
- package/dist/{chunk-V3EWVSVI.js → components/NumberInput/NumberInput.js} +9 -20
- package/dist/components/NumberInput/index.d.ts +2 -0
- package/dist/components/NumberInput/index.js +1 -8
- package/dist/components/NumberTicker/NumberTicker.d.ts +25 -0
- package/dist/{chunk-2G3XUIQZ.js → components/NumberTicker/NumberTicker.js} +30 -19
- package/dist/components/NumberTicker/index.d.ts +2 -0
- package/dist/components/NumberTicker/index.js +1 -7
- package/dist/components/PageHeader/PageHeader.d.ts +10 -0
- package/dist/{chunk-SEW66BU7.js → components/PageHeader/PageHeader.js} +3 -9
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/PageHeader/index.js +1 -5
- package/dist/components/Pagination/Pagination.d.ts +9 -0
- package/dist/{chunk-NLVP74RX.js → components/Pagination/Pagination.js} +7 -17
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +1 -7
- package/dist/components/PasswordInput/PasswordInput.d.ts +9 -0
- package/dist/{chunk-OGHOT6XN.js → components/PasswordInput/PasswordInput.js} +7 -18
- package/dist/components/PasswordInput/index.d.ts +2 -0
- package/dist/components/PasswordInput/index.js +1 -10
- package/dist/components/Popover/Popover.d.ts +13 -0
- package/dist/{chunk-MPJG4WFP.js → components/Popover/Popover.js} +20 -29
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.js +1 -7
- package/dist/components/Progress/Progress.d.ts +17 -0
- package/dist/{chunk-HXNUIIXB.js → components/Progress/Progress.js} +9 -16
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +1 -8
- package/dist/components/PromptInput/PromptInput.d.ts +33 -0
- package/dist/{chunk-ZUMC7SX5.js → components/PromptInput/PromptInput.js} +12 -30
- package/dist/components/PromptInput/index.d.ts +2 -0
- package/dist/components/PromptInput/index.js +1 -12
- package/dist/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/{chunk-YNLXG574.js → components/RadioCard/RadioCard.js} +11 -16
- package/dist/components/RadioCard/index.d.ts +2 -0
- package/dist/components/RadioCard/index.js +1 -7
- package/dist/components/RadioCard/selectableCard.d.ts +29 -0
- package/dist/{chunk-6SPCGCDG.js → components/RadioCard/selectableCard.js} +6 -11
- package/dist/components/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/{chunk-QQR4PPF3.js → components/RadioGroup/RadioGroup.js} +8 -13
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/RadioGroup/index.js +1 -5
- package/dist/components/Rating/Rating.d.ts +12 -0
- package/dist/{chunk-VCCQ64G7.js → components/Rating/Rating.js} +9 -18
- package/dist/components/Rating/index.d.ts +2 -0
- package/dist/components/Rating/index.js +1 -9
- package/dist/components/ScrollArea/ScrollArea.d.ts +6 -0
- package/dist/{chunk-2DZWTBDL.js → components/ScrollArea/ScrollArea.js} +4 -9
- package/dist/components/ScrollArea/index.d.ts +2 -0
- package/dist/components/ScrollArea/index.js +1 -5
- package/dist/components/SearchInput/SearchInput.d.ts +6 -0
- package/dist/{chunk-YVS6AVPD.js → components/SearchInput/SearchInput.js} +7 -18
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/SearchInput/index.js +1 -10
- package/dist/components/Section/Section.d.ts +10 -0
- package/dist/{chunk-EIV37DAQ.js → components/Section/Section.js} +6 -12
- package/dist/components/Section/index.d.ts +2 -0
- package/dist/components/Section/index.js +1 -6
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +12 -0
- package/dist/{chunk-KRIRCSUB.js → components/SegmentedControl/SegmentedControl.js} +12 -21
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/SegmentedControl/index.js +1 -8
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/{chunk-M5PDVHFN.js → components/Select/Select.js} +35 -48
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +1 -7
- package/dist/components/Separator/Separator.d.ts +12 -0
- package/dist/{chunk-YVCUKIAC.js → components/Separator/Separator.js} +6 -12
- package/dist/components/Separator/index.d.ts +2 -0
- package/dist/components/Separator/index.js +1 -6
- package/dist/components/Sidebar/Sidebar.d.ts +25 -0
- package/dist/{chunk-NAESV7K3.js → components/Sidebar/Sidebar.js} +11 -18
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/index.js +1 -6
- package/dist/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/{chunk-3C4WVTAN.js → components/Skeleton/Skeleton.js} +7 -13
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/index.js +1 -6
- package/dist/components/Slider/Slider.d.ts +7 -0
- package/dist/{chunk-5QWRBJSZ.js → components/Slider/Slider.js} +4 -9
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/index.js +1 -5
- package/dist/components/Spinner/Spinner.d.ts +12 -0
- package/dist/{chunk-P3SAE4T2.js → components/Spinner/Spinner.js} +8 -15
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/index.js +1 -7
- package/dist/components/SplitButton/SplitButton.d.ts +15 -0
- package/dist/{chunk-ILIM4BLN.js → components/SplitButton/SplitButton.js} +7 -18
- package/dist/components/SplitButton/index.d.ts +2 -0
- package/dist/components/SplitButton/index.js +1 -11
- package/dist/components/Stack/Stack.d.ts +11 -0
- package/dist/{chunk-ST4O3EQ3.js → components/Stack/Stack.js} +4 -12
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/Stack/index.js +1 -6
- package/dist/components/StreamingText/StreamingText.d.ts +19 -0
- package/dist/{chunk-4ESZQDPB.js → components/StreamingText/StreamingText.js} +5 -10
- package/dist/components/StreamingText/index.d.ts +2 -0
- package/dist/components/StreamingText/index.js +1 -5
- package/dist/components/Switch/Switch.d.ts +12 -0
- package/dist/{chunk-EWW6PWTK.js → components/Switch/Switch.js} +9 -12
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +1 -5
- package/dist/components/Table/Table.d.ts +18 -0
- package/dist/{chunk-KA6RZ7VN.js → components/Table/Table.js} +13 -18
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +1 -6
- package/dist/components/Tabs/Tabs.d.ts +8 -0
- package/dist/{chunk-BIWSXGTZ.js → components/Tabs/Tabs.js} +14 -23
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +1 -8
- package/dist/components/Text/Text.d.ts +13 -0
- package/dist/{chunk-UYINKNCI.js → components/Text/Text.js} +7 -13
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/Text/index.js +1 -6
- package/dist/components/TextGradient/TextGradient.d.ts +4 -0
- package/dist/{chunk-IDPRAXCG.js → components/TextGradient/TextGradient.js} +3 -9
- package/dist/components/TextGradient/index.d.ts +2 -0
- package/dist/components/TextGradient/index.js +1 -5
- package/dist/components/Textarea/Textarea.d.ts +13 -0
- package/dist/{chunk-HL64PWVQ.js → components/Textarea/Textarea.js} +8 -17
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +1 -7
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +69 -0
- package/dist/{chunk-ZBRRQHZG.js → components/ThemeProvider/ThemeProvider.js} +11 -15
- package/dist/components/ThemeProvider/index.d.ts +2 -0
- package/dist/components/ThemeProvider/index.js +1 -7
- package/dist/components/ThinkingIndicator/ThinkingIndicator.d.ts +18 -0
- package/dist/{chunk-VX56VQMF.js → components/ThinkingIndicator/ThinkingIndicator.js} +6 -13
- package/dist/components/ThinkingIndicator/index.d.ts +2 -0
- package/dist/components/ThinkingIndicator/index.js +1 -6
- package/dist/components/Toast/Toast.d.ts +17 -0
- package/dist/components/Toast/Toast.js +82 -0
- package/dist/components/Toast/Toaster.d.ts +21 -0
- package/dist/{chunk-MQGBAWSJ.js → components/Toast/Toaster.js} +27 -189
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/Toast/index.js +3 -10
- package/dist/components/Toast/useToast.d.ts +45 -0
- package/dist/components/Toast/useToast.js +74 -0
- package/dist/components/Toggle/Toggle.d.ts +10 -0
- package/dist/{chunk-NMSQDI4A.js → components/Toggle/Toggle.js} +7 -12
- package/dist/components/Toggle/index.d.ts +2 -0
- package/dist/components/Toggle/index.js +1 -7
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +16 -0
- package/dist/{chunk-UOBWHPXG.js → components/ToggleGroup/ToggleGroup.js} +10 -17
- package/dist/components/ToggleGroup/index.d.ts +1 -0
- package/dist/components/ToggleGroup/index.js +1 -6
- package/dist/components/Toolbar/Toolbar.d.ts +18 -0
- package/dist/{chunk-WGW7TZOV.js → components/Toolbar/Toolbar.js} +15 -22
- package/dist/components/Toolbar/index.d.ts +2 -0
- package/dist/components/Toolbar/index.js +1 -6
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/{chunk-6SWOLUMF.js → components/Tooltip/Tooltip.js} +16 -21
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +1 -10
- package/dist/components/TopNav/TopNav.d.ts +20 -0
- package/dist/{chunk-BNG3Y5I7.js → components/TopNav/TopNav.js} +11 -20
- package/dist/components/TopNav/index.d.ts +2 -0
- package/dist/components/TopNav/index.js +1 -7
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +2 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +5 -0
- package/dist/components/VisuallyHidden/index.d.ts +2 -0
- package/dist/components/VisuallyHidden/index.js +2 -5
- package/dist/hooks/useClassScrollLock.d.ts +6 -0
- package/dist/{chunk-47UGX37F.js → hooks/useClassScrollLock.js} +2 -5
- package/dist/hooks/useControllableState.d.ts +7 -0
- package/dist/{chunk-JLUCMNVS.js → hooks/useControllableState.js} +2 -7
- package/dist/hooks/useDisclosure.d.ts +6 -0
- package/dist/hooks/useDisclosure.js +12 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -0
- package/dist/hooks/useMediaQuery.js +17 -0
- package/dist/hooks/useMergedRefs.d.ts +2 -0
- package/dist/{chunk-MNEXMMLM.js → hooks/useMergedRefs.js} +1 -4
- package/dist/hooks/usePointerSheen.d.ts +8 -0
- package/dist/hooks/usePointerSheen.js +25 -0
- package/dist/hooks/useSlidingIndicator.d.ts +8 -0
- package/dist/{chunk-6UKNUI46.js → hooks/useSlidingIndicator.js} +2 -7
- package/dist/index.d.ts +196 -1849
- package/dist/index.js +116 -413
- package/dist/styles.css +1 -1
- package/dist/utils/cn.d.ts +2 -0
- package/dist/{chunk-WRVFNYO3.js → utils/cn.js} +8 -11
- package/dist/utils/control.d.ts +20 -0
- package/dist/utils/control.js +41 -0
- package/dist/utils/deprecated.d.ts +6 -0
- package/dist/utils/deprecated.js +16 -0
- package/dist/utils/glass.d.ts +9 -0
- package/dist/utils/glass.js +4 -0
- package/dist/utils/layout.d.ts +14 -0
- package/dist/{chunk-VLQGQFW7.js → utils/layout.js} +5 -9
- package/dist/utils/money.d.ts +1 -0
- package/dist/{chunk-R3SUPKKI.js → utils/money.js} +3 -6
- package/dist/utils/surface.d.ts +11 -0
- package/dist/{chunk-5FWJXSXT.js → utils/surface.js} +9 -13
- package/dist/utils/viewTransition.d.ts +5 -0
- package/dist/utils/viewTransition.js +8 -0
- package/dist/{chunk-PZL6AJH5.js → vendor/vaul.js} +2 -140
- package/package.json +15 -7
- package/dist/chunk-4B4XWDAH.js +0 -1
- package/dist/chunk-4GVGS5N4.js +0 -468
- package/dist/chunk-52ZVJPF7.js +0 -1
- package/dist/chunk-A3O23F2B.js +0 -1
- package/dist/chunk-ADO2DB6Q.js +0 -1
- package/dist/chunk-BV3U3ATL.js +0 -1
- package/dist/chunk-CAOLGXA5.js +0 -1
- package/dist/chunk-DEIBF3P7.js +0 -8
- package/dist/chunk-EV43I5J6.js +0 -1
- package/dist/chunk-HI7GBSW2.js +0 -1
- package/dist/chunk-HY3JWSG4.js +0 -1
- package/dist/chunk-IZ6ZPEZ2.js +0 -1
- package/dist/chunk-KLTQJZOX.js +0 -1
- package/dist/chunk-LVPU7455.js +0 -1
- package/dist/chunk-NHUQLIHL.js +0 -9
- package/dist/chunk-NZ7UK3G6.js +0 -1
- package/dist/chunk-P26VJEIW.js +0 -1
- package/dist/chunk-PICMOOAZ.js +0 -1
- package/dist/chunk-VALIDQXU.js +0 -31
- package/dist/chunk-WLRRMT6W.js +0 -1
- package/dist/chunk-XYXMPHND.js +0 -1
- package/dist/chunk-YJU4ZRQZ.js +0 -1
- package/dist/chunk-ZT3NWE5U.js +0 -1
- package/dist/chunk-ZXLACKEB.js +0 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,1849 +1,196 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
type
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/** SourceList heading. */
|
|
198
|
-
sources: string;
|
|
199
|
-
/** Prefix of a citation's accessible name ("Source 1: <title>"). */
|
|
200
|
-
source: (index: number) => string;
|
|
201
|
-
}
|
|
202
|
-
/** Returns the normalised href for http(s) URLs, otherwise undefined (javascript:, data:, relative…). */
|
|
203
|
-
declare function safeUrl(url: string | undefined): string | undefined;
|
|
204
|
-
interface CitationProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
|
|
205
|
-
/** 1-based number shown in the marker. */
|
|
206
|
-
index: number;
|
|
207
|
-
source: CitationSource;
|
|
208
|
-
messages?: Partial<CitationMessages>;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Inline numbered source marker for running text. Links to the source (http/https
|
|
212
|
-
* only — anything else renders as plain text) and previews it in a HoverCard on
|
|
213
|
-
* hover or focus.
|
|
214
|
-
*/
|
|
215
|
-
declare const Citation: React.ForwardRefExoticComponent<CitationProps & React.RefAttributes<HTMLElement>>;
|
|
216
|
-
interface SourceChipProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
|
|
217
|
-
source: CitationSource;
|
|
218
|
-
}
|
|
219
|
-
/** Compact source row item: favicon, domain and a truncated title, linking to the source. */
|
|
220
|
-
declare const SourceChip: React.ForwardRefExoticComponent<SourceChipProps & React.RefAttributes<HTMLElement>>;
|
|
221
|
-
interface SourceListProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
|
|
222
|
-
sources: CitationSource[];
|
|
223
|
-
messages?: Partial<CitationMessages>;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* "Sources" heading plus a row of SourceChips: a horizontal scroll-snap row when
|
|
227
|
-
* narrow, a wrapping grid once its own container is 480px or wider.
|
|
228
|
-
*/
|
|
229
|
-
declare const SourceList: React.ForwardRefExoticComponent<SourceListProps & React.RefAttributes<HTMLElement>>;
|
|
230
|
-
|
|
231
|
-
interface NexubProviderProps {
|
|
232
|
-
/** BCP 47 locale for Intl formatting. @default 'en' */
|
|
233
|
-
locale?: string;
|
|
234
|
-
/** Text direction for Radix primitives. @default derived from `locale` */
|
|
235
|
-
dir?: Direction;
|
|
236
|
-
/**
|
|
237
|
-
* date-fns Locale for calendars (month/weekday names, week start, trigger text).
|
|
238
|
-
* Import only the one you need, e.g. `import { fr } from 'date-fns/locale/fr'`.
|
|
239
|
-
*/
|
|
240
|
-
dateLocale?: Locale;
|
|
241
|
-
/** Overrides for the default English strings. */
|
|
242
|
-
messages?: Partial<NexubMessages>;
|
|
243
|
-
children?: React.ReactNode;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Locale, direction and translated strings for every @nexub/react component.
|
|
247
|
-
* It does not set `dir`/`lang` on <html> — the app does that (as it renders
|
|
248
|
-
* <html>), so the page and CSS `rtl:` variants agree with this provider.
|
|
249
|
-
*/
|
|
250
|
-
declare function NexubProvider({ locale, dir, dateLocale, messages, children }: NexubProviderProps): React.JSX.Element;
|
|
251
|
-
/** The active strings: defaults merged with the nearest NexubProvider's overrides. */
|
|
252
|
-
declare function useNexubMessages(): NexubMessages;
|
|
253
|
-
/** The active locale (default 'en'), direction and optional date-fns Locale. */
|
|
254
|
-
declare function useLocale(): {
|
|
255
|
-
locale: string;
|
|
256
|
-
dir: Direction;
|
|
257
|
-
dateLocale?: Locale;
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
declare const buttonVariants: (props?: ({
|
|
261
|
-
variant?: "glass" | "text" | "filled" | "tonal" | "outlined" | "primary" | "secondary" | "subtle" | "outline" | "ghost" | "destructive" | "accent" | "link" | null | undefined;
|
|
262
|
-
size?: "sm" | "md" | "xs" | "lg" | "xl" | null | undefined;
|
|
263
|
-
fullWidth?: boolean | null | undefined;
|
|
264
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
265
|
-
type ButtonStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
266
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
267
|
-
tone?: ToneValue;
|
|
268
|
-
/** Async feedback. `loading` blocks clicks (aria-disabled, focus kept),
|
|
269
|
-
* `success` draws a check, `error` shakes once. Not applied with `asChild`. */
|
|
270
|
-
status?: ButtonStatus;
|
|
271
|
-
/** Alias for `status="loading"`. */
|
|
272
|
-
loading?: boolean;
|
|
273
|
-
/** Announced while loading. @default 'Loading' */
|
|
274
|
-
loadingLabel?: string;
|
|
275
|
-
/** Announced on success; when given it also replaces the visible label. @default 'Done' */
|
|
276
|
-
successLabel?: string;
|
|
277
|
-
/** Announced on error. @default 'Something went wrong' */
|
|
278
|
-
errorLabel?: string;
|
|
279
|
-
fullWidth?: boolean;
|
|
280
|
-
leadingIcon?: React.ReactNode;
|
|
281
|
-
trailingIcon?: React.ReactNode;
|
|
282
|
-
asChild?: boolean;
|
|
283
|
-
}
|
|
284
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
285
|
-
|
|
286
|
-
interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
287
|
-
orientation?: 'horizontal' | 'vertical';
|
|
288
|
-
attached?: boolean;
|
|
289
|
-
}
|
|
290
|
-
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
291
|
-
|
|
292
|
-
interface SplitButtonProps extends Omit<ButtonProps, 'asChild' | 'trailingIcon' | 'fullWidth'> {
|
|
293
|
-
/** Accessible name of the menu toggle, e.g. "More save options". */
|
|
294
|
-
menuLabel: string;
|
|
295
|
-
/** `DropdownMenu.Item`s for the secondary actions. */
|
|
296
|
-
menu: React.ReactNode;
|
|
297
|
-
/** Menu alignment against the toggle. @default 'end' */
|
|
298
|
-
align?: 'start' | 'end';
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* A primary action with related secondary actions behind a chevron, as one
|
|
302
|
-
* connected control (M3 Expressive split button). The ref goes to the primary button.
|
|
303
|
-
*/
|
|
304
|
-
declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
305
|
-
|
|
306
|
-
declare const iconButtonVariants: (props?: ({
|
|
307
|
-
variant?: "solid" | "subtle" | "outline" | "ghost" | null | undefined;
|
|
308
|
-
size?: "sm" | "md" | "xs" | "lg" | "xl" | null | undefined;
|
|
309
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
310
|
-
interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
|
311
|
-
label: string;
|
|
312
|
-
asChild?: boolean;
|
|
313
|
-
}
|
|
314
|
-
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
315
|
-
|
|
316
|
-
declare const inputVariants: (props?: ({
|
|
317
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
318
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
319
|
-
declare const inputWrapperVariants: (props?: ({
|
|
320
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
321
|
-
invalid?: boolean | null | undefined;
|
|
322
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
323
|
-
declare const addonVariants: (props?: ({
|
|
324
|
-
side?: "leading" | "trailing" | null | undefined;
|
|
325
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
326
|
-
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
327
|
-
invalid?: boolean;
|
|
328
|
-
leadingAddon?: string;
|
|
329
|
-
trailingAddon?: string;
|
|
330
|
-
leadingIcon?: React.ReactNode;
|
|
331
|
-
trailingIcon?: React.ReactNode;
|
|
332
|
-
wrapperClassName?: string;
|
|
333
|
-
}
|
|
334
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
335
|
-
|
|
336
|
-
declare const textareaVariants: (props?: ({
|
|
337
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
338
|
-
invalid?: boolean | null | undefined;
|
|
339
|
-
resize?: "horizontal" | "vertical" | "none" | "both" | null | undefined;
|
|
340
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
341
|
-
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>, VariantProps<typeof textareaVariants> {
|
|
342
|
-
invalid?: boolean;
|
|
343
|
-
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
344
|
-
autoGrow?: boolean;
|
|
345
|
-
}
|
|
346
|
-
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
347
|
-
|
|
348
|
-
interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'type' | 'size'> {
|
|
349
|
-
size?: Size;
|
|
350
|
-
min?: number;
|
|
351
|
-
max?: number;
|
|
352
|
-
step?: number;
|
|
353
|
-
precision?: number;
|
|
354
|
-
showSteppers?: boolean;
|
|
355
|
-
value?: number;
|
|
356
|
-
defaultValue?: number;
|
|
357
|
-
onChange?: (value: number) => void;
|
|
358
|
-
invalid?: boolean;
|
|
359
|
-
}
|
|
360
|
-
declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
361
|
-
|
|
362
|
-
interface MoneyInputProps extends Omit<InputProps, 'value' | 'defaultValue' | 'onChange' | 'type' | 'inputMode' | 'leadingIcon' | 'leadingAddon'> {
|
|
363
|
-
/** The amount, or null when empty. */
|
|
364
|
-
value?: number | null;
|
|
365
|
-
defaultValue?: number | null;
|
|
366
|
-
/** Called with the parsed amount (rounded to the currency's minor unit) as the person types. */
|
|
367
|
-
onValueChange?: (value: number | null) => void;
|
|
368
|
-
/** ISO 4217 code, e.g. 'USD'. */
|
|
369
|
-
currency: string;
|
|
370
|
-
/** BCP 47 locale for separators. Defaults to the user's. */
|
|
371
|
-
locale?: string;
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* An amount field: the currency symbol leads, digits are tabular, the locale's
|
|
375
|
-
* separators parse correctly, and the value is grouped on blur
|
|
376
|
-
* (e.g. 1234.5 → "1,234.50"). Raw while editing so the caret never jumps.
|
|
377
|
-
*/
|
|
378
|
-
declare const MoneyInput: React.ForwardRefExoticComponent<MoneyInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
379
|
-
|
|
380
|
-
interface AmountProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
381
|
-
value: number;
|
|
382
|
-
/** ISO 4217 code, e.g. 'USD', 'EUR', 'INR'. */
|
|
383
|
-
currency: string;
|
|
384
|
-
/** BCP 47 locale. Defaults to the user's. */
|
|
385
|
-
locale?: string;
|
|
386
|
-
/** `display`: a hero figure in the brand face with a quieter symbol and minor units. */
|
|
387
|
-
size?: Size | 'display';
|
|
388
|
-
/** `auto` colours gains success and losses error (use with signDisplay). */
|
|
389
|
-
tone?: 'neutral' | 'auto';
|
|
390
|
-
/** e.g. 'exceptZero' to show "+" on gains. */
|
|
391
|
-
signDisplay?: Intl.NumberFormatOptions['signDisplay'];
|
|
392
|
-
/** Roll digits to new values (NumberTicker). The first render never animates. */
|
|
393
|
-
animate?: boolean;
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* A money figure, honest by default (Calm Depth §3.5): tabular numerals, the
|
|
397
|
-
* currency's own minor unit, a true minus sign. Formatting is Intl.NumberFormat.
|
|
398
|
-
*/
|
|
399
|
-
declare const Amount: React.ForwardRefExoticComponent<AmountProps & React.RefAttributes<HTMLSpanElement>>;
|
|
400
|
-
|
|
401
|
-
/** A run of already-formatted text with its own class (Amount's muted symbol and minor units). */
|
|
402
|
-
interface NumberTickerPart {
|
|
403
|
-
value: string;
|
|
404
|
-
className?: string;
|
|
405
|
-
}
|
|
406
|
-
interface NumberTickerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
407
|
-
/** A number (formatted with `format`/`locale`), an already-formatted string, or styled parts. */
|
|
408
|
-
value: number | string | readonly NumberTickerPart[];
|
|
409
|
-
format?: Intl.NumberFormatOptions;
|
|
410
|
-
/** BCP 47 locale. Defaults to the user's. */
|
|
411
|
-
locale?: string;
|
|
412
|
-
/** Announce changes to screen readers. */
|
|
413
|
-
'aria-live'?: 'off' | 'polite';
|
|
414
|
-
}
|
|
415
|
-
/**
|
|
416
|
-
* A rolling number: each digit is a 0–9 strip that slides to its value on the
|
|
417
|
-
* spatial spring; separators, symbols and signs stay static. The first render
|
|
418
|
-
* shows the value as-is; only later changes animate.
|
|
419
|
-
*/
|
|
420
|
-
declare const NumberTicker: React.ForwardRefExoticComponent<NumberTickerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
421
|
-
|
|
422
|
-
interface SearchInputProps extends Omit<InputProps, 'leadingIcon' | 'trailingIcon'> {
|
|
423
|
-
onClear?: () => void;
|
|
424
|
-
}
|
|
425
|
-
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
426
|
-
|
|
427
|
-
interface PasswordInputProps extends Omit<InputProps, 'type' | 'trailingIcon'> {
|
|
428
|
-
/** Whether the password is shown as text. Controlled when set. */
|
|
429
|
-
visible?: boolean;
|
|
430
|
-
defaultVisible?: boolean;
|
|
431
|
-
onVisibleChange?: (visible: boolean) => void;
|
|
432
|
-
}
|
|
433
|
-
declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
434
|
-
|
|
435
|
-
declare const labelVariants: (props?: ({
|
|
436
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
437
|
-
disabled?: boolean | null | undefined;
|
|
438
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
439
|
-
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
|
|
440
|
-
size?: Size;
|
|
441
|
-
required?: boolean;
|
|
442
|
-
disabled?: boolean;
|
|
443
|
-
tone?: ToneValue;
|
|
444
|
-
}
|
|
445
|
-
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
446
|
-
|
|
447
|
-
interface HelperTextProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
448
|
-
tone?: ToneValue;
|
|
449
|
-
}
|
|
450
|
-
declare const HelperText: React.ForwardRefExoticComponent<HelperTextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
451
|
-
|
|
452
|
-
type FormErrorProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
453
|
-
declare const FormError: React.ForwardRefExoticComponent<FormErrorProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
454
|
-
|
|
455
|
-
interface FormFieldContextValue {
|
|
456
|
-
id: string;
|
|
457
|
-
name?: string;
|
|
458
|
-
invalid?: boolean;
|
|
459
|
-
required?: boolean;
|
|
460
|
-
disabled?: boolean;
|
|
461
|
-
descriptionId: string;
|
|
462
|
-
errorId: string;
|
|
463
|
-
}
|
|
464
|
-
interface FormFieldRootProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
465
|
-
id?: string;
|
|
466
|
-
name?: string;
|
|
467
|
-
invalid?: boolean;
|
|
468
|
-
required?: boolean;
|
|
469
|
-
disabled?: boolean;
|
|
470
|
-
}
|
|
471
|
-
declare function FieldLabel({ className, children, ...props }: React.ComponentProps<typeof Label>): React.JSX.Element;
|
|
472
|
-
declare namespace FieldLabel {
|
|
473
|
-
var displayName: string;
|
|
474
|
-
}
|
|
475
|
-
declare function Control({ children }: {
|
|
476
|
-
children: React.ReactElement<Record<string, unknown>>;
|
|
477
|
-
}): React.ReactElement<Record<string, unknown>, string | React.JSXElementConstructor<any>>;
|
|
478
|
-
declare namespace Control {
|
|
479
|
-
var displayName: string;
|
|
480
|
-
}
|
|
481
|
-
declare function Description({ className, children, ...props }: React.ComponentProps<typeof HelperText>): React.JSX.Element;
|
|
482
|
-
declare namespace Description {
|
|
483
|
-
var displayName: string;
|
|
484
|
-
}
|
|
485
|
-
declare function FieldError({ className, children, ...props }: React.ComponentProps<typeof FormError>): React.JSX.Element | null;
|
|
486
|
-
declare namespace FieldError {
|
|
487
|
-
var displayName: string;
|
|
488
|
-
}
|
|
489
|
-
declare const FormField: {
|
|
490
|
-
Root: React.ForwardRefExoticComponent<FormFieldRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
491
|
-
Label: typeof FieldLabel;
|
|
492
|
-
Control: typeof Control;
|
|
493
|
-
Description: typeof Description;
|
|
494
|
-
Error: typeof FieldError;
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
declare const badgeVariants: (props?: ({
|
|
498
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
499
|
-
variant?: "solid" | "outline" | "soft" | null | undefined;
|
|
500
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
501
|
-
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
502
|
-
tone?: ToneValue;
|
|
503
|
-
leadingIcon?: React.ReactNode;
|
|
504
|
-
}
|
|
505
|
-
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
506
|
-
|
|
507
|
-
interface FilterChipProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
508
|
-
selected?: boolean;
|
|
509
|
-
count?: number;
|
|
510
|
-
onRemove?: () => void;
|
|
511
|
-
children: React.ReactNode;
|
|
512
|
-
}
|
|
513
|
-
declare const FilterChip: React.ForwardRefExoticComponent<FilterChipProps & React.RefAttributes<HTMLButtonElement>>;
|
|
514
|
-
|
|
515
|
-
declare const chipVariants: (props?: ({
|
|
516
|
-
size?: "sm" | "md" | null | undefined;
|
|
517
|
-
tone?: "neutral" | "info" | "success" | "warning" | "danger" | "leap" | "bookub" | "payub" | "founderub" | null | undefined;
|
|
518
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
519
|
-
interface ChipProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof chipVariants> {
|
|
520
|
-
tone?: ToneValue;
|
|
521
|
-
onRemove?: () => void;
|
|
522
|
-
}
|
|
523
|
-
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
524
|
-
|
|
525
|
-
interface EyebrowChipProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
526
|
-
tone?: ToneValue;
|
|
527
|
-
leadingIcon?: React.ReactNode;
|
|
528
|
-
}
|
|
529
|
-
declare const EyebrowChip: React.ForwardRefExoticComponent<EyebrowChipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
530
|
-
|
|
531
|
-
declare const avatarVariants: (props?: ({
|
|
532
|
-
size?: "sm" | "md" | "xs" | "lg" | "xl" | null | undefined;
|
|
533
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
534
|
-
interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof avatarVariants> {
|
|
535
|
-
src?: string;
|
|
536
|
-
name?: string;
|
|
537
|
-
fallback?: React.ReactNode;
|
|
538
|
-
badge?: boolean;
|
|
539
|
-
badgeColor?: string;
|
|
540
|
-
}
|
|
541
|
-
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
542
|
-
|
|
543
|
-
declare const avatarGroupVariants: (props?: ({
|
|
544
|
-
spacing?: "sm" | "md" | "lg" | null | undefined;
|
|
545
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
546
|
-
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarGroupVariants> {
|
|
547
|
-
max?: number;
|
|
548
|
-
size?: AvatarProps['size'];
|
|
549
|
-
children: React.ReactNode;
|
|
550
|
-
}
|
|
551
|
-
declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
552
|
-
|
|
553
|
-
declare const cardVariants: (props?: ({
|
|
554
|
-
variant?: "surface" | "flat" | "interactive" | null | undefined;
|
|
555
|
-
surface?: "solid" | "glass" | null | undefined;
|
|
556
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
557
|
-
interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
558
|
-
tone?: ToneValue;
|
|
559
|
-
surface?: 'solid' | 'glass';
|
|
560
|
-
/** `sheen`: a soft light follows the pointer (opt-in; off for touch and reduced motion). */
|
|
561
|
-
effect?: 'none' | 'sheen';
|
|
562
|
-
asChild?: boolean;
|
|
563
|
-
}
|
|
564
|
-
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
565
|
-
interface CardLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
566
|
-
asChild?: boolean;
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* Makes the whole card one link (the "stretched link" pattern): put it around
|
|
570
|
-
* the card's title. Its ::after covers the card, so the link has one
|
|
571
|
-
* accessible name and the focus ring shows on the card. Give other
|
|
572
|
-
* interactive elements inside the card `relative z-[1]` to keep them clickable.
|
|
573
|
-
*/
|
|
574
|
-
declare const CardLink: React.ForwardRefExoticComponent<CardLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
575
|
-
|
|
576
|
-
interface SelectableCardContentProps {
|
|
577
|
-
/** Leading icon. */
|
|
578
|
-
icon?: React.ReactNode;
|
|
579
|
-
/** The card's accessible name. */
|
|
580
|
-
title: React.ReactNode;
|
|
581
|
-
/** Secondary text, exposed as the accessible description. */
|
|
582
|
-
description?: React.ReactNode;
|
|
583
|
-
/** Extra content under the description. Keep it non-interactive: the whole card is the control. */
|
|
584
|
-
children?: React.ReactNode;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
interface RadioCardGroupProps extends RadixRadioGroup.RadioGroupProps {
|
|
588
|
-
/** Grid columns (collapses to one column on narrow screens). */
|
|
589
|
-
columns?: 1 | 2 | 3 | 4;
|
|
590
|
-
}
|
|
591
|
-
declare const RadioCardGroup: React.ForwardRefExoticComponent<RadioCardGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
592
|
-
interface RadioCardProps extends Omit<RadixRadioGroup.RadioGroupItemProps, 'title' | 'children'>, SelectableCardContentProps {
|
|
593
|
-
}
|
|
594
|
-
declare const RadioCard: React.ForwardRefExoticComponent<RadioCardProps & React.RefAttributes<HTMLButtonElement>>;
|
|
595
|
-
|
|
596
|
-
interface CheckboxCardProps extends Omit<RadixCheckbox.CheckboxProps, 'title' | 'children' | 'checked' | 'defaultChecked' | 'onCheckedChange'>, SelectableCardContentProps {
|
|
597
|
-
checked?: boolean;
|
|
598
|
-
defaultChecked?: boolean;
|
|
599
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
600
|
-
}
|
|
601
|
-
declare const CheckboxCard: React.ForwardRefExoticComponent<CheckboxCardProps & React.RefAttributes<HTMLButtonElement>>;
|
|
602
|
-
|
|
603
|
-
type MediaCardRatio = '16/9' | '4/3' | '1/1' | '3/4';
|
|
604
|
-
interface MediaCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
605
|
-
src: string;
|
|
606
|
-
/** Required. Pass '' when the image is decorative. */
|
|
607
|
-
alt: string;
|
|
608
|
-
/** @default '16/9' */
|
|
609
|
-
ratio?: MediaCardRatio;
|
|
610
|
-
title?: React.ReactNode;
|
|
611
|
-
description?: React.ReactNode;
|
|
612
|
-
eyebrow?: React.ReactNode;
|
|
613
|
-
/** Makes the whole card one link, stretched from the title (so needs `title`). */
|
|
614
|
-
href?: string;
|
|
615
|
-
/** Actions; they stay clickable above the stretched link. */
|
|
616
|
-
children?: React.ReactNode;
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* An image card with a glass caption over a soft bottom scrim.
|
|
620
|
-
*
|
|
621
|
-
* Layers stack in one grid cell rather than with absolute positioning: the
|
|
622
|
-
* glass panel's backdrop-filter would otherwise become the containing block of
|
|
623
|
-
* the stretched link's ::after, shrinking the hit area to the caption.
|
|
624
|
-
*/
|
|
625
|
-
declare const MediaCard: React.ForwardRefExoticComponent<MediaCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
626
|
-
|
|
627
|
-
declare const alertVariants: (props?: ({
|
|
628
|
-
tone?: "neutral" | "info" | "success" | "warning" | "danger" | "leap" | "bookub" | "payub" | "founderub" | null | undefined;
|
|
629
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
630
|
-
interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
631
|
-
tone?: ToneValue;
|
|
632
|
-
title?: string;
|
|
633
|
-
icon?: React.ReactNode;
|
|
634
|
-
action?: React.ReactNode;
|
|
635
|
-
onClose?: () => void;
|
|
636
|
-
}
|
|
637
|
-
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
638
|
-
|
|
639
|
-
declare const skeletonVariants: (props?: ({
|
|
640
|
-
shape?: "circle" | "line" | "rect" | null | undefined;
|
|
641
|
-
animated?: boolean | null | undefined;
|
|
642
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
643
|
-
interface SkeletonProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof skeletonVariants> {
|
|
644
|
-
shape?: 'line' | 'rect' | 'circle';
|
|
645
|
-
/** Arbitrary size; rendered as inline style. Omit to use the shape's default classes. */
|
|
646
|
-
width?: string | number;
|
|
647
|
-
height?: string | number;
|
|
648
|
-
animated?: boolean;
|
|
649
|
-
}
|
|
650
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLSpanElement>>;
|
|
651
|
-
|
|
652
|
-
declare const spinnerVariants: (props?: ({
|
|
653
|
-
size?: "sm" | "md" | "xs" | "lg" | "xl" | null | undefined;
|
|
654
|
-
tone?: "neutral" | "info" | "success" | "warning" | "danger" | "leap" | "bookub" | "payub" | "founderub" | null | undefined;
|
|
655
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
656
|
-
interface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof spinnerVariants> {
|
|
657
|
-
tone?: ToneValue;
|
|
658
|
-
label?: string;
|
|
659
|
-
}
|
|
660
|
-
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
661
|
-
|
|
662
|
-
declare const progressTrackVariants: (props?: ({
|
|
663
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
664
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
665
|
-
declare const progressFillVariants: (props?: ({
|
|
666
|
-
tone?: "neutral" | "info" | "success" | "warning" | "danger" | "leap" | "bookub" | "payub" | "founderub" | null | undefined;
|
|
667
|
-
animated?: boolean | null | undefined;
|
|
668
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
669
|
-
interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof progressTrackVariants> {
|
|
670
|
-
value?: number;
|
|
671
|
-
max?: number;
|
|
672
|
-
tone?: ToneValue;
|
|
673
|
-
animated?: boolean;
|
|
674
|
-
}
|
|
675
|
-
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
676
|
-
|
|
677
|
-
declare const separatorVariants: (props?: ({
|
|
678
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
679
|
-
tone?: "neutral" | "info" | "success" | "warning" | "danger" | "leap" | "bookub" | "payub" | "founderub" | null | undefined;
|
|
680
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
681
|
-
interface SeparatorProps extends React.HTMLAttributes<HTMLHRElement | HTMLDivElement>, VariantProps<typeof separatorVariants> {
|
|
682
|
-
orientation?: 'horizontal' | 'vertical';
|
|
683
|
-
tone?: ToneValue;
|
|
684
|
-
}
|
|
685
|
-
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>>;
|
|
686
|
-
|
|
687
|
-
interface GradientDividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
688
|
-
height?: number;
|
|
689
|
-
orientation?: 'horizontal' | 'vertical';
|
|
690
|
-
}
|
|
691
|
-
declare const GradientDivider: React.ForwardRefExoticComponent<GradientDividerProps & React.RefAttributes<HTMLDivElement>>;
|
|
692
|
-
|
|
693
|
-
declare const ratingVariants: (props?: ({
|
|
694
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
695
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
696
|
-
interface RatingProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>, VariantProps<typeof ratingVariants> {
|
|
697
|
-
value?: number;
|
|
698
|
-
max?: number;
|
|
699
|
-
readOnly?: boolean;
|
|
700
|
-
onValueChange?: (value: number) => void;
|
|
701
|
-
}
|
|
702
|
-
declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HTMLDivElement>>;
|
|
703
|
-
|
|
704
|
-
interface CheckListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
705
|
-
items?: string[];
|
|
706
|
-
children?: React.ReactNode;
|
|
707
|
-
}
|
|
708
|
-
declare const CheckList: React.ForwardRefExoticComponent<CheckListProps & React.RefAttributes<HTMLUListElement>>;
|
|
709
|
-
interface CheckListItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
710
|
-
children: React.ReactNode;
|
|
711
|
-
}
|
|
712
|
-
declare const CheckListItem: React.ForwardRefExoticComponent<CheckListItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
713
|
-
|
|
714
|
-
interface CodeProps extends React.HTMLAttributes<HTMLElement> {
|
|
715
|
-
inline?: boolean;
|
|
716
|
-
language?: string;
|
|
717
|
-
}
|
|
718
|
-
declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
|
|
719
|
-
|
|
720
|
-
interface KbdProps extends React.HTMLAttributes<HTMLElement> {
|
|
721
|
-
}
|
|
722
|
-
declare const Kbd: React.ForwardRefExoticComponent<KbdProps & React.RefAttributes<HTMLElement>>;
|
|
723
|
-
|
|
724
|
-
declare const linkVariants: (props?: ({
|
|
725
|
-
variant?: "default" | "muted" | "underlined" | null | undefined;
|
|
726
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
727
|
-
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
728
|
-
external?: boolean;
|
|
729
|
-
/** Render the child element (e.g. a router `<Link>`) instead of an `<a>`. */
|
|
730
|
-
asChild?: boolean;
|
|
731
|
-
}
|
|
732
|
-
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
733
|
-
|
|
734
|
-
interface TextGradientProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
735
|
-
}
|
|
736
|
-
declare const TextGradient: React.ForwardRefExoticComponent<TextGradientProps & React.RefAttributes<HTMLSpanElement>>;
|
|
737
|
-
|
|
738
|
-
declare const containerVariants: (props?: ({
|
|
739
|
-
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "nexub" | "prose" | null | undefined;
|
|
740
|
-
paddingX?: boolean | null | undefined;
|
|
741
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
742
|
-
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof containerVariants> {
|
|
743
|
-
asChild?: boolean;
|
|
744
|
-
}
|
|
745
|
-
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
746
|
-
|
|
747
|
-
declare const sectionVariants: (props?: ({
|
|
748
|
-
paddingY?: "sm" | "md" | "lg" | null | undefined;
|
|
749
|
-
tone?: "subtle" | "default" | "muted" | "inverse" | null | undefined;
|
|
750
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
751
|
-
interface SectionProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof sectionVariants> {
|
|
752
|
-
asChild?: boolean;
|
|
753
|
-
}
|
|
754
|
-
declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLElement>>;
|
|
755
|
-
|
|
756
|
-
interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
757
|
-
direction?: 'row' | 'column';
|
|
758
|
-
gap?: number | string;
|
|
759
|
-
align?: string;
|
|
760
|
-
justify?: string;
|
|
761
|
-
wrap?: boolean;
|
|
762
|
-
divider?: React.ReactNode;
|
|
763
|
-
asChild?: boolean;
|
|
764
|
-
}
|
|
765
|
-
declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
|
|
766
|
-
|
|
767
|
-
interface FlexProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
768
|
-
gap?: number | string;
|
|
769
|
-
align?: string;
|
|
770
|
-
justify?: string;
|
|
771
|
-
wrap?: boolean;
|
|
772
|
-
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
773
|
-
asChild?: boolean;
|
|
774
|
-
}
|
|
775
|
-
declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
|
|
776
|
-
|
|
777
|
-
interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
778
|
-
cols?: number | string;
|
|
779
|
-
rows?: number | string;
|
|
780
|
-
gap?: number | string;
|
|
781
|
-
flow?: 'row' | 'column' | 'dense';
|
|
782
|
-
asChild?: boolean;
|
|
783
|
-
}
|
|
784
|
-
declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
785
|
-
|
|
786
|
-
interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
787
|
-
asChild?: boolean;
|
|
788
|
-
}
|
|
789
|
-
declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
790
|
-
|
|
791
|
-
interface AspectRatioProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
792
|
-
ratio?: number;
|
|
793
|
-
}
|
|
794
|
-
declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
795
|
-
|
|
796
|
-
declare const headingVariants: (props?: ({
|
|
797
|
-
size?: "display" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | null | undefined;
|
|
798
|
-
weight?: "regular" | "medium" | "semibold" | "bold" | "extrabold" | null | undefined;
|
|
799
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
800
|
-
type HeadingSize = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
801
|
-
type HeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold';
|
|
802
|
-
interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
803
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
804
|
-
size?: HeadingSize;
|
|
805
|
-
tone?: ToneValue | 'default';
|
|
806
|
-
weight?: HeadingWeight;
|
|
807
|
-
asChild?: boolean;
|
|
808
|
-
}
|
|
809
|
-
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
810
|
-
|
|
811
|
-
declare const textVariants: (props?: ({
|
|
812
|
-
size?: "label" | "body" | "caption" | "body-lg" | "body-sm" | null | undefined;
|
|
813
|
-
tone?: "secondary" | "subtle" | "default" | "muted" | "inverse" | null | undefined;
|
|
814
|
-
weight?: "regular" | "medium" | "semibold" | "bold" | null | undefined;
|
|
815
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
816
|
-
interface TextProps extends React.HTMLAttributes<HTMLParagraphElement>, VariantProps<typeof textVariants> {
|
|
817
|
-
asChild?: boolean;
|
|
818
|
-
truncate?: boolean;
|
|
819
|
-
lineClamp?: number;
|
|
820
|
-
}
|
|
821
|
-
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
822
|
-
|
|
823
|
-
declare const logoVariants: (props?: ({
|
|
824
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
825
|
-
tone?: "default" | "inverse" | null | undefined;
|
|
826
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
827
|
-
interface LogoProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof logoVariants> {
|
|
828
|
-
/** `full` = mark + wordmark; `icon` = mark only. `mark` is the old name for `icon`. */
|
|
829
|
-
variant?: 'full' | 'icon' | 'mark';
|
|
830
|
-
/** `color` (default) = the official mark in brand colours; `mono` = `currentColor`. */
|
|
831
|
-
mark?: 'color' | 'mono';
|
|
832
|
-
/** Product name shown after the wordmark, e.g. "Command Hub". Ignored for `variant="icon"`. */
|
|
833
|
-
product?: string;
|
|
834
|
-
}
|
|
835
|
-
declare const Logo: React.ForwardRefExoticComponent<LogoProps & React.RefAttributes<HTMLSpanElement>>;
|
|
836
|
-
|
|
837
|
-
interface FlagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
838
|
-
code: string;
|
|
839
|
-
size?: Size;
|
|
840
|
-
}
|
|
841
|
-
declare const Flag: React.ForwardRefExoticComponent<FlagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
842
|
-
|
|
843
|
-
interface CountryBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
844
|
-
code: string;
|
|
845
|
-
label?: string;
|
|
846
|
-
size?: Size;
|
|
847
|
-
}
|
|
848
|
-
declare const CountryBadge: React.ForwardRefExoticComponent<CountryBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
849
|
-
|
|
850
|
-
interface KeyboardShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
851
|
-
keys: string[];
|
|
852
|
-
}
|
|
853
|
-
declare const KeyboardShortcut: React.ForwardRefExoticComponent<KeyboardShortcutProps & React.RefAttributes<HTMLSpanElement>>;
|
|
854
|
-
|
|
855
|
-
type SurfaceValue = 'solid' | 'glass';
|
|
856
|
-
|
|
857
|
-
interface ContentProps extends DialogPrimitive.DialogContentProps {
|
|
858
|
-
size?: Size | 'xl' | 'full';
|
|
859
|
-
surface?: SurfaceValue;
|
|
860
|
-
}
|
|
861
|
-
declare const Dialog: {
|
|
862
|
-
Root: React.FC<DialogPrimitive.DialogProps>;
|
|
863
|
-
Trigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
864
|
-
Portal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
865
|
-
Overlay: React.ForwardRefExoticComponent<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
866
|
-
Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
867
|
-
Close: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
868
|
-
Title: React.ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
869
|
-
Description: React.ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
870
|
-
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
871
|
-
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
872
|
-
};
|
|
873
|
-
|
|
874
|
-
declare const AlertDialog: {
|
|
875
|
-
Root: React.FC<RadixAlertDialog.AlertDialogProps>;
|
|
876
|
-
Trigger: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
877
|
-
Portal: React.FC<RadixAlertDialog.AlertDialogPortalProps>;
|
|
878
|
-
Overlay: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
879
|
-
Content: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
880
|
-
Title: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
881
|
-
Description: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
882
|
-
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
883
|
-
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
884
|
-
Action: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
885
|
-
Cancel: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
declare const Popover: {
|
|
889
|
-
Root: React.FC<RadixPopover.PopoverProps>;
|
|
890
|
-
Trigger: React.ForwardRefExoticComponent<RadixPopover.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
891
|
-
Portal: React.FC<RadixPopover.PopoverPortalProps>;
|
|
892
|
-
Content: React.ForwardRefExoticComponent<RadixPopover.PopoverContentProps & {
|
|
893
|
-
surface?: SurfaceValue;
|
|
894
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
895
|
-
Arrow: React.ForwardRefExoticComponent<RadixPopover.PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
896
|
-
Close: React.ForwardRefExoticComponent<RadixPopover.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
897
|
-
};
|
|
898
|
-
|
|
899
|
-
declare function Provider$1({ delayDuration, skipDelayDuration, ...props }: RadixTooltip.TooltipProviderProps): React.JSX.Element;
|
|
900
|
-
interface TooltipProps {
|
|
901
|
-
label: string;
|
|
902
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
903
|
-
delayDuration?: number;
|
|
904
|
-
children: React.ReactElement;
|
|
905
|
-
}
|
|
906
|
-
declare function Tooltip({ label, side, delayDuration, children }: TooltipProps): React.JSX.Element;
|
|
907
|
-
|
|
908
|
-
declare function Root$1({ openDelay, closeDelay, ...props }: RadixHoverCard.HoverCardProps): React.JSX.Element;
|
|
909
|
-
declare const HoverCard: {
|
|
910
|
-
Root: typeof Root$1;
|
|
911
|
-
Trigger: React.ForwardRefExoticComponent<RadixHoverCard.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
912
|
-
Content: React.ForwardRefExoticComponent<RadixHoverCard.HoverCardContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
913
|
-
Arrow: React.ForwardRefExoticComponent<RadixHoverCard.HoverCardArrowProps & React.RefAttributes<SVGSVGElement>>;
|
|
914
|
-
};
|
|
915
|
-
|
|
916
|
-
declare const DropdownMenu: {
|
|
917
|
-
Root: React.FC<RadixDropdownMenu.DropdownMenuProps>;
|
|
918
|
-
Trigger: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
919
|
-
Portal: React.FC<RadixDropdownMenu.DropdownMenuPortalProps>;
|
|
920
|
-
Content: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
921
|
-
Item: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
922
|
-
Group: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
923
|
-
Label: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
924
|
-
Separator: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
925
|
-
CheckboxItem: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
926
|
-
RadioGroup: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
927
|
-
RadioItem: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
928
|
-
Sub: React.FC<RadixDropdownMenu.DropdownMenuSubProps>;
|
|
929
|
-
SubTrigger: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
930
|
-
SubContent: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
931
|
-
};
|
|
932
|
-
|
|
933
|
-
declare const ContextMenu: {
|
|
934
|
-
Root: React.FC<RadixContextMenu.ContextMenuProps>;
|
|
935
|
-
Trigger: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
936
|
-
Portal: React.FC<RadixContextMenu.ContextMenuPortalProps>;
|
|
937
|
-
Content: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
938
|
-
Item: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
939
|
-
Group: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
940
|
-
Label: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
941
|
-
Separator: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
942
|
-
CheckboxItem: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
943
|
-
RadioGroup: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
944
|
-
RadioItem: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
945
|
-
Sub: React.FC<RadixContextMenu.ContextMenuSubProps>;
|
|
946
|
-
SubTrigger: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
947
|
-
SubContent: React.ForwardRefExoticComponent<RadixContextMenu.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
declare const Menubar: Record<string, any>;
|
|
951
|
-
|
|
952
|
-
declare const NavigationMenu: {
|
|
953
|
-
Root: React.ForwardRefExoticComponent<RadixNav.NavigationMenuProps & React.RefAttributes<HTMLElement>>;
|
|
954
|
-
List: React.ForwardRefExoticComponent<RadixNav.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>>;
|
|
955
|
-
Item: React.ForwardRefExoticComponent<RadixNav.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
956
|
-
Trigger: React.ForwardRefExoticComponent<RadixNav.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
957
|
-
Content: React.ForwardRefExoticComponent<RadixNav.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
958
|
-
Link: React.ForwardRefExoticComponent<RadixNav.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
959
|
-
Viewport: React.ForwardRefExoticComponent<RadixNav.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>>;
|
|
960
|
-
Indicator: React.ForwardRefExoticComponent<RadixNav.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
961
|
-
};
|
|
962
|
-
|
|
963
|
-
interface NavigationRailRootProps extends React.HTMLAttributes<HTMLElement> {
|
|
964
|
-
/** Accessible name for the landmark. @default 'Main' */
|
|
965
|
-
'aria-label'?: string;
|
|
966
|
-
/** Optional slot above the items, e.g. a primary action or logo. */
|
|
967
|
-
header?: React.ReactNode;
|
|
968
|
-
}
|
|
969
|
-
interface NavigationRailItemProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> {
|
|
970
|
-
icon: React.ReactNode;
|
|
971
|
-
label: React.ReactNode;
|
|
972
|
-
active?: boolean;
|
|
973
|
-
/** Render your link (e.g. a router `<Link>`) as the item: pass it as the only child. */
|
|
974
|
-
asChild?: boolean;
|
|
975
|
-
children?: React.ReactElement;
|
|
976
|
-
}
|
|
977
|
-
declare const NavigationRail: {
|
|
978
|
-
Root: React.ForwardRefExoticComponent<NavigationRailRootProps & React.RefAttributes<HTMLElement>>;
|
|
979
|
-
Item: React.ForwardRefExoticComponent<NavigationRailItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
interface DrawerRootProps {
|
|
983
|
-
children?: React.ReactNode;
|
|
984
|
-
open?: boolean;
|
|
985
|
-
/** Opened by default, skips the initial enter animation. Still reacts to `open` changes. */
|
|
986
|
-
defaultOpen?: boolean;
|
|
987
|
-
onOpenChange?: (open: boolean) => void;
|
|
988
|
-
/** Gets triggered after the open or close animation ends. */
|
|
989
|
-
onAnimationEnd?: (open: boolean) => void;
|
|
990
|
-
onClose?: () => void;
|
|
991
|
-
/** Edge the drawer slides in from. Match it to `Content`'s `side`. @default 'bottom' */
|
|
992
|
-
direction?: 'top' | 'bottom' | 'left' | 'right';
|
|
993
|
-
/** When `false`, the page behind stays interactive and nothing is locked or trapped. @default true */
|
|
994
|
-
modal?: boolean;
|
|
995
|
-
/**
|
|
996
|
-
* How page scroll is locked while the drawer is open (modal only).
|
|
997
|
-
* - `'style'` (default): Radix's scroll lock. It injects a `<style>` tag, which a strict
|
|
998
|
-
* `style-src` CSP blocks.
|
|
999
|
-
* - `'class'`: adds the `nexub-scroll-lock` class from `@nexub/themes/base` to `<html>`.
|
|
1000
|
-
* Injects nothing, so it works under `style-src 'self'`. Focus trap, Escape and
|
|
1001
|
-
* outside-click dismissal are unchanged.
|
|
1002
|
-
* @default 'style'
|
|
1003
|
-
*/
|
|
1004
|
-
scrollLock?: 'style' | 'class';
|
|
1005
|
-
/** When `false`, dragging, outside clicks and Escape don't close the drawer. @default true */
|
|
1006
|
-
dismissible?: boolean;
|
|
1007
|
-
/** Only the `Drawer.Handle` starts a drag. @default false */
|
|
1008
|
-
handleOnly?: boolean;
|
|
1009
|
-
/** Fraction (0–1) of the drawer that must be dragged away to close it. @default 0.25 */
|
|
1010
|
-
closeThreshold?: number;
|
|
1011
|
-
/** Snap points, as fractions of the screen (e.g. `[0.4, 1]`) or px strings. */
|
|
1012
|
-
snapPoints?: (number | string)[];
|
|
1013
|
-
activeSnapPoint?: number | string | null;
|
|
1014
|
-
setActiveSnapPoint?: (snapPoint: number | string | null) => void;
|
|
1015
|
-
/** Index of the snap point from which the overlay fades. Defaults to the last one. */
|
|
1016
|
-
fadeFromIndex?: number;
|
|
1017
|
-
/** Don't skip snap points on fast swipes. @default false */
|
|
1018
|
-
snapToSequentialPoint?: boolean;
|
|
1019
|
-
/** ms during which the drawer can't be dragged after its content scrolls. @default 500 */
|
|
1020
|
-
scrollLockTimeout?: number;
|
|
1021
|
-
onDrag?: (event: React.PointerEvent<HTMLDivElement>, percentageDragged: number) => void;
|
|
1022
|
-
onRelease?: (event: React.PointerEvent<HTMLDivElement>, open: boolean) => void;
|
|
1023
|
-
shouldScaleBackground?: boolean;
|
|
1024
|
-
/** @default true */
|
|
1025
|
-
setBackgroundColorOnScale?: boolean;
|
|
1026
|
-
/** When `true`, vaul sets no styles on `body`. */
|
|
1027
|
-
noBodyStyles?: boolean;
|
|
1028
|
-
/** Only resize (don't move) the drawer when the on-screen keyboard opens. */
|
|
1029
|
-
fixed?: boolean;
|
|
1030
|
-
nested?: boolean;
|
|
1031
|
-
disablePreventScroll?: boolean;
|
|
1032
|
-
preventScrollRestoration?: boolean;
|
|
1033
|
-
/** Reposition inputs instead of scrolling them into view when the keyboard opens. */
|
|
1034
|
-
repositionInputs?: boolean;
|
|
1035
|
-
container?: HTMLElement | null;
|
|
1036
|
-
autoFocus?: boolean;
|
|
1037
|
-
}
|
|
1038
|
-
declare function Root({ scrollLock, onOpenChange, ...props }: DrawerRootProps): React.JSX.Element;
|
|
1039
|
-
declare namespace Root {
|
|
1040
|
-
var displayName: string;
|
|
1041
|
-
}
|
|
1042
|
-
declare const Drawer: {
|
|
1043
|
-
Root: typeof Root;
|
|
1044
|
-
Trigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1045
|
-
Portal: (props: DialogPrimitive.DialogPortalProps) => React.JSX.Element;
|
|
1046
|
-
Overlay: React.ForwardRefExoticComponent<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
1047
|
-
Content: React.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & {
|
|
1048
|
-
side?: "left" | "right" | "top" | "bottom";
|
|
1049
|
-
surface?: SurfaceValue;
|
|
1050
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
1051
|
-
Close: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1052
|
-
Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
1053
|
-
Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
1054
|
-
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1055
|
-
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1056
|
-
};
|
|
1057
|
-
declare const Sheet: {
|
|
1058
|
-
Root: typeof Root;
|
|
1059
|
-
Trigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1060
|
-
Portal: (props: DialogPrimitive.DialogPortalProps) => React.JSX.Element;
|
|
1061
|
-
Overlay: React.ForwardRefExoticComponent<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
1062
|
-
Content: React.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & {
|
|
1063
|
-
side?: "left" | "right" | "top" | "bottom";
|
|
1064
|
-
surface?: SurfaceValue;
|
|
1065
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
1066
|
-
Close: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1067
|
-
Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
1068
|
-
Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
1069
|
-
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1070
|
-
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
|
-
declare const Select: {
|
|
1074
|
-
Root: React.FC<RadixSelect.SelectProps>;
|
|
1075
|
-
Group: React.ForwardRefExoticComponent<RadixSelect.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1076
|
-
Value: React.ForwardRefExoticComponent<RadixSelect.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1077
|
-
Trigger: React.ForwardRefExoticComponent<RadixSelect.SelectTriggerProps & {
|
|
1078
|
-
invalid?: boolean;
|
|
1079
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
1080
|
-
ScrollUpButton: React.ForwardRefExoticComponent<RadixSelect.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
1081
|
-
ScrollDownButton: React.ForwardRefExoticComponent<RadixSelect.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
1082
|
-
Content: React.ForwardRefExoticComponent<RadixSelect.SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1083
|
-
Label: React.ForwardRefExoticComponent<RadixSelect.SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
1084
|
-
Item: React.ForwardRefExoticComponent<RadixSelect.SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
1085
|
-
Separator: React.ForwardRefExoticComponent<RadixSelect.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
1086
|
-
};
|
|
1087
|
-
|
|
1088
|
-
declare const Combobox: {
|
|
1089
|
-
Root: React.ForwardRefExoticComponent<Omit<{
|
|
1090
|
-
children?: React.ReactNode;
|
|
1091
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1092
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1093
|
-
} & {
|
|
1094
|
-
asChild?: boolean;
|
|
1095
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1096
|
-
label?: string;
|
|
1097
|
-
shouldFilter?: boolean;
|
|
1098
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
1099
|
-
defaultValue?: string;
|
|
1100
|
-
value?: string;
|
|
1101
|
-
onValueChange?: (value: string) => void;
|
|
1102
|
-
loop?: boolean;
|
|
1103
|
-
disablePointerSelection?: boolean;
|
|
1104
|
-
vimBindings?: boolean;
|
|
1105
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1106
|
-
Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof React.InputHTMLAttributes<HTMLInputElement> | "key"> & {
|
|
1107
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
1108
|
-
} & {
|
|
1109
|
-
asChild?: boolean;
|
|
1110
|
-
}, "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement> | "key">, "value" | "onChange" | "type"> & {
|
|
1111
|
-
value?: string;
|
|
1112
|
-
onValueChange?: (search: string) => void;
|
|
1113
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1114
|
-
List: React.ForwardRefExoticComponent<Omit<{
|
|
1115
|
-
children?: React.ReactNode;
|
|
1116
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1117
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1118
|
-
} & {
|
|
1119
|
-
asChild?: boolean;
|
|
1120
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1121
|
-
label?: string;
|
|
1122
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1123
|
-
Empty: React.ForwardRefExoticComponent<Omit<{
|
|
1124
|
-
children?: React.ReactNode;
|
|
1125
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1126
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1127
|
-
} & {
|
|
1128
|
-
asChild?: boolean;
|
|
1129
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1130
|
-
Group: React.ForwardRefExoticComponent<Omit<{
|
|
1131
|
-
children?: React.ReactNode;
|
|
1132
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1133
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1134
|
-
} & {
|
|
1135
|
-
asChild?: boolean;
|
|
1136
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
1137
|
-
heading?: React.ReactNode;
|
|
1138
|
-
value?: string;
|
|
1139
|
-
forceMount?: boolean;
|
|
1140
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1141
|
-
Item: React.ForwardRefExoticComponent<Omit<{
|
|
1142
|
-
children?: React.ReactNode;
|
|
1143
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1144
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1145
|
-
} & {
|
|
1146
|
-
asChild?: boolean;
|
|
1147
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
|
|
1148
|
-
disabled?: boolean;
|
|
1149
|
-
onSelect?: (value: string) => void;
|
|
1150
|
-
value?: string;
|
|
1151
|
-
keywords?: string[];
|
|
1152
|
-
forceMount?: boolean;
|
|
1153
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1154
|
-
Separator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1155
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1156
|
-
} & {
|
|
1157
|
-
asChild?: boolean;
|
|
1158
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1159
|
-
alwaysRender?: boolean;
|
|
1160
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1161
|
-
};
|
|
1162
|
-
|
|
1163
|
-
interface AutocompleteOption {
|
|
1164
|
-
value: string;
|
|
1165
|
-
label: string;
|
|
1166
|
-
}
|
|
1167
|
-
interface AutocompleteProps {
|
|
1168
|
-
options: AutocompleteOption[];
|
|
1169
|
-
value?: string;
|
|
1170
|
-
onValueChange?: (value: string) => void;
|
|
1171
|
-
placeholder?: string;
|
|
1172
|
-
emptyText?: string;
|
|
1173
|
-
loading?: boolean;
|
|
1174
|
-
className?: string;
|
|
1175
|
-
}
|
|
1176
|
-
declare function Autocomplete({ options, value, onValueChange, placeholder, emptyText, loading, className, }: AutocompleteProps): React.JSX.Element;
|
|
1177
|
-
declare namespace Autocomplete {
|
|
1178
|
-
var displayName: string;
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
declare const switchVariants: (props?: ({
|
|
1182
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1183
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1184
|
-
interface SwitchProps extends RadixSwitch.SwitchProps, VariantProps<typeof switchVariants> {
|
|
1185
|
-
}
|
|
1186
|
-
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1187
|
-
|
|
1188
|
-
interface CheckboxProps extends RadixCheckbox.CheckboxProps {
|
|
1189
|
-
}
|
|
1190
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1191
|
-
|
|
1192
|
-
declare const RadioGroup: {
|
|
1193
|
-
Root: React.ForwardRefExoticComponent<RadixRadioGroup.RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1194
|
-
Item: React.ForwardRefExoticComponent<RadixRadioGroup.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1195
|
-
};
|
|
1196
|
-
|
|
1197
|
-
interface SliderProps extends RadixSlider.SliderProps {
|
|
1198
|
-
/** Accessible name per thumb (e.g. ['Minimum', 'Maximum']). Falls back to `aria-label`. */
|
|
1199
|
-
thumbLabels?: string[];
|
|
1200
|
-
}
|
|
1201
|
-
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1202
|
-
|
|
1203
|
-
declare const toggleVariants: (props?: ({
|
|
1204
|
-
variant?: "outline" | "default" | null | undefined;
|
|
1205
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1206
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1207
|
-
interface ToggleProps extends RadixToggle.ToggleProps, VariantProps<typeof toggleVariants> {
|
|
1208
|
-
}
|
|
1209
|
-
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1210
|
-
|
|
1211
|
-
type RootProps$1 = (RadixToggleGroup.ToggleGroupSingleProps | RadixToggleGroup.ToggleGroupMultipleProps) & {
|
|
1212
|
-
variant?: VariantProps<typeof toggleVariants>['variant'];
|
|
1213
|
-
size?: VariantProps<typeof toggleVariants>['size'];
|
|
1214
|
-
};
|
|
1215
|
-
declare const ToggleGroup: {
|
|
1216
|
-
Root: React.ForwardRefExoticComponent<RootProps$1 & React.RefAttributes<HTMLDivElement>>;
|
|
1217
|
-
Item: React.ForwardRefExoticComponent<RadixToggleGroup.ToggleGroupItemProps & VariantProps<(props?: ({
|
|
1218
|
-
variant?: "outline" | "default" | null | undefined;
|
|
1219
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1220
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
1221
|
-
};
|
|
1222
|
-
|
|
1223
|
-
interface SegmentedControlProps extends Omit<RadixToggleGroup.ToggleGroupSingleProps, 'type'> {
|
|
1224
|
-
size?: Size;
|
|
1225
|
-
}
|
|
1226
|
-
interface SegmentedControlItemProps extends RadixToggleGroup.ToggleGroupItemProps {
|
|
1227
|
-
}
|
|
1228
|
-
declare const SegmentedControl: {
|
|
1229
|
-
Root: React.ForwardRefExoticComponent<SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
1230
|
-
Item: React.ForwardRefExoticComponent<SegmentedControlItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1231
|
-
};
|
|
1232
|
-
|
|
1233
|
-
declare const Tabs: {
|
|
1234
|
-
Root: React.ForwardRefExoticComponent<RadixTabs.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
1235
|
-
List: React.ForwardRefExoticComponent<RadixTabs.TabsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
1236
|
-
Trigger: React.ForwardRefExoticComponent<RadixTabs.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1237
|
-
Content: React.ForwardRefExoticComponent<RadixTabs.TabsContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1238
|
-
};
|
|
1239
|
-
|
|
1240
|
-
type RootProps = RadixAccordion.AccordionSingleProps | RadixAccordion.AccordionMultipleProps;
|
|
1241
|
-
declare const Accordion: {
|
|
1242
|
-
Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1243
|
-
Item: React.ForwardRefExoticComponent<RadixAccordion.AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
1244
|
-
Trigger: React.ForwardRefExoticComponent<RadixAccordion.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1245
|
-
Content: React.ForwardRefExoticComponent<RadixAccordion.AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1246
|
-
};
|
|
1247
|
-
|
|
1248
|
-
declare const Collapsible: {
|
|
1249
|
-
Root: React.ForwardRefExoticComponent<RadixCollapsible.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
1250
|
-
Trigger: React.ForwardRefExoticComponent<RadixCollapsible.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1251
|
-
Content: React.ForwardRefExoticComponent<RadixCollapsible.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1252
|
-
};
|
|
1253
|
-
|
|
1254
|
-
interface ScrollAreaProps extends RadixScrollArea.ScrollAreaProps {
|
|
1255
|
-
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
1256
|
-
}
|
|
1257
|
-
declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
1258
|
-
|
|
1259
|
-
interface ToolbarRootProps extends RadixToolbar.ToolbarProps {
|
|
1260
|
-
/**
|
|
1261
|
-
* Floating toolbar (Apple / M3 Expressive): a glass capsule for the control
|
|
1262
|
-
* layer above content, e.g. editor or selection actions.
|
|
1263
|
-
*/
|
|
1264
|
-
floating?: boolean;
|
|
1265
|
-
/** With `floating`: pin it to the bottom centre of the viewport. */
|
|
1266
|
-
placement?: 'bottom';
|
|
1267
|
-
}
|
|
1268
|
-
declare const Toolbar: {
|
|
1269
|
-
Root: React.ForwardRefExoticComponent<ToolbarRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1270
|
-
Button: React.ForwardRefExoticComponent<RadixToolbar.ToolbarButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1271
|
-
Separator: React.ForwardRefExoticComponent<RadixToolbar.ToolbarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
1272
|
-
ToggleGroup: React.ForwardRefExoticComponent<(RadixToolbar.ToolbarToggleGroupSingleProps | RadixToolbar.ToolbarToggleGroupMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
1273
|
-
ToggleItem: React.ForwardRefExoticComponent<RadixToolbar.ToolbarToggleItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1274
|
-
};
|
|
1275
|
-
|
|
1276
|
-
/** Swipe to dismiss toward the viewport's inline-end edge: right, or left in RTL. */
|
|
1277
|
-
declare function Provider({ swipeDirection, ...props }: RadixToast.ToastProviderProps): React.JSX.Element;
|
|
1278
|
-
declare namespace Provider {
|
|
1279
|
-
var displayName: string;
|
|
1280
|
-
}
|
|
1281
|
-
declare const Toast: {
|
|
1282
|
-
Provider: typeof Provider;
|
|
1283
|
-
Viewport: React.ForwardRefExoticComponent<RadixToast.ToastViewportProps & React.RefAttributes<HTMLOListElement>>;
|
|
1284
|
-
Root: React.ForwardRefExoticComponent<RadixToast.ToastProps & React.RefAttributes<HTMLLIElement>>;
|
|
1285
|
-
Title: React.ForwardRefExoticComponent<RadixToast.ToastTitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
1286
|
-
Description: React.ForwardRefExoticComponent<RadixToast.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
1287
|
-
Action: React.ForwardRefExoticComponent<RadixToast.ToastActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1288
|
-
Close: React.ForwardRefExoticComponent<RadixToast.ToastCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1289
|
-
};
|
|
1290
|
-
|
|
1291
|
-
interface ToasterProps {
|
|
1292
|
-
/** Always show the toasts as a list instead of a collapsed stack. */
|
|
1293
|
-
expand?: boolean;
|
|
1294
|
-
/** How many toasts are visible at once; older ones are visually hidden. Default 3. */
|
|
1295
|
-
visibleToasts?: number;
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
* Sonner-style stack. Collapsed: the newest toast in front, older ones peek
|
|
1299
|
-
* out below it, scaled down. Hovering or focusing the viewport fans them out
|
|
1300
|
-
* into a list. Radix pauses every toast's timer while the viewport is hovered
|
|
1301
|
-
* or focused — the same condition that expands the stack.
|
|
1302
|
-
*
|
|
1303
|
-
* Measured heights reach CSS as custom properties set through the CSSOM
|
|
1304
|
-
* (--nx-toast-index / --nx-toast-offset per toast, --nx-front-height and
|
|
1305
|
-
* --nx-stack-height on the viewport), never a style attribute (strict CSP).
|
|
1306
|
-
*/
|
|
1307
|
-
declare function Toaster({ expand, visibleToasts }: ToasterProps): React.JSX.Element;
|
|
1308
|
-
declare namespace Toaster {
|
|
1309
|
-
var displayName: string;
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
type ToastTone = 'success' | 'error' | 'warning' | 'info' | 'neutral';
|
|
1313
|
-
interface ToastItem {
|
|
1314
|
-
id: string;
|
|
1315
|
-
title: string;
|
|
1316
|
-
description?: string;
|
|
1317
|
-
tone?: ToastTone;
|
|
1318
|
-
duration?: number;
|
|
1319
|
-
action?: {
|
|
1320
|
-
label: string;
|
|
1321
|
-
onClick: () => void;
|
|
1322
|
-
};
|
|
1323
|
-
/** An Undo action; its label defaults to the `undo` message. Set by `toast.undoable`. */
|
|
1324
|
-
undo?: {
|
|
1325
|
-
label?: string;
|
|
1326
|
-
onUndo: () => void;
|
|
1327
|
-
};
|
|
1328
|
-
/** Called once when the toast closes, however it closes (timer, swipe, close, action, dismiss). */
|
|
1329
|
-
onClose?: () => void;
|
|
1330
|
-
}
|
|
1331
|
-
interface UndoableToastOptions {
|
|
1332
|
-
/** Called when Undo is clicked; the toast then closes. */
|
|
1333
|
-
onUndo: () => void;
|
|
1334
|
-
/** Called once when the toast closes any other way — the change is final. */
|
|
1335
|
-
onCommit?: () => void;
|
|
1336
|
-
/** @default the `undo` message ('Undo') */
|
|
1337
|
-
undoLabel?: string;
|
|
1338
|
-
description?: string;
|
|
1339
|
-
duration?: number;
|
|
1340
|
-
}
|
|
1341
|
-
declare function useToastStore(): ToastItem[];
|
|
1342
|
-
declare function dismiss(id?: string): void;
|
|
1343
|
-
declare function undoable(title: string, { onUndo, onCommit, undoLabel, description, duration }: UndoableToastOptions): string;
|
|
1344
|
-
declare const toast: {
|
|
1345
|
-
success: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
1346
|
-
error: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
1347
|
-
info: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
1348
|
-
warning: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
1349
|
-
custom: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
1350
|
-
/** A toast with an Undo action: Undo calls `onUndo`; any other close calls `onCommit`, once. */
|
|
1351
|
-
undoable: typeof undoable;
|
|
1352
|
-
dismiss: typeof dismiss;
|
|
1353
|
-
};
|
|
1354
|
-
|
|
1355
|
-
interface TopNavRootProps extends React.HTMLAttributes<HTMLElement> {
|
|
1356
|
-
surface?: SurfaceValue;
|
|
1357
|
-
/** Sticky-bar edge: `soft` dissolves scrolling content under the bar (no
|
|
1358
|
-
* divider), `hard` is an opaque band for pinned headers. Default: a divider. */
|
|
1359
|
-
scrollEdge?: 'soft' | 'hard';
|
|
1360
|
-
}
|
|
1361
|
-
interface TopNavItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1362
|
-
active?: boolean;
|
|
1363
|
-
/** Render the child element (e.g. a router `<Link>`) instead of an `<a>`. */
|
|
1364
|
-
asChild?: boolean;
|
|
1365
|
-
}
|
|
1366
|
-
declare const TopNav: {
|
|
1367
|
-
Root: React.ForwardRefExoticComponent<TopNavRootProps & React.RefAttributes<HTMLElement>>;
|
|
1368
|
-
Logo: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1369
|
-
Menu: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
1370
|
-
Item: React.ForwardRefExoticComponent<TopNavItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
1371
|
-
Actions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1372
|
-
};
|
|
1373
|
-
|
|
1374
|
-
interface SidebarRootProps extends React.HTMLAttributes<HTMLElement> {
|
|
1375
|
-
collapsed?: boolean;
|
|
1376
|
-
}
|
|
1377
|
-
interface SidebarHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1378
|
-
/** Trailing element next to the logo, e.g. a "Live" `<Badge>`. Moves under the logo when they don't fit. */
|
|
1379
|
-
status?: React.ReactNode;
|
|
1380
|
-
}
|
|
1381
|
-
interface SidebarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1382
|
-
label?: string;
|
|
1383
|
-
}
|
|
1384
|
-
interface SidebarItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1385
|
-
icon?: React.ReactNode;
|
|
1386
|
-
active?: boolean;
|
|
1387
|
-
/** Render the child element (e.g. a router `<Link>`) instead of an `<a>`. */
|
|
1388
|
-
asChild?: boolean;
|
|
1389
|
-
}
|
|
1390
|
-
declare const Sidebar: {
|
|
1391
|
-
Root: React.ForwardRefExoticComponent<SidebarRootProps & React.RefAttributes<HTMLElement>>;
|
|
1392
|
-
Header: React.ForwardRefExoticComponent<SidebarHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
1393
|
-
Group: React.ForwardRefExoticComponent<SidebarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1394
|
-
Item: React.ForwardRefExoticComponent<SidebarItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
1395
|
-
Separator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHRElement> & React.RefAttributes<HTMLHRElement>>;
|
|
1396
|
-
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1397
|
-
};
|
|
1398
|
-
|
|
1399
|
-
declare const AppShell: {
|
|
1400
|
-
Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1401
|
-
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1402
|
-
Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1403
|
-
Sidebar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1404
|
-
Main: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
1405
|
-
};
|
|
1406
|
-
|
|
1407
|
-
interface PageHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
1408
|
-
title: React.ReactNode;
|
|
1409
|
-
description?: React.ReactNode;
|
|
1410
|
-
actions?: React.ReactNode;
|
|
1411
|
-
breadcrumb?: React.ReactNode;
|
|
1412
|
-
/** Heading level of the title. Use 2 or 3 when the page already has an h1. @default 1 */
|
|
1413
|
-
level?: 1 | 2 | 3;
|
|
1414
|
-
}
|
|
1415
|
-
declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
1416
|
-
|
|
1417
|
-
declare const Breadcrumb: {
|
|
1418
|
-
Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
1419
|
-
List: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLOListElement> & React.RefAttributes<HTMLOListElement>>;
|
|
1420
|
-
Item: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
1421
|
-
Link: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
1422
|
-
asChild?: boolean;
|
|
1423
|
-
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
1424
|
-
Page: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
|
|
1425
|
-
Separator: {
|
|
1426
|
-
({ children, className, }: {
|
|
1427
|
-
children?: React.ReactNode;
|
|
1428
|
-
className?: string;
|
|
1429
|
-
}): React.JSX.Element;
|
|
1430
|
-
displayName: string;
|
|
1431
|
-
};
|
|
1432
|
-
Ellipsis: {
|
|
1433
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
1434
|
-
displayName: string;
|
|
1435
|
-
};
|
|
1436
|
-
};
|
|
1437
|
-
|
|
1438
|
-
interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
1439
|
-
page: number;
|
|
1440
|
-
totalItems: number;
|
|
1441
|
-
pageSize?: number;
|
|
1442
|
-
siblingCount?: number;
|
|
1443
|
-
onPageChange: (page: number) => void;
|
|
1444
|
-
}
|
|
1445
|
-
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
1446
|
-
|
|
1447
|
-
interface CommandPaletteRootProps extends DialogPrimitive.DialogProps {
|
|
1448
|
-
className?: string;
|
|
1449
|
-
/** Accessible name of the dialog. @default 'Command palette' */
|
|
1450
|
-
label?: string;
|
|
1451
|
-
/**
|
|
1452
|
-
* How page scroll is locked while open.
|
|
1453
|
-
* - `'style'` (default): Radix's lock, which injects a `<style>` tag (blocked by `style-src 'self'`).
|
|
1454
|
-
* - `'class'`: the `nexub-scroll-lock` class from `@nexub/themes/base`. Strict-CSP safe.
|
|
1455
|
-
*/
|
|
1456
|
-
scrollLock?: 'style' | 'class';
|
|
1457
|
-
/** `false` when the items are already filtered (e.g. async search results). @default true */
|
|
1458
|
-
shouldFilter?: boolean;
|
|
1459
|
-
}
|
|
1460
|
-
declare const CommandPalette: {
|
|
1461
|
-
Root: React.ForwardRefExoticComponent<CommandPaletteRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1462
|
-
Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof React.InputHTMLAttributes<HTMLInputElement> | "key"> & {
|
|
1463
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
1464
|
-
} & {
|
|
1465
|
-
asChild?: boolean;
|
|
1466
|
-
}, "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement> | "key">, "value" | "onChange" | "type"> & {
|
|
1467
|
-
value?: string;
|
|
1468
|
-
onValueChange?: (search: string) => void;
|
|
1469
|
-
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1470
|
-
List: React.ForwardRefExoticComponent<Omit<{
|
|
1471
|
-
children?: React.ReactNode;
|
|
1472
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1473
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1474
|
-
} & {
|
|
1475
|
-
asChild?: boolean;
|
|
1476
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1477
|
-
label?: string;
|
|
1478
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1479
|
-
Empty: React.ForwardRefExoticComponent<Omit<{
|
|
1480
|
-
children?: React.ReactNode;
|
|
1481
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1482
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1483
|
-
} & {
|
|
1484
|
-
asChild?: boolean;
|
|
1485
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1486
|
-
Group: React.ForwardRefExoticComponent<Omit<{
|
|
1487
|
-
children?: React.ReactNode;
|
|
1488
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1489
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1490
|
-
} & {
|
|
1491
|
-
asChild?: boolean;
|
|
1492
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
1493
|
-
heading?: React.ReactNode;
|
|
1494
|
-
value?: string;
|
|
1495
|
-
forceMount?: boolean;
|
|
1496
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1497
|
-
Item: React.ForwardRefExoticComponent<Omit<{
|
|
1498
|
-
children?: React.ReactNode;
|
|
1499
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1500
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1501
|
-
} & {
|
|
1502
|
-
asChild?: boolean;
|
|
1503
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "disabled" | "onSelect"> & {
|
|
1504
|
-
disabled?: boolean;
|
|
1505
|
-
onSelect?: (value: string) => void;
|
|
1506
|
-
value?: string;
|
|
1507
|
-
keywords?: string[];
|
|
1508
|
-
forceMount?: boolean;
|
|
1509
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1510
|
-
Separator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1511
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
1512
|
-
} & {
|
|
1513
|
-
asChild?: boolean;
|
|
1514
|
-
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
1515
|
-
alwaysRender?: boolean;
|
|
1516
|
-
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1517
|
-
};
|
|
1518
|
-
|
|
1519
|
-
interface TableRootProps extends React.HTMLAttributes<HTMLTableElement> {
|
|
1520
|
-
/**
|
|
1521
|
-
* Accessible name of the scroll region shown when the table overflows
|
|
1522
|
-
* horizontally. Falls back to the table's `aria-label`/`aria-labelledby`, then its caption.
|
|
1523
|
-
*/
|
|
1524
|
-
scrollLabel?: string;
|
|
1525
|
-
}
|
|
1526
|
-
declare const Table: {
|
|
1527
|
-
Root: React.ForwardRefExoticComponent<TableRootProps & React.RefAttributes<HTMLTableElement>>;
|
|
1528
|
-
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
1529
|
-
Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
1530
|
-
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
1531
|
-
Row: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
1532
|
-
Head: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
1533
|
-
Cell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
1534
|
-
Caption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
1535
|
-
};
|
|
1536
|
-
|
|
1537
|
-
declare module '@tanstack/react-table' {
|
|
1538
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
1539
|
-
/** Horizontal alignment of the header and cells. Use 'end' for numbers. @default 'start' */
|
|
1540
|
-
align?: 'start' | 'end' | 'center';
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
/** A DataTable column: TanStack's `ColumnDef`, with `meta.align` for numeric columns. */
|
|
1544
|
-
type DataTableColumn<TData> = ColumnDef<TData, unknown>;
|
|
1545
|
-
interface DataTableProps<TData> extends React.HTMLAttributes<HTMLDivElement> {
|
|
1546
|
-
columns: DataTableColumn<TData>[];
|
|
1547
|
-
/** Names the table for assistive tech (and is shown below it unless `captionHidden`). */
|
|
1548
|
-
caption?: React.ReactNode;
|
|
1549
|
-
/** Keep the caption for screen readers only. */
|
|
1550
|
-
captionHidden?: boolean;
|
|
1551
|
-
data: TData[];
|
|
1552
|
-
enableSorting?: boolean;
|
|
1553
|
-
enableRowSelection?: boolean;
|
|
1554
|
-
pagination?: {
|
|
1555
|
-
pageSize?: number;
|
|
1556
|
-
};
|
|
1557
|
-
}
|
|
1558
|
-
declare function DataTable<TData>({ columns, data, enableSorting, enableRowSelection, pagination, caption, captionHidden, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }: DataTableProps<TData>): React.JSX.Element;
|
|
1559
|
-
|
|
1560
|
-
declare const EmptyState: {
|
|
1561
|
-
Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1562
|
-
Illustration: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1563
|
-
Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
1564
|
-
Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
1565
|
-
Actions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1566
|
-
};
|
|
1567
|
-
|
|
1568
|
-
type ErrorTone = 'error' | 'warning' | 'info';
|
|
1569
|
-
interface ErrorStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1570
|
-
title: string;
|
|
1571
|
-
description?: string;
|
|
1572
|
-
tone?: ErrorTone;
|
|
1573
|
-
onRetry?: () => void;
|
|
1574
|
-
}
|
|
1575
|
-
declare const ErrorState: React.ForwardRefExoticComponent<ErrorStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
1576
|
-
|
|
1577
|
-
interface FileUploadRootProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1578
|
-
accept?: string[];
|
|
1579
|
-
maxFiles?: number;
|
|
1580
|
-
onFilesChange?: (files: File[]) => void;
|
|
1581
|
-
}
|
|
1582
|
-
declare const FileUpload: {
|
|
1583
|
-
Root: React.ForwardRefExoticComponent<FileUploadRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1584
|
-
Dropzone: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1585
|
-
List: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
|
|
1586
|
-
Item: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLLIElement> & {
|
|
1587
|
-
index: number;
|
|
1588
|
-
} & React.RefAttributes<HTMLLIElement>>;
|
|
1589
|
-
};
|
|
1590
|
-
|
|
1591
|
-
interface DatePickerProps {
|
|
1592
|
-
value?: Date;
|
|
1593
|
-
onChange?: (date: Date | undefined) => void;
|
|
1594
|
-
placeholder?: string;
|
|
1595
|
-
disabled?: boolean;
|
|
1596
|
-
minDate?: Date;
|
|
1597
|
-
maxDate?: Date;
|
|
1598
|
-
className?: string;
|
|
1599
|
-
/** Id for the trigger button, e.g. to pair with a `<label htmlFor>`. */
|
|
1600
|
-
id?: string;
|
|
1601
|
-
/** Field name for screen readers; the current value is appended. */
|
|
1602
|
-
'aria-label'?: string;
|
|
1603
|
-
/** date-fns Locale for the calendar and trigger text; wins over NexubProvider's `dateLocale`. */
|
|
1604
|
-
locale?: Locale;
|
|
1605
|
-
}
|
|
1606
|
-
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1607
|
-
|
|
1608
|
-
interface DateRangePickerProps {
|
|
1609
|
-
value?: DateRange;
|
|
1610
|
-
onChange?: (range: DateRange | undefined) => void;
|
|
1611
|
-
placeholder?: string;
|
|
1612
|
-
disabled?: boolean;
|
|
1613
|
-
minDate?: Date;
|
|
1614
|
-
maxDate?: Date;
|
|
1615
|
-
className?: string;
|
|
1616
|
-
/** Id for the trigger button, e.g. to pair with a `<label htmlFor>`. */
|
|
1617
|
-
id?: string;
|
|
1618
|
-
/** Field name for screen readers; the current value is appended. */
|
|
1619
|
-
'aria-label'?: string;
|
|
1620
|
-
/** date-fns Locale for the calendar and trigger text; wins over NexubProvider's `dateLocale`. */
|
|
1621
|
-
locale?: Locale;
|
|
1622
|
-
}
|
|
1623
|
-
declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1624
|
-
|
|
1625
|
-
type ThemeMode = 'light' | 'dark' | 'system';
|
|
1626
|
-
|
|
1627
|
-
interface ThemeContextValue {
|
|
1628
|
-
/** The resolved theme actually applied (never 'system'). */
|
|
1629
|
-
resolvedTheme: 'light' | 'dark';
|
|
1630
|
-
/** The mode set by the consumer — may be 'system'. */
|
|
1631
|
-
theme: ThemeMode;
|
|
1632
|
-
/** Change the active theme. */
|
|
1633
|
-
setTheme: (mode: ThemeMode) => void;
|
|
1634
|
-
/** Glass intensity. */
|
|
1635
|
-
glass: GlassMode;
|
|
1636
|
-
/** Change (and persist) the glass intensity. */
|
|
1637
|
-
setGlass: (mode: GlassMode) => void;
|
|
1638
|
-
}
|
|
1639
|
-
interface ThemeProviderProps {
|
|
1640
|
-
children: React.ReactNode;
|
|
1641
|
-
/**
|
|
1642
|
-
* Initial theme. Defaults to 'system'.
|
|
1643
|
-
*/
|
|
1644
|
-
defaultTheme?: ThemeMode;
|
|
1645
|
-
/**
|
|
1646
|
-
* localStorage key used to persist the user's choice.
|
|
1647
|
-
* Defaults to 'nexub-theme'.
|
|
1648
|
-
*/
|
|
1649
|
-
storageKey?: string;
|
|
1650
|
-
/** Initial glass intensity. Defaults to 'balanced'. */
|
|
1651
|
-
defaultGlass?: GlassMode;
|
|
1652
|
-
/** localStorage key for the glass intensity. Defaults to 'nexub-glass'. */
|
|
1653
|
-
glassStorageKey?: string;
|
|
1654
|
-
/**
|
|
1655
|
-
* Brand seed colour (`#rgb` / `#rrggbb`) for white-label theming. The accent
|
|
1656
|
-
* family named by `seedTarget` is regenerated from it (same HCT tones as the
|
|
1657
|
-
* built-in roles, so WCAG pairs hold) and set on `<html>` via the CSSOM
|
|
1658
|
-
* (strict-CSP safe), following the current `data-contrast` level.
|
|
1659
|
-
*
|
|
1660
|
-
* Runs on the client after `@nexub/tokens/seed` loads (a lazy chunk with
|
|
1661
|
-
* the colour library), so server-rendered pages paint the default brand
|
|
1662
|
-
* first. To avoid that flash, emit `createSeedThemeCss(seed)` from
|
|
1663
|
-
* `@nexub/tokens/seed` into a server-rendered stylesheet instead.
|
|
1664
|
-
*/
|
|
1665
|
-
seed?: string;
|
|
1666
|
-
/** Accent family the seed recolours: 'primary' (default) or 'tertiary' (product brand). */
|
|
1667
|
-
seedTarget?: 'primary' | 'tertiary';
|
|
1668
|
-
}
|
|
1669
|
-
declare function ThemeProvider({ children, defaultTheme, storageKey, defaultGlass, glassStorageKey, seed, seedTarget, }: ThemeProviderProps): React.JSX.Element;
|
|
1670
|
-
declare function useTheme(): ThemeContextValue;
|
|
1671
|
-
interface ThemeScriptProps {
|
|
1672
|
-
/** Must match ThemeProvider's `storageKey`. Defaults to 'nexub-theme'. */
|
|
1673
|
-
storageKey?: string;
|
|
1674
|
-
/** If set, a stored product brand (e.g. 'bookub') is applied as `data-product`. */
|
|
1675
|
-
productStorageKey?: string;
|
|
1676
|
-
/** Must match ThemeProvider's `glassStorageKey`. Defaults to 'nexub-glass'. */
|
|
1677
|
-
glassStorageKey?: string;
|
|
1678
|
-
/** If set, a stored contrast level ('standard' | 'medium' | 'high') is applied as `data-contrast`. */
|
|
1679
|
-
contrastStorageKey?: string;
|
|
1680
|
-
/** CSP nonce for pages whose script-src disallows inline scripts. */
|
|
1681
|
-
nonce?: string;
|
|
1682
|
-
}
|
|
1683
|
-
/**
|
|
1684
|
-
* Applies the stored theme before first paint, so there is no light/dark flash.
|
|
1685
|
-
* Render it in `<head>` (or at the top of `<body>`) on server-rendered pages.
|
|
1686
|
-
*/
|
|
1687
|
-
declare function ThemeScript({ storageKey, productStorageKey, glassStorageKey, contrastStorageKey, nonce, }: ThemeScriptProps): React.JSX.Element;
|
|
1688
|
-
|
|
1689
|
-
type MotionDuration = 'instant' | 'fast' | 'normal' | 'slow' | 'slower';
|
|
1690
|
-
type MotionEasing = 'linear' | 'in' | 'out' | 'in-out' | 'out-expo' | 'spring';
|
|
1691
|
-
interface MotionBaseProps {
|
|
1692
|
-
/** Whether the component is visible / mounted. */
|
|
1693
|
-
in: boolean;
|
|
1694
|
-
/**
|
|
1695
|
-
* Speed on the spring tokens: `fast` → fast, `normal` → default,
|
|
1696
|
-
* `slow`/`slower` → slow springs. `instant` turns motion off.
|
|
1697
|
-
* @default 'normal'
|
|
1698
|
-
*/
|
|
1699
|
-
duration?: MotionDuration;
|
|
1700
|
-
/**
|
|
1701
|
-
* Legacy: set it to use the old `--duration-*` + `--ease-{value}` tokens
|
|
1702
|
-
* instead of springs. Omit it to ride the spring tokens.
|
|
1703
|
-
*/
|
|
1704
|
-
easing?: MotionEasing;
|
|
1705
|
-
/**
|
|
1706
|
-
* Remove the element from the DOM when `in` becomes false
|
|
1707
|
-
* (after the exit transition completes).
|
|
1708
|
-
* @default false
|
|
1709
|
-
*/
|
|
1710
|
-
unmountOnExit?: boolean;
|
|
1711
|
-
children?: React.ReactNode;
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
interface FadeProps extends MotionBaseProps, React.HTMLAttributes<HTMLDivElement> {
|
|
1715
|
-
/** Wrapper element tag. @default 'div' */
|
|
1716
|
-
as?: React.ElementType;
|
|
1717
|
-
}
|
|
1718
|
-
/**
|
|
1719
|
-
* Fade — animates opacity between 0 and 1.
|
|
1720
|
-
*
|
|
1721
|
-
* ```tsx
|
|
1722
|
-
* <Fade in={isOpen}>
|
|
1723
|
-
* <p>Hello</p>
|
|
1724
|
-
* </Fade>
|
|
1725
|
-
* ```
|
|
1726
|
-
*/
|
|
1727
|
-
declare const Fade: React.ForwardRefExoticComponent<FadeProps & React.RefAttributes<HTMLDivElement>>;
|
|
1728
|
-
|
|
1729
|
-
type SlideDirection = 'up' | 'down' | 'left' | 'right';
|
|
1730
|
-
interface SlideProps extends MotionBaseProps, React.HTMLAttributes<HTMLDivElement> {
|
|
1731
|
-
/** Direction the element slides in from. @default 'up' */
|
|
1732
|
-
direction?: SlideDirection;
|
|
1733
|
-
/** Distance of the slide offset. @default '12px' */
|
|
1734
|
-
distance?: string;
|
|
1735
|
-
/** Wrapper element tag. @default 'div' */
|
|
1736
|
-
as?: React.ElementType;
|
|
1737
|
-
}
|
|
1738
|
-
/**
|
|
1739
|
-
* Slide — animates opacity + translate from a given direction on the spring
|
|
1740
|
-
* tokens. Reduced motion keeps the fade and drops the travel.
|
|
1741
|
-
*
|
|
1742
|
-
* ```tsx
|
|
1743
|
-
* <Slide in={isOpen} direction="up">
|
|
1744
|
-
* <Card />
|
|
1745
|
-
* </Slide>
|
|
1746
|
-
* ```
|
|
1747
|
-
*/
|
|
1748
|
-
declare const Slide: React.ForwardRefExoticComponent<SlideProps & React.RefAttributes<HTMLDivElement>>;
|
|
1749
|
-
|
|
1750
|
-
interface ScaleProps extends MotionBaseProps, React.HTMLAttributes<HTMLDivElement> {
|
|
1751
|
-
/**
|
|
1752
|
-
* The scale value at the start/end of the animation (when `in={false}`).
|
|
1753
|
-
* @default 0.95
|
|
1754
|
-
*/
|
|
1755
|
-
initialScale?: number;
|
|
1756
|
-
/** Wrapper element tag. @default 'div' */
|
|
1757
|
-
as?: React.ElementType;
|
|
1758
|
-
}
|
|
1759
|
-
/**
|
|
1760
|
-
* Scale — animates opacity + scale(x) from `initialScale` to 1 on the spring
|
|
1761
|
-
* tokens. Reduced motion keeps the fade and drops the scale.
|
|
1762
|
-
*
|
|
1763
|
-
* ```tsx
|
|
1764
|
-
* <Scale in={isOpen} initialScale={0.9}>
|
|
1765
|
-
* <Menu />
|
|
1766
|
-
* </Scale>
|
|
1767
|
-
* ```
|
|
1768
|
-
*/
|
|
1769
|
-
declare const Scale: React.ForwardRefExoticComponent<ScaleProps & React.RefAttributes<HTMLDivElement>>;
|
|
1770
|
-
|
|
1771
|
-
interface CollapseProps extends Omit<MotionBaseProps, 'easing'>, React.HTMLAttributes<HTMLDivElement> {
|
|
1772
|
-
/**
|
|
1773
|
-
* Legacy: set it to use `--duration-*` + `--ease-{value}` instead of the
|
|
1774
|
-
* spatial spring for the height transition.
|
|
1775
|
-
*/
|
|
1776
|
-
easing?: MotionBaseProps['easing'];
|
|
1777
|
-
/**
|
|
1778
|
-
* Starting height when collapsed. Useful for "peek" effects.
|
|
1779
|
-
* @default 0
|
|
1780
|
-
*/
|
|
1781
|
-
collapsedHeight?: number | string;
|
|
1782
|
-
/** Wrapper element tag. @default 'div' */
|
|
1783
|
-
as?: React.ElementType;
|
|
1784
|
-
}
|
|
1785
|
-
/**
|
|
1786
|
-
* Collapse — animates `max-height` to reveal / hide content on the spatial
|
|
1787
|
-
* spring. Reduced motion snaps the height instead of animating it.
|
|
1788
|
-
* Height is measured from the content ref so you don't need to
|
|
1789
|
-
* provide an explicit height.
|
|
1790
|
-
*
|
|
1791
|
-
* ```tsx
|
|
1792
|
-
* <Collapse in={isOpen}>
|
|
1793
|
-
* <p>Hidden content</p>
|
|
1794
|
-
* </Collapse>
|
|
1795
|
-
* ```
|
|
1796
|
-
*/
|
|
1797
|
-
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
|
|
1798
|
-
|
|
1799
|
-
interface ListTransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
1800
|
-
/** List element. @default 'div' */
|
|
1801
|
-
as?: React.ElementType;
|
|
1802
|
-
/** Element wrapping each item, e.g. `'li'` inside a `'ul'`. @default 'div' */
|
|
1803
|
-
itemAs?: React.ElementType;
|
|
1804
|
-
/** Animate the items present on first render too. @default false */
|
|
1805
|
-
appear?: boolean;
|
|
1806
|
-
/** Keyed children. Items without a key are rendered but never animated. */
|
|
1807
|
-
children?: React.ReactNode;
|
|
1808
|
-
}
|
|
1809
|
-
/**
|
|
1810
|
-
* ListTransition — animates keyed items in and out of a list.
|
|
1811
|
-
* New items grow in from zero height and fade in; removed items stay in place
|
|
1812
|
-
* while they collapse and fade out, then unmount. Uses CSS keyframes on the
|
|
1813
|
-
* spring tokens (`nx-list-item` in `@nexub/themes/base`); reduced motion keeps
|
|
1814
|
-
* only the fade.
|
|
1815
|
-
*
|
|
1816
|
-
* Space items with padding inside each item, not `gap`, so a collapsing item
|
|
1817
|
-
* takes its spacing with it.
|
|
1818
|
-
*
|
|
1819
|
-
* ```tsx
|
|
1820
|
-
* <ListTransition as="ul" itemAs="li">
|
|
1821
|
-
* {items.map((item) => <Row key={item.id} item={item} />)}
|
|
1822
|
-
* </ListTransition>
|
|
1823
|
-
* ```
|
|
1824
|
-
*/
|
|
1825
|
-
declare const ListTransition: React.ForwardRefExoticComponent<ListTransitionProps & React.RefAttributes<HTMLElement>>;
|
|
1826
|
-
interface SkeletonSwapProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1827
|
-
/** While true the skeleton shows; flipping to false crossfades to the content. */
|
|
1828
|
-
loading: boolean;
|
|
1829
|
-
/** Placeholder shown while loading, usually `Skeleton`s shaped like the content. */
|
|
1830
|
-
skeleton: React.ReactNode;
|
|
1831
|
-
children?: React.ReactNode;
|
|
1832
|
-
}
|
|
1833
|
-
/**
|
|
1834
|
-
* SkeletonSwap — crossfades from a skeleton to the loaded content in place,
|
|
1835
|
-
* instead of popping. Sets `aria-busy` while loading.
|
|
1836
|
-
*
|
|
1837
|
-
* ```tsx
|
|
1838
|
-
* <SkeletonSwap loading={isLoading} skeleton={<Skeleton shape="rect" height={120} />}>
|
|
1839
|
-
* <Card>…</Card>
|
|
1840
|
-
* </SkeletonSwap>
|
|
1841
|
-
* ```
|
|
1842
|
-
*/
|
|
1843
|
-
declare const SkeletonSwap: React.ForwardRefExoticComponent<SkeletonSwapProps & React.RefAttributes<HTMLDivElement>>;
|
|
1844
|
-
|
|
1845
|
-
/** True when the user asked the OS for reduced motion. False during SSR. */
|
|
1846
|
-
declare function usePrefersReducedMotion(): boolean;
|
|
1847
|
-
|
|
1848
|
-
export { Accordion, Alert, AlertDialog, Amount, AppShell, AspectRatio, Autocomplete, Avatar, AvatarGroup, Badge, Box, Breadcrumb, Button, ButtonGroup, Card, CardLink, CheckList, CheckListItem, Checkbox, CheckboxCard, Chip, Citation, Code, Collapse, Collapsible, Combobox, CommandPalette, Container, ContextMenu, CountryBadge, DataTable, DatePicker, DateRangePicker, Dialog, Drawer, DropdownMenu, EmptyState, ErrorState, EyebrowChip, Fade, FileUpload, FilterChip, Flag, Flex, FormError, FormField, GradientDivider, Grid, Heading, HelperText, HoverCard, IconButton, Input, Kbd, KeyboardShortcut, Label, Link, ListTransition, Logo, MediaCard, Menubar, MessageActions, MessageBubble, MoneyInput, NavigationMenu, NavigationRail, NexubProvider, NumberInput, NumberTicker, PageHeader, Pagination, PasswordInput, Popover, Progress, PromptInput, RadioCard, RadioCardGroup, RadioGroup, Rating, Scale, ScrollArea, SearchInput, Section, SegmentedControl, Select, Separator, Sheet, Sidebar, Skeleton, SkeletonSwap, Slide, Slider, SourceChip, SourceList, Spinner, SplitButton, Stack, StreamingText, Switch, Table, Tabs, Text, TextGradient, Textarea, ThemeProvider, ThemeScript, ThinkingIndicator, Toast, Toaster, Toggle, ToggleGroup, Toolbar, Tooltip, Provider$1 as TooltipProvider, TopNav, addonVariants, alertVariants, avatarGroupVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, chipVariants, cn, containerVariants, defaultMessageStrings, headingVariants, iconButtonVariants, inputVariants, inputWrapperVariants, labelVariants, linkVariants, logoVariants, progressFillVariants, progressTrackVariants, ratingVariants, safeUrl, sectionVariants, separatorVariants, skeletonVariants, spinnerVariants, startViewTransition, textVariants, textareaVariants, toast, toggleVariants, useControllableState, useDisclosure, useIsomorphicLayoutEffect, useLocale, useMediaQuery, useMergedRefs, useNexubMessages, usePointerSheen, usePrefersReducedMotion, useTheme, useToastStore };
|
|
1849
|
-
export type { AlertProps, AmountProps, AspectRatioProps, AutocompleteOption, AutocompleteProps, AvatarGroupProps, AvatarProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, ButtonStatus, CardLinkProps, CardProps, CheckListItemProps, CheckListProps, CheckboxCardProps, CheckboxProps, ChipProps, CitationMessages, CitationProps, CitationSource, CodeProps, CollapseProps, CommandPaletteRootProps, ContainerProps, CountryBadgeProps, DataTableColumn, DataTableProps, DatePickerProps, DateRangePickerProps, DrawerRootProps, ErrorStateProps, EyebrowChipProps, FadeProps, Feedback, FileUploadRootProps, FilterChipProps, FlagProps, FlexProps, FormErrorProps, FormFieldContextValue, FormFieldRootProps, GradientDividerProps, GridProps, HeadingProps, HelperTextProps, IconButtonProps, InputProps, KbdProps, KeyboardShortcutProps, LabelProps, LinkProps, ListTransitionProps, LogoProps, MediaCardProps, MediaCardRatio, MessageActionsProps, MessageBubbleProps, MessageFrom, MessageStrings, MoneyInputProps, MotionBaseProps, MotionDuration, MotionEasing, NavigationRailItemProps, NavigationRailRootProps, NexubProviderProps, NumberInputProps, NumberTickerPart, NumberTickerProps, PageHeaderProps, PaginationProps, PasswordInputProps, ProgressProps, PromptInputMessages, PromptInputProps, PromptInputStatus, RadioCardGroupProps, RadioCardProps, RatingProps, ScaleProps, ScrollAreaProps, SearchInputProps, SectionProps, SegmentedControlItemProps, SegmentedControlProps, SeparatorProps, SidebarGroupProps, SidebarHeaderProps, SidebarItemProps, SidebarRootProps, Size, SkeletonProps, SkeletonSwapProps, SlideDirection, SlideProps, SliderProps, SourceChipProps, SourceListProps, SpinnerProps, SplitButtonProps, StackProps, StreamingTextProps, SwitchProps, TableRootProps, TextGradientProps, TextProps, TextareaProps, ThemeContextValue, ThemeMode, ThemeProviderProps, ThemeScriptProps, ThinkingIndicatorMessages, ThinkingIndicatorProps, ToastItem, ToasterProps, ToggleProps, ToolbarRootProps, TopNavItemProps, TopNavRootProps, UndoableToastOptions };
|
|
1
|
+
export { cn } from './utils/cn.js';
|
|
2
|
+
export type { Size } from './utils/control.js';
|
|
3
|
+
export { startViewTransition } from './utils/viewTransition.js';
|
|
4
|
+
export { useControllableState } from './hooks/useControllableState.js';
|
|
5
|
+
export { useDisclosure } from './hooks/useDisclosure.js';
|
|
6
|
+
export { useIsomorphicLayoutEffect } from './hooks/useIsomorphicLayoutEffect.js';
|
|
7
|
+
export { useMediaQuery } from './hooks/useMediaQuery.js';
|
|
8
|
+
export { useMergedRefs } from './hooks/useMergedRefs.js';
|
|
9
|
+
export { usePointerSheen } from './hooks/usePointerSheen.js';
|
|
10
|
+
export { PromptInput } from './components/PromptInput/index.js';
|
|
11
|
+
export type { PromptInputProps, PromptInputMessages, PromptInputStatus } from './components/PromptInput/index.js';
|
|
12
|
+
export { ThinkingIndicator } from './components/ThinkingIndicator/index.js';
|
|
13
|
+
export type { ThinkingIndicatorProps, ThinkingIndicatorMessages } from './components/ThinkingIndicator/index.js';
|
|
14
|
+
export { StreamingText } from './components/StreamingText/index.js';
|
|
15
|
+
export type { StreamingTextProps } from './components/StreamingText/index.js';
|
|
16
|
+
export { MessageBubble, MessageActions, defaultMessageStrings } from './components/MessageBubble/index.js';
|
|
17
|
+
export type { MessageBubbleProps, MessageActionsProps, MessageFrom, MessageStrings, Feedback } from './components/MessageBubble/index.js';
|
|
18
|
+
export { Citation, SourceChip, SourceList, safeUrl } from './components/Citation/index.js';
|
|
19
|
+
export type { CitationProps, CitationSource, CitationMessages, SourceChipProps, SourceListProps } from './components/Citation/index.js';
|
|
20
|
+
export { NexubProvider, useNexubMessages, useLocale, defaultMessages } from './components/NexubProvider/index.js';
|
|
21
|
+
export type { NexubProviderProps, NexubMessages, Direction as TextDirection } from './components/NexubProvider/index.js';
|
|
22
|
+
export { Button, buttonVariants } from './components/Button/index.js';
|
|
23
|
+
export type { ButtonProps, ButtonStatus, ToneValue } from './components/Button/index.js';
|
|
24
|
+
export { ButtonGroup } from './components/ButtonGroup/index.js';
|
|
25
|
+
export type { ButtonGroupProps } from './components/ButtonGroup/index.js';
|
|
26
|
+
export { SplitButton } from './components/SplitButton/index.js';
|
|
27
|
+
export type { SplitButtonProps } from './components/SplitButton/index.js';
|
|
28
|
+
export { IconButton, iconButtonVariants } from './components/IconButton/index.js';
|
|
29
|
+
export type { IconButtonProps } from './components/IconButton/index.js';
|
|
30
|
+
export { Input, inputVariants, inputWrapperVariants, addonVariants } from './components/Input/index.js';
|
|
31
|
+
export type { InputProps } from './components/Input/index.js';
|
|
32
|
+
export { Textarea, textareaVariants } from './components/Textarea/index.js';
|
|
33
|
+
export type { TextareaProps } from './components/Textarea/index.js';
|
|
34
|
+
export { NumberInput } from './components/NumberInput/index.js';
|
|
35
|
+
export type { NumberInputProps } from './components/NumberInput/index.js';
|
|
36
|
+
export { MoneyInput } from './components/MoneyInput/index.js';
|
|
37
|
+
export type { MoneyInputProps } from './components/MoneyInput/index.js';
|
|
38
|
+
export { Amount } from './components/Amount/index.js';
|
|
39
|
+
export type { AmountProps } from './components/Amount/index.js';
|
|
40
|
+
export { NumberTicker } from './components/NumberTicker/index.js';
|
|
41
|
+
export type { NumberTickerProps, NumberTickerPart } from './components/NumberTicker/index.js';
|
|
42
|
+
export { SearchInput } from './components/SearchInput/index.js';
|
|
43
|
+
export type { SearchInputProps } from './components/SearchInput/index.js';
|
|
44
|
+
export { PasswordInput } from './components/PasswordInput/index.js';
|
|
45
|
+
export type { PasswordInputProps } from './components/PasswordInput/index.js';
|
|
46
|
+
export { Label, labelVariants } from './components/Label/index.js';
|
|
47
|
+
export type { LabelProps } from './components/Label/index.js';
|
|
48
|
+
export { HelperText } from './components/HelperText/index.js';
|
|
49
|
+
export type { HelperTextProps } from './components/HelperText/index.js';
|
|
50
|
+
export { FormError } from './components/FormError/index.js';
|
|
51
|
+
export type { FormErrorProps } from './components/FormError/index.js';
|
|
52
|
+
export { FormField } from './components/FormField/index.js';
|
|
53
|
+
export type { FormFieldRootProps, FormFieldContextValue } from './components/FormField/index.js';
|
|
54
|
+
export { Badge, badgeVariants } from './components/Badge/index.js';
|
|
55
|
+
export type { BadgeProps } from './components/Badge/index.js';
|
|
56
|
+
export { FilterChip } from './components/FilterChip/index.js';
|
|
57
|
+
export type { FilterChipProps } from './components/FilterChip/index.js';
|
|
58
|
+
export { Chip, chipVariants } from './components/Chip/index.js';
|
|
59
|
+
export type { ChipProps } from './components/Chip/index.js';
|
|
60
|
+
export { EyebrowChip } from './components/EyebrowChip/index.js';
|
|
61
|
+
export type { EyebrowChipProps } from './components/EyebrowChip/index.js';
|
|
62
|
+
export { Avatar, avatarVariants } from './components/Avatar/index.js';
|
|
63
|
+
export type { AvatarProps } from './components/Avatar/index.js';
|
|
64
|
+
export { AvatarGroup, avatarGroupVariants } from './components/AvatarGroup/index.js';
|
|
65
|
+
export type { AvatarGroupProps } from './components/AvatarGroup/index.js';
|
|
66
|
+
export { Card, CardLink, cardVariants } from './components/Card/index.js';
|
|
67
|
+
export type { CardProps, CardLinkProps } from './components/Card/index.js';
|
|
68
|
+
export { RadioCardGroup, RadioCard } from './components/RadioCard/index.js';
|
|
69
|
+
export type { RadioCardGroupProps, RadioCardProps } from './components/RadioCard/index.js';
|
|
70
|
+
export { CheckboxCard } from './components/CheckboxCard/index.js';
|
|
71
|
+
export type { CheckboxCardProps } from './components/CheckboxCard/index.js';
|
|
72
|
+
export { MediaCard } from './components/MediaCard/index.js';
|
|
73
|
+
export type { MediaCardProps, MediaCardRatio } from './components/MediaCard/index.js';
|
|
74
|
+
export { Alert, alertVariants } from './components/Alert/index.js';
|
|
75
|
+
export type { AlertProps } from './components/Alert/index.js';
|
|
76
|
+
export { Skeleton, skeletonVariants } from './components/Skeleton/index.js';
|
|
77
|
+
export type { SkeletonProps } from './components/Skeleton/index.js';
|
|
78
|
+
export { Spinner, spinnerVariants } from './components/Spinner/index.js';
|
|
79
|
+
export type { SpinnerProps } from './components/Spinner/index.js';
|
|
80
|
+
export { Progress, progressTrackVariants, progressFillVariants } from './components/Progress/index.js';
|
|
81
|
+
export type { ProgressProps } from './components/Progress/index.js';
|
|
82
|
+
export { Separator, separatorVariants } from './components/Separator/index.js';
|
|
83
|
+
export type { SeparatorProps } from './components/Separator/index.js';
|
|
84
|
+
export { GradientDivider } from './components/GradientDivider/index.js';
|
|
85
|
+
export type { GradientDividerProps } from './components/GradientDivider/index.js';
|
|
86
|
+
export { Rating, ratingVariants } from './components/Rating/index.js';
|
|
87
|
+
export type { RatingProps } from './components/Rating/index.js';
|
|
88
|
+
export { CheckList, CheckListItem } from './components/CheckList/index.js';
|
|
89
|
+
export type { CheckListProps, CheckListItemProps } from './components/CheckList/index.js';
|
|
90
|
+
export { Code } from './components/Code/index.js';
|
|
91
|
+
export type { CodeProps } from './components/Code/index.js';
|
|
92
|
+
export { Kbd } from './components/Kbd/index.js';
|
|
93
|
+
export type { KbdProps } from './components/Kbd/index.js';
|
|
94
|
+
export { Link, linkVariants } from './components/Link/index.js';
|
|
95
|
+
export type { LinkProps } from './components/Link/index.js';
|
|
96
|
+
export { TextGradient } from './components/TextGradient/index.js';
|
|
97
|
+
export type { TextGradientProps } from './components/TextGradient/index.js';
|
|
98
|
+
export { Container, containerVariants } from './components/Container/index.js';
|
|
99
|
+
export type { ContainerProps } from './components/Container/index.js';
|
|
100
|
+
export { Section, sectionVariants } from './components/Section/index.js';
|
|
101
|
+
export type { SectionProps } from './components/Section/index.js';
|
|
102
|
+
export { Stack } from './components/Stack/index.js';
|
|
103
|
+
export type { StackProps } from './components/Stack/index.js';
|
|
104
|
+
export { Flex } from './components/Flex/index.js';
|
|
105
|
+
export type { FlexProps } from './components/Flex/index.js';
|
|
106
|
+
export { Grid } from './components/Grid/index.js';
|
|
107
|
+
export type { GridProps } from './components/Grid/index.js';
|
|
108
|
+
export { Box } from './components/Box/index.js';
|
|
109
|
+
export type { BoxProps } from './components/Box/index.js';
|
|
110
|
+
export { AspectRatio } from './components/AspectRatio/index.js';
|
|
111
|
+
export type { AspectRatioProps } from './components/AspectRatio/index.js';
|
|
112
|
+
export { VisuallyHidden } from './components/VisuallyHidden/index.js';
|
|
113
|
+
export type { VisuallyHiddenProps } from './components/VisuallyHidden/index.js';
|
|
114
|
+
export { Heading, headingVariants } from './components/Heading/index.js';
|
|
115
|
+
export type { HeadingProps } from './components/Heading/index.js';
|
|
116
|
+
export { Text, textVariants } from './components/Text/index.js';
|
|
117
|
+
export type { TextProps } from './components/Text/index.js';
|
|
118
|
+
export { Logo, logoVariants } from './components/Logo/index.js';
|
|
119
|
+
export type { LogoProps } from './components/Logo/index.js';
|
|
120
|
+
export { Flag } from './components/Flag/index.js';
|
|
121
|
+
export type { FlagProps } from './components/Flag/index.js';
|
|
122
|
+
export { CountryBadge } from './components/CountryBadge/index.js';
|
|
123
|
+
export type { CountryBadgeProps } from './components/CountryBadge/index.js';
|
|
124
|
+
export { KeyboardShortcut } from './components/KeyboardShortcut/index.js';
|
|
125
|
+
export type { KeyboardShortcutProps } from './components/KeyboardShortcut/index.js';
|
|
126
|
+
export { Dialog } from './components/Dialog/index.js';
|
|
127
|
+
export { AlertDialog } from './components/AlertDialog/index.js';
|
|
128
|
+
export { Popover } from './components/Popover/index.js';
|
|
129
|
+
export { Tooltip } from './components/Tooltip/index.js';
|
|
130
|
+
export { Provider as TooltipProvider } from './components/Tooltip/index.js';
|
|
131
|
+
export { HoverCard } from './components/HoverCard/index.js';
|
|
132
|
+
export { DropdownMenu } from './components/DropdownMenu/index.js';
|
|
133
|
+
export { ContextMenu } from './components/ContextMenu/index.js';
|
|
134
|
+
export { Menubar } from './components/Menubar/index.js';
|
|
135
|
+
export { NavigationMenu } from './components/NavigationMenu/index.js';
|
|
136
|
+
export { NavigationRail } from './components/NavigationRail/index.js';
|
|
137
|
+
export type { NavigationRailRootProps, NavigationRailItemProps } from './components/NavigationRail/index.js';
|
|
138
|
+
export { Drawer, Sheet } from './components/Drawer/index.js';
|
|
139
|
+
export type { DrawerRootProps } from './components/Drawer/index.js';
|
|
140
|
+
export { Select } from './components/Select/index.js';
|
|
141
|
+
export { Combobox } from './components/Combobox/index.js';
|
|
142
|
+
export { Autocomplete } from './components/Autocomplete/index.js';
|
|
143
|
+
export type { AutocompleteOption, AutocompleteProps } from './components/Autocomplete/index.js';
|
|
144
|
+
export { Switch } from './components/Switch/index.js';
|
|
145
|
+
export type { SwitchProps } from './components/Switch/index.js';
|
|
146
|
+
export { Checkbox } from './components/Checkbox/index.js';
|
|
147
|
+
export type { CheckboxProps } from './components/Checkbox/index.js';
|
|
148
|
+
export { RadioGroup } from './components/RadioGroup/index.js';
|
|
149
|
+
export { Slider } from './components/Slider/index.js';
|
|
150
|
+
export type { SliderProps } from './components/Slider/index.js';
|
|
151
|
+
export { Toggle, toggleVariants } from './components/Toggle/index.js';
|
|
152
|
+
export type { ToggleProps } from './components/Toggle/index.js';
|
|
153
|
+
export { ToggleGroup } from './components/ToggleGroup/index.js';
|
|
154
|
+
export { SegmentedControl } from './components/SegmentedControl/index.js';
|
|
155
|
+
export type { SegmentedControlProps, SegmentedControlItemProps } from './components/SegmentedControl/index.js';
|
|
156
|
+
export { Tabs } from './components/Tabs/index.js';
|
|
157
|
+
export { Accordion } from './components/Accordion/index.js';
|
|
158
|
+
export { Collapsible } from './components/Collapsible/index.js';
|
|
159
|
+
export { ScrollArea } from './components/ScrollArea/index.js';
|
|
160
|
+
export type { ScrollAreaProps } from './components/ScrollArea/index.js';
|
|
161
|
+
export { Toolbar } from './components/Toolbar/index.js';
|
|
162
|
+
export type { ToolbarRootProps } from './components/Toolbar/index.js';
|
|
163
|
+
export { Toast } from './components/Toast/index.js';
|
|
164
|
+
export { Toaster } from './components/Toast/index.js';
|
|
165
|
+
export { toast, useToastStore } from './components/Toast/index.js';
|
|
166
|
+
export type { ToastItem, ToasterProps, UndoableToastOptions } from './components/Toast/index.js';
|
|
167
|
+
export { TopNav } from './components/TopNav/index.js';
|
|
168
|
+
export type { TopNavItemProps, TopNavRootProps } from './components/TopNav/index.js';
|
|
169
|
+
export { Sidebar } from './components/Sidebar/index.js';
|
|
170
|
+
export type { SidebarRootProps, SidebarHeaderProps, SidebarGroupProps, SidebarItemProps } from './components/Sidebar/index.js';
|
|
171
|
+
export { AppShell } from './components/AppShell/index.js';
|
|
172
|
+
export { PageHeader } from './components/PageHeader/index.js';
|
|
173
|
+
export type { PageHeaderProps } from './components/PageHeader/index.js';
|
|
174
|
+
export { Breadcrumb } from './components/Breadcrumb/index.js';
|
|
175
|
+
export { Pagination } from './components/Pagination/index.js';
|
|
176
|
+
export type { PaginationProps } from './components/Pagination/index.js';
|
|
177
|
+
export { CommandPalette } from './components/CommandPalette/index.js';
|
|
178
|
+
export type { CommandPaletteRootProps } from './components/CommandPalette/index.js';
|
|
179
|
+
export { Table } from './components/Table/index.js';
|
|
180
|
+
export { DataTable } from './components/DataTable/index.js';
|
|
181
|
+
export type { DataTableProps } from './components/DataTable/index.js';
|
|
182
|
+
export { EmptyState } from './components/EmptyState/index.js';
|
|
183
|
+
export { ErrorState } from './components/ErrorState/index.js';
|
|
184
|
+
export type { ErrorStateProps } from './components/ErrorState/index.js';
|
|
185
|
+
export { FileUpload } from './components/FileUpload/index.js';
|
|
186
|
+
export type { FileUploadRootProps } from './components/FileUpload/index.js';
|
|
187
|
+
export { DatePicker } from './components/DatePicker/index.js';
|
|
188
|
+
export type { DatePickerProps } from './components/DatePicker/index.js';
|
|
189
|
+
export { DateRangePicker } from './components/DateRangePicker/index.js';
|
|
190
|
+
export type { DateRangePickerProps, DateRange } from './components/DateRangePicker/index.js';
|
|
191
|
+
export { ThemeProvider, ThemeScript, useTheme } from './components/ThemeProvider/index.js';
|
|
192
|
+
export type { ThemeMode, GlassMode, ThemeContextValue, ThemeProviderProps, ThemeScriptProps } from './components/ThemeProvider/index.js';
|
|
193
|
+
export { Fade, Slide, Scale, Collapse, ListTransition, SkeletonSwap, usePrefersReducedMotion, Reveal, Float, Marquee } from './components/Motion/index.js';
|
|
194
|
+
export type { FadeProps, SlideProps, SlideDirection, ScaleProps, CollapseProps, ListTransitionProps, SkeletonSwapProps, MotionDuration, MotionEasing, MotionBaseProps, RevealProps, FloatProps, MarqueeProps } from './components/Motion/index.js';
|
|
195
|
+
export type { DataTableColumn } from './components/DataTable/index.js';
|
|
196
|
+
export type { TableRootProps } from './components/Table/index.js';
|