@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,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixAccordion from '@radix-ui/react-accordion';
|
|
3
|
+
type RootProps = RadixAccordion.AccordionSingleProps | RadixAccordion.AccordionMultipleProps;
|
|
4
|
+
export declare const Accordion: {
|
|
5
|
+
Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Item: React.ForwardRefExoticComponent<RadixAccordion.AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Trigger: React.ForwardRefExoticComponent<RadixAccordion.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Content: React.ForwardRefExoticComponent<RadixAccordion.AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Accordion/Accordion.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
3
|
import * as React from "react";
|
|
8
4
|
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
9
5
|
import { ChevronDown } from "@nexub/icons";
|
|
10
|
-
import {
|
|
11
|
-
|
|
6
|
+
import { cn } from "../../utils/cn.js";
|
|
7
|
+
const Root = React.forwardRef(
|
|
12
8
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
13
9
|
RadixAccordion.Root,
|
|
14
10
|
{
|
|
@@ -18,12 +14,12 @@ var Root2 = React.forwardRef(
|
|
|
18
14
|
}
|
|
19
15
|
)
|
|
20
16
|
);
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
Root.displayName = "Accordion.Root";
|
|
18
|
+
const Item = React.forwardRef(
|
|
23
19
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadixAccordion.Item, { ref, className: cn("", className), ...props })
|
|
24
20
|
);
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
Item.displayName = "Accordion.Item";
|
|
22
|
+
const Trigger = React.forwardRef(
|
|
27
23
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(RadixAccordion.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
28
24
|
RadixAccordion.Trigger,
|
|
29
25
|
{
|
|
@@ -42,8 +38,8 @@ var Trigger2 = React.forwardRef(
|
|
|
42
38
|
}
|
|
43
39
|
) })
|
|
44
40
|
);
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
Trigger.displayName = "Accordion.Trigger";
|
|
42
|
+
const Content = React.forwardRef(
|
|
47
43
|
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
48
44
|
RadixAccordion.Content,
|
|
49
45
|
{
|
|
@@ -58,9 +54,8 @@ var Content2 = React.forwardRef(
|
|
|
58
54
|
}
|
|
59
55
|
)
|
|
60
56
|
);
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
Content.displayName = "Accordion.Content";
|
|
58
|
+
const Accordion = { Root, Item, Trigger, Content };
|
|
64
59
|
export {
|
|
65
60
|
Accordion
|
|
66
61
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion } from './Accordion.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
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 alertVariants: (props?: ({
|
|
5
|
+
tone?: "neutral" | "info" | "success" | "warning" | "danger" | "leap" | "bookub" | "payub" | "founderub" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
8
|
+
tone?: ToneValue;
|
|
9
|
+
title?: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
action?: React.ReactNode;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -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/Alert/Alert.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
3
|
import * as React from "react";
|
|
11
4
|
import { cva } from "class-variance-authority";
|
|
12
|
-
import {
|
|
13
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
7
|
+
const alertVariants = cva(
|
|
14
8
|
[
|
|
15
9
|
"relative flex gap-3 rounded-shape-container border-s-4 p-4",
|
|
16
10
|
"w-full"
|
|
@@ -34,7 +28,7 @@ var alertVariants = cva(
|
|
|
34
28
|
}
|
|
35
29
|
}
|
|
36
30
|
);
|
|
37
|
-
|
|
31
|
+
const Alert = React.forwardRef(
|
|
38
32
|
({
|
|
39
33
|
className,
|
|
40
34
|
tone = "neutral",
|
|
@@ -79,8 +73,7 @@ var Alert = React.forwardRef(
|
|
|
79
73
|
}
|
|
80
74
|
);
|
|
81
75
|
Alert.displayName = "Alert";
|
|
82
|
-
|
|
83
76
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
Alert,
|
|
78
|
+
alertVariants
|
|
86
79
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixAlertDialog from '@radix-ui/react-alert-dialog';
|
|
3
|
+
export declare const AlertDialog: {
|
|
4
|
+
Root: React.FC<RadixAlertDialog.AlertDialogProps>;
|
|
5
|
+
Trigger: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
Portal: React.FC<RadixAlertDialog.AlertDialogPortalProps>;
|
|
7
|
+
Overlay: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Content: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Title: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
Description: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Action: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
Cancel: React.ForwardRefExoticComponent<RadixAlertDialog.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
};
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
overlaySurface,
|
|
4
|
-
scrim
|
|
5
|
-
} from "./chunk-5FWJXSXT.js";
|
|
6
|
-
import {
|
|
7
|
-
buttonVariants
|
|
8
|
-
} from "./chunk-GHLMHKMV.js";
|
|
9
|
-
import {
|
|
10
|
-
cn
|
|
11
|
-
} from "./chunk-WRVFNYO3.js";
|
|
12
|
-
|
|
13
|
-
// src/components/AlertDialog/AlertDialog.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
3
|
import * as React from "react";
|
|
15
4
|
import * as RadixAlertDialog from "@radix-ui/react-alert-dialog";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { overlaySurface, scrim } from "../../utils/surface.js";
|
|
7
|
+
import { buttonVariants } from "../Button/Button.js";
|
|
8
|
+
const Root = RadixAlertDialog.Root;
|
|
9
|
+
const Trigger = RadixAlertDialog.Trigger;
|
|
10
|
+
const Portal = RadixAlertDialog.Portal;
|
|
11
|
+
const Overlay = React.forwardRef(
|
|
21
12
|
function AlertDialogOverlay({ className, ...props }, ref) {
|
|
22
13
|
return /* @__PURE__ */ jsx(
|
|
23
14
|
RadixAlertDialog.Overlay,
|
|
@@ -33,8 +24,8 @@ var Overlay2 = React.forwardRef(
|
|
|
33
24
|
);
|
|
34
25
|
}
|
|
35
26
|
);
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
Overlay.displayName = "AlertDialog.Overlay";
|
|
28
|
+
const Content = React.forwardRef(
|
|
38
29
|
function AlertDialogContent({ className, children, ...props }, ref) {
|
|
39
30
|
return /* @__PURE__ */ jsx(
|
|
40
31
|
RadixAlertDialog.Content,
|
|
@@ -53,8 +44,8 @@ var Content2 = React.forwardRef(
|
|
|
53
44
|
);
|
|
54
45
|
}
|
|
55
46
|
);
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
Content.displayName = "AlertDialog.Content";
|
|
48
|
+
const Title = React.forwardRef(
|
|
58
49
|
function AlertDialogTitle({ className, ...props }, ref) {
|
|
59
50
|
return /* @__PURE__ */ jsx(
|
|
60
51
|
RadixAlertDialog.Title,
|
|
@@ -66,8 +57,8 @@ var Title2 = React.forwardRef(
|
|
|
66
57
|
);
|
|
67
58
|
}
|
|
68
59
|
);
|
|
69
|
-
|
|
70
|
-
|
|
60
|
+
Title.displayName = "AlertDialog.Title";
|
|
61
|
+
const Description = React.forwardRef(function AlertDialogDescription({ className, ...props }, ref) {
|
|
71
62
|
return /* @__PURE__ */ jsx(
|
|
72
63
|
RadixAlertDialog.Description,
|
|
73
64
|
{
|
|
@@ -77,20 +68,20 @@ var Description2 = React.forwardRef(function AlertDialogDescription({ className,
|
|
|
77
68
|
}
|
|
78
69
|
);
|
|
79
70
|
});
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
Description.displayName = "AlertDialog.Description";
|
|
72
|
+
const Header = React.forwardRef(
|
|
82
73
|
function AlertDialogHeader({ className, ...props }, ref) {
|
|
83
74
|
return /* @__PURE__ */ jsx("div", { ref, className: cn("mb-4 flex flex-col gap-1", className), ...props });
|
|
84
75
|
}
|
|
85
76
|
);
|
|
86
77
|
Header.displayName = "AlertDialog.Header";
|
|
87
|
-
|
|
78
|
+
const Footer = React.forwardRef(
|
|
88
79
|
function AlertDialogFooter({ className, ...props }, ref) {
|
|
89
80
|
return /* @__PURE__ */ jsx("div", { ref, className: cn("mt-6 flex justify-end gap-2", className), ...props });
|
|
90
81
|
}
|
|
91
82
|
);
|
|
92
83
|
Footer.displayName = "AlertDialog.Footer";
|
|
93
|
-
|
|
84
|
+
const Action = React.forwardRef(
|
|
94
85
|
function AlertDialogAction({ className, ...props }, ref) {
|
|
95
86
|
return /* @__PURE__ */ jsx(
|
|
96
87
|
RadixAlertDialog.Action,
|
|
@@ -106,8 +97,8 @@ var Action2 = React.forwardRef(
|
|
|
106
97
|
);
|
|
107
98
|
}
|
|
108
99
|
);
|
|
109
|
-
|
|
110
|
-
|
|
100
|
+
Action.displayName = "AlertDialog.Action";
|
|
101
|
+
const Cancel = React.forwardRef(
|
|
111
102
|
function AlertDialogCancel({ className, ...props }, ref) {
|
|
112
103
|
return /* @__PURE__ */ jsx(
|
|
113
104
|
RadixAlertDialog.Cancel,
|
|
@@ -122,21 +113,20 @@ var Cancel2 = React.forwardRef(
|
|
|
122
113
|
);
|
|
123
114
|
}
|
|
124
115
|
);
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
Root
|
|
128
|
-
Trigger
|
|
129
|
-
Portal
|
|
130
|
-
Overlay
|
|
131
|
-
Content
|
|
132
|
-
Title
|
|
133
|
-
Description
|
|
116
|
+
Cancel.displayName = "AlertDialog.Cancel";
|
|
117
|
+
const AlertDialog = {
|
|
118
|
+
Root,
|
|
119
|
+
Trigger,
|
|
120
|
+
Portal,
|
|
121
|
+
Overlay,
|
|
122
|
+
Content,
|
|
123
|
+
Title,
|
|
124
|
+
Description,
|
|
134
125
|
Header,
|
|
135
126
|
Footer,
|
|
136
|
-
Action
|
|
137
|
-
Cancel
|
|
127
|
+
Action,
|
|
128
|
+
Cancel
|
|
138
129
|
};
|
|
139
|
-
|
|
140
130
|
export {
|
|
141
131
|
AlertDialog
|
|
142
132
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AlertDialog } from './AlertDialog.js';
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
AlertDialog
|
|
4
|
-
} from "../../chunk-PDQTKE2C.js";
|
|
5
|
-
import "../../chunk-5FWJXSXT.js";
|
|
6
|
-
import "../../chunk-GHLMHKMV.js";
|
|
7
|
-
import "../../chunk-VALIDQXU.js";
|
|
8
|
-
import "../../chunk-DEIBF3P7.js";
|
|
9
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { AlertDialog } from "./AlertDialog.js";
|
|
10
2
|
export {
|
|
11
3
|
AlertDialog
|
|
12
4
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Size } from '../../utils/control.js';
|
|
3
|
+
export interface AmountProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
4
|
+
value: number;
|
|
5
|
+
/** ISO 4217 code, e.g. 'USD', 'EUR', 'INR'. */
|
|
6
|
+
currency: string;
|
|
7
|
+
/** BCP 47 locale. Defaults to the user's. */
|
|
8
|
+
locale?: string;
|
|
9
|
+
/** `display`: a hero figure in the brand face with a quieter symbol and minor units. */
|
|
10
|
+
size?: Size | 'display';
|
|
11
|
+
/** `auto` colours gains success and losses error (use with signDisplay). */
|
|
12
|
+
tone?: 'neutral' | 'auto';
|
|
13
|
+
/** e.g. 'exceptZero' to show "+" on gains. */
|
|
14
|
+
signDisplay?: Intl.NumberFormatOptions['signDisplay'];
|
|
15
|
+
/** Roll digits to new values (NumberTicker). The first render never animates. */
|
|
16
|
+
animate?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A money figure, honest by default (Calm Depth §3.5): tabular numerals, the
|
|
20
|
+
* currency's own minor unit, a true minus sign. Formatting is Intl.NumberFormat.
|
|
21
|
+
*/
|
|
22
|
+
export declare const Amount: React.ForwardRefExoticComponent<AmountProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,29 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
NumberTicker
|
|
4
|
-
} from "./chunk-2G3XUIQZ.js";
|
|
5
|
-
import {
|
|
6
|
-
moneyFormatter
|
|
7
|
-
} from "./chunk-R3SUPKKI.js";
|
|
8
|
-
import {
|
|
9
|
-
useIntlLocale
|
|
10
|
-
} from "./chunk-VMSWIC3O.js";
|
|
11
|
-
import {
|
|
12
|
-
cn
|
|
13
|
-
} from "./chunk-WRVFNYO3.js";
|
|
14
|
-
|
|
15
|
-
// src/components/Amount/Amount.tsx
|
|
16
|
-
import * as React from "react";
|
|
1
|
+
"use client";
|
|
17
2
|
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
|
+
import { useIntlLocale } from "../NexubProvider/NexubProvider.js";
|
|
6
|
+
import { moneyFormatter } from "../../utils/money.js";
|
|
7
|
+
import { NumberTicker } from "../NumberTicker/NumberTicker.js";
|
|
8
|
+
const sizes = {
|
|
19
9
|
sm: "text-body-sm",
|
|
20
10
|
md: "text-body-md",
|
|
21
11
|
lg: "text-title-lg",
|
|
22
12
|
display: "font-display text-display-sm"
|
|
23
13
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
const mutedClass = "text-[0.55em] font-semibold text-[var(--color-on-surface-variant)]";
|
|
15
|
+
const muted = (type) => type === "currency" || type === "decimal" || type === "fraction";
|
|
16
|
+
const Amount = React.forwardRef(
|
|
27
17
|
({ value, currency, locale: localeProp, size = "md", tone = "neutral", signDisplay, animate = false, className, ...props }, ref) => {
|
|
28
18
|
const locale = useIntlLocale(localeProp);
|
|
29
19
|
const parts = moneyFormatter(currency, locale, { signDisplay }).formatToParts(value);
|
|
@@ -58,7 +48,6 @@ var Amount = React.forwardRef(
|
|
|
58
48
|
}
|
|
59
49
|
);
|
|
60
50
|
Amount.displayName = "Amount";
|
|
61
|
-
|
|
62
51
|
export {
|
|
63
52
|
Amount
|
|
64
53
|
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Amount
|
|
4
|
-
} from "../../chunk-IBBICKEZ.js";
|
|
5
|
-
import "../../chunk-2G3XUIQZ.js";
|
|
6
|
-
import "../../chunk-R3SUPKKI.js";
|
|
7
|
-
import "../../chunk-VMSWIC3O.js";
|
|
8
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { Amount } from "./Amount.js";
|
|
9
2
|
export {
|
|
10
3
|
Amount
|
|
11
4
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const AppShell: {
|
|
3
|
+
Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Sidebar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Main: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/AppShell/AppShell.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
|
{
|
|
@@ -17,24 +12,23 @@ var Root = React.forwardRef(
|
|
|
17
12
|
)
|
|
18
13
|
);
|
|
19
14
|
Root.displayName = "AppShell.Root";
|
|
20
|
-
|
|
15
|
+
const Header = React.forwardRef(
|
|
21
16
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("col-span-full row-start-1", className), ...props })
|
|
22
17
|
);
|
|
23
18
|
Header.displayName = "AppShell.Header";
|
|
24
|
-
|
|
19
|
+
const Body = React.forwardRef(
|
|
25
20
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex overflow-hidden row-start-2", className), ...props })
|
|
26
21
|
);
|
|
27
22
|
Body.displayName = "AppShell.Body";
|
|
28
|
-
|
|
23
|
+
const SidebarSlot = React.forwardRef(
|
|
29
24
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("shrink-0 overflow-y-auto", className), ...props })
|
|
30
25
|
);
|
|
31
26
|
SidebarSlot.displayName = "AppShell.Sidebar";
|
|
32
|
-
|
|
27
|
+
const Main = React.forwardRef(
|
|
33
28
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx("main", { ref, className: cn("flex-1 overflow-y-auto p-6", className), ...props })
|
|
34
29
|
);
|
|
35
30
|
Main.displayName = "AppShell.Main";
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
const AppShell = { Root, Header, Body, Sidebar: SidebarSlot, Main };
|
|
38
32
|
export {
|
|
39
33
|
AppShell
|
|
40
34
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AppShell } from './AppShell.js';
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-WRVFNYO3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/AspectRatio/AspectRatio.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 RATIO_CLASS = {
|
|
10
5
|
"1.0000": "aspect-square",
|
|
11
6
|
"1.7778": "aspect-video",
|
|
12
7
|
"1.3333": "aspect-[4/3]",
|
|
@@ -16,7 +11,7 @@ var RATIO_CLASS = {
|
|
|
16
11
|
"0.7500": "aspect-[3/4]",
|
|
17
12
|
"0.6667": "aspect-[2/3]"
|
|
18
13
|
};
|
|
19
|
-
|
|
14
|
+
const AspectRatio = React.forwardRef(
|
|
20
15
|
({ ratio = 16 / 9, className, children, style, ...rest }, ref) => {
|
|
21
16
|
const ratioClass = RATIO_CLASS[ratio.toFixed(4)];
|
|
22
17
|
return /* @__PURE__ */ jsx(
|
|
@@ -32,7 +27,6 @@ var AspectRatio = React.forwardRef(
|
|
|
32
27
|
}
|
|
33
28
|
);
|
|
34
29
|
AspectRatio.displayName = "AspectRatio";
|
|
35
|
-
|
|
36
30
|
export {
|
|
37
31
|
AspectRatio
|
|
38
32
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface AutocompleteOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface AutocompleteProps {
|
|
7
|
+
options: AutocompleteOption[];
|
|
8
|
+
value?: string;
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
emptyText?: string;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function Autocomplete({ options, value, onValueChange, placeholder, emptyText, loading, className, }: AutocompleteProps): React.JSX.Element;
|
|
16
|
+
export declare namespace Autocomplete {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Combobox
|
|
4
|
-
} from "./chunk-XWELMPYD.js";
|
|
5
|
-
import {
|
|
6
|
-
useNexubMessages
|
|
7
|
-
} from "./chunk-VMSWIC3O.js";
|
|
8
|
-
|
|
9
|
-
// src/components/Autocomplete/Autocomplete.tsx
|
|
10
|
-
import * as React from "react";
|
|
1
|
+
"use client";
|
|
11
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
5
|
+
import { Combobox } from "../Combobox/Combobox.js";
|
|
12
6
|
function Autocomplete({
|
|
13
7
|
options,
|
|
14
8
|
value,
|
|
@@ -47,7 +41,6 @@ function Autocomplete({
|
|
|
47
41
|
] });
|
|
48
42
|
}
|
|
49
43
|
Autocomplete.displayName = "Autocomplete";
|
|
50
|
-
|
|
51
44
|
export {
|
|
52
45
|
Autocomplete
|
|
53
46
|
};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Autocomplete
|
|
4
|
-
} from "../../chunk-E7RLUHG3.js";
|
|
5
|
-
import "../../chunk-XWELMPYD.js";
|
|
6
|
-
import "../../chunk-VMSWIC3O.js";
|
|
7
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { Autocomplete } from "./Autocomplete.js";
|
|
8
2
|
export {
|
|
9
3
|
Autocomplete
|
|
10
4
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
export declare const avatarVariants: (props?: ({
|
|
4
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof avatarVariants> {
|
|
7
|
+
src?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
fallback?: React.ReactNode;
|
|
10
|
+
badge?: boolean;
|
|
11
|
+
badgeColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|