@prijsvrijtechsupport/ui 0.0.44 → 0.0.46
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/blogWidget/styles.css +1 -0
- package/dist/components/calendar/styles.css +11 -0
- package/dist/dist/index.css +18 -0
- package/dist/dist/index.css.map +1 -1
- package/dist/index.cjs +232 -211
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +232 -211
- package/dist/index.js.map +1 -1
- package/dist/styles/utilities.css +1 -0
- package/dist/styles/variables.css +6 -0
- package/dist/utils/storybookIcons.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -53,114 +53,118 @@ var variables_default = {};
|
|
|
53
53
|
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/components/topMenu/styles.css
|
|
56
|
-
var styles_default$
|
|
56
|
+
var styles_default$28 = {};
|
|
57
57
|
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/button/styles.css
|
|
60
|
-
var styles_default$
|
|
60
|
+
var styles_default$27 = {};
|
|
61
61
|
|
|
62
62
|
//#endregion
|
|
63
63
|
//#region src/components/priceCheck/styles.css
|
|
64
|
-
var styles_default$
|
|
64
|
+
var styles_default$26 = {};
|
|
65
65
|
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region src/components/toggle/styles.css
|
|
68
|
-
var styles_default$
|
|
68
|
+
var styles_default$25 = {};
|
|
69
69
|
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region src/components/topHeaderMenu/styles.css
|
|
72
|
-
var styles_default$
|
|
72
|
+
var styles_default$24 = {};
|
|
73
73
|
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region src/components/filterButtons/styles.css
|
|
76
|
-
var styles_default$
|
|
76
|
+
var styles_default$23 = {};
|
|
77
77
|
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region src/components/searchBox/styles.css
|
|
80
|
-
var styles_default$
|
|
80
|
+
var styles_default$22 = {};
|
|
81
81
|
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/components/dropdown/styles.css
|
|
84
|
-
var styles_default$
|
|
84
|
+
var styles_default$21 = {};
|
|
85
85
|
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region src/components/counterIcon/styles.css
|
|
88
|
-
var styles_default$
|
|
88
|
+
var styles_default$20 = {};
|
|
89
89
|
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/components/usp/styles.css
|
|
92
|
-
var styles_default$
|
|
92
|
+
var styles_default$19 = {};
|
|
93
93
|
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region src/components/middleNavigation/styles.css
|
|
96
|
-
var styles_default$
|
|
96
|
+
var styles_default$18 = {};
|
|
97
97
|
|
|
98
98
|
//#endregion
|
|
99
99
|
//#region src/components/menu/styles.css
|
|
100
|
-
var styles_default$
|
|
100
|
+
var styles_default$17 = {};
|
|
101
101
|
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/components/footer/styles.css
|
|
104
|
-
var styles_default$
|
|
104
|
+
var styles_default$16 = {};
|
|
105
105
|
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/components/blogWidget/styles.css
|
|
108
|
-
var styles_default$
|
|
108
|
+
var styles_default$15 = {};
|
|
109
109
|
|
|
110
110
|
//#endregion
|
|
111
111
|
//#region src/components/searchBlock/styles.css
|
|
112
|
-
var styles_default$
|
|
112
|
+
var styles_default$14 = {};
|
|
113
113
|
|
|
114
114
|
//#endregion
|
|
115
115
|
//#region src/components/categoryFilter/styles.css
|
|
116
|
-
var styles_default$
|
|
116
|
+
var styles_default$13 = {};
|
|
117
117
|
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region src/components/collection/styles.css
|
|
120
|
-
var styles_default$
|
|
120
|
+
var styles_default$12 = {};
|
|
121
121
|
|
|
122
122
|
//#endregion
|
|
123
123
|
//#region src/components/review/styles.css
|
|
124
|
-
var styles_default$
|
|
124
|
+
var styles_default$11 = {};
|
|
125
125
|
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region src/components/hotelAccomodationResults/styles.css
|
|
128
|
-
var styles_default$
|
|
128
|
+
var styles_default$10 = {};
|
|
129
129
|
|
|
130
130
|
//#endregion
|
|
131
131
|
//#region src/components/coupon/styles.css
|
|
132
|
-
var styles_default$
|
|
132
|
+
var styles_default$9 = {};
|
|
133
133
|
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/components/giftCard/styles.css
|
|
136
|
-
var styles_default$
|
|
136
|
+
var styles_default$8 = {};
|
|
137
137
|
|
|
138
138
|
//#endregion
|
|
139
139
|
//#region src/components/pvPopup/styles.css
|
|
140
|
-
var styles_default$
|
|
140
|
+
var styles_default$7 = {};
|
|
141
141
|
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region src/components/photoCardsRotated/styles.css
|
|
144
|
-
var styles_default$
|
|
144
|
+
var styles_default$6 = {};
|
|
145
145
|
|
|
146
146
|
//#endregion
|
|
147
147
|
//#region src/components/spotlights/styles.css
|
|
148
|
-
var styles_default$
|
|
148
|
+
var styles_default$5 = {};
|
|
149
149
|
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region src/components/viewedAccomodations/styles.css
|
|
152
|
-
var styles_default$
|
|
152
|
+
var styles_default$4 = {};
|
|
153
153
|
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/components/quantityButtons/styles.css
|
|
156
|
-
var styles_default$
|
|
156
|
+
var styles_default$3 = {};
|
|
157
157
|
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region src/components/matrixTable/styles.css
|
|
160
|
-
var styles_default$
|
|
160
|
+
var styles_default$2 = {};
|
|
161
161
|
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region src/components/pageNavigation/styles.css
|
|
164
|
+
var styles_default$1 = {};
|
|
165
|
+
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/components/calendar/styles.css
|
|
164
168
|
var styles_default = {};
|
|
165
169
|
|
|
166
170
|
//#endregion
|
|
@@ -4136,10 +4140,18 @@ const PageRating = ({ rating, ratingsCount, text, className }) => {
|
|
|
4136
4140
|
if (boxRating > 0) {
|
|
4137
4141
|
if (roundedRating % 1 !== 0) {
|
|
4138
4142
|
const halfColorIndex = Math.floor(roundedRating) * 2 - 1;
|
|
4139
|
-
|
|
4143
|
+
if (halfColorIndex >= 0 && halfColorIndex < RATING_COLORS.length && RATING_COLORS[halfColorIndex]) {
|
|
4144
|
+
ratingColor = RATING_COLORS[halfColorIndex];
|
|
4145
|
+
} else {
|
|
4146
|
+
ratingColor = "#FB3C00";
|
|
4147
|
+
}
|
|
4140
4148
|
} else {
|
|
4141
4149
|
const fullColorIndex = Math.floor(boxRating) * 2 - 2;
|
|
4142
|
-
|
|
4150
|
+
if (fullColorIndex >= 0 && fullColorIndex < RATING_COLORS.length && RATING_COLORS[fullColorIndex]) {
|
|
4151
|
+
ratingColor = RATING_COLORS[fullColorIndex];
|
|
4152
|
+
} else {
|
|
4153
|
+
ratingColor = "#FB3C00";
|
|
4154
|
+
}
|
|
4143
4155
|
}
|
|
4144
4156
|
}
|
|
4145
4157
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -4836,14 +4848,17 @@ const AccordionItem = ({ className, item, isOpen, onToggle,...props }) => {
|
|
|
4836
4848
|
const icon = resolvedIsOpen ? item.iconOpen ?? iconOpenFallback : item.iconClosed ?? iconClosedFallback;
|
|
4837
4849
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
4838
4850
|
"data-component": "pv-accordion",
|
|
4839
|
-
className: (0, clsx.default)(className, "divide-y divide-
|
|
4851
|
+
className: (0, clsx.default)(className, "divide-y divide-[#e0e0e0]"),
|
|
4840
4852
|
...props,
|
|
4841
4853
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
4842
4854
|
type: "button",
|
|
4843
4855
|
className: "flex justify-between w-full py-4 items-center",
|
|
4844
4856
|
"aria-expanded": resolvedIsOpen,
|
|
4845
4857
|
onClick: () => onToggle ? onToggle() : setUncontrolledIsOpen((v) => !v),
|
|
4846
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
4858
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
4859
|
+
className: "text-start",
|
|
4860
|
+
children: item.title
|
|
4861
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
4847
4862
|
className: "w-10 h-10 items-center flex",
|
|
4848
4863
|
children: icon
|
|
4849
4864
|
})]
|
|
@@ -8926,77 +8941,77 @@ const iconOptions = [
|
|
|
8926
8941
|
"IconWinterSport",
|
|
8927
8942
|
"IconWinterSun"
|
|
8928
8943
|
];
|
|
8929
|
-
const getIcon = (iconName) => {
|
|
8944
|
+
const getIcon = (iconName, color) => {
|
|
8930
8945
|
const iconMap$1 = {
|
|
8931
|
-
IconAlert: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconAlert, { className: "w-full h-full" }),
|
|
8932
|
-
IconArrival: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrival, { className: "w-full h-full" }),
|
|
8933
|
-
IconArrowDown: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowDown, { className: "w-full h-full" }),
|
|
8934
|
-
IconArrowLeft: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowLeft, { className: "w-full h-full" }),
|
|
8935
|
-
IconArrowRight: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowRight, { className: "w-full h-full" }),
|
|
8936
|
-
IconArrowUp: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowUp, { className: "w-full h-full" }),
|
|
8937
|
-
IconBeach: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBeach, { className: "w-full h-full" }),
|
|
8938
|
-
IconBed: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBed, { className: "w-full h-full" }),
|
|
8939
|
-
IconBlog: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBlog, { className: "w-full h-full" }),
|
|
8940
|
-
IconBus: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBus, { className: "w-full h-full" }),
|
|
8941
|
-
IconCalendar: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCalendar, { className: "w-full h-full" }),
|
|
8942
|
-
IconCancel: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCancel, { className: "w-full h-full" }),
|
|
8943
|
-
IconCar: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCar, { className: "w-full h-full" }),
|
|
8944
|
-
IconCarSun: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCarSun, { className: "w-full h-full" }),
|
|
8945
|
-
IconCheck: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCheck, { className: "w-full h-full" }),
|
|
8946
|
-
IconChevronRight: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronRight, { className: "w-full h-full" }),
|
|
8947
|
-
IconCity: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCity, { className: "w-full h-full" }),
|
|
8948
|
-
IconClock: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconClock, { className: "w-full h-full" }),
|
|
8949
|
-
IconDelete: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconDelete, { className: "w-full h-full" }),
|
|
8950
|
-
IconDeparture: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconDeparture, { className: "w-full h-full" }),
|
|
8951
|
-
IconDollar: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconDollar, { className: "w-full h-full" }),
|
|
8952
|
-
IconEdit: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconEdit, { className: "w-full h-full" }),
|
|
8953
|
-
IconExpand: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconExpand, { className: "w-full h-full" }),
|
|
8954
|
-
IconFacebook: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFacebook, { className: "w-full h-full" }),
|
|
8955
|
-
IconFavorite: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFavorite, { className: "w-full h-full" }),
|
|
8956
|
-
IconFilter: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFilter, { className: "w-full h-full" }),
|
|
8957
|
-
IconFood: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFood, { className: "w-full h-full" }),
|
|
8958
|
-
IconHeart: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconHeart, { className: "w-full h-full" }),
|
|
8959
|
-
IconHot: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconHot, { className: "w-full h-full" }),
|
|
8960
|
-
IconHotel: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconHotel, { className: "w-full h-full" }),
|
|
8961
|
-
IconHouse: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconHouse, { className: "w-full h-full" }),
|
|
8962
|
-
IconInfo: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconInfo, { className: "w-full h-full" }),
|
|
8963
|
-
IconInstagram: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconInstagram, { className: "w-full h-full" }),
|
|
8964
|
-
IconLuggage: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconLuggage, { className: "w-full h-full" }),
|
|
8965
|
-
IconMail: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconMail, { className: "w-full h-full" }),
|
|
8966
|
-
IconMap: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconMap, { className: "w-full h-full" }),
|
|
8967
|
-
IconMinus: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconMinus, { className: "w-full h-full" }),
|
|
8968
|
-
IconParty: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconParty, { className: "w-full h-full" }),
|
|
8969
|
-
IconPhone: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPhone, { className: "w-full h-full" }),
|
|
8970
|
-
IconPhoto: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPhoto, { className: "w-full h-full" }),
|
|
8971
|
-
IconPinterest: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPinterest, { className: "w-full h-full" }),
|
|
8972
|
-
IconPlane: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPlane, { className: "w-full h-full" }),
|
|
8973
|
-
IconPlus: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPlus, { className: "w-full h-full" }),
|
|
8974
|
-
IconQuestion: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconQuestion, { className: "w-full h-full" }),
|
|
8975
|
-
IconRating: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRating, { className: "w-full h-full" }),
|
|
8976
|
-
IconSearch: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSearch, { className: "w-full h-full" }),
|
|
8977
|
-
IconSeat: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSeat, { className: "w-full h-full" }),
|
|
8978
|
-
IconShare: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconShare, { className: "w-full h-full" }),
|
|
8979
|
-
IconSplash: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSplash, { className: "w-full h-full" }),
|
|
8980
|
-
IconStar: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconStar, { className: "w-full h-full" }),
|
|
8981
|
-
IconSuccess: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSuccess, { className: "w-full h-full" }),
|
|
8982
|
-
IconSun: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSun, { className: "w-full h-full" }),
|
|
8983
|
-
IconSupport: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSupport, { className: "w-full h-full" }),
|
|
8984
|
-
IconTemperature: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTemperature, { className: "w-full h-full" }),
|
|
8985
|
-
IconTiktok: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTiktok, { className: "w-full h-full" }),
|
|
8986
|
-
IconTransfer: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTransfer, { className: "w-full h-full" }),
|
|
8987
|
-
IconTree: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTree, { className: "w-full h-full" }),
|
|
8988
|
-
IconTwitter: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTwitter, { className: "w-full h-full" }),
|
|
8989
|
-
IconUser: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconUser, { className: "w-full h-full" }),
|
|
8990
|
-
IconView: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconView, { className: "w-full h-full" }),
|
|
8991
|
-
IconWarning: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconWarning, { className: "w-full h-full" }),
|
|
8992
|
-
IconWhatsapp: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconWhatsapp, { className: "w-full h-full" }),
|
|
8993
|
-
IconWinterSport: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconWinterSport, { className: "w-full h-full" }),
|
|
8994
|
-
IconWinterSun: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconWinterSun, { className: "w-full h-full" })
|
|
8946
|
+
IconAlert: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconAlert, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8947
|
+
IconArrival: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrival, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8948
|
+
IconArrowDown: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowDown, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8949
|
+
IconArrowLeft: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowLeft, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8950
|
+
IconArrowRight: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowRight, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8951
|
+
IconArrowUp: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowUp, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8952
|
+
IconBeach: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBeach, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8953
|
+
IconBed: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBed, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8954
|
+
IconBlog: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBlog, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8955
|
+
IconBus: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBus, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8956
|
+
IconCalendar: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCalendar, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8957
|
+
IconCancel: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCancel, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8958
|
+
IconCar: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCar, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8959
|
+
IconCarSun: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCarSun, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8960
|
+
IconCheck: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCheck, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8961
|
+
IconChevronRight: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronRight, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8962
|
+
IconCity: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCity, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8963
|
+
IconClock: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconClock, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8964
|
+
IconDelete: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconDelete, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8965
|
+
IconDeparture: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconDeparture, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8966
|
+
IconDollar: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconDollar, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8967
|
+
IconEdit: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconEdit, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8968
|
+
IconExpand: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconExpand, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8969
|
+
IconFacebook: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFacebook, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8970
|
+
IconFavorite: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFavorite, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8971
|
+
IconFilter: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFilter, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8972
|
+
IconFood: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconFood, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8973
|
+
IconHeart: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconHeart, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8974
|
+
IconHot: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconHot, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8975
|
+
IconHotel: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconHotel, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8976
|
+
IconHouse: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconHouse, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8977
|
+
IconInfo: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconInfo, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8978
|
+
IconInstagram: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconInstagram, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8979
|
+
IconLuggage: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconLuggage, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8980
|
+
IconMail: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconMail, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8981
|
+
IconMap: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconMap, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8982
|
+
IconMinus: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconMinus, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8983
|
+
IconParty: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconParty, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8984
|
+
IconPhone: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPhone, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8985
|
+
IconPhoto: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPhoto, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8986
|
+
IconPinterest: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPinterest, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8987
|
+
IconPlane: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPlane, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8988
|
+
IconPlus: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPlus, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8989
|
+
IconQuestion: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconQuestion, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8990
|
+
IconRating: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconRating, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8991
|
+
IconSearch: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSearch, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8992
|
+
IconSeat: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSeat, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8993
|
+
IconShare: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconShare, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8994
|
+
IconSplash: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSplash, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8995
|
+
IconStar: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconStar, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8996
|
+
IconSuccess: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSuccess, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8997
|
+
IconSun: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSun, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8998
|
+
IconSupport: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSupport, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
8999
|
+
IconTemperature: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTemperature, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9000
|
+
IconTiktok: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTiktok, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9001
|
+
IconTransfer: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTransfer, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9002
|
+
IconTree: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTree, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9003
|
+
IconTwitter: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconTwitter, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9004
|
+
IconUser: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconUser, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9005
|
+
IconView: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconView, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9006
|
+
IconWarning: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconWarning, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9007
|
+
IconWhatsapp: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconWhatsapp, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9008
|
+
IconWinterSport: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconWinterSport, { className: (0, clsx.default)("w-full h-full", color) }),
|
|
9009
|
+
IconWinterSun: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconWinterSun, { className: (0, clsx.default)("w-full h-full", color) })
|
|
8995
9010
|
};
|
|
8996
9011
|
const icon = iconMap$1[iconName];
|
|
8997
9012
|
if (!icon) {
|
|
8998
9013
|
console.warn(`Icon "${iconName}" not found, returning fallback`);
|
|
8999
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowDown, { className: "w-full h-full" });
|
|
9014
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowDown, { className: (0, clsx.default)("w-full h-full", color) });
|
|
9000
9015
|
}
|
|
9001
9016
|
return icon;
|
|
9002
9017
|
};
|
|
@@ -9036,13 +9051,13 @@ const CategoryFilter = ({ className, categories, defaultActiveId, onCategoryChan
|
|
|
9036
9051
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9037
9052
|
className: "flex flex-row gap-2 relative",
|
|
9038
9053
|
children: [categories.map((category) => {
|
|
9039
|
-
const formattedIcon = category.icon ? formatIcon(getIcon(category.icon), { className: (0, clsx.default)("size-
|
|
9054
|
+
const formattedIcon = category.icon ? formatIcon(getIcon(category.icon), { className: (0, clsx.default)("size-6") }) : null;
|
|
9040
9055
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9041
9056
|
ref: (el) => categoryRefs.current[category.id] = el,
|
|
9042
9057
|
className: (0, clsx.default)("flex items-center gap-2 cursor-pointer px-3 py-3 rounded transition-colors whitespace-nowrap"),
|
|
9043
9058
|
onClick: () => handleCategoryClick(category.id),
|
|
9044
9059
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
9045
|
-
className: `h-
|
|
9060
|
+
className: `h-6 w-6 flex items-center justify-center ${activeId === category.id && "text-primary"}`,
|
|
9046
9061
|
children: formattedIcon
|
|
9047
9062
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
9048
9063
|
className: `text-dark-600 ${activeId === category.id && "text-primary"}`,
|
|
@@ -9097,13 +9112,13 @@ const Calendar = ({ className, month, year = 2026,...props }) => {
|
|
|
9097
9112
|
]);
|
|
9098
9113
|
const resolvedSelectedDay = selectedDay ?? defaultSelectableDay;
|
|
9099
9114
|
const weekdayLabels = [
|
|
9100
|
-
"
|
|
9101
|
-
"
|
|
9102
|
-
"
|
|
9103
|
-
"
|
|
9104
|
-
"
|
|
9105
|
-
"
|
|
9106
|
-
"
|
|
9115
|
+
"Ma",
|
|
9116
|
+
"Di",
|
|
9117
|
+
"Wo",
|
|
9118
|
+
"Do",
|
|
9119
|
+
"Vr",
|
|
9120
|
+
"Za",
|
|
9121
|
+
"Zo"
|
|
9107
9122
|
];
|
|
9108
9123
|
const range = (0, react.useMemo)(() => {
|
|
9109
9124
|
if (!resolvedSelectedDay) return 0;
|
|
@@ -9168,113 +9183,120 @@ const Calendar = ({ className, month, year = 2026,...props }) => {
|
|
|
9168
9183
|
"data-component": "calendar",
|
|
9169
9184
|
className: (0, clsx.default)(className, "w-full"),
|
|
9170
9185
|
...props,
|
|
9171
|
-
children: [
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9186
|
+
children: [
|
|
9187
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9188
|
+
className: "flex items-center justify-end gap-4 mb-3",
|
|
9189
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
9190
|
+
"data-testid": "calendar-mode",
|
|
9191
|
+
className: "border border-gray-200 rounded px-2 py-1 text-sm",
|
|
9192
|
+
value: mode,
|
|
9193
|
+
onChange: (e) => setMode(e.target.value),
|
|
9194
|
+
children: [
|
|
9195
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
9196
|
+
value: "exact",
|
|
9197
|
+
children: "Exacte datum"
|
|
9198
|
+
}),
|
|
9199
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
9200
|
+
value: "pm1",
|
|
9201
|
+
children: "+/- 1 dag"
|
|
9202
|
+
}),
|
|
9203
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
9204
|
+
value: "pm2",
|
|
9205
|
+
children: "+/- 2 dagen"
|
|
9206
|
+
}),
|
|
9207
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
9208
|
+
value: "pm3",
|
|
9209
|
+
children: "+/- 3 dagen"
|
|
9210
|
+
}),
|
|
9211
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
9212
|
+
value: "month",
|
|
9213
|
+
children: "Hele maand"
|
|
9214
|
+
})
|
|
9215
|
+
]
|
|
9178
9216
|
})
|
|
9179
|
-
}),
|
|
9180
|
-
|
|
9181
|
-
className: "
|
|
9182
|
-
|
|
9183
|
-
|
|
9217
|
+
}),
|
|
9218
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9219
|
+
className: "flex items-center justify-center gap-4 mb-3",
|
|
9220
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9221
|
+
className: "text-sm text-secondary font-bold whitespace-nowrap",
|
|
9222
|
+
children: firstOfMonth.toLocaleDateString("nl-NL", {
|
|
9223
|
+
month: "long",
|
|
9224
|
+
year: "numeric"
|
|
9225
|
+
})
|
|
9226
|
+
})
|
|
9227
|
+
}),
|
|
9228
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
9229
|
+
className: "grid grid-cols-7 gap-0",
|
|
9230
|
+
"data-testid": "calendar-grid",
|
|
9184
9231
|
children: [
|
|
9185
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
9186
|
-
|
|
9187
|
-
children:
|
|
9188
|
-
}),
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9232
|
+
weekdayLabels.map((label) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9233
|
+
className: "text-base font-normal calendar-day-color text-center py-2",
|
|
9234
|
+
children: label
|
|
9235
|
+
}, label)),
|
|
9236
|
+
Array.from({ length: mondayIndex }).map((_, i) => {
|
|
9237
|
+
const day = daysInPrevMonth - mondayIndex + i + 1;
|
|
9238
|
+
const prevDate = new Date(year, month - 1, day);
|
|
9239
|
+
const yyyy = String(prevDate.getFullYear());
|
|
9240
|
+
const mm = String(prevDate.getMonth() + 1).padStart(2, "0");
|
|
9241
|
+
const dd = String(prevDate.getDate()).padStart(2, "0");
|
|
9242
|
+
const testId = `calendar-day-outside-${yyyy}-${mm}-${dd}`;
|
|
9243
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
9244
|
+
type: "button",
|
|
9245
|
+
"data-testid": testId,
|
|
9246
|
+
className: "h-10 rounded text-sm flex items-center justify-center text-gray-300 cursor-not-allowed",
|
|
9247
|
+
disabled: true,
|
|
9248
|
+
"aria-pressed": false,
|
|
9249
|
+
children: day
|
|
9250
|
+
}, testId);
|
|
9196
9251
|
}),
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9252
|
+
Array.from({ length: daysInMonth }).map((_, i) => {
|
|
9253
|
+
const day = i + 1;
|
|
9254
|
+
const date = new Date(year, month, day);
|
|
9255
|
+
const disabled = isPastDate(date);
|
|
9256
|
+
const active = isActive(day);
|
|
9257
|
+
const subActive = isSubActive(day);
|
|
9258
|
+
const inRange = !disabled && (subActive || active && mode !== "exact");
|
|
9259
|
+
const isRangeStart = !!rangeBounds && day === rangeBounds.start;
|
|
9260
|
+
const isRangeEnd = !!rangeBounds && day === rangeBounds.end;
|
|
9261
|
+
const leftFade = !!rangeBounds && rangeBounds.leftOverflow && day === 1;
|
|
9262
|
+
const rightFade = !!rangeBounds && rangeBounds.rightOverflow && day === daysInMonth;
|
|
9263
|
+
const rangeBgClass = !inRange ? null : leftFade ? "bg-gradient-to-r from-transparent via-primary/5 to-primary/5 " : rightFade ? "bg-gradient-to-r from-primary/5 via-primary/5 to-transparent " : "bg-primary/5";
|
|
9264
|
+
const yyyy = String(year);
|
|
9265
|
+
const mm = String(month + 1).padStart(2, "0");
|
|
9266
|
+
const dd = String(day).padStart(2, "0");
|
|
9267
|
+
const testId = `calendar-day-${yyyy}-${mm}-${dd}`;
|
|
9268
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
9269
|
+
type: "button",
|
|
9270
|
+
"data-testid": testId,
|
|
9271
|
+
className: (0, clsx.default)("h-10 text-sm flex items-center justify-center", disabled && "text-gray-300 cursor-not-allowed", rangeBgClass, inRange && isRangeStart && "rounded-l-full", inRange && isRangeEnd && "rounded-r-full"),
|
|
9272
|
+
disabled,
|
|
9273
|
+
"aria-pressed": active,
|
|
9274
|
+
onClick: () => handleDayClick(day),
|
|
9275
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
9276
|
+
className: (0, clsx.default)("w-8 h-8 p-2 flex justify-center items-center cursor-pointer", active && "calendar-selected-bg text-white rounded-full ", !disabled && !active && !subActive && "hover:bg-primary/20 hover:rounded-full "),
|
|
9277
|
+
children: day
|
|
9278
|
+
})
|
|
9279
|
+
}, testId);
|
|
9200
9280
|
}),
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9281
|
+
Array.from({ length: trailingOutsideDays }).map((_, i) => {
|
|
9282
|
+
const day = i + 1;
|
|
9283
|
+
const nextDate = new Date(year, month + 1, day);
|
|
9284
|
+
const yyyy = String(nextDate.getFullYear());
|
|
9285
|
+
const mm = String(nextDate.getMonth() + 1).padStart(2, "0");
|
|
9286
|
+
const dd = String(nextDate.getDate()).padStart(2, "0");
|
|
9287
|
+
const testId = `calendar-day-outside-${yyyy}-${mm}-${dd}`;
|
|
9288
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
9289
|
+
type: "button",
|
|
9290
|
+
"data-testid": testId,
|
|
9291
|
+
className: "h-10 rounded text-sm flex items-center calendar-grayed-out-date justify-center cursor-not-allowed",
|
|
9292
|
+
disabled: true,
|
|
9293
|
+
"aria-pressed": false,
|
|
9294
|
+
children: day
|
|
9295
|
+
}, testId);
|
|
9204
9296
|
})
|
|
9205
9297
|
]
|
|
9206
|
-
})
|
|
9207
|
-
|
|
9208
|
-
className: "grid grid-cols-7 gap-0",
|
|
9209
|
-
"data-testid": "calendar-grid",
|
|
9210
|
-
children: [
|
|
9211
|
-
weekdayLabels.map((label) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9212
|
-
className: "text-xs font-semibold text-gray-600 text-center py-2",
|
|
9213
|
-
children: label
|
|
9214
|
-
}, label)),
|
|
9215
|
-
Array.from({ length: mondayIndex }).map((_, i) => {
|
|
9216
|
-
const day = daysInPrevMonth - mondayIndex + i + 1;
|
|
9217
|
-
const prevDate = new Date(year, month - 1, day);
|
|
9218
|
-
const yyyy = String(prevDate.getFullYear());
|
|
9219
|
-
const mm = String(prevDate.getMonth() + 1).padStart(2, "0");
|
|
9220
|
-
const dd = String(prevDate.getDate()).padStart(2, "0");
|
|
9221
|
-
const testId = `calendar-day-outside-${yyyy}-${mm}-${dd}`;
|
|
9222
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
9223
|
-
type: "button",
|
|
9224
|
-
"data-testid": testId,
|
|
9225
|
-
className: "h-10 rounded text-sm flex items-center justify-center text-gray-300 cursor-not-allowed",
|
|
9226
|
-
disabled: true,
|
|
9227
|
-
"aria-pressed": false,
|
|
9228
|
-
children: day
|
|
9229
|
-
}, testId);
|
|
9230
|
-
}),
|
|
9231
|
-
Array.from({ length: daysInMonth }).map((_, i) => {
|
|
9232
|
-
const day = i + 1;
|
|
9233
|
-
const date = new Date(year, month, day);
|
|
9234
|
-
const disabled = isPastDate(date);
|
|
9235
|
-
const active = isActive(day);
|
|
9236
|
-
const subActive = isSubActive(day);
|
|
9237
|
-
const inRange = !disabled && (subActive || active && mode !== "exact");
|
|
9238
|
-
const isRangeStart = !!rangeBounds && day === rangeBounds.start;
|
|
9239
|
-
const isRangeEnd = !!rangeBounds && day === rangeBounds.end;
|
|
9240
|
-
const leftFade = !!rangeBounds && rangeBounds.leftOverflow && day === 1;
|
|
9241
|
-
const rightFade = !!rangeBounds && rangeBounds.rightOverflow && day === daysInMonth;
|
|
9242
|
-
const rangeBgClass = !inRange ? null : leftFade ? "bg-gradient-to-r from-transparent via-primary/5 to-primary/5 " : rightFade ? "bg-gradient-to-r from-primary/5 via-primary/5 to-transparent " : "bg-primary/5";
|
|
9243
|
-
const yyyy = String(year);
|
|
9244
|
-
const mm = String(month + 1).padStart(2, "0");
|
|
9245
|
-
const dd = String(day).padStart(2, "0");
|
|
9246
|
-
const testId = `calendar-day-${yyyy}-${mm}-${dd}`;
|
|
9247
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
9248
|
-
type: "button",
|
|
9249
|
-
"data-testid": testId,
|
|
9250
|
-
className: (0, clsx.default)("h-10 text-sm flex items-center justify-center", disabled && "text-gray-300 cursor-not-allowed", rangeBgClass, inRange && isRangeStart && "rounded-l-full", inRange && isRangeEnd && "rounded-r-full"),
|
|
9251
|
-
disabled,
|
|
9252
|
-
"aria-pressed": active,
|
|
9253
|
-
onClick: () => handleDayClick(day),
|
|
9254
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
9255
|
-
className: (0, clsx.default)("w-8 h-8 p-2 flex justify-center items-center cursor-pointer", active && "bg-primary text-white rounded-full ", !disabled && !active && !subActive && "hover:bg-primary/20 hover:rounded-full "),
|
|
9256
|
-
children: day
|
|
9257
|
-
})
|
|
9258
|
-
}, testId);
|
|
9259
|
-
}),
|
|
9260
|
-
Array.from({ length: trailingOutsideDays }).map((_, i) => {
|
|
9261
|
-
const day = i + 1;
|
|
9262
|
-
const nextDate = new Date(year, month + 1, day);
|
|
9263
|
-
const yyyy = String(nextDate.getFullYear());
|
|
9264
|
-
const mm = String(nextDate.getMonth() + 1).padStart(2, "0");
|
|
9265
|
-
const dd = String(nextDate.getDate()).padStart(2, "0");
|
|
9266
|
-
const testId = `calendar-day-outside-${yyyy}-${mm}-${dd}`;
|
|
9267
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
9268
|
-
type: "button",
|
|
9269
|
-
"data-testid": testId,
|
|
9270
|
-
className: "h-10 rounded text-sm flex items-center justify-center text-gray-300 cursor-not-allowed",
|
|
9271
|
-
disabled: true,
|
|
9272
|
-
"aria-pressed": false,
|
|
9273
|
-
children: day
|
|
9274
|
-
}, testId);
|
|
9275
|
-
})
|
|
9276
|
-
]
|
|
9277
|
-
})]
|
|
9298
|
+
})
|
|
9299
|
+
]
|
|
9278
9300
|
});
|
|
9279
9301
|
};
|
|
9280
9302
|
|
|
@@ -10949,10 +10971,10 @@ const BlogWidget = ({ className, blogTitle, blogText, blogImage, buttonText, But
|
|
|
10949
10971
|
className: "p-4 flex flex-col",
|
|
10950
10972
|
children: [
|
|
10951
10973
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
10952
|
-
className: "text-
|
|
10974
|
+
className: "text-xs blog-widget-date font-bold",
|
|
10953
10975
|
children: [new Date().toLocaleDateString("nl-NL"), readingTime && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
10954
10976
|
className: "uppercase",
|
|
10955
|
-
children: ` - ${readingTime}`
|
|
10977
|
+
children: ` - Leestijd: ${readingTime}`
|
|
10956
10978
|
})]
|
|
10957
10979
|
}),
|
|
10958
10980
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -10965,9 +10987,8 @@ const BlogWidget = ({ className, blogTitle, blogText, blogImage, buttonText, But
|
|
|
10965
10987
|
}),
|
|
10966
10988
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
10967
10989
|
variant: "outline",
|
|
10968
|
-
className: "w-fit",
|
|
10990
|
+
className: "w-fit uppercase",
|
|
10969
10991
|
iconRight: true,
|
|
10970
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconArrowRight, {}),
|
|
10971
10992
|
onClick: ButtonAction,
|
|
10972
10993
|
children: buttonText
|
|
10973
10994
|
})
|