skyloom-ui 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +291 -4
  2. package/dist/advanced.css +89 -0
  3. package/dist/components/accordion.js +3 -2
  4. package/dist/components/advanced-forms.d.ts +40 -0
  5. package/dist/components/advanced-forms.js +66 -0
  6. package/dist/components/advanced-layout.d.ts +29 -0
  7. package/dist/components/advanced-layout.js +49 -0
  8. package/dist/components/ai-status.d.ts +29 -0
  9. package/dist/components/ai-status.js +19 -0
  10. package/dist/components/alert.d.ts +1 -1
  11. package/dist/components/alert.js +1 -0
  12. package/dist/components/animated-tooltip.d.ts +10 -0
  13. package/dist/components/animated-tooltip.js +17 -0
  14. package/dist/components/badge.d.ts +4 -2
  15. package/dist/components/badge.js +7 -4
  16. package/dist/components/breadcrumb.d.ts +1 -1
  17. package/dist/components/breadcrumb.js +2 -1
  18. package/dist/components/button-group.d.ts +5 -0
  19. package/dist/components/button-group.js +8 -0
  20. package/dist/components/button.d.ts +4 -4
  21. package/dist/components/button.js +8 -3
  22. package/dist/components/card.d.ts +6 -1
  23. package/dist/components/card.js +13 -2
  24. package/dist/components/code-block.d.ts +31 -0
  25. package/dist/components/code-block.js +49 -0
  26. package/dist/components/compare.d.ts +17 -0
  27. package/dist/components/compare.js +39 -0
  28. package/dist/components/data-table-columns.d.ts +24 -0
  29. package/dist/components/data-table-columns.js +60 -0
  30. package/dist/components/data-table.d.ts +9 -1
  31. package/dist/components/data-table.js +16 -6
  32. package/dist/components/dialog.d.ts +11 -2
  33. package/dist/components/dialog.js +13 -2
  34. package/dist/components/dropdown-menu.js +2 -2
  35. package/dist/components/feature-card.d.ts +9 -0
  36. package/dist/components/feature-card.js +6 -0
  37. package/dist/components/fields.d.ts +9 -2
  38. package/dist/components/fields.js +10 -5
  39. package/dist/components/globe-renderer.d.ts +7 -0
  40. package/dist/components/globe-renderer.js +32 -0
  41. package/dist/components/globe.d.ts +9 -0
  42. package/dist/components/globe.js +25 -0
  43. package/dist/components/icon.d.ts +26 -0
  44. package/dist/components/icon.js +26 -0
  45. package/dist/components/image-generation-loader.d.ts +15 -0
  46. package/dist/components/image-generation-loader.js +93 -0
  47. package/dist/components/interactive-card.d.ts +6 -0
  48. package/dist/components/interactive-card.js +18 -0
  49. package/dist/components/link-preview.d.ts +25 -0
  50. package/dist/components/link-preview.js +84 -0
  51. package/dist/components/loader.d.ts +18 -0
  52. package/dist/components/loader.js +17 -0
  53. package/dist/components/loading.js +1 -1
  54. package/dist/components/message.d.ts +8 -0
  55. package/dist/components/message.js +11 -0
  56. package/dist/components/motion.d.ts +32 -0
  57. package/dist/components/motion.js +63 -0
  58. package/dist/components/multi-step-loader.d.ts +16 -0
  59. package/dist/components/multi-step-loader.js +29 -0
  60. package/dist/components/navigation.d.ts +76 -0
  61. package/dist/components/navigation.js +99 -0
  62. package/dist/components/popover.js +1 -1
  63. package/dist/components/progress.js +1 -1
  64. package/dist/components/prompt-input.d.ts +17 -0
  65. package/dist/components/prompt-input.js +27 -0
  66. package/dist/components/select.js +4 -3
  67. package/dist/components/sheet.js +2 -1
  68. package/dist/components/stat-card.d.ts +10 -0
  69. package/dist/components/stat-card.js +6 -0
  70. package/dist/components/tabs.d.ts +3 -1
  71. package/dist/components/tabs.js +4 -4
  72. package/dist/components/text-effects.d.ts +48 -0
  73. package/dist/components/text-effects.js +105 -0
  74. package/dist/components/theme-controls.d.ts +2 -0
  75. package/dist/components/theme-controls.js +17 -0
  76. package/dist/components/theme-provider.d.ts +20 -0
  77. package/dist/components/theme-provider.js +50 -0
  78. package/dist/components/theme-script.d.ts +9 -0
  79. package/dist/components/theme-script.js +8 -0
  80. package/dist/components/timeline.d.ts +12 -0
  81. package/dist/components/timeline.js +11 -0
  82. package/dist/components/tooltip.js +1 -1
  83. package/dist/components/use-column-layout.d.ts +6 -0
  84. package/dist/components/use-column-layout.js +38 -0
  85. package/dist/components/use-column-pinning.d.ts +10 -0
  86. package/dist/components/use-column-pinning.js +50 -0
  87. package/dist/components/world-map.d.ts +17 -0
  88. package/dist/components/world-map.js +13 -0
  89. package/dist/data/land.d.ts +1 -0
  90. package/dist/data/land.js +2 -0
  91. package/dist/index.d.ts +33 -5
  92. package/dist/index.js +30 -3
  93. package/dist/lib/canvas-tokens.d.ts +5 -0
  94. package/dist/lib/canvas-tokens.js +34 -0
  95. package/dist/lib/column-layout.d.ts +36 -0
  96. package/dist/lib/column-layout.js +69 -0
  97. package/dist/lib/theme-settings.d.ts +22 -0
  98. package/dist/lib/theme-settings.js +36 -0
  99. package/dist/styles.css +56 -3
  100. package/dist/tokens.css +273 -153
  101. package/package.json +20 -3
@@ -4,5 +4,5 @@ export function Skeleton({ className, ...props }) {
4
4
  return _jsx("div", { "aria-hidden": "true", className: cn("sky-skeleton h-field rounded-control bg-muted", className), ...props });
5
5
  }
6
6
  export function Spinner({ className, label = "Loading", ...props }) {
7
- return _jsxs("span", { role: "status", className: cn("inline-flex items-center gap-control", className), ...props, children: [_jsx("span", { "aria-hidden": "true", className: "sky-spinner size-icon" }), _jsx("span", { className: "sr-only", children: label })] });
7
+ return _jsxs("span", { role: "status", className: cn("inline-flex items-center gap-control", className), ...props, children: [_jsx("span", { "aria-hidden": "true", className: "sky-spinner size-icon shrink-0" }), _jsx("span", { className: "sr-only", children: label })] });
8
8
  }
@@ -0,0 +1,8 @@
1
+ import type { ComponentPropsWithRef } from "react";
2
+ export type MessageProps = ComponentPropsWithRef<"article"> & {
3
+ from: "user" | "assistant" | "system";
4
+ variant?: "bubble" | "plain";
5
+ };
6
+ export declare function Message({ className, from, variant, ...props }: MessageProps): import("react").JSX.Element;
7
+ export declare function MessageContent({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
8
+ export declare function MessageActions({ className, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../lib/utils.js";
3
+ export function Message({ className, from, variant = "bubble", ...props }) {
4
+ return _jsx("article", { "aria-label": from === "user" ? "You" : from === "assistant" ? "Assistant" : "System", "data-from": from, className: cn("grid min-w-0 max-w-full gap-control rounded-surface p-inline", from === "user" ? "ms-auto" : "me-auto", variant === "bubble" && (from === "user" ? "bg-primary text-primary-foreground" : "bg-muted text-foreground"), className), ...props });
5
+ }
6
+ export function MessageContent({ className, ...props }) {
7
+ return _jsx("div", { className: cn("min-w-0 whitespace-pre-wrap wrap-anywhere text-body leading-body", className), ...props });
8
+ }
9
+ export function MessageActions({ className, ...props }) {
10
+ return _jsx("div", { role: "group", "aria-label": "Message actions", className: cn("flex flex-wrap gap-control", className), ...props });
11
+ }
@@ -0,0 +1,32 @@
1
+ import { type ReactNode } from "react";
2
+ export type MotionPreference = "inherit" | "none";
3
+ /** Also works without ThemeProvider. CSS and JavaScript share the root preference. */
4
+ export declare function useMotionPolicy(motion?: MotionPreference): {
5
+ settings: {
6
+ duration: number;
7
+ stiffness: number;
8
+ damping: number;
9
+ };
10
+ enabled: boolean;
11
+ visible: boolean;
12
+ playing: boolean;
13
+ themeKey: string;
14
+ };
15
+ export declare function useAnimationActivity<T extends Element = HTMLDivElement>(motion?: MotionPreference): {
16
+ enabled: boolean;
17
+ inView: boolean;
18
+ node: T | null;
19
+ ref: import("react").Dispatch<import("react").SetStateAction<T | null>>;
20
+ settings: {
21
+ duration: number;
22
+ stiffness: number;
23
+ damping: number;
24
+ };
25
+ visible: boolean;
26
+ playing: boolean;
27
+ themeKey: string;
28
+ };
29
+ export declare function AnimationBoundary({ playing, children }: {
30
+ playing?: boolean;
31
+ children: ReactNode;
32
+ }): import("react").JSX.Element;
@@ -0,0 +1,63 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { createContext, useContext, useEffect, useMemo, useState, useSyncExternalStore } from "react";
4
+ import { MotionConfig } from "motion/react";
5
+ const Playback = createContext(true);
6
+ const listeners = new Set();
7
+ let disconnect;
8
+ function subscribe(listener) {
9
+ listeners.add(listener);
10
+ if (!disconnect && typeof document !== "undefined") {
11
+ const notify = () => listeners.forEach(fn => fn());
12
+ const observer = new MutationObserver(notify);
13
+ observer.observe(document.documentElement, { attributes: true, attributeFilter: ["data-motion", "data-theme", "data-palette", "data-font", "data-density", "class", "style", "dir"] });
14
+ const media = window.matchMedia?.("(prefers-reduced-motion: reduce)");
15
+ media?.addEventListener("change", notify);
16
+ document.addEventListener("visibilitychange", notify);
17
+ disconnect = () => { observer.disconnect(); media?.removeEventListener("change", notify); document.removeEventListener("visibilitychange", notify); disconnect = undefined; };
18
+ }
19
+ return () => { listeners.delete(listener); if (!listeners.size)
20
+ disconnect?.(); };
21
+ }
22
+ function snapshot() {
23
+ const root = document.documentElement;
24
+ const reduced = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
25
+ return JSON.stringify([root.getAttribute("data-motion"), !!reduced, document.hidden, root.getAttribute("data-theme"), root.getAttribute("data-palette"), root.getAttribute("data-font"), root.getAttribute("data-density"), root.getAttribute("style"), root.className]);
26
+ }
27
+ const serverSnapshot = () => '["none",true,false]';
28
+ /** Also works without ThemeProvider. CSS and JavaScript share the root preference. */
29
+ export function useMotionPolicy(motion = "inherit") {
30
+ const themeKey = useSyncExternalStore(subscribe, snapshot, serverSnapshot);
31
+ const [preference, reduced, hidden] = JSON.parse(themeKey);
32
+ const playing = useContext(Playback);
33
+ const settings = useMemo(() => {
34
+ const style = typeof document === "undefined" ? undefined : getComputedStyle(document.documentElement);
35
+ const number = (name, fallback) => parseFloat(style?.getPropertyValue(name) ?? "") || fallback;
36
+ const rawDuration = style?.getPropertyValue("--sky-duration-enter").trim();
37
+ const duration = number("--sky-duration-enter", 220) * (rawDuration?.endsWith("s") && !rawDuration.endsWith("ms") ? 1000 : 1);
38
+ return { duration: duration / 1000, stiffness: number("--sky-spring-stiffness", 180), damping: number("--sky-spring-damping", 18) };
39
+ }, [themeKey]);
40
+ return { settings, enabled: motion !== "none" && preference !== "none" && preference !== "reduced" && !reduced && !hidden && playing, visible: !hidden, playing, themeKey };
41
+ }
42
+ export function useAnimationActivity(motion = "inherit") {
43
+ const [node, ref] = useState(null);
44
+ const [inView, setInView] = useState(false);
45
+ const policy = useMotionPolicy(motion);
46
+ useEffect(() => {
47
+ if (!node)
48
+ return;
49
+ if (typeof IntersectionObserver === "undefined") {
50
+ setInView(true);
51
+ return;
52
+ }
53
+ const observer = new IntersectionObserver(([entry]) => setInView(entry.isIntersecting));
54
+ observer.observe(node);
55
+ return () => observer.disconnect();
56
+ }, [node]);
57
+ return { ...policy, enabled: policy.enabled && inView, inView, node, ref };
58
+ }
59
+ export function AnimationBoundary({ playing = true, children }) {
60
+ const parent = useContext(Playback);
61
+ const policy = useMotionPolicy();
62
+ return _jsx(Playback.Provider, { value: parent && playing, children: _jsx(MotionConfig, { reducedMotion: policy.enabled && playing ? "never" : "always", children: _jsx("div", { "data-sky-paused": !playing || !policy.enabled ? "true" : undefined, children: children }) }) });
63
+ }
@@ -0,0 +1,16 @@
1
+ export type LoadingState = {
2
+ text: string;
3
+ id?: string;
4
+ };
5
+ export type MultiStepLoaderProps = {
6
+ loadingStates: readonly LoadingState[];
7
+ loading: boolean;
8
+ onLoadingChange?: (loading: boolean) => void;
9
+ duration?: number;
10
+ loop?: boolean;
11
+ activeStep?: number;
12
+ presentation?: "modal" | "inline";
13
+ title?: string;
14
+ className?: string;
15
+ };
16
+ export declare function MultiStepLoader({ loadingStates, loading, onLoadingChange, duration, loop, activeStep, presentation, title, className }: MultiStepLoaderProps): import("react").JSX.Element | null;
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useState } from "react";
4
+ import { Dialog, DialogContent, DialogTitle, DialogDescription } from "./dialog.js";
5
+ import { Icon } from "./icon.js";
6
+ import { Loader } from "./loader.js";
7
+ import { useMotionPolicy } from "./motion.js";
8
+ import { cn } from "../lib/utils.js";
9
+ export function MultiStepLoader({ loadingStates, loading, onLoadingChange, duration = 2000, loop = true, activeStep, presentation = "modal", title = "Working on your request", className }) {
10
+ const [step, setStep] = useState(0);
11
+ const { visible, playing } = useMotionPolicy();
12
+ const interval = Number.isFinite(duration) && duration > 0 ? duration : 2000;
13
+ const count = loadingStates.length;
14
+ useEffect(() => { if (!loading)
15
+ setStep(0); }, [loading]);
16
+ useEffect(() => {
17
+ if (!loading || !visible || !playing || activeStep !== undefined || count === 0 || (!loop && step >= count))
18
+ return;
19
+ const timer = window.setInterval(() => setStep(current => loop ? (current + 1) % count : Math.min(current + 1, count)), interval);
20
+ return () => clearInterval(timer);
21
+ }, [loading, visible, playing, activeStep, count, interval, loop, step]);
22
+ const current = Math.max(0, Math.min(count - 1, Number.isFinite(activeStep ?? step) ? Math.floor(activeStep ?? step) : 0));
23
+ const sequenceFinished = activeStep === undefined && !loop && step >= count;
24
+ if (!loading || !count)
25
+ return null;
26
+ const content = _jsxs("div", { className: cn("grid gap-stack", className), "aria-busy": "true", children: [_jsx("p", { role: "status", className: "sr-only", children: sequenceFinished ? "Sequence finished. Waiting for your request." : loadingStates[current].text }), _jsx("ol", { className: "grid gap-stack", children: loadingStates.map((item, index) => _jsxs("li", { "aria-current": index === current ? "step" : undefined, className: cn("flex items-center gap-inline rounded-control p-inline text-label", index === current ? "bg-secondary font-medium text-foreground" : "text-muted-foreground"), children: [(sequenceFinished || index < current) ? _jsx(Icon, { name: "check", className: "text-success" }) : index === current ? _jsx(Loader, { size: "sm", variant: "svg", label: "Current step" }) : _jsx("span", { "aria-hidden": "true", className: "inline-flex size-icon shrink-0 items-center justify-center text-caption", children: index + 1 }), _jsx("span", { className: "min-w-0 wrap-anywhere", children: item.text })] }, item.id ?? index)) }), sequenceFinished && _jsx("p", { className: "text-caption text-muted-foreground", children: "Sequence finished. Waiting for your request." })] });
27
+ return presentation === "inline" ? _jsx("section", { "aria-label": title, children: content }) : _jsx(Dialog, { open: loading, onOpenChange: onLoadingChange, children: _jsxs(DialogContent, { showClose: !!onLoadingChange, onEscapeKeyDown: event => { if (!onLoadingChange)
28
+ event.preventDefault(); }, onPointerDownOutside: event => event.preventDefault(), children: [_jsx(DialogTitle, { children: title }), _jsx(DialogDescription, { children: activeStep === undefined ? "Progress messages while your request is running." : "Current progress of your request." }), content] }) });
29
+ }
@@ -0,0 +1,76 @@
1
+ import { type ReactNode, type RefObject } from "react";
2
+ export type SurfaceVariant = "default" | "classic" | "modern";
3
+ export type NavigationItem = {
4
+ id: string;
5
+ label: string;
6
+ href?: string;
7
+ icon?: ReactNode;
8
+ active?: boolean;
9
+ description?: string;
10
+ children?: readonly NavigationItem[];
11
+ onSelect?: () => void;
12
+ };
13
+ export type NavigationProps = {
14
+ items: readonly NavigationItem[];
15
+ label?: string;
16
+ brand?: ReactNode;
17
+ actions?: ReactNode;
18
+ variant?: SurfaceVariant;
19
+ className?: string;
20
+ scrollTarget?: RefObject<HTMLElement | null>;
21
+ position?: "sticky" | "fixed" | "static";
22
+ };
23
+ export declare const FloatingNavbar: (props: NavigationProps) => import("react").JSX.Element;
24
+ export declare const ResizableNavbar: (props: NavigationProps) => import("react").JSX.Element;
25
+ export declare function NavbarMenu({ items, label, brand, actions, className, variant }: NavigationProps): import("react").JSX.Element;
26
+ export type SidebarProps = NavigationProps & {
27
+ open?: boolean;
28
+ defaultOpen?: boolean;
29
+ onOpenChange?: (open: boolean) => void;
30
+ children?: ReactNode;
31
+ };
32
+ export declare function Sidebar({ items, label, brand, actions, className, variant, open: controlled, defaultOpen, onOpenChange, children }: SidebarProps): import("react").JSX.Element;
33
+ export declare function FloatingDock({ items, label, variant, className }: NavigationProps): import("react").JSX.Element;
34
+ export type NotchGroup = {
35
+ id: string;
36
+ label: string;
37
+ options: readonly {
38
+ value: string;
39
+ label: string;
40
+ icon?: ReactNode;
41
+ }[];
42
+ value?: string;
43
+ defaultValue?: string;
44
+ onValueChange?: (value: string) => void;
45
+ };
46
+ export declare function Notch({ groups, position, align, fixed, variant, className }: {
47
+ groups: readonly NotchGroup[];
48
+ position?: "top" | "bottom";
49
+ align?: "start" | "center" | "end";
50
+ fixed?: boolean;
51
+ variant?: SurfaceVariant;
52
+ className?: string;
53
+ }): import("react").JSX.Element;
54
+ export type AnimatedTab = {
55
+ id: string;
56
+ label: string;
57
+ content: ReactNode;
58
+ };
59
+ export declare function AnimatedTabs({ items, value: controlled, defaultValue, onValueChange, effect, className }: {
60
+ items: readonly AnimatedTab[];
61
+ value?: string;
62
+ defaultValue?: string;
63
+ onValueChange?: (value: string) => void;
64
+ effect?: "indicator" | "stacked";
65
+ className?: string;
66
+ }): import("react").JSX.Element;
67
+ export declare function StickyBanner({ children, open: controlled, defaultOpen, onOpenChange, hideOnScroll, scrollTarget, variant, className }: {
68
+ children: ReactNode;
69
+ open?: boolean;
70
+ defaultOpen?: boolean;
71
+ onOpenChange?: (open: boolean) => void;
72
+ hideOnScroll?: boolean;
73
+ scrollTarget?: RefObject<HTMLElement | null>;
74
+ variant?: SurfaceVariant;
75
+ className?: string;
76
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,99 @@
1
+ "use client";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useId, useRef, useState } from "react";
4
+ import { motion as animated } from "motion/react";
5
+ import * as Menu from "@radix-ui/react-navigation-menu";
6
+ import { Button } from "./button.js";
7
+ import { Icon } from "./icon.js";
8
+ import { Sheet, SheetContent, SheetTitle, SheetDescription } from "./sheet.js";
9
+ import { Tabs, TabsList, TabsTrigger, TabsContent } from "./tabs.js";
10
+ import { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "./tooltip.js";
11
+ import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
12
+ import { useMotionPolicy } from "./motion.js";
13
+ import { cn } from "../lib/utils.js";
14
+ function useScrollState(target) {
15
+ const [state, setState] = useState({ scrolled: false, down: false });
16
+ useEffect(() => {
17
+ const node = target?.current;
18
+ const source = node ?? window;
19
+ let previous = node?.scrollTop ?? window.scrollY, frame = 0;
20
+ const update = () => {
21
+ cancelAnimationFrame(frame);
22
+ frame = requestAnimationFrame(() => {
23
+ const next = node?.scrollTop ?? window.scrollY;
24
+ const threshold = (node?.clientHeight ?? window.innerHeight) * .05;
25
+ setState({ scrolled: next > threshold, down: next > threshold && next > previous });
26
+ previous = next;
27
+ });
28
+ };
29
+ source.addEventListener("scroll", update, { passive: true });
30
+ update();
31
+ return () => { cancelAnimationFrame(frame); source.removeEventListener("scroll", update); };
32
+ }, [target]);
33
+ return state;
34
+ }
35
+ function NavLink({ item, compact = false, onNavigate, ...props }) {
36
+ const content = _jsxs(_Fragment, { children: [item.icon, _jsx("span", { className: cn("min-w-0 wrap-anywhere", compact && "sr-only"), children: item.label })] });
37
+ const shared = { variant: item.active ? "secondary" : "ghost", className: "h-auto min-h-touch justify-start whitespace-normal py-control", "aria-label": compact ? item.label : undefined };
38
+ const select = () => { item.onSelect?.(); onNavigate?.(); };
39
+ return item.href ? _jsx(Button, { ...shared, ...props, asChild: true, children: _jsx("a", { href: item.href, "aria-current": item.active ? "page" : undefined, onClick: select, children: content }) }) : _jsx(Button, { ...shared, ...props, "aria-pressed": item.active, onClick: select, children: content });
40
+ }
41
+ function MobileNavigation({ items, label }) {
42
+ const [open, setOpen] = useState(false);
43
+ return _jsxs("div", { className: "tablet:hidden", children: [_jsx(Button, { variant: "ghost", "aria-label": `Open ${label}`, "aria-expanded": open, onClick: () => setOpen(true), children: _jsx(Icon, { name: "menu" }) }), _jsx(Sheet, { open: open, onOpenChange: setOpen, children: _jsxs(SheetContent, { children: [_jsx(SheetTitle, { children: label }), _jsx(SheetDescription, { children: "Choose a destination." }), _jsx("nav", { "aria-label": label, className: "grid gap-control", children: items.map(item => _jsxs("div", { children: [_jsx(NavLink, { item: item, onNavigate: () => setOpen(false) }), item.children?.map(child => _jsx("div", { className: "ps-panel", children: _jsx(NavLink, { item: child, onNavigate: () => setOpen(false) }) }, child.id))] }, item.id)) })] }) })] });
44
+ }
45
+ function Navbar({ items, label = "Main navigation", brand, actions, variant = "default", className, scrollTarget, position = "sticky", behavior }) {
46
+ const scroll = useScrollState(scrollTarget);
47
+ const [focused, setFocused] = useState(false);
48
+ const policy = useMotionPolicy();
49
+ const hidden = behavior === "floating" && scroll.down && !focused;
50
+ return _jsxs(animated.nav, { "aria-label": label, "data-position": position, "data-variant": variant, "data-compact": behavior === "resize" && scroll.scrolled, className: cn("sky-navbar sky-advanced-surface mx-auto flex min-w-0 items-center gap-control p-control", className), onFocusCapture: () => setFocused(true), onBlurCapture: event => { if (!event.currentTarget.contains(event.relatedTarget))
51
+ setFocused(false); }, animate: { y: hidden ? "-150%" : "0%", opacity: hidden ? 0 : 1 }, transition: { duration: policy.enabled ? policy.settings.duration : 0 }, children: [brand && _jsx("div", { className: "min-w-0 shrink-0 px-control font-semibold", children: brand }), _jsx("div", { className: "hidden min-w-0 flex-1 flex-wrap items-center justify-center gap-control tablet:flex", children: items.map(item => _jsx(NavLink, { item: item }, item.id)) }), _jsxs("div", { className: "ms-auto flex items-center gap-control", children: [actions, _jsx(MobileNavigation, { items: items, label: label })] })] });
52
+ }
53
+ export const FloatingNavbar = (props) => _jsx(Navbar, { ...props, behavior: "floating" });
54
+ export const ResizableNavbar = (props) => _jsx(Navbar, { ...props, behavior: "resize" });
55
+ export function NavbarMenu({ items, label = "Navigation menu", brand, actions, className, variant = "default" }) {
56
+ return _jsxs("div", { "data-variant": variant, className: cn("sky-advanced-surface relative flex flex-wrap items-center gap-control p-control", className), children: [brand, _jsx(Menu.Root, { "aria-label": label, className: "relative hidden min-w-0 flex-1 tablet:block", children: _jsx(Menu.List, { className: "flex flex-wrap items-center gap-control", children: items.map(item => _jsx(Menu.Item, { children: item.children?.length ? _jsxs(_Fragment, { children: [_jsxs(Menu.Trigger, { className: "sky-focus sky-disclosure flex min-h-touch items-center gap-control rounded-control px-inline text-label hover:bg-secondary", children: [item.icon, item.label, _jsx(Icon, { name: "chevron-down", className: "sky-disclosure-icon" })] }), _jsx(Menu.Content, { className: "sky-enter sky-popover sky-advanced-surface absolute inset-x-0 top-full grid gap-control p-panel shadow-floating tablet:grid-cols-2", children: item.children.map(child => _jsx(Menu.Link, { asChild: true, children: _jsxs("a", { href: child.href ?? "#", onClick: child.onSelect, className: "sky-focus rounded-control p-inline hover:bg-secondary", children: [_jsxs("span", { className: "flex items-center gap-control font-medium", children: [child.icon, child.label] }), child.description && _jsx("span", { className: "mt-control block text-label text-muted-foreground", children: child.description })] }) }, child.id)) })] })
57
+ : _jsx(Menu.Link, { asChild: true, active: item.active, children: _jsxs("a", { href: item.href ?? "#", onClick: item.onSelect, className: "sky-focus flex min-h-touch items-center gap-control rounded-control px-inline text-label hover:bg-secondary", children: [item.icon, item.label] }) }) }, item.id)) }) }), _jsx(MobileNavigation, { items: items, label: label }), actions] });
58
+ }
59
+ export function Sidebar({ items, label = "Sidebar", brand, actions, className, variant = "default", open: controlled, defaultOpen = true, onOpenChange, children }) {
60
+ const [internal, setInternal] = useState(defaultOpen), [mobile, setMobile] = useState(false);
61
+ const open = controlled ?? internal;
62
+ const change = (next) => { if (controlled === undefined)
63
+ setInternal(next); onOpenChange?.(next); };
64
+ const links = (compact) => items.map(item => _jsx(NavLink, { item: item, compact: compact && !!item.icon, onNavigate: () => setMobile(false) }, item.id));
65
+ return _jsxs("div", { className: cn("flex min-w-0 gap-stack", className), children: [_jsxs("aside", { "aria-label": label, "data-variant": variant, "data-expanded": open, className: "sky-sidebar-panel sky-advanced-surface hidden shrink-0 flex-col gap-stack p-control tablet:flex", children: [_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-control", children: [open && brand, _jsx(Button, { size: "icon", variant: "ghost", "aria-label": open ? "Collapse sidebar" : "Expand sidebar", "aria-expanded": open, onClick: () => change(!open), children: _jsx(Icon, { name: "menu" }) })] }), _jsx("nav", { "aria-label": label, className: "grid gap-control", children: links(!open) }), open && actions] }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs(Button, { className: "mb-stack tablet:hidden", variant: "outline", "aria-expanded": mobile, onClick: () => setMobile(true), children: [_jsx(Icon, { name: "menu" }), label] }), children] }), _jsx(Sheet, { open: mobile, onOpenChange: setMobile, children: _jsxs(SheetContent, { side: "left", children: [_jsx(SheetTitle, { children: label }), _jsx(SheetDescription, { children: "Workspace navigation" }), brand, _jsx("nav", { className: "grid gap-control", "aria-label": label, children: links(false) }), actions] }) })] });
66
+ }
67
+ export function FloatingDock({ items, label = "Dock", variant = "default", className }) {
68
+ const [active, setActive] = useState(-1);
69
+ const touch = useRef(false);
70
+ const { enabled, settings } = useMotionPolicy();
71
+ return _jsx(TooltipProvider, { children: _jsx("nav", { "aria-label": label, "data-variant": variant, className: cn("sky-advanced-surface mx-auto flex w-fit max-w-full items-end gap-control overflow-x-auto p-inline", className), onPointerLeave: () => setActive(-1), children: items.map((item, index) => _jsx(animated.div, { onPointerEnter: event => { if (event.pointerType !== "touch")
72
+ setActive(index); }, onPointerDownCapture: event => { touch.current = event.pointerType === "touch"; if (touch.current)
73
+ setActive(-1); }, onKeyDownCapture: () => { touch.current = false; setActive(index); }, onFocus: () => { if (!touch.current)
74
+ setActive(index); }, onBlur: () => setActive(-1), animate: { scale: enabled && active >= 0 ? Math.max(1, 1.2 - Math.abs(index - active) * .12) : 1 }, transition: { duration: enabled ? settings.duration : 0 }, children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(NavLink, { item: item, compact: !!item.icon }) }), _jsx(TooltipContent, { children: item.label })] }) }, item.id)) }) });
75
+ }
76
+ function NotchControl({ group }) {
77
+ const [value, setValue] = useState(group.defaultValue ?? group.options[0]?.value ?? ""), [open, setOpen] = useState(false);
78
+ const selected = group.value ?? value;
79
+ return _jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", className: "h-auto flex-wrap py-control", children: [group.label, _jsx("span", { className: "text-muted-foreground", children: group.options.find(option => option.value === selected)?.label }), _jsx(Icon, { name: "chevron-down" })] }) }), _jsx(PopoverContent, { className: "grid gap-control", "aria-label": group.label, children: group.options.map(option => _jsxs(Button, { variant: option.value === selected ? "secondary" : "ghost", "aria-pressed": option.value === selected, className: "justify-start", onClick: () => { if (group.value === undefined)
80
+ setValue(option.value); group.onValueChange?.(option.value); setOpen(false); }, children: [option.icon, option.label, option.value === selected && _jsx(Icon, { name: "check", className: "ms-auto" })] }, option.value)) })] });
81
+ }
82
+ export function Notch({ groups, position = "bottom", align = "center", fixed = false, variant = "modern", className }) {
83
+ return _jsx("div", { role: "group", "aria-label": "Quick controls", "data-position": position, "data-align": align, "data-fixed": fixed, "data-variant": variant, className: cn("sky-notch sky-advanced-surface flex w-fit max-w-full flex-wrap items-center gap-control p-control", className), children: groups.map(group => _jsx(NotchControl, { group: group }, group.id)) });
84
+ }
85
+ export function AnimatedTabs({ items, value: controlled, defaultValue, onValueChange, effect = "indicator", className }) {
86
+ const [value, setValue] = useState(defaultValue ?? items[0]?.id ?? "");
87
+ const selected = controlled ?? value, id = useId(), { enabled, settings } = useMotionPolicy();
88
+ return _jsxs(Tabs, { value: selected, onValueChange: next => { if (controlled === undefined)
89
+ setValue(next); onValueChange?.(next); }, className: className, children: [_jsx(TabsList, { "aria-label": "Content sections", children: items.map(item => _jsxs(TabsTrigger, { value: item.id, className: "relative isolate data-[state=active]:bg-transparent", children: [selected === item.id && _jsx(animated.span, { "aria-hidden": "true", layoutId: `${id}-indicator`, transition: { duration: enabled ? settings.duration : 0 }, className: "absolute inset-0 -z-10 rounded-control bg-card shadow-raised" }), item.label] }, item.id)) }), items.map(item => _jsx(TabsContent, { value: item.id, children: _jsx(animated.div, { initial: enabled ? { opacity: 0, y: effect === "stacked" ? "5%" : 0, rotateX: effect === "stacked" ? -6 : 0 } : false, animate: { opacity: 1, y: 0, rotateX: 0 }, transition: { duration: enabled ? settings.duration : 0 }, className: cn(effect === "stacked" && "sky-tab-stack sky-advanced-surface p-panel"), children: item.content }) }, item.id))] });
90
+ }
91
+ export function StickyBanner({ children, open: controlled, defaultOpen = true, onOpenChange, hideOnScroll = false, scrollTarget, variant = "default", className }) {
92
+ const [internal, setInternal] = useState(defaultOpen), [focused, setFocused] = useState(false);
93
+ const scroll = useScrollState(scrollTarget), { enabled, settings } = useMotionPolicy();
94
+ if (!(controlled ?? internal))
95
+ return null;
96
+ return _jsxs(animated.aside, { "aria-label": "Announcement", "data-variant": variant, className: cn("sky-banner sky-advanced-surface flex items-center gap-inline p-inline", className), onFocusCapture: () => setFocused(true), onBlurCapture: event => { if (!event.currentTarget.contains(event.relatedTarget))
97
+ setFocused(false); }, animate: { y: hideOnScroll && scroll.down && !focused ? "-150%" : "0%" }, transition: { duration: enabled ? settings.duration : 0 }, children: [_jsx("div", { className: "min-w-0 flex-1 text-label", children: children }), (controlled === undefined || onOpenChange) && _jsx(Button, { variant: "ghost", size: "icon", "aria-label": "Dismiss announcement", onClick: () => { if (controlled === undefined)
98
+ setInternal(false); onOpenChange?.(false); }, children: _jsx(Icon, { name: "close" }) })] });
99
+ }
@@ -6,5 +6,5 @@ export const Popover = Primitive.Root;
6
6
  export const PopoverTrigger = Primitive.Trigger;
7
7
  export const PopoverClose = Primitive.Close;
8
8
  export function PopoverContent({ className, ...props }) {
9
- return _jsx(Primitive.Portal, { children: _jsx(Primitive.Content, { className: cn("sky-popover sky-border sky-floating-fit w-preview-wide rounded-surface border-border bg-popover p-panel text-popover-foreground shadow-floating", className), ...props }) });
9
+ return _jsx(Primitive.Portal, { children: _jsx(Primitive.Content, { className: cn("sky-enter sky-popover sky-border sky-floating-fit w-preview-wide rounded-surface border-border bg-popover p-panel text-popover-foreground shadow-floating", className), ...props }) });
10
10
  }
@@ -5,5 +5,5 @@ import { cn } from "../lib/utils.js";
5
5
  export function Progress({ className, value, max = 100, ...props }) {
6
6
  const safeMax = Number.isFinite(max) && max > 0 ? max : 100;
7
7
  const safeValue = value == null || !Number.isFinite(value) ? null : Math.min(safeMax, Math.max(0, value));
8
- return _jsx(Primitive.Root, { value: safeValue, max: safeMax, className: cn("relative h-control w-full overflow-hidden rounded-full bg-secondary", className), ...props, children: _jsx(Primitive.Indicator, { className: cn("h-full bg-primary", safeValue === null && "sky-skeleton w-full"), style: safeValue === null ? undefined : { width: `${safeValue / safeMax * 100}%` } }) });
8
+ return _jsx(Primitive.Root, { value: safeValue, max: safeMax, className: cn("relative h-control w-full overflow-hidden rounded-full bg-secondary", className), ...props, children: _jsx(Primitive.Indicator, { className: cn("sky-progress-indicator h-full bg-primary", safeValue === null && "sky-skeleton w-full"), style: safeValue === null ? undefined : { width: `${safeValue / safeMax * 100}%` } }) });
9
9
  }
@@ -0,0 +1,17 @@
1
+ import { type ComponentPropsWithRef, type FormEvent, type ReactNode } from "react";
2
+ import { type TextareaProps } from "./fields.js";
3
+ export type PromptInputProps = Omit<ComponentPropsWithRef<"form">, "onSubmit" | "children"> & {
4
+ value: string;
5
+ onValueChange: (value: string) => void;
6
+ onSubmit: (value: string, event: FormEvent<HTMLFormElement>) => void;
7
+ onStop?: () => void;
8
+ status?: "ready" | "submitted" | "streaming" | "error";
9
+ disabled?: boolean;
10
+ label?: string;
11
+ submitLabel?: string;
12
+ stopLabel?: string;
13
+ tools?: ReactNode;
14
+ variant?: "default" | "classic" | "modern";
15
+ textareaProps?: Omit<TextareaProps, "value" | "defaultValue" | "onChange" | "disabled" | "children">;
16
+ };
17
+ export declare function PromptInput({ className, value, onValueChange, onSubmit, onStop, status, disabled, label, submitLabel, stopLabel, tools, variant, textareaProps, ...props }: PromptInputProps): import("react").JSX.Element;
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useId, useRef } from "react";
4
+ import { Button } from "./button.js";
5
+ import { Label, Textarea } from "./fields.js";
6
+ import { Spinner } from "./loading.js";
7
+ import { cn } from "../lib/utils.js";
8
+ export function PromptInput({ className, value, onValueChange, onSubmit, onStop, status = "ready", disabled = false, label = "Message", submitLabel = "Send message", stopLabel = "Stop response", tools, variant = "default", textareaProps, ...props }) {
9
+ const generatedId = useId();
10
+ const composing = useRef(false);
11
+ const busy = status === "submitted" || status === "streaming";
12
+ const { id = generatedId, onKeyDown, onCompositionStart, onCompositionEnd, ...inputProps } = textareaProps ?? {};
13
+ function submit(event) {
14
+ event.preventDefault();
15
+ if (disabled || busy || !value.trim())
16
+ return;
17
+ onSubmit(value.trim(), event);
18
+ }
19
+ return _jsx("form", { className: cn("sky-border min-w-0 rounded-surface border-input bg-card p-inline text-card-foreground", { default: "", classic: "rounded-control shadow-raised", modern: "rounded-modal" }[variant], className), ...props, onSubmit: submit, children: _jsxs("fieldset", { disabled: disabled, className: "grid min-w-0 gap-control", children: [_jsx(Label, { htmlFor: id, className: "sr-only", children: label }), _jsx(Textarea, { placeholder: "Write a message\u2026", ...inputProps, id: id, value: value, onChange: event => onValueChange(event.target.value), onCompositionStart: event => { composing.current = true; onCompositionStart?.(event); }, onCompositionEnd: event => { composing.current = false; onCompositionEnd?.(event); }, onKeyDown: event => {
20
+ onKeyDown?.(event);
21
+ if (!event.defaultPrevented && event.key === "Enter" && !event.shiftKey && !event.nativeEvent.isComposing && event.nativeEvent.keyCode !== 229 && !composing.current) {
22
+ event.preventDefault();
23
+ event.currentTarget.form?.requestSubmit();
24
+ }
25
+ } }), _jsxs("div", { className: "flex flex-wrap items-center justify-between gap-control", children: [_jsx("div", { className: "flex min-w-0 flex-wrap items-center gap-control", children: tools }), busy ? _jsxs(Button, { variant: "outline", disabled: disabled || !onStop, onClick: onStop, children: [_jsx(Spinner, {}), stopLabel] })
26
+ : _jsx(Button, { type: "submit", disabled: disabled || !value.trim(), children: submitLabel })] })] }) });
27
+ }
@@ -2,16 +2,17 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import * as Primitive from "@radix-ui/react-select";
4
4
  import { cn } from "../lib/utils.js";
5
+ import { Icon } from "./icon.js";
5
6
  export const Select = Primitive.Root;
6
7
  export const SelectValue = Primitive.Value;
7
8
  export const SelectGroup = Primitive.Group;
8
9
  export const SelectLabel = Primitive.Label;
9
10
  export function SelectTrigger({ children, className, ...props }) {
10
- return _jsxs(Primitive.Trigger, { className: cn("flex h-field min-h-touch tablet:min-h-field w-full items-center justify-between gap-control rounded-control sky-border border-input bg-background px-inline text-label sky-focus sky-disabled", className), ...props, children: [children, _jsx(Primitive.Icon, { "aria-hidden": true, children: "\u25BE" })] });
11
+ return _jsxs(Primitive.Trigger, { className: cn("flex h-field min-h-touch tablet:min-h-field w-full items-center justify-between gap-control rounded-control sky-border border-input bg-background px-inline text-label sky-focus sky-disabled", className), ...props, children: [children, _jsx(Primitive.Icon, { asChild: true, children: _jsx(Icon, { name: "chevron-down", className: "text-muted-foreground" }) })] });
11
12
  }
12
13
  export function SelectContent({ children, className, position = "popper", ...props }) {
13
- return _jsx(Primitive.Portal, { children: _jsxs(Primitive.Content, { position: position, className: cn("sky-popover sky-select-content overflow-hidden rounded-control sky-border border-input bg-popover text-popover-foreground shadow-raised", className), ...props, children: [_jsx(Primitive.ScrollUpButton, { className: "text-center", children: "\u25B4" }), _jsx(Primitive.Viewport, { className: "p-control", children: children }), _jsx(Primitive.ScrollDownButton, { className: "text-center", children: "\u25BE" })] }) });
14
+ return _jsx(Primitive.Portal, { children: _jsxs(Primitive.Content, { position: position, className: cn("sky-enter sky-popover sky-select-content overflow-hidden rounded-control sky-border border-input bg-popover text-popover-foreground shadow-raised", className), ...props, children: [_jsx(Primitive.ScrollUpButton, { className: "flex items-center justify-center py-control", children: _jsx(Icon, { name: "chevron-up" }) }), _jsx(Primitive.Viewport, { className: "p-control", children: children }), _jsx(Primitive.ScrollDownButton, { className: "flex items-center justify-center py-control", children: _jsx(Icon, { name: "chevron-down" }) })] }) });
14
15
  }
15
16
  export function SelectItem({ children, className, ...props }) {
16
- return _jsxs(Primitive.Item, { className: cn("relative flex min-h-touch tablet:min-h-field cursor-default select-none items-center rounded-control py-control sky-select-item pe-inline text-label outline-none focus:bg-secondary data-[disabled]:pointer-events-none sky-disabled", className), ...props, children: [_jsx("span", { className: "absolute start-inline", children: _jsx(Primitive.ItemIndicator, { children: "\u2713" }) }), _jsx(Primitive.ItemText, { children: children })] });
17
+ return _jsxs(Primitive.Item, { className: cn("relative flex min-h-touch tablet:min-h-field cursor-default select-none items-center rounded-control py-control sky-select-item pe-inline text-label outline-none focus:bg-secondary data-[disabled]:pointer-events-none sky-disabled", className), ...props, children: [_jsx("span", { className: "absolute start-inline flex size-icon items-center justify-center", children: _jsx(Primitive.ItemIndicator, { asChild: true, children: _jsx(Icon, { name: "check" }) }) }), _jsx(Primitive.ItemText, { children: children })] });
17
18
  }
@@ -2,11 +2,12 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import * as Primitive from "@radix-ui/react-dialog";
4
4
  import { Button } from "./button.js";
5
+ import { Icon } from "./icon.js";
5
6
  import { cn } from "../lib/utils.js";
6
7
  export { DialogTitle as SheetTitle, DialogDescription as SheetDescription, DialogFooter as SheetFooter } from "./dialog.js";
7
8
  export const Sheet = Primitive.Root;
8
9
  export const SheetTrigger = Primitive.Trigger;
9
10
  export const SheetClose = Primitive.Close;
10
11
  export function SheetContent({ children, className, side = "right", closeLabel = "Close panel", ...props }) {
11
- return _jsxs(Primitive.Portal, { children: [_jsx(Primitive.Overlay, { className: "sky-overlay fixed inset-0 bg-overlay" }), _jsxs(Primitive.Content, { className: cn("sky-modal fixed inset-y-0 grid h-dvh w-full content-start gap-stack overflow-y-auto bg-popover p-panel text-popover-foreground shadow-floating tablet:max-w-sheet", side === "right" ? "right-0" : "left-0", className), ...props, children: [_jsx(Primitive.Close, { asChild: true, children: _jsx(Button, { variant: "ghost", className: "justify-self-end", "aria-label": closeLabel, children: closeLabel }) }), children] })] });
12
+ return _jsxs(Primitive.Portal, { children: [_jsx(Primitive.Overlay, { className: "sky-overlay fixed inset-0 bg-overlay" }), _jsxs(Primitive.Content, { "data-side": side, className: cn("sky-sheet sky-modal fixed inset-y-0 grid h-dvh w-full content-start gap-stack overflow-y-auto bg-popover p-panel text-popover-foreground shadow-floating tablet:max-w-sheet", side === "right" ? "right-0" : "left-0", className), ...props, children: [_jsx(Primitive.Close, { asChild: true, children: _jsxs(Button, { variant: "ghost", className: "shrink-0 self-end justify-self-end", "aria-label": closeLabel, children: [_jsx(Icon, { name: "close" }), closeLabel] }) }), children] })] });
12
13
  }
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from "react";
2
+ import { type CardProps } from "./card.js";
3
+ export type StatCardProps = CardProps & {
4
+ label: ReactNode;
5
+ value: ReactNode;
6
+ description?: ReactNode;
7
+ trend?: ReactNode;
8
+ tone?: "default" | "success" | "destructive";
9
+ };
10
+ export declare function StatCard({ label, value, description, trend, tone, children, className, ...props }: StatCardProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Card } from "./card.js";
3
+ import { cn } from "../lib/utils.js";
4
+ export function StatCard({ label, value, description, trend, tone = "default", children, className, ...props }) {
5
+ return _jsxs(Card, { className: cn("p-panel", className), ...props, children: [_jsxs("dl", { className: "grid gap-control", children: [_jsx("dt", { className: "text-label text-muted-foreground", children: label }), _jsx("dd", { className: "text-title font-semibold leading-title wrap-anywhere", children: value }), trend && _jsx("dd", { className: cn("text-label", { default: "text-muted-foreground", success: "text-success", destructive: "text-destructive" }[tone]), children: trend })] }), description && _jsx("p", { className: "mt-control text-caption leading-body text-muted-foreground", children: description }), children] });
6
+ }
@@ -1,6 +1,8 @@
1
1
  import type { ComponentPropsWithRef } from "react";
2
2
  import * as Primitive from "@radix-ui/react-tabs";
3
3
  export declare const Tabs: import("react").ForwardRefExoticComponent<Primitive.TabsProps & import("react").RefAttributes<HTMLDivElement>>;
4
- export declare function TabsList({ className, ...props }: ComponentPropsWithRef<typeof Primitive.List>): import("react").JSX.Element;
4
+ export declare function TabsList({ className, variant, ...props }: ComponentPropsWithRef<typeof Primitive.List> & {
5
+ variant?: "default" | "line" | "outline";
6
+ }): import("react").JSX.Element;
5
7
  export declare function TabsTrigger({ className, ...props }: ComponentPropsWithRef<typeof Primitive.Trigger>): import("react").JSX.Element;
6
8
  export declare function TabsContent({ className, ...props }: ComponentPropsWithRef<typeof Primitive.Content>): import("react").JSX.Element;
@@ -3,12 +3,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import * as Primitive from "@radix-ui/react-tabs";
4
4
  import { cn } from "../lib/utils.js";
5
5
  export const Tabs = Primitive.Root;
6
- export function TabsList({ className, ...props }) {
7
- return _jsx(Primitive.List, { className: cn("flex w-full gap-control overflow-x-auto rounded-control bg-muted p-control data-[orientation=vertical]:flex-col", className), ...props });
6
+ export function TabsList({ className, variant = "default", ...props }) {
7
+ return _jsx(Primitive.List, { "data-variant": variant, className: cn("group/sky-tabs flex w-full gap-control overflow-x-auto rounded-control bg-muted p-control data-[orientation=vertical]:flex-col", { default: "", line: "sky-tabs-line rounded-none bg-transparent p-0", outline: "sky-border border-border bg-transparent" }[variant], className), ...props });
8
8
  }
9
9
  export function TabsTrigger({ className, ...props }) {
10
- return _jsx(Primitive.Trigger, { className: cn("sky-focus sky-disabled sky-transition min-h-touch shrink-0 rounded-control px-inline py-control text-label text-muted-foreground data-[state=active]:bg-card data-[state=active]:text-card-foreground tablet:min-h-field", className), ...props });
10
+ return _jsx(Primitive.Trigger, { className: cn("sky-icon-slot inline-flex items-center justify-center gap-control sky-focus sky-disabled sky-transition min-h-touch shrink-0 rounded-control px-inline py-control text-label text-muted-foreground data-[state=active]:bg-card data-[state=active]:text-card-foreground group-data-[variant=line]/sky-tabs:data-[state=active]:bg-transparent group-data-[variant=line]/sky-tabs:data-[state=active]:text-primary tablet:min-h-field", className), ...props });
11
11
  }
12
12
  export function TabsContent({ className, ...props }) {
13
- return _jsx(Primitive.Content, { className: cn("sky-focus min-w-0 py-panel", className), ...props });
13
+ return _jsx(Primitive.Content, { className: cn("sky-tab-panel sky-focus min-w-0 py-panel", className), ...props });
14
14
  }
@@ -0,0 +1,48 @@
1
+ import { type ReactNode } from "react";
2
+ import { type MotionPreference } from "./motion.js";
3
+ export type TextEffectProps = {
4
+ text: string;
5
+ className?: string;
6
+ duration?: number;
7
+ motion?: MotionPreference;
8
+ replayKey?: string | number;
9
+ };
10
+ export declare const EncryptedText: (props: TextEffectProps) => import("react").JSX.Element;
11
+ export declare const TextGenerateEffect: ({ words, ...props }: Omit<TextEffectProps, "text"> & {
12
+ words: string;
13
+ }) => import("react").JSX.Element;
14
+ export declare const TypewriterEffect: (props: TextEffectProps) => import("react").JSX.Element;
15
+ export declare const TextFlippingBoard: (props: TextEffectProps) => import("react").JSX.Element;
16
+ export type FlipWordsProps = {
17
+ words: readonly string[];
18
+ interval?: number;
19
+ className?: string;
20
+ motion?: MotionPreference;
21
+ text?: string;
22
+ };
23
+ export declare const FlipWords: (props: FlipWordsProps) => import("react").JSX.Element;
24
+ export declare const LayoutTextFlip: (props: FlipWordsProps) => import("react").JSX.Element;
25
+ export declare const ContainerTextFlip: (props: FlipWordsProps) => import("react").JSX.Element;
26
+ export declare function ColourfulText({ text, className, motion }: TextEffectProps): import("react").JSX.Element;
27
+ export declare function SquigglyText({ children, className, motion }: {
28
+ children: ReactNode;
29
+ className?: string;
30
+ motion?: MotionPreference;
31
+ }): import("react").JSX.Element;
32
+ export declare function CanvasText({ text, className, motion }: TextEffectProps): import("react").JSX.Element;
33
+ export declare function TextHoverEffect({ text, className }: TextEffectProps): import("react").JSX.Element;
34
+ export declare function HeroHighlight({ children, className }: {
35
+ children: ReactNode;
36
+ className?: string;
37
+ }): import("react").JSX.Element;
38
+ export declare function Highlight({ children, className }: {
39
+ children: ReactNode;
40
+ className?: string;
41
+ }): import("react").JSX.Element;
42
+ export declare function TextRevealCard({ text, revealText, title, description, className }: {
43
+ text: string;
44
+ revealText: string;
45
+ title?: string;
46
+ description?: string;
47
+ className?: string;
48
+ }): import("react").JSX.Element;