sparkdesign 0.4.9 → 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 +137 -93
- package/cli/registry/basic/calendar.tsx +16 -16
- package/cli/registry/basic/combobox.tsx +11 -2
- package/cli/registry/basic/date-picker.tsx +3 -2
- package/cli/registry/basic/popover.tsx +19 -2
- package/cli/registry/basic/rating.tsx +161 -0
- package/cli/registry/basic/sidebar.tsx +1 -1
- package/cli/registry/basic/stepper.tsx +163 -0
- package/cli/registry/basic/timeline.tsx +129 -0
- package/cli/registry/chat/permission-card.tsx +1 -1
- package/cli/registry/meta.json +30 -25
- 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/popover.d.ts +2 -0
- package/dist/registry/basic/rating.d.ts +31 -0
- package/dist/registry/basic/stepper.d.ts +36 -0
- package/dist/registry/basic/timeline.d.ts +34 -0
- package/dist/spark-design.cjs.js +23 -23
- package/dist/spark-design.es.js +3420 -3035
- package/dist/sparkdesign.css +1 -1
- package/dist/src/components/basic/Rating/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 +6 -2
- package/docs/agent/component-selection.md +1 -3
- 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 +14 -2
- package/registry/agent-manifest.json +137 -93
- package/cli/registry/basic/sheet.tsx +0 -18
- package/dist/registry/basic/sheet.d.ts +0 -13
- package/dist/src/components/basic/Sheet/index.d.ts +0 -13
|
@@ -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, };
|