@nexub/react 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +10 -0
- package/dist/{chunk-DOVZNUSH.js → components/Accordion/Accordion.js} +12 -17
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +1 -5
- package/dist/components/Alert/Alert.d.ts +14 -0
- package/dist/{chunk-U422B6UE.js → components/Alert/Alert.js} +8 -15
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.js +1 -7
- package/dist/components/AlertDialog/AlertDialog.d.ts +15 -0
- package/dist/{chunk-PDQTKE2C.js → components/AlertDialog/AlertDialog.js} +32 -42
- package/dist/components/AlertDialog/index.d.ts +1 -0
- package/dist/components/AlertDialog/index.js +1 -9
- package/dist/components/Amount/Amount.d.ts +22 -0
- package/dist/{chunk-IBBICKEZ.js → components/Amount/Amount.js} +10 -21
- package/dist/components/Amount/index.d.ts +2 -0
- package/dist/components/Amount/index.js +1 -8
- package/dist/components/AppShell/AppShell.d.ts +8 -0
- package/dist/{chunk-EPJ4CMZP.js → components/AppShell/AppShell.js} +8 -14
- package/dist/components/AppShell/index.d.ts +1 -0
- package/dist/components/AppShell/index.js +1 -5
- package/dist/components/AspectRatio/AspectRatio.d.ts +5 -0
- package/dist/{chunk-52CXVN3U.js → components/AspectRatio/AspectRatio.js} +4 -10
- package/dist/components/AspectRatio/index.d.ts +2 -0
- package/dist/components/AspectRatio/index.js +1 -5
- package/dist/components/Autocomplete/Autocomplete.d.ts +18 -0
- package/dist/{chunk-E7RLUHG3.js → components/Autocomplete/Autocomplete.js} +4 -11
- package/dist/components/Autocomplete/index.d.ts +2 -0
- package/dist/components/Autocomplete/index.js +1 -7
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/{chunk-AYG7HBDZ.js → components/Avatar/Avatar.js} +8 -13
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +1 -7
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +12 -0
- package/dist/{chunk-BMUAR6H2.js → components/AvatarGroup/AvatarGroup.js} +9 -18
- package/dist/components/AvatarGroup/index.d.ts +2 -0
- package/dist/components/AvatarGroup/index.js +1 -8
- package/dist/components/Badge/Badge.d.ts +12 -0
- package/dist/{chunk-FBUKWIWR.js → components/Badge/Badge.js} +7 -13
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +1 -6
- package/dist/components/Box/Box.d.ts +5 -0
- package/dist/{chunk-ZCHZNGWU.js → components/Box/Box.js} +3 -9
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Box/index.js +1 -5
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +21 -0
- package/dist/{chunk-SQGRT72E.js → components/Breadcrumb/Breadcrumb.js} +12 -19
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Breadcrumb/index.js +1 -6
- package/dist/components/Button/Button.d.ts +30 -0
- package/dist/{chunk-GHLMHKMV.js → components/Button/Button.js} +19 -37
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +1 -9
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -0
- package/dist/{chunk-7EQ2LIYD.js → components/ButtonGroup/ButtonGroup.js} +3 -9
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.js +1 -6
- package/dist/components/Card/Card.d.ts +27 -0
- package/dist/{chunk-T466ZB34.js → components/Card/Card.js} +18 -46
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +1 -8
- package/dist/components/CheckList/CheckList.d.ts +10 -0
- package/dist/{chunk-T3RBFJML.js → components/CheckList/CheckList.js} +4 -10
- package/dist/components/CheckList/index.d.ts +2 -0
- package/dist/components/CheckList/index.js +1 -6
- package/dist/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/{chunk-JOOKMCAF.js → components/Checkbox/Checkbox.js} +4 -9
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +1 -5
- package/dist/components/CheckboxCard/CheckboxCard.d.ts +9 -0
- package/dist/{chunk-EYGT5IX4.js → components/CheckboxCard/CheckboxCard.js} +7 -12
- package/dist/components/CheckboxCard/index.d.ts +2 -0
- package/dist/components/CheckboxCard/index.js +1 -6
- package/dist/components/Chip/Chip.d.ts +12 -0
- package/dist/{chunk-PFDUHXT5.js → components/Chip/Chip.js} +8 -15
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/index.js +1 -7
- package/dist/components/Citation/Citation.d.ts +44 -0
- package/dist/{chunk-IA2362SO.js → components/Citation/Citation.js} +12 -21
- package/dist/components/Citation/index.d.ts +2 -0
- package/dist/components/Citation/index.js +1 -11
- package/dist/components/Code/Code.d.ts +6 -0
- package/dist/{chunk-NX44VGON.js → components/Code/Code.js} +3 -9
- package/dist/components/Code/index.d.ts +2 -0
- package/dist/components/Code/index.js +1 -5
- package/dist/components/Collapsible/Collapsible.d.ts +7 -0
- package/dist/{chunk-4WIUGX5Z.js → components/Collapsible/Collapsible.js} +10 -15
- package/dist/components/Collapsible/index.d.ts +1 -0
- package/dist/components/Collapsible/index.js +1 -5
- package/dist/components/Combobox/Combobox.d.ts +75 -0
- package/dist/{chunk-XWELMPYD.js → components/Combobox/Combobox.js} +11 -16
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/Combobox/index.js +1 -6
- package/dist/components/CommandPalette/CommandPalette.d.ts +73 -0
- package/dist/{chunk-LASPHHH6.js → components/CommandPalette/CommandPalette.js} +16 -28
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.js +1 -8
- package/dist/components/Container/Container.d.ts +10 -0
- package/dist/{chunk-EQ5ASTJM.js → components/Container/Container.js} +7 -12
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/Container/index.js +1 -6
- package/dist/components/ContextMenu/ContextMenu.d.ts +18 -0
- package/dist/{chunk-CUCTSWR2.js → components/ContextMenu/ContextMenu.js} +42 -53
- package/dist/components/ContextMenu/index.d.ts +1 -0
- package/dist/components/ContextMenu/index.js +1 -6
- package/dist/components/CountryBadge/CountryBadge.d.ts +8 -0
- package/dist/{chunk-JZCZ2SDT.js → components/CountryBadge/CountryBadge.js} +5 -13
- package/dist/components/CountryBadge/index.d.ts +2 -0
- package/dist/components/CountryBadge/index.js +1 -6
- package/dist/components/DataTable/DataTable.d.ts +24 -0
- package/dist/{chunk-A7PS3EZO.js → components/DataTable/DataTable.js} +15 -27
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/index.js +1 -8
- package/dist/components/DatePicker/DatePicker.d.ts +39 -0
- package/dist/{chunk-OY5CWWIM.js → components/DatePicker/DatePicker.js} +11 -24
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +1 -9
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +20 -0
- package/dist/{chunk-YYAXXJH3.js → components/DateRangePicker/DateRangePicker.js} +9 -23
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +1 -9
- package/dist/components/Dialog/Dialog.d.ts +21 -0
- package/dist/{chunk-CEFGILJY.js → components/Dialog/Dialog.js} +28 -38
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.js +1 -7
- package/dist/components/Drawer/Drawer.d.ts +94 -0
- package/dist/components/Drawer/Drawer.js +131 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/index.js +1 -9
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +18 -0
- package/dist/{chunk-GWFIMQBC.js → components/DropdownMenu/DropdownMenu.js} +42 -53
- package/dist/components/DropdownMenu/index.d.ts +1 -0
- package/dist/components/DropdownMenu/index.js +1 -7
- package/dist/components/EmptyState/EmptyState.d.ts +8 -0
- package/dist/{chunk-AWTSLASB.js → components/EmptyState/EmptyState.js} +8 -14
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/EmptyState/index.js +1 -5
- package/dist/components/ErrorState/ErrorState.d.ts +10 -0
- package/dist/{chunk-NX5ZJSRU.js → components/ErrorState/ErrorState.js} +6 -13
- package/dist/components/ErrorState/index.d.ts +2 -0
- package/dist/components/ErrorState/index.js +1 -6
- package/dist/components/EyebrowChip/EyebrowChip.d.ts +11 -0
- package/dist/{chunk-MXXJOAWQ.js → components/EyebrowChip/EyebrowChip.js} +7 -13
- package/dist/components/EyebrowChip/index.d.ts +2 -0
- package/dist/components/EyebrowChip/index.js +1 -8
- package/dist/components/FileUpload/FileUpload.d.ts +16 -0
- package/dist/{chunk-LR6KNEKL.js → components/FileUpload/FileUpload.js} +12 -19
- package/dist/components/FileUpload/index.d.ts +2 -0
- package/dist/components/FileUpload/index.js +1 -6
- package/dist/components/FilterChip/FilterChip.d.ts +8 -0
- package/dist/{chunk-36QSSD7I.js → components/FilterChip/FilterChip.js} +6 -15
- package/dist/components/FilterChip/index.d.ts +2 -0
- package/dist/components/FilterChip/index.js +1 -7
- package/dist/components/Flag/Flag.d.ts +7 -0
- package/dist/{chunk-HOQPHAGW.js → components/Flag/Flag.js} +4 -10
- package/dist/components/Flag/index.d.ts +2 -0
- package/dist/components/Flag/index.js +1 -6
- package/dist/components/Flex/Flex.d.ts +10 -0
- package/dist/{chunk-BOO4VH3M.js → components/Flex/Flex.js} +5 -13
- package/dist/components/Flex/index.d.ts +2 -0
- package/dist/components/Flex/index.js +1 -6
- package/dist/components/FormError/FormError.d.ts +3 -0
- package/dist/{chunk-H2X6MSNY.js → components/FormError/FormError.js} +3 -9
- package/dist/components/FormError/index.d.ts +2 -0
- package/dist/components/FormError/index.js +1 -6
- package/dist/components/FormField/FormField.d.ts +46 -0
- package/dist/{chunk-FT73REUG.js → components/FormField/FormField.js} +9 -20
- package/dist/components/FormField/index.d.ts +2 -0
- package/dist/components/FormField/index.js +1 -11
- package/dist/components/GradientDivider/GradientDivider.d.ts +6 -0
- package/dist/{chunk-FDRAGYDV.js → components/GradientDivider/GradientDivider.js} +7 -13
- package/dist/components/GradientDivider/index.d.ts +2 -0
- package/dist/components/GradientDivider/index.js +1 -5
- package/dist/components/Grid/Grid.d.ts +9 -0
- package/dist/{chunk-F5S2KP3Z.js → components/Grid/Grid.js} +5 -13
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/index.js +1 -6
- package/dist/components/Heading/Heading.d.ts +17 -0
- package/dist/{chunk-Z7OR2LYG.js → components/Heading/Heading.js} +8 -16
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/index.js +1 -9
- package/dist/components/HelperText/HelperText.d.ts +6 -0
- package/dist/{chunk-QKGQBJ4U.js → components/HelperText/HelperText.js} +4 -12
- package/dist/components/HelperText/index.d.ts +2 -0
- package/dist/components/HelperText/index.js +1 -9
- package/dist/components/HoverCard/HoverCard.d.ts +10 -0
- package/dist/{chunk-KL55E5PE.js → components/HoverCard/HoverCard.js} +15 -22
- package/dist/components/HoverCard/index.d.ts +1 -0
- package/dist/components/HoverCard/index.js +1 -7
- package/dist/components/IconButton/IconButton.d.ts +11 -0
- package/dist/{chunk-RH2HEPC7.js → components/IconButton/IconButton.js} +7 -17
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/index.js +1 -8
- package/dist/components/Input/Input.d.ts +21 -0
- package/dist/{chunk-G7VMAWAX.js → components/Input/Input.js} +10 -21
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.js +1 -10
- package/dist/components/Kbd/Kbd.d.ts +4 -0
- package/dist/{chunk-OM62PQSE.js → components/Kbd/Kbd.js} +3 -9
- package/dist/components/Kbd/index.d.ts +2 -0
- package/dist/components/Kbd/index.js +1 -6
- package/dist/components/KeyboardShortcut/KeyboardShortcut.d.ts +5 -0
- package/dist/{chunk-PR3CEPFG.js → components/KeyboardShortcut/KeyboardShortcut.js} +4 -12
- package/dist/components/KeyboardShortcut/index.d.ts +2 -0
- package/dist/components/KeyboardShortcut/index.js +1 -6
- package/dist/components/Label/Label.d.ts +15 -0
- package/dist/{chunk-BM5PGGK2.js → components/Label/Label.js} +7 -15
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Label/index.js +1 -10
- package/dist/components/Link/Link.d.ts +11 -0
- package/dist/{chunk-QCLE5VQW.js → components/Link/Link.js} +6 -12
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Link/index.js +1 -6
- package/dist/components/Logo/Logo.d.ts +15 -0
- package/dist/{chunk-ZGJF4HAT.js → components/Logo/Logo.js} +8 -14
- package/dist/components/Logo/index.d.ts +2 -0
- package/dist/components/Logo/index.js +1 -6
- package/dist/components/MediaCard/MediaCard.d.ts +24 -0
- package/dist/{chunk-5DHLFPC4.js → components/MediaCard/MediaCard.js} +5 -13
- package/dist/components/MediaCard/index.d.ts +2 -0
- package/dist/components/MediaCard/index.js +1 -6
- package/dist/components/Menubar/Menubar.d.ts +1 -0
- package/dist/{chunk-PPECMYKJ.js → components/Menubar/Menubar.js} +50 -61
- package/dist/components/Menubar/index.d.ts +1 -0
- package/dist/components/Menubar/index.js +1 -6
- package/dist/components/MessageBubble/MessageBubble.d.ts +43 -0
- package/dist/{chunk-RNS35DNZ.js → components/MessageBubble/MessageBubble.js} +13 -27
- package/dist/components/MessageBubble/index.d.ts +2 -0
- package/dist/components/MessageBubble/index.js +1 -13
- package/dist/components/MoneyInput/MoneyInput.d.ts +19 -0
- package/dist/{chunk-FOFNTKCK.js → components/MoneyInput/MoneyInput.js} +8 -24
- package/dist/components/MoneyInput/index.d.ts +2 -0
- package/dist/components/MoneyInput/index.js +1 -11
- package/dist/components/Motion/Collapse.d.ts +29 -0
- package/dist/components/Motion/Collapse.js +103 -0
- package/dist/components/Motion/Fade.d.ts +16 -0
- package/dist/components/Motion/Fade.js +42 -0
- package/dist/components/Motion/Float.d.ts +8 -0
- package/dist/components/Motion/Float.js +14 -0
- package/dist/components/Motion/ListTransition.d.ts +46 -0
- package/dist/components/Motion/ListTransition.js +110 -0
- package/dist/components/Motion/Marquee.d.ts +13 -0
- package/dist/components/Motion/Marquee.js +13 -0
- package/dist/components/Motion/Reveal.d.ts +12 -0
- package/dist/components/Motion/Reveal.js +32 -0
- package/dist/components/Motion/Scale.d.ts +22 -0
- package/dist/components/Motion/Scale.js +45 -0
- package/dist/components/Motion/Slide.d.ts +22 -0
- package/dist/components/Motion/Slide.js +59 -0
- package/dist/components/Motion/index.d.ts +18 -0
- package/dist/components/Motion/index.js +12 -10
- package/dist/components/Motion/motion.types.d.ts +25 -0
- package/dist/components/Motion/motion.types.js +1 -0
- package/dist/components/Motion/useMotion.d.ts +41 -0
- package/dist/components/Motion/useMotion.js +102 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +12 -0
- package/dist/{chunk-FXVI4RCJ.js → components/NavigationMenu/NavigationMenu.js} +21 -28
- package/dist/components/NavigationMenu/index.d.ts +1 -0
- package/dist/components/NavigationMenu/index.js +1 -6
- package/dist/components/NavigationRail/NavigationRail.d.ts +19 -0
- package/dist/{chunk-5MGCYR4G.js → components/NavigationRail/NavigationRail.js} +7 -14
- package/dist/components/NavigationRail/index.d.ts +2 -0
- package/dist/components/NavigationRail/index.js +1 -6
- package/dist/components/NexubProvider/NexubProvider.d.ts +34 -0
- package/dist/{chunk-VMSWIC3O.js → components/NexubProvider/NexubProvider.js} +7 -9
- package/dist/components/NexubProvider/index.d.ts +2 -0
- package/dist/components/NexubProvider/index.js +1 -8
- package/dist/components/NumberInput/NumberInput.d.ts +15 -0
- package/dist/{chunk-V3EWVSVI.js → components/NumberInput/NumberInput.js} +9 -20
- package/dist/components/NumberInput/index.d.ts +2 -0
- package/dist/components/NumberInput/index.js +1 -8
- package/dist/components/NumberTicker/NumberTicker.d.ts +25 -0
- package/dist/{chunk-2G3XUIQZ.js → components/NumberTicker/NumberTicker.js} +30 -19
- package/dist/components/NumberTicker/index.d.ts +2 -0
- package/dist/components/NumberTicker/index.js +1 -7
- package/dist/components/PageHeader/PageHeader.d.ts +10 -0
- package/dist/{chunk-SEW66BU7.js → components/PageHeader/PageHeader.js} +3 -9
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/PageHeader/index.js +1 -5
- package/dist/components/Pagination/Pagination.d.ts +9 -0
- package/dist/{chunk-NLVP74RX.js → components/Pagination/Pagination.js} +7 -17
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +1 -7
- package/dist/components/PasswordInput/PasswordInput.d.ts +9 -0
- package/dist/{chunk-OGHOT6XN.js → components/PasswordInput/PasswordInput.js} +7 -18
- package/dist/components/PasswordInput/index.d.ts +2 -0
- package/dist/components/PasswordInput/index.js +1 -10
- package/dist/components/Popover/Popover.d.ts +13 -0
- package/dist/{chunk-MPJG4WFP.js → components/Popover/Popover.js} +20 -29
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.js +1 -7
- package/dist/components/Progress/Progress.d.ts +17 -0
- package/dist/{chunk-HXNUIIXB.js → components/Progress/Progress.js} +9 -16
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +1 -8
- package/dist/components/PromptInput/PromptInput.d.ts +33 -0
- package/dist/{chunk-ZUMC7SX5.js → components/PromptInput/PromptInput.js} +12 -30
- package/dist/components/PromptInput/index.d.ts +2 -0
- package/dist/components/PromptInput/index.js +1 -12
- package/dist/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/{chunk-YNLXG574.js → components/RadioCard/RadioCard.js} +11 -16
- package/dist/components/RadioCard/index.d.ts +2 -0
- package/dist/components/RadioCard/index.js +1 -7
- package/dist/components/RadioCard/selectableCard.d.ts +29 -0
- package/dist/{chunk-6SPCGCDG.js → components/RadioCard/selectableCard.js} +6 -11
- package/dist/components/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/{chunk-QQR4PPF3.js → components/RadioGroup/RadioGroup.js} +8 -13
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/RadioGroup/index.js +1 -5
- package/dist/components/Rating/Rating.d.ts +12 -0
- package/dist/{chunk-VCCQ64G7.js → components/Rating/Rating.js} +9 -18
- package/dist/components/Rating/index.d.ts +2 -0
- package/dist/components/Rating/index.js +1 -9
- package/dist/components/ScrollArea/ScrollArea.d.ts +6 -0
- package/dist/{chunk-2DZWTBDL.js → components/ScrollArea/ScrollArea.js} +4 -9
- package/dist/components/ScrollArea/index.d.ts +2 -0
- package/dist/components/ScrollArea/index.js +1 -5
- package/dist/components/SearchInput/SearchInput.d.ts +6 -0
- package/dist/{chunk-YVS6AVPD.js → components/SearchInput/SearchInput.js} +7 -18
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/SearchInput/index.js +1 -10
- package/dist/components/Section/Section.d.ts +10 -0
- package/dist/{chunk-EIV37DAQ.js → components/Section/Section.js} +6 -12
- package/dist/components/Section/index.d.ts +2 -0
- package/dist/components/Section/index.js +1 -6
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +12 -0
- package/dist/{chunk-KRIRCSUB.js → components/SegmentedControl/SegmentedControl.js} +12 -21
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/SegmentedControl/index.js +1 -8
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/{chunk-M5PDVHFN.js → components/Select/Select.js} +35 -48
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +1 -7
- package/dist/components/Separator/Separator.d.ts +12 -0
- package/dist/{chunk-YVCUKIAC.js → components/Separator/Separator.js} +6 -12
- package/dist/components/Separator/index.d.ts +2 -0
- package/dist/components/Separator/index.js +1 -6
- package/dist/components/Sidebar/Sidebar.d.ts +25 -0
- package/dist/{chunk-NAESV7K3.js → components/Sidebar/Sidebar.js} +11 -18
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/index.js +1 -6
- package/dist/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/{chunk-3C4WVTAN.js → components/Skeleton/Skeleton.js} +7 -13
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/index.js +1 -6
- package/dist/components/Slider/Slider.d.ts +7 -0
- package/dist/{chunk-5QWRBJSZ.js → components/Slider/Slider.js} +4 -9
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/index.js +1 -5
- package/dist/components/Spinner/Spinner.d.ts +12 -0
- package/dist/{chunk-P3SAE4T2.js → components/Spinner/Spinner.js} +8 -15
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/index.js +1 -7
- package/dist/components/SplitButton/SplitButton.d.ts +15 -0
- package/dist/{chunk-ILIM4BLN.js → components/SplitButton/SplitButton.js} +7 -18
- package/dist/components/SplitButton/index.d.ts +2 -0
- package/dist/components/SplitButton/index.js +1 -11
- package/dist/components/Stack/Stack.d.ts +11 -0
- package/dist/{chunk-ST4O3EQ3.js → components/Stack/Stack.js} +4 -12
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/Stack/index.js +1 -6
- package/dist/components/StreamingText/StreamingText.d.ts +19 -0
- package/dist/{chunk-4ESZQDPB.js → components/StreamingText/StreamingText.js} +5 -10
- package/dist/components/StreamingText/index.d.ts +2 -0
- package/dist/components/StreamingText/index.js +1 -5
- package/dist/components/Switch/Switch.d.ts +12 -0
- package/dist/{chunk-EWW6PWTK.js → components/Switch/Switch.js} +9 -12
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +1 -5
- package/dist/components/Table/Table.d.ts +18 -0
- package/dist/{chunk-KA6RZ7VN.js → components/Table/Table.js} +13 -18
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +1 -6
- package/dist/components/Tabs/Tabs.d.ts +8 -0
- package/dist/{chunk-BIWSXGTZ.js → components/Tabs/Tabs.js} +14 -23
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +1 -8
- package/dist/components/Text/Text.d.ts +13 -0
- package/dist/{chunk-UYINKNCI.js → components/Text/Text.js} +7 -13
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/Text/index.js +1 -6
- package/dist/components/TextGradient/TextGradient.d.ts +4 -0
- package/dist/{chunk-IDPRAXCG.js → components/TextGradient/TextGradient.js} +3 -9
- package/dist/components/TextGradient/index.d.ts +2 -0
- package/dist/components/TextGradient/index.js +1 -5
- package/dist/components/Textarea/Textarea.d.ts +13 -0
- package/dist/{chunk-HL64PWVQ.js → components/Textarea/Textarea.js} +8 -17
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +1 -7
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +69 -0
- package/dist/{chunk-ZBRRQHZG.js → components/ThemeProvider/ThemeProvider.js} +11 -15
- package/dist/components/ThemeProvider/index.d.ts +2 -0
- package/dist/components/ThemeProvider/index.js +1 -7
- package/dist/components/ThinkingIndicator/ThinkingIndicator.d.ts +18 -0
- package/dist/{chunk-VX56VQMF.js → components/ThinkingIndicator/ThinkingIndicator.js} +6 -13
- package/dist/components/ThinkingIndicator/index.d.ts +2 -0
- package/dist/components/ThinkingIndicator/index.js +1 -6
- package/dist/components/Toast/Toast.d.ts +17 -0
- package/dist/components/Toast/Toast.js +82 -0
- package/dist/components/Toast/Toaster.d.ts +21 -0
- package/dist/{chunk-MQGBAWSJ.js → components/Toast/Toaster.js} +27 -189
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/Toast/index.js +3 -10
- package/dist/components/Toast/useToast.d.ts +45 -0
- package/dist/components/Toast/useToast.js +74 -0
- package/dist/components/Toggle/Toggle.d.ts +10 -0
- package/dist/{chunk-NMSQDI4A.js → components/Toggle/Toggle.js} +7 -12
- package/dist/components/Toggle/index.d.ts +2 -0
- package/dist/components/Toggle/index.js +1 -7
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +16 -0
- package/dist/{chunk-UOBWHPXG.js → components/ToggleGroup/ToggleGroup.js} +10 -17
- package/dist/components/ToggleGroup/index.d.ts +1 -0
- package/dist/components/ToggleGroup/index.js +1 -6
- package/dist/components/Toolbar/Toolbar.d.ts +18 -0
- package/dist/{chunk-WGW7TZOV.js → components/Toolbar/Toolbar.js} +15 -22
- package/dist/components/Toolbar/index.d.ts +2 -0
- package/dist/components/Toolbar/index.js +1 -6
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/{chunk-6SWOLUMF.js → components/Tooltip/Tooltip.js} +16 -21
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +1 -10
- package/dist/components/TopNav/TopNav.d.ts +20 -0
- package/dist/{chunk-BNG3Y5I7.js → components/TopNav/TopNav.js} +11 -20
- package/dist/components/TopNav/index.d.ts +2 -0
- package/dist/components/TopNav/index.js +1 -7
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +2 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +5 -0
- package/dist/components/VisuallyHidden/index.d.ts +2 -0
- package/dist/components/VisuallyHidden/index.js +2 -5
- package/dist/hooks/useClassScrollLock.d.ts +6 -0
- package/dist/{chunk-47UGX37F.js → hooks/useClassScrollLock.js} +2 -5
- package/dist/hooks/useControllableState.d.ts +7 -0
- package/dist/{chunk-JLUCMNVS.js → hooks/useControllableState.js} +2 -7
- package/dist/hooks/useDisclosure.d.ts +6 -0
- package/dist/hooks/useDisclosure.js +12 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -0
- package/dist/hooks/useMediaQuery.js +17 -0
- package/dist/hooks/useMergedRefs.d.ts +2 -0
- package/dist/{chunk-MNEXMMLM.js → hooks/useMergedRefs.js} +1 -4
- package/dist/hooks/usePointerSheen.d.ts +8 -0
- package/dist/hooks/usePointerSheen.js +25 -0
- package/dist/hooks/useSlidingIndicator.d.ts +8 -0
- package/dist/{chunk-6UKNUI46.js → hooks/useSlidingIndicator.js} +2 -7
- package/dist/index.d.ts +196 -1849
- package/dist/index.js +116 -413
- package/dist/styles.css +1 -1
- package/dist/utils/cn.d.ts +2 -0
- package/dist/{chunk-WRVFNYO3.js → utils/cn.js} +8 -11
- package/dist/utils/control.d.ts +20 -0
- package/dist/utils/control.js +41 -0
- package/dist/utils/deprecated.d.ts +6 -0
- package/dist/utils/deprecated.js +16 -0
- package/dist/utils/glass.d.ts +9 -0
- package/dist/utils/glass.js +4 -0
- package/dist/utils/layout.d.ts +14 -0
- package/dist/{chunk-VLQGQFW7.js → utils/layout.js} +5 -9
- package/dist/utils/money.d.ts +1 -0
- package/dist/{chunk-R3SUPKKI.js → utils/money.js} +3 -6
- package/dist/utils/surface.d.ts +11 -0
- package/dist/{chunk-5FWJXSXT.js → utils/surface.js} +9 -13
- package/dist/utils/viewTransition.d.ts +5 -0
- package/dist/utils/viewTransition.js +8 -0
- package/dist/{chunk-PZL6AJH5.js → vendor/vaul.js} +2 -140
- package/package.json +15 -7
- package/dist/chunk-4B4XWDAH.js +0 -1
- package/dist/chunk-4GVGS5N4.js +0 -468
- package/dist/chunk-52ZVJPF7.js +0 -1
- package/dist/chunk-A3O23F2B.js +0 -1
- package/dist/chunk-ADO2DB6Q.js +0 -1
- package/dist/chunk-BV3U3ATL.js +0 -1
- package/dist/chunk-CAOLGXA5.js +0 -1
- package/dist/chunk-DEIBF3P7.js +0 -8
- package/dist/chunk-EV43I5J6.js +0 -1
- package/dist/chunk-HI7GBSW2.js +0 -1
- package/dist/chunk-HY3JWSG4.js +0 -1
- package/dist/chunk-IZ6ZPEZ2.js +0 -1
- package/dist/chunk-KLTQJZOX.js +0 -1
- package/dist/chunk-LVPU7455.js +0 -1
- package/dist/chunk-NHUQLIHL.js +0 -9
- package/dist/chunk-NZ7UK3G6.js +0 -1
- package/dist/chunk-P26VJEIW.js +0 -1
- package/dist/chunk-PICMOOAZ.js +0 -1
- package/dist/chunk-VALIDQXU.js +0 -31
- package/dist/chunk-WLRRMT6W.js +0 -1
- package/dist/chunk-XYXMPHND.js +0 -1
- package/dist/chunk-YJU4ZRQZ.js +0 -1
- package/dist/chunk-ZT3NWE5U.js +0 -1
- package/dist/chunk-ZXLACKEB.js +0 -8
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
floatingSurface
|
|
4
|
-
} from "./chunk-5FWJXSXT.js";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "./chunk-WRVFNYO3.js";
|
|
8
|
-
|
|
9
|
-
// src/components/NavigationMenu/NavigationMenu.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
3
|
import * as React from "react";
|
|
11
4
|
import * as RadixNav from "@radix-ui/react-navigation-menu";
|
|
12
5
|
import { ChevronDown } from "@nexub/icons";
|
|
13
|
-
import {
|
|
14
|
-
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
import { floatingSurface } from "../../utils/surface.js";
|
|
8
|
+
const Root = React.forwardRef(
|
|
15
9
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
16
10
|
RadixNav.Root,
|
|
17
11
|
{
|
|
@@ -20,13 +14,13 @@ var Root2 = React.forwardRef(
|
|
|
20
14
|
...props,
|
|
21
15
|
children: [
|
|
22
16
|
children,
|
|
23
|
-
/* @__PURE__ */ jsx(
|
|
17
|
+
/* @__PURE__ */ jsx(Viewport, {})
|
|
24
18
|
]
|
|
25
19
|
}
|
|
26
20
|
)
|
|
27
21
|
);
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
Root.displayName = "NavigationMenu.Root";
|
|
23
|
+
const List = React.forwardRef(
|
|
30
24
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
31
25
|
RadixNav.List,
|
|
32
26
|
{
|
|
@@ -36,9 +30,9 @@ var List2 = React.forwardRef(
|
|
|
36
30
|
}
|
|
37
31
|
)
|
|
38
32
|
);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
List.displayName = "NavigationMenu.List";
|
|
34
|
+
const Item = RadixNav.Item;
|
|
35
|
+
const Trigger = React.forwardRef(
|
|
42
36
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
43
37
|
RadixNav.Trigger,
|
|
44
38
|
{
|
|
@@ -64,8 +58,8 @@ var Trigger2 = React.forwardRef(
|
|
|
64
58
|
}
|
|
65
59
|
)
|
|
66
60
|
);
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
Trigger.displayName = "NavigationMenu.Trigger";
|
|
62
|
+
const Content = React.forwardRef(
|
|
69
63
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
70
64
|
RadixNav.Content,
|
|
71
65
|
{
|
|
@@ -78,8 +72,8 @@ var Content2 = React.forwardRef(
|
|
|
78
72
|
}
|
|
79
73
|
)
|
|
80
74
|
);
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
Content.displayName = "NavigationMenu.Content";
|
|
76
|
+
const Link = React.forwardRef(
|
|
83
77
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
84
78
|
RadixNav.Link,
|
|
85
79
|
{
|
|
@@ -92,8 +86,8 @@ var Link2 = React.forwardRef(
|
|
|
92
86
|
}
|
|
93
87
|
)
|
|
94
88
|
);
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
Link.displayName = "NavigationMenu.Link";
|
|
90
|
+
const Viewport = React.forwardRef(
|
|
97
91
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "absolute start-0 top-full flex justify-center", children: /* @__PURE__ */ jsx(
|
|
98
92
|
RadixNav.Viewport,
|
|
99
93
|
{
|
|
@@ -108,8 +102,8 @@ var Viewport2 = React.forwardRef(
|
|
|
108
102
|
}
|
|
109
103
|
) })
|
|
110
104
|
);
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
Viewport.displayName = "NavigationMenu.Viewport";
|
|
106
|
+
const Indicator = React.forwardRef(
|
|
113
107
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
114
108
|
RadixNav.Indicator,
|
|
115
109
|
{
|
|
@@ -123,9 +117,8 @@ var Indicator2 = React.forwardRef(
|
|
|
123
117
|
}
|
|
124
118
|
)
|
|
125
119
|
);
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
120
|
+
Indicator.displayName = "NavigationMenu.Indicator";
|
|
121
|
+
const NavigationMenu = { Root, List, Item, Trigger, Content, Link, Viewport, Indicator };
|
|
129
122
|
export {
|
|
130
123
|
NavigationMenu
|
|
131
124
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NavigationMenu } from './NavigationMenu.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface NavigationRailRootProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
/** Accessible name for the landmark. @default 'Main' */
|
|
4
|
+
'aria-label'?: string;
|
|
5
|
+
/** Optional slot above the items, e.g. a primary action or logo. */
|
|
6
|
+
header?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface NavigationRailItemProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> {
|
|
9
|
+
icon: React.ReactNode;
|
|
10
|
+
label: React.ReactNode;
|
|
11
|
+
active?: boolean;
|
|
12
|
+
/** Render your link (e.g. a router `<Link>`) as the item: pass it as the only child. */
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
children?: React.ReactElement;
|
|
15
|
+
}
|
|
16
|
+
export declare const NavigationRail: {
|
|
17
|
+
Root: React.ForwardRefExoticComponent<NavigationRailRootProps & React.RefAttributes<HTMLElement>>;
|
|
18
|
+
Item: React.ForwardRefExoticComponent<NavigationRailItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
19
|
+
};
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
useNexubMessages
|
|
4
|
-
} from "./chunk-VMSWIC3O.js";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "./chunk-WRVFNYO3.js";
|
|
8
|
-
|
|
9
|
-
// src/components/NavigationRail/NavigationRail.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
3
|
import * as React from "react";
|
|
11
4
|
import { Slot } from "@radix-ui/react-slot";
|
|
12
|
-
import {
|
|
13
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
7
|
+
const Root = React.forwardRef(
|
|
14
8
|
({ className, header, children, "aria-label": ariaLabel, ...props }, ref) => {
|
|
15
9
|
const messages = useNexubMessages();
|
|
16
10
|
return /* @__PURE__ */ jsxs(
|
|
@@ -29,7 +23,7 @@ var Root = React.forwardRef(
|
|
|
29
23
|
}
|
|
30
24
|
);
|
|
31
25
|
Root.displayName = "NavigationRail.Root";
|
|
32
|
-
|
|
26
|
+
const Item = React.forwardRef(
|
|
33
27
|
({ className, icon, label, active, asChild, children, ...props }, ref) => {
|
|
34
28
|
const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
35
29
|
/* @__PURE__ */ jsx(
|
|
@@ -69,8 +63,7 @@ var Item = React.forwardRef(
|
|
|
69
63
|
}
|
|
70
64
|
);
|
|
71
65
|
Item.displayName = "NavigationRail.Item";
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
const NavigationRail = { Root, Item };
|
|
74
67
|
export {
|
|
75
68
|
NavigationRail
|
|
76
69
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Locale } from 'date-fns';
|
|
3
|
+
import { defaultMessages, directionOf, type Direction, type NexubMessages } from '@nexub/core';
|
|
4
|
+
export { defaultMessages, directionOf, type Direction, type NexubMessages };
|
|
5
|
+
export interface NexubProviderProps {
|
|
6
|
+
/** BCP 47 locale for Intl formatting. @default 'en' */
|
|
7
|
+
locale?: string;
|
|
8
|
+
/** Text direction for Radix primitives. @default derived from `locale` */
|
|
9
|
+
dir?: Direction;
|
|
10
|
+
/**
|
|
11
|
+
* date-fns Locale for calendars (month/weekday names, week start, trigger text).
|
|
12
|
+
* Import only the one you need, e.g. `import { fr } from 'date-fns/locale/fr'`.
|
|
13
|
+
*/
|
|
14
|
+
dateLocale?: Locale;
|
|
15
|
+
/** Overrides for the default English strings. */
|
|
16
|
+
messages?: Partial<NexubMessages>;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Locale, direction and translated strings for every @nexub/react component.
|
|
21
|
+
* It does not set `dir`/`lang` on <html> — the app does that (as it renders
|
|
22
|
+
* <html>), so the page and CSS `rtl:` variants agree with this provider.
|
|
23
|
+
*/
|
|
24
|
+
export declare function NexubProvider({ locale, dir, dateLocale, messages, children }: NexubProviderProps): React.JSX.Element;
|
|
25
|
+
/** The active strings: defaults merged with the nearest NexubProvider's overrides. */
|
|
26
|
+
export declare function useNexubMessages(): NexubMessages;
|
|
27
|
+
/** The active locale (default 'en'), direction and optional date-fns Locale. */
|
|
28
|
+
export declare function useLocale(): {
|
|
29
|
+
locale: string;
|
|
30
|
+
dir: Direction;
|
|
31
|
+
dateLocale?: Locale;
|
|
32
|
+
};
|
|
33
|
+
/** Internal: the provider's locale, or undefined (= the user's) without one. */
|
|
34
|
+
export declare function useIntlLocale(explicit?: string): string | undefined;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// src/components/NexubProvider/NexubProvider.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import * as React from "react";
|
|
5
4
|
import { DirectionProvider } from "@radix-ui/react-direction";
|
|
6
5
|
import { defaultMessages, directionOf } from "@nexub/core";
|
|
7
|
-
|
|
8
|
-
var NexubContext = React.createContext({
|
|
6
|
+
const NexubContext = React.createContext({
|
|
9
7
|
locale: void 0,
|
|
10
8
|
dir: "ltr",
|
|
11
9
|
dateLocale: void 0,
|
|
@@ -30,11 +28,11 @@ function useIntlLocale(explicit) {
|
|
|
30
28
|
const ctx = React.useContext(NexubContext).locale;
|
|
31
29
|
return explicit ?? ctx;
|
|
32
30
|
}
|
|
33
|
-
|
|
34
31
|
export {
|
|
35
|
-
defaultMessages,
|
|
36
32
|
NexubProvider,
|
|
37
|
-
|
|
33
|
+
defaultMessages,
|
|
34
|
+
directionOf,
|
|
35
|
+
useIntlLocale,
|
|
38
36
|
useLocale,
|
|
39
|
-
|
|
37
|
+
useNexubMessages
|
|
40
38
|
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import "../../chunk-A3O23F2B.js";
|
|
3
|
-
import {
|
|
4
|
-
NexubProvider,
|
|
5
|
-
defaultMessages,
|
|
6
|
-
useLocale,
|
|
7
|
-
useNexubMessages
|
|
8
|
-
} from "../../chunk-VMSWIC3O.js";
|
|
1
|
+
import { NexubProvider, useNexubMessages, useLocale, defaultMessages } from "./NexubProvider.js";
|
|
9
2
|
export {
|
|
10
3
|
NexubProvider,
|
|
11
4
|
defaultMessages,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type Size } from '../../utils/control.js';
|
|
3
|
+
export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'type' | 'size'> {
|
|
4
|
+
size?: Size;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
precision?: number;
|
|
9
|
+
showSteppers?: boolean;
|
|
10
|
+
value?: number;
|
|
11
|
+
defaultValue?: number;
|
|
12
|
+
onChange?: (value: number) => void;
|
|
13
|
+
invalid?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,31 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
inputWrapperVariants
|
|
4
|
-
} from "./chunk-G7VMAWAX.js";
|
|
5
|
-
import {
|
|
6
|
-
disabledText
|
|
7
|
-
} from "./chunk-VALIDQXU.js";
|
|
8
|
-
import {
|
|
9
|
-
useNexubMessages
|
|
10
|
-
} from "./chunk-VMSWIC3O.js";
|
|
11
|
-
import {
|
|
12
|
-
cn
|
|
13
|
-
} from "./chunk-WRVFNYO3.js";
|
|
14
|
-
|
|
15
|
-
// src/components/NumberInput/NumberInput.tsx
|
|
16
|
-
import * as React from "react";
|
|
1
|
+
"use client";
|
|
17
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
6
|
+
import { disabledText } from "../../utils/control.js";
|
|
7
|
+
import { inputWrapperVariants } from "../Input/Input.js";
|
|
8
|
+
const formatValue = (v, precision) => {
|
|
19
9
|
if (precision !== void 0) return v.toFixed(precision);
|
|
20
10
|
return String(v);
|
|
21
11
|
};
|
|
22
|
-
|
|
12
|
+
const clampValue = (v, min, max) => {
|
|
23
13
|
let result = v;
|
|
24
14
|
if (min !== void 0 && result < min) result = min;
|
|
25
15
|
if (max !== void 0 && result > max) result = max;
|
|
26
16
|
return result;
|
|
27
17
|
};
|
|
28
|
-
|
|
18
|
+
const NumberInput = React.forwardRef(
|
|
29
19
|
({
|
|
30
20
|
className,
|
|
31
21
|
size = "md",
|
|
@@ -119,7 +109,6 @@ var NumberInput = React.forwardRef(
|
|
|
119
109
|
}
|
|
120
110
|
);
|
|
121
111
|
NumberInput.displayName = "NumberInput";
|
|
122
|
-
|
|
123
112
|
export {
|
|
124
113
|
NumberInput
|
|
125
114
|
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
NumberInput
|
|
4
|
-
} from "../../chunk-V3EWVSVI.js";
|
|
5
|
-
import "../../chunk-G7VMAWAX.js";
|
|
6
|
-
import "../../chunk-VALIDQXU.js";
|
|
7
|
-
import "../../chunk-VMSWIC3O.js";
|
|
8
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { NumberInput } from "./NumberInput.js";
|
|
9
2
|
export {
|
|
10
3
|
NumberInput
|
|
11
4
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** A run of already-formatted text with its own class (Amount's muted symbol and minor units). */
|
|
3
|
+
export interface NumberTickerPart {
|
|
4
|
+
value: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface NumberTickerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
8
|
+
/** A number (formatted with `format`/`locale`), an already-formatted string, or styled parts. */
|
|
9
|
+
value: number | string | readonly NumberTickerPart[];
|
|
10
|
+
format?: Intl.NumberFormatOptions;
|
|
11
|
+
/** BCP 47 locale. Defaults to the user's. */
|
|
12
|
+
locale?: string;
|
|
13
|
+
/** Announce changes to screen readers. */
|
|
14
|
+
'aria-live'?: 'off' | 'polite';
|
|
15
|
+
/** Count up from zeros when the number first scrolls into view. Only for a ticker that starts
|
|
16
|
+
* below the fold; the server-rendered HTML and screen readers always get the real value.
|
|
17
|
+
* Off under reduced motion. */
|
|
18
|
+
countOnView?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A rolling number: each digit is a 0–9 strip that slides to its value on the
|
|
22
|
+
* spatial spring; separators, symbols and signs stay static. The first render
|
|
23
|
+
* shows the value as-is; only later changes animate.
|
|
24
|
+
*/
|
|
25
|
+
export declare const NumberTicker: React.ForwardRefExoticComponent<NumberTickerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
useIntlLocale
|
|
4
|
-
} from "./chunk-VMSWIC3O.js";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "./chunk-WRVFNYO3.js";
|
|
8
|
-
|
|
9
|
-
// src/components/NumberTicker/NumberTicker.tsx
|
|
10
|
-
import * as React from "react";
|
|
1
|
+
"use client";
|
|
11
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
import { useIntlLocale } from "../NexubProvider/NexubProvider.js";
|
|
6
|
+
import { useMergedRefs } from "../../hooks/useMergedRefs.js";
|
|
7
|
+
const SHIFT = [
|
|
13
8
|
"translate-y-0",
|
|
14
9
|
"-translate-y-[10%]",
|
|
15
10
|
"-translate-y-[20%]",
|
|
@@ -21,9 +16,9 @@ var SHIFT = [
|
|
|
21
16
|
"-translate-y-[80%]",
|
|
22
17
|
"-translate-y-[90%]"
|
|
23
18
|
];
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
const DIGITS = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
20
|
+
const isDigit = (c) => c !== void 0 && /^[0-9]$/.test(c);
|
|
21
|
+
const RTL = /[\u0590-\u08FF\u200F\u061C\uFB1D-\uFDFF\uFE70-\uFEFF]/;
|
|
27
22
|
function digitRuns(items) {
|
|
28
23
|
const out = [];
|
|
29
24
|
let run = [];
|
|
@@ -71,12 +66,29 @@ function Char({ char, className, enter }) {
|
|
|
71
66
|
}
|
|
72
67
|
);
|
|
73
68
|
}
|
|
74
|
-
|
|
75
|
-
({ value, format, locale: localeProp, className, "aria-live": ariaLive = "off", ...props }, ref) => {
|
|
69
|
+
const NumberTicker = React.forwardRef(
|
|
70
|
+
({ value, format, locale: localeProp, className, "aria-live": ariaLive = "off", countOnView = false, ...props }, ref) => {
|
|
76
71
|
const locale = useIntlLocale(localeProp);
|
|
77
72
|
const parts = typeof value === "number" ? [{ value: new Intl.NumberFormat(locale, format).format(value) }] : typeof value === "string" ? [{ value }] : value;
|
|
78
|
-
const chars = parts.flatMap((p) => Array.from(p.value, (char) => ({ char, className: p.className })));
|
|
79
73
|
const text = parts.map((p) => p.value).join("");
|
|
74
|
+
const self = React.useRef(null);
|
|
75
|
+
const [zeroed, setZeroed] = React.useState(false);
|
|
76
|
+
React.useEffect(() => {
|
|
77
|
+
const el = self.current;
|
|
78
|
+
if (!countOnView || !el || typeof IntersectionObserver === "undefined") return;
|
|
79
|
+
if (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
|
|
80
|
+
if (el.getBoundingClientRect().top < window.innerHeight) return;
|
|
81
|
+
setZeroed(true);
|
|
82
|
+
const io = new IntersectionObserver(([entry]) => {
|
|
83
|
+
if (!entry?.isIntersecting) return;
|
|
84
|
+
setZeroed(false);
|
|
85
|
+
io.disconnect();
|
|
86
|
+
}, { threshold: 0.5 });
|
|
87
|
+
io.observe(el);
|
|
88
|
+
return () => io.disconnect();
|
|
89
|
+
}, [countOnView]);
|
|
90
|
+
const shown = zeroed ? parts.map((p) => ({ ...p, value: p.value.replace(/[0-9]/g, "0") })) : parts;
|
|
91
|
+
const chars = shown.flatMap((p) => Array.from(p.value, (char) => ({ char, className: p.className })));
|
|
80
92
|
const mounted = React.useRef(false);
|
|
81
93
|
React.useEffect(() => {
|
|
82
94
|
mounted.current = true;
|
|
@@ -89,7 +101,7 @@ var NumberTicker = React.forwardRef(
|
|
|
89
101
|
return /* @__PURE__ */ jsxs(
|
|
90
102
|
"span",
|
|
91
103
|
{
|
|
92
|
-
ref,
|
|
104
|
+
ref: useMergedRefs(ref, self),
|
|
93
105
|
className: cn("whitespace-nowrap tabular-nums", className),
|
|
94
106
|
"aria-live": ariaLive,
|
|
95
107
|
"aria-atomic": "true",
|
|
@@ -103,7 +115,6 @@ var NumberTicker = React.forwardRef(
|
|
|
103
115
|
}
|
|
104
116
|
);
|
|
105
117
|
NumberTicker.displayName = "NumberTicker";
|
|
106
|
-
|
|
107
118
|
export {
|
|
108
119
|
NumberTicker
|
|
109
120
|
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import "../../chunk-WLRRMT6W.js";
|
|
3
|
-
import {
|
|
4
|
-
NumberTicker
|
|
5
|
-
} from "../../chunk-2G3XUIQZ.js";
|
|
6
|
-
import "../../chunk-VMSWIC3O.js";
|
|
7
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { NumberTicker } from "./NumberTicker.js";
|
|
8
2
|
export {
|
|
9
3
|
NumberTicker
|
|
10
4
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface PageHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
3
|
+
title: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
actions?: React.ReactNode;
|
|
6
|
+
breadcrumb?: React.ReactNode;
|
|
7
|
+
/** Heading level of the title. Use 2 or 3 when the page already has an h1. @default 1 */
|
|
8
|
+
level?: 1 | 2 | 3;
|
|
9
|
+
}
|
|
10
|
+
export declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/PageHeader/PageHeader.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
4
|
+
const PageHeader = React.forwardRef(
|
|
10
5
|
({ className, title, description, actions, breadcrumb, level = 1, ...props }, ref) => {
|
|
11
6
|
const Heading = `h${level}`;
|
|
12
7
|
return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex flex-col gap-4", className), ...props, children: [
|
|
@@ -22,7 +17,6 @@ var PageHeader = React.forwardRef(
|
|
|
22
17
|
}
|
|
23
18
|
);
|
|
24
19
|
PageHeader.displayName = "PageHeader";
|
|
25
|
-
|
|
26
20
|
export {
|
|
27
21
|
PageHeader
|
|
28
22
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
page: number;
|
|
4
|
+
totalItems: number;
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
siblingCount?: number;
|
|
7
|
+
onPageChange: (page: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
disabledText,
|
|
4
|
-
pressable
|
|
5
|
-
} from "./chunk-VALIDQXU.js";
|
|
6
|
-
import {
|
|
7
|
-
useNexubMessages
|
|
8
|
-
} from "./chunk-VMSWIC3O.js";
|
|
9
|
-
import {
|
|
10
|
-
cn
|
|
11
|
-
} from "./chunk-WRVFNYO3.js";
|
|
12
|
-
|
|
13
|
-
// src/components/Pagination/Pagination.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
3
|
import * as React from "react";
|
|
15
4
|
import { ChevronLeft, ChevronRight, MoreHorizontal } from "@nexub/icons";
|
|
16
|
-
import {
|
|
17
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
7
|
+
import { disabledText, pressable } from "../../utils/control.js";
|
|
8
|
+
const navButton = cn(
|
|
18
9
|
pressable,
|
|
19
10
|
"inline-flex h-11 w-11 items-center justify-center bg-transparent text-[var(--color-on-surface)]",
|
|
20
11
|
disabledText
|
|
@@ -34,7 +25,7 @@ function generatePages(current, total, siblings) {
|
|
|
34
25
|
pages.push(total);
|
|
35
26
|
return pages;
|
|
36
27
|
}
|
|
37
|
-
|
|
28
|
+
const Pagination = React.forwardRef(
|
|
38
29
|
({
|
|
39
30
|
className,
|
|
40
31
|
page,
|
|
@@ -109,7 +100,6 @@ var Pagination = React.forwardRef(
|
|
|
109
100
|
}
|
|
110
101
|
);
|
|
111
102
|
Pagination.displayName = "Pagination";
|
|
112
|
-
|
|
113
103
|
export {
|
|
114
104
|
Pagination
|
|
115
105
|
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Pagination
|
|
4
|
-
} from "../../chunk-NLVP74RX.js";
|
|
5
|
-
import "../../chunk-VALIDQXU.js";
|
|
6
|
-
import "../../chunk-VMSWIC3O.js";
|
|
7
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { Pagination } from "./Pagination.js";
|
|
8
2
|
export {
|
|
9
3
|
Pagination
|
|
10
4
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type InputProps } from '../Input/Input.js';
|
|
3
|
+
export interface PasswordInputProps extends Omit<InputProps, 'type' | 'trailingIcon'> {
|
|
4
|
+
/** Whether the password is shown as text. Controlled when set. */
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
defaultVisible?: boolean;
|
|
7
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|