@prijsvrijtechsupport/ui 0.0.46 → 0.0.48
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/dist/.storybook/preview.d.ts +5 -0
- package/dist/components/toggle/styles.css +2 -2
- package/dist/dist/index.css +6 -2
- package/dist/dist/index.css.map +1 -1
- package/dist/index.cjs +92 -1156
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +96 -1140
- package/dist/index.js.map +1 -1
- package/dist/src/components/accordion/Accordion.stories.d.ts +23 -0
- package/dist/src/components/blogWidget/BlogWidget.stories.d.ts +35 -0
- package/dist/src/components/button/Button.stories.d.ts +289 -0
- package/dist/src/components/calendar/Calendar.stories.d.ts +19 -0
- package/dist/src/components/categoryFilter/CategoryFilter.stories.d.ts +21 -0
- package/dist/src/components/chatbot/Chatbot.stories.d.ts +16 -0
- package/dist/src/components/checkbox/Checkbox.stories.d.ts +142 -0
- package/dist/src/components/collection/Collection.stories.d.ts +23 -0
- package/dist/src/components/counterIcon/CounterIcon.stories.d.ts +20 -0
- package/dist/src/components/coupon/Coupon.stories.d.ts +23 -0
- package/dist/src/components/divider/Divider.stories.d.ts +15 -0
- package/dist/src/components/dropdown/Dropdown.stories.d.ts +31 -0
- package/dist/src/components/filterButton/FilterButton.stories.d.ts +42 -0
- package/dist/src/components/filters/FilterButton.stories.d.ts +36 -0
- package/dist/src/components/filters/FilterItem.stories.d.ts +32 -0
- package/dist/src/components/flightSwitch/FlightSwitch.stories.d.ts +18 -0
- package/dist/src/components/footer/Footer.stories.d.ts +46 -0
- package/dist/src/components/giftCard/GiftCard.stories.d.ts +23 -0
- package/dist/{components → src/components}/giftCard/index.d.ts +2 -2
- package/dist/src/components/hamburgerMenuButton/HamburgerMenuButton.stories.d.ts +12 -0
- package/dist/src/components/header/Header.stories.d.ts +15 -0
- package/dist/{components → src/components}/header/index.d.ts +1 -1
- package/dist/src/components/hero/Hero.stories.d.ts +52 -0
- package/dist/src/components/hotelAccomodationResults/HotelAccomodationResults.stories.d.ts +45 -0
- package/dist/src/components/hotelWidget/HotelWidget.stories.d.ts +43 -0
- package/dist/src/components/label/Label.stories.d.ts +17 -0
- package/dist/src/components/linkBox/LinkBox.stories.d.ts +20 -0
- package/dist/src/components/loading/Loading.stories.d.ts +17 -0
- package/dist/src/components/logo/Logo.stories.d.ts +14 -0
- package/dist/src/components/map/Map.stories.d.ts +15 -0
- package/dist/src/components/matrixTable/MatrixTable.stories.d.ts +55 -0
- package/dist/src/components/menu/Menu.stories.d.ts +42 -0
- package/dist/src/components/middleNavigation/MiddleNavigation.stories.d.ts +20 -0
- package/dist/src/components/nominations/Nominations.stories.d.ts +15 -0
- package/dist/src/components/numberField/NumberField.stories.d.ts +25 -0
- package/dist/src/components/pageNavigation/PageNavigation.stories.d.ts +19 -0
- package/dist/src/components/pageRating/PageRating.stories.d.ts +19 -0
- package/dist/src/components/phoneNumberInput/PhoneNumberInput.stories.d.ts +19 -0
- package/dist/src/components/photoCardsRotated/PhotoCardsRotated.stories.d.ts +21 -0
- package/dist/src/components/priceCheck/Pricecheck.stories.d.ts +39 -0
- package/dist/src/components/profileMenu/ProfileMenu.stories.d.ts +92 -0
- package/dist/src/components/progressBar/ProgressBar.stories.d.ts +18 -0
- package/dist/src/components/pvPopup/PvPopup.stories.d.ts +38 -0
- package/dist/src/components/quantityButtons/QuantityButtons.stories.d.ts +19 -0
- package/dist/src/components/radioButton/RadioButton.stories.d.ts +18 -0
- package/dist/src/components/rangeSlider/RangeSlider.stories.d.ts +292 -0
- package/dist/src/components/rangeSlider/index.d.ts +16 -0
- package/dist/src/components/rating/Rating.stories.d.ts +16 -0
- package/dist/src/components/regionSelector/RegionSelector.stories.d.ts +15 -0
- package/dist/src/components/resultPageFilterBox/resultPageFilterBox.stories.d.ts +46 -0
- package/dist/src/components/review/Review.stories.d.ts +18 -0
- package/dist/src/components/reviewSmall/ReviewSmall.stories.d.ts +16 -0
- package/dist/src/components/reviews/Reviews.stories.d.ts +27 -0
- package/dist/src/components/scrollToTop/ScrollToTop.stories.d.ts +16 -0
- package/dist/src/components/searchBlock/SearchBlock.stories.d.ts +18 -0
- package/dist/src/components/searchBox/SearchBox.stories.d.ts +81 -0
- package/dist/src/components/searchBoxResults/SearchBoxResults.stories.d.ts +35 -0
- package/dist/src/components/searchInput/SearchInput.stories.d.ts +112 -0
- package/dist/src/components/skeleton/Skeleton.stories.d.ts +15 -0
- package/dist/src/components/slider/Slider.stories.d.ts +112 -0
- package/dist/src/components/spotlights/Spotlights.stories.d.ts +19 -0
- package/dist/src/components/stepper/Stepper.stories.d.ts +15 -0
- package/dist/src/components/stickyFooter/StickyFooter.stories.d.ts +15 -0
- package/dist/src/components/stickyMobileButton/StickyMobileButtonWrapper.stories.d.ts +13 -0
- package/dist/src/components/table/Table.stories.d.ts +13 -0
- package/dist/src/components/table/tableCell/TableCell.stories.d.ts +16 -0
- package/dist/src/components/table/tableRow/TableRow.stories.d.ts +13 -0
- package/dist/src/components/temp/Temp.stories.d.ts +15 -0
- package/dist/src/components/textArea/Textarea.stories.d.ts +19 -0
- package/dist/src/components/textInput/TextInput.stories.d.ts +166 -0
- package/dist/src/components/timeInput/TimeInput.stories.d.ts +89 -0
- package/dist/src/components/toggle/Toggle.stories.d.ts +151 -0
- package/dist/src/components/topHeaderMenu/TopHeaderMenu.stories.d.ts +31 -0
- package/dist/src/components/topMenu/TopMenu.stories.d.ts +15 -0
- package/dist/src/components/truncatedText/TruncatedText.stories.d.ts +28 -0
- package/dist/src/components/unorderedList/UnorderedList.stories.d.ts +30 -0
- package/dist/src/components/unorderedListItem/UnorderedListItem.stories.d.ts +30 -0
- package/dist/src/components/usp/Usp.stories.d.ts +29 -0
- package/dist/src/components/viewedAccomodations/ViewedAccomodations.stories.d.ts +45 -0
- package/dist/src/components/warningText/WarningText.stories.d.ts +16 -0
- package/dist/src/components/weather/Weather.stories.d.ts +48 -0
- package/dist/src/icons/Icons.stories.d.ts +36 -0
- package/dist/{index.d.ts → src/index.d.ts} +1 -21
- package/dist/styles/utilities.css +1 -1
- package/dist/styles/variables.css +4 -0
- package/package.json +10 -10
- package/dist/components/actionIcon/ActionIcon.test.d.ts +0 -1
- package/dist/components/actionIcon/index.d.ts +0 -24
- package/dist/components/alert/Alert.test.d.ts +0 -1
- package/dist/components/alert/index.d.ts +0 -17
- package/dist/components/autoCompleteInput/autoCompleteInput.test.d.ts +0 -1
- package/dist/components/autoCompleteInput/index.d.ts +0 -17
- package/dist/components/avatar/avatar.test.d.ts +0 -1
- package/dist/components/avatar/index.d.ts +0 -22
- package/dist/components/avatarIndicator/avatarIndicator.test.d.ts +0 -1
- package/dist/components/avatarIndicator/index.d.ts +0 -6
- package/dist/components/badge/badge.test.d.ts +0 -1
- package/dist/components/badge/index.d.ts +0 -27
- package/dist/components/bigBadge/bigBadge.test.d.ts +0 -1
- package/dist/components/bigBadge/index.d.ts +0 -9
- package/dist/components/breadCrumb/breadCrumb.test.d.ts +0 -1
- package/dist/components/breadCrumb/index.d.ts +0 -13
- package/dist/components/datePickerInput/DatePickerInput.dropdown.test.d.ts +0 -1
- package/dist/components/datePickerInput/DatePickerInput.test.d.ts +0 -1
- package/dist/components/datePickerInput/index.d.ts +0 -20
- package/dist/components/favouriteButton/FavouriteButton.test.d.ts +0 -1
- package/dist/components/favouriteButton/index.d.ts +0 -19
- package/dist/components/hr/hr.test.d.ts +0 -1
- package/dist/components/hr/index.d.ts +0 -8
- package/dist/components/island/index.d.ts +0 -12
- package/dist/components/island/island.test.d.ts +0 -1
- package/dist/components/modal/index.d.ts +0 -19
- package/dist/components/modal/modal.test.d.ts +0 -1
- package/dist/components/passwordInput/index.d.ts +0 -1
- package/dist/components/passwordInput/passwordInput.test.d.ts +0 -1
- package/dist/components/popover/index.d.ts +0 -6
- package/dist/components/popover/popover.test.d.ts +0 -1
- package/dist/components/rangeSlider/index.d.ts +0 -16
- package/dist/components/select/index.d.ts +0 -1
- package/dist/components/select/select.test.d.ts +0 -1
- package/dist/components/skillPill/index.d.ts +0 -6
- package/dist/components/skillPill/skillPill.test.d.ts +0 -1
- package/dist/components/tabs/Tab.d.ts +0 -11
- package/dist/components/tabs/Tab.test.d.ts +0 -1
- package/dist/components/tabs/TabsBadge.d.ts +0 -7
- package/dist/components/tabs/TabsBadge.test.d.ts +0 -1
- package/dist/components/tabs/TabsWrapper.d.ts +0 -17
- package/dist/components/tabs/TabsWrapper.test.d.ts +0 -1
- package/dist/components/tabs/index.d.ts +0 -3
- package/dist/components/tabs/tabs.test.d.ts +0 -1
- package/dist/components/unstyledButton/index.d.ts +0 -1
- package/dist/components/unstyledButton/unstyledButton.test.d.ts +0 -1
- /package/dist/components/{filterButtons → filterButton}/styles.css +0 -0
- /package/dist/{components → src/components}/accordion/AccordionItem.d.ts +0 -0
- /package/dist/{components → src/components}/accordion/accordion.test.d.ts +0 -0
- /package/dist/{components → src/components}/accordion/index.d.ts +0 -0
- /package/dist/{components → src/components}/blogWidget/BlogWidget.test.d.ts +0 -0
- /package/dist/{components → src/components}/blogWidget/index.d.ts +0 -0
- /package/dist/{components → src/components}/button/Button.test.d.ts +0 -0
- /package/dist/{components → src/components}/button/buttonVariants.d.ts +0 -0
- /package/dist/{components → src/components}/button/index.d.ts +0 -0
- /package/dist/{components → src/components}/calendar/Calendar.test.d.ts +0 -0
- /package/dist/{components → src/components}/calendar/index.d.ts +0 -0
- /package/dist/{components → src/components}/categoryFilter/CategoryFilter.test.d.ts +0 -0
- /package/dist/{components → src/components}/categoryFilter/index.d.ts +0 -0
- /package/dist/{components → src/components}/chatbot/index.d.ts +0 -0
- /package/dist/{components → src/components}/checkbox/checkbox.test.d.ts +0 -0
- /package/dist/{components → src/components}/checkbox/index.d.ts +0 -0
- /package/dist/{components → src/components}/collection/Collection.test.d.ts +0 -0
- /package/dist/{components → src/components}/collection/index.d.ts +0 -0
- /package/dist/{components → src/components}/colorScheme/index.d.ts +0 -0
- /package/dist/{components → src/components}/counterIcon/counterIcon.test.d.ts +0 -0
- /package/dist/{components → src/components}/counterIcon/index.d.ts +0 -0
- /package/dist/{components → src/components}/coupon/coupon.test.d.ts +0 -0
- /package/dist/{components → src/components}/coupon/index.d.ts +0 -0
- /package/dist/{components → src/components}/divider/divider.test.d.ts +0 -0
- /package/dist/{components → src/components}/divider/index.d.ts +0 -0
- /package/dist/{components → src/components}/dropdown/dropdown.test.d.ts +0 -0
- /package/dist/{components → src/components}/dropdown/index.d.ts +0 -0
- /package/dist/{components/filterButtons → src/components/filterButton}/filterButton.test.d.ts +0 -0
- /package/dist/{components/filterButtons → src/components/filterButton}/index.d.ts +0 -0
- /package/dist/{components → src/components}/filters/FilterButton.d.ts +0 -0
- /package/dist/{components → src/components}/filters/FilterButton.test.d.ts +0 -0
- /package/dist/{components → src/components}/filters/FilterItem.d.ts +0 -0
- /package/dist/{components → src/components}/filters/FilterItem.test.d.ts +0 -0
- /package/dist/{components → src/components}/filters/filters.test.d.ts +0 -0
- /package/dist/{components → src/components}/filters/index.d.ts +0 -0
- /package/dist/{components → src/components}/flightSwitch/flightSwitch.test.d.ts +0 -0
- /package/dist/{components → src/components}/flightSwitch/index.d.ts +0 -0
- /package/dist/{components → src/components}/footer/Footer.test.d.ts +0 -0
- /package/dist/{components → src/components}/footer/FooterBar.d.ts +0 -0
- /package/dist/{components → src/components}/footer/FooterBar.test.d.ts +0 -0
- /package/dist/{components → src/components}/footer/FooterNavigation.d.ts +0 -0
- /package/dist/{components → src/components}/footer/FooterNavigation.test.d.ts +0 -0
- /package/dist/{components → src/components}/footer/index.d.ts +0 -0
- /package/dist/{components → src/components}/footer/mockData.d.ts +0 -0
- /package/dist/{components → src/components}/giftCard/GiftCard.test.d.ts +0 -0
- /package/dist/{components → src/components}/hamburgerMenuButton/hamburgerMenuButton.test.d.ts +0 -0
- /package/dist/{components → src/components}/hamburgerMenuButton/index.d.ts +0 -0
- /package/dist/{components → src/components}/header/divider.test.d.ts +0 -0
- /package/dist/{components → src/components}/header/header.test.d.ts +0 -0
- /package/dist/{components → src/components}/hero/hero.test.d.ts +0 -0
- /package/dist/{components → src/components}/hero/index.d.ts +0 -0
- /package/dist/{components → src/components}/hotelAccomodationResults/HotelAccomodationResults.test.d.ts +0 -0
- /package/dist/{components → src/components}/hotelAccomodationResults/index.d.ts +0 -0
- /package/dist/{components → src/components}/hotelWidget/HotelWidget.test.d.ts +0 -0
- /package/dist/{components → src/components}/hotelWidget/index.d.ts +0 -0
- /package/dist/{components → src/components}/label/index.d.ts +0 -0
- /package/dist/{components → src/components}/label/label.test.d.ts +0 -0
- /package/dist/{components → src/components}/linkBox/index.d.ts +0 -0
- /package/dist/{components → src/components}/loading/Loading.test.d.ts +0 -0
- /package/dist/{components → src/components}/loading/cloud.d.ts +0 -0
- /package/dist/{components → src/components}/loading/d-reizen-sign.d.ts +0 -0
- /package/dist/{components → src/components}/loading/dollar.d.ts +0 -0
- /package/dist/{components → src/components}/loading/index.d.ts +0 -0
- /package/dist/{components → src/components}/loading/plane.d.ts +0 -0
- /package/dist/{components → src/components}/logo/Logo.test.d.ts +0 -0
- /package/dist/{components → src/components}/logo/index.d.ts +0 -0
- /package/dist/{components → src/components}/map/index.d.ts +0 -0
- /package/dist/{components → src/components}/matrixTable/MatrixTable.test.d.ts +0 -0
- /package/dist/{components → src/components}/matrixTable/index.d.ts +0 -0
- /package/dist/{components → src/components}/menu/index.d.ts +0 -0
- /package/dist/{components → src/components}/menu/menu.test.d.ts +0 -0
- /package/dist/{components → src/components}/menu/mockdata.d.ts +0 -0
- /package/dist/{components → src/components}/middleNavigation/divider.test.d.ts +0 -0
- /package/dist/{components → src/components}/middleNavigation/index.d.ts +0 -0
- /package/dist/{components → src/components}/middleNavigation/middleNavigation.test.d.ts +0 -0
- /package/dist/{components → src/components}/nominations/index.d.ts +0 -0
- /package/dist/{components → src/components}/nominations/nominations.test.d.ts +0 -0
- /package/dist/{components → src/components}/numberField/index.d.ts +0 -0
- /package/dist/{components → src/components}/numberField/numberField.test.d.ts +0 -0
- /package/dist/{components → src/components}/pageNavigation/index.d.ts +0 -0
- /package/dist/{components → src/components}/pageNavigation/pageNavigation.test.d.ts +0 -0
- /package/dist/{components → src/components}/pageRating/dynamic-rating.d.ts +0 -0
- /package/dist/{components → src/components}/pageRating/example.d.ts +0 -0
- /package/dist/{components → src/components}/pageRating/index.d.ts +0 -0
- /package/dist/{components → src/components}/pageRating/pageRating.test.d.ts +0 -0
- /package/dist/{components → src/components}/phoneNumberInput/PhoneNumberInput.edge.test.d.ts +0 -0
- /package/dist/{components → src/components}/phoneNumberInput/PhoneNumberInput.test.d.ts +0 -0
- /package/dist/{components → src/components}/phoneNumberInput/index.d.ts +0 -0
- /package/dist/{components → src/components}/photoCardsRotated/PhotoCardsRotated.test.d.ts +0 -0
- /package/dist/{components → src/components}/photoCardsRotated/index.d.ts +0 -0
- /package/dist/{components → src/components}/priceBox/index.d.ts +0 -0
- /package/dist/{components → src/components}/priceBox/priceBox.test.d.ts +0 -0
- /package/dist/{components → src/components}/priceCheck/Pricecheck.test.d.ts +0 -0
- /package/dist/{components → src/components}/priceCheck/index.d.ts +0 -0
- /package/dist/{components → src/components}/profileMenu/ProfileMenu.test.d.ts +0 -0
- /package/dist/{components → src/components}/profileMenu/index.d.ts +0 -0
- /package/dist/{components → src/components}/progressBar/index.d.ts +0 -0
- /package/dist/{components → src/components}/progressBar/progressBar.test.d.ts +0 -0
- /package/dist/{components → src/components}/pvPopup/PvPopup.test.d.ts +0 -0
- /package/dist/{components → src/components}/pvPopup/index.d.ts +0 -0
- /package/dist/{components → src/components}/quantityButtons/index.d.ts +0 -0
- /package/dist/{components → src/components}/quantityButtons/quantityButtons.test.d.ts +0 -0
- /package/dist/{components → src/components}/radioButton/index.d.ts +0 -0
- /package/dist/{components → src/components}/radioButton/radioButton.test.d.ts +0 -0
- /package/dist/{components → src/components}/rangeSlider/rangeSlider.test.d.ts +0 -0
- /package/dist/{components → src/components}/rating/index.d.ts +0 -0
- /package/dist/{components → src/components}/rating/rating.test.d.ts +0 -0
- /package/dist/{components → src/components}/regionSelector/index.d.ts +0 -0
- /package/dist/{components → src/components}/regionSelector/regionSelector.test.d.ts +0 -0
- /package/dist/{components → src/components}/resultPageFilterBox/index.d.ts +0 -0
- /package/dist/{components → src/components}/review/Review.test.d.ts +0 -0
- /package/dist/{components → src/components}/review/index.d.ts +0 -0
- /package/dist/{components → src/components}/reviewSmall/ReviewSmall.test.d.ts +0 -0
- /package/dist/{components → src/components}/reviewSmall/index.d.ts +0 -0
- /package/dist/{components → src/components}/reviews/index.d.ts +0 -0
- /package/dist/{components → src/components}/reviews/reviews.test.d.ts +0 -0
- /package/dist/{components → src/components}/scrollToTop/index.d.ts +0 -0
- /package/dist/{components → src/components}/scrollToTop/scrollToTop.test.d.ts +0 -0
- /package/dist/{components → src/components}/searchBlock/SearchBlock.test.d.ts +0 -0
- /package/dist/{components → src/components}/searchBlock/index.d.ts +0 -0
- /package/dist/{components → src/components}/searchBox/index.d.ts +0 -0
- /package/dist/{components → src/components}/searchBox/searchBox.test.d.ts +0 -0
- /package/dist/{components → src/components}/searchBoxResults/index.d.ts +0 -0
- /package/dist/{components → src/components}/searchBoxResults/searchBoxResults.test.d.ts +0 -0
- /package/dist/{components → src/components}/searchInput/index.d.ts +0 -0
- /package/dist/{components → src/components}/searchInput/searchInput.test.d.ts +0 -0
- /package/dist/{components → src/components}/skeleton/index.d.ts +0 -0
- /package/dist/{components → src/components}/skeleton/skeleton.test.d.ts +0 -0
- /package/dist/{components → src/components}/slider/index.d.ts +0 -0
- /package/dist/{components → src/components}/slider/slider.test.d.ts +0 -0
- /package/dist/{components → src/components}/spotlights/Spotlights.test.d.ts +0 -0
- /package/dist/{components → src/components}/spotlights/index.d.ts +0 -0
- /package/dist/{components → src/components}/stepper/Stepper.test.d.ts +0 -0
- /package/dist/{components → src/components}/stepper/index.d.ts +0 -0
- /package/dist/{components → src/components}/stickyFooter/index.d.ts +0 -0
- /package/dist/{components → src/components}/stickyMobileButton/index.d.ts +0 -0
- /package/dist/{components → src/components}/stickyMobileButton/stickyMobileButton.test.d.ts +0 -0
- /package/dist/{components → src/components}/table/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/table.test.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableCell/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableCell/tableCell.test.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableHeader/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableHeader/tableHeader.test.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableHeaderItem/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableHeaderItem/tableHeaderItem.test.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableHeaderRow/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableHeaderRow/tableHeaderRow.test.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableRow/index.d.ts +0 -0
- /package/dist/{components → src/components}/table/tableRow/tableRow.test.d.ts +0 -0
- /package/dist/{components → src/components}/temp/index.d.ts +0 -0
- /package/dist/{components → src/components}/textArea/index.d.ts +0 -0
- /package/dist/{components → src/components}/textArea/textArea.test.d.ts +0 -0
- /package/dist/{components → src/components}/textInput/index.d.ts +0 -0
- /package/dist/{components → src/components}/textInput/textInput.test.d.ts +0 -0
- /package/dist/{components → src/components}/timeInput/TimeInput.test.d.ts +0 -0
- /package/dist/{components → src/components}/timeInput/index.d.ts +0 -0
- /package/dist/{components → src/components}/toggle/index.d.ts +0 -0
- /package/dist/{components → src/components}/toggle/toggle.test.d.ts +0 -0
- /package/dist/{components → src/components}/topHeaderMenu/index.d.ts +0 -0
- /package/dist/{components → src/components}/topHeaderMenu/topHeaderMenu.test.d.ts +0 -0
- /package/dist/{components → src/components}/topMenu/index.d.ts +0 -0
- /package/dist/{components → src/components}/topMenu/topMenu.test.d.ts +0 -0
- /package/dist/{components → src/components}/truncatedText/index.d.ts +0 -0
- /package/dist/{components → src/components}/truncatedText/truncatedText.test.d.ts +0 -0
- /package/dist/{components → src/components}/unorderedList/index.d.ts +0 -0
- /package/dist/{components → src/components}/unorderedList/unorderedList.test.d.ts +0 -0
- /package/dist/{components → src/components}/unorderedListItem/index.d.ts +0 -0
- /package/dist/{components → src/components}/unorderedListItem/unorderedListItem.test.d.ts +0 -0
- /package/dist/{components → src/components}/usp/Usp.test.d.ts +0 -0
- /package/dist/{components → src/components}/usp/index.d.ts +0 -0
- /package/dist/{components → src/components}/viewedAccomodations/ViewedAccomodations.test.d.ts +0 -0
- /package/dist/{components → src/components}/viewedAccomodations/ViewedAccomodationsImage.d.ts +0 -0
- /package/dist/{components → src/components}/viewedAccomodations/index.d.ts +0 -0
- /package/dist/{components → src/components}/warningText/index.d.ts +0 -0
- /package/dist/{components → src/components}/warningText/warningText.test.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_lightning.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_moon.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_off.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_raining_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_raining_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_raining_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_raining_04.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_raining_05.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_raining_06.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_snowing_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_snowing_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_sun_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_sun_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/cloud_sun_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/droplets_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/droplets_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/droplets_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/hurricane_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/hurricane_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/hurricane_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/lightning_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/lightning_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/moon_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/moon_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/moon_eclipse.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/moon_star.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/snowflake_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/snowflake_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/stars_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/stars_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/stars_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/sun.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/sun_setting_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/sun_setting_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/sun_setting_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/sunrise.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/sunset.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/thermometer_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/thermometer_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/thermometer_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/thermometer_cold.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/thermometer_warm.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/umbrella_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/umbrella_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/umbrella_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/waves.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/wind_01.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/wind_02.d.ts +0 -0
- /package/dist/{components → src/components}/weather/icons/wind_03.d.ts +0 -0
- /package/dist/{components → src/components}/weather/index.d.ts +0 -0
- /package/dist/{components → src/components}/weather/weather.test.d.ts +0 -0
- /package/dist/{components → src/components}/withPvUi.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconAlert.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconArrival.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconArrowDown.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconArrowLeft.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconArrowRight.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconArrowUp.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconBeach.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconBed.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconBlog.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconBus.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconCalendar.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconCancel.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconCar.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconCarSun.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconCheck.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconChevronRight.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconCity.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconClock.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconCocktail.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconDelete.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconDeparture.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconDollar.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconEdit.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconExpand.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconFacebook.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconFavorite.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconFilter.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconFood.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconHeart.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconHeartFilled.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconHot.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconHotel.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconHouse.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconIce.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconInfo.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconInstagram.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconLuggage.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconMail.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconMap.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconMinus.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconParty.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconPhone.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconPhoto.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconPinterest.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconPlane.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconPlus.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconPresent.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconPresent.test.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconQuestion.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconRating.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconSearch.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconSeat.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconShare.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconSplash.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconStar.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconSuccess.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconSun.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconSupport.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconTemperature.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconTiktok.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconTransfer.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconTree.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconTwitter.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconUser.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconView.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconWarning.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconWatched.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconWhatsapp.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconWinterSport.d.ts +0 -0
- /package/dist/{icons → src/icons}/IconWinterSun.d.ts +0 -0
- /package/dist/{icons → src/icons}/icons.test.d.ts +0 -0
- /package/dist/{icons → src/icons}/index.d.ts +0 -0
- /package/dist/{jsx-runtime-shim.d.ts → src/jsx-runtime-shim.d.ts} +0 -0
- /package/dist/{styles → src/styles}/index.d.ts +0 -0
- /package/dist/{theme → src/theme}/brand.d.ts +0 -0
- /package/dist/{theme → src/theme}/brand.test.d.ts +0 -0
- /package/dist/{theme → src/theme}/index.d.ts +0 -0
- /package/dist/{theme → src/theme}/variables.d.ts +0 -0
- /package/dist/{theme → src/theme}/variables.test.d.ts +0 -0
- /package/dist/{utils → src/utils}/ANVR.d.ts +0 -0
- /package/dist/{utils → src/utils}/Calamiteitenfonds.d.ts +0 -0
- /package/dist/{utils → src/utils}/SGR.d.ts +0 -0
- /package/dist/{utils → src/utils}/cn.d.ts +0 -0
- /package/dist/{utils → src/utils}/countries.d.ts +0 -0
- /package/dist/{utils → src/utils}/d-reizen_logo.d.ts +0 -0
- /package/dist/{utils → src/utils}/enums.d.ts +0 -0
- /package/dist/{utils → src/utils}/formatIcon.d.ts +0 -0
- /package/dist/{utils → src/utils}/formatIcon.test.d.ts +0 -0
- /package/dist/{utils → src/utils}/logos.test.d.ts +0 -0
- /package/dist/{utils → src/utils}/prijsvrij_logo.d.ts +0 -0
- /package/dist/{utils → src/utils}/ssr.d.ts +0 -0
- /package/dist/{utils → src/utils}/storybookIcons.d.ts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -31,12 +31,8 @@ const tailwind_merge = __toESM(require("tailwind-merge"));
|
|
|
31
31
|
const react_intersection_observer = __toESM(require("react-intersection-observer"));
|
|
32
32
|
const moment = __toESM(require("moment"));
|
|
33
33
|
const embla_carousel_react = __toESM(require("embla-carousel-react"));
|
|
34
|
-
const react_day_picker = __toESM(require("react-day-picker"));
|
|
35
34
|
const date_fns = __toESM(require("date-fns"));
|
|
36
35
|
const date_fns_locale = __toESM(require("date-fns/locale"));
|
|
37
|
-
const __floating_ui_react = __toESM(require("@floating-ui/react"));
|
|
38
|
-
const react_dom = __toESM(require("react-dom"));
|
|
39
|
-
const react_select = __toESM(require("react-select"));
|
|
40
36
|
|
|
41
37
|
//#region src/jsx-runtime-shim.ts
|
|
42
38
|
const jsx = react.createElement;
|
|
@@ -72,7 +68,7 @@ var styles_default$25 = {};
|
|
|
72
68
|
var styles_default$24 = {};
|
|
73
69
|
|
|
74
70
|
//#endregion
|
|
75
|
-
//#region src/components/
|
|
71
|
+
//#region src/components/filterButton/styles.css
|
|
76
72
|
var styles_default$23 = {};
|
|
77
73
|
|
|
78
74
|
//#endregion
|
|
@@ -343,7 +339,7 @@ const CounterIcon = ({ className, icon, id, count, allowZero = false, onClick, i
|
|
|
343
339
|
//#region src/components/divider/index.tsx
|
|
344
340
|
const Divider = ({ className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
345
341
|
"data-component": "divider",
|
|
346
|
-
className: (0, clsx.default)("block h-px w-full bg-
|
|
342
|
+
className: (0, clsx.default)("block h-px w-full bg-[#e0e0e0]", className),
|
|
347
343
|
...props
|
|
348
344
|
});
|
|
349
345
|
|
|
@@ -1926,7 +1922,7 @@ const Dropdown = ({ className, loading, dropdownItems, selectedItem, onClick, dr
|
|
|
1926
1922
|
onClick: toggleDropdown,
|
|
1927
1923
|
onKeyDown: handleKeyDown,
|
|
1928
1924
|
tabIndex: 0,
|
|
1929
|
-
className: "dropdown-button bg-white px-3 py-2 h-12 border rounded-md w-full flex items-center flex-row justify-between",
|
|
1925
|
+
className: "dropdown-button bg-white cursor-pointer px-3 py-2 h-12 border rounded-md w-full flex items-center flex-row justify-between",
|
|
1930
1926
|
"aria-haspopup": "true",
|
|
1931
1927
|
"aria-expanded": isOpen,
|
|
1932
1928
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
@@ -1954,7 +1950,7 @@ const Dropdown = ({ className, loading, dropdownItems, selectedItem, onClick, dr
|
|
|
1954
1950
|
};
|
|
1955
1951
|
|
|
1956
1952
|
//#endregion
|
|
1957
|
-
//#region src/components/
|
|
1953
|
+
//#region src/components/filterButton/index.tsx
|
|
1958
1954
|
const FilterButton = ({ className, icon, leftContent, text, disabled, onClick }) => {
|
|
1959
1955
|
const formattedIcon = icon ? formatIcon(icon, { className: "min-w-4 min-h-4" }) : null;
|
|
1960
1956
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
@@ -5138,7 +5134,7 @@ const QuantityButtons = ({ className, value, setValue, minValue = 0, maxValue =
|
|
|
5138
5134
|
ariaLabel: "Decrease value",
|
|
5139
5135
|
variant: "icon",
|
|
5140
5136
|
disabled: isMin,
|
|
5141
|
-
className: "group rounded-full quantity-buttons-border-color border-2 p-1 w-8 h-8 items-center justify-center focus-visible:ring-2 focus-visible:ring-secondary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
5137
|
+
className: "group cursor-pointer rounded-full quantity-buttons-border-color border-2 p-1 w-8 h-8 items-center justify-center focus-visible:ring-2 focus-visible:ring-secondary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
5142
5138
|
onClick: () => setValue(Math.max(value - 1, minValue)),
|
|
5143
5139
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconMinus, { className: "quantity-buttons-color" })
|
|
5144
5140
|
}),
|
|
@@ -5150,7 +5146,7 @@ const QuantityButtons = ({ className, value, setValue, minValue = 0, maxValue =
|
|
|
5150
5146
|
ariaLabel: "Increase value",
|
|
5151
5147
|
variant: "icon",
|
|
5152
5148
|
disabled: isMax,
|
|
5153
|
-
className: "group rounded-full quantity-buttons-border-color border-2 p-1 w-8 h-8 items-center justify-center focus-visible:ring-2 focus-visible:ring-secondary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
5149
|
+
className: "group cursor-pointer rounded-full quantity-buttons-border-color border-2 p-1 w-8 h-8 items-center justify-center focus-visible:ring-2 focus-visible:ring-secondary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
5154
5150
|
onClick: () => setValue(Math.min(value + 1, maxValue)),
|
|
5155
5151
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPlus, { className: "quantity-buttons-color" })
|
|
5156
5152
|
})
|
|
@@ -5265,22 +5261,22 @@ function Slider({ slides, options, plugins, lazyLoad = false, showArrows = true,
|
|
|
5265
5261
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
5266
5262
|
type: "button",
|
|
5267
5263
|
"aria-label": "Previous slide",
|
|
5268
|
-
className: cn("pointer-events-auto cursor-pointer ml-2 inline-flex size-9 items-center justify-center rounded-full bg-
|
|
5264
|
+
className: cn("pointer-events-auto cursor-pointer ml-2 inline-flex size-9 items-center justify-center rounded-full bg-black/40 text-white shadow", !canScrollPrev && "opacity-50"),
|
|
5269
5265
|
onClick: scrollPrev,
|
|
5270
5266
|
disabled: !canScrollPrev,
|
|
5271
5267
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5272
5268
|
"aria-hidden": "true",
|
|
5273
|
-
children: "
|
|
5269
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowLeft, { className: "size-4 text-white" })
|
|
5274
5270
|
})
|
|
5275
5271
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
5276
5272
|
type: "button",
|
|
5277
5273
|
"aria-label": "Next slide",
|
|
5278
|
-
className: cn("pointer-events-auto cursor-pointer mr-2 inline-flex size-9 items-center justify-center rounded-full bg-
|
|
5274
|
+
className: cn("pointer-events-auto cursor-pointer mr-2 inline-flex size-9 items-center justify-center rounded-full bg-black/40 text-white shadow", !canScrollNext && "opacity-50"),
|
|
5279
5275
|
onClick: scrollNext,
|
|
5280
5276
|
disabled: !canScrollNext,
|
|
5281
5277
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
5282
5278
|
"aria-hidden": "true",
|
|
5283
|
-
children: "
|
|
5279
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowRight, { className: "size-4 text-white" })
|
|
5284
5280
|
})
|
|
5285
5281
|
})]
|
|
5286
5282
|
}),
|
|
@@ -7049,702 +7045,6 @@ const PriceBox = ({ className, hotel, brand, noBorder = false, noHover = false,
|
|
|
7049
7045
|
});
|
|
7050
7046
|
};
|
|
7051
7047
|
|
|
7052
|
-
//#endregion
|
|
7053
|
-
//#region src/utils/enums.ts
|
|
7054
|
-
let ACTION_ICON_STYLE_VARIANT = /* @__PURE__ */ function(ACTION_ICON_STYLE_VARIANT$1) {
|
|
7055
|
-
ACTION_ICON_STYLE_VARIANT$1["DEFAULT"] = "default";
|
|
7056
|
-
ACTION_ICON_STYLE_VARIANT$1["TRANSPARENT"] = "transparent";
|
|
7057
|
-
ACTION_ICON_STYLE_VARIANT$1["SMALL"] = "small";
|
|
7058
|
-
ACTION_ICON_STYLE_VARIANT$1["ROUND"] = "round";
|
|
7059
|
-
return ACTION_ICON_STYLE_VARIANT$1;
|
|
7060
|
-
}({});
|
|
7061
|
-
let THEME_ICON_STYLE_VARIANT = /* @__PURE__ */ function(THEME_ICON_STYLE_VARIANT$1) {
|
|
7062
|
-
THEME_ICON_STYLE_VARIANT$1["PINK_WITH_BACKGROUND"] = "pink-with-background";
|
|
7063
|
-
return THEME_ICON_STYLE_VARIANT$1;
|
|
7064
|
-
}({});
|
|
7065
|
-
let COLOR = /* @__PURE__ */ function(COLOR$1) {
|
|
7066
|
-
COLOR$1["PRIMARY"] = "primary";
|
|
7067
|
-
COLOR$1["BLACK"] = "black";
|
|
7068
|
-
COLOR$1["LIGHT_BLUE"] = "light-blue";
|
|
7069
|
-
COLOR$1["LIGHT_BLUE_DISABLED"] = "light-blue-disabled";
|
|
7070
|
-
COLOR$1["GREEN"] = "green";
|
|
7071
|
-
COLOR$1["GREEN_LIGHT"] = "green-light";
|
|
7072
|
-
COLOR$1["PINK"] = "pink";
|
|
7073
|
-
COLOR$1["PINK_LIGHT"] = "pink-light";
|
|
7074
|
-
COLOR$1["ORANGE"] = "orange";
|
|
7075
|
-
COLOR$1["ORANGE_LIGHT"] = "orange-light";
|
|
7076
|
-
COLOR$1["ACCENT_BLUE"] = "accent-blue";
|
|
7077
|
-
COLOR$1["ACCENT_BLUE_LIGHT"] = "accent-blue-light";
|
|
7078
|
-
COLOR$1["YELLOW"] = "yellow";
|
|
7079
|
-
COLOR$1["CHECK"] = "check";
|
|
7080
|
-
COLOR$1["WARNING"] = "warning";
|
|
7081
|
-
COLOR$1["ERROR"] = "error";
|
|
7082
|
-
COLOR$1["SUCCESS"] = "success";
|
|
7083
|
-
COLOR$1["WARNING_LIGHT"] = "warning-light";
|
|
7084
|
-
COLOR$1["ULTRA_LIGHT_BLUE"] = "ultra-light-blue";
|
|
7085
|
-
COLOR$1["ULTRA_LIGHT_GRAY"] = "ultra-light-gray";
|
|
7086
|
-
COLOR$1["TURQUOISE"] = "turquoise";
|
|
7087
|
-
COLOR$1["RED"] = "red";
|
|
7088
|
-
COLOR$1["GRAY"] = "gray";
|
|
7089
|
-
COLOR$1["WHITE"] = "white";
|
|
7090
|
-
COLOR$1["PURPLE"] = "purple";
|
|
7091
|
-
COLOR$1["PURPLE_LIGHT"] = "purple-light";
|
|
7092
|
-
return COLOR$1;
|
|
7093
|
-
}({});
|
|
7094
|
-
let REGION = /* @__PURE__ */ function(REGION$1) {
|
|
7095
|
-
REGION$1["NETHERLANDS"] = "nl";
|
|
7096
|
-
REGION$1["BELGIUM"] = "nl-BE";
|
|
7097
|
-
REGION$1["UNITED_KINGDOM"] = "gb";
|
|
7098
|
-
return REGION$1;
|
|
7099
|
-
}({});
|
|
7100
|
-
let TOOLTIP_COLOR = /* @__PURE__ */ function(TOOLTIP_COLOR$1) {
|
|
7101
|
-
TOOLTIP_COLOR$1["DEFAULT"] = "default";
|
|
7102
|
-
TOOLTIP_COLOR$1["WHITE"] = "white";
|
|
7103
|
-
return TOOLTIP_COLOR$1;
|
|
7104
|
-
}({});
|
|
7105
|
-
|
|
7106
|
-
//#endregion
|
|
7107
|
-
//#region src/components/actionIcon/index.tsx
|
|
7108
|
-
const ActionIcon = (0, react.forwardRef)(({ title, disabled = false, styleVariant = "default", icon, type = "button", "data-testid": testId, iconSize = 20, strokeWidth = 1, onClick, className,...props }, ref) => {
|
|
7109
|
-
const variantClassNames = (0, clsx.default)({
|
|
7110
|
-
"active:translate-y-[1px] content-center flex items-center justify-center rounded-[4px] border border-gray-200 hover:border-black text-black child:p-10 w-[36px] h-[36px] disabled:text-gray-500": styleVariant === ACTION_ICON_STYLE_VARIANT.DEFAULT,
|
|
7111
|
-
"active:translate-y-[1px] border-none content-center flex items-center justify-center rounded-[4px] border text-black child:p-10 w-[36px] h-[36px] disabled:text-gray-500": styleVariant === ACTION_ICON_STYLE_VARIANT.TRANSPARENT,
|
|
7112
|
-
"active:translate-y-[1px] content-center flex items-center justify-center rounded-[4px] child:p-10 w-[37px] h-[37px] text-black rounded-full bg-primary hover:bg-turquoise-700 disabled:turquoise-50 disabled:text-gray-800": styleVariant === ACTION_ICON_STYLE_VARIANT.ROUND,
|
|
7113
|
-
"w-7 h-7 active:translate-y-[1px] content-center flex items-center justify-center rounded-[4px] border border-gray-200 hover:border-black text-black hover:bg-gray-50 disabled:text-gray-500": styleVariant === ACTION_ICON_STYLE_VARIANT.SMALL
|
|
7114
|
-
});
|
|
7115
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
7116
|
-
title,
|
|
7117
|
-
type,
|
|
7118
|
-
disabled,
|
|
7119
|
-
"data-testid": testId,
|
|
7120
|
-
"data-component": "ActionIcon",
|
|
7121
|
-
className: cn(variantClassNames, { "hover:bg-transparant cursor-not-allowed hover:border-gray-200": disabled }, className),
|
|
7122
|
-
onClick,
|
|
7123
|
-
ref,
|
|
7124
|
-
"data-tooltip-id": title,
|
|
7125
|
-
"data-tooltip-content": title,
|
|
7126
|
-
...props,
|
|
7127
|
-
children: icon ? formatIcon(icon, {
|
|
7128
|
-
stroke: strokeWidth,
|
|
7129
|
-
size: iconSize
|
|
7130
|
-
}) : props["children"]
|
|
7131
|
-
}) });
|
|
7132
|
-
});
|
|
7133
|
-
ActionIcon.displayName = "ActionIcon";
|
|
7134
|
-
|
|
7135
|
-
//#endregion
|
|
7136
|
-
//#region src/components/alert/index.tsx
|
|
7137
|
-
const Alert = ({ show, message, type, plain = false, className }) => {
|
|
7138
|
-
const [showAlert, setShowAlert] = (0, react.useState)();
|
|
7139
|
-
const icon = () => {
|
|
7140
|
-
if (plain) return null;
|
|
7141
|
-
switch (type) {
|
|
7142
|
-
case "warning": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7143
|
-
className: "text-warning hidden md:block",
|
|
7144
|
-
"data-testid": "alert-circle-icon"
|
|
7145
|
-
});
|
|
7146
|
-
case "error": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7147
|
-
className: "hidden text-red-500 md:block",
|
|
7148
|
-
"data-testid": "alert-circle-icon"
|
|
7149
|
-
});
|
|
7150
|
-
case "success": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7151
|
-
className: "text-green hidden md:block",
|
|
7152
|
-
"data-testid": "check-circle-icon"
|
|
7153
|
-
});
|
|
7154
|
-
}
|
|
7155
|
-
};
|
|
7156
|
-
(0, react.useEffect)(() => {
|
|
7157
|
-
setShowAlert(show);
|
|
7158
|
-
}, [show]);
|
|
7159
|
-
if (!showAlert) return null;
|
|
7160
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7161
|
-
className: cn(`flex w-full justify-between gap-3 rounded border border-solid p-5 md:items-center md:gap-12 ${plain ? "border-none py-4 text-sm font-medium" : ""}`, {
|
|
7162
|
-
"border-warning bg-warning-light text-warning": type === COLOR.WARNING,
|
|
7163
|
-
"border-red-500 bg-red-50 text-red-500": type === COLOR.ERROR,
|
|
7164
|
-
"border-green bg-green-light text-green": type === COLOR.SUCCESS
|
|
7165
|
-
}, className),
|
|
7166
|
-
"data-component": "Alert",
|
|
7167
|
-
"data-testid": "alert",
|
|
7168
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7169
|
-
className: "flex md:items-center",
|
|
7170
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7171
|
-
className: "flex md:items-center",
|
|
7172
|
-
children: icon()
|
|
7173
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7174
|
-
className: `m-0 font-medium text-black ${plain ? "" : "md:ml-5"}`,
|
|
7175
|
-
children: message
|
|
7176
|
-
})]
|
|
7177
|
-
}) })
|
|
7178
|
-
});
|
|
7179
|
-
};
|
|
7180
|
-
Alert.displayName = "Alert";
|
|
7181
|
-
|
|
7182
|
-
//#endregion
|
|
7183
|
-
//#region src/components/textInput/index.tsx
|
|
7184
|
-
const TextInput = react.default.forwardRef(({ rightSection, leftSection, className, error, autoFocus, label, maxLength, enablePasswordManagerAutofill = false, onBlur, disabled, loadingState, onKeyDown, min = "0", max, autoComplete, showRightSection = true, step, wrapperClassName, password = false,...props }, ref) => {
|
|
7185
|
-
const [showPassword, setShowPassword] = react.default.useState(false);
|
|
7186
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7187
|
-
"data-component": "TextInput",
|
|
7188
|
-
"data-testid": "TextInput",
|
|
7189
|
-
className: (0, clsx.default)("relative", wrapperClassName),
|
|
7190
|
-
children: [
|
|
7191
|
-
typeof label === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
7192
|
-
htmlFor: props["id"],
|
|
7193
|
-
className: "mb-2 flex items-center gap-1 text-xs font-medium text-black",
|
|
7194
|
-
children: label
|
|
7195
|
-
}) : label,
|
|
7196
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7197
|
-
className: "relative",
|
|
7198
|
-
children: [
|
|
7199
|
-
leftSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7200
|
-
className: (0, clsx.default)("absolute top-0 left-0 flex h-10 w-12 content-center items-center justify-center align-middle text-sm font-medium text-black"),
|
|
7201
|
-
children: leftSection
|
|
7202
|
-
}),
|
|
7203
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
7204
|
-
onBlur,
|
|
7205
|
-
onKeyDown,
|
|
7206
|
-
autoComplete,
|
|
7207
|
-
min,
|
|
7208
|
-
max,
|
|
7209
|
-
autoFocus,
|
|
7210
|
-
disabled,
|
|
7211
|
-
step,
|
|
7212
|
-
maxLength,
|
|
7213
|
-
className: (0, clsx.default)(`${loadingState ? "cursor-not-allowed" : ""}`, `${disabled ? "text-gray-500" : "text-gray-900"} selection:bg-turquoise-200 focus:border-turquoise-500 focus:ring-turquoise-500 active:border-turquoise-500 active:ring-turquoise-500 h-10 w-full rounded-[4px] border border-gray-200 bg-gray-50 px-3 text-sm font-normal outline-hidden ${rightSection && "pr-12"} ${leftSection && "pl-12"} ${error && "border-red-500 text-red-500 selection:bg-red-200 focus:border-red-500 focus:ring-red-500 focus:placeholder:text-red-500 active:border-red-500 active:ring-red-500"}`, className),
|
|
7214
|
-
"aria-busy": loadingState || undefined,
|
|
7215
|
-
"data-lpignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
7216
|
-
"data-1p-ignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
7217
|
-
ref,
|
|
7218
|
-
...props,
|
|
7219
|
-
type: password ? showPassword ? "text" : "password" : "text"
|
|
7220
|
-
}),
|
|
7221
|
-
loadingState ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7222
|
-
className: "absolute inset-y-0 right-0 flex h-10 w-12 content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
7223
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconAlert, {
|
|
7224
|
-
className: "h-4 w-4 animate-spin text-gray-500",
|
|
7225
|
-
"aria-label": "Loading"
|
|
7226
|
-
})
|
|
7227
|
-
}) : rightSection && showRightSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7228
|
-
className: "absolute inset-y-0 right-0 flex h-10 w-12 content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
7229
|
-
children: rightSection
|
|
7230
|
-
}),
|
|
7231
|
-
password && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7232
|
-
className: "absolute inset-y-0 right-4 flex content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
7233
|
-
children: showPassword ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7234
|
-
"data-testid": "password-visibility-toggle",
|
|
7235
|
-
className: "cursor-pointer text-gray-500",
|
|
7236
|
-
onClick: () => setShowPassword(false)
|
|
7237
|
-
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7238
|
-
"data-testid": "password-visibility-toggle",
|
|
7239
|
-
className: "cursor-pointer text-gray-500",
|
|
7240
|
-
onClick: () => setShowPassword(true)
|
|
7241
|
-
})
|
|
7242
|
-
})
|
|
7243
|
-
]
|
|
7244
|
-
}),
|
|
7245
|
-
error && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7246
|
-
className: "mt-2 text-xs font-normal text-red-500",
|
|
7247
|
-
children: error
|
|
7248
|
-
})
|
|
7249
|
-
]
|
|
7250
|
-
});
|
|
7251
|
-
});
|
|
7252
|
-
|
|
7253
|
-
//#endregion
|
|
7254
|
-
//#region src/components/autoCompleteInput/index.tsx
|
|
7255
|
-
const AutoCompleteInput = ({ label, onChange, onFocus, inputValue, showSuggestions, handleOnKeyDown, children, error, rightSection, inputRef }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7256
|
-
className: "relative mb-8",
|
|
7257
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInput, {
|
|
7258
|
-
ref: inputRef,
|
|
7259
|
-
label,
|
|
7260
|
-
id: "search",
|
|
7261
|
-
type: "text",
|
|
7262
|
-
name: "searchField",
|
|
7263
|
-
onChange,
|
|
7264
|
-
onFocus,
|
|
7265
|
-
onKeyDown: handleOnKeyDown,
|
|
7266
|
-
value: inputValue,
|
|
7267
|
-
error,
|
|
7268
|
-
rightSection,
|
|
7269
|
-
"aria-autocomplete": "list",
|
|
7270
|
-
"aria-controls": "suggestions-googlemaps-location-list"
|
|
7271
|
-
}), showSuggestions && inputValue && children]
|
|
7272
|
-
});
|
|
7273
|
-
|
|
7274
|
-
//#endregion
|
|
7275
|
-
//#region src/components/avatar/index.tsx
|
|
7276
|
-
const radiusFormatter = {
|
|
7277
|
-
0: "rounded-none",
|
|
7278
|
-
2: "rounded-sm",
|
|
7279
|
-
4: "rounded",
|
|
7280
|
-
6: "rounded-lg",
|
|
7281
|
-
8: "rounded-xl",
|
|
7282
|
-
10: "rounded-2xl",
|
|
7283
|
-
12: "rounded-3xl",
|
|
7284
|
-
100: "rounded-full"
|
|
7285
|
-
};
|
|
7286
|
-
const Avatar = ({ src, alt = "", size = 50, radius = 100, "data-testid": dataTestId = "avatar" }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7287
|
-
"data-component": "Avatar",
|
|
7288
|
-
"data-testid": dataTestId,
|
|
7289
|
-
children: src && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
7290
|
-
src,
|
|
7291
|
-
className: cn("aspect-square appearance-none object-cover", radiusFormatter[radius]),
|
|
7292
|
-
alt,
|
|
7293
|
-
width: size,
|
|
7294
|
-
height: size,
|
|
7295
|
-
"data-testid": "avatar-img"
|
|
7296
|
-
})
|
|
7297
|
-
});
|
|
7298
|
-
Avatar.displayName = "Avatar";
|
|
7299
|
-
|
|
7300
|
-
//#endregion
|
|
7301
|
-
//#region src/components/avatarIndicator/index.tsx
|
|
7302
|
-
const AvatarIndicator = ({ indicatorCount, className }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7303
|
-
className: cn("inline-flex h-5 min-w-5 flex-col items-center justify-center gap-2.5 rounded border-2 border-solid border-white bg-blue-950 px-1.5", className),
|
|
7304
|
-
"data-component": "AvatarIndicator",
|
|
7305
|
-
"data-testid": "AvatarIndicator",
|
|
7306
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7307
|
-
className: "font-['Gotham'] text-[10px] leading-[10px] font-bold text-white",
|
|
7308
|
-
children: `+${indicatorCount}`
|
|
7309
|
-
})
|
|
7310
|
-
});
|
|
7311
|
-
|
|
7312
|
-
//#endregion
|
|
7313
|
-
//#region src/components/badge/index.tsx
|
|
7314
|
-
const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile = false, badgeBorder = false, fullWidth = false, leftSection, rightSection, children,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
7315
|
-
"data-testid": "badge",
|
|
7316
|
-
"data-component": "Badge",
|
|
7317
|
-
className: (0, clsx.default)("inline-flex h-[1.375rem] max-w-full place-content-center items-center p-[10px] align-middle text-xs leading-[20px] font-medium tracking-wide text-wrap whitespace-normal normal-case", mobile ? "rounded-s" : "rounded-[2rem]", fullWidth && "w-full", badgeBorder && {
|
|
7318
|
-
"border-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
|
|
7319
|
-
"border-green-light": styleVariant === COLOR.GREEN_LIGHT,
|
|
7320
|
-
"border-red-500": styleVariant === COLOR.RED,
|
|
7321
|
-
"border-purple": styleVariant === COLOR.PURPLE,
|
|
7322
|
-
"border-warning": styleVariant === COLOR.WARNING,
|
|
7323
|
-
"border-black": styleVariant === COLOR.BLACK,
|
|
7324
|
-
"border-gray-800": styleVariant === COLOR.GRAY,
|
|
7325
|
-
"border-pink": styleVariant === COLOR.PINK_LIGHT || styleVariant === COLOR.PINK,
|
|
7326
|
-
"border-gray-200 bg-white text-black": styleVariant === COLOR.WHITE
|
|
7327
|
-
}, {
|
|
7328
|
-
"bg-accent-blue-light text-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
|
|
7329
|
-
"bg-green-light text-green": styleVariant === COLOR.GREEN_LIGHT,
|
|
7330
|
-
"bg-red-50 text-red-500": styleVariant === COLOR.RED,
|
|
7331
|
-
"bg-purple-light text-purple": styleVariant === COLOR.PURPLE,
|
|
7332
|
-
"bg-warning-light text-warning": styleVariant === COLOR.WARNING,
|
|
7333
|
-
"bg-gray-50 text-black": styleVariant === COLOR.BLACK,
|
|
7334
|
-
"bg-gray-50 text-gray-800": styleVariant === COLOR.GRAY,
|
|
7335
|
-
"bg-pink-light text-pink": styleVariant === COLOR.PINK_LIGHT,
|
|
7336
|
-
"bg-pink text-white": styleVariant === COLOR.PINK,
|
|
7337
|
-
"bg-white text-black": styleVariant === COLOR.WHITE
|
|
7338
|
-
}, className),
|
|
7339
|
-
...props,
|
|
7340
|
-
children: [
|
|
7341
|
-
leftSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7342
|
-
"data-testid": "left-section",
|
|
7343
|
-
children: leftSection
|
|
7344
|
-
}),
|
|
7345
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7346
|
-
"data-testid": "badge-content",
|
|
7347
|
-
className: cn("block h-5 overflow-hidden text-ellipsis whitespace-nowrap", { "flex items-center": favorite }),
|
|
7348
|
-
children
|
|
7349
|
-
}),
|
|
7350
|
-
rightSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7351
|
-
"data-testid": "right-section",
|
|
7352
|
-
children: rightSection
|
|
7353
|
-
})
|
|
7354
|
-
]
|
|
7355
|
-
});
|
|
7356
|
-
Badge.displayName = "Badge";
|
|
7357
|
-
|
|
7358
|
-
//#endregion
|
|
7359
|
-
//#region src/components/bigBadge/index.tsx
|
|
7360
|
-
const BigBadge = ({ styleVariant = COLOR.GREEN, className, children,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7361
|
-
"data-component": "BigBadge",
|
|
7362
|
-
"data-testid": "big-badge",
|
|
7363
|
-
className: cn("grid h-9 max-w-full min-w-[140px] place-content-center rounded-full border border-solid px-6 py-1 text-sm font-medium whitespace-nowrap lowercase", {
|
|
7364
|
-
"border-green text-green bg-white": styleVariant === COLOR.GREEN,
|
|
7365
|
-
"border-accent-blue text-accent-blue bg-white": styleVariant === COLOR.ACCENT_BLUE,
|
|
7366
|
-
"border-orange text-orange bg-white": styleVariant === COLOR.ORANGE,
|
|
7367
|
-
"group-hover:bg-green-light": styleVariant === COLOR.GREEN,
|
|
7368
|
-
"border-red-500 bg-white text-red-500": styleVariant === COLOR.RED,
|
|
7369
|
-
"group-hover:bg-red-50": styleVariant === COLOR.RED,
|
|
7370
|
-
"border-gray-200 bg-white text-black": styleVariant === COLOR.WHITE,
|
|
7371
|
-
"": styleVariant === COLOR.WHITE
|
|
7372
|
-
}, className),
|
|
7373
|
-
...props,
|
|
7374
|
-
children
|
|
7375
|
-
});
|
|
7376
|
-
|
|
7377
|
-
//#endregion
|
|
7378
|
-
//#region src/components/breadCrumb/index.tsx
|
|
7379
|
-
const BreadCrumb = ({ children, LinkText }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LinkText, {
|
|
7380
|
-
"data-component": "BreadCrumb",
|
|
7381
|
-
classNames: "flex items-center",
|
|
7382
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", { role: "img" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7383
|
-
className: "flex items-center gap-5",
|
|
7384
|
-
children
|
|
7385
|
-
})] })
|
|
7386
|
-
});
|
|
7387
|
-
BreadCrumb.displayName = "BreadCrumb";
|
|
7388
|
-
|
|
7389
|
-
//#endregion
|
|
7390
|
-
//#region src/components/popover/index.tsx
|
|
7391
|
-
const Popover = (0, react.forwardRef)(({ content, children, hoverEnabled = false, passedOpen = false, placement = "right", style = "card", isMobile = false, className }, ref) => {
|
|
7392
|
-
const [isOpen, setIsOpen] = (0, react.useState)(passedOpen);
|
|
7393
|
-
const mobileStyles = { width: `${style === "card" && "100%"}` };
|
|
7394
|
-
const { refs, floatingStyles, context } = (0, __floating_ui_react.useFloating)({
|
|
7395
|
-
open: isOpen,
|
|
7396
|
-
onOpenChange: setIsOpen,
|
|
7397
|
-
placement: !isMobile ? placement : "bottom-start",
|
|
7398
|
-
middleware: [
|
|
7399
|
-
!isMobile && (0, __floating_ui_react.flip)(),
|
|
7400
|
-
!isMobile && (0, __floating_ui_react.shift)(),
|
|
7401
|
-
(0, __floating_ui_react.offset)(() => ({
|
|
7402
|
-
mainAxis: 15,
|
|
7403
|
-
crossAxis: !isMobile ? 0 : 78
|
|
7404
|
-
}))
|
|
7405
|
-
],
|
|
7406
|
-
whileElementsMounted: __floating_ui_react.autoUpdate
|
|
7407
|
-
});
|
|
7408
|
-
const click = (0, __floating_ui_react.useClick)(context, {
|
|
7409
|
-
event: "click",
|
|
7410
|
-
keyboardHandlers: true
|
|
7411
|
-
});
|
|
7412
|
-
const focus = (0, __floating_ui_react.useFocus)(context);
|
|
7413
|
-
const hover = (0, __floating_ui_react.useHover)(context, { enabled: hoverEnabled });
|
|
7414
|
-
const dismiss = (0, __floating_ui_react.useDismiss)(context);
|
|
7415
|
-
const role = (0, __floating_ui_react.useRole)(context, { role: "tooltip" });
|
|
7416
|
-
const interactions = [
|
|
7417
|
-
click,
|
|
7418
|
-
focus,
|
|
7419
|
-
dismiss,
|
|
7420
|
-
role,
|
|
7421
|
-
hover
|
|
7422
|
-
];
|
|
7423
|
-
const { getReferenceProps, getFloatingProps } = (0, __floating_ui_react.useInteractions)(interactions);
|
|
7424
|
-
(0, react.useImperativeHandle)(ref, () => ({
|
|
7425
|
-
closePopover: () => setIsOpen(false),
|
|
7426
|
-
openPopover: () => setIsOpen(true),
|
|
7427
|
-
togglePopover: () => setIsOpen((prev) => !prev)
|
|
7428
|
-
}));
|
|
7429
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7430
|
-
className: cn("", { "[&>div]:border-navyBlue": isOpen }, className),
|
|
7431
|
-
children: [(0, react.isValidElement)(children) && (0, react.cloneElement)(children, getReferenceProps({
|
|
7432
|
-
ref: refs.setReference,
|
|
7433
|
-
...getReferenceProps()
|
|
7434
|
-
})), isOpen && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7435
|
-
ref: refs.setFloating,
|
|
7436
|
-
style: {
|
|
7437
|
-
...floatingStyles,
|
|
7438
|
-
...isMobile && { ...mobileStyles }
|
|
7439
|
-
},
|
|
7440
|
-
...getFloatingProps(),
|
|
7441
|
-
className: (0, clsx.default)("z-60", {
|
|
7442
|
-
"w-fit rounded border border-gray-200! bg-white p-5": style === "minimal",
|
|
7443
|
-
"card w-[489px] drop-shadow-xl": style === "card"
|
|
7444
|
-
}),
|
|
7445
|
-
"data-testid": "popover-container",
|
|
7446
|
-
"data-component": "Popover",
|
|
7447
|
-
children: [style === "minimal" && content, style === "card" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7448
|
-
className: "bg-linear-gradient-x pt-[3px]",
|
|
7449
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7450
|
-
className: "relative overflow-hidden bg-white p-5",
|
|
7451
|
-
children: [!hoverEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ActionIcon, {
|
|
7452
|
-
onClick: () => setIsOpen(false),
|
|
7453
|
-
title: "",
|
|
7454
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {}),
|
|
7455
|
-
styleVariant: "small",
|
|
7456
|
-
className: "absolute top-5 right-5"
|
|
7457
|
-
}), content]
|
|
7458
|
-
})
|
|
7459
|
-
})]
|
|
7460
|
-
})]
|
|
7461
|
-
});
|
|
7462
|
-
});
|
|
7463
|
-
|
|
7464
|
-
//#endregion
|
|
7465
|
-
//#region src/components/datePickerInput/index.tsx
|
|
7466
|
-
const DatePickerInput = ({ lang, todayText, value, disabledFrom, disabledUntil, className, error, onChange, placeholder, label, disabled, minimalDropdownYears = 4 }) => {
|
|
7467
|
-
const [selected, setSelected] = (0, react.useState)(value);
|
|
7468
|
-
const today = new Date();
|
|
7469
|
-
const [newMonth, setNewMonth] = (0, react.useState)(selected || today);
|
|
7470
|
-
const [dropdownOpened, setDropdownOpened] = (0, react.useState)({
|
|
7471
|
-
month: false,
|
|
7472
|
-
year: false
|
|
7473
|
-
});
|
|
7474
|
-
const locales = {
|
|
7475
|
-
fr: date_fns_locale.fr,
|
|
7476
|
-
enGB: date_fns_locale.enGB,
|
|
7477
|
-
nl: date_fns_locale.nl,
|
|
7478
|
-
nlBE: date_fns_locale.nlBE
|
|
7479
|
-
};
|
|
7480
|
-
const dropdownRef = (0, react.useRef)(null);
|
|
7481
|
-
const popoverRef = (0, react.useRef)(null);
|
|
7482
|
-
const renderLocale = () => {
|
|
7483
|
-
switch (lang) {
|
|
7484
|
-
case "fr-FR": return locales.fr;
|
|
7485
|
-
case "nl-BE": return locales.nlBE;
|
|
7486
|
-
case "nl-NL": return locales.nl;
|
|
7487
|
-
case "en-GB": return locales.enGB;
|
|
7488
|
-
default: return locales.enGB;
|
|
7489
|
-
}
|
|
7490
|
-
};
|
|
7491
|
-
/* istanbul ignore next - relies on dropdown DOM not rendered in tests */
|
|
7492
|
-
const handleClickOutside = (event) => {
|
|
7493
|
-
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) setDropdownOpened({
|
|
7494
|
-
month: false,
|
|
7495
|
-
year: false
|
|
7496
|
-
});
|
|
7497
|
-
};
|
|
7498
|
-
/* istanbul ignore next - environment differences make listener attach hard to test */
|
|
7499
|
-
(0, react.useEffect)(() => {
|
|
7500
|
-
if (dropdownOpened.month || dropdownOpened.year) document.addEventListener("mousedown", handleClickOutside);
|
|
7501
|
-
else document.removeEventListener("mousedown", handleClickOutside);
|
|
7502
|
-
return () => {
|
|
7503
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
7504
|
-
};
|
|
7505
|
-
}, [dropdownOpened]);
|
|
7506
|
-
const handleDayClick = (date) => {
|
|
7507
|
-
/* istanbul ignore next - react-day-picker rarely calls onSelect(undefined) in our configuration */
|
|
7508
|
-
if (!date) return;
|
|
7509
|
-
handleClosePopover();
|
|
7510
|
-
setNewMonth(date);
|
|
7511
|
-
setSelected(date);
|
|
7512
|
-
onChange?.(date);
|
|
7513
|
-
};
|
|
7514
|
-
const isDateSelected = (day) => {
|
|
7515
|
-
/* istanbul ignore next - defensive null guard */
|
|
7516
|
-
if (!selected || !day) return false;
|
|
7517
|
-
const d1 = new Date(day?.date);
|
|
7518
|
-
const d2 = new Date(selected);
|
|
7519
|
-
d1.setHours(0, 0, 0, 0);
|
|
7520
|
-
d2.setHours(0, 0, 0, 0);
|
|
7521
|
-
return d1.getTime() === d2.getTime();
|
|
7522
|
-
};
|
|
7523
|
-
const handleClosePopover = () => {
|
|
7524
|
-
popoverRef.current?.closePopover();
|
|
7525
|
-
};
|
|
7526
|
-
const isDateToday = (day) => {
|
|
7527
|
-
/* istanbul ignore next - defensive null guard */
|
|
7528
|
-
if (!day) return false;
|
|
7529
|
-
const d1 = new Date(day?.date);
|
|
7530
|
-
const d2 = new Date(today);
|
|
7531
|
-
d1.setHours(0, 0, 0, 0);
|
|
7532
|
-
d2.setHours(0, 0, 0, 0);
|
|
7533
|
-
return d1.getTime() === d2.getTime();
|
|
7534
|
-
};
|
|
7535
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Popover, {
|
|
7536
|
-
style: "minimal",
|
|
7537
|
-
className: "w-full",
|
|
7538
|
-
ref: popoverRef,
|
|
7539
|
-
content: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_day_picker.DayPicker, {
|
|
7540
|
-
...className && { className },
|
|
7541
|
-
mode: "single",
|
|
7542
|
-
selected,
|
|
7543
|
-
onSelect: handleDayClick,
|
|
7544
|
-
locale: renderLocale(),
|
|
7545
|
-
fixedWeeks: true,
|
|
7546
|
-
endMonth: (0, date_fns.addMonths)(today, 13),
|
|
7547
|
-
captionLayout: "dropdown",
|
|
7548
|
-
onMonthChange: (newMonth$1) => setNewMonth(newMonth$1),
|
|
7549
|
-
showOutsideDays: true,
|
|
7550
|
-
disabled: disabledFrom ? { before: disabledFrom } : disabledUntil ? { after: disabledUntil } : undefined,
|
|
7551
|
-
classNames: {
|
|
7552
|
-
month_grid: "mt-3 max-w-[400px] border-t border-gray-100",
|
|
7553
|
-
month_caption: "text-sm font-bold",
|
|
7554
|
-
dropdowns: "flex items-center w-[190px] gap-1 left-0 justify-center h-8",
|
|
7555
|
-
caption_label: "text-sm font-medium flex items-center justify-center w-[190px]",
|
|
7556
|
-
chevron: "w-4 h-4 z-50",
|
|
7557
|
-
nav: "absolute w-[190px] justify-between flex h-8 items-center",
|
|
7558
|
-
nav_button: "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 cursor-pointer",
|
|
7559
|
-
nav_button_previous: "absolute left-1",
|
|
7560
|
-
nav_button_next: "absolute right-1",
|
|
7561
|
-
day: "h-8 w-8 p-0 aria-selected:opacity-100 font-normal text-sm",
|
|
7562
|
-
weekdays: "pt-12",
|
|
7563
|
-
weekday: "text-gray-300 text-sm font-normal pt-4 pb-2",
|
|
7564
|
-
day_today: "bg-accent text-accent-foreground",
|
|
7565
|
-
day_outside: "day-outside text-gray-800 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
7566
|
-
day_disabled: "text-gray-800",
|
|
7567
|
-
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
7568
|
-
day_hidden: "invisible"
|
|
7569
|
-
},
|
|
7570
|
-
components: {
|
|
7571
|
-
DayButton: (props) => {
|
|
7572
|
-
const { day,...buttonProps } = props;
|
|
7573
|
-
const { goToMonth } = (0, react_day_picker.useDayPicker)();
|
|
7574
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
7575
|
-
type: "button",
|
|
7576
|
-
...buttonProps,
|
|
7577
|
-
className: (0, clsx.default)("m-1 size-8 text-black transition-all duration-100 ease-in-out", "md:hover:bg-gradient-calendar hover:rounded md:hover:text-white", isDateSelected(day) && "bg-gradient-calendar rounded text-sm font-normal text-white", isDateToday(day) && "border-b-primary border border-transparent", "translate-y-0 active:translate-y-0.5"),
|
|
7578
|
-
onClick: () => {
|
|
7579
|
-
goToMonth(day.date);
|
|
7580
|
-
handleDayClick(day.date);
|
|
7581
|
-
}
|
|
7582
|
-
});
|
|
7583
|
-
},
|
|
7584
|
-
Dropdown: (props) => {
|
|
7585
|
-
const { goToMonth, months } = (0, react_day_picker.useDayPicker)();
|
|
7586
|
-
const { className: dropdownClassName } = props;
|
|
7587
|
-
const today$1 = new Date();
|
|
7588
|
-
/* istanbul ignore next - react-day-picker may not pass this className in our test env */
|
|
7589
|
-
if (dropdownClassName === "rdp-months_dropdown") {
|
|
7590
|
-
const selectedYear = newMonth.getFullYear();
|
|
7591
|
-
const selectItems = Array.from({ length: 12 }, (_, i) => {
|
|
7592
|
-
const monthDate = (0, date_fns.setMonth)(new Date(selectedYear, i), i);
|
|
7593
|
-
return {
|
|
7594
|
-
value: i.toString(),
|
|
7595
|
-
label: (0, date_fns.format)(monthDate, "MMMM", { locale: renderLocale() })
|
|
7596
|
-
};
|
|
7597
|
-
});
|
|
7598
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7599
|
-
className: "relative",
|
|
7600
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7601
|
-
className: "cursor-pointer",
|
|
7602
|
-
onClick: () => setDropdownOpened({
|
|
7603
|
-
...dropdownOpened,
|
|
7604
|
-
month: !dropdownOpened.month,
|
|
7605
|
-
year: false
|
|
7606
|
-
}),
|
|
7607
|
-
children: (0, date_fns.format)(newMonth, "MMMM", { locale: renderLocale() })
|
|
7608
|
-
}), dropdownOpened.month && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7609
|
-
ref: dropdownRef,
|
|
7610
|
-
className: "shadow-dropdown absolute z-70 rounded-md border border-gray-50 bg-white",
|
|
7611
|
-
children: selectItems.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7612
|
-
onClick: () => {
|
|
7613
|
-
const newDate = new Date(selectedYear, parseInt(item.value));
|
|
7614
|
-
goToMonth(newDate);
|
|
7615
|
-
setDropdownOpened({
|
|
7616
|
-
month: false,
|
|
7617
|
-
year: false
|
|
7618
|
-
});
|
|
7619
|
-
},
|
|
7620
|
-
className: "z-70 cursor-pointer border-b border-gray-50 bg-white px-4 py-1 font-normal text-black transition duration-200 ease-out hover:bg-gray-50",
|
|
7621
|
-
children: item.label
|
|
7622
|
-
}, item.value))
|
|
7623
|
-
})]
|
|
7624
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
7625
|
-
variant: "secondary",
|
|
7626
|
-
type: "button",
|
|
7627
|
-
className: "absolute top-4 right-4 z-10 h-8 px-3 text-xs font-normal",
|
|
7628
|
-
onClick: () => {
|
|
7629
|
-
goToMonth(today$1);
|
|
7630
|
-
handleDayClick(today$1);
|
|
7631
|
-
},
|
|
7632
|
-
children: todayText
|
|
7633
|
-
})] });
|
|
7634
|
-
} else if (dropdownClassName === "rdp-years_dropdown") {
|
|
7635
|
-
const earliestYear = new Date().getFullYear() - minimalDropdownYears;
|
|
7636
|
-
const latestYear = new Date().getFullYear() + 1;
|
|
7637
|
-
/* istanbul ignore else - defensive guard will always be truthy */
|
|
7638
|
-
if (earliestYear && latestYear) {
|
|
7639
|
-
const years = Array.from({ length: latestYear - earliestYear + 1 }, (_, i) => earliestYear + i).reverse();
|
|
7640
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7641
|
-
className: "relative",
|
|
7642
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7643
|
-
className: "cursor-pointer",
|
|
7644
|
-
onClick: () => setDropdownOpened({
|
|
7645
|
-
...dropdownOpened,
|
|
7646
|
-
year: !dropdownOpened.year,
|
|
7647
|
-
month: false
|
|
7648
|
-
}),
|
|
7649
|
-
children: (0, date_fns.format)(newMonth, "yyyy", { locale: renderLocale() })
|
|
7650
|
-
}), dropdownOpened.year && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7651
|
-
ref: dropdownRef,
|
|
7652
|
-
className: "shadow-dropdown absolute z-70 rounded-md border border-gray-50 bg-white max-h-64 overflow-y-auto",
|
|
7653
|
-
children: years.map((year) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7654
|
-
onClick: () => {
|
|
7655
|
-
const newDate = months?.[0]?.date || new Date();
|
|
7656
|
-
newDate.setFullYear(year);
|
|
7657
|
-
goToMonth(newDate);
|
|
7658
|
-
setDropdownOpened({
|
|
7659
|
-
month: false,
|
|
7660
|
-
year: false
|
|
7661
|
-
});
|
|
7662
|
-
},
|
|
7663
|
-
className: "z-70 cursor-pointer border-b border-gray-50 px-4 py-1 font-normal text-black transition duration-200 ease-out hover:bg-gray-50",
|
|
7664
|
-
children: year
|
|
7665
|
-
}, year))
|
|
7666
|
-
})]
|
|
7667
|
-
});
|
|
7668
|
-
}
|
|
7669
|
-
}
|
|
7670
|
-
/* istanbul ignore next - fallback path only when react-day-picker passes unknown className */
|
|
7671
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {});
|
|
7672
|
-
}
|
|
7673
|
-
}
|
|
7674
|
-
}) }),
|
|
7675
|
-
placement: "bottom-start",
|
|
7676
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7677
|
-
"data-component": "datePickerInput",
|
|
7678
|
-
className: cn("relative", className),
|
|
7679
|
-
children: [
|
|
7680
|
-
label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
7681
|
-
className: "mb-2 flex items-center gap-1 text-xs font-medium",
|
|
7682
|
-
children: label
|
|
7683
|
-
}),
|
|
7684
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Button, {
|
|
7685
|
-
variant: "outline",
|
|
7686
|
-
type: "button",
|
|
7687
|
-
disabled,
|
|
7688
|
-
className: cn(
|
|
7689
|
-
"flex h-10 w-full items-center justify-start bg-gray-50 px-3 text-black",
|
|
7690
|
-
/* istanbul ignore next - cosmetic class toggle */
|
|
7691
|
-
{ "border-red-500 text-red-500": error }
|
|
7692
|
-
),
|
|
7693
|
-
onClick: () => setNewMonth(today),
|
|
7694
|
-
children: [
|
|
7695
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {}),
|
|
7696
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7697
|
-
className: "text-sm font-normal text-nowrap text-black",
|
|
7698
|
-
children: selected ? selected.toLocaleDateString() : placeholder
|
|
7699
|
-
}),
|
|
7700
|
-
selected !== undefined && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7701
|
-
className: "cursor-pointer text-sm font-normal text-gray-800",
|
|
7702
|
-
onClick: () => {
|
|
7703
|
-
setSelected(undefined);
|
|
7704
|
-
onChange?.(undefined);
|
|
7705
|
-
},
|
|
7706
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {})
|
|
7707
|
-
}) })
|
|
7708
|
-
]
|
|
7709
|
-
}),
|
|
7710
|
-
error && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", {
|
|
7711
|
-
className: "text-xs font-normal text-red-500",
|
|
7712
|
-
children: error
|
|
7713
|
-
})
|
|
7714
|
-
]
|
|
7715
|
-
})
|
|
7716
|
-
});
|
|
7717
|
-
};
|
|
7718
|
-
|
|
7719
|
-
//#endregion
|
|
7720
|
-
//#region src/components/favouriteButton/index.tsx
|
|
7721
|
-
const FavouriteButton = (0, react.forwardRef)((props, ref) => {
|
|
7722
|
-
const { onClick, favourite, iconFilled, iconOutline, favouriteTitle, iconColorSelected = "text-pink", iconColor = "text-gray-800", iconSize, className = "", styleVariant = "transparent", children,...rest } = props;
|
|
7723
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ActionIcon, {
|
|
7724
|
-
onClick,
|
|
7725
|
-
"data-component": "favouriteButton",
|
|
7726
|
-
title: favouriteTitle || "Favorite",
|
|
7727
|
-
styleVariant,
|
|
7728
|
-
className: `${favourite ? iconColorSelected : iconColor} ${className}`.trim(),
|
|
7729
|
-
iconSize,
|
|
7730
|
-
ref,
|
|
7731
|
-
icon: favourite ? iconFilled ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {}) : iconOutline ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {}),
|
|
7732
|
-
...rest,
|
|
7733
|
-
children
|
|
7734
|
-
});
|
|
7735
|
-
});
|
|
7736
|
-
|
|
7737
|
-
//#endregion
|
|
7738
|
-
//#region src/components/unstyledButton/index.tsx
|
|
7739
|
-
const UnstyledButton = (0, react.forwardRef)(({ className,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
7740
|
-
type: "button",
|
|
7741
|
-
"data-component": "unstyledButton",
|
|
7742
|
-
className: cn("appearance-none", className),
|
|
7743
|
-
ref,
|
|
7744
|
-
...props
|
|
7745
|
-
}));
|
|
7746
|
-
UnstyledButton.displayName = "UnstyledButton";
|
|
7747
|
-
|
|
7748
7048
|
//#endregion
|
|
7749
7049
|
//#region src/components/filters/FilterButton.tsx
|
|
7750
7050
|
const FilterButton$1 = ({ onClick, hasFilters, reset, filtersText, resetText }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -7756,7 +7056,7 @@ const FilterButton$1 = ({ onClick, hasFilters, reset, filtersText, resetText })
|
|
|
7756
7056
|
className: "font-normal md:font-normal",
|
|
7757
7057
|
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {}),
|
|
7758
7058
|
children: filtersText
|
|
7759
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
7059
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
7760
7060
|
className: "text-sm font-normal disabled:text-gray-500",
|
|
7761
7061
|
onClick: reset,
|
|
7762
7062
|
disabled: !hasFilters,
|
|
@@ -7826,8 +7126,9 @@ const Filters = ({ filters, setFilters, selectedFilters, selectedFiltersText, fi
|
|
|
7826
7126
|
//#region src/components/hamburgerMenuButton/index.tsx
|
|
7827
7127
|
const HamburgerMenuButton = (0, react.forwardRef)(({ menuState, setMenuState }, ref) => {
|
|
7828
7128
|
const defaultClasses = cn("absolute h-[2px] bg-white duration-150");
|
|
7829
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
7129
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Button, {
|
|
7830
7130
|
onClick: setMenuState,
|
|
7131
|
+
variant: "textButton",
|
|
7831
7132
|
className: "relative h-4 w-6",
|
|
7832
7133
|
name: "hamburgerMenuButton",
|
|
7833
7134
|
"data-component": "hamburgerMenuButton",
|
|
@@ -7851,130 +7152,6 @@ const HamburgerMenuButton = (0, react.forwardRef)(({ menuState, setMenuState },
|
|
|
7851
7152
|
});
|
|
7852
7153
|
HamburgerMenuButton.displayName = "HamburgerMenuButton";
|
|
7853
7154
|
|
|
7854
|
-
//#endregion
|
|
7855
|
-
//#region src/components/hr/index.tsx
|
|
7856
|
-
const HR = ({ className }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hr", {
|
|
7857
|
-
"data-component": "hr",
|
|
7858
|
-
className: `h-px w-full border-none bg-gray-200 ${className}`
|
|
7859
|
-
});
|
|
7860
|
-
HR.displayName = "HR";
|
|
7861
|
-
|
|
7862
|
-
//#endregion
|
|
7863
|
-
//#region src/components/island/index.tsx
|
|
7864
|
-
const Island = ({ children, className, noShadow = false, noPadding = false,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7865
|
-
"data-testid": "island",
|
|
7866
|
-
"data-component": "island",
|
|
7867
|
-
className: cn("relative bg-white px-5 py-5 md:px-10 md:py-9", {
|
|
7868
|
-
"shadow-[0_-0.5rem_2rem_rgba(38,41,92,0.04)]": !noShadow,
|
|
7869
|
-
"drop-shadow-none": noShadow,
|
|
7870
|
-
"md:px-0 md:py-0": noPadding
|
|
7871
|
-
}, className),
|
|
7872
|
-
...props,
|
|
7873
|
-
children
|
|
7874
|
-
});
|
|
7875
|
-
Island.displayName = "Island";
|
|
7876
|
-
|
|
7877
|
-
//#endregion
|
|
7878
|
-
//#region src/components/modal/index.tsx
|
|
7879
|
-
const Modal = ({ title, children, withCloseButton = true, opened, additionalClassNames, closeModalWithConfirmation = false, gradient = true, uncloseAble = false, confirmText = "Are you sure you want to close this modal?", dataTestId, onClose, size }) => {
|
|
7880
|
-
const ref = (0, react.useRef)(null);
|
|
7881
|
-
const refContainer = (0, react.useRef)(null);
|
|
7882
|
-
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
7883
|
-
(0, react.useEffect)(() => {
|
|
7884
|
-
setIsOpen(opened);
|
|
7885
|
-
}, [opened]);
|
|
7886
|
-
const handleClose = (0, react.useCallback)(() => {
|
|
7887
|
-
if (uncloseAble) return;
|
|
7888
|
-
if (closeModalWithConfirmation) {
|
|
7889
|
-
if (window.confirm(confirmText)) {
|
|
7890
|
-
setIsOpen(false);
|
|
7891
|
-
onClose();
|
|
7892
|
-
}
|
|
7893
|
-
} else {
|
|
7894
|
-
setIsOpen(false);
|
|
7895
|
-
onClose();
|
|
7896
|
-
}
|
|
7897
|
-
}, [
|
|
7898
|
-
closeModalWithConfirmation,
|
|
7899
|
-
onClose,
|
|
7900
|
-
uncloseAble
|
|
7901
|
-
]);
|
|
7902
|
-
const handleClickOutside = (0, react.useCallback)((event) => {
|
|
7903
|
-
if (refContainer.current && refContainer.current.contains(event.target)) {
|
|
7904
|
-
if (ref.current && !ref.current.contains(event.target)) handleClose();
|
|
7905
|
-
}
|
|
7906
|
-
}, [handleClose]);
|
|
7907
|
-
const handleEscapeKey = (0, react.useCallback)((event) => {
|
|
7908
|
-
if (event.code === "Escape") handleClose();
|
|
7909
|
-
}, [handleClose]);
|
|
7910
|
-
(0, react.useEffect)(() => {
|
|
7911
|
-
if (isOpen) {
|
|
7912
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
7913
|
-
window.addEventListener("keydown", handleEscapeKey);
|
|
7914
|
-
}
|
|
7915
|
-
return () => {
|
|
7916
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
7917
|
-
window.removeEventListener("keydown", handleEscapeKey);
|
|
7918
|
-
};
|
|
7919
|
-
}, [
|
|
7920
|
-
handleClickOutside,
|
|
7921
|
-
handleClose,
|
|
7922
|
-
handleEscapeKey,
|
|
7923
|
-
isOpen,
|
|
7924
|
-
onClose,
|
|
7925
|
-
opened,
|
|
7926
|
-
ref
|
|
7927
|
-
]);
|
|
7928
|
-
if (!isOpen) return null;
|
|
7929
|
-
return (0, react_dom.createPortal)(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7930
|
-
className: cn("fixed top-0 left-0 z-999 grid h-full w-full items-center overflow-y-scroll overscroll-contain px-4 py-10 md:py-20"),
|
|
7931
|
-
"data-testid": dataTestId,
|
|
7932
|
-
"data-component": "modal",
|
|
7933
|
-
ref: refContainer,
|
|
7934
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7935
|
-
className: "bg-navy-blue/40 fixed top-0 left-0 z-[-1] size-full",
|
|
7936
|
-
"data-testid": "modalBg"
|
|
7937
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7938
|
-
className: "relative flex w-full justify-center",
|
|
7939
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
7940
|
-
className: cn("relative h-full w-full max-w-[1000px] bg-white px-5 py-8 shadow-xl md:px-10 md:py-10", additionalClassNames, size),
|
|
7941
|
-
ref,
|
|
7942
|
-
role: "dialog",
|
|
7943
|
-
tabIndex: -1,
|
|
7944
|
-
"aria-modal": isOpen,
|
|
7945
|
-
"aria-label": title,
|
|
7946
|
-
children: [
|
|
7947
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7948
|
-
className: "relative z-10 w-full",
|
|
7949
|
-
children: withCloseButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ActionIcon, {
|
|
7950
|
-
onClick: handleClose,
|
|
7951
|
-
"aria-label": "close modal",
|
|
7952
|
-
className: "absolute top-0 right-0",
|
|
7953
|
-
"data-testid": "close-modal",
|
|
7954
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {}),
|
|
7955
|
-
title: "close Modal"
|
|
7956
|
-
})
|
|
7957
|
-
}),
|
|
7958
|
-
title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7959
|
-
className: "relative w-full pt-14",
|
|
7960
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
7961
|
-
className: "mt-0 mb-8 text-left text-3xl font-bold",
|
|
7962
|
-
children: title
|
|
7963
|
-
})
|
|
7964
|
-
}),
|
|
7965
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children }),
|
|
7966
|
-
gradient && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hr", {
|
|
7967
|
-
"data-testid": "modal-gradient",
|
|
7968
|
-
className: "absolute bottom-0 left-0 mt-8 mb-0 h-2! w-full border-none",
|
|
7969
|
-
style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-pink) 100%)" }
|
|
7970
|
-
})
|
|
7971
|
-
]
|
|
7972
|
-
})
|
|
7973
|
-
})]
|
|
7974
|
-
}), document.body);
|
|
7975
|
-
};
|
|
7976
|
-
Modal.displayName = "Modal";
|
|
7977
|
-
|
|
7978
7155
|
//#endregion
|
|
7979
7156
|
//#region src/components/numberField/index.tsx
|
|
7980
7157
|
const NumberField = ({ name, value = 0, max, min = 0, isDisabled, id, className = "", label, error, onChange }) => {
|
|
@@ -8035,17 +7212,6 @@ const NumberField = ({ name, value = 0, max, min = 0, isDisabled, id, className
|
|
|
8035
7212
|
});
|
|
8036
7213
|
};
|
|
8037
7214
|
|
|
8038
|
-
//#endregion
|
|
8039
|
-
//#region src/components/passwordInput/index.tsx
|
|
8040
|
-
const PasswordInput = react.default.forwardRef((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInput, {
|
|
8041
|
-
password: true,
|
|
8042
|
-
enablePasswordManagerAutofill: true,
|
|
8043
|
-
type: "password",
|
|
8044
|
-
...props,
|
|
8045
|
-
ref
|
|
8046
|
-
}));
|
|
8047
|
-
PasswordInput.displayName = "PasswordInput";
|
|
8048
|
-
|
|
8049
7215
|
//#endregion
|
|
8050
7216
|
//#region src/components/progressBar/index.tsx
|
|
8051
7217
|
const ProgressBar = ({ value, maxValue = 100, className }) => {
|
|
@@ -8219,195 +7385,91 @@ const ScrollToTop = ({ scrollToTopTitle }) => {
|
|
|
8219
7385
|
onClick: scrollToTop,
|
|
8220
7386
|
"data-tooltip-id": scrollToTopTitle,
|
|
8221
7387
|
"data-tooltip-content": scrollToTopTitle,
|
|
8222
|
-
children:
|
|
7388
|
+
children: "scroll to top"
|
|
8223
7389
|
}) });
|
|
8224
7390
|
};
|
|
8225
7391
|
|
|
8226
7392
|
//#endregion
|
|
8227
|
-
//#region src/components/
|
|
8228
|
-
const
|
|
8229
|
-
|
|
8230
|
-
className: className || "w-full lg:w-auto lg:min-w-[23.75rem]",
|
|
8231
|
-
rightSection: rightSection || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}),
|
|
8232
|
-
value,
|
|
8233
|
-
onChange,
|
|
8234
|
-
...props
|
|
8235
|
-
});
|
|
8236
|
-
|
|
8237
|
-
//#endregion
|
|
8238
|
-
//#region src/components/select/index.tsx
|
|
8239
|
-
const LANGUAGE_FLAGS = [
|
|
8240
|
-
{
|
|
8241
|
-
value: "nl-NL",
|
|
8242
|
-
altValue: "nl_NL",
|
|
8243
|
-
label: "nl"
|
|
8244
|
-
},
|
|
8245
|
-
{
|
|
8246
|
-
value: "nl-BE",
|
|
8247
|
-
altValue: "nl_BE",
|
|
8248
|
-
label: "be"
|
|
8249
|
-
},
|
|
8250
|
-
{
|
|
8251
|
-
value: "en-GB",
|
|
8252
|
-
altValue: "en_GB",
|
|
8253
|
-
label: "gb"
|
|
8254
|
-
},
|
|
8255
|
-
{
|
|
8256
|
-
value: "fr-FR",
|
|
8257
|
-
altValue: "fr_FR",
|
|
8258
|
-
label: "fr"
|
|
8259
|
-
}
|
|
8260
|
-
];
|
|
8261
|
-
const selectStyles = {
|
|
8262
|
-
singleValue: (provided) => ({
|
|
8263
|
-
...provided,
|
|
8264
|
-
fontSize: "14px"
|
|
8265
|
-
}),
|
|
8266
|
-
placeholder: (provided) => ({
|
|
8267
|
-
...provided,
|
|
8268
|
-
color: "#838383",
|
|
8269
|
-
fontSize: "14px",
|
|
8270
|
-
textWrap: "nowrap"
|
|
8271
|
-
}),
|
|
8272
|
-
dropdownIndicator: (provided) => ({
|
|
8273
|
-
...provided,
|
|
8274
|
-
color: "black"
|
|
8275
|
-
}),
|
|
8276
|
-
option: (base, { isFocused, isSelected }) => ({
|
|
8277
|
-
...base,
|
|
8278
|
-
color: "black",
|
|
8279
|
-
marginLeft: "4px",
|
|
8280
|
-
marginRight: "4px",
|
|
8281
|
-
backgroundColor: isSelected ? "#f8f8f8" : isFocused ? "#f8f8f8" : "transparent",
|
|
8282
|
-
width: "calc(100% - 8px)",
|
|
8283
|
-
cursor: "pointer"
|
|
8284
|
-
}),
|
|
8285
|
-
menuList: (provided) => ({
|
|
8286
|
-
...provided,
|
|
8287
|
-
fontSize: "14px"
|
|
8288
|
-
})
|
|
8289
|
-
};
|
|
8290
|
-
const selectTheme = (theme) => ({
|
|
8291
|
-
...theme,
|
|
8292
|
-
borderRadius: 4,
|
|
8293
|
-
colors: {
|
|
8294
|
-
...theme.colors,
|
|
8295
|
-
primary25: "#f8f8f8",
|
|
8296
|
-
primary: "#f8f8f8"
|
|
8297
|
-
}
|
|
8298
|
-
});
|
|
8299
|
-
const Select = (0, react.forwardRef)(({ options, placeholder, defaultValue, label, id, icon, error, className, labelClassNames, showLangFlags = false, hideErrorText = false, isClearable = true, fullWidth = true, width, isDisabled,...props }, ref) => {
|
|
8300
|
-
const DropdownIndicator = (props$1) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.components.DropdownIndicator, {
|
|
8301
|
-
...props$1,
|
|
8302
|
-
children: props$1.hasValue && isClearable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
8303
|
-
"data-testid": "icon-x",
|
|
8304
|
-
className: "cursor-pointer",
|
|
8305
|
-
color: "black",
|
|
8306
|
-
onClick: () => props$1.clearValue()
|
|
8307
|
-
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", { color: "black" })
|
|
8308
|
-
});
|
|
8309
|
-
const GroupHeading = ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8310
|
-
className: "flex items-stretch px-4 py-2 font-normal text-[#838383] capitalize",
|
|
8311
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
8312
|
-
className: "flex-nowrap whitespace-nowrap",
|
|
8313
|
-
children
|
|
8314
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
8315
|
-
className: "ml-2 flex w-full flex-1 items-center justify-center",
|
|
8316
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "h-px w-full bg-[#838383]" })
|
|
8317
|
-
})]
|
|
8318
|
-
});
|
|
8319
|
-
const LanguageControl = (props$1) => {
|
|
8320
|
-
const getSelectedFlag = () => {
|
|
8321
|
-
const selectValue = props$1.selectProps.value;
|
|
8322
|
-
const findFlag = (value) => LANGUAGE_FLAGS.find((e) => e.value === value || e.altValue === value)?.label || "";
|
|
8323
|
-
if (typeof selectValue === "string") return findFlag(selectValue);
|
|
8324
|
-
if (typeof selectValue === "object" && selectValue !== null && "value" in selectValue) return findFlag(selectValue.value);
|
|
8325
|
-
return null;
|
|
8326
|
-
};
|
|
8327
|
-
const selectedFlag = getSelectedFlag();
|
|
8328
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_select.components.Control, {
|
|
8329
|
-
...props$1,
|
|
8330
|
-
children: [selectedFlag && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8331
|
-
className: "flex h-[39px] items-center border-r border-gray-200 p-3",
|
|
8332
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
8333
|
-
src: `/images/countries/${selectedFlag.toUpperCase()}_flag.svg`,
|
|
8334
|
-
alt: "",
|
|
8335
|
-
width: 24,
|
|
8336
|
-
height: 24
|
|
8337
|
-
})
|
|
8338
|
-
}), props$1.children]
|
|
8339
|
-
});
|
|
8340
|
-
};
|
|
8341
|
-
const NoOptionsMessage = (props$1) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.components.NoOptionsMessage, {
|
|
8342
|
-
...props$1,
|
|
8343
|
-
children: "noOptionsMessage"
|
|
8344
|
-
});
|
|
8345
|
-
const SingleValue = (props$1) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_select.components.SingleValue, {
|
|
8346
|
-
...props$1,
|
|
8347
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
8348
|
-
className: "flex items-center",
|
|
8349
|
-
children: [icon && icon, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
8350
|
-
className: "mx-2",
|
|
8351
|
-
children: props$1.children
|
|
8352
|
-
})]
|
|
8353
|
-
})
|
|
8354
|
-
});
|
|
7393
|
+
//#region src/components/textInput/index.tsx
|
|
7394
|
+
const TextInput = react.default.forwardRef(({ rightSection, leftSection, className, error, autoFocus, label, maxLength, enablePasswordManagerAutofill = false, onBlur, disabled, loadingState, onKeyDown, min = "0", max, autoComplete, showRightSection = true, step, wrapperClassName, password = false,...props }, ref) => {
|
|
7395
|
+
const [showPassword, setShowPassword] = react.default.useState(false);
|
|
8355
7396
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8356
|
-
"data-component": "
|
|
8357
|
-
"data-testid": "
|
|
8358
|
-
|
|
8359
|
-
className: (0, clsx.default)("m-0 grid gap-2 p-0", width ? width : fullWidth && "w-full", className),
|
|
7397
|
+
"data-component": "TextInput",
|
|
7398
|
+
"data-testid": "TextInput",
|
|
7399
|
+
className: (0, clsx.default)("relative", wrapperClassName),
|
|
8360
7400
|
children: [
|
|
8361
|
-
label
|
|
8362
|
-
|
|
7401
|
+
typeof label === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
7402
|
+
htmlFor: props["id"],
|
|
7403
|
+
className: "mb-2 flex items-center gap-1 text-xs font-medium text-black",
|
|
8363
7404
|
children: label
|
|
8364
|
-
}),
|
|
8365
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
7405
|
+
}) : label,
|
|
7406
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7407
|
+
className: "relative",
|
|
7408
|
+
children: [
|
|
7409
|
+
leftSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7410
|
+
className: (0, clsx.default)("absolute top-0 left-0 flex h-10 w-12 content-center items-center justify-center align-middle text-sm font-medium text-black"),
|
|
7411
|
+
children: leftSection
|
|
7412
|
+
}),
|
|
7413
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
7414
|
+
onBlur,
|
|
7415
|
+
onKeyDown,
|
|
7416
|
+
autoComplete,
|
|
7417
|
+
min,
|
|
7418
|
+
max,
|
|
7419
|
+
autoFocus,
|
|
7420
|
+
disabled,
|
|
7421
|
+
step,
|
|
7422
|
+
maxLength,
|
|
7423
|
+
className: (0, clsx.default)(`${loadingState ? "cursor-not-allowed" : ""}`, `${disabled ? "text-gray-500" : "text-gray-900"} selection:bg-turquoise-200 focus:border-turquoise-500 focus:ring-turquoise-500 active:border-turquoise-500 active:ring-turquoise-500 h-10 w-full rounded-[4px] border border-gray-200 bg-gray-50 px-3 text-sm font-normal outline-hidden ${rightSection && "pr-12"} ${leftSection && "pl-12"} ${error && "border-red-500 text-red-500 selection:bg-red-200 focus:border-red-500 focus:ring-red-500 focus:placeholder:text-red-500 active:border-red-500 active:ring-red-500"}`, className),
|
|
7424
|
+
"aria-busy": loadingState || undefined,
|
|
7425
|
+
"data-lpignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
7426
|
+
"data-1p-ignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
7427
|
+
ref,
|
|
7428
|
+
...props,
|
|
7429
|
+
type: password ? showPassword ? "text" : "password" : "text"
|
|
8385
7430
|
}),
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
7431
|
+
loadingState ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7432
|
+
className: "absolute inset-y-0 right-0 flex h-10 w-12 content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
7433
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconAlert, {
|
|
7434
|
+
className: "h-4 w-4 animate-spin text-gray-500",
|
|
7435
|
+
"aria-label": "Loading"
|
|
7436
|
+
})
|
|
7437
|
+
}) : rightSection && showRightSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7438
|
+
className: "absolute inset-y-0 right-0 flex h-10 w-12 content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
7439
|
+
children: rightSection
|
|
7440
|
+
}),
|
|
7441
|
+
password && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7442
|
+
className: "absolute inset-y-0 right-4 flex content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
7443
|
+
children: showPassword ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7444
|
+
"data-testid": "password-visibility-toggle",
|
|
7445
|
+
className: "cursor-pointer text-gray-500",
|
|
7446
|
+
onClick: () => setShowPassword(false)
|
|
7447
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
7448
|
+
"data-testid": "password-visibility-toggle",
|
|
7449
|
+
className: "cursor-pointer text-gray-500",
|
|
7450
|
+
onClick: () => setShowPassword(true)
|
|
7451
|
+
})
|
|
8389
7452
|
})
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
DropdownIndicator,
|
|
8395
|
-
GroupHeading,
|
|
8396
|
-
Control: showLangFlags ? LanguageControl : react_select.components.Control,
|
|
8397
|
-
SingleValue,
|
|
8398
|
-
NoOptionsMessage
|
|
8399
|
-
},
|
|
8400
|
-
...props
|
|
8401
|
-
}, id),
|
|
8402
|
-
!hideErrorText && error && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", {
|
|
8403
|
-
className: "text-xs font-normal text-red-500",
|
|
8404
|
-
role: "alert",
|
|
7453
|
+
]
|
|
7454
|
+
}),
|
|
7455
|
+
error && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7456
|
+
className: "mt-2 text-xs font-normal text-red-500",
|
|
8405
7457
|
children: error
|
|
8406
7458
|
})
|
|
8407
7459
|
]
|
|
8408
7460
|
});
|
|
8409
7461
|
});
|
|
8410
|
-
|
|
7462
|
+
|
|
7463
|
+
//#endregion
|
|
7464
|
+
//#region src/components/searchInput/index.tsx
|
|
7465
|
+
const SearchInput = ({ placeholder, value, onChange, className, rightSection,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInput, {
|
|
7466
|
+
placeholder,
|
|
7467
|
+
className: className || "w-full lg:w-auto lg:min-w-[23.75rem]",
|
|
7468
|
+
rightSection: rightSection || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}),
|
|
7469
|
+
value,
|
|
7470
|
+
onChange,
|
|
7471
|
+
...props
|
|
7472
|
+
});
|
|
8411
7473
|
|
|
8412
7474
|
//#endregion
|
|
8413
7475
|
//#region src/components/skeleton/index.tsx
|
|
@@ -8417,21 +7479,6 @@ const Skeleton = ({ className, "data-testid": dataTestId }) => /* @__PURE__ */ (
|
|
|
8417
7479
|
className: cn("inline-block rounded-md", "animate-pulse bg-gray-100/50", className)
|
|
8418
7480
|
});
|
|
8419
7481
|
|
|
8420
|
-
//#endregion
|
|
8421
|
-
//#region src/components/skillPill/index.tsx
|
|
8422
|
-
const SkillPill = ({ name, number }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8423
|
-
"data-testid": "skill-pill-container",
|
|
8424
|
-
className: "flex items-center rounded-full border border-gray-200 p-[3px]",
|
|
8425
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
8426
|
-
className: "pr-4 pl-3",
|
|
8427
|
-
children: name
|
|
8428
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
8429
|
-
"data-testid": "skill-pill-number",
|
|
8430
|
-
className: "bg-turquoise-200 grid h-[30px] min-w-[30px] place-content-center rounded-full px-2.5",
|
|
8431
|
-
children: number
|
|
8432
|
-
})]
|
|
8433
|
-
});
|
|
8434
|
-
|
|
8435
7482
|
//#endregion
|
|
8436
7483
|
//#region src/components/stickyMobileButton/index.tsx
|
|
8437
7484
|
const StickyMobileButtonWrapper = ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -8504,99 +7551,6 @@ function TableRow({ children, className, header,...props }) {
|
|
|
8504
7551
|
});
|
|
8505
7552
|
}
|
|
8506
7553
|
|
|
8507
|
-
//#endregion
|
|
8508
|
-
//#region src/components/tabs/Tab.tsx
|
|
8509
|
-
const Tab = (0, react.forwardRef)(({ tabId, activeTab, tabContent, clickFnc, rightSection }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
8510
|
-
ref,
|
|
8511
|
-
"data-testid": `tab-${tabId}`,
|
|
8512
|
-
className: `${activeTab && "text-light-blue bg-[#F0F0F6]"} bg-ultra-light-blue px-5 py-[10px] text-xs font-normal whitespace-nowrap text-black transition-colors duration-100 hover:border-black hover:bg-[#F0F0F6] data-active:border-black data-active:bg-[#F0F0F6] data-active:font-medium data-active:text-black`,
|
|
8513
|
-
onClick: () => clickFnc(tabId),
|
|
8514
|
-
children: [tabContent, rightSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
8515
|
-
className: "ml-2 inline-flex",
|
|
8516
|
-
children: rightSection
|
|
8517
|
-
})]
|
|
8518
|
-
}));
|
|
8519
|
-
|
|
8520
|
-
//#endregion
|
|
8521
|
-
//#region src/components/tabs/TabsBadge.tsx
|
|
8522
|
-
const TabsBadge = ({ children }) => {
|
|
8523
|
-
const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
|
|
8524
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8525
|
-
"data-testid": "tabs-badge",
|
|
8526
|
-
className: (0, clsx.default)("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
|
|
8527
|
-
"w-5 text-center": isCircular,
|
|
8528
|
-
"px-2": !isCircular
|
|
8529
|
-
}),
|
|
8530
|
-
children
|
|
8531
|
-
});
|
|
8532
|
-
};
|
|
8533
|
-
TabsBadge.displayName = "TabsBadge";
|
|
8534
|
-
|
|
8535
|
-
//#endregion
|
|
8536
|
-
//#region src/components/tabs/TabsWrapper.tsx
|
|
8537
|
-
const TabsWrapper = ({ setActiveTab, activeTab, tabs }) => {
|
|
8538
|
-
const tabRefs = (0, react.useMemo)(() => {
|
|
8539
|
-
const refs = {};
|
|
8540
|
-
tabs?.forEach((tab) => {
|
|
8541
|
-
refs[tab.value] = (0, react.createRef)();
|
|
8542
|
-
});
|
|
8543
|
-
return refs;
|
|
8544
|
-
}, [tabs]);
|
|
8545
|
-
const [underlineStyle, setUnderlineStyle] = (0, react.useState)({
|
|
8546
|
-
width: 0,
|
|
8547
|
-
left: 0
|
|
8548
|
-
});
|
|
8549
|
-
(0, react.useEffect)(() => {
|
|
8550
|
-
if (activeTab && tabRefs[activeTab]?.current) {
|
|
8551
|
-
const activeTabElement = tabRefs[activeTab].current;
|
|
8552
|
-
setUnderlineStyle({
|
|
8553
|
-
width: activeTabElement?.offsetWidth || 0,
|
|
8554
|
-
left: activeTabElement?.offsetLeft || 0
|
|
8555
|
-
});
|
|
8556
|
-
}
|
|
8557
|
-
}, [activeTab, tabRefs]);
|
|
8558
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8559
|
-
className: "w-full",
|
|
8560
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8561
|
-
className: "relative inline-block w-auto border-b-[3px] border-gray-200",
|
|
8562
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8563
|
-
className: "flex",
|
|
8564
|
-
children: tabs && tabs?.map((tab) => tab.requiredPermissions ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabContent, {
|
|
8565
|
-
tab,
|
|
8566
|
-
ref: tabRefs[tab.value],
|
|
8567
|
-
setActiveTab,
|
|
8568
|
-
activeTab
|
|
8569
|
-
}, tab.value) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabContent, {
|
|
8570
|
-
tab,
|
|
8571
|
-
ref: tabRefs[tab.value],
|
|
8572
|
-
setActiveTab,
|
|
8573
|
-
activeTab
|
|
8574
|
-
}, tab.value))
|
|
8575
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
8576
|
-
className: "absolute h-[3px] bg-gray-900 transition-all duration-300",
|
|
8577
|
-
style: {
|
|
8578
|
-
width: underlineStyle.width,
|
|
8579
|
-
left: underlineStyle.left,
|
|
8580
|
-
bottom: "-3px"
|
|
8581
|
-
}
|
|
8582
|
-
})]
|
|
8583
|
-
})
|
|
8584
|
-
});
|
|
8585
|
-
};
|
|
8586
|
-
const TabContent = (0, react.forwardRef)(({ tab, setActiveTab, activeTab }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tab, {
|
|
8587
|
-
ref,
|
|
8588
|
-
tabId: tab.value,
|
|
8589
|
-
setActiveTab,
|
|
8590
|
-
activeTab: activeTab === tab.value,
|
|
8591
|
-
tabContent: tab.name,
|
|
8592
|
-
rightSection: tab?.rightSection || undefined,
|
|
8593
|
-
clickFnc: () => {
|
|
8594
|
-
tab.clickFnc(tab.value);
|
|
8595
|
-
setActiveTab(tab.value);
|
|
8596
|
-
}
|
|
8597
|
-
}));
|
|
8598
|
-
TabContent.displayName = "TabContent";
|
|
8599
|
-
|
|
8600
7554
|
//#endregion
|
|
8601
7555
|
//#region src/components/textArea/index.tsx
|
|
8602
7556
|
const Textarea = (0, react.forwardRef)(({ className, label, error, rows = 8,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -8802,14 +7756,15 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
|
|
|
8802
7756
|
ref: menuRef,
|
|
8803
7757
|
"data-context-menu-id": metaTitle,
|
|
8804
7758
|
"data-context-menu-content": metaTitle,
|
|
8805
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
7759
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Button, {
|
|
8806
7760
|
ref: buttonRef,
|
|
8807
7761
|
id: buttonId,
|
|
8808
7762
|
"aria-label": "Toggle profile menu",
|
|
8809
7763
|
"aria-expanded": isOpen,
|
|
8810
7764
|
"aria-haspopup": "menu",
|
|
8811
7765
|
"aria-controls": isOpen ? menuId : undefined,
|
|
8812
|
-
|
|
7766
|
+
variant: "secondary",
|
|
7767
|
+
className: cn(defaultStyling, classNames?.button),
|
|
8813
7768
|
disabled,
|
|
8814
7769
|
onClick: handleToggle,
|
|
8815
7770
|
children: [title && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -8823,13 +7778,14 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
|
|
|
8823
7778
|
className: cn("absolute right-0 z-10 mt-2 w-auto min-w-[200px] rounded-md border-[0.0625rem] border-gray-200 bg-white p-1 shadow-md", classNames?.menu),
|
|
8824
7779
|
children: content.map(
|
|
8825
7780
|
/* istanbul ignore next - render callback not meaningful for unit coverage */
|
|
8826
|
-
(c, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
7781
|
+
(c, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
8827
7782
|
ref: (el) => {
|
|
8828
7783
|
menuItemRefs.current[index] = el;
|
|
8829
7784
|
},
|
|
8830
7785
|
role: "menuitem",
|
|
8831
7786
|
tabIndex: -1,
|
|
8832
7787
|
onClick: () => handleItemClick(c.onClick),
|
|
7788
|
+
variant: "unstyled",
|
|
8833
7789
|
className: cn("w-full rounded-md px-4 py-2 text-left text-sm font-normal whitespace-nowrap transition-colors", "focus:ring-primary hover:bg-gray-50 focus:bg-gray-50 focus:ring focus:outline-none focus:ring-inset", c.disabled && "cursor-not-allowed opacity-50", focusedIndex === index && "bg-gray-50"),
|
|
8834
7790
|
"aria-label": c.title,
|
|
8835
7791
|
disabled: c.disabled,
|
|
@@ -9218,7 +8174,7 @@ const Calendar = ({ className, month, year = 2026,...props }) => {
|
|
|
9218
8174
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9219
8175
|
className: "flex items-center justify-center gap-4 mb-3",
|
|
9220
8176
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9221
|
-
className: "text-
|
|
8177
|
+
className: "text-base text-secondary font-bold whitespace-nowrap capitalize",
|
|
9222
8178
|
children: firstOfMonth.toLocaleDateString("nl-NL", {
|
|
9223
8179
|
month: "long",
|
|
9224
8180
|
year: "numeric"
|
|
@@ -10521,10 +9477,10 @@ const GiftCard = ({ className, amount, amountTotal, cardNumber, validUntilDate,.
|
|
|
10521
9477
|
children: [
|
|
10522
9478
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
10523
9479
|
className: "font-bold gift-card-amount",
|
|
10524
|
-
children: setCurrencyValue(amount || "0")
|
|
9480
|
+
children: setCurrencyValue(String(amount || "0"))
|
|
10525
9481
|
}),
|
|
10526
9482
|
" / ",
|
|
10527
|
-
setCurrencyValue(amountTotal || "0", false)
|
|
9483
|
+
setCurrencyValue(String(amountTotal || "0"), false)
|
|
10528
9484
|
]
|
|
10529
9485
|
}),
|
|
10530
9486
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -11570,17 +10526,9 @@ RangeSlider.displayName = "RangeSlider";
|
|
|
11570
10526
|
|
|
11571
10527
|
//#endregion
|
|
11572
10528
|
exports.Accordion = Accordion;
|
|
11573
|
-
exports.ActionIcon = ActionIcon;
|
|
11574
|
-
exports.Alert = Alert;
|
|
11575
|
-
exports.AutoCompleteInput = AutoCompleteInput;
|
|
11576
|
-
exports.Avatar = Avatar;
|
|
11577
|
-
exports.AvatarIndicator = AvatarIndicator;
|
|
11578
|
-
exports.Badge = Badge;
|
|
11579
|
-
exports.BigBadge = BigBadge;
|
|
11580
10529
|
exports.BlogWidget = BlogWidget;
|
|
11581
10530
|
exports.BrandProvider = BrandProvider;
|
|
11582
10531
|
exports.BrandTopMenu = BrandTopMenu;
|
|
11583
|
-
exports.BreadCrumb = BreadCrumb;
|
|
11584
10532
|
exports.Button = Button;
|
|
11585
10533
|
exports.CSS_VARIABLE_KEYS = CSS_VARIABLE_KEYS;
|
|
11586
10534
|
exports.Calendar = Calendar;
|
|
@@ -11590,16 +10538,13 @@ exports.Checkbox = Checkbox;
|
|
|
11590
10538
|
exports.Collection = Collection;
|
|
11591
10539
|
exports.CounterIcon = CounterIcon;
|
|
11592
10540
|
exports.Coupon = Coupon;
|
|
11593
|
-
exports.DatePickerInput = DatePickerInput;
|
|
11594
10541
|
exports.Divider = Divider;
|
|
11595
10542
|
exports.Dropdown = Dropdown;
|
|
11596
|
-
exports.FavouriteButton = FavouriteButton;
|
|
11597
10543
|
exports.FilterButton = FilterButton;
|
|
11598
10544
|
exports.Filters = Filters;
|
|
11599
10545
|
exports.FlightSwitch = FlightSwitch;
|
|
11600
10546
|
exports.Footer = Footer;
|
|
11601
10547
|
exports.GiftCard = GiftCard;
|
|
11602
|
-
exports.HR = HR;
|
|
11603
10548
|
exports.HamburgerMenuButton = HamburgerMenuButton;
|
|
11604
10549
|
exports.Header = Header;
|
|
11605
10550
|
exports.Hero = Hero;
|
|
@@ -11674,7 +10619,6 @@ exports.IconWatched = IconWatched;
|
|
|
11674
10619
|
exports.IconWhatsapp = IconWhatsapp;
|
|
11675
10620
|
exports.IconWinterSport = IconWinterSport;
|
|
11676
10621
|
exports.IconWinterSun = IconWinterSun;
|
|
11677
|
-
exports.Island = Island;
|
|
11678
10622
|
exports.Label = Label;
|
|
11679
10623
|
exports.LinkBox = LinkBox;
|
|
11680
10624
|
exports.Loading = Loading;
|
|
@@ -11683,15 +10627,12 @@ exports.Map = Map;
|
|
|
11683
10627
|
exports.MatrixTable = MatrixTable;
|
|
11684
10628
|
exports.Menu = Menu;
|
|
11685
10629
|
exports.MiddleNavigation = MiddleNavigation;
|
|
11686
|
-
exports.Modal = Modal;
|
|
11687
10630
|
exports.Nominations = Nominations;
|
|
11688
10631
|
exports.NumberField = NumberField;
|
|
11689
10632
|
exports.PageNavigation = PageNavigation;
|
|
11690
10633
|
exports.PageRating = PageRating;
|
|
11691
|
-
exports.PasswordInput = PasswordInput;
|
|
11692
10634
|
exports.PhoneNumberInput = PhoneNumberInput;
|
|
11693
10635
|
exports.PhotoCardsRotated = PhotoCardsRotated;
|
|
11694
|
-
exports.Popover = Popover;
|
|
11695
10636
|
exports.PriceBox = PriceBox;
|
|
11696
10637
|
exports.PriceCheck = PriceCheck;
|
|
11697
10638
|
exports.ProfileMenu = ProfileMenu;
|
|
@@ -11711,9 +10652,7 @@ exports.SearchBlock = SearchBlock;
|
|
|
11711
10652
|
exports.SearchBox = SearchBox;
|
|
11712
10653
|
exports.SearchBoxResults = SearchBoxResults;
|
|
11713
10654
|
exports.SearchInput = SearchInput;
|
|
11714
|
-
exports.Select = Select;
|
|
11715
10655
|
exports.Skeleton = Skeleton;
|
|
11716
|
-
exports.SkillPill = SkillPill;
|
|
11717
10656
|
exports.Slider = Slider;
|
|
11718
10657
|
exports.Spotlights = Spotlights;
|
|
11719
10658
|
exports.Stepper = Stepper;
|
|
@@ -11725,8 +10664,6 @@ exports.TableHeader = TableHeader;
|
|
|
11725
10664
|
exports.TableHeaderItem = TableHeaderItem;
|
|
11726
10665
|
exports.TableHeaderRow = TableHeaderRow;
|
|
11727
10666
|
exports.TableRow = TableRow;
|
|
11728
|
-
exports.TabsBadge = TabsBadge;
|
|
11729
|
-
exports.TabsWrapper = TabsWrapper;
|
|
11730
10667
|
exports.TextInput = TextInput;
|
|
11731
10668
|
exports.Textarea = Textarea;
|
|
11732
10669
|
exports.TimeInput = TimeInput;
|
|
@@ -11737,7 +10674,6 @@ exports.TransportToggle = TransportToggle;
|
|
|
11737
10674
|
exports.TruncatedText = TruncatedText;
|
|
11738
10675
|
exports.UnorderedList = UnorderedList;
|
|
11739
10676
|
exports.UnorderedListItem = UnorderedListItem;
|
|
11740
|
-
exports.UnstyledButton = UnstyledButton;
|
|
11741
10677
|
exports.Usp = Usp;
|
|
11742
10678
|
exports.ViewedAccomodations = ViewedAccomodations;
|
|
11743
10679
|
exports.WarningText = WarningText;
|