najm-kit 2.1.17 → 2.1.19

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 CHANGED
@@ -1438,7 +1438,7 @@ interface NStatCardClassNames {
1438
1438
  }
1439
1439
  interface BaseProps$1 {
1440
1440
  icon: NIconSource;
1441
- label: string;
1441
+ label?: string;
1442
1442
  onClick?: () => void;
1443
1443
  bordered?: boolean;
1444
1444
  className?: string;
package/dist/index.mjs CHANGED
@@ -1995,7 +1995,7 @@ function NPageHeaderCompactActions({ children, className }) {
1995
1995
  }
1996
1996
  NPageHeaderCompactActions.displayName = "NPageHeaderCompactActions";
1997
1997
  function NPageHeaderFilters({ children, className }) {
1998
- return /* @__PURE__ */ jsx("div", { className: cn("py-3 lg:px-4 xl:px-4 2xl:px-5", className), children });
1998
+ return /* @__PURE__ */ jsx("div", { className: cn("py-3 lg:px-3 xl:px-4 2xl:px-5", className), children });
1999
1999
  }
2000
2000
  NPageHeaderFilters.displayName = "NPageHeaderFilters";
2001
2001
  function NPageHeaderTop({ children, className }) {
@@ -2104,7 +2104,7 @@ function NPageHeader({
2104
2104
  {
2105
2105
  "data-slot": "page-header-main",
2106
2106
  className: cn(
2107
- "relative grid min-h-12 grid-cols-[minmax(2.75rem,1fr)_minmax(0,auto)_minmax(2.75rem,1fr)] items-center gap-2 lg:px-4 xl:px-4 2xl:px-5",
2107
+ "relative grid min-h-12 grid-cols-[minmax(2.75rem,1fr)_minmax(0,auto)_minmax(2.75rem,1fr)] items-center gap-2 lg:px-3 xl:px-4 2xl:px-5",
2108
2108
  breakpointClasses.main,
2109
2109
  breakpointClasses.minH,
2110
2110
  headerClassName
@@ -2132,7 +2132,7 @@ function NPageHeader({
2132
2132
  {
2133
2133
  "data-slot": "page-header-identity",
2134
2134
  className: cn(
2135
- "col-start-2 row-start-1 flex min-w-0 max-w-full items-center justify-self-center gap-3",
2135
+ "col-start-2 row-start-1 flex min-w-0 max-w-full items-center justify-self-center gap-2 lg:gap-3 xl:gap-3 2xl:gap-4",
2136
2136
  breakpointClasses.identity
2137
2137
  ),
2138
2138
  children: [
@@ -5098,7 +5098,7 @@ function NCard({
5098
5098
  style: recipeStyle,
5099
5099
  className: cn(
5100
5100
  "flex flex-col",
5101
- !noPadding && "p-2 lg:p-4 xl:p-4 2xl:p-5 gap-3",
5101
+ !noPadding && "p-2 lg:p-3 xl:p-4 2xl:p-5 gap-3",
5102
5102
  surfaceBorderClasses(bordered),
5103
5103
  classNames?.root,
5104
5104
  className
@@ -5298,13 +5298,13 @@ function DefaultCard({
5298
5298
  onClick,
5299
5299
  bordered,
5300
5300
  className: cn(
5301
- "group p-2 lg:p-4 xl:p-4 2xl:p-5 transition-colors",
5301
+ "group p-2 lg:p-3 xl:p-4 2xl:p-5 transition-colors",
5302
5302
  onClick && "cursor-pointer hover:border-border/60 hover:bg-accent/40",
5303
5303
  className
5304
5304
  ),
5305
5305
  classNames: {
5306
5306
  root: classNames?.root,
5307
- content: "flex-row items-center gap-4"
5307
+ content: "flex-row items-center gap-2 lg:gap-3 xl:gap-3 2xl:gap-4"
5308
5308
  },
5309
5309
  children: [
5310
5310
  /* @__PURE__ */ jsx(
@@ -5319,7 +5319,7 @@ function DefaultCard({
5319
5319
  ),
5320
5320
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
5321
5321
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
5322
- /* @__PURE__ */ jsx("p", { className: cn("truncate text-xs text-muted-foreground", classNames?.label), children: label }),
5322
+ label && /* @__PURE__ */ jsx("p", { className: cn("truncate text-xs text-muted-foreground", classNames?.label), children: label }),
5323
5323
  change && /* @__PURE__ */ jsxs(
5324
5324
  "span",
5325
5325
  {
@@ -5422,7 +5422,7 @@ function CompactCard({ icon, label, value, unit, iconColor, onClick, bordered, c
5422
5422
  ),
5423
5423
  classNames: {
5424
5424
  root: classNames?.root,
5425
- content: "flex-row items-center gap-2.5"
5425
+ content: "flex-row items-center gap-2"
5426
5426
  },
5427
5427
  children: [
5428
5428
  /* @__PURE__ */ jsx(
@@ -5436,7 +5436,7 @@ function CompactCard({ icon, label, value, unit, iconColor, onClick, bordered, c
5436
5436
  }
5437
5437
  ),
5438
5438
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
5439
- /* @__PURE__ */ jsx("p", { className: cn("truncate text-[11px] leading-none text-muted-foreground", classNames?.label), children: label }),
5439
+ label && /* @__PURE__ */ jsx("p", { className: cn("truncate text-[11px] leading-none text-muted-foreground", classNames?.label), children: label }),
5440
5440
  /* @__PURE__ */ jsxs("p", { className: cn("truncate text-base font-semibold leading-tight text-foreground", classNames?.value), children: [
5441
5441
  value,
5442
5442
  unit ? ` ${unit}` : ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "2.1.17",
3
+ "version": "2.1.19",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Reusable React UI component package for Najm framework",