@nswds/ui 9.1.0 → 9.1.2

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/README.md CHANGED
@@ -219,10 +219,10 @@ Supply the whole ramp — components draw on different steps for fills, borders
219
219
 
220
220
  ## Prefer the source in your repo?
221
221
 
222
- The same components are distributed through a [shadcn](https://ui.shadcn.com/) registry at **https://ui.digital.nsw.gov.au/registry**, which copies the component source directly into your project for teams that want to adapt it:
222
+ The same components are distributed through a [shadcn](https://ui.shadcn.com/) registry at **https://registry.design.nsw.gov.au**, which copies the component source directly into your project for teams that want to adapt it:
223
223
 
224
224
  ```bash
225
- npx shadcn@latest add https://ui.digital.nsw.gov.au/registry/r/button.json
225
+ npx shadcn@latest add https://registry.design.nsw.gov.au/r/button.json
226
226
  ```
227
227
 
228
228
  The npm package gives you versioned, upgradeable components; the registry gives you editable source. See the [registry installation guide](https://github.com/digitalnsw/nswds-ui/blob/main/docs/installing-from-the-registry.md) for the full setup, including the one-time `@nswds` namespace configuration.
@@ -24,7 +24,7 @@ import * as React from 'react';
24
24
  * look lands on the 4px grid (40px tall, 48px with the ellipsis).
25
25
  */
26
26
  declare const breadcrumbVariants: (props?: ({
27
- variant?: "default" | "soft" | "band" | "rail" | null | undefined;
27
+ variant?: "default" | "band" | "soft" | "rail" | null | undefined;
28
28
  } & class_variance_authority_types.ClassProp) | undefined) => string;
29
29
  /**
30
30
  * The `sideOffset` to give a DropdownMenuContent opened from the ellipsis. The
@@ -6,8 +6,8 @@ import { Link } from './link.js';
6
6
 
7
7
  declare const buttonCva: (props?: ({
8
8
  variant?: "link" | "solid" | "soft" | "surface" | "outline" | "ghost" | null | undefined;
9
- color?: "primary" | "secondary" | "white" | "accent" | "tertiary" | "success" | "warning" | "grey" | "danger" | null | undefined;
10
- size?: "default" | "icon" | "sm" | "lg" | null | undefined;
9
+ color?: "danger" | "tertiary" | "accent" | "success" | "warning" | "white" | "grey" | "primary" | "secondary" | null | undefined;
10
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
11
11
  iconOnly?: boolean | null | undefined;
12
12
  onTint?: boolean | null | undefined;
13
13
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -27,7 +27,7 @@ type ButtonVariantProps = NonNullable<Parameters<typeof buttonCva>[0]>;
27
27
  */
28
28
  declare function buttonVariants({ onTint, ...props }?: ButtonVariantProps): string;
29
29
  declare const buttonColorCva: (props?: ({
30
- color?: "primary" | "secondary" | "white" | "accent" | "tertiary" | "success" | "warning" | "grey" | "danger" | null | undefined;
30
+ color?: "danger" | "tertiary" | "accent" | "success" | "warning" | "white" | "grey" | "primary" | "secondary" | null | undefined;
31
31
  onTint?: boolean | null | undefined;
32
32
  } & class_variance_authority_types.ClassProp) | undefined) => string;
33
33
  /**
@@ -25,7 +25,7 @@ type CalloutStatus = 'info' | 'success' | 'warning' | 'danger';
25
25
  * drift out of step with the token library.
26
26
  */
27
27
  declare const calloutVariants: (props?: ({
28
- status?: "success" | "warning" | "danger" | "info" | null | undefined;
28
+ status?: "danger" | "success" | "warning" | "info" | null | undefined;
29
29
  } & class_variance_authority_types.ClassProp) | undefined) => string;
30
30
  type CalloutProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'title'> & VariantProps<typeof calloutVariants> & {
31
31
  /** Optional bold lead line above the body copy. */
@@ -66,7 +66,7 @@ declare function Callout({ className, status, title, icon, children, ref, ...pro
66
66
  */
67
67
  declare const Alert: typeof Callout;
68
68
  declare const alertVariants: (props?: ({
69
- status?: "success" | "warning" | "danger" | "info" | null | undefined;
69
+ status?: "danger" | "success" | "warning" | "info" | null | undefined;
70
70
  } & class_variance_authority_types.ClassProp) | undefined) => string;
71
71
  type AlertProps = CalloutProps;
72
72
  type AlertStatus = CalloutStatus;
@@ -17,7 +17,7 @@ declare const inputGroupAddonVariants: (props?: ({
17
17
  } & class_variance_authority_types.ClassProp) | undefined) => string;
18
18
  declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
19
19
  declare const inputGroupButtonVariants: (props?: ({
20
- size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
20
+ size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
21
21
  } & class_variance_authority_types.ClassProp) | undefined) => string;
22
22
  /**
23
23
  * The inline button inside an addon — a secondary action or an icon
@@ -35,7 +35,7 @@ declare function InputGroupButton({ className, type, variant, size, ...props }:
35
35
  type?: 'button' | 'submit' | 'reset';
36
36
  }): React.JSX.Element;
37
37
  declare const inputGroupActionVariants: (props?: ({
38
- variant?: "solid" | "open" | "subtle" | null | undefined;
38
+ variant?: "open" | "solid" | "subtle" | null | undefined;
39
39
  } & class_variance_authority_types.ClassProp) | undefined) => string;
40
40
  declare function InputGroupAction({ className, type, variant, ...props }: Omit<React.ComponentProps<typeof Button>, 'size' | 'type' | 'variant'> & VariantProps<typeof inputGroupActionVariants> & {
41
41
  type?: 'button' | 'submit' | 'reset';
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
3
3
  import React__default from 'react';
4
4
 
5
5
  declare const linkVariants: (props?: ({
6
- variant?: "primary" | "secondary" | "white" | "unstyled" | null | undefined;
6
+ variant?: "white" | "primary" | "secondary" | "unstyled" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  type LinkComponent = React__default.ElementType;
9
9
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nswds/ui",
3
- "version": "9.1.0",
3
+ "version": "9.1.2",
4
4
  "description": "UI components for NSW Government digital products, providing reusable design elements and patterns for consistent user interfaces.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/digitalnsw/nswds-ui#readme",