diff --git a/.changeset/calm-mails-cheat.md b/.changeset/calm-mails-cheat.md new file mode 100644 index 0000000000..b58824ccce --- /dev/null +++ b/.changeset/calm-mails-cheat.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for bootstrap close-button component. diff --git a/.changeset/chatty-ads-speak.md b/.changeset/chatty-ads-speak.md new file mode 100644 index 0000000000..27710fc612 --- /dev/null +++ b/.changeset/chatty-ads-speak.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for bg-opacity classes. diff --git a/.changeset/curly-emus-hide.md b/.changeset/curly-emus-hide.md new file mode 100644 index 0000000000..43c421d1b5 --- /dev/null +++ b/.changeset/curly-emus-hide.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated migration documentation for post topic-teaser component. diff --git a/.changeset/famous-onions-carry.md b/.changeset/famous-onions-carry.md new file mode 100644 index 0000000000..98410a0189 --- /dev/null +++ b/.changeset/famous-onions-carry.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for button component btn-icon class. diff --git a/.changeset/fifty-crabs-listen.md b/.changeset/fifty-crabs-listen.md new file mode 100644 index 0000000000..9ea0b0fbc4 --- /dev/null +++ b/.changeset/fifty-crabs-listen.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for general rtl properties. diff --git a/.changeset/forty-chefs-sparkle.md b/.changeset/forty-chefs-sparkle.md new file mode 100644 index 0000000000..c872af21f2 --- /dev/null +++ b/.changeset/forty-chefs-sparkle.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Update migration documentation for bootstrap button component btn-icon class. diff --git a/.changeset/gold-pumas-act.md b/.changeset/gold-pumas-act.md new file mode 100644 index 0000000000..40b4cb2f1f --- /dev/null +++ b/.changeset/gold-pumas-act.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated migration documentation for bootstrap blockquote component. diff --git a/.changeset/happy-geese-greet.md b/.changeset/happy-geese-greet.md new file mode 100644 index 0000000000..bac7945545 --- /dev/null +++ b/.changeset/happy-geese-greet.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for bootstrap button component. diff --git a/.changeset/happy-paws-peel.md b/.changeset/happy-paws-peel.md new file mode 100644 index 0000000000..3740fd4c7a --- /dev/null +++ b/.changeset/happy-paws-peel.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for bootstrap form-switch component. diff --git a/.changeset/honest-shirts-sleep.md b/.changeset/honest-shirts-sleep.md new file mode 100644 index 0000000000..34c53b3362 --- /dev/null +++ b/.changeset/honest-shirts-sleep.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for text-auto class. diff --git a/.changeset/large-candles-move.md b/.changeset/large-candles-move.md new file mode 100644 index 0000000000..40b4cb2f1f --- /dev/null +++ b/.changeset/large-candles-move.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated migration documentation for bootstrap blockquote component. diff --git a/.changeset/light-tomatoes-ring.md b/.changeset/light-tomatoes-ring.md new file mode 100644 index 0000000000..e4a8fc099e --- /dev/null +++ b/.changeset/light-tomatoes-ring.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Added migration documentation jquery accordion component. diff --git a/.changeset/long-zoos-complain.md b/.changeset/long-zoos-complain.md new file mode 100644 index 0000000000..865733ab61 --- /dev/null +++ b/.changeset/long-zoos-complain.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated the migration documentation for close-button. diff --git a/.changeset/modern-candles-grab.md b/.changeset/modern-candles-grab.md new file mode 100644 index 0000000000..0f631a9447 --- /dev/null +++ b/.changeset/modern-candles-grab.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated migration documentation for post custom-select component. diff --git a/.changeset/modern-knives-cheer.md b/.changeset/modern-knives-cheer.md new file mode 100644 index 0000000000..5dbe857c9f --- /dev/null +++ b/.changeset/modern-knives-cheer.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for required form-label class. diff --git a/.changeset/nervous-dodos-own.md b/.changeset/nervous-dodos-own.md new file mode 100644 index 0000000000..43c26c436f --- /dev/null +++ b/.changeset/nervous-dodos-own.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Removed alert-fixed-bottom class requirement from bootstrap alert component. diff --git a/.changeset/nervous-houses-provide.md b/.changeset/nervous-houses-provide.md new file mode 100644 index 0000000000..7c156458ca --- /dev/null +++ b/.changeset/nervous-houses-provide.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for bootstrap blockquote component with footer. diff --git a/.changeset/nice-steaks-listen.md b/.changeset/nice-steaks-listen.md new file mode 100644 index 0000000000..23174c76eb --- /dev/null +++ b/.changeset/nice-steaks-listen.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated migration documentation for bootstrap form-select component. diff --git a/.changeset/orange-zebras-pretend.md b/.changeset/orange-zebras-pretend.md new file mode 100644 index 0000000000..d0e5098777 --- /dev/null +++ b/.changeset/orange-zebras-pretend.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for form-checkbox component. diff --git a/.changeset/perfect-spoons-taste.md b/.changeset/perfect-spoons-taste.md new file mode 100644 index 0000000000..1305561252 --- /dev/null +++ b/.changeset/perfect-spoons-taste.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for post custom-select component. diff --git a/.changeset/plenty-jobs-tap.md b/.changeset/plenty-jobs-tap.md new file mode 100644 index 0000000000..3a47d34218 --- /dev/null +++ b/.changeset/plenty-jobs-tap.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated migration documentation rtl helper classes. diff --git a/.changeset/pretty-actors-pull.md b/.changeset/pretty-actors-pull.md new file mode 100644 index 0000000000..5ec5ea5016 --- /dev/null +++ b/.changeset/pretty-actors-pull.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated migration documentation for bootstrap form-switch component. diff --git a/.changeset/purple-bees-whisper.md b/.changeset/purple-bees-whisper.md new file mode 100644 index 0000000000..73a64c709e --- /dev/null +++ b/.changeset/purple-bees-whisper.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for forms elements. diff --git a/.changeset/purple-dryers-double.md b/.changeset/purple-dryers-double.md new file mode 100644 index 0000000000..4a308dee0f --- /dev/null +++ b/.changeset/purple-dryers-double.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added floating-labels migration for bootstrap form-control, form-select and textarea components. diff --git a/.changeset/quiet-buttons-jog.md b/.changeset/quiet-buttons-jog.md new file mode 100644 index 0000000000..b395868652 --- /dev/null +++ b/.changeset/quiet-buttons-jog.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Moved form-label class requirement form controls to forms migration documentation. diff --git a/.changeset/rare-mirrors-tap.md b/.changeset/rare-mirrors-tap.md new file mode 100644 index 0000000000..a8dfcc075d --- /dev/null +++ b/.changeset/rare-mirrors-tap.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for bootstrap badge component. diff --git a/.changeset/rare-students-complain.md b/.changeset/rare-students-complain.md new file mode 100644 index 0000000000..6caf464844 --- /dev/null +++ b/.changeset/rare-students-complain.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Fixed and updated general classes bg-opacity migration documentation. diff --git a/.changeset/silly-donkeys-shake.md b/.changeset/silly-donkeys-shake.md new file mode 100644 index 0000000000..5d1b81584f --- /dev/null +++ b/.changeset/silly-donkeys-shake.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated migration documentation for ngbootstrap buttons component. diff --git a/.changeset/spicy-boats-judge.md b/.changeset/spicy-boats-judge.md new file mode 100644 index 0000000000..3fc7c257d3 --- /dev/null +++ b/.changeset/spicy-boats-judge.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Upated migration documentation for bootstrap `form-control`, `form-select` and `textarea` components. diff --git a/.changeset/swift-moles-deliver.md b/.changeset/swift-moles-deliver.md new file mode 100644 index 0000000000..fc4a7ca28e --- /dev/null +++ b/.changeset/swift-moles-deliver.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for sr-only and sr-only-focusable classes. diff --git a/.changeset/swift-tigers-accept.md b/.changeset/swift-tigers-accept.md new file mode 100644 index 0000000000..6c29b4a0ba --- /dev/null +++ b/.changeset/swift-tigers-accept.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for bootstrap blockquote component. diff --git a/.changeset/tender-candles-promise.md b/.changeset/tender-candles-promise.md new file mode 100644 index 0000000000..c6484782cd --- /dev/null +++ b/.changeset/tender-candles-promise.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for post subnavigation component. diff --git a/.changeset/tough-paws-cross.md b/.changeset/tough-paws-cross.md new file mode 100644 index 0000000000..7f1cabf46f --- /dev/null +++ b/.changeset/tough-paws-cross.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Updated migration documentation post accordion component. diff --git a/.changeset/twenty-roses-mix.md b/.changeset/twenty-roses-mix.md new file mode 100644 index 0000000000..dea1cdc412 --- /dev/null +++ b/.changeset/twenty-roses-mix.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for bootstrap form-radio component. diff --git a/.changeset/wet-poems-love.md b/.changeset/wet-poems-love.md new file mode 100644 index 0000000000..58b173f03e --- /dev/null +++ b/.changeset/wet-poems-love.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-demo': patch +--- + +Added migration documentation for general classes sr-only and sr-only-focusable. diff --git a/.changeset/wild-beds-reflect.md b/.changeset/wild-beds-reflect.md new file mode 100644 index 0000000000..7c585bf50a --- /dev/null +++ b/.changeset/wild-beds-reflect.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for post topic-teaser component. diff --git a/.changeset/witty-laws-rush.md b/.changeset/witty-laws-rush.md new file mode 100644 index 0000000000..ba030d2db1 --- /dev/null +++ b/.changeset/witty-laws-rush.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': minor +--- + +Added automatic migration for ngbootstrap buttons component. diff --git a/packages/demo/src/app/app.component.html b/packages/demo/src/app/app.component.html index 7a1a8ef424..418b22d500 100644 --- a/packages/demo/src/app/app.component.html +++ b/packages/demo/src/app/app.component.html @@ -9,6 +9,8 @@ Bootstrap
+ Accordion Alert / Notification
- Accordion Custom select Using JavaScript into your component.

-
-

- The detail summary styles have been removed due to accessibility issues with the <summary> element. -
- We recommend to use one of the accordion components instead. -

-
- - + + - Label for screenreaders + Label for screenreaders diff --git a/packages/demo/src/app/home/home.component.html b/packages/demo/src/app/home/home.component.html index d91ca198ec..2cb9d858d5 100644 --- a/packages/demo/src/app/home/home.component.html +++ b/packages/demo/src/app/home/home.component.html @@ -277,12 +277,12 @@
Paths & Files
/>
@@ -305,34 +305,48 @@
Paths & Files
Default (index) for default Post styles:
- @use "@*****/common-web-frontend/post.scss"; + + @use "@*****/common-web-frontend/post.scss"; + to - @use "@swisspost/design-system-styles"; + @use "@swisspost/design-system-styles";
  • Intranet for default Post styles + intranet header styles:
    - @use "@*****/common-web-frontend/post-intranet"; + + @use "@*****/common-web-frontend/post-intranet"; + to - @use "@swisspost/design-system-styles/intranet.scss"; + + @use "@swisspost/design-system-styles/intranet.scss"; +
  • Basics for resets, typography, utilities and grid only (use this for small pages with lots of custom styles):
    - @use "@*****/common-web-frontend/post-basics.scss"; + + @use "@*****/common-web-frontend/post-basics.scss"; + to - @use "@swisspost/design-system-styles/basics.scss"; + + @use "@swisspost/design-system-styles/basics.scss"; +
  • Core for functions, mixins, variables and placeholders:
    - @use "@*****/common-web-frontend/_cwf.scss"; + + @use "@*****/common-web-frontend/_cwf.scss"; + to - @use "@swisspost/design-system-styles/core.scss"; + + @use "@swisspost/design-system-styles/core.scss"; +
  • @@ -357,10 +371,10 @@
    Paths & Files
    /> @@ -647,8 +661,8 @@
    Classes
    /> @@ -665,7 +679,7 @@
    Classes
    /> @@ -1111,6 +1127,23 @@
    Card
    Forms
  • @@ -1250,13 +1266,18 @@
    From Select
    /> + ⚙️ breaking Renamed select, multi-select and custom-select classes. + +
  • @@ -1273,7 +1294,7 @@
    From Select
    />
  • @@ -1285,35 +1306,6 @@
    From Select

    - -
    -
    From Select Multiple
    - -

    - See - documentation - for more detailed informations. -

    -
    -
    From Textarea
    @@ -1332,25 +1324,7 @@
    From Textarea
    /> -
    - -
  • -
    - - -
  • @@ -1362,141 +1336,148 @@
    From Textarea

    - +
    -
    From Range
    +
    Form File

    See - documentation + documentation for more detailed informations.

    - +
    -
    From File
    +
    From Checkbox

    See - documentation + documentation for more detailed informations.

    - +
    -
    From Checkbox
    +
    From Radio

    See - documentation + documentation for more detailed informations.

    - +
    -
    From Radio
    +
    Form Switch
    + +

    + The + switch + component has been moved to the + bootstrap + section , because bootstrap version 5.x provides such a component itself. + + If you import this component manually, you need to update to the new file path. + +

    +

    See - documentation + documentation for more detailed informations.

    @@ -1632,7 +1646,7 @@
    Buttons
    /> @@ -1649,7 +1663,7 @@
    Buttons
    /> @@ -1695,14 +1709,14 @@
    DatePicker
    /> + breaking Removed padding variables. + + @@ -1730,7 +1744,7 @@
    Modal
    /> @@ -1748,8 +1762,8 @@
    Modal
    /> + ⚙️ breaking Renamed class .close to .btn-close. + @@ -1762,43 +1776,60 @@
    Modal
    - +
    - +
    -
    Detail Summary
    +
    Accordion
    • - +
    +
    +
    + + +
    + +
    +
    +
    Accordion
    @@ -1806,69 +1837,44 @@
    Accordion
  • -
  • + +
    + + +
    +
    Custom-Select
    +
    • -
    • -
    • -
      - - - -
      -
    • -
    -

    - See - documentation - for more detailed informations. -

    -
    - - -
    -
    Custom-Select
    -
    • Custom-Select />
    • @@ -1897,7 +1903,7 @@
      Custom-Select
      />
    @@ -1910,42 +1916,6 @@
    Custom-Select

    - -
    -
    Sizing
    -
      -
    • -
      - - - -
      -
    • -
    -

    - See - documentation - for more detailed informations. -

    -
    -
    Subnavigation
    @@ -1975,124 +1945,6 @@
    Subnavigation

    - -
    -
    Switch
    - -

    - The - switch - component has been moved to the - bootstrap - section , because bootstrap version 5.x provides such a component itself. - - If you import this component manually, you need to update to the new file paths. - -

    - -
      -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    • -
      - - - -
      -
    • -
    -

    - See - documentation - for more detailed informations. -

    -
    -
    Topic Teaser
    @@ -2110,7 +1962,7 @@
    Topic Teaser
    />