najm-kit 2.12.0 → 2.12.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.12.1 - 2026-09-11
|
|
4
|
+
|
|
5
|
+
- Raised the location picker dialog and its overlay above parent Najm dialogs,
|
|
6
|
+
so it remains interactive when opened from a wizard or other modal form.
|
|
7
|
+
|
|
3
8
|
## 2.12.0 - 2026-09-11
|
|
4
9
|
|
|
5
10
|
- Added a provider-neutral composite location field with transactional
|
|
@@ -402,6 +402,7 @@ function DialogContent({
|
|
|
402
402
|
children,
|
|
403
403
|
padding,
|
|
404
404
|
hideClose = false,
|
|
405
|
+
overlayClassName,
|
|
405
406
|
onOpenAutoFocus,
|
|
406
407
|
onCloseAutoFocus,
|
|
407
408
|
...props
|
|
@@ -410,7 +411,7 @@ function DialogContent({
|
|
|
410
411
|
const portalClassName = useNPortalScope();
|
|
411
412
|
const openerRef = React12.useRef(null);
|
|
412
413
|
return /* @__PURE__ */ jsx(DialogPortal, { "data-slot": "dialog-portal", children: /* @__PURE__ */ jsxs("div", { className: portalClassName, children: [
|
|
413
|
-
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
414
|
+
/* @__PURE__ */ jsx(DialogOverlay, { className: overlayClassName }),
|
|
414
415
|
/* @__PURE__ */ jsxs(
|
|
415
416
|
SheetPrimitive.Content,
|
|
416
417
|
{
|
|
@@ -1859,6 +1860,8 @@ function NLocationDialog({ open, value, onOpenChange, onConfirm, labels: labelOv
|
|
|
1859
1860
|
{
|
|
1860
1861
|
padding: "none",
|
|
1861
1862
|
hideClose: true,
|
|
1863
|
+
overlayClassName: "!z-[10010]",
|
|
1864
|
+
style: { zIndex: 10020 },
|
|
1862
1865
|
className: cn(
|
|
1863
1866
|
"nlocation-dialog !flex flex-col gap-0 inset-0 top-0 left-0 h-dvh max-h-dvh max-w-none translate-x-0 translate-y-0 rounded-none sm:inset-auto sm:top-1/2 sm:left-1/2 sm:h-[min(46rem,calc(100dvh-2rem))] sm:max-h-[calc(100dvh-2rem)] sm:max-w-4xl sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-lg",
|
|
1864
1867
|
classNames?.dialog
|
package/dist/index.d.ts
CHANGED
|
@@ -582,8 +582,10 @@ interface DialogContentProps extends React$1.ComponentProps<typeof DialogPrimiti
|
|
|
582
582
|
padding?: DialogPadding;
|
|
583
583
|
/** 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). */
|
|
584
584
|
hideClose?: boolean;
|
|
585
|
+
/** Optional layer classes for the portal overlay. Useful for dialogs opened from another modal surface. */
|
|
586
|
+
overlayClassName?: string;
|
|
585
587
|
}
|
|
586
|
-
declare function DialogContent({ className, children, padding, hideClose, onOpenAutoFocus, onCloseAutoFocus, ...props }: DialogContentProps): React$1.JSX.Element;
|
|
588
|
+
declare function DialogContent({ className, children, padding, hideClose, overlayClassName, onOpenAutoFocus, onCloseAutoFocus, ...props }: DialogContentProps): React$1.JSX.Element;
|
|
587
589
|
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
588
590
|
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
589
591
|
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): React$1.JSX.Element;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveAvatarSrc } from './chunk-BEGOH366.mjs';
|
|
2
2
|
export { isPlaceholderAvatar, resolveAvatarSrc } from './chunk-BEGOH366.mjs';
|
|
3
|
-
import { BaseInput, Input, Label, focusRingClasses, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, NConfirmDialog, Form, VariantProvider, usePrefix, useVariantPreset, useBordered, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage, PrefixProvider, NSheet, useNSidebar, Sheet, SheetContent, SheetTitle } from './chunk-
|
|
4
|
-
export { BaseInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormLocationInput, FormMessage, IconButton, Input, Label, NConfirmDialog, NDeleteDialog, NDeleteDialogContent, NDialog, NDialogDescription, NDialogHeader, NDialogPrimaryButton, NDialogSecondaryButton, NLocationDialog, NLocationInput, NLocationProvider, NMultiDialog, NPageHeader, NPageHeaderActions, NPageHeaderCompactActions, NPageHeaderFilters, NPageHeaderTop, NPortalScopeProvider, NSheet, NSidebarProvider, PrefixProvider, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, VariantProvider, createDialogStore, dialogVariants, focusRingClasses, focusRingWithinClasses, isCompleteCoordinatePair, normalizeLocationValue, useDialog, useDialogStore, useFormField, useNLocationProvider, useNPortalScope, useNSidebar, usePrefix, useVariant, useVariantPreset } from './chunk-
|
|
3
|
+
import { BaseInput, Input, Label, focusRingClasses, Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, NConfirmDialog, Form, VariantProvider, usePrefix, useVariantPreset, useBordered, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage, PrefixProvider, NSheet, useNSidebar, Sheet, SheetContent, SheetTitle } from './chunk-VKSJ2V3O.mjs';
|
|
4
|
+
export { BaseInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormLocationInput, FormMessage, IconButton, Input, Label, NConfirmDialog, NDeleteDialog, NDeleteDialogContent, NDialog, NDialogDescription, NDialogHeader, NDialogPrimaryButton, NDialogSecondaryButton, NLocationDialog, NLocationInput, NLocationProvider, NMultiDialog, NPageHeader, NPageHeaderActions, NPageHeaderCompactActions, NPageHeaderFilters, NPageHeaderTop, NPortalScopeProvider, NSheet, NSidebarProvider, PrefixProvider, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, VariantProvider, createDialogStore, dialogVariants, focusRingClasses, focusRingWithinClasses, isCompleteCoordinatePair, normalizeLocationValue, useDialog, useDialogStore, useFormField, useNLocationProvider, useNPortalScope, useNSidebar, usePrefix, useVariant, useVariantPreset } from './chunk-VKSJ2V3O.mjs';
|
|
5
5
|
import { NErrorState, NEmptyState, useResolvedFormDevTools, useNBranding } from './chunk-F32O3WRX.mjs';
|
|
6
6
|
export { FormDevToolsProvider, NBrandingProvider, NBrandingStateProvider, NEmptyState, NErrorState, NForbiddenState, NNotFoundState, NajmFormatProvider, buildFormFill, normalizeBranding, useNBranding, useNBrandingEditor, useNajmFormat, useNajmFormatContext } from './chunk-F32O3WRX.mjs';
|
|
7
7
|
import { NLoadingState } from './chunk-FZX3DONZ.mjs';
|
package/dist/location/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { FormLocationInput, NLocationDialog, NLocationInput, NLocationProvider, isCompleteCoordinatePair, normalizeLocationValue, useNLocationProvider } from '../chunk-
|
|
2
|
+
export { FormLocationInput, NLocationDialog, NLocationInput, NLocationProvider, isCompleteCoordinatePair, normalizeLocationValue, useNLocationProvider } from '../chunk-VKSJ2V3O.mjs';
|
|
3
3
|
import '../chunk-FZX3DONZ.mjs';
|
|
4
4
|
import '../chunk-BFFTC7LD.mjs';
|
|
5
5
|
import '../chunk-QJ22WAQY.mjs';
|