Feature/storybook tests * feature: add interaction tests for storybook and upgrade storybook@9 * add a11y testing for storybook * Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/storybook-tests * Test and build only required packages * . * . * . * . * . * . * . * disable playwright tests in netlify ci * . * debug out process.env * don't run playwright on CI * remove unused netlify-plugin-playwright-cache * . * . * . * . * . * . * remove turbo dependancy to design-system#test * merge * merge Approved-by: Anton Gunnarsson
236 lines
13 KiB
JSON
236 lines
13 KiB
JSON
{
|
|
"name": "@scandic-hotels/design-system",
|
|
"private": true,
|
|
"version": "1.0.0-beta.1",
|
|
"type": "module",
|
|
"exports": {
|
|
"./Accordion": "./lib/components/Accordion/index.tsx",
|
|
"./Accordion/AccordionItem": "./lib/components/Accordion/AccordionItem/index.tsx",
|
|
"./BackToTopButton": "./lib/components/BackToTopButton/index.tsx",
|
|
"./Body": "./lib/components/Body/index.tsx",
|
|
"./Button": "./lib/components/Button/index.tsx",
|
|
"./ButtonLink": "./lib/components/ButtonLink/index.tsx",
|
|
"./Caption": "./lib/components/Caption/index.tsx",
|
|
"./Card": "./lib/components/Card/index.tsx",
|
|
"./ChipButton": "./lib/components/ChipButton/index.tsx",
|
|
"./ChipLink": "./lib/components/ChipLink/index.tsx",
|
|
"./Chips": "./lib/components/Chips/index.tsx",
|
|
"./DeprecatedSelect": "./lib/components/DeprecatedSelect/index.tsx",
|
|
"./Divider": "./lib/components/Divider/index.tsx",
|
|
"./Footnote": "./lib/components/Footnote/index.tsx",
|
|
"./Form/Checkbox": "./lib/components/Form/Checkbox/index.tsx",
|
|
"./Form/Country": "./lib/components/Form/Country/index.tsx",
|
|
"./Form/Date": "./lib/components/Form/Date/index.tsx",
|
|
"./Form/ErrorMessage": "./lib/components/Form/ErrorMessage/index.tsx",
|
|
"./Form/Phone": "./lib/components/Form/Phone/index.tsx",
|
|
"./Form/RadioCard": "./lib/components/Form/RadioCard/index.tsx",
|
|
"./IconChip": "./lib/components/IconChip/index.tsx",
|
|
"./Image": "./lib/components/Image.tsx",
|
|
"./ImageContainer": "./lib/components/ImageContainer/index.tsx",
|
|
"./ImageFallback": "./lib/components/ImageFallback/index.tsx",
|
|
"./ImageGallery": "./lib/components/ImageGallery/index.tsx",
|
|
"./Input": "./lib/components/Input/index.tsx",
|
|
"./Label": "./lib/components/Label/index.tsx",
|
|
"./Lightbox": "./lib/components/Lightbox/index.tsx",
|
|
"./Link": "./lib/components/Link/index.tsx",
|
|
"./OldDSButton": "./lib/components/OldDSButton/index.tsx",
|
|
"./OpeningHours": "./lib/components/OpeningHours/index.tsx",
|
|
"./Select": "./lib/components/Select/index.tsx",
|
|
"./SkeletonShimmer": "./lib/components/SkeletonShimmer/index.tsx",
|
|
"./SidePeek": "./lib/components/SidePeek/index.tsx",
|
|
"./SidePeek/SidePeekProvider": "./lib/components/SidePeek/SidePeekContext/SidePeekProvider.tsx",
|
|
"./Subtitle": "./lib/components/Subtitle/index.tsx",
|
|
"./Switch": "./lib/components/Switch/index.tsx",
|
|
"./Table": "./lib/components/Table/index.tsx",
|
|
"./Title": "./lib/components/Title/index.tsx",
|
|
"./Tooltip": "./lib/components/Tooltip/index.tsx",
|
|
"./Typography": "./lib/components/Typography/index.tsx",
|
|
"./RegularRateCard": "./lib/components/RateCard/Regular/index.tsx",
|
|
"./CampaignRateCard": "./lib/components/RateCard/Campaign/index.tsx",
|
|
"./CodeRateCard": "./lib/components/RateCard/Code/index.tsx",
|
|
"./ParkingInformation": "./lib/components/ParkingInformation/index.tsx",
|
|
"./PointsRateCard": "./lib/components/RateCard/Points/index.tsx",
|
|
"./Preamble": "./lib/components/Preamble/index.tsx",
|
|
"./NoRateAvailableCard": "./lib/components/RateCard/NoRateAvailable/index.tsx",
|
|
"./IconButton": "./lib/components/IconButton/index.tsx",
|
|
"./Icons": "./lib/components/Icons/index.tsx",
|
|
"./Icons/IconByCSSelect": "./lib/components/Icons/IconByCSSelect.tsx",
|
|
"./Icons/IconByIconName": "./lib/components/Icons/IconByIconName.tsx",
|
|
"./Icons/IllustrationByIconName": "./lib/components/Icons/IllustrationByIconName.ts",
|
|
"./Icons/iconName": "./lib/components/Icons/iconName.ts",
|
|
"./Icons/BathroomCabinetIcon": "./lib/components/Icons/Nucleo/Amenities_Facilities/bathroom-cabinet-2.tsx",
|
|
"./Icons/BedHotelIcon": "./lib/components/Icons/Customised/Amenities_Facilities/BedHotel.tsx",
|
|
"./Icons/BedIcon": "./lib/components/Icons/Illustrations/Bed.tsx",
|
|
"./Icons/BouquetIcon": "./lib/components/Icons/Nucleo/Benefits/bouquet.tsx",
|
|
"./Icons/BowlingPinsIcon": "./lib/components/Icons/Nucleo/Experiences/bowling-pins.tsx",
|
|
"./Icons/BunkBedIcon": "./lib/components/Icons/Customised/Amenities_Facilities/MdiBunkBedOutline.tsx",
|
|
"./Icons/ChipsIcon": "./lib/components/Icons/Nucleo/Food/chips-3.tsx",
|
|
"./Icons/CoinIcon": "./lib/components/Icons/Illustrations/Coin.tsx",
|
|
"./Icons/ConferenceRoomIcon": "./lib/components/Icons/Nucleo/Amenities_Facilities/conference-room.tsx",
|
|
"./Icons/CoolingIcon": "./lib/components/Icons/Customised/Amenities_Facilities/Cooling.tsx",
|
|
"./Icons/CouchTableIcon": "./lib/components/Icons/Customised/Amenities_Facilities/CouchTable.tsx",
|
|
"./Icons/CroissantCoffeeEggIcon": "./lib/components/Icons/Illustrations/CroissantCoffeeEgg.tsx",
|
|
"./Icons/CutleryOneIcon": "./lib/components/Icons/Illustrations/CutleryOne.tsx",
|
|
"./Icons/CutleryTwoIcon": "./lib/components/Icons/Illustrations/CutleryTwo.tsx",
|
|
"./Icons/DiamondAddIcon": "./lib/components/Icons/Customised/Benefits/DiamondAdd.tsx",
|
|
"./Icons/DiscountIcon": "./lib/components/Icons/Nucleo/Benefits/discount-2-2.tsx",
|
|
"./Icons/FilledDiscountIcon": "./lib/components/Icons/Nucleo/Benefits/FilledDiscount.tsx",
|
|
"./Icons/DoorIcon": "./lib/components/Icons/Nucleo/Amenities_Facilities/door-2.tsx",
|
|
"./Icons/DowntownCamperIcon": "./lib/components/Icons/Logos/DowntownCamper.tsx",
|
|
"./Icons/FacebookIcon": "./lib/components/Icons/Customised/Socials/Facebook.tsx",
|
|
"./Icons/FootStoolIcon": "./lib/components/Icons/Customised/Amenities_Facilities/FootStool.tsx",
|
|
"./Icons/GiftOpenIcon": "./lib/components/Icons/Illustrations/GiftOpen.tsx",
|
|
"./Icons/GrandHotelOsloIcon": "./lib/components/Icons/Logos/GrandHotelOslo.tsx",
|
|
"./Icons/HairdryerIcon": "./lib/components/Icons/Customised/Amenities_Facilities/Hairdryer.tsx",
|
|
"./Icons/HairdresserIcon": "./lib/components/Icons/Nucleo/Amenities_Facilities/hairdresser-1.tsx",
|
|
"./Icons/HandKeyIcon": "./lib/components/Icons/Illustrations/HandKey.tsx",
|
|
"./Icons/HandSoapIcon": "./lib/components/Icons/Customised/Amenities_Facilities/HandSoap.tsx",
|
|
"./Icons/HaymarketIcon": "./lib/components/Icons/Logos/Haymarket.tsx",
|
|
"./Icons/HotelNightIcon": "./lib/components/Icons/Illustrations/HotelNight.tsx",
|
|
"./Icons/HotelNorgeIcon": "./lib/components/Icons/Logos/HotelNorge.tsx",
|
|
"./Icons/IceMachineIcon": "./lib/components/Icons/Customised/Amenities_Facilities/IceMachine.tsx",
|
|
"./Icons/InstagramIcon": "./lib/components/Icons/Customised/Socials/Instagram.tsx",
|
|
"./Icons/KidsIcon": "./lib/components/Icons/Illustrations/Kids.tsx",
|
|
"./Icons/KidsMocktailIcon": "./lib/components/Icons/Illustrations/KidsMocktail.tsx",
|
|
"./Icons/MagicWandIcon": "./lib/components/Icons/Illustrations/MagicWand.tsx",
|
|
"./Icons/MarskiLogoIcon": "./lib/components/Icons/Logos/MarskiLogo.tsx",
|
|
"./Icons/MassageIcon": "./lib/components/Icons/Customised/Amenities_Facilities/Massage.tsx",
|
|
"./Icons/MaterialIcon": "./lib/components/Icons/MaterialIcon/index.tsx",
|
|
"./Icons/MaterialIcon/MaterialSymbol": "./lib/components/Icons/MaterialIcon/MaterialSymbol/index.tsx",
|
|
"./Icons/MinimizeIcon": "./lib/components/Icons/Customised/UI/Minimize.tsx",
|
|
"./Icons/MirrorIcon": "./lib/components/Icons/Customised/Amenities_Facilities/Mirror.tsx",
|
|
"./Icons/MoneyHandIcon": "./lib/components/Icons/Illustrations/MoneyHand.tsx",
|
|
"./Icons/BedBunkExtraIcon": "./lib/components/Icons/Illustrations/BedBunkExtra.tsx",
|
|
"./Icons/BedGenericIcon": "./lib/components/Icons/Illustrations/BedGeneric.tsx",
|
|
"./Icons/BedBunkIcon": "./lib/components/Icons/Illustrations/BedBunk.tsx",
|
|
"./Icons/HotelLogoIcon": "./lib/components/Icons/Logos/index.tsx",
|
|
"./Icons/BedKingIcon": "./lib/components/Icons/Illustrations/BedKing.tsx",
|
|
"./Icons/BedQueenIcon": "./lib/components/Icons/Illustrations/BedQueen.tsx",
|
|
"./Icons/BedSofaIcon": "./lib/components/Icons/Illustrations/BedSofa.tsx",
|
|
"./Icons/BedSofaExtraIcon": "./lib/components/Icons/Illustrations/BedSofaExtra.tsx",
|
|
"./Icons/BedTwinIcon": "./lib/components/Icons/Illustrations/BedTwin.tsx",
|
|
"./Icons/BedWallExtraIcon": "./lib/components/Icons/Illustrations/BedWallExtra.tsx",
|
|
"./Icons/BreakfastBuffetIcon": "./lib/components/Icons/Illustrations/BreakfastBuffet.tsx",
|
|
"./Icons/NoBreakfastBuffetIcon": "./lib/components/Icons/Illustrations/NoBreakfastBuffet.tsx",
|
|
"./Icons/BedSingleIcon": "./lib/components/Icons/Illustrations/BedSingle.tsx",
|
|
"./Icons/BedPullOutIcon": "./lib/components/Icons/Illustrations/BedPullOut.tsx",
|
|
"./Icons/BedPullOutExtraIcon": "./lib/components/Icons/Illustrations/BedPullOutExtra.tsx",
|
|
"./Icons/MovingBedsIcon": "./lib/components/Icons/Customised/Amenities_Facilities/MovingBeds.tsx",
|
|
"./Icons/PalmTreeIcon": "./lib/components/Icons/Nucleo/Experiences/palm-tree-2.tsx",
|
|
"./Icons/PopcornIcon": "./lib/components/Icons/Nucleo/Food/popcorn-2.tsx",
|
|
"./Icons/RecordPlayerIcon": "./lib/components/Icons/Nucleo/Amenities_Facilities/record-player-3.tsx",
|
|
"./Icons/RoadIcon": "./lib/components/Icons/Customised/Amenities_Facilities/Road.tsx",
|
|
"./Icons/RugIcon": "./lib/components/Icons/Customised/Amenities_Facilities/Rug.tsx",
|
|
"./Icons/SafetyBoxIcon": "./lib/components/Icons/Customised/Amenities_Facilities/SafetyBox.tsx",
|
|
"./Icons/ScandicGoIcon": "./lib/components/Icons/Logos/ScandicGoLogo.tsx",
|
|
"./Icons/ScandicLogoIcon": "./lib/components/Icons/Logos/ScandicLogo.tsx",
|
|
"./Icons/SlippersIcon": "./lib/components/Icons/Customised/Amenities_Facilities/Slippers.tsx",
|
|
"./Icons/SurpriseIcon": "./lib/components/Icons/Illustrations/Surprise.tsx",
|
|
"./Icons/ToiletIcon": "./lib/components/Icons/Nucleo/Amenities_Facilities/toilet-2.tsx",
|
|
"./Icons/TowelIcon": "./lib/components/Icons/Customised/Amenities_Facilities/Towel.tsx",
|
|
"./Icons/TripadvisorIcon": "./lib/components/Icons/Customised/Socials/Tripadvisor.tsx",
|
|
"./Icons/UserPoliceIcon": "./lib/components/Icons/Nucleo/Amenities_Facilities/user-police-2.tsx",
|
|
"./Icons/ViewIcon": "./lib/components/Icons/Customised/Amenities_Facilities/View.tsx",
|
|
"./Icons/VoucherIcon": "./lib/components/Icons/Illustrations/Voucher.tsx",
|
|
"./Icons/WardIcon": "./lib/components/Icons/Customised/Amenities_Facilities/Ward.tsx",
|
|
"./Icons/WindowNotAvailableIcon": "./lib/components/Icons/Customised/Amenities_Facilities/WindowNotAvailable.tsx",
|
|
"./Icons/WoodFloorIcon": "./lib/components/Icons/Customised/Amenities_Facilities/WoodFloor.tsx",
|
|
"./style.css": "./lib/style.css",
|
|
"./base.css": "./lib/base.css",
|
|
"./globals.css": "./lib/globals.css",
|
|
"./impl.css": "./lib/impl.css",
|
|
"./fonts.css": "./lib/fonts.css",
|
|
"./downtown-camper.css": "./lib/styles/downtown-camper.css",
|
|
"./grand-hotel.css": "./lib/styles/grand-hotel.css",
|
|
"./haymarket.css": "./lib/styles/haymarket.css",
|
|
"./hotel-norge.css": "./lib/styles/hotel-norge.css",
|
|
"./marski.css": "./lib/styles/marski.css",
|
|
"./scandic-go.css": "./lib/styles/scandic-go.css",
|
|
"./scandic.css": "./lib/styles/scandic.css"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"sideEffects": [
|
|
"**/*.css"
|
|
],
|
|
"scripts": {
|
|
"dev": "yarn storybook",
|
|
"generate": "cd generate && jiti generate.ts",
|
|
"format": "prettier . --write",
|
|
"build": "yarn build-storybook",
|
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 && tsc",
|
|
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --fix --max-warnings 0 && tsc",
|
|
"storybook": "yarn run generate && storybook dev -p 6006",
|
|
"build-storybook": "storybook build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:s": "vitest --project=storybook",
|
|
"test:watch": "vitest",
|
|
"prepack": "yarn run build",
|
|
"prepare": "husky && yarn run build",
|
|
"check-types": "tsc --noEmit",
|
|
"test:browser": "vitest --config=vitest.browser.config.ts"
|
|
},
|
|
"dependencies": {
|
|
"@scandic-hotels/common": "workspace:*"
|
|
},
|
|
"peerDependencies": {
|
|
"@internationalized/date": "^3.8.0",
|
|
"@radix-ui/react-slot": "^1.2.2",
|
|
"next": "^15",
|
|
"react": "^19.1.0",
|
|
"react-aria-components": "^1.8.0",
|
|
"react-dom": "^19.1.0",
|
|
"react-hook-form": "^7.56.2",
|
|
"react-international-phone": "^4.5.0",
|
|
"react-intl": "^7",
|
|
"usehooks-ts": "3.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/eslintrc": "^3.3.1",
|
|
"@eslint/js": "^9.26.0",
|
|
"@storybook/addon-a11y": "^9.1.2",
|
|
"@storybook/addon-docs": "^9.1.2",
|
|
"@storybook/addon-links": "^9.1.2",
|
|
"@storybook/addon-themes": "^9.1.2",
|
|
"@storybook/addon-vitest": "^9.1.2",
|
|
"@storybook/react-vite": "^9.1.2",
|
|
"@types/css-modules": "^1.0.5",
|
|
"@types/node": "^20.17.17",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@typescript-eslint/eslint-plugin": "^8.32.0",
|
|
"@typescript-eslint/parser": "^8.32.0",
|
|
"@vitejs/plugin-react": "^5.0.0",
|
|
"@vitest/browser": "^3.2.4",
|
|
"class-variance-authority": "^0.7.1",
|
|
"colord": "^2.9.3",
|
|
"copy-to-clipboard": "^3.3.3",
|
|
"deepmerge-ts": "^7.1.5",
|
|
"eslint": "^9",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
"eslint-plugin-storybook": "^9.1.2",
|
|
"glob": "^11.0.2",
|
|
"globals": "^16.1.0",
|
|
"husky": "^9.1.7",
|
|
"jiti": "^1.21.0",
|
|
"lint-staged": "^15.5.2",
|
|
"motion": "^12.10.0",
|
|
"playwright": "^1.54.2",
|
|
"prettier": "^3.5.3",
|
|
"react": "^19.1.0",
|
|
"react-dom": "^19.1.0",
|
|
"rollup": "^4.40.2",
|
|
"rollup-preserve-directives": "^1.1.3",
|
|
"storybook": "^9.1.2",
|
|
"typescript": "^5.8.3",
|
|
"vite": "^6.3.5",
|
|
"vite-plugin-dts": "^4.5.3",
|
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
"vitest": "^3.2.4",
|
|
"vitest-browser-react": "^1.0.1"
|
|
}
|
|
}
|