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(SW-2038): refactor and create wrapper for static map and button
* feat(SW-2038): refactor and create wrapper for static map and button
* feature: use button from design-system over creating a new one
* remove unused fragment
* fix(SW-2038): add removed css
* fix(SW-2038): update fake button component
* fix(SW-2038): move FakeButton to design system
Approved-by: Erik Tiekstra
Approved-by: Joakim Jäderberg
SW-3270 move interactive map to design system or booking flow
* wip
* wip
* merge
* wip
* add support for locales in design-system
* add story for HotelCard
* setup alias
* .
* remove tracking from design-system for hotelcard
* pass isUserLoggedIn
* export design-system-new-deprecated.css from design-system
* Add HotelMarkerByType to Storybook
* Add interactive map to Storybook
* fix reactintl in vitest
* rename env variables
* .
* fix background colors
* add storybook stories for <Link />
* merge
* fix tracking for when clicking 'See rooms' in InteractiveMap
* Merge branch 'master' of bitbucket.org:scandic-swap/web into SW-3270-move-interactive-map-to-design-system-or-booking-flow
* remove deprecated comment
Approved-by: Anton Gunnarsson
feat(SW-3225): Move ParkingInformation to design-system
* Inline ParkingInformation types to remove trpc dependency
* Move ParkingInformation to design-system
* Move numberFormatting to common package
* Add deps to external
* Fix imports and i18n script
* Add common as dependency
* Merge branch 'master' into feat/sw-3225-move-parking-information-to-booking-flow
Approved-by: Linus Flood
feat(SW-2511): hotel page map and marker improvements
* feat(SW-2511): update hotel page map
* fix(SW-2511): fix issue with identical id's for POIs
Approved-by: Anton Gunnarsson
fix(SW-2824): move pin latitude on mobile to make space for hotel card on map
* fix(SW-2824): move pin latitude on mobile to make space for hotel card on map
Approved-by: Anton Gunnarsson
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
feat(SW-2901): add dynamic hotel markers
* feat(SW-2901): add dynamic hotel markers
* fix(SW-2901): update type
Approved-by: Christian Andolf
Approved-by: Erik Tiekstra
Fix/SW-2676 tracking select hotel
* fix(SW-2676): add tracking select hotel
* fix(SW-2676): fix tracking text
* fix(SW-2676): create tracking function
Approved-by: Tobias Johansson
* feat(SW-2429): Removed [contentType]>[uid] and use app router based structure for content types
* feat(SW-2429): Added breadcrumbs to follow contenttype folder structure
* feat(SW-2429): Removed modal/dialog functionality from map views on hotel and destination pages
* fix(SW-2429): Fixed issue with booking widget on meeting pages. Also used same structure for content types
Approved-by: Arvid Norlin
Feat/SW-1549 map improvements
* fix: imported new icon
* refactor: rename component and set map handling to 'greedy'
* fix: show cards for 3s after hover
* refactor: update styles and added HotelPin component
* fix: change from close to back icon
* refactor: update to only use 1 state value for active pin and card
* fix: add click handler when dialog is opened
* fix: performance fixes for the dialog carousel
* fix: added border
* fix: clear timeout on mouseenter
* fix: changed to absolute import
* fix: moved hover state into the store
* fix: renamed store actions
Approved-by: Michael Zetterberg
fix(SW-2181): use fitted bounds to adapt the zooming of the map
* fix(SW-2181): use fitted bounds to adapt the zooming of the map
Approved-by: Michael Zetterberg
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
Migrate to a monorepo setup - step 1
* Move web to subfolder /apps/scandic-web
* Yarn + transitive deps
- Move to yarn
- design-system package removed for now since yarn doesn't
support the parameter for token (ie project currently broken)
- Add missing transitive dependencies as Yarn otherwise
prevents these imports
- VS Code doesn't pick up TS path aliases unless you open
/apps/scandic-web instead of root (will be fixed with monorepo)
* Pin framer-motion to temporarily fix typing issue
https://github.com/adobe/react-spectrum/issues/7494
* Pin zod to avoid typ error
There seems to have been a breaking change in the types
returned by zod where error is now returned as undefined
instead of missing in the type. We should just handle this
but to avoid merge conflicts just pin the dependency for
now.
* Pin react-intl version
Pin version of react-intl to avoid tiny type issue where formatMessage
does not accept a generic any more. This will be fixed in a future
commit, but to avoid merge conflicts just pin for now.
* Pin typescript version
Temporarily pin version as newer versions as stricter and results in
a type error. Will be fixed in future commit after merge.
* Setup workspaces
* Add design-system as a monorepo package
* Remove unused env var DESIGN_SYSTEM_ACCESS_TOKEN
* Fix husky for monorepo setup
* Update netlify.toml
* Add lint script to root package.json
* Add stub readme
* Fix react-intl formatMessage types
* Test netlify.toml in root
* Remove root toml
* Update netlify.toml publish path
* Remove package-lock.json
* Update build for branch/preview builds
Approved-by: Linus Flood