Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into tokens/v2-2024-11
Browse files Browse the repository at this point in the history
  • Loading branch information
swisspost-bot committed Nov 19, 2024
2 parents 69a845b + 6664047 commit 460983c
Show file tree
Hide file tree
Showing 69 changed files with 237 additions and 251 deletions.
5 changes: 5 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"2024-11-10-update-icons",
"beige-jobs-do",
"big-frogs-admire",
"big-socks-dress",
"breezy-cups-add",
"brown-badgers-dream",
"clean-icons-complain",
Expand All @@ -35,6 +36,7 @@
"cuddly-bears-check",
"cuddly-gifts-film",
"dirty-mayflies-taste",
"dry-moons-walk",
"eight-turkeys-matter",
"eleven-keys-work",
"empty-islands-kneel",
Expand All @@ -60,16 +62,19 @@
"loud-dingos-remember",
"lovely-deers-itch",
"lovely-mirrors-travel",
"metal-rivers-look",
"neat-suits-provide",
"nervous-rocks-shop",
"new-goats-impress",
"ninety-nails-float",
"pink-weeks-relate",
"plenty-apricots-raise",
"popular-games-rush",
"popular-mirrors-cross",
"proud-actors-knock",
"proud-cheetahs-act",
"proud-moons-impress",
"quick-buses-give",
"quick-eagles-watch",
"quiet-apes-rhyme",
"rare-dryers-count",
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.5

### Patch Changes

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

## 1.1.10-next.4

### 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.4",
"version": "1.1.10-next.5",
"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.4",
"@swisspost/design-system-styles": "workspace:9.0.0-next.4",
"@swisspost/design-system-components": "workspace:9.0.0-next.5",
"@swisspost/design-system-styles": "workspace:9.0.0-next.5",
"rxjs": "7.8.1",
"tslib": "2.6.3",
"zone.js": "0.14.8"
Expand Down
11 changes: 11 additions & 0 deletions packages/components-angular/projects/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @swisspost/design-system-components-angular

## 9.0.0-next.5

### Minor Changes

- Added a provisional post-header component with some basic functionality in place. This component is not finished in this state. (by [@gfellerph](https://github.com/gfellerph) with [#3837](https://github.com/swisspost/design-system/pull/3837))

### Patch Changes

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

## 9.0.0-next.4

### Patch 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.4",
"version": "9.0.0-next.5",
"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.4"
"@swisspost/design-system-components": "workspace:9.0.0-next.5"
},
"peerDependencies": {
"@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/components-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @swisspost/design-system-components-react

## 9.0.0-next.5

### Minor Changes

- Added a provisional post-header component with some basic functionality in place. This component is not finished in this state. (by [@gfellerph](https://github.com/gfellerph) with [#3837](https://github.com/swisspost/design-system/pull/3837))

### Patch Changes

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

## 9.0.0-next.4

### 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.4",
"version": "9.0.0-next.5",
"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.4"
"@swisspost/design-system-components": "workspace:9.0.0-next.5"
},
"devDependencies": {
"@types/node": "20.14.14",
Expand Down
13 changes: 13 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @swisspost/design-system-components

## 9.0.0-next.5

### Minor Changes

- Added a provisional post-header component with some basic functionality in place. This component is not finished in this state. (by [@gfellerph](https://github.com/gfellerph) with [#3837](https://github.com/swisspost/design-system/pull/3837))

- Added new Menu Button components (post-menu-button, post-menu-trigger, and post-menu-item) for creating accessible dropdown menus. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#3795](https://github.com/swisspost/design-system/pull/3795))

### Patch Changes

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

## 9.0.0-next.4

### Major Changes
Expand Down
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.4",
"version": "9.0.0-next.5",
"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.4",
"@swisspost/design-system-styles": "workspace:9.0.0-next.5",
"ally.js": "1.4.1",
"long-press-event": "2.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/.storybook/blocks/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default (params: { pathToStoryFile?: String }) => (
))}
</ul>
<div className="row mt-regular-r">
<div className="col-12 col-rg-auto mt-regular-r">
<div className="col-12 col-sm-auto mt-regular-r">
<a
className="btn-primary btn"
href="https://github.com/swisspost/design-system/issues"
Expand Down
12 changes: 0 additions & 12 deletions packages/documentation/.storybook/blocks/layout/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
}

@include post.media-breakpoint-up(sm) {
.container {
padding-right: 30vw;
}
}

@include post.media-breakpoint-up(rg) {
.container {
padding-right: 35vw;
}
Expand All @@ -26,12 +20,6 @@
@include post.media-breakpoint-up(xl) {
background-position: center right;
}

@include post.media-breakpoint-up(xxl) {
.container {
padding-right: 30%;
}
}
}

.docs-alert {
Expand Down
15 changes: 15 additions & 0 deletions packages/documentation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @swisspost/design-system-documentation

## 6.0.0-next.6

### Minor Changes

- Added new Menu Button components (post-menu-button, post-menu-trigger, and post-menu-item) for creating accessible dropdown menus. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#3795](https://github.com/swisspost/design-system/pull/3795))

### Patch Changes

- Updated dependencies:
- @swisspost/design-system-styles@9.0.0-next.5
- @swisspost/design-system-components@9.0.0-next.5
- @swisspost/design-system-components-react@9.0.0-next.5
- @swisspost/internet-header@2.0.0-next.5
- @swisspost/design-system-icons@9.0.0-next.5

## 6.0.0-next.5

### Minor Changes
Expand Down
16 changes: 8 additions & 8 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swisspost/design-system-documentation",
"version": "6.0.0-next.5",
"version": "6.0.0-next.6",
"description": "Swiss Post Design System Documentation.",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
Expand Down Expand Up @@ -28,11 +28,11 @@
"lint": "eslint **/*.{ts,tsx,mdx}"
},
"dependencies": {
"@swisspost/design-system-components": "workspace:9.0.0-next.4",
"@swisspost/design-system-components-react": "workspace:9.0.0-next.4",
"@swisspost/design-system-icons": "workspace:9.0.0-next.4",
"@swisspost/design-system-styles": "workspace:9.0.0-next.4",
"@swisspost/internet-header": "workspace:2.0.0-next.4",
"@swisspost/design-system-components": "workspace:9.0.0-next.5",
"@swisspost/design-system-components-react": "workspace:9.0.0-next.5",
"@swisspost/design-system-icons": "workspace:9.0.0-next.5",
"@swisspost/design-system-styles": "workspace:9.0.0-next.5",
"@swisspost/internet-header": "workspace:2.0.0-next.5",
"bootstrap": "5.3.3"
},
"devDependencies": {
Expand All @@ -53,8 +53,8 @@
"@storybook/types": "8.3.6",
"@storybook/web-components": "8.3.6",
"@storybook/web-components-vite": "8.3.6",
"@swisspost/design-system-components-angular": "workspace:9.0.0-next.4",
"@swisspost/design-system-intranet-header": "workspace:9.0.0-next.4",
"@swisspost/design-system-components-angular": "workspace:9.0.0-next.5",
"@swisspost/design-system-intranet-header": "workspace:9.0.0-next.5",
"@types/css-modules": "1.0.5",
"@types/mdx": "2.0.13",
"@types/react": "18.3.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ for example when the button is displayed on mobile and stacked vertically with o
To achieve that, you can use classes in the format:

- `.w-{size}` for the xs breakpoint,
- `.w-{breakpoint}-{size}` for breakpoints from sm to xxl.
- `.w-{breakpoint}-{size}` for breakpoints from sm to xl.

For example, a button with classes `w-100 w-lg-auto` will use all available space only when the viewport size is smaller than `lg`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function paddedContainer(story: StoryFn, context: StoryContext) {
function gridContainer(story: StoryFn, context: StoryContext) {
return html`
<div class="row">
<div class="col-lg-4 col-rg-6 col-12">${story(context.args, context)}</div>
<div class="col-lg-4 col-sm-6 col-12">${story(context.args, context)}</div>
</div>
`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default meta;
function gridDecorator(story: StoryFn, context: StoryContext) {
return html`
<div class="row">
<div class="col-lg-4 col-rg-6 col-12">${story(context.args, context)}</div>
<div class="col-lg-4 col-sm-6 col-12">${story(context.args, context)}</div>
</div>
`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
}

@include post.media-breakpoint-down(rg) {
@include post.media-breakpoint-down(sm) {
.icon-search--results {
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
Expand Down Expand Up @@ -99,7 +99,7 @@
}
}

@include post.media-breakpoint-down(rg) {
@include post.media-breakpoint-down(sm) {
.icon--tile {
height: 60px;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $breakpointNames: (
md: Medium,
lg: Large,
xl: Extra large,
xxl: Extra extra large,
);

:export {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
list-style-type: none;
gap: post.$size-big;

@include post.media-breakpoint-down(rg) {
@include post.media-breakpoint-down(sm) {
gap: post.$size-regular;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ migration-global-state {
border-left: 4px solid var(--post-light);
min-height: 5rem;

@include post.media-breakpoint-down(rg) {
@include post.media-breakpoint-down(sm) {
margin-left: 1rem;
padding-bottom: 1rem;
padding-left: 2rem;
Expand Down Expand Up @@ -53,7 +53,7 @@ migration-global-state {
font-weight: bold;
font-size: 1.2em;

@include post.media-breakpoint-down(rg) {
@include post.media-breakpoint-down(sm) {
width: 3rem;
height: 3rem;
font-size: 1em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { NgModule } from '@angular/core';
import { PostComponentsModule } from '@swisspost/design-system-components-angular';

@NgModule({
...
// ...
imports: [PostComponentsModule],
...
// ...
})
export class AppModule {}
2 changes: 1 addition & 1 deletion packages/documentation/src/stories/home.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
justify-content: center;
gap: post.$size-big;

@include post.media-breakpoint-down(rg) {
@include post.media-breakpoint-down(sm) {
gap: post.$size-regular;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function render() {
<div class="bg-light error-container">
<div class="container">
<div class="row">
<div class="col-rg-8 py-56">
<div class="col-sm-8 py-56">
<h2>
This page could not be found.
<br />
Expand All @@ -40,7 +40,7 @@ function render() {
</a>
</div>
</div>
<div class="col-6 offset-3 offset-rg-0 col-rg-4 align-self-end">
<div class="col-6 offset-3 offset-sm-0 col-sm-4 align-self-end">
<img class="error-container--image" src="/images/content/404.png" alt="" />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import * as FloatStories from './float.stories';
> - `float-md-{start|end|none}`
> - `float-lg-{start|end|none}`
> - `float-xl-{start|end|none}`
> - `float-xxl-{start|end|none}`
#### Example

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const meta: MetaExtended = {
control: {
type: 'select',
},
options: ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'],
options: ['xs', 'sm', 'md', 'lg', 'xl'],
table: {
category: 'Add float',
},
Expand Down
Loading

0 comments on commit 460983c

Please sign in to comment.