sparkdesign 0.4.7 → 0.4.9

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 (96) hide show
  1. package/cli/registry/AGENTS.md +1 -1
  2. package/cli/registry/agent-manifest.json +3996 -67
  3. package/cli/registry/basic/accordion.tsx +79 -0
  4. package/cli/registry/basic/alert-dialog.tsx +3 -6
  5. package/cli/registry/basic/badge.tsx +49 -0
  6. package/cli/registry/basic/button.tsx +32 -14
  7. package/cli/registry/basic/card.tsx +20 -8
  8. package/cli/registry/basic/collapsible-card.tsx +12 -5
  9. package/cli/registry/basic/combobox.tsx +104 -46
  10. package/cli/registry/basic/context-menu.tsx +2 -3
  11. package/cli/registry/basic/date-picker.tsx +78 -7
  12. package/cli/registry/basic/dialog.tsx +3 -8
  13. package/cli/registry/basic/drawer.tsx +3 -5
  14. package/cli/registry/basic/dropdown-menu.tsx +2 -3
  15. package/cli/registry/basic/ellipsis-text.tsx +151 -0
  16. package/cli/registry/basic/form.tsx +186 -0
  17. package/cli/registry/basic/hover-card.tsx +2 -3
  18. package/cli/registry/basic/icon-button.tsx +29 -14
  19. package/cli/registry/basic/input-group.tsx +4 -4
  20. package/cli/registry/basic/input.tsx +29 -13
  21. package/cli/registry/basic/popover.tsx +2 -3
  22. package/cli/registry/basic/select.tsx +24 -4
  23. package/cli/registry/basic/sidebar.tsx +665 -0
  24. package/cli/registry/basic/sonner.tsx +10 -10
  25. package/cli/registry/basic/spinner.tsx +20 -5
  26. package/cli/registry/basic/textarea.tsx +30 -12
  27. package/cli/registry/basic/tooltip.tsx +2 -1
  28. package/cli/registry/chat/chat-input/compound.tsx +1 -0
  29. package/cli/registry/chat/user-question/compound.tsx +2 -0
  30. package/cli/registry/meta.json +250 -30
  31. package/dist/registry/basic/accordion.d.ts +15 -0
  32. package/dist/registry/basic/alert-dialog.d.ts +1 -1
  33. package/dist/registry/basic/avatar.d.ts +1 -1
  34. package/dist/registry/basic/badge.d.ts +23 -0
  35. package/dist/registry/basic/button.d.ts +3 -1
  36. package/dist/registry/basic/card.d.ts +9 -4
  37. package/dist/registry/basic/combobox.d.ts +20 -9
  38. package/dist/registry/basic/date-picker.d.ts +18 -9
  39. package/dist/registry/basic/dialog.d.ts +1 -1
  40. package/dist/registry/basic/ellipsis-text.d.ts +45 -0
  41. package/dist/registry/basic/form.d.ts +23 -0
  42. package/dist/registry/basic/icon-button.d.ts +17 -3
  43. package/dist/registry/basic/input-group.d.ts +5 -3
  44. package/dist/registry/basic/input.d.ts +8 -3
  45. package/dist/registry/basic/item.d.ts +3 -3
  46. package/dist/registry/basic/resizable.d.ts +48 -48
  47. package/dist/registry/basic/select.d.ts +7 -2
  48. package/dist/registry/basic/sidebar.d.ts +72 -0
  49. package/dist/registry/basic/spinner.d.ts +6 -2
  50. package/dist/registry/basic/tag.d.ts +1 -1
  51. package/dist/registry/basic/textarea.d.ts +9 -3
  52. package/dist/registry/basic/toggle.d.ts +1 -1
  53. package/dist/scale/computed.css +11 -0
  54. package/dist/scale/config.css +11 -0
  55. package/dist/scale/presets/compact.css +7 -0
  56. package/dist/scale/presets/dense.css +7 -0
  57. package/dist/scale/presets/sharp.css +7 -0
  58. package/dist/scale/presets/soft.css +7 -0
  59. package/dist/spark-design.cjs.js +34 -37
  60. package/dist/spark-design.es.js +7200 -4933
  61. package/dist/sparkdesign.css +1 -1
  62. package/dist/src/components/basic/Accordion/index.d.ts +13 -0
  63. package/dist/src/components/basic/Badge/index.d.ts +13 -0
  64. package/dist/src/components/basic/EllipsisText/index.d.ts +4 -36
  65. package/dist/src/components/basic/Form/index.d.ts +12 -0
  66. package/dist/src/components/basic/Sidebar/index.d.ts +13 -0
  67. package/dist/src/components/index.d.ts +7 -3
  68. package/dist/src/lib/index.d.ts +1 -1
  69. package/dist/src/lib/motion.d.ts +79 -0
  70. package/dist/theme-base.css +22 -0
  71. package/dist/themes/dark-mint.css +6 -0
  72. package/dist/themes/dark-parchment.css +6 -0
  73. package/dist/themes/light-parchment.css +6 -0
  74. package/dist/tokens/scale/computed.css +11 -0
  75. package/dist/tokens/scale/config.css +11 -0
  76. package/dist/tokens/scale/presets/compact.css +7 -0
  77. package/dist/tokens/scale/presets/dense.css +7 -0
  78. package/dist/tokens/scale/presets/sharp.css +7 -0
  79. package/dist/tokens/scale/presets/soft.css +7 -0
  80. package/dist/tokens/theme-base.css +22 -0
  81. package/dist/tokens/themes/dark-mint.css +6 -0
  82. package/dist/tokens/themes/dark-parchment.css +6 -0
  83. package/dist/tokens/themes/light-parchment.css +6 -0
  84. package/docs/agent/component-selection.md +106 -4
  85. package/package.json +8 -3
  86. package/registry/agent-manifest.json +3996 -67
  87. package/cli/registry/chat/user-question/UserQuestionCard.tsx +0 -198
  88. package/cli/registry/chat/user-question/UserQuestionFooter.tsx +0 -66
  89. package/cli/registry/chat/user-question/UserQuestionHeader.tsx +0 -64
  90. package/cli/registry/chat/user-question/useUserQuestionState.ts +0 -165
  91. package/dist/registry/chat/user-question/UserQuestionCard.d.ts +0 -36
  92. package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +0 -24
  93. package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +0 -26
  94. package/dist/registry/chat/user-question/useUserQuestionState.d.ts +0 -26
  95. package/dist/src/components/basic/CollapsibleSection/index.d.ts +0 -43
  96. package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +0 -12
@@ -3,7 +3,7 @@ import * as TogglePrimitive from '@radix-ui/react-toggle';
3
3
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
4
4
  import { type VariantProps } from 'class-variance-authority';
5
5
  declare const toggleVariants: (props?: ({
6
- variant?: "outline" | "default" | null | undefined;
6
+ variant?: "default" | "outline" | null | undefined;
7
7
  size?: "sm" | "md" | "lg" | null | undefined;
8
8
  rounded?: "square" | "pill" | null | undefined;
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -100,4 +100,15 @@
100
100
  --motion-ease-standard: var(--config-motion-ease-standard);
101
101
  --motion-ease-emphasized: var(--config-motion-ease-emphasized);
102
102
  --motion-ease-out: var(--config-motion-ease-out);
103
+
104
+ /* ============================================
105
+ Motion Multiplier (从配置映射)
106
+ ============================================ */
107
+ --motion-multiplier: var(--config-motion-multiplier);
108
+
109
+ /* ============================================
110
+ Border Width (从配置映射)
111
+ ============================================ */
112
+ --border-width: var(--config-border-width);
113
+ --border-width-thick: var(--config-border-width-thick);
103
114
  }
@@ -102,6 +102,17 @@
102
102
  --config-motion-ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);
103
103
  --config-motion-ease-out: cubic-bezier(0, 0, 0.2, 1);
104
104
 
105
+ /* ============================================
106
+ Motion Multiplier (preset 可覆盖,<1 更快,>1 更慢)
107
+ ============================================ */
108
+ --config-motion-multiplier: 1;
109
+
110
+ /* ============================================
111
+ Border Width 配置
112
+ ============================================ */
113
+ --config-border-width: 1px;
114
+ --config-border-width-thick: 2px;
115
+
105
116
  /* ============================================
106
117
  Font Family 配置
107
118
  ============================================ */
@@ -38,4 +38,11 @@
38
38
  --font-size-7xl: 56px;
39
39
  --font-size-8xl: 64px;
40
40
  --font-size-9xl: 88px;
41
+
42
+ /* Motion (略快) */
43
+ --motion-multiplier: 0.9;
44
+
45
+ /* Border */
46
+ --border-width: 1px;
47
+ --border-width-thick: 1px;
41
48
  }
@@ -72,4 +72,11 @@
72
72
  --font-size-7xl: 44px;
73
73
  --font-size-8xl: 56px;
74
74
  --font-size-9xl: 72px;
75
+
76
+ /* Motion (快速) */
77
+ --motion-multiplier: 0.8;
78
+
79
+ /* Border (极细) */
80
+ --border-width: 1px;
81
+ --border-width-thick: 1px;
75
82
  }
@@ -49,4 +49,11 @@
49
49
  --font-size-7xl: 56px;
50
50
  --font-size-8xl: 64px;
51
51
  --font-size-9xl: 88px;
52
+
53
+ /* Motion (机械精准,最快) */
54
+ --motion-multiplier: 0.75;
55
+
56
+ /* Border (几何硬边) */
57
+ --border-width: 1px;
58
+ --border-width-thick: 2px;
52
59
  }
@@ -35,4 +35,11 @@
35
35
  --font-size-xl--line-height: 28px;
36
36
  --font-size-2xl: 22px;
37
37
  --font-size-2xl--line-height: 30px;
38
+
39
+ /* Motion (更舒缓) */
40
+ --motion-multiplier: 1.3;
41
+
42
+ /* Border (无边框面,靠阴影区分层级) */
43
+ --border-width: 0px;
44
+ --border-width-thick: 1px;
38
45
  }