@nswds/app 1.115.0 → 1.117.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
@@ -74,7 +74,7 @@ declare const Link$1: React__default.ForwardRefExoticComponent<LinkProps<any> &
74
74
 
75
75
  declare const buttonVariants$2: (props?: ({
76
76
  variant?: "solid" | "soft" | "surface" | "outline" | "ghost" | null | undefined;
77
- color?: "primary/grey" | "light" | "primary/white" | "white" | "grey" | "primary" | "secondary" | "tertiary" | "accent" | null | undefined;
77
+ color?: "primary/grey" | "light" | "primary/white" | "white" | "grey" | "primary" | "secondary" | "tertiary" | "accent" | "danger" | null | undefined;
78
78
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
79
79
  iconSize?: "default" | "sm" | "lg" | "xl" | null | undefined;
80
80
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -1262,7 +1262,7 @@ interface HeroBannerSimpleProps extends VariantProps<typeof heroBannerVariants$1
1262
1262
  declare function HeroBannerSimple({ variant, heading, subtitle, contentAlign, primaryButton, secondaryButton, }: HeroBannerSimpleProps): react_jsx_runtime.JSX.Element;
1263
1263
 
1264
1264
  declare const heroBannerVariants: (props?: ({
1265
- variant?: "white" | "grey-600" | "grey-800" | "accent-200" | "primary-800" | "primary-600" | "primary-400" | "primary-200" | "grey-400" | "grey-200" | "accent-800" | "accent-600" | "accent-400" | null | undefined;
1265
+ variant?: "white" | "grey-600" | "grey-800" | "accent-200" | "primary-800" | "primary-600" | "primary-400" | "primary-200" | "grey-400" | "grey-200" | "accent-800" | "accent-600" | "accent-400" | "grey-150" | null | undefined;
1266
1266
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1267
1267
  declare const HERO_BANNER_SUPPORTING_IMAGE_COLUMN_SPANS: {
1268
1268
  readonly 1: "lg:col-span-1";
package/dist/index.d.ts CHANGED
@@ -74,7 +74,7 @@ declare const Link$1: React__default.ForwardRefExoticComponent<LinkProps<any> &
74
74
 
75
75
  declare const buttonVariants$2: (props?: ({
76
76
  variant?: "solid" | "soft" | "surface" | "outline" | "ghost" | null | undefined;
77
- color?: "primary/grey" | "light" | "primary/white" | "white" | "grey" | "primary" | "secondary" | "tertiary" | "accent" | null | undefined;
77
+ color?: "primary/grey" | "light" | "primary/white" | "white" | "grey" | "primary" | "secondary" | "tertiary" | "accent" | "danger" | null | undefined;
78
78
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
79
79
  iconSize?: "default" | "sm" | "lg" | "xl" | null | undefined;
80
80
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -1262,7 +1262,7 @@ interface HeroBannerSimpleProps extends VariantProps<typeof heroBannerVariants$1
1262
1262
  declare function HeroBannerSimple({ variant, heading, subtitle, contentAlign, primaryButton, secondaryButton, }: HeroBannerSimpleProps): react_jsx_runtime.JSX.Element;
1263
1263
 
1264
1264
  declare const heroBannerVariants: (props?: ({
1265
- variant?: "white" | "grey-600" | "grey-800" | "accent-200" | "primary-800" | "primary-600" | "primary-400" | "primary-200" | "grey-400" | "grey-200" | "accent-800" | "accent-600" | "accent-400" | null | undefined;
1265
+ variant?: "white" | "grey-600" | "grey-800" | "accent-200" | "primary-800" | "primary-600" | "primary-400" | "primary-200" | "grey-400" | "grey-200" | "accent-800" | "accent-600" | "accent-400" | "grey-150" | null | undefined;
1266
1266
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1267
1267
  declare const HERO_BANNER_SUPPORTING_IMAGE_COLUMN_SPANS: {
1268
1268
  readonly 1: "lg:col-span-1";
package/dist/index.js CHANGED
@@ -61,7 +61,8 @@ import { tv } from 'tailwind-variants';
61
61
  import * as ResizablePrimitive from 'react-resizable-panels';
62
62
  import * as SliderPrimitive from '@radix-ui/react-slider';
63
63
  import { Prism as Prism$1 } from 'react-syntax-highlighter';
64
- import { oneLight, oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
64
+ import oneDark from 'react-syntax-highlighter/dist/esm/styles/prism/one-dark';
65
+ import oneLight from 'react-syntax-highlighter/dist/esm/styles/prism/one-light';
65
66
  import { estimateCost } from 'tokenlens';
66
67
  import { StickToBottom, useStickToBottomContext } from 'use-stick-to-bottom';
67
68
  import crypto from 'crypto';
@@ -4261,7 +4262,7 @@ var styles = {
4261
4262
  ],
4262
4263
  outline: [
4263
4264
  // Text color
4264
- "border-(--btn-bg) text-(--btn-bg) border-2",
4265
+ "border-(--btn-bg) text-(--btn-bg)",
4265
4266
  // Optical border, implemented as the button background to avoid corner artifacts
4266
4267
  "bg-transparent",
4267
4268
  // Button background, implemented as foreground layer to stack on top of pseudo-border layer
@@ -4422,6 +4423,13 @@ var styles = {
4422
4423
  "dark:[--btn-bg:var(--color-accent-500)] dark:[--btn-border:var(--color-accent-500)]/90 dark:[--btn-text:white]",
4423
4424
  // Dark mode states
4424
4425
  "dark:[--btn-hover-overlay:var(--color-accent-500)]/30 dark:data-[variant=solid]:[--btn-hover-overlay:var(--color-white)]/10"
4426
+ ],
4427
+ danger: [
4428
+ // Backward-compatible alias for legacy consumers that still use `danger`.
4429
+ "[--btn-bg:var(--color-accent-600)] [--btn-border:var(--color-accent-600)]/90 [--btn-text:white]",
4430
+ "[--btn-hover-overlay:var(--color-accent-600)]/10 data-[variant=solid]:[--btn-hover-overlay:var(--color-white)]/10",
4431
+ "dark:[--btn-bg:var(--color-accent-500)] dark:[--btn-border:var(--color-accent-500)]/90 dark:[--btn-text:white]",
4432
+ "dark:[--btn-hover-overlay:var(--color-accent-500)]/30 dark:data-[variant=solid]:[--btn-hover-overlay:var(--color-white)]/10"
4425
4433
  ]
4426
4434
  },
4427
4435
  size: {
@@ -4455,7 +4463,8 @@ var buttonVariants = cva(styles.base, {
4455
4463
  primary: styles.colors.primary,
4456
4464
  secondary: styles.colors.secondary,
4457
4465
  tertiary: styles.colors.tertiary,
4458
- accent: styles.colors.accent
4466
+ accent: styles.colors.accent,
4467
+ danger: styles.colors.danger
4459
4468
  },
4460
4469
  size: {
4461
4470
  default: styles.size.default,
@@ -18762,7 +18771,7 @@ function FormatToggle({ format, setFormat }) {
18762
18771
 
18763
18772
  // package.json
18764
18773
  var package_default = {
18765
- version: "1.114.1"};
18774
+ version: "1.116.0"};
18766
18775
  var SluggerContext = React5__default.createContext(null);
18767
18776
  function flattenText(nodes) {
18768
18777
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -19148,6 +19157,7 @@ var heroBannerVariants2 = cva("relative", {
19148
19157
  "grey-600": "bg-grey-600 text-white",
19149
19158
  "grey-400": "bg-grey-400 text-grey-800",
19150
19159
  "grey-200": "bg-grey-200 text-grey-800",
19160
+ "grey-150": "bg-grey-200 text-grey-800",
19151
19161
  "accent-800": "bg-accent-800 text-white",
19152
19162
  "accent-600": "bg-accent-600 text-white",
19153
19163
  "accent-400": "bg-accent-400 text-accent-800",