@cargo-ai/ui 0.0.0-stage → 1.0.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/README.md +111 -2
- package/build/blocks/Banner/Banner.d.ts +19 -0
- package/build/blocks/Banner/Banner.d.ts.map +1 -0
- package/build/blocks/Banner/Banner.js +7 -0
- package/build/blocks/BeforeAfter/BeforeAfter.d.ts +21 -0
- package/build/blocks/BeforeAfter/BeforeAfter.d.ts.map +1 -0
- package/build/blocks/BeforeAfter/BeforeAfter.js +13 -0
- package/build/blocks/CardGrid/CardGrid.d.ts +19 -0
- package/build/blocks/CardGrid/CardGrid.d.ts.map +1 -0
- package/build/blocks/CardGrid/CardGrid.js +17 -0
- package/build/blocks/CtaBand/CtaBand.d.ts +18 -0
- package/build/blocks/CtaBand/CtaBand.d.ts.map +1 -0
- package/build/blocks/CtaBand/CtaBand.js +13 -0
- package/build/blocks/Faq/Faq.d.ts +25 -0
- package/build/blocks/Faq/Faq.d.ts.map +1 -0
- package/build/blocks/Faq/Faq.js +20 -0
- package/build/blocks/FeatureGrid/FeatureGrid.d.ts +23 -0
- package/build/blocks/FeatureGrid/FeatureGrid.d.ts.map +1 -0
- package/build/blocks/FeatureGrid/FeatureGrid.js +12 -0
- package/build/blocks/FeatureRows/FeatureRows.d.ts +22 -0
- package/build/blocks/FeatureRows/FeatureRows.d.ts.map +1 -0
- package/build/blocks/FeatureRows/FeatureRows.js +14 -0
- package/build/blocks/HeroCentered/HeroCentered.d.ts +27 -0
- package/build/blocks/HeroCentered/HeroCentered.d.ts.map +1 -0
- package/build/blocks/HeroCentered/HeroCentered.js +13 -0
- package/build/blocks/HeroSplit/HeroSplit.d.ts +28 -0
- package/build/blocks/HeroSplit/HeroSplit.d.ts.map +1 -0
- package/build/blocks/HeroSplit/HeroSplit.js +18 -0
- package/build/blocks/LogoCloud/LogoCloud.d.ts +17 -0
- package/build/blocks/LogoCloud/LogoCloud.d.ts.map +1 -0
- package/build/blocks/LogoCloud/LogoCloud.js +8 -0
- package/build/blocks/Pricing/Pricing.d.ts +33 -0
- package/build/blocks/Pricing/Pricing.d.ts.map +1 -0
- package/build/blocks/Pricing/Pricing.js +33 -0
- package/build/blocks/Showcase/Showcase.d.ts +27 -0
- package/build/blocks/Showcase/Showcase.d.ts.map +1 -0
- package/build/blocks/Showcase/Showcase.js +40 -0
- package/build/blocks/SiteFooter/SiteFooter.d.ts +25 -0
- package/build/blocks/SiteFooter/SiteFooter.d.ts.map +1 -0
- package/build/blocks/SiteFooter/SiteFooter.js +14 -0
- package/build/blocks/SiteHeader/SiteHeader.d.ts +27 -0
- package/build/blocks/SiteHeader/SiteHeader.d.ts.map +1 -0
- package/build/blocks/SiteHeader/SiteHeader.js +101 -0
- package/build/blocks/Stats/Stats.d.ts +17 -0
- package/build/blocks/Stats/Stats.d.ts.map +1 -0
- package/build/blocks/Stats/Stats.js +9 -0
- package/build/blocks/Steps/Steps.d.ts +26 -0
- package/build/blocks/Steps/Steps.d.ts.map +1 -0
- package/build/blocks/Steps/Steps.js +23 -0
- package/build/blocks/Testimonials/Testimonials.d.ts +26 -0
- package/build/blocks/Testimonials/Testimonials.d.ts.map +1 -0
- package/build/blocks/Testimonials/Testimonials.js +30 -0
- package/build/blocks/types.d.ts +44 -0
- package/build/blocks/types.d.ts.map +1 -0
- package/build/blocks/types.js +1 -0
- package/build/components/CargoMark/CargoMark.d.ts +7 -0
- package/build/components/CargoMark/CargoMark.d.ts.map +1 -0
- package/build/components/CargoMark/CargoMark.js +16 -0
- package/build/components/CheckList/CheckList.d.ts +9 -0
- package/build/components/CheckList/CheckList.d.ts.map +1 -0
- package/build/components/CheckList/CheckList.js +8 -0
- package/build/components/CodeWindow/CodeWindow.d.ts +15 -0
- package/build/components/CodeWindow/CodeWindow.d.ts.map +1 -0
- package/build/components/CodeWindow/CodeWindow.js +53 -0
- package/build/components/CodeWindow/highlight.d.ts +4 -0
- package/build/components/CodeWindow/highlight.d.ts.map +1 -0
- package/build/components/CodeWindow/highlight.js +48 -0
- package/build/components/ComparisonTable/ComparisonTable.d.ts +62 -0
- package/build/components/ComparisonTable/ComparisonTable.d.ts.map +1 -0
- package/build/components/ComparisonTable/ComparisonTable.js +60 -0
- package/build/components/CountUp/CountUp.d.ts +13 -0
- package/build/components/CountUp/CountUp.d.ts.map +1 -0
- package/build/components/CountUp/CountUp.js +52 -0
- package/build/components/Eyebrow/Eyebrow.d.ts +21 -0
- package/build/components/Eyebrow/Eyebrow.d.ts.map +1 -0
- package/build/components/Eyebrow/Eyebrow.js +29 -0
- package/build/components/FeatureCard/FeatureCard.d.ts +12 -0
- package/build/components/FeatureCard/FeatureCard.d.ts.map +1 -0
- package/build/components/FeatureCard/FeatureCard.js +8 -0
- package/build/components/GlowCard/GlowCard.d.ts +11 -0
- package/build/components/GlowCard/GlowCard.d.ts.map +1 -0
- package/build/components/GlowCard/GlowCard.js +14 -0
- package/build/components/Highlight/Highlight.d.ts +12 -0
- package/build/components/Highlight/Highlight.d.ts.map +1 -0
- package/build/components/Highlight/Highlight.js +10 -0
- package/build/components/InstallCommand/InstallCommand.d.ts +9 -0
- package/build/components/InstallCommand/InstallCommand.d.ts.map +1 -0
- package/build/components/InstallCommand/InstallCommand.js +30 -0
- package/build/components/Logo/Logo.d.ts +16 -0
- package/build/components/Logo/Logo.d.ts.map +1 -0
- package/build/components/Logo/Logo.js +7 -0
- package/build/components/Marquee/Marquee.d.ts +17 -0
- package/build/components/Marquee/Marquee.d.ts.map +1 -0
- package/build/components/Marquee/Marquee.js +19 -0
- package/build/components/Marquee/index.d.ts +3 -0
- package/build/components/Marquee/index.d.ts.map +1 -0
- package/build/components/Marquee/index.js +1 -0
- package/build/components/Marquee/types.d.ts +9 -0
- package/build/components/Marquee/types.d.ts.map +1 -0
- package/build/components/Marquee/types.js +1 -0
- package/build/components/MaskedHeadline/MaskedHeadline.d.ts +10 -0
- package/build/components/MaskedHeadline/MaskedHeadline.d.ts.map +1 -0
- package/build/components/MaskedHeadline/MaskedHeadline.js +8 -0
- package/build/components/MediaFrame/MediaFrame.d.ts +17 -0
- package/build/components/MediaFrame/MediaFrame.d.ts.map +1 -0
- package/build/components/MediaFrame/MediaFrame.js +15 -0
- package/build/components/Prose/Prose.d.ts +23 -0
- package/build/components/Prose/Prose.d.ts.map +1 -0
- package/build/components/Prose/Prose.js +15 -0
- package/build/components/ResourceCard/ResourceCard.d.ts +31 -0
- package/build/components/ResourceCard/ResourceCard.d.ts.map +1 -0
- package/build/components/ResourceCard/ResourceCard.js +20 -0
- package/build/components/Reveal/Reveal.d.ts +14 -0
- package/build/components/Reveal/Reveal.d.ts.map +1 -0
- package/build/components/Reveal/Reveal.js +26 -0
- package/build/components/Terminal/Terminal.d.ts +11 -0
- package/build/components/Terminal/Terminal.d.ts.map +1 -0
- package/build/components/Terminal/Terminal.js +69 -0
- package/build/components/Terminal/index.d.ts +3 -0
- package/build/components/Terminal/index.d.ts.map +1 -0
- package/build/components/Terminal/index.js +1 -0
- package/build/components/Terminal/types.d.ts +10 -0
- package/build/components/Terminal/types.d.ts.map +1 -0
- package/build/components/Terminal/types.js +1 -0
- package/build/components/ThemeIsland/ThemeIsland.d.ts +22 -0
- package/build/components/ThemeIsland/ThemeIsland.d.ts.map +1 -0
- package/build/components/ThemeIsland/ThemeIsland.js +25 -0
- package/build/components/ThemeIsland/context.d.ts +5 -0
- package/build/components/ThemeIsland/context.d.ts.map +1 -0
- package/build/components/ThemeIsland/context.js +4 -0
- package/build/components/ThemeIsland/index.d.ts +3 -0
- package/build/components/ThemeIsland/index.d.ts.map +1 -0
- package/build/components/ThemeIsland/index.js +1 -0
- package/build/foundations/type-scale.d.ts +12 -0
- package/build/foundations/type-scale.d.ts.map +1 -0
- package/build/foundations/type-scale.js +11 -0
- package/build/hooks/use-mobile.d.ts +2 -0
- package/build/hooks/use-mobile.d.ts.map +1 -0
- package/build/hooks/use-mobile.js +15 -0
- package/build/hooks/use-reduced-motion.d.ts +6 -0
- package/build/hooks/use-reduced-motion.d.ts.map +1 -0
- package/build/hooks/use-reduced-motion.js +14 -0
- package/build/layout/Container/Container.d.ts +10 -0
- package/build/layout/Container/Container.d.ts.map +1 -0
- package/build/layout/Container/Container.js +7 -0
- package/build/layout/Page/Page.d.ts +9 -0
- package/build/layout/Page/Page.d.ts.map +1 -0
- package/build/layout/Page/Page.js +7 -0
- package/build/layout/Section/Section.d.ts +12 -0
- package/build/layout/Section/Section.d.ts.map +1 -0
- package/build/layout/Section/Section.js +9 -0
- package/build/layout/SectionHeading/SectionHeading.d.ts +18 -0
- package/build/layout/SectionHeading/SectionHeading.d.ts.map +1 -0
- package/build/layout/SectionHeading/SectionHeading.js +14 -0
- package/build/lib/utils.d.ts +2 -0
- package/build/lib/utils.d.ts.map +1 -0
- package/build/lib/utils.js +1 -0
- package/build/primitives/accordion.d.ts +8 -0
- package/build/primitives/accordion.d.ts.map +1 -0
- package/build/primitives/accordion.js +18 -0
- package/build/primitives/alert-dialog.d.ts +19 -0
- package/build/primitives/alert-dialog.d.ts.map +1 -0
- package/build/primitives/alert-dialog.js +43 -0
- package/build/primitives/alert.d.ts +10 -0
- package/build/primitives/alert.d.ts.map +1 -0
- package/build/primitives/alert.js +24 -0
- package/build/primitives/aspect-ratio.d.ts +5 -0
- package/build/primitives/aspect-ratio.d.ts.map +1 -0
- package/build/primitives/aspect-ratio.js +6 -0
- package/build/primitives/avatar.d.ts +12 -0
- package/build/primitives/avatar.d.ts.map +1 -0
- package/build/primitives/avatar.js +22 -0
- package/build/primitives/badge.d.ts +10 -0
- package/build/primitives/badge.d.ts.map +1 -0
- package/build/primitives/badge.js +28 -0
- package/build/primitives/breadcrumb.d.ts +12 -0
- package/build/primitives/breadcrumb.d.ts.map +1 -0
- package/build/primitives/breadcrumb.js +27 -0
- package/build/primitives/button-group.d.ts +13 -0
- package/build/primitives/button-group.d.ts.map +1 -0
- package/build/primitives/button-group.js +27 -0
- package/build/primitives/button.d.ts +11 -0
- package/build/primitives/button.d.ts.map +1 -0
- package/build/primitives/button.js +37 -0
- package/build/primitives/calendar.d.ts +9 -0
- package/build/primitives/calendar.d.ts.map +1 -0
- package/build/primitives/calendar.js +77 -0
- package/build/primitives/card.d.ts +10 -0
- package/build/primitives/card.d.ts.map +1 -0
- package/build/primitives/card.js +24 -0
- package/build/primitives/carousel.d.ts +20 -0
- package/build/primitives/carousel.d.ts.map +1 -0
- package/build/primitives/carousel.js +91 -0
- package/build/primitives/chart.d.ts +45 -0
- package/build/primitives/chart.d.ts.map +1 -0
- package/build/primitives/chart.js +136 -0
- package/build/primitives/checkbox.d.ts +5 -0
- package/build/primitives/checkbox.d.ts.map +1 -0
- package/build/primitives/checkbox.js +8 -0
- package/build/primitives/collapsible.d.ts +7 -0
- package/build/primitives/collapsible.d.ts.map +1 -0
- package/build/primitives/collapsible.js +13 -0
- package/build/primitives/command.d.ts +19 -0
- package/build/primitives/command.d.ts.map +1 -0
- package/build/primitives/command.js +33 -0
- package/build/primitives/context-menu.d.ts +26 -0
- package/build/primitives/context-menu.d.ts.map +1 -0
- package/build/primitives/context-menu.js +51 -0
- package/build/primitives/dialog.d.ts +18 -0
- package/build/primitives/dialog.d.ts.map +1 -0
- package/build/primitives/dialog.js +37 -0
- package/build/primitives/drawer.d.ts +14 -0
- package/build/primitives/drawer.d.ts.map +1 -0
- package/build/primitives/drawer.js +36 -0
- package/build/primitives/dropdown-menu.d.ts +26 -0
- package/build/primitives/dropdown-menu.d.ts.map +1 -0
- package/build/primitives/dropdown-menu.js +51 -0
- package/build/primitives/empty.d.ts +13 -0
- package/build/primitives/empty.d.ts.map +1 -0
- package/build/primitives/empty.js +33 -0
- package/build/primitives/field.d.ts +26 -0
- package/build/primitives/field.d.ts.map +1 -0
- package/build/primitives/field.js +76 -0
- package/build/primitives/form.d.ts +25 -0
- package/build/primitives/form.d.ts.map +1 -0
- package/build/primitives/form.js +59 -0
- package/build/primitives/hover-card.d.ts +7 -0
- package/build/primitives/hover-card.d.ts.map +1 -0
- package/build/primitives/hover-card.js +14 -0
- package/build/primitives/input-group.d.ts +17 -0
- package/build/primitives/input-group.d.ts.map +1 -0
- package/build/primitives/input-group.js +63 -0
- package/build/primitives/input-otp.d.ts +12 -0
- package/build/primitives/input-otp.d.ts.map +1 -0
- package/build/primitives/input-otp.js +21 -0
- package/build/primitives/input.d.ts +4 -0
- package/build/primitives/input.d.ts.map +1 -0
- package/build/primitives/input.js +6 -0
- package/build/primitives/item.d.ts +24 -0
- package/build/primitives/item.d.ts.map +1 -0
- package/build/primitives/item.js +66 -0
- package/build/primitives/kbd.d.ts +5 -0
- package/build/primitives/kbd.d.ts.map +1 -0
- package/build/primitives/kbd.js +9 -0
- package/build/primitives/label.d.ts +5 -0
- package/build/primitives/label.d.ts.map +1 -0
- package/build/primitives/label.js +7 -0
- package/build/primitives/menubar.d.ts +27 -0
- package/build/primitives/menubar.d.ts.map +1 -0
- package/build/primitives/menubar.js +55 -0
- package/build/primitives/navigation-menu.d.ts +15 -0
- package/build/primitives/navigation-menu.d.ts.map +1 -0
- package/build/primitives/navigation-menu.js +31 -0
- package/build/primitives/pagination.d.ts +14 -0
- package/build/primitives/pagination.d.ts.map +1 -0
- package/build/primitives/pagination.js +29 -0
- package/build/primitives/popover.d.ts +11 -0
- package/build/primitives/popover.d.ts.map +1 -0
- package/build/primitives/popover.js +27 -0
- package/build/primitives/progress.d.ts +5 -0
- package/build/primitives/progress.d.ts.map +1 -0
- package/build/primitives/progress.js +7 -0
- package/build/primitives/radio-group.d.ts +6 -0
- package/build/primitives/radio-group.d.ts.map +1 -0
- package/build/primitives/radio-group.js +12 -0
- package/build/primitives/resizable.d.ts +9 -0
- package/build/primitives/resizable.d.ts.map +1 -0
- package/build/primitives/resizable.js +14 -0
- package/build/primitives/scroll-area.d.ts +6 -0
- package/build/primitives/scroll-area.d.ts.map +1 -0
- package/build/primitives/scroll-area.js +13 -0
- package/build/primitives/select.d.ts +16 -0
- package/build/primitives/select.d.ts.map +1 -0
- package/build/primitives/select.js +39 -0
- package/build/primitives/separator.d.ts +5 -0
- package/build/primitives/separator.d.ts.map +1 -0
- package/build/primitives/separator.js +8 -0
- package/build/primitives/sheet.d.ts +15 -0
- package/build/primitives/sheet.d.ts.map +1 -0
- package/build/primitives/sheet.js +41 -0
- package/build/primitives/sidebar.d.ts +70 -0
- package/build/primitives/sidebar.d.ts.map +1 -0
- package/build/primitives/sidebar.js +212 -0
- package/build/primitives/skeleton.d.ts +4 -0
- package/build/primitives/skeleton.d.ts.map +1 -0
- package/build/primitives/skeleton.js +6 -0
- package/build/primitives/slider.d.ts +5 -0
- package/build/primitives/slider.d.ts.map +1 -0
- package/build/primitives/slider.js +14 -0
- package/build/primitives/sonner.d.ts +5 -0
- package/build/primitives/sonner.d.ts.map +1 -0
- package/build/primitives/sonner.js +19 -0
- package/build/primitives/spinner.d.ts +4 -0
- package/build/primitives/spinner.d.ts.map +1 -0
- package/build/primitives/spinner.js +7 -0
- package/build/primitives/switch.d.ts +7 -0
- package/build/primitives/switch.d.ts.map +1 -0
- package/build/primitives/switch.js +8 -0
- package/build/primitives/table.d.ts +11 -0
- package/build/primitives/table.d.ts.map +1 -0
- package/build/primitives/table.js +28 -0
- package/build/primitives/tabs.d.ts +12 -0
- package/build/primitives/tabs.d.ts.map +1 -0
- package/build/primitives/tabs.js +28 -0
- package/build/primitives/textarea.d.ts +4 -0
- package/build/primitives/textarea.d.ts.map +1 -0
- package/build/primitives/textarea.js +6 -0
- package/build/primitives/toggle-group.d.ts +10 -0
- package/build/primitives/toggle-group.d.ts.map +1 -0
- package/build/primitives/toggle-group.js +22 -0
- package/build/primitives/toggle.d.ts +10 -0
- package/build/primitives/toggle.d.ts.map +1 -0
- package/build/primitives/toggle.js +25 -0
- package/build/primitives/tooltip.d.ts +8 -0
- package/build/primitives/tooltip.d.ts.map +1 -0
- package/build/primitives/tooltip.js +18 -0
- package/build/shadcn.css +650 -0
- package/build/styles.css +699 -0
- package/package.json +187 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Button } from "./button";
|
|
4
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
5
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
6
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
7
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
8
|
+
type CarouselProps = {
|
|
9
|
+
opts?: CarouselOptions;
|
|
10
|
+
plugins?: CarouselPlugin;
|
|
11
|
+
orientation?: "horizontal" | "vertical";
|
|
12
|
+
setApi?: (api: CarouselApi) => void;
|
|
13
|
+
};
|
|
14
|
+
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): React.JSX.Element;
|
|
15
|
+
declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
16
|
+
declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
17
|
+
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
18
|
+
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
19
|
+
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, };
|
|
20
|
+
//# sourceMappingURL=carousel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../src/primitives/carousel.tsx"],"names":[],"mappings":"AAGA,OAAO,gBAAgB,EAAE,EACvB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK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|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import useEmblaCarousel from "embla-carousel-react";
|
|
5
|
+
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { Button } from "./button";
|
|
8
|
+
const CarouselContext = React.createContext(null);
|
|
9
|
+
function useCarousel() {
|
|
10
|
+
const context = React.useContext(CarouselContext);
|
|
11
|
+
if (!context) {
|
|
12
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
13
|
+
}
|
|
14
|
+
return context;
|
|
15
|
+
}
|
|
16
|
+
function Carousel({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }) {
|
|
17
|
+
const [carouselRef, api] = useEmblaCarousel({
|
|
18
|
+
...opts,
|
|
19
|
+
axis: orientation === "horizontal" ? "x" : "y",
|
|
20
|
+
}, plugins);
|
|
21
|
+
const [canScrollPrev, setCanScrollPrev] = React.useState(false);
|
|
22
|
+
const [canScrollNext, setCanScrollNext] = React.useState(false);
|
|
23
|
+
const onSelect = React.useCallback((api) => {
|
|
24
|
+
if (!api)
|
|
25
|
+
return;
|
|
26
|
+
setCanScrollPrev(api.canScrollPrev());
|
|
27
|
+
setCanScrollNext(api.canScrollNext());
|
|
28
|
+
}, []);
|
|
29
|
+
const scrollPrev = React.useCallback(() => {
|
|
30
|
+
api?.scrollPrev();
|
|
31
|
+
}, [api]);
|
|
32
|
+
const scrollNext = React.useCallback(() => {
|
|
33
|
+
api?.scrollNext();
|
|
34
|
+
}, [api]);
|
|
35
|
+
const handleKeyDown = React.useCallback((event) => {
|
|
36
|
+
if (event.key === "ArrowLeft") {
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
scrollPrev();
|
|
39
|
+
}
|
|
40
|
+
else if (event.key === "ArrowRight") {
|
|
41
|
+
event.preventDefault();
|
|
42
|
+
scrollNext();
|
|
43
|
+
}
|
|
44
|
+
}, [scrollPrev, scrollNext]);
|
|
45
|
+
React.useEffect(() => {
|
|
46
|
+
if (!api || !setApi)
|
|
47
|
+
return;
|
|
48
|
+
setApi(api);
|
|
49
|
+
}, [api, setApi]);
|
|
50
|
+
React.useEffect(() => {
|
|
51
|
+
if (!api)
|
|
52
|
+
return;
|
|
53
|
+
onSelect(api);
|
|
54
|
+
api.on("reInit", onSelect);
|
|
55
|
+
api.on("select", onSelect);
|
|
56
|
+
return () => {
|
|
57
|
+
api?.off("select", onSelect);
|
|
58
|
+
};
|
|
59
|
+
}, [api, onSelect]);
|
|
60
|
+
return (_jsx(CarouselContext.Provider, { value: {
|
|
61
|
+
carouselRef,
|
|
62
|
+
api: api,
|
|
63
|
+
opts,
|
|
64
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
65
|
+
scrollPrev,
|
|
66
|
+
scrollNext,
|
|
67
|
+
canScrollPrev,
|
|
68
|
+
canScrollNext,
|
|
69
|
+
}, children: _jsx("div", { onKeyDownCapture: handleKeyDown, className: cn("relative", className), role: "region", "aria-roledescription": "carousel", "data-slot": "carousel", ...props, children: children }) }));
|
|
70
|
+
}
|
|
71
|
+
function CarouselContent({ className, ...props }) {
|
|
72
|
+
const { carouselRef, orientation } = useCarousel();
|
|
73
|
+
return (_jsx("div", { ref: carouselRef, className: "overflow-hidden", "data-slot": "carousel-content", children: _jsx("div", { className: cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className), ...props }) }));
|
|
74
|
+
}
|
|
75
|
+
function CarouselItem({ className, ...props }) {
|
|
76
|
+
const { orientation } = useCarousel();
|
|
77
|
+
return (_jsx("div", { role: "group", "aria-roledescription": "slide", "data-slot": "carousel-item", className: cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className), ...props }));
|
|
78
|
+
}
|
|
79
|
+
function CarouselPrevious({ className, variant = "outline", size = "icon", ...props }) {
|
|
80
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
81
|
+
return (_jsxs(Button, { "data-slot": "carousel-previous", variant: variant, size: size, className: cn("absolute size-8 rounded-full", orientation === "horizontal"
|
|
82
|
+
? "top-1/2 -left-12 -translate-y-1/2"
|
|
83
|
+
: "-top-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollPrev, onClick: scrollPrev, ...props, children: [_jsx(ArrowLeft, {}), _jsx("span", { className: "sr-only", children: "Previous slide" })] }));
|
|
84
|
+
}
|
|
85
|
+
function CarouselNext({ className, variant = "outline", size = "icon", ...props }) {
|
|
86
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
87
|
+
return (_jsxs(Button, { "data-slot": "carousel-next", variant: variant, size: size, className: cn("absolute size-8 rounded-full", orientation === "horizontal"
|
|
88
|
+
? "top-1/2 -right-12 -translate-y-1/2"
|
|
89
|
+
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollNext, onClick: scrollNext, ...props, children: [_jsx(ArrowRight, {}), _jsx("span", { className: "sr-only", children: "Next slide" })] }));
|
|
90
|
+
}
|
|
91
|
+
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { TooltipValueType } from "recharts";
|
|
3
|
+
import * as RechartsPrimitive from "recharts";
|
|
4
|
+
declare const THEMES: {
|
|
5
|
+
readonly light: "";
|
|
6
|
+
readonly dark: ":where(.dark *):not(:where(.dark .light, .dark .light *))";
|
|
7
|
+
};
|
|
8
|
+
type TooltipNameType = number | string;
|
|
9
|
+
export type ChartConfig = Record<string, {
|
|
10
|
+
label?: React.ReactNode;
|
|
11
|
+
icon?: React.ComponentType;
|
|
12
|
+
} & ({
|
|
13
|
+
color?: string;
|
|
14
|
+
theme?: never;
|
|
15
|
+
} | {
|
|
16
|
+
color?: never;
|
|
17
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
18
|
+
})>;
|
|
19
|
+
declare function ChartContainer({ id, className, children, config, initialDimension, ...props }: React.ComponentProps<"div"> & {
|
|
20
|
+
config: ChartConfig;
|
|
21
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
22
|
+
initialDimension?: {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
}): React.JSX.Element;
|
|
27
|
+
declare const ChartStyle: ({ id, config }: {
|
|
28
|
+
id: string;
|
|
29
|
+
config: ChartConfig;
|
|
30
|
+
}) => React.JSX.Element | null;
|
|
31
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
32
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
|
|
33
|
+
hideLabel?: boolean;
|
|
34
|
+
hideIndicator?: boolean;
|
|
35
|
+
indicator?: "line" | "dot" | "dashed";
|
|
36
|
+
nameKey?: string;
|
|
37
|
+
labelKey?: string;
|
|
38
|
+
} & Omit<RechartsPrimitive.DefaultTooltipContentProps<TooltipValueType, TooltipNameType>, "accessibilityLayer">): React.JSX.Element | null;
|
|
39
|
+
declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
|
|
40
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & {
|
|
41
|
+
hideIcon?: boolean;
|
|
42
|
+
nameKey?: string;
|
|
43
|
+
} & RechartsPrimitive.DefaultLegendContentProps): React.JSX.Element | null;
|
|
44
|
+
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, };
|
|
45
|
+
//# sourceMappingURL=chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../src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AAiB,EACjB,aAAqB,EACrB,KAAK,EACL,cAAc,EACd,cAAc,EACd,SAAS,EACT,KAAK,EACL,OAAO,EACP,QAAQ,GACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,OAAO,CAAC,GACvD,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,IAAI,CACN,iBAAiB,CAAC,0BAA0B,CAC1C,gBAAgB,EAChB,eAAe,CAChB,EACD,oBAAoB,CACrB,4BA6HF;AAED,QAAA,MAAM,WAAW,sGAA2B,CAAC;AAE7C,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,QAAgB,EAChB,OAAO,EACP,aAAwB,EACxB,OAAO,GACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,iBAAiB,CAAC,yBAAyB,4BA4C9C;AAuCD,OAAO,EACL,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,mBAAmB,GACpB,CAAC"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import * as RechartsPrimitive from "recharts";
|
|
6
|
+
// Format: { THEME_NAME: SELECTOR_SUFFIX }, appended to the chart's own selector so a `.light` island inside `.dark` stays light
|
|
7
|
+
const THEMES = {
|
|
8
|
+
light: "",
|
|
9
|
+
dark: ":where(.dark *):not(:where(.dark .light, .dark .light *))",
|
|
10
|
+
};
|
|
11
|
+
const INITIAL_DIMENSION = { width: 320, height: 200 };
|
|
12
|
+
const ChartContext = React.createContext(null);
|
|
13
|
+
function useChart() {
|
|
14
|
+
const context = React.useContext(ChartContext);
|
|
15
|
+
if (!context) {
|
|
16
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
17
|
+
}
|
|
18
|
+
return context;
|
|
19
|
+
}
|
|
20
|
+
function ChartContainer({ id, className, children, config, initialDimension = INITIAL_DIMENSION, ...props }) {
|
|
21
|
+
const uniqueId = React.useId();
|
|
22
|
+
const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}`;
|
|
23
|
+
return (_jsx(ChartContext.Provider, { value: { config }, children: _jsxs("div", { "data-slot": "chart", "data-chart": chartId, className: cn("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", className), ...props, children: [_jsx(ChartStyle, { id: chartId, config: config }), _jsx(RechartsPrimitive.ResponsiveContainer, { initialDimension: initialDimension, children: children })] }) }));
|
|
24
|
+
}
|
|
25
|
+
const ChartStyle = ({ id, config }) => {
|
|
26
|
+
const colorConfig = Object.entries(config).filter(([, config]) => config.theme ?? config.color);
|
|
27
|
+
if (!colorConfig.length) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return (_jsx("style", { dangerouslySetInnerHTML: {
|
|
31
|
+
__html: Object.entries(THEMES)
|
|
32
|
+
.map(([theme, suffix]) => `
|
|
33
|
+
[data-chart=${id}]${suffix} {
|
|
34
|
+
${colorConfig
|
|
35
|
+
.map(([key, itemConfig]) => {
|
|
36
|
+
const color = itemConfig.theme?.[theme] ??
|
|
37
|
+
itemConfig.color;
|
|
38
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
39
|
+
})
|
|
40
|
+
.join("\n")}
|
|
41
|
+
}
|
|
42
|
+
`)
|
|
43
|
+
.join("\n"),
|
|
44
|
+
} }));
|
|
45
|
+
};
|
|
46
|
+
const ChartTooltip = RechartsPrimitive.Tooltip;
|
|
47
|
+
function ChartTooltipContent({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }) {
|
|
48
|
+
const { config } = useChart();
|
|
49
|
+
const tooltipLabel = React.useMemo(() => {
|
|
50
|
+
if (hideLabel || !payload?.length) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
const [item] = payload;
|
|
54
|
+
const key = `${labelKey ?? item?.dataKey ?? item?.name ?? "value"}`;
|
|
55
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
56
|
+
const value = !labelKey && typeof label === "string"
|
|
57
|
+
? (config[label]?.label ?? label)
|
|
58
|
+
: itemConfig?.label;
|
|
59
|
+
if (labelFormatter) {
|
|
60
|
+
return (_jsx("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) }));
|
|
61
|
+
}
|
|
62
|
+
if (!value) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return _jsx("div", { className: cn("font-medium", labelClassName), children: value });
|
|
66
|
+
}, [
|
|
67
|
+
label,
|
|
68
|
+
labelFormatter,
|
|
69
|
+
payload,
|
|
70
|
+
hideLabel,
|
|
71
|
+
labelClassName,
|
|
72
|
+
config,
|
|
73
|
+
labelKey,
|
|
74
|
+
]);
|
|
75
|
+
if (!active || !payload?.length) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
79
|
+
return (_jsxs("div", { className: cn("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl", className), children: [!nestLabel ? tooltipLabel : null, _jsx("div", { className: "grid gap-1.5", children: payload
|
|
80
|
+
.filter((item) => item.type !== "none")
|
|
81
|
+
.map((item, index) => {
|
|
82
|
+
const key = `${nameKey ?? item.name ?? item.dataKey ?? "value"}`;
|
|
83
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
84
|
+
const indicatorColor = color ?? item.payload?.fill ?? item.color;
|
|
85
|
+
return (_jsx("div", { className: cn("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", indicator === "dot" && "items-center"), children: formatter && item?.value !== undefined && item.name ? (formatter(item.value, item.name, item, index, item.payload)) : (_jsxs(_Fragment, { children: [itemConfig?.icon ? (_jsx(itemConfig.icon, {})) : (!hideIndicator && (_jsx("div", { className: cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
86
|
+
"h-2.5 w-2.5": indicator === "dot",
|
|
87
|
+
"w-1": indicator === "line",
|
|
88
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
|
|
89
|
+
"my-0.5": nestLabel && indicator === "dashed",
|
|
90
|
+
}), style: {
|
|
91
|
+
"--color-bg": indicatorColor,
|
|
92
|
+
"--color-border": indicatorColor,
|
|
93
|
+
} }))), _jsxs("div", { className: cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"), children: [_jsxs("div", { className: "grid gap-1.5", children: [nestLabel ? tooltipLabel : null, _jsx("span", { className: "text-muted-foreground", children: itemConfig?.label ?? item.name })] }), item.value !== undefined && item.value !== null && (_jsx("span", { className: "text-foreground font-mono font-medium tabular-nums", children: typeof item.value === "number"
|
|
94
|
+
? item.value.toLocaleString()
|
|
95
|
+
: String(item.value) }))] })] })) }, index));
|
|
96
|
+
}) })] }));
|
|
97
|
+
}
|
|
98
|
+
const ChartLegend = RechartsPrimitive.Legend;
|
|
99
|
+
function ChartLegendContent({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey, }) {
|
|
100
|
+
const { config } = useChart();
|
|
101
|
+
if (!payload?.length) {
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
return (_jsx("div", { className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload
|
|
105
|
+
.filter((item) => item.type !== "none")
|
|
106
|
+
.map((item, index) => {
|
|
107
|
+
const key = `${nameKey ?? item.dataKey ?? "value"}`;
|
|
108
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
109
|
+
return (_jsxs("div", { className: cn("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"), children: [itemConfig?.icon && !hideIcon ? (_jsx(itemConfig.icon, {})) : (_jsx("div", { className: "h-2 w-2 shrink-0 rounded-[2px]", style: {
|
|
110
|
+
backgroundColor: item.color,
|
|
111
|
+
} })), itemConfig?.label] }, index));
|
|
112
|
+
}) }));
|
|
113
|
+
}
|
|
114
|
+
// Helper to extract item config from a payload.
|
|
115
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
116
|
+
if (typeof payload !== "object" || payload === null) {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
const payloadPayload = "payload" in payload &&
|
|
120
|
+
typeof payload.payload === "object" &&
|
|
121
|
+
payload.payload !== null
|
|
122
|
+
? payload.payload
|
|
123
|
+
: undefined;
|
|
124
|
+
let configLabelKey = key;
|
|
125
|
+
if (key in payload &&
|
|
126
|
+
typeof payload[key] === "string") {
|
|
127
|
+
configLabelKey = payload[key];
|
|
128
|
+
}
|
|
129
|
+
else if (payloadPayload &&
|
|
130
|
+
key in payloadPayload &&
|
|
131
|
+
typeof payloadPayload[key] === "string") {
|
|
132
|
+
configLabelKey = payloadPayload[key];
|
|
133
|
+
}
|
|
134
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
135
|
+
}
|
|
136
|
+
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
export { Checkbox };
|
|
5
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/primitives/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,qBAkBrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { CheckIcon } from "lucide-react";
|
|
4
|
+
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
5
|
+
function Checkbox({ className, ...props }) {
|
|
6
|
+
return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", className: cn("peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "grid place-content-center text-current transition-none", children: _jsx(CheckIcon, { className: "size-3.5" }) }) }));
|
|
7
|
+
}
|
|
8
|
+
export { Checkbox };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
3
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react").JSX.Element;
|
|
4
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react").JSX.Element;
|
|
5
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react").JSX.Element;
|
|
6
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
7
|
+
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/primitives/collapsible.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE/D,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,+BAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,+BAOtE;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,+BAOtE;AAED,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
4
|
+
function Collapsible({ ...props }) {
|
|
5
|
+
return _jsx(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
|
|
6
|
+
}
|
|
7
|
+
function CollapsibleTrigger({ ...props }) {
|
|
8
|
+
return (_jsx(CollapsiblePrimitive.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...props }));
|
|
9
|
+
}
|
|
10
|
+
function CollapsibleContent({ ...props }) {
|
|
11
|
+
return (_jsx(CollapsiblePrimitive.CollapsibleContent, { "data-slot": "collapsible-content", ...props }));
|
|
12
|
+
}
|
|
13
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Dialog } from "./dialog";
|
|
4
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
|
|
5
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
|
|
12
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
|
|
13
|
+
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
|
|
14
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
|
|
15
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
|
|
16
|
+
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): React.JSX.Element;
|
|
17
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
18
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
|
|
19
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/primitives/command.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAGnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,MAAM,EAKP,MAAM,UAAU,CAAC;AAElB,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,qBAW/C;AAED,iBAAS,aAAa,CAAC,EACrB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,qBAkBA;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAiBrD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAWpD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAQrD;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAWrD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,qBAQzD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAWpD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAW9B;AAED,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { SearchIcon } from "lucide-react";
|
|
5
|
+
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "./dialog";
|
|
6
|
+
function Command({ className, ...props }) {
|
|
7
|
+
return (_jsx(CommandPrimitive, { "data-slot": "command", className: cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className), ...props }));
|
|
8
|
+
}
|
|
9
|
+
function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = true, ...props }) {
|
|
10
|
+
return (_jsx(Dialog, { ...props, children: _jsxs(DialogContent, { className: cn("overflow-hidden p-0", className), showCloseButton: showCloseButton, children: [_jsxs(DialogHeader, { className: "sr-only", children: [_jsx(DialogTitle, { children: title }), _jsx(DialogDescription, { children: description })] }), _jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: children })] }) }));
|
|
11
|
+
}
|
|
12
|
+
function CommandInput({ className, ...props }) {
|
|
13
|
+
return (_jsxs("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [_jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }), _jsx(CommandPrimitive.Input, { "data-slot": "command-input", className: cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className), ...props })] }));
|
|
14
|
+
}
|
|
15
|
+
function CommandList({ className, ...props }) {
|
|
16
|
+
return (_jsx(CommandPrimitive.List, { "data-slot": "command-list", className: cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className), ...props }));
|
|
17
|
+
}
|
|
18
|
+
function CommandEmpty({ ...props }) {
|
|
19
|
+
return (_jsx(CommandPrimitive.Empty, { "data-slot": "command-empty", className: "py-6 text-center text-sm", ...props }));
|
|
20
|
+
}
|
|
21
|
+
function CommandGroup({ className, ...props }) {
|
|
22
|
+
return (_jsx(CommandPrimitive.Group, { "data-slot": "command-group", className: cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className), ...props }));
|
|
23
|
+
}
|
|
24
|
+
function CommandSeparator({ className, ...props }) {
|
|
25
|
+
return (_jsx(CommandPrimitive.Separator, { "data-slot": "command-separator", className: cn("bg-border -mx-1 h-px", className), ...props }));
|
|
26
|
+
}
|
|
27
|
+
function CommandItem({ className, ...props }) {
|
|
28
|
+
return (_jsx(CommandPrimitive.Item, { "data-slot": "command-item", className: cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_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=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props }));
|
|
29
|
+
}
|
|
30
|
+
function CommandShortcut({ className, ...props }) {
|
|
31
|
+
return (_jsx("span", { "data-slot": "command-shortcut", className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className), ...props }));
|
|
32
|
+
}
|
|
33
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function ContextMenuTrigger({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): React.JSX.Element;
|
|
6
|
+
declare function ContextMenuPortal({ children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): React.JSX.Element;
|
|
7
|
+
declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): React.JSX.Element;
|
|
8
|
+
declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): React.JSX.Element;
|
|
9
|
+
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): React.JSX.Element;
|
|
13
|
+
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content>): React.JSX.Element;
|
|
14
|
+
declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
variant?: "default" | "destructive";
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): React.JSX.Element;
|
|
19
|
+
declare function ContextMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>): React.JSX.Element;
|
|
20
|
+
declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
21
|
+
inset?: boolean;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
|
+
declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): React.JSX.Element;
|
|
24
|
+
declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
25
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
|
|
26
|
+
//# sourceMappingURL=context-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/primitives/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,qBAExD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,qBAI3D;AAED,iBAAS,gBAAgB,CAAC,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,qBAIzD;AAED,iBAAS,iBAAiB,CAAC,EACzB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,qBAM1D;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,GAAG,CAAC,qBAEvD;AAED,iBAAS,qBAAqB,CAAC,EAC7B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,qBAO9D;A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,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,qBAQ7D;AAED,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAW9B;AAED,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GACnB,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
4
|
+
import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
|
|
5
|
+
import { PortalTheme } from "../components/ThemeIsland/ThemeIsland";
|
|
6
|
+
function ContextMenu({ ...props }) {
|
|
7
|
+
return _jsx(ContextMenuPrimitive.Root, { "data-slot": "context-menu", ...props });
|
|
8
|
+
}
|
|
9
|
+
function ContextMenuTrigger({ ...props }) {
|
|
10
|
+
return (_jsx(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", ...props }));
|
|
11
|
+
}
|
|
12
|
+
function ContextMenuGroup({ ...props }) {
|
|
13
|
+
return (_jsx(ContextMenuPrimitive.Group, { "data-slot": "context-menu-group", ...props }));
|
|
14
|
+
}
|
|
15
|
+
function ContextMenuPortal({ children, ...props }) {
|
|
16
|
+
return (_jsx(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props, children: _jsx(PortalTheme, { children: children }) }));
|
|
17
|
+
}
|
|
18
|
+
function ContextMenuSub({ ...props }) {
|
|
19
|
+
return _jsx(ContextMenuPrimitive.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
20
|
+
}
|
|
21
|
+
function ContextMenuRadioGroup({ ...props }) {
|
|
22
|
+
return (_jsx(ContextMenuPrimitive.RadioGroup, { "data-slot": "context-menu-radio-group", ...props }));
|
|
23
|
+
}
|
|
24
|
+
function ContextMenuSubTrigger({ className, inset, children, ...props }) {
|
|
25
|
+
return (_jsxs(ContextMenuPrimitive.SubTrigger, { "data-slot": "context-menu-sub-trigger", "data-inset": inset, className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto" })] }));
|
|
26
|
+
}
|
|
27
|
+
function ContextMenuSubContent({ className, ...props }) {
|
|
28
|
+
return (_jsx(ContextMenuPrimitive.SubContent, { "data-slot": "context-menu-sub-content", className: cn("bg-popover text-popover-foreground 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className), ...props }));
|
|
29
|
+
}
|
|
30
|
+
function ContextMenuContent({ className, ...props }) {
|
|
31
|
+
return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(PortalTheme, { children: _jsx(ContextMenuPrimitive.Content, { "data-slot": "context-menu-content", className: cn("bg-popover text-popover-foreground 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className), ...props }) }) }));
|
|
32
|
+
}
|
|
33
|
+
function ContextMenuItem({ className, inset, variant = "default", ...props }) {
|
|
34
|
+
return (_jsx(ContextMenuPrimitive.Item, { "data-slot": "context-menu-item", "data-inset": inset, "data-variant": variant, className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive! 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", className), ...props }));
|
|
35
|
+
}
|
|
36
|
+
function ContextMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
37
|
+
return (_jsxs(ContextMenuPrimitive.CheckboxItem, { "data-slot": "context-menu-checkbox-item", className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm 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", className), checked: checked, ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, { className: "size-4" }) }) }), children] }));
|
|
38
|
+
}
|
|
39
|
+
function ContextMenuRadioItem({ className, children, ...props }) {
|
|
40
|
+
return (_jsxs(ContextMenuPrimitive.RadioItem, { "data-slot": "context-menu-radio-item", className: cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm 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", className), ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(CircleIcon, { className: "size-2 fill-current" }) }) }), children] }));
|
|
41
|
+
}
|
|
42
|
+
function ContextMenuLabel({ className, inset, ...props }) {
|
|
43
|
+
return (_jsx(ContextMenuPrimitive.Label, { "data-slot": "context-menu-label", "data-inset": inset, className: cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className), ...props }));
|
|
44
|
+
}
|
|
45
|
+
function ContextMenuSeparator({ className, ...props }) {
|
|
46
|
+
return (_jsx(ContextMenuPrimitive.Separator, { "data-slot": "context-menu-separator", className: cn("bg-border -mx-1 my-1 h-px", className), ...props }));
|
|
47
|
+
}
|
|
48
|
+
function ContextMenuShortcut({ className, ...props }) {
|
|
49
|
+
return (_jsx("span", { "data-slot": "context-menu-shortcut", className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className), ...props }));
|
|
50
|
+
}
|
|
51
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function DialogPortal({ children, ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
|
|
6
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
|
|
7
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
|
|
8
|
+
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
12
|
+
declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
|
|
13
|
+
showCloseButton?: boolean;
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
|
|
16
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
|
|
17
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
18
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/primitives/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,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AE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,qBAQ1D;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { XIcon } from "lucide-react";
|
|
4
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
5
|
+
import { PortalTheme } from "../components/ThemeIsland/ThemeIsland";
|
|
6
|
+
import { Button } from "./button";
|
|
7
|
+
function Dialog({ ...props }) {
|
|
8
|
+
return _jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
9
|
+
}
|
|
10
|
+
function DialogTrigger({ ...props }) {
|
|
11
|
+
return _jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
12
|
+
}
|
|
13
|
+
function DialogPortal({ children, ...props }) {
|
|
14
|
+
return (_jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props, children: _jsx(PortalTheme, { children: children }) }));
|
|
15
|
+
}
|
|
16
|
+
function DialogClose({ ...props }) {
|
|
17
|
+
return _jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
18
|
+
}
|
|
19
|
+
function DialogOverlay({ className, ...props }) {
|
|
20
|
+
return (_jsx(DialogPrimitive.Overlay, { "data-slot": "dialog-overlay", className: cn("data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className), ...props }));
|
|
21
|
+
}
|
|
22
|
+
function DialogContent({ className, children, showCloseButton = true, ...props }) {
|
|
23
|
+
return (_jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { "data-slot": "dialog-content", className: cn("bg-background data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg", className), ...props, children: [children, showCloseButton && (_jsxs(DialogPrimitive.Close, { "data-slot": "dialog-close", className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [_jsx(XIcon, {}), _jsx("span", { className: "sr-only", children: "Close" })] }))] })] }));
|
|
24
|
+
}
|
|
25
|
+
function DialogHeader({ className, ...props }) {
|
|
26
|
+
return (_jsx("div", { "data-slot": "dialog-header", className: cn("flex flex-col gap-2 text-center sm:text-left", className), ...props }));
|
|
27
|
+
}
|
|
28
|
+
function DialogFooter({ className, showCloseButton = false, children, ...props }) {
|
|
29
|
+
return (_jsxs("div", { "data-slot": "dialog-footer", className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props, children: [children, showCloseButton && (_jsx(DialogPrimitive.Close, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Close" }) }))] }));
|
|
30
|
+
}
|
|
31
|
+
function DialogTitle({ className, ...props }) {
|
|
32
|
+
return (_jsx(DialogPrimitive.Title, { "data-slot": "dialog-title", className: cn("text-lg leading-none font-semibold", className), ...props }));
|
|
33
|
+
}
|
|
34
|
+
function DialogDescription({ className, ...props }) {
|
|
35
|
+
return (_jsx(DialogPrimitive.Description, { "data-slot": "dialog-description", className: cn("text-muted-foreground text-sm", className), ...props }));
|
|
36
|
+
}
|
|
37
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Drawer as DrawerPrimitive } from "vaul";
|
|
3
|
+
declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function DrawerPortal({ children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
|
|
6
|
+
declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): React.JSX.Element;
|
|
7
|
+
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): React.JSX.Element;
|
|
8
|
+
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>): React.JSX.Element;
|
|
9
|
+
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
10
|
+
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
|
+
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): React.JSX.Element;
|
|
12
|
+
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): React.JSX.Element;
|
|
13
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, };
|
|
14
|
+
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/primitives/drawer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,M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