@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,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixScrollArea from '@radix-ui/react-scroll-area';
|
|
3
|
+
export interface ScrollAreaProps extends RadixScrollArea.ScrollAreaProps {
|
|
4
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
5
|
+
}
|
|
6
|
+
export declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/ScrollArea/ScrollArea.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
3
|
import * as React from "react";
|
|
8
4
|
import * as RadixScrollArea from "@radix-ui/react-scroll-area";
|
|
9
|
-
import {
|
|
10
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
const ScrollArea = React.forwardRef(
|
|
11
7
|
({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxs(RadixScrollArea.Root, { ref, className: cn("relative overflow-hidden", className), ...props, children: [
|
|
12
8
|
/* @__PURE__ */ jsx(RadixScrollArea.Viewport, { tabIndex: 0, className: "h-full w-full rounded-[inherit]", children }),
|
|
13
9
|
(orientation === "vertical" || orientation === "both") && /* @__PURE__ */ jsx(
|
|
@@ -30,7 +26,6 @@ var ScrollArea = React.forwardRef(
|
|
|
30
26
|
] })
|
|
31
27
|
);
|
|
32
28
|
ScrollArea.displayName = "ScrollArea";
|
|
33
|
-
|
|
34
29
|
export {
|
|
35
30
|
ScrollArea
|
|
36
31
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type InputProps } from '../Input/Input.js';
|
|
3
|
+
export interface SearchInputProps extends Omit<InputProps, 'leadingIcon' | 'trailingIcon'> {
|
|
4
|
+
onClear?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
useControllableState
|
|
4
|
-
} from "./chunk-JLUCMNVS.js";
|
|
5
|
-
import {
|
|
6
|
-
Input
|
|
7
|
-
} from "./chunk-G7VMAWAX.js";
|
|
8
|
-
import {
|
|
9
|
-
useNexubMessages
|
|
10
|
-
} from "./chunk-VMSWIC3O.js";
|
|
11
|
-
import {
|
|
12
|
-
cn
|
|
13
|
-
} from "./chunk-WRVFNYO3.js";
|
|
14
|
-
|
|
15
|
-
// src/components/SearchInput/SearchInput.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
3
|
import * as React from "react";
|
|
17
4
|
import { Search, X } from "@nexub/icons";
|
|
18
|
-
import {
|
|
19
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { useControllableState } from "../../hooks/useControllableState.js";
|
|
7
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
8
|
+
import { Input } from "../Input/Input.js";
|
|
9
|
+
const SearchInput = React.forwardRef(
|
|
20
10
|
({ value, defaultValue: _defaultValue, onChange, onClear, className, ...props }, ref) => {
|
|
21
11
|
const [currentValue = "", setValue] = useControllableState({
|
|
22
12
|
value: value === void 0 ? void 0 : String(value),
|
|
@@ -60,7 +50,6 @@ var SearchInput = React.forwardRef(
|
|
|
60
50
|
}
|
|
61
51
|
);
|
|
62
52
|
SearchInput.displayName = "SearchInput";
|
|
63
|
-
|
|
64
53
|
export {
|
|
65
54
|
SearchInput
|
|
66
55
|
};
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
SearchInput
|
|
4
|
-
} from "../../chunk-YVS6AVPD.js";
|
|
5
|
-
import "../../chunk-JLUCMNVS.js";
|
|
6
|
-
import "../../chunk-NHUQLIHL.js";
|
|
7
|
-
import "../../chunk-G7VMAWAX.js";
|
|
8
|
-
import "../../chunk-VALIDQXU.js";
|
|
9
|
-
import "../../chunk-VMSWIC3O.js";
|
|
10
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { SearchInput } from "./SearchInput.js";
|
|
11
2
|
export {
|
|
12
3
|
SearchInput
|
|
13
4
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
export declare const sectionVariants: (props?: ({
|
|
4
|
+
paddingY?: "sm" | "md" | "lg" | null | undefined;
|
|
5
|
+
tone?: "default" | "subtle" | "muted" | "inverse" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface SectionProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof sectionVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Section/Section.tsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
2
|
import * as React from "react";
|
|
8
3
|
import { Slot } from "@radix-ui/react-slot";
|
|
9
4
|
import { cva } from "class-variance-authority";
|
|
10
|
-
import {
|
|
11
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
const sectionVariants = cva("w-full", {
|
|
12
7
|
variants: {
|
|
13
8
|
paddingY: {
|
|
14
9
|
sm: "py-12",
|
|
@@ -27,7 +22,7 @@ var sectionVariants = cva("w-full", {
|
|
|
27
22
|
tone: "default"
|
|
28
23
|
}
|
|
29
24
|
});
|
|
30
|
-
|
|
25
|
+
const Section = React.forwardRef(
|
|
31
26
|
({ paddingY, tone, asChild = false, className, children, ...rest }, ref) => {
|
|
32
27
|
const Comp = asChild ? Slot : "section";
|
|
33
28
|
return /* @__PURE__ */ jsx(
|
|
@@ -42,8 +37,7 @@ var Section = React.forwardRef(
|
|
|
42
37
|
}
|
|
43
38
|
);
|
|
44
39
|
Section.displayName = "Section";
|
|
45
|
-
|
|
46
40
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
Section,
|
|
42
|
+
sectionVariants
|
|
49
43
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixToggleGroup from '@radix-ui/react-toggle-group';
|
|
3
|
+
import type { Size } from '../../utils/control.js';
|
|
4
|
+
export interface SegmentedControlProps extends Omit<RadixToggleGroup.ToggleGroupSingleProps, 'type'> {
|
|
5
|
+
size?: Size;
|
|
6
|
+
}
|
|
7
|
+
export interface SegmentedControlItemProps extends RadixToggleGroup.ToggleGroupItemProps {
|
|
8
|
+
}
|
|
9
|
+
export declare const SegmentedControl: {
|
|
10
|
+
Root: React.ForwardRefExoticComponent<SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Item: React.ForwardRefExoticComponent<SegmentedControlItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
};
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
useSlidingIndicator
|
|
4
|
-
} from "./chunk-6UKNUI46.js";
|
|
5
|
-
import {
|
|
6
|
-
useMergedRefs
|
|
7
|
-
} from "./chunk-MNEXMMLM.js";
|
|
8
|
-
import {
|
|
9
|
-
cn
|
|
10
|
-
} from "./chunk-WRVFNYO3.js";
|
|
11
|
-
|
|
12
|
-
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
3
|
import * as React from "react";
|
|
14
4
|
import * as RadixToggleGroup from "@radix-ui/react-toggle-group";
|
|
15
|
-
import {
|
|
16
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { useMergedRefs } from "../../hooks/useMergedRefs.js";
|
|
7
|
+
import { useSlidingIndicator } from "../../hooks/useSlidingIndicator.js";
|
|
8
|
+
const sizeMap = {
|
|
17
9
|
sm: "h-control-sm text-label-md",
|
|
18
10
|
md: "h-control-md text-label-lg",
|
|
19
11
|
lg: "h-control-lg text-label-lg"
|
|
20
12
|
};
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
const SegmentedControlContext = React.createContext({ size: "md" });
|
|
14
|
+
const Root = React.forwardRef(
|
|
23
15
|
({ className, size = "md", children, ...props }, forwardedRef) => {
|
|
24
16
|
const ref = React.useRef(null);
|
|
25
17
|
useSlidingIndicator(ref, '[data-state="on"]');
|
|
@@ -53,8 +45,8 @@ var Root2 = React.forwardRef(
|
|
|
53
45
|
) });
|
|
54
46
|
}
|
|
55
47
|
);
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
Root.displayName = "SegmentedControl.Root";
|
|
49
|
+
const Item = React.forwardRef(
|
|
58
50
|
({ className, ...props }, ref) => {
|
|
59
51
|
const { size } = React.useContext(SegmentedControlContext);
|
|
60
52
|
return /* @__PURE__ */ jsx(
|
|
@@ -74,9 +66,8 @@ var Item2 = React.forwardRef(
|
|
|
74
66
|
);
|
|
75
67
|
}
|
|
76
68
|
);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
Item.displayName = "SegmentedControl.Item";
|
|
70
|
+
const SegmentedControl = { Root, Item };
|
|
80
71
|
export {
|
|
81
72
|
SegmentedControl
|
|
82
73
|
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
SegmentedControl
|
|
4
|
-
} from "../../chunk-KRIRCSUB.js";
|
|
5
|
-
import "../../chunk-6UKNUI46.js";
|
|
6
|
-
import "../../chunk-MNEXMMLM.js";
|
|
7
|
-
import "../../chunk-NHUQLIHL.js";
|
|
8
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { SegmentedControl } from "./SegmentedControl.js";
|
|
9
2
|
export {
|
|
10
3
|
SegmentedControl
|
|
11
4
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixSelect from '@radix-ui/react-select';
|
|
3
|
+
export declare const Select: {
|
|
4
|
+
Root: React.FC<RadixSelect.SelectProps>;
|
|
5
|
+
Group: React.ForwardRefExoticComponent<RadixSelect.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Value: React.ForwardRefExoticComponent<RadixSelect.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
Trigger: React.ForwardRefExoticComponent<RadixSelect.SelectTriggerProps & {
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
ScrollUpButton: React.ForwardRefExoticComponent<RadixSelect.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
ScrollDownButton: React.ForwardRefExoticComponent<RadixSelect.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Content: React.ForwardRefExoticComponent<RadixSelect.SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Label: React.ForwardRefExoticComponent<RadixSelect.SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Item: React.ForwardRefExoticComponent<RadixSelect.SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Separator: React.ForwardRefExoticComponent<RadixSelect.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
};
|
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
floatingSurface,
|
|
4
|
-
menuLabel,
|
|
5
|
-
menuSeparator
|
|
6
|
-
} from "./chunk-5FWJXSXT.js";
|
|
7
|
-
import {
|
|
8
|
-
field,
|
|
9
|
-
fieldFocusVisible,
|
|
10
|
-
fieldInvalid
|
|
11
|
-
} from "./chunk-VALIDQXU.js";
|
|
12
|
-
import {
|
|
13
|
-
cn
|
|
14
|
-
} from "./chunk-WRVFNYO3.js";
|
|
15
|
-
|
|
16
|
-
// src/components/Select/Select.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
3
|
import * as React from "react";
|
|
18
4
|
import * as RadixSelect from "@radix-ui/react-select";
|
|
19
5
|
import { Check, ChevronDown, ChevronUp } from "@nexub/icons";
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
import { field, fieldFocusVisible, fieldInvalid } from "../../utils/control.js";
|
|
8
|
+
import { floatingSurface, menuLabel, menuSeparator } from "../../utils/surface.js";
|
|
9
|
+
const Root = RadixSelect.Root;
|
|
10
|
+
const Group = RadixSelect.Group;
|
|
11
|
+
const Value = RadixSelect.Value;
|
|
12
|
+
const Trigger = React.forwardRef(
|
|
25
13
|
({ className, children, invalid, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
26
14
|
RadixSelect.Trigger,
|
|
27
15
|
{
|
|
@@ -46,8 +34,8 @@ var Trigger2 = React.forwardRef(
|
|
|
46
34
|
}
|
|
47
35
|
)
|
|
48
36
|
);
|
|
49
|
-
|
|
50
|
-
|
|
37
|
+
Trigger.displayName = "Select.Trigger";
|
|
38
|
+
const ScrollUpButton = React.forwardRef(
|
|
51
39
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
52
40
|
RadixSelect.ScrollUpButton,
|
|
53
41
|
{
|
|
@@ -58,8 +46,8 @@ var ScrollUpButton2 = React.forwardRef(
|
|
|
58
46
|
}
|
|
59
47
|
)
|
|
60
48
|
);
|
|
61
|
-
|
|
62
|
-
|
|
49
|
+
ScrollUpButton.displayName = "Select.ScrollUpButton";
|
|
50
|
+
const ScrollDownButton = React.forwardRef(
|
|
63
51
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
64
52
|
RadixSelect.ScrollDownButton,
|
|
65
53
|
{
|
|
@@ -70,8 +58,8 @@ var ScrollDownButton2 = React.forwardRef(
|
|
|
70
58
|
}
|
|
71
59
|
)
|
|
72
60
|
);
|
|
73
|
-
|
|
74
|
-
|
|
61
|
+
ScrollDownButton.displayName = "Select.ScrollDownButton";
|
|
62
|
+
const Content = React.forwardRef(
|
|
75
63
|
({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(RadixSelect.Portal, { children: /* @__PURE__ */ jsxs(
|
|
76
64
|
RadixSelect.Content,
|
|
77
65
|
{
|
|
@@ -86,7 +74,7 @@ var Content2 = React.forwardRef(
|
|
|
86
74
|
position,
|
|
87
75
|
...props,
|
|
88
76
|
children: [
|
|
89
|
-
/* @__PURE__ */ jsx(
|
|
77
|
+
/* @__PURE__ */ jsx(ScrollUpButton, {}),
|
|
90
78
|
/* @__PURE__ */ jsx(
|
|
91
79
|
RadixSelect.Viewport,
|
|
92
80
|
{
|
|
@@ -97,13 +85,13 @@ var Content2 = React.forwardRef(
|
|
|
97
85
|
children
|
|
98
86
|
}
|
|
99
87
|
),
|
|
100
|
-
/* @__PURE__ */ jsx(
|
|
88
|
+
/* @__PURE__ */ jsx(ScrollDownButton, {})
|
|
101
89
|
]
|
|
102
90
|
}
|
|
103
91
|
) })
|
|
104
92
|
);
|
|
105
|
-
|
|
106
|
-
|
|
93
|
+
Content.displayName = "Select.Content";
|
|
94
|
+
const Label = React.forwardRef(
|
|
107
95
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
108
96
|
RadixSelect.Label,
|
|
109
97
|
{
|
|
@@ -113,8 +101,8 @@ var Label2 = React.forwardRef(
|
|
|
113
101
|
}
|
|
114
102
|
)
|
|
115
103
|
);
|
|
116
|
-
|
|
117
|
-
|
|
104
|
+
Label.displayName = "Select.Label";
|
|
105
|
+
const Item = React.forwardRef(
|
|
118
106
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
119
107
|
RadixSelect.Item,
|
|
120
108
|
{
|
|
@@ -134,8 +122,8 @@ var Item2 = React.forwardRef(
|
|
|
134
122
|
}
|
|
135
123
|
)
|
|
136
124
|
);
|
|
137
|
-
|
|
138
|
-
|
|
125
|
+
Item.displayName = "Select.Item";
|
|
126
|
+
const Separator = React.forwardRef(
|
|
139
127
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
140
128
|
RadixSelect.Separator,
|
|
141
129
|
{
|
|
@@ -145,20 +133,19 @@ var Separator2 = React.forwardRef(
|
|
|
145
133
|
}
|
|
146
134
|
)
|
|
147
135
|
);
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
Root
|
|
151
|
-
Group
|
|
152
|
-
Value
|
|
153
|
-
Trigger
|
|
154
|
-
ScrollUpButton
|
|
155
|
-
ScrollDownButton
|
|
156
|
-
Content
|
|
157
|
-
Label
|
|
158
|
-
Item
|
|
159
|
-
Separator
|
|
136
|
+
Separator.displayName = "Select.Separator";
|
|
137
|
+
const Select = {
|
|
138
|
+
Root,
|
|
139
|
+
Group,
|
|
140
|
+
Value,
|
|
141
|
+
Trigger,
|
|
142
|
+
ScrollUpButton,
|
|
143
|
+
ScrollDownButton,
|
|
144
|
+
Content,
|
|
145
|
+
Label,
|
|
146
|
+
Item,
|
|
147
|
+
Separator
|
|
160
148
|
};
|
|
161
|
-
|
|
162
149
|
export {
|
|
163
150
|
Select
|
|
164
151
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Select } from './Select.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import type { ToneValue } from '../Button/Button.js';
|
|
4
|
+
export declare const separatorVariants: (props?: ({
|
|
5
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
|
+
tone?: "neutral" | "info" | "success" | "warning" | "danger" | "leap" | "bookub" | "payub" | "founderub" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export interface SeparatorProps extends React.HTMLAttributes<HTMLHRElement | HTMLDivElement>, VariantProps<typeof separatorVariants> {
|
|
9
|
+
orientation?: 'horizontal' | 'vertical';
|
|
10
|
+
tone?: ToneValue;
|
|
11
|
+
}
|
|
12
|
+
export declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>>;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Separator/Separator.tsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
2
|
import * as React from "react";
|
|
8
3
|
import { cva } from "class-variance-authority";
|
|
9
|
-
import {
|
|
10
|
-
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
const separatorVariants = cva("", {
|
|
11
6
|
variants: {
|
|
12
7
|
orientation: {
|
|
13
8
|
horizontal: "w-full border-t",
|
|
@@ -30,7 +25,7 @@ var separatorVariants = cva("", {
|
|
|
30
25
|
tone: "neutral"
|
|
31
26
|
}
|
|
32
27
|
});
|
|
33
|
-
|
|
28
|
+
const Separator = React.forwardRef(({ className, orientation = "horizontal", tone = "neutral", ...props }, ref) => {
|
|
34
29
|
if (orientation === "horizontal") {
|
|
35
30
|
return /* @__PURE__ */ jsx(
|
|
36
31
|
"hr",
|
|
@@ -55,8 +50,7 @@ var Separator = React.forwardRef(({ className, orientation = "horizontal", tone
|
|
|
55
50
|
);
|
|
56
51
|
});
|
|
57
52
|
Separator.displayName = "Separator";
|
|
58
|
-
|
|
59
53
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
Separator,
|
|
55
|
+
separatorVariants
|
|
62
56
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface SidebarRootProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
collapsed?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface SidebarHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Trailing element next to the logo, e.g. a "Live" `<Badge>`. Moves under the logo when they don't fit. */
|
|
7
|
+
status?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface SidebarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
label?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SidebarItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
/** Render the child element (e.g. a router `<Link>`) instead of an `<a>`. */
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const Sidebar: {
|
|
19
|
+
Root: React.ForwardRefExoticComponent<SidebarRootProps & React.RefAttributes<HTMLElement>>;
|
|
20
|
+
Header: React.ForwardRefExoticComponent<SidebarHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
Group: React.ForwardRefExoticComponent<SidebarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
Item: React.ForwardRefExoticComponent<SidebarItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
23
|
+
Separator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHRElement> & React.RefAttributes<HTMLHRElement>>;
|
|
24
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
};
|
|
@@ -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/Sidebar/Sidebar.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, collapsed = false, ...props }, ref) => {
|
|
15
9
|
const messages = useNexubMessages();
|
|
16
10
|
return /* @__PURE__ */ jsx(
|
|
@@ -32,7 +26,7 @@ var Root = React.forwardRef(
|
|
|
32
26
|
}
|
|
33
27
|
);
|
|
34
28
|
Root.displayName = "Sidebar.Root";
|
|
35
|
-
|
|
29
|
+
const Header = React.forwardRef(
|
|
36
30
|
({ className, status, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
37
31
|
"div",
|
|
38
32
|
{
|
|
@@ -52,14 +46,14 @@ var Header = React.forwardRef(
|
|
|
52
46
|
)
|
|
53
47
|
);
|
|
54
48
|
Header.displayName = "Sidebar.Header";
|
|
55
|
-
|
|
49
|
+
const Group = React.forwardRef(
|
|
56
50
|
({ className, label, children, ...props }, ref) => /* @__PURE__ */ jsxs("div", { ref, className: cn("flex flex-col gap-0.5 p-2", className), ...props, children: [
|
|
57
51
|
label && /* @__PURE__ */ jsx("p", { className: "px-2 py-1 text-xs font-semibold uppercase tracking-wider text-[var(--color-on-surface-muted)]", children: label }),
|
|
58
52
|
children
|
|
59
53
|
] })
|
|
60
54
|
);
|
|
61
55
|
Group.displayName = "Sidebar.Group";
|
|
62
|
-
|
|
56
|
+
const Item = React.forwardRef(
|
|
63
57
|
({ className, icon, active, asChild, children, ...props }, ref) => {
|
|
64
58
|
const child = asChild && React.isValidElement(children) ? children : null;
|
|
65
59
|
const label = child ? child.props.children : children;
|
|
@@ -84,7 +78,7 @@ var Item = React.forwardRef(
|
|
|
84
78
|
}
|
|
85
79
|
);
|
|
86
80
|
Item.displayName = "Sidebar.Item";
|
|
87
|
-
|
|
81
|
+
const Separator = React.forwardRef(
|
|
88
82
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
89
83
|
"hr",
|
|
90
84
|
{
|
|
@@ -95,7 +89,7 @@ var Separator = React.forwardRef(
|
|
|
95
89
|
)
|
|
96
90
|
);
|
|
97
91
|
Separator.displayName = "Sidebar.Separator";
|
|
98
|
-
|
|
92
|
+
const Footer = React.forwardRef(
|
|
99
93
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
100
94
|
"div",
|
|
101
95
|
{
|
|
@@ -109,8 +103,7 @@ var Footer = React.forwardRef(
|
|
|
109
103
|
)
|
|
110
104
|
);
|
|
111
105
|
Footer.displayName = "Sidebar.Footer";
|
|
112
|
-
|
|
113
|
-
|
|
106
|
+
const Sidebar = { Root, Header, Group, Item, Separator, Footer };
|
|
114
107
|
export {
|
|
115
108
|
Sidebar
|
|
116
109
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
export declare const skeletonVariants: (props?: ({
|
|
4
|
+
shape?: "circle" | "line" | "rect" | null | undefined;
|
|
5
|
+
animated?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface SkeletonProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof skeletonVariants> {
|
|
8
|
+
shape?: 'line' | 'rect' | 'circle';
|
|
9
|
+
/** Arbitrary size; rendered as inline style. Omit to use the shape's default classes. */
|
|
10
|
+
width?: string | number;
|
|
11
|
+
height?: string | number;
|
|
12
|
+
animated?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLSpanElement>>;
|