@prijsvrijtechsupport/ui 0.0.33 → 0.0.34
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/components/searchBlock/index.d.ts +3 -3
- package/dist/index.cjs +15 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
interface SearchBlockProps {
|
|
2
2
|
"data-testid"?: string;
|
|
3
3
|
className?: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
searchBlockTitle?: string;
|
|
5
|
+
searchBlockForm?: React.ReactNode;
|
|
6
6
|
onClickFn?: () => void;
|
|
7
7
|
}
|
|
8
8
|
interface SearchBlockButtonProps {
|
|
@@ -16,5 +16,5 @@ interface SearchBlockButtonProps {
|
|
|
16
16
|
secondarySelectedValue?: string;
|
|
17
17
|
}
|
|
18
18
|
export declare const SearchBlockButton: ({ className, label, labelOutside, icon, downIcon, onClick, selectedValue, secondarySelectedValue, ...props }: SearchBlockButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare const SearchBlock: ({ className,
|
|
19
|
+
export declare const SearchBlock: ({ className, searchBlockTitle, searchBlockForm, onClickFn, "data-testid": dataTestId, ...props }: SearchBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
package/dist/index.cjs
CHANGED
|
@@ -4756,7 +4756,7 @@ const FooterNavigation = ({ className, showIcon = true, columns = footerNavigati
|
|
|
4756
4756
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
4757
4757
|
className: "max-w-7xl mx-auto",
|
|
4758
4758
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
4759
|
-
className: "grid grid-rows-
|
|
4759
|
+
className: "grid grid-rows-auto sm:grid-cols-8 gap-8",
|
|
4760
4760
|
children: columns.map((column, columnIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
4761
4761
|
className: "col-span-2",
|
|
4762
4762
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
@@ -5130,9 +5130,10 @@ function Slider({ slides, options, plugins, lazyLoad = false, showArrows = true,
|
|
|
5130
5130
|
const src = hasBeenInView ? originalSrc : LAZY_LOAD_PLACEHOLDER_SRC;
|
|
5131
5131
|
return (0, react.cloneElement)(slide, {
|
|
5132
5132
|
src,
|
|
5133
|
-
"data-src": originalSrc
|
|
5133
|
+
"data-src": originalSrc,
|
|
5134
|
+
className: cn(slide.props.className, "h-auto")
|
|
5134
5135
|
});
|
|
5135
|
-
})() : slide
|
|
5136
|
+
})() : (0, react.isValidElement)(slide) ? (0, react.cloneElement)(slide, { className: cn(slide.props.className, "h-auto") }) : slide
|
|
5136
5137
|
}, index))
|
|
5137
5138
|
}), showDots && dotsPlacement === "inside" && scrollSnaps.length > 1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
5138
5139
|
className: "pointer-events-none absolute inset-x-0 bottom-3 z-20 flex items-center justify-center gap-2 rounded-2xl bg-black/40 w-fit mx-auto p-1.5",
|
|
@@ -6877,11 +6878,11 @@ const PriceBox = ({ className, hotel, brand, noBorder = false, noHover = false,
|
|
|
6877
6878
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
6878
6879
|
"data-testid": dataTestId,
|
|
6879
6880
|
"data-component": "price-box",
|
|
6880
|
-
className: (0, clsx.default)("flex flex-col gap-4 md:gap-2 items-start bg-white cursor-pointer rounded-lg md:p-4 h-full justify-between w-full md:w-[222px] md:min-w-[222px] md:max-w-[222px] py-4", noBorder ? "border-transparent" : "border border-transparent md:border-[#ccc]", noHover ? "" : "hover:bg-primary-light-75", className),
|
|
6881
|
+
className: (0, clsx.default)("flex flex-row md:flex-col gap-4 md:gap-2 items-start bg-white cursor-pointer rounded-lg md:p-4 h-full justify-between w-full md:w-[222px] md:min-w-[222px] md:max-w-[222px] py-4", noBorder ? "border-transparent" : "border border-transparent md:border-[#ccc]", noHover ? "" : "hover:bg-primary-light-75", className),
|
|
6881
6882
|
onClick,
|
|
6882
6883
|
children: [
|
|
6883
6884
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
6884
|
-
className: `${brand === "dreizen" && "items-end justify-end w-full"}
|
|
6885
|
+
className: `${brand === "dreizen" && "items-end justify-end w-full"} flex order-3 md:order-1`,
|
|
6885
6886
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PriceCheck, {
|
|
6886
6887
|
price: hotel.Price,
|
|
6887
6888
|
text: hotel.PriceInfo
|
|
@@ -6927,7 +6928,7 @@ const PriceBox = ({ className, hotel, brand, noBorder = false, noHover = false,
|
|
|
6927
6928
|
]
|
|
6928
6929
|
}),
|
|
6929
6930
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
6930
|
-
className: "w-full",
|
|
6931
|
+
className: "w-4/12 md:w-full",
|
|
6931
6932
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
6932
6933
|
variant: brand === "prijsvrij" ? "primaryGlow" : "secondary",
|
|
6933
6934
|
className: "whitespace-nowrap w-full md:w-auto",
|
|
@@ -9895,14 +9896,14 @@ const Hero = ({ className, sliderImages, topRightImage, bottomLeftImage, bottomR
|
|
|
9895
9896
|
className: (0, clsx.default)(className),
|
|
9896
9897
|
...props,
|
|
9897
9898
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9898
|
-
className: "flex flex-row",
|
|
9899
|
+
className: "flex flex-col md:flex-row",
|
|
9899
9900
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9900
|
-
className: "grid aspect-[16/6] grid-cols-3 grid-rows-[2fr_1fr] gap-1",
|
|
9901
|
+
className: "grid md:aspect-[16/6] md:grid-cols-3 md:grid-rows-[2fr_1fr] gap-1",
|
|
9901
9902
|
children: [
|
|
9902
9903
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9903
|
-
className: "col-span-2 row-span-2 overflow-hidden",
|
|
9904
|
+
className: "md:col-span-2 md:row-span-2 overflow-hidden",
|
|
9904
9905
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Slider, {
|
|
9905
|
-
className: "h-full",
|
|
9906
|
+
className: "h-full max-h-[340px] md:h-full",
|
|
9906
9907
|
slides: sliderImages.map((src, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
9907
9908
|
src,
|
|
9908
9909
|
alt: `Hero slide ${index + 1}`,
|
|
@@ -9915,7 +9916,7 @@ const Hero = ({ className, sliderImages, topRightImage, bottomLeftImage, bottomR
|
|
|
9915
9916
|
})
|
|
9916
9917
|
}),
|
|
9917
9918
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9918
|
-
className: "col-span-1 row-span-1 overflow-hidden",
|
|
9919
|
+
className: "hidden md:flex col-span-1 row-span-1 overflow-hidden",
|
|
9919
9920
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
9920
9921
|
src: topRightImage,
|
|
9921
9922
|
alt: "Hero image 1",
|
|
@@ -9923,7 +9924,7 @@ const Hero = ({ className, sliderImages, topRightImage, bottomLeftImage, bottomR
|
|
|
9923
9924
|
})
|
|
9924
9925
|
}),
|
|
9925
9926
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9926
|
-
className: "col-span-1 row-span-1 grid
|
|
9927
|
+
className: "hidden md:grid col-span-1 row-span-1 grid-cols-2 gap-1",
|
|
9927
9928
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9928
9929
|
className: "overflow-hidden",
|
|
9929
9930
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
@@ -11282,7 +11283,7 @@ const SearchBlockButton = ({ className, label, labelOutside, icon, downIcon, onC
|
|
|
11282
11283
|
})]
|
|
11283
11284
|
})] });
|
|
11284
11285
|
};
|
|
11285
|
-
const SearchBlock = ({ className,
|
|
11286
|
+
const SearchBlock = ({ className, searchBlockTitle, searchBlockForm, onClickFn, "data-testid": dataTestId = "book-module",...props }) => {
|
|
11286
11287
|
const brand = useBrand();
|
|
11287
11288
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11288
11289
|
"data-component": "book-module",
|
|
@@ -11294,7 +11295,7 @@ const SearchBlock = ({ className, SearchBlockTitle, SearchBlockForm, onClickFn,
|
|
|
11294
11295
|
children: [
|
|
11295
11296
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
11296
11297
|
className: `${brand === "dreizen" && "mb-2"}`,
|
|
11297
|
-
children:
|
|
11298
|
+
children: searchBlockTitle
|
|
11298
11299
|
}),
|
|
11299
11300
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SearchBlockButton, {
|
|
11300
11301
|
labelOutside: brand === "dreizen",
|