Wrap material icon in a empty suspense boundary
* Wrap material icon in a empty suspense boundary
* skip lazy loading icons
* remove suspense boundary
* Don't import lazy from react when generating icon file
Approved-by: Linus Flood
feat(SW-3695): use svg icons instead of font icons
* feat(icons): use svg instead of font icons
* feat(icons): use webpack/svgr for inlined svgs. Now support for isFilled again
* Merge master
* Remove old font icon
Approved-by: Joakim Jäderberg
fix(SW-3691): Setup one prettier config for whole repo
* Setup prettierrc in root and remove other configs
Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
feat(SW-3636): Storybook structure
* New sections in Storybook sidebar
* Group Storybook content files and add token files for spacing, border radius and shadows
Approved-by: Joakim Jäderberg
Feat/LOY-400 create spend points modal
* feat(LOY-400): Added custom button to my pages overview and skeleton file to custom modal for my points.
* feat(LOY-400): Added custom button to my pages overview and components for custom modal for my points.
* feat(LOY-400): Changed some style and infogridcardover
* feat(LOY-400):Removed custom card components and changed in infoCard: Added imagePosition top, added optional height prop. In Card: Changed Text-wrap styling, added min-width styling to buttons, added optional Icon prop, added optional height prop
* feat(LOY-400):Added linkList, LinkListItem component and messageBanner component. Added granola illustration.
* feat(LOY-400): Removed background in several illustrations. Added component for illustration. Fixed LinkedList and styling for UsePointsButton.
* feat(LOY-400): Added modal to PointsToSpendCard and fixed UsePointsButton.
* fix(LOY-400):added some styling
* feat(LOY-400): Linked Modal to contentstack and fetch the data in cards with UsePointsModal for now
* feat(LOY-400): changed link to aria-component, cleaned up a bit
* feat(LOY-400): Changed height for larger modals in mobile, fixed zod schema for no illustration input, cleaned up
* fix(LOY-400): fixed graphql after rebase
* fix(LOY-400): mini fix
* fix(LOY-400): fixed pr-comments
* fix(LOY-400): fixed some PR-comments
* fix(LOY-400): fixed a PR-comment
* feat(LOY-400): added size prop to ilustration in LinkListItem to be able to use illustrations in IllustrationByIconName
* fix(LOY-400): fixed pr-comments
* Merged in feat/LOY-402-pre-ticked-book-reward-night-in-booking-flow (pull request #3210)
Feat/LOY-402 pre ticked book reward night in booking flow
* feat(LOY-402): Changed UsePointsModal structure to handle button actions in card.
* feat(LOY-402): added functionality for book now button
* feat(LOY-400): pr comment fix
* feat(LOY-402): transformed the contentstack data
* fix(LOY-402): fixed pr comments
Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Anton Gunnarsson
Approved-by: Matilda Landström
* Merged in feat/LOY-404-add-tracking-for-spend-points-modal (pull request #3229)
Feat/LOY-404 add tracking for spend points modal
* feat(LOY-402): Changed UsePointsModal structure to handle button actions in card.
* feat(LOY-402): added functionality for book now button
* feat(LOY-400): pr comment fix
* feat(LOY-402): transformed the contentstack data
* feat(LOY-404): added tracking
* fix(LOY-404): fix for session storage removal of bookNowFromPointsModal
* feat(LOY-404): added consts
* fix(LOY-404): moved foxusWidget const
* fix(LOY-404): moved BOOKING_WIDGET_STATE const
* fix(LOY-404):fix
Approved-by: Matilda Landström
* fix(LOY-400): some fixes
* feat(LOY-400): created linkList storybook
Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Matilda Landström
Feature/SW-3595 Add info boxes to SAS start page & Eurobonus alert to select-hotel page on SAS
* wip
* feat(SW-3595): Add info boxes to SAS start page
* Add InfoBox to design-system
* Add background gradient to SAS start page
* update variable naming and conditionalize the eurobonus message on select-hotel
* SAS startpage update default message
* make select-hotel a bit more generic with slot={} instead of alert={}
Approved-by: Anton Gunnarsson
* feat(BOOK-117): Added aria-label to Scandic Friends levels
* feat(BOOK-117): Added aria-label to hotel logos
* feat(BOOK-117): Added alt text to app download images
* feat(BOOK-117): Added same logo component to footer as the one in the header
* feat(BOOK-117): Added aria attributes to icons similar to how we handled MaterialIcon aria attributes
Approved-by: Bianca Widstam
Approved-by: Matilda Landström
feat(BOOK-522): align items in topmenu, header and booking widget
* feat(BOOK-522): align items in topmenu, header and booking widget
* Delete old css variable and use new
* Fixed underline on icons
Approved-by: Erik Tiekstra
Feature/transpile design system
* remove example, we should use storybook instead
* remove example, we should use storybook instead
* css-modules cannot have :root, moved affected css-variables to globals.css
* .
* scandic-web no longer depends on design-system#build
* * Update readme
* Remove test code
Approved-by: Anton Gunnarsson
feat(LOY-203): Enable Opening Team Member Card from Employee Benefits Page When Connected
* feat(LOY-203): add support for opening team member card modal from employee benefits page when connected
* fix(LOY-203): add id_card to material symbol icons
* fix(LOY-203): remove uneeded dtmc btb style
Approved-by: Erik Tiekstra
Approved-by: Linus Flood
fix: as a temporary fix hide booking code switcher and add a way to do a search without bookingcode
* fix: as a temporary fix hide booking code switcher and add a way to do a search without bookingcode
Approved-by: Linus Flood
Feat/SW-2851: Add The Dock Signature hotel logo and marker
* feat(SW-2851): Add The Doc as signature hotel
* chore(SW-2851): add logo
* chore(SW-2851): add marker
Approved-by: Erik Tiekstra
chore (SW-834): Upgrade to Next 15
* wip: apply codemod and upgrade swc plugin
* wip: design-system to react 19, fix issues from async (search)params
* wip: fix remaining issues from codemod
serverClient is now async because context use headers()
getLang is now async because it uses headers()
* Minor cleanup
* Inline react-material-symbols package
Package is seemingly not maintained any more and doesn't support
React 19. This copies the package source into `design-system`,
makes the necessary changes for 19 and export it for others to use.
* Fix missing awaits
* Disable modal exit animations
Enabling modal exit animations via isExiting prop is causing
modals to be rendered in "hidden" state and never unmount.
Seems to be an issue with react-aria-components,
see https://github.com/adobe/react-spectrum/issues/7563.
Can probably be fixed by rewriting to a solution similar to
https://react-spectrum.adobe.com/react-aria/examples/framer-modal-sheet.html
* Remove unstable cache implementation and use in memory cache locally
* Fix ref type in SelectFilter
* Use cloneElement to add key prop to element
Approved-by: Linus Flood
Feat/SW-1890 New Breakfast Component Design
* refactor(SW-1890): Replace BreakfastChoiceCard with RadioCard component and update styles
- Removed BreakfastChoiceCard component and its associated styles.
- extemded RadioCard component to additional UI.
- Updated breakfast.module.css to adjust container width.
- Added new properties for subtitleSecondary and description in RadioCard.
- Updated translations for breakfast-related messages in en.json.
* feat(SW-1890): Add hover state to RadioCard
* chore(SW1890): Update translation for breakfast cost message to clarify age range
* chore(SW-1890): Updated breakfast cost display to use formatPrice utility
* fix(SW-1890): Set fixed size for CoffeeIcon component
* fix(SW-1890): Add missing translations for breakfast-related messages
* feat(SW-1890): Introduce new breakfast icons and update Breakfast component
- Replaced CoffeeIcon with BreakfastBuffetIcon and NoBreakfastBuffetIcon in the Breakfast component.
- Added new BreakfastBuffetIcon and NoBreakfastBuffetIcon components to the design system.
- Updated imports in the Breakfast component to reflect the new icons.
Approved-by: Christian Andolf
Fix lint issues in design-system and scandic-web
* Remove unused color prop from LogoAndIllustrationProps to fix lint issues
* Fix lint issues in web
* Fix logos type
Approved-by: Joakim Jäderberg