diff --git a/.changeset/beige-peaches-explain.md b/.changeset/beige-peaches-explain.md deleted file mode 100644 index 81af374af..000000000 --- a/.changeset/beige-peaches-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@westpac/ui': minor ---- - -fixed button groups hover glitch; updated footer story shield margin; updated space below alert title; updated search icon size in automcomplete diff --git a/apps/protoform/CHANGELOG.md b/apps/protoform/CHANGELOG.md index 883baa8a2..716520193 100644 --- a/apps/protoform/CHANGELOG.md +++ b/apps/protoform/CHANGELOG.md @@ -1,5 +1,14 @@ # protoform +## 0.2.4 + +### Patch Changes + +- Updated dependencies [6f96072] +- Updated dependencies [23dad1b] +- Updated dependencies [94d6345] + - @westpac/ui@0.28.0 + ## 0.2.3 ### Patch Changes diff --git a/apps/protoform/package.json b/apps/protoform/package.json index 0ab9a73f1..34ef4499c 100644 --- a/apps/protoform/package.json +++ b/apps/protoform/package.json @@ -1,6 +1,6 @@ { "name": "protoform", - "version": "0.2.3", + "version": "0.2.4", "private": true, "scripts": { "dev": "next dev", diff --git a/apps/protoform/src/components/cta/cta.tsx b/apps/protoform/src/components/cta/cta.tsx index 6f9b7b8c2..3dbb813fb 100644 --- a/apps/protoform/src/components/cta/cta.tsx +++ b/apps/protoform/src/components/cta/cta.tsx @@ -19,7 +19,7 @@ export function Cta({ tertiaryOnClick?: () => void; }) { return ( -
+
diff --git a/apps/protoform/src/components/sidebar/sidebar.tsx b/apps/protoform/src/components/sidebar/sidebar.tsx index c374edbc1..17b35b387 100644 --- a/apps/protoform/src/components/sidebar/sidebar.tsx +++ b/apps/protoform/src/components/sidebar/sidebar.tsx @@ -84,7 +84,7 @@ export function Sidebar({ children }: { children?: ReactNode }) { <>
diff --git a/apps/site/CHANGELOG.md b/apps/site/CHANGELOG.md index 6ef4d29f3..80067b7cf 100644 --- a/apps/site/CHANGELOG.md +++ b/apps/site/CHANGELOG.md @@ -1,5 +1,14 @@ # site +## 0.3.4 + +### Patch Changes + +- Updated dependencies [6f96072] +- Updated dependencies [23dad1b] +- Updated dependencies [94d6345] + - @westpac/ui@0.28.0 + ## 0.3.3 ### Patch Changes diff --git a/apps/site/package.json b/apps/site/package.json index d9eeb6af4..5267f7c51 100644 --- a/apps/site/package.json +++ b/apps/site/package.json @@ -1,6 +1,6 @@ { "name": "site", - "version": "0.3.3", + "version": "0.3.4", "private": true, "scripts": { "build": "next build", diff --git a/apps/site/src/app/design-system/[brand]/[...component]/components/content-tabs/components/intro/components/table-of-contents/table-of-contents.component.tsx b/apps/site/src/app/design-system/[brand]/[...component]/components/content-tabs/components/intro/components/table-of-contents/table-of-contents.component.tsx index 2fa6df8ff..9517cde09 100644 --- a/apps/site/src/app/design-system/[brand]/[...component]/components/content-tabs/components/intro/components/table-of-contents/table-of-contents.component.tsx +++ b/apps/site/src/app/design-system/[brand]/[...component]/components/content-tabs/components/intro/components/table-of-contents/table-of-contents.component.tsx @@ -1,7 +1,7 @@ 'use client'; - import { List, ListItem } from '@westpac/ui'; -import { MouseEventHandler, useCallback } from 'react'; +import Link from 'next/link'; +import { usePathname } from 'next/navigation'; import { ArrowDownRightIcon } from '@/components/icons'; @@ -10,7 +10,7 @@ import { type TableOfContentsProps } from './table-of-contents.types'; export function TableOfContents({ contents = [] }: TableOfContentsProps) { return (
- - Messages - + +
+ Product feature +
+ 12
@@ -65,12 +67,11 @@ Product feature - + NEW -
diff --git a/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc b/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc index 21b2f3326..4e9e202df 100644 --- a/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc +++ b/apps/site/src/content/design-system/components/badge/design/badge-styles/content.mdoc @@ -1,38 +1,48 @@ Badges come in 2 different types: -- Default - used to highlight words +- Default - used to highlight words - Pill - used to highlight numbers ### Badges - Default ```tsx -

-Default -

+

+ Default +

- Primary{" "} - Hero{" "} - Neutral{" "} - Faint{" "} - - Success{" "} - Info{" "} - Warning{" "} - Danger + Primary Hero Neutral{' '} + Faint Success Info{' '} + Warning Danger

-Soft -

-

- Primary{" "} - Hero{" "} - Neutral{" "} - Faint{" "} - Success{" "} - Info{" "} - Warning{" "} - Danger + Soft +

+

+ + Primary + {' '} + + Hero + {' '} + + Neutral + {' '} + + Faint + {' '} + + Success + {' '} + + Info + {' '} + + Warning + {' '} + + Danger +

``` @@ -75,80 +85,80 @@ Badges come in 2 different types: ```tsx () => { - const COLORS = ['danger', 'faint', 'hero', 'info', 'neutral', 'primary', 'success', 'warning'] as const; - const INVERTED_COLORS = [ - 'danger-inverted', - 'faint-inverted', - 'hero-inverted', - 'info-inverted', - 'neutral-inverted', - 'primary-inverted', - 'success-inverted', - 'warning-inverted', - ] as const; - - return ( -
-
-

- Examples showing pill style badge -

-
- - - - Messages - - 12 - - -
+ const COLORS = ['danger', 'faint', 'hero', 'info', 'neutral', 'primary', 'success', 'warning'] as const; + const INVERTED_COLORS = [ + 'danger-inverted', + 'faint-inverted', + 'hero-inverted', + 'info-inverted', + 'neutral-inverted', + 'primary-inverted', + 'success-inverted', + 'warning-inverted', + ] as const; + + return ( +
+
+

+ Examples showing pill style badge +

+
+ + + + Messages{' '} + + + 12 +
-
-

- Examples showing basic style badge -

- -
- - - - - - Product feature - - New - - +
+
+

+ Examples showing basic style badge +

+ +
+ + -
+ + Product feature + + + New +
- ); - }; +
+ ); +}; ``` diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 6edaa7b41..535020f94 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,13 @@ # @westpac/ui +## 0.28.0 + +### Minor Changes + +- 6f96072: fixed button groups hover glitch; updated footer story shield margin; updated space below alert title; updated search icon size in automcomplete +- 23dad1b: Updated the appearance and svg of progress indicator component; updated visual bugs in header and badge; +- 94d6345: added icons - arrow circle icons + ## 0.27.0 ### Minor Changes diff --git a/packages/ui/assets/icons/filled/arrow-back-circle-filled.svg b/packages/ui/assets/icons/filled/arrow-back-circle-filled.svg new file mode 100644 index 000000000..ffed4eed0 --- /dev/null +++ b/packages/ui/assets/icons/filled/arrow-back-circle-filled.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/ui/assets/icons/filled/arrow-down-circle-filled.svg b/packages/ui/assets/icons/filled/arrow-down-circle-filled.svg new file mode 100644 index 000000000..ed7bd4c68 --- /dev/null +++ b/packages/ui/assets/icons/filled/arrow-down-circle-filled.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/ui/assets/icons/filled/arrow-forward-circle-filled.svg b/packages/ui/assets/icons/filled/arrow-forward-circle-filled.svg new file mode 100644 index 000000000..c8e95979a --- /dev/null +++ b/packages/ui/assets/icons/filled/arrow-forward-circle-filled.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/ui/assets/icons/filled/arrow-up-circle-filled.svg b/packages/ui/assets/icons/filled/arrow-up-circle-filled.svg new file mode 100644 index 000000000..e0efd0539 --- /dev/null +++ b/packages/ui/assets/icons/filled/arrow-up-circle-filled.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/ui/assets/icons/outlined/arrow-back-circle-outlined.svg b/packages/ui/assets/icons/outlined/arrow-back-circle-outlined.svg new file mode 100644 index 000000000..2bf62ae15 --- /dev/null +++ b/packages/ui/assets/icons/outlined/arrow-back-circle-outlined.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/ui/assets/icons/outlined/arrow-down-circle-outlined.svg b/packages/ui/assets/icons/outlined/arrow-down-circle-outlined.svg new file mode 100644 index 000000000..398381861 --- /dev/null +++ b/packages/ui/assets/icons/outlined/arrow-down-circle-outlined.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/ui/assets/icons/outlined/arrow-forward-circle-outlined.svg b/packages/ui/assets/icons/outlined/arrow-forward-circle-outlined.svg new file mode 100644 index 000000000..2cf19a356 --- /dev/null +++ b/packages/ui/assets/icons/outlined/arrow-forward-circle-outlined.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/ui/assets/icons/outlined/arrow-up-circle-outlined.svg b/packages/ui/assets/icons/outlined/arrow-up-circle-outlined.svg new file mode 100644 index 000000000..1cf2fc49d --- /dev/null +++ b/packages/ui/assets/icons/outlined/arrow-up-circle-outlined.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/ui/package.json b/packages/ui/package.json index 622d13e0a..e6c97a34d 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@westpac/ui", - "version": "0.27.0", + "version": "0.28.0", "license": "MIT", "sideEffects": false, "type": "module", diff --git a/packages/ui/src/components/badge/badge.stories.tsx b/packages/ui/src/components/badge/badge.stories.tsx index 3373ccb0c..4420afed5 100644 --- a/packages/ui/src/components/badge/badge.stories.tsx +++ b/packages/ui/src/components/badge/badge.stories.tsx @@ -131,12 +131,14 @@ export const Soft = () => ( export const Links = () => (
{COLORS.map(color => ( - - {color} - - 12 - - +
+ +
Product feature
+ + NEW + +
+
))}
); diff --git a/packages/ui/src/components/header/header.component.tsx b/packages/ui/src/components/header/header.component.tsx index bd8c43fb4..ef3c4b8c0 100644 --- a/packages/ui/src/components/header/header.component.tsx +++ b/packages/ui/src/components/header/header.component.tsx @@ -103,7 +103,7 @@ export function Header({