@oslokommune/punkt-react 20.0.4 → 20.0.5

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 (206) hide show
  1. package/CHANGELOG.md +5 -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 +1 -2
  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/calendar.js +1 -2
  152. package/dist/shared-types/card.js +1 -2
  153. package/dist/shared-types/checkbox.js +1 -2
  154. package/dist/shared-types/combobox.js +1 -2
  155. package/dist/shared-types/consent.js +1 -2
  156. package/dist/shared-types/footer.js +1 -2
  157. package/dist/shared-types/header-footer.js +1 -2
  158. package/dist/shared-types/icon.js +1 -2
  159. package/dist/shared-types/input-wrapper.js +1 -2
  160. package/dist/shared-types/linkcard.js +1 -2
  161. package/dist/shared-types/loader.js +1 -2
  162. package/dist/shared-types/messagebox.js +1 -2
  163. package/dist/shared-types/option-group.js +1 -2
  164. package/dist/shared-types/progressbar.js +1 -2
  165. package/dist/shared-types/radiobutton.js +1 -2
  166. package/dist/shared-types/select.js +1 -2
  167. package/dist/shared-types/size.js +1 -2
  168. package/dist/shared-types/table.js +1 -2
  169. package/dist/shared-types/tag.js +1 -2
  170. package/dist/shared-types/textarea.js +1 -2
  171. package/dist/shared-types/textinput.js +1 -2
  172. package/dist/shared-utils/calendar/calendar-grid.js +4 -5
  173. package/dist/shared-utils/calendar/date-validation.js +1 -2
  174. package/dist/shared-utils/calendar/keyboard-navigation.js +1 -2
  175. package/dist/shared-utils/calendar/selection-manager.js +31 -32
  176. package/dist/shared-utils/combobox/input-utils.js +1 -2
  177. package/dist/shared-utils/combobox/keyboard-navigation.js +1 -2
  178. package/dist/shared-utils/combobox/option-utils.js +1 -2
  179. package/dist/shared-utils/date-utils.js +10 -11
  180. package/dist/shared-utils/datepicker-utils.js +4 -5
  181. package/dist/shared-utils/device-utils.js +1 -2
  182. package/dist/shared-utils/fileupload/announcements.js +1 -2
  183. package/dist/shared-utils/fileupload/filename.js +1 -2
  184. package/dist/shared-utils/fileupload/formats.js +1 -2
  185. package/dist/shared-utils/fileupload/navigation.js +1 -2
  186. package/dist/shared-utils/fileupload/size.js +1 -2
  187. package/dist/shared-utils/fileupload/transfers.js +1 -2
  188. package/dist/shared-utils/fileupload/truncate.js +1 -2
  189. package/dist/shared-utils/fileupload/validation.js +8 -9
  190. package/dist/shared-utils/focus-trap/index.js +13 -31
  191. package/dist/shared-utils/forms/described-by.js +1 -2
  192. package/dist/shared-utils/header-footer/external-domain.js +1 -2
  193. package/dist/shared-utils/header-footer/fetch-header-footer-data.js +1 -2
  194. package/dist/shared-utils/header-footer/icon-map.js +1 -2
  195. package/dist/shared-utils/header-footer/select-megamenu.js +1 -2
  196. package/dist/shared-utils/scroll-lock/index.js +1 -2
  197. package/dist/shared-utils/timepicker/options.js +1 -2
  198. package/dist/shared-utils/timepicker/stepper.js +1 -2
  199. package/dist/shared-utils/timepicker/time-utils.js +1 -2
  200. package/dist/shared-utils/value-utils.js +1 -2
  201. package/dist/utils/nativeInputValue.js +1 -2
  202. package/dist/utils/stableKeys.js +1 -2
  203. package/dist/utils/stringutils.js +1 -2
  204. package/package.json +20 -21
  205. package/src/components/accordion/Accordion.test.tsx +2 -4
  206. package/src/components/tag/Tag.tsx +0 -1
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { ICON_DEFAULTS as t } from "../../shared-types/icon.js";
4
- import "../../shared-types/index.js";
5
4
  import { require_classnames as n } from "../../node_modules/classnames/index.js";
5
+ import "../../shared-types/index.js";
6
6
  import { forwardRef as r, useEffect as i, useLayoutEffect as a, useRef as o } from "react";
7
7
  import { jsx as s } from "react/jsx-runtime";
8
- //#region src/components/icon/Icon.tsx
8
+ // src/components/icon/Icon.tsx
9
9
  var c = /* @__PURE__ */ e(n(), 1);
10
10
  typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || t.path);
11
11
  var l = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"></svg>", u = {}, d = 2, f = 1500, p = (() => {
@@ -72,5 +72,4 @@ var l = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"></svg>"
72
72
  });
73
73
  });
74
74
  b.displayName = "PktIcon";
75
- //#endregion
76
75
  export { b as PktIcon };
@@ -1,6 +1,6 @@
1
1
  import { forwardRef as e } from "react";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- //#region src/components/input/Input.tsx
3
+ // src/components/input/Input.tsx
4
4
  var r = e(({ label: e, id: r, children: i, ...a }, o) => /* @__PURE__ */ n("div", {
5
5
  className: "pkt-form-group",
6
6
  children: [
@@ -19,5 +19,4 @@ var r = e(({ label: e, id: r, children: i, ...a }, o) => /* @__PURE__ */ n("div"
19
19
  ]
20
20
  }));
21
21
  r.displayName = "PktInput";
22
- //#endregion
23
22
  export { r as PktInput };
@@ -1,37 +1,33 @@
1
1
  "use client";
2
2
  import { INPUT_WRAPPER_DEFAULTS as e } from "../../shared-types/input-wrapper.js";
3
+ import { useFocusModality as t } from "../../hooks/useFocusModality.js";
4
+ import { useGeneratedId as n } from "../../hooks/useGeneratedId.js";
5
+ import { usePktStrings as r } from "../../hooks/usePktStrings.js";
6
+ import { formatString as i } from "../../shared-strings/format.js";
7
+ import { counterStatusId as a, isCounterExceeded as o } from "../../shared-utils/forms/described-by.js";
3
8
  import "../../shared-types/index.js";
4
- import { formatString as t } from "../../shared-strings/format.js";
5
- import { usePktStrings as n } from "../../hooks/usePktStrings.js";
6
- import { PktAlert as r } from "../alert/Alert.js";
7
- import { useGeneratedId as i } from "../../hooks/useGeneratedId.js";
8
- import { useFocusModality as a } from "../../hooks/useFocusModality.js";
9
- import { counterStatusId as o, isCounterExceeded as s } from "../../shared-utils/forms/described-by.js";
9
+ import { PktAlert as s } from "../alert/Alert.js";
10
10
  import { PktHelptext as c } from "../helptext/Helptext.js";
11
11
  import { forwardRef as l } from "react";
12
12
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
13
- //#region src/components/inputwrapper/InputWrapper.tsx
13
+ // src/components/inputwrapper/InputWrapper.tsx
14
14
  var p = l(({ id: l, forId: p, label: m, helptext: h, helptextDropdown: g, helptextDropdownButton: _, counter: v, counterCurrent: y = e.counterCurrent, counterMaxLength: b, optionalTag: x = e.optionalTag, optionalText: S, requiredTag: C = e.requiredTag, requiredText: w, tagText: T = null, hasError: E = e.hasError, errorMessage: D, disabled: O = e.disabled, inline: k = e.inline, ariaDescribedby: ee, useWrapper: A = e.useWrapper, children: j, className: M = "", hasFieldset: N = e.hasFieldset, layout: P = e.layout, role: F, counterPosition: I = e.counterPosition, size: L = e.size, strings: R, onFocus: z, onBlur: B }, V) => {
15
- let H = a(V), U = n(["forms", "validation"], R), W = i(p), G = [...new Set([ee || (h ? `${W}-helptext` : ""), E && D ? `${W}-error` : ""].join(" ").split(" ").filter(Boolean))].join(" ") || void 0, K = !!v, q = K && I === "top", J = K && I === "bottom", Y = [
15
+ let H = t(V), U = r(["forms", "validation"], R), W = n(p), G = [...new Set([ee || (h ? `${W}-helptext` : ""), E && D ? `${W}-error` : ""].join(" ").split(" ").filter(Boolean))].join(" ") || void 0, K = !!v, q = K && I === "top", J = K && I === "bottom", Y = [
16
16
  "pkt-inputwrapper",
17
17
  M,
18
18
  E ? "pkt-inputwrapper--error" : "",
19
19
  O ? "pkt-inputwrapper--disabled" : "",
20
20
  k ? "pkt-inputwrapper--inline" : "",
21
21
  L ? `pkt-inputwrapper--${L}` : ""
22
- ].filter(Boolean).join(" "), X = [
23
- "pkt-tag",
24
- "pkt-tag--small",
25
- "pkt-tag--thin-text"
26
- ].join(" "), Z = s(y, b), Q = K ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
22
+ ].filter(Boolean).join(" "), X = "pkt-tag pkt-tag--small pkt-tag--thin-text", Z = o(y, b), Q = K ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
27
23
  className: "pkt-input__counter",
28
24
  "aria-hidden": "true",
29
25
  children: [y, b ? `/${b}` : ""]
30
26
  }), /* @__PURE__ */ d("div", {
31
27
  className: "pkt-sr-only",
32
- id: o(W),
28
+ id: a(W),
33
29
  "aria-live": "polite",
34
- children: Z ? t(U.validation.counterExceeded, {
30
+ children: Z ? i(U.validation.counterExceeded, {
35
31
  current: y,
36
32
  max: b ?? 0
37
33
  }) : ""
@@ -92,7 +88,7 @@ var p = l(({ id: l, forId: p, label: m, helptext: h, helptextDropdown: g, helpte
92
88
  J && Q,
93
89
  E && D && /* @__PURE__ */ d("div", {
94
90
  className: "pkt-inputwrapper__alert-wrapper",
95
- children: /* @__PURE__ */ d(r, {
91
+ children: /* @__PURE__ */ d(s, {
96
92
  skin: "error",
97
93
  size: ie,
98
94
  "aria-live": "assertive",
@@ -126,5 +122,4 @@ var p = l(({ id: l, forId: p, label: m, helptext: h, helptextDropdown: g, helpte
126
122
  });
127
123
  });
128
124
  p.displayName = "PktInputWrapper";
129
- //#endregion
130
125
  export { p as PktInputWrapper };
@@ -2,7 +2,7 @@ import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { require_classnames as t } from "../../node_modules/classnames/index.js";
3
3
  import { PktIcon as n } from "../icon/Icon.js";
4
4
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
- //#region src/components/link/Link.tsx
5
+ // src/components/link/Link.tsx
6
6
  var o = /* @__PURE__ */ e(t(), 1), s = ({ href: e, iconName: t, className: s, iconPosition: c, target: l, renderLink: u, children: d, ...f }) => {
7
7
  let p = {
8
8
  "pkt-link": !0,
@@ -28,5 +28,4 @@ var o = /* @__PURE__ */ e(t(), 1), s = ({ href: e, iconName: t, className: s, ic
28
28
  });
29
29
  };
30
30
  s.displayName = "PktLink";
31
- //#endregion
32
31
  export { s as PktLink };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { LINKCARD_LIGHT_ONLY_SKINS as t } from "../../shared-types/linkcard.js";
4
- import "../../shared-types/index.js";
5
4
  import { require_classnames as n } from "../../node_modules/classnames/index.js";
5
+ import "../../shared-types/index.js";
6
6
  import { PktIcon as r } from "../icon/Icon.js";
7
7
  import { usePktStrings as i } from "../../hooks/usePktStrings.js";
8
8
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
9
- //#region src/components/linkcard/LinkCard.tsx
9
+ // src/components/linkcard/LinkCard.tsx
10
10
  var s = /* @__PURE__ */ e(n(), 1), c = ({ children: e, skin: n, title: c, href: l, iconName: u, openInNewTab: d, className: f, strings: p, ...m }) => {
11
11
  let h = i(["linkcard"], p), g = ["pkt-linkcard", n && `pkt-linkcard--${n}`].filter(Boolean).join(" ");
12
12
  return /* @__PURE__ */ o("a", {
@@ -37,5 +37,4 @@ var s = /* @__PURE__ */ e(n(), 1), c = ({ children: e, skin: n, title: c, href:
37
37
  });
38
38
  };
39
39
  c.displayName = "PktLinkCard";
40
- //#endregion
41
40
  export { c as PktLinkCard };
@@ -2,12 +2,12 @@
2
2
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { ANIMATION_DEFAULT_PATH as t } from "../../shared-types/icon.js";
4
4
  import { LOADER_DEFAULTS as n } from "../../shared-types/loader.js";
5
- import "../../shared-types/index.js";
6
5
  import { require_classnames as r } from "../../node_modules/classnames/index.js";
6
+ import "../../shared-types/index.js";
7
7
  import { PktIcon as i } from "../icon/Icon.js";
8
8
  import { forwardRef as a, useEffect as o, useState as s } from "react";
9
9
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
10
- //#region src/components/loader/Loader.tsx
10
+ // src/components/loader/Loader.tsx
11
11
  var u = /* @__PURE__ */ e(r(), 1);
12
12
  typeof window < "u" && (window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/latest/animations/");
13
13
  var d = (e) => {
@@ -45,5 +45,4 @@ var d = (e) => {
45
45
  });
46
46
  });
47
47
  f.displayName = "PktLoader";
48
- //#endregion
49
48
  export { f as PktLoader };
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { MESSAGEBOX_DEFAULTS as t, MESSAGEBOX_LIGHT_ONLY_SKINS as n } from "../../shared-types/messagebox.js";
4
- import "../../shared-types/index.js";
5
4
  import { require_classnames as r } from "../../node_modules/classnames/index.js";
6
- import { PktIcon as i } from "../icon/Icon.js";
7
- import { usePktStrings as a } from "../../hooks/usePktStrings.js";
5
+ import "../../shared-types/index.js";
6
+ import { usePktStrings as i } from "../../hooks/usePktStrings.js";
7
+ import { PktIcon as a } from "../icon/Icon.js";
8
8
  import { useCallback as o, useState as s } from "react";
9
9
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
10
- //#region src/components/messagebox/Messagebox.tsx
10
+ // src/components/messagebox/Messagebox.tsx
11
11
  var u = /* @__PURE__ */ e(r(), 1), d = ({ children: e, className: r, skin: d = t.skin, title: f, compact: p = t.compact, closable: m = t.closable, onClose: h, strings: g, ..._ }) => {
12
- let v = a(["generic"], g), [y, b] = s(!1), x = {
12
+ let v = i(["generic"], g), [y, b] = s(!1), x = {
13
13
  "pkt-messagebox": !0,
14
14
  "pkt-messagebox--compact": p,
15
15
  [`pkt-messagebox--${d}`]: d,
@@ -29,7 +29,7 @@ var u = /* @__PURE__ */ e(r(), 1), d = ({ children: e, className: r, skin: d = t
29
29
  onClick: S,
30
30
  className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
31
31
  "aria-label": v.generic.close,
32
- children: /* @__PURE__ */ c(i, {
32
+ children: /* @__PURE__ */ c(a, {
33
33
  name: "close",
34
34
  className: "pkt-link__icon"
35
35
  })
@@ -47,5 +47,4 @@ var u = /* @__PURE__ */ e(r(), 1), d = ({ children: e, className: r, skin: d = t
47
47
  });
48
48
  };
49
49
  d.displayName = "PktMessagebox";
50
- //#endregion
51
50
  export { d as PktMessagebox };
@@ -1,32 +1,32 @@
1
1
  "use client";
2
2
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { require_classnames as t } from "../../node_modules/classnames/index.js";
4
- import { PktIcon as n } from "../icon/Icon.js";
5
- import { PktButton as r } from "../button/Button.js";
6
- import { usePktStrings as i } from "../../hooks/usePktStrings.js";
7
- import { useGeneratedId as a } from "../../hooks/useGeneratedId.js";
8
- import { createScrollLockToken as o, setScrollLock as s } from "../../shared-utils/scroll-lock/index.js";
4
+ import { createScrollLockToken as n, setScrollLock as r } from "../../shared-utils/scroll-lock/index.js";
5
+ import { useGeneratedId as i } from "../../hooks/useGeneratedId.js";
6
+ import { usePktStrings as a } from "../../hooks/usePktStrings.js";
7
+ import { PktButton as o } from "../button/Button.js";
8
+ import { PktIcon as s } from "../icon/Icon.js";
9
9
  import { forwardRef as c, useCallback as l, useEffect as u, useRef as d } from "react";
10
10
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
11
- //#region src/components/modal/Modal.tsx
11
+ // src/components/modal/Modal.tsx
12
12
  var m = /* @__PURE__ */ e(t(), 1), h = c(({ children: e, className: t, open: c = !1, headingText: h = "", headingIconName: g, headingIconPath: _, hideCloseButton: v = !1, closeOnBackdropClick: y = !1, size: b = "medium", removePadding: x = !1, closeButtonSkin: S = "blue", variant: C = "dialog", drawerPosition: w = "right", transparentBackdrop: T = !1, onClose: E, strings: D, ...O }, k) => {
13
- let A = i(["generic"], D), j = d(null), M = d(o()), N = a(), P = `pkt-modal__headingText-${N}`, F = `pkt-modal__content-${N}`, I = l((e) => {
13
+ let A = a(["generic"], D), j = d(null), M = d(n()), N = i(), P = `pkt-modal__headingText-${N}`, F = `pkt-modal__content-${N}`, I = l((e) => {
14
14
  j.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
15
15
  }, [k]), L = l(() => {
16
- j.current?.open && (j.current.close(), s(M.current, !1), E?.());
16
+ j.current?.open && (j.current.close(), r(M.current, !1), E?.());
17
17
  }, [E]);
18
18
  u(() => {
19
- c ? (j.current?.open || j.current?.showModal(), s(M.current, !0)) : (j.current?.open && j.current.close(), s(M.current, !1));
19
+ c ? (j.current?.open || j.current?.showModal(), r(M.current, !0)) : (j.current?.open && j.current.close(), r(M.current, !1));
20
20
  }, [c]), u(() => {
21
21
  let e = M.current;
22
22
  return () => {
23
- s(e, !1);
23
+ r(e, !1);
24
24
  };
25
25
  }, []);
26
26
  let R = l((e) => {
27
27
  y && e.target === j.current && L();
28
28
  }, [y, L]), z = l(() => {
29
- s(M.current, !1), E?.();
29
+ r(M.current, !1), E?.();
30
30
  }, [E]), B = S === "blue", V = (0, m.default)({
31
31
  "pkt-modal": !0,
32
32
  "pkt-modal--removePadding": x,
@@ -54,7 +54,7 @@ var m = /* @__PURE__ */ e(t(), 1), h = c(({ children: e, className: t, open: c =
54
54
  h ? /* @__PURE__ */ p("h1", {
55
55
  id: P,
56
56
  className: (0, m.default)("pkt-modal__headingText", "pkt-txt-24", { "pkt-modal__headingText--hasIcon": g }),
57
- children: [g && /* @__PURE__ */ f(n, {
57
+ children: [g && /* @__PURE__ */ f(s, {
58
58
  className: "pkt-modal__headingIcon",
59
59
  name: g,
60
60
  ..._ && { path: _ }
@@ -62,7 +62,7 @@ var m = /* @__PURE__ */ e(t(), 1), h = c(({ children: e, className: t, open: c =
62
62
  }) : /* @__PURE__ */ f("div", { className: "pkt-modal__headingText" }),
63
63
  v ? /* @__PURE__ */ f("div", { className: "pkt-modal__noCloseButton" }) : /* @__PURE__ */ f("div", {
64
64
  className: (0, m.default)("pkt-modal__closeButton", { [`pkt-modal__closeButton--${S}`]: !0 }),
65
- children: /* @__PURE__ */ f(r, {
65
+ children: /* @__PURE__ */ f(o, {
66
66
  onClick: L,
67
67
  "aria-label": A.generic.close,
68
68
  iconName: "close",
@@ -85,5 +85,4 @@ var m = /* @__PURE__ */ e(t(), 1), h = c(({ children: e, className: t, open: c =
85
85
  });
86
86
  });
87
87
  h.displayName = "PktModal";
88
- //#endregion
89
88
  export { h as PktModal };
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { PROGRESSBAR_DEFAULTS as t } from "../../shared-types/progressbar.js";
4
- import "../../shared-types/index.js";
5
4
  import { require_classnames as n } from "../../node_modules/classnames/index.js";
5
+ import "../../shared-types/index.js";
6
6
  import { formatString as r } from "../../shared-strings/format.js";
7
- import { usePktStrings as i } from "../../hooks/usePktStrings.js";
8
- import { useGeneratedId as a } from "../../hooks/useGeneratedId.js";
7
+ import { useGeneratedId as i } from "../../hooks/useGeneratedId.js";
8
+ import { usePktStrings as a } from "../../hooks/usePktStrings.js";
9
9
  import { forwardRef as o, useEffect as s, useRef as c, useState as l } from "react";
10
10
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
11
- //#region src/components/progressbar/Progressbar.tsx
11
+ // src/components/progressbar/Progressbar.tsx
12
12
  var f = /* @__PURE__ */ e(n(), 1), p = o(({ ariaLabel: e, ariaLabelledby: n, ariaLive: o = t.ariaLive, ariaValueText: p, id: m, role: h = t.role, skin: g = t.skin, statusPlacement: _ = t.statusPlacement, statusType: v = t.statusType, title: y, titlePosition: b = t.titlePosition, valueCurrent: x = t.valueCurrent, valueMax: S = t.valueMax, valueMin: C = t.valueMin, strings: w, className: T, ...E }, D) => {
13
- let O = a(m), k = i(["progressbar"], w), A = c(null), [j, M] = l(0);
13
+ let O = i(m), k = a(["progressbar"], w), A = c(null), [j, M] = l(0);
14
14
  s(() => {
15
15
  A.current && M(A.current.getBoundingClientRect().width || 0);
16
16
  }, [x]);
@@ -65,5 +65,4 @@ var f = /* @__PURE__ */ e(n(), 1), p = o(({ ariaLabel: e, ariaLabelledby: n, ari
65
65
  });
66
66
  });
67
67
  p.displayName = "PktProgressbar";
68
- //#endregion
69
68
  export { p as PktProgressbar };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { RADIOBUTTON_DEFAULTS as e } from "../../shared-types/radiobutton.js";
3
- import "../../shared-types/index.js";
4
3
  import { usePktStrings as t } from "../../hooks/usePktStrings.js";
5
4
  import { useGeneratedId as n } from "../../hooks/useGeneratedId.js";
5
+ import "../../shared-types/index.js";
6
6
  import { useRadioGroupContext as r } from "../radiogroup/RadioGroupContext.js";
7
7
  import { forwardRef as i, useEffect as a } from "react";
8
8
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
9
- //#region src/components/radio/RadioButton.tsx
9
+ // src/components/radio/RadioButton.tsx
10
10
  var l = i(({ id: i, name: l, label: u, className: d, hasTile: f = e.hasTile, inputSize: p, disabled: m = e.disabled, checkHelptext: h, hasError: g = e.hasError, defaultChecked: _, checked: v, optionalTag: y, optionalText: b, requiredTag: x, requiredText: S, strings: C, tagText: w, value: T, required: E, onChange: D, "aria-describedby": O, ...k }, A) => {
11
11
  let j = t(["forms"], C), M = n(i), N = r(), P = T ?? "on", F = N?.value, I = F !== void 0, L = I ? F === P : v, R = _ ?? (N?.defaultValue === void 0 ? void 0 : N.defaultValue === P), z = f || !!N?.hasTile, B = g || !!N?.hasError, V = m || !!N?.disabled;
12
12
  a(() => {
@@ -26,11 +26,7 @@ var l = i(({ id: i, name: l, label: u, className: d, hasTile: f = e.hasTile, inp
26
26
  "pkt-input-check__input",
27
27
  z ? "pkt-input-check__input--tile" : "",
28
28
  V && z ? "pkt-input-check__input--tile-disabled" : ""
29
- ].filter(Boolean).join(" "), G = ["pkt-input-check__input-checkbox", B ? "pkt-input-check__input-checkbox--error" : ""].filter(Boolean).join(" "), K = ["pkt-input-check__input-label", V ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), q = [
30
- "pkt-tag",
31
- "pkt-tag--small",
32
- "pkt-tag--thin-text"
33
- ].join(" "), J = () => /* @__PURE__ */ c(o, { children: [
29
+ ].filter(Boolean).join(" "), G = ["pkt-input-check__input-checkbox", B ? "pkt-input-check__input-checkbox--error" : ""].filter(Boolean).join(" "), K = ["pkt-input-check__input-label", V ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), q = "pkt-tag pkt-tag--small pkt-tag--thin-text", J = () => /* @__PURE__ */ c(o, { children: [
34
30
  w && /* @__PURE__ */ s("span", {
35
31
  className: q + " pkt-tag--gray",
36
32
  children: w
@@ -82,5 +78,4 @@ var l = i(({ id: i, name: l, label: u, className: d, hasTile: f = e.hasTile, inp
82
78
  });
83
79
  });
84
80
  l.displayName = "PktRadioButton";
85
- //#endregion
86
81
  export { l as PktRadioButton };
@@ -7,7 +7,7 @@ import { PktInputWrapper as r } from "../inputwrapper/InputWrapper.js";
7
7
  import { RadioGroupContext as i } from "./RadioGroupContext.js";
8
8
  import { forwardRef as a, useMemo as o } from "react";
9
9
  import { jsx as s } from "react/jsx-runtime";
10
- //#region src/components/radiogroup/RadioGroup.tsx
10
+ // src/components/radiogroup/RadioGroup.tsx
11
11
  var c = a(({ id: a, name: c, label: l, helptext: u, helptextDropdown: d, helptextDropdownButton: f, value: p, defaultValue: m, layout: h = e.layout, inputSize: g = e.inputSize, hasTile: _ = e.hasTile, required: v = e.required, disabled: y = e.disabled, hasError: b = e.hasError, errorMessage: x, useWrapper: S = e.useWrapper, optionalTag: C = e.optionalTag, optionalText: w, requiredTag: T = e.requiredTag, requiredText: E, tagText: D, strings: O, className: k, children: A, onChange: j, onValueChange: M, onFocus: N, onBlur: P }, F) => {
12
12
  let I = t(a), L = c || I, R = n({
13
13
  type: "radio",
@@ -67,5 +67,4 @@ var c = a(({ id: a, name: c, label: l, helptext: u, helptextDropdown: d, helptex
67
67
  });
68
68
  });
69
69
  c.displayName = "PktRadioGroup";
70
- //#endregion
71
70
  export { c as PktRadioGroup };
@@ -1,5 +1,4 @@
1
1
  import { createContext as e, useContext as t } from "react";
2
- //#region src/components/radiogroup/RadioGroupContext.ts
2
+ // src/components/radiogroup/RadioGroupContext.ts
3
3
  var n = e(null), r = () => t(n);
4
- //#endregion
5
4
  export { n as RadioGroupContext, r as useRadioGroupContext };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { PktButton as e } from "../button/Button.js";
3
- import { usePktStrings as t } from "../../hooks/usePktStrings.js";
4
- import { textKey as n, withStableKeys as r } from "../../utils/stableKeys.js";
5
- import { useGeneratedId as i } from "../../hooks/useGeneratedId.js";
6
- import { useFocusModality as a } from "../../hooks/useFocusModality.js";
2
+ import { useFocusModality as e } from "../../hooks/useFocusModality.js";
3
+ import { useGeneratedId as t } from "../../hooks/useGeneratedId.js";
4
+ import { PktButton as n } from "../button/Button.js";
5
+ import { usePktStrings as r } from "../../hooks/usePktStrings.js";
6
+ import { textKey as i, withStableKeys as a } from "../../utils/stableKeys.js";
7
7
  import { forwardRef as o } from "react";
8
8
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
9
- //#region src/components/searchinput/SearchInput.tsx
9
+ // src/components/searchinput/SearchInput.tsx
10
10
  var u = o(({ appearance: o = "local", inputSize: u = "medium", disabled: d = !1, fullwidth: f = !1, id: p, label: m, name: h, placeholder: g, suggestions: _, value: v = "", action: y, method: b, onChange: x, onSearch: S, onSuggestionClick: C, strings: w, ...T }, E) => {
11
- let D = t(["searchinput"], w), O = g ?? D.searchinput.placeholder, k = (e, t) => {
11
+ let D = r(["searchinput"], w), O = g ?? D.searchinput.placeholder, k = (e, t) => {
12
12
  e ? e() : C && C(t);
13
13
  }, A = (e) => {
14
14
  v = e.target.value;
@@ -17,10 +17,10 @@ var u = o(({ appearance: o = "local", inputSize: u = "medium", disabled: d = !1,
17
17
  `pkt-searchinput--${o}`,
18
18
  `pkt-searchinput--${u}`,
19
19
  f && "pkt-searchinput--fullwidth"
20
- ].filter(Boolean).join(" "), M = i(p), N = {
20
+ ].filter(Boolean).join(" "), M = t(p), N = {
21
21
  role: "search",
22
22
  className: j,
23
- ...a()
23
+ ...e()
24
24
  }, P = (e) => y ? /* @__PURE__ */ c("form", {
25
25
  ...N,
26
26
  action: y,
@@ -61,7 +61,7 @@ var u = o(({ appearance: o = "local", inputSize: u = "medium", disabled: d = !1,
61
61
  e.key === "Enter" && (e.preventDefault(), S(v));
62
62
  }),
63
63
  ...T
64
- }), /* @__PURE__ */ c(e, {
64
+ }), /* @__PURE__ */ c(n, {
65
65
  className: `pkt-searchinput__button ${o === "local" ? "pkt-input-icon" : ""}`,
66
66
  variant: "icon-only",
67
67
  iconName: "magnifying-glass-big",
@@ -80,7 +80,7 @@ var u = o(({ appearance: o = "local", inputSize: u = "medium", disabled: d = !1,
80
80
  id: `${M}-suggestions`,
81
81
  className: "pkt-searchinput__suggestions",
82
82
  "aria-live": "assertive",
83
- children: r(_, (e) => `${e.href ?? ""}|${n(e.title)}|${n(e.text)}`).map(({ item: e, key: t }, n) => e.href ? /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c("a", {
83
+ children: a(_, (e) => `${e.href ?? ""}|${i(e.title)}|${i(e.text)}`).map(({ item: e, key: t }, n) => e.href ? /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c("a", {
84
84
  href: e.href,
85
85
  className: I(e),
86
86
  onClick: () => k(e.onClick, n),
@@ -98,5 +98,4 @@ var u = o(({ appearance: o = "local", inputSize: u = "medium", disabled: d = !1,
98
98
  ] }));
99
99
  });
100
100
  u.displayName = "PktSearchInput";
101
- //#endregion
102
101
  export { u as PktSearchInput };
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import { SELECT_DEFAULTS as e } from "../../shared-types/select.js";
3
- import "../../shared-types/index.js";
4
- import { useGeneratedId as t } from "../../hooks/useGeneratedId.js";
3
+ import { PktInputWrapper as t } from "../inputwrapper/InputWrapper.js";
5
4
  import { describedByIds as n } from "../../shared-utils/forms/described-by.js";
6
- import { PktInputWrapper as r } from "../inputwrapper/InputWrapper.js";
5
+ import { useGeneratedId as r } from "../../hooks/useGeneratedId.js";
6
+ import "../../shared-types/index.js";
7
7
  import { forwardRef as i } from "react";
8
8
  import { jsx as a } from "react/jsx-runtime";
9
- //#region src/components/select/Select.tsx
9
+ // src/components/select/Select.tsx
10
10
  var o = i(({ ariaDescribedby: i, ariaLabelledby: o, children: s, className: c, disabled: l = e.disabled, errorMessage: u, hasError: d = e.hasError, helptext: f, helptextDropdown: p, helptextDropdownButton: m, id: h, inline: g = e.inline, fullwidth: _ = e.fullwidth, label: v, name: y, optionalTag: b = e.optionalTag, optionalText: x, requiredTag: S = e.requiredTag, requiredText: C, tagText: w, useWrapper: T = e.useWrapper, hasFieldset: E, inputSize: D = e.inputSize, strings: O, ...k }, A) => {
11
- let j = t(h), M = [c, "pkt-select"].filter(Boolean).join(" ");
11
+ let j = r(h), M = [c, "pkt-select"].filter(Boolean).join(" ");
12
12
  return /* @__PURE__ */ a("div", {
13
13
  className: M,
14
- children: /* @__PURE__ */ a(r, {
14
+ children: /* @__PURE__ */ a(t, {
15
15
  strings: O,
16
16
  forId: `${j}-input`,
17
17
  label: v,
@@ -53,5 +53,4 @@ var o = i(({ ariaDescribedby: i, ariaLabelledby: o, children: s, className: c, d
53
53
  });
54
54
  });
55
55
  o.displayName = "PktSelect";
56
- //#endregion
57
56
  export { o as PktSelect };
@@ -1,7 +1,7 @@
1
1
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { require_classnames as t } from "../../node_modules/classnames/index.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- //#region src/components/stepper/Step.tsx
4
+ // src/components/stepper/Step.tsx
5
5
  var i = /* @__PURE__ */ e(t(), 1), a = /* @__PURE__ */ n("svg", {
6
6
  xmlns: "http://www.w3.org/2000/svg",
7
7
  width: "24",
@@ -74,5 +74,4 @@ var i = /* @__PURE__ */ e(t(), 1), a = /* @__PURE__ */ n("svg", {
74
74
  })
75
75
  ]
76
76
  });
77
- //#endregion
78
77
  export { c as PktStep };
@@ -2,7 +2,7 @@ import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { require_classnames as t } from "../../node_modules/classnames/index.js";
3
3
  import { Children as n, cloneElement as r, forwardRef as i, isValidElement as a } from "react";
4
4
  import { jsx as o } from "react/jsx-runtime";
5
- //#region src/components/stepper/Stepper.tsx
5
+ // src/components/stepper/Stepper.tsx
6
6
  var s = /* @__PURE__ */ e(t(), 1), c = i(({ activeStep: e, className: t, children: i, hideNonActiveSteps: c = !1, hideNonActiveStepsContent: l = !0, orientation: u = "vertical", ...d }, f) => {
7
7
  let p = (0, s.default)(t, "pkt-stepper", u === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"), m = n.map(i, (t, n) => a(t) ? r(t, { className: (0, s.default)(t.props.className, {
8
8
  "pkt-step--hideStep": c && n !== e,
@@ -17,5 +17,4 @@ var s = /* @__PURE__ */ e(t(), 1), c = i(({ activeStep: e, className: t, childre
17
17
  });
18
18
  });
19
19
  c.displayName = "PktStepper";
20
- //#endregion
21
20
  export { c as PktStepper };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { createContext as e, useContext as t, useMemo as n } from "react";
3
3
  import { jsx as r } from "react/jsx-runtime";
4
- //#region src/components/strings/PktStringsProvider.tsx
4
+ // src/components/strings/PktStringsProvider.tsx
5
5
  var i = e(void 0), a = ({ strings: e, children: a }) => {
6
6
  let o = t(i), s = n(() => {
7
7
  if (!o) return e;
@@ -17,5 +17,4 @@ var i = e(void 0), a = ({ strings: e, children: a }) => {
17
17
  children: a
18
18
  });
19
19
  };
20
- //#endregion
21
20
  export { i as PktStringsContext, a as PktStringsProvider };
@@ -1,9 +1,9 @@
1
1
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { TABLE_DEFAULTS as t } from "../../shared-types/table.js";
3
- import "../../shared-types/index.js";
4
3
  import { require_classnames as n } from "../../node_modules/classnames/index.js";
4
+ import "../../shared-types/index.js";
5
5
  import { jsx as r } from "react/jsx-runtime";
6
- //#region src/components/table/Table.tsx
6
+ // src/components/table/Table.tsx
7
7
  var i = /* @__PURE__ */ e(n(), 1), a = !1, o = ({ className: e, compact: n = t.compact, skin: o = t.skin, responsiveView: s = t.responsiveView, children: c, ...l }) => (o === "zebra-blue" && !a && (a = !0, console.warn("PktTable: skin=\"zebra-blue\" is deprecated and will be removed in a future version. Please use skin=\"zebra\" instead.")), /* @__PURE__ */ r("table", {
8
8
  "data-testid": "pkt-table",
9
9
  className: (0, i.default)(e, "pkt-table", {
@@ -17,5 +17,4 @@ var i = /* @__PURE__ */ e(n(), 1), a = !1, o = ({ className: e, compact: n = t.c
17
17
  ...l,
18
18
  children: c
19
19
  }));
20
- //#endregion
21
20
  export { o as PktTable };
@@ -1,7 +1,7 @@
1
1
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { require_classnames as t } from "../../node_modules/classnames/index.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
- //#region src/components/table/TableBody.tsx
4
+ // src/components/table/TableBody.tsx
5
5
  var r = /* @__PURE__ */ e(t(), 1), i = ({ id: e, children: t, className: i, ...a }) => /* @__PURE__ */ n("tbody", {
6
6
  id: e,
7
7
  className: (0, r.default)(i, "pkt-table__body", {}),
@@ -9,5 +9,4 @@ var r = /* @__PURE__ */ e(t(), 1), i = ({ id: e, children: t, className: i, ...a
9
9
  ...a,
10
10
  children: t
11
11
  });
12
- //#endregion
13
12
  export { i as PktTableBody };
@@ -1,7 +1,7 @@
1
1
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { require_classnames as t } from "../../node_modules/classnames/index.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
- //#region src/components/table/TableDataCell.tsx
4
+ // src/components/table/TableDataCell.tsx
5
5
  var r = /* @__PURE__ */ e(t(), 1), i = ({ children: e, className: t, dataLabel: i, ...a }) => /* @__PURE__ */ n("td", {
6
6
  className: (0, r.default)(t, "pkt-table__data-cell", {}),
7
7
  "data-label": i,
@@ -10,5 +10,4 @@ var r = /* @__PURE__ */ e(t(), 1), i = ({ children: e, className: t, dataLabel:
10
10
  ...a,
11
11
  children: e
12
12
  });
13
- //#endregion
14
13
  export { i as PktTableDataCell };
@@ -1,12 +1,11 @@
1
1
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { require_classnames as t } from "../../node_modules/classnames/index.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
- //#region src/components/table/TableHeader.tsx
4
+ // src/components/table/TableHeader.tsx
5
5
  var r = /* @__PURE__ */ e(t(), 1), i = ({ className: e, children: t, ...i }) => /* @__PURE__ */ n("thead", {
6
6
  className: (0, r.default)(e, "pkt-table__header", {}),
7
7
  role: "rowgroup",
8
8
  ...i,
9
9
  children: t
10
10
  });
11
- //#endregion
12
11
  export { i as PktTableHeader };
@@ -1,12 +1,11 @@
1
1
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { require_classnames as t } from "../../node_modules/classnames/index.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
- //#region src/components/table/TableHeaderCell.tsx
4
+ // src/components/table/TableHeaderCell.tsx
5
5
  var r = /* @__PURE__ */ e(t(), 1), i = ({ className: e, children: t, ...i }) => /* @__PURE__ */ n("th", {
6
6
  className: (0, r.default)(e, "pkt-table__header-cell", {}),
7
7
  role: "columnheader",
8
8
  ...i,
9
9
  children: t
10
10
  });
11
- //#endregion
12
11
  export { i as PktTableHeaderCell };
@@ -1,12 +1,11 @@
1
1
  import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { require_classnames as t } from "../../node_modules/classnames/index.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
- //#region src/components/table/TableRow.tsx
4
+ // src/components/table/TableRow.tsx
5
5
  var r = /* @__PURE__ */ e(t(), 1), i = ({ className: e, children: t, ...i }) => /* @__PURE__ */ n("tr", {
6
6
  className: (0, r.default)(e, "pkt-table__row", {}),
7
7
  role: "row",
8
8
  ...i,
9
9
  children: t
10
10
  });
11
- //#endregion
12
11
  export { i as PktTableRow };
@@ -4,7 +4,7 @@ import { PktTag as t } from "../tag/Tag.js";
4
4
  import { useTabsContext as n } from "./Tabs.js";
5
5
  import { forwardRef as r } from "react";
6
6
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
- //#region src/components/tabs/TabItem.tsx
7
+ // src/components/tabs/TabItem.tsx
8
8
  var s = r(({ children: r, active: s, disabled: c = !1, href: l, onClick: u, icon: d, controls: f, tag: p, tagSkin: m, index: h = 0 }, g) => {
9
9
  let { arrowNav: _, registerTabRef: v, handleKeyPress: y, selectTab: b } = n(), x = !!s && !c, S = {
10
10
  "aria-selected": _ ? x : void 0,
@@ -48,5 +48,4 @@ var s = r(({ children: r, active: s, disabled: c = !1, href: l, onClick: u, icon
48
48
  });
49
49
  });
50
50
  s.displayName = "PktTabItem";
51
- //#endregion
52
51
  export { s as PktTabItem };