najm-kit 2.1.9 → 2.1.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.
Files changed (2) hide show
  1. package/dist/index.mjs +16 -6
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2003,7 +2003,10 @@ var responsiveClasses = {
2003
2003
  controls: "sm:col-start-auto sm:row-start-auto sm:justify-self-auto",
2004
2004
  fullActions: "sm:flex",
2005
2005
  compactActions: "sm:hidden",
2006
- sidebarTrigger: "sm:hidden"
2006
+ sidebarTrigger: "sm:hidden",
2007
+ icon: "sm:flex",
2008
+ subtitle: "sm:block",
2009
+ minH: "sm:min-h-14"
2007
2010
  },
2008
2011
  md: {
2009
2012
  main: "md:flex md:justify-between md:px-5",
@@ -2011,7 +2014,10 @@ var responsiveClasses = {
2011
2014
  controls: "md:col-start-auto md:row-start-auto md:justify-self-auto",
2012
2015
  fullActions: "md:flex",
2013
2016
  compactActions: "md:hidden",
2014
- sidebarTrigger: "md:hidden"
2017
+ sidebarTrigger: "md:hidden",
2018
+ icon: "md:flex",
2019
+ subtitle: "md:block",
2020
+ minH: "md:min-h-14"
2015
2021
  },
2016
2022
  lg: {
2017
2023
  main: "lg:flex lg:justify-between lg:px-5",
@@ -2019,7 +2025,10 @@ var responsiveClasses = {
2019
2025
  controls: "lg:col-start-auto lg:row-start-auto lg:justify-self-auto",
2020
2026
  fullActions: "lg:flex",
2021
2027
  compactActions: "lg:hidden",
2022
- sidebarTrigger: "lg:hidden"
2028
+ sidebarTrigger: "lg:hidden",
2029
+ icon: "lg:flex",
2030
+ subtitle: "lg:block",
2031
+ minH: "lg:min-h-14"
2023
2032
  }
2024
2033
  };
2025
2034
  function NPageHeader({
@@ -2082,8 +2091,9 @@ function NPageHeader({
2082
2091
  {
2083
2092
  "data-slot": "page-header-main",
2084
2093
  className: cn(
2085
- "relative grid min-h-14 grid-cols-[minmax(2.75rem,1fr)_minmax(0,auto)_minmax(2.75rem,1fr)] items-center gap-2 px-4",
2094
+ "relative grid min-h-12 grid-cols-[minmax(2.75rem,1fr)_minmax(0,auto)_minmax(2.75rem,1fr)] items-center gap-2 px-4",
2086
2095
  breakpointClasses.main,
2096
+ breakpointClasses.minH,
2087
2097
  headerClassName
2088
2098
  ),
2089
2099
  children: [
@@ -2113,10 +2123,10 @@ function NPageHeader({
2113
2123
  breakpointClasses.identity
2114
2124
  ),
2115
2125
  children: [
2116
- /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 shrink-0 rounded-lg bg-primary/10 items-center justify-center", children: /* @__PURE__ */ jsx(Icon2, { className: "h-4 w-4 text-primary" }) }),
2126
+ /* @__PURE__ */ jsx("div", { className: cn("hidden h-8 w-8 shrink-0 rounded-lg bg-primary/10 items-center justify-center", breakpointClasses.icon), children: /* @__PURE__ */ jsx(Icon2, { className: "h-4 w-4 text-primary" }) }),
2117
2127
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
2118
2128
  /* @__PURE__ */ jsx("h2", { className: "truncate text-sm font-semibold text-foreground", children: title }),
2119
- subtitle && /* @__PURE__ */ jsx("p", { className: "truncate text-xs leading-relaxed text-muted-foreground sm:text-sm sm:leading-normal", children: subtitle })
2129
+ subtitle && /* @__PURE__ */ jsx("p", { className: cn("hidden truncate text-xs leading-relaxed text-muted-foreground sm:text-sm sm:leading-normal", breakpointClasses.subtitle), children: subtitle })
2120
2130
  ] })
2121
2131
  ]
2122
2132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "2.1.9",
3
+ "version": "2.1.11",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Reusable React UI component package for Najm framework",