@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/index.js CHANGED
@@ -31,114 +31,118 @@ var variables_default = {};
31
31
 
32
32
  //#endregion
33
33
  //#region src/components/topMenu/styles.css
34
- var styles_default$27 = {};
34
+ var styles_default$28 = {};
35
35
 
36
36
  //#endregion
37
37
  //#region src/components/button/styles.css
38
- var styles_default$26 = {};
38
+ var styles_default$27 = {};
39
39
 
40
40
  //#endregion
41
41
  //#region src/components/priceCheck/styles.css
42
- var styles_default$25 = {};
42
+ var styles_default$26 = {};
43
43
 
44
44
  //#endregion
45
45
  //#region src/components/toggle/styles.css
46
- var styles_default$24 = {};
46
+ var styles_default$25 = {};
47
47
 
48
48
  //#endregion
49
49
  //#region src/components/topHeaderMenu/styles.css
50
- var styles_default$23 = {};
50
+ var styles_default$24 = {};
51
51
 
52
52
  //#endregion
53
53
  //#region src/components/filterButtons/styles.css
54
- var styles_default$22 = {};
54
+ var styles_default$23 = {};
55
55
 
56
56
  //#endregion
57
57
  //#region src/components/searchBox/styles.css
58
- var styles_default$21 = {};
58
+ var styles_default$22 = {};
59
59
 
60
60
  //#endregion
61
61
  //#region src/components/dropdown/styles.css
62
- var styles_default$20 = {};
62
+ var styles_default$21 = {};
63
63
 
64
64
  //#endregion
65
65
  //#region src/components/counterIcon/styles.css
66
- var styles_default$19 = {};
66
+ var styles_default$20 = {};
67
67
 
68
68
  //#endregion
69
69
  //#region src/components/usp/styles.css
70
- var styles_default$18 = {};
70
+ var styles_default$19 = {};
71
71
 
72
72
  //#endregion
73
73
  //#region src/components/middleNavigation/styles.css
74
- var styles_default$17 = {};
74
+ var styles_default$18 = {};
75
75
 
76
76
  //#endregion
77
77
  //#region src/components/menu/styles.css
78
- var styles_default$16 = {};
78
+ var styles_default$17 = {};
79
79
 
80
80
  //#endregion
81
81
  //#region src/components/footer/styles.css
82
- var styles_default$15 = {};
82
+ var styles_default$16 = {};
83
83
 
84
84
  //#endregion
85
85
  //#region src/components/blogWidget/styles.css
86
- var styles_default$14 = {};
86
+ var styles_default$15 = {};
87
87
 
88
88
  //#endregion
89
89
  //#region src/components/searchBlock/styles.css
90
- var styles_default$13 = {};
90
+ var styles_default$14 = {};
91
91
 
92
92
  //#endregion
93
93
  //#region src/components/categoryFilter/styles.css
94
- var styles_default$12 = {};
94
+ var styles_default$13 = {};
95
95
 
96
96
  //#endregion
97
97
  //#region src/components/collection/styles.css
98
- var styles_default$11 = {};
98
+ var styles_default$12 = {};
99
99
 
100
100
  //#endregion
101
101
  //#region src/components/review/styles.css
102
- var styles_default$10 = {};
102
+ var styles_default$11 = {};
103
103
 
104
104
  //#endregion
105
105
  //#region src/components/hotelAccomodationResults/styles.css
106
- var styles_default$9 = {};
106
+ var styles_default$10 = {};
107
107
 
108
108
  //#endregion
109
109
  //#region src/components/coupon/styles.css
110
- var styles_default$8 = {};
110
+ var styles_default$9 = {};
111
111
 
112
112
  //#endregion
113
113
  //#region src/components/giftCard/styles.css
114
- var styles_default$7 = {};
114
+ var styles_default$8 = {};
115
115
 
116
116
  //#endregion
117
117
  //#region src/components/pvPopup/styles.css
118
- var styles_default$6 = {};
118
+ var styles_default$7 = {};
119
119
 
120
120
  //#endregion
121
121
  //#region src/components/photoCardsRotated/styles.css
122
- var styles_default$5 = {};
122
+ var styles_default$6 = {};
123
123
 
124
124
  //#endregion
125
125
  //#region src/components/spotlights/styles.css
126
- var styles_default$4 = {};
126
+ var styles_default$5 = {};
127
127
 
128
128
  //#endregion
129
129
  //#region src/components/viewedAccomodations/styles.css
130
- var styles_default$3 = {};
130
+ var styles_default$4 = {};
131
131
 
132
132
  //#endregion
133
133
  //#region src/components/quantityButtons/styles.css
134
- var styles_default$2 = {};
134
+ var styles_default$3 = {};
135
135
 
136
136
  //#endregion
137
137
  //#region src/components/matrixTable/styles.css
138
- var styles_default$1 = {};
138
+ var styles_default$2 = {};
139
139
 
140
140
  //#endregion
141
141
  //#region src/components/pageNavigation/styles.css
142
+ var styles_default$1 = {};
143
+
144
+ //#endregion
145
+ //#region src/components/calendar/styles.css
142
146
  var styles_default = {};
143
147
 
144
148
  //#endregion
@@ -4114,10 +4118,18 @@ const PageRating = ({ rating, ratingsCount, text, className }) => {
4114
4118
  if (boxRating > 0) {
4115
4119
  if (roundedRating % 1 !== 0) {
4116
4120
  const halfColorIndex = Math.floor(roundedRating) * 2 - 1;
4117
- ratingColor = RATING_COLORS[Math.min(halfColorIndex, RATING_COLORS.length - 1)] || "#FB3C00";
4121
+ if (halfColorIndex >= 0 && halfColorIndex < RATING_COLORS.length && RATING_COLORS[halfColorIndex]) {
4122
+ ratingColor = RATING_COLORS[halfColorIndex];
4123
+ } else {
4124
+ ratingColor = "#FB3C00";
4125
+ }
4118
4126
  } else {
4119
4127
  const fullColorIndex = Math.floor(boxRating) * 2 - 2;
4120
- ratingColor = RATING_COLORS[Math.min(fullColorIndex, RATING_COLORS.length - 1)] || "#FB3C00";
4128
+ if (fullColorIndex >= 0 && fullColorIndex < RATING_COLORS.length && RATING_COLORS[fullColorIndex]) {
4129
+ ratingColor = RATING_COLORS[fullColorIndex];
4130
+ } else {
4131
+ ratingColor = "#FB3C00";
4132
+ }
4121
4133
  }
4122
4134
  }
4123
4135
  return /* @__PURE__ */ jsx("div", {
@@ -4814,14 +4826,17 @@ const AccordionItem = ({ className, item, isOpen, onToggle,...props }) => {
4814
4826
  const icon = resolvedIsOpen ? item.iconOpen ?? iconOpenFallback : item.iconClosed ?? iconClosedFallback;
4815
4827
  return /* @__PURE__ */ jsxs("div", {
4816
4828
  "data-component": "pv-accordion",
4817
- className: clsx(className, "divide-y divide-gray-200"),
4829
+ className: clsx(className, "divide-y divide-[#e0e0e0]"),
4818
4830
  ...props,
4819
4831
  children: [/* @__PURE__ */ jsxs("button", {
4820
4832
  type: "button",
4821
4833
  className: "flex justify-between w-full py-4 items-center",
4822
4834
  "aria-expanded": resolvedIsOpen,
4823
4835
  onClick: () => onToggle ? onToggle() : setUncontrolledIsOpen((v) => !v),
4824
- children: [/* @__PURE__ */ jsx("span", { children: item.title }), /* @__PURE__ */ jsx("span", {
4836
+ children: [/* @__PURE__ */ jsx("span", {
4837
+ className: "text-start",
4838
+ children: item.title
4839
+ }), /* @__PURE__ */ jsx("span", {
4825
4840
  className: "w-10 h-10 items-center flex",
4826
4841
  children: icon
4827
4842
  })]
@@ -8904,77 +8919,77 @@ const iconOptions = [
8904
8919
  "IconWinterSport",
8905
8920
  "IconWinterSun"
8906
8921
  ];
8907
- const getIcon = (iconName) => {
8922
+ const getIcon = (iconName, color) => {
8908
8923
  const iconMap$1 = {
8909
- IconAlert: /* @__PURE__ */ jsx(IconAlert, { className: "w-full h-full" }),
8910
- IconArrival: /* @__PURE__ */ jsx(IconArrival, { className: "w-full h-full" }),
8911
- IconArrowDown: /* @__PURE__ */ jsx(IconArrowDown, { className: "w-full h-full" }),
8912
- IconArrowLeft: /* @__PURE__ */ jsx(IconArrowLeft, { className: "w-full h-full" }),
8913
- IconArrowRight: /* @__PURE__ */ jsx(IconArrowRight, { className: "w-full h-full" }),
8914
- IconArrowUp: /* @__PURE__ */ jsx(IconArrowUp, { className: "w-full h-full" }),
8915
- IconBeach: /* @__PURE__ */ jsx(IconBeach, { className: "w-full h-full" }),
8916
- IconBed: /* @__PURE__ */ jsx(IconBed, { className: "w-full h-full" }),
8917
- IconBlog: /* @__PURE__ */ jsx(IconBlog, { className: "w-full h-full" }),
8918
- IconBus: /* @__PURE__ */ jsx(IconBus, { className: "w-full h-full" }),
8919
- IconCalendar: /* @__PURE__ */ jsx(IconCalendar, { className: "w-full h-full" }),
8920
- IconCancel: /* @__PURE__ */ jsx(IconCancel, { className: "w-full h-full" }),
8921
- IconCar: /* @__PURE__ */ jsx(IconCar, { className: "w-full h-full" }),
8922
- IconCarSun: /* @__PURE__ */ jsx(IconCarSun, { className: "w-full h-full" }),
8923
- IconCheck: /* @__PURE__ */ jsx(IconCheck, { className: "w-full h-full" }),
8924
- IconChevronRight: /* @__PURE__ */ jsx(IconChevronRight, { className: "w-full h-full" }),
8925
- IconCity: /* @__PURE__ */ jsx(IconCity, { className: "w-full h-full" }),
8926
- IconClock: /* @__PURE__ */ jsx(IconClock, { className: "w-full h-full" }),
8927
- IconDelete: /* @__PURE__ */ jsx(IconDelete, { className: "w-full h-full" }),
8928
- IconDeparture: /* @__PURE__ */ jsx(IconDeparture, { className: "w-full h-full" }),
8929
- IconDollar: /* @__PURE__ */ jsx(IconDollar, { className: "w-full h-full" }),
8930
- IconEdit: /* @__PURE__ */ jsx(IconEdit, { className: "w-full h-full" }),
8931
- IconExpand: /* @__PURE__ */ jsx(IconExpand, { className: "w-full h-full" }),
8932
- IconFacebook: /* @__PURE__ */ jsx(IconFacebook, { className: "w-full h-full" }),
8933
- IconFavorite: /* @__PURE__ */ jsx(IconFavorite, { className: "w-full h-full" }),
8934
- IconFilter: /* @__PURE__ */ jsx(IconFilter, { className: "w-full h-full" }),
8935
- IconFood: /* @__PURE__ */ jsx(IconFood, { className: "w-full h-full" }),
8936
- IconHeart: /* @__PURE__ */ jsx(IconHeart, { className: "w-full h-full" }),
8937
- IconHot: /* @__PURE__ */ jsx(IconHot, { className: "w-full h-full" }),
8938
- IconHotel: /* @__PURE__ */ jsx(IconHotel, { className: "w-full h-full" }),
8939
- IconHouse: /* @__PURE__ */ jsx(IconHouse, { className: "w-full h-full" }),
8940
- IconInfo: /* @__PURE__ */ jsx(IconInfo, { className: "w-full h-full" }),
8941
- IconInstagram: /* @__PURE__ */ jsx(IconInstagram, { className: "w-full h-full" }),
8942
- IconLuggage: /* @__PURE__ */ jsx(IconLuggage, { className: "w-full h-full" }),
8943
- IconMail: /* @__PURE__ */ jsx(IconMail, { className: "w-full h-full" }),
8944
- IconMap: /* @__PURE__ */ jsx(IconMap, { className: "w-full h-full" }),
8945
- IconMinus: /* @__PURE__ */ jsx(IconMinus, { className: "w-full h-full" }),
8946
- IconParty: /* @__PURE__ */ jsx(IconParty, { className: "w-full h-full" }),
8947
- IconPhone: /* @__PURE__ */ jsx(IconPhone, { className: "w-full h-full" }),
8948
- IconPhoto: /* @__PURE__ */ jsx(IconPhoto, { className: "w-full h-full" }),
8949
- IconPinterest: /* @__PURE__ */ jsx(IconPinterest, { className: "w-full h-full" }),
8950
- IconPlane: /* @__PURE__ */ jsx(IconPlane, { className: "w-full h-full" }),
8951
- IconPlus: /* @__PURE__ */ jsx(IconPlus, { className: "w-full h-full" }),
8952
- IconQuestion: /* @__PURE__ */ jsx(IconQuestion, { className: "w-full h-full" }),
8953
- IconRating: /* @__PURE__ */ jsx(IconRating, { className: "w-full h-full" }),
8954
- IconSearch: /* @__PURE__ */ jsx(IconSearch, { className: "w-full h-full" }),
8955
- IconSeat: /* @__PURE__ */ jsx(IconSeat, { className: "w-full h-full" }),
8956
- IconShare: /* @__PURE__ */ jsx(IconShare, { className: "w-full h-full" }),
8957
- IconSplash: /* @__PURE__ */ jsx(IconSplash, { className: "w-full h-full" }),
8958
- IconStar: /* @__PURE__ */ jsx(IconStar, { className: "w-full h-full" }),
8959
- IconSuccess: /* @__PURE__ */ jsx(IconSuccess, { className: "w-full h-full" }),
8960
- IconSun: /* @__PURE__ */ jsx(IconSun, { className: "w-full h-full" }),
8961
- IconSupport: /* @__PURE__ */ jsx(IconSupport, { className: "w-full h-full" }),
8962
- IconTemperature: /* @__PURE__ */ jsx(IconTemperature, { className: "w-full h-full" }),
8963
- IconTiktok: /* @__PURE__ */ jsx(IconTiktok, { className: "w-full h-full" }),
8964
- IconTransfer: /* @__PURE__ */ jsx(IconTransfer, { className: "w-full h-full" }),
8965
- IconTree: /* @__PURE__ */ jsx(IconTree, { className: "w-full h-full" }),
8966
- IconTwitter: /* @__PURE__ */ jsx(IconTwitter, { className: "w-full h-full" }),
8967
- IconUser: /* @__PURE__ */ jsx(IconUser, { className: "w-full h-full" }),
8968
- IconView: /* @__PURE__ */ jsx(IconView, { className: "w-full h-full" }),
8969
- IconWarning: /* @__PURE__ */ jsx(IconWarning, { className: "w-full h-full" }),
8970
- IconWhatsapp: /* @__PURE__ */ jsx(IconWhatsapp, { className: "w-full h-full" }),
8971
- IconWinterSport: /* @__PURE__ */ jsx(IconWinterSport, { className: "w-full h-full" }),
8972
- IconWinterSun: /* @__PURE__ */ jsx(IconWinterSun, { className: "w-full h-full" })
8924
+ IconAlert: /* @__PURE__ */ jsx(IconAlert, { className: clsx("w-full h-full", color) }),
8925
+ IconArrival: /* @__PURE__ */ jsx(IconArrival, { className: clsx("w-full h-full", color) }),
8926
+ IconArrowDown: /* @__PURE__ */ jsx(IconArrowDown, { className: clsx("w-full h-full", color) }),
8927
+ IconArrowLeft: /* @__PURE__ */ jsx(IconArrowLeft, { className: clsx("w-full h-full", color) }),
8928
+ IconArrowRight: /* @__PURE__ */ jsx(IconArrowRight, { className: clsx("w-full h-full", color) }),
8929
+ IconArrowUp: /* @__PURE__ */ jsx(IconArrowUp, { className: clsx("w-full h-full", color) }),
8930
+ IconBeach: /* @__PURE__ */ jsx(IconBeach, { className: clsx("w-full h-full", color) }),
8931
+ IconBed: /* @__PURE__ */ jsx(IconBed, { className: clsx("w-full h-full", color) }),
8932
+ IconBlog: /* @__PURE__ */ jsx(IconBlog, { className: clsx("w-full h-full", color) }),
8933
+ IconBus: /* @__PURE__ */ jsx(IconBus, { className: clsx("w-full h-full", color) }),
8934
+ IconCalendar: /* @__PURE__ */ jsx(IconCalendar, { className: clsx("w-full h-full", color) }),
8935
+ IconCancel: /* @__PURE__ */ jsx(IconCancel, { className: clsx("w-full h-full", color) }),
8936
+ IconCar: /* @__PURE__ */ jsx(IconCar, { className: clsx("w-full h-full", color) }),
8937
+ IconCarSun: /* @__PURE__ */ jsx(IconCarSun, { className: clsx("w-full h-full", color) }),
8938
+ IconCheck: /* @__PURE__ */ jsx(IconCheck, { className: clsx("w-full h-full", color) }),
8939
+ IconChevronRight: /* @__PURE__ */ jsx(IconChevronRight, { className: clsx("w-full h-full", color) }),
8940
+ IconCity: /* @__PURE__ */ jsx(IconCity, { className: clsx("w-full h-full", color) }),
8941
+ IconClock: /* @__PURE__ */ jsx(IconClock, { className: clsx("w-full h-full", color) }),
8942
+ IconDelete: /* @__PURE__ */ jsx(IconDelete, { className: clsx("w-full h-full", color) }),
8943
+ IconDeparture: /* @__PURE__ */ jsx(IconDeparture, { className: clsx("w-full h-full", color) }),
8944
+ IconDollar: /* @__PURE__ */ jsx(IconDollar, { className: clsx("w-full h-full", color) }),
8945
+ IconEdit: /* @__PURE__ */ jsx(IconEdit, { className: clsx("w-full h-full", color) }),
8946
+ IconExpand: /* @__PURE__ */ jsx(IconExpand, { className: clsx("w-full h-full", color) }),
8947
+ IconFacebook: /* @__PURE__ */ jsx(IconFacebook, { className: clsx("w-full h-full", color) }),
8948
+ IconFavorite: /* @__PURE__ */ jsx(IconFavorite, { className: clsx("w-full h-full", color) }),
8949
+ IconFilter: /* @__PURE__ */ jsx(IconFilter, { className: clsx("w-full h-full", color) }),
8950
+ IconFood: /* @__PURE__ */ jsx(IconFood, { className: clsx("w-full h-full", color) }),
8951
+ IconHeart: /* @__PURE__ */ jsx(IconHeart, { className: clsx("w-full h-full", color) }),
8952
+ IconHot: /* @__PURE__ */ jsx(IconHot, { className: clsx("w-full h-full", color) }),
8953
+ IconHotel: /* @__PURE__ */ jsx(IconHotel, { className: clsx("w-full h-full", color) }),
8954
+ IconHouse: /* @__PURE__ */ jsx(IconHouse, { className: clsx("w-full h-full", color) }),
8955
+ IconInfo: /* @__PURE__ */ jsx(IconInfo, { className: clsx("w-full h-full", color) }),
8956
+ IconInstagram: /* @__PURE__ */ jsx(IconInstagram, { className: clsx("w-full h-full", color) }),
8957
+ IconLuggage: /* @__PURE__ */ jsx(IconLuggage, { className: clsx("w-full h-full", color) }),
8958
+ IconMail: /* @__PURE__ */ jsx(IconMail, { className: clsx("w-full h-full", color) }),
8959
+ IconMap: /* @__PURE__ */ jsx(IconMap, { className: clsx("w-full h-full", color) }),
8960
+ IconMinus: /* @__PURE__ */ jsx(IconMinus, { className: clsx("w-full h-full", color) }),
8961
+ IconParty: /* @__PURE__ */ jsx(IconParty, { className: clsx("w-full h-full", color) }),
8962
+ IconPhone: /* @__PURE__ */ jsx(IconPhone, { className: clsx("w-full h-full", color) }),
8963
+ IconPhoto: /* @__PURE__ */ jsx(IconPhoto, { className: clsx("w-full h-full", color) }),
8964
+ IconPinterest: /* @__PURE__ */ jsx(IconPinterest, { className: clsx("w-full h-full", color) }),
8965
+ IconPlane: /* @__PURE__ */ jsx(IconPlane, { className: clsx("w-full h-full", color) }),
8966
+ IconPlus: /* @__PURE__ */ jsx(IconPlus, { className: clsx("w-full h-full", color) }),
8967
+ IconQuestion: /* @__PURE__ */ jsx(IconQuestion, { className: clsx("w-full h-full", color) }),
8968
+ IconRating: /* @__PURE__ */ jsx(IconRating, { className: clsx("w-full h-full", color) }),
8969
+ IconSearch: /* @__PURE__ */ jsx(IconSearch, { className: clsx("w-full h-full", color) }),
8970
+ IconSeat: /* @__PURE__ */ jsx(IconSeat, { className: clsx("w-full h-full", color) }),
8971
+ IconShare: /* @__PURE__ */ jsx(IconShare, { className: clsx("w-full h-full", color) }),
8972
+ IconSplash: /* @__PURE__ */ jsx(IconSplash, { className: clsx("w-full h-full", color) }),
8973
+ IconStar: /* @__PURE__ */ jsx(IconStar, { className: clsx("w-full h-full", color) }),
8974
+ IconSuccess: /* @__PURE__ */ jsx(IconSuccess, { className: clsx("w-full h-full", color) }),
8975
+ IconSun: /* @__PURE__ */ jsx(IconSun, { className: clsx("w-full h-full", color) }),
8976
+ IconSupport: /* @__PURE__ */ jsx(IconSupport, { className: clsx("w-full h-full", color) }),
8977
+ IconTemperature: /* @__PURE__ */ jsx(IconTemperature, { className: clsx("w-full h-full", color) }),
8978
+ IconTiktok: /* @__PURE__ */ jsx(IconTiktok, { className: clsx("w-full h-full", color) }),
8979
+ IconTransfer: /* @__PURE__ */ jsx(IconTransfer, { className: clsx("w-full h-full", color) }),
8980
+ IconTree: /* @__PURE__ */ jsx(IconTree, { className: clsx("w-full h-full", color) }),
8981
+ IconTwitter: /* @__PURE__ */ jsx(IconTwitter, { className: clsx("w-full h-full", color) }),
8982
+ IconUser: /* @__PURE__ */ jsx(IconUser, { className: clsx("w-full h-full", color) }),
8983
+ IconView: /* @__PURE__ */ jsx(IconView, { className: clsx("w-full h-full", color) }),
8984
+ IconWarning: /* @__PURE__ */ jsx(IconWarning, { className: clsx("w-full h-full", color) }),
8985
+ IconWhatsapp: /* @__PURE__ */ jsx(IconWhatsapp, { className: clsx("w-full h-full", color) }),
8986
+ IconWinterSport: /* @__PURE__ */ jsx(IconWinterSport, { className: clsx("w-full h-full", color) }),
8987
+ IconWinterSun: /* @__PURE__ */ jsx(IconWinterSun, { className: clsx("w-full h-full", color) })
8973
8988
  };
8974
8989
  const icon = iconMap$1[iconName];
8975
8990
  if (!icon) {
8976
8991
  console.warn(`Icon "${iconName}" not found, returning fallback`);
8977
- return /* @__PURE__ */ jsx(IconArrowDown, { className: "w-full h-full" });
8992
+ return /* @__PURE__ */ jsx(IconArrowDown, { className: clsx("w-full h-full", color) });
8978
8993
  }
8979
8994
  return icon;
8980
8995
  };
@@ -9014,13 +9029,13 @@ const CategoryFilter = ({ className, categories, defaultActiveId, onCategoryChan
9014
9029
  children: [/* @__PURE__ */ jsxs("div", {
9015
9030
  className: "flex flex-row gap-2 relative",
9016
9031
  children: [categories.map((category) => {
9017
- const formattedIcon = category.icon ? formatIcon(getIcon(category.icon), { className: clsx("size-[1rem]") }) : null;
9032
+ const formattedIcon = category.icon ? formatIcon(getIcon(category.icon), { className: clsx("size-6") }) : null;
9018
9033
  return /* @__PURE__ */ jsxs("div", {
9019
9034
  ref: (el) => categoryRefs.current[category.id] = el,
9020
9035
  className: clsx("flex items-center gap-2 cursor-pointer px-3 py-3 rounded transition-colors whitespace-nowrap"),
9021
9036
  onClick: () => handleCategoryClick(category.id),
9022
9037
  children: [/* @__PURE__ */ jsx("span", {
9023
- className: `h-4 w-4 flex items-center justify-center ${activeId === category.id && "text-primary"}`,
9038
+ className: `h-6 w-6 flex items-center justify-center ${activeId === category.id && "text-primary"}`,
9024
9039
  children: formattedIcon
9025
9040
  }), /* @__PURE__ */ jsx("span", {
9026
9041
  className: `text-dark-600 ${activeId === category.id && "text-primary"}`,
@@ -9075,13 +9090,13 @@ const Calendar = ({ className, month, year = 2026,...props }) => {
9075
9090
  ]);
9076
9091
  const resolvedSelectedDay = selectedDay ?? defaultSelectableDay;
9077
9092
  const weekdayLabels = [
9078
- "ma",
9079
- "di",
9080
- "wo",
9081
- "do",
9082
- "vr",
9083
- "za",
9084
- "zo"
9093
+ "Ma",
9094
+ "Di",
9095
+ "Wo",
9096
+ "Do",
9097
+ "Vr",
9098
+ "Za",
9099
+ "Zo"
9085
9100
  ];
9086
9101
  const range = useMemo(() => {
9087
9102
  if (!resolvedSelectedDay) return 0;
@@ -9146,113 +9161,120 @@ const Calendar = ({ className, month, year = 2026,...props }) => {
9146
9161
  "data-component": "calendar",
9147
9162
  className: clsx(className, "w-full"),
9148
9163
  ...props,
9149
- children: [/* @__PURE__ */ jsxs("div", {
9150
- className: "flex items-center justify-between gap-4 mb-3",
9151
- children: [/* @__PURE__ */ jsx("div", {
9152
- className: "text-sm text-secondary font-bold whitespace-nowrap",
9153
- children: firstOfMonth.toLocaleDateString("nl-NL", {
9154
- month: "long",
9155
- year: "numeric"
9164
+ children: [
9165
+ /* @__PURE__ */ jsx("div", {
9166
+ className: "flex items-center justify-end gap-4 mb-3",
9167
+ children: /* @__PURE__ */ jsxs("select", {
9168
+ "data-testid": "calendar-mode",
9169
+ className: "border border-gray-200 rounded px-2 py-1 text-sm",
9170
+ value: mode,
9171
+ onChange: (e) => setMode(e.target.value),
9172
+ children: [
9173
+ /* @__PURE__ */ jsx("option", {
9174
+ value: "exact",
9175
+ children: "Exacte datum"
9176
+ }),
9177
+ /* @__PURE__ */ jsx("option", {
9178
+ value: "pm1",
9179
+ children: "+/- 1 dag"
9180
+ }),
9181
+ /* @__PURE__ */ jsx("option", {
9182
+ value: "pm2",
9183
+ children: "+/- 2 dagen"
9184
+ }),
9185
+ /* @__PURE__ */ jsx("option", {
9186
+ value: "pm3",
9187
+ children: "+/- 3 dagen"
9188
+ }),
9189
+ /* @__PURE__ */ jsx("option", {
9190
+ value: "month",
9191
+ children: "Hele maand"
9192
+ })
9193
+ ]
9156
9194
  })
9157
- }), /* @__PURE__ */ jsxs("select", {
9158
- "data-testid": "calendar-mode",
9159
- className: "border border-gray-200 rounded px-2 py-1 text-sm",
9160
- value: mode,
9161
- onChange: (e) => setMode(e.target.value),
9195
+ }),
9196
+ /* @__PURE__ */ jsx("div", {
9197
+ className: "flex items-center justify-center gap-4 mb-3",
9198
+ children: /* @__PURE__ */ jsx("div", {
9199
+ className: "text-sm text-secondary font-bold whitespace-nowrap",
9200
+ children: firstOfMonth.toLocaleDateString("nl-NL", {
9201
+ month: "long",
9202
+ year: "numeric"
9203
+ })
9204
+ })
9205
+ }),
9206
+ /* @__PURE__ */ jsxs("div", {
9207
+ className: "grid grid-cols-7 gap-0",
9208
+ "data-testid": "calendar-grid",
9162
9209
  children: [
9163
- /* @__PURE__ */ jsx("option", {
9164
- value: "exact",
9165
- children: "Exacte datum"
9166
- }),
9167
- /* @__PURE__ */ jsx("option", {
9168
- value: "pm1",
9169
- children: "+/- 1 dag"
9170
- }),
9171
- /* @__PURE__ */ jsx("option", {
9172
- value: "pm2",
9173
- children: "+/- 2 dagen"
9210
+ weekdayLabels.map((label) => /* @__PURE__ */ jsx("div", {
9211
+ className: "text-base font-normal calendar-day-color text-center py-2",
9212
+ children: label
9213
+ }, label)),
9214
+ Array.from({ length: mondayIndex }).map((_, i) => {
9215
+ const day = daysInPrevMonth - mondayIndex + i + 1;
9216
+ const prevDate = new Date(year, month - 1, day);
9217
+ const yyyy = String(prevDate.getFullYear());
9218
+ const mm = String(prevDate.getMonth() + 1).padStart(2, "0");
9219
+ const dd = String(prevDate.getDate()).padStart(2, "0");
9220
+ const testId = `calendar-day-outside-${yyyy}-${mm}-${dd}`;
9221
+ return /* @__PURE__ */ jsx("button", {
9222
+ type: "button",
9223
+ "data-testid": testId,
9224
+ className: "h-10 rounded text-sm flex items-center justify-center text-gray-300 cursor-not-allowed",
9225
+ disabled: true,
9226
+ "aria-pressed": false,
9227
+ children: day
9228
+ }, testId);
9174
9229
  }),
9175
- /* @__PURE__ */ jsx("option", {
9176
- value: "pm3",
9177
- children: "+/- 3 dagen"
9230
+ Array.from({ length: daysInMonth }).map((_, i) => {
9231
+ const day = i + 1;
9232
+ const date = new Date(year, month, day);
9233
+ const disabled = isPastDate(date);
9234
+ const active = isActive(day);
9235
+ const subActive = isSubActive(day);
9236
+ const inRange = !disabled && (subActive || active && mode !== "exact");
9237
+ const isRangeStart = !!rangeBounds && day === rangeBounds.start;
9238
+ const isRangeEnd = !!rangeBounds && day === rangeBounds.end;
9239
+ const leftFade = !!rangeBounds && rangeBounds.leftOverflow && day === 1;
9240
+ const rightFade = !!rangeBounds && rangeBounds.rightOverflow && day === daysInMonth;
9241
+ 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";
9242
+ const yyyy = String(year);
9243
+ const mm = String(month + 1).padStart(2, "0");
9244
+ const dd = String(day).padStart(2, "0");
9245
+ const testId = `calendar-day-${yyyy}-${mm}-${dd}`;
9246
+ return /* @__PURE__ */ jsx("button", {
9247
+ type: "button",
9248
+ "data-testid": testId,
9249
+ className: clsx("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"),
9250
+ disabled,
9251
+ "aria-pressed": active,
9252
+ onClick: () => handleDayClick(day),
9253
+ children: /* @__PURE__ */ jsx("span", {
9254
+ className: clsx("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 "),
9255
+ children: day
9256
+ })
9257
+ }, testId);
9178
9258
  }),
9179
- /* @__PURE__ */ jsx("option", {
9180
- value: "month",
9181
- children: "Hele maand"
9259
+ Array.from({ length: trailingOutsideDays }).map((_, i) => {
9260
+ const day = i + 1;
9261
+ const nextDate = new Date(year, month + 1, day);
9262
+ const yyyy = String(nextDate.getFullYear());
9263
+ const mm = String(nextDate.getMonth() + 1).padStart(2, "0");
9264
+ const dd = String(nextDate.getDate()).padStart(2, "0");
9265
+ const testId = `calendar-day-outside-${yyyy}-${mm}-${dd}`;
9266
+ return /* @__PURE__ */ jsx("button", {
9267
+ type: "button",
9268
+ "data-testid": testId,
9269
+ className: "h-10 rounded text-sm flex items-center calendar-grayed-out-date justify-center cursor-not-allowed",
9270
+ disabled: true,
9271
+ "aria-pressed": false,
9272
+ children: day
9273
+ }, testId);
9182
9274
  })
9183
9275
  ]
9184
- })]
9185
- }), /* @__PURE__ */ jsxs("div", {
9186
- className: "grid grid-cols-7 gap-0",
9187
- "data-testid": "calendar-grid",
9188
- children: [
9189
- weekdayLabels.map((label) => /* @__PURE__ */ jsx("div", {
9190
- className: "text-xs font-semibold text-gray-600 text-center py-2",
9191
- children: label
9192
- }, label)),
9193
- Array.from({ length: mondayIndex }).map((_, i) => {
9194
- const day = daysInPrevMonth - mondayIndex + i + 1;
9195
- const prevDate = new Date(year, month - 1, day);
9196
- const yyyy = String(prevDate.getFullYear());
9197
- const mm = String(prevDate.getMonth() + 1).padStart(2, "0");
9198
- const dd = String(prevDate.getDate()).padStart(2, "0");
9199
- const testId = `calendar-day-outside-${yyyy}-${mm}-${dd}`;
9200
- return /* @__PURE__ */ jsx("button", {
9201
- type: "button",
9202
- "data-testid": testId,
9203
- className: "h-10 rounded text-sm flex items-center justify-center text-gray-300 cursor-not-allowed",
9204
- disabled: true,
9205
- "aria-pressed": false,
9206
- children: day
9207
- }, testId);
9208
- }),
9209
- Array.from({ length: daysInMonth }).map((_, i) => {
9210
- const day = i + 1;
9211
- const date = new Date(year, month, day);
9212
- const disabled = isPastDate(date);
9213
- const active = isActive(day);
9214
- const subActive = isSubActive(day);
9215
- const inRange = !disabled && (subActive || active && mode !== "exact");
9216
- const isRangeStart = !!rangeBounds && day === rangeBounds.start;
9217
- const isRangeEnd = !!rangeBounds && day === rangeBounds.end;
9218
- const leftFade = !!rangeBounds && rangeBounds.leftOverflow && day === 1;
9219
- const rightFade = !!rangeBounds && rangeBounds.rightOverflow && day === daysInMonth;
9220
- 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";
9221
- const yyyy = String(year);
9222
- const mm = String(month + 1).padStart(2, "0");
9223
- const dd = String(day).padStart(2, "0");
9224
- const testId = `calendar-day-${yyyy}-${mm}-${dd}`;
9225
- return /* @__PURE__ */ jsx("button", {
9226
- type: "button",
9227
- "data-testid": testId,
9228
- className: clsx("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"),
9229
- disabled,
9230
- "aria-pressed": active,
9231
- onClick: () => handleDayClick(day),
9232
- children: /* @__PURE__ */ jsx("span", {
9233
- className: clsx("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 "),
9234
- children: day
9235
- })
9236
- }, testId);
9237
- }),
9238
- Array.from({ length: trailingOutsideDays }).map((_, i) => {
9239
- const day = i + 1;
9240
- const nextDate = new Date(year, month + 1, day);
9241
- const yyyy = String(nextDate.getFullYear());
9242
- const mm = String(nextDate.getMonth() + 1).padStart(2, "0");
9243
- const dd = String(nextDate.getDate()).padStart(2, "0");
9244
- const testId = `calendar-day-outside-${yyyy}-${mm}-${dd}`;
9245
- return /* @__PURE__ */ jsx("button", {
9246
- type: "button",
9247
- "data-testid": testId,
9248
- className: "h-10 rounded text-sm flex items-center justify-center text-gray-300 cursor-not-allowed",
9249
- disabled: true,
9250
- "aria-pressed": false,
9251
- children: day
9252
- }, testId);
9253
- })
9254
- ]
9255
- })]
9276
+ })
9277
+ ]
9256
9278
  });
9257
9279
  };
9258
9280
 
@@ -10927,10 +10949,10 @@ const BlogWidget = ({ className, blogTitle, blogText, blogImage, buttonText, But
10927
10949
  className: "p-4 flex flex-col",
10928
10950
  children: [
10929
10951
  /* @__PURE__ */ jsxs("span", {
10930
- className: "text-primary text-xs blog-widget-date font-bold",
10952
+ className: "text-xs blog-widget-date font-bold",
10931
10953
  children: [new Date().toLocaleDateString("nl-NL"), readingTime && /* @__PURE__ */ jsx("span", {
10932
10954
  className: "uppercase",
10933
- children: ` - ${readingTime}`
10955
+ children: ` - Leestijd: ${readingTime}`
10934
10956
  })]
10935
10957
  }),
10936
10958
  /* @__PURE__ */ jsx("span", {
@@ -10943,9 +10965,8 @@ const BlogWidget = ({ className, blogTitle, blogText, blogImage, buttonText, But
10943
10965
  }),
10944
10966
  /* @__PURE__ */ jsx(Button, {
10945
10967
  variant: "outline",
10946
- className: "w-fit",
10968
+ className: "w-fit uppercase",
10947
10969
  iconRight: true,
10948
- icon: /* @__PURE__ */ jsx(IconArrowRight, {}),
10949
10970
  onClick: ButtonAction,
10950
10971
  children: buttonText
10951
10972
  })