diff --git a/packages/documentation/cypress/e2e/toast.cy.ts b/packages/documentation/cypress/e2e/toast.cy.ts index 9626b67d3c..5b25e74692 100644 --- a/packages/documentation/cypress/e2e/toast.cy.ts +++ b/packages/documentation/cypress/e2e/toast.cy.ts @@ -1,8 +1,8 @@ describe('toast', () => { describe('default', () => { beforeEach(() => { - cy.visit(`/iframe.html?id=components-toast--auto-close`); - cy.get('button.btn').as('triggerCreateToast'); + cy.visit(`/iframe.html?id=825b65c9-7eaf-4e0a-9e20-5f5ed406726d--auto-close`); + cy.get('button.btn', { timeout: 30000 }).as('triggerCreateToast'); }); it('should hide on close button click', () => { diff --git a/packages/documentation/src/shared/styles-package-import.mdx b/packages/documentation/src/shared/styles-package-import.mdx index 2300a89dd9..02671c8a21 100644 --- a/packages/documentation/src/shared/styles-package-import.mdx +++ b/packages/documentation/src/shared/styles-package-import.mdx @@ -5,7 +5,7 @@ import { getComponentStyleImports } from './styles-package-import-individual.sam

*Make sure the `@swisspost/design-system-styles` package is already present in your project - or follow the [installation guidelines](http://localhost:9000/?path=/docs/getting-started-styles--docs).* + or follow the [installation guidelines](http://localhost:9000/?path=/docs/e53e2de8-0bbf-4f70-babc-074c5466f700--docs).*

To import all Design System styles: diff --git a/packages/documentation/src/stories/components/accordion/accordion.snapshot.stories.tsx b/packages/documentation/src/stories/components/accordion/accordion.snapshot.stories.ts similarity index 92% rename from packages/documentation/src/stories/components/accordion/accordion.snapshot.stories.tsx rename to packages/documentation/src/stories/components/accordion/accordion.snapshot.stories.ts index c38409c840..2699184f6f 100644 --- a/packages/documentation/src/stories/components/accordion/accordion.snapshot.stories.tsx +++ b/packages/documentation/src/stories/components/accordion/accordion.snapshot.stories.ts @@ -2,8 +2,10 @@ import type { StoryContext, StoryObj } from '@storybook/web-components'; import meta, { Default } from './accordion.stories'; import { html } from 'lit'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/accordion/accordion.stories.ts b/packages/documentation/src/stories/components/accordion/accordion.stories.ts index b77713afd9..55d9d9a4ae 100644 --- a/packages/documentation/src/stories/components/accordion/accordion.stories.ts +++ b/packages/documentation/src/stories/components/accordion/accordion.stories.ts @@ -4,6 +4,7 @@ import { ifDefined } from 'lit/directives/if-defined.js'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '4d1b4185-e04d-494a-ab38-2b56c1778b0b', title: 'Components/Accordion', component: 'post-accordion', parameters: { diff --git a/packages/documentation/src/stories/components/alert/alert.docs.mdx b/packages/documentation/src/stories/components/alert/alert.docs.mdx index 9991573597..0862bacd26 100644 --- a/packages/documentation/src/stories/components/alert/alert.docs.mdx +++ b/packages/documentation/src/stories/components/alert/alert.docs.mdx @@ -46,7 +46,7 @@ Alerts are intended to attract the user's attention without interrupting their o Alerts come with a preassigned icon based on their type. You have the option to customize this icon by using a `post-icon` element inside the alert. - For more information, read the [getting started with icons guide](/?path=/docs/components-icons-getting-started--docs). + For more information, read the [getting started with icons guide](/?path=/docs/40ed323b-9c1a-42ab-91ed-15f97f214608--docs). @@ -79,7 +79,7 @@ Alerts are intended to attract the user's attention without interrupting their o ## Installation The `` element is part of the `@swisspost/design-system-components` package. - For more information, read the [getting started with components guide](/?path=/docs/getting-started-components--docs). + For more information, read the [getting started with components guide](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs). ## Examples @@ -97,7 +97,7 @@ Alerts are intended to attract the user's attention without interrupting their o Alerts come with a preassigned icon based on their type. You have the option to customize this icon by assigning the desired icon's name to the `icon` property of the alert. - Find the icon you need with the [icon search page](/?path=/docs/components-icons-search-for-icons--docs). + Find the icon you need with the [icon search page](/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs). diff --git a/packages/documentation/src/stories/components/alert/alert.snapshot.stories.ts b/packages/documentation/src/stories/components/alert/alert.snapshot.stories.ts index 1456c4399b..3780c2a6bd 100644 --- a/packages/documentation/src/stories/components/alert/alert.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/alert/alert.snapshot.stories.ts @@ -1,12 +1,14 @@ import { Args, StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { spreadArgs, bombArgs } from '../../../utils'; +import { bombArgs, spreadArgs } from '../../../utils'; import alertMeta from './standard-html/alert.stories'; import { getAlertClasses } from './standard-html/getAlertClasses'; import { BADGE } from '../../../../.storybook/constants'; +const { id, ...metaWithoutId } = alertMeta; + export default { - ...alertMeta, + ...metaWithoutId, title: 'Snapshots', parameters: { badges: [BADGE.SINCE_V1], diff --git a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts index 20183055cb..e30a253577 100644 --- a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts +++ b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts @@ -7,6 +7,7 @@ import { getAlertClasses } from './getAlertClasses'; import { BADGE } from '../../../../../.storybook/constants'; const meta: Meta = { + id: '105e67d8-31e9-4d0b-87ff-685aba31fd4c', title: 'Components/Alert', render: renderAlert, decorators: [externalControl], @@ -63,7 +64,7 @@ const meta: Meta = { 'The icon to display in the alert. By default, the icon depends on the alert type.' + '' + 'To use a custom icon, you must first ' + - 'set up the icons in your project' + + 'set up the icons in your project' + '.', if: { arg: 'noIcon', @@ -122,9 +123,7 @@ function externalControl(story: StoryFn, { args, context }: StoryContext) { `; - return html` - ${args.fixed ? button : nothing} ${story(args, context)} - `; + return html` ${args.fixed ? button : nothing} ${story(args, context)} `; } // RENDERER @@ -133,11 +132,7 @@ function renderAlert(args: Args) { const classes = getAlertClasses(args); const content = html` - ${args.title - ? html` -

${args.title}

- ` - : nothing} + ${args.title ? html`

${args.title}

` : nothing} ${unsafeHTML(args.content)} `; @@ -145,19 +140,11 @@ function renderAlert(args: Args) {
${renderProductCard({ ...args, title: `${args.title} 2` })}
-
${renderProductCard({ ...args, title: `${args.title} 3`, text: '' })}
+
+ ${renderProductCard({ ...args, title: `${args.title} 3`, text: '' })} +
${renderProductCard({ ...args, title: `${args.title} 4` })}
${renderProductCard({ @@ -333,7 +330,7 @@ export const Multipart: Story = { nodes.forEach(node => { const group = node.getAttribute('data-sync-height-with'); const groupHeight = heightByGroup.get(group); - + node.style.height = 'auto'; const nodeHeight = node.offsetHeight; diff --git a/packages/documentation/src/stories/components/carousel/carousel.stories.ts b/packages/documentation/src/stories/components/carousel/carousel.stories.ts index 3d35fd9441..c91ae33726 100644 --- a/packages/documentation/src/stories/components/carousel/carousel.stories.ts +++ b/packages/documentation/src/stories/components/carousel/carousel.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'cb3ba4a2-1265-4a20-b184-b85443146efa', title: 'Components/Carousel', parameters: { badges: [BADGE.WEB_COMPONENT_CANDIDATE], diff --git a/packages/documentation/src/stories/components/collapsible/collapsible.snapshot.stories.ts b/packages/documentation/src/stories/components/collapsible/collapsible.snapshot.stories.ts index 0cb858346f..6758841bfb 100644 --- a/packages/documentation/src/stories/components/collapsible/collapsible.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/collapsible/collapsible.snapshot.stories.ts @@ -4,8 +4,10 @@ import { bombArgs } from '../../../utils'; import meta, { Default } from './collapsible.stories'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, decorators: [], title: 'Snapshots', }; @@ -28,9 +30,7 @@ export const collapsible: Story = { return html`
${['white', 'dark'].map( - bg => html` -
${templateVariants}
- `, + bg => html`
${templateVariants}
`, )}
`; diff --git a/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts b/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts index cde1122d25..4e50dbe7bb 100644 --- a/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts +++ b/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts @@ -4,6 +4,7 @@ import { BADGE } from '../../../../.storybook/constants'; import { spreadArgs } from '../../../utils'; const meta: Meta = { + id: '6a91848c-16ec-4a23-bc45-51c797b5b2c3', title: 'Components/Collapsible', component: 'post-collapsible', render: renderCollapsible, @@ -29,7 +30,7 @@ export default meta; // DECORATORS function externalControls(story: StoryFn, context: StoryContext) { const { args, canvasElement } = context; - const togglerId = `${context.id}--button`; + const togglerId = `button--${context.id}`; let collapsible!: HTMLPostCollapsibleElement; let toggler!: HTMLButtonElement; @@ -64,9 +65,7 @@ function externalControls(story: StoryFn, context: StoryContext) { //RENDERER function renderCollapsible(args: Partial) { - return html` - - `; + return html` `; } // STORIES diff --git a/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts b/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts index ecc7f1a27c..b34cf798f3 100644 --- a/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts +++ b/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts @@ -3,6 +3,7 @@ import { html } from 'lit'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '6561b345-9d64-4f95-8ea6-2389586410bd', title: 'Components/Datepicker', parameters: { badges: [BADGE.WEB_COMPONENT_CANDIDATE], diff --git a/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts b/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts index 9ef137d00a..3521494ee7 100644 --- a/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts +++ b/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts @@ -2,6 +2,7 @@ import { Meta } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '63113d0a-6ceb-472c-ac6a-729404e862ca', title: 'Components/Dropdown', parameters: { badges: [BADGE.WEB_COMPONENT_CANDIDATE], diff --git a/packages/documentation/src/stories/components/forms/checkbox/checkbox.docs.mdx b/packages/documentation/src/stories/components/forms/checkbox/checkbox.docs.mdx index 620caa6f88..25b4b47008 100644 --- a/packages/documentation/src/stories/components/forms/checkbox/checkbox.docs.mdx +++ b/packages/documentation/src/stories/components/forms/checkbox/checkbox.docs.mdx @@ -59,7 +59,7 @@ To show the checkboxes inline, just add the `.form-check-inline` class to each o Don't forget to wrap your checkbox group in a `<fieldset>` that includes a `<legend>` element. You can then visually hide the legend using the `.visually-hidden` class. - Read more about that topic in our [accessibility docs](/?path=/docs/foundations-accessibility--docs). + Read more about that topic in our [accessibility docs](/?path=/docs/46da78e8-e83b-4ca1-aaf6-bbc662efef14--docs).
diff --git a/packages/documentation/src/stories/components/forms/checkbox/checkbox.snapshot.stories.ts b/packages/documentation/src/stories/components/forms/checkbox/checkbox.snapshot.stories.ts index 5c30be1ec9..469f304c6b 100644 --- a/packages/documentation/src/stories/components/forms/checkbox/checkbox.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/forms/checkbox/checkbox.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta, { Inline } from './checkbox.stories'; import { html } from 'lit'; import { bombArgs } from '../../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts b/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts index 1b48d5df46..146c9ddf3c 100644 --- a/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts +++ b/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts @@ -6,6 +6,7 @@ import { BADGE } from '../../../../../.storybook/constants'; import { mapClasses } from '../../../../utils'; const meta: Meta = { + id: 'e6ecc86f-d148-413b-b796-614a89da54be', title: 'Components/Forms/Checkbox', render: renderCheckbox, parameters: { @@ -59,7 +60,7 @@ const meta: Meta = { 'If `true`, the checkbox label is set via an `aria-label` attribute and is therefore not visible.' + '' + 'Shown or hidden, a label must always be defined.
' + - 'More details in our accessibility docs.' + + 'More details in our accessibility docs.' + '
', control: { type: 'boolean', @@ -105,7 +106,7 @@ const meta: Meta = { 'If `true`, makes the checkbox appear inactive and disables its functionality.' + '' + 'There are accessibility concerns with the disabled state.
' + - 'More details in our accessibility docs.' + + 'More details in our accessibility docs.' + '
', control: { type: 'boolean', @@ -159,9 +160,7 @@ const VALIDATION_STATE_MAP: Record = { }; function getLabel({ label }: Args, { id }: StoryContext) { - return html` - - `; + return html` `; } function getValidationFeedback({ validation }: Args) { diff --git a/packages/documentation/src/stories/components/forms/choice-card/checkbox-card.stories.ts b/packages/documentation/src/stories/components/forms/choice-card/checkbox-card.stories.ts index 04e03c18e9..993bc1b617 100644 --- a/packages/documentation/src/stories/components/forms/choice-card/checkbox-card.stories.ts +++ b/packages/documentation/src/stories/components/forms/choice-card/checkbox-card.stories.ts @@ -1,8 +1,9 @@ import { BADGE } from '../../../../../.storybook/constants'; -import { choiceCardMeta, choiceCardDefault, choiceCardGroup } from './choice-card'; +import { choiceCardDefault, choiceCardGroup, choiceCardMeta } from './choice-card'; export default { ...choiceCardMeta, + id: '9637bbae-0533-4522-89d4-c2732431c69b', title: 'Components/Forms/Checkbox Card', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/components/forms/choice-card/choice-card.snapshot.stories.ts b/packages/documentation/src/stories/components/forms/choice-card/choice-card.snapshot.stories.ts index 9dc77a07d2..111f02b2a5 100644 --- a/packages/documentation/src/stories/components/forms/choice-card/choice-card.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/forms/choice-card/choice-card.snapshot.stories.ts @@ -1,10 +1,12 @@ import { bombArgs } from '../../../../utils'; -import { choiceCardMeta, choiceCardDefault } from './choice-card'; +import { choiceCardDefault, choiceCardMeta } from './choice-card'; import { StoryObj } from '@storybook/web-components'; import { html } from 'lit'; +const { id, ...metaWithoutId } = choiceCardMeta; + export default { - ...choiceCardMeta, + ...metaWithoutId, title: 'Snapshots', }; @@ -29,10 +31,7 @@ export const ChoiceCard: StoryObj = { bg => html`
${bombedArgs.map( - args => - html` -
${choiceCardDefault(args)}
- `, + args => html`
${choiceCardDefault(args)}
`, )}
`, diff --git a/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts b/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts index 9cdfe5c83a..f5bc3b6392 100644 --- a/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts +++ b/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts @@ -60,7 +60,7 @@ export const choiceCardMeta: Meta = { disabled: { name: 'Disabled', description: - 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', + 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', control: { type: 'boolean', }, @@ -164,9 +164,7 @@ export const choiceCardDefault = (args: Args) => {
${args.description} `; - const icon = html` - - `; + const icon = html` `; // Firefox fallback for the :has selector const _handleInput = (e: InputEvent) => { diff --git a/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts b/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts index 5cd5b7e191..3efca4ab78 100644 --- a/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts +++ b/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts @@ -2,7 +2,8 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../../.storybook/constants'; const meta: Meta = { - title: 'Components/Forms/Custom-Select', + id: 'e5a39d4f-4448-4398-9380-7c9fcae4a514', + title: 'Components/Forms/Custom Select', parameters: { badges: [BADGE.DEPRECATED], }, diff --git a/packages/documentation/src/stories/components/forms/input-group/input-group.stories.ts b/packages/documentation/src/stories/components/forms/input-group/input-group.stories.ts index 7c2cd662d7..4972ffcac2 100644 --- a/packages/documentation/src/stories/components/forms/input-group/input-group.stories.ts +++ b/packages/documentation/src/stories/components/forms/input-group/input-group.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../../.storybook/constants'; const meta: Meta = { + id: 'ee81c495-343e-4053-ae36-cb282c9d1ff3', title: 'Components/Forms/Input Group', parameters: { badges: [BADGE.TODO], diff --git a/packages/documentation/src/stories/components/forms/input/input.snapshot.stories.ts b/packages/documentation/src/stories/components/forms/input/input.snapshot.stories.ts index e4c6cf969d..aaf9d011db 100644 --- a/packages/documentation/src/stories/components/forms/input/input.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/forms/input/input.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta from './input.stories'; import { html } from 'lit'; import { COMBINATIONS, getCombinations } from '../../../../utils/inputComponentsGetCombinations'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', render: renderInputSnapshot, }; diff --git a/packages/documentation/src/stories/components/forms/input/input.stories.ts b/packages/documentation/src/stories/components/forms/input/input.stories.ts index e0f2882280..1c6a96ab0e 100644 --- a/packages/documentation/src/stories/components/forms/input/input.stories.ts +++ b/packages/documentation/src/stories/components/forms/input/input.stories.ts @@ -9,6 +9,7 @@ const VALIDATION_STATE_MAP: Record = { }; const meta: Meta = { + id: '2df77c32-5e33-402e-bd2e-54d54271ce19', title: 'Components/Forms/Input', render: render, parameters: { @@ -50,7 +51,7 @@ const meta: Meta = { hiddenLabel: { name: 'Hidden Label', description: - 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', + 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', if: { arg: 'floatingLabel', truthy: false, @@ -149,7 +150,7 @@ const meta: Meta = { disabled: { name: 'Disabled', description: - 'When set to `true`, disables the component\'s functionality and places it in a disabled state.
There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', + 'When set to `true`, disables the component\'s functionality and places it in a disabled state.
There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', control: { type: 'boolean', }, diff --git a/packages/documentation/src/stories/components/forms/radio/radio.docs.mdx b/packages/documentation/src/stories/components/forms/radio/radio.docs.mdx index 842dc98f50..592aad44f5 100644 --- a/packages/documentation/src/stories/components/forms/radio/radio.docs.mdx +++ b/packages/documentation/src/stories/components/forms/radio/radio.docs.mdx @@ -43,7 +43,7 @@ To render a radio inline, simply add the class `.form-check-inline` to the `.for <legend> tag. This provides a label for your radio group.
For more information, read our{' '} - grouping accessibility guide. + grouping accessibility guide. To visually hide the `` element, use the `.visually-hidden` class. diff --git a/packages/documentation/src/stories/components/forms/radio/radio.snapshot.stories.ts b/packages/documentation/src/stories/components/forms/radio/radio.snapshot.stories.ts index d401a44d4c..3bb00e796c 100644 --- a/packages/documentation/src/stories/components/forms/radio/radio.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/forms/radio/radio.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta from './radio.stories'; import { html } from 'lit'; import { bombArgs } from '../../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts index 834d03ae4a..01b671572d 100644 --- a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts +++ b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts @@ -10,6 +10,7 @@ const VALIDATION_STATE_MAP: Record = { }; const meta: Meta = { + id: '151242aa-a074-4a55-a81c-db597c83cdad', title: 'Components/Forms/Radio button', parameters: { controls: { @@ -50,7 +51,7 @@ const meta: Meta = { hiddenLabel: { name: 'Hidden Label', description: - 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', + 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', control: { type: 'boolean', }, @@ -86,7 +87,7 @@ const meta: Meta = { disabled: { name: 'Disabled', description: - 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', + 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', control: { type: 'boolean', }, diff --git a/packages/documentation/src/stories/components/forms/range/range.snapshot.stories.ts b/packages/documentation/src/stories/components/forms/range/range.snapshot.stories.ts index a1f0bf7c30..e1283982a7 100644 --- a/packages/documentation/src/stories/components/forms/range/range.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/forms/range/range.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta from './range.stories'; import { html } from 'lit'; import { bombArgs } from '../../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/forms/range/range.stories.ts b/packages/documentation/src/stories/components/forms/range/range.stories.ts index 4d68b0a02d..20a0fca0e5 100644 --- a/packages/documentation/src/stories/components/forms/range/range.stories.ts +++ b/packages/documentation/src/stories/components/forms/range/range.stories.ts @@ -12,6 +12,7 @@ const VALIDATION_STATE_MAP: Record = { const ARROW_KEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight']; const meta: Meta = { + id: '4c5a4537-d663-4d2b-9c49-17af95443696', title: 'Components/Forms/Range', render: render, parameters: { @@ -43,7 +44,7 @@ const meta: Meta = { hiddenLabel: { name: 'Hidden Label', description: - 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', + 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', control: { type: 'boolean', }, @@ -131,7 +132,7 @@ const meta: Meta = { disabled: { name: 'Disabled', description: - 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', + 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', control: { type: 'boolean', }, @@ -170,22 +171,12 @@ function render(args: Args, context: StoryContext) { const useAriaLabel = args.hiddenLabel; const label: TemplateResult | null = !useAriaLabel - ? html` - - ` + ? html` ` : null; const contextual: (TemplateResult | null)[] = [ - args.validation === 'is-valid' - ? html` -

Ggranda sukceso!

- ` - : null, - args.validation === 'is-invalid' - ? html` -

Eraro okazis!

- ` - : null, + args.validation === 'is-valid' ? html`

Ggranda sukceso!

` : null, + args.validation === 'is-invalid' ? html`

Eraro okazis!

` : null, ]; const control: TemplateResult = html` @@ -208,16 +199,12 @@ function render(args: Args, context: StoryContext) { let valueElement: TemplateResult | TemplateResult[] | null = null; if (args.showValue === 'text') { - valueElement = html` -

${args.value}

- `; + valueElement = html`

${args.value}

`; } else if (args.showValue === 'input') { const inputId = `${context.viewMode}_${context.name.replace(/\s/g, '-')}_ExampleRangeInput`; valueElement = [ - html` - - `, + html` `, html` `; } else { - return html` - ${[label, control, valueElement, ...contextual].filter(el => el !== null)} - `; + return html` ${[label, control, valueElement, ...contextual].filter(el => el !== null)} `; } } diff --git a/packages/documentation/src/stories/components/forms/select/select.snapshot.stories.ts b/packages/documentation/src/stories/components/forms/select/select.snapshot.stories.ts index ed877711f8..5051576d45 100644 --- a/packages/documentation/src/stories/components/forms/select/select.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/forms/select/select.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta, { Default, FloatingLabel } from './select.stories'; import { html } from 'lit'; import { bombArgs } from '../../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/forms/select/select.stories.ts b/packages/documentation/src/stories/components/forms/select/select.stories.ts index 16ee308f2d..9a5bbc5d42 100644 --- a/packages/documentation/src/stories/components/forms/select/select.stories.ts +++ b/packages/documentation/src/stories/components/forms/select/select.stories.ts @@ -11,6 +11,7 @@ const VALIDATION_STATE_MAP: Record = { }; const meta: Meta = { + id: 'bc251cd0-5173-463b-8729-586bb1bf1e1a', title: 'Components/Forms/Select', parameters: { badges: [BADGE.NEEDS_REVISION], @@ -53,7 +54,7 @@ const meta: Meta = { hiddenLabel: { name: 'Hidden Label', description: - 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', + 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', if: { arg: 'floatingLabel', truthy: false, @@ -167,7 +168,7 @@ const meta: Meta = { disabled: { name: 'Disabled', description: - 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility issues with the disabled state.
Please read our disabled state accessibility guide.
', + 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility issues with the disabled state.
Please read our disabled state accessibility guide.
', control: { type: 'boolean', }, @@ -217,43 +218,27 @@ const Template: Story = { .join(' '); const useAriaLabel = !args.floatingLabel && args.hiddenLabel; const label = !useAriaLabel - ? html` - - ` + ? html` ` : null; const optionElements = Array.from({ length: args.options - 1 }, (_, i) => i + 2).map( - (key: number) => html` - - `, + (key: number) => html` `, ); const options = [ ...[ args.floatingLabelPlaceholder - ? html` - - ` - : html` - - `, + ? html` ` + : html` `, ], ...optionElements, ]; const contextuals = [ args.validation === 'is-valid' - ? html` -

Ggranda sukceso!

- ` + ? html`

Ggranda sukceso!

` : null, args.validation === 'is-invalid' - ? html` -

Eraro okazis!

- ` - : null, - args.hint !== '' - ? html` -
${args.hint}
- ` + ? html`

Eraro okazis!

` : null, + args.hint !== '' ? html`
${args.hint}
` : null, ]; const control = html` `; @@ -288,9 +278,7 @@ const Template: Story = { `; } else { - return html` - ${[label, control, ...contextuals].filter(el => el !== null)} - `; + return html` ${[label, control, ...contextuals].filter(el => el !== null)} `; } }, }; diff --git a/packages/documentation/src/stories/components/forms/switch/switch.snapshot.stories.ts b/packages/documentation/src/stories/components/forms/switch/switch.snapshot.stories.ts index 17c060b03e..0e72d7f8e4 100644 --- a/packages/documentation/src/stories/components/forms/switch/switch.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/forms/switch/switch.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta from './switch.stories'; import { html } from 'lit'; import { bombArgs } from '../../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; @@ -32,9 +34,7 @@ export const Switch: Story = { return html`
${['white', 'dark'].map( - bg => html` -
${templateVariants}
- `, + bg => html`
${templateVariants}
`, )}
`; diff --git a/packages/documentation/src/stories/components/forms/switch/switch.stories.ts b/packages/documentation/src/stories/components/forms/switch/switch.stories.ts index b5364f8d03..8e931e54e6 100644 --- a/packages/documentation/src/stories/components/forms/switch/switch.stories.ts +++ b/packages/documentation/src/stories/components/forms/switch/switch.stories.ts @@ -6,6 +6,7 @@ import { BADGE } from '../../../../../.storybook/constants'; import { mapClasses } from '../../../../utils'; const meta: Meta = { + id: '7fb639f8-86f6-4937-999c-4ee15f81643b', title: 'Components/Forms/Switch', render: renderSwitch, parameters: { @@ -48,7 +49,7 @@ const meta: Meta = { hiddenLabel: { name: 'Hidden Label', description: - 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', + 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', control: { type: 'boolean', }, @@ -69,7 +70,7 @@ const meta: Meta = { disabled: { name: 'Disabled', description: - 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', + 'When set to `true`, disables the component\'s functionality and places it in a disabled state.There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', control: { type: 'boolean', }, @@ -94,12 +95,7 @@ const meta: Meta = { }, }, }, - decorators: [ - story => - html` -
${story()}
- `, - ], + decorators: [story => html`
${story()}
`], }; export default meta; @@ -124,23 +120,17 @@ function renderSwitch(args: Args, context: StoryContext) { const useLabelAfter = !useAriaLabel && 'after' === args.labelPosition; const labelBefore = useLabelBefore - ? html` - - ` + ? html` ` : null; const labelAfter = useLabelAfter - ? html` - - ` + ? html` ` : null; const validationText = args.validation === 'is-valid' ? 'Ggranda sukceso!' : 'Eraro okazis!'; const validationFeedback = args.validation !== 'null' - ? html` -

${validationText}

- ` + ? html`

${validationText}

` : null; return html` diff --git a/packages/documentation/src/stories/components/forms/textarea/textarea.snapshot.stories.ts b/packages/documentation/src/stories/components/forms/textarea/textarea.snapshot.stories.ts index efb8f3bb7c..5c5a8e41a2 100644 --- a/packages/documentation/src/stories/components/forms/textarea/textarea.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/forms/textarea/textarea.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta from './textarea.stories'; import { html } from 'lit'; import { getCombinations, COMBINATIONS } from '../../../../utils/inputComponentsGetCombinations'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; @@ -59,9 +61,7 @@ export const Textarea: Story = {

Floating Label

${getCombinations('floatingLabel', [true], combinations).map( (args: Args) => - html` -
${meta.render?.({ ...context.args, ...args }, context)}
- `, + html`
${meta.render?.({ ...context.args, ...args }, context)}
`, )} `, diff --git a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts index 31e3423710..cc744c9041 100644 --- a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts +++ b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts @@ -10,6 +10,7 @@ const VALIDATION_STATE_MAP: Record = { }; const meta: Meta = { + id: '152b7268-cce0-43d7-b931-41a57370f9a0', title: 'Components/Forms/Textarea', render: renderTextarea, parameters: { @@ -50,7 +51,7 @@ const meta: Meta = { hiddenLabel: { name: 'Hidden Label', description: - 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', + 'Renders the component with or without a visible label.There are accessibility concerns with hidden labels.
Please read our label accessibility guide.
', if: { arg: 'floatingLabel', truthy: false, @@ -120,7 +121,7 @@ const meta: Meta = { disabled: { name: 'Disabled', description: - 'When set to `true`, disables the component\'s functionality and places it in a disabled state.
There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', + 'When set to `true`, disables the component\'s functionality and places it in a disabled state.
There are accessibility concerns with the disabled state.
Please read our disabled state accessibility guide.
', control: { type: 'boolean', }, diff --git a/packages/documentation/src/stories/components/heading/heading.snapshot.stories.ts b/packages/documentation/src/stories/components/heading/heading.snapshot.stories.ts index b2263ffc48..b324681a04 100644 --- a/packages/documentation/src/stories/components/heading/heading.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/heading/heading.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta, { Default } from './heading.stories'; import { html } from 'lit'; import { bombArgs } from '../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/heading/heading.stories.ts b/packages/documentation/src/stories/components/heading/heading.stories.ts index e46d7f0750..e6b171abe8 100644 --- a/packages/documentation/src/stories/components/heading/heading.stories.ts +++ b/packages/documentation/src/stories/components/heading/heading.stories.ts @@ -3,6 +3,7 @@ import { html, unsafeStatic } from 'lit/static-html.js'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '7ecd87f1-de96-4e39-a057-ba1798eb6959', title: 'Components/Heading', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/components/icons/components/icon.docs.mdx b/packages/documentation/src/stories/components/icons/components/icon.docs.mdx index 58e5930919..f405ad1794 100644 --- a/packages/documentation/src/stories/components/icons/components/icon.docs.mdx +++ b/packages/documentation/src/stories/components/icons/components/icon.docs.mdx @@ -16,7 +16,7 @@ import * as IconStories from './icon.stories'; ### Color By default, icons inherit the current text color of their parent element.
-You can therefore colorize an icon using our [text color utilities](/?path=/docs/utilities-text--docs) +You can therefore colorize an icon using our [text color utilities](/?path=/docs/c55681df-4d21-469d-a5b3-c67686e7c104--docs) or by setting the CSS directly through a style attribute or self-defined classes. @@ -24,14 +24,14 @@ or by setting the CSS directly through a style attribute or self-defined classes ### Size Icons have a default `width` of `1em`, which means they will scale with the size of the current `font-size`. -Therefore, you can manage the size of an icon using our [font-size utilities](/?path=/docs/utilities-text--docs) +Therefore, you can manage the size of an icon using our [font-size utilities](/?path=/docs/c55681df-4d21-469d-a5b3-c67686e7c104--docs) or by setting the CSS directly through a style attribute or self-defined classes. ### Style -With the use of our [border](#TODO),[background](/?path=/docs/utilities-background--docs) +With the use of our [border](#TODO),[background](/?path=/docs/60852fac-a861-4415-8276-bd38d68653bb--docs) and [padding](#TODO) utilities, you can create various styling effects. diff --git a/packages/documentation/src/stories/components/icons/components/icon.stories.ts b/packages/documentation/src/stories/components/icons/components/icon.stories.ts index 6f93b965b1..c659175bac 100644 --- a/packages/documentation/src/stories/components/icons/components/icon.stories.ts +++ b/packages/documentation/src/stories/components/icons/components/icon.stories.ts @@ -7,6 +7,7 @@ import { BADGE } from '../../../../../.storybook/constants'; import { spreadArgs } from '../../../../utils'; const meta: Meta = { + id: '0dcfe3c0-bfc0-4107-b43b-7e9d825b805f', title: 'Components/Icons/Icon Component', component: 'post-icon', parameters: { @@ -52,10 +53,7 @@ const meta: Meta = { options: [null, 'cylon', 'cylon-vertical', 'spin', 'spin-reverse', 'fade', 'throb'], }, }, - render: args => - html` - - `, + render: args => html` `, }; function normalizeArgs(args: Args) { @@ -70,17 +68,13 @@ const renderVariants = ( return html` ${customAttrs.map( variantArgs => - html` - - `, + html` `, )} `; }; const generateDecorators = (story: any, className?: string) => { - return html` -
${story()}
- `; + return html`
${story()}
`; }; export default meta; diff --git a/packages/documentation/src/stories/components/icons/getting-started.docs.mdx b/packages/documentation/src/stories/components/icons/getting-started.docs.mdx index 8f96415ca0..c5c49f0788 100644 --- a/packages/documentation/src/stories/components/icons/getting-started.docs.mdx +++ b/packages/documentation/src/stories/components/icons/getting-started.docs.mdx @@ -32,11 +32,11 @@ The comprehensive collection of Swiss Post icons.
- If you want to use our [icon component](/?path=/docs/components-icons-icon-component--docs) to + If you want to use our [icon component](/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs) to render the icons (which we strongly recommend), you must also install the components package.
- To learn how to set up this package please read our [Components - Getting Started](/?path=/docs/getting-started-components--docs) page. + To learn how to set up this package please read our [Components - Getting Started](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs) page.
## Usage diff --git a/packages/documentation/src/stories/components/icons/getting-started.stories.ts b/packages/documentation/src/stories/components/icons/getting-started.stories.ts index eee6af4796..c85e1d102a 100644 --- a/packages/documentation/src/stories/components/icons/getting-started.stories.ts +++ b/packages/documentation/src/stories/components/icons/getting-started.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '40ed323b-9c1a-42ab-91ed-15f97f214608', title: 'Components/Icons/Getting Started', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/components/icons/search-icons/search-icons.stories.ts b/packages/documentation/src/stories/components/icons/search-icons/search-icons.stories.ts index dd6aa9a2e3..be179e6e5c 100644 --- a/packages/documentation/src/stories/components/icons/search-icons/search-icons.stories.ts +++ b/packages/documentation/src/stories/components/icons/search-icons/search-icons.stories.ts @@ -1,6 +1,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; const meta: Meta = { + id: '5704bdc4-c5b5-45e6-b123-c54d01fce2f1', title: 'Components/Icons/Search for Icons', }; diff --git a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/breadcrumbs.stories.ts b/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/breadcrumbs.stories.ts index 8997e8e27c..b19a213166 100644 --- a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/breadcrumbs.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/breadcrumbs.stories.ts @@ -6,6 +6,7 @@ import { getAttributes } from '../../../../../utils'; import customItems from './overrides/custom-items'; const meta: Meta = { + id: '4347e5bf-8bf2-4f44-9075-9faaa53591ed', title: 'Components/Internet Header/Breadcrumbs', component: 'swisspost-internet-breadcrumbs', render: renderInternetBreadcrumbs, diff --git a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/breadcrumbs-config.stories.ts b/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/breadcrumbs-config.stories.ts index 3eca16b0b8..7025cbec75 100644 --- a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/breadcrumbs-config.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/breadcrumbs-config.stories.ts @@ -2,6 +2,7 @@ import * as BreadcrumbsStories from '../breadcrumbs.stories'; export default { ...BreadcrumbsStories.default, + id: 'b93adeff-9bb8-4f23-a81d-96452a94fd9b', title: 'Components/Internet Header/Breadcrumbs/Custom Items', }; diff --git a/packages/documentation/src/stories/components/internet-header/components/footer/custom-config/footer-config.stories.ts b/packages/documentation/src/stories/components/internet-header/components/footer/custom-config/footer-config.stories.ts index 15ee19e727..e98dc44cd0 100644 --- a/packages/documentation/src/stories/components/internet-header/components/footer/custom-config/footer-config.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/components/footer/custom-config/footer-config.stories.ts @@ -2,6 +2,7 @@ import * as FooterStories from '../footer.stories'; export default { ...FooterStories.default, + id: '201a58d2-d903-4b44-aa1f-91b49f60e1d4', title: 'Components/Internet Header/Footer/Custom Config', }; diff --git a/packages/documentation/src/stories/components/internet-header/components/footer/footer.stories.ts b/packages/documentation/src/stories/components/internet-header/components/footer/footer.stories.ts index 0524b4f9b3..db351b18b6 100644 --- a/packages/documentation/src/stories/components/internet-header/components/footer/footer.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/components/footer/footer.stories.ts @@ -5,6 +5,7 @@ import customFooterConfig from './custom-config/custom-footer-config'; import { spread } from '@open-wc/lit-helpers'; const meta: Meta = { + id: '27fc009d-3eec-43a9-b3a2-55531e721817', title: 'Components/Internet Header/Footer', component: 'swisspost-internet-footer', render: renderInternetFooter, diff --git a/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts b/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts index acd9b41ba6..5e286c28db 100644 --- a/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts @@ -7,6 +7,7 @@ import osFlyoutOverrides from './config/os-flyout-overrides'; import languageSwitchOverrides from './config/language-switch-overrides'; const meta: Meta = { + id: 'ebb11274-091b-4cb7-9a3f-3e0451c9a865', title: 'Components/Internet Header/Header', component: 'swisspost-internet-header', parameters: { @@ -172,9 +173,7 @@ const meta: Meta = { }; function render({ innerHMTL, ...args }: Args) { - return html` - - `; + return html` `; } export default meta; diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-config.stories.ts b/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-config.stories.ts index e133107815..aa927970ac 100644 --- a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-config.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-config.stories.ts @@ -2,6 +2,7 @@ import * as HeaderStories from '../header.stories'; export default { ...HeaderStories.default, + id: 'bfdf4e7c-37d3-40f8-a5d0-734f3e6612b4', title: 'Components/Internet Header/Header/Custom Config', }; diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-content.stories.ts b/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-content.stories.ts index a7e63f4528..1495e7c23d 100644 --- a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-content.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-content.stories.ts @@ -2,6 +2,7 @@ import * as HeaderStories from '../header.stories'; export default { ...HeaderStories.default, + id: 'f09859db-8270-482b-a884-5b5584f86a45', title: 'Components/Internet Header/Header/Custom Content', }; diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-language-switch-overrides.stories.ts b/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-language-switch-overrides.stories.ts index 5d1c40e44e..2d308a431e 100644 --- a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-language-switch-overrides.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-language-switch-overrides.stories.ts @@ -2,6 +2,7 @@ import * as HeaderStories from '../header.stories'; export default { ...HeaderStories.default, + id: '85d5a6b7-ac9b-4d8a-841c-72b552d0dc07', title: 'Components/Internet Header/Header/Language Switch Overrides', }; diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-os-flyout-overrides.stories.ts b/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-os-flyout-overrides.stories.ts index 1502225361..4dc210d54a 100644 --- a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-os-flyout-overrides.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-os-flyout-overrides.stories.ts @@ -2,6 +2,7 @@ import * as HeaderStories from '../header.stories'; export default { ...HeaderStories.default, + id: 'eee6c6fb-202f-40f9-8c8c-5f681b71db7e', title: 'Components/Internet Header/Header/Os Flyout Overrides', }; diff --git a/packages/documentation/src/stories/components/internet-header/getting-started.stories.ts b/packages/documentation/src/stories/components/internet-header/getting-started.stories.ts index 78e0c93f49..72364304e2 100644 --- a/packages/documentation/src/stories/components/internet-header/getting-started.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/getting-started.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '9b02bcb2-3b6a-4271-b550-675a62ff3890', title: 'Components/Internet Header/Getting Started', parameters: { badges: [BADGE.STABLE], diff --git a/packages/documentation/src/stories/components/internet-header/migration-guide.docs.mdx b/packages/documentation/src/stories/components/internet-header/migration-guide.docs.mdx index 8bb75640bf..a1f9857575 100644 --- a/packages/documentation/src/stories/components/internet-header/migration-guide.docs.mdx +++ b/packages/documentation/src/stories/components/internet-header/migration-guide.docs.mdx @@ -71,7 +71,7 @@ There is a long list of [known jQuery vulnerabilities](https://security.snyk.io/ ## 4. Install the new header -Please refer to the [Internet Header installation instructions](/?path=/docs/components-internet-header-getting-started--docs) for an installation guide. +Please refer to the [Internet Header installation instructions](/?path=/docs/9b02bcb2-3b6a-4271-b550-675a62ff3890--docs) for an installation guide. After installation, you're ready to add the new tags to your markup: @@ -88,4 +88,4 @@ If you need to change settings during runtime, you can get a reference to the he -At the [Internet Header configuration page](/?path=/docs/components-internet-header-header--docs) you can find a list of possible options. +At the [Internet Header configuration page](/?path=/docs/ebb11274-091b-4cb7-9a3f-3e0451c9a865--docs) you can find a list of possible options. diff --git a/packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts b/packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts index e6095c031a..d24e6fe789 100644 --- a/packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts +++ b/packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'a6e4dfe1-0272-425b-9980-0ad40822c2c1', title: 'Components/Internet Header/Migration Guide', parameters: { badges: [BADGE.STABLE], diff --git a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts index fde9a6f6f4..011920a66f 100644 --- a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts +++ b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts @@ -2,6 +2,7 @@ import { Meta } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'd59a459b-6f14-47c6-9f98-a36a3f79a6e3', title: 'Components/Intranet Header', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/components/modal/modal.stories.ts b/packages/documentation/src/stories/components/modal/modal.stories.ts index 6fbaa261e6..f000bede92 100644 --- a/packages/documentation/src/stories/components/modal/modal.stories.ts +++ b/packages/documentation/src/stories/components/modal/modal.stories.ts @@ -3,6 +3,7 @@ import { html } from 'lit'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '9a512414-84c5-473c-a7c8-a434eda9578d', title: 'Components/Modal', parameters: { badges: [BADGE.WEB_COMPONENT_CANDIDATE], diff --git a/packages/documentation/src/stories/components/pagination/pagination.stories.ts b/packages/documentation/src/stories/components/pagination/pagination.stories.ts index 80efda1ec3..b3543d0508 100644 --- a/packages/documentation/src/stories/components/pagination/pagination.stories.ts +++ b/packages/documentation/src/stories/components/pagination/pagination.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'caa89695-5c39-4cb5-8e62-579d918cbd2f', title: 'Components/Pagination', parameters: { badges: [BADGE.WEB_COMPONENT_CANDIDATE], diff --git a/packages/documentation/src/stories/components/popover/popover.docs.mdx b/packages/documentation/src/stories/components/popover/popover.docs.mdx index 697d3d3e23..d78044090a 100644 --- a/packages/documentation/src/stories/components/popover/popover.docs.mdx +++ b/packages/documentation/src/stories/components/popover/popover.docs.mdx @@ -15,5 +15,5 @@ import * as PopoverStories from './popover.stories'; ## Installation
- The `` element is part of the `@swisspost/design-system-components` package. For more information, read the [getting started with components guide](/?path=/docs/getting-started-components--docs). + The `` element is part of the `@swisspost/design-system-components` package. For more information, read the [getting started with components guide](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs).
diff --git a/packages/documentation/src/stories/components/popover/popover.stories.ts b/packages/documentation/src/stories/components/popover/popover.stories.ts index 87d034b55a..e39617c19d 100644 --- a/packages/documentation/src/stories/components/popover/popover.stories.ts +++ b/packages/documentation/src/stories/components/popover/popover.stories.ts @@ -4,6 +4,7 @@ import { html } from 'lit'; import { unsafeHTML } from 'lit/directives/unsafe-html.js'; const meta: Meta = { + id: '9a636763-de2d-4f72-bc81-98daf10871f7', title: 'Components/Popover', component: 'post-popover', parameters: { @@ -94,11 +95,7 @@ function render(args: Args) { placement="${args.placement}" ?arrow="${args.arrow}" > - ${args.title - ? html` -

Optional title

- ` - : null} + ${args.title ? html`

Optional title

` : null}

${unsafeHTML(args.innerHtml)}

`; diff --git a/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts b/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts index b1126715b9..c23fce6b50 100644 --- a/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts +++ b/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '446648d9-0360-4dec-a6f4-87f2f28b5f33', title: 'Components/Progressbar', parameters: { badges: [BADGE.WEB_COMPONENT_CANDIDATE], diff --git a/packages/documentation/src/stories/components/stepper/stepper.stories.ts b/packages/documentation/src/stories/components/stepper/stepper.stories.ts index f6dc11dabd..543d9957ef 100644 --- a/packages/documentation/src/stories/components/stepper/stepper.stories.ts +++ b/packages/documentation/src/stories/components/stepper/stepper.stories.ts @@ -3,6 +3,7 @@ import { html } from 'lit'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '7dc546d9-e248-4d06-befe-3ad62fcd310f', title: 'Components/Stepper', parameters: { badges: [BADGE.WEB_COMPONENT_CANDIDATE], diff --git a/packages/documentation/src/stories/components/table/table.snapshot.stories.ts b/packages/documentation/src/stories/components/table/table.snapshot.stories.ts index ac9c29432d..09bb0b43ab 100644 --- a/packages/documentation/src/stories/components/table/table.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/table/table.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta from './table.stories'; import { html } from 'lit'; import { bombArgs } from '../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/table/table.stories.ts b/packages/documentation/src/stories/components/table/table.stories.ts index 5166c997f4..8574b1a17d 100644 --- a/packages/documentation/src/stories/components/table/table.stories.ts +++ b/packages/documentation/src/stories/components/table/table.stories.ts @@ -3,6 +3,7 @@ import { html } from 'lit'; import { mapClasses } from '../../../utils'; const meta: Meta = { + id: '81799516-470c-446b-a049-54946b6ccfca', title: 'Components/Table', render: renderTable, parameters: {}, @@ -131,7 +132,9 @@ function renderTable(args: Args) { - ${args.content} + + ${args.content} + `; } diff --git a/packages/documentation/src/stories/components/tabs/tabs.snapshot.stories.ts b/packages/documentation/src/stories/components/tabs/tabs.snapshot.stories.ts index 7ddf9123ad..240754c894 100644 --- a/packages/documentation/src/stories/components/tabs/tabs.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/tabs/tabs.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta from './tabs.stories'; import { html } from 'lit'; import { bombArgs } from '../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/tabs/tabs.stories.ts b/packages/documentation/src/stories/components/tabs/tabs.stories.ts index a391f39149..1836dca2de 100644 --- a/packages/documentation/src/stories/components/tabs/tabs.stories.ts +++ b/packages/documentation/src/stories/components/tabs/tabs.stories.ts @@ -4,6 +4,7 @@ import { ifDefined } from 'lit/directives/if-defined.js'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'bb1291ca-4dbb-450c-a15f-596836d9f39e', title: 'Components/Tabs', component: 'post-tabs', render: renderTabs, diff --git a/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts b/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts index bf0db20142..6b638ca7a8 100644 --- a/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts +++ b/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'a4d9f996-6e77-4fad-bb19-40fad1bb7a1d', title: 'Components/Timepicker', parameters: { badges: [BADGE.WEB_COMPONENT_CANDIDATE], diff --git a/packages/documentation/src/stories/components/toast/toast.docs.mdx b/packages/documentation/src/stories/components/toast/toast.docs.mdx index 6b576530e7..1a01a167c1 100644 --- a/packages/documentation/src/stories/components/toast/toast.docs.mdx +++ b/packages/documentation/src/stories/components/toast/toast.docs.mdx @@ -45,7 +45,7 @@ You can stack toasts by wrapping them in a `.toast-container`, which will vertic ## Accessibility Toasts are intended to be small interruptions to your visitors or users, so to help those with screen readers and similar assistive technologies, you should wrap your toasts in an `aria-live` region. Changes to live regions (such as injecting/updating a toast component) are automatically announced by screen readers without the need to move the user’s focus or interrupt in any way. Additionally, include `aria-atomic="true"` to ensure that the entire toast is always announced as a single (atomic) unit, rather than just announcing what changed (which could lead to problems if you only update part of the toast’s content, or if you show the same toast content later in time). If the information is important in the process, e.g. for a list of errors in a form, then use the -[alert component](/?path=/docs/components-alert--docs) instead of the toast. +[alert component](/?path=/docs/105e67d8-31e9-4d0b-87ff-685aba31fd4c--docs) instead of the toast. Note that the live region needs to be present in the markup before the toast is generated or updated. If you dynamically generate both at the same time and inject them into the page, they will generally not be announced by assistive technologies. diff --git a/packages/documentation/src/stories/components/toast/toast.snapshot.stories.ts b/packages/documentation/src/stories/components/toast/toast.snapshot.stories.ts index 2b727d9a1b..62430caa4b 100644 --- a/packages/documentation/src/stories/components/toast/toast.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/toast/toast.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta from './toast.stories'; import { html } from 'lit'; import { bombArgs } from '../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/toast/toast.stories.ts b/packages/documentation/src/stories/components/toast/toast.stories.ts index 61073b5edd..932fa624c7 100644 --- a/packages/documentation/src/stories/components/toast/toast.stories.ts +++ b/packages/documentation/src/stories/components/toast/toast.stories.ts @@ -4,6 +4,7 @@ import { html } from 'lit'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '825b65c9-7eaf-4e0a-9e20-5f5ed406726d', title: 'Components/Toast', parameters: { badges: [BADGE.NEEDS_REVISION], @@ -85,7 +86,7 @@ const meta: Meta = { 'Defines a custom icon.' + '' + 'To use a custom icon, you must first ' + - 'set up the icons in your project' + + 'set up the icons in your project' + '.', if: { arg: 'noIcon', @@ -283,9 +284,7 @@ const meta: Meta = { `; } else { - return html` - ${story()} - `; + return html` ${story()} `; } }, ], @@ -346,17 +345,13 @@ function killAutoHideTimeout(timeoutStore: ReturnType[], args function getToastIcon(args: Args) { return !args.noIcon && args.icon !== 'null' - ? html` - - ` + ? html` ` : null; } function getDismissButton(args: Args, isFixed: boolean) { return args.dismissible || isFixed - ? html` - - ` + ? html` ` : null; } @@ -400,19 +395,13 @@ function render(args: Args, context: StoryContext) { > ${toastIcon} ${dismissButton}
${args.title}
- ${args.content - ? html` -
${args.content}
- ` - : null} + ${args.content ? html`
${args.content}
` : null} `; let wrappedContent; if (args.stacked) { - wrappedContent = html` - ${component} ${component} - `; + wrappedContent = html` ${component} ${component} `; } else if (isFixed) { if (args.show) { createAutoHideTimeout(timeoutStore, args, updateArgs); diff --git a/packages/documentation/src/stories/components/tooltip/tooltip.docs.mdx b/packages/documentation/src/stories/components/tooltip/tooltip.docs.mdx index c240ab5d9e..c3fc5cdec0 100644 --- a/packages/documentation/src/stories/components/tooltip/tooltip.docs.mdx +++ b/packages/documentation/src/stories/components/tooltip/tooltip.docs.mdx @@ -13,7 +13,7 @@ import * as TooltipStories from './tooltip.stories'; ## Installation The `` element is part of the `@swisspost/design-system-components` package. For more information, read the -[getting started with components guide](/?path=/docs/getting-started-components--docs). +[getting started with components guide](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs). ## Examples diff --git a/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts b/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts index 1ca15da3e8..548f51078b 100644 --- a/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts +++ b/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts @@ -6,6 +6,7 @@ import { useArgs } from '@storybook/preview-api'; import { ifDefined } from 'lit/directives/if-defined.js'; const meta: Meta = { + id: 'cd684d90-e7a7-41a9-8923-b1b72ad9b384', title: 'Components/Tooltip', component: 'post-tooltip', parameters: { diff --git a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.snapshot.stories.ts b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.snapshot.stories.ts index 732fe2586c..d9bbe79de9 100644 --- a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.snapshot.stories.ts +++ b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.snapshot.stories.ts @@ -3,8 +3,10 @@ import meta, { Default } from './topic-teaser.stories'; import { html } from 'lit'; import { bombArgs } from '../../../utils'; +const { id, ...metaWithoutId } = meta; + export default { - ...meta, + ...metaWithoutId, title: 'Snapshots', }; diff --git a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts index 8b69ba1dc0..fef6498e12 100644 --- a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts +++ b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts @@ -4,6 +4,7 @@ import { BADGE } from '../../../../.storybook/constants'; import { mapClasses } from '../../../utils'; const meta: Meta = { + id: '2ffc7a53-c1aa-4ff5-b1e4-fa638591399c', title: 'Components/Topic Teaser', parameters: { badges: [BADGE.NEEDS_REVISION], @@ -174,13 +175,7 @@ export const Default: Story = {
- ${args.alignment === 'null' - ? html` - ${content}${image} - ` - : html` - ${image}${content} - `} + ${args.alignment === 'null' ? html` ${content}${image} ` : html` ${image}${content} `}
diff --git a/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts b/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts index a50fbac8df..01e18d5583 100644 --- a/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts +++ b/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '0456901c-3713-4f1f-b592-1f4dbd65a500', title: 'Components/Typeahead', parameters: { badges: [BADGE.WEB_COMPONENT_CANDIDATE], diff --git a/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts b/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts index edde30f568..55c7153cfd 100644 --- a/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts +++ b/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '46da78e8-e83b-4ca1-aaf6-bbc662efef14', title: 'Foundations/Accessibility', parameters: { badges: [BADGE.TODO], diff --git a/packages/documentation/src/stories/foundation/color/color.docs.mdx b/packages/documentation/src/stories/foundation/color/color.docs.mdx index efaf894019..ca7b1fde60 100644 --- a/packages/documentation/src/stories/foundation/color/color.docs.mdx +++ b/packages/documentation/src/stories/foundation/color/color.docs.mdx @@ -18,7 +18,7 @@ They theme our elements and components. For accessibility reasons, you should always make sure that your individually created color combinations are sufficiently contrasting. There may be a better solution than coloring elements individually. -For example, use the [background utilities](/?path=/docs/utilities-background--docs) to get elements +For example, use the [background utilities](/?path=/docs/60852fac-a861-4415-8276-bd38d68653bb--docs) to get elements with a specific background color and the best possible contrast color for its content. diff --git a/packages/documentation/src/stories/foundation/color/color.stories.ts b/packages/documentation/src/stories/foundation/color/color.stories.ts index a0a4cb44a6..d66a9a6509 100644 --- a/packages/documentation/src/stories/foundation/color/color.stories.ts +++ b/packages/documentation/src/stories/foundation/color/color.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'e869afc1-3c50-4c20-a495-3d846f7a759e', title: 'Foundations/Color', parameters: { badges: [BADGE.BETA, BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts b/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts index ad34139be1..53df4ac419 100644 --- a/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts +++ b/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts @@ -3,6 +3,7 @@ import { html } from 'lit'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'cfdf83ff-efa7-4b3c-ac91-6898c4f88701', title: 'Foundations/Elevation', parameters: { badges: [BADGE.NEEDS_REVISION], @@ -15,7 +16,5 @@ type Story = StoryObj; export const Default: Story = { render: () => - html` -
I'm elevated!
- `, + html`
I'm elevated!
`, }; diff --git a/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts b/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts index 8aa74e4e5d..f31c45680d 100644 --- a/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts +++ b/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../../.storybook/constants'; const meta: Meta = { + id: '20af6e2b-32b1-42ef-a187-b026aea7fe13', title: 'Foundations/Layout/Breakpoints', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts b/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts index 47c79c8c94..7dab83e4cf 100644 --- a/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts +++ b/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts @@ -1,8 +1,9 @@ -import type { Args, Meta, StoryFn, StoryObj, StoryContext } from '@storybook/web-components'; +import type { Args, Meta, StoryContext, StoryFn, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../../.storybook/constants'; import { html, nothing } from 'lit'; const meta: Meta = { + id: 'cd70f48f-6308-4ec8-a8c6-982bd72c855c', title: 'Foundations/Layout/Columns', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts b/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts index 0544acac1f..f14edeffc3 100644 --- a/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts +++ b/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts @@ -2,6 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../../.storybook/constants'; const meta: Meta = { + id: 'a4ca9660-bb4a-4cc7-adfd-84767382ac03', title: 'Foundations/Layout/Containers', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/foundation/layout/grid/grid.blocks.tsx b/packages/documentation/src/stories/foundation/layout/grid/grid.blocks.tsx index a33a97a009..39cc215324 100644 --- a/packages/documentation/src/stories/foundation/layout/grid/grid.blocks.tsx +++ b/packages/documentation/src/stories/foundation/layout/grid/grid.blocks.tsx @@ -50,7 +50,7 @@ export const GridTable = () => ( Column ordering - yes + yes diff --git a/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts b/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts index c10ab175b0..6d31c36ac5 100644 --- a/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts +++ b/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts @@ -3,6 +3,7 @@ import { BADGE } from '../../../../../.storybook/constants'; import { html } from 'lit'; const meta: Meta = { + id: '7240f2ef-216a-490e-9bd8-c0cef19f7b31', title: 'Foundations/Layout/Grid', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/foundation/typography/typography.docs.mdx b/packages/documentation/src/stories/foundation/typography/typography.docs.mdx index b206c89e99..96f9ee04a3 100644 --- a/packages/documentation/src/stories/foundation/typography/typography.docs.mdx +++ b/packages/documentation/src/stories/foundation/typography/typography.docs.mdx @@ -20,7 +20,7 @@ import SampleStandalone from './typography-standalone.sample.css?raw'; This page describes the typography basics of the design system.
If you want to know how to adjust font-families, font-sizes, etc. in your code, -please visit our [text utilities docs](/?path=/docs/utilities-text--docs). +please visit our [text utilities docs](/?path=/docs/c55681df-4d21-469d-a5b3-c67686e7c104--docs). ## Font Families @@ -79,7 +79,7 @@ The following sections show what specific elements look like. Sometimes the document heading structure requires you to use a heading tag that should look like another in order to maintain a consistency. In those cases you can use the heading helper classes `.h1` through `.h6`.
-For more details check out [heading docs](/?path=/docs/components-heading--docs). +For more details, check out [heading docs](/?path=/docs/5f93ffae-2e01-4932-aae6-1673c6adf0cf--docs). ### Paragraphs @@ -98,4 +98,4 @@ For more details check out [heading docs](/?path=/docs/components-heading--docs) For more details how to change the look of lists, -visit our [list utilities docs](/?path=/docs/utilities-list--docs). +visit our [list utilities docs](/?path=/docs/e76192bb-b2eb-487a-b9c1-ef938bccdfc4--docs). diff --git a/packages/documentation/src/stories/foundation/typography/typography.stories.ts b/packages/documentation/src/stories/foundation/typography/typography.stories.ts index 9c9c77a13b..9027709d46 100644 --- a/packages/documentation/src/stories/foundation/typography/typography.stories.ts +++ b/packages/documentation/src/stories/foundation/typography/typography.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '677cfabf-dbf0-4de2-ad07-6d5bfb9e2375', title: 'Foundations/Typography', parameters: { badges: [BADGE.BETA, BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts b/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts index 63e2462935..f8229c21da 100644 --- a/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts +++ b/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '829f6c45-5734-4d55-b290-2c8a86a07b67', title: 'Getting Started/Compatibility', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/getting-started/components-angular/angular.stories.ts b/packages/documentation/src/stories/getting-started/components-angular/angular.stories.ts index 9ce2557e12..5a85a25afc 100644 --- a/packages/documentation/src/stories/getting-started/components-angular/angular.stories.ts +++ b/packages/documentation/src/stories/getting-started/components-angular/angular.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '833ef689-a573-40f5-a6a6-30a999b94733', title: 'Getting Started/Components-Angular', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/getting-started/components/components.stories.ts b/packages/documentation/src/stories/getting-started/components/components.stories.ts index cacee53bdd..1a15879e29 100644 --- a/packages/documentation/src/stories/getting-started/components/components.stories.ts +++ b/packages/documentation/src/stories/getting-started/components/components.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'edfb619b-fda1-4570-bf25-20830303d483', title: 'Getting Started/Components', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/getting-started/styles/styles.stories.ts b/packages/documentation/src/stories/getting-started/styles/styles.stories.ts index 27b5d70775..93f1e12bfc 100644 --- a/packages/documentation/src/stories/getting-started/styles/styles.stories.ts +++ b/packages/documentation/src/stories/getting-started/styles/styles.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'e53e2de8-0bbf-4f70-babc-074c5466f700', title: 'Getting Started/Styles', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/home.docs.mdx b/packages/documentation/src/stories/home.docs.mdx index 29d3ff05b3..bd262a0484 100644 --- a/packages/documentation/src/stories/home.docs.mdx +++ b/packages/documentation/src/stories/home.docs.mdx @@ -18,7 +18,7 @@ import './home.styles.scss';
@@ -25,7 +24,7 @@ next to the field. ## Vertical spacing -To add space between input, you can use [margin utilities](/?path=/docs/utilities-spacing--docs). +To add space between input, you can use [margin utilities](/?path=/docs/facaacfd-18f1-49b4-80f1-a96680730fa0--docs). @@ -35,11 +34,11 @@ If you want a form field to span the whole available width, you don't need a row only need those, if you want to place two things next to each other. Simply use `.row` and `.col` to have the width distributed evenly between all inputs. -To make it responsive, you can add `.row-cols-*` classes to the row (see [Grid page](/?path=/docs/foundations-layout-grid--docs#row-columns)). +To make it responsive, you can add `.row-cols-*` classes to the row (see [Grid page](/?path=/docs/7240f2ef-216a-490e-9bd8-c0cef19f7b31--docs#row-columns)). -For finer adjustment, you can also use the `.col-*` classes (see [Columns page](/?path=/docs/foundations-layout-columns--docs)) on your columns. For example for a 2/1 ratio, given that a row has twelve columns in total, +For finer adjustment, you can also use the `.col-*` classes (see [Columns page](/?path=/docs/cd70f48f-6308-4ec8-a8c6-982bd72c855c--docs)) on your columns. For example for a 2/1 ratio, given that a row has twelve columns in total, just add `.col-8` and `.col-4` to you two columns respectively. @@ -78,9 +77,9 @@ adding and removing validation classes on the input: * The message needs the class `.invalid-feedback/.valid-feedback` * The form needs the class `.was-validated`. With this class you can manage when to display errors. Usually, errors should not be shown on untouched fields. - + Or - + The input field needs the class `.is-invalid/.is-valid` diff --git a/packages/documentation/src/stories/patterns/forms/forms.stories.ts b/packages/documentation/src/stories/patterns/forms/forms.stories.ts index fb31b4fe43..721a35f4a3 100644 --- a/packages/documentation/src/stories/patterns/forms/forms.stories.ts +++ b/packages/documentation/src/stories/patterns/forms/forms.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { html } from 'lit'; const meta: Meta = { + id: 'd83829b2-7de2-48d2-be64-07a80c9caef3', title: 'Patterns/Forms', parameters: { badges: [], diff --git a/packages/documentation/src/stories/utilities/background/background.docs.mdx b/packages/documentation/src/stories/utilities/background/background.docs.mdx index 1395d99a80..377b27bad5 100644 --- a/packages/documentation/src/stories/utilities/background/background.docs.mdx +++ b/packages/documentation/src/stories/utilities/background/background.docs.mdx @@ -79,7 +79,7 @@ Change the background opacity simply by setting the CSS variable `--post-bg-opac
Low background opacity is not recommended as it can lead to poor contrast. It is then your responsibility to ensure that the contrast ratio between foreground and background is at least 4.5:1. - More information on that topic is available on our [accessibility docs](/?path=/docs/foundations-accessibility--docs). + More information on that topic is available on our [accessibility docs](/?path=/docs/46da78e8-e83b-4ca1-aaf6-bbc662efef14--docs).
diff --git a/packages/documentation/src/stories/utilities/background/background.stories.ts b/packages/documentation/src/stories/utilities/background/background.stories.ts index c78f405c3d..cdb62624f1 100644 --- a/packages/documentation/src/stories/utilities/background/background.stories.ts +++ b/packages/documentation/src/stories/utilities/background/background.stories.ts @@ -3,6 +3,7 @@ import { html } from 'lit'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '60852fac-a861-4415-8276-bd38d68653bb', title: 'Utilities/Background', parameters: { badges: [BADGE.TODO], diff --git a/packages/documentation/src/stories/utilities/common/common.stories.ts b/packages/documentation/src/stories/utilities/common/common.stories.ts index 921f593fff..5dabab5a79 100644 --- a/packages/documentation/src/stories/utilities/common/common.stories.ts +++ b/packages/documentation/src/stories/utilities/common/common.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: '522f6347-78d4-4926-b39c-c131f3e1336e', title: 'Utilities/Common', parameters: { badges: [BADGE.TODO], diff --git a/packages/documentation/src/stories/utilities/list/list.stories.ts b/packages/documentation/src/stories/utilities/list/list.stories.ts index 71edadcf10..362c49266a 100644 --- a/packages/documentation/src/stories/utilities/list/list.stories.ts +++ b/packages/documentation/src/stories/utilities/list/list.stories.ts @@ -3,6 +3,7 @@ import { html } from 'lit'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'e76192bb-b2eb-487a-b9c1-ef938bccdfc4', title: 'Utilities/List', parameters: { badges: [BADGE.TODO], diff --git a/packages/documentation/src/stories/utilities/sizing/sizing.docs.mdx b/packages/documentation/src/stories/utilities/sizing/sizing.docs.mdx index f506216667..fe7764c28f 100644 --- a/packages/documentation/src/stories/utilities/sizing/sizing.docs.mdx +++ b/packages/documentation/src/stories/utilities/sizing/sizing.docs.mdx @@ -1,7 +1,6 @@ import { Canvas, Controls, Meta, Source } from '@storybook/blocks'; import { formatAsMap } from '../../../utils/sass-export'; import * as SizingStories from './sizing.stories'; -import StylesPackageImport from '../../../shared/styles-package-import.mdx'; @@ -36,7 +35,7 @@ Bootstrap offers sizing classes with the suffixes bellow. They allow you to set For width, we offer additionally `.w-{breakpoint}-{size}` classes (e.g. `w-md-100`) so that you can size only for some specific breakpoints. -See
Full-width button for a practical example. +See Full-width button for a practical example. ### Post-Sizes diff --git a/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts b/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts index 875234b774..1d899915d2 100644 --- a/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts +++ b/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts @@ -12,6 +12,7 @@ const sizeOptionsPercent = ['auto', '25', '50', '75', '100']; const meta: Meta = { render: renderSizing, + id: 'e728de1f-0d71-4317-8bb8-cbef0bf8d5db', title: 'Utilities/Sizing', parameters: { badges: [BADGE.NEEDS_REVISION], diff --git a/packages/documentation/src/stories/utilities/spacing/spacing.docs.mdx b/packages/documentation/src/stories/utilities/spacing/spacing.docs.mdx index e57572a4ee..fcd576682c 100644 --- a/packages/documentation/src/stories/utilities/spacing/spacing.docs.mdx +++ b/packages/documentation/src/stories/utilities/spacing/spacing.docs.mdx @@ -25,7 +25,7 @@ You can apply the desired spacings for `margin` and/or `padding` all around an e Our base spacing classes with suffixes going from 0 to 5 (`*-0`, `*-1`, ..., `*-5`). -Our custom sizes can be used in the same way: by adding the name of the desired size to a prefix. See our [sizing docs](/?path=/docs/utilities-sizing--docs) to find out which size names are available. +Our custom sizes can be used in the same way: by adding the name of the desired size to a prefix. See our [sizing docs](/?path=/docs/e728de1f-0d71-4317-8bb8-cbef0bf8d5db--docs) to find out which size names are available.

Do not use spacing classes on grid elements (i.e. `.row`, `.col`, `.col-*`).

diff --git a/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts b/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts index 6810e0e55c..d4cbc41e3d 100644 --- a/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts +++ b/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts @@ -1,4 +1,4 @@ -import type { Args, Meta, StoryObj, StoryFn, StoryContext } from '@storybook/web-components'; +import type { Args, Meta, StoryContext, StoryFn, StoryObj } from '@storybook/web-components'; import { BADGE } from '../../../../.storybook/constants'; import { html } from 'lit/static-html.js'; import './spacing.styles.scss'; @@ -20,6 +20,7 @@ const positionOptions = { }; const meta: Meta = { + id: 'facaacfd-18f1-49b4-80f1-a96680730fa0', title: 'Utilities/Spacing', parameters: { badges: [BADGE.NEEDS_REVISION], @@ -143,9 +144,7 @@ export const Default: Story = { export const responsiveExample: Story = { render: (args: Args) => { - return html` -
- `; + return html`
`; }, decorators: [ // everything in here will be visible in the example, but only the content coming from the `story` function will be shown in the code preview @@ -163,9 +162,7 @@ export const responsiveExample: Story = { export const automaticResponsiveExample: Story = { render: (args: Args) => { - return html` -
- `; + return html`
`; }, decorators: [ (story: StoryFn, { args, context }: StoryContext) => html` diff --git a/packages/documentation/src/stories/utilities/text/text.docs.mdx b/packages/documentation/src/stories/utilities/text/text.docs.mdx index 5e93867bcb..08095558ac 100644 --- a/packages/documentation/src/stories/utilities/text/text.docs.mdx +++ b/packages/documentation/src/stories/utilities/text/text.docs.mdx @@ -115,7 +115,7 @@ Define how text-blocks are displayed.
The `.text-auto` class is deprecated since text color is now set by the{' '} - [backgrounds](/?path=/docs/utilities-background--docs) themselves. + [backgrounds](/?path=/docs/60852fac-a861-4415-8276-bd38d68653bb--docs) themselves.
Colorize text with `.text-*` utility classes. @@ -151,7 +151,7 @@ Easily realign text to components with text alignment classes. For `start`, `end`, and `center` alignment, responsive classes are available that use the same viewport breakpoints as the grid system. The responsive alignment classes have the following format: `text-{breakpoint}-{alighment}`. -For more detailed informations about breakpoints read our [layout docs](/?path=/docs/foundations-layout-breakpoints--docs). +For more detailed informations about breakpoints read our [layout docs](/?path=/docs/20af6e2b-32b1-42ef-a187-b026aea7fe13--docs). ### Wrapping diff --git a/packages/documentation/src/stories/utilities/text/text.stories.ts b/packages/documentation/src/stories/utilities/text/text.stories.ts index 716ecde558..11fe733402 100644 --- a/packages/documentation/src/stories/utilities/text/text.stories.ts +++ b/packages/documentation/src/stories/utilities/text/text.stories.ts @@ -3,6 +3,7 @@ import { html } from 'lit'; import { BADGE } from '../../../../.storybook/constants'; const meta: Meta = { + id: 'c55681df-4d21-469d-a5b3-c67686e7c104', title: 'Utilities/Text', parameters: { badges: [BADGE.NEEDS_REVISION], @@ -14,41 +15,27 @@ export default meta; type Story = StoryObj; export const FontFamily: Story = { - render: () => html` -

This is sans serif text.

- `, + render: () => html`

This is sans serif text.

`, }; export const FontSize: Story = { - render: () => html` -

This is tiny text.

- `, + render: () => html`

This is tiny text.

`, }; export const FontWeight: Story = { - render: () => html` -

This is bold text.

- `, + render: () => html`

This is bold text.

`, }; export const FontStyle: Story = { - render: () => html` -

This is italic text.

- `, + render: () => html`

This is italic text.

`, }; export const LineHeight: Story = { - render: () => html` -

This text has a line height equal to the font size.

- `, + render: () => html`

This text has a line height equal to the font size.

`, }; export const TextColor: Story = { - decorators: [ - story => html` -
e.preventDefault()}>${story()}
- `, - ], + decorators: [story => html`
e.preventDefault()}>${story()}
`], render: () => html`

This is colored text.

This is a colored link, it lightens on hover. @@ -56,11 +43,7 @@ export const TextColor: Story = { }; export const TextColorReset: Story = { - decorators: [ - story => html` -
e.preventDefault()}>${story()}
- `, - ], + decorators: [story => html`
e.preventDefault()}>${story()}
`], render: () => html`

This is colored text with a