@oslokommune/punkt-react 19.18.1 → 19.18.2
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/CHANGELOG.md +22 -0
- package/dist/_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/defineProperty.js +12 -0
- package/dist/_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/toPrimitive.js +14 -0
- package/dist/_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/toPropertyKey.js +9 -0
- package/dist/_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/typeof.js +11 -0
- package/dist/components/fileupload/types.js +6 -8
- package/dist/components/messagebox/Messagebox.js +24 -25
- package/dist/punkt-react.cjs +1 -1
- package/package.json +3 -2
- package/src/components/combobox/useComboboxState.ts +1 -0
- package/src/components/inputwrapper/InputWrapper.tsx +0 -2
- package/src/components/messagebox/Messagebox.tsx +2 -4
- package/src/components/stepper/Stepper.tsx +2 -0
- package/src/components/tabs/Tabs.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,28 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [19.18.2](https://github.com/oslokommune/punkt/compare/19.18.1...19.18.2) (2026-10-20)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
* Safari 15 i React, nettlesersjekk og lint i CI (#3775). - CI: Kjør lint i PR-workflowene, og rett feilene som lå på main
|
|
12
|
+
- CI: Sjekk at byggene ikke inneholder syntaks eller API-er Safari 15
|
|
13
|
+
mangler
|
|
14
|
+
- Elements: Ikke publiser typer for tester og dev-appen
|
|
15
|
+
- Elements: Fjern Babel, som ikke har vært i bruk siden Jest
|
|
16
|
+
- Elements: forwardSlots() venter til child er definert
|
|
17
|
+
- Elements: Riktige attributter på pkt-modal i header-demoene
|
|
18
|
+
- React: Bygg for Safari 15, så komponentene laster på eldre iPhoner
|
|
19
|
+
|
|
20
|
+
Fant masse greier med litt linting og sjekking av hva vi faktisk bygger
|
|
21
|
+
i pakkene våre. Litt mye krimskrams her, men alt hører på en måte sammen
|
|
22
|
+
under "kodeforbedringer"-paraplyen. Fant også ut at jeg kan få
|
|
23
|
+
forwardSlots til å feile dersom en child-komponent av en eller annen
|
|
24
|
+
grunn skulle drøye litt med å initialisere (dette skjer praktisk talt
|
|
25
|
+
aldri, men greit å ha en guard for det).
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
|
|
8
30
|
## [19.18.1](https://github.com/oslokommune/punkt/compare/19.18.0...19.18.1) (2026-10-20)
|
|
9
31
|
|
|
10
32
|
### Bug Fixes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import e from "./toPropertyKey.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
3
|
+
function t(t, n, r) {
|
|
4
|
+
return (n = e(n)) in t ? Object.defineProperty(t, n, {
|
|
5
|
+
value: r,
|
|
6
|
+
enumerable: !0,
|
|
7
|
+
configurable: !0,
|
|
8
|
+
writable: !0
|
|
9
|
+
}) : t[n] = r, t;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import e from "./typeof.js";
|
|
2
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
if (e(t) != "object" || !t) return t;
|
|
5
|
+
var r = t[Symbol.toPrimitive];
|
|
6
|
+
if (r !== void 0) {
|
|
7
|
+
var i = r.call(t, n || "default");
|
|
8
|
+
if (e(i) != "object") return i;
|
|
9
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
+
}
|
|
11
|
+
return (n === "string" ? String : Number)(t);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./typeof.js";
|
|
2
|
+
import t from "./toPrimitive.js";
|
|
3
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
var r = t(n, "string");
|
|
6
|
+
return e(r) == "symbol" ? r : r + "";
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
|
|
2
|
+
function e(t) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5
|
+
return typeof e;
|
|
6
|
+
} : function(e) {
|
|
7
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8
|
+
}, e(t);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as default };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/defineProperty.js";
|
|
2
|
+
import { uuidish as t } from "../../utils/stringutils.js";
|
|
2
3
|
//#region src/components/fileupload/types.ts
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
attributes;
|
|
7
|
-
constructor(t, n) {
|
|
8
|
-
this.fileId = n || e(), this.file = t, this.attributes = { targetFilename: t.name };
|
|
4
|
+
var n = class {
|
|
5
|
+
constructor(n, r) {
|
|
6
|
+
e(this, "fileId", void 0), e(this, "file", void 0), e(this, "attributes", void 0), this.fileId = r || t(), this.file = n, this.attributes = { targetFilename: n.name };
|
|
9
7
|
}
|
|
10
8
|
};
|
|
11
9
|
//#endregion
|
|
12
|
-
export {
|
|
10
|
+
export { n as FileItem };
|
|
@@ -4,47 +4,46 @@ import { MESSAGEBOX_DEFAULTS as t } from "../../shared-types/messagebox.js";
|
|
|
4
4
|
import { require_classnames as n } from "../../node_modules/classnames/index.js";
|
|
5
5
|
import { PktIcon as r } from "../icon/Icon.js";
|
|
6
6
|
import { usePktStrings as i } from "../../hooks/usePktStrings.js";
|
|
7
|
-
import {
|
|
8
|
-
import { jsx as
|
|
7
|
+
import { useCallback as a, useState as o } from "react";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/messagebox/Messagebox.tsx
|
|
10
|
-
var
|
|
11
|
-
let
|
|
10
|
+
var l = /* @__PURE__ */ e(n(), 1), u = ({ children: e, className: n, skin: u = t.skin, title: d, compact: f = t.compact, closable: p = t.closable, onClose: m, strings: h, ...g }) => {
|
|
11
|
+
let _ = i(["generic"], h), [v, y] = o(!1), b = {
|
|
12
12
|
"pkt-messagebox": !0,
|
|
13
|
-
"pkt-messagebox--compact":
|
|
14
|
-
[`pkt-messagebox--${
|
|
15
|
-
"pkt-messagebox--closable":
|
|
16
|
-
"pkt-hide":
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
}, [
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
...
|
|
22
|
-
className: (0,
|
|
23
|
-
ref: S,
|
|
13
|
+
"pkt-messagebox--compact": f,
|
|
14
|
+
[`pkt-messagebox--${u}`]: u,
|
|
15
|
+
"pkt-messagebox--closable": p,
|
|
16
|
+
"pkt-hide": v
|
|
17
|
+
}, x = a(() => {
|
|
18
|
+
y(!0), m && m();
|
|
19
|
+
}, [y, m]);
|
|
20
|
+
return /* @__PURE__ */ c("div", {
|
|
21
|
+
...g,
|
|
22
|
+
className: (0, l.default)(b, n),
|
|
24
23
|
children: [
|
|
25
|
-
|
|
24
|
+
p && /* @__PURE__ */ s("div", {
|
|
26
25
|
className: "pkt-messagebox__close",
|
|
27
|
-
children: /* @__PURE__ */
|
|
28
|
-
onClick:
|
|
26
|
+
children: /* @__PURE__ */ s("button", {
|
|
27
|
+
onClick: x,
|
|
29
28
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
|
|
30
|
-
"aria-label":
|
|
31
|
-
children: /* @__PURE__ */
|
|
29
|
+
"aria-label": _.generic.close,
|
|
30
|
+
children: /* @__PURE__ */ s(r, {
|
|
32
31
|
name: "close",
|
|
33
32
|
className: "pkt-link__icon"
|
|
34
33
|
})
|
|
35
34
|
})
|
|
36
35
|
}),
|
|
37
|
-
|
|
36
|
+
d && /* @__PURE__ */ s("div", {
|
|
38
37
|
className: "pkt-messagebox__title",
|
|
39
|
-
children:
|
|
38
|
+
children: d
|
|
40
39
|
}),
|
|
41
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ s("div", {
|
|
42
41
|
className: "pkt-messagebox__text",
|
|
43
42
|
children: e
|
|
44
43
|
})
|
|
45
44
|
]
|
|
46
45
|
});
|
|
47
46
|
};
|
|
48
|
-
|
|
47
|
+
u.displayName = "PktMessagebox";
|
|
49
48
|
//#endregion
|
|
50
|
-
export {
|
|
49
|
+
export { u as PktMessagebox };
|