@regardio/react 0.3.2
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/LICENSE +9 -0
- package/README.md +133 -0
- package/dist/components/background-slideshow.d.ts +22 -0
- package/dist/components/background-slideshow.d.ts.map +1 -0
- package/dist/components/background-slideshow.js +76 -0
- package/dist/components/blurry-gradient.d.ts +9 -0
- package/dist/components/blurry-gradient.d.ts.map +1 -0
- package/dist/components/blurry-gradient.js +6 -0
- package/dist/components/box.d.ts +17 -0
- package/dist/components/box.d.ts.map +1 -0
- package/dist/components/box.js +25 -0
- package/dist/components/carousel.d.ts +26 -0
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +87 -0
- package/dist/components/countdown.d.ts +2 -0
- package/dist/components/countdown.d.ts.map +1 -0
- package/dist/components/countdown.js +48 -0
- package/dist/components/definition-list.d.ts +40 -0
- package/dist/components/definition-list.d.ts.map +1 -0
- package/dist/components/definition-list.js +57 -0
- package/dist/components/generic-error.d.ts +23 -0
- package/dist/components/generic-error.d.ts.map +1 -0
- package/dist/components/generic-error.js +39 -0
- package/dist/components/heading.d.ts +24 -0
- package/dist/components/heading.d.ts.map +1 -0
- package/dist/components/heading.js +29 -0
- package/dist/components/highlight.d.ts +16 -0
- package/dist/components/highlight.d.ts.map +1 -0
- package/dist/components/highlight.js +19 -0
- package/dist/components/icon-button.d.ts +6 -0
- package/dist/components/icon-button.d.ts.map +1 -0
- package/dist/components/icon-button.js +6 -0
- package/dist/components/if.d.ts +8 -0
- package/dist/components/if.d.ts.map +1 -0
- package/dist/components/if.js +16 -0
- package/dist/components/iframe.d.ts +8 -0
- package/dist/components/iframe.d.ts.map +1 -0
- package/dist/components/iframe.js +3 -0
- package/dist/components/item.d.ts +67 -0
- package/dist/components/item.d.ts.map +1 -0
- package/dist/components/item.js +309 -0
- package/dist/components/leaflet-map.d.ts +33 -0
- package/dist/components/leaflet-map.d.ts.map +1 -0
- package/dist/components/leaflet-map.js +195 -0
- package/dist/components/link.d.ts +41 -0
- package/dist/components/link.d.ts.map +1 -0
- package/dist/components/link.js +111 -0
- package/dist/components/link.test.d.ts +2 -0
- package/dist/components/link.test.d.ts.map +1 -0
- package/dist/components/link.test.js +204 -0
- package/dist/components/list-item.d.ts +16 -0
- package/dist/components/list-item.d.ts.map +1 -0
- package/dist/components/list-item.js +19 -0
- package/dist/components/maptiler-map.d.ts +26 -0
- package/dist/components/maptiler-map.d.ts.map +1 -0
- package/dist/components/maptiler-map.js +116 -0
- package/dist/components/markdown-container.d.ts +20 -0
- package/dist/components/markdown-container.d.ts.map +1 -0
- package/dist/components/markdown-container.js +93 -0
- package/dist/components/password-input.d.ts +9 -0
- package/dist/components/password-input.d.ts.map +1 -0
- package/dist/components/password-input.js +13 -0
- package/dist/components/picture.d.ts +26 -0
- package/dist/components/picture.d.ts.map +1 -0
- package/dist/components/picture.js +36 -0
- package/dist/components/protected-email.d.ts +9 -0
- package/dist/components/protected-email.d.ts.map +1 -0
- package/dist/components/protected-email.js +16 -0
- package/dist/components/text.d.ts +17 -0
- package/dist/components/text.d.ts.map +1 -0
- package/dist/components/text.js +27 -0
- package/dist/components/unordered-list.d.ts +16 -0
- package/dist/components/unordered-list.d.ts.map +1 -0
- package/dist/components/unordered-list.js +21 -0
- package/dist/hooks/use-current-route-data.d.ts +2 -0
- package/dist/hooks/use-current-route-data.d.ts.map +1 -0
- package/dist/hooks/use-current-route-data.js +12 -0
- package/dist/hooks/use-focus-search.d.ts +3 -0
- package/dist/hooks/use-focus-search.d.ts.map +1 -0
- package/dist/hooks/use-focus-search.js +15 -0
- package/dist/hooks/use-matches-data.d.ts +2 -0
- package/dist/hooks/use-matches-data.d.ts.map +1 -0
- package/dist/hooks/use-matches-data.js +11 -0
- package/dist/hooks/use-media-query.d.ts +2 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +16 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/hooks/use-nonce.d.ts +5 -0
- package/dist/hooks/use-nonce.d.ts.map +1 -0
- package/dist/hooks/use-nonce.js +9 -0
- package/dist/hooks/use-nonce.test.d.ts +2 -0
- package/dist/hooks/use-nonce.test.d.ts.map +1 -0
- package/dist/hooks/use-nonce.test.js +27 -0
- package/dist/hooks/use-orientation.d.ts +3 -0
- package/dist/hooks/use-orientation.d.ts.map +1 -0
- package/dist/hooks/use-orientation.js +25 -0
- package/dist/hooks/use-user.d.ts +15 -0
- package/dist/hooks/use-user.d.ts.map +1 -0
- package/dist/hooks/use-user.js +17 -0
- package/dist/shadcn/accordion.d.ts +25 -0
- package/dist/shadcn/accordion.d.ts.map +1 -0
- package/dist/shadcn/accordion.js +45 -0
- package/dist/shadcn/alert-dialog.d.ts +73 -0
- package/dist/shadcn/alert-dialog.d.ts.map +1 -0
- package/dist/shadcn/alert-dialog.js +93 -0
- package/dist/shadcn/alert.d.ts +34 -0
- package/dist/shadcn/alert.d.ts.map +1 -0
- package/dist/shadcn/alert.js +42 -0
- package/dist/shadcn/aspect-ratio.d.ts +6 -0
- package/dist/shadcn/aspect-ratio.d.ts.map +1 -0
- package/dist/shadcn/aspect-ratio.js +7 -0
- package/dist/shadcn/avatar.d.ts +16 -0
- package/dist/shadcn/avatar.d.ts.map +1 -0
- package/dist/shadcn/avatar.js +27 -0
- package/dist/shadcn/badge.d.ts +29 -0
- package/dist/shadcn/badge.d.ts.map +1 -0
- package/dist/shadcn/badge.js +29 -0
- package/dist/shadcn/breadcrumb.d.ts +42 -0
- package/dist/shadcn/breadcrumb.d.ts.map +1 -0
- package/dist/shadcn/breadcrumb.js +74 -0
- package/dist/shadcn/button.d.ts +38 -0
- package/dist/shadcn/button.d.ts.map +1 -0
- package/dist/shadcn/button.js +38 -0
- package/dist/shadcn/calendar.d.ts +23 -0
- package/dist/shadcn/calendar.d.ts.map +1 -0
- package/dist/shadcn/calendar.js +163 -0
- package/dist/shadcn/card.d.ts +31 -0
- package/dist/shadcn/card.d.ts.map +1 -0
- package/dist/shadcn/card.js +55 -0
- package/dist/shadcn/carousel.d.ts +51 -0
- package/dist/shadcn/carousel.d.ts.map +1 -0
- package/dist/shadcn/carousel.js +161 -0
- package/dist/shadcn/chart.d.ts +103 -0
- package/dist/shadcn/chart.d.ts.map +1 -0
- package/dist/shadcn/chart.js +248 -0
- package/dist/shadcn/checkbox.d.ts +8 -0
- package/dist/shadcn/checkbox.d.ts.map +1 -0
- package/dist/shadcn/checkbox.js +22 -0
- package/dist/shadcn/collapsible.d.ts +16 -0
- package/dist/shadcn/collapsible.d.ts.map +1 -0
- package/dist/shadcn/collapsible.js +19 -0
- package/dist/shadcn/command.d.ts +61 -0
- package/dist/shadcn/command.d.ts.map +1 -0
- package/dist/shadcn/command.js +123 -0
- package/dist/shadcn/context-menu.d.ts +107 -0
- package/dist/shadcn/context-menu.d.ts.map +1 -0
- package/dist/shadcn/context-menu.js +151 -0
- package/dist/shadcn/dialog.d.ts +57 -0
- package/dist/shadcn/dialog.d.ts.map +1 -0
- package/dist/shadcn/dialog.js +96 -0
- package/dist/shadcn/drawer.d.ts +54 -0
- package/dist/shadcn/drawer.d.ts.map +1 -0
- package/dist/shadcn/drawer.js +96 -0
- package/dist/shadcn/dropdown-menu.d.ts +110 -0
- package/dist/shadcn/dropdown-menu.d.ts.map +1 -0
- package/dist/shadcn/dropdown-menu.js +152 -0
- package/dist/shadcn/form.d.ts +59 -0
- package/dist/shadcn/form.d.ts.map +1 -0
- package/dist/shadcn/form.js +99 -0
- package/dist/shadcn/hover-card.d.ts +20 -0
- package/dist/shadcn/hover-card.d.ts.map +1 -0
- package/dist/shadcn/hover-card.js +26 -0
- package/dist/shadcn/input-otp.d.ts +25 -0
- package/dist/shadcn/input-otp.d.ts.map +1 -0
- package/dist/shadcn/input-otp.js +54 -0
- package/dist/shadcn/input.d.ts +14 -0
- package/dist/shadcn/input.d.ts.map +1 -0
- package/dist/shadcn/input.js +48 -0
- package/dist/shadcn/label.d.ts +8 -0
- package/dist/shadcn/label.d.ts.map +1 -0
- package/dist/shadcn/label.js +16 -0
- package/dist/shadcn/menubar.d.ts +108 -0
- package/dist/shadcn/menubar.d.ts.map +1 -0
- package/dist/shadcn/menubar.js +174 -0
- package/dist/shadcn/navigation-menu.d.ts +79 -0
- package/dist/shadcn/navigation-menu.d.ts.map +1 -0
- package/dist/shadcn/navigation-menu.js +108 -0
- package/dist/shadcn/pagination.d.ts +45 -0
- package/dist/shadcn/pagination.d.ts.map +1 -0
- package/dist/shadcn/pagination.js +83 -0
- package/dist/shadcn/popover.d.ts +19 -0
- package/dist/shadcn/popover.d.ts.map +1 -0
- package/dist/shadcn/popover.js +29 -0
- package/dist/shadcn/progress.d.ts +9 -0
- package/dist/shadcn/progress.d.ts.map +1 -0
- package/dist/shadcn/progress.js +17 -0
- package/dist/shadcn/radio-group.d.ts +12 -0
- package/dist/shadcn/radio-group.d.ts.map +1 -0
- package/dist/shadcn/radio-group.js +32 -0
- package/dist/shadcn/resizable.d.ts +20 -0
- package/dist/shadcn/resizable.d.ts.map +1 -0
- package/dist/shadcn/resizable.js +32 -0
- package/dist/shadcn/scroll-area.d.ts +16 -0
- package/dist/shadcn/scroll-area.d.ts.map +1 -0
- package/dist/shadcn/scroll-area.js +40 -0
- package/dist/shadcn/select.d.ts +63 -0
- package/dist/shadcn/select.d.ts.map +1 -0
- package/dist/shadcn/select.js +120 -0
- package/dist/shadcn/separator.d.ts +10 -0
- package/dist/shadcn/separator.d.ts.map +1 -0
- package/dist/shadcn/separator.js +18 -0
- package/dist/shadcn/sheet.d.ts +48 -0
- package/dist/shadcn/sheet.d.ts.map +1 -0
- package/dist/shadcn/sheet.js +99 -0
- package/dist/shadcn/sidebar.d.ts +200 -0
- package/dist/shadcn/sidebar.d.ts.map +1 -0
- package/dist/shadcn/sidebar.js +528 -0
- package/dist/shadcn/skeleton.d.ts +6 -0
- package/dist/shadcn/skeleton.d.ts.map +1 -0
- package/dist/shadcn/skeleton.js +11 -0
- package/dist/shadcn/slider.d.ts +12 -0
- package/dist/shadcn/slider.d.ts.map +1 -0
- package/dist/shadcn/slider.js +50 -0
- package/dist/shadcn/sonner.d.ts +7 -0
- package/dist/shadcn/sonner.d.ts.map +1 -0
- package/dist/shadcn/sonner.js +20 -0
- package/dist/shadcn/switch.d.ts +8 -0
- package/dist/shadcn/switch.d.ts.map +1 -0
- package/dist/shadcn/switch.js +22 -0
- package/dist/shadcn/table.d.ts +35 -0
- package/dist/shadcn/table.d.ts.map +1 -0
- package/dist/shadcn/table.js +73 -0
- package/dist/shadcn/tabs.d.ts +20 -0
- package/dist/shadcn/tabs.d.ts.map +1 -0
- package/dist/shadcn/tabs.js +40 -0
- package/dist/shadcn/textarea.d.ts +7 -0
- package/dist/shadcn/textarea.d.ts.map +1 -0
- package/dist/shadcn/textarea.js +14 -0
- package/dist/shadcn/toggle-group.d.ts +22 -0
- package/dist/shadcn/toggle-group.d.ts.map +1 -0
- package/dist/shadcn/toggle-group.js +43 -0
- package/dist/shadcn/toggle.d.ts +29 -0
- package/dist/shadcn/toggle.d.ts.map +1 -0
- package/dist/shadcn/toggle.js +31 -0
- package/dist/shadcn/tooltip.d.ts +20 -0
- package/dist/shadcn/tooltip.d.ts.map +1 -0
- package/dist/shadcn/tooltip.js +40 -0
- package/dist/stories/BackgroundSlideshow.stories.d.ts +9 -0
- package/dist/stories/BackgroundSlideshow.stories.d.ts.map +1 -0
- package/dist/stories/BackgroundSlideshow.stories.js +60 -0
- package/dist/stories/BlurryGradient.stories.d.ts +11 -0
- package/dist/stories/BlurryGradient.stories.d.ts.map +1 -0
- package/dist/stories/BlurryGradient.stories.js +53 -0
- package/dist/stories/Box.stories.d.ts +13 -0
- package/dist/stories/Box.stories.d.ts.map +1 -0
- package/dist/stories/Box.stories.js +50 -0
- package/dist/stories/Carousel.stories.d.ts +9 -0
- package/dist/stories/Carousel.stories.d.ts.map +1 -0
- package/dist/stories/Carousel.stories.js +30 -0
- package/dist/stories/Countdown.stories.d.ts +7 -0
- package/dist/stories/Countdown.stories.d.ts.map +1 -0
- package/dist/stories/Countdown.stories.js +11 -0
- package/dist/stories/DefinitionList.stories.d.ts +9 -0
- package/dist/stories/DefinitionList.stories.d.ts.map +1 -0
- package/dist/stories/DefinitionList.stories.js +20 -0
- package/dist/stories/GenericError.stories.d.ts +9 -0
- package/dist/stories/GenericError.stories.d.ts.map +1 -0
- package/dist/stories/GenericError.stories.js +39 -0
- package/dist/stories/Heading.stories.d.ts +15 -0
- package/dist/stories/Heading.stories.d.ts.map +1 -0
- package/dist/stories/Heading.stories.js +61 -0
- package/dist/stories/Highlight.stories.d.ts +8 -0
- package/dist/stories/Highlight.stories.d.ts.map +1 -0
- package/dist/stories/Highlight.stories.js +19 -0
- package/dist/stories/IconButton.stories.d.ts +10 -0
- package/dist/stories/IconButton.stories.d.ts.map +1 -0
- package/dist/stories/IconButton.stories.js +32 -0
- package/dist/stories/If.stories.d.ts +13 -0
- package/dist/stories/If.stories.d.ts.map +1 -0
- package/dist/stories/If.stories.js +54 -0
- package/dist/stories/Iframe.stories.d.ts +8 -0
- package/dist/stories/Iframe.stories.d.ts.map +1 -0
- package/dist/stories/Iframe.stories.js +23 -0
- package/dist/stories/Item.stories.d.ts +10 -0
- package/dist/stories/Item.stories.d.ts.map +1 -0
- package/dist/stories/Item.stories.js +32 -0
- package/dist/stories/Link.stories.d.ts +10 -0
- package/dist/stories/Link.stories.d.ts.map +1 -0
- package/dist/stories/Link.stories.js +36 -0
- package/dist/stories/ListItem.stories.d.ts +9 -0
- package/dist/stories/ListItem.stories.d.ts.map +1 -0
- package/dist/stories/ListItem.stories.js +25 -0
- package/dist/stories/MarkdownContainer.stories.d.ts +11 -0
- package/dist/stories/MarkdownContainer.stories.d.ts.map +1 -0
- package/dist/stories/MarkdownContainer.stories.js +66 -0
- package/dist/stories/PasswordInput.stories.d.ts +9 -0
- package/dist/stories/PasswordInput.stories.d.ts.map +1 -0
- package/dist/stories/PasswordInput.stories.js +27 -0
- package/dist/stories/Picture.stories.d.ts +10 -0
- package/dist/stories/Picture.stories.d.ts.map +1 -0
- package/dist/stories/Picture.stories.js +46 -0
- package/dist/stories/ProtectedEmail.stories.d.ts +10 -0
- package/dist/stories/ProtectedEmail.stories.d.ts.map +1 -0
- package/dist/stories/ProtectedEmail.stories.js +34 -0
- package/dist/stories/Text.stories.d.ts +10 -0
- package/dist/stories/Text.stories.d.ts.map +1 -0
- package/dist/stories/Text.stories.js +31 -0
- package/dist/stories/UnorderedList.stories.d.ts +10 -0
- package/dist/stories/UnorderedList.stories.d.ts.map +1 -0
- package/dist/stories/UnorderedList.stories.js +24 -0
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/test-setup.js +1 -0
- package/dist/utils/author.d.ts +9 -0
- package/dist/utils/author.d.ts.map +1 -0
- package/dist/utils/author.js +37 -0
- package/dist/utils/author.test.d.ts +2 -0
- package/dist/utils/author.test.d.ts.map +1 -0
- package/dist/utils/author.test.js +46 -0
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +10 -0
- package/dist/utils/cn.test.d.ts +2 -0
- package/dist/utils/cn.test.d.ts.map +1 -0
- package/dist/utils/cn.test.js +33 -0
- package/dist/utils/is-route-active.d.ts +3 -0
- package/dist/utils/is-route-active.d.ts.map +1 -0
- package/dist/utils/is-route-active.js +54 -0
- package/dist/utils/is-route-active.test.d.ts +2 -0
- package/dist/utils/is-route-active.test.d.ts.map +1 -0
- package/dist/utils/is-route-active.test.js +61 -0
- package/dist/utils/locale.d.ts +22 -0
- package/dist/utils/locale.d.ts.map +1 -0
- package/dist/utils/locale.js +25 -0
- package/dist/utils/locale.test.d.ts +2 -0
- package/dist/utils/locale.test.d.ts.map +1 -0
- package/dist/utils/locale.test.js +99 -0
- package/dist/utils/text.d.ts +7 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/text.js +102 -0
- package/dist/utils/text.test.d.ts +2 -0
- package/dist/utils/text.test.d.ts.map +1 -0
- package/dist/utils/text.test.js +122 -0
- package/package.json +117 -0
- package/src/components/background-slideshow.tsx +172 -0
- package/src/components/blurry-gradient.tsx +97 -0
- package/src/components/box.tsx +45 -0
- package/src/components/carousel.tsx +197 -0
- package/src/components/countdown.tsx +82 -0
- package/src/components/definition-list.tsx +90 -0
- package/src/components/generic-error.tsx +104 -0
- package/src/components/heading.tsx +60 -0
- package/src/components/highlight.tsx +53 -0
- package/src/components/icon-button.tsx +20 -0
- package/src/components/if.tsx +29 -0
- package/src/components/iframe.tsx +19 -0
- package/src/components/item.tsx +340 -0
- package/src/components/leaflet-map.tsx +294 -0
- package/src/components/link.test.tsx +387 -0
- package/src/components/link.tsx +206 -0
- package/src/components/list-item.tsx +30 -0
- package/src/components/maptiler-map.tsx +181 -0
- package/src/components/markdown-container.tsx +153 -0
- package/src/components/password-input.tsx +49 -0
- package/src/components/picture.tsx +107 -0
- package/src/components/protected-email.tsx +49 -0
- package/src/components/text.tsx +38 -0
- package/src/components/unordered-list.tsx +32 -0
- package/src/hooks/use-current-route-data.ts +18 -0
- package/src/hooks/use-focus-search.ts +20 -0
- package/src/hooks/use-matches-data.ts +19 -0
- package/src/hooks/use-media-query.ts +33 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/hooks/use-nonce.test.ts +35 -0
- package/src/hooks/use-nonce.ts +20 -0
- package/src/hooks/use-orientation.ts +48 -0
- package/src/hooks/use-user.tsx +72 -0
- package/src/stories/BackgroundSlideshow.stories.tsx +68 -0
- package/src/stories/BlurryGradient.stories.tsx +62 -0
- package/src/stories/Box.stories.tsx +83 -0
- package/src/stories/Carousel.stories.tsx +95 -0
- package/src/stories/Countdown.stories.tsx +16 -0
- package/src/stories/DefinitionList.stories.tsx +51 -0
- package/src/stories/GenericError.stories.tsx +58 -0
- package/src/stories/Heading.stories.tsx +82 -0
- package/src/stories/Highlight.stories.tsx +28 -0
- package/src/stories/IconButton.stories.tsx +90 -0
- package/src/stories/If.stories.tsx +72 -0
- package/src/stories/Iframe.stories.tsx +29 -0
- package/src/stories/Item.stories.tsx +79 -0
- package/src/stories/Link.stories.tsx +58 -0
- package/src/stories/ListItem.stories.tsx +37 -0
- package/src/stories/MarkdownContainer.stories.tsx +76 -0
- package/src/stories/PasswordInput.stories.tsx +34 -0
- package/src/stories/Picture.stories.tsx +54 -0
- package/src/stories/ProtectedEmail.stories.tsx +57 -0
- package/src/stories/Text.stories.tsx +44 -0
- package/src/stories/UnorderedList.stories.tsx +73 -0
- package/src/styles/storybook.css +1 -0
- package/src/styles/tailwind.css +7 -0
- package/src/test-setup.ts +1 -0
- package/src/utils/author.test.ts +54 -0
- package/src/utils/author.tsx +73 -0
- package/src/utils/cn.test.ts +48 -0
- package/src/utils/cn.ts +14 -0
- package/src/utils/is-route-active.test.ts +80 -0
- package/src/utils/is-route-active.ts +100 -0
- package/src/utils/locale.test.ts +148 -0
- package/src/utils/locale.ts +127 -0
- package/src/utils/text.test.ts +152 -0
- package/src/utils/text.tsx +209 -0
- package/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
2
|
+
import { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react';
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from 'react/jsx-runtime';
|
|
4
|
+
import { cn } from '../utils/cn';
|
|
5
|
+
|
|
6
|
+
function Menubar({ className, ...props }) {
|
|
7
|
+
return _jsx(MenubarPrimitive.Root, {
|
|
8
|
+
className: cn(
|
|
9
|
+
'bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs',
|
|
10
|
+
className,
|
|
11
|
+
),
|
|
12
|
+
'data-slot': 'menubar',
|
|
13
|
+
...props,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function MenubarMenu({ ...props }) {
|
|
17
|
+
return _jsx(MenubarPrimitive.Menu, { 'data-slot': 'menubar-menu', ...props });
|
|
18
|
+
}
|
|
19
|
+
function MenubarGroup({ ...props }) {
|
|
20
|
+
return _jsx(MenubarPrimitive.Group, { 'data-slot': 'menubar-group', ...props });
|
|
21
|
+
}
|
|
22
|
+
function MenubarPortal({ ...props }) {
|
|
23
|
+
return _jsx(MenubarPrimitive.Portal, { 'data-slot': 'menubar-portal', ...props });
|
|
24
|
+
}
|
|
25
|
+
function MenubarRadioGroup({ ...props }) {
|
|
26
|
+
return _jsx(MenubarPrimitive.RadioGroup, { 'data-slot': 'menubar-radio-group', ...props });
|
|
27
|
+
}
|
|
28
|
+
function MenubarTrigger({ className, ...props }) {
|
|
29
|
+
return _jsx(MenubarPrimitive.Trigger, {
|
|
30
|
+
className: cn(
|
|
31
|
+
'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none',
|
|
32
|
+
className,
|
|
33
|
+
),
|
|
34
|
+
'data-slot': 'menubar-trigger',
|
|
35
|
+
...props,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function MenubarContent({
|
|
39
|
+
className,
|
|
40
|
+
align = 'start',
|
|
41
|
+
alignOffset = -4,
|
|
42
|
+
sideOffset = 8,
|
|
43
|
+
...props
|
|
44
|
+
}) {
|
|
45
|
+
return _jsx(MenubarPortal, {
|
|
46
|
+
children: _jsx(MenubarPrimitive.Content, {
|
|
47
|
+
align: align,
|
|
48
|
+
alignOffset: alignOffset,
|
|
49
|
+
className: cn(
|
|
50
|
+
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md',
|
|
51
|
+
className,
|
|
52
|
+
),
|
|
53
|
+
'data-slot': 'menubar-content',
|
|
54
|
+
sideOffset: sideOffset,
|
|
55
|
+
...props,
|
|
56
|
+
}),
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function MenubarItem({ className, inset, variant = 'default', ...props }) {
|
|
60
|
+
return _jsx(MenubarPrimitive.Item, {
|
|
61
|
+
className: cn(
|
|
62
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
63
|
+
className,
|
|
64
|
+
),
|
|
65
|
+
'data-inset': inset,
|
|
66
|
+
'data-slot': 'menubar-item',
|
|
67
|
+
'data-variant': variant,
|
|
68
|
+
...props,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function MenubarCheckboxItem({ className, children, checked, ...props }) {
|
|
72
|
+
return _jsxs(MenubarPrimitive.CheckboxItem, {
|
|
73
|
+
...(checked !== undefined ? { checked } : {}),
|
|
74
|
+
className: cn(
|
|
75
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
76
|
+
className,
|
|
77
|
+
),
|
|
78
|
+
'data-slot': 'menubar-checkbox-item',
|
|
79
|
+
...props,
|
|
80
|
+
children: [
|
|
81
|
+
_jsx('span', {
|
|
82
|
+
children: _jsx(MenubarPrimitive.ItemIndicator, {
|
|
83
|
+
children: _jsx(CheckIcon, { className: 'size-4' }),
|
|
84
|
+
}),
|
|
85
|
+
className: 'pointer-events-none absolute left-2 flex size-3.5 items-center justify-center',
|
|
86
|
+
}),
|
|
87
|
+
children,
|
|
88
|
+
],
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function MenubarRadioItem({ className, children, ...props }) {
|
|
92
|
+
return _jsxs(MenubarPrimitive.RadioItem, {
|
|
93
|
+
className: cn(
|
|
94
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
95
|
+
className,
|
|
96
|
+
),
|
|
97
|
+
'data-slot': 'menubar-radio-item',
|
|
98
|
+
...props,
|
|
99
|
+
children: [
|
|
100
|
+
_jsx('span', {
|
|
101
|
+
children: _jsx(MenubarPrimitive.ItemIndicator, {
|
|
102
|
+
children: _jsx(CircleIcon, { className: 'size-2 fill-current' }),
|
|
103
|
+
}),
|
|
104
|
+
className: 'pointer-events-none absolute left-2 flex size-3.5 items-center justify-center',
|
|
105
|
+
}),
|
|
106
|
+
children,
|
|
107
|
+
],
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function MenubarLabel({ className, inset, ...props }) {
|
|
111
|
+
return _jsx(MenubarPrimitive.Label, {
|
|
112
|
+
className: cn('px-2 py-1.5 text-sm font-medium data-[inset]:pl-8', className),
|
|
113
|
+
'data-inset': inset,
|
|
114
|
+
'data-slot': 'menubar-label',
|
|
115
|
+
...props,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function MenubarSeparator({ className, ...props }) {
|
|
119
|
+
return _jsx(MenubarPrimitive.Separator, {
|
|
120
|
+
className: cn('bg-border -mx-1 my-1 h-px', className),
|
|
121
|
+
'data-slot': 'menubar-separator',
|
|
122
|
+
...props,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
function MenubarShortcut({ className, ...props }) {
|
|
126
|
+
return _jsx('span', {
|
|
127
|
+
className: cn('text-muted-foreground ml-auto text-xs tracking-widest', className),
|
|
128
|
+
'data-slot': 'menubar-shortcut',
|
|
129
|
+
...props,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function MenubarSub({ ...props }) {
|
|
133
|
+
return _jsx(MenubarPrimitive.Sub, { 'data-slot': 'menubar-sub', ...props });
|
|
134
|
+
}
|
|
135
|
+
function MenubarSubTrigger({ className, inset, children, ...props }) {
|
|
136
|
+
return _jsxs(MenubarPrimitive.SubTrigger, {
|
|
137
|
+
className: cn(
|
|
138
|
+
'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8',
|
|
139
|
+
className,
|
|
140
|
+
),
|
|
141
|
+
'data-inset': inset,
|
|
142
|
+
'data-slot': 'menubar-sub-trigger',
|
|
143
|
+
...props,
|
|
144
|
+
children: [children, _jsx(ChevronRightIcon, { className: 'ml-auto h-4 w-4' })],
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function MenubarSubContent({ className, ...props }) {
|
|
148
|
+
return _jsx(MenubarPrimitive.SubContent, {
|
|
149
|
+
className: cn(
|
|
150
|
+
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg',
|
|
151
|
+
className,
|
|
152
|
+
),
|
|
153
|
+
'data-slot': 'menubar-sub-content',
|
|
154
|
+
...props,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
export {
|
|
158
|
+
Menubar,
|
|
159
|
+
MenubarPortal,
|
|
160
|
+
MenubarMenu,
|
|
161
|
+
MenubarTrigger,
|
|
162
|
+
MenubarContent,
|
|
163
|
+
MenubarGroup,
|
|
164
|
+
MenubarSeparator,
|
|
165
|
+
MenubarLabel,
|
|
166
|
+
MenubarItem,
|
|
167
|
+
MenubarShortcut,
|
|
168
|
+
MenubarCheckboxItem,
|
|
169
|
+
MenubarRadioGroup,
|
|
170
|
+
MenubarRadioItem,
|
|
171
|
+
MenubarSub,
|
|
172
|
+
MenubarSubTrigger,
|
|
173
|
+
MenubarSubContent,
|
|
174
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare function NavigationMenu({
|
|
4
|
+
className,
|
|
5
|
+
children,
|
|
6
|
+
viewport,
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
9
|
+
viewport?: boolean;
|
|
10
|
+
}): import('react/jsx-runtime').JSX.Element;
|
|
11
|
+
declare function NavigationMenuList({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<
|
|
15
|
+
typeof NavigationMenuPrimitive.List
|
|
16
|
+
>): import('react/jsx-runtime').JSX.Element;
|
|
17
|
+
declare function NavigationMenuItem({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: React.ComponentProps<
|
|
21
|
+
typeof NavigationMenuPrimitive.Item
|
|
22
|
+
>): import('react/jsx-runtime').JSX.Element;
|
|
23
|
+
declare const navigationMenuTriggerStyle: (
|
|
24
|
+
props?:
|
|
25
|
+
| (
|
|
26
|
+
| {
|
|
27
|
+
class?: import('cva').ClassValue;
|
|
28
|
+
className?: never;
|
|
29
|
+
}
|
|
30
|
+
| {
|
|
31
|
+
class?: never;
|
|
32
|
+
className?: import('cva').ClassValue;
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
| undefined,
|
|
36
|
+
) => string;
|
|
37
|
+
declare function NavigationMenuTrigger({
|
|
38
|
+
className,
|
|
39
|
+
children,
|
|
40
|
+
...props
|
|
41
|
+
}: React.ComponentProps<
|
|
42
|
+
typeof NavigationMenuPrimitive.Trigger
|
|
43
|
+
>): import('react/jsx-runtime').JSX.Element;
|
|
44
|
+
declare function NavigationMenuContent({
|
|
45
|
+
className,
|
|
46
|
+
...props
|
|
47
|
+
}: React.ComponentProps<
|
|
48
|
+
typeof NavigationMenuPrimitive.Content
|
|
49
|
+
>): import('react/jsx-runtime').JSX.Element;
|
|
50
|
+
declare function NavigationMenuViewport({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}: React.ComponentProps<
|
|
54
|
+
typeof NavigationMenuPrimitive.Viewport
|
|
55
|
+
>): import('react/jsx-runtime').JSX.Element;
|
|
56
|
+
declare function NavigationMenuLink({
|
|
57
|
+
className,
|
|
58
|
+
...props
|
|
59
|
+
}: React.ComponentProps<
|
|
60
|
+
typeof NavigationMenuPrimitive.Link
|
|
61
|
+
>): import('react/jsx-runtime').JSX.Element;
|
|
62
|
+
declare function NavigationMenuIndicator({
|
|
63
|
+
className,
|
|
64
|
+
...props
|
|
65
|
+
}: React.ComponentProps<
|
|
66
|
+
typeof NavigationMenuPrimitive.Indicator
|
|
67
|
+
>): import('react/jsx-runtime').JSX.Element;
|
|
68
|
+
export {
|
|
69
|
+
NavigationMenu,
|
|
70
|
+
NavigationMenuList,
|
|
71
|
+
NavigationMenuItem,
|
|
72
|
+
NavigationMenuContent,
|
|
73
|
+
NavigationMenuTrigger,
|
|
74
|
+
NavigationMenuLink,
|
|
75
|
+
NavigationMenuIndicator,
|
|
76
|
+
NavigationMenuViewport,
|
|
77
|
+
navigationMenuTriggerStyle,
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/shadcn/navigation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAE3E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,QAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,GAAG;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,2CAeA;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,2CAQ3D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,2CAQ3D;AAED,QAAA,MAAM,0BAA0B;;;;;;yBAE9B,CAAC;AAEH,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,2CAc9D;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,2CAY9D;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,QAAQ,CAAC,2CAa/D;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,2CAW3D;AAED,iBAAS,uBAAuB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,SAAS,CAAC,2CAahE;AAED,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC3B,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
2
|
+
import { ChevronDownIcon } from 'lucide-react';
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from 'react/jsx-runtime';
|
|
4
|
+
import { cn, cva } from '../utils/cn';
|
|
5
|
+
|
|
6
|
+
function NavigationMenu({ className, children, viewport = true, ...props }) {
|
|
7
|
+
return _jsxs(NavigationMenuPrimitive.Root, {
|
|
8
|
+
className: cn(
|
|
9
|
+
'group/navigation-menu relative flex max-w-max flex-1 items-center justify-center',
|
|
10
|
+
className,
|
|
11
|
+
),
|
|
12
|
+
'data-slot': 'navigation-menu',
|
|
13
|
+
'data-viewport': viewport,
|
|
14
|
+
...props,
|
|
15
|
+
children: [children, viewport && _jsx(NavigationMenuViewport, {})],
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function NavigationMenuList({ className, ...props }) {
|
|
19
|
+
return _jsx(NavigationMenuPrimitive.List, {
|
|
20
|
+
className: cn('group flex flex-1 list-none items-center justify-center gap-1', className),
|
|
21
|
+
'data-slot': 'navigation-menu-list',
|
|
22
|
+
...props,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function NavigationMenuItem({ className, ...props }) {
|
|
26
|
+
return _jsx(NavigationMenuPrimitive.Item, {
|
|
27
|
+
className: cn('relative', className),
|
|
28
|
+
'data-slot': 'navigation-menu-item',
|
|
29
|
+
...props,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
const navigationMenuTriggerStyle = cva({
|
|
33
|
+
base: 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1',
|
|
34
|
+
});
|
|
35
|
+
function NavigationMenuTrigger({ className, children, ...props }) {
|
|
36
|
+
return _jsxs(NavigationMenuPrimitive.Trigger, {
|
|
37
|
+
className: cn(navigationMenuTriggerStyle(), 'group', className),
|
|
38
|
+
'data-slot': 'navigation-menu-trigger',
|
|
39
|
+
...props,
|
|
40
|
+
children: [
|
|
41
|
+
children,
|
|
42
|
+
' ',
|
|
43
|
+
_jsx(ChevronDownIcon, {
|
|
44
|
+
'aria-hidden': 'true',
|
|
45
|
+
className:
|
|
46
|
+
'relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180',
|
|
47
|
+
}),
|
|
48
|
+
],
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function NavigationMenuContent({ className, ...props }) {
|
|
52
|
+
return _jsx(NavigationMenuPrimitive.Content, {
|
|
53
|
+
className: cn(
|
|
54
|
+
'data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto',
|
|
55
|
+
'group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none',
|
|
56
|
+
className,
|
|
57
|
+
),
|
|
58
|
+
'data-slot': 'navigation-menu-content',
|
|
59
|
+
...props,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function NavigationMenuViewport({ className, ...props }) {
|
|
63
|
+
return _jsx('div', {
|
|
64
|
+
children: _jsx(NavigationMenuPrimitive.Viewport, {
|
|
65
|
+
className: cn(
|
|
66
|
+
'origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]',
|
|
67
|
+
className,
|
|
68
|
+
),
|
|
69
|
+
'data-slot': 'navigation-menu-viewport',
|
|
70
|
+
...props,
|
|
71
|
+
}),
|
|
72
|
+
className: cn('absolute top-full left-0 isolate z-50 flex justify-center'),
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function NavigationMenuLink({ className, ...props }) {
|
|
76
|
+
return _jsx(NavigationMenuPrimitive.Link, {
|
|
77
|
+
className: cn(
|
|
78
|
+
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
79
|
+
className,
|
|
80
|
+
),
|
|
81
|
+
'data-slot': 'navigation-menu-link',
|
|
82
|
+
...props,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function NavigationMenuIndicator({ className, ...props }) {
|
|
86
|
+
return _jsx(NavigationMenuPrimitive.Indicator, {
|
|
87
|
+
className: cn(
|
|
88
|
+
'data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden',
|
|
89
|
+
className,
|
|
90
|
+
),
|
|
91
|
+
'data-slot': 'navigation-menu-indicator',
|
|
92
|
+
...props,
|
|
93
|
+
children: _jsx('div', {
|
|
94
|
+
className: 'bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md',
|
|
95
|
+
}),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
NavigationMenu,
|
|
100
|
+
NavigationMenuList,
|
|
101
|
+
NavigationMenuItem,
|
|
102
|
+
NavigationMenuContent,
|
|
103
|
+
NavigationMenuTrigger,
|
|
104
|
+
NavigationMenuLink,
|
|
105
|
+
NavigationMenuIndicator,
|
|
106
|
+
NavigationMenuViewport,
|
|
107
|
+
navigationMenuTriggerStyle,
|
|
108
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { type Button } from './button';
|
|
3
|
+
declare function Pagination({
|
|
4
|
+
className,
|
|
5
|
+
...props
|
|
6
|
+
}: React.ComponentProps<'nav'>): import('react/jsx-runtime').JSX.Element;
|
|
7
|
+
declare function PaginationContent({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<'ul'>): import('react/jsx-runtime').JSX.Element;
|
|
11
|
+
declare function PaginationItem({
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<'li'>): import('react/jsx-runtime').JSX.Element;
|
|
14
|
+
type PaginationLinkProps = {
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
} & Pick<React.ComponentProps<typeof Button>, 'size'> &
|
|
17
|
+
React.ComponentProps<'a'>;
|
|
18
|
+
declare function PaginationLink({
|
|
19
|
+
className,
|
|
20
|
+
isActive,
|
|
21
|
+
size,
|
|
22
|
+
...props
|
|
23
|
+
}: PaginationLinkProps): import('react/jsx-runtime').JSX.Element;
|
|
24
|
+
declare function PaginationPrevious({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: React.ComponentProps<typeof PaginationLink>): import('react/jsx-runtime').JSX.Element;
|
|
28
|
+
declare function PaginationNext({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: React.ComponentProps<typeof PaginationLink>): import('react/jsx-runtime').JSX.Element;
|
|
32
|
+
declare function PaginationEllipsis({
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}: React.ComponentProps<'span'>): import('react/jsx-runtime').JSX.Element;
|
|
36
|
+
export {
|
|
37
|
+
Pagination,
|
|
38
|
+
PaginationContent,
|
|
39
|
+
PaginationLink,
|
|
40
|
+
PaginationItem,
|
|
41
|
+
PaginationPrevious,
|
|
42
|
+
PaginationNext,
|
|
43
|
+
PaginationEllipsis,
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/shadcn/pagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,KAAK,MAAM,EAAkB,MAAM,UAAU,CAAC;AAEvD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CASvE;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAQ7E;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAO/D;AAED,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GACnD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAE5B,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAgB5F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAY/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAY3F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAYhF;AAED,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GACnB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { cn } from '../utils/cn';
|
|
4
|
+
import { buttonVariants } from './button';
|
|
5
|
+
|
|
6
|
+
function Pagination({ className, ...props }) {
|
|
7
|
+
return _jsx('nav', {
|
|
8
|
+
'aria-label': 'pagination',
|
|
9
|
+
className: cn('mx-auto flex w-full justify-center', className),
|
|
10
|
+
'data-slot': 'pagination',
|
|
11
|
+
...props,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function PaginationContent({ className, ...props }) {
|
|
15
|
+
return _jsx('ul', {
|
|
16
|
+
className: cn('flex flex-row items-center gap-1', className),
|
|
17
|
+
'data-slot': 'pagination-content',
|
|
18
|
+
...props,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function PaginationItem({ ...props }) {
|
|
22
|
+
return _jsx('li', { 'data-slot': 'pagination-item', ...props });
|
|
23
|
+
}
|
|
24
|
+
function PaginationLink({ className, isActive, size = 'icon', ...props }) {
|
|
25
|
+
return _jsx('a', {
|
|
26
|
+
'aria-current': isActive ? 'page' : undefined,
|
|
27
|
+
className: cn(
|
|
28
|
+
buttonVariants({
|
|
29
|
+
size,
|
|
30
|
+
variant: isActive ? 'outline' : 'ghost',
|
|
31
|
+
}),
|
|
32
|
+
className,
|
|
33
|
+
),
|
|
34
|
+
'data-active': isActive,
|
|
35
|
+
'data-slot': 'pagination-link',
|
|
36
|
+
...props,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function PaginationPrevious({ className, ...props }) {
|
|
40
|
+
return _jsxs(PaginationLink, {
|
|
41
|
+
'aria-label': 'Go to previous page',
|
|
42
|
+
className: cn('gap-1 px-2.5 sm:pl-2.5', className),
|
|
43
|
+
size: 'default',
|
|
44
|
+
...props,
|
|
45
|
+
children: [
|
|
46
|
+
_jsx(ChevronLeftIcon, {}),
|
|
47
|
+
_jsx('span', { children: 'Previous', className: 'hidden sm:block' }),
|
|
48
|
+
],
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function PaginationNext({ className, ...props }) {
|
|
52
|
+
return _jsxs(PaginationLink, {
|
|
53
|
+
'aria-label': 'Go to next page',
|
|
54
|
+
className: cn('gap-1 px-2.5 sm:pr-2.5', className),
|
|
55
|
+
size: 'default',
|
|
56
|
+
...props,
|
|
57
|
+
children: [
|
|
58
|
+
_jsx('span', { children: 'Next', className: 'hidden sm:block' }),
|
|
59
|
+
_jsx(ChevronRightIcon, {}),
|
|
60
|
+
],
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function PaginationEllipsis({ className, ...props }) {
|
|
64
|
+
return _jsxs('span', {
|
|
65
|
+
'aria-hidden': true,
|
|
66
|
+
className: cn('flex size-9 items-center justify-center', className),
|
|
67
|
+
'data-slot': 'pagination-ellipsis',
|
|
68
|
+
...props,
|
|
69
|
+
children: [
|
|
70
|
+
_jsx(MoreHorizontalIcon, { className: 'size-4' }),
|
|
71
|
+
_jsx('span', { children: 'More pages', className: 'sr-only' }),
|
|
72
|
+
],
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
Pagination,
|
|
77
|
+
PaginationContent,
|
|
78
|
+
PaginationLink,
|
|
79
|
+
PaginationItem,
|
|
80
|
+
PaginationPrevious,
|
|
81
|
+
PaginationNext,
|
|
82
|
+
PaginationEllipsis,
|
|
83
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare function Popover({
|
|
4
|
+
...props
|
|
5
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Root>): import('react/jsx-runtime').JSX.Element;
|
|
6
|
+
declare function PopoverTrigger({
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import('react/jsx-runtime').JSX.Element;
|
|
9
|
+
declare function PopoverContent({
|
|
10
|
+
className,
|
|
11
|
+
align,
|
|
12
|
+
sideOffset,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Content>): import('react/jsx-runtime').JSX.Element;
|
|
15
|
+
declare function PopoverAnchor({
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import('react/jsx-runtime').JSX.Element;
|
|
18
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
19
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/shadcn/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAOhF;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAO1F;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAevD;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,2CAOxF;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
import { jsx as _jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { cn } from '../utils/cn';
|
|
5
|
+
|
|
6
|
+
function Popover({ ...props }) {
|
|
7
|
+
return _jsx(PopoverPrimitive.Root, { 'data-slot': 'popover', ...props });
|
|
8
|
+
}
|
|
9
|
+
function PopoverTrigger({ ...props }) {
|
|
10
|
+
return _jsx(PopoverPrimitive.Trigger, { 'data-slot': 'popover-trigger', ...props });
|
|
11
|
+
}
|
|
12
|
+
function PopoverContent({ className, align = 'center', sideOffset = 4, ...props }) {
|
|
13
|
+
return _jsx(PopoverPrimitive.Portal, {
|
|
14
|
+
children: _jsx(PopoverPrimitive.Content, {
|
|
15
|
+
align: align,
|
|
16
|
+
className: cn(
|
|
17
|
+
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden',
|
|
18
|
+
className,
|
|
19
|
+
),
|
|
20
|
+
'data-slot': 'popover-content',
|
|
21
|
+
sideOffset: sideOffset,
|
|
22
|
+
...props,
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function PopoverAnchor({ ...props }) {
|
|
27
|
+
return _jsx(PopoverPrimitive.Anchor, { 'data-slot': 'popover-anchor', ...props });
|
|
28
|
+
}
|
|
29
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare function Progress({
|
|
4
|
+
className,
|
|
5
|
+
value,
|
|
6
|
+
...props
|
|
7
|
+
}: React.ComponentProps<typeof ProgressPrimitive.Root>): import('react/jsx-runtime').JSX.Element;
|
|
8
|
+
export { Progress };
|
|
9
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/shadcn/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,2CAcrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
2
|
+
import { jsx as _jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { cn } from '../utils/cn';
|
|
4
|
+
|
|
5
|
+
function Progress({ className, value, ...props }) {
|
|
6
|
+
return _jsx(ProgressPrimitive.Root, {
|
|
7
|
+
className: cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className),
|
|
8
|
+
'data-slot': 'progress',
|
|
9
|
+
...props,
|
|
10
|
+
children: _jsx(ProgressPrimitive.Indicator, {
|
|
11
|
+
className: 'bg-primary h-full w-full flex-1 transition-all',
|
|
12
|
+
'data-slot': 'progress-indicator',
|
|
13
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` },
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export { Progress };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
declare function RadioGroup({
|
|
4
|
+
className,
|
|
5
|
+
...props
|
|
6
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import('react/jsx-runtime').JSX.Element;
|
|
7
|
+
declare function RadioGroupItem({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>): import('react/jsx-runtime').JSX.Element;
|
|
11
|
+
export { RadioGroup, RadioGroupItem };
|
|
12
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/shadcn/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAEnE,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,2CAQvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,2CAkBvD;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
+
import { CircleIcon } from 'lucide-react';
|
|
4
|
+
import { jsx as _jsx } from 'react/jsx-runtime';
|
|
5
|
+
import { cn } from '../utils/cn';
|
|
6
|
+
|
|
7
|
+
function RadioGroup({ className, ...props }) {
|
|
8
|
+
return _jsx(RadioGroupPrimitive.Root, {
|
|
9
|
+
className: cn('grid gap-3', className),
|
|
10
|
+
'data-slot': 'radio-group',
|
|
11
|
+
...props,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function RadioGroupItem({ className, ...props }) {
|
|
15
|
+
return _jsx(RadioGroupPrimitive.Item, {
|
|
16
|
+
className: cn(
|
|
17
|
+
'border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
|
|
18
|
+
className,
|
|
19
|
+
),
|
|
20
|
+
'data-slot': 'radio-group-item',
|
|
21
|
+
...props,
|
|
22
|
+
children: _jsx(RadioGroupPrimitive.Indicator, {
|
|
23
|
+
children: _jsx(CircleIcon, {
|
|
24
|
+
className:
|
|
25
|
+
'fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2',
|
|
26
|
+
}),
|
|
27
|
+
className: 'relative flex items-center justify-center',
|
|
28
|
+
'data-slot': 'radio-group-indicator',
|
|
29
|
+
}),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
3
|
+
declare function ResizablePanelGroup({
|
|
4
|
+
className,
|
|
5
|
+
...props
|
|
6
|
+
}: React.ComponentProps<
|
|
7
|
+
typeof ResizablePrimitive.PanelGroup
|
|
8
|
+
>): import('react/jsx-runtime').JSX.Element;
|
|
9
|
+
declare function ResizablePanel({
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof ResizablePrimitive.Panel>): import('react/jsx-runtime').JSX.Element;
|
|
12
|
+
declare function ResizableHandle({
|
|
13
|
+
withHandle,
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
17
|
+
withHandle?: boolean;
|
|
18
|
+
}): import('react/jsx-runtime').JSX.Element;
|
|
19
|
+
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
20
|
+
//# sourceMappingURL=resizable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/shadcn/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAG7D,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,2CAQ5D;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,KAAK,CAAC,2CAO1F;AAED,iBAAS,eAAe,CAAC,EACvB,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,2CAiBA;AAED,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|