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
@@ -1,17 +1,32 @@
1
1
  import { forwardRef } from 'react'
2
2
  import type { HTMLAttributes } from 'react'
3
+ import { cva, type VariantProps } from 'class-variance-authority'
3
4
  import { cn } from '@/lib/utils'
4
5
  import { LoaderLine } from './icons-inline'
5
6
 
6
- export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
7
- className?: string
8
- }
7
+ const spinnerVariants = cva('animate-spin', {
8
+ variants: {
9
+ size: {
10
+ xs: 'size-3',
11
+ sm: 'size-3.5',
12
+ md: 'size-4',
13
+ lg: 'size-5',
14
+ },
15
+ },
16
+ defaultVariants: { size: 'md' },
17
+ })
18
+
19
+ export interface SpinnerProps
20
+ extends HTMLAttributes<HTMLSpanElement>,
21
+ VariantProps<typeof spinnerVariants> {}
9
22
 
10
23
  export const Spinner = forwardRef<HTMLSpanElement, SpinnerProps>(
11
- ({ className, ...props }, ref) => (
24
+ ({ className, size = 'md', ...props }, ref) => (
12
25
  <span ref={ref} role="status" aria-label="Loading" {...props}>
13
- <LoaderLine className={cn('size-4 animate-spin', className)} />
26
+ <LoaderLine className={cn(spinnerVariants({ size }), className)} />
14
27
  </span>
15
28
  )
16
29
  )
17
30
  Spinner.displayName = 'Spinner'
31
+
32
+ export { spinnerVariants }
@@ -1,25 +1,43 @@
1
1
  import * as React from 'react'
2
+ import { cva, type VariantProps } from 'class-variance-authority'
2
3
  import { cn } from '@/lib/utils'
3
4
 
4
- export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>
5
+ const textareaVariants = cva(
6
+ [
7
+ 'flex w-full rounded-lg border border-border-tertiary bg-bg-container text-text transition-colors',
8
+ 'placeholder:text-text-tertiary',
9
+ 'outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0',
10
+ 'focus:border-border-secondary focus-visible:border-border-secondary',
11
+ 'disabled:cursor-not-allowed disabled:opacity-50',
12
+ 'aria-invalid:border-error aria-invalid:ring-0',
13
+ ].join(' '),
14
+ {
15
+ variants: {
16
+ size: {
17
+ sm: 'min-h-12 px-2 py-1 text-xs',
18
+ md: 'min-h-16 px-3 py-2 text-sm',
19
+ lg: 'min-h-20 px-4 py-2.5 text-base',
20
+ },
21
+ },
22
+ defaultVariants: { size: 'md' },
23
+ }
24
+ )
25
+
26
+ export interface TextareaProps
27
+ extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>,
28
+ VariantProps<typeof textareaVariants> {
29
+ size?: 'sm' | 'md' | 'lg'
30
+ }
5
31
 
6
32
  const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
7
- ({ className, ...props }, ref) => (
33
+ ({ className, size = 'md', ...props }, ref) => (
8
34
  <textarea
9
35
  ref={ref}
10
- className={cn(
11
- 'flex min-h-16 w-full rounded-lg border border-border-tertiary bg-bg-container px-3 py-2 text-sm text-text transition-colors',
12
- 'placeholder:text-text-tertiary',
13
- 'outline-none focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0',
14
- 'focus:border-border-secondary focus-visible:border-border-secondary',
15
- 'disabled:cursor-not-allowed disabled:opacity-50',
16
- 'aria-invalid:border-error aria-invalid:ring-0',
17
- className,
18
- )}
36
+ className={cn(textareaVariants({ size }), className)}
19
37
  {...props}
20
38
  />
21
39
  ),
22
40
  )
23
41
  Textarea.displayName = 'Textarea'
24
42
 
25
- export { Textarea }
43
+ export { Textarea, textareaVariants }
@@ -2,6 +2,7 @@ import * as React from 'react'
2
2
  import { motion } from 'framer-motion'
3
3
  import * as TooltipPrimitive from '@radix-ui/react-tooltip'
4
4
  import { cn } from '@/lib/utils'
5
+ import { MOTION_SCALE_IN } from '@/lib/motion'
5
6
  import { getThemeFromDocument } from './theme-from-document'
6
7
 
7
8
  const TooltipProvider = TooltipPrimitive.Provider
@@ -36,7 +37,7 @@ const TooltipContent = React.forwardRef<
36
37
  )}
37
38
  {...props}
38
39
  >
39
- <motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ duration: 0.15 }}>
40
+ <motion.div {...MOTION_SCALE_IN}>
40
41
  {children}
41
42
  </motion.div>
42
43
  </TooltipPrimitive.Content>
@@ -208,6 +208,7 @@ export function ChatInputMoreButton() {
208
208
  icon={ctx.addLargeIcon ?? <MoreLine className="h-5 w-5" />}
209
209
  onClick={ctx.onMoreButtonClick}
210
210
  disabled={ctx.disabled}
211
+ aria-label="More actions"
211
212
  />
212
213
  )
213
214
  }
@@ -39,6 +39,7 @@ export function UserQuestionHeader({ className }: UserQuestionHeaderProps) {
39
39
  onClick={ctx.handlePrevious}
40
40
  disabled={ctx.currentQuestionIndex === 0}
41
41
  icon={ctx.arrowUpSIcon}
42
+ aria-label="Previous question"
42
43
  />
43
44
  <span className="text-xs leading-xs text-text-tertiary px-1">
44
45
  {ctx.currentQuestionIndex + 1} / {ctx.questions.length}
@@ -49,6 +50,7 @@ export function UserQuestionHeader({ className }: UserQuestionHeaderProps) {
49
50
  onClick={ctx.handleNext}
50
51
  disabled={ctx.currentQuestionIndex === ctx.questions.length - 1}
51
52
  icon={ctx.arrowDownSIcon}
53
+ aria-label="Next question"
52
54
  />
53
55
  </div>
54
56
  )}
@@ -1,4 +1,17 @@
1
1
  {
2
+ "accordion": {
3
+ "files": [
4
+ "basic/accordion.tsx",
5
+ "basic/icons-inline.tsx"
6
+ ],
7
+ "dependencies": [
8
+ "@radix-ui/react-accordion"
9
+ ],
10
+ "peerDependencies": [
11
+ "react",
12
+ "react-dom"
13
+ ]
14
+ },
2
15
  "alert": {
3
16
  "files": [
4
17
  "basic/alert.tsx"
@@ -31,11 +44,13 @@
31
44
  "chat/ask-user-part.tsx",
32
45
  "basic/collapsible-card.tsx",
33
46
  "basic/icons-inline.tsx",
34
- "basic/button.tsx"
47
+ "basic/button.tsx",
48
+ "basic/spinner.tsx"
35
49
  ],
36
50
  "dependencies": [
37
51
  "class-variance-authority",
38
- "framer-motion"
52
+ "framer-motion",
53
+ "radix-ui"
39
54
  ],
40
55
  "peerDependencies": [
41
56
  "react",
@@ -67,6 +82,19 @@
67
82
  "react-dom"
68
83
  ]
69
84
  },
85
+ "badge": {
86
+ "files": [
87
+ "basic/badge.tsx"
88
+ ],
89
+ "dependencies": [
90
+ "@radix-ui/react-slot",
91
+ "class-variance-authority"
92
+ ],
93
+ "peerDependencies": [
94
+ "react",
95
+ "react-dom"
96
+ ]
97
+ },
70
98
  "breadcrumb": {
71
99
  "files": [
72
100
  "basic/breadcrumb.tsx",
@@ -84,13 +112,15 @@
84
112
  "basic/collapsible-card.tsx",
85
113
  "basic/icons-inline.tsx",
86
114
  "basic/button.tsx",
115
+ "basic/spinner.tsx",
87
116
  "basic/select.tsx",
88
117
  "basic/theme-from-document.ts"
89
118
  ],
90
119
  "dependencies": [
91
120
  "@radix-ui/react-select",
92
121
  "class-variance-authority",
93
- "framer-motion"
122
+ "framer-motion",
123
+ "radix-ui"
94
124
  ],
95
125
  "peerDependencies": [
96
126
  "react",
@@ -99,10 +129,13 @@
99
129
  },
100
130
  "button": {
101
131
  "files": [
102
- "basic/button.tsx"
132
+ "basic/button.tsx",
133
+ "basic/spinner.tsx",
134
+ "basic/icons-inline.tsx"
103
135
  ],
104
136
  "dependencies": [
105
- "class-variance-authority"
137
+ "class-variance-authority",
138
+ "radix-ui"
106
139
  ],
107
140
  "peerDependencies": [
108
141
  "react",
@@ -124,11 +157,14 @@
124
157
  "calendar": {
125
158
  "files": [
126
159
  "basic/calendar.tsx",
127
- "basic/button.tsx"
160
+ "basic/button.tsx",
161
+ "basic/spinner.tsx",
162
+ "basic/icons-inline.tsx"
128
163
  ],
129
164
  "dependencies": [
130
165
  "class-variance-authority",
131
166
  "lucide-react",
167
+ "radix-ui",
132
168
  "react-day-picker"
133
169
  ],
134
170
  "peerDependencies": [
@@ -140,7 +176,9 @@
140
176
  "files": [
141
177
  "basic/card.tsx"
142
178
  ],
143
- "dependencies": [],
179
+ "dependencies": [
180
+ "class-variance-authority"
181
+ ],
144
182
  "peerDependencies": [
145
183
  "react",
146
184
  "react-dom"
@@ -149,12 +187,15 @@
149
187
  "carousel": {
150
188
  "files": [
151
189
  "basic/carousel.tsx",
152
- "basic/button.tsx"
190
+ "basic/button.tsx",
191
+ "basic/spinner.tsx",
192
+ "basic/icons-inline.tsx"
153
193
  ],
154
194
  "dependencies": [
155
195
  "class-variance-authority",
156
196
  "embla-carousel-react",
157
- "lucide-react"
197
+ "lucide-react",
198
+ "radix-ui"
158
199
  ],
159
200
  "peerDependencies": [
160
201
  "react",
@@ -197,7 +238,8 @@
197
238
  "@radix-ui/react-alert-dialog",
198
239
  "@radix-ui/react-dropdown-menu",
199
240
  "class-variance-authority",
200
- "framer-motion"
241
+ "framer-motion",
242
+ "radix-ui"
201
243
  ],
202
244
  "peerDependencies": [
203
245
  "react",
@@ -275,9 +317,23 @@
275
317
  "combobox": {
276
318
  "files": [
277
319
  "basic/combobox.tsx",
278
- "basic/input.tsx"
320
+ "basic/button.tsx",
321
+ "basic/spinner.tsx",
322
+ "basic/icons-inline.tsx",
323
+ "basic/command.tsx",
324
+ "basic/dialog.tsx",
325
+ "basic/theme-from-document.ts",
326
+ "basic/popover.tsx"
327
+ ],
328
+ "dependencies": [
329
+ "@radix-ui/react-dialog",
330
+ "@radix-ui/react-popover",
331
+ "class-variance-authority",
332
+ "cmdk",
333
+ "framer-motion",
334
+ "lucide-react",
335
+ "radix-ui"
279
336
  ],
280
- "dependencies": [],
281
337
  "peerDependencies": [
282
338
  "react",
283
339
  "react-dom"
@@ -347,9 +403,22 @@
347
403
  "date-picker": {
348
404
  "files": [
349
405
  "basic/date-picker.tsx",
350
- "basic/input.tsx"
406
+ "basic/button.tsx",
407
+ "basic/spinner.tsx",
408
+ "basic/icons-inline.tsx",
409
+ "basic/calendar.tsx",
410
+ "basic/popover.tsx",
411
+ "basic/theme-from-document.ts"
412
+ ],
413
+ "dependencies": [
414
+ "@radix-ui/react-popover",
415
+ "class-variance-authority",
416
+ "date-fns",
417
+ "framer-motion",
418
+ "lucide-react",
419
+ "radix-ui",
420
+ "react-day-picker"
351
421
  ],
352
- "dependencies": [],
353
422
  "peerDependencies": [
354
423
  "react",
355
424
  "react-dom"
@@ -413,6 +482,22 @@
413
482
  "react-dom"
414
483
  ]
415
484
  },
485
+ "ellipsis-text": {
486
+ "files": [
487
+ "basic/ellipsis-text.tsx",
488
+ "basic/tooltip.tsx",
489
+ "basic/theme-from-document.ts"
490
+ ],
491
+ "dependencies": [
492
+ "@radix-ui/react-tooltip",
493
+ "clsx",
494
+ "framer-motion"
495
+ ],
496
+ "peerDependencies": [
497
+ "react",
498
+ "react-dom"
499
+ ]
500
+ },
416
501
  "empty": {
417
502
  "files": [
418
503
  "basic/empty.tsx"
@@ -472,11 +557,13 @@
472
557
  "chat/file-review-part.tsx",
473
558
  "basic/collapsible-card.tsx",
474
559
  "basic/icons-inline.tsx",
475
- "basic/button.tsx"
560
+ "basic/button.tsx",
561
+ "basic/spinner.tsx"
476
562
  ],
477
563
  "dependencies": [
478
564
  "class-variance-authority",
479
- "framer-motion"
565
+ "framer-motion",
566
+ "radix-ui"
480
567
  ],
481
568
  "peerDependencies": [
482
569
  "react",
@@ -497,6 +584,21 @@
497
584
  "react-dom"
498
585
  ]
499
586
  },
587
+ "form": {
588
+ "files": [
589
+ "basic/form.tsx",
590
+ "basic/label.tsx"
591
+ ],
592
+ "dependencies": [
593
+ "@radix-ui/react-label",
594
+ "@radix-ui/react-slot",
595
+ "react-hook-form"
596
+ ],
597
+ "peerDependencies": [
598
+ "react",
599
+ "react-dom"
600
+ ]
601
+ },
500
602
  "generated-images-grid": {
501
603
  "files": [
502
604
  "chat/generated-images-grid.tsx"
@@ -521,15 +623,17 @@
521
623
  "files": [
522
624
  "chat/hint-banner.tsx",
523
625
  "basic/button.tsx",
524
- "basic/dropdown-menu.tsx",
626
+ "basic/spinner.tsx",
525
627
  "basic/icons-inline.tsx",
628
+ "basic/dropdown-menu.tsx",
526
629
  "basic/theme-from-document.ts",
527
630
  "basic/scrollbar.tsx"
528
631
  ],
529
632
  "dependencies": [
530
633
  "@radix-ui/react-dropdown-menu",
531
634
  "class-variance-authority",
532
- "framer-motion"
635
+ "framer-motion",
636
+ "radix-ui"
533
637
  ],
534
638
  "peerDependencies": [
535
639
  "react",
@@ -555,7 +659,8 @@
555
659
  "basic/icon-button.tsx"
556
660
  ],
557
661
  "dependencies": [
558
- "class-variance-authority"
662
+ "class-variance-authority",
663
+ "radix-ui"
559
664
  ],
560
665
  "peerDependencies": [
561
666
  "react",
@@ -569,7 +674,8 @@
569
674
  "basic/icon-button.tsx"
570
675
  ],
571
676
  "dependencies": [
572
- "class-variance-authority"
677
+ "class-variance-authority",
678
+ "radix-ui"
573
679
  ],
574
680
  "peerDependencies": [
575
681
  "react",
@@ -593,7 +699,9 @@
593
699
  "files": [
594
700
  "basic/input.tsx"
595
701
  ],
596
- "dependencies": [],
702
+ "dependencies": [
703
+ "class-variance-authority"
704
+ ],
597
705
  "peerDependencies": [
598
706
  "react",
599
707
  "react-dom"
@@ -603,11 +711,14 @@
603
711
  "files": [
604
712
  "basic/input-group.tsx",
605
713
  "basic/button.tsx",
714
+ "basic/spinner.tsx",
715
+ "basic/icons-inline.tsx",
606
716
  "basic/input.tsx",
607
717
  "basic/textarea.tsx"
608
718
  ],
609
719
  "dependencies": [
610
- "class-variance-authority"
720
+ "class-variance-authority",
721
+ "radix-ui"
611
722
  ],
612
723
  "peerDependencies": [
613
724
  "react",
@@ -699,12 +810,14 @@
699
810
  "basic/collapsible-card.tsx",
700
811
  "basic/icons-inline.tsx",
701
812
  "basic/button.tsx",
813
+ "basic/spinner.tsx",
702
814
  "basic/scrollbar.tsx",
703
815
  "lib/use-mermaid-render.ts"
704
816
  ],
705
817
  "dependencies": [
706
818
  "class-variance-authority",
707
- "framer-motion"
819
+ "framer-motion",
820
+ "radix-ui"
708
821
  ],
709
822
  "peerDependencies": [
710
823
  "react",
@@ -764,11 +877,13 @@
764
877
  "files": [
765
878
  "chat/permission-card.tsx",
766
879
  "basic/button.tsx",
880
+ "basic/spinner.tsx",
767
881
  "basic/icons-inline.tsx",
768
882
  "basic/scrollbar.tsx"
769
883
  ],
770
884
  "dependencies": [
771
- "class-variance-authority"
885
+ "class-variance-authority",
886
+ "radix-ui"
772
887
  ],
773
888
  "peerDependencies": [
774
889
  "react",
@@ -781,11 +896,13 @@
781
896
  "basic/collapsible-card.tsx",
782
897
  "basic/icons-inline.tsx",
783
898
  "basic/button.tsx",
899
+ "basic/spinner.tsx",
784
900
  "basic/icon-button.tsx"
785
901
  ],
786
902
  "dependencies": [
787
903
  "class-variance-authority",
788
- "framer-motion"
904
+ "framer-motion",
905
+ "radix-ui"
789
906
  ],
790
907
  "peerDependencies": [
791
908
  "react",
@@ -830,7 +947,8 @@
830
947
  "dependencies": [
831
948
  "@radix-ui/react-tooltip",
832
949
  "class-variance-authority",
833
- "framer-motion"
950
+ "framer-motion",
951
+ "radix-ui"
834
952
  ],
835
953
  "peerDependencies": [
836
954
  "react",
@@ -958,7 +1076,8 @@
958
1076
  "basic/theme-from-document.ts"
959
1077
  ],
960
1078
  "dependencies": [
961
- "@radix-ui/react-select"
1079
+ "@radix-ui/react-select",
1080
+ "class-variance-authority"
962
1081
  ],
963
1082
  "peerDependencies": [
964
1083
  "react",
@@ -1022,6 +1141,35 @@
1022
1141
  "react-dom"
1023
1142
  ]
1024
1143
  },
1144
+ "sidebar": {
1145
+ "files": [
1146
+ "basic/sidebar.tsx",
1147
+ "basic/button.tsx",
1148
+ "basic/spinner.tsx",
1149
+ "basic/icons-inline.tsx",
1150
+ "basic/input.tsx",
1151
+ "basic/separator.tsx",
1152
+ "basic/sheet.tsx",
1153
+ "basic/drawer.tsx",
1154
+ "basic/theme-from-document.ts",
1155
+ "basic/skeleton.tsx",
1156
+ "basic/tooltip.tsx"
1157
+ ],
1158
+ "dependencies": [
1159
+ "@radix-ui/react-dialog",
1160
+ "@radix-ui/react-separator",
1161
+ "@radix-ui/react-slot",
1162
+ "@radix-ui/react-tooltip",
1163
+ "class-variance-authority",
1164
+ "framer-motion",
1165
+ "lucide-react",
1166
+ "radix-ui"
1167
+ ],
1168
+ "peerDependencies": [
1169
+ "react",
1170
+ "react-dom"
1171
+ ]
1172
+ },
1025
1173
  "sidebar-menu": {
1026
1174
  "files": [
1027
1175
  "basic/sidebar-menu.tsx",
@@ -1063,12 +1211,27 @@
1063
1211
  "react-dom"
1064
1212
  ]
1065
1213
  },
1214
+ "sonner": {
1215
+ "files": [
1216
+ "basic/sonner.tsx",
1217
+ "basic/theme-from-document.ts"
1218
+ ],
1219
+ "dependencies": [
1220
+ "sonner"
1221
+ ],
1222
+ "peerDependencies": [
1223
+ "react",
1224
+ "react-dom"
1225
+ ]
1226
+ },
1066
1227
  "spinner": {
1067
1228
  "files": [
1068
1229
  "basic/spinner.tsx",
1069
1230
  "basic/icons-inline.tsx"
1070
1231
  ],
1071
- "dependencies": [],
1232
+ "dependencies": [
1233
+ "class-variance-authority"
1234
+ ],
1072
1235
  "peerDependencies": [
1073
1236
  "react",
1074
1237
  "react-dom"
@@ -1164,7 +1327,8 @@
1164
1327
  ],
1165
1328
  "dependencies": [
1166
1329
  "class-variance-authority",
1167
- "framer-motion"
1330
+ "framer-motion",
1331
+ "radix-ui"
1168
1332
  ],
1169
1333
  "peerDependencies": [
1170
1334
  "react",
@@ -1175,7 +1339,9 @@
1175
1339
  "files": [
1176
1340
  "basic/textarea.tsx"
1177
1341
  ],
1178
- "dependencies": [],
1342
+ "dependencies": [
1343
+ "class-variance-authority"
1344
+ ],
1179
1345
  "peerDependencies": [
1180
1346
  "react",
1181
1347
  "react-dom"
@@ -1193,6 +1359,19 @@
1193
1359
  "react-dom"
1194
1360
  ]
1195
1361
  },
1362
+ "toast": {
1363
+ "files": [
1364
+ "basic/sonner.tsx",
1365
+ "basic/theme-from-document.ts"
1366
+ ],
1367
+ "dependencies": [
1368
+ "sonner"
1369
+ ],
1370
+ "peerDependencies": [
1371
+ "react",
1372
+ "react-dom"
1373
+ ]
1374
+ },
1196
1375
  "toggle": {
1197
1376
  "files": [
1198
1377
  "basic/toggle.tsx"
@@ -1207,6 +1386,20 @@
1207
1386
  "react-dom"
1208
1387
  ]
1209
1388
  },
1389
+ "toggle-group": {
1390
+ "files": [
1391
+ "basic/toggle.tsx"
1392
+ ],
1393
+ "dependencies": [
1394
+ "@radix-ui/react-toggle",
1395
+ "@radix-ui/react-toggle-group",
1396
+ "class-variance-authority"
1397
+ ],
1398
+ "peerDependencies": [
1399
+ "react",
1400
+ "react-dom"
1401
+ ]
1402
+ },
1210
1403
  "tool-invocation-card": {
1211
1404
  "files": [
1212
1405
  "chat/tool-invocation-card.tsx",
@@ -1264,5 +1457,32 @@
1264
1457
  "react",
1265
1458
  "react-dom"
1266
1459
  ]
1460
+ },
1461
+ "user-question-part": {
1462
+ "files": [
1463
+ "chat/user-question/index.tsx",
1464
+ "chat/user-question/context.tsx",
1465
+ "basic/icons-inline.tsx",
1466
+ "chat/user-question/types.ts",
1467
+ "chat/user-question/compound.tsx",
1468
+ "lib/utils.ts",
1469
+ "basic/icon-button.tsx",
1470
+ "basic/button.tsx",
1471
+ "basic/spinner.tsx",
1472
+ "basic/option-list.tsx",
1473
+ "basic/scrollbar.tsx",
1474
+ "chat/user-question/useUserQuestionKeyboard.ts"
1475
+ ],
1476
+ "dependencies": [
1477
+ "class-variance-authority",
1478
+ "clsx",
1479
+ "framer-motion",
1480
+ "radix-ui",
1481
+ "tailwind-merge"
1482
+ ],
1483
+ "peerDependencies": [
1484
+ "react",
1485
+ "react-dom"
1486
+ ]
1267
1487
  }
1268
1488
  }
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
6
+ chevronIcon?: React.ReactNode;
7
+ } & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ export type AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
10
+ export type AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;
11
+ export type AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & {
12
+ chevronIcon?: React.ReactNode;
13
+ };
14
+ export type AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;
15
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -17,7 +17,7 @@ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPri
17
17
  declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
18
18
  declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
19
  declare const contentVariants: (props?: ({
20
- size?: "sm" | "default" | null | undefined;
20
+ size?: "default" | "sm" | null | undefined;
21
21
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
22
22
  export interface AlertDialogContentProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>, VariantProps<typeof contentVariants> {
23
23
  size?: 'default' | 'sm';