@spunto/design-system 0.83.0 → 0.83.1
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/package.json
CHANGED
|
@@ -24,13 +24,24 @@ function AlertDialogClose(props: AlertDialogPrimitive.Close.Props) {
|
|
|
24
24
|
return <AlertDialogPrimitive.Close data-slot="alert-dialog-close" {...props} />
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
function AlertDialogContent({
|
|
27
|
+
function AlertDialogContent({
|
|
28
|
+
className,
|
|
29
|
+
backdropClassName,
|
|
30
|
+
children,
|
|
31
|
+
...props
|
|
32
|
+
}: AlertDialogPrimitive.Popup.Props & {
|
|
33
|
+
/** Merged onto the backdrop — e.g. a `z-*` to match a raised `className` on the popup. */
|
|
34
|
+
backdropClassName?: string
|
|
35
|
+
}) {
|
|
28
36
|
const container = useOverlayContainer()
|
|
29
37
|
return (
|
|
30
38
|
<AlertDialogPrimitive.Portal container={container ?? undefined}>
|
|
31
39
|
<AlertDialogPrimitive.Backdrop
|
|
32
40
|
data-slot="alert-dialog-backdrop"
|
|
33
|
-
className=
|
|
41
|
+
className={cn(
|
|
42
|
+
"fixed inset-0 z-50 bg-black/40 backdrop-blur-[2px] transition-opacity duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:bg-black/60",
|
|
43
|
+
backdropClassName
|
|
44
|
+
)}
|
|
34
45
|
/>
|
|
35
46
|
<AlertDialogPrimitive.Popup
|
|
36
47
|
data-slot="alert-dialog-content"
|
|
@@ -219,7 +219,13 @@ function ItemAction({ item, action, onAction }: { item: TaskAppTileItem; action:
|
|
|
219
219
|
}}
|
|
220
220
|
>
|
|
221
221
|
<AlertDialogTrigger render={<Button size="xs" variant={danger ? "destructive" : "outline"} />}>{action.label}</AlertDialogTrigger>
|
|
222
|
-
<AlertDialogContent
|
|
222
|
+
<AlertDialogContent
|
|
223
|
+
// Above `z-[120]`: on a phone this opens from the details sheet of `TaskCockpitMobile`,
|
|
224
|
+
// itself a layer at that height — at the default `z-50` the confirmation opened *behind*
|
|
225
|
+
// it, and Merge looked like it did nothing.
|
|
226
|
+
className="z-[130]"
|
|
227
|
+
backdropClassName="z-[130]"
|
|
228
|
+
>
|
|
223
229
|
<AlertDialogHeader>
|
|
224
230
|
<AlertDialogTitle>{action.confirm.title}</AlertDialogTitle>
|
|
225
231
|
{action.confirm.body && <AlertDialogDescription>{action.confirm.body}</AlertDialogDescription>}
|