@nexub/react 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +10 -0
- package/dist/{chunk-DOVZNUSH.js → components/Accordion/Accordion.js} +12 -17
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +1 -5
- package/dist/components/Alert/Alert.d.ts +14 -0
- package/dist/{chunk-U422B6UE.js → components/Alert/Alert.js} +8 -15
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.js +1 -7
- package/dist/components/AlertDialog/AlertDialog.d.ts +15 -0
- package/dist/{chunk-PDQTKE2C.js → components/AlertDialog/AlertDialog.js} +32 -42
- package/dist/components/AlertDialog/index.d.ts +1 -0
- package/dist/components/AlertDialog/index.js +1 -9
- package/dist/components/Amount/Amount.d.ts +22 -0
- package/dist/{chunk-IBBICKEZ.js → components/Amount/Amount.js} +10 -21
- package/dist/components/Amount/index.d.ts +2 -0
- package/dist/components/Amount/index.js +1 -8
- package/dist/components/AppShell/AppShell.d.ts +8 -0
- package/dist/{chunk-EPJ4CMZP.js → components/AppShell/AppShell.js} +8 -14
- package/dist/components/AppShell/index.d.ts +1 -0
- package/dist/components/AppShell/index.js +1 -5
- package/dist/components/AspectRatio/AspectRatio.d.ts +5 -0
- package/dist/{chunk-52CXVN3U.js → components/AspectRatio/AspectRatio.js} +4 -10
- package/dist/components/AspectRatio/index.d.ts +2 -0
- package/dist/components/AspectRatio/index.js +1 -5
- package/dist/components/Autocomplete/Autocomplete.d.ts +18 -0
- package/dist/{chunk-E7RLUHG3.js → components/Autocomplete/Autocomplete.js} +4 -11
- package/dist/components/Autocomplete/index.d.ts +2 -0
- package/dist/components/Autocomplete/index.js +1 -7
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/{chunk-AYG7HBDZ.js → components/Avatar/Avatar.js} +8 -13
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +1 -7
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +12 -0
- package/dist/{chunk-BMUAR6H2.js → components/AvatarGroup/AvatarGroup.js} +9 -18
- package/dist/components/AvatarGroup/index.d.ts +2 -0
- package/dist/components/AvatarGroup/index.js +1 -8
- package/dist/components/Badge/Badge.d.ts +12 -0
- package/dist/{chunk-FBUKWIWR.js → components/Badge/Badge.js} +7 -13
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +1 -6
- package/dist/components/Box/Box.d.ts +5 -0
- package/dist/{chunk-ZCHZNGWU.js → components/Box/Box.js} +3 -9
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Box/index.js +1 -5
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +21 -0
- package/dist/{chunk-SQGRT72E.js → components/Breadcrumb/Breadcrumb.js} +12 -19
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Breadcrumb/index.js +1 -6
- package/dist/components/Button/Button.d.ts +30 -0
- package/dist/{chunk-GHLMHKMV.js → components/Button/Button.js} +19 -37
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +1 -9
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -0
- package/dist/{chunk-7EQ2LIYD.js → components/ButtonGroup/ButtonGroup.js} +3 -9
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.js +1 -6
- package/dist/components/Card/Card.d.ts +27 -0
- package/dist/{chunk-T466ZB34.js → components/Card/Card.js} +18 -46
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +1 -8
- package/dist/components/CheckList/CheckList.d.ts +10 -0
- package/dist/{chunk-T3RBFJML.js → components/CheckList/CheckList.js} +4 -10
- package/dist/components/CheckList/index.d.ts +2 -0
- package/dist/components/CheckList/index.js +1 -6
- package/dist/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/{chunk-JOOKMCAF.js → components/Checkbox/Checkbox.js} +4 -9
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +1 -5
- package/dist/components/CheckboxCard/CheckboxCard.d.ts +9 -0
- package/dist/{chunk-EYGT5IX4.js → components/CheckboxCard/CheckboxCard.js} +7 -12
- package/dist/components/CheckboxCard/index.d.ts +2 -0
- package/dist/components/CheckboxCard/index.js +1 -6
- package/dist/components/Chip/Chip.d.ts +12 -0
- package/dist/{chunk-PFDUHXT5.js → components/Chip/Chip.js} +8 -15
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/index.js +1 -7
- package/dist/components/Citation/Citation.d.ts +44 -0
- package/dist/{chunk-IA2362SO.js → components/Citation/Citation.js} +12 -21
- package/dist/components/Citation/index.d.ts +2 -0
- package/dist/components/Citation/index.js +1 -11
- package/dist/components/Code/Code.d.ts +6 -0
- package/dist/{chunk-NX44VGON.js → components/Code/Code.js} +3 -9
- package/dist/components/Code/index.d.ts +2 -0
- package/dist/components/Code/index.js +1 -5
- package/dist/components/Collapsible/Collapsible.d.ts +7 -0
- package/dist/{chunk-4WIUGX5Z.js → components/Collapsible/Collapsible.js} +10 -15
- package/dist/components/Collapsible/index.d.ts +1 -0
- package/dist/components/Collapsible/index.js +1 -5
- package/dist/components/Combobox/Combobox.d.ts +75 -0
- package/dist/{chunk-XWELMPYD.js → components/Combobox/Combobox.js} +11 -16
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/Combobox/index.js +1 -6
- package/dist/components/CommandPalette/CommandPalette.d.ts +73 -0
- package/dist/{chunk-LASPHHH6.js → components/CommandPalette/CommandPalette.js} +16 -28
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.js +1 -8
- package/dist/components/Container/Container.d.ts +10 -0
- package/dist/{chunk-EQ5ASTJM.js → components/Container/Container.js} +7 -12
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/Container/index.js +1 -6
- package/dist/components/ContextMenu/ContextMenu.d.ts +18 -0
- package/dist/{chunk-CUCTSWR2.js → components/ContextMenu/ContextMenu.js} +42 -53
- package/dist/components/ContextMenu/index.d.ts +1 -0
- package/dist/components/ContextMenu/index.js +1 -6
- package/dist/components/CountryBadge/CountryBadge.d.ts +8 -0
- package/dist/{chunk-JZCZ2SDT.js → components/CountryBadge/CountryBadge.js} +5 -13
- package/dist/components/CountryBadge/index.d.ts +2 -0
- package/dist/components/CountryBadge/index.js +1 -6
- package/dist/components/DataTable/DataTable.d.ts +24 -0
- package/dist/{chunk-A7PS3EZO.js → components/DataTable/DataTable.js} +15 -27
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/index.js +1 -8
- package/dist/components/DatePicker/DatePicker.d.ts +39 -0
- package/dist/{chunk-OY5CWWIM.js → components/DatePicker/DatePicker.js} +11 -24
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +1 -9
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +20 -0
- package/dist/{chunk-YYAXXJH3.js → components/DateRangePicker/DateRangePicker.js} +9 -23
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +1 -9
- package/dist/components/Dialog/Dialog.d.ts +21 -0
- package/dist/{chunk-CEFGILJY.js → components/Dialog/Dialog.js} +28 -38
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.js +1 -7
- package/dist/components/Drawer/Drawer.d.ts +94 -0
- package/dist/components/Drawer/Drawer.js +131 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/index.js +1 -9
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +18 -0
- package/dist/{chunk-GWFIMQBC.js → components/DropdownMenu/DropdownMenu.js} +42 -53
- package/dist/components/DropdownMenu/index.d.ts +1 -0
- package/dist/components/DropdownMenu/index.js +1 -7
- package/dist/components/EmptyState/EmptyState.d.ts +8 -0
- package/dist/{chunk-AWTSLASB.js → components/EmptyState/EmptyState.js} +8 -14
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/EmptyState/index.js +1 -5
- package/dist/components/ErrorState/ErrorState.d.ts +10 -0
- package/dist/{chunk-NX5ZJSRU.js → components/ErrorState/ErrorState.js} +6 -13
- package/dist/components/ErrorState/index.d.ts +2 -0
- package/dist/components/ErrorState/index.js +1 -6
- package/dist/components/EyebrowChip/EyebrowChip.d.ts +11 -0
- package/dist/{chunk-MXXJOAWQ.js → components/EyebrowChip/EyebrowChip.js} +7 -13
- package/dist/components/EyebrowChip/index.d.ts +2 -0
- package/dist/components/EyebrowChip/index.js +1 -8
- package/dist/components/FileUpload/FileUpload.d.ts +16 -0
- package/dist/{chunk-LR6KNEKL.js → components/FileUpload/FileUpload.js} +12 -19
- package/dist/components/FileUpload/index.d.ts +2 -0
- package/dist/components/FileUpload/index.js +1 -6
- package/dist/components/FilterChip/FilterChip.d.ts +8 -0
- package/dist/{chunk-36QSSD7I.js → components/FilterChip/FilterChip.js} +6 -15
- package/dist/components/FilterChip/index.d.ts +2 -0
- package/dist/components/FilterChip/index.js +1 -7
- package/dist/components/Flag/Flag.d.ts +7 -0
- package/dist/{chunk-HOQPHAGW.js → components/Flag/Flag.js} +4 -10
- package/dist/components/Flag/index.d.ts +2 -0
- package/dist/components/Flag/index.js +1 -6
- package/dist/components/Flex/Flex.d.ts +10 -0
- package/dist/{chunk-BOO4VH3M.js → components/Flex/Flex.js} +5 -13
- package/dist/components/Flex/index.d.ts +2 -0
- package/dist/components/Flex/index.js +1 -6
- package/dist/components/FormError/FormError.d.ts +3 -0
- package/dist/{chunk-H2X6MSNY.js → components/FormError/FormError.js} +3 -9
- package/dist/components/FormError/index.d.ts +2 -0
- package/dist/components/FormError/index.js +1 -6
- package/dist/components/FormField/FormField.d.ts +46 -0
- package/dist/{chunk-FT73REUG.js → components/FormField/FormField.js} +9 -20
- package/dist/components/FormField/index.d.ts +2 -0
- package/dist/components/FormField/index.js +1 -11
- package/dist/components/GradientDivider/GradientDivider.d.ts +6 -0
- package/dist/{chunk-FDRAGYDV.js → components/GradientDivider/GradientDivider.js} +7 -13
- package/dist/components/GradientDivider/index.d.ts +2 -0
- package/dist/components/GradientDivider/index.js +1 -5
- package/dist/components/Grid/Grid.d.ts +9 -0
- package/dist/{chunk-F5S2KP3Z.js → components/Grid/Grid.js} +5 -13
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/index.js +1 -6
- package/dist/components/Heading/Heading.d.ts +17 -0
- package/dist/{chunk-Z7OR2LYG.js → components/Heading/Heading.js} +8 -16
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/index.js +1 -9
- package/dist/components/HelperText/HelperText.d.ts +6 -0
- package/dist/{chunk-QKGQBJ4U.js → components/HelperText/HelperText.js} +4 -12
- package/dist/components/HelperText/index.d.ts +2 -0
- package/dist/components/HelperText/index.js +1 -9
- package/dist/components/HoverCard/HoverCard.d.ts +10 -0
- package/dist/{chunk-KL55E5PE.js → components/HoverCard/HoverCard.js} +15 -22
- package/dist/components/HoverCard/index.d.ts +1 -0
- package/dist/components/HoverCard/index.js +1 -7
- package/dist/components/IconButton/IconButton.d.ts +11 -0
- package/dist/{chunk-RH2HEPC7.js → components/IconButton/IconButton.js} +7 -17
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/index.js +1 -8
- package/dist/components/Input/Input.d.ts +21 -0
- package/dist/{chunk-G7VMAWAX.js → components/Input/Input.js} +10 -21
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.js +1 -10
- package/dist/components/Kbd/Kbd.d.ts +4 -0
- package/dist/{chunk-OM62PQSE.js → components/Kbd/Kbd.js} +3 -9
- package/dist/components/Kbd/index.d.ts +2 -0
- package/dist/components/Kbd/index.js +1 -6
- package/dist/components/KeyboardShortcut/KeyboardShortcut.d.ts +5 -0
- package/dist/{chunk-PR3CEPFG.js → components/KeyboardShortcut/KeyboardShortcut.js} +4 -12
- package/dist/components/KeyboardShortcut/index.d.ts +2 -0
- package/dist/components/KeyboardShortcut/index.js +1 -6
- package/dist/components/Label/Label.d.ts +15 -0
- package/dist/{chunk-BM5PGGK2.js → components/Label/Label.js} +7 -15
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Label/index.js +1 -10
- package/dist/components/Link/Link.d.ts +11 -0
- package/dist/{chunk-QCLE5VQW.js → components/Link/Link.js} +6 -12
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Link/index.js +1 -6
- package/dist/components/Logo/Logo.d.ts +15 -0
- package/dist/{chunk-ZGJF4HAT.js → components/Logo/Logo.js} +8 -14
- package/dist/components/Logo/index.d.ts +2 -0
- package/dist/components/Logo/index.js +1 -6
- package/dist/components/MediaCard/MediaCard.d.ts +24 -0
- package/dist/{chunk-5DHLFPC4.js → components/MediaCard/MediaCard.js} +5 -13
- package/dist/components/MediaCard/index.d.ts +2 -0
- package/dist/components/MediaCard/index.js +1 -6
- package/dist/components/Menubar/Menubar.d.ts +1 -0
- package/dist/{chunk-PPECMYKJ.js → components/Menubar/Menubar.js} +50 -61
- package/dist/components/Menubar/index.d.ts +1 -0
- package/dist/components/Menubar/index.js +1 -6
- package/dist/components/MessageBubble/MessageBubble.d.ts +43 -0
- package/dist/{chunk-RNS35DNZ.js → components/MessageBubble/MessageBubble.js} +13 -27
- package/dist/components/MessageBubble/index.d.ts +2 -0
- package/dist/components/MessageBubble/index.js +1 -13
- package/dist/components/MoneyInput/MoneyInput.d.ts +19 -0
- package/dist/{chunk-FOFNTKCK.js → components/MoneyInput/MoneyInput.js} +8 -24
- package/dist/components/MoneyInput/index.d.ts +2 -0
- package/dist/components/MoneyInput/index.js +1 -11
- package/dist/components/Motion/Collapse.d.ts +29 -0
- package/dist/components/Motion/Collapse.js +103 -0
- package/dist/components/Motion/Fade.d.ts +16 -0
- package/dist/components/Motion/Fade.js +42 -0
- package/dist/components/Motion/Float.d.ts +8 -0
- package/dist/components/Motion/Float.js +14 -0
- package/dist/components/Motion/ListTransition.d.ts +46 -0
- package/dist/components/Motion/ListTransition.js +110 -0
- package/dist/components/Motion/Marquee.d.ts +13 -0
- package/dist/components/Motion/Marquee.js +13 -0
- package/dist/components/Motion/Reveal.d.ts +12 -0
- package/dist/components/Motion/Reveal.js +32 -0
- package/dist/components/Motion/Scale.d.ts +22 -0
- package/dist/components/Motion/Scale.js +45 -0
- package/dist/components/Motion/Slide.d.ts +22 -0
- package/dist/components/Motion/Slide.js +59 -0
- package/dist/components/Motion/index.d.ts +18 -0
- package/dist/components/Motion/index.js +12 -10
- package/dist/components/Motion/motion.types.d.ts +25 -0
- package/dist/components/Motion/motion.types.js +1 -0
- package/dist/components/Motion/useMotion.d.ts +41 -0
- package/dist/components/Motion/useMotion.js +102 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +12 -0
- package/dist/{chunk-FXVI4RCJ.js → components/NavigationMenu/NavigationMenu.js} +21 -28
- package/dist/components/NavigationMenu/index.d.ts +1 -0
- package/dist/components/NavigationMenu/index.js +1 -6
- package/dist/components/NavigationRail/NavigationRail.d.ts +19 -0
- package/dist/{chunk-5MGCYR4G.js → components/NavigationRail/NavigationRail.js} +7 -14
- package/dist/components/NavigationRail/index.d.ts +2 -0
- package/dist/components/NavigationRail/index.js +1 -6
- package/dist/components/NexubProvider/NexubProvider.d.ts +34 -0
- package/dist/{chunk-VMSWIC3O.js → components/NexubProvider/NexubProvider.js} +7 -9
- package/dist/components/NexubProvider/index.d.ts +2 -0
- package/dist/components/NexubProvider/index.js +1 -8
- package/dist/components/NumberInput/NumberInput.d.ts +15 -0
- package/dist/{chunk-V3EWVSVI.js → components/NumberInput/NumberInput.js} +9 -20
- package/dist/components/NumberInput/index.d.ts +2 -0
- package/dist/components/NumberInput/index.js +1 -8
- package/dist/components/NumberTicker/NumberTicker.d.ts +25 -0
- package/dist/{chunk-2G3XUIQZ.js → components/NumberTicker/NumberTicker.js} +30 -19
- package/dist/components/NumberTicker/index.d.ts +2 -0
- package/dist/components/NumberTicker/index.js +1 -7
- package/dist/components/PageHeader/PageHeader.d.ts +10 -0
- package/dist/{chunk-SEW66BU7.js → components/PageHeader/PageHeader.js} +3 -9
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/PageHeader/index.js +1 -5
- package/dist/components/Pagination/Pagination.d.ts +9 -0
- package/dist/{chunk-NLVP74RX.js → components/Pagination/Pagination.js} +7 -17
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +1 -7
- package/dist/components/PasswordInput/PasswordInput.d.ts +9 -0
- package/dist/{chunk-OGHOT6XN.js → components/PasswordInput/PasswordInput.js} +7 -18
- package/dist/components/PasswordInput/index.d.ts +2 -0
- package/dist/components/PasswordInput/index.js +1 -10
- package/dist/components/Popover/Popover.d.ts +13 -0
- package/dist/{chunk-MPJG4WFP.js → components/Popover/Popover.js} +20 -29
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.js +1 -7
- package/dist/components/Progress/Progress.d.ts +17 -0
- package/dist/{chunk-HXNUIIXB.js → components/Progress/Progress.js} +9 -16
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +1 -8
- package/dist/components/PromptInput/PromptInput.d.ts +33 -0
- package/dist/{chunk-ZUMC7SX5.js → components/PromptInput/PromptInput.js} +12 -30
- package/dist/components/PromptInput/index.d.ts +2 -0
- package/dist/components/PromptInput/index.js +1 -12
- package/dist/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/{chunk-YNLXG574.js → components/RadioCard/RadioCard.js} +11 -16
- package/dist/components/RadioCard/index.d.ts +2 -0
- package/dist/components/RadioCard/index.js +1 -7
- package/dist/components/RadioCard/selectableCard.d.ts +29 -0
- package/dist/{chunk-6SPCGCDG.js → components/RadioCard/selectableCard.js} +6 -11
- package/dist/components/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/{chunk-QQR4PPF3.js → components/RadioGroup/RadioGroup.js} +8 -13
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/RadioGroup/index.js +1 -5
- package/dist/components/Rating/Rating.d.ts +12 -0
- package/dist/{chunk-VCCQ64G7.js → components/Rating/Rating.js} +9 -18
- package/dist/components/Rating/index.d.ts +2 -0
- package/dist/components/Rating/index.js +1 -9
- package/dist/components/ScrollArea/ScrollArea.d.ts +6 -0
- package/dist/{chunk-2DZWTBDL.js → components/ScrollArea/ScrollArea.js} +4 -9
- package/dist/components/ScrollArea/index.d.ts +2 -0
- package/dist/components/ScrollArea/index.js +1 -5
- package/dist/components/SearchInput/SearchInput.d.ts +6 -0
- package/dist/{chunk-YVS6AVPD.js → components/SearchInput/SearchInput.js} +7 -18
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/SearchInput/index.js +1 -10
- package/dist/components/Section/Section.d.ts +10 -0
- package/dist/{chunk-EIV37DAQ.js → components/Section/Section.js} +6 -12
- package/dist/components/Section/index.d.ts +2 -0
- package/dist/components/Section/index.js +1 -6
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +12 -0
- package/dist/{chunk-KRIRCSUB.js → components/SegmentedControl/SegmentedControl.js} +12 -21
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/SegmentedControl/index.js +1 -8
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/{chunk-M5PDVHFN.js → components/Select/Select.js} +35 -48
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +1 -7
- package/dist/components/Separator/Separator.d.ts +12 -0
- package/dist/{chunk-YVCUKIAC.js → components/Separator/Separator.js} +6 -12
- package/dist/components/Separator/index.d.ts +2 -0
- package/dist/components/Separator/index.js +1 -6
- package/dist/components/Sidebar/Sidebar.d.ts +25 -0
- package/dist/{chunk-NAESV7K3.js → components/Sidebar/Sidebar.js} +11 -18
- package/dist/components/Sidebar/index.d.ts +2 -0
- package/dist/components/Sidebar/index.js +1 -6
- package/dist/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/{chunk-3C4WVTAN.js → components/Skeleton/Skeleton.js} +7 -13
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/index.js +1 -6
- package/dist/components/Slider/Slider.d.ts +7 -0
- package/dist/{chunk-5QWRBJSZ.js → components/Slider/Slider.js} +4 -9
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/index.js +1 -5
- package/dist/components/Spinner/Spinner.d.ts +12 -0
- package/dist/{chunk-P3SAE4T2.js → components/Spinner/Spinner.js} +8 -15
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/index.js +1 -7
- package/dist/components/SplitButton/SplitButton.d.ts +15 -0
- package/dist/{chunk-ILIM4BLN.js → components/SplitButton/SplitButton.js} +7 -18
- package/dist/components/SplitButton/index.d.ts +2 -0
- package/dist/components/SplitButton/index.js +1 -11
- package/dist/components/Stack/Stack.d.ts +11 -0
- package/dist/{chunk-ST4O3EQ3.js → components/Stack/Stack.js} +4 -12
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/Stack/index.js +1 -6
- package/dist/components/StreamingText/StreamingText.d.ts +19 -0
- package/dist/{chunk-4ESZQDPB.js → components/StreamingText/StreamingText.js} +5 -10
- package/dist/components/StreamingText/index.d.ts +2 -0
- package/dist/components/StreamingText/index.js +1 -5
- package/dist/components/Switch/Switch.d.ts +12 -0
- package/dist/{chunk-EWW6PWTK.js → components/Switch/Switch.js} +9 -12
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +1 -5
- package/dist/components/Table/Table.d.ts +18 -0
- package/dist/{chunk-KA6RZ7VN.js → components/Table/Table.js} +13 -18
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +1 -6
- package/dist/components/Tabs/Tabs.d.ts +8 -0
- package/dist/{chunk-BIWSXGTZ.js → components/Tabs/Tabs.js} +14 -23
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +1 -8
- package/dist/components/Text/Text.d.ts +13 -0
- package/dist/{chunk-UYINKNCI.js → components/Text/Text.js} +7 -13
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/Text/index.js +1 -6
- package/dist/components/TextGradient/TextGradient.d.ts +4 -0
- package/dist/{chunk-IDPRAXCG.js → components/TextGradient/TextGradient.js} +3 -9
- package/dist/components/TextGradient/index.d.ts +2 -0
- package/dist/components/TextGradient/index.js +1 -5
- package/dist/components/Textarea/Textarea.d.ts +13 -0
- package/dist/{chunk-HL64PWVQ.js → components/Textarea/Textarea.js} +8 -17
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +1 -7
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +69 -0
- package/dist/{chunk-ZBRRQHZG.js → components/ThemeProvider/ThemeProvider.js} +11 -15
- package/dist/components/ThemeProvider/index.d.ts +2 -0
- package/dist/components/ThemeProvider/index.js +1 -7
- package/dist/components/ThinkingIndicator/ThinkingIndicator.d.ts +18 -0
- package/dist/{chunk-VX56VQMF.js → components/ThinkingIndicator/ThinkingIndicator.js} +6 -13
- package/dist/components/ThinkingIndicator/index.d.ts +2 -0
- package/dist/components/ThinkingIndicator/index.js +1 -6
- package/dist/components/Toast/Toast.d.ts +17 -0
- package/dist/components/Toast/Toast.js +82 -0
- package/dist/components/Toast/Toaster.d.ts +21 -0
- package/dist/{chunk-MQGBAWSJ.js → components/Toast/Toaster.js} +27 -189
- package/dist/components/Toast/index.d.ts +5 -0
- package/dist/components/Toast/index.js +3 -10
- package/dist/components/Toast/useToast.d.ts +45 -0
- package/dist/components/Toast/useToast.js +74 -0
- package/dist/components/Toggle/Toggle.d.ts +10 -0
- package/dist/{chunk-NMSQDI4A.js → components/Toggle/Toggle.js} +7 -12
- package/dist/components/Toggle/index.d.ts +2 -0
- package/dist/components/Toggle/index.js +1 -7
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +16 -0
- package/dist/{chunk-UOBWHPXG.js → components/ToggleGroup/ToggleGroup.js} +10 -17
- package/dist/components/ToggleGroup/index.d.ts +1 -0
- package/dist/components/ToggleGroup/index.js +1 -6
- package/dist/components/Toolbar/Toolbar.d.ts +18 -0
- package/dist/{chunk-WGW7TZOV.js → components/Toolbar/Toolbar.js} +15 -22
- package/dist/components/Toolbar/index.d.ts +2 -0
- package/dist/components/Toolbar/index.js +1 -6
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/{chunk-6SWOLUMF.js → components/Tooltip/Tooltip.js} +16 -21
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +1 -10
- package/dist/components/TopNav/TopNav.d.ts +20 -0
- package/dist/{chunk-BNG3Y5I7.js → components/TopNav/TopNav.js} +11 -20
- package/dist/components/TopNav/index.d.ts +2 -0
- package/dist/components/TopNav/index.js +1 -7
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +2 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js +5 -0
- package/dist/components/VisuallyHidden/index.d.ts +2 -0
- package/dist/components/VisuallyHidden/index.js +2 -5
- package/dist/hooks/useClassScrollLock.d.ts +6 -0
- package/dist/{chunk-47UGX37F.js → hooks/useClassScrollLock.js} +2 -5
- package/dist/hooks/useControllableState.d.ts +7 -0
- package/dist/{chunk-JLUCMNVS.js → hooks/useControllableState.js} +2 -7
- package/dist/hooks/useDisclosure.d.ts +6 -0
- package/dist/hooks/useDisclosure.js +12 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/hooks/useMediaQuery.d.ts +1 -0
- package/dist/hooks/useMediaQuery.js +17 -0
- package/dist/hooks/useMergedRefs.d.ts +2 -0
- package/dist/{chunk-MNEXMMLM.js → hooks/useMergedRefs.js} +1 -4
- package/dist/hooks/usePointerSheen.d.ts +8 -0
- package/dist/hooks/usePointerSheen.js +25 -0
- package/dist/hooks/useSlidingIndicator.d.ts +8 -0
- package/dist/{chunk-6UKNUI46.js → hooks/useSlidingIndicator.js} +2 -7
- package/dist/index.d.ts +196 -1849
- package/dist/index.js +116 -413
- package/dist/styles.css +1 -1
- package/dist/utils/cn.d.ts +2 -0
- package/dist/{chunk-WRVFNYO3.js → utils/cn.js} +8 -11
- package/dist/utils/control.d.ts +20 -0
- package/dist/utils/control.js +41 -0
- package/dist/utils/deprecated.d.ts +6 -0
- package/dist/utils/deprecated.js +16 -0
- package/dist/utils/glass.d.ts +9 -0
- package/dist/utils/glass.js +4 -0
- package/dist/utils/layout.d.ts +14 -0
- package/dist/{chunk-VLQGQFW7.js → utils/layout.js} +5 -9
- package/dist/utils/money.d.ts +1 -0
- package/dist/{chunk-R3SUPKKI.js → utils/money.js} +3 -6
- package/dist/utils/surface.d.ts +11 -0
- package/dist/{chunk-5FWJXSXT.js → utils/surface.js} +9 -13
- package/dist/utils/viewTransition.d.ts +5 -0
- package/dist/utils/viewTransition.js +8 -0
- package/dist/{chunk-PZL6AJH5.js → vendor/vaul.js} +2 -140
- package/package.json +15 -7
- package/dist/chunk-4B4XWDAH.js +0 -1
- package/dist/chunk-4GVGS5N4.js +0 -468
- package/dist/chunk-52ZVJPF7.js +0 -1
- package/dist/chunk-A3O23F2B.js +0 -1
- package/dist/chunk-ADO2DB6Q.js +0 -1
- package/dist/chunk-BV3U3ATL.js +0 -1
- package/dist/chunk-CAOLGXA5.js +0 -1
- package/dist/chunk-DEIBF3P7.js +0 -8
- package/dist/chunk-EV43I5J6.js +0 -1
- package/dist/chunk-HI7GBSW2.js +0 -1
- package/dist/chunk-HY3JWSG4.js +0 -1
- package/dist/chunk-IZ6ZPEZ2.js +0 -1
- package/dist/chunk-KLTQJZOX.js +0 -1
- package/dist/chunk-LVPU7455.js +0 -1
- package/dist/chunk-NHUQLIHL.js +0 -9
- package/dist/chunk-NZ7UK3G6.js +0 -1
- package/dist/chunk-P26VJEIW.js +0 -1
- package/dist/chunk-PICMOOAZ.js +0 -1
- package/dist/chunk-VALIDQXU.js +0 -31
- package/dist/chunk-WLRRMT6W.js +0 -1
- package/dist/chunk-XYXMPHND.js +0 -1
- package/dist/chunk-YJU4ZRQZ.js +0 -1
- package/dist/chunk-ZT3NWE5U.js +0 -1
- package/dist/chunk-ZXLACKEB.js +0 -8
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
Flag
|
|
4
|
-
} from "./chunk-HOQPHAGW.js";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "./chunk-WRVFNYO3.js";
|
|
8
|
-
|
|
9
|
-
// src/components/CountryBadge/CountryBadge.tsx
|
|
10
|
-
import * as React from "react";
|
|
11
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
4
|
+
import { Flag } from "../Flag/Flag.js";
|
|
5
|
+
const sizeClass = {
|
|
13
6
|
sm: "px-2 py-0.5 text-xs gap-1",
|
|
14
7
|
md: "px-2.5 py-1 text-sm gap-1.5",
|
|
15
8
|
lg: "px-3 py-1.5 text-base gap-2"
|
|
16
9
|
};
|
|
17
|
-
|
|
10
|
+
const CountryBadge = React.forwardRef(
|
|
18
11
|
({ code, label, size = "md", className, ...rest }, ref) => {
|
|
19
12
|
const displayLabel = label ?? code;
|
|
20
13
|
return /* @__PURE__ */ jsxs(
|
|
@@ -38,7 +31,6 @@ var CountryBadge = React.forwardRef(
|
|
|
38
31
|
}
|
|
39
32
|
);
|
|
40
33
|
CountryBadge.displayName = "CountryBadge";
|
|
41
|
-
|
|
42
34
|
export {
|
|
43
35
|
CountryBadge
|
|
44
36
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ColumnDef, type RowData } from '@tanstack/react-table';
|
|
3
|
+
declare module '@tanstack/react-table' {
|
|
4
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
5
|
+
/** Horizontal alignment of the header and cells. Use 'end' for numbers. @default 'start' */
|
|
6
|
+
align?: 'start' | 'end' | 'center';
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
/** A DataTable column: TanStack's `ColumnDef`, with `meta.align` for numeric columns. */
|
|
10
|
+
export type DataTableColumn<TData> = ColumnDef<TData, unknown>;
|
|
11
|
+
export interface DataTableProps<TData> extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
columns: DataTableColumn<TData>[];
|
|
13
|
+
/** Names the table for assistive tech (and is shown below it unless `captionHidden`). */
|
|
14
|
+
caption?: React.ReactNode;
|
|
15
|
+
/** Keep the caption for screen readers only. */
|
|
16
|
+
captionHidden?: boolean;
|
|
17
|
+
data: TData[];
|
|
18
|
+
enableSorting?: boolean;
|
|
19
|
+
enableRowSelection?: boolean;
|
|
20
|
+
pagination?: {
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare function DataTable<TData>({ columns, data, enableSorting, enableRowSelection, pagination, caption, captionHidden, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }: DataTableProps<TData>): React.JSX.Element;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
Table
|
|
4
|
-
} from "./chunk-KA6RZ7VN.js";
|
|
5
|
-
import {
|
|
6
|
-
disabledContainer,
|
|
7
|
-
pressable
|
|
8
|
-
} from "./chunk-VALIDQXU.js";
|
|
9
|
-
import {
|
|
10
|
-
useNexubMessages
|
|
11
|
-
} from "./chunk-VMSWIC3O.js";
|
|
12
|
-
import {
|
|
13
|
-
cn
|
|
14
|
-
} from "./chunk-WRVFNYO3.js";
|
|
15
|
-
|
|
16
|
-
// src/components/DataTable/DataTable.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
3
|
import * as React from "react";
|
|
18
4
|
import {
|
|
19
5
|
useReactTable,
|
|
@@ -24,24 +10,27 @@ import {
|
|
|
24
10
|
flexRender
|
|
25
11
|
} from "@tanstack/react-table";
|
|
26
12
|
import { ArrowUp, ArrowDown, ChevronsUpDown } from "@nexub/icons";
|
|
27
|
-
import {
|
|
28
|
-
|
|
13
|
+
import { cn } from "../../utils/cn.js";
|
|
14
|
+
import { disabledContainer, pressable } from "../../utils/control.js";
|
|
15
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
16
|
+
import { Table } from "../Table/Table.js";
|
|
17
|
+
const alignText = {
|
|
29
18
|
start: "text-start",
|
|
30
19
|
end: "text-end",
|
|
31
20
|
center: "text-center"
|
|
32
21
|
};
|
|
33
|
-
|
|
22
|
+
const alignJustify = {
|
|
34
23
|
start: "justify-start",
|
|
35
24
|
end: "justify-end",
|
|
36
25
|
center: "justify-center"
|
|
37
26
|
};
|
|
38
|
-
|
|
27
|
+
const pagerButton = cn(
|
|
39
28
|
pressable,
|
|
40
29
|
"border border-[var(--color-outline-variant)] bg-transparent px-4 py-2 min-h-[44px] text-label-lg text-[var(--color-on-surface)]",
|
|
41
30
|
disabledContainer
|
|
42
31
|
);
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
const TableRoot = Table.Root;
|
|
33
|
+
const TableHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
45
34
|
"thead",
|
|
46
35
|
{
|
|
47
36
|
ref,
|
|
@@ -50,9 +39,9 @@ var TableHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
50
39
|
}
|
|
51
40
|
));
|
|
52
41
|
TableHeader.displayName = "DataTable.TableHeader";
|
|
53
|
-
|
|
42
|
+
const TableBody = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: cn("[&_tr:last-child]:border-0", className), ...props }));
|
|
54
43
|
TableBody.displayName = "DataTable.TableBody";
|
|
55
|
-
|
|
44
|
+
const TableRow = React.forwardRef(
|
|
56
45
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
57
46
|
"tr",
|
|
58
47
|
{
|
|
@@ -66,7 +55,7 @@ var TableRow = React.forwardRef(
|
|
|
66
55
|
)
|
|
67
56
|
);
|
|
68
57
|
TableRow.displayName = "DataTable.TableRow";
|
|
69
|
-
|
|
58
|
+
const TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
70
59
|
"th",
|
|
71
60
|
{
|
|
72
61
|
ref,
|
|
@@ -78,7 +67,7 @@ var TableHead = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
78
67
|
}
|
|
79
68
|
));
|
|
80
69
|
TableHead.displayName = "DataTable.TableHead";
|
|
81
|
-
|
|
70
|
+
const TableCell = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
82
71
|
"td",
|
|
83
72
|
{
|
|
84
73
|
ref,
|
|
@@ -211,7 +200,6 @@ function DataTable({
|
|
|
211
200
|
] })
|
|
212
201
|
] });
|
|
213
202
|
}
|
|
214
|
-
|
|
215
203
|
export {
|
|
216
204
|
DataTable
|
|
217
205
|
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
DataTable
|
|
4
|
-
} from "../../chunk-A7PS3EZO.js";
|
|
5
|
-
import "../../chunk-KA6RZ7VN.js";
|
|
6
|
-
import "../../chunk-VALIDQXU.js";
|
|
7
|
-
import "../../chunk-VMSWIC3O.js";
|
|
8
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { DataTable } from "./DataTable.js";
|
|
9
2
|
export {
|
|
10
3
|
DataTable
|
|
11
4
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ChevronProps, type Labels } from 'react-day-picker';
|
|
3
|
+
import { type Locale } from 'date-fns';
|
|
4
|
+
/**
|
|
5
|
+
* A date-fns Locale wins (date-fns 'PP'); else with a NexubProvider locale,
|
|
6
|
+
* Intl's medium date; otherwise date-fns 'PP' as before.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatDate(date: Date, locale: string | undefined, dateLocale?: Locale): string;
|
|
9
|
+
/** Nav chevrons point to the inline side they move toward: mirrored in RTL. */
|
|
10
|
+
declare function CalendarChevron({ orientation, ...rest }: ChevronProps): React.JSX.Element;
|
|
11
|
+
/** Internal: locale, dir, translated labels and chevrons shared by both pickers. */
|
|
12
|
+
export declare function useCalendarLocale(localeProp?: Locale): {
|
|
13
|
+
dayPickerProps: {
|
|
14
|
+
locale: Locale | undefined;
|
|
15
|
+
dir: import("@nexub/core").Direction;
|
|
16
|
+
labels: Partial<Labels>;
|
|
17
|
+
components: {
|
|
18
|
+
Chevron: typeof CalendarChevron;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
format: (date: Date) => string;
|
|
22
|
+
};
|
|
23
|
+
export interface DatePickerProps {
|
|
24
|
+
value?: Date;
|
|
25
|
+
onChange?: (date: Date | undefined) => void;
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
minDate?: Date;
|
|
29
|
+
maxDate?: Date;
|
|
30
|
+
className?: string;
|
|
31
|
+
/** Id for the trigger button, e.g. to pair with a `<label htmlFor>`. */
|
|
32
|
+
id?: string;
|
|
33
|
+
/** Field name for screen readers; the current value is appended. */
|
|
34
|
+
'aria-label'?: string;
|
|
35
|
+
/** date-fns Locale for the calendar and trigger text; wins over NexubProvider's `dateLocale`. */
|
|
36
|
+
locale?: Locale;
|
|
37
|
+
}
|
|
38
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
39
|
+
export {};
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
floatingSurface
|
|
4
|
-
} from "./chunk-5FWJXSXT.js";
|
|
5
|
-
import {
|
|
6
|
-
field,
|
|
7
|
-
fieldFocusVisible
|
|
8
|
-
} from "./chunk-VALIDQXU.js";
|
|
9
|
-
import {
|
|
10
|
-
useIntlLocale,
|
|
11
|
-
useLocale,
|
|
12
|
-
useNexubMessages
|
|
13
|
-
} from "./chunk-VMSWIC3O.js";
|
|
14
|
-
import {
|
|
15
|
-
cn
|
|
16
|
-
} from "./chunk-WRVFNYO3.js";
|
|
17
|
-
|
|
18
|
-
// src/components/DatePicker/DatePicker.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
3
|
import * as React from "react";
|
|
20
4
|
import * as RadixPopover from "@radix-ui/react-popover";
|
|
21
5
|
import { DayPicker } from "react-day-picker";
|
|
22
6
|
import { format } from "date-fns";
|
|
23
7
|
import { CalendarDays, ChevronLeft, ChevronRight } from "@nexub/icons";
|
|
24
|
-
import {
|
|
8
|
+
import { cn } from "../../utils/cn.js";
|
|
9
|
+
import { useIntlLocale, useLocale, useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
10
|
+
import { field, fieldFocusVisible } from "../../utils/control.js";
|
|
11
|
+
import { floatingSurface } from "../../utils/surface.js";
|
|
25
12
|
function formatDate(date, locale, dateLocale) {
|
|
26
13
|
if (dateLocale) return format(date, "PP", { locale: dateLocale });
|
|
27
14
|
return locale ? new Intl.DateTimeFormat(locale, { dateStyle: "medium" }).format(date) : format(date, "PP");
|
|
@@ -60,7 +47,7 @@ function useCalendarLocale(localeProp) {
|
|
|
60
47
|
format: (date) => formatDate(date, intlLocale, locale)
|
|
61
48
|
};
|
|
62
49
|
}
|
|
63
|
-
|
|
50
|
+
const calendarClassNames = {
|
|
64
51
|
months: "flex flex-col sm:flex-row gap-4",
|
|
65
52
|
month: "flex flex-col gap-4",
|
|
66
53
|
month_caption: "flex h-8 items-center justify-center",
|
|
@@ -86,7 +73,7 @@ var calendarClassNames = {
|
|
|
86
73
|
disabled: "",
|
|
87
74
|
hidden: "invisible"
|
|
88
75
|
};
|
|
89
|
-
|
|
76
|
+
const DatePicker = React.forwardRef(
|
|
90
77
|
function DatePicker2({
|
|
91
78
|
value,
|
|
92
79
|
onChange,
|
|
@@ -162,8 +149,8 @@ var DatePicker = React.forwardRef(
|
|
|
162
149
|
}
|
|
163
150
|
);
|
|
164
151
|
DatePicker.displayName = "DatePicker";
|
|
165
|
-
|
|
166
152
|
export {
|
|
167
|
-
|
|
168
|
-
|
|
153
|
+
DatePicker,
|
|
154
|
+
formatDate,
|
|
155
|
+
useCalendarLocale
|
|
169
156
|
};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import "../../chunk-52ZVJPF7.js";
|
|
3
|
-
import {
|
|
4
|
-
DatePicker
|
|
5
|
-
} from "../../chunk-OY5CWWIM.js";
|
|
6
|
-
import "../../chunk-5FWJXSXT.js";
|
|
7
|
-
import "../../chunk-VALIDQXU.js";
|
|
8
|
-
import "../../chunk-VMSWIC3O.js";
|
|
9
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { DatePicker } from "./DatePicker.js";
|
|
10
2
|
export {
|
|
11
3
|
DatePicker
|
|
12
4
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type DateRange } from 'react-day-picker';
|
|
3
|
+
import type { Locale } from 'date-fns';
|
|
4
|
+
export type { DateRange };
|
|
5
|
+
export interface DateRangePickerProps {
|
|
6
|
+
value?: DateRange;
|
|
7
|
+
onChange?: (range: DateRange | undefined) => void;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
minDate?: Date;
|
|
11
|
+
maxDate?: Date;
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Id for the trigger button, e.g. to pair with a `<label htmlFor>`. */
|
|
14
|
+
id?: string;
|
|
15
|
+
/** Field name for screen readers; the current value is appended. */
|
|
16
|
+
'aria-label'?: string;
|
|
17
|
+
/** date-fns Locale for the calendar and trigger text; wins over NexubProvider's `dateLocale`. */
|
|
18
|
+
locale?: Locale;
|
|
19
|
+
}
|
|
20
|
+
export declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
useCalendarLocale
|
|
4
|
-
} from "./chunk-OY5CWWIM.js";
|
|
5
|
-
import {
|
|
6
|
-
floatingSurface
|
|
7
|
-
} from "./chunk-5FWJXSXT.js";
|
|
8
|
-
import {
|
|
9
|
-
field,
|
|
10
|
-
fieldFocusVisible
|
|
11
|
-
} from "./chunk-VALIDQXU.js";
|
|
12
|
-
import {
|
|
13
|
-
useNexubMessages
|
|
14
|
-
} from "./chunk-VMSWIC3O.js";
|
|
15
|
-
import {
|
|
16
|
-
cn
|
|
17
|
-
} from "./chunk-WRVFNYO3.js";
|
|
18
|
-
|
|
19
|
-
// src/components/DateRangePicker/DateRangePicker.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
3
|
import * as React from "react";
|
|
21
4
|
import * as RadixPopover from "@radix-ui/react-popover";
|
|
22
5
|
import { DayPicker } from "react-day-picker";
|
|
23
6
|
import { CalendarDays } from "@nexub/icons";
|
|
24
|
-
import {
|
|
7
|
+
import { cn } from "../../utils/cn.js";
|
|
8
|
+
import { useNexubMessages } from "../NexubProvider/NexubProvider.js";
|
|
9
|
+
import { useCalendarLocale } from "../DatePicker/DatePicker.js";
|
|
10
|
+
import { field, fieldFocusVisible } from "../../utils/control.js";
|
|
11
|
+
import { floatingSurface } from "../../utils/surface.js";
|
|
25
12
|
function formatRange(range, placeholder, formatDate) {
|
|
26
13
|
if (!range) return placeholder;
|
|
27
14
|
if (range.from && range.to) {
|
|
@@ -30,7 +17,7 @@ function formatRange(range, placeholder, formatDate) {
|
|
|
30
17
|
if (range.from) return `${formatDate(range.from)} \u2013 \u2026`;
|
|
31
18
|
return placeholder;
|
|
32
19
|
}
|
|
33
|
-
|
|
20
|
+
const calendarClassNames = {
|
|
34
21
|
months: "flex flex-col sm:flex-row gap-4",
|
|
35
22
|
month: "flex flex-col gap-4",
|
|
36
23
|
month_caption: "flex h-8 items-center justify-center",
|
|
@@ -64,7 +51,7 @@ var calendarClassNames = {
|
|
|
64
51
|
disabled: "",
|
|
65
52
|
hidden: "invisible"
|
|
66
53
|
};
|
|
67
|
-
|
|
54
|
+
const DateRangePicker = React.forwardRef(function DateRangePicker2({
|
|
68
55
|
value,
|
|
69
56
|
onChange,
|
|
70
57
|
placeholder: placeholderProp,
|
|
@@ -137,7 +124,6 @@ var DateRangePicker = React.forwardRef(function DateRangePicker2({
|
|
|
137
124
|
] });
|
|
138
125
|
});
|
|
139
126
|
DateRangePicker.displayName = "DateRangePicker";
|
|
140
|
-
|
|
141
127
|
export {
|
|
142
128
|
DateRangePicker
|
|
143
129
|
};
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
DateRangePicker
|
|
4
|
-
} from "../../chunk-YYAXXJH3.js";
|
|
5
|
-
import "../../chunk-OY5CWWIM.js";
|
|
6
|
-
import "../../chunk-5FWJXSXT.js";
|
|
7
|
-
import "../../chunk-VALIDQXU.js";
|
|
8
|
-
import "../../chunk-VMSWIC3O.js";
|
|
9
|
-
import "../../chunk-WRVFNYO3.js";
|
|
1
|
+
import { DateRangePicker } from "./DateRangePicker.js";
|
|
10
2
|
export {
|
|
11
3
|
DateRangePicker
|
|
12
4
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import type { Size } from '../../utils/control.js';
|
|
4
|
+
import { type SurfaceValue } from '../../utils/glass.js';
|
|
5
|
+
interface ContentProps extends RadixDialog.DialogContentProps {
|
|
6
|
+
size?: Size | 'xl' | 'full';
|
|
7
|
+
surface?: SurfaceValue;
|
|
8
|
+
}
|
|
9
|
+
export declare const Dialog: {
|
|
10
|
+
Root: React.FC<RadixDialog.DialogProps>;
|
|
11
|
+
Trigger: React.ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
Portal: React.FC<RadixDialog.DialogPortalProps>;
|
|
13
|
+
Overlay: React.ForwardRefExoticComponent<RadixDialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Close: React.ForwardRefExoticComponent<RadixDialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
Title: React.ForwardRefExoticComponent<RadixDialog.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
Description: React.ForwardRefExoticComponent<RadixDialog.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
overlaySurface,
|
|
4
|
-
scrim
|
|
5
|
-
} from "./chunk-5FWJXSXT.js";
|
|
6
|
-
import {
|
|
7
|
-
glassSurfaceClass
|
|
8
|
-
} from "./chunk-DEIBF3P7.js";
|
|
9
|
-
import {
|
|
10
|
-
cn
|
|
11
|
-
} from "./chunk-WRVFNYO3.js";
|
|
12
|
-
|
|
13
|
-
// src/components/Dialog/Dialog.tsx
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
3
|
import * as React from "react";
|
|
15
4
|
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { overlaySurface, scrim } from "../../utils/surface.js";
|
|
7
|
+
import { glassSurfaceClass } from "../../utils/glass.js";
|
|
8
|
+
const Root = RadixDialog.Root;
|
|
9
|
+
const Trigger = RadixDialog.Trigger;
|
|
10
|
+
const Portal = RadixDialog.Portal;
|
|
11
|
+
const Close = RadixDialog.Close;
|
|
12
|
+
const Overlay = React.forwardRef(
|
|
22
13
|
function DialogOverlay({ className, ...props }, ref) {
|
|
23
14
|
return /* @__PURE__ */ jsx(
|
|
24
15
|
RadixDialog.Overlay,
|
|
@@ -34,8 +25,8 @@ var Overlay2 = React.forwardRef(
|
|
|
34
25
|
);
|
|
35
26
|
}
|
|
36
27
|
);
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
Overlay.displayName = "Dialog.Overlay";
|
|
29
|
+
const Content = React.forwardRef(
|
|
39
30
|
function DialogContent({ className, size = "md", surface = "solid", children, ...props }, ref) {
|
|
40
31
|
const sizeMap = {
|
|
41
32
|
sm: "max-w-sm",
|
|
@@ -65,8 +56,8 @@ var Content2 = React.forwardRef(
|
|
|
65
56
|
);
|
|
66
57
|
}
|
|
67
58
|
);
|
|
68
|
-
|
|
69
|
-
|
|
59
|
+
Content.displayName = "Dialog.Content";
|
|
60
|
+
const Title = React.forwardRef(
|
|
70
61
|
function DialogTitle({ className, ...props }, ref) {
|
|
71
62
|
return /* @__PURE__ */ jsx(
|
|
72
63
|
RadixDialog.Title,
|
|
@@ -78,8 +69,8 @@ var Title2 = React.forwardRef(
|
|
|
78
69
|
);
|
|
79
70
|
}
|
|
80
71
|
);
|
|
81
|
-
|
|
82
|
-
|
|
72
|
+
Title.displayName = "Dialog.Title";
|
|
73
|
+
const Description = React.forwardRef(
|
|
83
74
|
function DialogDescription({ className, ...props }, ref) {
|
|
84
75
|
return /* @__PURE__ */ jsx(
|
|
85
76
|
RadixDialog.Description,
|
|
@@ -91,32 +82,31 @@ var Description2 = React.forwardRef(
|
|
|
91
82
|
);
|
|
92
83
|
}
|
|
93
84
|
);
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
Description.displayName = "Dialog.Description";
|
|
86
|
+
const Header = React.forwardRef(
|
|
96
87
|
function DialogHeader({ className, ...props }, ref) {
|
|
97
88
|
return /* @__PURE__ */ jsx("div", { ref, className: cn("mb-4 flex flex-col gap-1", className), ...props });
|
|
98
89
|
}
|
|
99
90
|
);
|
|
100
91
|
Header.displayName = "Dialog.Header";
|
|
101
|
-
|
|
92
|
+
const Footer = React.forwardRef(
|
|
102
93
|
function DialogFooter({ className, ...props }, ref) {
|
|
103
94
|
return /* @__PURE__ */ jsx("div", { ref, className: cn("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
|
|
104
95
|
}
|
|
105
96
|
);
|
|
106
97
|
Footer.displayName = "Dialog.Footer";
|
|
107
|
-
|
|
108
|
-
Root
|
|
109
|
-
Trigger
|
|
110
|
-
Portal
|
|
111
|
-
Overlay
|
|
112
|
-
Content
|
|
113
|
-
Close
|
|
114
|
-
Title
|
|
115
|
-
Description
|
|
98
|
+
const Dialog = {
|
|
99
|
+
Root,
|
|
100
|
+
Trigger,
|
|
101
|
+
Portal,
|
|
102
|
+
Overlay,
|
|
103
|
+
Content,
|
|
104
|
+
Close,
|
|
105
|
+
Title,
|
|
106
|
+
Description,
|
|
116
107
|
Header,
|
|
117
108
|
Footer
|
|
118
109
|
};
|
|
119
|
-
|
|
120
110
|
export {
|
|
121
111
|
Dialog
|
|
122
112
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dialog } from './Dialog.js';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
import { type SurfaceValue } from '../../utils/glass.js';
|
|
4
|
+
export interface DrawerRootProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
/** Opened by default, skips the initial enter animation. Still reacts to `open` changes. */
|
|
8
|
+
defaultOpen?: boolean;
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
10
|
+
/** Gets triggered after the open or close animation ends. */
|
|
11
|
+
onAnimationEnd?: (open: boolean) => void;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
/** Edge the drawer slides in from. Match it to `Content`'s `side`. @default 'bottom' */
|
|
14
|
+
direction?: 'top' | 'bottom' | 'left' | 'right';
|
|
15
|
+
/** When `false`, the page behind stays interactive and nothing is locked or trapped. @default true */
|
|
16
|
+
modal?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* How page scroll is locked while the drawer is open (modal only).
|
|
19
|
+
* - `'style'` (default): Radix's scroll lock. It injects a `<style>` tag, which a strict
|
|
20
|
+
* `style-src` CSP blocks.
|
|
21
|
+
* - `'class'`: adds the `nexub-scroll-lock` class from `@nexub/themes/base` to `<html>`.
|
|
22
|
+
* Injects nothing, so it works under `style-src 'self'`. Focus trap, Escape and
|
|
23
|
+
* outside-click dismissal are unchanged.
|
|
24
|
+
* @default 'style'
|
|
25
|
+
*/
|
|
26
|
+
scrollLock?: 'style' | 'class';
|
|
27
|
+
/** When `false`, dragging, outside clicks and Escape don't close the drawer. @default true */
|
|
28
|
+
dismissible?: boolean;
|
|
29
|
+
/** Only the `Drawer.Handle` starts a drag. @default false */
|
|
30
|
+
handleOnly?: boolean;
|
|
31
|
+
/** Fraction (0–1) of the drawer that must be dragged away to close it. @default 0.25 */
|
|
32
|
+
closeThreshold?: number;
|
|
33
|
+
/** Snap points, as fractions of the screen (e.g. `[0.4, 1]`) or px strings. */
|
|
34
|
+
snapPoints?: (number | string)[];
|
|
35
|
+
activeSnapPoint?: number | string | null;
|
|
36
|
+
setActiveSnapPoint?: (snapPoint: number | string | null) => void;
|
|
37
|
+
/** Index of the snap point from which the overlay fades. Defaults to the last one. */
|
|
38
|
+
fadeFromIndex?: number;
|
|
39
|
+
/** Don't skip snap points on fast swipes. @default false */
|
|
40
|
+
snapToSequentialPoint?: boolean;
|
|
41
|
+
/** ms during which the drawer can't be dragged after its content scrolls. @default 500 */
|
|
42
|
+
scrollLockTimeout?: number;
|
|
43
|
+
onDrag?: (event: React.PointerEvent<HTMLDivElement>, percentageDragged: number) => void;
|
|
44
|
+
onRelease?: (event: React.PointerEvent<HTMLDivElement>, open: boolean) => void;
|
|
45
|
+
shouldScaleBackground?: boolean;
|
|
46
|
+
/** @default true */
|
|
47
|
+
setBackgroundColorOnScale?: boolean;
|
|
48
|
+
/** When `true`, vaul sets no styles on `body`. */
|
|
49
|
+
noBodyStyles?: boolean;
|
|
50
|
+
/** Only resize (don't move) the drawer when the on-screen keyboard opens. */
|
|
51
|
+
fixed?: boolean;
|
|
52
|
+
nested?: boolean;
|
|
53
|
+
disablePreventScroll?: boolean;
|
|
54
|
+
preventScrollRestoration?: boolean;
|
|
55
|
+
/** Reposition inputs instead of scrolling them into view when the keyboard opens. */
|
|
56
|
+
repositionInputs?: boolean;
|
|
57
|
+
container?: HTMLElement | null;
|
|
58
|
+
autoFocus?: boolean;
|
|
59
|
+
}
|
|
60
|
+
declare function Root({ scrollLock, onOpenChange, ...props }: DrawerRootProps): React.JSX.Element;
|
|
61
|
+
declare namespace Root {
|
|
62
|
+
var displayName: string;
|
|
63
|
+
}
|
|
64
|
+
export declare const Drawer: {
|
|
65
|
+
Root: typeof Root;
|
|
66
|
+
Trigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
67
|
+
Portal: (props: DialogPrimitive.DialogPortalProps) => React.JSX.Element;
|
|
68
|
+
Overlay: React.ForwardRefExoticComponent<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
Content: React.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & {
|
|
70
|
+
side?: "left" | "right" | "top" | "bottom";
|
|
71
|
+
surface?: SurfaceValue;
|
|
72
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
Close: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
74
|
+
Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
75
|
+
Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
76
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
};
|
|
79
|
+
export declare const Sheet: {
|
|
80
|
+
Root: typeof Root;
|
|
81
|
+
Trigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
82
|
+
Portal: (props: DialogPrimitive.DialogPortalProps) => React.JSX.Element;
|
|
83
|
+
Overlay: React.ForwardRefExoticComponent<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
+
Content: React.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & {
|
|
85
|
+
side?: "left" | "right" | "top" | "bottom";
|
|
86
|
+
surface?: SurfaceValue;
|
|
87
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
88
|
+
Close: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
89
|
+
Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
90
|
+
Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
91
|
+
Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
92
|
+
Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
93
|
+
};
|
|
94
|
+
export {};
|