@prijsvrijtechsupport/ui 0.0.47 → 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/index.cjs +81 -1136
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +85 -1121
- 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} +0 -19
- package/package.json +1 -1
- 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/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 → 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 → src/components}/filterButton/filterButton.test.d.ts +0 -0
- /package/dist/{components → 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;
|
|
@@ -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,122 +7130,6 @@ const HamburgerMenuButton = forwardRef(({ menuState, setMenuState }, ref) => {
|
|
|
7829
7130
|
});
|
|
7830
7131
|
HamburgerMenuButton.displayName = "HamburgerMenuButton";
|
|
7831
7132
|
|
|
7832
|
-
//#endregion
|
|
7833
|
-
//#region src/components/island/index.tsx
|
|
7834
|
-
const Island = ({ children, className, noShadow = false, noPadding = false,...props }) => /* @__PURE__ */ jsx("div", {
|
|
7835
|
-
"data-testid": "island",
|
|
7836
|
-
"data-component": "island",
|
|
7837
|
-
className: cn("relative bg-white px-5 py-5 md:px-10 md:py-9", {
|
|
7838
|
-
"shadow-[0_-0.5rem_2rem_rgba(38,41,92,0.04)]": !noShadow,
|
|
7839
|
-
"drop-shadow-none": noShadow,
|
|
7840
|
-
"md:px-0 md:py-0": noPadding
|
|
7841
|
-
}, className),
|
|
7842
|
-
...props,
|
|
7843
|
-
children
|
|
7844
|
-
});
|
|
7845
|
-
Island.displayName = "Island";
|
|
7846
|
-
|
|
7847
|
-
//#endregion
|
|
7848
|
-
//#region src/components/modal/index.tsx
|
|
7849
|
-
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 }) => {
|
|
7850
|
-
const ref = useRef(null);
|
|
7851
|
-
const refContainer = useRef(null);
|
|
7852
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
7853
|
-
useEffect(() => {
|
|
7854
|
-
setIsOpen(opened);
|
|
7855
|
-
}, [opened]);
|
|
7856
|
-
const handleClose = useCallback(() => {
|
|
7857
|
-
if (uncloseAble) return;
|
|
7858
|
-
if (closeModalWithConfirmation) {
|
|
7859
|
-
if (window.confirm(confirmText)) {
|
|
7860
|
-
setIsOpen(false);
|
|
7861
|
-
onClose();
|
|
7862
|
-
}
|
|
7863
|
-
} else {
|
|
7864
|
-
setIsOpen(false);
|
|
7865
|
-
onClose();
|
|
7866
|
-
}
|
|
7867
|
-
}, [
|
|
7868
|
-
closeModalWithConfirmation,
|
|
7869
|
-
onClose,
|
|
7870
|
-
uncloseAble
|
|
7871
|
-
]);
|
|
7872
|
-
const handleClickOutside = useCallback((event) => {
|
|
7873
|
-
if (refContainer.current && refContainer.current.contains(event.target)) {
|
|
7874
|
-
if (ref.current && !ref.current.contains(event.target)) handleClose();
|
|
7875
|
-
}
|
|
7876
|
-
}, [handleClose]);
|
|
7877
|
-
const handleEscapeKey = useCallback((event) => {
|
|
7878
|
-
if (event.code === "Escape") handleClose();
|
|
7879
|
-
}, [handleClose]);
|
|
7880
|
-
useEffect(() => {
|
|
7881
|
-
if (isOpen) {
|
|
7882
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
7883
|
-
window.addEventListener("keydown", handleEscapeKey);
|
|
7884
|
-
}
|
|
7885
|
-
return () => {
|
|
7886
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
7887
|
-
window.removeEventListener("keydown", handleEscapeKey);
|
|
7888
|
-
};
|
|
7889
|
-
}, [
|
|
7890
|
-
handleClickOutside,
|
|
7891
|
-
handleClose,
|
|
7892
|
-
handleEscapeKey,
|
|
7893
|
-
isOpen,
|
|
7894
|
-
onClose,
|
|
7895
|
-
opened,
|
|
7896
|
-
ref
|
|
7897
|
-
]);
|
|
7898
|
-
if (!isOpen) return null;
|
|
7899
|
-
return createPortal(/* @__PURE__ */ jsxs("div", {
|
|
7900
|
-
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"),
|
|
7901
|
-
"data-testid": dataTestId,
|
|
7902
|
-
"data-component": "modal",
|
|
7903
|
-
ref: refContainer,
|
|
7904
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
7905
|
-
className: "bg-navy-blue/40 fixed top-0 left-0 z-[-1] size-full",
|
|
7906
|
-
"data-testid": "modalBg"
|
|
7907
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
7908
|
-
className: "relative flex w-full justify-center",
|
|
7909
|
-
children: /* @__PURE__ */ jsxs("section", {
|
|
7910
|
-
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),
|
|
7911
|
-
ref,
|
|
7912
|
-
role: "dialog",
|
|
7913
|
-
tabIndex: -1,
|
|
7914
|
-
"aria-modal": isOpen,
|
|
7915
|
-
"aria-label": title,
|
|
7916
|
-
children: [
|
|
7917
|
-
/* @__PURE__ */ jsx("div", {
|
|
7918
|
-
className: "relative z-10 w-full",
|
|
7919
|
-
children: withCloseButton && /* @__PURE__ */ jsx(ActionIcon, {
|
|
7920
|
-
onClick: handleClose,
|
|
7921
|
-
"aria-label": "close modal",
|
|
7922
|
-
className: "absolute top-0 right-0",
|
|
7923
|
-
"data-testid": "close-modal",
|
|
7924
|
-
icon: /* @__PURE__ */ jsx("svg", {}),
|
|
7925
|
-
title: "close Modal"
|
|
7926
|
-
})
|
|
7927
|
-
}),
|
|
7928
|
-
title && /* @__PURE__ */ jsx("div", {
|
|
7929
|
-
className: "relative w-full pt-14",
|
|
7930
|
-
children: /* @__PURE__ */ jsx("h2", {
|
|
7931
|
-
className: "mt-0 mb-8 text-left text-3xl font-bold",
|
|
7932
|
-
children: title
|
|
7933
|
-
})
|
|
7934
|
-
}),
|
|
7935
|
-
/* @__PURE__ */ jsx("div", { children }),
|
|
7936
|
-
gradient && /* @__PURE__ */ jsx("hr", {
|
|
7937
|
-
"data-testid": "modal-gradient",
|
|
7938
|
-
className: "absolute bottom-0 left-0 mt-8 mb-0 h-2! w-full border-none",
|
|
7939
|
-
style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-pink) 100%)" }
|
|
7940
|
-
})
|
|
7941
|
-
]
|
|
7942
|
-
})
|
|
7943
|
-
})]
|
|
7944
|
-
}), document.body);
|
|
7945
|
-
};
|
|
7946
|
-
Modal.displayName = "Modal";
|
|
7947
|
-
|
|
7948
7133
|
//#endregion
|
|
7949
7134
|
//#region src/components/numberField/index.tsx
|
|
7950
7135
|
const NumberField = ({ name, value = 0, max, min = 0, isDisabled, id, className = "", label, error, onChange }) => {
|
|
@@ -8005,17 +7190,6 @@ const NumberField = ({ name, value = 0, max, min = 0, isDisabled, id, className
|
|
|
8005
7190
|
});
|
|
8006
7191
|
};
|
|
8007
7192
|
|
|
8008
|
-
//#endregion
|
|
8009
|
-
//#region src/components/passwordInput/index.tsx
|
|
8010
|
-
const PasswordInput = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(TextInput, {
|
|
8011
|
-
password: true,
|
|
8012
|
-
enablePasswordManagerAutofill: true,
|
|
8013
|
-
type: "password",
|
|
8014
|
-
...props,
|
|
8015
|
-
ref
|
|
8016
|
-
}));
|
|
8017
|
-
PasswordInput.displayName = "PasswordInput";
|
|
8018
|
-
|
|
8019
7193
|
//#endregion
|
|
8020
7194
|
//#region src/components/progressBar/index.tsx
|
|
8021
7195
|
const ProgressBar = ({ value, maxValue = 100, className }) => {
|
|
@@ -8189,195 +7363,91 @@ const ScrollToTop = ({ scrollToTopTitle }) => {
|
|
|
8189
7363
|
onClick: scrollToTop,
|
|
8190
7364
|
"data-tooltip-id": scrollToTopTitle,
|
|
8191
7365
|
"data-tooltip-content": scrollToTopTitle,
|
|
8192
|
-
children:
|
|
7366
|
+
children: "scroll to top"
|
|
8193
7367
|
}) });
|
|
8194
7368
|
};
|
|
8195
7369
|
|
|
8196
7370
|
//#endregion
|
|
8197
|
-
//#region src/components/
|
|
8198
|
-
const
|
|
8199
|
-
|
|
8200
|
-
className: className || "w-full lg:w-auto lg:min-w-[23.75rem]",
|
|
8201
|
-
rightSection: rightSection || /* @__PURE__ */ jsx(Fragment$1, {}),
|
|
8202
|
-
value,
|
|
8203
|
-
onChange,
|
|
8204
|
-
...props
|
|
8205
|
-
});
|
|
8206
|
-
|
|
8207
|
-
//#endregion
|
|
8208
|
-
//#region src/components/select/index.tsx
|
|
8209
|
-
const LANGUAGE_FLAGS = [
|
|
8210
|
-
{
|
|
8211
|
-
value: "nl-NL",
|
|
8212
|
-
altValue: "nl_NL",
|
|
8213
|
-
label: "nl"
|
|
8214
|
-
},
|
|
8215
|
-
{
|
|
8216
|
-
value: "nl-BE",
|
|
8217
|
-
altValue: "nl_BE",
|
|
8218
|
-
label: "be"
|
|
8219
|
-
},
|
|
8220
|
-
{
|
|
8221
|
-
value: "en-GB",
|
|
8222
|
-
altValue: "en_GB",
|
|
8223
|
-
label: "gb"
|
|
8224
|
-
},
|
|
8225
|
-
{
|
|
8226
|
-
value: "fr-FR",
|
|
8227
|
-
altValue: "fr_FR",
|
|
8228
|
-
label: "fr"
|
|
8229
|
-
}
|
|
8230
|
-
];
|
|
8231
|
-
const selectStyles = {
|
|
8232
|
-
singleValue: (provided) => ({
|
|
8233
|
-
...provided,
|
|
8234
|
-
fontSize: "14px"
|
|
8235
|
-
}),
|
|
8236
|
-
placeholder: (provided) => ({
|
|
8237
|
-
...provided,
|
|
8238
|
-
color: "#838383",
|
|
8239
|
-
fontSize: "14px",
|
|
8240
|
-
textWrap: "nowrap"
|
|
8241
|
-
}),
|
|
8242
|
-
dropdownIndicator: (provided) => ({
|
|
8243
|
-
...provided,
|
|
8244
|
-
color: "black"
|
|
8245
|
-
}),
|
|
8246
|
-
option: (base, { isFocused, isSelected }) => ({
|
|
8247
|
-
...base,
|
|
8248
|
-
color: "black",
|
|
8249
|
-
marginLeft: "4px",
|
|
8250
|
-
marginRight: "4px",
|
|
8251
|
-
backgroundColor: isSelected ? "#f8f8f8" : isFocused ? "#f8f8f8" : "transparent",
|
|
8252
|
-
width: "calc(100% - 8px)",
|
|
8253
|
-
cursor: "pointer"
|
|
8254
|
-
}),
|
|
8255
|
-
menuList: (provided) => ({
|
|
8256
|
-
...provided,
|
|
8257
|
-
fontSize: "14px"
|
|
8258
|
-
})
|
|
8259
|
-
};
|
|
8260
|
-
const selectTheme = (theme) => ({
|
|
8261
|
-
...theme,
|
|
8262
|
-
borderRadius: 4,
|
|
8263
|
-
colors: {
|
|
8264
|
-
...theme.colors,
|
|
8265
|
-
primary25: "#f8f8f8",
|
|
8266
|
-
primary: "#f8f8f8"
|
|
8267
|
-
}
|
|
8268
|
-
});
|
|
8269
|
-
const Select = forwardRef(({ options, placeholder, defaultValue, label, id, icon, error, className, labelClassNames, showLangFlags = false, hideErrorText = false, isClearable = true, fullWidth = true, width, isDisabled,...props }, ref) => {
|
|
8270
|
-
const DropdownIndicator = (props$1) => /* @__PURE__ */ jsx(components.DropdownIndicator, {
|
|
8271
|
-
...props$1,
|
|
8272
|
-
children: props$1.hasValue && isClearable ? /* @__PURE__ */ jsx("svg", {
|
|
8273
|
-
"data-testid": "icon-x",
|
|
8274
|
-
className: "cursor-pointer",
|
|
8275
|
-
color: "black",
|
|
8276
|
-
onClick: () => props$1.clearValue()
|
|
8277
|
-
}) : /* @__PURE__ */ jsx("svg", { color: "black" })
|
|
8278
|
-
});
|
|
8279
|
-
const GroupHeading = ({ children }) => /* @__PURE__ */ jsxs("div", {
|
|
8280
|
-
className: "flex items-stretch px-4 py-2 font-normal text-[#838383] capitalize",
|
|
8281
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
8282
|
-
className: "flex-nowrap whitespace-nowrap",
|
|
8283
|
-
children
|
|
8284
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
8285
|
-
className: "ml-2 flex w-full flex-1 items-center justify-center",
|
|
8286
|
-
children: /* @__PURE__ */ jsx("span", { className: "h-px w-full bg-[#838383]" })
|
|
8287
|
-
})]
|
|
8288
|
-
});
|
|
8289
|
-
const LanguageControl = (props$1) => {
|
|
8290
|
-
const getSelectedFlag = () => {
|
|
8291
|
-
const selectValue = props$1.selectProps.value;
|
|
8292
|
-
const findFlag = (value) => LANGUAGE_FLAGS.find((e) => e.value === value || e.altValue === value)?.label || "";
|
|
8293
|
-
if (typeof selectValue === "string") return findFlag(selectValue);
|
|
8294
|
-
if (typeof selectValue === "object" && selectValue !== null && "value" in selectValue) return findFlag(selectValue.value);
|
|
8295
|
-
return null;
|
|
8296
|
-
};
|
|
8297
|
-
const selectedFlag = getSelectedFlag();
|
|
8298
|
-
return /* @__PURE__ */ jsxs(components.Control, {
|
|
8299
|
-
...props$1,
|
|
8300
|
-
children: [selectedFlag && /* @__PURE__ */ jsx("div", {
|
|
8301
|
-
className: "flex h-[39px] items-center border-r border-gray-200 p-3",
|
|
8302
|
-
children: /* @__PURE__ */ jsx("img", {
|
|
8303
|
-
src: `/images/countries/${selectedFlag.toUpperCase()}_flag.svg`,
|
|
8304
|
-
alt: "",
|
|
8305
|
-
width: 24,
|
|
8306
|
-
height: 24
|
|
8307
|
-
})
|
|
8308
|
-
}), props$1.children]
|
|
8309
|
-
});
|
|
8310
|
-
};
|
|
8311
|
-
const NoOptionsMessage = (props$1) => /* @__PURE__ */ jsx(components.NoOptionsMessage, {
|
|
8312
|
-
...props$1,
|
|
8313
|
-
children: "noOptionsMessage"
|
|
8314
|
-
});
|
|
8315
|
-
const SingleValue = (props$1) => /* @__PURE__ */ jsx(components.SingleValue, {
|
|
8316
|
-
...props$1,
|
|
8317
|
-
children: /* @__PURE__ */ jsxs("span", {
|
|
8318
|
-
className: "flex items-center",
|
|
8319
|
-
children: [icon && icon, /* @__PURE__ */ jsx("span", {
|
|
8320
|
-
className: "mx-2",
|
|
8321
|
-
children: props$1.children
|
|
8322
|
-
})]
|
|
8323
|
-
})
|
|
8324
|
-
});
|
|
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);
|
|
8325
7374
|
return /* @__PURE__ */ jsxs("div", {
|
|
8326
|
-
"data-component": "
|
|
8327
|
-
"data-testid": "
|
|
8328
|
-
|
|
8329
|
-
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),
|
|
8330
7378
|
children: [
|
|
8331
|
-
label
|
|
8332
|
-
|
|
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",
|
|
8333
7382
|
children: label
|
|
8334
|
-
}),
|
|
8335
|
-
/* @__PURE__ */
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
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"
|
|
8355
7408
|
}),
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
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
|
+
})
|
|
8359
7430
|
})
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
DropdownIndicator,
|
|
8365
|
-
GroupHeading,
|
|
8366
|
-
Control: showLangFlags ? LanguageControl : components.Control,
|
|
8367
|
-
SingleValue,
|
|
8368
|
-
NoOptionsMessage
|
|
8369
|
-
},
|
|
8370
|
-
...props
|
|
8371
|
-
}, id),
|
|
8372
|
-
!hideErrorText && error && /* @__PURE__ */ jsx("small", {
|
|
8373
|
-
className: "text-xs font-normal text-red-500",
|
|
8374
|
-
role: "alert",
|
|
7431
|
+
]
|
|
7432
|
+
}),
|
|
7433
|
+
error && /* @__PURE__ */ jsx("div", {
|
|
7434
|
+
className: "mt-2 text-xs font-normal text-red-500",
|
|
8375
7435
|
children: error
|
|
8376
7436
|
})
|
|
8377
7437
|
]
|
|
8378
7438
|
});
|
|
8379
7439
|
});
|
|
8380
|
-
|
|
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
|
+
});
|
|
8381
7451
|
|
|
8382
7452
|
//#endregion
|
|
8383
7453
|
//#region src/components/skeleton/index.tsx
|
|
@@ -8387,21 +7457,6 @@ const Skeleton = ({ className, "data-testid": dataTestId }) => /* @__PURE__ */ j
|
|
|
8387
7457
|
className: cn("inline-block rounded-md", "animate-pulse bg-gray-100/50", className)
|
|
8388
7458
|
});
|
|
8389
7459
|
|
|
8390
|
-
//#endregion
|
|
8391
|
-
//#region src/components/skillPill/index.tsx
|
|
8392
|
-
const SkillPill = ({ name, number }) => /* @__PURE__ */ jsxs("div", {
|
|
8393
|
-
"data-testid": "skill-pill-container",
|
|
8394
|
-
className: "flex items-center rounded-full border border-gray-200 p-[3px]",
|
|
8395
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
8396
|
-
className: "pr-4 pl-3",
|
|
8397
|
-
children: name
|
|
8398
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
8399
|
-
"data-testid": "skill-pill-number",
|
|
8400
|
-
className: "bg-turquoise-200 grid h-[30px] min-w-[30px] place-content-center rounded-full px-2.5",
|
|
8401
|
-
children: number
|
|
8402
|
-
})]
|
|
8403
|
-
});
|
|
8404
|
-
|
|
8405
7460
|
//#endregion
|
|
8406
7461
|
//#region src/components/stickyMobileButton/index.tsx
|
|
8407
7462
|
const StickyMobileButtonWrapper = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
@@ -8474,99 +7529,6 @@ function TableRow({ children, className, header,...props }) {
|
|
|
8474
7529
|
});
|
|
8475
7530
|
}
|
|
8476
7531
|
|
|
8477
|
-
//#endregion
|
|
8478
|
-
//#region src/components/tabs/Tab.tsx
|
|
8479
|
-
const Tab = forwardRef(({ tabId, activeTab, tabContent, clickFnc, rightSection }, ref) => /* @__PURE__ */ jsxs("button", {
|
|
8480
|
-
ref,
|
|
8481
|
-
"data-testid": `tab-${tabId}`,
|
|
8482
|
-
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`,
|
|
8483
|
-
onClick: () => clickFnc(tabId),
|
|
8484
|
-
children: [tabContent, rightSection && /* @__PURE__ */ jsx("span", {
|
|
8485
|
-
className: "ml-2 inline-flex",
|
|
8486
|
-
children: rightSection
|
|
8487
|
-
})]
|
|
8488
|
-
}));
|
|
8489
|
-
|
|
8490
|
-
//#endregion
|
|
8491
|
-
//#region src/components/tabs/TabsBadge.tsx
|
|
8492
|
-
const TabsBadge = ({ children }) => {
|
|
8493
|
-
const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
|
|
8494
|
-
return /* @__PURE__ */ jsx("div", {
|
|
8495
|
-
"data-testid": "tabs-badge",
|
|
8496
|
-
className: clsx("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
|
|
8497
|
-
"w-5 text-center": isCircular,
|
|
8498
|
-
"px-2": !isCircular
|
|
8499
|
-
}),
|
|
8500
|
-
children
|
|
8501
|
-
});
|
|
8502
|
-
};
|
|
8503
|
-
TabsBadge.displayName = "TabsBadge";
|
|
8504
|
-
|
|
8505
|
-
//#endregion
|
|
8506
|
-
//#region src/components/tabs/TabsWrapper.tsx
|
|
8507
|
-
const TabsWrapper = ({ setActiveTab, activeTab, tabs }) => {
|
|
8508
|
-
const tabRefs = useMemo(() => {
|
|
8509
|
-
const refs = {};
|
|
8510
|
-
tabs?.forEach((tab) => {
|
|
8511
|
-
refs[tab.value] = createRef();
|
|
8512
|
-
});
|
|
8513
|
-
return refs;
|
|
8514
|
-
}, [tabs]);
|
|
8515
|
-
const [underlineStyle, setUnderlineStyle] = useState({
|
|
8516
|
-
width: 0,
|
|
8517
|
-
left: 0
|
|
8518
|
-
});
|
|
8519
|
-
useEffect(() => {
|
|
8520
|
-
if (activeTab && tabRefs[activeTab]?.current) {
|
|
8521
|
-
const activeTabElement = tabRefs[activeTab].current;
|
|
8522
|
-
setUnderlineStyle({
|
|
8523
|
-
width: activeTabElement?.offsetWidth || 0,
|
|
8524
|
-
left: activeTabElement?.offsetLeft || 0
|
|
8525
|
-
});
|
|
8526
|
-
}
|
|
8527
|
-
}, [activeTab, tabRefs]);
|
|
8528
|
-
return /* @__PURE__ */ jsx("div", {
|
|
8529
|
-
className: "w-full",
|
|
8530
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
8531
|
-
className: "relative inline-block w-auto border-b-[3px] border-gray-200",
|
|
8532
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
8533
|
-
className: "flex",
|
|
8534
|
-
children: tabs && tabs?.map((tab) => tab.requiredPermissions ? /* @__PURE__ */ jsx(TabContent, {
|
|
8535
|
-
tab,
|
|
8536
|
-
ref: tabRefs[tab.value],
|
|
8537
|
-
setActiveTab,
|
|
8538
|
-
activeTab
|
|
8539
|
-
}, tab.value) : /* @__PURE__ */ jsx(TabContent, {
|
|
8540
|
-
tab,
|
|
8541
|
-
ref: tabRefs[tab.value],
|
|
8542
|
-
setActiveTab,
|
|
8543
|
-
activeTab
|
|
8544
|
-
}, tab.value))
|
|
8545
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
8546
|
-
className: "absolute h-[3px] bg-gray-900 transition-all duration-300",
|
|
8547
|
-
style: {
|
|
8548
|
-
width: underlineStyle.width,
|
|
8549
|
-
left: underlineStyle.left,
|
|
8550
|
-
bottom: "-3px"
|
|
8551
|
-
}
|
|
8552
|
-
})]
|
|
8553
|
-
})
|
|
8554
|
-
});
|
|
8555
|
-
};
|
|
8556
|
-
const TabContent = forwardRef(({ tab, setActiveTab, activeTab }, ref) => /* @__PURE__ */ jsx(Tab, {
|
|
8557
|
-
ref,
|
|
8558
|
-
tabId: tab.value,
|
|
8559
|
-
setActiveTab,
|
|
8560
|
-
activeTab: activeTab === tab.value,
|
|
8561
|
-
tabContent: tab.name,
|
|
8562
|
-
rightSection: tab?.rightSection || undefined,
|
|
8563
|
-
clickFnc: () => {
|
|
8564
|
-
tab.clickFnc(tab.value);
|
|
8565
|
-
setActiveTab(tab.value);
|
|
8566
|
-
}
|
|
8567
|
-
}));
|
|
8568
|
-
TabContent.displayName = "TabContent";
|
|
8569
|
-
|
|
8570
7532
|
//#endregion
|
|
8571
7533
|
//#region src/components/textArea/index.tsx
|
|
8572
7534
|
const Textarea = forwardRef(({ className, label, error, rows = 8,...props }, ref) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -8772,14 +7734,15 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
|
|
|
8772
7734
|
ref: menuRef,
|
|
8773
7735
|
"data-context-menu-id": metaTitle,
|
|
8774
7736
|
"data-context-menu-content": metaTitle,
|
|
8775
|
-
children: [/* @__PURE__ */ jsxs(
|
|
7737
|
+
children: [/* @__PURE__ */ jsxs(Button, {
|
|
8776
7738
|
ref: buttonRef,
|
|
8777
7739
|
id: buttonId,
|
|
8778
7740
|
"aria-label": "Toggle profile menu",
|
|
8779
7741
|
"aria-expanded": isOpen,
|
|
8780
7742
|
"aria-haspopup": "menu",
|
|
8781
7743
|
"aria-controls": isOpen ? menuId : undefined,
|
|
8782
|
-
|
|
7744
|
+
variant: "secondary",
|
|
7745
|
+
className: cn(defaultStyling, classNames?.button),
|
|
8783
7746
|
disabled,
|
|
8784
7747
|
onClick: handleToggle,
|
|
8785
7748
|
children: [title && /* @__PURE__ */ jsx("span", {
|
|
@@ -8793,13 +7756,14 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
|
|
|
8793
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),
|
|
8794
7757
|
children: content.map(
|
|
8795
7758
|
/* istanbul ignore next - render callback not meaningful for unit coverage */
|
|
8796
|
-
(c, index) => /* @__PURE__ */ jsx(
|
|
7759
|
+
(c, index) => /* @__PURE__ */ jsx(Button, {
|
|
8797
7760
|
ref: (el) => {
|
|
8798
7761
|
menuItemRefs.current[index] = el;
|
|
8799
7762
|
},
|
|
8800
7763
|
role: "menuitem",
|
|
8801
7764
|
tabIndex: -1,
|
|
8802
7765
|
onClick: () => handleItemClick(c.onClick),
|
|
7766
|
+
variant: "unstyled",
|
|
8803
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"),
|
|
8804
7768
|
"aria-label": c.title,
|
|
8805
7769
|
disabled: c.disabled,
|
|
@@ -10491,10 +9455,10 @@ const GiftCard = ({ className, amount, amountTotal, cardNumber, validUntilDate,.
|
|
|
10491
9455
|
children: [
|
|
10492
9456
|
/* @__PURE__ */ jsx("span", {
|
|
10493
9457
|
className: "font-bold gift-card-amount",
|
|
10494
|
-
children: setCurrencyValue(amount || "0")
|
|
9458
|
+
children: setCurrencyValue(String(amount || "0"))
|
|
10495
9459
|
}),
|
|
10496
9460
|
" / ",
|
|
10497
|
-
setCurrencyValue(amountTotal || "0", false)
|
|
9461
|
+
setCurrencyValue(String(amountTotal || "0"), false)
|
|
10498
9462
|
]
|
|
10499
9463
|
}),
|
|
10500
9464
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -11539,5 +10503,5 @@ const RangeSlider = forwardRef(function RangeSlider$1({ className, min = 0, max
|
|
|
11539
10503
|
RangeSlider.displayName = "RangeSlider";
|
|
11540
10504
|
|
|
11541
10505
|
//#endregion
|
|
11542
|
-
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 };
|
|
11543
10507
|
//# sourceMappingURL=index.js.map
|