From 62db13b66f2c0e00b59385995209ccf6af29dee7 Mon Sep 17 00:00:00 2001 From: Jeremy Ortiz Date: Mon, 2 Dec 2024 14:30:33 +1100 Subject: [PATCH 1/2] feat: export theme tokens --- .changeset/big-badgers-sleep.md | 5 +++++ apps/site/next.config.js | 6 ++++++ packages/ui/src/tailwind/themes/index.ts | 14 ++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 .changeset/big-badgers-sleep.md diff --git a/.changeset/big-badgers-sleep.md b/.changeset/big-badgers-sleep.md new file mode 100644 index 000000000..b73f8a5de --- /dev/null +++ b/.changeset/big-badgers-sleep.md @@ -0,0 +1,5 @@ +--- +'@westpac/ui': minor +--- + +Export brand tokens diff --git a/apps/site/next.config.js b/apps/site/next.config.js index f647e602b..d5a45ea33 100644 --- a/apps/site/next.config.js +++ b/apps/site/next.config.js @@ -9,6 +9,12 @@ module.exports = { port: '', pathname: '/westpac-gel/**', }, + { + protocol: 'https', + hostname: 'westpac.com.au', + port: '', + pathname: '/content/dam/public/gel/**', + }, ], unoptimized: true, }, diff --git a/packages/ui/src/tailwind/themes/index.ts b/packages/ui/src/tailwind/themes/index.ts index 728aaee21..cf293c8e0 100644 --- a/packages/ui/src/tailwind/themes/index.ts +++ b/packages/ui/src/tailwind/themes/index.ts @@ -1,13 +1,16 @@ import { DEFAULT_BODY_TYPOGRAPHY } from '../constants/index.js'; +import { BrandConfig, BrandKey } from '../types/brand.types.js'; import { theme as BOMTheme } from './bom.js'; import { theme as BSATheme } from './bsa.js'; import { theme as BTFGTheme } from './btfg.js'; +import { theme as BTPLTheme } from './btpl.js'; import { theme as RAMSTheme } from './rams.js'; import { theme as STGTheme } from './stg.js'; import { theme as WBCTheme } from './wbc.js'; import { theme as WBGTheme } from './wbg.js'; +// ALL_THEMES, THEMES are used for documentation and as per GEL Team request we dont display BTPL Theme in any public documentation i.e. storybook, site etc export const ALL_THEMES = [BOMTheme, BSATheme, BTFGTheme, RAMSTheme, STGTheme, WBCTheme, WBGTheme]; export const THEMES = ALL_THEMES.map(theme => { @@ -22,3 +25,14 @@ export const THEMES = ALL_THEMES.map(theme => { }, }; }); + +export const THEME: Record, BrandConfig> = { + BOM: BOMTheme, + BSA: BSATheme, + BTFG: BTFGTheme, + BTPL: BTPLTheme, + RAMS: RAMSTheme, + STG: STGTheme, + WBC: WBCTheme, + WBG: WBGTheme, +}; From f89bf0718ece0ae2514de9a8c54ebdec63ec894b Mon Sep 17 00:00:00 2001 From: Jeremy Ortiz Date: Mon, 2 Dec 2024 14:43:27 +1100 Subject: [PATCH 2/2] chore: changeset version --- .changeset/big-badgers-sleep.md | 5 ----- apps/protoform/CHANGELOG.md | 7 +++++++ apps/protoform/package.json | 2 +- apps/site/CHANGELOG.md | 7 +++++++ apps/site/package.json | 2 +- packages/ui/CHANGELOG.md | 6 ++++++ packages/ui/package.json | 2 +- 7 files changed, 23 insertions(+), 8 deletions(-) delete mode 100644 .changeset/big-badgers-sleep.md diff --git a/.changeset/big-badgers-sleep.md b/.changeset/big-badgers-sleep.md deleted file mode 100644 index b73f8a5de..000000000 --- a/.changeset/big-badgers-sleep.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@westpac/ui': minor ---- - -Export brand tokens diff --git a/apps/protoform/CHANGELOG.md b/apps/protoform/CHANGELOG.md index 716520193..095eaac52 100644 --- a/apps/protoform/CHANGELOG.md +++ b/apps/protoform/CHANGELOG.md @@ -1,5 +1,12 @@ # protoform +## 0.2.5 + +### Patch Changes + +- Updated dependencies [62db13b] + - @westpac/ui@0.29.0 + ## 0.2.4 ### Patch Changes diff --git a/apps/protoform/package.json b/apps/protoform/package.json index 34ef4499c..0e216dc71 100644 --- a/apps/protoform/package.json +++ b/apps/protoform/package.json @@ -1,6 +1,6 @@ { "name": "protoform", - "version": "0.2.4", + "version": "0.2.5", "private": true, "scripts": { "dev": "next dev", diff --git a/apps/site/CHANGELOG.md b/apps/site/CHANGELOG.md index 80067b7cf..0a0e32fa4 100644 --- a/apps/site/CHANGELOG.md +++ b/apps/site/CHANGELOG.md @@ -1,5 +1,12 @@ # site +## 0.3.5 + +### Patch Changes + +- Updated dependencies [62db13b] + - @westpac/ui@0.29.0 + ## 0.3.4 ### Patch Changes diff --git a/apps/site/package.json b/apps/site/package.json index 755b4d7fa..d2472ec9b 100644 --- a/apps/site/package.json +++ b/apps/site/package.json @@ -1,6 +1,6 @@ { "name": "site", - "version": "0.3.4", + "version": "0.3.5", "private": true, "scripts": { "build": "next build", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 535020f94..ceec4ee13 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,11 @@ # @westpac/ui +## 0.29.0 + +### Minor Changes + +- 62db13b: Export brand tokens + ## 0.28.0 ### Minor Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 168af0949..22bdb4d90 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@westpac/ui", - "version": "0.28.0", + "version": "0.29.0", "license": "MIT", "sideEffects": false, "type": "module",