@nswds/app 1.126.2 → 1.126.4

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
@@ -179,7 +179,7 @@ type PayloadItem$4 = {
179
179
  interface ChartTooltipProps$4 {
180
180
  active: boolean | undefined;
181
181
  payload: PayloadItem$4[];
182
- label: string;
182
+ label: string | number | undefined;
183
183
  valueFormatter: (value: number) => string;
184
184
  }
185
185
  type BaseEventProps$4 = {
@@ -259,7 +259,7 @@ type PayloadItem$3 = {
259
259
  interface ChartTooltipProps$3 {
260
260
  active: boolean | undefined;
261
261
  payload: PayloadItem$3[];
262
- label: string;
262
+ label: string | number | undefined;
263
263
  valueFormatter: (value: number) => string;
264
264
  }
265
265
  type BaseEventProps$3 = {
@@ -810,9 +810,9 @@ declare function ChartTooltipContent({ active, payload, className, indicator, hi
810
810
  indicator?: 'line' | 'dot' | 'dashed';
811
811
  nameKey?: string;
812
812
  labelKey?: string;
813
- }): react.JSX.Element | null;
814
- declare const ChartLegend: typeof RechartsPrimitive.Legend;
815
- declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: react.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {
813
+ } & Omit<RechartsPrimitive.DefaultTooltipContentProps, 'accessibilityLayer'>): react.JSX.Element | null;
814
+ declare const ChartLegend: react.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => react.ReactPortal | null>;
815
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: react.ComponentProps<'div'> & Pick<RechartsPrimitive.DefaultLegendContentProps, 'payload' | 'verticalAlign'> & {
816
816
  hideIcon?: boolean;
817
817
  nameKey?: string;
818
818
  }): react.JSX.Element | null;
@@ -860,7 +860,7 @@ type PayloadItem$2 = {
860
860
  interface ChartTooltipProps$2 {
861
861
  active: boolean | undefined;
862
862
  payload: PayloadItem$2[];
863
- label: string;
863
+ label: string | number | undefined;
864
864
  barValueFormatter?: (value: number) => string;
865
865
  lineValueFormatter?: (value: number) => string;
866
866
  }
@@ -1178,7 +1178,7 @@ type FooterProps = {
1178
1178
  };
1179
1179
  declare function Footer({ legalLinks, department, socialLinks, className, color, hide, }: FooterProps): react.JSX.Element;
1180
1180
 
1181
- declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => react.JSX.Element;
1181
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => react.JSX.Element;
1182
1182
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react.JSX.Element;
1183
1183
  declare const useFormField: () => {
1184
1184
  invalid: boolean;
@@ -5268,7 +5268,7 @@ type PayloadItem = {
5268
5268
  interface ChartTooltipProps {
5269
5269
  active: boolean | undefined;
5270
5270
  payload: PayloadItem[];
5271
- label: string;
5271
+ label: string | number | undefined;
5272
5272
  valueFormatter: (value: number) => string;
5273
5273
  }
5274
5274
  type BaseEventProps = {
package/dist/index.d.ts CHANGED
@@ -179,7 +179,7 @@ type PayloadItem$4 = {
179
179
  interface ChartTooltipProps$4 {
180
180
  active: boolean | undefined;
181
181
  payload: PayloadItem$4[];
182
- label: string;
182
+ label: string | number | undefined;
183
183
  valueFormatter: (value: number) => string;
184
184
  }
185
185
  type BaseEventProps$4 = {
@@ -259,7 +259,7 @@ type PayloadItem$3 = {
259
259
  interface ChartTooltipProps$3 {
260
260
  active: boolean | undefined;
261
261
  payload: PayloadItem$3[];
262
- label: string;
262
+ label: string | number | undefined;
263
263
  valueFormatter: (value: number) => string;
264
264
  }
265
265
  type BaseEventProps$3 = {
@@ -810,9 +810,9 @@ declare function ChartTooltipContent({ active, payload, className, indicator, hi
810
810
  indicator?: 'line' | 'dot' | 'dashed';
811
811
  nameKey?: string;
812
812
  labelKey?: string;
813
- }): react.JSX.Element | null;
814
- declare const ChartLegend: typeof RechartsPrimitive.Legend;
815
- declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: react.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {
813
+ } & Omit<RechartsPrimitive.DefaultTooltipContentProps, 'accessibilityLayer'>): react.JSX.Element | null;
814
+ declare const ChartLegend: react.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => react.ReactPortal | null>;
815
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: react.ComponentProps<'div'> & Pick<RechartsPrimitive.DefaultLegendContentProps, 'payload' | 'verticalAlign'> & {
816
816
  hideIcon?: boolean;
817
817
  nameKey?: string;
818
818
  }): react.JSX.Element | null;
@@ -860,7 +860,7 @@ type PayloadItem$2 = {
860
860
  interface ChartTooltipProps$2 {
861
861
  active: boolean | undefined;
862
862
  payload: PayloadItem$2[];
863
- label: string;
863
+ label: string | number | undefined;
864
864
  barValueFormatter?: (value: number) => string;
865
865
  lineValueFormatter?: (value: number) => string;
866
866
  }
@@ -1178,7 +1178,7 @@ type FooterProps = {
1178
1178
  };
1179
1179
  declare function Footer({ legalLinks, department, socialLinks, className, color, hide, }: FooterProps): react.JSX.Element;
1180
1180
 
1181
- declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => react.JSX.Element;
1181
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => react.JSX.Element;
1182
1182
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react.JSX.Element;
1183
1183
  declare const useFormField: () => {
1184
1184
  invalid: boolean;
@@ -5268,7 +5268,7 @@ type PayloadItem = {
5268
5268
  interface ChartTooltipProps {
5269
5269
  active: boolean | undefined;
5270
5270
  payload: PayloadItem[];
5271
- label: string;
5271
+ label: string | number | undefined;
5272
5272
  valueFormatter: (value: number) => string;
5273
5273
  }
5274
5274
  type BaseEventProps = {