@nexub/react 2.9.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-FRGFO4DS.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 -1900
- package/dist/index.js +116 -438
- 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/{chunk-VLME3JFF.js → utils/deprecated.js} +1 -5
- 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-CQQ5UAO3.js +0 -91
- 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-PXISQY4H.js +0 -59
- package/dist/chunk-VALIDQXU.js +0 -31
- package/dist/chunk-WLRRMT6W.js +0 -1
- package/dist/chunk-XIKO5XFW.js +0 -89
- package/dist/chunk-XYXMPHND.js +0 -1
- package/dist/chunk-YJU4ZRQZ.js +0 -1
- package/dist/chunk-Z46ISXJ6.js +0 -57
- package/dist/chunk-ZT3NWE5U.js +0 -1
- package/dist/chunk-ZXLACKEB.js +0 -8
- package/dist/components/Banner/index.js +0 -12
- package/dist/components/Callout/index.js +0 -11
- package/dist/components/StatusPill/index.js +0 -11
- package/dist/components/Tag/index.js +0 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Menubar: Record<string, any>;
|
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
floatingSurface,
|
|
4
|
-
menuContent,
|
|
5
|
-
menuItem,
|
|
6
|
-
menuLabel,
|
|
7
|
-
menuSeparator
|
|
8
|
-
} from "./chunk-5FWJXSXT.js";
|
|
9
|
-
import {
|
|
10
|
-
cn
|
|
11
|
-
} from "./chunk-WRVFNYO3.js";
|
|
12
|
-
|
|
13
|
-
// src/components/Menubar/Menubar.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
3
|
import * as React from "react";
|
|
15
4
|
import * as RadixMenubar from "@radix-ui/react-menubar";
|
|
16
5
|
import { Check, ChevronRight } from "@nexub/icons";
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
import { floatingSurface, menuContent, menuItem, menuLabel, menuSeparator } from "../../utils/surface.js";
|
|
8
|
+
const Menu = RadixMenubar.Menu;
|
|
9
|
+
const Portal = RadixMenubar.Portal;
|
|
10
|
+
const Group = RadixMenubar.Group;
|
|
11
|
+
const RadioGroup = RadixMenubar.RadioGroup;
|
|
12
|
+
const Sub = RadixMenubar.Sub;
|
|
13
|
+
const Root = React.forwardRef(
|
|
24
14
|
function MenubarRoot({ className, ...props }, ref) {
|
|
25
15
|
return /* @__PURE__ */ jsx(
|
|
26
16
|
RadixMenubar.Root,
|
|
@@ -35,8 +25,8 @@ var Root2 = React.forwardRef(
|
|
|
35
25
|
);
|
|
36
26
|
}
|
|
37
27
|
);
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
Root.displayName = "Menubar.Root";
|
|
29
|
+
const Trigger = React.forwardRef(
|
|
40
30
|
function MenubarTrigger({ className, ...props }, ref) {
|
|
41
31
|
return /* @__PURE__ */ jsx(
|
|
42
32
|
RadixMenubar.Trigger,
|
|
@@ -53,14 +43,14 @@ var Trigger2 = React.forwardRef(
|
|
|
53
43
|
);
|
|
54
44
|
}
|
|
55
45
|
);
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
Trigger.displayName = "Menubar.Trigger";
|
|
47
|
+
const contentBaseClasses = cn(
|
|
58
48
|
"z-[var(--z-popover)] min-w-48 outline-none",
|
|
59
49
|
floatingSurface,
|
|
60
50
|
menuContent,
|
|
61
51
|
"nx-motion nx-pop origin-[var(--radix-menubar-content-transform-origin)]"
|
|
62
52
|
);
|
|
63
|
-
|
|
53
|
+
const Content = React.forwardRef(
|
|
64
54
|
function MenubarContent({ className, sideOffset = 8, ...props }, ref) {
|
|
65
55
|
return /* @__PURE__ */ jsx(
|
|
66
56
|
RadixMenubar.Content,
|
|
@@ -73,11 +63,11 @@ var Content2 = React.forwardRef(
|
|
|
73
63
|
);
|
|
74
64
|
}
|
|
75
65
|
);
|
|
76
|
-
|
|
77
|
-
|
|
66
|
+
Content.displayName = "Menubar.Content";
|
|
67
|
+
const itemBaseClasses = cn(
|
|
78
68
|
menuItem
|
|
79
69
|
);
|
|
80
|
-
|
|
70
|
+
const Item = React.forwardRef(
|
|
81
71
|
function MenubarItem({ className, ...props }, ref) {
|
|
82
72
|
return /* @__PURE__ */ jsx(
|
|
83
73
|
RadixMenubar.Item,
|
|
@@ -89,8 +79,8 @@ var Item2 = React.forwardRef(
|
|
|
89
79
|
);
|
|
90
80
|
}
|
|
91
81
|
);
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
Item.displayName = "Menubar.Item";
|
|
83
|
+
const Label = React.forwardRef(
|
|
94
84
|
function MenubarLabel({ className, ...props }, ref) {
|
|
95
85
|
return /* @__PURE__ */ jsx(
|
|
96
86
|
RadixMenubar.Label,
|
|
@@ -105,8 +95,8 @@ var Label2 = React.forwardRef(
|
|
|
105
95
|
);
|
|
106
96
|
}
|
|
107
97
|
);
|
|
108
|
-
|
|
109
|
-
|
|
98
|
+
Label.displayName = "Menubar.Label";
|
|
99
|
+
const Separator = React.forwardRef(
|
|
110
100
|
function MenubarSeparator({ className, ...props }, ref) {
|
|
111
101
|
return /* @__PURE__ */ jsx(
|
|
112
102
|
RadixMenubar.Separator,
|
|
@@ -118,8 +108,8 @@ var Separator2 = React.forwardRef(
|
|
|
118
108
|
);
|
|
119
109
|
}
|
|
120
110
|
);
|
|
121
|
-
|
|
122
|
-
|
|
111
|
+
Separator.displayName = "Menubar.Separator";
|
|
112
|
+
const CheckboxItem = React.forwardRef(function MenubarCheckboxItem({ className, children, checked, ...props }, ref) {
|
|
123
113
|
return /* @__PURE__ */ jsxs(
|
|
124
114
|
RadixMenubar.CheckboxItem,
|
|
125
115
|
{
|
|
@@ -134,8 +124,8 @@ var CheckboxItem2 = React.forwardRef(function MenubarCheckboxItem({ className, c
|
|
|
134
124
|
}
|
|
135
125
|
);
|
|
136
126
|
});
|
|
137
|
-
|
|
138
|
-
|
|
127
|
+
CheckboxItem.displayName = "Menubar.CheckboxItem";
|
|
128
|
+
const RadioItem = React.forwardRef(function MenubarRadioItem({ className, children, ...props }, ref) {
|
|
139
129
|
return /* @__PURE__ */ jsxs(
|
|
140
130
|
RadixMenubar.RadioItem,
|
|
141
131
|
{
|
|
@@ -149,8 +139,8 @@ var RadioItem2 = React.forwardRef(function MenubarRadioItem({ className, childre
|
|
|
149
139
|
}
|
|
150
140
|
);
|
|
151
141
|
});
|
|
152
|
-
|
|
153
|
-
|
|
142
|
+
RadioItem.displayName = "Menubar.RadioItem";
|
|
143
|
+
const SubTrigger = React.forwardRef(function MenubarSubTrigger({ className, children, ...props }, ref) {
|
|
154
144
|
return /* @__PURE__ */ jsxs(
|
|
155
145
|
RadixMenubar.SubTrigger,
|
|
156
146
|
{
|
|
@@ -168,8 +158,8 @@ var SubTrigger2 = React.forwardRef(function MenubarSubTrigger({ className, child
|
|
|
168
158
|
}
|
|
169
159
|
);
|
|
170
160
|
});
|
|
171
|
-
|
|
172
|
-
|
|
161
|
+
SubTrigger.displayName = "Menubar.SubTrigger";
|
|
162
|
+
const SubContent = React.forwardRef(function MenubarSubContent({ className, ...props }, ref) {
|
|
173
163
|
return /* @__PURE__ */ jsx(
|
|
174
164
|
RadixMenubar.SubContent,
|
|
175
165
|
{
|
|
@@ -179,8 +169,8 @@ var SubContent2 = React.forwardRef(function MenubarSubContent({ className, ...pr
|
|
|
179
169
|
}
|
|
180
170
|
);
|
|
181
171
|
});
|
|
182
|
-
|
|
183
|
-
|
|
172
|
+
SubContent.displayName = "Menubar.SubContent";
|
|
173
|
+
const Arrow = React.forwardRef(
|
|
184
174
|
function MenubarArrow({ className, ...props }, ref) {
|
|
185
175
|
return /* @__PURE__ */ jsx(
|
|
186
176
|
RadixMenubar.Arrow,
|
|
@@ -192,26 +182,25 @@ var Arrow2 = React.forwardRef(
|
|
|
192
182
|
);
|
|
193
183
|
}
|
|
194
184
|
);
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
Root
|
|
198
|
-
Menu
|
|
199
|
-
Trigger
|
|
200
|
-
Portal
|
|
201
|
-
Content
|
|
202
|
-
Item
|
|
203
|
-
Group
|
|
204
|
-
Label
|
|
205
|
-
Separator
|
|
206
|
-
CheckboxItem
|
|
207
|
-
RadioGroup
|
|
208
|
-
RadioItem
|
|
209
|
-
Sub
|
|
210
|
-
SubTrigger
|
|
211
|
-
SubContent
|
|
212
|
-
Arrow
|
|
185
|
+
Arrow.displayName = "Menubar.Arrow";
|
|
186
|
+
const Menubar = {
|
|
187
|
+
Root,
|
|
188
|
+
Menu,
|
|
189
|
+
Trigger,
|
|
190
|
+
Portal,
|
|
191
|
+
Content,
|
|
192
|
+
Item,
|
|
193
|
+
Group,
|
|
194
|
+
Label,
|
|
195
|
+
Separator,
|
|
196
|
+
CheckboxItem,
|
|
197
|
+
RadioGroup,
|
|
198
|
+
RadioItem,
|
|
199
|
+
Sub,
|
|
200
|
+
SubTrigger,
|
|
201
|
+
SubContent,
|
|
202
|
+
Arrow
|
|
213
203
|
};
|
|
214
|
-
|
|
215
204
|
export {
|
|
216
205
|
Menubar
|
|
217
206
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Menubar } from './Menubar.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MessageStrings {
|
|
3
|
+
youSaid: string;
|
|
4
|
+
assistantSaid: string;
|
|
5
|
+
failedToSend: string;
|
|
6
|
+
retry: string;
|
|
7
|
+
copy: string;
|
|
8
|
+
copied: string;
|
|
9
|
+
goodResponse: string;
|
|
10
|
+
badResponse: string;
|
|
11
|
+
regenerate: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const defaultMessageStrings: MessageStrings;
|
|
14
|
+
export type MessageFrom = 'user' | 'assistant' | 'system';
|
|
15
|
+
export interface MessageBubbleProps extends React.HTMLAttributes<HTMLElement> {
|
|
16
|
+
/** Who sent it. (Not `role`, which is the ARIA attribute.) */
|
|
17
|
+
from: MessageFrom;
|
|
18
|
+
/** Assistant only: shown at the inline-start. */
|
|
19
|
+
avatar?: React.ReactNode;
|
|
20
|
+
/** Accessible label for the message; defaults to "You said" / "Assistant said". */
|
|
21
|
+
name?: string;
|
|
22
|
+
status?: 'sending' | 'error';
|
|
23
|
+
/** With status="error": renders a Retry text button. */
|
|
24
|
+
onRetry?: () => void;
|
|
25
|
+
messages?: Partial<MessageStrings>;
|
|
26
|
+
}
|
|
27
|
+
export declare const MessageBubble: React.ForwardRefExoticComponent<MessageBubbleProps & React.RefAttributes<HTMLElement>>;
|
|
28
|
+
export type Feedback = 'up' | 'down' | null;
|
|
29
|
+
export interface MessageActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
/** Text placed on the clipboard by Copy. */
|
|
31
|
+
text?: string;
|
|
32
|
+
/** Set false to hide Copy. @default true */
|
|
33
|
+
copy?: boolean;
|
|
34
|
+
feedback?: Feedback;
|
|
35
|
+
defaultFeedback?: Feedback;
|
|
36
|
+
/** Shows thumbs up/down when provided. */
|
|
37
|
+
onFeedback?: (feedback: Feedback) => void;
|
|
38
|
+
/** Shows Regenerate when provided. */
|
|
39
|
+
onRegenerate?: () => void;
|
|
40
|
+
messages?: Partial<MessageStrings>;
|
|
41
|
+
}
|
|
42
|
+
/** Copy / feedback / regenerate row. Fades in on hover or focus of the parent MessageBubble on pointer devices. */
|
|
43
|
+
export declare const MessageActions: React.ForwardRefExoticComponent<MessageActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Provider,
|
|
4
|
-
Tooltip
|
|
5
|
-
} from "./chunk-6SWOLUMF.js";
|
|
6
|
-
import {
|
|
7
|
-
useControllableState
|
|
8
|
-
} from "./chunk-JLUCMNVS.js";
|
|
9
|
-
import {
|
|
10
|
-
IconButton
|
|
11
|
-
} from "./chunk-RH2HEPC7.js";
|
|
12
|
-
import {
|
|
13
|
-
useNexubMessages
|
|
14
|
-
} from "./chunk-VMSWIC3O.js";
|
|
15
|
-
import {
|
|
16
|
-
cn
|
|
17
|
-
} from "./chunk-WRVFNYO3.js";
|
|
18
|
-
|
|
19
|
-
// src/components/MessageBubble/MessageBubble.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
20
3
|
import * as React from "react";
|
|
21
4
|
import { Copy, RefreshCw, ThumbsDown, ThumbsUp } from "@nexub/icons";
|
|
22
|
-
import {
|
|
23
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { IconButton } from "../IconButton/IconButton.js";
|
|
7
|
+
import { Provider as TooltipProvider, Tooltip } from "../Tooltip/Tooltip.js";
|
|
8
|
+
import { useControllableState } from "../../hooks/useControllableState.js";
|
|
9
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
10
|
+
const defaultMessageStrings = {
|
|
24
11
|
youSaid: "You said",
|
|
25
12
|
assistantSaid: "Assistant said",
|
|
26
13
|
failedToSend: "Failed to send",
|
|
@@ -31,7 +18,7 @@ var defaultMessageStrings = {
|
|
|
31
18
|
badResponse: "Bad response",
|
|
32
19
|
regenerate: "Regenerate"
|
|
33
20
|
};
|
|
34
|
-
|
|
21
|
+
const MessageBubble = React.forwardRef(
|
|
35
22
|
({ from, avatar, name, status, onRetry, messages, className, children, ...props }, ref) => {
|
|
36
23
|
const m = { ...useNexubMessages(), ...messages };
|
|
37
24
|
const label = name ?? (from === "user" ? m.youSaid : from === "assistant" ? m.assistantSaid : void 0);
|
|
@@ -80,7 +67,7 @@ var MessageBubble = React.forwardRef(
|
|
|
80
67
|
}
|
|
81
68
|
);
|
|
82
69
|
MessageBubble.displayName = "MessageBubble";
|
|
83
|
-
|
|
70
|
+
const MessageActions = React.forwardRef(
|
|
84
71
|
({ text = "", copy = true, feedback: feedbackProp, defaultFeedback = null, onFeedback, onRegenerate, messages, className, ...props }, ref) => {
|
|
85
72
|
const m = { ...useNexubMessages(), ...messages };
|
|
86
73
|
const [feedback, setFeedback] = useControllableState({
|
|
@@ -102,7 +89,7 @@ var MessageActions = React.forwardRef(
|
|
|
102
89
|
timer.current = setTimeout(() => setCopied(false), 1500);
|
|
103
90
|
};
|
|
104
91
|
const toggle = (value) => setFeedback(feedback === value ? null : value);
|
|
105
|
-
return /* @__PURE__ */ jsx(
|
|
92
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(
|
|
106
93
|
"div",
|
|
107
94
|
{
|
|
108
95
|
ref,
|
|
@@ -126,9 +113,8 @@ var MessageActions = React.forwardRef(
|
|
|
126
113
|
}
|
|
127
114
|
);
|
|
128
115
|
MessageActions.displayName = "MessageActions";
|
|
129
|
-
|
|
130
116
|
export {
|
|
131
|
-
|
|
117
|
+
MessageActions,
|
|
132
118
|
MessageBubble,
|
|
133
|
-
|
|
119
|
+
defaultMessageStrings
|
|
134
120
|
};
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
MessageActions,
|
|
4
|
-
MessageBubble,
|
|
5
|
-
defaultMessageStrings
|
|
6
|
-
} from "../../chunk-RNS35DNZ.js";
|
|
7
|
-
import "../../chunk-6SWOLUMF.js";
|
|
8
|
-
import "../../chunk-JLUCMNVS.js";
|
|
9
|
-
import "../../chunk-NHUQLIHL.js";
|
|
10
|
-
import "../../chunk-RH2HEPC7.js";
|
|
11
|
-
import "../../chunk-VALIDQXU.js";
|
|
12
|
-
import "../../chunk-VMSWIC3O.js";
|
|
13
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { MessageBubble, MessageActions, defaultMessageStrings } from "./MessageBubble.js";
|
|
14
2
|
export {
|
|
15
3
|
MessageActions,
|
|
16
4
|
MessageBubble,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type InputProps } from '../Input/Input.js';
|
|
3
|
+
export interface MoneyInputProps extends Omit<InputProps, 'value' | 'defaultValue' | 'onChange' | 'type' | 'inputMode' | 'leadingIcon' | 'leadingAddon'> {
|
|
4
|
+
/** The amount, or null when empty. */
|
|
5
|
+
value?: number | null;
|
|
6
|
+
defaultValue?: number | null;
|
|
7
|
+
/** Called with the parsed amount (rounded to the currency's minor unit) as the person types. */
|
|
8
|
+
onValueChange?: (value: number | null) => void;
|
|
9
|
+
/** ISO 4217 code, e.g. 'USD'. */
|
|
10
|
+
currency: string;
|
|
11
|
+
/** BCP 47 locale for separators. Defaults to the user's. */
|
|
12
|
+
locale?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* An amount field: the currency symbol leads, digits are tabular, the locale's
|
|
16
|
+
* separators parse correctly, and the value is grouped on blur
|
|
17
|
+
* (e.g. 1234.5 → "1,234.50"). Raw while editing so the caret never jumps.
|
|
18
|
+
*/
|
|
19
|
+
export declare const MoneyInput: React.ForwardRefExoticComponent<MoneyInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
useControllableState
|
|
4
|
-
} from "./chunk-JLUCMNVS.js";
|
|
5
|
-
import {
|
|
6
|
-
Input
|
|
7
|
-
} from "./chunk-G7VMAWAX.js";
|
|
8
|
-
import {
|
|
9
|
-
currencySymbol,
|
|
10
|
-
formatForDisplay,
|
|
11
|
-
formatForEditing,
|
|
12
|
-
parseMoney
|
|
13
|
-
} from "./chunk-R3SUPKKI.js";
|
|
14
|
-
import {
|
|
15
|
-
useIntlLocale
|
|
16
|
-
} from "./chunk-VMSWIC3O.js";
|
|
17
|
-
import {
|
|
18
|
-
cn
|
|
19
|
-
} from "./chunk-WRVFNYO3.js";
|
|
20
|
-
|
|
21
|
-
// src/components/MoneyInput/MoneyInput.tsx
|
|
22
|
-
import * as React from "react";
|
|
1
|
+
"use client";
|
|
23
2
|
import { jsx } from "react/jsx-runtime";
|
|
24
|
-
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
import { useIntlLocale } from "../NexubProvider/NexubProvider.js";
|
|
6
|
+
import { useControllableState } from "../../hooks/useControllableState.js";
|
|
7
|
+
import { currencySymbol, formatForDisplay, formatForEditing, parseMoney } from "../../utils/money.js";
|
|
8
|
+
import { Input } from "../Input/Input.js";
|
|
9
|
+
const MoneyInput = React.forwardRef(
|
|
25
10
|
({ value: valueProp, defaultValue = null, onValueChange, currency, locale: localeProp, onFocus, onBlur, className, ...props }, ref) => {
|
|
26
11
|
const locale = useIntlLocale(localeProp);
|
|
27
12
|
const [value, setValue] = useControllableState({
|
|
@@ -59,7 +44,6 @@ var MoneyInput = React.forwardRef(
|
|
|
59
44
|
}
|
|
60
45
|
);
|
|
61
46
|
MoneyInput.displayName = "MoneyInput";
|
|
62
|
-
|
|
63
47
|
export {
|
|
64
48
|
MoneyInput
|
|
65
49
|
};
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
MoneyInput
|
|
4
|
-
} from "../../chunk-FOFNTKCK.js";
|
|
5
|
-
import "../../chunk-JLUCMNVS.js";
|
|
6
|
-
import "../../chunk-NHUQLIHL.js";
|
|
7
|
-
import "../../chunk-G7VMAWAX.js";
|
|
8
|
-
import "../../chunk-VALIDQXU.js";
|
|
9
|
-
import "../../chunk-R3SUPKKI.js";
|
|
10
|
-
import "../../chunk-VMSWIC3O.js";
|
|
11
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { MoneyInput } from "./MoneyInput.js";
|
|
12
2
|
export {
|
|
13
3
|
MoneyInput
|
|
14
4
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { MotionBaseProps } from './motion.types.js';
|
|
3
|
+
export interface CollapseProps extends Omit<MotionBaseProps, 'easing'>, React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Legacy: set it to use `--duration-*` + `--ease-{value}` instead of the
|
|
6
|
+
* spatial spring for the height transition.
|
|
7
|
+
*/
|
|
8
|
+
easing?: MotionBaseProps['easing'];
|
|
9
|
+
/**
|
|
10
|
+
* Starting height when collapsed. Useful for "peek" effects.
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
collapsedHeight?: number | string;
|
|
14
|
+
/** Wrapper element tag. @default 'div' */
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Collapse — animates `max-height` to reveal / hide content on the spatial
|
|
19
|
+
* spring. Reduced motion snaps the height instead of animating it.
|
|
20
|
+
* Height is measured from the content ref so you don't need to
|
|
21
|
+
* provide an explicit height.
|
|
22
|
+
*
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Collapse in={isOpen}>
|
|
25
|
+
* <p>Hidden content</p>
|
|
26
|
+
* </Collapse>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { DURATION_MS, SPRING_MS, SPRING_SPEED, spring, usePrefersReducedMotion } from "./useMotion.js";
|
|
5
|
+
const Collapse = React.forwardRef(function Collapse2({
|
|
6
|
+
in: visible,
|
|
7
|
+
duration = "normal",
|
|
8
|
+
easing,
|
|
9
|
+
unmountOnExit = false,
|
|
10
|
+
collapsedHeight = 0,
|
|
11
|
+
children,
|
|
12
|
+
style,
|
|
13
|
+
as: Tag = "div",
|
|
14
|
+
...rest
|
|
15
|
+
}, ref) {
|
|
16
|
+
const innerRef = React.useRef(null);
|
|
17
|
+
const reduced = usePrefersReducedMotion();
|
|
18
|
+
const legacy = easing !== void 0;
|
|
19
|
+
const settleMs = duration === "instant" || reduced ? 0 : legacy ? DURATION_MS[duration] : SPRING_MS.spatial[SPRING_SPEED[duration]];
|
|
20
|
+
const [height, setHeight] = React.useState(visible ? "auto" : 0);
|
|
21
|
+
const [overflow, setOverflow] = React.useState(
|
|
22
|
+
visible ? "visible" : "hidden"
|
|
23
|
+
);
|
|
24
|
+
const [mounted, setMounted] = React.useState(unmountOnExit ? visible : true);
|
|
25
|
+
const prevVisible = React.useRef(visible);
|
|
26
|
+
React.useEffect(() => {
|
|
27
|
+
const changed = prevVisible.current !== visible;
|
|
28
|
+
prevVisible.current = visible;
|
|
29
|
+
if (!changed) return;
|
|
30
|
+
let raf1 = 0;
|
|
31
|
+
let raf2 = 0;
|
|
32
|
+
if (visible) {
|
|
33
|
+
setMounted(true);
|
|
34
|
+
raf1 = requestAnimationFrame(() => {
|
|
35
|
+
const el = innerRef.current;
|
|
36
|
+
if (el) {
|
|
37
|
+
setHeight(el.scrollHeight);
|
|
38
|
+
setOverflow("hidden");
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
} else {
|
|
42
|
+
const el = innerRef.current;
|
|
43
|
+
if (el) {
|
|
44
|
+
setHeight(el.scrollHeight);
|
|
45
|
+
setOverflow("hidden");
|
|
46
|
+
raf1 = requestAnimationFrame(() => {
|
|
47
|
+
raf2 = requestAnimationFrame(() => {
|
|
48
|
+
setHeight(typeof collapsedHeight === "number" ? collapsedHeight : 0);
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return () => {
|
|
54
|
+
cancelAnimationFrame(raf1);
|
|
55
|
+
cancelAnimationFrame(raf2);
|
|
56
|
+
};
|
|
57
|
+
}, [visible, collapsedHeight]);
|
|
58
|
+
const finish = React.useCallback(() => {
|
|
59
|
+
if (visible) {
|
|
60
|
+
setHeight("auto");
|
|
61
|
+
setOverflow("visible");
|
|
62
|
+
} else if (unmountOnExit) {
|
|
63
|
+
setMounted(false);
|
|
64
|
+
}
|
|
65
|
+
}, [visible, unmountOnExit]);
|
|
66
|
+
const handleTransitionEnd = React.useCallback(
|
|
67
|
+
(e) => {
|
|
68
|
+
if (e.target !== e.currentTarget || e.propertyName !== "max-height") return;
|
|
69
|
+
finish();
|
|
70
|
+
},
|
|
71
|
+
[finish]
|
|
72
|
+
);
|
|
73
|
+
const firstRender = React.useRef(true);
|
|
74
|
+
React.useEffect(() => {
|
|
75
|
+
if (firstRender.current) {
|
|
76
|
+
firstRender.current = false;
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const t = setTimeout(finish, settleMs + 100);
|
|
80
|
+
return () => clearTimeout(t);
|
|
81
|
+
}, [visible, settleMs, finish]);
|
|
82
|
+
if (!mounted) return null;
|
|
83
|
+
const maxHeight = height === "auto" ? "none" : `${height}px`;
|
|
84
|
+
return /* @__PURE__ */ jsx(
|
|
85
|
+
Tag,
|
|
86
|
+
{
|
|
87
|
+
ref,
|
|
88
|
+
style: {
|
|
89
|
+
maxHeight,
|
|
90
|
+
overflow,
|
|
91
|
+
transition: duration === "instant" || reduced ? "none" : legacy ? `max-height var(--duration-${duration}) var(--ease-${easing})` : spring("max-height", "spatial", SPRING_SPEED[duration]),
|
|
92
|
+
...style
|
|
93
|
+
},
|
|
94
|
+
onTransitionEnd: handleTransitionEnd,
|
|
95
|
+
...rest,
|
|
96
|
+
children: /* @__PURE__ */ jsx("div", { ref: innerRef, children })
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
});
|
|
100
|
+
Collapse.displayName = "Collapse";
|
|
101
|
+
export {
|
|
102
|
+
Collapse
|
|
103
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { MotionBaseProps } from './motion.types.js';
|
|
3
|
+
export interface FadeProps extends MotionBaseProps, React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Wrapper element tag. @default 'div' */
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Fade — animates opacity between 0 and 1.
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Fade in={isOpen}>
|
|
12
|
+
* <p>Hello</p>
|
|
13
|
+
* </Fade>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const Fade: React.ForwardRefExoticComponent<FadeProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useMotion } from "./useMotion.js";
|
|
5
|
+
const Fade = React.forwardRef(function Fade2({
|
|
6
|
+
in: visible,
|
|
7
|
+
duration = "normal",
|
|
8
|
+
easing,
|
|
9
|
+
unmountOnExit = false,
|
|
10
|
+
children,
|
|
11
|
+
style,
|
|
12
|
+
as: Tag = "div",
|
|
13
|
+
...rest
|
|
14
|
+
}, ref) {
|
|
15
|
+
const { phase, mounted, transitionStyle, handleTransitionEnd } = useMotion({
|
|
16
|
+
visible,
|
|
17
|
+
duration,
|
|
18
|
+
easing,
|
|
19
|
+
unmountOnExit
|
|
20
|
+
});
|
|
21
|
+
if (!mounted) return null;
|
|
22
|
+
const opacity = phase === "entered" ? 1 : 0;
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
Tag,
|
|
25
|
+
{
|
|
26
|
+
ref,
|
|
27
|
+
onTransitionEnd: handleTransitionEnd,
|
|
28
|
+
style: {
|
|
29
|
+
opacity,
|
|
30
|
+
willChange: "opacity",
|
|
31
|
+
...transitionStyle,
|
|
32
|
+
...style
|
|
33
|
+
},
|
|
34
|
+
...rest,
|
|
35
|
+
children
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
});
|
|
39
|
+
Fade.displayName = "Fade";
|
|
40
|
+
export {
|
|
41
|
+
Fade
|
|
42
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FloatProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** `slow` drifts on a longer, reversed loop, so two floating cards don't move in step. */
|
|
4
|
+
speed?: 'normal' | 'slow';
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** Gently bobs its content, in marketing mode (@nexub/themes/marketing). Still under reduced motion. */
|
|
8
|
+
export declare const Float: React.ForwardRefExoticComponent<FloatProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
const Float = React.forwardRef(
|
|
6
|
+
({ speed = "normal", asChild = false, className, ...props }, ref) => {
|
|
7
|
+
const Comp = asChild ? Slot : "div";
|
|
8
|
+
return /* @__PURE__ */ jsx(Comp, { ref, "data-speed": speed, className: cn("nx-mkt-float", className), ...props });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
Float.displayName = "Float";
|
|
12
|
+
export {
|
|
13
|
+
Float
|
|
14
|
+
};
|