nextworks 0.2.0-alpha.11 → 0.2.0-alpha.13
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 +283 -282
- package/dist/cli_manifests/blocks_manifest.json +198 -175
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_QUICKSTART.md +101 -100
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_README.md +105 -104
- package/dist/kits/blocks/.nextworks/docs/THEME_GUIDE.md +1 -1
- package/dist/kits/blocks/app/templates/aiworkflow/PresetThemeVars.tsx +58 -0
- package/dist/kits/blocks/app/templates/aiworkflow/README.md +46 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/CTA.tsx +44 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Contact.tsx +105 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/FAQ.tsx +63 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Features.tsx +65 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Footer.tsx +109 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Hero.tsx +636 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Navbar.tsx +90 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Pricing.tsx +86 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/ProcessTimeline.tsx +103 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Testimonials.tsx +56 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/TrustBadges.tsx +59 -0
- package/dist/kits/blocks/app/templates/aiworkflow/page.tsx +43 -0
- package/dist/kits/blocks/app/templates/digitalagency/PresetThemeVars.tsx +80 -80
- package/dist/kits/blocks/app/templates/digitalagency/README.md +42 -42
- package/dist/kits/blocks/app/templates/digitalagency/components/Pricing.tsx +114 -114
- package/dist/kits/blocks/app/templates/digitalagency/components/Process.tsx +59 -59
- package/dist/kits/blocks/app/templates/digitalagency/components/Services.tsx +55 -55
- package/dist/kits/blocks/app/templates/digitalagency/components/Team.tsx +28 -28
- package/dist/kits/blocks/app/templates/digitalagency/components/Testimonials.tsx +65 -65
- package/dist/kits/blocks/app/templates/digitalagency/page.tsx +38 -38
- package/dist/kits/blocks/app/templates/gallery/PresetThemeVars.tsx +84 -84
- package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +75 -75
- package/dist/kits/blocks/app/templates/productlaunch/README.md +62 -62
- package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +84 -84
- package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +50 -50
- package/dist/kits/blocks/app/templates/productlaunch/components/Contact.tsx +231 -231
- package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +86 -86
- package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +83 -83
- package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +132 -132
- package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +88 -88
- package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +116 -116
- package/dist/kits/blocks/app/templates/productlaunch/components/Pricing.tsx +106 -106
- package/dist/kits/blocks/app/templates/productlaunch/components/ProcessTimeline.tsx +110 -110
- package/dist/kits/blocks/app/templates/productlaunch/components/ServicesGrid.tsx +68 -68
- package/dist/kits/blocks/app/templates/productlaunch/components/Team.tsx +104 -104
- package/dist/kits/blocks/app/templates/productlaunch/components/Testimonials.tsx +90 -90
- package/dist/kits/blocks/app/templates/productlaunch/components/TrustBadges.tsx +76 -76
- package/dist/kits/blocks/app/templates/productlaunch/page.tsx +43 -43
- package/dist/kits/blocks/app/templates/saasdashboard/PresetThemeVars.tsx +80 -80
- package/dist/kits/blocks/app/templates/saasdashboard/README.md +44 -44
- package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +129 -129
- package/dist/kits/blocks/app/templates/saasdashboard/components/Dashboard.tsx +293 -293
- package/dist/kits/blocks/app/templates/saasdashboard/components/FAQ.tsx +55 -55
- package/dist/kits/blocks/app/templates/saasdashboard/components/Features.tsx +90 -90
- package/dist/kits/blocks/app/templates/saasdashboard/components/Footer.tsx +77 -77
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +104 -104
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +126 -126
- package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +117 -117
- package/dist/kits/blocks/app/templates/saasdashboard/components/Pricing.tsx +90 -90
- package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +96 -96
- package/dist/kits/blocks/app/templates/saasdashboard/components/Testimonials.tsx +72 -72
- package/dist/kits/blocks/app/templates/saasdashboard/components/TrustBadges.tsx +53 -53
- package/dist/kits/blocks/app/templates/saasdashboard/page.tsx +39 -39
- package/dist/kits/blocks/components/enhanced-theme-provider.tsx +195 -195
- package/dist/kits/blocks/components/providers/BlocksAppProviders.tsx +27 -27
- package/dist/kits/blocks/components/sections/About.tsx +291 -291
- package/dist/kits/blocks/components/sections/CTA.tsx +257 -257
- package/dist/kits/blocks/components/sections/Contact.tsx +267 -267
- package/dist/kits/blocks/components/sections/FAQ.tsx +214 -214
- package/dist/kits/blocks/components/sections/Features.tsx +268 -268
- package/dist/kits/blocks/components/sections/Footer.tsx +302 -302
- package/dist/kits/blocks/components/sections/HeroMotion.tsx +308 -308
- package/dist/kits/blocks/components/sections/HeroOverlay.tsx +358 -358
- package/dist/kits/blocks/components/sections/HeroProductDemo.tsx +236 -0
- package/dist/kits/blocks/components/sections/HeroSplit.tsx +352 -352
- package/dist/kits/blocks/components/sections/Navbar.tsx +350 -350
- package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +549 -549
- package/dist/kits/blocks/components/sections/Pricing.tsx +264 -264
- package/dist/kits/blocks/components/sections/ProcessTimeline.tsx +325 -325
- package/dist/kits/blocks/components/sections/ServicesGrid.tsx +210 -210
- package/dist/kits/blocks/components/sections/Team.tsx +309 -309
- package/dist/kits/blocks/components/sections/Testimonials.tsx +158 -158
- package/dist/kits/blocks/components/sections/TrustBadges.tsx +162 -162
- package/dist/kits/blocks/components/sections/product-demo/ApprovalInboxPanel.tsx +125 -0
- package/dist/kits/blocks/components/sections/product-demo/DemoStage.tsx +397 -0
- package/dist/kits/blocks/components/sections/product-demo/DemoWindow.tsx +128 -0
- package/dist/kits/blocks/components/sections/product-demo/KnowledgePanel.tsx +127 -0
- package/dist/kits/blocks/components/sections/product-demo/RunConsolePanel.tsx +150 -0
- package/dist/kits/blocks/components/sections/product-demo/WorkflowStudioPanel.tsx +191 -0
- package/dist/kits/blocks/components/sections/product-demo/types.ts +193 -0
- package/dist/kits/blocks/components/theme-provider.tsx +1 -1
- package/dist/kits/blocks/components/ui/alert-dialog.tsx +134 -134
- package/dist/kits/blocks/components/ui/brand-node.tsx +121 -121
- package/dist/kits/blocks/components/ui/button.tsx +122 -122
- package/dist/kits/blocks/components/ui/card.tsx +95 -95
- package/dist/kits/blocks/components/ui/checkbox.tsx +30 -30
- package/dist/kits/blocks/components/ui/cta-button.tsx +125 -125
- package/dist/kits/blocks/components/ui/dropdown-menu.tsx +201 -201
- package/dist/kits/blocks/components/ui/feature-card.tsx +91 -91
- package/dist/kits/blocks/components/ui/input.tsx +27 -27
- package/dist/kits/blocks/components/ui/label.tsx +29 -29
- package/dist/kits/blocks/components/ui/pricing-card.tsx +120 -120
- package/dist/kits/blocks/components/ui/select.tsx +25 -25
- package/dist/kits/blocks/components/ui/skeleton.tsx +13 -13
- package/dist/kits/blocks/components/ui/table.tsx +98 -98
- package/dist/kits/blocks/components/ui/testimonial-card.tsx +108 -108
- package/dist/kits/blocks/components/ui/textarea.tsx +26 -26
- package/dist/kits/blocks/components/ui/theme-selector.tsx +243 -243
- package/dist/kits/blocks/components/ui/theme-toggle.tsx +74 -74
- package/dist/kits/blocks/components/ui/toaster.tsx +7 -7
- package/dist/kits/blocks/lib/themes.ts +400 -400
- package/dist/kits/blocks/lib/utils.ts +6 -6
- package/dist/kits/blocks/package-deps.json +3 -3
- package/package.json +1 -1
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
4
|
-
import Link from "next/link";
|
|
5
|
-
import { Button } from "@/components/ui/button";
|
|
6
|
-
import { cn } from "@/lib/utils";
|
|
7
|
-
|
|
8
|
-
export interface CTAButtonProps {
|
|
9
|
-
/** Optional id on the root anchor/button */
|
|
10
|
-
id?: string;
|
|
11
|
-
/** Additional className merged with the button slot */
|
|
12
|
-
className?: string;
|
|
13
|
-
|
|
14
|
-
/** onClick handler for the CTA button (anchor element) */
|
|
15
|
-
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
16
|
-
/** Label text for the CTA button */
|
|
17
|
-
ctaButtonLabel?: string;
|
|
18
|
-
/** URL or anchor target for the CTA button */
|
|
19
|
-
ctaButtonHref?: string;
|
|
20
|
-
|
|
21
|
-
/** Deprecated style shorthands (kept for backward-compat). Prefer button.className */
|
|
22
|
-
ctaButtonTextColor?: string;
|
|
23
|
-
ctaButtonBgColor?: string;
|
|
24
|
-
ctaButtonBorderColor?: string;
|
|
25
|
-
ctaButtonDarkMode?: {
|
|
26
|
-
color?: string;
|
|
27
|
-
bg?: string;
|
|
28
|
-
borderColor?: string;
|
|
29
|
-
};
|
|
30
|
-
ctaButtonHoverStyle?: {
|
|
31
|
-
color?: string;
|
|
32
|
-
bg?: string;
|
|
33
|
-
borderColor?: string;
|
|
34
|
-
transform?: string;
|
|
35
|
-
boxShadow?: string;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/** Slot for shadcn Button styling */
|
|
39
|
-
button?: {
|
|
40
|
-
variant?:
|
|
41
|
-
| "default"
|
|
42
|
-
| "destructive"
|
|
43
|
-
| "outline"
|
|
44
|
-
| "secondary"
|
|
45
|
-
| "ghost"
|
|
46
|
-
| "link";
|
|
47
|
-
size?: "default" | "sm" | "lg" | "icon";
|
|
48
|
-
className?: string;
|
|
49
|
-
/** Forward-through escape hatch matching Button */
|
|
50
|
-
unstyled?: boolean;
|
|
51
|
-
style?: React.CSSProperties;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function CTAButton({
|
|
56
|
-
id,
|
|
57
|
-
className,
|
|
58
|
-
onClick,
|
|
59
|
-
ctaButtonLabel = "Get Started",
|
|
60
|
-
ctaButtonHref = "#contact",
|
|
61
|
-
ctaButtonTextColor,
|
|
62
|
-
ctaButtonBgColor,
|
|
63
|
-
ctaButtonBorderColor,
|
|
64
|
-
ctaButtonDarkMode,
|
|
65
|
-
ctaButtonHoverStyle,
|
|
66
|
-
button = {
|
|
67
|
-
variant: "default",
|
|
68
|
-
size: "lg",
|
|
69
|
-
className:
|
|
70
|
-
"bg-primary text-primary-foreground hover:bg-primary/90 font-medium shadow-md hover:shadow-lg transition-all duration-200 hover:-translate-y-0.5",
|
|
71
|
-
},
|
|
72
|
-
}: CTAButtonProps) {
|
|
73
|
-
if (!ctaButtonLabel) return null;
|
|
74
|
-
|
|
75
|
-
// Build dynamic classes from deprecated style props (kept for compatibility)
|
|
76
|
-
const dynamic: string[] = [];
|
|
77
|
-
if (ctaButtonTextColor) dynamic.push(`text-${ctaButtonTextColor}`);
|
|
78
|
-
if (ctaButtonBgColor) dynamic.push(`bg-${ctaButtonBgColor}`);
|
|
79
|
-
if (ctaButtonBorderColor) dynamic.push(`border-${ctaButtonBorderColor}`);
|
|
80
|
-
|
|
81
|
-
if (ctaButtonHoverStyle) {
|
|
82
|
-
const { color, bg, borderColor, transform, boxShadow } =
|
|
83
|
-
ctaButtonHoverStyle;
|
|
84
|
-
if (color) dynamic.push(`hover:text-${color}`);
|
|
85
|
-
if (bg) dynamic.push(`hover:bg-${bg}`);
|
|
86
|
-
if (borderColor) dynamic.push(`hover:border-${borderColor}`);
|
|
87
|
-
if (transform) dynamic.push(`hover:${transform}`);
|
|
88
|
-
if (boxShadow) dynamic.push(`hover:${boxShadow}`);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (ctaButtonDarkMode) {
|
|
92
|
-
const { color, bg, borderColor } = ctaButtonDarkMode;
|
|
93
|
-
if (color) dynamic.push(`dark:text-${color}`);
|
|
94
|
-
if (bg) dynamic.push(`dark:bg-${bg}`);
|
|
95
|
-
if (borderColor) dynamic.push(`dark:border-${borderColor}`);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const finalClassName = cn(
|
|
99
|
-
// Allow var hooks to flow through to Button
|
|
100
|
-
"border-[var(--btn-border)] focus-visible:ring-[var(--btn-ring)]",
|
|
101
|
-
button.className,
|
|
102
|
-
className,
|
|
103
|
-
dynamic.join(" "),
|
|
104
|
-
);
|
|
105
|
-
|
|
106
|
-
return (
|
|
107
|
-
<Button
|
|
108
|
-
asChild
|
|
109
|
-
variant={button.variant}
|
|
110
|
-
size={button.size}
|
|
111
|
-
className={finalClassName}
|
|
112
|
-
{...(button.unstyled ? { unstyled: true } : {})}
|
|
113
|
-
style={button.style}
|
|
114
|
-
>
|
|
115
|
-
<Link
|
|
116
|
-
id={id}
|
|
117
|
-
href={ctaButtonHref || "#"}
|
|
118
|
-
onClick={onClick}
|
|
119
|
-
aria-label={ctaButtonLabel}
|
|
120
|
-
>
|
|
121
|
-
{ctaButtonLabel}
|
|
122
|
-
</Link>
|
|
123
|
-
</Button>
|
|
124
|
-
);
|
|
125
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Link from "next/link";
|
|
5
|
+
import { Button } from "@/components/ui/button";
|
|
6
|
+
import { cn } from "@/lib/utils";
|
|
7
|
+
|
|
8
|
+
export interface CTAButtonProps {
|
|
9
|
+
/** Optional id on the root anchor/button */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** Additional className merged with the button slot */
|
|
12
|
+
className?: string;
|
|
13
|
+
|
|
14
|
+
/** onClick handler for the CTA button (anchor element) */
|
|
15
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
16
|
+
/** Label text for the CTA button */
|
|
17
|
+
ctaButtonLabel?: string;
|
|
18
|
+
/** URL or anchor target for the CTA button */
|
|
19
|
+
ctaButtonHref?: string;
|
|
20
|
+
|
|
21
|
+
/** Deprecated style shorthands (kept for backward-compat). Prefer button.className */
|
|
22
|
+
ctaButtonTextColor?: string;
|
|
23
|
+
ctaButtonBgColor?: string;
|
|
24
|
+
ctaButtonBorderColor?: string;
|
|
25
|
+
ctaButtonDarkMode?: {
|
|
26
|
+
color?: string;
|
|
27
|
+
bg?: string;
|
|
28
|
+
borderColor?: string;
|
|
29
|
+
};
|
|
30
|
+
ctaButtonHoverStyle?: {
|
|
31
|
+
color?: string;
|
|
32
|
+
bg?: string;
|
|
33
|
+
borderColor?: string;
|
|
34
|
+
transform?: string;
|
|
35
|
+
boxShadow?: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** Slot for shadcn Button styling */
|
|
39
|
+
button?: {
|
|
40
|
+
variant?:
|
|
41
|
+
| "default"
|
|
42
|
+
| "destructive"
|
|
43
|
+
| "outline"
|
|
44
|
+
| "secondary"
|
|
45
|
+
| "ghost"
|
|
46
|
+
| "link";
|
|
47
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
48
|
+
className?: string;
|
|
49
|
+
/** Forward-through escape hatch matching Button */
|
|
50
|
+
unstyled?: boolean;
|
|
51
|
+
style?: React.CSSProperties;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CTAButton({
|
|
56
|
+
id,
|
|
57
|
+
className,
|
|
58
|
+
onClick,
|
|
59
|
+
ctaButtonLabel = "Get Started",
|
|
60
|
+
ctaButtonHref = "#contact",
|
|
61
|
+
ctaButtonTextColor,
|
|
62
|
+
ctaButtonBgColor,
|
|
63
|
+
ctaButtonBorderColor,
|
|
64
|
+
ctaButtonDarkMode,
|
|
65
|
+
ctaButtonHoverStyle,
|
|
66
|
+
button = {
|
|
67
|
+
variant: "default",
|
|
68
|
+
size: "lg",
|
|
69
|
+
className:
|
|
70
|
+
"bg-primary text-primary-foreground hover:bg-primary/90 font-medium shadow-md hover:shadow-lg transition-all duration-200 hover:-translate-y-0.5",
|
|
71
|
+
},
|
|
72
|
+
}: CTAButtonProps) {
|
|
73
|
+
if (!ctaButtonLabel) return null;
|
|
74
|
+
|
|
75
|
+
// Build dynamic classes from deprecated style props (kept for compatibility)
|
|
76
|
+
const dynamic: string[] = [];
|
|
77
|
+
if (ctaButtonTextColor) dynamic.push(`text-${ctaButtonTextColor}`);
|
|
78
|
+
if (ctaButtonBgColor) dynamic.push(`bg-${ctaButtonBgColor}`);
|
|
79
|
+
if (ctaButtonBorderColor) dynamic.push(`border-${ctaButtonBorderColor}`);
|
|
80
|
+
|
|
81
|
+
if (ctaButtonHoverStyle) {
|
|
82
|
+
const { color, bg, borderColor, transform, boxShadow } =
|
|
83
|
+
ctaButtonHoverStyle;
|
|
84
|
+
if (color) dynamic.push(`hover:text-${color}`);
|
|
85
|
+
if (bg) dynamic.push(`hover:bg-${bg}`);
|
|
86
|
+
if (borderColor) dynamic.push(`hover:border-${borderColor}`);
|
|
87
|
+
if (transform) dynamic.push(`hover:${transform}`);
|
|
88
|
+
if (boxShadow) dynamic.push(`hover:${boxShadow}`);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (ctaButtonDarkMode) {
|
|
92
|
+
const { color, bg, borderColor } = ctaButtonDarkMode;
|
|
93
|
+
if (color) dynamic.push(`dark:text-${color}`);
|
|
94
|
+
if (bg) dynamic.push(`dark:bg-${bg}`);
|
|
95
|
+
if (borderColor) dynamic.push(`dark:border-${borderColor}`);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const finalClassName = cn(
|
|
99
|
+
// Allow var hooks to flow through to Button
|
|
100
|
+
"border-[var(--btn-border)] focus-visible:ring-[var(--btn-ring)]",
|
|
101
|
+
button.className,
|
|
102
|
+
className,
|
|
103
|
+
dynamic.join(" "),
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
return (
|
|
107
|
+
<Button
|
|
108
|
+
asChild
|
|
109
|
+
variant={button.variant}
|
|
110
|
+
size={button.size}
|
|
111
|
+
className={finalClassName}
|
|
112
|
+
{...(button.unstyled ? { unstyled: true } : {})}
|
|
113
|
+
style={button.style}
|
|
114
|
+
>
|
|
115
|
+
<Link
|
|
116
|
+
id={id}
|
|
117
|
+
href={ctaButtonHref || "#"}
|
|
118
|
+
onClick={onClick}
|
|
119
|
+
aria-label={ctaButtonLabel}
|
|
120
|
+
>
|
|
121
|
+
{ctaButtonLabel}
|
|
122
|
+
</Link>
|
|
123
|
+
</Button>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
@@ -1,201 +1,201 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
|
|
5
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
6
|
-
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
7
|
-
|
|
8
|
-
import { cn } from "@/lib/utils";
|
|
9
|
-
|
|
10
|
-
const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
11
|
-
|
|
12
|
-
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
13
|
-
|
|
14
|
-
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
15
|
-
|
|
16
|
-
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
17
|
-
|
|
18
|
-
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
19
|
-
|
|
20
|
-
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
21
|
-
|
|
22
|
-
const DropdownMenuSubTrigger = React.forwardRef<
|
|
23
|
-
React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
|
|
24
|
-
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
25
|
-
inset?: boolean;
|
|
26
|
-
}
|
|
27
|
-
>(({ className, inset, children, ...props }, ref) => (
|
|
28
|
-
<DropdownMenuPrimitive.SubTrigger
|
|
29
|
-
ref={ref}
|
|
30
|
-
className={cn(
|
|
31
|
-
"focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",
|
|
32
|
-
inset && "pl-8",
|
|
33
|
-
className,
|
|
34
|
-
)}
|
|
35
|
-
{...props}
|
|
36
|
-
>
|
|
37
|
-
{children}
|
|
38
|
-
<ChevronRight className="ml-auto h-4 w-4" />
|
|
39
|
-
</DropdownMenuPrimitive.SubTrigger>
|
|
40
|
-
));
|
|
41
|
-
DropdownMenuSubTrigger.displayName =
|
|
42
|
-
DropdownMenuPrimitive.SubTrigger.displayName;
|
|
43
|
-
|
|
44
|
-
const DropdownMenuSubContent = React.forwardRef<
|
|
45
|
-
React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
|
|
46
|
-
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
|
|
47
|
-
>(({ className, ...props }, ref) => (
|
|
48
|
-
<DropdownMenuPrimitive.SubContent
|
|
49
|
-
ref={ref}
|
|
50
|
-
className={cn(
|
|
51
|
-
"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] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
52
|
-
className,
|
|
53
|
-
)}
|
|
54
|
-
{...props}
|
|
55
|
-
/>
|
|
56
|
-
));
|
|
57
|
-
DropdownMenuSubContent.displayName =
|
|
58
|
-
DropdownMenuPrimitive.SubContent.displayName;
|
|
59
|
-
|
|
60
|
-
const DropdownMenuContent = React.forwardRef<
|
|
61
|
-
React.ElementRef<typeof DropdownMenuPrimitive.Content>,
|
|
62
|
-
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
|
|
63
|
-
>(({ className, sideOffset = 4, ...props }, ref) => (
|
|
64
|
-
<DropdownMenuPrimitive.Portal>
|
|
65
|
-
<DropdownMenuPrimitive.Content
|
|
66
|
-
ref={ref}
|
|
67
|
-
sideOffset={sideOffset}
|
|
68
|
-
className={cn(
|
|
69
|
-
"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] overflow-hidden rounded-md border p-1 shadow-md",
|
|
70
|
-
className,
|
|
71
|
-
)}
|
|
72
|
-
{...props}
|
|
73
|
-
/>
|
|
74
|
-
</DropdownMenuPrimitive.Portal>
|
|
75
|
-
));
|
|
76
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
77
|
-
|
|
78
|
-
const DropdownMenuItem = React.forwardRef<
|
|
79
|
-
React.ElementRef<typeof DropdownMenuPrimitive.Item>,
|
|
80
|
-
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
|
|
81
|
-
inset?: boolean;
|
|
82
|
-
}
|
|
83
|
-
>(({ className, inset, ...props }, ref) => (
|
|
84
|
-
<DropdownMenuPrimitive.Item
|
|
85
|
-
ref={ref}
|
|
86
|
-
className={cn(
|
|
87
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
88
|
-
inset && "pl-8",
|
|
89
|
-
className,
|
|
90
|
-
)}
|
|
91
|
-
{...props}
|
|
92
|
-
/>
|
|
93
|
-
));
|
|
94
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
95
|
-
|
|
96
|
-
const DropdownMenuCheckboxItem = React.forwardRef<
|
|
97
|
-
React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
|
|
98
|
-
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
|
|
99
|
-
>(({ className, children, checked, ...props }, ref) => (
|
|
100
|
-
<DropdownMenuPrimitive.CheckboxItem
|
|
101
|
-
ref={ref}
|
|
102
|
-
className={cn(
|
|
103
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
104
|
-
className,
|
|
105
|
-
)}
|
|
106
|
-
checked={checked}
|
|
107
|
-
{...props}
|
|
108
|
-
>
|
|
109
|
-
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
110
|
-
<DropdownMenuPrimitive.ItemIndicator>
|
|
111
|
-
<Check className="h-4 w-4" />
|
|
112
|
-
</DropdownMenuPrimitive.ItemIndicator>
|
|
113
|
-
</span>
|
|
114
|
-
{children}
|
|
115
|
-
</DropdownMenuPrimitive.CheckboxItem>
|
|
116
|
-
));
|
|
117
|
-
DropdownMenuCheckboxItem.displayName =
|
|
118
|
-
DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
119
|
-
|
|
120
|
-
const DropdownMenuRadioItem = React.forwardRef<
|
|
121
|
-
React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
|
|
122
|
-
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
|
|
123
|
-
>(({ className, children, ...props }, ref) => (
|
|
124
|
-
<DropdownMenuPrimitive.RadioItem
|
|
125
|
-
ref={ref}
|
|
126
|
-
className={cn(
|
|
127
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
128
|
-
className,
|
|
129
|
-
)}
|
|
130
|
-
{...props}
|
|
131
|
-
>
|
|
132
|
-
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
133
|
-
<DropdownMenuPrimitive.ItemIndicator>
|
|
134
|
-
<Circle className="h-2 w-2 fill-current" />
|
|
135
|
-
</DropdownMenuPrimitive.ItemIndicator>
|
|
136
|
-
</span>
|
|
137
|
-
{children}
|
|
138
|
-
</DropdownMenuPrimitive.RadioItem>
|
|
139
|
-
));
|
|
140
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
141
|
-
|
|
142
|
-
const DropdownMenuLabel = React.forwardRef<
|
|
143
|
-
React.ElementRef<typeof DropdownMenuPrimitive.Label>,
|
|
144
|
-
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
|
|
145
|
-
inset?: boolean;
|
|
146
|
-
}
|
|
147
|
-
>(({ className, inset, ...props }, ref) => (
|
|
148
|
-
<DropdownMenuPrimitive.Label
|
|
149
|
-
ref={ref}
|
|
150
|
-
className={cn(
|
|
151
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
152
|
-
inset && "pl-8",
|
|
153
|
-
className,
|
|
154
|
-
)}
|
|
155
|
-
{...props}
|
|
156
|
-
/>
|
|
157
|
-
));
|
|
158
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
159
|
-
|
|
160
|
-
const DropdownMenuSeparator = React.forwardRef<
|
|
161
|
-
React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
|
|
162
|
-
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
|
|
163
|
-
>(({ className, ...props }, ref) => (
|
|
164
|
-
<DropdownMenuPrimitive.Separator
|
|
165
|
-
ref={ref}
|
|
166
|
-
className={cn("bg-muted -mx-1 my-1 h-px", className)}
|
|
167
|
-
{...props}
|
|
168
|
-
/>
|
|
169
|
-
));
|
|
170
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
171
|
-
|
|
172
|
-
const DropdownMenuShortcut = ({
|
|
173
|
-
className,
|
|
174
|
-
...props
|
|
175
|
-
}: React.HTMLAttributes<HTMLSpanElement>) => {
|
|
176
|
-
return (
|
|
177
|
-
<span
|
|
178
|
-
className={cn("ml-auto text-xs tracking-widest opacity-60", className)}
|
|
179
|
-
{...props}
|
|
180
|
-
/>
|
|
181
|
-
);
|
|
182
|
-
};
|
|
183
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
184
|
-
|
|
185
|
-
export {
|
|
186
|
-
DropdownMenu,
|
|
187
|
-
DropdownMenuTrigger,
|
|
188
|
-
DropdownMenuContent,
|
|
189
|
-
DropdownMenuItem,
|
|
190
|
-
DropdownMenuCheckboxItem,
|
|
191
|
-
DropdownMenuRadioItem,
|
|
192
|
-
DropdownMenuLabel,
|
|
193
|
-
DropdownMenuSeparator,
|
|
194
|
-
DropdownMenuShortcut,
|
|
195
|
-
DropdownMenuGroup,
|
|
196
|
-
DropdownMenuPortal,
|
|
197
|
-
DropdownMenuSub,
|
|
198
|
-
DropdownMenuSubContent,
|
|
199
|
-
DropdownMenuSubTrigger,
|
|
200
|
-
DropdownMenuRadioGroup,
|
|
201
|
-
};
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
6
|
+
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
7
|
+
|
|
8
|
+
import { cn } from "@/lib/utils";
|
|
9
|
+
|
|
10
|
+
const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
11
|
+
|
|
12
|
+
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
13
|
+
|
|
14
|
+
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
15
|
+
|
|
16
|
+
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
17
|
+
|
|
18
|
+
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
19
|
+
|
|
20
|
+
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
21
|
+
|
|
22
|
+
const DropdownMenuSubTrigger = React.forwardRef<
|
|
23
|
+
React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
|
|
24
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
25
|
+
inset?: boolean;
|
|
26
|
+
}
|
|
27
|
+
>(({ className, inset, children, ...props }, ref) => (
|
|
28
|
+
<DropdownMenuPrimitive.SubTrigger
|
|
29
|
+
ref={ref}
|
|
30
|
+
className={cn(
|
|
31
|
+
"focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",
|
|
32
|
+
inset && "pl-8",
|
|
33
|
+
className,
|
|
34
|
+
)}
|
|
35
|
+
{...props}
|
|
36
|
+
>
|
|
37
|
+
{children}
|
|
38
|
+
<ChevronRight className="ml-auto h-4 w-4" />
|
|
39
|
+
</DropdownMenuPrimitive.SubTrigger>
|
|
40
|
+
));
|
|
41
|
+
DropdownMenuSubTrigger.displayName =
|
|
42
|
+
DropdownMenuPrimitive.SubTrigger.displayName;
|
|
43
|
+
|
|
44
|
+
const DropdownMenuSubContent = React.forwardRef<
|
|
45
|
+
React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
|
|
46
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
|
|
47
|
+
>(({ className, ...props }, ref) => (
|
|
48
|
+
<DropdownMenuPrimitive.SubContent
|
|
49
|
+
ref={ref}
|
|
50
|
+
className={cn(
|
|
51
|
+
"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] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
52
|
+
className,
|
|
53
|
+
)}
|
|
54
|
+
{...props}
|
|
55
|
+
/>
|
|
56
|
+
));
|
|
57
|
+
DropdownMenuSubContent.displayName =
|
|
58
|
+
DropdownMenuPrimitive.SubContent.displayName;
|
|
59
|
+
|
|
60
|
+
const DropdownMenuContent = React.forwardRef<
|
|
61
|
+
React.ElementRef<typeof DropdownMenuPrimitive.Content>,
|
|
62
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
|
|
63
|
+
>(({ className, sideOffset = 4, ...props }, ref) => (
|
|
64
|
+
<DropdownMenuPrimitive.Portal>
|
|
65
|
+
<DropdownMenuPrimitive.Content
|
|
66
|
+
ref={ref}
|
|
67
|
+
sideOffset={sideOffset}
|
|
68
|
+
className={cn(
|
|
69
|
+
"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] overflow-hidden rounded-md border p-1 shadow-md",
|
|
70
|
+
className,
|
|
71
|
+
)}
|
|
72
|
+
{...props}
|
|
73
|
+
/>
|
|
74
|
+
</DropdownMenuPrimitive.Portal>
|
|
75
|
+
));
|
|
76
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
77
|
+
|
|
78
|
+
const DropdownMenuItem = React.forwardRef<
|
|
79
|
+
React.ElementRef<typeof DropdownMenuPrimitive.Item>,
|
|
80
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
|
|
81
|
+
inset?: boolean;
|
|
82
|
+
}
|
|
83
|
+
>(({ className, inset, ...props }, ref) => (
|
|
84
|
+
<DropdownMenuPrimitive.Item
|
|
85
|
+
ref={ref}
|
|
86
|
+
className={cn(
|
|
87
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
88
|
+
inset && "pl-8",
|
|
89
|
+
className,
|
|
90
|
+
)}
|
|
91
|
+
{...props}
|
|
92
|
+
/>
|
|
93
|
+
));
|
|
94
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
95
|
+
|
|
96
|
+
const DropdownMenuCheckboxItem = React.forwardRef<
|
|
97
|
+
React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
|
|
98
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
|
|
99
|
+
>(({ className, children, checked, ...props }, ref) => (
|
|
100
|
+
<DropdownMenuPrimitive.CheckboxItem
|
|
101
|
+
ref={ref}
|
|
102
|
+
className={cn(
|
|
103
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
104
|
+
className,
|
|
105
|
+
)}
|
|
106
|
+
checked={checked}
|
|
107
|
+
{...props}
|
|
108
|
+
>
|
|
109
|
+
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
110
|
+
<DropdownMenuPrimitive.ItemIndicator>
|
|
111
|
+
<Check className="h-4 w-4" />
|
|
112
|
+
</DropdownMenuPrimitive.ItemIndicator>
|
|
113
|
+
</span>
|
|
114
|
+
{children}
|
|
115
|
+
</DropdownMenuPrimitive.CheckboxItem>
|
|
116
|
+
));
|
|
117
|
+
DropdownMenuCheckboxItem.displayName =
|
|
118
|
+
DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
119
|
+
|
|
120
|
+
const DropdownMenuRadioItem = React.forwardRef<
|
|
121
|
+
React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
|
|
122
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
|
|
123
|
+
>(({ className, children, ...props }, ref) => (
|
|
124
|
+
<DropdownMenuPrimitive.RadioItem
|
|
125
|
+
ref={ref}
|
|
126
|
+
className={cn(
|
|
127
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
128
|
+
className,
|
|
129
|
+
)}
|
|
130
|
+
{...props}
|
|
131
|
+
>
|
|
132
|
+
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
133
|
+
<DropdownMenuPrimitive.ItemIndicator>
|
|
134
|
+
<Circle className="h-2 w-2 fill-current" />
|
|
135
|
+
</DropdownMenuPrimitive.ItemIndicator>
|
|
136
|
+
</span>
|
|
137
|
+
{children}
|
|
138
|
+
</DropdownMenuPrimitive.RadioItem>
|
|
139
|
+
));
|
|
140
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
141
|
+
|
|
142
|
+
const DropdownMenuLabel = React.forwardRef<
|
|
143
|
+
React.ElementRef<typeof DropdownMenuPrimitive.Label>,
|
|
144
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
|
|
145
|
+
inset?: boolean;
|
|
146
|
+
}
|
|
147
|
+
>(({ className, inset, ...props }, ref) => (
|
|
148
|
+
<DropdownMenuPrimitive.Label
|
|
149
|
+
ref={ref}
|
|
150
|
+
className={cn(
|
|
151
|
+
"px-2 py-1.5 text-sm font-semibold",
|
|
152
|
+
inset && "pl-8",
|
|
153
|
+
className,
|
|
154
|
+
)}
|
|
155
|
+
{...props}
|
|
156
|
+
/>
|
|
157
|
+
));
|
|
158
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
159
|
+
|
|
160
|
+
const DropdownMenuSeparator = React.forwardRef<
|
|
161
|
+
React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
|
|
162
|
+
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
|
|
163
|
+
>(({ className, ...props }, ref) => (
|
|
164
|
+
<DropdownMenuPrimitive.Separator
|
|
165
|
+
ref={ref}
|
|
166
|
+
className={cn("bg-muted -mx-1 my-1 h-px", className)}
|
|
167
|
+
{...props}
|
|
168
|
+
/>
|
|
169
|
+
));
|
|
170
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
171
|
+
|
|
172
|
+
const DropdownMenuShortcut = ({
|
|
173
|
+
className,
|
|
174
|
+
...props
|
|
175
|
+
}: React.HTMLAttributes<HTMLSpanElement>) => {
|
|
176
|
+
return (
|
|
177
|
+
<span
|
|
178
|
+
className={cn("ml-auto text-xs tracking-widest opacity-60", className)}
|
|
179
|
+
{...props}
|
|
180
|
+
/>
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
184
|
+
|
|
185
|
+
export {
|
|
186
|
+
DropdownMenu,
|
|
187
|
+
DropdownMenuTrigger,
|
|
188
|
+
DropdownMenuContent,
|
|
189
|
+
DropdownMenuItem,
|
|
190
|
+
DropdownMenuCheckboxItem,
|
|
191
|
+
DropdownMenuRadioItem,
|
|
192
|
+
DropdownMenuLabel,
|
|
193
|
+
DropdownMenuSeparator,
|
|
194
|
+
DropdownMenuShortcut,
|
|
195
|
+
DropdownMenuGroup,
|
|
196
|
+
DropdownMenuPortal,
|
|
197
|
+
DropdownMenuSub,
|
|
198
|
+
DropdownMenuSubContent,
|
|
199
|
+
DropdownMenuSubTrigger,
|
|
200
|
+
DropdownMenuRadioGroup,
|
|
201
|
+
};
|