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.
Files changed (71) hide show
  1. package/AGENT_COMPONENT_LIBRARY_QUICKREF.md +117 -0
  2. package/AI_README.md +7 -2
  3. package/README.md +4 -1
  4. package/cli/registry/AGENTS.md +1 -1
  5. package/cli/registry/agent-manifest.json +4040 -67
  6. package/cli/registry/basic/accordion.tsx +79 -0
  7. package/cli/registry/basic/badge.tsx +49 -0
  8. package/cli/registry/basic/button.tsx +19 -14
  9. package/cli/registry/basic/calendar.tsx +16 -16
  10. package/cli/registry/basic/collapsible-card.tsx +10 -1
  11. package/cli/registry/basic/combobox.tsx +11 -2
  12. package/cli/registry/basic/date-picker.tsx +3 -2
  13. package/cli/registry/basic/ellipsis-text.tsx +151 -0
  14. package/cli/registry/basic/form.tsx +186 -0
  15. package/cli/registry/basic/icon-button.tsx +12 -4
  16. package/cli/registry/basic/popover.tsx +19 -2
  17. package/cli/registry/basic/rating.tsx +161 -0
  18. package/cli/registry/basic/sidebar.tsx +665 -0
  19. package/cli/registry/basic/sonner.tsx +10 -10
  20. package/cli/registry/basic/stepper.tsx +163 -0
  21. package/cli/registry/basic/timeline.tsx +129 -0
  22. package/cli/registry/chat/chat-input/compound.tsx +1 -0
  23. package/cli/registry/chat/permission-card.tsx +1 -1
  24. package/cli/registry/chat/user-question/compound.tsx +2 -0
  25. package/cli/registry/meta.json +171 -13
  26. package/dist/registry/basic/accordion.d.ts +15 -0
  27. package/dist/registry/basic/badge.d.ts +23 -0
  28. package/dist/registry/basic/calendar.d.ts +1 -1
  29. package/dist/registry/basic/combobox.d.ts +2 -1
  30. package/dist/registry/basic/date-picker.d.ts +2 -2
  31. package/dist/registry/basic/ellipsis-text.d.ts +45 -0
  32. package/dist/registry/basic/form.d.ts +23 -0
  33. package/dist/registry/basic/icon-button.d.ts +15 -2
  34. package/dist/registry/basic/item.d.ts +1 -1
  35. package/dist/registry/basic/popover.d.ts +2 -0
  36. package/dist/registry/basic/rating.d.ts +31 -0
  37. package/dist/registry/basic/sidebar.d.ts +72 -0
  38. package/dist/registry/basic/stepper.d.ts +36 -0
  39. package/dist/registry/basic/tag.d.ts +1 -1
  40. package/dist/registry/basic/timeline.d.ts +34 -0
  41. package/dist/spark-design.cjs.js +27 -30
  42. package/dist/spark-design.es.js +6398 -5130
  43. package/dist/sparkdesign.css +1 -1
  44. package/dist/src/components/basic/Accordion/index.d.ts +13 -0
  45. package/dist/src/components/basic/Badge/index.d.ts +13 -0
  46. package/dist/src/components/basic/EllipsisText/index.d.ts +4 -36
  47. package/dist/src/components/basic/Form/index.d.ts +12 -0
  48. package/dist/src/components/basic/Rating/index.d.ts +13 -0
  49. package/dist/src/components/basic/Sidebar/index.d.ts +13 -0
  50. package/dist/src/components/basic/Stepper/index.d.ts +13 -0
  51. package/dist/src/components/basic/Timeline/index.d.ts +13 -0
  52. package/dist/src/components/index.d.ts +12 -4
  53. package/docs/agent/component-selection.md +104 -4
  54. package/docs/agent/prompt-recipes.md +167 -0
  55. package/docs/guides/agent-usage.md +213 -0
  56. package/docs/guides/system-operating-model.md +148 -0
  57. package/package.json +20 -3
  58. package/registry/agent-manifest.json +4040 -67
  59. package/cli/registry/basic/sheet.tsx +0 -18
  60. package/cli/registry/chat/user-question/UserQuestionCard.tsx +0 -198
  61. package/cli/registry/chat/user-question/UserQuestionFooter.tsx +0 -66
  62. package/cli/registry/chat/user-question/UserQuestionHeader.tsx +0 -64
  63. package/cli/registry/chat/user-question/useUserQuestionState.ts +0 -165
  64. package/dist/registry/basic/sheet.d.ts +0 -13
  65. package/dist/registry/chat/user-question/UserQuestionCard.d.ts +0 -36
  66. package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +0 -24
  67. package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +0 -26
  68. package/dist/registry/chat/user-question/useUserQuestionState.d.ts +0 -26
  69. package/dist/src/components/basic/CollapsibleSection/index.d.ts +0 -43
  70. package/dist/src/components/basic/Sheet/index.d.ts +0 -13
  71. package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +0 -12
@@ -1,43 +0,0 @@
1
- /**
2
- * [WHO]: Public exports from this file (see implementation below).
3
- * [FROM]: See the import block immediately after this header.
4
- * [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
5
- * [HERE]: src/components/basic/CollapsibleSection/index.tsx — Spark Design source; keep aligned with the main library.
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 } from 'react';
13
- export interface CollapsibleSectionProps {
14
- /** 区块标题 */
15
- title: string;
16
- /** 展开时的描述文案(可选) */
17
- description?: string;
18
- /** 展开时的内容区域 */
19
- children?: ReactNode;
20
- /** 是否展开 */
21
- open: boolean;
22
- /** 切换展开/收起 */
23
- onToggle: () => void;
24
- /** 是否为最后一项(最后一项无底部分割线) */
25
- isLast?: boolean;
26
- /** 自定义 className */
27
- className?: string;
28
- /** 无障碍:内容区 id,不传则自动生成 */
29
- id?: string;
30
- /**
31
- * 内容区最大高度(px),超出时内部滚动并显示上下渐变遮罩。
32
- * 不传则无高度限制、不产生内部滚动。
33
- */
34
- contentMaxHeight?: number;
35
- /**
36
- * 吸底节点(如「查看全部」按钮)。与 contentMaxHeight 同时传入时,内容区为「可滚动列表 + 底部固定 footer」布局。
37
- */
38
- footer?: ReactNode;
39
- }
40
- export declare function CollapsibleSection({ title, description, children, open, onToggle, isLast, className, id: idProp, contentMaxHeight, footer, }: CollapsibleSectionProps): import("react/jsx-runtime").JSX.Element;
41
- export declare namespace CollapsibleSection {
42
- var displayName: string;
43
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * [WHO]: Public Sheet compatibility exports.
3
- * [FROM]: registry/basic/sheet.
4
- * [TO]: sparkdesign package consumers and Showcase demos.
5
- * [HERE]: src/components/basic/Sheet/index.tsx — package-facing Sheet alias re-export.
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
- export { Sheet, SheetTrigger, SheetClose, SheetPortal, SheetOverlay, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, sheetVariants, } from '../../../../registry/basic/sheet';
13
- export type { SheetContentProps, SheetHeaderProps, SheetFooterProps, } from '../../../../registry/basic/sheet';
@@ -1,12 +0,0 @@
1
- /**
2
- * [WHO]: Public exports from this file (see implementation below).
3
- * [FROM]: See the import block immediately after this header.
4
- * [TO]: sparkdesign package consumers; output of CLI `add` when applicable.
5
- * [HERE]: src/components/chat/Response/StreamingMarkdownBlock.tsx — Spark Design source; keep aligned with the main library.
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
- export { StreamingMarkdownBlock, type StreamingMarkdownBlockProps, } from '../../../../registry/chat/streaming-markdown-block';