@nswds/app 1.118.0 → 1.119.0

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.cjs CHANGED
@@ -18310,6 +18310,29 @@ var expandableSearchButtonVariants = classVarianceAuthority.cva("", {
18310
18310
  variant: "default"
18311
18311
  }
18312
18312
  });
18313
+ var expandableSearchFocusVariants = classVarianceAuthority.cva("", {
18314
+ variants: {
18315
+ variant: {
18316
+ default: "focus-visible:ring-grey-100",
18317
+ "primary-800": "focus-visible:ring-primary-800",
18318
+ "primary-600": "focus-visible:ring-primary-600",
18319
+ "primary-400": "focus-visible:ring-primary-400",
18320
+ "primary-200": "focus-visible:ring-primary-200",
18321
+ "grey-800": "focus-visible:ring-grey-800",
18322
+ "grey-600": "focus-visible:ring-grey-600",
18323
+ "grey-400": "focus-visible:ring-grey-400",
18324
+ "grey-200": "focus-visible:ring-grey-200",
18325
+ "accent-800": "focus-visible:ring-accent-800",
18326
+ "accent-600": "focus-visible:ring-accent-600",
18327
+ "accent-400": "focus-visible:ring-accent-400",
18328
+ "accent-200": "focus-visible:ring-accent-200",
18329
+ white: "focus-visible:ring-white"
18330
+ }
18331
+ },
18332
+ defaultVariants: {
18333
+ variant: "default"
18334
+ }
18335
+ });
18313
18336
  var ExpandableSearchContext = React5__namespace.createContext(null);
18314
18337
  var ExpandableSearch = React5__namespace.forwardRef(({ className, onAction, defaultValue = "", variant = "default", ...props }, ref) => {
18315
18338
  const [value, setValue] = React5__namespace.useState(defaultValue);
@@ -18338,28 +18361,32 @@ var ExpandableSearch = React5__namespace.forwardRef(({ className, onAction, defa
18338
18361
  );
18339
18362
  });
18340
18363
  ExpandableSearch.displayName = "ExpandableSearch";
18341
- var ExpandableSearchField = React5__namespace.forwardRef(({ className, ...props }, ref) => {
18364
+ var ExpandableSearchField = React5__namespace.forwardRef(({ className, id: id3, ...props }, ref) => {
18342
18365
  const context = React5__namespace.useContext(ExpandableSearchContext);
18343
18366
  if (!context) throw new Error("ExpandableSearchField must be used within ExpandableSearch");
18344
18367
  const [isFocused, setIsFocused] = React5__namespace.useState(false);
18368
+ const generatedId = React5__namespace.useId();
18345
18369
  const isActive = context.value.length > 0 || isFocused;
18346
18370
  const variant = context.variant;
18371
+ const inputId = id3 ?? generatedId;
18347
18372
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
18348
- /* @__PURE__ */ jsxRuntime.jsx("label", { className: "sr-only", htmlFor: "expandable-search", children: "Search" }),
18373
+ /* @__PURE__ */ jsxRuntime.jsx("label", { className: "sr-only", htmlFor: inputId, children: "Search" }),
18349
18374
  /* @__PURE__ */ jsxRuntime.jsx(
18350
18375
  "input",
18351
18376
  {
18352
18377
  ref,
18378
+ id: inputId,
18353
18379
  value: context.value,
18354
18380
  onChange: (e) => context.setValue(e.target.value),
18355
18381
  onFocus: () => setIsFocused(true),
18356
18382
  onBlur: () => setIsFocused(false),
18357
18383
  className: cn(
18358
18384
  "peer align-center flex h-12 w-12 cursor-pointer overflow-hidden rounded-sm border-0 text-transparent",
18359
- "ring-offset-white focus-visible:ring-2 focus-visible:ring-primary-650/70 focus-visible:ring-offset-2 focus-visible:outline-none",
18385
+ "ring-offset-white focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",
18360
18386
  "transition-[width,box-shadow,background-color] duration-300 ease-in-out",
18361
18387
  "placeholder:text-transparent placeholder:opacity-0",
18362
18388
  "expandable-search__input",
18389
+ expandableSearchFocusVariants({ variant }),
18363
18390
  expandableSearchCollapsedVariants({ variant }),
18364
18391
  // Conditionally apply classes based on active state
18365
18392
  {
@@ -18914,7 +18941,7 @@ function FormatToggle({ format, setFormat }) {
18914
18941
 
18915
18942
  // package.json
18916
18943
  var package_default = {
18917
- version: "1.117.0"};
18944
+ version: "1.118.0"};
18918
18945
  var SluggerContext = React5__namespace.default.createContext(null);
18919
18946
  function flattenText(nodes) {
18920
18947
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -29873,20 +29900,24 @@ function createVariantStyles({
29873
29900
  border,
29874
29901
  triggerTone,
29875
29902
  triggerActive,
29876
- triggerEdge,
29877
29903
  featuredLink,
29878
29904
  sectionLink
29879
29905
  }) {
29880
29906
  return {
29881
- surface,
29882
- border,
29883
- triggerTone,
29884
- triggerActive,
29885
- triggerEdge,
29886
- dropdownSurface: "bg-white",
29887
- featuredLink,
29888
- sectionLink,
29889
- sectionLinkTitle: "text-grey-900"
29907
+ surface: cn(surface, "dark:bg-grey-900 dark:text-white"),
29908
+ border: cn(border, "dark:border-grey-700"),
29909
+ triggerTone: cn(triggerTone, "dark:text-white"),
29910
+ triggerActive: cn(
29911
+ triggerActive,
29912
+ "dark:hover:bg-grey-800 dark:hover:text-white dark:focus:bg-grey-800 dark:focus:text-white dark:data-[state=open]:bg-grey-800 dark:data-[state=open]:text-white"
29913
+ ),
29914
+ dropdownSurface: "bg-white dark:bg-grey-900",
29915
+ featuredLink: cn(featuredLink, "dark:text-white dark:hover:bg-white/10"),
29916
+ sectionLink: cn(
29917
+ sectionLink,
29918
+ "dark:border-grey-700 dark:bg-grey-900 dark:hover:bg-white/10 dark:hover:text-white"
29919
+ ),
29920
+ sectionLinkTitle: "text-grey-900 dark:text-white"
29890
29921
  };
29891
29922
  }
29892
29923
  var navigationMenuMainNavigationVariantStyles = {
@@ -29895,7 +29926,6 @@ var navigationMenuMainNavigationVariantStyles = {
29895
29926
  border: "border-primary-700",
29896
29927
  triggerTone: "text-white",
29897
29928
  triggerActive: "hover:bg-primary-700 hover:text-white focus:bg-primary-700 focus:text-white data-[state=open]:bg-primary-700 data-[state=open]:text-white",
29898
- triggerEdge: "hover:before:bg-primary-700 hover:after:bg-primary-700 focus:before:bg-primary-700 focus:after:bg-primary-700 data-[state=open]:before:bg-primary-700 data-[state=open]:after:bg-primary-700",
29899
29929
  featuredLink: "text-primary-800 hover:bg-primary-800/5",
29900
29930
  sectionLink: "border-grey-200 bg-white hover:bg-primary-800/5 hover:font-bold hover:text-primary-800"
29901
29931
  }),
@@ -29904,7 +29934,6 @@ var navigationMenuMainNavigationVariantStyles = {
29904
29934
  border: "border-primary-600",
29905
29935
  triggerTone: "text-white",
29906
29936
  triggerActive: "hover:bg-primary-700 hover:text-white focus:bg-primary-700 focus:text-white data-[state=open]:bg-primary-700 data-[state=open]:text-white",
29907
- triggerEdge: "hover:before:bg-primary-700 hover:after:bg-primary-700 focus:before:bg-primary-700 focus:after:bg-primary-700 data-[state=open]:before:bg-primary-700 data-[state=open]:after:bg-primary-700",
29908
29937
  featuredLink: "text-primary-800 hover:bg-primary-800/5",
29909
29938
  sectionLink: "border-grey-200 bg-white hover:bg-primary-800/5 hover:font-bold hover:text-primary-800"
29910
29939
  }),
@@ -29913,7 +29942,6 @@ var navigationMenuMainNavigationVariantStyles = {
29913
29942
  border: "border-primary-200",
29914
29943
  triggerTone: "text-primary-800",
29915
29944
  triggerActive: "hover:bg-primary-200 hover:text-primary-800 focus:bg-primary-200 focus:text-primary-800 data-[state=open]:bg-primary-200 data-[state=open]:text-primary-800",
29916
- triggerEdge: "hover:before:bg-primary-200 hover:after:bg-primary-200 focus:before:bg-primary-200 focus:after:bg-primary-200 data-[state=open]:before:bg-primary-200 data-[state=open]:after:bg-primary-200",
29917
29945
  featuredLink: "text-primary-800 hover:bg-primary-800/5",
29918
29946
  sectionLink: "border-grey-200 bg-white hover:bg-primary-800/5 hover:font-bold hover:text-primary-800"
29919
29947
  }),
@@ -29922,7 +29950,6 @@ var navigationMenuMainNavigationVariantStyles = {
29922
29950
  border: "border-primary-200",
29923
29951
  triggerTone: "text-primary-800",
29924
29952
  triggerActive: "hover:bg-primary-100 hover:text-primary-800 focus:bg-primary-100 focus:text-primary-800 data-[state=open]:bg-primary-100 data-[state=open]:text-primary-800",
29925
- triggerEdge: "hover:before:bg-primary-100 hover:after:bg-primary-100 focus:before:bg-primary-100 focus:after:bg-primary-100 data-[state=open]:before:bg-primary-100 data-[state=open]:after:bg-primary-100",
29926
29953
  featuredLink: "text-primary-800 hover:bg-primary-800/5",
29927
29954
  sectionLink: "border-grey-200 bg-white hover:bg-primary-800/5 hover:font-bold hover:text-primary-800"
29928
29955
  }),
@@ -29931,7 +29958,6 @@ var navigationMenuMainNavigationVariantStyles = {
29931
29958
  border: "border-grey-700",
29932
29959
  triggerTone: "text-white",
29933
29960
  triggerActive: "hover:bg-grey-700 hover:text-white focus:bg-grey-700 focus:text-white data-[state=open]:bg-grey-700 data-[state=open]:text-white",
29934
- triggerEdge: "hover:before:bg-grey-700 hover:after:bg-grey-700 focus:before:bg-grey-700 focus:after:bg-grey-700 data-[state=open]:before:bg-grey-700 data-[state=open]:after:bg-grey-700",
29935
29961
  featuredLink: "text-grey-800 hover:bg-grey-800/5",
29936
29962
  sectionLink: "border-grey-200 bg-white hover:bg-grey-800/5 hover:font-bold hover:text-grey-800"
29937
29963
  }),
@@ -29940,7 +29966,6 @@ var navigationMenuMainNavigationVariantStyles = {
29940
29966
  border: "border-grey-600",
29941
29967
  triggerTone: "text-white",
29942
29968
  triggerActive: "hover:bg-grey-700 hover:text-white focus:bg-grey-700 focus:text-white data-[state=open]:bg-grey-700 data-[state=open]:text-white",
29943
- triggerEdge: "hover:before:bg-grey-700 hover:after:bg-grey-700 focus:before:bg-grey-700 focus:after:bg-grey-700 data-[state=open]:before:bg-grey-700 data-[state=open]:after:bg-grey-700",
29944
29969
  featuredLink: "text-grey-800 hover:bg-grey-800/5",
29945
29970
  sectionLink: "border-grey-200 bg-white hover:bg-grey-800/5 hover:font-bold hover:text-grey-800"
29946
29971
  }),
@@ -29949,7 +29974,6 @@ var navigationMenuMainNavigationVariantStyles = {
29949
29974
  border: "border-grey-300",
29950
29975
  triggerTone: "text-grey-800",
29951
29976
  triggerActive: "hover:bg-grey-200 hover:text-grey-800 focus:bg-grey-200 focus:text-grey-800 data-[state=open]:bg-grey-200 data-[state=open]:text-grey-800",
29952
- triggerEdge: "hover:before:bg-grey-200 hover:after:bg-grey-200 focus:before:bg-grey-200 focus:after:bg-grey-200 data-[state=open]:before:bg-grey-200 data-[state=open]:after:bg-grey-200",
29953
29977
  featuredLink: "text-grey-800 hover:bg-grey-800/5",
29954
29978
  sectionLink: "border-grey-200 bg-white hover:bg-grey-800/5 hover:font-bold hover:text-grey-800"
29955
29979
  }),
@@ -29958,7 +29982,6 @@ var navigationMenuMainNavigationVariantStyles = {
29958
29982
  border: "border-grey-200",
29959
29983
  triggerTone: "text-grey-800",
29960
29984
  triggerActive: "hover:bg-grey-100 hover:text-grey-800 focus:bg-grey-100 focus:text-grey-800 data-[state=open]:bg-grey-100 data-[state=open]:text-grey-800",
29961
- triggerEdge: "hover:before:bg-grey-100 hover:after:bg-grey-100 focus:before:bg-grey-100 focus:after:bg-grey-100 data-[state=open]:before:bg-grey-100 data-[state=open]:after:bg-grey-100",
29962
29985
  featuredLink: "text-grey-800 hover:bg-grey-800/5",
29963
29986
  sectionLink: "border-grey-200 bg-white hover:bg-grey-800/5 hover:font-bold hover:text-grey-800"
29964
29987
  }),
@@ -29967,7 +29990,6 @@ var navigationMenuMainNavigationVariantStyles = {
29967
29990
  border: "border-accent-600",
29968
29991
  triggerTone: "text-white",
29969
29992
  triggerActive: "hover:bg-accent-600 hover:text-white focus:bg-accent-600 focus:text-white data-[state=open]:bg-accent-600 data-[state=open]:text-white",
29970
- triggerEdge: "hover:before:bg-accent-600 hover:after:bg-accent-600 focus:before:bg-accent-600 focus:after:bg-accent-600 data-[state=open]:before:bg-accent-600 data-[state=open]:after:bg-accent-600",
29971
29993
  featuredLink: "text-accent-800 hover:bg-accent-800/5",
29972
29994
  sectionLink: "border-grey-200 bg-white hover:bg-accent-800/5 hover:font-bold hover:text-accent-800"
29973
29995
  }),
@@ -29976,7 +29998,6 @@ var navigationMenuMainNavigationVariantStyles = {
29976
29998
  border: "border-accent-600",
29977
29999
  triggerTone: "text-white",
29978
30000
  triggerActive: "hover:bg-accent-800 hover:text-white focus:bg-accent-800 focus:text-white data-[state=open]:bg-accent-800 data-[state=open]:text-white",
29979
- triggerEdge: "hover:before:bg-accent-800 hover:after:bg-accent-800 focus:before:bg-accent-800 focus:after:bg-accent-800 data-[state=open]:before:bg-accent-800 data-[state=open]:after:bg-accent-800",
29980
30001
  featuredLink: "text-accent-800 hover:bg-accent-800/5",
29981
30002
  sectionLink: "border-grey-200 bg-white hover:bg-accent-800/5 hover:font-bold hover:text-accent-800"
29982
30003
  }),
@@ -29985,7 +30006,6 @@ var navigationMenuMainNavigationVariantStyles = {
29985
30006
  border: "border-accent-200",
29986
30007
  triggerTone: "text-accent-800",
29987
30008
  triggerActive: "hover:bg-accent-200 hover:text-accent-800 focus:bg-accent-200 focus:text-accent-800 data-[state=open]:bg-accent-200 data-[state=open]:text-accent-800",
29988
- triggerEdge: "hover:before:bg-accent-200 hover:after:bg-accent-200 focus:before:bg-accent-200 focus:after:bg-accent-200 data-[state=open]:before:bg-accent-200 data-[state=open]:after:bg-accent-200",
29989
30009
  featuredLink: "text-accent-800 hover:bg-accent-800/5",
29990
30010
  sectionLink: "border-grey-200 bg-white hover:bg-accent-800/5 hover:font-bold hover:text-accent-800"
29991
30011
  }),
@@ -29994,7 +30014,6 @@ var navigationMenuMainNavigationVariantStyles = {
29994
30014
  border: "border-accent-200",
29995
30015
  triggerTone: "text-accent-800",
29996
30016
  triggerActive: "hover:bg-accent-50 hover:text-accent-800 focus:bg-accent-50 focus:text-accent-800 data-[state=open]:bg-accent-50 data-[state=open]:text-accent-800",
29997
- triggerEdge: "hover:before:bg-accent-50 hover:after:bg-accent-50 focus:before:bg-accent-50 focus:after:bg-accent-50 data-[state=open]:before:bg-accent-50 data-[state=open]:after:bg-accent-50",
29998
30017
  featuredLink: "text-accent-800 hover:bg-accent-800/5",
29999
30018
  sectionLink: "border-grey-200 bg-white hover:bg-accent-800/5 hover:font-bold hover:text-accent-800"
30000
30019
  }),
@@ -30003,7 +30022,6 @@ var navigationMenuMainNavigationVariantStyles = {
30003
30022
  border: "border-grey-200",
30004
30023
  triggerTone: "text-grey-800",
30005
30024
  triggerActive: "hover:bg-grey-100 hover:text-grey-800 focus:bg-grey-100 focus:text-grey-800 data-[state=open]:bg-grey-100 data-[state=open]:text-grey-800",
30006
- triggerEdge: "hover:before:bg-grey-100 hover:after:bg-grey-100 focus:before:bg-grey-100 focus:after:bg-grey-100 data-[state=open]:before:bg-grey-100 data-[state=open]:after:bg-grey-100",
30007
30025
  featuredLink: "text-grey-800 hover:bg-grey-100",
30008
30026
  sectionLink: "border-grey-200 bg-white hover:bg-grey-50 hover:font-bold hover:text-grey-800"
30009
30027
  })
@@ -30013,10 +30031,8 @@ function TopLevelItem({
30013
30031
  href = "#",
30014
30032
  title,
30015
30033
  variant,
30016
- syncBorderToSurface,
30017
30034
  triggerClassName,
30018
- triggerActiveClassName,
30019
- triggerActiveBorderClassName
30035
+ triggerActiveClassName
30020
30036
  }) {
30021
30037
  const styles5 = navigationMenuMainNavigationVariantStyles[variant];
30022
30038
  return /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuItem, { className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -30028,10 +30044,7 @@ function TopLevelItem({
30028
30044
  styles5.triggerTone,
30029
30045
  styles5.triggerActive,
30030
30046
  triggerClassName,
30031
- triggerActiveClassName,
30032
- syncBorderToSurface && "before:absolute before:inset-x-0 before:top-0 before:h-px before:bg-transparent after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-transparent",
30033
- syncBorderToSurface && styles5.triggerEdge,
30034
- syncBorderToSurface && triggerActiveBorderClassName
30047
+ triggerActiveClassName
30035
30048
  ),
30036
30049
  children: /* @__PURE__ */ jsxRuntime.jsx(Link14__default.default, { href, children: title })
30037
30050
  }
@@ -30087,14 +30100,13 @@ function SectionLink({
30087
30100
  function MegaNavigationItem({
30088
30101
  section,
30089
30102
  variant,
30103
+ shadow,
30090
30104
  fullBleed,
30091
30105
  panelMetrics,
30092
30106
  onOpenIntent,
30093
30107
  dropdownBackgroundClassName,
30094
- syncBorderToSurface,
30095
30108
  triggerClassName,
30096
30109
  triggerActiveClassName,
30097
- triggerActiveBorderClassName,
30098
30110
  featuredLinkClassName,
30099
30111
  sectionLinkClassName,
30100
30112
  sectionLinkTitleClassName
@@ -30107,10 +30119,8 @@ function MegaNavigationItem({
30107
30119
  href: section.href,
30108
30120
  title: section.title,
30109
30121
  variant,
30110
- syncBorderToSurface,
30111
30122
  triggerClassName,
30112
- triggerActiveClassName,
30113
- triggerActiveBorderClassName
30123
+ triggerActiveClassName
30114
30124
  }
30115
30125
  );
30116
30126
  }
@@ -30124,10 +30134,7 @@ function MegaNavigationItem({
30124
30134
  styles5.triggerActive,
30125
30135
  triggerClassName,
30126
30136
  triggerActiveClassName,
30127
- "data-[state=open]:shadow-[inset_0_-4px_0_0_currentColor]",
30128
- syncBorderToSurface && "before:absolute before:inset-x-0 before:top-0 before:h-px before:bg-transparent after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-transparent",
30129
- syncBorderToSurface && styles5.triggerEdge,
30130
- syncBorderToSurface && triggerActiveBorderClassName
30137
+ "data-[state=open]:shadow-[inset_0_-4px_0_0_currentColor]"
30131
30138
  ),
30132
30139
  onPointerEnter: onOpenIntent,
30133
30140
  children: section.title
@@ -30137,45 +30144,56 @@ function MegaNavigationItem({
30137
30144
  NavigationMenuContent,
30138
30145
  {
30139
30146
  className: cn(
30140
- "left-0 w-full p-0 pr-0 whitespace-normal group-data-[viewport=false]/navigation-menu:mt-0 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"
30147
+ "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"
30141
30148
  ),
30142
30149
  style: fullBleed && panelMetrics ? {
30143
30150
  left: `${-panelMetrics.left}px`,
30144
30151
  width: `${panelMetrics.viewportWidth}px`
30145
30152
  } : void 0,
30146
30153
  onPointerEnter: onOpenIntent,
30147
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full shadow", styles5.dropdownSurface, dropdownBackgroundClassName), children: /* @__PURE__ */ jsxRuntime.jsxs(
30154
+ children: /* @__PURE__ */ jsxRuntime.jsx(
30148
30155
  "div",
30149
30156
  {
30150
- className: "grid w-full",
30151
- style: fullBleed && panelMetrics ? {
30152
- width: `${panelMetrics.width}px`,
30153
- marginLeft: "auto",
30154
- marginRight: "auto"
30155
- } : void 0,
30156
- children: [
30157
- /* @__PURE__ */ jsxRuntime.jsx(
30158
- FeaturedSectionLink,
30159
- {
30160
- href: section.href,
30161
- title: section.title,
30162
- variant,
30163
- className: featuredLinkClassName
30164
- }
30165
- ),
30166
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 overflow-hidden px-4 pb-12 sm:grid-cols-2 lg:grid-cols-3", children: section.links.map((link, index) => /* @__PURE__ */ jsxRuntime.jsx(
30167
- SectionLink,
30168
- {
30169
- link,
30170
- variant,
30171
- className: sectionLinkClassName,
30172
- titleClassName: sectionLinkTitleClassName
30173
- },
30174
- `${link.title}-${link.href}-${index}`
30175
- )) })
30176
- ]
30157
+ className: cn(
30158
+ "relative z-10 w-full",
30159
+ shadow && "shadow-md shadow-slate-900/5 dark:shadow-none",
30160
+ styles5.dropdownSurface,
30161
+ dropdownBackgroundClassName
30162
+ ),
30163
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
30164
+ "div",
30165
+ {
30166
+ className: "grid w-full",
30167
+ style: fullBleed && panelMetrics ? {
30168
+ width: `${panelMetrics.width}px`,
30169
+ marginLeft: "auto",
30170
+ marginRight: "auto"
30171
+ } : void 0,
30172
+ children: [
30173
+ /* @__PURE__ */ jsxRuntime.jsx(
30174
+ FeaturedSectionLink,
30175
+ {
30176
+ href: section.href,
30177
+ title: section.title,
30178
+ variant,
30179
+ className: featuredLinkClassName
30180
+ }
30181
+ ),
30182
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 overflow-hidden px-4 pb-12 sm:grid-cols-2 lg:grid-cols-3", children: section.links.map((link, index) => /* @__PURE__ */ jsxRuntime.jsx(
30183
+ SectionLink,
30184
+ {
30185
+ link,
30186
+ variant,
30187
+ className: sectionLinkClassName,
30188
+ titleClassName: sectionLinkTitleClassName
30189
+ },
30190
+ `${link.title}-${link.href}-${index}`
30191
+ )) })
30192
+ ]
30193
+ }
30194
+ )
30177
30195
  }
30178
- ) })
30196
+ )
30179
30197
  }
30180
30198
  )
30181
30199
  ] });
@@ -30185,6 +30203,7 @@ function NavigationMenuMainNavigation({
30185
30203
  id: id3 = "nsw-main-navigation",
30186
30204
  variant = "white",
30187
30205
  borderPosition = "none",
30206
+ shadow = true,
30188
30207
  className,
30189
30208
  responsive = true,
30190
30209
  sticky = true,
@@ -30194,7 +30213,6 @@ function NavigationMenuMainNavigation({
30194
30213
  borderClassName,
30195
30214
  triggerClassName,
30196
30215
  triggerActiveClassName,
30197
- triggerActiveBorderClassName,
30198
30216
  featuredLinkClassName,
30199
30217
  sectionLinkClassName,
30200
30218
  sectionLinkTitleClassName,
@@ -30210,7 +30228,6 @@ function NavigationMenuMainNavigation({
30210
30228
  const hasTopBorder = resolvedBorderPosition === "top" || resolvedBorderPosition === "both";
30211
30229
  const hasBottomBorder = resolvedBorderPosition === "bottom" || resolvedBorderPosition === "both";
30212
30230
  const hasBorder = hasTopBorder || hasBottomBorder;
30213
- const syncBorderToSurface = hasBorder;
30214
30231
  const [panelMetrics, setPanelMetrics] = React5__namespace.useState({
30215
30232
  left: 0,
30216
30233
  width: 0,
@@ -30277,7 +30294,8 @@ function NavigationMenuMainNavigation({
30277
30294
  role: "navigation",
30278
30295
  id: id3,
30279
30296
  className: cn(
30280
- "z-40 shadow-md shadow-grey-900/5 dark:shadow-none",
30297
+ "z-40",
30298
+ shadow && "shadow-md shadow-slate-900/5 dark:shadow-none",
30281
30299
  navigationMenuMainNavigationVariantStyles[variant].surface,
30282
30300
  backgroundClassName,
30283
30301
  hasBorder && navigationMenuMainNavigationVariantStyles[variant].border,
@@ -30307,14 +30325,13 @@ function NavigationMenuMainNavigation({
30307
30325
  {
30308
30326
  section,
30309
30327
  variant,
30328
+ shadow,
30310
30329
  fullBleed,
30311
30330
  panelMetrics,
30312
30331
  onOpenIntent: cancelCloseTimer,
30313
30332
  dropdownBackgroundClassName,
30314
- syncBorderToSurface,
30315
30333
  triggerClassName,
30316
30334
  triggerActiveClassName,
30317
- triggerActiveBorderClassName,
30318
30335
  featuredLinkClassName,
30319
30336
  sectionLinkClassName,
30320
30337
  sectionLinkTitleClassName