@nswds/app 5.0.6 → 5.0.8

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Components, patterns and design tokens for building accessible NSW Government applications with Next.js.
4
4
 
5
- Documentation: https://app.designsystem.nsw.gov.au
5
+ Documentation: https://app.digital.nsw.gov.au
6
6
 
7
7
  ## Installation
8
8
 
package/dist/globals.css CHANGED
@@ -7151,13 +7151,6 @@
7151
7151
  --tw-translate-x: -100%;
7152
7152
  translate: var(--tw-translate-x) var(--tw-translate-y);
7153
7153
  }
7154
- .data-\[closed\]\:-translate-y-1[data-closed] {
7155
- --tw-translate-y: calc(var(--spacing) * -1);
7156
- translate: var(--tw-translate-x) var(--tw-translate-y);
7157
- }
7158
- .data-\[closed\]\:opacity-0[data-closed] {
7159
- opacity: 0%;
7160
- }
7161
7154
  .data-\[disabled\]\:pointer-events-none[data-disabled] {
7162
7155
  pointer-events: none;
7163
7156
  }
@@ -7170,20 +7163,6 @@
7170
7163
  .data-\[disabled\=true\]\:opacity-50[data-disabled="true"] {
7171
7164
  opacity: 50%;
7172
7165
  }
7173
- .data-\[enter\]\:duration-200[data-enter] {
7174
- --tw-duration: 200ms;
7175
- transition-duration: 200ms;
7176
- }
7177
- .data-\[enter\]\:ease-out[data-enter] {
7178
- --tw-ease: var(--ease-out);
7179
- transition-timing-function: var(--ease-out);
7180
- }
7181
- .data-\[enter\]\:duration-200[data-enter] {
7182
- animation-duration: 200ms;
7183
- }
7184
- .data-\[enter\]\:ease-out[data-enter] {
7185
- animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
7186
- }
7187
7166
  .data-\[error\=true\]\:text-destructive[data-error="true"] {
7188
7167
  color: var(--destructive);
7189
7168
  }
@@ -7233,20 +7212,6 @@
7233
7212
  .data-\[inset\]\:pl-8[data-inset] {
7234
7213
  padding-left: calc(var(--spacing) * 8);
7235
7214
  }
7236
- .data-\[leave\]\:duration-150[data-leave] {
7237
- --tw-duration: 150ms;
7238
- transition-duration: 150ms;
7239
- }
7240
- .data-\[leave\]\:ease-in[data-leave] {
7241
- --tw-ease: var(--ease-in);
7242
- transition-timing-function: var(--ease-in);
7243
- }
7244
- .data-\[leave\]\:duration-150[data-leave] {
7245
- animation-duration: 150ms;
7246
- }
7247
- .data-\[leave\]\:ease-in[data-leave] {
7248
- animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
7249
- }
7250
7215
  .data-\[motion\=from-end\]\:\[--tw-enter-translate-x\:0\][data-motion="from-end"] {
7251
7216
  --tw-enter-translate-x: 0;
7252
7217
  }
@@ -7627,6 +7592,9 @@
7627
7592
  .enabled\:data-\[state\=checked\]\:ring-transparent:enabled[data-state="checked"] {
7628
7593
  --tw-ring-color: transparent;
7629
7594
  }
7595
+ .data-\[state\=closed\]\:hidden[data-state="closed"] {
7596
+ display: none;
7597
+ }
7630
7598
  .data-\[state\=closed\]\:duration-300[data-state="closed"] {
7631
7599
  --tw-duration: 300ms;
7632
7600
  transition-duration: 300ms;
package/dist/index.cjs CHANGED
@@ -14488,7 +14488,7 @@ function FormatToggle({ format, setFormat }) {
14488
14488
 
14489
14489
  // package.json
14490
14490
  var package_default = {
14491
- version: "5.0.6"};
14491
+ version: "5.0.8"};
14492
14492
  var SluggerContext = React5__namespace.default.createContext(null);
14493
14493
  function flattenText(nodes) {
14494
14494
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -16193,8 +16193,9 @@ function MegaMenu({ title, href, links }) {
16193
16193
  /* @__PURE__ */ jsxRuntime.jsx(
16194
16194
  Headless4.PopoverPanel,
16195
16195
  {
16196
- transition: true,
16197
- 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",
16196
+ unmount: false,
16197
+ "data-slot": "mega-menu-panel",
16198
+ className: "absolute inset-x-0 top-0 -z-10 pt-14 shadow dark:shadow-black/40",
16198
16199
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto grid bg-white dark:bg-grey-900", children: [
16199
16200
  /* @__PURE__ */ jsxRuntime.jsxs(
16200
16201
  Link14__default.default,
@@ -16217,7 +16218,7 @@ function MegaMenu({ title, href, links }) {
16217
16218
  // Focus styles
16218
16219
  "focus-within:rounded-sm focus-within:outline focus-within:outline-inherit"
16219
16220
  ),
16220
- children: /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-base font-semibold text-grey-900 dark:text-grey-100", children: /* @__PURE__ */ jsxRuntime.jsxs(
16221
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base font-semibold text-grey-900 dark:text-grey-100", children: /* @__PURE__ */ jsxRuntime.jsxs(
16221
16222
  Link14__default.default,
16222
16223
  {
16223
16224
  href: item.href,
@@ -17306,8 +17307,9 @@ function MegaNavigationItem({
17306
17307
  /* @__PURE__ */ jsxRuntime.jsx(
17307
17308
  NavigationMenuContent,
17308
17309
  {
17310
+ forceMount: true,
17309
17311
  className: cn(
17310
- "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"
17312
+ "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"
17311
17313
  ),
17312
17314
  style: fullBleed && panelMetrics ? {
17313
17315
  left: `${-panelMetrics.left}px`,