@nswds/app 1.124.1 → 1.125.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
@@ -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, ComponentType, ReactNode, Fragment, ComponentPropsWithoutRef, ComponentProps, HTMLAttributes, FormEvent, RefObject } from 'react';
4
+ import React__default, { Dispatch, SetStateAction, ComponentType, ReactNode, ComponentProps, Fragment, ComponentPropsWithoutRef, 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';
@@ -26,6 +26,7 @@ import * as react_hook_form from 'react-hook-form';
26
26
  import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
27
27
  import * as LabelPrimitive from '@radix-ui/react-label';
28
28
  import { Slot } from '@radix-ui/react-slot';
29
+ import Image$1 from 'next/image';
29
30
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
30
31
  import { OTPInput } from 'input-otp';
31
32
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
@@ -1297,6 +1298,7 @@ interface HeroBannerSupportingImageProps extends VariantProps<typeof heroBannerV
1297
1298
  heading: ReactNode;
1298
1299
  subtitle: string;
1299
1300
  split?: HeroBannerSupportingImageSplit;
1301
+ loading?: ComponentProps<typeof Image$1>['loading'];
1300
1302
  primaryButton?: {
1301
1303
  text: ReactNode;
1302
1304
  href?: string;
@@ -1312,7 +1314,7 @@ interface HeroBannerSupportingImageProps extends VariantProps<typeof heroBannerV
1312
1314
  onClick?: () => void;
1313
1315
  };
1314
1316
  }
1315
- declare function HeroBannerSupportingImage({ variant, imgAlt, imgSrc, imgBgcolor, heading, subtitle, split, primaryButton, secondaryButton, }: HeroBannerSupportingImageProps): react_jsx_runtime.JSX.Element;
1317
+ declare function HeroBannerSupportingImage({ variant, imgAlt, imgSrc, imgBgcolor, heading, subtitle, split, primaryButton, secondaryButton, loading, }: HeroBannerSupportingImageProps): react_jsx_runtime.JSX.Element;
1316
1318
 
1317
1319
  declare function HoverCard$1({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Root>): react_jsx_runtime.JSX.Element;
1318
1320
  declare function HoverCardTrigger({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
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, ComponentType, ReactNode, Fragment, ComponentPropsWithoutRef, ComponentProps, HTMLAttributes, FormEvent, RefObject } from 'react';
4
+ import React__default, { Dispatch, SetStateAction, ComponentType, ReactNode, ComponentProps, Fragment, ComponentPropsWithoutRef, 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';
@@ -26,6 +26,7 @@ import * as react_hook_form from 'react-hook-form';
26
26
  import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
27
27
  import * as LabelPrimitive from '@radix-ui/react-label';
28
28
  import { Slot } from '@radix-ui/react-slot';
29
+ import Image$1 from 'next/image';
29
30
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
30
31
  import { OTPInput } from 'input-otp';
31
32
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
@@ -1297,6 +1298,7 @@ interface HeroBannerSupportingImageProps extends VariantProps<typeof heroBannerV
1297
1298
  heading: ReactNode;
1298
1299
  subtitle: string;
1299
1300
  split?: HeroBannerSupportingImageSplit;
1301
+ loading?: ComponentProps<typeof Image$1>['loading'];
1300
1302
  primaryButton?: {
1301
1303
  text: ReactNode;
1302
1304
  href?: string;
@@ -1312,7 +1314,7 @@ interface HeroBannerSupportingImageProps extends VariantProps<typeof heroBannerV
1312
1314
  onClick?: () => void;
1313
1315
  };
1314
1316
  }
1315
- declare function HeroBannerSupportingImage({ variant, imgAlt, imgSrc, imgBgcolor, heading, subtitle, split, primaryButton, secondaryButton, }: HeroBannerSupportingImageProps): react_jsx_runtime.JSX.Element;
1317
+ declare function HeroBannerSupportingImage({ variant, imgAlt, imgSrc, imgBgcolor, heading, subtitle, split, primaryButton, secondaryButton, loading, }: HeroBannerSupportingImageProps): react_jsx_runtime.JSX.Element;
1316
1318
 
1317
1319
  declare function HoverCard$1({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Root>): react_jsx_runtime.JSX.Element;
1318
1320
  declare function HoverCardTrigger({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
package/dist/index.js CHANGED
@@ -18993,7 +18993,7 @@ function FormatToggle({ format, setFormat }) {
18993
18993
 
18994
18994
  // package.json
18995
18995
  var package_default = {
18996
- version: "1.124.0"};
18996
+ version: "1.124.2"};
18997
18997
  var SluggerContext = React5__default.createContext(null);
18998
18998
  function flattenText(nodes) {
18999
18999
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -19427,7 +19427,8 @@ function HeroBannerSupportingImage({
19427
19427
  subtitle,
19428
19428
  split,
19429
19429
  primaryButton,
19430
- secondaryButton
19430
+ secondaryButton,
19431
+ loading
19431
19432
  }) {
19432
19433
  const resolvedSplit = resolveHeroBannerSupportingImageSplit(split);
19433
19434
  const textSpanClassName = HERO_BANNER_SUPPORTING_IMAGE_COLUMN_SPANS[resolvedSplit.left];
@@ -19507,6 +19508,7 @@ function HeroBannerSupportingImage({
19507
19508
  src: imgSrc || "/placeholder.svg",
19508
19509
  width: 800,
19509
19510
  height: 800,
19511
+ loading,
19510
19512
  className: cn(
19511
19513
  "aspect-[3/2] w-full object-cover lg:absolute lg:inset-0 lg:aspect-auto lg:h-full",
19512
19514
  imgBgcolor