@nexub/react 2.9.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +10 -0
- package/dist/{chunk-DOVZNUSH.js → components/Accordion/Accordion.js} +12 -17
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +1 -5
- package/dist/components/Alert/Alert.d.ts +14 -0
- package/dist/{chunk-U422B6UE.js → components/Alert/Alert.js} +8 -15
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.js +1 -7
- package/dist/components/AlertDialog/AlertDialog.d.ts +15 -0
- package/dist/{chunk-PDQTKE2C.js → components/AlertDialog/AlertDialog.js} +32 -42
- package/dist/components/AlertDialog/index.d.ts +1 -0
- package/dist/components/AlertDialog/index.js +1 -9
- package/dist/components/Amount/Amount.d.ts +22 -0
- package/dist/{chunk-IBBICKEZ.js → components/Amount/Amount.js} +10 -21
- package/dist/components/Amount/index.d.ts +2 -0
- package/dist/components/Amount/index.js +1 -8
- package/dist/components/AppShell/AppShell.d.ts +8 -0
- package/dist/{chunk-EPJ4CMZP.js → components/AppShell/AppShell.js} +8 -14
- package/dist/components/AppShell/index.d.ts +1 -0
- package/dist/components/AppShell/index.js +1 -5
- package/dist/components/AspectRatio/AspectRatio.d.ts +5 -0
- package/dist/{chunk-52CXVN3U.js → components/AspectRatio/AspectRatio.js} +4 -10
- package/dist/components/AspectRatio/index.d.ts +2 -0
- package/dist/components/AspectRatio/index.js +1 -5
- package/dist/components/Autocomplete/Autocomplete.d.ts +18 -0
- package/dist/{chunk-E7RLUHG3.js → components/Autocomplete/Autocomplete.js} +4 -11
- package/dist/components/Autocomplete/index.d.ts +2 -0
- package/dist/components/Autocomplete/index.js +1 -7
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/{chunk-AYG7HBDZ.js → components/Avatar/Avatar.js} +8 -13
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +1 -7
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +12 -0
- package/dist/{chunk-BMUAR6H2.js → components/AvatarGroup/AvatarGroup.js} +9 -18
- package/dist/components/AvatarGroup/index.d.ts +2 -0
- package/dist/components/AvatarGroup/index.js +1 -8
- package/dist/components/Badge/Badge.d.ts +12 -0
- package/dist/{chunk-FBUKWIWR.js → components/Badge/Badge.js} +7 -13
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +1 -6
- package/dist/components/Box/Box.d.ts +5 -0
- package/dist/{chunk-ZCHZNGWU.js → components/Box/Box.js} +3 -9
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Box/index.js +1 -5
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +21 -0
- package/dist/{chunk-SQGRT72E.js → components/Breadcrumb/Breadcrumb.js} +12 -19
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Breadcrumb/index.js +1 -6
- package/dist/components/Button/Button.d.ts +30 -0
- package/dist/{chunk-GHLMHKMV.js → components/Button/Button.js} +19 -37
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +1 -9
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -0
- package/dist/{chunk-7EQ2LIYD.js → components/ButtonGroup/ButtonGroup.js} +3 -9
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.js +1 -6
- package/dist/components/Card/Card.d.ts +27 -0
- package/dist/{chunk-T466ZB34.js → components/Card/Card.js} +18 -46
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +1 -8
- package/dist/components/CheckList/CheckList.d.ts +10 -0
- package/dist/{chunk-T3RBFJML.js → components/CheckList/CheckList.js} +4 -10
- package/dist/components/CheckList/index.d.ts +2 -0
- package/dist/components/CheckList/index.js +1 -6
- package/dist/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/{chunk-JOOKMCAF.js → components/Checkbox/Checkbox.js} +4 -9
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +1 -5
- package/dist/components/CheckboxCard/CheckboxCard.d.ts +9 -0
- package/dist/{chunk-EYGT5IX4.js → components/CheckboxCard/CheckboxCard.js} +7 -12
- package/dist/components/CheckboxCard/index.d.ts +2 -0
- package/dist/components/CheckboxCard/index.js +1 -6
- package/dist/components/Chip/Chip.d.ts +12 -0
- package/dist/{chunk-PFDUHXT5.js → components/Chip/Chip.js} +8 -15
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/index.js +1 -7
- package/dist/components/Citation/Citation.d.ts +44 -0
- package/dist/{chunk-IA2362SO.js → components/Citation/Citation.js} +12 -21
- package/dist/components/Citation/index.d.ts +2 -0
- package/dist/components/Citation/index.js +1 -11
- package/dist/components/Code/Code.d.ts +6 -0
- package/dist/{chunk-NX44VGON.js → components/Code/Code.js} +3 -9
- package/dist/components/Code/index.d.ts +2 -0
- package/dist/components/Code/index.js +1 -5
- package/dist/components/Collapsible/Collapsible.d.ts +7 -0
- package/dist/{chunk-4WIUGX5Z.js → components/Collapsible/Collapsible.js} +10 -15
- package/dist/components/Collapsible/index.d.ts +1 -0
- package/dist/components/Collapsible/index.js +1 -5
- package/dist/components/Combobox/Combobox.d.ts +75 -0
- package/dist/{chunk-XWELMPYD.js → components/Combobox/Combobox.js} +11 -16
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/Combobox/index.js +1 -6
- package/dist/components/CommandPalette/CommandPalette.d.ts +73 -0
- package/dist/{chunk-LASPHHH6.js → components/CommandPalette/CommandPalette.js} +16 -28
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.js +1 -8
- package/dist/components/Container/Container.d.ts +10 -0
- package/dist/{chunk-EQ5ASTJM.js → components/Container/Container.js} +7 -12
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/Container/index.js +1 -6
- package/dist/components/ContextMenu/ContextMenu.d.ts +18 -0
- package/dist/{chunk-CUCTSWR2.js → components/ContextMenu/ContextMenu.js} +42 -53
- package/dist/components/ContextMenu/index.d.ts +1 -0
- package/dist/components/ContextMenu/index.js +1 -6
- package/dist/components/CountryBadge/CountryBadge.d.ts +8 -0
- package/dist/{chunk-JZCZ2SDT.js → components/CountryBadge/CountryBadge.js} +5 -13
- package/dist/components/CountryBadge/index.d.ts +2 -0
- package/dist/components/CountryBadge/index.js +1 -6
- package/dist/components/DataTable/DataTable.d.ts +24 -0
- package/dist/{chunk-A7PS3EZO.js → components/DataTable/DataTable.js} +15 -27
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/index.js +1 -8
- package/dist/components/DatePicker/DatePicker.d.ts +39 -0
- package/dist/{chunk-OY5CWWIM.js → components/DatePicker/DatePicker.js} +11 -24
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +1 -9
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +20 -0
- package/dist/{chunk-YYAXXJH3.js → components/DateRangePicker/DateRangePicker.js} +9 -23
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +1 -9
- package/dist/components/Dialog/Dialog.d.ts +21 -0
- package/dist/{chunk-CEFGILJY.js → components/Dialog/Dialog.js} +28 -38
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.js +1 -7
- package/dist/components/Drawer/Drawer.d.ts +94 -0
- package/dist/components/Drawer/Drawer.js +131 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/index.js +1 -9
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +18 -0
- package/dist/{chunk-GWFIMQBC.js → components/DropdownMenu/DropdownMenu.js} +42 -53
- package/dist/components/DropdownMenu/index.d.ts +1 -0
- package/dist/components/DropdownMenu/index.js +1 -7
- package/dist/components/EmptyState/EmptyState.d.ts +8 -0
- package/dist/{chunk-AWTSLASB.js → components/EmptyState/EmptyState.js} +8 -14
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/EmptyState/index.js +1 -5
- package/dist/components/ErrorState/ErrorState.d.ts +10 -0
- package/dist/{chunk-NX5ZJSRU.js → components/ErrorState/ErrorState.js} +6 -13
- package/dist/components/ErrorState/index.d.ts +2 -0
- package/dist/components/ErrorState/index.js +1 -6
- package/dist/components/EyebrowChip/EyebrowChip.d.ts +11 -0
- package/dist/{chunk-MXXJOAWQ.js → components/EyebrowChip/EyebrowChip.js} +7 -13
- package/dist/components/EyebrowChip/index.d.ts +2 -0
- package/dist/components/EyebrowChip/index.js +1 -8
- package/dist/components/FileUpload/FileUpload.d.ts +16 -0
- package/dist/{chunk-LR6KNEKL.js → components/FileUpload/FileUpload.js} +12 -19
- package/dist/components/FileUpload/index.d.ts +2 -0
- package/dist/components/FileUpload/index.js +1 -6
- package/dist/components/FilterChip/FilterChip.d.ts +8 -0
- package/dist/{chunk-36QSSD7I.js → components/FilterChip/FilterChip.js} +6 -15
- package/dist/components/FilterChip/index.d.ts +2 -0
- package/dist/components/FilterChip/index.js +1 -7
- package/dist/components/Flag/Flag.d.ts +7 -0
- package/dist/{chunk-HOQPHAGW.js → components/Flag/Flag.js} +4 -10
- package/dist/components/Flag/index.d.ts +2 -0
- package/dist/components/Flag/index.js +1 -6
- package/dist/components/Flex/Flex.d.ts +10 -0
- package/dist/{chunk-BOO4VH3M.js → components/Flex/Flex.js} +5 -13
- package/dist/components/Flex/index.d.ts +2 -0
- package/dist/components/Flex/index.js +1 -6
- package/dist/components/FormError/FormError.d.ts +3 -0
- package/dist/{chunk-H2X6MSNY.js → components/FormError/FormError.js} +3 -9
- package/dist/components/FormError/index.d.ts +2 -0
- package/dist/components/FormError/index.js +1 -6
- package/dist/components/FormField/FormField.d.ts +46 -0
- package/dist/{chunk-FRGFO4DS.js → components/FormField/FormField.js} +9 -20
- package/dist/components/FormField/index.d.ts +2 -0
- package/dist/components/FormField/index.js +1 -11
- package/dist/components/GradientDivider/GradientDivider.d.ts +6 -0
- package/dist/{chunk-FDRAGYDV.js → components/GradientDivider/GradientDivider.js} +7 -13
- package/dist/components/GradientDivider/index.d.ts +2 -0
- package/dist/components/GradientDivider/index.js +1 -5
- package/dist/components/Grid/Grid.d.ts +9 -0
- package/dist/{chunk-F5S2KP3Z.js → components/Grid/Grid.js} +5 -13
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/index.js +1 -6
- package/dist/components/Heading/Heading.d.ts +17 -0
- package/dist/{chunk-Z7OR2LYG.js → components/Heading/Heading.js} +8 -16
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/index.js +1 -9
- package/dist/components/HelperText/HelperText.d.ts +6 -0
- package/dist/{chunk-QKGQBJ4U.js → components/HelperText/HelperText.js} +4 -12
- package/dist/components/HelperText/index.d.ts +2 -0
- package/dist/components/HelperText/index.js +1 -9
- package/dist/components/HoverCard/HoverCard.d.ts +10 -0
- package/dist/{chunk-KL55E5PE.js → components/HoverCard/HoverCard.js} +15 -22
- package/dist/components/HoverCard/index.d.ts +1 -0
- package/dist/components/HoverCard/index.js +1 -7
- package/dist/components/IconButton/IconButton.d.ts +11 -0
- package/dist/{chunk-RH2HEPC7.js → components/IconButton/IconButton.js} +7 -17
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/index.js +1 -8
- package/dist/components/Input/Input.d.ts +21 -0
- package/dist/{chunk-G7VMAWAX.js → components/Input/Input.js} +10 -21
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.js +1 -10
- package/dist/components/Kbd/Kbd.d.ts +4 -0
- package/dist/{chunk-OM62PQSE.js → components/Kbd/Kbd.js} +3 -9
- package/dist/components/Kbd/index.d.ts +2 -0
- package/dist/components/Kbd/index.js +1 -6
- package/dist/components/KeyboardShortcut/KeyboardShortcut.d.ts +5 -0
- package/dist/{chunk-PR3CEPFG.js → components/KeyboardShortcut/KeyboardShortcut.js} +4 -12
- package/dist/components/KeyboardShortcut/index.d.ts +2 -0
- package/dist/components/KeyboardShortcut/index.js +1 -6
- package/dist/components/Label/Label.d.ts +15 -0
- package/dist/{chunk-BM5PGGK2.js → components/Label/Label.js} +7 -15
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Label/index.js +1 -10
- package/dist/components/Link/Link.d.ts +11 -0
- package/dist/{chunk-QCLE5VQW.js → components/Link/Link.js} +6 -12
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Link/index.js +1 -6
- package/dist/components/Logo/Logo.d.ts +15 -0
- package/dist/{chunk-ZGJF4HAT.js → components/Logo/Logo.js} +8 -14
- package/dist/components/Logo/index.d.ts +2 -0
- package/dist/components/Logo/index.js +1 -6
- package/dist/components/MediaCard/MediaCard.d.ts +24 -0
- package/dist/{chunk-5DHLFPC4.js → components/MediaCard/MediaCard.js} +5 -13
- package/dist/components/MediaCard/index.d.ts +2 -0
- package/dist/components/MediaCard/index.js +1 -6
- package/dist/components/Menubar/Menubar.d.ts +1 -0
- package/dist/{chunk-PPECMYKJ.js → components/Menubar/Menubar.js} +50 -61
- package/dist/components/Menubar/index.d.ts +1 -0
- package/dist/components/Menubar/index.js +1 -6
- package/dist/components/MessageBubble/MessageBubble.d.ts +43 -0
- package/dist/{chunk-RNS35DNZ.js → components/MessageBubble/MessageBubble.js} +13 -27
- package/dist/components/MessageBubble/index.d.ts +2 -0
- package/dist/components/MessageBubble/index.js +1 -13
- package/dist/components/MoneyInput/MoneyInput.d.ts +19 -0
- package/dist/{chunk-FOFNTKCK.js → components/MoneyInput/MoneyInput.js} +8 -24
- package/dist/components/MoneyInput/index.d.ts +2 -0
- package/dist/components/MoneyInput/index.js +1 -11
- package/dist/components/Motion/Collapse.d.ts +29 -0
- package/dist/components/Motion/Collapse.js +103 -0
- package/dist/components/Motion/Fade.d.ts +16 -0
- package/dist/components/Motion/Fade.js +42 -0
- package/dist/components/Motion/Float.d.ts +8 -0
- package/dist/components/Motion/Float.js +14 -0
- package/dist/components/Motion/ListTransition.d.ts +46 -0
- package/dist/components/Motion/ListTransition.js +110 -0
- package/dist/components/Motion/Marquee.d.ts +13 -0
- package/dist/components/Motion/Marquee.js +13 -0
- package/dist/components/Motion/Reveal.d.ts +12 -0
- package/dist/components/Motion/Reveal.js +32 -0
- package/dist/components/Motion/Scale.d.ts +22 -0
- package/dist/components/Motion/Scale.js +45 -0
- package/dist/components/Motion/Slide.d.ts +22 -0
- package/dist/components/Motion/Slide.js +59 -0
- package/dist/components/Motion/index.d.ts +18 -0
- package/dist/components/Motion/index.js +12 -10
- package/dist/components/Motion/motion.types.d.ts +25 -0
- package/dist/components/Motion/motion.types.js +1 -0
- package/dist/components/Motion/useMotion.d.ts +41 -0
- package/dist/components/Motion/useMotion.js +102 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +12 -0
- package/dist/{chunk-FXVI4RCJ.js → components/NavigationMenu/NavigationMenu.js} +21 -28
- package/dist/components/NavigationMenu/index.d.ts +1 -0
- package/dist/components/NavigationMenu/index.js +1 -6
- package/dist/components/NavigationRail/NavigationRail.d.ts +19 -0
- package/dist/{chunk-5MGCYR4G.js → components/NavigationRail/NavigationRail.js} +7 -14
- package/dist/components/NavigationRail/index.d.ts +2 -0
- package/dist/components/NavigationRail/index.js +1 -6
- package/dist/components/NexubProvider/NexubProvider.d.ts +34 -0
- package/dist/{chunk-VMSWIC3O.js → components/NexubProvider/NexubProvider.js} +7 -9
- package/dist/components/NexubProvider/index.d.ts +2 -0
- package/dist/components/NexubProvider/index.js +1 -8
- package/dist/components/NumberInput/NumberInput.d.ts +15 -0
- package/dist/{chunk-V3EWVSVI.js → components/NumberInput/NumberInput.js} +9 -20
- package/dist/components/NumberInput/index.d.ts +2 -0
- package/dist/components/NumberInput/index.js +1 -8
- package/dist/components/NumberTicker/NumberTicker.d.ts +25 -0
- package/dist/{chunk-2G3XUIQZ.js → components/NumberTicker/NumberTicker.js} +30 -19
- package/dist/components/NumberTicker/index.d.ts +2 -0
- package/dist/components/NumberTicker/index.js +1 -7
- package/dist/components/PageHeader/PageHeader.d.ts +10 -0
- package/dist/{chunk-SEW66BU7.js → components/PageHeader/PageHeader.js} +3 -9
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/PageHeader/index.js +1 -5
- package/dist/components/Pagination/Pagination.d.ts +9 -0
- package/dist/{chunk-NLVP74RX.js → components/Pagination/Pagination.js} +7 -17
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +1 -7
- package/dist/components/PasswordInput/PasswordInput.d.ts +9 -0
- package/dist/{chunk-OGHOT6XN.js → components/PasswordInput/PasswordInput.js} +7 -18
- package/dist/components/PasswordInput/index.d.ts +2 -0
- package/dist/components/PasswordInput/index.js +1 -10
- package/dist/components/Popover/Popover.d.ts +13 -0
- package/dist/{chunk-MPJG4WFP.js → components/Popover/Popover.js} +20 -29
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.js +1 -7
- package/dist/components/Progress/Progress.d.ts +17 -0
- package/dist/{chunk-HXNUIIXB.js → components/Progress/Progress.js} +9 -16
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +1 -8
- package/dist/components/PromptInput/PromptInput.d.ts +33 -0
- package/dist/{chunk-ZUMC7SX5.js → components/PromptInput/PromptInput.js} +12 -30
- package/dist/components/PromptInput/index.d.ts +2 -0
- package/dist/components/PromptInput/index.js +1 -12
- package/dist/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/{chunk-YNLXG574.js → components/RadioCard/RadioCard.js} +11 -16
- package/dist/components/RadioCard/index.d.ts +2 -0
- package/dist/components/RadioCard/index.js +1 -7
- package/dist/components/RadioCard/selectableCard.d.ts +29 -0
- package/dist/{chunk-6SPCGCDG.js → components/RadioCard/selectableCard.js} +6 -11
- package/dist/components/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/{chunk-QQR4PPF3.js → components/RadioGroup/RadioGroup.js} +8 -13
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/RadioGroup/index.js +1 -5
- package/dist/components/Rating/Rating.d.ts +12 -0
- package/dist/{chunk-VCCQ64G7.js → components/Rating/Rating.js} +9 -18
- package/dist/components/Rating/index.d.ts +2 -0
- package/dist/components/Rating/index.js +1 -9
- package/dist/components/ScrollArea/ScrollArea.d.ts +6 -0
- package/dist/{chunk-2DZWTBDL.js → components/ScrollArea/ScrollArea.js} +4 -9
- package/dist/components/ScrollArea/index.d.ts +2 -0
- package/dist/components/ScrollArea/index.js +1 -5
- package/dist/components/SearchInput/SearchInput.d.ts +6 -0
- package/dist/{chunk-YVS6AVPD.js → components/SearchInput/SearchInput.js} +7 -18
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/SearchInput/index.js +1 -10
- package/dist/components/Section/Section.d.ts +10 -0
- package/dist/{chunk-EIV37DAQ.js → components/Section/Section.js} +6 -12
- package/dist/components/Section/index.d.ts +2 -0
- package/dist/components/Section/index.js +1 -6
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +12 -0
- package/dist/{chunk-KRIRCSUB.js → components/SegmentedControl/SegmentedControl.js} +12 -21
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/SegmentedControl/index.js +1 -8
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/{chunk-M5PDVHFN.js → components/Select/Select.js} +35 -48
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +1 -7
- package/dist/components/Separator/Separator.d.ts +12 -0
- package/dist/{chunk-YVCUKIAC.js → components/Separator/Separator.js} +6 -12
- package/dist/components/Separator/index.d.ts +2 -0
- package/dist/components/Separator/index.js +1 -6
- package/dist/components/Sidebar/Sidebar.d.ts +25 -0
- package/dist/{chunk-NAESV7K3.js → components/Sidebar/Sidebar.js} +11 -18
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/index.js +1 -6
- package/dist/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/{chunk-3C4WVTAN.js → components/Skeleton/Skeleton.js} +7 -13
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/index.js +1 -6
- package/dist/components/Slider/Slider.d.ts +7 -0
- package/dist/{chunk-5QWRBJSZ.js → components/Slider/Slider.js} +4 -9
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/index.js +1 -5
- package/dist/components/Spinner/Spinner.d.ts +12 -0
- package/dist/{chunk-P3SAE4T2.js → components/Spinner/Spinner.js} +8 -15
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/index.js +1 -7
- package/dist/components/SplitButton/SplitButton.d.ts +15 -0
- package/dist/{chunk-ILIM4BLN.js → components/SplitButton/SplitButton.js} +7 -18
- package/dist/components/SplitButton/index.d.ts +2 -0
- package/dist/components/SplitButton/index.js +1 -11
- package/dist/components/Stack/Stack.d.ts +11 -0
- package/dist/{chunk-ST4O3EQ3.js → components/Stack/Stack.js} +4 -12
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/Stack/index.js +1 -6
- package/dist/components/StreamingText/StreamingText.d.ts +19 -0
- package/dist/{chunk-4ESZQDPB.js → components/StreamingText/StreamingText.js} +5 -10
- package/dist/components/StreamingText/index.d.ts +2 -0
- package/dist/components/StreamingText/index.js +1 -5
- package/dist/components/Switch/Switch.d.ts +12 -0
- package/dist/{chunk-EWW6PWTK.js → components/Switch/Switch.js} +9 -12
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +1 -5
- package/dist/components/Table/Table.d.ts +18 -0
- package/dist/{chunk-KA6RZ7VN.js → components/Table/Table.js} +13 -18
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +1 -6
- package/dist/components/Tabs/Tabs.d.ts +8 -0
- package/dist/{chunk-BIWSXGTZ.js → components/Tabs/Tabs.js} +14 -23
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +1 -8
- package/dist/components/Text/Text.d.ts +13 -0
- package/dist/{chunk-UYINKNCI.js → components/Text/Text.js} +7 -13
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/Text/index.js +1 -6
- package/dist/components/TextGradient/TextGradient.d.ts +4 -0
- package/dist/{chunk-IDPRAXCG.js → components/TextGradient/TextGradient.js} +3 -9
- package/dist/components/TextGradient/index.d.ts +2 -0
- package/dist/components/TextGradient/index.js +1 -5
- package/dist/components/Textarea/Textarea.d.ts +13 -0
- package/dist/{chunk-HL64PWVQ.js → components/Textarea/Textarea.js} +8 -17
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +1 -7
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +69 -0
- package/dist/{chunk-ZBRRQHZG.js → components/ThemeProvider/ThemeProvider.js} +11 -15
- package/dist/components/ThemeProvider/index.d.ts +2 -0
- package/dist/components/ThemeProvider/index.js +1 -7
- package/dist/components/ThinkingIndicator/ThinkingIndicator.d.ts +18 -0
- package/dist/{chunk-VX56VQMF.js → components/ThinkingIndicator/ThinkingIndicator.js} +6 -13
- package/dist/components/ThinkingIndicator/index.d.ts +2 -0
- package/dist/components/ThinkingIndicator/index.js +1 -6
- package/dist/components/Toast/Toast.d.ts +17 -0
- package/dist/components/Toast/Toast.js +82 -0
- package/dist/components/Toast/Toaster.d.ts +21 -0
- package/dist/{chunk-MQGBAWSJ.js → components/Toast/Toaster.js} +27 -189
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/Toast/index.js +3 -10
- package/dist/components/Toast/useToast.d.ts +45 -0
- package/dist/components/Toast/useToast.js +74 -0
- package/dist/components/Toggle/Toggle.d.ts +10 -0
- package/dist/{chunk-NMSQDI4A.js → components/Toggle/Toggle.js} +7 -12
- package/dist/components/Toggle/index.d.ts +2 -0
- package/dist/components/Toggle/index.js +1 -7
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +16 -0
- package/dist/{chunk-UOBWHPXG.js → components/ToggleGroup/ToggleGroup.js} +10 -17
- package/dist/components/ToggleGroup/index.d.ts +1 -0
- package/dist/components/ToggleGroup/index.js +1 -6
- package/dist/components/Toolbar/Toolbar.d.ts +18 -0
- package/dist/{chunk-WGW7TZOV.js → components/Toolbar/Toolbar.js} +15 -22
- package/dist/components/Toolbar/index.d.ts +2 -0
- package/dist/components/Toolbar/index.js +1 -6
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/{chunk-6SWOLUMF.js → components/Tooltip/Tooltip.js} +16 -21
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +1 -10
- package/dist/components/TopNav/TopNav.d.ts +20 -0
- package/dist/{chunk-BNG3Y5I7.js → components/TopNav/TopNav.js} +11 -20
- package/dist/components/TopNav/index.d.ts +2 -0
- package/dist/components/TopNav/index.js +1 -7
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +2 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +5 -0
- package/dist/components/VisuallyHidden/index.d.ts +2 -0
- package/dist/components/VisuallyHidden/index.js +2 -5
- package/dist/hooks/useClassScrollLock.d.ts +6 -0
- package/dist/{chunk-47UGX37F.js → hooks/useClassScrollLock.js} +2 -5
- package/dist/hooks/useControllableState.d.ts +7 -0
- package/dist/{chunk-JLUCMNVS.js → hooks/useControllableState.js} +2 -7
- package/dist/hooks/useDisclosure.d.ts +6 -0
- package/dist/hooks/useDisclosure.js +12 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -0
- package/dist/hooks/useMediaQuery.js +17 -0
- package/dist/hooks/useMergedRefs.d.ts +2 -0
- package/dist/{chunk-MNEXMMLM.js → hooks/useMergedRefs.js} +1 -4
- package/dist/hooks/usePointerSheen.d.ts +8 -0
- package/dist/hooks/usePointerSheen.js +25 -0
- package/dist/hooks/useSlidingIndicator.d.ts +8 -0
- package/dist/{chunk-6UKNUI46.js → hooks/useSlidingIndicator.js} +2 -7
- package/dist/index.d.ts +196 -1900
- package/dist/index.js +116 -438
- package/dist/styles.css +1 -1
- package/dist/utils/cn.d.ts +2 -0
- package/dist/{chunk-WRVFNYO3.js → utils/cn.js} +8 -11
- package/dist/utils/control.d.ts +20 -0
- package/dist/utils/control.js +41 -0
- package/dist/utils/deprecated.d.ts +6 -0
- package/dist/{chunk-VLME3JFF.js → utils/deprecated.js} +1 -5
- package/dist/utils/glass.d.ts +9 -0
- package/dist/utils/glass.js +4 -0
- package/dist/utils/layout.d.ts +14 -0
- package/dist/{chunk-VLQGQFW7.js → utils/layout.js} +5 -9
- package/dist/utils/money.d.ts +1 -0
- package/dist/{chunk-R3SUPKKI.js → utils/money.js} +3 -6
- package/dist/utils/surface.d.ts +11 -0
- package/dist/{chunk-5FWJXSXT.js → utils/surface.js} +9 -13
- package/dist/utils/viewTransition.d.ts +5 -0
- package/dist/utils/viewTransition.js +8 -0
- package/dist/{chunk-PZL6AJH5.js → vendor/vaul.js} +2 -140
- package/package.json +15 -7
- package/dist/chunk-4B4XWDAH.js +0 -1
- package/dist/chunk-4GVGS5N4.js +0 -468
- package/dist/chunk-52ZVJPF7.js +0 -1
- package/dist/chunk-A3O23F2B.js +0 -1
- package/dist/chunk-ADO2DB6Q.js +0 -1
- package/dist/chunk-BV3U3ATL.js +0 -1
- package/dist/chunk-CAOLGXA5.js +0 -1
- package/dist/chunk-CQQ5UAO3.js +0 -91
- package/dist/chunk-DEIBF3P7.js +0 -8
- package/dist/chunk-EV43I5J6.js +0 -1
- package/dist/chunk-HI7GBSW2.js +0 -1
- package/dist/chunk-HY3JWSG4.js +0 -1
- package/dist/chunk-IZ6ZPEZ2.js +0 -1
- package/dist/chunk-KLTQJZOX.js +0 -1
- package/dist/chunk-LVPU7455.js +0 -1
- package/dist/chunk-NHUQLIHL.js +0 -9
- package/dist/chunk-NZ7UK3G6.js +0 -1
- package/dist/chunk-P26VJEIW.js +0 -1
- package/dist/chunk-PICMOOAZ.js +0 -1
- package/dist/chunk-PXISQY4H.js +0 -59
- package/dist/chunk-VALIDQXU.js +0 -31
- package/dist/chunk-WLRRMT6W.js +0 -1
- package/dist/chunk-XIKO5XFW.js +0 -89
- package/dist/chunk-XYXMPHND.js +0 -1
- package/dist/chunk-YJU4ZRQZ.js +0 -1
- package/dist/chunk-Z46ISXJ6.js +0 -57
- package/dist/chunk-ZT3NWE5U.js +0 -1
- package/dist/chunk-ZXLACKEB.js +0 -8
- package/dist/components/Banner/index.js +0 -12
- package/dist/components/Callout/index.js +0 -11
- package/dist/components/StatusPill/index.js +0 -11
- package/dist/components/Tag/index.js +0 -11
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
+
import { Drawer as VaulDrawer } from "../../vendor/vaul.js";
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
import { scrim } from "../../utils/surface.js";
|
|
8
|
+
import { useClassScrollLock } from "../../hooks/useClassScrollLock.js";
|
|
9
|
+
import { glassSurfaceClass } from "../../utils/glass.js";
|
|
10
|
+
const DrawerContext = React.createContext({ scrollLock: "style", open: false, modal: true });
|
|
11
|
+
function Root({ scrollLock = "style", onOpenChange, ...props }) {
|
|
12
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React.useState(props.defaultOpen ?? false);
|
|
13
|
+
const open = props.open ?? uncontrolledOpen;
|
|
14
|
+
return /* @__PURE__ */ jsx(DrawerContext.Provider, { value: { scrollLock, open, modal: props.modal ?? true }, children: /* @__PURE__ */ jsx(
|
|
15
|
+
VaulDrawer.Root,
|
|
16
|
+
{
|
|
17
|
+
...props,
|
|
18
|
+
onOpenChange: (next) => {
|
|
19
|
+
setUncontrolledOpen(next);
|
|
20
|
+
onOpenChange?.(next);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
) });
|
|
24
|
+
}
|
|
25
|
+
Root.displayName = "Drawer.Root";
|
|
26
|
+
const Trigger = VaulDrawer.Trigger;
|
|
27
|
+
const Close = VaulDrawer.Close;
|
|
28
|
+
const Portal = VaulDrawer.Portal;
|
|
29
|
+
const ClassLockOverlay = React.forwardRef(
|
|
30
|
+
({ asChild, forceMount: _forceMount, open, ...props }, ref) => {
|
|
31
|
+
useClassScrollLock();
|
|
32
|
+
const Comp = asChild ? Slot : "div";
|
|
33
|
+
return /* @__PURE__ */ jsx(
|
|
34
|
+
Comp,
|
|
35
|
+
{
|
|
36
|
+
ref,
|
|
37
|
+
"data-vaul-overlay": "",
|
|
38
|
+
"data-vaul-snap-points": "false",
|
|
39
|
+
"data-state": open ? "open" : "closed",
|
|
40
|
+
...props
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
const Overlay = React.forwardRef(
|
|
46
|
+
({ className, ...props }, ref) => {
|
|
47
|
+
const { scrollLock, open, modal } = React.useContext(DrawerContext);
|
|
48
|
+
const classes = cn("nx-drawer-overlay fixed inset-0 z-[var(--z-modal)]", scrim, className);
|
|
49
|
+
if (scrollLock === "class") {
|
|
50
|
+
if (!modal) return null;
|
|
51
|
+
return /* @__PURE__ */ jsx(ClassLockOverlay, { ref, open, className: cn("pointer-events-auto", classes), ...props });
|
|
52
|
+
}
|
|
53
|
+
return /* @__PURE__ */ jsx(VaulDrawer.Overlay, { ref, className: classes, ...props });
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
Overlay.displayName = "Drawer.Overlay";
|
|
57
|
+
const Content = React.forwardRef(({ className, children, side = "right", surface = "solid", ...props }, ref) => {
|
|
58
|
+
const sideMap = {
|
|
59
|
+
right: "inset-y-0 right-0 h-full w-3/4 max-w-sm overflow-x-hidden",
|
|
60
|
+
left: "inset-y-0 left-0 h-full w-3/4 max-w-sm overflow-x-hidden",
|
|
61
|
+
top: "inset-x-0 top-0 w-full rounded-b-[var(--shape-overlay)]",
|
|
62
|
+
bottom: "inset-x-0 bottom-0 w-full rounded-t-[var(--shape-overlay)]"
|
|
63
|
+
};
|
|
64
|
+
return /* @__PURE__ */ jsxs(
|
|
65
|
+
VaulDrawer.Content,
|
|
66
|
+
{
|
|
67
|
+
ref,
|
|
68
|
+
className: cn(
|
|
69
|
+
"nx-drawer fixed z-[var(--z-modal)] flex flex-col bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)] shadow-elevation-3 focus:outline-none",
|
|
70
|
+
sideMap[side],
|
|
71
|
+
surface === "glass" && glassSurfaceClass,
|
|
72
|
+
className
|
|
73
|
+
),
|
|
74
|
+
"data-material": surface === "glass" ? "glass" : void 0,
|
|
75
|
+
"data-glass-thickness": surface === "glass" ? "thick" : void 0,
|
|
76
|
+
...props,
|
|
77
|
+
children: [
|
|
78
|
+
side === "bottom" && /* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-20 rounded-full bg-[var(--color-outline-variant)]" }),
|
|
79
|
+
children
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
});
|
|
84
|
+
Content.displayName = "Drawer.Content";
|
|
85
|
+
const Title = React.forwardRef(
|
|
86
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
87
|
+
VaulDrawer.Title,
|
|
88
|
+
{
|
|
89
|
+
ref,
|
|
90
|
+
className: cn("text-title-lg text-[var(--color-on-surface)]", className),
|
|
91
|
+
...props
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
);
|
|
95
|
+
Title.displayName = "Drawer.Title";
|
|
96
|
+
const Description = React.forwardRef(
|
|
97
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
98
|
+
VaulDrawer.Description,
|
|
99
|
+
{
|
|
100
|
+
ref,
|
|
101
|
+
className: cn("text-body-sm text-[var(--color-on-surface-muted)]", className),
|
|
102
|
+
...props
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
);
|
|
106
|
+
Description.displayName = "Drawer.Description";
|
|
107
|
+
const Header = React.forwardRef(
|
|
108
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col gap-1.5 p-6", className), ...props })
|
|
109
|
+
);
|
|
110
|
+
Header.displayName = "Drawer.Header";
|
|
111
|
+
const Footer = React.forwardRef(
|
|
112
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("mt-auto flex flex-col gap-2 p-6", className), ...props })
|
|
113
|
+
);
|
|
114
|
+
Footer.displayName = "Drawer.Footer";
|
|
115
|
+
const Drawer = {
|
|
116
|
+
Root,
|
|
117
|
+
Trigger,
|
|
118
|
+
Portal,
|
|
119
|
+
Overlay,
|
|
120
|
+
Content,
|
|
121
|
+
Close,
|
|
122
|
+
Title,
|
|
123
|
+
Description,
|
|
124
|
+
Header,
|
|
125
|
+
Footer
|
|
126
|
+
};
|
|
127
|
+
const Sheet = Drawer;
|
|
128
|
+
export {
|
|
129
|
+
Drawer,
|
|
130
|
+
Sheet
|
|
131
|
+
};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Drawer,
|
|
4
|
-
Sheet
|
|
5
|
-
} from "../../chunk-PZL6AJH5.js";
|
|
6
|
-
import "../../chunk-47UGX37F.js";
|
|
7
|
-
import "../../chunk-5FWJXSXT.js";
|
|
8
|
-
import "../../chunk-DEIBF3P7.js";
|
|
9
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { Drawer, Sheet } from "./Drawer.js";
|
|
10
2
|
export {
|
|
11
3
|
Drawer,
|
|
12
4
|
Sheet
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixDropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
export declare const DropdownMenu: {
|
|
4
|
+
Root: React.FC<RadixDropdownMenu.DropdownMenuProps>;
|
|
5
|
+
Trigger: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
Portal: React.FC<RadixDropdownMenu.DropdownMenuPortalProps>;
|
|
7
|
+
Content: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Item: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Group: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Label: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Separator: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
CheckboxItem: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
RadioGroup: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
RadioItem: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Sub: React.FC<RadixDropdownMenu.DropdownMenuSubProps>;
|
|
16
|
+
SubTrigger: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
SubContent: React.ForwardRefExoticComponent<RadixDropdownMenu.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
};
|
|
@@ -1,27 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
floatingSurface,
|
|
4
|
-
menuContent,
|
|
5
|
-
menuItem,
|
|
6
|
-
menuLabel,
|
|
7
|
-
menuSeparator
|
|
8
|
-
} from "./chunk-5FWJXSXT.js";
|
|
9
|
-
import {
|
|
10
|
-
cn
|
|
11
|
-
} from "./chunk-WRVFNYO3.js";
|
|
12
|
-
|
|
13
|
-
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
3
|
import * as React from "react";
|
|
15
4
|
import * as RadixDropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
16
5
|
import { Check, ChevronRight } from "@nexub/icons";
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
import { floatingSurface, menuContent, menuItem, menuLabel, menuSeparator } from "../../utils/surface.js";
|
|
8
|
+
const Root = RadixDropdownMenu.Root;
|
|
9
|
+
const Trigger = RadixDropdownMenu.Trigger;
|
|
10
|
+
const Portal = RadixDropdownMenu.Portal;
|
|
11
|
+
const Group = RadixDropdownMenu.Group;
|
|
12
|
+
const RadioGroup = RadixDropdownMenu.RadioGroup;
|
|
13
|
+
const Sub = RadixDropdownMenu.Sub;
|
|
14
|
+
const Content = React.forwardRef(
|
|
25
15
|
function DropdownMenuContent({ className, sideOffset = 4, ...props }, ref) {
|
|
26
16
|
return /* @__PURE__ */ jsx(
|
|
27
17
|
RadixDropdownMenu.Content,
|
|
@@ -40,11 +30,11 @@ var Content2 = React.forwardRef(
|
|
|
40
30
|
);
|
|
41
31
|
}
|
|
42
32
|
);
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
Content.displayName = "DropdownMenu.Content";
|
|
34
|
+
const itemBaseClasses = cn(
|
|
45
35
|
menuItem
|
|
46
36
|
);
|
|
47
|
-
|
|
37
|
+
const Item = React.forwardRef(
|
|
48
38
|
function DropdownMenuItem({ className, ...props }, ref) {
|
|
49
39
|
return /* @__PURE__ */ jsx(
|
|
50
40
|
RadixDropdownMenu.Item,
|
|
@@ -56,8 +46,8 @@ var Item2 = React.forwardRef(
|
|
|
56
46
|
);
|
|
57
47
|
}
|
|
58
48
|
);
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
Item.displayName = "DropdownMenu.Item";
|
|
50
|
+
const Label = React.forwardRef(
|
|
61
51
|
function DropdownMenuLabel({ className, ...props }, ref) {
|
|
62
52
|
return /* @__PURE__ */ jsx(
|
|
63
53
|
RadixDropdownMenu.Label,
|
|
@@ -72,8 +62,8 @@ var Label2 = React.forwardRef(
|
|
|
72
62
|
);
|
|
73
63
|
}
|
|
74
64
|
);
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
Label.displayName = "DropdownMenu.Label";
|
|
66
|
+
const Separator = React.forwardRef(
|
|
77
67
|
function DropdownMenuSeparator({ className, ...props }, ref) {
|
|
78
68
|
return /* @__PURE__ */ jsx(
|
|
79
69
|
RadixDropdownMenu.Separator,
|
|
@@ -85,8 +75,8 @@ var Separator2 = React.forwardRef(
|
|
|
85
75
|
);
|
|
86
76
|
}
|
|
87
77
|
);
|
|
88
|
-
|
|
89
|
-
|
|
78
|
+
Separator.displayName = "DropdownMenu.Separator";
|
|
79
|
+
const CheckboxItem = React.forwardRef(function DropdownMenuCheckboxItem({ className, children, checked, ...props }, ref) {
|
|
90
80
|
return /* @__PURE__ */ jsxs(
|
|
91
81
|
RadixDropdownMenu.CheckboxItem,
|
|
92
82
|
{
|
|
@@ -101,8 +91,8 @@ var CheckboxItem2 = React.forwardRef(function DropdownMenuCheckboxItem({ classNa
|
|
|
101
91
|
}
|
|
102
92
|
);
|
|
103
93
|
});
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
CheckboxItem.displayName = "DropdownMenu.CheckboxItem";
|
|
95
|
+
const RadioItem = React.forwardRef(function DropdownMenuRadioItem({ className, children, ...props }, ref) {
|
|
106
96
|
return /* @__PURE__ */ jsxs(
|
|
107
97
|
RadixDropdownMenu.RadioItem,
|
|
108
98
|
{
|
|
@@ -116,8 +106,8 @@ var RadioItem2 = React.forwardRef(function DropdownMenuRadioItem({ className, ch
|
|
|
116
106
|
}
|
|
117
107
|
);
|
|
118
108
|
});
|
|
119
|
-
|
|
120
|
-
|
|
109
|
+
RadioItem.displayName = "DropdownMenu.RadioItem";
|
|
110
|
+
const SubTrigger = React.forwardRef(function DropdownMenuSubTrigger({ className, children, ...props }, ref) {
|
|
121
111
|
return /* @__PURE__ */ jsxs(
|
|
122
112
|
RadixDropdownMenu.SubTrigger,
|
|
123
113
|
{
|
|
@@ -135,8 +125,8 @@ var SubTrigger2 = React.forwardRef(function DropdownMenuSubTrigger({ className,
|
|
|
135
125
|
}
|
|
136
126
|
);
|
|
137
127
|
});
|
|
138
|
-
|
|
139
|
-
|
|
128
|
+
SubTrigger.displayName = "DropdownMenu.SubTrigger";
|
|
129
|
+
const SubContent = React.forwardRef(function DropdownMenuSubContent({ className, ...props }, ref) {
|
|
140
130
|
return /* @__PURE__ */ jsx(
|
|
141
131
|
RadixDropdownMenu.SubContent,
|
|
142
132
|
{
|
|
@@ -152,24 +142,23 @@ var SubContent2 = React.forwardRef(function DropdownMenuSubContent({ className,
|
|
|
152
142
|
}
|
|
153
143
|
);
|
|
154
144
|
});
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Root
|
|
158
|
-
Trigger
|
|
159
|
-
Portal
|
|
160
|
-
Content
|
|
161
|
-
Item
|
|
162
|
-
Group
|
|
163
|
-
Label
|
|
164
|
-
Separator
|
|
165
|
-
CheckboxItem
|
|
166
|
-
RadioGroup
|
|
167
|
-
RadioItem
|
|
168
|
-
Sub
|
|
169
|
-
SubTrigger
|
|
170
|
-
SubContent
|
|
145
|
+
SubContent.displayName = "DropdownMenu.SubContent";
|
|
146
|
+
const DropdownMenu = {
|
|
147
|
+
Root,
|
|
148
|
+
Trigger,
|
|
149
|
+
Portal,
|
|
150
|
+
Content,
|
|
151
|
+
Item,
|
|
152
|
+
Group,
|
|
153
|
+
Label,
|
|
154
|
+
Separator,
|
|
155
|
+
CheckboxItem,
|
|
156
|
+
RadioGroup,
|
|
157
|
+
RadioItem,
|
|
158
|
+
Sub,
|
|
159
|
+
SubTrigger,
|
|
160
|
+
SubContent
|
|
171
161
|
};
|
|
172
|
-
|
|
173
162
|
export {
|
|
174
163
|
DropdownMenu
|
|
175
164
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DropdownMenu } from './DropdownMenu.js';
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import "../../chunk-HI7GBSW2.js";
|
|
3
|
-
import {
|
|
4
|
-
DropdownMenu
|
|
5
|
-
} from "../../chunk-GWFIMQBC.js";
|
|
6
|
-
import "../../chunk-5FWJXSXT.js";
|
|
7
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { DropdownMenu } from "./DropdownMenu.js";
|
|
8
2
|
export {
|
|
9
3
|
DropdownMenu
|
|
10
4
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const EmptyState: {
|
|
3
|
+
Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
Illustration: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
6
|
+
Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
Actions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/EmptyState/EmptyState.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
1
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
4
|
+
const Root = React.forwardRef(
|
|
10
5
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11
6
|
"div",
|
|
12
7
|
{
|
|
@@ -20,7 +15,7 @@ var Root = React.forwardRef(
|
|
|
20
15
|
)
|
|
21
16
|
);
|
|
22
17
|
Root.displayName = "EmptyState.Root";
|
|
23
|
-
|
|
18
|
+
const Illustration = React.forwardRef(
|
|
24
19
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
25
20
|
"div",
|
|
26
21
|
{
|
|
@@ -31,7 +26,7 @@ var Illustration = React.forwardRef(
|
|
|
31
26
|
)
|
|
32
27
|
);
|
|
33
28
|
Illustration.displayName = "EmptyState.Illustration";
|
|
34
|
-
|
|
29
|
+
const Title = React.forwardRef(
|
|
35
30
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
36
31
|
"h3",
|
|
37
32
|
{
|
|
@@ -42,7 +37,7 @@ var Title = React.forwardRef(
|
|
|
42
37
|
)
|
|
43
38
|
);
|
|
44
39
|
Title.displayName = "EmptyState.Title";
|
|
45
|
-
|
|
40
|
+
const Description = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
46
41
|
"p",
|
|
47
42
|
{
|
|
48
43
|
ref,
|
|
@@ -51,12 +46,11 @@ var Description = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
51
46
|
}
|
|
52
47
|
));
|
|
53
48
|
Description.displayName = "EmptyState.Description";
|
|
54
|
-
|
|
49
|
+
const Actions = React.forwardRef(
|
|
55
50
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex items-center gap-2", className), ...props })
|
|
56
51
|
);
|
|
57
52
|
Actions.displayName = "EmptyState.Actions";
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
const EmptyState = { Root, Illustration, Title, Description, Actions };
|
|
60
54
|
export {
|
|
61
55
|
EmptyState
|
|
62
56
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmptyState } from './EmptyState.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type ErrorTone = 'error' | 'warning' | 'info';
|
|
3
|
+
export interface ErrorStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
tone?: ErrorTone;
|
|
7
|
+
onRetry?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const ErrorState: React.ForwardRefExoticComponent<ErrorStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export {};
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
pressable
|
|
4
|
-
} from "./chunk-VALIDQXU.js";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "./chunk-WRVFNYO3.js";
|
|
8
|
-
|
|
9
|
-
// src/components/ErrorState/ErrorState.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
3
|
import * as React from "react";
|
|
11
4
|
import { AlertTriangle, AlertCircle, Info } from "@nexub/icons";
|
|
12
|
-
import {
|
|
13
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { pressable } from "../../utils/control.js";
|
|
7
|
+
const toneConfig = {
|
|
14
8
|
error: {
|
|
15
9
|
icon: /* @__PURE__ */ jsx(AlertCircle, { size: "xl", "aria-hidden": "true" }),
|
|
16
10
|
color: "text-[var(--color-error)]"
|
|
@@ -24,7 +18,7 @@ var toneConfig = {
|
|
|
24
18
|
color: "text-[var(--color-info)]"
|
|
25
19
|
}
|
|
26
20
|
};
|
|
27
|
-
|
|
21
|
+
const ErrorState = React.forwardRef(
|
|
28
22
|
({ className, title, description, tone = "error", onRetry, ...props }, ref) => {
|
|
29
23
|
const { icon, color } = toneConfig[tone];
|
|
30
24
|
return /* @__PURE__ */ jsxs(
|
|
@@ -57,7 +51,6 @@ var ErrorState = React.forwardRef(
|
|
|
57
51
|
}
|
|
58
52
|
);
|
|
59
53
|
ErrorState.displayName = "ErrorState";
|
|
60
|
-
|
|
61
54
|
export {
|
|
62
55
|
ErrorState
|
|
63
56
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ToneValue } from '../Button/Button.js';
|
|
3
|
+
export interface EyebrowChipProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
tone?: ToneValue;
|
|
5
|
+
/** `gradient`: the marketing-mode chip (@nexub/themes/marketing). Elsewhere it looks like `soft`. */
|
|
6
|
+
variant?: 'soft' | 'gradient';
|
|
7
|
+
/** A pinging "live" dot before the label (it pings only in marketing mode). Decorative. */
|
|
8
|
+
live?: boolean;
|
|
9
|
+
leadingIcon?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const EyebrowChip: React.ForwardRefExoticComponent<EyebrowChipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
toneTextClasses
|
|
4
|
-
} from "./chunk-GHLMHKMV.js";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "./chunk-WRVFNYO3.js";
|
|
8
|
-
|
|
9
|
-
// src/components/EyebrowChip/EyebrowChip.tsx
|
|
10
|
-
import * as React from "react";
|
|
11
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
4
|
+
import { toneTextClasses } from "../../utils/control.js";
|
|
5
|
+
const EyebrowChip = React.forwardRef(
|
|
6
|
+
({ className, tone = "neutral", variant = "soft", live = false, leadingIcon, children, ...props }, ref) => {
|
|
14
7
|
return /* @__PURE__ */ jsxs(
|
|
15
8
|
"span",
|
|
16
9
|
{
|
|
@@ -20,10 +13,12 @@ var EyebrowChip = React.forwardRef(
|
|
|
20
13
|
"text-xs font-semibold uppercase tracking-wider select-none",
|
|
21
14
|
"bg-[var(--color-surface-container-low)]",
|
|
22
15
|
toneTextClasses[tone],
|
|
16
|
+
variant === "gradient" && "nx-mkt-eyebrow",
|
|
23
17
|
className
|
|
24
18
|
),
|
|
25
19
|
...props,
|
|
26
20
|
children: [
|
|
21
|
+
live && /* @__PURE__ */ jsx("span", { className: "nx-mkt-live-dot shrink-0", "aria-hidden": "true" }),
|
|
27
22
|
leadingIcon && /* @__PURE__ */ jsx("span", { className: "shrink-0 inline-flex items-center", "aria-hidden": "true", children: leadingIcon }),
|
|
28
23
|
children
|
|
29
24
|
]
|
|
@@ -32,7 +27,6 @@ var EyebrowChip = React.forwardRef(
|
|
|
32
27
|
}
|
|
33
28
|
);
|
|
34
29
|
EyebrowChip.displayName = "EyebrowChip";
|
|
35
|
-
|
|
36
30
|
export {
|
|
37
31
|
EyebrowChip
|
|
38
32
|
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
EyebrowChip
|
|
4
|
-
} from "../../chunk-MXXJOAWQ.js";
|
|
5
|
-
import "../../chunk-GHLMHKMV.js";
|
|
6
|
-
import "../../chunk-VALIDQXU.js";
|
|
7
|
-
import "../../chunk-DEIBF3P7.js";
|
|
8
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { EyebrowChip } from "./EyebrowChip.js";
|
|
9
2
|
export {
|
|
10
3
|
EyebrowChip
|
|
11
4
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** Localised file size ("12.3 kB", "1,5 Mo"), 1024-based as before. */
|
|
3
|
+
export declare function formatFileSize(bytes: number, locale: string): string;
|
|
4
|
+
export interface FileUploadRootProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
accept?: string[];
|
|
6
|
+
maxFiles?: number;
|
|
7
|
+
onFilesChange?: (files: File[]) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const FileUpload: {
|
|
10
|
+
Root: React.ForwardRefExoticComponent<FileUploadRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Dropzone: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
List: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
|
|
13
|
+
Item: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLLIElement> & {
|
|
14
|
+
index: number;
|
|
15
|
+
} & React.RefAttributes<HTMLLIElement>>;
|
|
16
|
+
};
|
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
useLocale,
|
|
4
|
-
useNexubMessages
|
|
5
|
-
} from "./chunk-VMSWIC3O.js";
|
|
6
|
-
import {
|
|
7
|
-
cn
|
|
8
|
-
} from "./chunk-WRVFNYO3.js";
|
|
9
|
-
|
|
10
|
-
// src/components/FileUpload/FileUpload.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
3
|
import * as React from "react";
|
|
12
4
|
import { Upload, X } from "@nexub/icons";
|
|
13
|
-
import {
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { useLocale, useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
14
7
|
function formatFileSize(bytes, locale) {
|
|
15
8
|
const [value, unit] = bytes < 1024 ? [bytes, "byte"] : bytes < 1024 * 1024 ? [bytes / 1024, "kilobyte"] : [bytes / (1024 * 1024), "megabyte"];
|
|
16
9
|
return new Intl.NumberFormat(locale, { style: "unit", unit, unitDisplay: "short", maximumFractionDigits: 1 }).format(value);
|
|
17
10
|
}
|
|
18
|
-
|
|
11
|
+
const FileUploadContext = React.createContext(null);
|
|
19
12
|
function useFileUpload() {
|
|
20
13
|
const ctx = React.useContext(FileUploadContext);
|
|
21
14
|
if (!ctx) throw new Error("FileUpload parts must be used inside FileUpload.Root");
|
|
22
15
|
return ctx;
|
|
23
16
|
}
|
|
24
|
-
|
|
17
|
+
const Root = React.forwardRef(
|
|
25
18
|
({ className, accept, maxFiles, onFilesChange, children, ...props }, ref) => {
|
|
26
19
|
const [files, setFiles] = React.useState([]);
|
|
27
20
|
const [isDragging, setIsDragging] = React.useState(false);
|
|
@@ -53,7 +46,7 @@ var Root = React.forwardRef(
|
|
|
53
46
|
}
|
|
54
47
|
);
|
|
55
48
|
Root.displayName = "FileUpload.Root";
|
|
56
|
-
|
|
49
|
+
const Dropzone = React.forwardRef(
|
|
57
50
|
({ className, children, ...props }, ref) => {
|
|
58
51
|
const { accept, addFiles, isDragging, setIsDragging } = useFileUpload();
|
|
59
52
|
const messages = useNexubMessages();
|
|
@@ -114,7 +107,7 @@ var Dropzone = React.forwardRef(
|
|
|
114
107
|
}
|
|
115
108
|
);
|
|
116
109
|
Dropzone.displayName = "FileUpload.Dropzone";
|
|
117
|
-
|
|
110
|
+
const List = React.forwardRef(
|
|
118
111
|
({ className, ...props }, ref) => {
|
|
119
112
|
const { files } = useFileUpload();
|
|
120
113
|
if (files.length === 0) return null;
|
|
@@ -122,7 +115,7 @@ var List = React.forwardRef(
|
|
|
122
115
|
}
|
|
123
116
|
);
|
|
124
117
|
List.displayName = "FileUpload.List";
|
|
125
|
-
|
|
118
|
+
const Item = React.forwardRef(({ className, index, ...props }, ref) => {
|
|
126
119
|
const { files, removeFile } = useFileUpload();
|
|
127
120
|
const messages = useNexubMessages();
|
|
128
121
|
const { locale } = useLocale();
|
|
@@ -156,8 +149,8 @@ var Item = React.forwardRef(({ className, index, ...props }, ref) => {
|
|
|
156
149
|
);
|
|
157
150
|
});
|
|
158
151
|
Item.displayName = "FileUpload.Item";
|
|
159
|
-
|
|
160
|
-
|
|
152
|
+
const FileUpload = { Root, Dropzone, List, Item };
|
|
161
153
|
export {
|
|
162
|
-
FileUpload
|
|
154
|
+
FileUpload,
|
|
155
|
+
formatFileSize
|
|
163
156
|
};
|