Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #758

Merged
merged 114 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
0f5a357
Update src/content/design-system/patterns/character-count
KateMacdonald Mar 11, 2024
850fbd6
Update src/content/design-system/patterns/character-count
KateMacdonald Mar 11, 2024
fb761c4
Update src/content/design-system/patterns/character-count
KateMacdonald Mar 11, 2024
a7dffae
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 11, 2024
5b65108
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 11, 2024
a9ac232
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 11, 2024
b9dbcea
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 11, 2024
0310fbb
- imported bottom sheet to site
tomjackking Mar 11, 2024
3aa0284
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 11, 2024
a21b8dc
- re did example
tomjackking Mar 11, 2024
9b0e73f
Update src/content/design-system/components/bottom-sheet-DELETE
KateMacdonald Mar 11, 2024
cab171a
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 11, 2024
c7c614b
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 11, 2024
4436d5e
Update src/content/design-system/components/bottom-sheet-DELETE
KateMacdonald Mar 11, 2024
0aa03fe
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
60e2161
Delete src/content/design-system/components/bottom-sheet-DELETE
KateMacdonald Mar 12, 2024
b7a3cbe
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
cfb8ca2
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
78459c5
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
e881d55
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
e2b6f4d
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
21fbf3b
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
e96ca51
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
1bbb5f2
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
801d570
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
ee23103
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
3557d64
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
251b358
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
e5e7d00
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
9b4a9de
Update src/content/design-system/components/bottom-sheet
KateMacdonald Mar 12, 2024
673e47b
Update src/content/design-system/patterns/character-count
KateMacdonald Mar 12, 2024
323dfe2
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 12, 2024
010771d
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 12, 2024
f136b09
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 12, 2024
73baab4
- fixed bug with responive widths not working on input group
tomjackking Mar 13, 2024
0a7cf7c
- changeset
tomjackking Mar 13, 2024
3d4ff37
fix changeset format
tomjackking Mar 13, 2024
40600d0
Merge pull request #754 from WestpacGEL/fixes/input-group-input-respo…
jaortiz Mar 13, 2024
cbc1f6f
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
454ba50
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
5ada043
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
9c3682b
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
e6de23a
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
ee17e2c
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
52fc608
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
b9e4d1a
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
f3114f9
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
4f676f0
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
db5bff9
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
6fdbd95
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
517ed83
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
5eca2da
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
71572c5
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
ebb5610
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
4b33f58
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
4483359
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
9c3ff17
Update src/content/design-system/patterns/help-text
KateMacdonald Mar 13, 2024
ac2a7bb
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 14, 2024
8725cdd
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 14, 2024
129f8e8
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 14, 2024
03ee9a1
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 14, 2024
d40abea
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 14, 2024
3486421
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 14, 2024
fce23ec
Merge remote-tracking branch 'origin/main' into develop
samithaf Mar 14, 2024
a2460cd
Update src/content/design-system/account-selection
KateMacdonald Mar 14, 2024
5577a49
Update src/content/design-system/account-selection
KateMacdonald Mar 14, 2024
0327d5e
Update src/content/design-system/account-selection
KateMacdonald Mar 14, 2024
2d993ed
Update src/content/design-system/account-selection
KateMacdonald Mar 14, 2024
c0bd65c
Update src/content/design-system/account-selection
KateMacdonald Mar 14, 2024
83f94b5
Update src/content/design-system/account-selection
KateMacdonald Mar 18, 2024
b904367
Update src/content/design-system/account-selection
KateMacdonald Mar 18, 2024
de08a92
Update src/content/design-system/account-selection
KateMacdonald Mar 18, 2024
956ee9c
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 18, 2024
6d1dec6
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 18, 2024
7005ea2
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 18, 2024
dafadaa
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 18, 2024
a0e06f0
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 18, 2024
735938c
Update src/content/design-system/content/guidelines/dates-days-time
KateMacdonald Mar 19, 2024
8d39a53
Merge pull request #756 from WestpacGEL/content-change-4linda
samithaf Mar 19, 2024
76b9e59
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
e705d46
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
a486628
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
7628b81
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
60df0c5
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
2e9c652
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
56c78ce
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
9202b12
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
8f4b6b3
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
554e137
Update src/content/design-system/patterns/account-selection
KateMacdonald Mar 20, 2024
7f3c3a3
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
de6cf18
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
2c45ba8
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
a830f2f
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
e2d7a55
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
68ad64c
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
0eab7a9
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
f637ded
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
143e420
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 20, 2024
f05e5f4
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
8e388d2
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
e971c41
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
c3e0160
Update src/content/design-system/patterns/country-selection
KateMacdonald Mar 20, 2024
836f69a
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 20, 2024
a623311
Update src/content/design-system/components/flexi-cell
KateMacdonald Mar 20, 2024
559dee9
Update src/content/design-system/payee-selection
KateMacdonald Mar 20, 2024
b7bd0d6
Update src/content/design-system/payee-selection
KateMacdonald Mar 20, 2024
966e1d4
Update src/content/design-system/payee-selection
KateMacdonald Mar 21, 2024
697f950
Update src/content/design-system/payee-selection
KateMacdonald Mar 21, 2024
f6c1652
Update src/content/design-system/payee-selection
KateMacdonald Mar 21, 2024
7517d54
Update src/content/design-system/payee-selection
KateMacdonald Mar 21, 2024
37c87b0
Update src/content/design-system/payee-selection
KateMacdonald Mar 21, 2024
4e83f26
Merge pull request #757 from WestpacGEL/patterns-kate-new
tomjackking Mar 21, 2024
10f1285
Version Packages
github-actions[bot] Mar 21, 2024
2c2f222
Merge pull request #755 from WestpacGEL/changeset-release/develop
tomjackking Mar 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/protoform/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# protoform

## 0.1.6

### Patch Changes

- Updated dependencies [0a7cf7c]
- @westpac/[email protected]

## 0.1.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/protoform/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "protoform",
"version": "0.1.5",
"version": "0.1.6",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
7 changes: 7 additions & 0 deletions apps/site/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# site

## 0.1.8

### Patch Changes

- Updated dependencies [0a7cf7c]
- @westpac/[email protected]

## 0.1.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "site",
"version": "0.1.7",
"version": "0.1.8",
"private": true,
"scripts": {
"build": "next build",
Expand Down
1 change: 1 addition & 0 deletions apps/site/src/components/code/code.inject-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export {
GridItem,
Heading,
ProgressIndicator,
BottomSheet,
} from '@westpac/ui';

export * from '@westpac/ui/icon';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- Bottom sheet/Modal heading receives focus and is announced on open. The user is able to ‘arrow down’ to navigate the content if desired. This pattern differs from the [WAI-ARIA Authoring Practices Modal Dialog](https://www.w3.org/TR/wai-aria-practices-1.1/examples/dialog-modal/dialog.html) pattern, which announces all modal content on open and is often considered unnecessarily verbose for screen reader users.
- Close button appears below the heading in the source order; users can easily ‘arrow down’ and close if the heading content was of no interest
- When open, focus is constrained within the context of the Bottom sheet/Modal. Sequential keyboard navigation loops through focusable elements within the component; and not to any elements found outside.
- Close using Close button, Esc key or background click (if modal is dismissible)
- On touch devices the Bottom sheet can be closed via swipe.
- When the modal closes, focus returns to the button that originally toggled the Bottom sheet/Modal
- The Bottom sheet/Modal shape, text and icon content is visible in Windows High Contrast Mode (WHCM). Button ‘look’ styling (colour) is not visible in WHCM.

### Accessibility in the HTML

- `<button aria-label="Close modal">`: Close button announced as “Close modal” in screen readers

### Keyboard support

- ‘Tab’ moves focus to next focusable element inside the dialog. When focus is on the last focusable element in the dialog, moves focus to the first focusable element in the dialog.
- ‘Shift + Tab’ moves focus to previous focusable element inside the dialog
- When focus is on the first focusable element in the dialog, moves focus to the last focusable element in the dialog
- ‘Esc’ key closes the modal (if modal is dismissible)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
```jsx
() => {
const state = useOverlayTriggerState({});

return (
<>
<Button onClick={state.open}> Open Bottom Sheet </Button>
<BottomSheet title="Heading" primaryLabel="Label" secondaryLabel="Label" state={state} primaryOnClick={state.close} secondaryOnClick={state.close}>
<p>
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Totam ullam atque dignissimos ab quaerat nobis rem a
ad blanditiis laborum labore repellendus, vero nihil ducimus, aliquam culpa explicabo doloremque corporis.
</p>
</BottomSheet>
</>
);
};
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
View this component using the demo button to see how it responds across views.

```jsx
() => {
const state = useOverlayTriggerState({});

return (
<>
<Button onClick={state.open}> Open Bottom Sheet </Button>
<BottomSheet title="Heading" primaryLabel="Label" secondaryLabel="Label" state={state} primaryOnClick={state.close} secondaryOnClick={state.close}>
<p>
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Totam ullam atque dignissimos ab quaerat nobis rem a
ad blanditiis laborum labore repellendus, vero nihil ducimus, aliquam culpa explicabo doloremque corporis.
</p>
</BottomSheet>
</>
);
};
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This component was developed as a web version of a UI element typically associated with native experiences, such as iOS's 'ActionSheet' and Android's 'BottomSheet.' While these native components are designed for mobile experiences, our responsive Design System requires a web version that could adapt for larger devices, where the bottom sheet interaction is less effective.

The Bottom sheet component appears as an overlay and behaves in a similar way to a modal, it requires the user to interact with it or dismiss it. It blocks any interaction with the background content while it is visible.

Where it differs to a modal is when it is viewed on a touch device, it can be dismissed via a swipe.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The Bottom sheet is a generic component designed to work in as many scenarios as possible. It can be configured to accommodate most functional requirements.
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{% shortCode name="where-is-this-available" /%}

```tsx
<Table colspan={2}>

<React.Fragment key=".0">
<TableHeader>
<TableHeaderRow>
<TableHeaderCell>
Platform
</TableHeaderCell>
<TableHeaderCell>
Status
</TableHeaderCell>

</TableHeaderRow>
</TableHeader>
<TableBody>
<TableRow>
<TableCell>
<strong>GEL Design System</strong>
</TableCell>
<TableCell>
<div className="typography-body-10 text-success"><TickCircleIcon size="small" look="outlined" className="mr-2" />Available</div>
</TableCell>

</TableRow>
<TableRow>
<TableCell>
<strong>Mesh UI</strong>
</TableCell>
<TableCell>
<div className="typography-body-10 text-info"><CalendarIcon size="small" look="outlined" className="mr-2" />Currently not available - Request in backlog</div>
</TableCell>

</TableRow>
<TableRow>
<TableCell>
<strong>Legacy WDP</strong>
</TableCell>
<TableCell>
<div className="typography-body-10 text-danger"><AlertIcon size="small" look="outlined" className="mr-2" />Not available</div>
</TableCell>

</TableRow>
</TableBody>

</React.Fragment>
</Table>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Bottom sheet
description: >-
The responsive bottom sheet component is a modal-style element that slides up
from the bottom of the screen in mobile views and appears as a modal in larger
views.
namedExport:
discriminant: false
excludeFromNavbar: true
design:
- title:
name: Bottom sheet
slug: bottom-sheet
noTitle: false
- title:
name: User experience
slug: user-experience
noTitle: false
- title:
name: Visual design
slug: visual-design
noTitle: false
- title:
name: Where is this available?
slug: where-is-this-available
noTitle: false
accessibility:
- title:
name: Accessibility features
slug: accessibility-features
relatedComponents:
- title: Modal
slug: /components/modal
code:
- title:
name: Development example
slug: development-example
noTitle: false
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@
};
```

### Promo tiles horizontal list usage
### Promo tiles - Vertically stacked

```jsx
() => {
Expand Down Expand Up @@ -697,7 +697,7 @@
};
```

### Vertical Promo Tiles
### Promo Tiles - Horizontal layout

```jsx
() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Test 3 trying to separate code into individual tiles

```
<div className="flex gap-2">

Expand All @@ -10,12 +8,8 @@ Test 3 trying to separate code into individual tiles
withBorder

>
<FlexiCellAdornment className="mb-2">
<img
src="https://res.cloudinary.com/westpac-gel/image/upload/v1603779769/ys16da3e5cvuww7s0oza.png"
alt=""
className="h-10.5 w-full object-cover"
/>
<FlexiCellAdornment className="max-sm:hidden">
<GiftIcon look="outlined" color="hero" />
</FlexiCellAdornment>

<FlexiCellLabel className="text-[12px] font-normal text-muted" tag="p">
Expand All @@ -29,8 +23,7 @@ Test 3 trying to separate code into individual tiles
<FlexiCellHint className="line-clamp-3 max-sm:h-10 sm:h-10.5">This is the tile description. It can be a couple of lines long.</FlexiCellHint>

<FlexiCellFooter className="absolute max-sm:bottom-2 max-sm:left-2 sm:bottom-3 sm:left-3">
<Badge color="primary">Badge 1</Badge>
<Badge color="faint">Badge 2</Badge>

</FlexiCellFooter>
</FlexiCell>

Expand All @@ -41,12 +34,8 @@ Test 3 trying to separate code into individual tiles
withBorder

>
<FlexiCellAdornment className="mb-2">
<img
src="https://res.cloudinary.com/westpac-gel/image/upload/v1603779769/ys16da3e5cvuww7s0oza.png"
alt=""
className="h-10.5 w-full object-cover"
/>
<FlexiCellAdornment className="max-sm:hidden">
<GiftIcon look="outlined" color="hero" />
</FlexiCellAdornment>

<FlexiCellLabel className="text-[12px] font-normal text-muted" tag="p">
Expand All @@ -60,8 +49,6 @@ Test 3 trying to separate code into individual tiles
<FlexiCellHint className="line-clamp-3 max-sm:h-10 sm:h-10.5">This is the tile description. It can be a couple of lines long.</FlexiCellHint>

<FlexiCellFooter className="absolute max-sm:bottom-2 max-sm:left-2 sm:bottom-3 sm:left-3">
<Badge color="primary">Badge 1</Badge>
<Badge color="faint">Badge 2</Badge>
</FlexiCellFooter>
</FlexiCell>

Expand All @@ -72,12 +59,8 @@ Test 3 trying to separate code into individual tiles
withBorder

>
<FlexiCellAdornment className="mb-2">
<img
src="https://res.cloudinary.com/westpac-gel/image/upload/v1603779769/ys16da3e5cvuww7s0oza.png"
alt=""
className="h-10.5 w-full object-cover"
/>
<FlexiCellAdornment className="max-sm:hidden">
<GiftIcon look="outlined" color="hero" />
</FlexiCellAdornment>

<FlexiCellLabel className="text-[12px] font-normal text-muted" tag="p">
Expand All @@ -91,8 +74,6 @@ Test 3 trying to separate code into individual tiles
<FlexiCellHint className="line-clamp-3 max-sm:h-10 sm:h-10.5">This is the tile description. It can be a couple of lines long.</FlexiCellHint>

<FlexiCellFooter className="absolute max-sm:bottom-2 max-sm:left-2 sm:bottom-3 sm:left-3">
<Badge color="primary">Badge 1</Badge>
<Badge color="faint">Badge 2</Badge>
</FlexiCellFooter>
</FlexiCell>
</div>
Expand Down

This file was deleted.

Loading
Loading