najm-kit 2.11.10 → 2.11.11
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/index.d.ts +1 -1
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -558,7 +558,7 @@ type DialogPadding = "none" | "sm" | "md" | "lg";
|
|
|
558
558
|
interface DialogContentProps extends React$1.ComponentProps<typeof DialogPrimitive.Content> {
|
|
559
559
|
/** Controls the padding of the dialog surface. `none` also collapses the header/body/footer gap. Defaults to `sm` on mobile, `md` on desktop. */
|
|
560
560
|
padding?: DialogPadding;
|
|
561
|
-
/** Hides the built-in
|
|
561
|
+
/** Hides the built-in close (X) in the top inline-end corner. Use when the content provides its own close control (e.g. inside a page header). */
|
|
562
562
|
hideClose?: boolean;
|
|
563
563
|
}
|
|
564
564
|
declare function DialogContent({ className, children, padding, hideClose, onOpenAutoFocus, onCloseAutoFocus, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.mjs
CHANGED
|
@@ -1004,7 +1004,7 @@ function SheetContent({ className, portalClassName, side, children, ...props })
|
|
|
1004
1004
|
...props,
|
|
1005
1005
|
children: [
|
|
1006
1006
|
children,
|
|
1007
|
-
/* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4
|
|
1007
|
+
/* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 end-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
1008
1008
|
/* @__PURE__ */ jsx(X, { className: "size-4" }),
|
|
1009
1009
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1010
1010
|
] })
|
|
@@ -1201,7 +1201,7 @@ function DialogContent({
|
|
|
1201
1201
|
...props,
|
|
1202
1202
|
children: [
|
|
1203
1203
|
children,
|
|
1204
|
-
!hideClose && /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "ring-offset-background cursor-pointer focus:ring-ring absolute top-4
|
|
1204
|
+
!hideClose && /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "ring-offset-background cursor-pointer focus:ring-ring absolute top-4 end-4 rounded-xs text-muted-foreground hover:text-foreground transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
|
|
1205
1205
|
/* @__PURE__ */ jsx(XIcon, {}),
|
|
1206
1206
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
1207
1207
|
] })
|
|
@@ -1211,7 +1211,7 @@ function DialogContent({
|
|
|
1211
1211
|
] }) });
|
|
1212
1212
|
}
|
|
1213
1213
|
function DialogHeader({ className, ...props }) {
|
|
1214
|
-
return /* @__PURE__ */ jsx("div", { "data-slot": "dialog-header", className: cn("flex flex-col gap-2 text-center sm:text-
|
|
1214
|
+
return /* @__PURE__ */ jsx("div", { "data-slot": "dialog-header", className: cn("flex flex-col gap-2 text-center sm:text-start", className), ...props });
|
|
1215
1215
|
}
|
|
1216
1216
|
function DialogFooter({ className, ...props }) {
|
|
1217
1217
|
return /* @__PURE__ */ jsx("div", { "data-slot": "dialog-footer", className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
|
|
@@ -1882,7 +1882,7 @@ function DialogChrome({
|
|
|
1882
1882
|
DialogHeader,
|
|
1883
1883
|
{
|
|
1884
1884
|
className: cn(
|
|
1885
|
-
"flex-row items-center justify-between gap-3 border-b border-border bg-secondary text-
|
|
1885
|
+
"flex-row items-center justify-between gap-3 border-b border-border bg-secondary text-start text-secondary-foreground",
|
|
1886
1886
|
windowHeaderSpacing[resolvedPadding],
|
|
1887
1887
|
headerClassName
|
|
1888
1888
|
),
|
|
@@ -2281,7 +2281,7 @@ function NDeleteDialog({
|
|
|
2281
2281
|
{
|
|
2282
2282
|
className: cn(
|
|
2283
2283
|
"h-auto max-w-[380px] gap-0 rounded-[18px] border border-border bg-card p-6 pt-8 shadow-2xl dark:border-0 dark:bg-[#222b38]",
|
|
2284
|
-
"[&>button]:
|
|
2284
|
+
"[&>button]:end-4 [&>button]:top-4 [&>button]:flex [&>button]:size-6 [&>button]:items-center [&>button]:justify-center",
|
|
2285
2285
|
"[&>button]:rounded-full [&>button]:bg-muted [&>button]:text-muted-foreground [&>button]:opacity-100 [&>button]:ring-offset-0",
|
|
2286
2286
|
"[&>button]:hover:bg-secondary [&>button]:hover:text-foreground dark:[&>button]:bg-[#4d5a6d] dark:[&>button]:text-white dark:[&>button]:hover:bg-[#647186] dark:[&>button]:hover:text-white",
|
|
2287
2287
|
className
|
|
@@ -14439,7 +14439,7 @@ function NSmartPasteDialog({
|
|
|
14439
14439
|
onClick: handleMerge,
|
|
14440
14440
|
disabled: !preview || preview.newCount === 0,
|
|
14441
14441
|
children: [
|
|
14442
|
-
/* @__PURE__ */ jsx(Merge, { className: "h-3.5 w-3.5
|
|
14442
|
+
/* @__PURE__ */ jsx(Merge, { className: "h-3.5 w-3.5 me-1.5" }),
|
|
14443
14443
|
preview ? `Merge ${preview.newCount} ${itemLabel}${preview.newCount !== 1 ? "s" : ""}` : "Merge"
|
|
14444
14444
|
]
|
|
14445
14445
|
}
|