@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.
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/AssistantCard.d.ts +1 -0
- package/dist/esm/components/AssistantCard.d.ts.map +1 -1
- package/dist/esm/components/AssistantCard.js +5 -5
- package/dist/esm/components/AssistantCard.js.map +1 -1
- package/dist/esm/components/AttachmentChip.js +1 -1
- package/dist/esm/components/AttachmentChip.js.map +1 -1
- package/dist/esm/components/Button.d.ts +1 -0
- package/dist/esm/components/Button.d.ts.map +1 -1
- package/dist/esm/components/Button.js +2 -2
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/Card.d.ts +2 -0
- package/dist/esm/components/Card.d.ts.map +1 -1
- package/dist/esm/components/Card.js +3 -3
- package/dist/esm/components/Card.js.map +1 -1
- package/dist/esm/components/Checkbox.d.ts.map +1 -1
- package/dist/esm/components/Checkbox.js +2 -2
- package/dist/esm/components/Checkbox.js.map +1 -1
- package/dist/esm/components/Citation.js +2 -2
- package/dist/esm/components/Citation.js.map +1 -1
- package/dist/esm/components/ContentMessage.js +1 -1
- package/dist/esm/components/ContentMessage.js.map +1 -1
- package/dist/esm/components/Counter.js +13 -13
- package/dist/esm/components/Counter.js.map +1 -1
- package/dist/esm/components/DataTable.js +1 -1
- package/dist/esm/components/DataTable.js.map +1 -1
- package/dist/esm/components/Dialog.d.ts +1 -0
- package/dist/esm/components/Dialog.d.ts.map +1 -1
- package/dist/esm/components/Dialog.js +2 -2
- package/dist/esm/components/Dialog.js.map +1 -1
- package/dist/esm/components/Dropdown.js +3 -3
- package/dist/esm/components/Dropdown.js.map +1 -1
- package/dist/esm/components/EmptyCTA.d.ts +1 -0
- package/dist/esm/components/EmptyCTA.d.ts.map +1 -1
- package/dist/esm/components/EmptyCTA.js +2 -2
- package/dist/esm/components/EmptyCTA.js.map +1 -1
- package/dist/esm/components/LinkWrapper.d.ts +1 -0
- package/dist/esm/components/LinkWrapper.d.ts.map +1 -1
- package/dist/esm/components/LinkWrapper.js +2 -2
- package/dist/esm/components/LinkWrapper.js.map +1 -1
- package/dist/esm/components/MultiPageDialog.d.ts +1 -0
- package/dist/esm/components/MultiPageDialog.d.ts.map +1 -1
- package/dist/esm/components/MultiPageDialog.js +3 -3
- package/dist/esm/components/MultiPageDialog.js.map +1 -1
- package/dist/esm/components/NavigationList.d.ts +1 -0
- package/dist/esm/components/NavigationList.d.ts.map +1 -1
- package/dist/esm/components/NavigationList.js +3 -3
- package/dist/esm/components/NavigationList.js.map +1 -1
- package/dist/esm/components/Notification.js +1 -1
- package/dist/esm/components/Notification.js.map +1 -1
- package/dist/esm/components/PriceTable.d.ts +2 -1
- package/dist/esm/components/PriceTable.d.ts.map +1 -1
- package/dist/esm/components/PriceTable.js +2 -2
- package/dist/esm/components/PriceTable.js.map +1 -1
- package/dist/esm/components/Sheet.d.ts +1 -0
- package/dist/esm/components/Sheet.d.ts.map +1 -1
- package/dist/esm/components/Sheet.js +2 -2
- package/dist/esm/components/Sheet.js.map +1 -1
- package/dist/esm/components/Tabs.d.ts +1 -0
- package/dist/esm/components/Tabs.d.ts.map +1 -1
- package/dist/esm/components/Tabs.js +2 -2
- package/dist/esm/components/Tabs.js.map +1 -1
- package/dist/esm/components/ToolCard.js +1 -1
- package/dist/esm/components/ToolCard.js.map +1 -1
- package/dist/esm/components/ValueCard.js +1 -1
- package/dist/esm/components/ValueCard.js.map +1 -1
- package/dist/esm/stories/Chip.stories.d.ts +1 -0
- package/dist/esm/stories/Chip.stories.d.ts.map +1 -1
- package/dist/sparkle.css +9 -4
- package/package.json +1 -1
- package/src/components/AssistantCard.tsx +36 -27
- package/src/components/AttachmentChip.tsx +1 -1
- package/src/components/Button.tsx +3 -0
- package/src/components/Card.tsx +4 -0
- package/src/components/Checkbox.tsx +6 -2
- package/src/components/Citation.tsx +2 -2
- package/src/components/ContentMessage.tsx +1 -1
- package/src/components/Counter.tsx +13 -13
- package/src/components/DataTable.tsx +1 -1
- package/src/components/Dialog.tsx +3 -0
- package/src/components/Dropdown.tsx +3 -3
- package/src/components/EmptyCTA.tsx +11 -1
- package/src/components/LinkWrapper.tsx +26 -19
- package/src/components/MultiPageDialog.tsx +4 -1
- package/src/components/NavigationList.tsx +4 -1
- package/src/components/Notification.tsx +1 -1
- package/src/components/PriceTable.tsx +3 -0
- package/src/components/Sheet.tsx +3 -0
- package/src/components/Tabs.tsx +3 -0
- package/src/components/ToolCard.tsx +1 -1
- package/src/components/ValueCard.tsx +1 -1
- 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(
|
package/src/components/Sheet.tsx
CHANGED
|
@@ -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}
|
package/src/components/Tabs.tsx
CHANGED
|
@@ -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-
|
|
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>
|
|
@@ -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" />
|