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
fix(BOOK-293): changed variants and props on IconButton component
* fix(BOOK-293): changed variants and props on IconButton component
* fix(BOOK-293): inherit color for icon
Approved-by: Bianca Widstam
Approved-by: Christel Westerberg
* feat(BOOK-293): Adjusted padding of the buttons to match Figma design
* feat(BOOK-293): Updated variants for IconButton
* feat(BOOK-113): Updated focus indicators on buttons and added default focus ring color
* feat(BOOK-293): Replaced buttons inside booking widget
Approved-by: Christel Westerberg
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(SW-3644): Storybook v10
* Auto update to Storybook v10
* Add scandic theme and logo
* Update yarn.lock
* Update formatting of package.json
* Update vitest config and playwright plugin
* Remove vitest 4 update
* Re-added comment
* Update the Typography component to explicitly return React.ReactNode
* Add an explicit type assertion to the export
* Add an explicit type assertion to the export for Checkbox
* Explicit return type assertion
* Add an explicit type assertion to the export
* Update @types/react and fix ts warnings
* Updated typings
Approved-by: Linus Flood
Approved-by: Matilda Landström
feat(BOOK-119): replace radio group on select rate with buttons and make them accessible
* feat(BOOK-119): replace radio group on select rate with buttons and make them accessible
* feat(BOOK-119): update roomNR
* feat(BOOK-119): update onpress and buttonOverlay name change
Approved-by: Erik Tiekstra
feat(SW-3581): Set price colors to scandic red
* Set price colors to scandic red
* Remove comment
Approved-by: Bianca Widstam
Approved-by: Joakim Jäderberg
Fix/book 425 color fix
* fix(BOOK-425): fixed color on campaign banner and pprice alignment issue
* fix(BOOK-425): fixed release branch colors on booking code chip
* removed new css class which wasn't needed
Approved-by: Joakim Jäderberg
fix(BOOK-425): removed fallback and updated to correct color tokens
* fix(BOOK-425): removed fallback and updated to correct color tokens
Approved-by: Bianca Widstam
fix(BOOK-425): fixed the color on campaign member rate name
* fix(BOOK-425): fixed the color on standard rate name
* listening to api resonse displayPriceRed again
* updated the conditional css class syntax
Approved-by: Bianca Widstam
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/SW-1719 strikethrough rates
* feat(SW-1719): Strikethrough rate if logged in on regular rate cards
* feat(SW-1719): Strikethrough rate if logged in on rate summary
* feat(SW-1719): Strikethrough rate if logged in on mobile rate summary
* feat(SW-1719): Strikethrough rate if logged in on enter details
* feat(SW-1719): Strikethrough rate support for multiple rooms
* feat(SW-1719): booking receipt fixes on confirmation page
* feat(SW-1719): improve initial total price calculation
* feat: harmonize enter details total price to use one and the same function
Approved-by: Michael Zetterberg
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
* fix(SW-1563): Added new IconButton component to the design system and removed Icon variant inside the Button component
* fix(SW-1563): Added buttons around clickable images and changed to design system components
* fix(SW-1563): Renamed variants to match Figma
* fix(SW-1563): Renamed AriaButton to ButtonRAC
Approved-by: Michael Zetterberg
Approved-by: Matilda Landström
Switches out all the old icons to new ones, and moves them to the design system. The new icons are of three different types: Materialise Symbol, Nucleo, and Customized. Also adds further mapping between facilities/amenities and icons.
Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
add transparent border to rateCard and make appoximateRate optional
* add transparent border to rateCard and make appoximateRate optional
Approved-by: Simon.Emanuelsson
feat(SW-1435): Added RateCard component to design system
* feat(SW-1435): Added new component: RateCard to design system
* feat: added reward night points rate card
* fix: set svg icon color to "currentColor" to make them more reusable
* fix: added click handler for info icon
* fix: added selectedRate
Approved-by: Arvid Norlin