@tui-cruises/mein-schiff-web-react-component-library 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +14 -0
- package/README.md +26 -0
- package/custom.d.ts +14 -0
- package/icons/icons/360.tsx +20 -0
- package/icons/icons/add-circle.tsx +26 -0
- package/icons/icons/airplane.tsx +20 -0
- package/icons/icons/anchor.tsx +20 -0
- package/icons/icons/angle-tool.tsx +26 -0
- package/icons/icons/arrow-down.tsx +20 -0
- package/icons/icons/arrow-left.tsx +20 -0
- package/icons/icons/arrow-right.tsx +20 -0
- package/icons/icons/at.tsx +20 -0
- package/icons/icons/baggage.tsx +20 -0
- package/icons/icons/balcony.tsx +20 -0
- package/icons/icons/bathroom.tsx +32 -0
- package/icons/icons/beach.tsx +20 -0
- package/icons/icons/bed.tsx +26 -0
- package/icons/icons/bell.tsx +20 -0
- package/icons/icons/bording.tsx +20 -0
- package/icons/icons/cabins.tsx +20 -0
- package/icons/icons/calendar.tsx +32 -0
- package/icons/icons/cancel.tsx +20 -0
- package/icons/icons/cash.tsx +44 -0
- package/icons/icons/check-circle.tsx +18 -0
- package/icons/icons/check.tsx +20 -0
- package/icons/icons/circle.tsx +20 -0
- package/icons/icons/clear.tsx +24 -0
- package/icons/icons/clock-rotate-right.tsx +20 -0
- package/icons/icons/clock.tsx +26 -0
- package/icons/icons/cloud-sunny.tsx +43 -0
- package/icons/icons/cloud.tsx +20 -0
- package/icons/icons/compass.tsx +26 -0
- package/icons/icons/delete-circle.tsx +26 -0
- package/icons/icons/departure.tsx +20 -0
- package/icons/icons/details.tsx +20 -0
- package/icons/icons/diamond.tsx +20 -0
- package/icons/icons/edit-pencil.tsx +20 -0
- package/icons/icons/excellence.tsx +20 -0
- package/icons/icons/expand.tsx +20 -0
- package/icons/icons/eye-closed.tsx +20 -0
- package/icons/icons/eye-empty.tsx +26 -0
- package/icons/icons/eye-off.tsx +32 -0
- package/icons/icons/eye.tsx +26 -0
- package/icons/icons/fallback.tsx +26 -0
- package/icons/icons/filter.tsx +20 -0
- package/icons/icons/flag.tsx +20 -0
- package/icons/icons/fog.tsx +22 -0
- package/icons/icons/glases.tsx +28 -0
- package/icons/icons/group.tsx +32 -0
- package/icons/icons/heart-filled.tsx +20 -0
- package/icons/icons/heart.tsx +20 -0
- package/icons/icons/help-circle.tsx +24 -0
- package/icons/icons/home.tsx +22 -0
- package/icons/icons/humidity.tsx +30 -0
- package/icons/icons/impressions.tsx +20 -0
- package/icons/icons/inclusive-services.tsx +20 -0
- package/icons/icons/index.ts +141 -0
- package/icons/icons/info-empty.tsx +26 -0
- package/icons/icons/language.tsx +20 -0
- package/icons/icons/lifebuoy.tsx +30 -0
- package/icons/icons/loading.tsx +18 -0
- package/icons/icons/location.tsx +24 -0
- package/icons/icons/log-in.tsx +26 -0
- package/icons/icons/log-out.tsx +26 -0
- package/icons/icons/mail-open.tsx +20 -0
- package/icons/icons/map.tsx +20 -0
- package/icons/icons/maps-arrow-diagonal.tsx +20 -0
- package/icons/icons/media-image-list.tsx +32 -0
- package/icons/icons/menu.tsx +21 -0
- package/icons/icons/metropolis.tsx +20 -0
- package/icons/icons/minus.tsx +20 -0
- package/icons/icons/more-horiz.tsx +35 -0
- package/icons/icons/more-vert.tsx +35 -0
- package/icons/icons/mostly-cloudy-night.tsx +24 -0
- package/icons/icons/ms-ship.tsx +20 -0
- package/icons/icons/music.tsx +20 -0
- package/icons/icons/nav-arrow-down.tsx +20 -0
- package/icons/icons/nav-arrow-left.tsx +20 -0
- package/icons/icons/nav-arrow-right.tsx +20 -0
- package/icons/icons/nav-arrow-up.tsx +20 -0
- package/icons/icons/no-wifi.tsx +18 -0
- package/icons/icons/old-trips.tsx +20 -0
- package/icons/icons/percentage.tsx +20 -0
- package/icons/icons/phone.tsx +20 -0
- package/icons/icons/pin.tsx +20 -0
- package/icons/icons/play.tsx +20 -0
- package/icons/icons/plus-circle.tsx +20 -0
- package/icons/icons/plus.tsx +20 -0
- package/icons/icons/point.tsx +15 -0
- package/icons/icons/rain.tsx +22 -0
- package/icons/icons/receipt.tsx +20 -0
- package/icons/icons/refresh-double.tsx +32 -0
- package/icons/icons/search.tsx +26 -0
- package/icons/icons/security-pass.tsx +26 -0
- package/icons/icons/settings.tsx +20 -0
- package/icons/icons/share-ios.tsx +26 -0
- package/icons/icons/ship-account.tsx +20 -0
- package/icons/icons/ship-info.tsx +20 -0
- package/icons/icons/ship-position.tsx +27 -0
- package/icons/icons/shooting-stars.tsx +28 -0
- package/icons/icons/sleet.tsx +22 -0
- package/icons/icons/snow-flake.tsx +20 -0
- package/icons/icons/snow.tsx +22 -0
- package/icons/icons/sofa.tsx +32 -0
- package/icons/icons/star-dashed.tsx +20 -0
- package/icons/icons/star-filled.tsx +25 -0
- package/icons/icons/star-half-dashed.tsx +26 -0
- package/icons/icons/star.tsx +20 -0
- package/icons/icons/substract.tsx +26 -0
- package/icons/icons/sun-light.tsx +42 -0
- package/icons/icons/temperature-high.tsx +26 -0
- package/icons/icons/thunderstorm.tsx +26 -0
- package/icons/icons/tornado.tsx +18 -0
- package/icons/icons/trash.tsx +20 -0
- package/icons/icons/travel-assistant.tsx +24 -0
- package/icons/icons/tropical-storm.tsx +71 -0
- package/icons/icons/upcoming-trips.tsx +27 -0
- package/icons/icons/user.tsx +26 -0
- package/icons/icons/warning-circle.tsx +26 -0
- package/icons/icons/warning-hexagon.tsx +26 -0
- package/icons/icons/weather.tsx +20 -0
- package/icons/icons/wifi.tsx +20 -0
- package/icons/icons/wind.tsx +22 -0
- package/icons/icons/windrose.tsx +42 -0
- package/icons/icons/windsock.tsx +20 -0
- package/icons/pictograms/24h-meals.tsx +25 -0
- package/icons/pictograms/ad-template.tsx +23 -0
- package/icons/pictograms/add.tsx +25 -0
- package/icons/pictograms/adventure-club-only.tsx +25 -0
- package/icons/pictograms/allergy.tsx +30 -0
- package/icons/pictograms/anchor.tsx +23 -0
- package/icons/pictograms/arrival.tsx +23 -0
- package/icons/pictograms/baby-awake.tsx +20 -0
- package/icons/pictograms/baby-monitor.tsx +20 -0
- package/icons/pictograms/baby-sleep.tsx +20 -0
- package/icons/pictograms/baggage-information.tsx +23 -0
- package/icons/pictograms/baggage.tsx +23 -0
- package/icons/pictograms/bedroom-check.tsx +23 -0
- package/icons/pictograms/bedroom.tsx +23 -0
- package/icons/pictograms/beverages.tsx +28 -0
- package/icons/pictograms/billboard.tsx +23 -0
- package/icons/pictograms/blog.tsx +23 -0
- package/icons/pictograms/brochure.tsx +23 -0
- package/icons/pictograms/calendar-check.tsx +18 -0
- package/icons/pictograms/calendar-default.tsx +18 -0
- package/icons/pictograms/calendar-disabled.tsx +18 -0
- package/icons/pictograms/calendar-focus.tsx +25 -0
- package/icons/pictograms/champagne-glasses.tsx +25 -0
- package/icons/pictograms/check.tsx +25 -0
- package/icons/pictograms/checklist-check.tsx +18 -0
- package/icons/pictograms/checklist.tsx +21 -0
- package/icons/pictograms/checkmark.tsx +23 -0
- package/icons/pictograms/chef-hat.tsx +30 -0
- package/icons/pictograms/chevron-down.tsx +25 -0
- package/icons/pictograms/chevron-up.tsx +25 -0
- package/icons/pictograms/circles.tsx +25 -0
- package/icons/pictograms/cleaning-trolley.tsx +30 -0
- package/icons/pictograms/clock-0-30.tsx +23 -0
- package/icons/pictograms/clock-0.tsx +23 -0
- package/icons/pictograms/clock-1-30.tsx +23 -0
- package/icons/pictograms/clock-1.tsx +23 -0
- package/icons/pictograms/clock-10-30.tsx +23 -0
- package/icons/pictograms/clock-10.tsx +23 -0
- package/icons/pictograms/clock-11-30.tsx +23 -0
- package/icons/pictograms/clock-11.tsx +23 -0
- package/icons/pictograms/clock-2-30.tsx +23 -0
- package/icons/pictograms/clock-2.tsx +23 -0
- package/icons/pictograms/clock-3-30.tsx +23 -0
- package/icons/pictograms/clock-3.tsx +23 -0
- package/icons/pictograms/clock-4-30.tsx +23 -0
- package/icons/pictograms/clock-4.tsx +23 -0
- package/icons/pictograms/clock-5-30.tsx +23 -0
- package/icons/pictograms/clock-5.tsx +23 -0
- package/icons/pictograms/clock-6-30.tsx +23 -0
- package/icons/pictograms/clock-6.tsx +23 -0
- package/icons/pictograms/clock-7-30.tsx +23 -0
- package/icons/pictograms/clock-7.tsx +23 -0
- package/icons/pictograms/clock-8-30.tsx +23 -0
- package/icons/pictograms/clock-8.tsx +23 -0
- package/icons/pictograms/clock-9-30.tsx +23 -0
- package/icons/pictograms/clock-9.tsx +23 -0
- package/icons/pictograms/clock-default.tsx +23 -0
- package/icons/pictograms/close.tsx +25 -0
- package/icons/pictograms/clothing.tsx +23 -0
- package/icons/pictograms/cloud.tsx +23 -0
- package/icons/pictograms/cocktails.tsx +23 -0
- package/icons/pictograms/coffee-machine.tsx +23 -0
- package/icons/pictograms/compass.tsx +23 -0
- package/icons/pictograms/couple.tsx +25 -0
- package/icons/pictograms/crew-love.tsx +28 -0
- package/icons/pictograms/crown.tsx +23 -0
- package/icons/pictograms/dart.tsx +23 -0
- package/icons/pictograms/decoration.tsx +23 -0
- package/icons/pictograms/departure-check.tsx +25 -0
- package/icons/pictograms/departure-germany.tsx +20 -0
- package/icons/pictograms/departure-time.tsx +35 -0
- package/icons/pictograms/departure.tsx +23 -0
- package/icons/pictograms/diamond.tsx +23 -0
- package/icons/pictograms/discount-card.tsx +35 -0
- package/icons/pictograms/discount.tsx +30 -0
- package/icons/pictograms/documents.tsx +23 -0
- package/icons/pictograms/download-document.tsx +23 -0
- package/icons/pictograms/download.tsx +23 -0
- package/icons/pictograms/dripping-dew.tsx +23 -0
- package/icons/pictograms/dumbbell.tsx +25 -0
- package/icons/pictograms/early-bird.tsx +23 -0
- package/icons/pictograms/edit.tsx +23 -0
- package/icons/pictograms/energy-saving.tsx +23 -0
- package/icons/pictograms/enjoyer-club-only.tsx +18 -0
- package/icons/pictograms/environment.tsx +30 -0
- package/icons/pictograms/environmental-officer.tsx +30 -0
- package/icons/pictograms/explorer-club-only.tsx +18 -0
- package/icons/pictograms/family.tsx +25 -0
- package/icons/pictograms/fb-community.tsx +25 -0
- package/icons/pictograms/finance.tsx +25 -0
- package/icons/pictograms/fog.tsx +25 -0
- package/icons/pictograms/food-certificate.tsx +30 -0
- package/icons/pictograms/gastronomy.tsx +25 -0
- package/icons/pictograms/gift.tsx +23 -0
- package/icons/pictograms/globetrotter-club-only.tsx +18 -0
- package/icons/pictograms/hairdresser.tsx +20 -0
- package/icons/pictograms/handbag.tsx +30 -0
- package/icons/pictograms/hands-holding-heart.tsx +30 -0
- package/icons/pictograms/heart-beat.tsx +29 -0
- package/icons/pictograms/heart.tsx +23 -0
- package/icons/pictograms/home.tsx +23 -0
- package/icons/pictograms/hospital-cross.tsx +23 -0
- package/icons/pictograms/hot-dish.tsx +23 -0
- package/icons/pictograms/hot-drink.tsx +25 -0
- package/icons/pictograms/human-heart.tsx +30 -0
- package/icons/pictograms/human-holding-heart.tsx +30 -0
- package/icons/pictograms/human-open-arms.tsx +23 -0
- package/icons/pictograms/human-profile.tsx +23 -0
- package/icons/pictograms/human-swimming.tsx +25 -0
- package/icons/pictograms/ice-cream.tsx +23 -0
- package/icons/pictograms/important.tsx +23 -0
- package/icons/pictograms/index.ts +285 -0
- package/icons/pictograms/information.tsx +30 -0
- package/icons/pictograms/internet.tsx +23 -0
- package/icons/pictograms/jogging.tsx +21 -0
- package/icons/pictograms/kid-playing.tsx +23 -0
- package/icons/pictograms/life-jacket.tsx +21 -0
- package/icons/pictograms/lifebuoy.tsx +20 -0
- package/icons/pictograms/lightbulb.tsx +23 -0
- package/icons/pictograms/lightning.tsx +23 -0
- package/icons/pictograms/location-mark.tsx +30 -0
- package/icons/pictograms/log-in.tsx +23 -0
- package/icons/pictograms/long-term-trips.tsx +20 -0
- package/icons/pictograms/lotte-chatbot.tsx +28 -0
- package/icons/pictograms/lotte-mail.tsx +28 -0
- package/icons/pictograms/mail-at.tsx +23 -0
- package/icons/pictograms/mail-information.tsx +23 -0
- package/icons/pictograms/mailbox.tsx +23 -0
- package/icons/pictograms/many-sea-days.tsx +20 -0
- package/icons/pictograms/medal.tsx +23 -0
- package/icons/pictograms/microphone.tsx +23 -0
- package/icons/pictograms/ms-1.tsx +23 -0
- package/icons/pictograms/ms-2.tsx +30 -0
- package/icons/pictograms/ms-3.tsx +30 -0
- package/icons/pictograms/ms-4.tsx +30 -0
- package/icons/pictograms/ms-5.tsx +30 -0
- package/icons/pictograms/ms-6.tsx +30 -0
- package/icons/pictograms/ms-7-new-eng.tsx +37 -0
- package/icons/pictograms/ms-7-new.tsx +30 -0
- package/icons/pictograms/ms-7.tsx +30 -0
- package/icons/pictograms/ms-default.tsx +30 -0
- package/icons/pictograms/ms-flow-new-eng.tsx +37 -0
- package/icons/pictograms/ms-flow-new.tsx +49 -0
- package/icons/pictograms/ms-flow.tsx +41 -0
- package/icons/pictograms/ms-relax-new-eng.tsx +37 -0
- package/icons/pictograms/ms-relax-new.tsx +36 -0
- package/icons/pictograms/ms-ship.tsx +23 -0
- package/icons/pictograms/music-book.tsx +23 -0
- package/icons/pictograms/my-account.tsx +22 -0
- package/icons/pictograms/my-trips.tsx +29 -0
- package/icons/pictograms/navigation-arrow.tsx +23 -0
- package/icons/pictograms/no-wifi.tsx +21 -0
- package/icons/pictograms/not-available.tsx +23 -0
- package/icons/pictograms/offer.tsx +23 -0
- package/icons/pictograms/offline.tsx +25 -0
- package/icons/pictograms/onboard-announcement.tsx +20 -0
- package/icons/pictograms/package-newspaper.tsx +27 -0
- package/icons/pictograms/paper-news.tsx +23 -0
- package/icons/pictograms/paper-plane.tsx +28 -0
- package/icons/pictograms/payment-check.tsx +32 -0
- package/icons/pictograms/payment.tsx +28 -0
- package/icons/pictograms/people-check.tsx +25 -0
- package/icons/pictograms/people.tsx +25 -0
- package/icons/pictograms/permanent-make-up.tsx +20 -0
- package/icons/pictograms/person-single.tsx +23 -0
- package/icons/pictograms/phone.tsx +20 -0
- package/icons/pictograms/play-button.tsx +20 -0
- package/icons/pictograms/presentation.tsx +23 -0
- package/icons/pictograms/price-tag.tsx +21 -0
- package/icons/pictograms/printer.tsx +23 -0
- package/icons/pictograms/rain.tsx +23 -0
- package/icons/pictograms/receipt.tsx +25 -0
- package/icons/pictograms/remove.tsx +25 -0
- package/icons/pictograms/safety.tsx +23 -0
- package/icons/pictograms/screen.tsx +23 -0
- package/icons/pictograms/search.tsx +23 -0
- package/icons/pictograms/service.tsx +23 -0
- package/icons/pictograms/sewage.tsx +30 -0
- package/icons/pictograms/ship-outstanding.tsx +23 -0
- package/icons/pictograms/ship-transfer.tsx +23 -0
- package/icons/pictograms/shooting-stars.tsx +23 -0
- package/icons/pictograms/shore-excursions-old.tsx +23 -0
- package/icons/pictograms/shore-excursions.tsx +32 -0
- package/icons/pictograms/short-notice-departures.tsx +20 -0
- package/icons/pictograms/short-trips.tsx +21 -0
- package/icons/pictograms/size.tsx +23 -0
- package/icons/pictograms/smartphone.tsx +23 -0
- package/icons/pictograms/smiley.tsx +23 -0
- package/icons/pictograms/social-media.tsx +37 -0
- package/icons/pictograms/spa-balcony-cabin.tsx +43 -0
- package/icons/pictograms/speech-bubble-faq.tsx +23 -0
- package/icons/pictograms/speech-bubble-hello.tsx +23 -0
- package/icons/pictograms/speech-bubble-ok.tsx +30 -0
- package/icons/pictograms/speedboat.tsx +23 -0
- package/icons/pictograms/star-cancel.tsx +23 -0
- package/icons/pictograms/star-check.tsx +23 -0
- package/icons/pictograms/star-plus.tsx +23 -0
- package/icons/pictograms/star.tsx +23 -0
- package/icons/pictograms/sun-cloud.tsx +23 -0
- package/icons/pictograms/sun-lounger.tsx +23 -0
- package/icons/pictograms/sun.tsx +23 -0
- package/icons/pictograms/theater-mask.tsx +35 -0
- package/icons/pictograms/thermometer.tsx +23 -0
- package/icons/pictograms/tickets.tsx +21 -0
- package/icons/pictograms/towels.tsx +23 -0
- package/icons/pictograms/transportation.tsx +30 -0
- package/icons/pictograms/travel-protection-check.tsx +23 -0
- package/icons/pictograms/travel-protection.tsx +23 -0
- package/icons/pictograms/video.tsx +23 -0
- package/icons/pictograms/waste-management.tsx +30 -0
- package/icons/pictograms/webinar.tsx +23 -0
- package/icons/pictograms/wheel-of-fortune.tsx +23 -0
- package/icons/pictograms/wifi.tsx +20 -0
- package/icons/pictograms/wind.tsx +25 -0
- package/index.tsx +73 -0
- package/package.json +119 -0
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/videos/placeholder.mp4 +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_It.ttf +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_It.woff +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_It.woff2 +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_Rg.ttf +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_Rg.woff +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_Rg.woff2 +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_SBd.ttf +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_SBd.woff +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_SBd.woff2 +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_SBdIt.ttf +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_SBdIt.woff +0 -0
- package/src/assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_SBdIt.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200.svg +338 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200italic.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200italic.svg +345 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200italic.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200italic.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200italic.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300.svg +338 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300italic.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300italic.svg +346 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300italic.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300italic.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300italic.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600.svg +337 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600italic.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600italic.svg +342 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600italic.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600italic.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-600italic.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700.svg +337 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700italic.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700italic.svg +339 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700italic.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700italic.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700italic.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900.svg +337 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900italic.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900italic.svg +340 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900italic.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900italic.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900italic.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-italic.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-italic.svg +343 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-italic.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-italic.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-italic.woff2 +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-regular.eot +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-regular.svg +337 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-regular.ttf +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-regular.woff +0 -0
- package/src/assets/fonts/source-sans-pro/source-sans-pro-v21-latin-regular.woff2 +0 -0
- package/src/assets/images/placeholder-blueish.jpg +0 -0
- package/src/assets/images/placeholder-sepia.jpg +0 -0
- package/src/assets/images/placeholder.jpg +0 -0
- package/src/components/core/Accordion/Accordion.tsx +228 -0
- package/src/components/core/Accordion/AccordionItem.tsx +72 -0
- package/src/components/core/Accordion/AccordionTab.tsx +39 -0
- package/src/components/core/Accordion/index.ts +3 -0
- package/src/components/core/Accordion/utils.tsx +13 -0
- package/src/components/core/Alert/Alert.tsx +131 -0
- package/src/components/core/Alert/index.ts +1 -0
- package/src/components/core/AlertDialog/AlertDialog.tsx +288 -0
- package/src/components/core/AlertDialog/index.ts +1 -0
- package/src/components/core/Badge/Badge.tsx +70 -0
- package/src/components/core/Badge/index.ts +1 -0
- package/src/components/core/BirthdateField/BirthdateField.tsx +269 -0
- package/src/components/core/BirthdateField/index.ts +1 -0
- package/src/components/core/Button/Button.tsx +178 -0
- package/src/components/core/Button/index.ts +1 -0
- package/src/components/core/ButtonGroup/ButtonGroup.tsx +71 -0
- package/src/components/core/ButtonGroup/index.ts +1 -0
- package/src/components/core/Calendar/Calendar.tsx +303 -0
- package/src/components/core/Calendar/index.ts +1 -0
- package/src/components/core/Checkbox/Checkbox.tsx +107 -0
- package/src/components/core/Checkbox/index.ts +1 -0
- package/src/components/core/CheckboxField/CheckboxField.tsx +156 -0
- package/src/components/core/CheckboxField/CheckboxFieldError.tsx +14 -0
- package/src/components/core/CheckboxField/CheckboxFieldLabel.tsx +25 -0
- package/src/components/core/CheckboxField/CheckboxFieldNote.tsx +16 -0
- package/src/components/core/CheckboxField/index.ts +1 -0
- package/src/components/core/Countdown/Countdown.tsx +67 -0
- package/src/components/core/Countdown/index.ts +1 -0
- package/src/components/core/DataTable/DataTable.tsx +98 -0
- package/src/components/core/DataTable/index.ts +1 -0
- package/src/components/core/Dialog/Dialog.tsx +443 -0
- package/src/components/core/Dialog/index.ts +1 -0
- package/src/components/core/Divider/Divider.tsx +37 -0
- package/src/components/core/Divider/index.ts +1 -0
- package/src/components/core/FavoriteButton/FavoriteButton.tsx +294 -0
- package/src/components/core/FavoriteButton/index.ts +1 -0
- package/src/components/core/Fieldset/Fieldset.tsx +42 -0
- package/src/components/core/Fieldset/index.ts +1 -0
- package/src/components/core/FormLabel/FormLabel.tsx +88 -0
- package/src/components/core/FormLabel/index.ts +1 -0
- package/src/components/core/Icon/Icon.tsx +106 -0
- package/src/components/core/Icon/index.ts +1 -0
- package/src/components/core/IconButton/IconButton.tsx +169 -0
- package/src/components/core/IconButton/index.ts +1 -0
- package/src/components/core/InputField/InputField.tsx +128 -0
- package/src/components/core/InputField/InputFieldError.tsx +17 -0
- package/src/components/core/InputField/InputFieldInput.tsx +67 -0
- package/src/components/core/InputField/InputFieldLabel.tsx +29 -0
- package/src/components/core/InputField/InputFieldNote.tsx +16 -0
- package/src/components/core/InputField/index.ts +1 -0
- package/src/components/core/LoadingSpinner/LoadingSpinner.tsx +50 -0
- package/src/components/core/LoadingSpinner/index.ts +1 -0
- package/src/components/core/Pagination/Pagination.tsx +191 -0
- package/src/components/core/Pagination/index.ts +1 -0
- package/src/components/core/PasswordField/PasswordField.tsx +187 -0
- package/src/components/core/PasswordField/PasswordFieldRequirementsList.tsx +78 -0
- package/src/components/core/PasswordField/index.ts +1 -0
- package/src/components/core/PhoneNumberInput/PhoneNumberInput.tsx +201 -0
- package/src/components/core/PhoneNumberInput/countries.json +242 -0
- package/src/components/core/PhoneNumberInput/index.ts +1 -0
- package/src/components/core/Pictogram/Pictogram.tsx +67 -0
- package/src/components/core/Pictogram/index.ts +1 -0
- package/src/components/core/Popover/Popover.tsx +61 -0
- package/src/components/core/Popover/index.ts +1 -0
- package/src/components/core/Portlist/Portlist.tsx +28 -0
- package/src/components/core/Portlist/index.ts +1 -0
- package/src/components/core/PriceInput/PriceInput.tsx +100 -0
- package/src/components/core/PriceInput/index.ts +1 -0
- package/src/components/core/QuantityItem/QuantityItem.tsx +37 -0
- package/src/components/core/QuantityItem/index.ts +1 -0
- package/src/components/core/Radio/Radio.tsx +64 -0
- package/src/components/core/Radio/index.ts +1 -0
- package/src/components/core/RadioField/RadioField.tsx +66 -0
- package/src/components/core/RadioField/index.ts +1 -0
- package/src/components/core/RadixRadio/RadixRadio.tsx +56 -0
- package/src/components/core/RadixRadio/index.ts +1 -0
- package/src/components/core/RadixSelect/RadixSelect.tsx +172 -0
- package/src/components/core/RadixSelect/index.ts +1 -0
- package/src/components/core/RangeSlider/RangeSlider.tsx +59 -0
- package/src/components/core/RangeSlider/index.ts +1 -0
- package/src/components/core/Section/Section.tsx +62 -0
- package/src/components/core/Section/index.ts +1 -0
- package/src/components/core/SegmentedControl/SegmentedControl.tsx +65 -0
- package/src/components/core/SegmentedControl/index.ts +1 -0
- package/src/components/core/Select/Select.tsx +171 -0
- package/src/components/core/Select/index.ts +1 -0
- package/src/components/core/SelectField/SelectField.tsx +67 -0
- package/src/components/core/SelectField/index.ts +1 -0
- package/src/components/core/Skeleton/Skeleton.tsx +23 -0
- package/src/components/core/Skeleton/SkeletonTextLines.tsx +37 -0
- package/src/components/core/Skeleton/index.ts +2 -0
- package/src/components/core/Stepper/Stepper.tsx +116 -0
- package/src/components/core/Stepper/index.ts +1 -0
- package/src/components/core/SwitchToggle/SwitchToggle.tsx +46 -0
- package/src/components/core/SwitchToggle/index.ts +1 -0
- package/src/components/core/Tabs/Tabs.tsx +130 -0
- package/src/components/core/Tabs/index.ts +1 -0
- package/src/components/core/Tag/Tag.tsx +61 -0
- package/src/components/core/Tag/index.ts +1 -0
- package/src/components/core/TextButton/TextButton.tsx +108 -0
- package/src/components/core/TextButton/index.ts +1 -0
- package/src/components/core/Toast/Toast.tsx +65 -0
- package/src/components/core/Toast/index.ts +1 -0
- package/src/components/core/Tooltip/Tooltip.tsx +110 -0
- package/src/components/core/Tooltip/index.ts +1 -0
- package/src/components/shared/NextFontMeinSchiffSansPro/NextFontMeinSchiffSansPro.tsx +160 -0
- package/src/components/shared/NextFontMeinSchiffSansPro/index.ts +1 -0
- package/src/components/shared/UniversalCarousel/CarouselContext.ts +61 -0
- package/src/components/shared/UniversalCarousel/CarouselDefaultPagination.tsx +92 -0
- package/src/components/shared/UniversalCarousel/CarouselInterface.tsx +152 -0
- package/src/components/shared/UniversalCarousel/CarouselStage.tsx +235 -0
- package/src/components/shared/UniversalCarousel/UniversalCarousel.tsx +125 -0
- package/src/components/shared/UniversalCarousel/helpers.ts +206 -0
- package/src/components/shared/UniversalCarousel/index.ts +4 -0
- package/src/helpers/children.ts +27 -0
- package/src/helpers/cookies.ts +22 -0
- package/src/helpers/dateFormat.ts +245 -0
- package/src/helpers/dateToYearMonthDay.ts +17 -0
- package/src/helpers/elementVisibility.ts +53 -0
- package/src/helpers/i18n.ts +197 -0
- package/src/helpers/price.ts +26 -0
- package/src/helpers/responsive-property.ts +118 -0
- package/src/helpers/screen.ts +14 -0
- package/src/helpers/sleep.ts +5 -0
- package/src/helpers/slot.tsx +68 -0
- package/src/helpers/ssr.ts +5 -0
- package/src/helpers/store.ts +75 -0
- package/src/helpers/types.ts +18 -0
- package/src/helpers/utils.ts +3 -0
- package/src/hooks/use-active-screen-names.ts +100 -0
- package/src/hooks/use-intersection-observer.ts +190 -0
- package/src/hooks/use-screen-name-at-least.ts +32 -0
- package/src/hooks/use-screen-name.ts +34 -0
- package/src/hooks/use-store.ts +45 -0
- package/src/hooks/use-toasts.ts +111 -0
- package/src/stores/toasts-store.ts +11 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
|
+
import { ComponentProps, FC, forwardRef } from 'react';
|
|
5
|
+
import { IconButton } from '../IconButton';
|
|
6
|
+
import {
|
|
7
|
+
CarouselInterface,
|
|
8
|
+
CarouselStage,
|
|
9
|
+
UniversalCarousel,
|
|
10
|
+
} from '../../shared/UniversalCarousel';
|
|
11
|
+
import { twJoin } from 'tailwind-merge';
|
|
12
|
+
import { Pictogram, PictogramName } from '../Pictogram';
|
|
13
|
+
|
|
14
|
+
const Tabs = TabsPrimitive.Root;
|
|
15
|
+
|
|
16
|
+
const TabsContent = TabsPrimitive.Content;
|
|
17
|
+
|
|
18
|
+
type Props = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> & {
|
|
19
|
+
centerTabItems?: boolean;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const TabsList = forwardRef<React.ElementRef<typeof TabsPrimitive.List>, Props>(
|
|
23
|
+
({ className, centerTabItems, ...props }, ref) => {
|
|
24
|
+
return (
|
|
25
|
+
<TabsPrimitive.List
|
|
26
|
+
className="relative flex items-center justify-between gap-1"
|
|
27
|
+
{...props}
|
|
28
|
+
ref={ref}
|
|
29
|
+
>
|
|
30
|
+
<UniversalCarousel>
|
|
31
|
+
<div className="relative w-full overflow-hidden before:absolute before:bottom-0 before:left-0 before:right-0 before:h-px before:bg-surface-secondary-20">
|
|
32
|
+
<CarouselStage
|
|
33
|
+
className={twJoin('-mx-1', centerTabItems && 'justify-center')}
|
|
34
|
+
itemProps={{
|
|
35
|
+
className: 'w-auto',
|
|
36
|
+
}}
|
|
37
|
+
draggable
|
|
38
|
+
>
|
|
39
|
+
{props.children}
|
|
40
|
+
</CarouselStage>
|
|
41
|
+
<CarouselInterface>
|
|
42
|
+
{context => {
|
|
43
|
+
const { prev, next } = context;
|
|
44
|
+
const { visibleIndexes, lastIndex } = context;
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<>
|
|
48
|
+
<div
|
|
49
|
+
className={twJoin(
|
|
50
|
+
'pointer-events-none absolute left-0 top-1/2 flex h-full -translate-y-1/2 items-center bg-gradient-to-r from-white from-50% pr-4',
|
|
51
|
+
visibleIndexes[0] === 0 && 'hidden',
|
|
52
|
+
)}
|
|
53
|
+
>
|
|
54
|
+
<IconButton
|
|
55
|
+
className="pointer-events-auto"
|
|
56
|
+
iconName="nav-arrow-left"
|
|
57
|
+
variant="ghost"
|
|
58
|
+
aria-label="tabs-navigate-previous"
|
|
59
|
+
size="sm"
|
|
60
|
+
onClick={prev}
|
|
61
|
+
disabled={visibleIndexes[0] === 0}
|
|
62
|
+
/>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<div
|
|
66
|
+
className={twJoin(
|
|
67
|
+
'pointer-events-none absolute right-0 top-1/2 flex h-full -translate-y-1/2 items-center bg-gradient-to-l from-white from-50% pl-4',
|
|
68
|
+
visibleIndexes.includes(lastIndex) && 'hidden',
|
|
69
|
+
)}
|
|
70
|
+
>
|
|
71
|
+
<IconButton
|
|
72
|
+
className="pointer-events-auto"
|
|
73
|
+
iconName="nav-arrow-right"
|
|
74
|
+
aria-label="tabs-navigate-next"
|
|
75
|
+
variant="ghost"
|
|
76
|
+
size="sm"
|
|
77
|
+
onClick={next}
|
|
78
|
+
disabled={visibleIndexes.includes(lastIndex)}
|
|
79
|
+
/>
|
|
80
|
+
</div>
|
|
81
|
+
</>
|
|
82
|
+
);
|
|
83
|
+
}}
|
|
84
|
+
</CarouselInterface>
|
|
85
|
+
</div>
|
|
86
|
+
</UniversalCarousel>
|
|
87
|
+
</TabsPrimitive.List>
|
|
88
|
+
);
|
|
89
|
+
},
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
TabsList.displayName = 'TabsList';
|
|
93
|
+
|
|
94
|
+
type TabsTriggerProps = ComponentProps<typeof TabsPrimitive.Trigger> & {
|
|
95
|
+
pictogram?: PictogramName;
|
|
96
|
+
variant?: 'default' | 'error';
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const TabsTrigger: FC<TabsTriggerProps> = ({
|
|
100
|
+
pictogram,
|
|
101
|
+
variant = 'default',
|
|
102
|
+
children,
|
|
103
|
+
...args
|
|
104
|
+
}) => (
|
|
105
|
+
<TabsPrimitive.Trigger
|
|
106
|
+
className={twJoin(
|
|
107
|
+
'font-bold box-content flex shrink-0 px-6 py-4',
|
|
108
|
+
'text-base',
|
|
109
|
+
'data-[state=active]:border-b-[4px] ',
|
|
110
|
+
'data-[state=active]:font-semibold',
|
|
111
|
+
variant === 'default' && [
|
|
112
|
+
'text-marine-medium-emphasis',
|
|
113
|
+
'hover:border-stroke-primary-100 hover:text-marine-high-emphasis',
|
|
114
|
+
'data-[state=active]:border-stroke-primary-100 data-[state=active]:text-marine-high-emphasis',
|
|
115
|
+
],
|
|
116
|
+
variant === 'error' && [
|
|
117
|
+
'text-on-surface-feedback-error',
|
|
118
|
+
'data-[state=active]:border-stroke-error-120',
|
|
119
|
+
],
|
|
120
|
+
)}
|
|
121
|
+
{...args}
|
|
122
|
+
>
|
|
123
|
+
<div className="flex flex-col items-center">
|
|
124
|
+
{pictogram && <Pictogram name={pictogram} size="sm" />}
|
|
125
|
+
{children}
|
|
126
|
+
</div>
|
|
127
|
+
</TabsPrimitive.Trigger>
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tabs';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { twJoin } from 'tailwind-merge';
|
|
3
|
+
import { Icon } from '../Icon';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Props for the Tag component.
|
|
7
|
+
*/
|
|
8
|
+
export type TagProps = {
|
|
9
|
+
className?: string;
|
|
10
|
+
variant?: 'default' | 'attention' | 'topic' | 'teaser' | 'signal';
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Variant styles for the Tag component.
|
|
16
|
+
*/
|
|
17
|
+
const variants = {
|
|
18
|
+
variant: {
|
|
19
|
+
default:
|
|
20
|
+
'bg-surface-secondary-20 text-marine-high-emphasis border-transparent',
|
|
21
|
+
attention:
|
|
22
|
+
'bg-surface-feedback-attention text-on-surface-feedback-attention border-stroke-attention-120',
|
|
23
|
+
topic: 'bg-opacity-black-60 text-white border-transparent',
|
|
24
|
+
teaser: 'bg-surface-white text-marine-high-emphasis border-transparent',
|
|
25
|
+
signal: 'bg-yellow-100 text-marine-high-emphasis border-transparent',
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A versatile Tag component for displaying small count indicators or labels.
|
|
31
|
+
*
|
|
32
|
+
* @param {TagProps} props - The props for the Tag component.
|
|
33
|
+
* @returns {JSX.Element} The rendered Tag component.
|
|
34
|
+
*/
|
|
35
|
+
const Tag = ({
|
|
36
|
+
className,
|
|
37
|
+
variant = 'default',
|
|
38
|
+
children,
|
|
39
|
+
...args
|
|
40
|
+
}: TagProps) => {
|
|
41
|
+
// Determine if we need to show the icon (for the attention variant)
|
|
42
|
+
const isAttention = variant === 'attention';
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<div
|
|
46
|
+
{...args}
|
|
47
|
+
className={twJoin(
|
|
48
|
+
'inline-flex items-center justify-center rounded-full border px-3 py-1 text-xs font-semibold',
|
|
49
|
+
variants.variant[variant],
|
|
50
|
+
className,
|
|
51
|
+
)}
|
|
52
|
+
>
|
|
53
|
+
{isAttention && <Icon name="warning-circle" size="sm" className="mr-2" />}
|
|
54
|
+
{children}
|
|
55
|
+
</div>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
Tag.displayName = 'Tag';
|
|
60
|
+
|
|
61
|
+
export { Tag };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tag';
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ButtonHTMLAttributes,
|
|
3
|
+
ForwardRefRenderFunction,
|
|
4
|
+
PropsWithChildren,
|
|
5
|
+
} from 'react';
|
|
6
|
+
import React, { forwardRef } from 'react';
|
|
7
|
+
import { Icon, IconName } from '../../core/Icon';
|
|
8
|
+
import { twMerge } from 'tailwind-merge';
|
|
9
|
+
import { Slot, Slottable } from '@radix-ui/react-slot';
|
|
10
|
+
import { wrapSlottableChildren } from '../../../helpers/slot';
|
|
11
|
+
import { DataAttributes } from '../../../helpers/types';
|
|
12
|
+
|
|
13
|
+
type CommonProps = ButtonHTMLAttributes<HTMLButtonElement> &
|
|
14
|
+
PropsWithChildren<{
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
iconLeft?: IconName;
|
|
17
|
+
iconRight?: IconName;
|
|
18
|
+
iconSize?: 'xs' | 'sm' | 'md' | 'lg';
|
|
19
|
+
size?: 'sm' | 'md';
|
|
20
|
+
on?: 'white' | 'gray' | 'ocean' | 'image';
|
|
21
|
+
}>;
|
|
22
|
+
|
|
23
|
+
type ButtonAttributes = Omit<
|
|
24
|
+
ButtonHTMLAttributes<HTMLButtonElement>,
|
|
25
|
+
'className'
|
|
26
|
+
> &
|
|
27
|
+
DataAttributes;
|
|
28
|
+
|
|
29
|
+
export type TextButtonProps = ButtonAttributes & CommonProps;
|
|
30
|
+
|
|
31
|
+
const TextButtonRenderFunction: ForwardRefRenderFunction<
|
|
32
|
+
HTMLButtonElement,
|
|
33
|
+
TextButtonProps
|
|
34
|
+
> = (
|
|
35
|
+
{
|
|
36
|
+
children,
|
|
37
|
+
asChild,
|
|
38
|
+
iconLeft,
|
|
39
|
+
iconRight,
|
|
40
|
+
iconSize = 'xs',
|
|
41
|
+
size = 'md',
|
|
42
|
+
on = 'white',
|
|
43
|
+
className: classNameArg,
|
|
44
|
+
...rest
|
|
45
|
+
},
|
|
46
|
+
ref,
|
|
47
|
+
) => {
|
|
48
|
+
const Comp = asChild ? Slot : 'button';
|
|
49
|
+
|
|
50
|
+
const className = twMerge(
|
|
51
|
+
classNameArg,
|
|
52
|
+
'group inline-flex cursor-pointer appearance-none items-center space-x-1 py-1 font-normal leading-normal',
|
|
53
|
+
'focus:outline-none focus-visible:shadow-focus-state',
|
|
54
|
+
'disabled:pointer-events-none disabled:text-secondary-marine-48',
|
|
55
|
+
size === 'sm' && 'text-sm',
|
|
56
|
+
|
|
57
|
+
// On white (default)
|
|
58
|
+
on === 'white' && 'text-marine-high-emphasis',
|
|
59
|
+
|
|
60
|
+
// On gray
|
|
61
|
+
on === 'gray' && 'text-marine-high-emphasis',
|
|
62
|
+
|
|
63
|
+
// On ocean
|
|
64
|
+
on === 'ocean' &&
|
|
65
|
+
'text-marine-high-emphasis disabled:text-secondary-marine-7',
|
|
66
|
+
|
|
67
|
+
// On image
|
|
68
|
+
on === 'image' && 'text-white',
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
const linkClassName = twMerge(
|
|
72
|
+
'relative after:absolute after:-bottom-[.25em] after:right-0 after:h-[1px] after:w-full after:transition-all',
|
|
73
|
+
'group-hover:after:w-0',
|
|
74
|
+
'group-disabled:after:bg-secondary-marine-48',
|
|
75
|
+
|
|
76
|
+
// On white (default)
|
|
77
|
+
on === 'white' && 'after:bg-primary-ocean-100',
|
|
78
|
+
|
|
79
|
+
// On gray
|
|
80
|
+
on === 'gray' && 'after:bg-primary-ocean-100',
|
|
81
|
+
|
|
82
|
+
// On ocean
|
|
83
|
+
on === 'ocean' &&
|
|
84
|
+
'after:bg-neutral-white group-disabled:after:bg-secondary-marine-7',
|
|
85
|
+
|
|
86
|
+
// On image
|
|
87
|
+
on === 'image' && 'after:bg-primary-ocean-100',
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<Comp {...rest} className={className} ref={ref}>
|
|
92
|
+
{iconLeft && <Icon name={iconLeft} size={iconSize} />}
|
|
93
|
+
<Slottable>
|
|
94
|
+
{wrapSlottableChildren(asChild, children, children => (
|
|
95
|
+
<span className={linkClassName}>{children}</span>
|
|
96
|
+
))}
|
|
97
|
+
</Slottable>
|
|
98
|
+
{iconRight && <Icon name={iconRight} size={iconSize} />}
|
|
99
|
+
</Comp>
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* `TextButton` is a component that renders a text button.
|
|
105
|
+
*/
|
|
106
|
+
export const TextButton = forwardRef<HTMLButtonElement, TextButtonProps>(
|
|
107
|
+
TextButtonRenderFunction,
|
|
108
|
+
) as typeof TextButtonRenderFunction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextButton';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
forwardRef,
|
|
5
|
+
ForwardRefRenderFunction,
|
|
6
|
+
HTMLAttributes,
|
|
7
|
+
PropsWithChildren,
|
|
8
|
+
} from 'react';
|
|
9
|
+
import { Icon } from '../../core/Icon';
|
|
10
|
+
import * as RadixToast from '@radix-ui/react-toast';
|
|
11
|
+
|
|
12
|
+
type Props = HTMLAttributes<HTMLDivElement> &
|
|
13
|
+
PropsWithChildren<{
|
|
14
|
+
title?: string;
|
|
15
|
+
}>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Renders the content of a toast notification.
|
|
19
|
+
*
|
|
20
|
+
* This component displays a toast with an optional title and children content. It also uses
|
|
21
|
+
* Radix UI's Toast components for accessibility and behavior.
|
|
22
|
+
*
|
|
23
|
+
* @param {Props} props - The properties passed to the toast component.
|
|
24
|
+
* @param {React.Ref} forwardedRef - A forwarded ref to the div element.
|
|
25
|
+
* @returns {JSX.Element} The rendered toast component.
|
|
26
|
+
*/
|
|
27
|
+
export const ToastRenderFunction: ForwardRefRenderFunction<
|
|
28
|
+
HTMLDivElement,
|
|
29
|
+
Props
|
|
30
|
+
> = ({ title, children, ...rest }, forwardedRef) => {
|
|
31
|
+
return (
|
|
32
|
+
<div
|
|
33
|
+
{...rest}
|
|
34
|
+
className="rounded-md bg-surface-white p-6 text-marine-high-emphasis shadow-xl"
|
|
35
|
+
ref={forwardedRef}
|
|
36
|
+
>
|
|
37
|
+
<div className="space-y-2 md:relative md:ml-[1.5rem] md:pl-2">
|
|
38
|
+
<RadixToast.Title asChild>
|
|
39
|
+
<div className="flex gap-2 md:block">
|
|
40
|
+
<div className="md:absolute md:left-[-1.5rem] md:size-[1.5rem] md:pt-1">
|
|
41
|
+
<Icon name="security-pass" size="md" />
|
|
42
|
+
</div>
|
|
43
|
+
<div className="headline-sm flex-1 md:headline-md">{title}</div>
|
|
44
|
+
</div>
|
|
45
|
+
</RadixToast.Title>
|
|
46
|
+
{children && (
|
|
47
|
+
<RadixToast.Description asChild>
|
|
48
|
+
<div className="text-base md:text-lg">{children}</div>
|
|
49
|
+
</RadixToast.Description>
|
|
50
|
+
)}
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The main toast component, using `forwardRef` to forward the ref to the `ToastRenderFunction`.
|
|
58
|
+
*
|
|
59
|
+
* @param {Props} props - The properties passed to the toast component.
|
|
60
|
+
* @param {React.Ref} ref - A forwarded ref to the div element.
|
|
61
|
+
* @returns {JSX.Element} The wrapped `ToastRenderFunction` with forwarded ref.
|
|
62
|
+
*/
|
|
63
|
+
export const Toast = forwardRef<HTMLDivElement, Props>(
|
|
64
|
+
ToastRenderFunction,
|
|
65
|
+
) as typeof ToastRenderFunction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Toast';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { forwardRef, HTMLAttributes } from 'react';
|
|
4
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
|
|
7
|
+
export type TooltipContentProps = React.ComponentPropsWithoutRef<
|
|
8
|
+
typeof TooltipPrimitive.Content
|
|
9
|
+
>;
|
|
10
|
+
|
|
11
|
+
export type TooltipRootProps = React.ComponentPropsWithoutRef<
|
|
12
|
+
typeof TooltipPrimitive.Root
|
|
13
|
+
>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* `TooltipProvider` sets up the context for tooltip elements, providing necessary
|
|
17
|
+
* configurations for their behavior and appearance.
|
|
18
|
+
*/
|
|
19
|
+
const TooltipProvider = TooltipPrimitive.Provider;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* `Tooltip` component that manages the tooltip's visibility and interaction.
|
|
23
|
+
*
|
|
24
|
+
* @param {TooltipRootProps} props - Properties for configuring the tooltip root.
|
|
25
|
+
* @returns {JSX.Element} The root wrapper for displaying tooltip content.
|
|
26
|
+
*/
|
|
27
|
+
const Tooltip = (props: TooltipRootProps) => {
|
|
28
|
+
const { children, ...rest } = props;
|
|
29
|
+
const [open, setOpen] = useState(false);
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<TooltipPrimitive.Root
|
|
33
|
+
open={open}
|
|
34
|
+
delayDuration={0}
|
|
35
|
+
onOpenChange={setOpen}
|
|
36
|
+
{...rest}
|
|
37
|
+
>
|
|
38
|
+
<div
|
|
39
|
+
className="inline-flex"
|
|
40
|
+
onMouseEnter={() => {
|
|
41
|
+
setOpen(true);
|
|
42
|
+
}}
|
|
43
|
+
onMouseLeave={() => {
|
|
44
|
+
setOpen(false);
|
|
45
|
+
}}
|
|
46
|
+
onFocus={() => {
|
|
47
|
+
setOpen(true);
|
|
48
|
+
}}
|
|
49
|
+
onBlur={() => {
|
|
50
|
+
setOpen(false);
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
{children}
|
|
54
|
+
</div>
|
|
55
|
+
</TooltipPrimitive.Root>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* `TooltipTrigger` component that acts as the interactive element triggering the tooltip.
|
|
61
|
+
*
|
|
62
|
+
* This is typically a button that shows the tooltip on focus or hover. Adds custom
|
|
63
|
+
* focus styling for accessibility.
|
|
64
|
+
*
|
|
65
|
+
* @param {TooltipPrimitive.TooltipTriggerProps} props - Properties for configuring the tooltip trigger.
|
|
66
|
+
* @param {React.Ref<HTMLButtonElement>} ref - Reference to the trigger button element.
|
|
67
|
+
* @returns {JSX.Element} A button that triggers the tooltip on focus or hover.
|
|
68
|
+
*/
|
|
69
|
+
const TooltipTrigger = forwardRef<
|
|
70
|
+
HTMLButtonElement,
|
|
71
|
+
TooltipPrimitive.TooltipTriggerProps
|
|
72
|
+
>(({ children, ...props }, ref) => (
|
|
73
|
+
<TooltipPrimitive.Trigger
|
|
74
|
+
ref={ref}
|
|
75
|
+
className="rounded-full focus:outline-none focus-visible:shadow-focus-state"
|
|
76
|
+
{...props}
|
|
77
|
+
>
|
|
78
|
+
{children}
|
|
79
|
+
</TooltipPrimitive.Trigger>
|
|
80
|
+
));
|
|
81
|
+
|
|
82
|
+
TooltipTrigger.displayName = TooltipPrimitive.Trigger.displayName;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* `TooltipContent` component that displays the tooltip content with custom styles.
|
|
86
|
+
*
|
|
87
|
+
* @param {TooltipContentProps} props - Properties for configuring the tooltip content.
|
|
88
|
+
* @returns {JSX.Element} The styled tooltip content with an optional arrow pointer.
|
|
89
|
+
*/
|
|
90
|
+
const TooltipContent = (props: TooltipContentProps) => {
|
|
91
|
+
const { children, ...rest } = props;
|
|
92
|
+
|
|
93
|
+
return (
|
|
94
|
+
<TooltipPrimitive.TooltipPortal>
|
|
95
|
+
<TooltipPrimitive.Content
|
|
96
|
+
className="relative z-50 rounded-sm bg-surface-white px-3 py-1 text-sm text-marine-high-emphasis shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
|
|
97
|
+
{...rest}
|
|
98
|
+
>
|
|
99
|
+
{children}
|
|
100
|
+
<div className="absolute left-0 right-0 z-10 mx-1 h-1 bg-surface-white" />
|
|
101
|
+
<TooltipPrimitive.Arrow className="h-3 w-5 fill-white drop-shadow-md" />
|
|
102
|
+
</TooltipPrimitive.Content>
|
|
103
|
+
</TooltipPrimitive.TooltipPortal>
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
108
|
+
Tooltip.displayName = TooltipPrimitive.Root.displayName;
|
|
109
|
+
|
|
110
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip';
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
import localFont from '@next/font/local';
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
children: (font: ReturnType<typeof localFont>) => ReactNode;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const meinSchiffSansPro = localFont({
|
|
9
|
+
display: 'swap',
|
|
10
|
+
variable: '--font-mein-schiff-sans-pro',
|
|
11
|
+
src: [
|
|
12
|
+
/* source-sans-pro-200 - latin */
|
|
13
|
+
{
|
|
14
|
+
path: './../../../assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200.woff2',
|
|
15
|
+
style: 'normal',
|
|
16
|
+
weight: '200',
|
|
17
|
+
},
|
|
18
|
+
/* source-sans-pro-200italic - latin */
|
|
19
|
+
{
|
|
20
|
+
path: './../../../assets/fonts/source-sans-pro/source-sans-pro-v21-latin-200italic.woff2',
|
|
21
|
+
style: 'italic',
|
|
22
|
+
weight: '200',
|
|
23
|
+
},
|
|
24
|
+
/* source-sans-pro-300 - latin */
|
|
25
|
+
{
|
|
26
|
+
path: './../../../assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300.woff2',
|
|
27
|
+
style: 'normal',
|
|
28
|
+
weight: '300',
|
|
29
|
+
},
|
|
30
|
+
/* source-sans-pro-300italic - latin */
|
|
31
|
+
{
|
|
32
|
+
path: './../../../assets/fonts/source-sans-pro/source-sans-pro-v21-latin-300italic.woff2',
|
|
33
|
+
style: 'italic',
|
|
34
|
+
weight: '300',
|
|
35
|
+
},
|
|
36
|
+
/* source-sans-pro-regular - latin */
|
|
37
|
+
{
|
|
38
|
+
path: './../../../assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_Rg.woff2',
|
|
39
|
+
style: 'normal',
|
|
40
|
+
weight: '400',
|
|
41
|
+
},
|
|
42
|
+
/* source-sans-pro-italic - latin */
|
|
43
|
+
{
|
|
44
|
+
path: './../../../assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_It.woff2',
|
|
45
|
+
style: 'italic',
|
|
46
|
+
weight: '400',
|
|
47
|
+
},
|
|
48
|
+
/* source-sans-pro-600 - latin */
|
|
49
|
+
{
|
|
50
|
+
path: './../../../assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_SBd.woff2',
|
|
51
|
+
style: 'normal',
|
|
52
|
+
weight: '600',
|
|
53
|
+
},
|
|
54
|
+
/* source-sans-pro-600italic - latin */
|
|
55
|
+
{
|
|
56
|
+
path: './../../../assets/fonts/mein-schiff-sans-pro/MeinSchiffSansPro_SBdIt.woff2',
|
|
57
|
+
style: 'italic',
|
|
58
|
+
weight: '600',
|
|
59
|
+
},
|
|
60
|
+
/* source-sans-pro-700 - latin */
|
|
61
|
+
{
|
|
62
|
+
path: './../../../assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700.woff2',
|
|
63
|
+
style: 'normal',
|
|
64
|
+
weight: '700',
|
|
65
|
+
},
|
|
66
|
+
/* source-sans-pro-700italic - latin */
|
|
67
|
+
{
|
|
68
|
+
path: './../../../assets/fonts/source-sans-pro/source-sans-pro-v21-latin-700italic.woff2',
|
|
69
|
+
style: 'italic',
|
|
70
|
+
weight: '700',
|
|
71
|
+
},
|
|
72
|
+
/* source-sans-pro-900 - latin */
|
|
73
|
+
{
|
|
74
|
+
path: './../../../assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900.woff2',
|
|
75
|
+
style: 'normal',
|
|
76
|
+
weight: '900',
|
|
77
|
+
},
|
|
78
|
+
/* source-sans-pro-900italic - latin */
|
|
79
|
+
{
|
|
80
|
+
path: './../../../assets/fonts/source-sans-pro/source-sans-pro-v21-latin-900italic.woff2',
|
|
81
|
+
style: 'italic',
|
|
82
|
+
weight: '900',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Adds the `Mein Schiff Sans Pro` font to a Tailwind based Next.js 13 app.
|
|
89
|
+
*
|
|
90
|
+
* Under the hood the components uses [Next's local font loader](https://nextjs.org/docs/app/building-your-application/optimizing/fonts#local-fonts).
|
|
91
|
+
*
|
|
92
|
+
* ## Font Details
|
|
93
|
+
*
|
|
94
|
+
* `Mein Schiff Sans Pro` is a custom font based on Adobe's Source Sans Pro from [Google Fonts](https://fonts.google.com/specimen/Source+Sans+3). While it incorporates specific ligatures for Mein Schiff, it retains the core characteristics of Source Sans Pro. In cases where `Mein Schiff Sans Pro` isn't available for a particular font weight or style, we fall back to using `Source Sans Pro`.
|
|
95
|
+
*
|
|
96
|
+
* Here's how the fonts are used within different styles and weights:
|
|
97
|
+
*
|
|
98
|
+
* | Style | Weight | Font |
|
|
99
|
+
* | --- | --- | --- |
|
|
100
|
+
* | Normal | 200 | Source Sans Pro |
|
|
101
|
+
* | Normal | 300 | Source Sans Pro |
|
|
102
|
+
* | **Normal** | **400** | **Mein Schiff Sans Pro** |
|
|
103
|
+
* | **Normal** | **600** | **Mein Schiff Sans Pro** |
|
|
104
|
+
* | Normal | 700 | Source Sans Pro |
|
|
105
|
+
* | Normal | 900 | Source Sans Pro |
|
|
106
|
+
* | Italic | 200 | Source Sans Pro |
|
|
107
|
+
* | Italic | 300 | Source Sans Pro |
|
|
108
|
+
* | **Italic** | **400** | **Mein Schiff Sans Pro** |
|
|
109
|
+
* | **Italic** | **600** | **Mein Schiff Sans Pro** |
|
|
110
|
+
* | Italic | 700 | Source Sans Pro |
|
|
111
|
+
* | Italic | 900 | Source Sans Pro |
|
|
112
|
+
*
|
|
113
|
+
* ## Where to use?
|
|
114
|
+
*
|
|
115
|
+
* This component is intended for usage in Next.js 13+ apps. You should have this component only once in your app.
|
|
116
|
+
* Don't use it as a dynamic font wrapper.
|
|
117
|
+
*
|
|
118
|
+
* ## Usage
|
|
119
|
+
*
|
|
120
|
+
* ### 1. Load the Font
|
|
121
|
+
*
|
|
122
|
+
* Wrap your layout or your app in the `NextFontMeinSchiffSansPro` component and add the font's class name to a suitable html element.
|
|
123
|
+
*
|
|
124
|
+
* You can access the font's class name by supplying a render prop based child to the component. The render prop is invoked with the result of [Next's local font loader](https://nextjs.org/docs/app/building-your-application/optimizing/fonts#local-fonts) as its first argument.
|
|
125
|
+
*
|
|
126
|
+
* ```tsx
|
|
127
|
+
* <NextFontMeinSchiffSansPro>
|
|
128
|
+
* { (font) => (
|
|
129
|
+
* <html className={font.className}>
|
|
130
|
+
* <body>
|
|
131
|
+
* ...
|
|
132
|
+
* </body>
|
|
133
|
+
* </html>
|
|
134
|
+
* )}
|
|
135
|
+
* </NextFontMeinSchiffSansPro>
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* ### 2. Add the Font to your Tailwind Config
|
|
139
|
+
*
|
|
140
|
+
* Add the variable name `--font-mein-schiff-sans-pro` to your `tailwind.config.js` file.
|
|
141
|
+
*
|
|
142
|
+
* ```tsx
|
|
143
|
+
* import type { Config } from 'tailwindcss'
|
|
144
|
+
*
|
|
145
|
+
* const config: Config = {
|
|
146
|
+
* // ...
|
|
147
|
+
* theme: {
|
|
148
|
+
* fontFamily: {
|
|
149
|
+
* sans: ['var(--font-mein-schiff-sans-pro)']
|
|
150
|
+
* }
|
|
151
|
+
* },
|
|
152
|
+
* // ...
|
|
153
|
+
* };
|
|
154
|
+
*
|
|
155
|
+
* export default config;
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
export const NextFontMeinSchiffSansPro: FC<Props> = ({ children }) => {
|
|
159
|
+
return <>{children(meinSchiffSansPro)}</>;
|
|
160
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NextFontMeinSchiffSansPro';
|