@oslokommune/punkt-react 20.0.4 → 20.1.0

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.
Files changed (211) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/defineProperty.js +1 -2
  3. package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/toPrimitive.js +1 -2
  4. package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/toPropertyKey.js +1 -2
  5. package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/typeof.js +1 -2
  6. package/dist/_virtual/_rolldown/runtime.js +1 -2
  7. package/dist/components/accordion/Accordion.js +1 -2
  8. package/dist/components/accordion/AccordionItem.js +9 -10
  9. package/dist/components/alert/Alert.js +7 -8
  10. package/dist/components/backlink/BackLink.js +1 -2
  11. package/dist/components/breadcrumbs/Breadcrumbs.js +1 -2
  12. package/dist/components/button/Button.js +35 -35
  13. package/dist/components/calendar/Calendar.js +1 -2
  14. package/dist/components/calendar/CalendarGrid.js +1 -2
  15. package/dist/components/calendar/CalendarNav.js +5 -6
  16. package/dist/components/calendar/calendar-utils.js +1 -2
  17. package/dist/components/calendar/useCalendarState.js +90 -91
  18. package/dist/components/card/Card.js +14 -15
  19. package/dist/components/checkbox/Checkbox.js +3 -8
  20. package/dist/components/checkboxgroup/CheckboxGroup.js +10 -11
  21. package/dist/components/checkboxgroup/CheckboxGroupContext.js +1 -2
  22. package/dist/components/combobox/Combobox.js +5 -6
  23. package/dist/components/combobox/ComboboxInput.js +6 -7
  24. package/dist/components/combobox/ComboboxTags.js +11 -12
  25. package/dist/components/combobox/Listbox.js +25 -26
  26. package/dist/components/combobox/useComboboxState.js +38 -39
  27. package/dist/components/consent/Consent.js +6 -7
  28. package/dist/components/datepicker/DateTags.js +14 -15
  29. package/dist/components/datepicker/Datepicker.js +1 -2
  30. package/dist/components/datepicker/DatepickerInputs.js +1 -2
  31. package/dist/components/datepicker/DatepickerPopup.js +5 -6
  32. package/dist/components/datepicker/useDatepickerState.js +20 -21
  33. package/dist/components/fileupload/DropZone.js +6 -7
  34. package/dist/components/fileupload/FileUpload.js +36 -37
  35. package/dist/components/fileupload/FileUploadContext.js +1 -2
  36. package/dist/components/fileupload/QueueDisplay.js +12 -13
  37. package/dist/components/fileupload/QueueItemContent.js +14 -15
  38. package/dist/components/fileupload/Subcomponents.js +70 -71
  39. package/dist/components/fileupload/Truncate.js +1 -2
  40. package/dist/components/fileupload/extensions/Comments.js +21 -22
  41. package/dist/components/fileupload/extensions/Remove.js +1 -2
  42. package/dist/components/fileupload/extensions/Rename.js +8 -9
  43. package/dist/components/fileupload/hooks/useFileAttributes.js +1 -2
  44. package/dist/components/fileupload/hooks/useImageObjectUrl.js +1 -2
  45. package/dist/components/fileupload/hooks/useImagePreview.js +1 -2
  46. package/dist/components/fileupload/hooks/useOperationState.js +1 -2
  47. package/dist/components/fileupload/hooks/useRequiredFormValidation.js +1 -2
  48. package/dist/components/fileupload/types.js +4 -5
  49. package/dist/components/footer/Footer.js +23 -24
  50. package/dist/components/footer/FooterGlobal.js +24 -25
  51. package/dist/components/footerSimple/FooterSimple.js +5 -6
  52. package/dist/components/header/Header.js +1 -2
  53. package/dist/components/header/HeaderGlobal.js +127 -128
  54. package/dist/components/header/HeaderService.js +84 -85
  55. package/dist/components/header-menu/HeaderMenu.js +34 -35
  56. package/dist/components/headerUserMenu/UserMenu.js +14 -15
  57. package/dist/components/heading/Heading.js +1 -2
  58. package/dist/components/helptext/Helptext.js +5 -6
  59. package/dist/components/icon/Icon.js +2 -3
  60. package/dist/components/input/Input.js +1 -2
  61. package/dist/components/inputwrapper/InputWrapper.js +12 -17
  62. package/dist/components/link/Link.js +1 -2
  63. package/dist/components/linkcard/LinkCard.js +2 -3
  64. package/dist/components/loader/Loader.js +2 -3
  65. package/dist/components/messagebox/Messagebox.js +6 -7
  66. package/dist/components/modal/Modal.js +13 -14
  67. package/dist/components/progressbar/Progressbar.js +5 -6
  68. package/dist/components/radio/RadioButton.js +3 -8
  69. package/dist/components/radiogroup/RadioGroup.js +1 -2
  70. package/dist/components/radiogroup/RadioGroupContext.js +1 -2
  71. package/dist/components/searchinput/SearchInput.js +11 -12
  72. package/dist/components/select/Select.js +6 -7
  73. package/dist/components/stepper/Step.js +1 -2
  74. package/dist/components/stepper/Stepper.js +1 -2
  75. package/dist/components/strings/PktStringsProvider.js +1 -2
  76. package/dist/components/table/Table.js +2 -3
  77. package/dist/components/table/TableBody.js +1 -2
  78. package/dist/components/table/TableDataCell.js +1 -2
  79. package/dist/components/table/TableHeader.js +1 -2
  80. package/dist/components/table/TableHeaderCell.js +1 -2
  81. package/dist/components/table/TableRow.js +1 -2
  82. package/dist/components/tabs/TabItem.js +1 -2
  83. package/dist/components/tabs/Tabs.js +5 -6
  84. package/dist/components/tag/Tag.js +6 -7
  85. package/dist/components/textarea/Textarea.js +5 -6
  86. package/dist/components/textinput/Textinput.js +6 -7
  87. package/dist/components/timepicker/Timepicker.js +6 -7
  88. package/dist/components/timepicker/useTimepickerState.js +27 -28
  89. package/dist/hooks/useElementWidth.js +1 -2
  90. package/dist/hooks/useFocusModality.js +1 -2
  91. package/dist/hooks/useGeneratedId.js +1 -2
  92. package/dist/hooks/useHeaderChrome.js +1 -2
  93. package/dist/hooks/useOptionGroupField.js +1 -2
  94. package/dist/hooks/useOwnerForm.js +1 -2
  95. package/dist/hooks/usePktStrings.js +1 -2
  96. package/dist/hooks/useScrollLock.js +1 -2
  97. package/dist/node_modules/@date-fns/tz/date/index.js +1 -2
  98. package/dist/node_modules/@date-fns/tz/date/mini.js +1 -2
  99. package/dist/node_modules/@date-fns/tz/index.js +3 -3
  100. package/dist/node_modules/@date-fns/tz/tzName/index.js +1 -2
  101. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +1 -2
  102. package/dist/node_modules/classnames/index.js +1 -2
  103. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +1 -2
  104. package/dist/node_modules/date-fns/_lib/defaultOptions.js +1 -2
  105. package/dist/node_modules/date-fns/_lib/format/formatters.js +18 -19
  106. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +1 -2
  107. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +1 -2
  108. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +1 -2
  109. package/dist/node_modules/date-fns/_lib/normalizeDates.js +1 -2
  110. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +1 -2
  111. package/dist/node_modules/date-fns/_lib/protectedTokens.js +1 -2
  112. package/dist/node_modules/date-fns/addDays.js +1 -2
  113. package/dist/node_modules/date-fns/constants.js +1 -2
  114. package/dist/node_modules/date-fns/constructFrom.js +1 -2
  115. package/dist/node_modules/date-fns/differenceInCalendarDays.js +6 -7
  116. package/dist/node_modules/date-fns/eachDayOfInterval.js +5 -6
  117. package/dist/node_modules/date-fns/endOfDay.js +1 -2
  118. package/dist/node_modules/date-fns/format.js +15 -16
  119. package/dist/node_modules/date-fns/getDayOfYear.js +6 -7
  120. package/dist/node_modules/date-fns/getISODay.js +1 -2
  121. package/dist/node_modules/date-fns/getISOWeek.js +5 -6
  122. package/dist/node_modules/date-fns/getISOWeekYear.js +6 -7
  123. package/dist/node_modules/date-fns/getWeek.js +5 -6
  124. package/dist/node_modules/date-fns/getWeekYear.js +8 -9
  125. package/dist/node_modules/date-fns/isDate.js +1 -2
  126. package/dist/node_modules/date-fns/isValid.js +4 -5
  127. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -2
  128. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -2
  129. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -2
  130. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -2
  131. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +1 -2
  132. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -1
  133. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +1 -2
  134. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -1
  135. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -1
  136. package/dist/node_modules/date-fns/locale/en-US.js +1 -2
  137. package/dist/node_modules/date-fns/startOfDay.js +1 -2
  138. package/dist/node_modules/date-fns/startOfISOWeek.js +1 -2
  139. package/dist/node_modules/date-fns/startOfISOWeekYear.js +5 -6
  140. package/dist/node_modules/date-fns/startOfWeek.js +4 -5
  141. package/dist/node_modules/date-fns/startOfWeekYear.js +7 -8
  142. package/dist/node_modules/date-fns/startOfYear.js +1 -2
  143. package/dist/node_modules/date-fns/toDate.js +1 -2
  144. package/dist/punkt-react.cjs +1 -1
  145. package/dist/shared-strings/consent.js +1 -2
  146. package/dist/shared-strings/format.js +1 -2
  147. package/dist/shared-strings/nb.js +1 -2
  148. package/dist/shared-strings/resolve.js +1 -2
  149. package/dist/shared-strings/store.js +1 -2
  150. package/dist/shared-types/accordion.js +1 -2
  151. package/dist/shared-types/button.d.ts +13 -0
  152. package/dist/shared-types/button.js +14 -0
  153. package/dist/shared-types/calendar.js +1 -2
  154. package/dist/shared-types/card.js +1 -2
  155. package/dist/shared-types/checkbox.js +1 -2
  156. package/dist/shared-types/combobox.js +1 -2
  157. package/dist/shared-types/consent.js +1 -2
  158. package/dist/shared-types/footer.js +1 -2
  159. package/dist/shared-types/header-footer.js +1 -2
  160. package/dist/shared-types/icon.js +1 -2
  161. package/dist/shared-types/index.d.ts +1 -1
  162. package/dist/shared-types/index.js +11 -10
  163. package/dist/shared-types/input-wrapper.js +1 -2
  164. package/dist/shared-types/linkcard.js +1 -2
  165. package/dist/shared-types/loader.js +1 -2
  166. package/dist/shared-types/messagebox.js +1 -2
  167. package/dist/shared-types/option-group.js +1 -2
  168. package/dist/shared-types/progressbar.js +1 -2
  169. package/dist/shared-types/radiobutton.js +1 -2
  170. package/dist/shared-types/select.js +1 -2
  171. package/dist/shared-types/size.js +1 -2
  172. package/dist/shared-types/table.js +1 -2
  173. package/dist/shared-types/tag.js +1 -2
  174. package/dist/shared-types/textarea.js +1 -2
  175. package/dist/shared-types/textinput.js +1 -2
  176. package/dist/shared-utils/calendar/calendar-grid.js +4 -5
  177. package/dist/shared-utils/calendar/date-validation.js +1 -2
  178. package/dist/shared-utils/calendar/keyboard-navigation.js +1 -2
  179. package/dist/shared-utils/calendar/selection-manager.js +31 -32
  180. package/dist/shared-utils/combobox/input-utils.js +1 -2
  181. package/dist/shared-utils/combobox/keyboard-navigation.js +1 -2
  182. package/dist/shared-utils/combobox/option-utils.js +1 -2
  183. package/dist/shared-utils/date-utils.js +10 -11
  184. package/dist/shared-utils/datepicker-utils.js +4 -5
  185. package/dist/shared-utils/device-utils.js +1 -2
  186. package/dist/shared-utils/fileupload/announcements.js +1 -2
  187. package/dist/shared-utils/fileupload/filename.js +1 -2
  188. package/dist/shared-utils/fileupload/formats.js +1 -2
  189. package/dist/shared-utils/fileupload/navigation.js +1 -2
  190. package/dist/shared-utils/fileupload/size.js +1 -2
  191. package/dist/shared-utils/fileupload/transfers.js +1 -2
  192. package/dist/shared-utils/fileupload/truncate.js +1 -2
  193. package/dist/shared-utils/fileupload/validation.js +8 -9
  194. package/dist/shared-utils/focus-trap/index.js +13 -31
  195. package/dist/shared-utils/forms/described-by.js +1 -2
  196. package/dist/shared-utils/header-footer/external-domain.js +1 -2
  197. package/dist/shared-utils/header-footer/fetch-header-footer-data.js +1 -2
  198. package/dist/shared-utils/header-footer/icon-map.js +1 -2
  199. package/dist/shared-utils/header-footer/select-megamenu.js +1 -2
  200. package/dist/shared-utils/scroll-lock/index.js +1 -2
  201. package/dist/shared-utils/timepicker/options.js +1 -2
  202. package/dist/shared-utils/timepicker/stepper.js +1 -2
  203. package/dist/shared-utils/timepicker/time-utils.js +1 -2
  204. package/dist/shared-utils/value-utils.js +1 -2
  205. package/dist/utils/nativeInputValue.js +1 -2
  206. package/dist/utils/stableKeys.js +1 -2
  207. package/dist/utils/stringutils.js +1 -2
  208. package/package.json +20 -21
  209. package/src/components/accordion/Accordion.test.tsx +2 -4
  210. package/src/components/button/Button.tsx +11 -11
  211. package/src/components/tag/Tag.tsx +0 -1
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import "../../shared-types/footer.js";
3
3
  import "../../shared-types/index.js";
4
- import { PktIcon as e } from "../icon/Icon.js";
4
+ import { getLinkDomainLabel as e } from "../../shared-utils/header-footer/external-domain.js";
5
5
  import { PktConsent as t } from "../consent/Consent.js";
6
- import { getLinkDomainLabel as n } from "../../shared-utils/header-footer/external-domain.js";
6
+ import { PktIcon as n } from "../icon/Icon.js";
7
7
  import { FooterGlobal as r, useGlobalFooterData as i } from "./FooterGlobal.js";
8
8
  import { useEffect as a, useMemo as o } from "react";
9
9
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
- //#region src/components/footer/Footer.tsx
11
- var l = ({ link: e, openLinksInNewTab: t }) => {
12
- let r = e.openInNewTab || t, i = e.external ? n(e.href) : void 0;
10
+ // src/components/footer/Footer.tsx
11
+ var l = ({ link: t, openLinksInNewTab: n }) => {
12
+ let r = t.openInNewTab || n, i = t.external ? e(t.href) : void 0;
13
13
  return /* @__PURE__ */ s("li", { children: /* @__PURE__ */ c("a", {
14
- href: e.href,
14
+ href: t.href,
15
15
  target: r ? "_blank" : "_self",
16
16
  rel: r ? "noopener noreferrer" : void 0,
17
- children: [e.text, i && /* @__PURE__ */ c("span", {
17
+ children: [t.text, i && /* @__PURE__ */ c("span", {
18
18
  className: "pkt-footer__link-domain",
19
19
  children: [
20
20
  " (",
@@ -33,7 +33,7 @@ var l = ({ link: e, openLinksInNewTab: t }) => {
33
33
  openLinksInNewTab: t
34
34
  }, `${e.href}|${e.text}`))
35
35
  })
36
- ] }), d = ({ columns: n, columnOne: l, columnTwo: d, personvernOgInfoLink: f, tilgjengelighetLink: p, socialLinks: m, skipGlobal: h = !1, data: g, dataUrl: _, locale: v = "nb-NO", openLinksInNewTab: y = !1, includeConsent: b = !1, hotjarId: x = null, googleAnalyticsId: S = null, devMode: C = !1, cookieDomain: w = null, cookieSecure: T = null, cookieExpiryDays: E = null, onToggleConsent: D, onDataError: O, className: k, ...A }) => {
36
+ ] }), d = ({ columns: e, columnOne: l, columnTwo: d, personvernOgInfoLink: f, tilgjengelighetLink: p, socialLinks: m, skipGlobal: h = !1, data: g, dataUrl: _, locale: v = "nb-NO", openLinksInNewTab: y = !1, includeConsent: b = !1, hotjarId: x = null, googleAnalyticsId: S = null, devMode: C = !1, cookieDomain: w = null, cookieSecure: T = null, cookieExpiryDays: E = null, onToggleConsent: D, onDataError: O, className: k, ...A }) => {
37
37
  a(() => {
38
38
  (l || d) && console.warn("PktFooter: The \"columnOne\"/\"columnTwo\" props are deprecated and will be removed in a future version. Please use \"columns\" instead.");
39
39
  }, [l, d]), a(() => {
@@ -48,19 +48,19 @@ var l = ({ link: e, openLinksInNewTab: t }) => {
48
48
  skipGlobal: h,
49
49
  onDataError: O
50
50
  }), M = o(() => {
51
- let e = n?.length ? n : [l, d].filter(Boolean), t = [];
52
- return f && f !== "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/" && t.push({
51
+ let t = e?.length ? e : [l, d].filter(Boolean), n = [];
52
+ return f && f !== "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/" && n.push({
53
53
  text: "Personvern og informasjonskapsler",
54
54
  href: f
55
- }), p && p !== "https://www.oslo.kommune.no/tilgjengelighet/" && t.push({
55
+ }), p && p !== "https://www.oslo.kommune.no/tilgjengelighet/" && n.push({
56
56
  text: "Tilgjengelighet",
57
57
  href: p
58
- }), t.length ? [...e, {
58
+ }), n.length ? [...t, {
59
59
  title: "Om nettstedet",
60
- links: t
61
- }] : e;
60
+ links: n
61
+ }] : t;
62
62
  }, [
63
- n,
63
+ e,
64
64
  l,
65
65
  d,
66
66
  f,
@@ -109,17 +109,17 @@ var l = ({ link: e, openLinksInNewTab: t }) => {
109
109
  }) }, `${e.href}|${e.language}`))
110
110
  }), /* @__PURE__ */ s("ul", {
111
111
  className: "pkt-footer__some",
112
- children: I.map((t) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s("a", {
112
+ children: I.map((e) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s("a", {
113
113
  className: "pkt-footer__some-link",
114
- href: t.href,
115
- "aria-label": `til ${t.iconName}`,
116
- target: t.openInNewTab || y ? "_blank" : "_self",
117
- rel: t.openInNewTab || y ? "noopener noreferrer" : void 0,
118
- children: /* @__PURE__ */ s(e, {
114
+ href: e.href,
115
+ "aria-label": `til ${e.iconName}`,
116
+ target: e.openInNewTab || y ? "_blank" : "_self",
117
+ rel: e.openInNewTab || y ? "noopener noreferrer" : void 0,
118
+ children: /* @__PURE__ */ s(n, {
119
119
  className: "pkt-footer__some-icon",
120
- name: t.iconName
120
+ name: e.iconName
121
121
  })
122
- }) }, `${t.href}|${t.iconName}`))
122
+ }) }, `${e.href}|${e.iconName}`))
123
123
  })]
124
124
  })
125
125
  ]
@@ -131,5 +131,4 @@ var l = ({ link: e, openLinksInNewTab: t }) => {
131
131
  })]
132
132
  });
133
133
  };
134
- //#endregion
135
134
  export { d as PktFooter };
@@ -1,45 +1,45 @@
1
1
  "use client";
2
- import { PktIcon as e } from "../icon/Icon.js";
3
- import { PktConsent as t } from "../consent/Consent.js";
4
- import { deriveSocialIcon as n } from "../../shared-utils/header-footer/icon-map.js";
2
+ import { deriveSocialIcon as e } from "../../shared-utils/header-footer/icon-map.js";
3
+ import { fetchHeaderFooterData as t } from "../../shared-utils/header-footer/fetch-header-footer-data.js";
4
+ import { getExternalDomainLabel as n } from "../../shared-utils/header-footer/external-domain.js";
5
5
  import { selectLocaleData as r } from "../../shared-utils/header-footer/select-megamenu.js";
6
- import { getExternalDomainLabel as i } from "../../shared-utils/header-footer/external-domain.js";
7
- import { fetchHeaderFooterData as a } from "../../shared-utils/header-footer/fetch-header-footer-data.js";
6
+ import { PktConsent as i } from "../consent/Consent.js";
7
+ import { PktIcon as a } from "../icon/Icon.js";
8
8
  import { useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
9
9
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
10
- //#region src/components/footer/FooterGlobal.tsx
10
+ // src/components/footer/FooterGlobal.tsx
11
11
  var f = "#cb-trigger";
12
- function p({ data: e, dataUrl: t, locale: n = "nb-NO", skipGlobal: i = !1, onDataError: u }) {
12
+ function p({ data: e, dataUrl: n, locale: i = "nb-NO", skipGlobal: a = !1, onDataError: u }) {
13
13
  let [d, f] = l(), p = c(u);
14
14
  p.current = u, o(() => {
15
- if (e || i) return;
16
- let n = new AbortController();
17
- return a(t, n.signal).then((e) => {
18
- n.signal.aborted || f(e);
15
+ if (e || a) return;
16
+ let r = new AbortController();
17
+ return t(n, r.signal).then((e) => {
18
+ r.signal.aborted || f(e);
19
19
  }).catch((e) => {
20
20
  e.name !== "AbortError" && (console.warn("Failed to fetch header/footer data:", e), p.current?.(e));
21
- }), () => n.abort();
21
+ }), () => r.abort();
22
22
  }, [
23
23
  e,
24
- t,
25
- i
24
+ n,
25
+ a
26
26
  ]);
27
27
  let m = e ?? d;
28
28
  return s(() => {
29
- if (!i) return r(m, n)?.footer;
29
+ if (!a) return r(m, i)?.footer;
30
30
  }, [
31
31
  m,
32
- n,
33
- i
32
+ i,
33
+ a
34
34
  ]);
35
35
  }
36
- var m = ({ link: e, includeConsent: n, consent: r }) => {
37
- if (e.url === f) return n ? /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u(t, {
36
+ var m = ({ link: e, includeConsent: t, consent: r }) => {
37
+ if (e.url === f) return t ? /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u(i, {
38
38
  triggerType: "footerlink",
39
39
  triggerText: e.text,
40
40
  ...r
41
41
  }) }) : null;
42
- let a = i(e.url);
42
+ let a = n(e.url);
43
43
  return /* @__PURE__ */ u("li", { children: /* @__PURE__ */ d("a", {
44
44
  href: e.url,
45
45
  children: [e.text, a && /* @__PURE__ */ d("span", {
@@ -59,14 +59,14 @@ var m = ({ link: e, includeConsent: n, consent: r }) => {
59
59
  consent: n
60
60
  }, `${e.url}|${e.text}`))
61
61
  })] }), g = ({ entry: t }) => {
62
- let r = n(t.url, t.text);
63
- return r ? /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u("a", {
62
+ let n = e(t.url, t.text);
63
+ return n ? /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u("a", {
64
64
  className: "pkt-footer__some-link",
65
65
  href: t.url,
66
66
  "aria-label": t.text,
67
- children: /* @__PURE__ */ u(e, {
67
+ children: /* @__PURE__ */ u(a, {
68
68
  className: "pkt-footer__some-icon",
69
- name: r
69
+ name: n
70
70
  })
71
71
  }) }) : /* @__PURE__ */ u("li", { children: /* @__PURE__ */ u("a", {
72
72
  href: t.url,
@@ -101,5 +101,4 @@ var m = ({ link: e, includeConsent: n, consent: r }) => {
101
101
  })
102
102
  });
103
103
  };
104
- //#endregion
105
104
  export { _ as FooterGlobal, p as useGlobalFooterData };
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  import "../../shared-types/footer.js";
3
3
  import "../../shared-types/index.js";
4
- import { PktIcon as e } from "../icon/Icon.js";
4
+ import { getLinkDomainLabel as e } from "../../shared-utils/header-footer/external-domain.js";
5
5
  import { PktConsent as t } from "../consent/Consent.js";
6
- import { getLinkDomainLabel as n } from "../../shared-utils/header-footer/external-domain.js";
6
+ import { PktIcon as n } from "../icon/Icon.js";
7
7
  import { FooterGlobal as r, useGlobalFooterData as i } from "../footer/FooterGlobal.js";
8
8
  import { useEffect as a, useMemo as o } from "react";
9
9
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
- //#region src/components/footerSimple/FooterSimple.tsx
10
+ // src/components/footerSimple/FooterSimple.tsx
11
11
  var l = ({ link: t, openLinksInNewTab: r }) => {
12
- let i = t.openInNewTab || r, a = t.external ? n(t.href) : void 0;
12
+ let i = t.openInNewTab || r, a = t.external ? e(t.href) : void 0;
13
13
  return /* @__PURE__ */ c("a", {
14
14
  className: "pkt-footer-simple__link",
15
15
  href: t.href,
16
16
  target: i ? "_blank" : "_self",
17
17
  rel: i ? "noopener noreferrer" : void 0,
18
- children: [/* @__PURE__ */ s(e, {
18
+ children: [/* @__PURE__ */ s(n, {
19
19
  className: "pkt-footer-simple__link-icon",
20
20
  name: "arrow-link"
21
21
  }), /* @__PURE__ */ c("span", { children: [t.text, a && /* @__PURE__ */ c("span", {
@@ -84,5 +84,4 @@ var l = ({ link: t, openLinksInNewTab: r }) => {
84
84
  })]
85
85
  });
86
86
  };
87
- //#endregion
88
87
  export { u as PktFooterSimple };
@@ -2,7 +2,7 @@ import { PktHeaderGlobal as e } from "./HeaderGlobal.js";
2
2
  import { PktHeaderService as t } from "./HeaderService.js";
3
3
  import { forwardRef as n } from "react";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
- //#region src/components/header/Header.tsx
5
+ // src/components/header/Header.tsx
6
6
  var i = n((n, i) => n.type === "global" ? /* @__PURE__ */ r(e, {
7
7
  ...n,
8
8
  ref: i
@@ -11,5 +11,4 @@ var i = n((n, i) => n.type === "global" ? /* @__PURE__ */ r(e, {
11
11
  ref: i
12
12
  }));
13
13
  i.displayName = "PktHeader";
14
- //#endregion
15
14
  export { i as PktHeader };