@nswds/app 5.0.5 → 5.0.7

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.js CHANGED
@@ -14435,7 +14435,7 @@ function FormatToggle({ format, setFormat }) {
14435
14435
 
14436
14436
  // package.json
14437
14437
  var package_default = {
14438
- version: "5.0.5"};
14438
+ version: "5.0.7"};
14439
14439
  var SluggerContext = React5__default.createContext(null);
14440
14440
  function flattenText(nodes) {
14441
14441
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -16140,8 +16140,9 @@ function MegaMenu({ title, href, links }) {
16140
16140
  /* @__PURE__ */ jsx(
16141
16141
  PopoverPanel,
16142
16142
  {
16143
- transition: true,
16144
- className: "absolute inset-x-0 top-0 -z-10 pt-14 shadow transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[enter]:ease-out data-[leave]:duration-150 data-[leave]:ease-in dark:shadow-black/40",
16143
+ unmount: false,
16144
+ "data-slot": "mega-menu-panel",
16145
+ className: "absolute inset-x-0 top-0 -z-10 pt-14 shadow dark:shadow-black/40",
16145
16146
  children: /* @__PURE__ */ jsxs("div", { className: "mx-auto grid bg-white dark:bg-grey-900", children: [
16146
16147
  /* @__PURE__ */ jsxs(
16147
16148
  Link14,
@@ -16164,7 +16165,7 @@ function MegaMenu({ title, href, links }) {
16164
16165
  // Focus styles
16165
16166
  "focus-within:rounded-sm focus-within:outline focus-within:outline-inherit"
16166
16167
  ),
16167
- children: /* @__PURE__ */ jsx("h3", { className: "text-base font-semibold text-grey-900 dark:text-grey-100", children: /* @__PURE__ */ jsxs(
16168
+ children: /* @__PURE__ */ jsx("div", { className: "text-base font-semibold text-grey-900 dark:text-grey-100", children: /* @__PURE__ */ jsxs(
16168
16169
  Link14,
16169
16170
  {
16170
16171
  href: item.href,
@@ -17253,8 +17254,9 @@ function MegaNavigationItem({
17253
17254
  /* @__PURE__ */ jsx(
17254
17255
  NavigationMenuContent,
17255
17256
  {
17257
+ forceMount: true,
17256
17258
  className: cn(
17257
- "left-0 w-full p-0 pr-0 whitespace-normal group-data-[viewport=false]/navigation-menu:mt-0 group-data-[viewport=false]/navigation-menu:!overflow-visible group-data-[viewport=false]/navigation-menu:rounded-none group-data-[viewport=false]/navigation-menu:border-0 group-data-[viewport=false]/navigation-menu:bg-transparent group-data-[viewport=false]/navigation-menu:shadow-none data-[motion=from-end]:[--tw-enter-translate-x:0] data-[motion=from-start]:[--tw-enter-translate-x:0] data-[motion=to-end]:[--tw-exit-translate-x:0] data-[motion=to-start]:[--tw-exit-translate-x:0] data-[motion^=from-]:!animate-none data-[motion^=from-]:[--tw-enter-opacity:1] data-[motion^=from-]:[--tw-enter-rotate:0] data-[motion^=from-]:[--tw-enter-scale:1] data-[motion^=from-]:[--tw-enter-translate-y:0] data-[motion^=to-]:!animate-none data-[motion^=to-]:[--tw-exit-opacity:1] data-[motion^=to-]:[--tw-exit-rotate:0] data-[motion^=to-]:[--tw-exit-scale:1] data-[motion^=to-]:[--tw-exit-translate-y:0] group-data-[viewport=false]/navigation-menu:data-[state=closed]:!animate-none group-data-[viewport=false]/navigation-menu:data-[state=closed]:[--tw-exit-opacity:1] group-data-[viewport=false]/navigation-menu:data-[state=closed]:[--tw-exit-scale:1] group-data-[viewport=false]/navigation-menu:data-[state=open]:!animate-none group-data-[viewport=false]/navigation-menu:data-[state=open]:[--tw-enter-opacity:1] group-data-[viewport=false]/navigation-menu:data-[state=open]:[--tw-enter-scale:1] md:w-full"
17259
+ "left-0 w-full p-0 pr-0 whitespace-normal group-data-[viewport=false]/navigation-menu:mt-0 group-data-[viewport=false]/navigation-menu:!overflow-visible group-data-[viewport=false]/navigation-menu:rounded-none group-data-[viewport=false]/navigation-menu:border-0 group-data-[viewport=false]/navigation-menu:bg-transparent group-data-[viewport=false]/navigation-menu:shadow-none data-[motion=from-end]:[--tw-enter-translate-x:0] data-[motion=from-start]:[--tw-enter-translate-x:0] data-[motion=to-end]:[--tw-exit-translate-x:0] data-[motion=to-start]:[--tw-exit-translate-x:0] data-[motion^=from-]:!animate-none data-[motion^=from-]:[--tw-enter-opacity:1] data-[motion^=from-]:[--tw-enter-rotate:0] data-[motion^=from-]:[--tw-enter-scale:1] data-[motion^=from-]:[--tw-enter-translate-y:0] data-[motion^=to-]:!animate-none data-[motion^=to-]:[--tw-exit-opacity:1] data-[motion^=to-]:[--tw-exit-rotate:0] data-[motion^=to-]:[--tw-exit-scale:1] data-[motion^=to-]:[--tw-exit-translate-y:0] data-[state=closed]:hidden group-data-[viewport=false]/navigation-menu:data-[state=closed]:!animate-none group-data-[viewport=false]/navigation-menu:data-[state=closed]:[--tw-exit-opacity:1] group-data-[viewport=false]/navigation-menu:data-[state=closed]:[--tw-exit-scale:1] group-data-[viewport=false]/navigation-menu:data-[state=open]:!animate-none group-data-[viewport=false]/navigation-menu:data-[state=open]:[--tw-enter-opacity:1] group-data-[viewport=false]/navigation-menu:data-[state=open]:[--tw-enter-scale:1] md:w-full"
17258
17260
  ),
17259
17261
  style: fullBleed && panelMetrics ? {
17260
17262
  left: `${-panelMetrics.left}px`,