@dust-tt/sparkle 0.2.191 → 0.2.193
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 +7 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/ContextItem.tsx +1 -1
- package/src/components/Modal.tsx +6 -1
- package/src/stories/ContextItem.stories.tsx +3 -1
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ export function ContextItem({
|
|
|
48
48
|
<div className="s-min-w-0 s-overflow-hidden s-text-ellipsis s-whitespace-nowrap s-text-base s-font-semibold">
|
|
49
49
|
{title}
|
|
50
50
|
</div>
|
|
51
|
-
<div className="s-flex s-flex-shrink-0 s-items-center s-gap-3 s-
|
|
51
|
+
<div className="s-flex s-flex-shrink-0 s-items-center s-gap-3 s-overflow-hidden s-pt-0.5 s-text-sm s-text-element-600">
|
|
52
52
|
{subElement}
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
package/src/components/Modal.tsx
CHANGED
|
@@ -128,7 +128,12 @@ export function Modal({
|
|
|
128
128
|
<Dialog
|
|
129
129
|
as="div"
|
|
130
130
|
className="s-fixed s-absolute s-inset-0 s-z-50 s-overflow-hidden"
|
|
131
|
-
onClose={
|
|
131
|
+
onClose={() => {
|
|
132
|
+
// We allow closing the modal by clicking outside of it only if there are no changes
|
|
133
|
+
if (!hasChanged) {
|
|
134
|
+
onClose();
|
|
135
|
+
}
|
|
136
|
+
}}
|
|
132
137
|
>
|
|
133
138
|
{/* Smoke screen and transition */}
|
|
134
139
|
<Transition.Child
|
|
@@ -39,9 +39,11 @@ export const ListItemExample = () => (
|
|
|
39
39
|
</div>
|
|
40
40
|
</>
|
|
41
41
|
}
|
|
42
|
-
action={<Chip size="xs" label="Last Sync ~7 days ago" color="pink" />}
|
|
43
42
|
visual={<Icon visual={FolderIcon} size="md" />}
|
|
44
43
|
>
|
|
44
|
+
<div className="s-py-2">
|
|
45
|
+
<Chip size="xs" label="Last Sync ~7 days ago" color="pink" />
|
|
46
|
+
</div>
|
|
45
47
|
<ContextItem.Description description="Lats, pricing, history of contacts, contact message" />
|
|
46
48
|
</ContextItem>
|
|
47
49
|
<ContextItem.SectionHeader
|