@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.d.cts CHANGED
@@ -5421,6 +5421,7 @@ interface NavigationMenuMainNavigationProps {
5421
5421
  id?: string;
5422
5422
  variant?: NavigationMenuMainNavigationVariant;
5423
5423
  borderPosition?: NavigationMenuMainNavigationBorderPosition;
5424
+ shadow?: boolean;
5424
5425
  className?: string;
5425
5426
  responsive?: boolean;
5426
5427
  sticky?: boolean;
@@ -5430,7 +5431,6 @@ interface NavigationMenuMainNavigationProps {
5430
5431
  borderClassName?: string;
5431
5432
  triggerClassName?: string;
5432
5433
  triggerActiveClassName?: string;
5433
- triggerActiveBorderClassName?: string;
5434
5434
  featuredLinkClassName?: string;
5435
5435
  sectionLinkClassName?: string;
5436
5436
  sectionLinkTitleClassName?: string;
@@ -5445,7 +5445,7 @@ interface NavigationMenuMainNavigationProps {
5445
5445
  */
5446
5446
  showBottomBorder?: boolean;
5447
5447
  }
5448
- declare function NavigationMenuMainNavigation({ navigation, id, variant, borderPosition, className, responsive, sticky, fullBleed, backgroundClassName, dropdownBackgroundClassName, borderClassName, triggerClassName, triggerActiveClassName, triggerActiveBorderClassName, featuredLinkClassName, sectionLinkClassName, sectionLinkTitleClassName, showTopBorder, showBottomBorder, }: NavigationMenuMainNavigationProps): react_jsx_runtime.JSX.Element;
5448
+ declare function NavigationMenuMainNavigation({ navigation, id, variant, borderPosition, shadow, className, responsive, sticky, fullBleed, backgroundClassName, dropdownBackgroundClassName, borderClassName, triggerClassName, triggerActiveClassName, featuredLinkClassName, sectionLinkClassName, sectionLinkTitleClassName, showTopBorder, showBottomBorder, }: NavigationMenuMainNavigationProps): react_jsx_runtime.JSX.Element;
5449
5449
 
5450
5450
  declare function NotFound(): react_jsx_runtime.JSX.Element;
5451
5451
 
package/dist/index.d.ts CHANGED
@@ -5421,6 +5421,7 @@ interface NavigationMenuMainNavigationProps {
5421
5421
  id?: string;
5422
5422
  variant?: NavigationMenuMainNavigationVariant;
5423
5423
  borderPosition?: NavigationMenuMainNavigationBorderPosition;
5424
+ shadow?: boolean;
5424
5425
  className?: string;
5425
5426
  responsive?: boolean;
5426
5427
  sticky?: boolean;
@@ -5430,7 +5431,6 @@ interface NavigationMenuMainNavigationProps {
5430
5431
  borderClassName?: string;
5431
5432
  triggerClassName?: string;
5432
5433
  triggerActiveClassName?: string;
5433
- triggerActiveBorderClassName?: string;
5434
5434
  featuredLinkClassName?: string;
5435
5435
  sectionLinkClassName?: string;
5436
5436
  sectionLinkTitleClassName?: string;
@@ -5445,7 +5445,7 @@ interface NavigationMenuMainNavigationProps {
5445
5445
  */
5446
5446
  showBottomBorder?: boolean;
5447
5447
  }
5448
- declare function NavigationMenuMainNavigation({ navigation, id, variant, borderPosition, className, responsive, sticky, fullBleed, backgroundClassName, dropdownBackgroundClassName, borderClassName, triggerClassName, triggerActiveClassName, triggerActiveBorderClassName, featuredLinkClassName, sectionLinkClassName, sectionLinkTitleClassName, showTopBorder, showBottomBorder, }: NavigationMenuMainNavigationProps): react_jsx_runtime.JSX.Element;
5448
+ declare function NavigationMenuMainNavigation({ navigation, id, variant, borderPosition, shadow, className, responsive, sticky, fullBleed, backgroundClassName, dropdownBackgroundClassName, borderClassName, triggerClassName, triggerActiveClassName, featuredLinkClassName, sectionLinkClassName, sectionLinkTitleClassName, showTopBorder, showBottomBorder, }: NavigationMenuMainNavigationProps): react_jsx_runtime.JSX.Element;
5449
5449
 
5450
5450
  declare function NotFound(): react_jsx_runtime.JSX.Element;
5451
5451
 
package/dist/index.js CHANGED
@@ -18254,6 +18254,29 @@ var expandableSearchButtonVariants = cva("", {
18254
18254
  variant: "default"
18255
18255
  }
18256
18256
  });
18257
+ var expandableSearchFocusVariants = cva("", {
18258
+ variants: {
18259
+ variant: {
18260
+ default: "focus-visible:ring-grey-100",
18261
+ "primary-800": "focus-visible:ring-primary-800",
18262
+ "primary-600": "focus-visible:ring-primary-600",
18263
+ "primary-400": "focus-visible:ring-primary-400",
18264
+ "primary-200": "focus-visible:ring-primary-200",
18265
+ "grey-800": "focus-visible:ring-grey-800",
18266
+ "grey-600": "focus-visible:ring-grey-600",
18267
+ "grey-400": "focus-visible:ring-grey-400",
18268
+ "grey-200": "focus-visible:ring-grey-200",
18269
+ "accent-800": "focus-visible:ring-accent-800",
18270
+ "accent-600": "focus-visible:ring-accent-600",
18271
+ "accent-400": "focus-visible:ring-accent-400",
18272
+ "accent-200": "focus-visible:ring-accent-200",
18273
+ white: "focus-visible:ring-white"
18274
+ }
18275
+ },
18276
+ defaultVariants: {
18277
+ variant: "default"
18278
+ }
18279
+ });
18257
18280
  var ExpandableSearchContext = React5.createContext(null);
18258
18281
  var ExpandableSearch = React5.forwardRef(({ className, onAction, defaultValue = "", variant = "default", ...props }, ref) => {
18259
18282
  const [value, setValue] = React5.useState(defaultValue);
@@ -18282,28 +18305,32 @@ var ExpandableSearch = React5.forwardRef(({ className, onAction, defaultValue =
18282
18305
  );
18283
18306
  });
18284
18307
  ExpandableSearch.displayName = "ExpandableSearch";
18285
- var ExpandableSearchField = React5.forwardRef(({ className, ...props }, ref) => {
18308
+ var ExpandableSearchField = React5.forwardRef(({ className, id: id3, ...props }, ref) => {
18286
18309
  const context = React5.useContext(ExpandableSearchContext);
18287
18310
  if (!context) throw new Error("ExpandableSearchField must be used within ExpandableSearch");
18288
18311
  const [isFocused, setIsFocused] = React5.useState(false);
18312
+ const generatedId = React5.useId();
18289
18313
  const isActive = context.value.length > 0 || isFocused;
18290
18314
  const variant = context.variant;
18315
+ const inputId = id3 ?? generatedId;
18291
18316
  return /* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
18292
- /* @__PURE__ */ jsx("label", { className: "sr-only", htmlFor: "expandable-search", children: "Search" }),
18317
+ /* @__PURE__ */ jsx("label", { className: "sr-only", htmlFor: inputId, children: "Search" }),
18293
18318
  /* @__PURE__ */ jsx(
18294
18319
  "input",
18295
18320
  {
18296
18321
  ref,
18322
+ id: inputId,
18297
18323
  value: context.value,
18298
18324
  onChange: (e) => context.setValue(e.target.value),
18299
18325
  onFocus: () => setIsFocused(true),
18300
18326
  onBlur: () => setIsFocused(false),
18301
18327
  className: cn(
18302
18328
  "peer align-center flex h-12 w-12 cursor-pointer overflow-hidden rounded-sm border-0 text-transparent",
18303
- "ring-offset-white focus-visible:ring-2 focus-visible:ring-primary-650/70 focus-visible:ring-offset-2 focus-visible:outline-none",
18329
+ "ring-offset-white focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",
18304
18330
  "transition-[width,box-shadow,background-color] duration-300 ease-in-out",
18305
18331
  "placeholder:text-transparent placeholder:opacity-0",
18306
18332
  "expandable-search__input",
18333
+ expandableSearchFocusVariants({ variant }),
18307
18334
  expandableSearchCollapsedVariants({ variant }),
18308
18335
  // Conditionally apply classes based on active state
18309
18336
  {
@@ -18858,7 +18885,7 @@ function FormatToggle({ format, setFormat }) {
18858
18885
 
18859
18886
  // package.json
18860
18887
  var package_default = {
18861
- version: "1.117.0"};
18888
+ version: "1.118.0"};
18862
18889
  var SluggerContext = React5__default.createContext(null);
18863
18890
  function flattenText(nodes) {
18864
18891
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -29817,20 +29844,24 @@ function createVariantStyles({
29817
29844
  border,
29818
29845
  triggerTone,
29819
29846
  triggerActive,
29820
- triggerEdge,
29821
29847
  featuredLink,
29822
29848
  sectionLink
29823
29849
  }) {
29824
29850
  return {
29825
- surface,
29826
- border,
29827
- triggerTone,
29828
- triggerActive,
29829
- triggerEdge,
29830
- dropdownSurface: "bg-white",
29831
- featuredLink,
29832
- sectionLink,
29833
- sectionLinkTitle: "text-grey-900"
29851
+ surface: cn(surface, "dark:bg-grey-900 dark:text-white"),
29852
+ border: cn(border, "dark:border-grey-700"),
29853
+ triggerTone: cn(triggerTone, "dark:text-white"),
29854
+ triggerActive: cn(
29855
+ triggerActive,
29856
+ "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"
29857
+ ),
29858
+ dropdownSurface: "bg-white dark:bg-grey-900",
29859
+ featuredLink: cn(featuredLink, "dark:text-white dark:hover:bg-white/10"),
29860
+ sectionLink: cn(
29861
+ sectionLink,
29862
+ "dark:border-grey-700 dark:bg-grey-900 dark:hover:bg-white/10 dark:hover:text-white"
29863
+ ),
29864
+ sectionLinkTitle: "text-grey-900 dark:text-white"
29834
29865
  };
29835
29866
  }
29836
29867
  var navigationMenuMainNavigationVariantStyles = {
@@ -29839,7 +29870,6 @@ var navigationMenuMainNavigationVariantStyles = {
29839
29870
  border: "border-primary-700",
29840
29871
  triggerTone: "text-white",
29841
29872
  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",
29842
- 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",
29843
29873
  featuredLink: "text-primary-800 hover:bg-primary-800/5",
29844
29874
  sectionLink: "border-grey-200 bg-white hover:bg-primary-800/5 hover:font-bold hover:text-primary-800"
29845
29875
  }),
@@ -29848,7 +29878,6 @@ var navigationMenuMainNavigationVariantStyles = {
29848
29878
  border: "border-primary-600",
29849
29879
  triggerTone: "text-white",
29850
29880
  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",
29851
- 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",
29852
29881
  featuredLink: "text-primary-800 hover:bg-primary-800/5",
29853
29882
  sectionLink: "border-grey-200 bg-white hover:bg-primary-800/5 hover:font-bold hover:text-primary-800"
29854
29883
  }),
@@ -29857,7 +29886,6 @@ var navigationMenuMainNavigationVariantStyles = {
29857
29886
  border: "border-primary-200",
29858
29887
  triggerTone: "text-primary-800",
29859
29888
  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",
29860
- 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",
29861
29889
  featuredLink: "text-primary-800 hover:bg-primary-800/5",
29862
29890
  sectionLink: "border-grey-200 bg-white hover:bg-primary-800/5 hover:font-bold hover:text-primary-800"
29863
29891
  }),
@@ -29866,7 +29894,6 @@ var navigationMenuMainNavigationVariantStyles = {
29866
29894
  border: "border-primary-200",
29867
29895
  triggerTone: "text-primary-800",
29868
29896
  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",
29869
- 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",
29870
29897
  featuredLink: "text-primary-800 hover:bg-primary-800/5",
29871
29898
  sectionLink: "border-grey-200 bg-white hover:bg-primary-800/5 hover:font-bold hover:text-primary-800"
29872
29899
  }),
@@ -29875,7 +29902,6 @@ var navigationMenuMainNavigationVariantStyles = {
29875
29902
  border: "border-grey-700",
29876
29903
  triggerTone: "text-white",
29877
29904
  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",
29878
- 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",
29879
29905
  featuredLink: "text-grey-800 hover:bg-grey-800/5",
29880
29906
  sectionLink: "border-grey-200 bg-white hover:bg-grey-800/5 hover:font-bold hover:text-grey-800"
29881
29907
  }),
@@ -29884,7 +29910,6 @@ var navigationMenuMainNavigationVariantStyles = {
29884
29910
  border: "border-grey-600",
29885
29911
  triggerTone: "text-white",
29886
29912
  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",
29887
- 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",
29888
29913
  featuredLink: "text-grey-800 hover:bg-grey-800/5",
29889
29914
  sectionLink: "border-grey-200 bg-white hover:bg-grey-800/5 hover:font-bold hover:text-grey-800"
29890
29915
  }),
@@ -29893,7 +29918,6 @@ var navigationMenuMainNavigationVariantStyles = {
29893
29918
  border: "border-grey-300",
29894
29919
  triggerTone: "text-grey-800",
29895
29920
  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",
29896
- 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",
29897
29921
  featuredLink: "text-grey-800 hover:bg-grey-800/5",
29898
29922
  sectionLink: "border-grey-200 bg-white hover:bg-grey-800/5 hover:font-bold hover:text-grey-800"
29899
29923
  }),
@@ -29902,7 +29926,6 @@ var navigationMenuMainNavigationVariantStyles = {
29902
29926
  border: "border-grey-200",
29903
29927
  triggerTone: "text-grey-800",
29904
29928
  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",
29905
- 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",
29906
29929
  featuredLink: "text-grey-800 hover:bg-grey-800/5",
29907
29930
  sectionLink: "border-grey-200 bg-white hover:bg-grey-800/5 hover:font-bold hover:text-grey-800"
29908
29931
  }),
@@ -29911,7 +29934,6 @@ var navigationMenuMainNavigationVariantStyles = {
29911
29934
  border: "border-accent-600",
29912
29935
  triggerTone: "text-white",
29913
29936
  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",
29914
- 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",
29915
29937
  featuredLink: "text-accent-800 hover:bg-accent-800/5",
29916
29938
  sectionLink: "border-grey-200 bg-white hover:bg-accent-800/5 hover:font-bold hover:text-accent-800"
29917
29939
  }),
@@ -29920,7 +29942,6 @@ var navigationMenuMainNavigationVariantStyles = {
29920
29942
  border: "border-accent-600",
29921
29943
  triggerTone: "text-white",
29922
29944
  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",
29923
- 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",
29924
29945
  featuredLink: "text-accent-800 hover:bg-accent-800/5",
29925
29946
  sectionLink: "border-grey-200 bg-white hover:bg-accent-800/5 hover:font-bold hover:text-accent-800"
29926
29947
  }),
@@ -29929,7 +29950,6 @@ var navigationMenuMainNavigationVariantStyles = {
29929
29950
  border: "border-accent-200",
29930
29951
  triggerTone: "text-accent-800",
29931
29952
  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",
29932
- 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",
29933
29953
  featuredLink: "text-accent-800 hover:bg-accent-800/5",
29934
29954
  sectionLink: "border-grey-200 bg-white hover:bg-accent-800/5 hover:font-bold hover:text-accent-800"
29935
29955
  }),
@@ -29938,7 +29958,6 @@ var navigationMenuMainNavigationVariantStyles = {
29938
29958
  border: "border-accent-200",
29939
29959
  triggerTone: "text-accent-800",
29940
29960
  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",
29941
- 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",
29942
29961
  featuredLink: "text-accent-800 hover:bg-accent-800/5",
29943
29962
  sectionLink: "border-grey-200 bg-white hover:bg-accent-800/5 hover:font-bold hover:text-accent-800"
29944
29963
  }),
@@ -29947,7 +29966,6 @@ var navigationMenuMainNavigationVariantStyles = {
29947
29966
  border: "border-grey-200",
29948
29967
  triggerTone: "text-grey-800",
29949
29968
  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",
29950
- 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",
29951
29969
  featuredLink: "text-grey-800 hover:bg-grey-100",
29952
29970
  sectionLink: "border-grey-200 bg-white hover:bg-grey-50 hover:font-bold hover:text-grey-800"
29953
29971
  })
@@ -29957,10 +29975,8 @@ function TopLevelItem({
29957
29975
  href = "#",
29958
29976
  title,
29959
29977
  variant,
29960
- syncBorderToSurface,
29961
29978
  triggerClassName,
29962
- triggerActiveClassName,
29963
- triggerActiveBorderClassName
29979
+ triggerActiveClassName
29964
29980
  }) {
29965
29981
  const styles5 = navigationMenuMainNavigationVariantStyles[variant];
29966
29982
  return /* @__PURE__ */ jsx(NavigationMenuItem, { className: "shrink-0", children: /* @__PURE__ */ jsx(
@@ -29972,10 +29988,7 @@ function TopLevelItem({
29972
29988
  styles5.triggerTone,
29973
29989
  styles5.triggerActive,
29974
29990
  triggerClassName,
29975
- triggerActiveClassName,
29976
- 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",
29977
- syncBorderToSurface && styles5.triggerEdge,
29978
- syncBorderToSurface && triggerActiveBorderClassName
29991
+ triggerActiveClassName
29979
29992
  ),
29980
29993
  children: /* @__PURE__ */ jsx(Link14, { href, children: title })
29981
29994
  }
@@ -30031,14 +30044,13 @@ function SectionLink({
30031
30044
  function MegaNavigationItem({
30032
30045
  section,
30033
30046
  variant,
30047
+ shadow,
30034
30048
  fullBleed,
30035
30049
  panelMetrics,
30036
30050
  onOpenIntent,
30037
30051
  dropdownBackgroundClassName,
30038
- syncBorderToSurface,
30039
30052
  triggerClassName,
30040
30053
  triggerActiveClassName,
30041
- triggerActiveBorderClassName,
30042
30054
  featuredLinkClassName,
30043
30055
  sectionLinkClassName,
30044
30056
  sectionLinkTitleClassName
@@ -30051,10 +30063,8 @@ function MegaNavigationItem({
30051
30063
  href: section.href,
30052
30064
  title: section.title,
30053
30065
  variant,
30054
- syncBorderToSurface,
30055
30066
  triggerClassName,
30056
- triggerActiveClassName,
30057
- triggerActiveBorderClassName
30067
+ triggerActiveClassName
30058
30068
  }
30059
30069
  );
30060
30070
  }
@@ -30068,10 +30078,7 @@ function MegaNavigationItem({
30068
30078
  styles5.triggerActive,
30069
30079
  triggerClassName,
30070
30080
  triggerActiveClassName,
30071
- "data-[state=open]:shadow-[inset_0_-4px_0_0_currentColor]",
30072
- 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",
30073
- syncBorderToSurface && styles5.triggerEdge,
30074
- syncBorderToSurface && triggerActiveBorderClassName
30081
+ "data-[state=open]:shadow-[inset_0_-4px_0_0_currentColor]"
30075
30082
  ),
30076
30083
  onPointerEnter: onOpenIntent,
30077
30084
  children: section.title
@@ -30081,45 +30088,56 @@ function MegaNavigationItem({
30081
30088
  NavigationMenuContent,
30082
30089
  {
30083
30090
  className: cn(
30084
- "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"
30091
+ "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"
30085
30092
  ),
30086
30093
  style: fullBleed && panelMetrics ? {
30087
30094
  left: `${-panelMetrics.left}px`,
30088
30095
  width: `${panelMetrics.viewportWidth}px`
30089
30096
  } : void 0,
30090
30097
  onPointerEnter: onOpenIntent,
30091
- children: /* @__PURE__ */ jsx("div", { className: cn("w-full shadow", styles5.dropdownSurface, dropdownBackgroundClassName), children: /* @__PURE__ */ jsxs(
30098
+ children: /* @__PURE__ */ jsx(
30092
30099
  "div",
30093
30100
  {
30094
- className: "grid w-full",
30095
- style: fullBleed && panelMetrics ? {
30096
- width: `${panelMetrics.width}px`,
30097
- marginLeft: "auto",
30098
- marginRight: "auto"
30099
- } : void 0,
30100
- children: [
30101
- /* @__PURE__ */ jsx(
30102
- FeaturedSectionLink,
30103
- {
30104
- href: section.href,
30105
- title: section.title,
30106
- variant,
30107
- className: featuredLinkClassName
30108
- }
30109
- ),
30110
- /* @__PURE__ */ 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__ */ jsx(
30111
- SectionLink,
30112
- {
30113
- link,
30114
- variant,
30115
- className: sectionLinkClassName,
30116
- titleClassName: sectionLinkTitleClassName
30117
- },
30118
- `${link.title}-${link.href}-${index}`
30119
- )) })
30120
- ]
30101
+ className: cn(
30102
+ "relative z-10 w-full",
30103
+ shadow && "shadow-md shadow-slate-900/5 dark:shadow-none",
30104
+ styles5.dropdownSurface,
30105
+ dropdownBackgroundClassName
30106
+ ),
30107
+ children: /* @__PURE__ */ jsxs(
30108
+ "div",
30109
+ {
30110
+ className: "grid w-full",
30111
+ style: fullBleed && panelMetrics ? {
30112
+ width: `${panelMetrics.width}px`,
30113
+ marginLeft: "auto",
30114
+ marginRight: "auto"
30115
+ } : void 0,
30116
+ children: [
30117
+ /* @__PURE__ */ jsx(
30118
+ FeaturedSectionLink,
30119
+ {
30120
+ href: section.href,
30121
+ title: section.title,
30122
+ variant,
30123
+ className: featuredLinkClassName
30124
+ }
30125
+ ),
30126
+ /* @__PURE__ */ 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__ */ jsx(
30127
+ SectionLink,
30128
+ {
30129
+ link,
30130
+ variant,
30131
+ className: sectionLinkClassName,
30132
+ titleClassName: sectionLinkTitleClassName
30133
+ },
30134
+ `${link.title}-${link.href}-${index}`
30135
+ )) })
30136
+ ]
30137
+ }
30138
+ )
30121
30139
  }
30122
- ) })
30140
+ )
30123
30141
  }
30124
30142
  )
30125
30143
  ] });
@@ -30129,6 +30147,7 @@ function NavigationMenuMainNavigation({
30129
30147
  id: id3 = "nsw-main-navigation",
30130
30148
  variant = "white",
30131
30149
  borderPosition = "none",
30150
+ shadow = true,
30132
30151
  className,
30133
30152
  responsive = true,
30134
30153
  sticky = true,
@@ -30138,7 +30157,6 @@ function NavigationMenuMainNavigation({
30138
30157
  borderClassName,
30139
30158
  triggerClassName,
30140
30159
  triggerActiveClassName,
30141
- triggerActiveBorderClassName,
30142
30160
  featuredLinkClassName,
30143
30161
  sectionLinkClassName,
30144
30162
  sectionLinkTitleClassName,
@@ -30154,7 +30172,6 @@ function NavigationMenuMainNavigation({
30154
30172
  const hasTopBorder = resolvedBorderPosition === "top" || resolvedBorderPosition === "both";
30155
30173
  const hasBottomBorder = resolvedBorderPosition === "bottom" || resolvedBorderPosition === "both";
30156
30174
  const hasBorder = hasTopBorder || hasBottomBorder;
30157
- const syncBorderToSurface = hasBorder;
30158
30175
  const [panelMetrics, setPanelMetrics] = React5.useState({
30159
30176
  left: 0,
30160
30177
  width: 0,
@@ -30221,7 +30238,8 @@ function NavigationMenuMainNavigation({
30221
30238
  role: "navigation",
30222
30239
  id: id3,
30223
30240
  className: cn(
30224
- "z-40 shadow-md shadow-grey-900/5 dark:shadow-none",
30241
+ "z-40",
30242
+ shadow && "shadow-md shadow-slate-900/5 dark:shadow-none",
30225
30243
  navigationMenuMainNavigationVariantStyles[variant].surface,
30226
30244
  backgroundClassName,
30227
30245
  hasBorder && navigationMenuMainNavigationVariantStyles[variant].border,
@@ -30251,14 +30269,13 @@ function NavigationMenuMainNavigation({
30251
30269
  {
30252
30270
  section,
30253
30271
  variant,
30272
+ shadow,
30254
30273
  fullBleed,
30255
30274
  panelMetrics,
30256
30275
  onOpenIntent: cancelCloseTimer,
30257
30276
  dropdownBackgroundClassName,
30258
- syncBorderToSurface,
30259
30277
  triggerClassName,
30260
30278
  triggerActiveClassName,
30261
- triggerActiveBorderClassName,
30262
30279
  featuredLinkClassName,
30263
30280
  sectionLinkClassName,
30264
30281
  sectionLinkTitleClassName