@nswds/app 1.113.0 → 1.114.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/globals.css +631 -65
- package/dist/index.cjs +921 -298
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +921 -298
- package/dist/index.js.map +1 -1
- package/dist/styles.css +631 -65
- package/dist/styles.css.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -5350,9 +5350,16 @@ declare function NavigationMenuViewport({ className, ...props }: React$1.Compone
|
|
|
5350
5350
|
declare function NavigationMenuLink({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime.JSX.Element;
|
|
5351
5351
|
declare function NavigationMenuIndicator({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime.JSX.Element;
|
|
5352
5352
|
|
|
5353
|
+
declare const navigationMenuMainNavigationSurfaceStyles: (props?: ({
|
|
5354
|
+
variant?: "white" | "grey" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
5355
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5356
|
+
type NavigationMenuMainNavigationVariant = NonNullable<VariantProps<typeof navigationMenuMainNavigationSurfaceStyles>['variant']>;
|
|
5357
|
+
type NavigationMenuMainNavigationBorderPosition = 'none' | 'top' | 'bottom' | 'both';
|
|
5353
5358
|
interface NavigationMenuMainNavigationProps {
|
|
5354
5359
|
navigation: NavigationSection[];
|
|
5355
5360
|
id?: string;
|
|
5361
|
+
variant?: NavigationMenuMainNavigationVariant;
|
|
5362
|
+
borderPosition?: NavigationMenuMainNavigationBorderPosition;
|
|
5356
5363
|
className?: string;
|
|
5357
5364
|
responsive?: boolean;
|
|
5358
5365
|
sticky?: boolean;
|
|
@@ -5360,12 +5367,24 @@ interface NavigationMenuMainNavigationProps {
|
|
|
5360
5367
|
backgroundClassName?: string;
|
|
5361
5368
|
dropdownBackgroundClassName?: string;
|
|
5362
5369
|
borderClassName?: string;
|
|
5370
|
+
triggerClassName?: string;
|
|
5363
5371
|
triggerActiveClassName?: string;
|
|
5364
5372
|
triggerActiveBorderClassName?: string;
|
|
5373
|
+
featuredLinkClassName?: string;
|
|
5374
|
+
sectionLinkClassName?: string;
|
|
5375
|
+
sectionLinkTitleClassName?: string;
|
|
5376
|
+
/**
|
|
5377
|
+
* @deprecated Prefer `borderPosition="top"` or `borderPosition="both"`.
|
|
5378
|
+
* If both APIs are provided, `borderPosition` takes precedence.
|
|
5379
|
+
*/
|
|
5365
5380
|
showTopBorder?: boolean;
|
|
5381
|
+
/**
|
|
5382
|
+
* @deprecated Prefer `borderPosition="bottom"` or `borderPosition="both"`.
|
|
5383
|
+
* If both APIs are provided, `borderPosition` takes precedence.
|
|
5384
|
+
*/
|
|
5366
5385
|
showBottomBorder?: boolean;
|
|
5367
5386
|
}
|
|
5368
|
-
declare function NavigationMenuMainNavigation({ navigation, id, className, responsive, sticky, fullBleed, backgroundClassName, dropdownBackgroundClassName, borderClassName, triggerActiveClassName, triggerActiveBorderClassName, showTopBorder, showBottomBorder, }: NavigationMenuMainNavigationProps): react_jsx_runtime.JSX.Element;
|
|
5387
|
+
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;
|
|
5369
5388
|
|
|
5370
5389
|
declare function NotFound(): react_jsx_runtime.JSX.Element;
|
|
5371
5390
|
|
package/dist/index.d.ts
CHANGED
|
@@ -5350,9 +5350,16 @@ declare function NavigationMenuViewport({ className, ...props }: React$1.Compone
|
|
|
5350
5350
|
declare function NavigationMenuLink({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime.JSX.Element;
|
|
5351
5351
|
declare function NavigationMenuIndicator({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime.JSX.Element;
|
|
5352
5352
|
|
|
5353
|
+
declare const navigationMenuMainNavigationSurfaceStyles: (props?: ({
|
|
5354
|
+
variant?: "white" | "grey" | "primary" | "secondary" | "tertiary" | null | undefined;
|
|
5355
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5356
|
+
type NavigationMenuMainNavigationVariant = NonNullable<VariantProps<typeof navigationMenuMainNavigationSurfaceStyles>['variant']>;
|
|
5357
|
+
type NavigationMenuMainNavigationBorderPosition = 'none' | 'top' | 'bottom' | 'both';
|
|
5353
5358
|
interface NavigationMenuMainNavigationProps {
|
|
5354
5359
|
navigation: NavigationSection[];
|
|
5355
5360
|
id?: string;
|
|
5361
|
+
variant?: NavigationMenuMainNavigationVariant;
|
|
5362
|
+
borderPosition?: NavigationMenuMainNavigationBorderPosition;
|
|
5356
5363
|
className?: string;
|
|
5357
5364
|
responsive?: boolean;
|
|
5358
5365
|
sticky?: boolean;
|
|
@@ -5360,12 +5367,24 @@ interface NavigationMenuMainNavigationProps {
|
|
|
5360
5367
|
backgroundClassName?: string;
|
|
5361
5368
|
dropdownBackgroundClassName?: string;
|
|
5362
5369
|
borderClassName?: string;
|
|
5370
|
+
triggerClassName?: string;
|
|
5363
5371
|
triggerActiveClassName?: string;
|
|
5364
5372
|
triggerActiveBorderClassName?: string;
|
|
5373
|
+
featuredLinkClassName?: string;
|
|
5374
|
+
sectionLinkClassName?: string;
|
|
5375
|
+
sectionLinkTitleClassName?: string;
|
|
5376
|
+
/**
|
|
5377
|
+
* @deprecated Prefer `borderPosition="top"` or `borderPosition="both"`.
|
|
5378
|
+
* If both APIs are provided, `borderPosition` takes precedence.
|
|
5379
|
+
*/
|
|
5365
5380
|
showTopBorder?: boolean;
|
|
5381
|
+
/**
|
|
5382
|
+
* @deprecated Prefer `borderPosition="bottom"` or `borderPosition="both"`.
|
|
5383
|
+
* If both APIs are provided, `borderPosition` takes precedence.
|
|
5384
|
+
*/
|
|
5366
5385
|
showBottomBorder?: boolean;
|
|
5367
5386
|
}
|
|
5368
|
-
declare function NavigationMenuMainNavigation({ navigation, id, className, responsive, sticky, fullBleed, backgroundClassName, dropdownBackgroundClassName, borderClassName, triggerActiveClassName, triggerActiveBorderClassName, showTopBorder, showBottomBorder, }: NavigationMenuMainNavigationProps): react_jsx_runtime.JSX.Element;
|
|
5387
|
+
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;
|
|
5369
5388
|
|
|
5370
5389
|
declare function NotFound(): react_jsx_runtime.JSX.Element;
|
|
5371
5390
|
|