@nexub/react 3.0.0 → 3.2.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/Chart/Chart.d.ts +81 -0
- package/dist/components/Chart/Chart.js +174 -0
- package/dist/components/Chart/index.d.ts +2 -0
- package/dist/components/Chart/index.js +9 -0
- 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 +198 -1849
- package/dist/index.js +123 -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
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type ToastTone = 'success' | 'error' | 'warning' | 'info' | 'neutral';
|
|
2
|
+
export interface ToastItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
tone?: ToastTone;
|
|
7
|
+
duration?: number;
|
|
8
|
+
action?: {
|
|
9
|
+
label: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
};
|
|
12
|
+
/** An Undo action; its label defaults to the `undo` message. Set by `toast.undoable`. */
|
|
13
|
+
undo?: {
|
|
14
|
+
label?: string;
|
|
15
|
+
onUndo: () => void;
|
|
16
|
+
};
|
|
17
|
+
/** Called once when the toast closes, however it closes (timer, swipe, close, action, dismiss). */
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
}
|
|
20
|
+
export interface UndoableToastOptions {
|
|
21
|
+
/** Called when Undo is clicked; the toast then closes. */
|
|
22
|
+
onUndo: () => void;
|
|
23
|
+
/** Called once when the toast closes any other way — the change is final. */
|
|
24
|
+
onCommit?: () => void;
|
|
25
|
+
/** @default the `undo` message ('Undo') */
|
|
26
|
+
undoLabel?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
duration?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare function useToastStore(): ToastItem[];
|
|
31
|
+
/** Runs a toast's onClose at most once. Internal: the Toaster calls it when Radix closes a toast. */
|
|
32
|
+
export declare function fireToastClose(item: ToastItem): void;
|
|
33
|
+
declare function dismiss(id?: string): void;
|
|
34
|
+
declare function undoable(title: string, { onUndo, onCommit, undoLabel, description, duration }: UndoableToastOptions): string;
|
|
35
|
+
export declare const toast: {
|
|
36
|
+
success: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
37
|
+
error: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
38
|
+
info: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
39
|
+
warning: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
40
|
+
custom: (title: string, opts?: Partial<Omit<ToastItem, "id" | "title" | "tone">>) => string;
|
|
41
|
+
/** A toast with an Undo action: Undo calls `onUndo`; any other close calls `onCommit`, once. */
|
|
42
|
+
undoable: typeof undoable;
|
|
43
|
+
dismiss: typeof dismiss;
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
const g = typeof window !== "undefined" ? (() => {
|
|
4
|
+
const _g = globalThis;
|
|
5
|
+
_g.__nexub_toast_items ??= [];
|
|
6
|
+
_g.__nexub_toast_listeners ??= /* @__PURE__ */ new Set();
|
|
7
|
+
_g.__nexub_toast_counter ??= 0;
|
|
8
|
+
return _g;
|
|
9
|
+
})() : { __nexub_toast_items: [], __nexub_toast_listeners: /* @__PURE__ */ new Set(), __nexub_toast_counter: 0 };
|
|
10
|
+
function notify() {
|
|
11
|
+
g.__nexub_toast_listeners.forEach((l) => l([...g.__nexub_toast_items]));
|
|
12
|
+
}
|
|
13
|
+
function add(item) {
|
|
14
|
+
const id = String(++g.__nexub_toast_counter);
|
|
15
|
+
g.__nexub_toast_items = [...g.__nexub_toast_items, { ...item, id }];
|
|
16
|
+
notify();
|
|
17
|
+
return id;
|
|
18
|
+
}
|
|
19
|
+
function useToastStore() {
|
|
20
|
+
const [state, setState] = useState([...g.__nexub_toast_items]);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
g.__nexub_toast_listeners.add(setState);
|
|
23
|
+
return () => {
|
|
24
|
+
g.__nexub_toast_listeners.delete(setState);
|
|
25
|
+
};
|
|
26
|
+
}, []);
|
|
27
|
+
return state;
|
|
28
|
+
}
|
|
29
|
+
const closeFired = /* @__PURE__ */ new Set();
|
|
30
|
+
function fireToastClose(item) {
|
|
31
|
+
if (closeFired.has(item.id)) return;
|
|
32
|
+
closeFired.add(item.id);
|
|
33
|
+
item.onClose?.();
|
|
34
|
+
}
|
|
35
|
+
function dismiss(id) {
|
|
36
|
+
const removed = id ? g.__nexub_toast_items.filter((i) => i.id === id) : g.__nexub_toast_items;
|
|
37
|
+
g.__nexub_toast_items = id ? g.__nexub_toast_items.filter((i) => i.id !== id) : [];
|
|
38
|
+
notify();
|
|
39
|
+
for (const item of removed) {
|
|
40
|
+
fireToastClose(item);
|
|
41
|
+
closeFired.delete(item.id);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function undoable(title, { onUndo, onCommit, undoLabel, description, duration }) {
|
|
45
|
+
let undone = false;
|
|
46
|
+
return add({
|
|
47
|
+
title,
|
|
48
|
+
tone: "neutral",
|
|
49
|
+
description,
|
|
50
|
+
duration,
|
|
51
|
+
undo: { label: undoLabel, onUndo: () => {
|
|
52
|
+
undone = true;
|
|
53
|
+
onUndo();
|
|
54
|
+
} },
|
|
55
|
+
onClose: () => {
|
|
56
|
+
if (!undone) onCommit?.();
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
const toast = {
|
|
61
|
+
success: (title, opts) => add({ title, tone: "success", ...opts }),
|
|
62
|
+
error: (title, opts) => add({ title, tone: "error", ...opts }),
|
|
63
|
+
info: (title, opts) => add({ title, tone: "info", ...opts }),
|
|
64
|
+
warning: (title, opts) => add({ title, tone: "warning", ...opts }),
|
|
65
|
+
custom: (title, opts) => add({ title, tone: "neutral", ...opts }),
|
|
66
|
+
/** A toast with an Undo action: Undo calls `onUndo`; any other close calls `onCommit`, once. */
|
|
67
|
+
undoable,
|
|
68
|
+
dismiss
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
fireToastClose,
|
|
72
|
+
toast,
|
|
73
|
+
useToastStore
|
|
74
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixToggle from '@radix-ui/react-toggle';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
export declare const toggleVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "outline" | null | undefined;
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface ToggleProps extends RadixToggle.ToggleProps, VariantProps<typeof toggleVariants> {
|
|
9
|
+
}
|
|
10
|
+
export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Toggle/Toggle.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
3
|
import * as React from "react";
|
|
8
4
|
import * as RadixToggle from "@radix-ui/react-toggle";
|
|
9
5
|
import { cva } from "class-variance-authority";
|
|
10
|
-
import {
|
|
11
|
-
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
const toggleVariants = cva(
|
|
12
8
|
[
|
|
13
9
|
// Pressable capsule; on = the secondary container (tonal selection).
|
|
14
10
|
"nx-state-layer nx-press relative inline-flex items-center justify-center gap-2 rounded-shape-control select-none",
|
|
@@ -31,7 +27,7 @@ var toggleVariants = cva(
|
|
|
31
27
|
defaultVariants: { variant: "default", size: "md" }
|
|
32
28
|
}
|
|
33
29
|
);
|
|
34
|
-
|
|
30
|
+
const Toggle = React.forwardRef(
|
|
35
31
|
({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
36
32
|
RadixToggle.Root,
|
|
37
33
|
{
|
|
@@ -42,8 +38,7 @@ var Toggle = React.forwardRef(
|
|
|
42
38
|
)
|
|
43
39
|
);
|
|
44
40
|
Toggle.displayName = "Toggle";
|
|
45
|
-
|
|
46
41
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
Toggle,
|
|
43
|
+
toggleVariants
|
|
49
44
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixToggleGroup from '@radix-ui/react-toggle-group';
|
|
3
|
+
import { toggleVariants } from '../Toggle/Toggle.js';
|
|
4
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
5
|
+
type RootProps = (RadixToggleGroup.ToggleGroupSingleProps | RadixToggleGroup.ToggleGroupMultipleProps) & {
|
|
6
|
+
variant?: VariantProps<typeof toggleVariants>['variant'];
|
|
7
|
+
size?: VariantProps<typeof toggleVariants>['size'];
|
|
8
|
+
};
|
|
9
|
+
export declare const ToggleGroup: {
|
|
10
|
+
Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Item: React.ForwardRefExoticComponent<RadixToggleGroup.ToggleGroupItemProps & VariantProps<(props?: ({
|
|
12
|
+
variant?: "default" | "outline" | null | undefined;
|
|
13
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
toggleVariants
|
|
4
|
-
} from "./chunk-NMSQDI4A.js";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "./chunk-WRVFNYO3.js";
|
|
8
|
-
|
|
9
|
-
// src/components/ToggleGroup/ToggleGroup.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
3
|
import * as React from "react";
|
|
11
4
|
import * as RadixToggleGroup from "@radix-ui/react-toggle-group";
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { toggleVariants } from "../Toggle/Toggle.js";
|
|
7
|
+
const ToggleGroupContext = React.createContext({});
|
|
8
|
+
const Root = React.forwardRef(
|
|
15
9
|
({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size }, children: /* @__PURE__ */ jsx(
|
|
16
10
|
RadixToggleGroup.Root,
|
|
17
11
|
{
|
|
@@ -21,8 +15,8 @@ var Root2 = React.forwardRef(
|
|
|
21
15
|
}
|
|
22
16
|
) })
|
|
23
17
|
);
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
Root.displayName = "ToggleGroup.Root";
|
|
19
|
+
const Item = React.forwardRef(
|
|
26
20
|
({ className, variant, size, ...props }, ref) => {
|
|
27
21
|
const ctx = React.useContext(ToggleGroupContext);
|
|
28
22
|
return /* @__PURE__ */ jsx(
|
|
@@ -35,9 +29,8 @@ var Item2 = React.forwardRef(
|
|
|
35
29
|
);
|
|
36
30
|
}
|
|
37
31
|
);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
Item.displayName = "ToggleGroup.Item";
|
|
33
|
+
const ToggleGroup = { Root, Item };
|
|
41
34
|
export {
|
|
42
35
|
ToggleGroup
|
|
43
36
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ToggleGroup } from './ToggleGroup.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixToolbar from '@radix-ui/react-toolbar';
|
|
3
|
+
export interface ToolbarRootProps extends RadixToolbar.ToolbarProps {
|
|
4
|
+
/**
|
|
5
|
+
* Floating toolbar (Apple / M3 Expressive): a glass capsule for the control
|
|
6
|
+
* layer above content, e.g. editor or selection actions.
|
|
7
|
+
*/
|
|
8
|
+
floating?: boolean;
|
|
9
|
+
/** With `floating`: pin it to the bottom centre of the viewport. */
|
|
10
|
+
placement?: 'bottom';
|
|
11
|
+
}
|
|
12
|
+
export declare const Toolbar: {
|
|
13
|
+
Root: React.ForwardRefExoticComponent<ToolbarRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Button: React.ForwardRefExoticComponent<RadixToolbar.ToolbarButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
Separator: React.ForwardRefExoticComponent<RadixToolbar.ToolbarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
ToggleGroup: React.ForwardRefExoticComponent<(RadixToolbar.ToolbarToggleGroupSingleProps | RadixToolbar.ToolbarToggleGroupMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
ToggleItem: React.ForwardRefExoticComponent<RadixToolbar.ToolbarToggleItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
};
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
glassSurfaceClass
|
|
4
|
-
} from "./chunk-DEIBF3P7.js";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "./chunk-WRVFNYO3.js";
|
|
8
|
-
|
|
9
|
-
// src/components/Toolbar/Toolbar.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
3
|
import * as React from "react";
|
|
11
4
|
import * as RadixToolbar from "@radix-ui/react-toolbar";
|
|
12
|
-
import {
|
|
13
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { glassSurfaceClass } from "../../utils/glass.js";
|
|
7
|
+
const Root = React.forwardRef(
|
|
14
8
|
({ className, floating = false, placement, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
15
9
|
RadixToolbar.Root,
|
|
16
10
|
{
|
|
@@ -26,16 +20,16 @@ var Root2 = React.forwardRef(
|
|
|
26
20
|
}
|
|
27
21
|
)
|
|
28
22
|
);
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
Root.displayName = "Toolbar.Root";
|
|
24
|
+
const item = [
|
|
31
25
|
"nx-state-layer nx-press relative inline-flex h-control-sm items-center justify-center gap-1.5 rounded-shape-control text-label-lg text-[var(--color-on-surface)] select-none",
|
|
32
26
|
"disabled:pointer-events-none disabled:text-[var(--color-text-disabled)]"
|
|
33
27
|
].join(" ");
|
|
34
|
-
|
|
28
|
+
const ToolbarButton = React.forwardRef(
|
|
35
29
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadixToolbar.Button, { ref, className: cn(item, "px-3", className), ...props })
|
|
36
30
|
);
|
|
37
31
|
ToolbarButton.displayName = "Toolbar.Button";
|
|
38
|
-
|
|
32
|
+
const Separator = React.forwardRef(
|
|
39
33
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
40
34
|
RadixToolbar.Separator,
|
|
41
35
|
{
|
|
@@ -45,8 +39,8 @@ var Separator2 = React.forwardRef(
|
|
|
45
39
|
}
|
|
46
40
|
)
|
|
47
41
|
);
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
Separator.displayName = "Toolbar.Separator";
|
|
43
|
+
const ToggleGroup = React.forwardRef(
|
|
50
44
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
51
45
|
RadixToolbar.ToggleGroup,
|
|
52
46
|
{
|
|
@@ -56,8 +50,8 @@ var ToggleGroup2 = React.forwardRef(
|
|
|
56
50
|
}
|
|
57
51
|
)
|
|
58
52
|
);
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
ToggleGroup.displayName = "Toolbar.ToggleGroup";
|
|
54
|
+
const ToggleItem = React.forwardRef(
|
|
61
55
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
62
56
|
RadixToolbar.ToggleItem,
|
|
63
57
|
{
|
|
@@ -71,9 +65,8 @@ var ToggleItem2 = React.forwardRef(
|
|
|
71
65
|
}
|
|
72
66
|
)
|
|
73
67
|
);
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
ToggleItem.displayName = "Toolbar.ToggleItem";
|
|
69
|
+
const Toolbar = { Root, Button: ToolbarButton, Separator, ToggleGroup, ToggleItem };
|
|
77
70
|
export {
|
|
78
71
|
Toolbar
|
|
79
72
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
3
|
+
declare function Provider({ delayDuration, skipDelayDuration, ...props }: RadixTooltip.TooltipProviderProps): React.JSX.Element;
|
|
4
|
+
declare const Root: React.FC<RadixTooltip.TooltipProps>;
|
|
5
|
+
declare const Trigger: React.ForwardRefExoticComponent<RadixTooltip.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const Content: React.ForwardRefExoticComponent<RadixTooltip.TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
interface TooltipProps {
|
|
8
|
+
label: string;
|
|
9
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
10
|
+
delayDuration?: number;
|
|
11
|
+
children: React.ReactElement;
|
|
12
|
+
}
|
|
13
|
+
declare function Tooltip({ label, side, delayDuration, children }: TooltipProps): React.JSX.Element;
|
|
14
|
+
export { Provider, Root, Trigger, Content, Tooltip };
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Tooltip/Tooltip.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
3
|
import * as React from "react";
|
|
8
4
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
9
|
-
import {
|
|
10
|
-
function
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
function Provider({ delayDuration = 400, skipDelayDuration = 300, ...props }) {
|
|
11
7
|
return /* @__PURE__ */ jsx(RadixTooltip.Provider, { delayDuration, skipDelayDuration, ...props });
|
|
12
8
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const Root = RadixTooltip.Root;
|
|
10
|
+
const Trigger = RadixTooltip.Trigger;
|
|
11
|
+
const Content = React.forwardRef(
|
|
16
12
|
function TooltipContent({ className, sideOffset = 4, ...props }, ref) {
|
|
17
13
|
return /* @__PURE__ */ jsx(
|
|
18
14
|
RadixTooltip.Content,
|
|
@@ -29,18 +25,17 @@ var Content2 = React.forwardRef(
|
|
|
29
25
|
);
|
|
30
26
|
}
|
|
31
27
|
);
|
|
32
|
-
|
|
28
|
+
Content.displayName = "Tooltip.Content";
|
|
33
29
|
function Tooltip({ label, side = "top", delayDuration = 400, children }) {
|
|
34
|
-
return /* @__PURE__ */ jsxs(
|
|
35
|
-
/* @__PURE__ */ jsx(
|
|
36
|
-
/* @__PURE__ */ jsx(RadixTooltip.Portal, { children: /* @__PURE__ */ jsx(
|
|
30
|
+
return /* @__PURE__ */ jsxs(Root, { delayDuration, children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Trigger, { asChild: true, children }),
|
|
32
|
+
/* @__PURE__ */ jsx(RadixTooltip.Portal, { children: /* @__PURE__ */ jsx(Content, { side, children: label }) })
|
|
37
33
|
] });
|
|
38
34
|
}
|
|
39
|
-
|
|
40
35
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
Content,
|
|
37
|
+
Provider,
|
|
38
|
+
Root,
|
|
39
|
+
Tooltip,
|
|
40
|
+
Trigger
|
|
46
41
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Provider, Root, Trigger, Content, Tooltip } from './Tooltip.js';
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import "../../chunk-XYXMPHND.js";
|
|
3
|
-
import {
|
|
4
|
-
Content,
|
|
5
|
-
Provider,
|
|
6
|
-
Root,
|
|
7
|
-
Tooltip,
|
|
8
|
-
Trigger
|
|
9
|
-
} from "../../chunk-6SWOLUMF.js";
|
|
10
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { Provider, Root, Trigger, Content, Tooltip } from "./Tooltip.js";
|
|
11
2
|
export {
|
|
12
3
|
Content,
|
|
13
4
|
Provider,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type SurfaceValue } from '../../utils/glass.js';
|
|
3
|
+
export interface TopNavRootProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
surface?: SurfaceValue;
|
|
5
|
+
/** Sticky-bar edge: `soft` dissolves scrolling content under the bar (no
|
|
6
|
+
* divider), `hard` is an opaque band for pinned headers. Default: a divider. */
|
|
7
|
+
scrollEdge?: 'soft' | 'hard';
|
|
8
|
+
}
|
|
9
|
+
export interface TopNavItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
10
|
+
active?: boolean;
|
|
11
|
+
/** Render the child element (e.g. a router `<Link>`) instead of an `<a>`. */
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const TopNav: {
|
|
15
|
+
Root: React.ForwardRefExoticComponent<TopNavRootProps & React.RefAttributes<HTMLElement>>;
|
|
16
|
+
Logo: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Menu: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
18
|
+
Item: React.ForwardRefExoticComponent<TopNavItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
19
|
+
Actions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
};
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
glassSurfaceClass
|
|
4
|
-
} from "./chunk-DEIBF3P7.js";
|
|
5
|
-
import {
|
|
6
|
-
useNexubMessages
|
|
7
|
-
} from "./chunk-VMSWIC3O.js";
|
|
8
|
-
import {
|
|
9
|
-
cn
|
|
10
|
-
} from "./chunk-WRVFNYO3.js";
|
|
11
|
-
|
|
12
|
-
// src/components/TopNav/TopNav.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
3
|
import * as React from "react";
|
|
14
4
|
import { Slot } from "@radix-ui/react-slot";
|
|
15
|
-
import {
|
|
16
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
7
|
+
import { glassSurfaceClass } from "../../utils/glass.js";
|
|
8
|
+
const Root = React.forwardRef(
|
|
17
9
|
({ className, children, surface = "solid", scrollEdge, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
18
10
|
"header",
|
|
19
11
|
{
|
|
@@ -31,11 +23,11 @@ var Root = React.forwardRef(
|
|
|
31
23
|
)
|
|
32
24
|
);
|
|
33
25
|
Root.displayName = "TopNav.Root";
|
|
34
|
-
|
|
26
|
+
const Logo = React.forwardRef(
|
|
35
27
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("shrink-0 flex items-center", className), ...props })
|
|
36
28
|
);
|
|
37
29
|
Logo.displayName = "TopNav.Logo";
|
|
38
|
-
|
|
30
|
+
const Menu = React.forwardRef(
|
|
39
31
|
({ className, ...props }, ref) => {
|
|
40
32
|
const messages = useNexubMessages();
|
|
41
33
|
return (
|
|
@@ -53,7 +45,7 @@ var Menu = React.forwardRef(
|
|
|
53
45
|
}
|
|
54
46
|
);
|
|
55
47
|
Menu.displayName = "TopNav.Menu";
|
|
56
|
-
|
|
48
|
+
const Item = React.forwardRef(
|
|
57
49
|
({ className, active, asChild, ...props }, ref) => {
|
|
58
50
|
const Comp = asChild ? Slot : "a";
|
|
59
51
|
return /* @__PURE__ */ jsx(
|
|
@@ -72,12 +64,11 @@ var Item = React.forwardRef(
|
|
|
72
64
|
}
|
|
73
65
|
);
|
|
74
66
|
Item.displayName = "TopNav.Item";
|
|
75
|
-
|
|
67
|
+
const Actions = React.forwardRef(
|
|
76
68
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("ms-auto flex items-center gap-2", className), ...props })
|
|
77
69
|
);
|
|
78
70
|
Actions.displayName = "TopNav.Actions";
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
const TopNav = { Root, Logo, Menu, Item, Actions };
|
|
81
72
|
export {
|
|
82
73
|
TopNav
|
|
83
74
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSP-safe page scroll lock: toggles `nexub-scroll-lock` (from @nexub/themes/base)
|
|
3
|
+
* on <html> instead of injecting a <style> tag. On while mounted; counted, so
|
|
4
|
+
* nested overlays (a Sheet and a CommandPalette) share one lock.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useClassScrollLock(): void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// src/hooks/useClassScrollLock.ts
|
|
1
|
+
"use client";
|
|
4
2
|
import * as React from "react";
|
|
5
|
-
|
|
3
|
+
let scrollLocks = 0;
|
|
6
4
|
function useClassScrollLock() {
|
|
7
5
|
React.useEffect(() => {
|
|
8
6
|
const html = document.documentElement;
|
|
@@ -15,7 +13,6 @@ function useClassScrollLock() {
|
|
|
15
13
|
};
|
|
16
14
|
}, []);
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
export {
|
|
20
17
|
useClassScrollLock
|
|
21
18
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface UseControllableStateOptions<T> {
|
|
2
|
+
value?: T;
|
|
3
|
+
defaultValue?: T;
|
|
4
|
+
onChange?: (value: T) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function useControllableState<T>({ value: controlledValue, defaultValue, onChange, }: UseControllableStateOptions<T>): readonly [T | undefined, (next: T) => void];
|
|
7
|
+
export {};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
useIsomorphicLayoutEffect
|
|
4
|
-
} from "./chunk-NHUQLIHL.js";
|
|
5
|
-
|
|
6
|
-
// src/hooks/useControllableState.ts
|
|
1
|
+
"use client";
|
|
7
2
|
import { useState, useCallback, useRef } from "react";
|
|
3
|
+
import { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect.js";
|
|
8
4
|
function useControllableState({
|
|
9
5
|
value: controlledValue,
|
|
10
6
|
defaultValue,
|
|
@@ -26,7 +22,6 @@ function useControllableState({
|
|
|
26
22
|
);
|
|
27
23
|
return [value, setValue];
|
|
28
24
|
}
|
|
29
|
-
|
|
30
25
|
export {
|
|
31
26
|
useControllableState
|
|
32
27
|
};
|