@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.js
CHANGED
|
@@ -2,19 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
import * as React$1 from "react";
|
|
5
|
-
import React, { Fragment, cloneElement, createContext,
|
|
5
|
+
import React, { Fragment, cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { twMerge } from "tailwind-merge";
|
|
9
9
|
import { useInView } from "react-intersection-observer";
|
|
10
10
|
import moment from "moment";
|
|
11
11
|
import useEmblaCarousel from "embla-carousel-react";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { enGB, fr, nl, nlBE } from "date-fns/locale";
|
|
15
|
-
import { autoUpdate, flip, offset, shift, useClick, useDismiss, useFloating, useFocus, useHover, useInteractions, useRole } from "@floating-ui/react";
|
|
16
|
-
import { createPortal } from "react-dom";
|
|
17
|
-
import ReactSelect, { components } from "react-select";
|
|
12
|
+
import { differenceInMinutes, format, parse } from "date-fns";
|
|
13
|
+
import { nl } from "date-fns/locale";
|
|
18
14
|
|
|
19
15
|
//#region src/jsx-runtime-shim.ts
|
|
20
16
|
const jsx$1 = React$1.createElement;
|
|
@@ -50,7 +46,7 @@ var styles_default$25 = {};
|
|
|
50
46
|
var styles_default$24 = {};
|
|
51
47
|
|
|
52
48
|
//#endregion
|
|
53
|
-
//#region src/components/
|
|
49
|
+
//#region src/components/filterButton/styles.css
|
|
54
50
|
var styles_default$23 = {};
|
|
55
51
|
|
|
56
52
|
//#endregion
|
|
@@ -321,7 +317,7 @@ const CounterIcon = ({ className, icon, id, count, allowZero = false, onClick, i
|
|
|
321
317
|
//#region src/components/divider/index.tsx
|
|
322
318
|
const Divider = ({ className,...props }) => /* @__PURE__ */ jsx("div", {
|
|
323
319
|
"data-component": "divider",
|
|
324
|
-
className: clsx("block h-px w-full bg-
|
|
320
|
+
className: clsx("block h-px w-full bg-[#e0e0e0]", className),
|
|
325
321
|
...props
|
|
326
322
|
});
|
|
327
323
|
|
|
@@ -1904,7 +1900,7 @@ const Dropdown = ({ className, loading, dropdownItems, selectedItem, onClick, dr
|
|
|
1904
1900
|
onClick: toggleDropdown,
|
|
1905
1901
|
onKeyDown: handleKeyDown,
|
|
1906
1902
|
tabIndex: 0,
|
|
1907
|
-
className: "dropdown-button bg-white px-3 py-2 h-12 border rounded-md w-full flex items-center flex-row justify-between",
|
|
1903
|
+
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",
|
|
1908
1904
|
"aria-haspopup": "true",
|
|
1909
1905
|
"aria-expanded": isOpen,
|
|
1910
1906
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
@@ -1932,7 +1928,7 @@ const Dropdown = ({ className, loading, dropdownItems, selectedItem, onClick, dr
|
|
|
1932
1928
|
};
|
|
1933
1929
|
|
|
1934
1930
|
//#endregion
|
|
1935
|
-
//#region src/components/
|
|
1931
|
+
//#region src/components/filterButton/index.tsx
|
|
1936
1932
|
const FilterButton = ({ className, icon, leftContent, text, disabled, onClick }) => {
|
|
1937
1933
|
const formattedIcon = icon ? formatIcon(icon, { className: "min-w-4 min-h-4" }) : null;
|
|
1938
1934
|
return /* @__PURE__ */ jsxs("span", {
|
|
@@ -5116,7 +5112,7 @@ const QuantityButtons = ({ className, value, setValue, minValue = 0, maxValue =
|
|
|
5116
5112
|
ariaLabel: "Decrease value",
|
|
5117
5113
|
variant: "icon",
|
|
5118
5114
|
disabled: isMin,
|
|
5119
|
-
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",
|
|
5115
|
+
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",
|
|
5120
5116
|
onClick: () => setValue(Math.max(value - 1, minValue)),
|
|
5121
5117
|
children: /* @__PURE__ */ jsx(IconMinus, { className: "quantity-buttons-color" })
|
|
5122
5118
|
}),
|
|
@@ -5128,7 +5124,7 @@ const QuantityButtons = ({ className, value, setValue, minValue = 0, maxValue =
|
|
|
5128
5124
|
ariaLabel: "Increase value",
|
|
5129
5125
|
variant: "icon",
|
|
5130
5126
|
disabled: isMax,
|
|
5131
|
-
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",
|
|
5127
|
+
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",
|
|
5132
5128
|
onClick: () => setValue(Math.min(value + 1, maxValue)),
|
|
5133
5129
|
children: /* @__PURE__ */ jsx(IconPlus, { className: "quantity-buttons-color" })
|
|
5134
5130
|
})
|
|
@@ -5243,22 +5239,22 @@ function Slider({ slides, options, plugins, lazyLoad = false, showArrows = true,
|
|
|
5243
5239
|
children: [/* @__PURE__ */ jsx("button", {
|
|
5244
5240
|
type: "button",
|
|
5245
5241
|
"aria-label": "Previous slide",
|
|
5246
|
-
className: cn("pointer-events-auto cursor-pointer ml-2 inline-flex size-9 items-center justify-center rounded-full bg-
|
|
5242
|
+
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"),
|
|
5247
5243
|
onClick: scrollPrev,
|
|
5248
5244
|
disabled: !canScrollPrev,
|
|
5249
5245
|
children: /* @__PURE__ */ jsx("span", {
|
|
5250
5246
|
"aria-hidden": "true",
|
|
5251
|
-
children: "
|
|
5247
|
+
children: /* @__PURE__ */ jsx(IconArrowLeft, { className: "size-4 text-white" })
|
|
5252
5248
|
})
|
|
5253
5249
|
}), /* @__PURE__ */ jsx("button", {
|
|
5254
5250
|
type: "button",
|
|
5255
5251
|
"aria-label": "Next slide",
|
|
5256
|
-
className: cn("pointer-events-auto cursor-pointer mr-2 inline-flex size-9 items-center justify-center rounded-full bg-
|
|
5252
|
+
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"),
|
|
5257
5253
|
onClick: scrollNext,
|
|
5258
5254
|
disabled: !canScrollNext,
|
|
5259
5255
|
children: /* @__PURE__ */ jsx("span", {
|
|
5260
5256
|
"aria-hidden": "true",
|
|
5261
|
-
children: "
|
|
5257
|
+
children: /* @__PURE__ */ jsx(IconArrowRight, { className: "size-4 text-white" })
|
|
5262
5258
|
})
|
|
5263
5259
|
})]
|
|
5264
5260
|
}),
|
|
@@ -7027,702 +7023,6 @@ const PriceBox = ({ className, hotel, brand, noBorder = false, noHover = false,
|
|
|
7027
7023
|
});
|
|
7028
7024
|
};
|
|
7029
7025
|
|
|
7030
|
-
//#endregion
|
|
7031
|
-
//#region src/utils/enums.ts
|
|
7032
|
-
let ACTION_ICON_STYLE_VARIANT = /* @__PURE__ */ function(ACTION_ICON_STYLE_VARIANT$1) {
|
|
7033
|
-
ACTION_ICON_STYLE_VARIANT$1["DEFAULT"] = "default";
|
|
7034
|
-
ACTION_ICON_STYLE_VARIANT$1["TRANSPARENT"] = "transparent";
|
|
7035
|
-
ACTION_ICON_STYLE_VARIANT$1["SMALL"] = "small";
|
|
7036
|
-
ACTION_ICON_STYLE_VARIANT$1["ROUND"] = "round";
|
|
7037
|
-
return ACTION_ICON_STYLE_VARIANT$1;
|
|
7038
|
-
}({});
|
|
7039
|
-
let THEME_ICON_STYLE_VARIANT = /* @__PURE__ */ function(THEME_ICON_STYLE_VARIANT$1) {
|
|
7040
|
-
THEME_ICON_STYLE_VARIANT$1["PINK_WITH_BACKGROUND"] = "pink-with-background";
|
|
7041
|
-
return THEME_ICON_STYLE_VARIANT$1;
|
|
7042
|
-
}({});
|
|
7043
|
-
let COLOR = /* @__PURE__ */ function(COLOR$1) {
|
|
7044
|
-
COLOR$1["PRIMARY"] = "primary";
|
|
7045
|
-
COLOR$1["BLACK"] = "black";
|
|
7046
|
-
COLOR$1["LIGHT_BLUE"] = "light-blue";
|
|
7047
|
-
COLOR$1["LIGHT_BLUE_DISABLED"] = "light-blue-disabled";
|
|
7048
|
-
COLOR$1["GREEN"] = "green";
|
|
7049
|
-
COLOR$1["GREEN_LIGHT"] = "green-light";
|
|
7050
|
-
COLOR$1["PINK"] = "pink";
|
|
7051
|
-
COLOR$1["PINK_LIGHT"] = "pink-light";
|
|
7052
|
-
COLOR$1["ORANGE"] = "orange";
|
|
7053
|
-
COLOR$1["ORANGE_LIGHT"] = "orange-light";
|
|
7054
|
-
COLOR$1["ACCENT_BLUE"] = "accent-blue";
|
|
7055
|
-
COLOR$1["ACCENT_BLUE_LIGHT"] = "accent-blue-light";
|
|
7056
|
-
COLOR$1["YELLOW"] = "yellow";
|
|
7057
|
-
COLOR$1["CHECK"] = "check";
|
|
7058
|
-
COLOR$1["WARNING"] = "warning";
|
|
7059
|
-
COLOR$1["ERROR"] = "error";
|
|
7060
|
-
COLOR$1["SUCCESS"] = "success";
|
|
7061
|
-
COLOR$1["WARNING_LIGHT"] = "warning-light";
|
|
7062
|
-
COLOR$1["ULTRA_LIGHT_BLUE"] = "ultra-light-blue";
|
|
7063
|
-
COLOR$1["ULTRA_LIGHT_GRAY"] = "ultra-light-gray";
|
|
7064
|
-
COLOR$1["TURQUOISE"] = "turquoise";
|
|
7065
|
-
COLOR$1["RED"] = "red";
|
|
7066
|
-
COLOR$1["GRAY"] = "gray";
|
|
7067
|
-
COLOR$1["WHITE"] = "white";
|
|
7068
|
-
COLOR$1["PURPLE"] = "purple";
|
|
7069
|
-
COLOR$1["PURPLE_LIGHT"] = "purple-light";
|
|
7070
|
-
return COLOR$1;
|
|
7071
|
-
}({});
|
|
7072
|
-
let REGION = /* @__PURE__ */ function(REGION$1) {
|
|
7073
|
-
REGION$1["NETHERLANDS"] = "nl";
|
|
7074
|
-
REGION$1["BELGIUM"] = "nl-BE";
|
|
7075
|
-
REGION$1["UNITED_KINGDOM"] = "gb";
|
|
7076
|
-
return REGION$1;
|
|
7077
|
-
}({});
|
|
7078
|
-
let TOOLTIP_COLOR = /* @__PURE__ */ function(TOOLTIP_COLOR$1) {
|
|
7079
|
-
TOOLTIP_COLOR$1["DEFAULT"] = "default";
|
|
7080
|
-
TOOLTIP_COLOR$1["WHITE"] = "white";
|
|
7081
|
-
return TOOLTIP_COLOR$1;
|
|
7082
|
-
}({});
|
|
7083
|
-
|
|
7084
|
-
//#endregion
|
|
7085
|
-
//#region src/components/actionIcon/index.tsx
|
|
7086
|
-
const ActionIcon = forwardRef(({ title, disabled = false, styleVariant = "default", icon, type = "button", "data-testid": testId, iconSize = 20, strokeWidth = 1, onClick, className,...props }, ref) => {
|
|
7087
|
-
const variantClassNames = clsx({
|
|
7088
|
-
"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,
|
|
7089
|
-
"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,
|
|
7090
|
-
"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,
|
|
7091
|
-
"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
|
|
7092
|
-
});
|
|
7093
|
-
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("button", {
|
|
7094
|
-
title,
|
|
7095
|
-
type,
|
|
7096
|
-
disabled,
|
|
7097
|
-
"data-testid": testId,
|
|
7098
|
-
"data-component": "ActionIcon",
|
|
7099
|
-
className: cn(variantClassNames, { "hover:bg-transparant cursor-not-allowed hover:border-gray-200": disabled }, className),
|
|
7100
|
-
onClick,
|
|
7101
|
-
ref,
|
|
7102
|
-
"data-tooltip-id": title,
|
|
7103
|
-
"data-tooltip-content": title,
|
|
7104
|
-
...props,
|
|
7105
|
-
children: icon ? formatIcon(icon, {
|
|
7106
|
-
stroke: strokeWidth,
|
|
7107
|
-
size: iconSize
|
|
7108
|
-
}) : props["children"]
|
|
7109
|
-
}) });
|
|
7110
|
-
});
|
|
7111
|
-
ActionIcon.displayName = "ActionIcon";
|
|
7112
|
-
|
|
7113
|
-
//#endregion
|
|
7114
|
-
//#region src/components/alert/index.tsx
|
|
7115
|
-
const Alert = ({ show, message, type, plain = false, className }) => {
|
|
7116
|
-
const [showAlert, setShowAlert] = useState();
|
|
7117
|
-
const icon = () => {
|
|
7118
|
-
if (plain) return null;
|
|
7119
|
-
switch (type) {
|
|
7120
|
-
case "warning": return /* @__PURE__ */ jsx("svg", {
|
|
7121
|
-
className: "text-warning hidden md:block",
|
|
7122
|
-
"data-testid": "alert-circle-icon"
|
|
7123
|
-
});
|
|
7124
|
-
case "error": return /* @__PURE__ */ jsx("svg", {
|
|
7125
|
-
className: "hidden text-red-500 md:block",
|
|
7126
|
-
"data-testid": "alert-circle-icon"
|
|
7127
|
-
});
|
|
7128
|
-
case "success": return /* @__PURE__ */ jsx("svg", {
|
|
7129
|
-
className: "text-green hidden md:block",
|
|
7130
|
-
"data-testid": "check-circle-icon"
|
|
7131
|
-
});
|
|
7132
|
-
}
|
|
7133
|
-
};
|
|
7134
|
-
useEffect(() => {
|
|
7135
|
-
setShowAlert(show);
|
|
7136
|
-
}, [show]);
|
|
7137
|
-
if (!showAlert) return null;
|
|
7138
|
-
return /* @__PURE__ */ jsx("div", {
|
|
7139
|
-
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" : ""}`, {
|
|
7140
|
-
"border-warning bg-warning-light text-warning": type === COLOR.WARNING,
|
|
7141
|
-
"border-red-500 bg-red-50 text-red-500": type === COLOR.ERROR,
|
|
7142
|
-
"border-green bg-green-light text-green": type === COLOR.SUCCESS
|
|
7143
|
-
}, className),
|
|
7144
|
-
"data-component": "Alert",
|
|
7145
|
-
"data-testid": "alert",
|
|
7146
|
-
children: /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", {
|
|
7147
|
-
className: "flex md:items-center",
|
|
7148
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
7149
|
-
className: "flex md:items-center",
|
|
7150
|
-
children: icon()
|
|
7151
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
7152
|
-
className: `m-0 font-medium text-black ${plain ? "" : "md:ml-5"}`,
|
|
7153
|
-
children: message
|
|
7154
|
-
})]
|
|
7155
|
-
}) })
|
|
7156
|
-
});
|
|
7157
|
-
};
|
|
7158
|
-
Alert.displayName = "Alert";
|
|
7159
|
-
|
|
7160
|
-
//#endregion
|
|
7161
|
-
//#region src/components/textInput/index.tsx
|
|
7162
|
-
const TextInput = React.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) => {
|
|
7163
|
-
const [showPassword, setShowPassword] = React.useState(false);
|
|
7164
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
7165
|
-
"data-component": "TextInput",
|
|
7166
|
-
"data-testid": "TextInput",
|
|
7167
|
-
className: clsx("relative", wrapperClassName),
|
|
7168
|
-
children: [
|
|
7169
|
-
typeof label === "string" ? /* @__PURE__ */ jsx("label", {
|
|
7170
|
-
htmlFor: props["id"],
|
|
7171
|
-
className: "mb-2 flex items-center gap-1 text-xs font-medium text-black",
|
|
7172
|
-
children: label
|
|
7173
|
-
}) : label,
|
|
7174
|
-
/* @__PURE__ */ jsxs("div", {
|
|
7175
|
-
className: "relative",
|
|
7176
|
-
children: [
|
|
7177
|
-
leftSection && /* @__PURE__ */ jsx("div", {
|
|
7178
|
-
className: clsx("absolute top-0 left-0 flex h-10 w-12 content-center items-center justify-center align-middle text-sm font-medium text-black"),
|
|
7179
|
-
children: leftSection
|
|
7180
|
-
}),
|
|
7181
|
-
/* @__PURE__ */ jsx("input", {
|
|
7182
|
-
onBlur,
|
|
7183
|
-
onKeyDown,
|
|
7184
|
-
autoComplete,
|
|
7185
|
-
min,
|
|
7186
|
-
max,
|
|
7187
|
-
autoFocus,
|
|
7188
|
-
disabled,
|
|
7189
|
-
step,
|
|
7190
|
-
maxLength,
|
|
7191
|
-
className: clsx(`${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),
|
|
7192
|
-
"aria-busy": loadingState || undefined,
|
|
7193
|
-
"data-lpignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
7194
|
-
"data-1p-ignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
7195
|
-
ref,
|
|
7196
|
-
...props,
|
|
7197
|
-
type: password ? showPassword ? "text" : "password" : "text"
|
|
7198
|
-
}),
|
|
7199
|
-
loadingState ? /* @__PURE__ */ jsx("div", {
|
|
7200
|
-
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",
|
|
7201
|
-
children: /* @__PURE__ */ jsx(IconAlert, {
|
|
7202
|
-
className: "h-4 w-4 animate-spin text-gray-500",
|
|
7203
|
-
"aria-label": "Loading"
|
|
7204
|
-
})
|
|
7205
|
-
}) : rightSection && showRightSection && /* @__PURE__ */ jsx("div", {
|
|
7206
|
-
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",
|
|
7207
|
-
children: rightSection
|
|
7208
|
-
}),
|
|
7209
|
-
password && /* @__PURE__ */ jsx("div", {
|
|
7210
|
-
className: "absolute inset-y-0 right-4 flex content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
7211
|
-
children: showPassword ? /* @__PURE__ */ jsx("svg", {
|
|
7212
|
-
"data-testid": "password-visibility-toggle",
|
|
7213
|
-
className: "cursor-pointer text-gray-500",
|
|
7214
|
-
onClick: () => setShowPassword(false)
|
|
7215
|
-
}) : /* @__PURE__ */ jsx("svg", {
|
|
7216
|
-
"data-testid": "password-visibility-toggle",
|
|
7217
|
-
className: "cursor-pointer text-gray-500",
|
|
7218
|
-
onClick: () => setShowPassword(true)
|
|
7219
|
-
})
|
|
7220
|
-
})
|
|
7221
|
-
]
|
|
7222
|
-
}),
|
|
7223
|
-
error && /* @__PURE__ */ jsx("div", {
|
|
7224
|
-
className: "mt-2 text-xs font-normal text-red-500",
|
|
7225
|
-
children: error
|
|
7226
|
-
})
|
|
7227
|
-
]
|
|
7228
|
-
});
|
|
7229
|
-
});
|
|
7230
|
-
|
|
7231
|
-
//#endregion
|
|
7232
|
-
//#region src/components/autoCompleteInput/index.tsx
|
|
7233
|
-
const AutoCompleteInput = ({ label, onChange, onFocus, inputValue, showSuggestions, handleOnKeyDown, children, error, rightSection, inputRef }) => /* @__PURE__ */ jsxs("div", {
|
|
7234
|
-
className: "relative mb-8",
|
|
7235
|
-
children: [/* @__PURE__ */ jsx(TextInput, {
|
|
7236
|
-
ref: inputRef,
|
|
7237
|
-
label,
|
|
7238
|
-
id: "search",
|
|
7239
|
-
type: "text",
|
|
7240
|
-
name: "searchField",
|
|
7241
|
-
onChange,
|
|
7242
|
-
onFocus,
|
|
7243
|
-
onKeyDown: handleOnKeyDown,
|
|
7244
|
-
value: inputValue,
|
|
7245
|
-
error,
|
|
7246
|
-
rightSection,
|
|
7247
|
-
"aria-autocomplete": "list",
|
|
7248
|
-
"aria-controls": "suggestions-googlemaps-location-list"
|
|
7249
|
-
}), showSuggestions && inputValue && children]
|
|
7250
|
-
});
|
|
7251
|
-
|
|
7252
|
-
//#endregion
|
|
7253
|
-
//#region src/components/avatar/index.tsx
|
|
7254
|
-
const radiusFormatter = {
|
|
7255
|
-
0: "rounded-none",
|
|
7256
|
-
2: "rounded-sm",
|
|
7257
|
-
4: "rounded",
|
|
7258
|
-
6: "rounded-lg",
|
|
7259
|
-
8: "rounded-xl",
|
|
7260
|
-
10: "rounded-2xl",
|
|
7261
|
-
12: "rounded-3xl",
|
|
7262
|
-
100: "rounded-full"
|
|
7263
|
-
};
|
|
7264
|
-
const Avatar = ({ src, alt = "", size = 50, radius = 100, "data-testid": dataTestId = "avatar" }) => /* @__PURE__ */ jsx("div", {
|
|
7265
|
-
"data-component": "Avatar",
|
|
7266
|
-
"data-testid": dataTestId,
|
|
7267
|
-
children: src && /* @__PURE__ */ jsx("img", {
|
|
7268
|
-
src,
|
|
7269
|
-
className: cn("aspect-square appearance-none object-cover", radiusFormatter[radius]),
|
|
7270
|
-
alt,
|
|
7271
|
-
width: size,
|
|
7272
|
-
height: size,
|
|
7273
|
-
"data-testid": "avatar-img"
|
|
7274
|
-
})
|
|
7275
|
-
});
|
|
7276
|
-
Avatar.displayName = "Avatar";
|
|
7277
|
-
|
|
7278
|
-
//#endregion
|
|
7279
|
-
//#region src/components/avatarIndicator/index.tsx
|
|
7280
|
-
const AvatarIndicator = ({ indicatorCount, className }) => /* @__PURE__ */ jsx("div", {
|
|
7281
|
-
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),
|
|
7282
|
-
"data-component": "AvatarIndicator",
|
|
7283
|
-
"data-testid": "AvatarIndicator",
|
|
7284
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
7285
|
-
className: "font-['Gotham'] text-[10px] leading-[10px] font-bold text-white",
|
|
7286
|
-
children: `+${indicatorCount}`
|
|
7287
|
-
})
|
|
7288
|
-
});
|
|
7289
|
-
|
|
7290
|
-
//#endregion
|
|
7291
|
-
//#region src/components/badge/index.tsx
|
|
7292
|
-
const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile = false, badgeBorder = false, fullWidth = false, leftSection, rightSection, children,...props }) => /* @__PURE__ */ jsxs("span", {
|
|
7293
|
-
"data-testid": "badge",
|
|
7294
|
-
"data-component": "Badge",
|
|
7295
|
-
className: clsx("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 && {
|
|
7296
|
-
"border-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
|
|
7297
|
-
"border-green-light": styleVariant === COLOR.GREEN_LIGHT,
|
|
7298
|
-
"border-red-500": styleVariant === COLOR.RED,
|
|
7299
|
-
"border-purple": styleVariant === COLOR.PURPLE,
|
|
7300
|
-
"border-warning": styleVariant === COLOR.WARNING,
|
|
7301
|
-
"border-black": styleVariant === COLOR.BLACK,
|
|
7302
|
-
"border-gray-800": styleVariant === COLOR.GRAY,
|
|
7303
|
-
"border-pink": styleVariant === COLOR.PINK_LIGHT || styleVariant === COLOR.PINK,
|
|
7304
|
-
"border-gray-200 bg-white text-black": styleVariant === COLOR.WHITE
|
|
7305
|
-
}, {
|
|
7306
|
-
"bg-accent-blue-light text-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
|
|
7307
|
-
"bg-green-light text-green": styleVariant === COLOR.GREEN_LIGHT,
|
|
7308
|
-
"bg-red-50 text-red-500": styleVariant === COLOR.RED,
|
|
7309
|
-
"bg-purple-light text-purple": styleVariant === COLOR.PURPLE,
|
|
7310
|
-
"bg-warning-light text-warning": styleVariant === COLOR.WARNING,
|
|
7311
|
-
"bg-gray-50 text-black": styleVariant === COLOR.BLACK,
|
|
7312
|
-
"bg-gray-50 text-gray-800": styleVariant === COLOR.GRAY,
|
|
7313
|
-
"bg-pink-light text-pink": styleVariant === COLOR.PINK_LIGHT,
|
|
7314
|
-
"bg-pink text-white": styleVariant === COLOR.PINK,
|
|
7315
|
-
"bg-white text-black": styleVariant === COLOR.WHITE
|
|
7316
|
-
}, className),
|
|
7317
|
-
...props,
|
|
7318
|
-
children: [
|
|
7319
|
-
leftSection && /* @__PURE__ */ jsx("div", {
|
|
7320
|
-
"data-testid": "left-section",
|
|
7321
|
-
children: leftSection
|
|
7322
|
-
}),
|
|
7323
|
-
/* @__PURE__ */ jsx("span", {
|
|
7324
|
-
"data-testid": "badge-content",
|
|
7325
|
-
className: cn("block h-5 overflow-hidden text-ellipsis whitespace-nowrap", { "flex items-center": favorite }),
|
|
7326
|
-
children
|
|
7327
|
-
}),
|
|
7328
|
-
rightSection && /* @__PURE__ */ jsx("div", {
|
|
7329
|
-
"data-testid": "right-section",
|
|
7330
|
-
children: rightSection
|
|
7331
|
-
})
|
|
7332
|
-
]
|
|
7333
|
-
});
|
|
7334
|
-
Badge.displayName = "Badge";
|
|
7335
|
-
|
|
7336
|
-
//#endregion
|
|
7337
|
-
//#region src/components/bigBadge/index.tsx
|
|
7338
|
-
const BigBadge = ({ styleVariant = COLOR.GREEN, className, children,...props }) => /* @__PURE__ */ jsx("div", {
|
|
7339
|
-
"data-component": "BigBadge",
|
|
7340
|
-
"data-testid": "big-badge",
|
|
7341
|
-
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", {
|
|
7342
|
-
"border-green text-green bg-white": styleVariant === COLOR.GREEN,
|
|
7343
|
-
"border-accent-blue text-accent-blue bg-white": styleVariant === COLOR.ACCENT_BLUE,
|
|
7344
|
-
"border-orange text-orange bg-white": styleVariant === COLOR.ORANGE,
|
|
7345
|
-
"group-hover:bg-green-light": styleVariant === COLOR.GREEN,
|
|
7346
|
-
"border-red-500 bg-white text-red-500": styleVariant === COLOR.RED,
|
|
7347
|
-
"group-hover:bg-red-50": styleVariant === COLOR.RED,
|
|
7348
|
-
"border-gray-200 bg-white text-black": styleVariant === COLOR.WHITE,
|
|
7349
|
-
"": styleVariant === COLOR.WHITE
|
|
7350
|
-
}, className),
|
|
7351
|
-
...props,
|
|
7352
|
-
children
|
|
7353
|
-
});
|
|
7354
|
-
|
|
7355
|
-
//#endregion
|
|
7356
|
-
//#region src/components/breadCrumb/index.tsx
|
|
7357
|
-
const BreadCrumb = ({ children, LinkText }) => /* @__PURE__ */ jsx(LinkText, {
|
|
7358
|
-
"data-component": "BreadCrumb",
|
|
7359
|
-
classNames: "flex items-center",
|
|
7360
|
-
children: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("svg", { role: "img" }), /* @__PURE__ */ jsx("span", {
|
|
7361
|
-
className: "flex items-center gap-5",
|
|
7362
|
-
children
|
|
7363
|
-
})] })
|
|
7364
|
-
});
|
|
7365
|
-
BreadCrumb.displayName = "BreadCrumb";
|
|
7366
|
-
|
|
7367
|
-
//#endregion
|
|
7368
|
-
//#region src/components/popover/index.tsx
|
|
7369
|
-
const Popover = forwardRef(({ content, children, hoverEnabled = false, passedOpen = false, placement = "right", style = "card", isMobile = false, className }, ref) => {
|
|
7370
|
-
const [isOpen, setIsOpen] = useState(passedOpen);
|
|
7371
|
-
const mobileStyles = { width: `${style === "card" && "100%"}` };
|
|
7372
|
-
const { refs, floatingStyles, context } = useFloating({
|
|
7373
|
-
open: isOpen,
|
|
7374
|
-
onOpenChange: setIsOpen,
|
|
7375
|
-
placement: !isMobile ? placement : "bottom-start",
|
|
7376
|
-
middleware: [
|
|
7377
|
-
!isMobile && flip(),
|
|
7378
|
-
!isMobile && shift(),
|
|
7379
|
-
offset(() => ({
|
|
7380
|
-
mainAxis: 15,
|
|
7381
|
-
crossAxis: !isMobile ? 0 : 78
|
|
7382
|
-
}))
|
|
7383
|
-
],
|
|
7384
|
-
whileElementsMounted: autoUpdate
|
|
7385
|
-
});
|
|
7386
|
-
const click = useClick(context, {
|
|
7387
|
-
event: "click",
|
|
7388
|
-
keyboardHandlers: true
|
|
7389
|
-
});
|
|
7390
|
-
const focus = useFocus(context);
|
|
7391
|
-
const hover = useHover(context, { enabled: hoverEnabled });
|
|
7392
|
-
const dismiss = useDismiss(context);
|
|
7393
|
-
const role = useRole(context, { role: "tooltip" });
|
|
7394
|
-
const interactions = [
|
|
7395
|
-
click,
|
|
7396
|
-
focus,
|
|
7397
|
-
dismiss,
|
|
7398
|
-
role,
|
|
7399
|
-
hover
|
|
7400
|
-
];
|
|
7401
|
-
const { getReferenceProps, getFloatingProps } = useInteractions(interactions);
|
|
7402
|
-
useImperativeHandle(ref, () => ({
|
|
7403
|
-
closePopover: () => setIsOpen(false),
|
|
7404
|
-
openPopover: () => setIsOpen(true),
|
|
7405
|
-
togglePopover: () => setIsOpen((prev) => !prev)
|
|
7406
|
-
}));
|
|
7407
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
7408
|
-
className: cn("", { "[&>div]:border-navyBlue": isOpen }, className),
|
|
7409
|
-
children: [isValidElement(children) && cloneElement(children, getReferenceProps({
|
|
7410
|
-
ref: refs.setReference,
|
|
7411
|
-
...getReferenceProps()
|
|
7412
|
-
})), isOpen && /* @__PURE__ */ jsxs("div", {
|
|
7413
|
-
ref: refs.setFloating,
|
|
7414
|
-
style: {
|
|
7415
|
-
...floatingStyles,
|
|
7416
|
-
...isMobile && { ...mobileStyles }
|
|
7417
|
-
},
|
|
7418
|
-
...getFloatingProps(),
|
|
7419
|
-
className: clsx("z-60", {
|
|
7420
|
-
"w-fit rounded border border-gray-200! bg-white p-5": style === "minimal",
|
|
7421
|
-
"card w-[489px] drop-shadow-xl": style === "card"
|
|
7422
|
-
}),
|
|
7423
|
-
"data-testid": "popover-container",
|
|
7424
|
-
"data-component": "Popover",
|
|
7425
|
-
children: [style === "minimal" && content, style === "card" && /* @__PURE__ */ jsx("div", {
|
|
7426
|
-
className: "bg-linear-gradient-x pt-[3px]",
|
|
7427
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
7428
|
-
className: "relative overflow-hidden bg-white p-5",
|
|
7429
|
-
children: [!hoverEnabled && /* @__PURE__ */ jsx(ActionIcon, {
|
|
7430
|
-
onClick: () => setIsOpen(false),
|
|
7431
|
-
title: "",
|
|
7432
|
-
icon: /* @__PURE__ */ jsx("svg", {}),
|
|
7433
|
-
styleVariant: "small",
|
|
7434
|
-
className: "absolute top-5 right-5"
|
|
7435
|
-
}), content]
|
|
7436
|
-
})
|
|
7437
|
-
})]
|
|
7438
|
-
})]
|
|
7439
|
-
});
|
|
7440
|
-
});
|
|
7441
|
-
|
|
7442
|
-
//#endregion
|
|
7443
|
-
//#region src/components/datePickerInput/index.tsx
|
|
7444
|
-
const DatePickerInput = ({ lang, todayText, value, disabledFrom, disabledUntil, className, error, onChange, placeholder, label, disabled, minimalDropdownYears = 4 }) => {
|
|
7445
|
-
const [selected, setSelected] = useState(value);
|
|
7446
|
-
const today = new Date();
|
|
7447
|
-
const [newMonth, setNewMonth] = useState(selected || today);
|
|
7448
|
-
const [dropdownOpened, setDropdownOpened] = useState({
|
|
7449
|
-
month: false,
|
|
7450
|
-
year: false
|
|
7451
|
-
});
|
|
7452
|
-
const locales = {
|
|
7453
|
-
fr,
|
|
7454
|
-
enGB,
|
|
7455
|
-
nl,
|
|
7456
|
-
nlBE
|
|
7457
|
-
};
|
|
7458
|
-
const dropdownRef = useRef(null);
|
|
7459
|
-
const popoverRef = useRef(null);
|
|
7460
|
-
const renderLocale = () => {
|
|
7461
|
-
switch (lang) {
|
|
7462
|
-
case "fr-FR": return locales.fr;
|
|
7463
|
-
case "nl-BE": return locales.nlBE;
|
|
7464
|
-
case "nl-NL": return locales.nl;
|
|
7465
|
-
case "en-GB": return locales.enGB;
|
|
7466
|
-
default: return locales.enGB;
|
|
7467
|
-
}
|
|
7468
|
-
};
|
|
7469
|
-
/* istanbul ignore next - relies on dropdown DOM not rendered in tests */
|
|
7470
|
-
const handleClickOutside = (event) => {
|
|
7471
|
-
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) setDropdownOpened({
|
|
7472
|
-
month: false,
|
|
7473
|
-
year: false
|
|
7474
|
-
});
|
|
7475
|
-
};
|
|
7476
|
-
/* istanbul ignore next - environment differences make listener attach hard to test */
|
|
7477
|
-
useEffect(() => {
|
|
7478
|
-
if (dropdownOpened.month || dropdownOpened.year) document.addEventListener("mousedown", handleClickOutside);
|
|
7479
|
-
else document.removeEventListener("mousedown", handleClickOutside);
|
|
7480
|
-
return () => {
|
|
7481
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
7482
|
-
};
|
|
7483
|
-
}, [dropdownOpened]);
|
|
7484
|
-
const handleDayClick = (date) => {
|
|
7485
|
-
/* istanbul ignore next - react-day-picker rarely calls onSelect(undefined) in our configuration */
|
|
7486
|
-
if (!date) return;
|
|
7487
|
-
handleClosePopover();
|
|
7488
|
-
setNewMonth(date);
|
|
7489
|
-
setSelected(date);
|
|
7490
|
-
onChange?.(date);
|
|
7491
|
-
};
|
|
7492
|
-
const isDateSelected = (day) => {
|
|
7493
|
-
/* istanbul ignore next - defensive null guard */
|
|
7494
|
-
if (!selected || !day) return false;
|
|
7495
|
-
const d1 = new Date(day?.date);
|
|
7496
|
-
const d2 = new Date(selected);
|
|
7497
|
-
d1.setHours(0, 0, 0, 0);
|
|
7498
|
-
d2.setHours(0, 0, 0, 0);
|
|
7499
|
-
return d1.getTime() === d2.getTime();
|
|
7500
|
-
};
|
|
7501
|
-
const handleClosePopover = () => {
|
|
7502
|
-
popoverRef.current?.closePopover();
|
|
7503
|
-
};
|
|
7504
|
-
const isDateToday = (day) => {
|
|
7505
|
-
/* istanbul ignore next - defensive null guard */
|
|
7506
|
-
if (!day) return false;
|
|
7507
|
-
const d1 = new Date(day?.date);
|
|
7508
|
-
const d2 = new Date(today);
|
|
7509
|
-
d1.setHours(0, 0, 0, 0);
|
|
7510
|
-
d2.setHours(0, 0, 0, 0);
|
|
7511
|
-
return d1.getTime() === d2.getTime();
|
|
7512
|
-
};
|
|
7513
|
-
return /* @__PURE__ */ jsx(Popover, {
|
|
7514
|
-
style: "minimal",
|
|
7515
|
-
className: "w-full",
|
|
7516
|
-
ref: popoverRef,
|
|
7517
|
-
content: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(DayPicker, {
|
|
7518
|
-
...className && { className },
|
|
7519
|
-
mode: "single",
|
|
7520
|
-
selected,
|
|
7521
|
-
onSelect: handleDayClick,
|
|
7522
|
-
locale: renderLocale(),
|
|
7523
|
-
fixedWeeks: true,
|
|
7524
|
-
endMonth: addMonths(today, 13),
|
|
7525
|
-
captionLayout: "dropdown",
|
|
7526
|
-
onMonthChange: (newMonth$1) => setNewMonth(newMonth$1),
|
|
7527
|
-
showOutsideDays: true,
|
|
7528
|
-
disabled: disabledFrom ? { before: disabledFrom } : disabledUntil ? { after: disabledUntil } : undefined,
|
|
7529
|
-
classNames: {
|
|
7530
|
-
month_grid: "mt-3 max-w-[400px] border-t border-gray-100",
|
|
7531
|
-
month_caption: "text-sm font-bold",
|
|
7532
|
-
dropdowns: "flex items-center w-[190px] gap-1 left-0 justify-center h-8",
|
|
7533
|
-
caption_label: "text-sm font-medium flex items-center justify-center w-[190px]",
|
|
7534
|
-
chevron: "w-4 h-4 z-50",
|
|
7535
|
-
nav: "absolute w-[190px] justify-between flex h-8 items-center",
|
|
7536
|
-
nav_button: "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100 cursor-pointer",
|
|
7537
|
-
nav_button_previous: "absolute left-1",
|
|
7538
|
-
nav_button_next: "absolute right-1",
|
|
7539
|
-
day: "h-8 w-8 p-0 aria-selected:opacity-100 font-normal text-sm",
|
|
7540
|
-
weekdays: "pt-12",
|
|
7541
|
-
weekday: "text-gray-300 text-sm font-normal pt-4 pb-2",
|
|
7542
|
-
day_today: "bg-accent text-accent-foreground",
|
|
7543
|
-
day_outside: "day-outside text-gray-800 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
7544
|
-
day_disabled: "text-gray-800",
|
|
7545
|
-
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
7546
|
-
day_hidden: "invisible"
|
|
7547
|
-
},
|
|
7548
|
-
components: {
|
|
7549
|
-
DayButton: (props) => {
|
|
7550
|
-
const { day,...buttonProps } = props;
|
|
7551
|
-
const { goToMonth } = useDayPicker();
|
|
7552
|
-
return /* @__PURE__ */ jsx("button", {
|
|
7553
|
-
type: "button",
|
|
7554
|
-
...buttonProps,
|
|
7555
|
-
className: clsx("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"),
|
|
7556
|
-
onClick: () => {
|
|
7557
|
-
goToMonth(day.date);
|
|
7558
|
-
handleDayClick(day.date);
|
|
7559
|
-
}
|
|
7560
|
-
});
|
|
7561
|
-
},
|
|
7562
|
-
Dropdown: (props) => {
|
|
7563
|
-
const { goToMonth, months } = useDayPicker();
|
|
7564
|
-
const { className: dropdownClassName } = props;
|
|
7565
|
-
const today$1 = new Date();
|
|
7566
|
-
/* istanbul ignore next - react-day-picker may not pass this className in our test env */
|
|
7567
|
-
if (dropdownClassName === "rdp-months_dropdown") {
|
|
7568
|
-
const selectedYear = newMonth.getFullYear();
|
|
7569
|
-
const selectItems = Array.from({ length: 12 }, (_, i) => {
|
|
7570
|
-
const monthDate = setMonth(new Date(selectedYear, i), i);
|
|
7571
|
-
return {
|
|
7572
|
-
value: i.toString(),
|
|
7573
|
-
label: format(monthDate, "MMMM", { locale: renderLocale() })
|
|
7574
|
-
};
|
|
7575
|
-
});
|
|
7576
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
|
|
7577
|
-
className: "relative",
|
|
7578
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
7579
|
-
className: "cursor-pointer",
|
|
7580
|
-
onClick: () => setDropdownOpened({
|
|
7581
|
-
...dropdownOpened,
|
|
7582
|
-
month: !dropdownOpened.month,
|
|
7583
|
-
year: false
|
|
7584
|
-
}),
|
|
7585
|
-
children: format(newMonth, "MMMM", { locale: renderLocale() })
|
|
7586
|
-
}), dropdownOpened.month && /* @__PURE__ */ jsx("div", {
|
|
7587
|
-
ref: dropdownRef,
|
|
7588
|
-
className: "shadow-dropdown absolute z-70 rounded-md border border-gray-50 bg-white",
|
|
7589
|
-
children: selectItems.map((item) => /* @__PURE__ */ jsx("div", {
|
|
7590
|
-
onClick: () => {
|
|
7591
|
-
const newDate = new Date(selectedYear, parseInt(item.value));
|
|
7592
|
-
goToMonth(newDate);
|
|
7593
|
-
setDropdownOpened({
|
|
7594
|
-
month: false,
|
|
7595
|
-
year: false
|
|
7596
|
-
});
|
|
7597
|
-
},
|
|
7598
|
-
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",
|
|
7599
|
-
children: item.label
|
|
7600
|
-
}, item.value))
|
|
7601
|
-
})]
|
|
7602
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
7603
|
-
variant: "secondary",
|
|
7604
|
-
type: "button",
|
|
7605
|
-
className: "absolute top-4 right-4 z-10 h-8 px-3 text-xs font-normal",
|
|
7606
|
-
onClick: () => {
|
|
7607
|
-
goToMonth(today$1);
|
|
7608
|
-
handleDayClick(today$1);
|
|
7609
|
-
},
|
|
7610
|
-
children: todayText
|
|
7611
|
-
})] });
|
|
7612
|
-
} else if (dropdownClassName === "rdp-years_dropdown") {
|
|
7613
|
-
const earliestYear = new Date().getFullYear() - minimalDropdownYears;
|
|
7614
|
-
const latestYear = new Date().getFullYear() + 1;
|
|
7615
|
-
/* istanbul ignore else - defensive guard will always be truthy */
|
|
7616
|
-
if (earliestYear && latestYear) {
|
|
7617
|
-
const years = Array.from({ length: latestYear - earliestYear + 1 }, (_, i) => earliestYear + i).reverse();
|
|
7618
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
7619
|
-
className: "relative",
|
|
7620
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
7621
|
-
className: "cursor-pointer",
|
|
7622
|
-
onClick: () => setDropdownOpened({
|
|
7623
|
-
...dropdownOpened,
|
|
7624
|
-
year: !dropdownOpened.year,
|
|
7625
|
-
month: false
|
|
7626
|
-
}),
|
|
7627
|
-
children: format(newMonth, "yyyy", { locale: renderLocale() })
|
|
7628
|
-
}), dropdownOpened.year && /* @__PURE__ */ jsx("div", {
|
|
7629
|
-
ref: dropdownRef,
|
|
7630
|
-
className: "shadow-dropdown absolute z-70 rounded-md border border-gray-50 bg-white max-h-64 overflow-y-auto",
|
|
7631
|
-
children: years.map((year) => /* @__PURE__ */ jsx("div", {
|
|
7632
|
-
onClick: () => {
|
|
7633
|
-
const newDate = months?.[0]?.date || new Date();
|
|
7634
|
-
newDate.setFullYear(year);
|
|
7635
|
-
goToMonth(newDate);
|
|
7636
|
-
setDropdownOpened({
|
|
7637
|
-
month: false,
|
|
7638
|
-
year: false
|
|
7639
|
-
});
|
|
7640
|
-
},
|
|
7641
|
-
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",
|
|
7642
|
-
children: year
|
|
7643
|
-
}, year))
|
|
7644
|
-
})]
|
|
7645
|
-
});
|
|
7646
|
-
}
|
|
7647
|
-
}
|
|
7648
|
-
/* istanbul ignore next - fallback path only when react-day-picker passes unknown className */
|
|
7649
|
-
return /* @__PURE__ */ jsx(Fragment$1, {});
|
|
7650
|
-
}
|
|
7651
|
-
}
|
|
7652
|
-
}) }),
|
|
7653
|
-
placement: "bottom-start",
|
|
7654
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
7655
|
-
"data-component": "datePickerInput",
|
|
7656
|
-
className: cn("relative", className),
|
|
7657
|
-
children: [
|
|
7658
|
-
label && /* @__PURE__ */ jsx("label", {
|
|
7659
|
-
className: "mb-2 flex items-center gap-1 text-xs font-medium",
|
|
7660
|
-
children: label
|
|
7661
|
-
}),
|
|
7662
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
7663
|
-
variant: "outline",
|
|
7664
|
-
type: "button",
|
|
7665
|
-
disabled,
|
|
7666
|
-
className: cn(
|
|
7667
|
-
"flex h-10 w-full items-center justify-start bg-gray-50 px-3 text-black",
|
|
7668
|
-
/* istanbul ignore next - cosmetic class toggle */
|
|
7669
|
-
{ "border-red-500 text-red-500": error }
|
|
7670
|
-
),
|
|
7671
|
-
onClick: () => setNewMonth(today),
|
|
7672
|
-
children: [
|
|
7673
|
-
/* @__PURE__ */ jsx("svg", {}),
|
|
7674
|
-
/* @__PURE__ */ jsx("span", {
|
|
7675
|
-
className: "text-sm font-normal text-nowrap text-black",
|
|
7676
|
-
children: selected ? selected.toLocaleDateString() : placeholder
|
|
7677
|
-
}),
|
|
7678
|
-
selected !== undefined && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("span", {
|
|
7679
|
-
className: "cursor-pointer text-sm font-normal text-gray-800",
|
|
7680
|
-
onClick: () => {
|
|
7681
|
-
setSelected(undefined);
|
|
7682
|
-
onChange?.(undefined);
|
|
7683
|
-
},
|
|
7684
|
-
children: /* @__PURE__ */ jsx("svg", {})
|
|
7685
|
-
}) })
|
|
7686
|
-
]
|
|
7687
|
-
}),
|
|
7688
|
-
error && /* @__PURE__ */ jsx("small", {
|
|
7689
|
-
className: "text-xs font-normal text-red-500",
|
|
7690
|
-
children: error
|
|
7691
|
-
})
|
|
7692
|
-
]
|
|
7693
|
-
})
|
|
7694
|
-
});
|
|
7695
|
-
};
|
|
7696
|
-
|
|
7697
|
-
//#endregion
|
|
7698
|
-
//#region src/components/favouriteButton/index.tsx
|
|
7699
|
-
const FavouriteButton = forwardRef((props, ref) => {
|
|
7700
|
-
const { onClick, favourite, iconFilled, iconOutline, favouriteTitle, iconColorSelected = "text-pink", iconColor = "text-gray-800", iconSize, className = "", styleVariant = "transparent", children,...rest } = props;
|
|
7701
|
-
return /* @__PURE__ */ jsx(ActionIcon, {
|
|
7702
|
-
onClick,
|
|
7703
|
-
"data-component": "favouriteButton",
|
|
7704
|
-
title: favouriteTitle || "Favorite",
|
|
7705
|
-
styleVariant,
|
|
7706
|
-
className: `${favourite ? iconColorSelected : iconColor} ${className}`.trim(),
|
|
7707
|
-
iconSize,
|
|
7708
|
-
ref,
|
|
7709
|
-
icon: favourite ? iconFilled ?? /* @__PURE__ */ jsx("svg", {}) : iconOutline ?? /* @__PURE__ */ jsx("svg", {}),
|
|
7710
|
-
...rest,
|
|
7711
|
-
children
|
|
7712
|
-
});
|
|
7713
|
-
});
|
|
7714
|
-
|
|
7715
|
-
//#endregion
|
|
7716
|
-
//#region src/components/unstyledButton/index.tsx
|
|
7717
|
-
const UnstyledButton = forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx("button", {
|
|
7718
|
-
type: "button",
|
|
7719
|
-
"data-component": "unstyledButton",
|
|
7720
|
-
className: cn("appearance-none", className),
|
|
7721
|
-
ref,
|
|
7722
|
-
...props
|
|
7723
|
-
}));
|
|
7724
|
-
UnstyledButton.displayName = "UnstyledButton";
|
|
7725
|
-
|
|
7726
7026
|
//#endregion
|
|
7727
7027
|
//#region src/components/filters/FilterButton.tsx
|
|
7728
7028
|
const FilterButton$1 = ({ onClick, hasFilters, reset, filtersText, resetText }) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -7734,7 +7034,7 @@ const FilterButton$1 = ({ onClick, hasFilters, reset, filtersText, resetText })
|
|
|
7734
7034
|
className: "font-normal md:font-normal",
|
|
7735
7035
|
icon: /* @__PURE__ */ jsx("svg", {}),
|
|
7736
7036
|
children: filtersText
|
|
7737
|
-
}), /* @__PURE__ */ jsx(
|
|
7037
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
7738
7038
|
className: "text-sm font-normal disabled:text-gray-500",
|
|
7739
7039
|
onClick: reset,
|
|
7740
7040
|
disabled: !hasFilters,
|
|
@@ -7804,8 +7104,9 @@ const Filters = ({ filters, setFilters, selectedFilters, selectedFiltersText, fi
|
|
|
7804
7104
|
//#region src/components/hamburgerMenuButton/index.tsx
|
|
7805
7105
|
const HamburgerMenuButton = forwardRef(({ menuState, setMenuState }, ref) => {
|
|
7806
7106
|
const defaultClasses = cn("absolute h-[2px] bg-white duration-150");
|
|
7807
|
-
return /* @__PURE__ */ jsxs(
|
|
7107
|
+
return /* @__PURE__ */ jsxs(Button, {
|
|
7808
7108
|
onClick: setMenuState,
|
|
7109
|
+
variant: "textButton",
|
|
7809
7110
|
className: "relative h-4 w-6",
|
|
7810
7111
|
name: "hamburgerMenuButton",
|
|
7811
7112
|
"data-component": "hamburgerMenuButton",
|
|
@@ -7829,130 +7130,6 @@ const HamburgerMenuButton = forwardRef(({ menuState, setMenuState }, ref) => {
|
|
|
7829
7130
|
});
|
|
7830
7131
|
HamburgerMenuButton.displayName = "HamburgerMenuButton";
|
|
7831
7132
|
|
|
7832
|
-
//#endregion
|
|
7833
|
-
//#region src/components/hr/index.tsx
|
|
7834
|
-
const HR = ({ className }) => /* @__PURE__ */ jsx("hr", {
|
|
7835
|
-
"data-component": "hr",
|
|
7836
|
-
className: `h-px w-full border-none bg-gray-200 ${className}`
|
|
7837
|
-
});
|
|
7838
|
-
HR.displayName = "HR";
|
|
7839
|
-
|
|
7840
|
-
//#endregion
|
|
7841
|
-
//#region src/components/island/index.tsx
|
|
7842
|
-
const Island = ({ children, className, noShadow = false, noPadding = false,...props }) => /* @__PURE__ */ jsx("div", {
|
|
7843
|
-
"data-testid": "island",
|
|
7844
|
-
"data-component": "island",
|
|
7845
|
-
className: cn("relative bg-white px-5 py-5 md:px-10 md:py-9", {
|
|
7846
|
-
"shadow-[0_-0.5rem_2rem_rgba(38,41,92,0.04)]": !noShadow,
|
|
7847
|
-
"drop-shadow-none": noShadow,
|
|
7848
|
-
"md:px-0 md:py-0": noPadding
|
|
7849
|
-
}, className),
|
|
7850
|
-
...props,
|
|
7851
|
-
children
|
|
7852
|
-
});
|
|
7853
|
-
Island.displayName = "Island";
|
|
7854
|
-
|
|
7855
|
-
//#endregion
|
|
7856
|
-
//#region src/components/modal/index.tsx
|
|
7857
|
-
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 }) => {
|
|
7858
|
-
const ref = useRef(null);
|
|
7859
|
-
const refContainer = useRef(null);
|
|
7860
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
7861
|
-
useEffect(() => {
|
|
7862
|
-
setIsOpen(opened);
|
|
7863
|
-
}, [opened]);
|
|
7864
|
-
const handleClose = useCallback(() => {
|
|
7865
|
-
if (uncloseAble) return;
|
|
7866
|
-
if (closeModalWithConfirmation) {
|
|
7867
|
-
if (window.confirm(confirmText)) {
|
|
7868
|
-
setIsOpen(false);
|
|
7869
|
-
onClose();
|
|
7870
|
-
}
|
|
7871
|
-
} else {
|
|
7872
|
-
setIsOpen(false);
|
|
7873
|
-
onClose();
|
|
7874
|
-
}
|
|
7875
|
-
}, [
|
|
7876
|
-
closeModalWithConfirmation,
|
|
7877
|
-
onClose,
|
|
7878
|
-
uncloseAble
|
|
7879
|
-
]);
|
|
7880
|
-
const handleClickOutside = useCallback((event) => {
|
|
7881
|
-
if (refContainer.current && refContainer.current.contains(event.target)) {
|
|
7882
|
-
if (ref.current && !ref.current.contains(event.target)) handleClose();
|
|
7883
|
-
}
|
|
7884
|
-
}, [handleClose]);
|
|
7885
|
-
const handleEscapeKey = useCallback((event) => {
|
|
7886
|
-
if (event.code === "Escape") handleClose();
|
|
7887
|
-
}, [handleClose]);
|
|
7888
|
-
useEffect(() => {
|
|
7889
|
-
if (isOpen) {
|
|
7890
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
7891
|
-
window.addEventListener("keydown", handleEscapeKey);
|
|
7892
|
-
}
|
|
7893
|
-
return () => {
|
|
7894
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
7895
|
-
window.removeEventListener("keydown", handleEscapeKey);
|
|
7896
|
-
};
|
|
7897
|
-
}, [
|
|
7898
|
-
handleClickOutside,
|
|
7899
|
-
handleClose,
|
|
7900
|
-
handleEscapeKey,
|
|
7901
|
-
isOpen,
|
|
7902
|
-
onClose,
|
|
7903
|
-
opened,
|
|
7904
|
-
ref
|
|
7905
|
-
]);
|
|
7906
|
-
if (!isOpen) return null;
|
|
7907
|
-
return createPortal(/* @__PURE__ */ jsxs("div", {
|
|
7908
|
-
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"),
|
|
7909
|
-
"data-testid": dataTestId,
|
|
7910
|
-
"data-component": "modal",
|
|
7911
|
-
ref: refContainer,
|
|
7912
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
7913
|
-
className: "bg-navy-blue/40 fixed top-0 left-0 z-[-1] size-full",
|
|
7914
|
-
"data-testid": "modalBg"
|
|
7915
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
7916
|
-
className: "relative flex w-full justify-center",
|
|
7917
|
-
children: /* @__PURE__ */ jsxs("section", {
|
|
7918
|
-
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),
|
|
7919
|
-
ref,
|
|
7920
|
-
role: "dialog",
|
|
7921
|
-
tabIndex: -1,
|
|
7922
|
-
"aria-modal": isOpen,
|
|
7923
|
-
"aria-label": title,
|
|
7924
|
-
children: [
|
|
7925
|
-
/* @__PURE__ */ jsx("div", {
|
|
7926
|
-
className: "relative z-10 w-full",
|
|
7927
|
-
children: withCloseButton && /* @__PURE__ */ jsx(ActionIcon, {
|
|
7928
|
-
onClick: handleClose,
|
|
7929
|
-
"aria-label": "close modal",
|
|
7930
|
-
className: "absolute top-0 right-0",
|
|
7931
|
-
"data-testid": "close-modal",
|
|
7932
|
-
icon: /* @__PURE__ */ jsx("svg", {}),
|
|
7933
|
-
title: "close Modal"
|
|
7934
|
-
})
|
|
7935
|
-
}),
|
|
7936
|
-
title && /* @__PURE__ */ jsx("div", {
|
|
7937
|
-
className: "relative w-full pt-14",
|
|
7938
|
-
children: /* @__PURE__ */ jsx("h2", {
|
|
7939
|
-
className: "mt-0 mb-8 text-left text-3xl font-bold",
|
|
7940
|
-
children: title
|
|
7941
|
-
})
|
|
7942
|
-
}),
|
|
7943
|
-
/* @__PURE__ */ jsx("div", { children }),
|
|
7944
|
-
gradient && /* @__PURE__ */ jsx("hr", {
|
|
7945
|
-
"data-testid": "modal-gradient",
|
|
7946
|
-
className: "absolute bottom-0 left-0 mt-8 mb-0 h-2! w-full border-none",
|
|
7947
|
-
style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-pink) 100%)" }
|
|
7948
|
-
})
|
|
7949
|
-
]
|
|
7950
|
-
})
|
|
7951
|
-
})]
|
|
7952
|
-
}), document.body);
|
|
7953
|
-
};
|
|
7954
|
-
Modal.displayName = "Modal";
|
|
7955
|
-
|
|
7956
7133
|
//#endregion
|
|
7957
7134
|
//#region src/components/numberField/index.tsx
|
|
7958
7135
|
const NumberField = ({ name, value = 0, max, min = 0, isDisabled, id, className = "", label, error, onChange }) => {
|
|
@@ -8013,17 +7190,6 @@ const NumberField = ({ name, value = 0, max, min = 0, isDisabled, id, className
|
|
|
8013
7190
|
});
|
|
8014
7191
|
};
|
|
8015
7192
|
|
|
8016
|
-
//#endregion
|
|
8017
|
-
//#region src/components/passwordInput/index.tsx
|
|
8018
|
-
const PasswordInput = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(TextInput, {
|
|
8019
|
-
password: true,
|
|
8020
|
-
enablePasswordManagerAutofill: true,
|
|
8021
|
-
type: "password",
|
|
8022
|
-
...props,
|
|
8023
|
-
ref
|
|
8024
|
-
}));
|
|
8025
|
-
PasswordInput.displayName = "PasswordInput";
|
|
8026
|
-
|
|
8027
7193
|
//#endregion
|
|
8028
7194
|
//#region src/components/progressBar/index.tsx
|
|
8029
7195
|
const ProgressBar = ({ value, maxValue = 100, className }) => {
|
|
@@ -8197,195 +7363,91 @@ const ScrollToTop = ({ scrollToTopTitle }) => {
|
|
|
8197
7363
|
onClick: scrollToTop,
|
|
8198
7364
|
"data-tooltip-id": scrollToTopTitle,
|
|
8199
7365
|
"data-tooltip-content": scrollToTopTitle,
|
|
8200
|
-
children:
|
|
7366
|
+
children: "scroll to top"
|
|
8201
7367
|
}) });
|
|
8202
7368
|
};
|
|
8203
7369
|
|
|
8204
7370
|
//#endregion
|
|
8205
|
-
//#region src/components/
|
|
8206
|
-
const
|
|
8207
|
-
|
|
8208
|
-
className: className || "w-full lg:w-auto lg:min-w-[23.75rem]",
|
|
8209
|
-
rightSection: rightSection || /* @__PURE__ */ jsx(Fragment$1, {}),
|
|
8210
|
-
value,
|
|
8211
|
-
onChange,
|
|
8212
|
-
...props
|
|
8213
|
-
});
|
|
8214
|
-
|
|
8215
|
-
//#endregion
|
|
8216
|
-
//#region src/components/select/index.tsx
|
|
8217
|
-
const LANGUAGE_FLAGS = [
|
|
8218
|
-
{
|
|
8219
|
-
value: "nl-NL",
|
|
8220
|
-
altValue: "nl_NL",
|
|
8221
|
-
label: "nl"
|
|
8222
|
-
},
|
|
8223
|
-
{
|
|
8224
|
-
value: "nl-BE",
|
|
8225
|
-
altValue: "nl_BE",
|
|
8226
|
-
label: "be"
|
|
8227
|
-
},
|
|
8228
|
-
{
|
|
8229
|
-
value: "en-GB",
|
|
8230
|
-
altValue: "en_GB",
|
|
8231
|
-
label: "gb"
|
|
8232
|
-
},
|
|
8233
|
-
{
|
|
8234
|
-
value: "fr-FR",
|
|
8235
|
-
altValue: "fr_FR",
|
|
8236
|
-
label: "fr"
|
|
8237
|
-
}
|
|
8238
|
-
];
|
|
8239
|
-
const selectStyles = {
|
|
8240
|
-
singleValue: (provided) => ({
|
|
8241
|
-
...provided,
|
|
8242
|
-
fontSize: "14px"
|
|
8243
|
-
}),
|
|
8244
|
-
placeholder: (provided) => ({
|
|
8245
|
-
...provided,
|
|
8246
|
-
color: "#838383",
|
|
8247
|
-
fontSize: "14px",
|
|
8248
|
-
textWrap: "nowrap"
|
|
8249
|
-
}),
|
|
8250
|
-
dropdownIndicator: (provided) => ({
|
|
8251
|
-
...provided,
|
|
8252
|
-
color: "black"
|
|
8253
|
-
}),
|
|
8254
|
-
option: (base, { isFocused, isSelected }) => ({
|
|
8255
|
-
...base,
|
|
8256
|
-
color: "black",
|
|
8257
|
-
marginLeft: "4px",
|
|
8258
|
-
marginRight: "4px",
|
|
8259
|
-
backgroundColor: isSelected ? "#f8f8f8" : isFocused ? "#f8f8f8" : "transparent",
|
|
8260
|
-
width: "calc(100% - 8px)",
|
|
8261
|
-
cursor: "pointer"
|
|
8262
|
-
}),
|
|
8263
|
-
menuList: (provided) => ({
|
|
8264
|
-
...provided,
|
|
8265
|
-
fontSize: "14px"
|
|
8266
|
-
})
|
|
8267
|
-
};
|
|
8268
|
-
const selectTheme = (theme) => ({
|
|
8269
|
-
...theme,
|
|
8270
|
-
borderRadius: 4,
|
|
8271
|
-
colors: {
|
|
8272
|
-
...theme.colors,
|
|
8273
|
-
primary25: "#f8f8f8",
|
|
8274
|
-
primary: "#f8f8f8"
|
|
8275
|
-
}
|
|
8276
|
-
});
|
|
8277
|
-
const Select = forwardRef(({ options, placeholder, defaultValue, label, id, icon, error, className, labelClassNames, showLangFlags = false, hideErrorText = false, isClearable = true, fullWidth = true, width, isDisabled,...props }, ref) => {
|
|
8278
|
-
const DropdownIndicator = (props$1) => /* @__PURE__ */ jsx(components.DropdownIndicator, {
|
|
8279
|
-
...props$1,
|
|
8280
|
-
children: props$1.hasValue && isClearable ? /* @__PURE__ */ jsx("svg", {
|
|
8281
|
-
"data-testid": "icon-x",
|
|
8282
|
-
className: "cursor-pointer",
|
|
8283
|
-
color: "black",
|
|
8284
|
-
onClick: () => props$1.clearValue()
|
|
8285
|
-
}) : /* @__PURE__ */ jsx("svg", { color: "black" })
|
|
8286
|
-
});
|
|
8287
|
-
const GroupHeading = ({ children }) => /* @__PURE__ */ jsxs("div", {
|
|
8288
|
-
className: "flex items-stretch px-4 py-2 font-normal text-[#838383] capitalize",
|
|
8289
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
8290
|
-
className: "flex-nowrap whitespace-nowrap",
|
|
8291
|
-
children
|
|
8292
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
8293
|
-
className: "ml-2 flex w-full flex-1 items-center justify-center",
|
|
8294
|
-
children: /* @__PURE__ */ jsx("span", { className: "h-px w-full bg-[#838383]" })
|
|
8295
|
-
})]
|
|
8296
|
-
});
|
|
8297
|
-
const LanguageControl = (props$1) => {
|
|
8298
|
-
const getSelectedFlag = () => {
|
|
8299
|
-
const selectValue = props$1.selectProps.value;
|
|
8300
|
-
const findFlag = (value) => LANGUAGE_FLAGS.find((e) => e.value === value || e.altValue === value)?.label || "";
|
|
8301
|
-
if (typeof selectValue === "string") return findFlag(selectValue);
|
|
8302
|
-
if (typeof selectValue === "object" && selectValue !== null && "value" in selectValue) return findFlag(selectValue.value);
|
|
8303
|
-
return null;
|
|
8304
|
-
};
|
|
8305
|
-
const selectedFlag = getSelectedFlag();
|
|
8306
|
-
return /* @__PURE__ */ jsxs(components.Control, {
|
|
8307
|
-
...props$1,
|
|
8308
|
-
children: [selectedFlag && /* @__PURE__ */ jsx("div", {
|
|
8309
|
-
className: "flex h-[39px] items-center border-r border-gray-200 p-3",
|
|
8310
|
-
children: /* @__PURE__ */ jsx("img", {
|
|
8311
|
-
src: `/images/countries/${selectedFlag.toUpperCase()}_flag.svg`,
|
|
8312
|
-
alt: "",
|
|
8313
|
-
width: 24,
|
|
8314
|
-
height: 24
|
|
8315
|
-
})
|
|
8316
|
-
}), props$1.children]
|
|
8317
|
-
});
|
|
8318
|
-
};
|
|
8319
|
-
const NoOptionsMessage = (props$1) => /* @__PURE__ */ jsx(components.NoOptionsMessage, {
|
|
8320
|
-
...props$1,
|
|
8321
|
-
children: "noOptionsMessage"
|
|
8322
|
-
});
|
|
8323
|
-
const SingleValue = (props$1) => /* @__PURE__ */ jsx(components.SingleValue, {
|
|
8324
|
-
...props$1,
|
|
8325
|
-
children: /* @__PURE__ */ jsxs("span", {
|
|
8326
|
-
className: "flex items-center",
|
|
8327
|
-
children: [icon && icon, /* @__PURE__ */ jsx("span", {
|
|
8328
|
-
className: "mx-2",
|
|
8329
|
-
children: props$1.children
|
|
8330
|
-
})]
|
|
8331
|
-
})
|
|
8332
|
-
});
|
|
7371
|
+
//#region src/components/textInput/index.tsx
|
|
7372
|
+
const TextInput = React.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) => {
|
|
7373
|
+
const [showPassword, setShowPassword] = React.useState(false);
|
|
8333
7374
|
return /* @__PURE__ */ jsxs("div", {
|
|
8334
|
-
"data-component": "
|
|
8335
|
-
"data-testid": "
|
|
8336
|
-
|
|
8337
|
-
className: clsx("m-0 grid gap-2 p-0", width ? width : fullWidth && "w-full", className),
|
|
7375
|
+
"data-component": "TextInput",
|
|
7376
|
+
"data-testid": "TextInput",
|
|
7377
|
+
className: clsx("relative", wrapperClassName),
|
|
8338
7378
|
children: [
|
|
8339
|
-
label
|
|
8340
|
-
|
|
7379
|
+
typeof label === "string" ? /* @__PURE__ */ jsx("label", {
|
|
7380
|
+
htmlFor: props["id"],
|
|
7381
|
+
className: "mb-2 flex items-center gap-1 text-xs font-medium text-black",
|
|
8341
7382
|
children: label
|
|
8342
|
-
}),
|
|
8343
|
-
/* @__PURE__ */
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
7383
|
+
}) : label,
|
|
7384
|
+
/* @__PURE__ */ jsxs("div", {
|
|
7385
|
+
className: "relative",
|
|
7386
|
+
children: [
|
|
7387
|
+
leftSection && /* @__PURE__ */ jsx("div", {
|
|
7388
|
+
className: clsx("absolute top-0 left-0 flex h-10 w-12 content-center items-center justify-center align-middle text-sm font-medium text-black"),
|
|
7389
|
+
children: leftSection
|
|
7390
|
+
}),
|
|
7391
|
+
/* @__PURE__ */ jsx("input", {
|
|
7392
|
+
onBlur,
|
|
7393
|
+
onKeyDown,
|
|
7394
|
+
autoComplete,
|
|
7395
|
+
min,
|
|
7396
|
+
max,
|
|
7397
|
+
autoFocus,
|
|
7398
|
+
disabled,
|
|
7399
|
+
step,
|
|
7400
|
+
maxLength,
|
|
7401
|
+
className: clsx(`${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),
|
|
7402
|
+
"aria-busy": loadingState || undefined,
|
|
7403
|
+
"data-lpignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
7404
|
+
"data-1p-ignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
7405
|
+
ref,
|
|
7406
|
+
...props,
|
|
7407
|
+
type: password ? showPassword ? "text" : "password" : "text"
|
|
8363
7408
|
}),
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
7409
|
+
loadingState ? /* @__PURE__ */ jsx("div", {
|
|
7410
|
+
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",
|
|
7411
|
+
children: /* @__PURE__ */ jsx(IconAlert, {
|
|
7412
|
+
className: "h-4 w-4 animate-spin text-gray-500",
|
|
7413
|
+
"aria-label": "Loading"
|
|
7414
|
+
})
|
|
7415
|
+
}) : rightSection && showRightSection && /* @__PURE__ */ jsx("div", {
|
|
7416
|
+
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",
|
|
7417
|
+
children: rightSection
|
|
7418
|
+
}),
|
|
7419
|
+
password && /* @__PURE__ */ jsx("div", {
|
|
7420
|
+
className: "absolute inset-y-0 right-4 flex content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
7421
|
+
children: showPassword ? /* @__PURE__ */ jsx("svg", {
|
|
7422
|
+
"data-testid": "password-visibility-toggle",
|
|
7423
|
+
className: "cursor-pointer text-gray-500",
|
|
7424
|
+
onClick: () => setShowPassword(false)
|
|
7425
|
+
}) : /* @__PURE__ */ jsx("svg", {
|
|
7426
|
+
"data-testid": "password-visibility-toggle",
|
|
7427
|
+
className: "cursor-pointer text-gray-500",
|
|
7428
|
+
onClick: () => setShowPassword(true)
|
|
7429
|
+
})
|
|
8367
7430
|
})
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
DropdownIndicator,
|
|
8373
|
-
GroupHeading,
|
|
8374
|
-
Control: showLangFlags ? LanguageControl : components.Control,
|
|
8375
|
-
SingleValue,
|
|
8376
|
-
NoOptionsMessage
|
|
8377
|
-
},
|
|
8378
|
-
...props
|
|
8379
|
-
}, id),
|
|
8380
|
-
!hideErrorText && error && /* @__PURE__ */ jsx("small", {
|
|
8381
|
-
className: "text-xs font-normal text-red-500",
|
|
8382
|
-
role: "alert",
|
|
7431
|
+
]
|
|
7432
|
+
}),
|
|
7433
|
+
error && /* @__PURE__ */ jsx("div", {
|
|
7434
|
+
className: "mt-2 text-xs font-normal text-red-500",
|
|
8383
7435
|
children: error
|
|
8384
7436
|
})
|
|
8385
7437
|
]
|
|
8386
7438
|
});
|
|
8387
7439
|
});
|
|
8388
|
-
|
|
7440
|
+
|
|
7441
|
+
//#endregion
|
|
7442
|
+
//#region src/components/searchInput/index.tsx
|
|
7443
|
+
const SearchInput = ({ placeholder, value, onChange, className, rightSection,...props }) => /* @__PURE__ */ jsx(TextInput, {
|
|
7444
|
+
placeholder,
|
|
7445
|
+
className: className || "w-full lg:w-auto lg:min-w-[23.75rem]",
|
|
7446
|
+
rightSection: rightSection || /* @__PURE__ */ jsx(Fragment$1, {}),
|
|
7447
|
+
value,
|
|
7448
|
+
onChange,
|
|
7449
|
+
...props
|
|
7450
|
+
});
|
|
8389
7451
|
|
|
8390
7452
|
//#endregion
|
|
8391
7453
|
//#region src/components/skeleton/index.tsx
|
|
@@ -8395,21 +7457,6 @@ const Skeleton = ({ className, "data-testid": dataTestId }) => /* @__PURE__ */ j
|
|
|
8395
7457
|
className: cn("inline-block rounded-md", "animate-pulse bg-gray-100/50", className)
|
|
8396
7458
|
});
|
|
8397
7459
|
|
|
8398
|
-
//#endregion
|
|
8399
|
-
//#region src/components/skillPill/index.tsx
|
|
8400
|
-
const SkillPill = ({ name, number }) => /* @__PURE__ */ jsxs("div", {
|
|
8401
|
-
"data-testid": "skill-pill-container",
|
|
8402
|
-
className: "flex items-center rounded-full border border-gray-200 p-[3px]",
|
|
8403
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
8404
|
-
className: "pr-4 pl-3",
|
|
8405
|
-
children: name
|
|
8406
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
8407
|
-
"data-testid": "skill-pill-number",
|
|
8408
|
-
className: "bg-turquoise-200 grid h-[30px] min-w-[30px] place-content-center rounded-full px-2.5",
|
|
8409
|
-
children: number
|
|
8410
|
-
})]
|
|
8411
|
-
});
|
|
8412
|
-
|
|
8413
7460
|
//#endregion
|
|
8414
7461
|
//#region src/components/stickyMobileButton/index.tsx
|
|
8415
7462
|
const StickyMobileButtonWrapper = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
@@ -8482,99 +7529,6 @@ function TableRow({ children, className, header,...props }) {
|
|
|
8482
7529
|
});
|
|
8483
7530
|
}
|
|
8484
7531
|
|
|
8485
|
-
//#endregion
|
|
8486
|
-
//#region src/components/tabs/Tab.tsx
|
|
8487
|
-
const Tab = forwardRef(({ tabId, activeTab, tabContent, clickFnc, rightSection }, ref) => /* @__PURE__ */ jsxs("button", {
|
|
8488
|
-
ref,
|
|
8489
|
-
"data-testid": `tab-${tabId}`,
|
|
8490
|
-
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`,
|
|
8491
|
-
onClick: () => clickFnc(tabId),
|
|
8492
|
-
children: [tabContent, rightSection && /* @__PURE__ */ jsx("span", {
|
|
8493
|
-
className: "ml-2 inline-flex",
|
|
8494
|
-
children: rightSection
|
|
8495
|
-
})]
|
|
8496
|
-
}));
|
|
8497
|
-
|
|
8498
|
-
//#endregion
|
|
8499
|
-
//#region src/components/tabs/TabsBadge.tsx
|
|
8500
|
-
const TabsBadge = ({ children }) => {
|
|
8501
|
-
const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
|
|
8502
|
-
return /* @__PURE__ */ jsx("div", {
|
|
8503
|
-
"data-testid": "tabs-badge",
|
|
8504
|
-
className: clsx("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
|
|
8505
|
-
"w-5 text-center": isCircular,
|
|
8506
|
-
"px-2": !isCircular
|
|
8507
|
-
}),
|
|
8508
|
-
children
|
|
8509
|
-
});
|
|
8510
|
-
};
|
|
8511
|
-
TabsBadge.displayName = "TabsBadge";
|
|
8512
|
-
|
|
8513
|
-
//#endregion
|
|
8514
|
-
//#region src/components/tabs/TabsWrapper.tsx
|
|
8515
|
-
const TabsWrapper = ({ setActiveTab, activeTab, tabs }) => {
|
|
8516
|
-
const tabRefs = useMemo(() => {
|
|
8517
|
-
const refs = {};
|
|
8518
|
-
tabs?.forEach((tab) => {
|
|
8519
|
-
refs[tab.value] = createRef();
|
|
8520
|
-
});
|
|
8521
|
-
return refs;
|
|
8522
|
-
}, [tabs]);
|
|
8523
|
-
const [underlineStyle, setUnderlineStyle] = useState({
|
|
8524
|
-
width: 0,
|
|
8525
|
-
left: 0
|
|
8526
|
-
});
|
|
8527
|
-
useEffect(() => {
|
|
8528
|
-
if (activeTab && tabRefs[activeTab]?.current) {
|
|
8529
|
-
const activeTabElement = tabRefs[activeTab].current;
|
|
8530
|
-
setUnderlineStyle({
|
|
8531
|
-
width: activeTabElement?.offsetWidth || 0,
|
|
8532
|
-
left: activeTabElement?.offsetLeft || 0
|
|
8533
|
-
});
|
|
8534
|
-
}
|
|
8535
|
-
}, [activeTab, tabRefs]);
|
|
8536
|
-
return /* @__PURE__ */ jsx("div", {
|
|
8537
|
-
className: "w-full",
|
|
8538
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
8539
|
-
className: "relative inline-block w-auto border-b-[3px] border-gray-200",
|
|
8540
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
8541
|
-
className: "flex",
|
|
8542
|
-
children: tabs && tabs?.map((tab) => tab.requiredPermissions ? /* @__PURE__ */ jsx(TabContent, {
|
|
8543
|
-
tab,
|
|
8544
|
-
ref: tabRefs[tab.value],
|
|
8545
|
-
setActiveTab,
|
|
8546
|
-
activeTab
|
|
8547
|
-
}, tab.value) : /* @__PURE__ */ jsx(TabContent, {
|
|
8548
|
-
tab,
|
|
8549
|
-
ref: tabRefs[tab.value],
|
|
8550
|
-
setActiveTab,
|
|
8551
|
-
activeTab
|
|
8552
|
-
}, tab.value))
|
|
8553
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
8554
|
-
className: "absolute h-[3px] bg-gray-900 transition-all duration-300",
|
|
8555
|
-
style: {
|
|
8556
|
-
width: underlineStyle.width,
|
|
8557
|
-
left: underlineStyle.left,
|
|
8558
|
-
bottom: "-3px"
|
|
8559
|
-
}
|
|
8560
|
-
})]
|
|
8561
|
-
})
|
|
8562
|
-
});
|
|
8563
|
-
};
|
|
8564
|
-
const TabContent = forwardRef(({ tab, setActiveTab, activeTab }, ref) => /* @__PURE__ */ jsx(Tab, {
|
|
8565
|
-
ref,
|
|
8566
|
-
tabId: tab.value,
|
|
8567
|
-
setActiveTab,
|
|
8568
|
-
activeTab: activeTab === tab.value,
|
|
8569
|
-
tabContent: tab.name,
|
|
8570
|
-
rightSection: tab?.rightSection || undefined,
|
|
8571
|
-
clickFnc: () => {
|
|
8572
|
-
tab.clickFnc(tab.value);
|
|
8573
|
-
setActiveTab(tab.value);
|
|
8574
|
-
}
|
|
8575
|
-
}));
|
|
8576
|
-
TabContent.displayName = "TabContent";
|
|
8577
|
-
|
|
8578
7532
|
//#endregion
|
|
8579
7533
|
//#region src/components/textArea/index.tsx
|
|
8580
7534
|
const Textarea = forwardRef(({ className, label, error, rows = 8,...props }, ref) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -8780,14 +7734,15 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
|
|
|
8780
7734
|
ref: menuRef,
|
|
8781
7735
|
"data-context-menu-id": metaTitle,
|
|
8782
7736
|
"data-context-menu-content": metaTitle,
|
|
8783
|
-
children: [/* @__PURE__ */ jsxs(
|
|
7737
|
+
children: [/* @__PURE__ */ jsxs(Button, {
|
|
8784
7738
|
ref: buttonRef,
|
|
8785
7739
|
id: buttonId,
|
|
8786
7740
|
"aria-label": "Toggle profile menu",
|
|
8787
7741
|
"aria-expanded": isOpen,
|
|
8788
7742
|
"aria-haspopup": "menu",
|
|
8789
7743
|
"aria-controls": isOpen ? menuId : undefined,
|
|
8790
|
-
|
|
7744
|
+
variant: "secondary",
|
|
7745
|
+
className: cn(defaultStyling, classNames?.button),
|
|
8791
7746
|
disabled,
|
|
8792
7747
|
onClick: handleToggle,
|
|
8793
7748
|
children: [title && /* @__PURE__ */ jsx("span", {
|
|
@@ -8801,13 +7756,14 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
|
|
|
8801
7756
|
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),
|
|
8802
7757
|
children: content.map(
|
|
8803
7758
|
/* istanbul ignore next - render callback not meaningful for unit coverage */
|
|
8804
|
-
(c, index) => /* @__PURE__ */ jsx(
|
|
7759
|
+
(c, index) => /* @__PURE__ */ jsx(Button, {
|
|
8805
7760
|
ref: (el) => {
|
|
8806
7761
|
menuItemRefs.current[index] = el;
|
|
8807
7762
|
},
|
|
8808
7763
|
role: "menuitem",
|
|
8809
7764
|
tabIndex: -1,
|
|
8810
7765
|
onClick: () => handleItemClick(c.onClick),
|
|
7766
|
+
variant: "unstyled",
|
|
8811
7767
|
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"),
|
|
8812
7768
|
"aria-label": c.title,
|
|
8813
7769
|
disabled: c.disabled,
|
|
@@ -9196,7 +8152,7 @@ const Calendar = ({ className, month, year = 2026,...props }) => {
|
|
|
9196
8152
|
/* @__PURE__ */ jsx("div", {
|
|
9197
8153
|
className: "flex items-center justify-center gap-4 mb-3",
|
|
9198
8154
|
children: /* @__PURE__ */ jsx("div", {
|
|
9199
|
-
className: "text-
|
|
8155
|
+
className: "text-base text-secondary font-bold whitespace-nowrap capitalize",
|
|
9200
8156
|
children: firstOfMonth.toLocaleDateString("nl-NL", {
|
|
9201
8157
|
month: "long",
|
|
9202
8158
|
year: "numeric"
|
|
@@ -10499,10 +9455,10 @@ const GiftCard = ({ className, amount, amountTotal, cardNumber, validUntilDate,.
|
|
|
10499
9455
|
children: [
|
|
10500
9456
|
/* @__PURE__ */ jsx("span", {
|
|
10501
9457
|
className: "font-bold gift-card-amount",
|
|
10502
|
-
children: setCurrencyValue(amount || "0")
|
|
9458
|
+
children: setCurrencyValue(String(amount || "0"))
|
|
10503
9459
|
}),
|
|
10504
9460
|
" / ",
|
|
10505
|
-
setCurrencyValue(amountTotal || "0", false)
|
|
9461
|
+
setCurrencyValue(String(amountTotal || "0"), false)
|
|
10506
9462
|
]
|
|
10507
9463
|
}),
|
|
10508
9464
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -11547,5 +10503,5 @@ const RangeSlider = forwardRef(function RangeSlider$1({ className, min = 0, max
|
|
|
11547
10503
|
RangeSlider.displayName = "RangeSlider";
|
|
11548
10504
|
|
|
11549
10505
|
//#endregion
|
|
11550
|
-
export { Accordion,
|
|
10506
|
+
export { Accordion, BlogWidget, BrandProvider, BrandTopMenu, Button, CSS_VARIABLE_KEYS, Calendar, CategoryFilter, Chatbot, Checkbox, Collection, CounterIcon, Coupon, Divider, Dropdown, FilterButton, Filters, FlightSwitch, Footer, GiftCard, HamburgerMenuButton, Header, Hero, HotelAccomodationResults, HotelWidget, IconAlert, IconArrival, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconBeach, IconBed, IconBlog, IconBus, IconCalendar, IconCancel, IconCar, IconCarSun, IconCheck, IconChevronRight, IconCity, IconClock, IconCocktail, IconDelete, IconDeparture, IconDollar, IconEdit, IconExpand, IconFacebook, IconFavorite, IconFilter, IconFood, IconHeart, IconHeartFilled, IconHot, IconHotel, IconHouse, IconIce, IconInfo, IconInstagram, IconLuggage, IconMail, IconMap, IconMinus, IconParty, IconPhone, IconPhoto, IconPinterest, IconPlane, IconPlus, IconPresent, IconQuestion, IconRating, IconSearch, IconSeat, IconShare, IconSplash, IconStar, IconSuccess, IconSun, IconSupport, IconTemperature, IconTiktok, IconTransfer, IconTree, IconTwitter, IconUser, IconView, IconWarning, IconWatched, IconWhatsapp, IconWinterSport, IconWinterSun, Label, LinkBox, Loading, Logo, Map, MatrixTable, Menu, MiddleNavigation, Nominations, NumberField, PageNavigation, PageRating, PhoneNumberInput, PhotoCardsRotated, PriceBox, PriceCheck, ProfileMenu, ProgressBar, PvPopup, QuantityButtons, RadioButton, RangeSlider, Rating, RegionSelector, ResultPageFilterBox, Review, ReviewSmall, Reviews, ScrollToTop, SearchBlock, SearchBox, SearchBoxResults, SearchInput, Skeleton, Slider, Spotlights, Stepper, StickyFooter, StickyMobileButtonWrapper, Table, TableCell, TableHeader, TableHeaderItem, TableHeaderRow, TableRow, TextInput, Textarea, TimeInput, Toggle, TopHeaderMenu, TopMenu, TransportToggle, TruncatedText, UnorderedList, UnorderedListItem, Usp, ViewedAccomodations, WarningText, Weather, buttonVariants, getCSSVariable, setCSSVariable, useBrand, withPvUi };
|
|
11551
10507
|
//# sourceMappingURL=index.js.map
|