Skip to content

Commit

Permalink
Merge branch 'main' into 1526-doc-internet-header-import
Browse files Browse the repository at this point in the history
  • Loading branch information
gfellerph authored Aug 24, 2023
2 parents 7fbfeec + 68ec4b1 commit c89d245
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-swans-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Deprecated sizes "regular" and "medium" for text inputs, textareas and select boxes. Future major versions of the Design System will only support the sizes "small" and "large". This change will make it easier to decide what variant to use where: small for internal applications, large for customer facing external applications.
5 changes: 5 additions & 0 deletions .changeset/three-shoes-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-documentation': major
---

Updated storybook to version 7 and switched display mode to show documentation pages only (playgrounds are hidden)
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

* @gfellerph @oliverschuerch @alizedebray @imagoiq

/packages/documentation @b1aserlu @davidritter-dotcom
27 changes: 19 additions & 8 deletions packages/documentation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# @swisspost/design-system-documentation-v7
# @swisspost/design-system-documentation

## 1.1.2
## 1.12.0

### Minor Changes

- Added a gray notification variant for cookie banners. (by [@alizedebray](https://github.com/alizedebray) with [#1350](https://github.com/swisspost/design-system/pull/1350))

### Patch Changes

Expand All @@ -11,18 +15,14 @@
- @swisspost/design-system-components@1.3.10
- @swisspost/design-system-components-react@1.0.16

## 1.1.1
## 1.11.3

### Patch Changes

- Updated dependencies:
- @swisspost/internet-header@1.8.3

## 1.1.0

### Minor Changes

- Created a storybook v7 package, set up with vite and lit. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#1613](https://github.com/swisspost/design-system/pull/1613))
## 1.11.2

### Patch Changes

Expand All @@ -33,6 +33,17 @@
- @swisspost/design-system-components@1.3.9
- @swisspost/design-system-components-react@1.0.15

## 1.11.1

### Patch Changes

- Updated dependencies:
- @swisspost/design-system-icons@1.0.8
- @swisspost/design-system-styles@6.2.5
- @swisspost/design-system-components@1.3.8
- @swisspost/internet-header@1.8.1
- @swisspost/design-system-components-react@1.0.14

## 1.11.0

### Minor Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('Choice card', () => {
it('default', () => {
cy.visit('./iframe.html?id=snapshots--choice-card');
cy.percySnapshot('Choice cards', { widths: [1440] });
});
});
2 changes: 1 addition & 1 deletion packages/documentation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swisspost/design-system-documentation",
"version": "1.1.2",
"version": "1.12.0",
"description": "Swiss Post Design System Documentation.",
"author": "Swiss Post <[email protected]>",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ type Story = StoryObj;
export const Blockquote: Story = {
render: (_args: Args, context: StoryContext) => {
return html`
<div style="display: 'flex'; flexWrap: 'wrap'; gap: '1rem'; alignItems: 'start';">
<div class="d-flex flex-wrap align-items-start gap-regular">
${['bg-white', 'bg-dark'].map(
bg => html`
<div
class=${bg}
style="padding: '1rem'; display: 'flex'; gap: '1rem'; flexWrap: 'wrap'; alignItems: 'start;"
class="${bg} d-flex flex-wrap align-items-start gap-regular p-regular"
>
${bombArgs({
text: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export const Button: Story = {
${['bg-white', 'bg-dark'].map(
bg => html`
<div
class="${bg}"
style="display: flex; flex-wrap: wrap; gap: 1rem; align-items: start; padding: 1rem;"
class="${bg} d-flex flex-wrap align-items-start gap-regular p-regular"
>
${bombArgs({
variant: context.argTypes.variant.options,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BADGE } from '../../../../.storybook/constants';
import { choiceCardMeta, choiceCardDefault, choiceCardGroup } from './choice-control';
import { choiceCardMeta, choiceCardDefault, choiceCardGroup } from './choice-card';

export default {
...choiceCardMeta,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bombArgs } from '../../../utils/bombArgs';
import { choiceCardMeta, choiceCardDefault } from './choice-control';
import { choiceCardMeta, choiceCardDefault } from './choice-card';
import { StoryObj } from '@storybook/web-components';
import { html } from 'lit';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BADGE } from '../../../../.storybook/constants';
import { choiceCardMeta, choiceCardDefault, choiceCardGroup } from './choice-control';
import { choiceCardMeta, choiceCardDefault, choiceCardGroup } from './choice-card';

export default {
...choiceCardMeta,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export const Heading: Story = {
${['bg-white', 'bg-dark'].map(
bg => html`
<div
class="${bg} mt-3"
style="padding: 1rem; display: flex; flex-direction: column; gap: 1rem;"
class="${bg} d-flex flex-column gap-regular p-regular mt-regular"
>
${bombArgs({
title: [
Expand Down

0 comments on commit c89d245

Please sign in to comment.