@nswds/app 1.109.3 → 1.110.1

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
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
3
  import * as React$1 from 'react';
4
- import React__default, { Dispatch, SetStateAction, Fragment, ReactNode, ComponentProps, HTMLAttributes, FormEvent, RefObject } from 'react';
4
+ import React__default, { Dispatch, SetStateAction, Fragment, ComponentPropsWithoutRef, ReactNode, ComponentProps, HTMLAttributes, FormEvent, RefObject } from 'react';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
6
  import * as class_variance_authority from 'class-variance-authority';
7
7
  import { VariantProps } from 'class-variance-authority';
@@ -1187,11 +1187,12 @@ declare function FormMessage({ className, ...props }: React$1.ComponentProps<'p'
1187
1187
 
1188
1188
  declare function FormatToggle({ format, setFormat }: FormatToggleProps): react_jsx_runtime.JSX.Element;
1189
1189
 
1190
- declare function Header({ children, sitename, navigation, version, hide, altLogo, altDescriptor, }: {
1190
+ declare function Header({ children, sitename, navigation, version, hide, altLogo, altDescriptor, className, }: {
1191
1191
  children?: React.ReactNode;
1192
1192
  sitename?: string;
1193
1193
  navigation: NavigationSection[];
1194
1194
  version?: boolean;
1195
+ className?: string;
1195
1196
  hide?: {
1196
1197
  logo?: boolean;
1197
1198
  descriptor?: boolean;
@@ -5268,7 +5269,10 @@ declare function ListboxDescription({ className, children, ...props }: React.Com
5268
5269
 
5269
5270
  declare function Loading(): react_jsx_runtime.JSX.Element;
5270
5271
 
5271
- declare function Logo(props: React.ComponentPropsWithoutRef<'svg'>): react_jsx_runtime.JSX.Element;
5272
+ type LogoProps = ComponentPropsWithoutRef<'svg'> & {
5273
+ logoType?: 'default' | 'reversed' | 'mono-white' | 'mono-black';
5274
+ };
5275
+ declare function Logo({ logoType, ...props }: LogoProps): react_jsx_runtime.JSX.Element;
5272
5276
 
5273
5277
  interface NavigationProps {
5274
5278
  navigation: NavigationSection[];
@@ -5377,9 +5381,11 @@ declare function NSWCardArrow({ color, className, ...props }: {
5377
5381
  declare namespace NSWCardArrow {
5378
5382
  var displayName: string;
5379
5383
  }
5380
- declare function NSWCardImg({ imgSrc, imgAlt, className, ...props }: {
5384
+ declare function NSWCardImg({ imgSrc, imgAlt, border, highlight, className, ...props }: {
5381
5385
  imgSrc: string;
5382
5386
  imgAlt: string;
5387
+ border?: boolean;
5388
+ highlight?: boolean;
5383
5389
  className?: string;
5384
5390
  }): react_jsx_runtime.JSX.Element;
5385
5391
  declare namespace NSWCardImg {
@@ -5394,9 +5400,10 @@ declare function NSWCardIcon({ children, backgroundColor, size, className, }: {
5394
5400
  declare namespace NSWCardIcon {
5395
5401
  var displayName: string;
5396
5402
  }
5397
- declare function NSWCard({ children, topBorder, className, variant, color, size, ...props }: React$1.ComponentProps<'div'> & VariantProps<typeof cardVariants> & {
5403
+ declare function NSWCard({ children, topBorder, border, className, variant, color, size, ...props }: React$1.ComponentProps<'div'> & VariantProps<typeof cardVariants> & {
5398
5404
  children: React$1.ReactNode;
5399
5405
  topBorder?: string;
5406
+ border?: boolean;
5400
5407
  className?: string;
5401
5408
  }): react_jsx_runtime.JSX.Element;
5402
5409
  declare namespace NSWCard {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
3
  import * as React$1 from 'react';
4
- import React__default, { Dispatch, SetStateAction, Fragment, ReactNode, ComponentProps, HTMLAttributes, FormEvent, RefObject } from 'react';
4
+ import React__default, { Dispatch, SetStateAction, Fragment, ComponentPropsWithoutRef, ReactNode, ComponentProps, HTMLAttributes, FormEvent, RefObject } from 'react';
5
5
  import * as class_variance_authority_types from 'class-variance-authority/types';
6
6
  import * as class_variance_authority from 'class-variance-authority';
7
7
  import { VariantProps } from 'class-variance-authority';
@@ -1187,11 +1187,12 @@ declare function FormMessage({ className, ...props }: React$1.ComponentProps<'p'
1187
1187
 
1188
1188
  declare function FormatToggle({ format, setFormat }: FormatToggleProps): react_jsx_runtime.JSX.Element;
1189
1189
 
1190
- declare function Header({ children, sitename, navigation, version, hide, altLogo, altDescriptor, }: {
1190
+ declare function Header({ children, sitename, navigation, version, hide, altLogo, altDescriptor, className, }: {
1191
1191
  children?: React.ReactNode;
1192
1192
  sitename?: string;
1193
1193
  navigation: NavigationSection[];
1194
1194
  version?: boolean;
1195
+ className?: string;
1195
1196
  hide?: {
1196
1197
  logo?: boolean;
1197
1198
  descriptor?: boolean;
@@ -5268,7 +5269,10 @@ declare function ListboxDescription({ className, children, ...props }: React.Com
5268
5269
 
5269
5270
  declare function Loading(): react_jsx_runtime.JSX.Element;
5270
5271
 
5271
- declare function Logo(props: React.ComponentPropsWithoutRef<'svg'>): react_jsx_runtime.JSX.Element;
5272
+ type LogoProps = ComponentPropsWithoutRef<'svg'> & {
5273
+ logoType?: 'default' | 'reversed' | 'mono-white' | 'mono-black';
5274
+ };
5275
+ declare function Logo({ logoType, ...props }: LogoProps): react_jsx_runtime.JSX.Element;
5272
5276
 
5273
5277
  interface NavigationProps {
5274
5278
  navigation: NavigationSection[];
@@ -5377,9 +5381,11 @@ declare function NSWCardArrow({ color, className, ...props }: {
5377
5381
  declare namespace NSWCardArrow {
5378
5382
  var displayName: string;
5379
5383
  }
5380
- declare function NSWCardImg({ imgSrc, imgAlt, className, ...props }: {
5384
+ declare function NSWCardImg({ imgSrc, imgAlt, border, highlight, className, ...props }: {
5381
5385
  imgSrc: string;
5382
5386
  imgAlt: string;
5387
+ border?: boolean;
5388
+ highlight?: boolean;
5383
5389
  className?: string;
5384
5390
  }): react_jsx_runtime.JSX.Element;
5385
5391
  declare namespace NSWCardImg {
@@ -5394,9 +5400,10 @@ declare function NSWCardIcon({ children, backgroundColor, size, className, }: {
5394
5400
  declare namespace NSWCardIcon {
5395
5401
  var displayName: string;
5396
5402
  }
5397
- declare function NSWCard({ children, topBorder, className, variant, color, size, ...props }: React$1.ComponentProps<'div'> & VariantProps<typeof cardVariants> & {
5403
+ declare function NSWCard({ children, topBorder, border, className, variant, color, size, ...props }: React$1.ComponentProps<'div'> & VariantProps<typeof cardVariants> & {
5398
5404
  children: React$1.ReactNode;
5399
5405
  topBorder?: string;
5406
+ border?: boolean;
5400
5407
  className?: string;
5401
5408
  }): react_jsx_runtime.JSX.Element;
5402
5409
  declare namespace NSWCard {