@nextworks/blocks-core 0.1.0-alpha.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 +29 -0
- package/dist/components/AppProviders.server.d.ts +4 -0
- package/dist/components/AppProviders.server.d.ts.map +1 -0
- package/dist/components/AppProviders.server.js +60 -0
- package/dist/components/enhanced-theme-provider.d.ts +25 -0
- package/dist/components/enhanced-theme-provider.d.ts.map +1 -0
- package/dist/components/enhanced-theme-provider.js +105 -0
- package/dist/components/theme-provider.d.ts +12 -0
- package/dist/components/theme-provider.d.ts.map +1 -0
- package/dist/components/theme-provider.js +6 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/lib/themes.d.ts +32 -0
- package/dist/lib/themes.d.ts.map +1 -0
- package/dist/lib/themes.js +396 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +5 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +3 -0
- package/dist/ui/alert-dialog.d.ts +15 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert-dialog.js +59 -0
- package/dist/ui/brand-node.d.ts +43 -0
- package/dist/ui/brand-node.d.ts.map +1 -0
- package/dist/ui/brand-node.js +37 -0
- package/dist/ui/button.d.ts +16 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +71 -0
- package/dist/ui/card.d.ts +10 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +46 -0
- package/dist/ui/checkbox.d.ts +5 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/checkbox.js +24 -0
- package/dist/ui/cta-button.d.ts +40 -0
- package/dist/ui/cta-button.d.ts.map +1 -0
- package/dist/ui/cta-button.js +47 -0
- package/dist/ui/dropdown-menu.d.ts +28 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +72 -0
- package/dist/ui/feature-card.d.ts +32 -0
- package/dist/ui/feature-card.d.ts.map +1 -0
- package/dist/ui/feature-card.js +14 -0
- package/dist/ui/input.d.ts +5 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +24 -0
- package/dist/ui/label.d.ts +6 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +25 -0
- package/dist/ui/pricing-card.d.ts +50 -0
- package/dist/ui/pricing-card.d.ts.map +1 -0
- package/dist/ui/pricing-card.js +22 -0
- package/dist/ui/select.d.ts +5 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +20 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton.js +17 -0
- package/dist/ui/switch.d.ts +9 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +24 -0
- package/dist/ui/table.d.ts +9 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +39 -0
- package/dist/ui/testimonial-card.d.ts +35 -0
- package/dist/ui/testimonial-card.d.ts.map +1 -0
- package/dist/ui/testimonial-card.js +36 -0
- package/dist/ui/textarea.d.ts +5 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/textarea.js +24 -0
- package/dist/ui/theme-selector.d.ts +9 -0
- package/dist/ui/theme-selector.d.ts.map +1 -0
- package/dist/ui/theme-selector.js +56 -0
- package/dist/ui/theme-toggle.d.ts +15 -0
- package/dist/ui/theme-toggle.d.ts.map +1 -0
- package/dist/ui/theme-toggle.js +19 -0
- package/dist/ui/toaster.d.ts +2 -0
- package/dist/ui/toaster.d.ts.map +1 -0
- package/dist/ui/toaster.js +6 -0
- package/package.json +43 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
15
|
+
import { cva } from "class-variance-authority";
|
|
16
|
+
import { cn } from "../lib/utils";
|
|
17
|
+
const buttonVariants = cva("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",
|
|
21
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 shadow-xs",
|
|
22
|
+
outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
|
|
23
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",
|
|
24
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
25
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
29
|
+
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
|
|
30
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
31
|
+
icon: "size-9",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
variant: "default",
|
|
36
|
+
size: "default",
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
const Button = React.forwardRef((_a, ref) => {
|
|
40
|
+
var _b;
|
|
41
|
+
var { className, variant, size, asChild = false, unstyled = false, forceInlineVars = false } = _a, props = __rest(_a, ["className", "variant", "size", "asChild", "unstyled", "forceInlineVars"]);
|
|
42
|
+
const Comp = asChild ? Slot : "button";
|
|
43
|
+
// Use caller-provided style; only inject inline var-driven colors when explicitly requested
|
|
44
|
+
const incomingStyle = (_b = props.style) !== null && _b !== void 0 ? _b : undefined;
|
|
45
|
+
const finalStyle = forceInlineVars && !unstyled
|
|
46
|
+
? Object.assign(Object.assign({}, incomingStyle), { color: "var(--btn-fg)", backgroundColor: "var(--btn-bg)", borderColor: "var(--btn-border)", "--tw-ring-color": "var(--btn-ring)" }) : incomingStyle;
|
|
47
|
+
// Only enable CSS variable hooks when explicitly requested via inline vars
|
|
48
|
+
// or when the caller sets any [--btn-*] classes in className.
|
|
49
|
+
const wantsVarHooks = !unstyled &&
|
|
50
|
+
(forceInlineVars ||
|
|
51
|
+
(typeof className === "string" && className.includes("[--btn-")));
|
|
52
|
+
return (_jsx(Comp, Object.assign({ ref: ref, "data-slot": "button", className: unstyled
|
|
53
|
+
? cn("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap disabled:pointer-events-none disabled:opacity-50", className)
|
|
54
|
+
: cn(buttonVariants({ variant, size }), wantsVarHooks && [
|
|
55
|
+
// Color var hooks (apply only when CSS vars are provided)
|
|
56
|
+
"text-[var(--btn-fg)]",
|
|
57
|
+
"bg-[var(--btn-bg)]",
|
|
58
|
+
"hover:bg-[var(--btn-hover-bg)]",
|
|
59
|
+
"hover:text-[var(--btn-hover-fg)]",
|
|
60
|
+
// explicit dark variants to compete with dark: utilities from variants like outline
|
|
61
|
+
"dark:bg-[var(--btn-bg)]",
|
|
62
|
+
"dark:hover:bg-[var(--btn-hover-bg)]",
|
|
63
|
+
"dark:hover:text-[var(--btn-hover-fg)]",
|
|
64
|
+
// Focus ring and border hooks
|
|
65
|
+
"focus-visible:ring-[var(--btn-ring)]",
|
|
66
|
+
"border-[var(--btn-border)]",
|
|
67
|
+
"dark:border-[var(--btn-border)]",
|
|
68
|
+
], className), style: finalStyle }, props)));
|
|
69
|
+
});
|
|
70
|
+
Button.displayName = "Button";
|
|
71
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
10
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAcjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQvE;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,CAAC"}
|
package/dist/ui/card.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { cn } from "../lib/utils";
|
|
14
|
+
function Card(_a) {
|
|
15
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
16
|
+
return (_jsx("div", Object.assign({ "data-slot": "card", className: cn(
|
|
17
|
+
// Structural + token fallbacks
|
|
18
|
+
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
19
|
+
// CSS variable hooks for preset-first overrides
|
|
20
|
+
"border-[var(--card-border)] bg-[var(--card-bg)] text-[var(--card-fg)] shadow-[var(--card-shadow)]", className) }, props)));
|
|
21
|
+
}
|
|
22
|
+
function CardHeader(_a) {
|
|
23
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
24
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-header", className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className) }, props)));
|
|
25
|
+
}
|
|
26
|
+
function CardTitle(_a) {
|
|
27
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
28
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-title", className: cn("leading-none font-semibold", className) }, props)));
|
|
29
|
+
}
|
|
30
|
+
function CardDescription(_a) {
|
|
31
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
32
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-description", className: cn("text-muted-foreground text-sm", className) }, props)));
|
|
33
|
+
}
|
|
34
|
+
function CardAction(_a) {
|
|
35
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
36
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-action", className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className) }, props)));
|
|
37
|
+
}
|
|
38
|
+
function CardContent(_a) {
|
|
39
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
40
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-content", className: cn("px-6", className) }, props)));
|
|
41
|
+
}
|
|
42
|
+
function CardFooter(_a) {
|
|
43
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
44
|
+
return (_jsx("div", Object.assign({ "data-slot": "card-footer", className: cn("flex items-center px-6 [.border-t]:pt-6", className) }, props)));
|
|
45
|
+
}
|
|
46
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement>;
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export { Checkbox };
|
|
5
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAExE,QAAA,MAAM,QAAQ,wFAqBb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import { cn } from "../lib/utils";
|
|
15
|
+
const Checkbox = React.forwardRef((_a, ref) => {
|
|
16
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
17
|
+
// Use the native accent-color where supported for consistent checkbox fill
|
|
18
|
+
const style = { accentColor: "var(--primary)" }; // fallback; modern browsers will use this accent color
|
|
19
|
+
return (_jsx("input", Object.assign({ type: "checkbox", ref: ref, style: style, className: cn(
|
|
20
|
+
// Keep layout small but add smooth transitions and focus ring
|
|
21
|
+
"h-4 w-4 rounded border-[var(--input-border)] bg-[var(--input-bg)] text-[var(--input-fg)] transition-colors duration-200 ease-in-out", "focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 focus-visible:outline-none", "disabled:cursor-not-allowed disabled:opacity-50", className) }, props)));
|
|
22
|
+
});
|
|
23
|
+
Checkbox.displayName = "Checkbox";
|
|
24
|
+
export { Checkbox };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface CTAButtonProps {
|
|
3
|
+
/** Optional id on the root anchor/button */
|
|
4
|
+
id?: string;
|
|
5
|
+
/** Additional className merged with the button slot */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** onClick handler for the CTA button (anchor element) */
|
|
8
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
9
|
+
/** Label text for the CTA button */
|
|
10
|
+
ctaButtonLabel?: string;
|
|
11
|
+
/** URL or anchor target for the CTA button */
|
|
12
|
+
ctaButtonHref?: string;
|
|
13
|
+
/** Deprecated style shorthands (kept for backward-compat). Prefer button.className */
|
|
14
|
+
ctaButtonTextColor?: string;
|
|
15
|
+
ctaButtonBgColor?: string;
|
|
16
|
+
ctaButtonBorderColor?: string;
|
|
17
|
+
ctaButtonDarkMode?: {
|
|
18
|
+
color?: string;
|
|
19
|
+
bg?: string;
|
|
20
|
+
borderColor?: string;
|
|
21
|
+
};
|
|
22
|
+
ctaButtonHoverStyle?: {
|
|
23
|
+
color?: string;
|
|
24
|
+
bg?: string;
|
|
25
|
+
borderColor?: string;
|
|
26
|
+
transform?: string;
|
|
27
|
+
boxShadow?: string;
|
|
28
|
+
};
|
|
29
|
+
/** Slot for shadcn Button styling */
|
|
30
|
+
button?: {
|
|
31
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
32
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
33
|
+
className?: string;
|
|
34
|
+
/** Forward-through escape hatch matching Button */
|
|
35
|
+
unstyled?: boolean;
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare function CTAButton({ id, className, onClick, ctaButtonLabel, ctaButtonHref, ctaButtonTextColor, ctaButtonBgColor, ctaButtonBorderColor, ctaButtonDarkMode, ctaButtonHoverStyle, button, }: CTAButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
40
|
+
//# sourceMappingURL=cta-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cta-button.d.ts","sourceRoot":"","sources":["../../src/ui/cta-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD,oCAAoC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,mBAAmB,CAAC,EAAE;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,qCAAqC;IACrC,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EACJ,SAAS,GACT,aAAa,GACb,SAAS,GACT,WAAW,GACX,OAAO,GACP,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;QACxC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,mDAAmD;QACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC7B,CAAC;CACH;AAED,wBAAgB,SAAS,CAAC,EACxB,EAAE,EACF,SAAS,EACT,OAAO,EACP,cAA8B,EAC9B,aAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,MAKC,GACF,EAAE,cAAc,kDAqDhB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { Button } from "../ui/button";
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
|
+
export function CTAButton({ id, className, onClick, ctaButtonLabel = "Get Started", ctaButtonHref = "#contact", ctaButtonTextColor, ctaButtonBgColor, ctaButtonBorderColor, ctaButtonDarkMode, ctaButtonHoverStyle, button = {
|
|
7
|
+
variant: "default",
|
|
8
|
+
size: "lg",
|
|
9
|
+
className: "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",
|
|
10
|
+
}, }) {
|
|
11
|
+
if (!ctaButtonLabel)
|
|
12
|
+
return null;
|
|
13
|
+
// Build dynamic classes from deprecated style props (kept for compatibility)
|
|
14
|
+
const dynamic = [];
|
|
15
|
+
if (ctaButtonTextColor)
|
|
16
|
+
dynamic.push(`text-${ctaButtonTextColor}`);
|
|
17
|
+
if (ctaButtonBgColor)
|
|
18
|
+
dynamic.push(`bg-${ctaButtonBgColor}`);
|
|
19
|
+
if (ctaButtonBorderColor)
|
|
20
|
+
dynamic.push(`border-${ctaButtonBorderColor}`);
|
|
21
|
+
if (ctaButtonHoverStyle) {
|
|
22
|
+
const { color, bg, borderColor, transform, boxShadow } = ctaButtonHoverStyle;
|
|
23
|
+
if (color)
|
|
24
|
+
dynamic.push(`hover:text-${color}`);
|
|
25
|
+
if (bg)
|
|
26
|
+
dynamic.push(`hover:bg-${bg}`);
|
|
27
|
+
if (borderColor)
|
|
28
|
+
dynamic.push(`hover:border-${borderColor}`);
|
|
29
|
+
if (transform)
|
|
30
|
+
dynamic.push(`hover:${transform}`);
|
|
31
|
+
if (boxShadow)
|
|
32
|
+
dynamic.push(`hover:${boxShadow}`);
|
|
33
|
+
}
|
|
34
|
+
if (ctaButtonDarkMode) {
|
|
35
|
+
const { color, bg, borderColor } = ctaButtonDarkMode;
|
|
36
|
+
if (color)
|
|
37
|
+
dynamic.push(`dark:text-${color}`);
|
|
38
|
+
if (bg)
|
|
39
|
+
dynamic.push(`dark:bg-${bg}`);
|
|
40
|
+
if (borderColor)
|
|
41
|
+
dynamic.push(`dark:border-${borderColor}`);
|
|
42
|
+
}
|
|
43
|
+
const finalClassName = cn(
|
|
44
|
+
// Allow var hooks to flow through to Button
|
|
45
|
+
"border-[var(--btn-border)] focus-visible:ring-[var(--btn-ring)]", button.className, className, dynamic.join(" "));
|
|
46
|
+
return (_jsx(Button, Object.assign({ asChild: true, variant: button.variant, size: button.size, className: finalClassName }, (button.unstyled ? { unstyled: true } : {}), { style: button.style, children: _jsx(Link, { id: id, href: ctaButtonHref || "#", onClick: onClick, "aria-label": ctaButtonLabel, children: ctaButtonLabel }) })));
|
|
47
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
7
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
8
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const DropdownMenuShortcut: {
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
28
|
+
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/ui/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAKvE,QAAA,MAAM,YAAY,mDAA6B,CAAC;AAEhD,QAAA,MAAM,mBAAmB,0HAAgC,CAAC;AAE1D,QAAA,MAAM,iBAAiB,qHAA8B,CAAC;AAEtD,QAAA,MAAM,kBAAkB,yDAA+B,CAAC;AAExD,QAAA,MAAM,eAAe,sDAA4B,CAAC;AAElD,QAAA,MAAM,sBAAsB,0HAAmC,CAAC;AAEhE,QAAA,MAAM,sBAAsB;YAGhB,OAAO;wCAejB,CAAC;AAIH,QAAA,MAAM,sBAAsB,6KAY1B,CAAC;AAIH,QAAA,MAAM,mBAAmB,0KAevB,CAAC;AAGH,QAAA,MAAM,gBAAgB;YAGV,OAAO;wCAYjB,CAAC;AAGH,QAAA,MAAM,wBAAwB,+KAoB5B,CAAC;AAIH,QAAA,MAAM,qBAAqB,4KAmBzB,CAAC;AAGH,QAAA,MAAM,iBAAiB;YAGX,OAAO;wCAYjB,CAAC;AAGH,QAAA,MAAM,qBAAqB,4KASzB,CAAC;AAGH,QAAA,MAAM,oBAAoB;8BAGvB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAOvC,CAAC;AAGF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,GACvB,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
16
|
+
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
17
|
+
import { cn } from "../lib/utils";
|
|
18
|
+
const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
19
|
+
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
20
|
+
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
21
|
+
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
22
|
+
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
23
|
+
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
24
|
+
const DropdownMenuSubTrigger = React.forwardRef((_a, ref) => {
|
|
25
|
+
var { className, inset, children } = _a, props = __rest(_a, ["className", "inset", "children"]);
|
|
26
|
+
return (_jsxs(DropdownMenuPrimitive.SubTrigger, Object.assign({ ref: ref, className: cn("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", inset && "pl-8", className) }, props, { children: [children, _jsx(ChevronRight, { className: "ml-auto h-4 w-4" })] })));
|
|
27
|
+
});
|
|
28
|
+
DropdownMenuSubTrigger.displayName =
|
|
29
|
+
DropdownMenuPrimitive.SubTrigger.displayName;
|
|
30
|
+
const DropdownMenuSubContent = React.forwardRef((_a, ref) => {
|
|
31
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
32
|
+
return (_jsx(DropdownMenuPrimitive.SubContent, Object.assign({ ref: ref, className: cn("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", className) }, props)));
|
|
33
|
+
});
|
|
34
|
+
DropdownMenuSubContent.displayName =
|
|
35
|
+
DropdownMenuPrimitive.SubContent.displayName;
|
|
36
|
+
const DropdownMenuContent = React.forwardRef((_a, ref) => {
|
|
37
|
+
var { className, sideOffset = 4 } = _a, props = __rest(_a, ["className", "sideOffset"]);
|
|
38
|
+
return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, Object.assign({ ref: ref, sideOffset: sideOffset, className: cn("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", className) }, props)) }));
|
|
39
|
+
});
|
|
40
|
+
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
41
|
+
const DropdownMenuItem = React.forwardRef((_a, ref) => {
|
|
42
|
+
var { className, inset } = _a, props = __rest(_a, ["className", "inset"]);
|
|
43
|
+
return (_jsx(DropdownMenuPrimitive.Item, Object.assign({ ref: ref, className: cn("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", inset && "pl-8", className) }, props)));
|
|
44
|
+
});
|
|
45
|
+
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
46
|
+
const DropdownMenuCheckboxItem = React.forwardRef((_a, ref) => {
|
|
47
|
+
var { className, children, checked } = _a, props = __rest(_a, ["className", "children", "checked"]);
|
|
48
|
+
return (_jsxs(DropdownMenuPrimitive.CheckboxItem, Object.assign({ ref: ref, className: cn("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", className), checked: checked }, props, { children: [_jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Check, { className: "h-4 w-4" }) }) }), children] })));
|
|
49
|
+
});
|
|
50
|
+
DropdownMenuCheckboxItem.displayName =
|
|
51
|
+
DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
52
|
+
const DropdownMenuRadioItem = React.forwardRef((_a, ref) => {
|
|
53
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
54
|
+
return (_jsxs(DropdownMenuPrimitive.RadioItem, Object.assign({ ref: ref, className: cn("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", className) }, props, { children: [_jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }), children] })));
|
|
55
|
+
});
|
|
56
|
+
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
57
|
+
const DropdownMenuLabel = React.forwardRef((_a, ref) => {
|
|
58
|
+
var { className, inset } = _a, props = __rest(_a, ["className", "inset"]);
|
|
59
|
+
return (_jsx(DropdownMenuPrimitive.Label, Object.assign({ ref: ref, className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className) }, props)));
|
|
60
|
+
});
|
|
61
|
+
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
62
|
+
const DropdownMenuSeparator = React.forwardRef((_a, ref) => {
|
|
63
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
64
|
+
return (_jsx(DropdownMenuPrimitive.Separator, Object.assign({ ref: ref, className: cn("bg-muted -mx-1 my-1 h-px", className) }, props)));
|
|
65
|
+
});
|
|
66
|
+
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
67
|
+
const DropdownMenuShortcut = (_a) => {
|
|
68
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
69
|
+
return (_jsx("span", Object.assign({ className: cn("ml-auto text-xs tracking-widest opacity-60", className) }, props)));
|
|
70
|
+
};
|
|
71
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
72
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface FeatureCardProps {
|
|
2
|
+
/** Optional id and root className */
|
|
3
|
+
id?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Image source URL for the feature card image */
|
|
6
|
+
cardImageSrc: string;
|
|
7
|
+
/** Alt text for the feature card image */
|
|
8
|
+
cardImageAlt: string;
|
|
9
|
+
/** Heading text displayed on the feature card */
|
|
10
|
+
cardHeadingText: string;
|
|
11
|
+
/** Subheading or description text on the feature card */
|
|
12
|
+
cardSubheadingText: string;
|
|
13
|
+
/** Styling configuration objects */
|
|
14
|
+
card?: {
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
image?: {
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
heading?: {
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
subheading?: {
|
|
24
|
+
className?: string;
|
|
25
|
+
};
|
|
26
|
+
/** Next/Image quality (1-100) */
|
|
27
|
+
imageQuality?: number;
|
|
28
|
+
/** Next/Image sizes attribute */
|
|
29
|
+
imageSizes?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function FeatureCard({ id, className, cardImageSrc, cardImageAlt, cardHeadingText, cardSubheadingText, card, image, heading, subheading, imageQuality, imageSizes, }: FeatureCardProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
//# sourceMappingURL=feature-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-card.d.ts","sourceRoot":"","sources":["../../src/ui/feature-card.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,kDAAkD;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,eAAe,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,kBAAkB,EAAE,MAAM,CAAC;IAE3B,oCAAoC;IACpC,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,UAAU,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,IAGC,EACD,KAAqC,EACrC,OAGC,EACD,UAGC,EACD,YAAiB,EACjB,UAAsE,GACvE,EAAE,gBAAgB,2CAoClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Image from "next/image";
|
|
4
|
+
import { Card, CardContent } from "../ui/card";
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
|
+
export function FeatureCard({ id, className, cardImageSrc, cardImageAlt, cardHeadingText, cardSubheadingText, card = {
|
|
7
|
+
className: "h-full transition-all duration-200 hover:shadow-lg bg-card text-card-foreground border rounded-md border-border",
|
|
8
|
+
}, image = { className: "object-cover" }, heading = {
|
|
9
|
+
className: "mb-2 text-lg font-semibold text-foreground text-[var(--card-title-fg)]",
|
|
10
|
+
}, subheading = {
|
|
11
|
+
className: "text-sm leading-relaxed text-muted-foreground text-[var(--card-muted-fg)]",
|
|
12
|
+
}, imageQuality = 85, imageSizes = "(max-width: 480px) 100vw, (max-width: 768px) 50vw, 33vw", }) {
|
|
13
|
+
return (_jsx(Card, { id: id, className: cn("group", card.className, className), children: _jsxs(CardContent, { className: "relative flex h-full flex-col p-6", children: [_jsx("div", { className: "pointer-events-none absolute inset-0 -z-10 opacity-0 transition-opacity duration-500 group-hover:opacity-100", children: _jsx("div", { className: "absolute -top-10 -left-10 h-40 w-40 rounded-full bg-white/5 blur-2xl dark:bg-white/10" }) }), _jsx("div", { className: "relative mb-4 h-48 w-full overflow-hidden rounded-md", children: cardImageSrc ? (_jsx(Image, { src: cardImageSrc, alt: cardImageAlt || "Feature image", fill: true, className: cn("transition-transform duration-500 group-hover:scale-105", image.className), quality: imageQuality, sizes: imageSizes })) : (_jsx("div", { className: "bg-muted text-muted-foreground flex h-full w-full items-center justify-center", children: _jsx("span", { className: "text-xs", children: "No image" }) })) }), _jsxs("div", { className: "flex flex-1 flex-col", children: [_jsx("h3", { className: heading.className, children: cardHeadingText }), _jsx("p", { className: subheading.className, children: cardSubheadingText })] })] }) }));
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAErE,QAAA,MAAM,KAAK,qFAiBV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/ui/input.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import { cn } from "../lib/utils";
|
|
15
|
+
const Input = React.forwardRef((_a, ref) => {
|
|
16
|
+
var { className, type } = _a, props = __rest(_a, ["className", "type"]);
|
|
17
|
+
return (_jsx("input", Object.assign({ type: type, className: cn(
|
|
18
|
+
// Base structural + token fallbacks
|
|
19
|
+
"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/30 dark:aria-invalid:focus-visible:ring-destructive/40 flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
20
|
+
// CSS variable hooks (preset-first). When vars are unset, these are ignored and tokens above apply.
|
|
21
|
+
"focus-visible:ring-offset-background border-[var(--input-border)] bg-[var(--input-bg)] text-[var(--input-fg)] placeholder:text-[var(--input-placeholder)] focus-visible:ring-[var(--input-focus-ring,var(--ring))] focus-visible:ring-offset-2", className), ref: ref }, props)));
|
|
22
|
+
});
|
|
23
|
+
Input.displayName = "Input";
|
|
24
|
+
export { Input };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
+
export { Label };
|
|
6
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/ui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAQlE,QAAA,MAAM,KAAK,4PAeT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/ui/label.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
15
|
+
import { cva } from "class-variance-authority";
|
|
16
|
+
import { cn } from "../lib/utils";
|
|
17
|
+
const labelVariants = cva("text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
18
|
+
const Label = React.forwardRef((_a, ref) => {
|
|
19
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
20
|
+
return (_jsx(LabelPrimitive.Root, Object.assign({ ref: ref, className: cn(labelVariants(),
|
|
21
|
+
// Optional color override via var; falls back to inherited color when unset
|
|
22
|
+
"text-[var(--label-fg)]", className) }, props)));
|
|
23
|
+
});
|
|
24
|
+
Label.displayName = LabelPrimitive.Root.displayName;
|
|
25
|
+
export { Label };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface PricingCardProps {
|
|
3
|
+
/** Optional id and root className */
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Header text/title of the pricing plan */
|
|
7
|
+
pricingCardTitle?: string;
|
|
8
|
+
/** Price text for the pricing plan */
|
|
9
|
+
pricingCardPrice?: string;
|
|
10
|
+
/** Array of features included in the pricing plan */
|
|
11
|
+
pricingCardFeatures?: string[];
|
|
12
|
+
/** Label text for the pricing call-to-action button */
|
|
13
|
+
pricingCardCTALabel?: string;
|
|
14
|
+
/** URL/href for the pricing call-to-action button */
|
|
15
|
+
pricingCardCTAHref?: string;
|
|
16
|
+
/** Whether this is the featured/popular plan */
|
|
17
|
+
isPopular?: boolean;
|
|
18
|
+
/** Styling configuration objects */
|
|
19
|
+
card?: {
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
header?: {
|
|
23
|
+
className?: string;
|
|
24
|
+
};
|
|
25
|
+
title?: {
|
|
26
|
+
className?: string;
|
|
27
|
+
};
|
|
28
|
+
price?: {
|
|
29
|
+
className?: string;
|
|
30
|
+
};
|
|
31
|
+
features?: {
|
|
32
|
+
className?: string;
|
|
33
|
+
};
|
|
34
|
+
featureItem?: {
|
|
35
|
+
className?: string;
|
|
36
|
+
};
|
|
37
|
+
cta?: {
|
|
38
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
|
|
39
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
40
|
+
className?: string;
|
|
41
|
+
/** Forward-through escape hatch matching Button */
|
|
42
|
+
unstyled?: boolean;
|
|
43
|
+
style?: React.CSSProperties;
|
|
44
|
+
};
|
|
45
|
+
popularBadge?: {
|
|
46
|
+
className?: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export declare function PricingCard({ id, className, pricingCardTitle, pricingCardPrice, pricingCardFeatures, pricingCardCTALabel, pricingCardCTAHref, isPopular, card, header, title, price, features, featureItem, cta, popularBadge, }: PricingCardProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
//# sourceMappingURL=pricing-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing-card.d.ts","sourceRoot":"","sources":["../../src/ui/pricing-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qDAAqD;IACrD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,oCAAoC;IACpC,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9B,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChC,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,WAAW,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrC,GAAG,CAAC,EAAE;QACJ,OAAO,CAAC,EACJ,SAAS,GACT,aAAa,GACb,SAAS,GACT,WAAW,GACX,OAAO,GACP,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;QACxC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,mDAAmD;QACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC7B,CAAC;IACF,YAAY,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACvC;AAED,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,SAAS,EACT,gBAA+B,EAC/B,gBAA0B,EAC1B,mBAA6D,EAC7D,mBAAmC,EACnC,kBAA+B,EAC/B,SAAiB,EACjB,IAGC,EACD,MAAgE,EAChE,KAA+D,EAC/D,KAAgE,EAChE,QAAyC,EACzC,WAEC,EACD,GAKC,EACD,YAGC,GACF,EAAE,gBAAgB,2CAsClB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { Button } from "../ui/button";
|
|
5
|
+
import { Card } from "../ui/card";
|
|
6
|
+
import { cn } from "../lib/utils";
|
|
7
|
+
import { Check } from "lucide-react";
|
|
8
|
+
export function PricingCard({ id, className, pricingCardTitle = "Basic Plan", pricingCardPrice = "$9.99", pricingCardFeatures = ["Feature 1", "Feature 2", "Feature 3"], pricingCardCTALabel = "Select Plan", pricingCardCTAHref = "#contact", isPopular = false, card = {
|
|
9
|
+
className: "relative bg-card text-card-foreground border border-border rounded-lg shadow-md hover:shadow-lg transition-shadow duration-200",
|
|
10
|
+
}, header = { className: "p-6 text-center border-b border-border" }, title = { className: "text-xl font-bold text-foreground mb-2" }, price = { className: "text-3xl font-bold text-foreground mb-4" }, features = { className: "p-6 space-y-3" }, featureItem = {
|
|
11
|
+
className: "flex items-center text-muted-foreground text-sm",
|
|
12
|
+
}, cta = {
|
|
13
|
+
variant: "default",
|
|
14
|
+
size: "lg",
|
|
15
|
+
className: "w-full 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",
|
|
16
|
+
}, popularBadge = {
|
|
17
|
+
className: "absolute -top-3 left-1/2 transform -translate-x-1/2 bg-primary text-primary-foreground px-4 py-1 rounded-full text-sm font-medium",
|
|
18
|
+
}, }) {
|
|
19
|
+
return (_jsxs(Card, { id: id, className: cn(card.className, className, "rounded-lg"), children: [isPopular && _jsx("div", { className: popularBadge.className, children: "Most Popular" }), _jsxs("div", { className: header.className, children: [_jsx("h3", { className: title.className, children: pricingCardTitle }), _jsx("div", { className: price.className, children: pricingCardPrice })] }), _jsx("div", { className: features.className, children: pricingCardFeatures === null || pricingCardFeatures === void 0 ? void 0 : pricingCardFeatures.map((feature, index) => (_jsxs("div", { className: featureItem.className, children: [_jsx(Check, { className: "mr-3 h-4 w-4 flex-shrink-0 text-green-500" }), _jsx("span", { children: feature })] }, index))) }), _jsx("div", { className: "p-6 pt-0", children: _jsx(Button, Object.assign({ asChild: true, variant: cta.variant, size: cta.size, className: cn(
|
|
20
|
+
// Allow presets to take over with var hooks from Button
|
|
21
|
+
"border-[var(--btn-border)] focus-visible:ring-[var(--btn-ring)]", cta.className, "hover:animate-none motion-safe:animate-none") }, (cta.unstyled ? { unstyled: true } : {}), { style: cta.style, children: _jsx(Link, { href: pricingCardCTAHref || "#", children: pricingCardCTALabel }) })) })] }));
|
|
22
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement>;
|
|
3
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
4
|
+
export { Select };
|
|
5
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/ui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAExE,QAAA,MAAM,MAAM,uFAgBX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|