Skip to content

Commit

Permalink
Merge branch 'main' into 3645-utilities-borders
Browse files Browse the repository at this point in the history
  • Loading branch information
myrta2302 committed Nov 12, 2024
2 parents bc80dd8 + 1fa8f28 commit 0c0d497
Show file tree
Hide file tree
Showing 82 changed files with 1,748 additions and 255 deletions.
6 changes: 6 additions & 0 deletions .changeset/2024-11-10-update-icons.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@swisspost/design-system-icons': minor
---

Added icon number 2632.

6 changes: 6 additions & 0 deletions .changeset/new-goats-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@swisspost/design-system-documentation': minor
'@swisspost/design-system-styles': minor
---

Updated vertical-align utility
16 changes: 16 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"changesets": [
"2024-10-17-update-icons",
"2024-10-27-update-icons",
"2024-11-10-update-icons",
"beige-jobs-do",
"big-frogs-admire",
"breezy-cups-add",
Expand All @@ -32,17 +33,25 @@
"cold-baboons-appear",
"cold-panthers-vanish",
"cuddly-bears-check",
"cuddly-gifts-film",
"dirty-mayflies-taste",
"eight-turkeys-matter",
"eleven-keys-work",
"empty-islands-kneel",
"fair-actors-scream",
"fast-bats-poke",
"fast-fans-wash",
"fifty-dodos-wait",
"fifty-students-call",
"five-hornets-sin",
"friendly-insects-breathe",
"funny-shrimps-care",
"giant-games-swim",
"gold-chairs-grin",
"gold-chefs-rule",
"gorgeous-flowers-flow",
"great-humans-talk",
"grumpy-parrots-wonder",
"heavy-rats-explode",
"kind-buses-trade",
"kind-papayas-provide",
Expand All @@ -51,26 +60,33 @@
"loud-dingos-remember",
"lovely-deers-itch",
"lovely-mirrors-travel",
"neat-suits-provide",
"nervous-rocks-shop",
"new-goats-impress",
"ninety-nails-float",
"pink-weeks-relate",
"plenty-apricots-raise",
"popular-games-rush",
"proud-actors-knock",
"proud-cheetahs-act",
"proud-moons-impress",
"quick-eagles-watch",
"quiet-apes-rhyme",
"rare-dryers-count",
"red-cobras-cry",
"red-lies-lick",
"rich-timers-listen",
"selfish-bats-run",
"selfish-ways-know",
"shaggy-experts-give",
"sharp-baboons-smile",
"sharp-crews-watch",
"shiny-ears-care",
"shy-walls-exercise",
"silver-coins-invent",
"six-spiders-smoke",
"sixty-items-promise",
"slimy-rockets-pull",
"strange-bottles-impress",
"tame-terms-push",
"three-lies-do",
Expand Down
6 changes: 6 additions & 0 deletions .changeset/quick-buses-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@swisspost/design-system-documentation': minor
'@swisspost/design-system-components': minor
---

Added new Menu Button components (post-menu-button, post-menu-trigger, and post-menu-item) for creating accessible dropdown menus.
7 changes: 7 additions & 0 deletions .changeset/shy-walls-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@swisspost/design-system-documentation': minor
'@swisspost/design-system-components': minor
'@swisspost/design-system-styles': minor
---

Added close button web component.
23 changes: 20 additions & 3 deletions .github/ISSUE_TEMPLATE/component-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,31 @@ body:
options:
- label: Tokens for this component are ready
- type: textarea
id: tasks
id: tasksdesign
attributes:
label: Tasks
label: Tasks design
description: Default tasks for the design team. Can be edited later according to needs.
value: |
```[tasklist]
### 🎨 Design
- [ ] Design component according to WIKIT
- [ ] Update dependencies
- [ ] Add & test compo in layout examples
- [ ] Designer review
- [ ] Documentation: Overview and usage (about, compo overview, compo props, usage, examples)
- [ ] Documentation: Technical documentation (anatomy, accessibility)
- [ ] Documentation: Review (content correctness, understandability, gaps)
```
- type: textarea
id: tasksdev
attributes:
label: Tasks development
description: Default tasks for the dev team. Can be edited later according to needs.
value: |
```[tasklist]
### 💻 Tasks
### 💻 Development
- [ ] Review Design (All states present? Possible to implement?)
- [ ] Tokenization
- [ ] HTML/CSS implementation
- [ ] Web component implementation
- [ ] Documentation in Storybook
Expand Down
8 changes: 8 additions & 0 deletions packages/components-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @swisspost/design-system-components-angular-workspace

## 1.1.10-next.4

### Patch Changes

- Updated dependencies:
- @swisspost/design-system-styles@9.0.0-next.4
- @swisspost/design-system-components@9.0.0-next.4

## 1.1.10-next.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/components-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swisspost/design-system-components-angular-workspace",
"version": "1.1.10-next.3",
"version": "1.1.10-next.4",
"scripts": {
"start": "ng serve --port 9210",
"build": "ng build components",
Expand All @@ -18,8 +18,8 @@
"@angular/platform-browser": "18.2.10",
"@angular/platform-browser-dynamic": "18.2.10",
"@angular/router": "18.2.10",
"@swisspost/design-system-components": "workspace:9.0.0-next.3",
"@swisspost/design-system-styles": "workspace:9.0.0-next.3",
"@swisspost/design-system-components": "workspace:9.0.0-next.4",
"@swisspost/design-system-styles": "workspace:9.0.0-next.4",
"rxjs": "7.8.1",
"tslib": "2.6.3",
"zone.js": "0.14.8"
Expand Down
7 changes: 7 additions & 0 deletions packages/components-angular/projects/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @swisspost/design-system-components-angular

## 9.0.0-next.4

### Patch Changes

- Updated dependencies:
- @swisspost/design-system-components@9.0.0-next.4

## 9.0.0-next.3

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components-angular/projects/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swisspost/design-system-components-angular",
"version": "9.0.0-next.3",
"version": "9.0.0-next.4",
"description": "Swiss Post Design System - Angular Wrapper Components",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
Expand All @@ -19,7 +19,7 @@
},
"dependencies": {
"tslib": "2.6.3",
"@swisspost/design-system-components": "workspace:9.0.0-next.3"
"@swisspost/design-system-components": "workspace:9.0.0-next.4"
},
"peerDependencies": {
"@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/components-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @swisspost/design-system-components-react

## 9.0.0-next.4

### Patch Changes

- Updated dependencies:
- @swisspost/design-system-components@9.0.0-next.4

## 9.0.0-next.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swisspost/design-system-components-react",
"version": "9.0.0-next.3",
"version": "9.0.0-next.4",
"description": "Design System React Components for easy integration with the React ecosystem",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -29,7 +29,7 @@
"lint": "eslint src/**/*.ts"
},
"dependencies": {
"@swisspost/design-system-components": "workspace:9.0.0-next.3"
"@swisspost/design-system-components": "workspace:9.0.0-next.4"
},
"devDependencies": {
"@types/node": "20.14.14",
Expand Down
18 changes: 18 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @swisspost/design-system-components

## 9.0.0-next.4

### Major Changes

- Removed the `.breadcrumb-item` class, which previously handled styling for breadcrumb items. Introduced a new `post-breadcrumb-item` that should be used in place of the `.breadcrumb-item` class. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#3659](https://github.com/swisspost/design-system/pull/3659))

### Minor Changes

- Created the `post-list` and `post-list-item` components. (by [@myrta2302](https://github.com/myrta2302) with [#3812](https://github.com/swisspost/design-system/pull/3812))

- Added close button web component. (by [@leagrdv](https://github.com/leagrdv) with [#3880](https://github.com/swisspost/design-system/pull/3880))

### Patch Changes

- Fixed an issue with the post-collapsible throwing an invalid selector error. (by [@alizedebray](https://github.com/alizedebray) with [#3726](https://github.com/swisspost/design-system/pull/3726))
- Updated dependencies:
- @swisspost/design-system-styles@9.0.0-next.4

## 9.0.0-next.3

### Major Changes
Expand Down
22 changes: 22 additions & 0 deletions packages/components/cypress/e2e/closebutton.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const CLOSE_BTN_ID = 'de313349-0c0b-4baf-adc6-cb8c2e36fc1a';

describe('Close button', () => {
describe('default', () => {
beforeEach(() => {
cy.getComponent('post-closebutton', CLOSE_BTN_ID);
});

it('should render with a close button and a11y label', () => {
cy.get('@closebutton').should('exist');
cy.get('@closebutton').find('.btn-icon-close').should('exist');
cy.get('@closebutton').find('span.visually-hidden').should('exist');
});
});
});

describe('Accessibility', () => {
it('Has no detectable a11y violations on load for all variants', () => {
cy.getSnapshots('post-closebutton');
cy.checkA11y('#root-inner');
});
});
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swisspost/design-system-components",
"version": "9.0.0-next.3",
"version": "9.0.0-next.4",
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
Expand Down Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"@floating-ui/dom": "1.6.8",
"@oddbird/popover-polyfill": "0.3.7",
"@swisspost/design-system-styles": "workspace:9.0.0-next.3",
"@swisspost/design-system-styles": "workspace:9.0.0-next.4",
"ally.js": "1.4.1",
"long-press-event": "2.5.0"
},
Expand Down
Loading

0 comments on commit 0c0d497

Please sign in to comment.