najm-kit 2.11.0 → 2.11.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 +10 -3
- package/dist/adapters/app.mjs +6 -6
- package/dist/adapters/next.mjs +3 -3
- package/dist/{chunk-K7T7X6PX.mjs → chunk-5JVFMOLI.mjs} +1 -1
- package/dist/{chunk-EEBLEDNI.mjs → chunk-6UDJNTJ6.mjs} +1 -1
- package/dist/{chunk-KVZACF4G.mjs → chunk-LK3SMYUP.mjs} +1 -1
- package/dist/{chunk-XZL32HFR.mjs → chunk-ONE7GLIH.mjs} +1 -1
- package/dist/{chunk-CE7MVEJ2.mjs → chunk-T6RL7TSQ.mjs} +1 -1
- package/dist/{chunk-2GFWF46W.mjs → chunk-ZXIVSNXV.mjs} +3 -3
- package/dist/index.mjs +10 -10
- package/dist/json.mjs +3 -3
- package/dist/theme.css +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 2.11.
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.11.1 - 2026-08-11
|
|
4
|
+
|
|
5
|
+
- Fixed `NajmThemeProvider` precedence so an explicit runtime `mode` overrides
|
|
6
|
+
a preset stored in the design config. An explicit `preset` prop still wins,
|
|
7
|
+
allowing deliberately fixed-preset subtrees without producing mixed light
|
|
8
|
+
and dark application surfaces.
|
|
9
|
+
|
|
10
|
+
## 2.11.0 - 2026-08-10
|
|
4
11
|
|
|
5
12
|
- Gave every keyboard-focusable primitive a visible focus ring, from one shared
|
|
6
13
|
source: `focusRingClasses` and `focusRingWithinClasses`, exported from the
|
package/dist/adapters/app.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { FormDevToolsProvider, NBrandingStateProvider, NajmFormatProvider } from '../chunk-
|
|
3
|
-
export { NEmptyState, NErrorState, NForbiddenState, NLoadingState, NNotFoundState } from '../chunk-
|
|
4
|
-
import { NajmNextUIProvider } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
2
|
+
import { FormDevToolsProvider, NBrandingStateProvider, NajmFormatProvider } from '../chunk-ZXIVSNXV.mjs';
|
|
3
|
+
export { NEmptyState, NErrorState, NForbiddenState, NLoadingState, NNotFoundState } from '../chunk-ZXIVSNXV.mjs';
|
|
4
|
+
import { NajmNextUIProvider } from '../chunk-T6RL7TSQ.mjs';
|
|
5
|
+
import '../chunk-6UDJNTJ6.mjs';
|
|
6
|
+
import '../chunk-ONE7GLIH.mjs';
|
|
7
|
+
import '../chunk-LK3SMYUP.mjs';
|
|
8
8
|
import '../chunk-JABLSOQN.mjs';
|
|
9
9
|
import '../chunk-TFHWLE7N.mjs';
|
|
10
10
|
import * as React from 'react';
|
package/dist/adapters/next.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { NNextImage, NajmNextUIProvider, NextLinkAdapter, useNextNavigationAdapter } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { NNextImage, NajmNextUIProvider, NextLinkAdapter, useNextNavigationAdapter } from '../chunk-T6RL7TSQ.mjs';
|
|
2
|
+
import '../chunk-6UDJNTJ6.mjs';
|
|
3
|
+
import '../chunk-LK3SMYUP.mjs';
|
|
@@ -244,7 +244,7 @@ function NajmThemeProvider({
|
|
|
244
244
|
const depth = React.useContext(NajmThemeDepthContext);
|
|
245
245
|
const parentMode = React.useContext(NajmThemeModeContext);
|
|
246
246
|
const parentAppearance = React.useContext(NajmAppearanceContext);
|
|
247
|
-
const effectivePreset = preset ?? config?.preset;
|
|
247
|
+
const effectivePreset = preset ?? (mode === void 0 ? config?.preset : void 0);
|
|
248
248
|
const effectiveMode = mode ?? config?.mode;
|
|
249
249
|
const effectiveAccent = accent ?? config?.accent;
|
|
250
250
|
const effectiveAccentOnly = accentOnly ?? config?.accentOnly;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useNajmComponentStyle, cn } from './chunk-
|
|
1
|
+
import { useNajmComponentStyle, cn } from './chunk-LK3SMYUP.mjs';
|
|
2
2
|
import { resolveVariantAlias, resolveRadiusValue } from './chunk-TFHWLE7N.mjs';
|
|
3
3
|
import * as React2 from 'react';
|
|
4
4
|
import React2__default from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useImageChain, normalizeImageSources, NajmUIProvider } from './chunk-
|
|
1
|
+
import { useImageChain, normalizeImageSources, NajmUIProvider } from './chunk-6UDJNTJ6.mjs';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useRouter } from 'next/navigation';
|
|
4
4
|
import NextImage from 'next/image';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useResolvedFeedbackLabels, useNajmPreferencesContext } from './chunk-
|
|
2
|
-
import { Button } from './chunk-
|
|
3
|
-
import { useNajmDesign, cn } from './chunk-
|
|
1
|
+
import { useResolvedFeedbackLabels, useNajmPreferencesContext } from './chunk-6UDJNTJ6.mjs';
|
|
2
|
+
import { Button } from './chunk-ONE7GLIH.mjs';
|
|
3
|
+
import { useNajmDesign, cn } from './chunk-LK3SMYUP.mjs';
|
|
4
4
|
import { humanizeToken, DEFAULT_PLACEHOLDER, formatRelativeTime, formatTime, formatDateTime, formatDate, formatPercent, formatNumber, formatCurrency } from './chunk-JABLSOQN.mjs';
|
|
5
5
|
import * as React3 from 'react';
|
|
6
6
|
import { createContext, useContext, useMemo, useState, useCallback } from 'react';
|
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { resolveAvatarSrc } from './chunk-BEGOH366.mjs';
|
|
2
2
|
export { isPlaceholderAvatar, resolveAvatarSrc } from './chunk-BEGOH366.mjs';
|
|
3
|
-
import { NLoadingState, NErrorState, NEmptyState, useResolvedFormDevTools, useNBranding } from './chunk-
|
|
4
|
-
export { FormDevToolsProvider, NBrandingProvider, NBrandingStateProvider, NEmptyState, NErrorState, NForbiddenState, NLoadingState, NNotFoundState, NPageLayout, NSpinner, NajmFormatProvider, buildFormFill, normalizeBranding, useNBranding, useNBrandingEditor, useNajmFormat, useNajmFormatContext } from './chunk-
|
|
5
|
-
import { normalizeImageSources, useImageChain, useNBadgeDefaults, mergeBadgeMaps, resolveStatusColor, resolveBadgeStatusLabel, colorTextClass, useResolvedPaginationLabels } from './chunk-
|
|
6
|
-
export { DEFAULT_PAGINATION_KEY_PREFIX, DEFAULT_TIME_ZONE, EMPTY_DESIGN, NAJM_COLOR_TEXT_CLASSES, NAJM_STATUS_COLORS, NTableDefaultsProvider, NajmDesignEditorProvider, NajmPreferencesProvider, NajmUIProvider, buildPaginationLabels, colorTextClass, findStatusColor, normalizeStatusToken, resolveStatusColor, statusTextClass, useNTableDefaults, useNajmDesignEditor, useNajmPreferencesContext, useNajmTheme, useNajmTimeZone } from './chunk-
|
|
7
|
-
import { NajmScroll, useNajmScrollViewport, useTableStore, TableStoreContext, NTableJson } from './chunk-
|
|
8
|
-
export { NTableJson, NajmScroll, TableStoreContext, useTableStore } from './chunk-
|
|
9
|
-
import { inputBorderClasses, Button, NIcon, surfaceBorderClasses, buttonVariants, NButton, sidebarBorderClasses } from './chunk-
|
|
10
|
-
export { Button, NButton, NIcon, buttonVariants, inputBorderClasses, sidebarBorderClasses, surfaceBorderClasses } from './chunk-
|
|
11
|
-
import { useNajmComponentStyle, cn, NajmThemeContainerCtx, useNajmThemeMode, useNajmDesign, composePreset } from './chunk-
|
|
12
|
-
export { NajmDesignProvider, NajmThemeProvider, cn, composePreset, resolvePreset, useNajmAppearance, useNajmComponentStyle, useNajmDesign, useNajmThemeMode } from './chunk-
|
|
3
|
+
import { NLoadingState, NErrorState, NEmptyState, useResolvedFormDevTools, useNBranding } from './chunk-ZXIVSNXV.mjs';
|
|
4
|
+
export { FormDevToolsProvider, NBrandingProvider, NBrandingStateProvider, NEmptyState, NErrorState, NForbiddenState, NLoadingState, NNotFoundState, NPageLayout, NSpinner, NajmFormatProvider, buildFormFill, normalizeBranding, useNBranding, useNBrandingEditor, useNajmFormat, useNajmFormatContext } from './chunk-ZXIVSNXV.mjs';
|
|
5
|
+
import { normalizeImageSources, useImageChain, useNBadgeDefaults, mergeBadgeMaps, resolveStatusColor, resolveBadgeStatusLabel, colorTextClass, useResolvedPaginationLabels } from './chunk-6UDJNTJ6.mjs';
|
|
6
|
+
export { DEFAULT_PAGINATION_KEY_PREFIX, DEFAULT_TIME_ZONE, EMPTY_DESIGN, NAJM_COLOR_TEXT_CLASSES, NAJM_STATUS_COLORS, NTableDefaultsProvider, NajmDesignEditorProvider, NajmPreferencesProvider, NajmUIProvider, buildPaginationLabels, colorTextClass, findStatusColor, normalizeStatusToken, resolveStatusColor, statusTextClass, useNTableDefaults, useNajmDesignEditor, useNajmPreferencesContext, useNajmTheme, useNajmTimeZone } from './chunk-6UDJNTJ6.mjs';
|
|
7
|
+
import { NajmScroll, useNajmScrollViewport, useTableStore, TableStoreContext, NTableJson } from './chunk-5JVFMOLI.mjs';
|
|
8
|
+
export { NTableJson, NajmScroll, TableStoreContext, useTableStore } from './chunk-5JVFMOLI.mjs';
|
|
9
|
+
import { inputBorderClasses, Button, NIcon, surfaceBorderClasses, buttonVariants, NButton, sidebarBorderClasses } from './chunk-ONE7GLIH.mjs';
|
|
10
|
+
export { Button, NButton, NIcon, buttonVariants, inputBorderClasses, sidebarBorderClasses, surfaceBorderClasses } from './chunk-ONE7GLIH.mjs';
|
|
11
|
+
import { useNajmComponentStyle, cn, NajmThemeContainerCtx, useNajmThemeMode, useNajmDesign, composePreset } from './chunk-LK3SMYUP.mjs';
|
|
12
|
+
export { NajmDesignProvider, NajmThemeProvider, cn, composePreset, resolvePreset, useNajmAppearance, useNajmComponentStyle, useNajmDesign, useNajmThemeMode } from './chunk-LK3SMYUP.mjs';
|
|
13
13
|
export { DEFAULT_CARD_BREAKPOINT, DEFAULT_CARD_PAGINATION_KEY_PREFIX, buildCardPaginationLabels, createCardPagination, useCardViewport, useDesktopTableMode, useMediaQuery } from './chunk-OUS7OYVA.mjs';
|
|
14
14
|
import './chunk-F5KXJCCJ.mjs';
|
|
15
15
|
import { humanizeToken } from './chunk-JABLSOQN.mjs';
|
package/dist/json.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { NTableJson } from './chunk-
|
|
2
|
-
import { Button } from './chunk-
|
|
3
|
-
import { cn } from './chunk-
|
|
1
|
+
export { NTableJson } from './chunk-5JVFMOLI.mjs';
|
|
2
|
+
import { Button } from './chunk-ONE7GLIH.mjs';
|
|
3
|
+
import { cn } from './chunk-LK3SMYUP.mjs';
|
|
4
4
|
import './chunk-TFHWLE7N.mjs';
|
|
5
5
|
import { useMemo, useRef, useCallback } from 'react';
|
|
6
6
|
import CodeMirror from '@uiw/react-codemirror';
|
package/dist/theme.css
CHANGED
|
@@ -307,10 +307,10 @@ input:autofill {
|
|
|
307
307
|
overflow-x: auto;
|
|
308
308
|
scrollbar-width: none;
|
|
309
309
|
}
|
|
310
|
-
.najm-overlay-scroll-x::-webkit-scrollbar {
|
|
311
|
-
display: none;
|
|
312
|
-
}
|
|
313
|
-
|
|
310
|
+
.najm-overlay-scroll-x::-webkit-scrollbar {
|
|
311
|
+
display: none;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
314
|
/* Responsive table actions stay discoverable on touch and tablet layouts.
|
|
315
315
|
Fine-pointer desktops may keep the quieter hover/focus reveal treatment. */
|
|
316
316
|
.ntable-card-action {
|
|
@@ -367,7 +367,7 @@ input:autofill {
|
|
|
367
367
|
.nimage-input-compact-overlay:focus-visible {
|
|
368
368
|
opacity: 1;
|
|
369
369
|
}
|
|
370
|
-
}
|
|
370
|
+
}
|
|
371
371
|
|
|
372
372
|
/* OverlayScrollbars theme used by the <NajmScroll> component — a thin,
|
|
373
373
|
translucent slate bar that floats over content with no reserved space.
|