sparkdesign 0.4.8 → 0.4.10
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/AGENT_COMPONENT_LIBRARY_QUICKREF.md +117 -0
- package/AI_README.md +7 -2
- package/README.md +4 -1
- package/cli/registry/AGENTS.md +1 -1
- package/cli/registry/agent-manifest.json +4040 -67
- package/cli/registry/basic/accordion.tsx +79 -0
- package/cli/registry/basic/badge.tsx +49 -0
- package/cli/registry/basic/button.tsx +19 -14
- package/cli/registry/basic/calendar.tsx +16 -16
- package/cli/registry/basic/collapsible-card.tsx +10 -1
- package/cli/registry/basic/combobox.tsx +11 -2
- package/cli/registry/basic/date-picker.tsx +3 -2
- package/cli/registry/basic/ellipsis-text.tsx +151 -0
- package/cli/registry/basic/form.tsx +186 -0
- package/cli/registry/basic/icon-button.tsx +12 -4
- package/cli/registry/basic/popover.tsx +19 -2
- package/cli/registry/basic/rating.tsx +161 -0
- package/cli/registry/basic/sidebar.tsx +665 -0
- package/cli/registry/basic/sonner.tsx +10 -10
- package/cli/registry/basic/stepper.tsx +163 -0
- package/cli/registry/basic/timeline.tsx +129 -0
- package/cli/registry/chat/chat-input/compound.tsx +1 -0
- package/cli/registry/chat/permission-card.tsx +1 -1
- package/cli/registry/chat/user-question/compound.tsx +2 -0
- package/cli/registry/meta.json +171 -13
- package/dist/registry/basic/accordion.d.ts +15 -0
- package/dist/registry/basic/badge.d.ts +23 -0
- package/dist/registry/basic/calendar.d.ts +1 -1
- package/dist/registry/basic/combobox.d.ts +2 -1
- package/dist/registry/basic/date-picker.d.ts +2 -2
- package/dist/registry/basic/ellipsis-text.d.ts +45 -0
- package/dist/registry/basic/form.d.ts +23 -0
- package/dist/registry/basic/icon-button.d.ts +15 -2
- package/dist/registry/basic/item.d.ts +1 -1
- package/dist/registry/basic/popover.d.ts +2 -0
- package/dist/registry/basic/rating.d.ts +31 -0
- package/dist/registry/basic/sidebar.d.ts +72 -0
- package/dist/registry/basic/stepper.d.ts +36 -0
- package/dist/registry/basic/tag.d.ts +1 -1
- package/dist/registry/basic/timeline.d.ts +34 -0
- package/dist/spark-design.cjs.js +27 -30
- package/dist/spark-design.es.js +6398 -5130
- package/dist/sparkdesign.css +1 -1
- package/dist/src/components/basic/Accordion/index.d.ts +13 -0
- package/dist/src/components/basic/Badge/index.d.ts +13 -0
- package/dist/src/components/basic/EllipsisText/index.d.ts +4 -36
- package/dist/src/components/basic/Form/index.d.ts +12 -0
- package/dist/src/components/basic/Rating/index.d.ts +13 -0
- package/dist/src/components/basic/Sidebar/index.d.ts +13 -0
- package/dist/src/components/basic/Stepper/index.d.ts +13 -0
- package/dist/src/components/basic/Timeline/index.d.ts +13 -0
- package/dist/src/components/index.d.ts +12 -4
- package/docs/agent/component-selection.md +104 -4
- package/docs/agent/prompt-recipes.md +167 -0
- package/docs/guides/agent-usage.md +213 -0
- package/docs/guides/system-operating-model.md +148 -0
- package/package.json +20 -3
- package/registry/agent-manifest.json +4040 -67
- package/cli/registry/basic/sheet.tsx +0 -18
- package/cli/registry/chat/user-question/UserQuestionCard.tsx +0 -198
- package/cli/registry/chat/user-question/UserQuestionFooter.tsx +0 -66
- package/cli/registry/chat/user-question/UserQuestionHeader.tsx +0 -64
- package/cli/registry/chat/user-question/useUserQuestionState.ts +0 -165
- package/dist/registry/basic/sheet.d.ts +0 -13
- package/dist/registry/chat/user-question/UserQuestionCard.d.ts +0 -36
- package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +0 -24
- package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +0 -26
- package/dist/registry/chat/user-question/useUserQuestionState.d.ts +0 -26
- package/dist/src/components/basic/CollapsibleSection/index.d.ts +0 -43
- package/dist/src/components/basic/Sheet/index.d.ts +0 -13
- package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +0 -12
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [WHO]: EllipsisText — overflow-aware text with optional tooltip disclosure.
|
|
3
|
+
* [FROM]: react, clsx, registry/basic/tooltip.
|
|
4
|
+
* [TO]: sparkdesign package consumers; CLI `add ellipsis-text`; Showcase demos.
|
|
5
|
+
* [HERE]: registry/basic/ellipsis-text.tsx — canonical source for copied and packaged EllipsisText.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
11
|
+
*/
|
|
12
|
+
import { type ReactNode, type CSSProperties } from 'react';
|
|
13
|
+
export interface EllipsisTextProps {
|
|
14
|
+
/** Text or inline content to display. */
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum visible lines before truncation.
|
|
18
|
+
* @default 1
|
|
19
|
+
*/
|
|
20
|
+
lines?: number;
|
|
21
|
+
/** Extra className for the text node. */
|
|
22
|
+
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Tooltip placement when overflow is detected.
|
|
25
|
+
* @default 'top'
|
|
26
|
+
*/
|
|
27
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
28
|
+
/** Extra className for Tooltip content. */
|
|
29
|
+
tooltipClassName?: string;
|
|
30
|
+
/** Custom tooltip content. Defaults to children. */
|
|
31
|
+
tooltipContent?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Disable tooltip even when content overflows.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Inline style for the text node. */
|
|
38
|
+
style?: CSSProperties;
|
|
39
|
+
/**
|
|
40
|
+
* Rendered text element.
|
|
41
|
+
* @default 'span'
|
|
42
|
+
*/
|
|
43
|
+
as?: 'span' | 'div' | 'p';
|
|
44
|
+
}
|
|
45
|
+
export declare const EllipsisText: import("react").ForwardRefExoticComponent<EllipsisTextProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
+
import { type ControllerProps, type FieldPath, type FieldValues } from "react-hook-form";
|
|
4
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
+
declare function FormField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function useFormField(): {
|
|
7
|
+
invalid: boolean;
|
|
8
|
+
isDirty: boolean;
|
|
9
|
+
isTouched: boolean;
|
|
10
|
+
isValidating: boolean;
|
|
11
|
+
error?: import("react-hook-form").FieldError;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
formItemId: string;
|
|
15
|
+
formDescriptionId: string;
|
|
16
|
+
formMessageId: string;
|
|
17
|
+
};
|
|
18
|
+
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
20
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
21
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
22
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
23
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -5,9 +5,22 @@ declare const iconButtonVariants: (props?: ({
|
|
|
5
5
|
rounded?: "square" | "pill" | null | undefined;
|
|
6
6
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
-
|
|
8
|
+
type IconButtonAccessibleName = {
|
|
9
|
+
'aria-label': string;
|
|
10
|
+
'aria-labelledby'?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
} | {
|
|
13
|
+
'aria-label'?: string;
|
|
14
|
+
'aria-labelledby': string;
|
|
15
|
+
title?: string;
|
|
16
|
+
} | {
|
|
17
|
+
'aria-label'?: string;
|
|
18
|
+
'aria-labelledby'?: string;
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
export type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-label' | 'aria-labelledby' | 'title'> & VariantProps<typeof iconButtonVariants> & IconButtonAccessibleName & {
|
|
9
22
|
icon: ReactNode;
|
|
10
23
|
asChild?: boolean;
|
|
11
|
-
}
|
|
24
|
+
};
|
|
12
25
|
export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
26
|
export { iconButtonVariants };
|
|
@@ -11,7 +11,7 @@ declare function Item({ className, variant, size, asChild, ...props }: React.Com
|
|
|
11
11
|
asChild?: boolean;
|
|
12
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare const itemMediaVariants: (props?: ({
|
|
14
|
-
variant?: "default" | "
|
|
14
|
+
variant?: "default" | "image" | "icon" | null | undefined;
|
|
15
15
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
16
|
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,6 +18,8 @@ export interface PopoverContentProps extends React.ComponentPropsWithoutRef<type
|
|
|
18
18
|
/** When provided (e.g. from ThemeStyleProvider), used for portal wrapper */
|
|
19
19
|
dataStyle?: string;
|
|
20
20
|
dataTheme?: string;
|
|
21
|
+
/** Popover internal padding; keep default to avoid breaking existing usages */
|
|
22
|
+
contentPadding?: 'default' | 'compact' | 'none';
|
|
21
23
|
}
|
|
22
24
|
declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
25
|
export { Popover, PopoverTrigger, PopoverAnchor, PopoverContent };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [WHO]: Rating component for tokenized star scoring and preference feedback.
|
|
3
|
+
* [FROM]: React, class-variance-authority, registry/lib/utils.
|
|
4
|
+
* [TO]: sparkdesign package consumers; Showcase; CLI registry copies.
|
|
5
|
+
* [HERE]: registry/basic/rating.tsx — interactive or read-only rating primitive.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
11
|
+
*/
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
14
|
+
declare const ratingVariants: (props?: ({
|
|
15
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
16
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
17
|
+
type RatingPrecision = 1 | 0.5;
|
|
18
|
+
export interface RatingProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>, VariantProps<typeof ratingVariants> {
|
|
19
|
+
value?: number;
|
|
20
|
+
defaultValue?: number;
|
|
21
|
+
onValueChange?: (value: number) => void;
|
|
22
|
+
max?: number;
|
|
23
|
+
precision?: RatingPrecision;
|
|
24
|
+
readOnly?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
showValue?: boolean;
|
|
27
|
+
label?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export { Rating, ratingVariants };
|
|
31
|
+
export type { RatingPrecision };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import { Button } from "./button";
|
|
4
|
+
import { Input } from "./input";
|
|
5
|
+
import { Separator } from "./separator";
|
|
6
|
+
import { Tooltip } from "./tooltip";
|
|
7
|
+
type SidebarContextValue = {
|
|
8
|
+
state: "expanded" | "collapsed";
|
|
9
|
+
open: boolean;
|
|
10
|
+
setOpen: (open: boolean) => void;
|
|
11
|
+
openMobile: boolean;
|
|
12
|
+
setOpenMobile: (open: boolean) => void;
|
|
13
|
+
isMobile: boolean;
|
|
14
|
+
toggleSidebar: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare function useSidebar(): SidebarContextValue;
|
|
17
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
23
|
+
side?: "left" | "right";
|
|
24
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
25
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function SidebarTrigger({ className, onClick, children, ...props }: Omit<React.ComponentProps<typeof Button>, "children" | "variant" | "size"> & {
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
39
|
+
asChild?: boolean;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
|
|
42
|
+
asChild?: boolean;
|
|
43
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
48
|
+
variant?: "default" | "outline" | null | undefined;
|
|
49
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
50
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
51
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
|
|
52
|
+
asChild?: boolean;
|
|
53
|
+
isActive?: boolean;
|
|
54
|
+
tooltip?: string | Omit<React.ComponentProps<typeof Tooltip>, "children">;
|
|
55
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
|
|
57
|
+
asChild?: boolean;
|
|
58
|
+
showOnHover?: boolean;
|
|
59
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
declare function SidebarMenuSkeleton({ className, showIcon, width, ...props }: React.ComponentProps<"div"> & {
|
|
62
|
+
showIcon?: boolean;
|
|
63
|
+
width?: string;
|
|
64
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
|
|
68
|
+
asChild?: boolean;
|
|
69
|
+
size?: "sm" | "md";
|
|
70
|
+
isActive?: boolean;
|
|
71
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarMenuButtonVariants, useSidebar, };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [WHO]: Stepper primitives for linear setup, checkout, and workflow progress.
|
|
3
|
+
* [FROM]: React, class-variance-authority, registry/lib/utils.
|
|
4
|
+
* [TO]: sparkdesign package consumers; Showcase; CLI registry copies.
|
|
5
|
+
* [HERE]: registry/basic/stepper.tsx — tokenized horizontal/vertical stepper.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
11
|
+
*/
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
14
|
+
type StepStatus = 'complete' | 'current' | 'upcoming' | 'error';
|
|
15
|
+
declare const stepperVariants: (props?: ({
|
|
16
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
17
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
|
+
export interface StepperProps extends React.OlHTMLAttributes<HTMLOListElement>, VariantProps<typeof stepperVariants> {
|
|
19
|
+
}
|
|
20
|
+
export interface StepperItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
21
|
+
status?: StepStatus;
|
|
22
|
+
}
|
|
23
|
+
export type StepperIndicatorProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
24
|
+
export type StepperContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
25
|
+
export type StepperTitleProps = React.HTMLAttributes<HTMLDivElement>;
|
|
26
|
+
export type StepperDescriptionProps = React.HTMLAttributes<HTMLDivElement>;
|
|
27
|
+
export type StepperSeparatorProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
28
|
+
declare function Stepper({ className, orientation, ...props }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function StepperItem({ className, status, ...props }: StepperItemProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function StepperIndicator({ className, children, ...props }: StepperIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function StepperContent({ className, ...props }: StepperContentProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function StepperTitle({ className, ...props }: StepperTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function StepperDescription({ className, ...props }: StepperDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function StepperSeparator({ className, ...props }: StepperSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export { Stepper, StepperItem, StepperIndicator, StepperContent, StepperTitle, StepperDescription, StepperSeparator, };
|
|
36
|
+
export type { StepStatus };
|
|
@@ -13,7 +13,7 @@ import * as React from 'react';
|
|
|
13
13
|
import { type VariantProps } from 'class-variance-authority';
|
|
14
14
|
declare const tagVariants: (props?: ({
|
|
15
15
|
appearance?: "outline" | "filled" | null | undefined;
|
|
16
|
-
color?: "link" | "primary" | "blue" | "lavender" | "orange" | "pink" | "purple" | "teal" | "yellow" | "
|
|
16
|
+
color?: "link" | "primary" | "error" | "blue" | "lavender" | "orange" | "pink" | "purple" | "teal" | "yellow" | "warning" | "success" | "info" | "mauve" | "slate" | "sage" | null | undefined;
|
|
17
17
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
18
18
|
export interface TagProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'>, VariantProps<typeof tagVariants> {
|
|
19
19
|
closable?: boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [WHO]: Timeline primitives for activity feeds, audits, and release histories.
|
|
3
|
+
* [FROM]: React, class-variance-authority, registry/lib/utils.
|
|
4
|
+
* [TO]: sparkdesign package consumers; Showcase; CLI registry copies.
|
|
5
|
+
* [HERE]: registry/basic/timeline.tsx — tokenized vertical timeline composition.
|
|
6
|
+
*
|
|
7
|
+
* [PROTOCOL]:
|
|
8
|
+
* 1. Keep this P3 header in sync when the public contract changes.
|
|
9
|
+
* 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change.
|
|
10
|
+
* 3. Follow design tokens and explicit type exports.
|
|
11
|
+
*/
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
14
|
+
declare const timelineMarkerVariants: (props?: ({
|
|
15
|
+
tone?: "default" | "primary" | "error" | "warning" | "success" | null | undefined;
|
|
16
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
17
|
+
export type TimelineProps = React.OlHTMLAttributes<HTMLOListElement>;
|
|
18
|
+
export type TimelineItemProps = React.LiHTMLAttributes<HTMLLIElement>;
|
|
19
|
+
export type TimelineContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
20
|
+
export type TimelineTitleProps = React.HTMLAttributes<HTMLDivElement>;
|
|
21
|
+
export type TimelineDescriptionProps = React.HTMLAttributes<HTMLDivElement>;
|
|
22
|
+
export type TimelineTimeProps = React.TimeHTMLAttributes<HTMLTimeElement>;
|
|
23
|
+
export type TimelineConnectorProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
24
|
+
export interface TimelineMarkerProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof timelineMarkerVariants> {
|
|
25
|
+
}
|
|
26
|
+
declare function Timeline({ className, ...props }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function TimelineItem({ className, ...props }: TimelineItemProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function TimelineMarker({ className, tone, ...props }: TimelineMarkerProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function TimelineConnector({ className, ...props }: TimelineConnectorProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function TimelineContent({ className, ...props }: TimelineContentProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function TimelineTitle({ className, ...props }: TimelineTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function TimelineDescription({ className, ...props }: TimelineDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function TimelineTime({ className, ...props }: TimelineTimeProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export { Timeline, TimelineItem, TimelineMarker, TimelineConnector, TimelineContent, TimelineTitle, TimelineDescription, TimelineTime, timelineMarkerVariants, };
|