@dust-tt/sparkle 0.2.647 → 0.2.649

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 (92) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/esm/components/AssistantCard.d.ts +1 -0
  3. package/dist/esm/components/AssistantCard.d.ts.map +1 -1
  4. package/dist/esm/components/AssistantCard.js +5 -5
  5. package/dist/esm/components/AssistantCard.js.map +1 -1
  6. package/dist/esm/components/AttachmentChip.js +1 -1
  7. package/dist/esm/components/AttachmentChip.js.map +1 -1
  8. package/dist/esm/components/Button.d.ts +1 -0
  9. package/dist/esm/components/Button.d.ts.map +1 -1
  10. package/dist/esm/components/Button.js +2 -2
  11. package/dist/esm/components/Button.js.map +1 -1
  12. package/dist/esm/components/Card.d.ts +2 -0
  13. package/dist/esm/components/Card.d.ts.map +1 -1
  14. package/dist/esm/components/Card.js +3 -3
  15. package/dist/esm/components/Card.js.map +1 -1
  16. package/dist/esm/components/Checkbox.d.ts.map +1 -1
  17. package/dist/esm/components/Checkbox.js +2 -2
  18. package/dist/esm/components/Checkbox.js.map +1 -1
  19. package/dist/esm/components/Citation.js +2 -2
  20. package/dist/esm/components/Citation.js.map +1 -1
  21. package/dist/esm/components/ContentMessage.js +1 -1
  22. package/dist/esm/components/ContentMessage.js.map +1 -1
  23. package/dist/esm/components/Counter.js +13 -13
  24. package/dist/esm/components/Counter.js.map +1 -1
  25. package/dist/esm/components/DataTable.js +1 -1
  26. package/dist/esm/components/DataTable.js.map +1 -1
  27. package/dist/esm/components/Dialog.d.ts +1 -0
  28. package/dist/esm/components/Dialog.d.ts.map +1 -1
  29. package/dist/esm/components/Dialog.js +2 -2
  30. package/dist/esm/components/Dialog.js.map +1 -1
  31. package/dist/esm/components/Dropdown.js +3 -3
  32. package/dist/esm/components/Dropdown.js.map +1 -1
  33. package/dist/esm/components/EmptyCTA.d.ts +1 -0
  34. package/dist/esm/components/EmptyCTA.d.ts.map +1 -1
  35. package/dist/esm/components/EmptyCTA.js +2 -2
  36. package/dist/esm/components/EmptyCTA.js.map +1 -1
  37. package/dist/esm/components/LinkWrapper.d.ts +1 -0
  38. package/dist/esm/components/LinkWrapper.d.ts.map +1 -1
  39. package/dist/esm/components/LinkWrapper.js +2 -2
  40. package/dist/esm/components/LinkWrapper.js.map +1 -1
  41. package/dist/esm/components/MultiPageDialog.d.ts +1 -0
  42. package/dist/esm/components/MultiPageDialog.d.ts.map +1 -1
  43. package/dist/esm/components/MultiPageDialog.js +3 -3
  44. package/dist/esm/components/MultiPageDialog.js.map +1 -1
  45. package/dist/esm/components/NavigationList.d.ts +1 -0
  46. package/dist/esm/components/NavigationList.d.ts.map +1 -1
  47. package/dist/esm/components/NavigationList.js +3 -3
  48. package/dist/esm/components/NavigationList.js.map +1 -1
  49. package/dist/esm/components/Notification.js +1 -1
  50. package/dist/esm/components/Notification.js.map +1 -1
  51. package/dist/esm/components/PriceTable.d.ts +2 -1
  52. package/dist/esm/components/PriceTable.d.ts.map +1 -1
  53. package/dist/esm/components/PriceTable.js +2 -2
  54. package/dist/esm/components/PriceTable.js.map +1 -1
  55. package/dist/esm/components/Sheet.d.ts +1 -0
  56. package/dist/esm/components/Sheet.d.ts.map +1 -1
  57. package/dist/esm/components/Sheet.js +2 -2
  58. package/dist/esm/components/Sheet.js.map +1 -1
  59. package/dist/esm/components/Tabs.d.ts +1 -0
  60. package/dist/esm/components/Tabs.d.ts.map +1 -1
  61. package/dist/esm/components/Tabs.js +2 -2
  62. package/dist/esm/components/Tabs.js.map +1 -1
  63. package/dist/esm/components/ToolCard.js +1 -1
  64. package/dist/esm/components/ToolCard.js.map +1 -1
  65. package/dist/esm/components/ValueCard.js +1 -1
  66. package/dist/esm/components/ValueCard.js.map +1 -1
  67. package/dist/esm/stories/Chip.stories.d.ts +1 -0
  68. package/dist/esm/stories/Chip.stories.d.ts.map +1 -1
  69. package/dist/sparkle.css +9 -4
  70. package/package.json +1 -1
  71. package/src/components/AssistantCard.tsx +36 -27
  72. package/src/components/AttachmentChip.tsx +1 -1
  73. package/src/components/Button.tsx +3 -0
  74. package/src/components/Card.tsx +4 -0
  75. package/src/components/Checkbox.tsx +6 -2
  76. package/src/components/Citation.tsx +2 -2
  77. package/src/components/ContentMessage.tsx +1 -1
  78. package/src/components/Counter.tsx +13 -13
  79. package/src/components/DataTable.tsx +1 -1
  80. package/src/components/Dialog.tsx +3 -0
  81. package/src/components/Dropdown.tsx +3 -3
  82. package/src/components/EmptyCTA.tsx +11 -1
  83. package/src/components/LinkWrapper.tsx +26 -19
  84. package/src/components/MultiPageDialog.tsx +4 -1
  85. package/src/components/NavigationList.tsx +4 -1
  86. package/src/components/Notification.tsx +1 -1
  87. package/src/components/PriceTable.tsx +3 -0
  88. package/src/components/Sheet.tsx +3 -0
  89. package/src/components/Tabs.tsx +3 -0
  90. package/src/components/ToolCard.tsx +1 -1
  91. package/src/components/ValueCard.tsx +1 -1
  92. package/src/stories/Citation.stories.tsx +1 -1
@@ -14,6 +14,7 @@ interface PriceTableProps {
14
14
  className?: string;
15
15
  children: ReactNode;
16
16
  magnified?: boolean;
17
+ dataAnalytics?: string;
17
18
  }
18
19
 
19
20
  const colorTable = {
@@ -45,6 +46,7 @@ export function PriceTable({
45
46
  priceLabel = "",
46
47
  className = "",
47
48
  magnified = true,
49
+ dataAnalytics,
48
50
  children, // Use children instead of tableItems
49
51
  }: PriceTableProps) {
50
52
  // Pass size prop to all PriceTable.Item children
@@ -73,6 +75,7 @@ export function PriceTable({
73
75
  colorTable[color],
74
76
  className
75
77
  )}
78
+ data-analytics={dataAnalytics}
76
79
  >
77
80
  <div
78
81
  className={classNames(
@@ -89,6 +89,7 @@ interface SheetContentProps
89
89
  side?: SheetSideType;
90
90
  preventAutoFocusOnClose?: boolean;
91
91
  preventAutoFocusOnOpen?: boolean;
92
+ dataAnalytics?: string;
92
93
  }
93
94
 
94
95
  const SheetContent = React.forwardRef<
@@ -106,6 +107,7 @@ const SheetContent = React.forwardRef<
106
107
  preventAutoFocusOnOpen = true,
107
108
  onCloseAutoFocus,
108
109
  onOpenAutoFocus,
110
+ dataAnalytics,
109
111
  ...props
110
112
  },
111
113
  ref
@@ -160,6 +162,7 @@ const SheetContent = React.forwardRef<
160
162
  onCloseAutoFocus={handleCloseAutoFocus}
161
163
  onOpenAutoFocus={handleOpenAutoFocus}
162
164
  onKeyDownCapture={onKeyDownCapture}
165
+ data-analytics={dataAnalytics}
163
166
  {...props}
164
167
  >
165
168
  {children}
@@ -52,6 +52,7 @@ const TabsTrigger = React.forwardRef<
52
52
  >
53
53
  > & {
54
54
  isLoading?: boolean;
55
+ dataAnalytics?: string;
55
56
  } & Omit<LinkWrapperProps, "children" | "className">
56
57
  >(
57
58
  (
@@ -69,6 +70,7 @@ const TabsTrigger = React.forwardRef<
69
70
  variant = "ghost",
70
71
  isCounter = false,
71
72
  counterValue,
73
+ dataAnalytics,
72
74
  ...props
73
75
  },
74
76
  ref
@@ -95,6 +97,7 @@ const TabsTrigger = React.forwardRef<
95
97
  shallow={shallow}
96
98
  isCounter={isCounter}
97
99
  counterValue={counterValue}
100
+ dataAnalytics={dataAnalytics}
98
101
  className={cn(
99
102
  "s-relative",
100
103
  "after:s-absolute after:s-bottom-[-9px] after:s-left-1/2 after:s-h-[2px] after:s-w-full after:s--translate-x-1/2",
@@ -100,7 +100,7 @@ export const ToolCard = React.forwardRef<HTMLDivElement, ToolCardProps>(
100
100
  e.stopPropagation();
101
101
  toolInfo.onClick();
102
102
  }}
103
- className="s-cursor-pointer s-text-sm s-font-semibold s-text-muted-foreground hover:s-text-highlight-light hover:s-underline hover:s-underline-offset-2 dark:s-text-muted-foreground-night dark:hover:s-text-highlight-light-night"
103
+ className="s-heading-sm s-cursor-pointer s-text-muted-foreground hover:s-text-highlight-light hover:s-underline hover:s-underline-offset-2 dark:s-text-muted-foreground-night dark:hover:s-text-highlight-light-night"
104
104
  >
105
105
  {toolInfo.label}
106
106
  </a>
@@ -30,7 +30,7 @@ interface CardTitleProps {
30
30
  const Title = ({ className, children }: CardTitleProps) => (
31
31
  <div
32
32
  className={cn(
33
- "s-text-sm s-font-semibold",
33
+ "s-heading-sm",
34
34
  "s-text-foreground dark:s-text-foreground-night",
35
35
  className
36
36
  )}
@@ -74,7 +74,7 @@ export const CitationsExample = () => (
74
74
  </CitationIcons>
75
75
  <CitationTitle>Linkedin, Edouard Wautier</CitationTitle>
76
76
  </Citation>
77
-
77
+
78
78
  <Citation onClick={() => alert("Card clicked")} className="s-w-48">
79
79
  <CitationIcons>
80
80
  <FaviconIcon websiteUrl="https://github.com" size="sm" />