@oslokommune/punkt-react 5.1.6 → 5.1.8
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 +35 -0
- package/dist/punkt-react.es.js +166 -163
- package/dist/punkt-react.umd.js +9 -9
- package/dist/tag/Tag.d.ts +2 -1
- package/package.json +3 -3
- package/src/components/tag/Tag.tsx +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,41 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [5.1.7](https://github.com/oslokommune/punkt/compare/5.1.6...5.1.7) (2023-06-28)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
* [978](https://github.com/oslokommune/punkt/issues/978) Ny farge og modifier - tag. --blue-light
|
|
21
|
+
--thin-text
|
|
22
|
+
* [918](https://github.com/oslokommune/punkt/issues/918) Oppdatere dependencies. * chore(all): #918 Semver from 7.4.0 to 7.5.3
|
|
23
|
+
|
|
24
|
+
* chore(vue2, react): #918 @astrojs/react and vue from 2.1.0 to 2.2.1
|
|
25
|
+
* bump semver from 7.5.1 to 7.5.2. Bumps [semver](https://github.com/npm/node-semver) from 7.5.1 to 7.5.2.
|
|
26
|
+
- [Release notes](https://github.com/npm/node-semver/releases)
|
|
27
|
+
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
|
|
28
|
+
- [Commits](https://github.com/npm/node-semver/compare/v7.5.1...v7.5.2)
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
updated-dependencies:
|
|
32
|
+
- dependency-name: semver
|
|
33
|
+
dependency-type: direct:development
|
|
34
|
+
...
|
|
35
|
+
|
|
36
|
+
Signed-off-by: dependabot[bot] <support@github.com>
|
|
37
|
+
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
|
|
8
43
|
## [5.1.6](https://github.com/oslokommune/punkt/compare/5.1.5...5.1.6) (2023-06-22)
|
|
9
44
|
|
|
10
45
|
### ⚠ BREAKING CHANGES
|
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import K, { useState as se, useEffect as ht, forwardRef as I } from "react";
|
|
2
2
|
function _t(o) {
|
|
3
3
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
4
4
|
}
|
|
@@ -17,18 +17,18 @@ function vt() {
|
|
|
17
17
|
if ($e)
|
|
18
18
|
return M;
|
|
19
19
|
$e = 1;
|
|
20
|
-
var o =
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
E !== void 0 && (
|
|
24
|
-
for (
|
|
25
|
-
c.call(h,
|
|
20
|
+
var o = K, l = Symbol.for("react.element"), s = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, u = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function d(k, h, E) {
|
|
22
|
+
var N, x = {}, T = null, j = null;
|
|
23
|
+
E !== void 0 && (T = "" + E), h.key !== void 0 && (T = "" + h.key), h.ref !== void 0 && (j = h.ref);
|
|
24
|
+
for (N in h)
|
|
25
|
+
c.call(h, N) && !n.hasOwnProperty(N) && (x[N] = h[N]);
|
|
26
26
|
if (k && k.defaultProps)
|
|
27
|
-
for (
|
|
28
|
-
x[
|
|
29
|
-
return { $$typeof: l, type: k, key:
|
|
27
|
+
for (N in h = k.defaultProps, h)
|
|
28
|
+
x[N] === void 0 && (x[N] = h[N]);
|
|
29
|
+
return { $$typeof: l, type: k, key: T, ref: j, props: x, _owner: u.current };
|
|
30
30
|
}
|
|
31
|
-
return M.Fragment = s, M.jsx =
|
|
31
|
+
return M.Fragment = s, M.jsx = d, M.jsxs = d, M;
|
|
32
32
|
}
|
|
33
33
|
var B = {};
|
|
34
34
|
/**
|
|
@@ -43,14 +43,14 @@ var B = {};
|
|
|
43
43
|
var Fe;
|
|
44
44
|
function kt() {
|
|
45
45
|
return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var o =
|
|
47
|
-
function
|
|
46
|
+
var o = K, l = Symbol.for("react.element"), s = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), k = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), A = Symbol.iterator, L = "@@iterator";
|
|
47
|
+
function V(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
50
|
var t = A && e[A] || e[L];
|
|
51
51
|
return typeof t == "function" ? t : null;
|
|
52
52
|
}
|
|
53
|
-
var
|
|
53
|
+
var O = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
54
|
function R(e) {
|
|
55
55
|
{
|
|
56
56
|
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -60,10 +60,10 @@ function kt() {
|
|
|
60
60
|
}
|
|
61
61
|
function Ie(e, t, a) {
|
|
62
62
|
{
|
|
63
|
-
var i =
|
|
63
|
+
var i = O.ReactDebugCurrentFrame, _ = i.getStackAddendum();
|
|
64
64
|
_ !== "" && (t += "%s", a = a.concat([_]));
|
|
65
|
-
var v = a.map(function(
|
|
66
|
-
return String(
|
|
65
|
+
var v = a.map(function(m) {
|
|
66
|
+
return String(m);
|
|
67
67
|
});
|
|
68
68
|
v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
|
|
69
69
|
}
|
|
@@ -71,7 +71,7 @@ function kt() {
|
|
|
71
71
|
var Ae = !1, We = !1, Ye = !1, Me = !1, Be = !1, ce;
|
|
72
72
|
ce = Symbol.for("react.module.reference");
|
|
73
73
|
function Le(e) {
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === n || Be || e === u || e === E || e ===
|
|
74
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === n || Be || e === u || e === E || e === N || Me || e === j || Ae || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === x || e.$$typeof === d || e.$$typeof === k || e.$$typeof === h || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
@@ -105,7 +105,7 @@ function kt() {
|
|
|
105
105
|
return "StrictMode";
|
|
106
106
|
case E:
|
|
107
107
|
return "Suspense";
|
|
108
|
-
case
|
|
108
|
+
case N:
|
|
109
109
|
return "SuspenseList";
|
|
110
110
|
}
|
|
111
111
|
if (typeof e == "object")
|
|
@@ -113,7 +113,7 @@ function kt() {
|
|
|
113
113
|
case k:
|
|
114
114
|
var t = e;
|
|
115
115
|
return ue(t) + ".Consumer";
|
|
116
|
-
case
|
|
116
|
+
case d:
|
|
117
117
|
var a = e;
|
|
118
118
|
return ue(a._context) + ".Provider";
|
|
119
119
|
case h:
|
|
@@ -121,10 +121,10 @@ function kt() {
|
|
|
121
121
|
case x:
|
|
122
122
|
var i = e.displayName || null;
|
|
123
123
|
return i !== null ? i : C(e.type) || "Memo";
|
|
124
|
-
case
|
|
125
|
-
var _ = e, v = _._payload,
|
|
124
|
+
case T: {
|
|
125
|
+
var _ = e, v = _._payload, m = _._init;
|
|
126
126
|
try {
|
|
127
|
-
return C(
|
|
127
|
+
return C(m(v));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,7 +132,7 @@ function kt() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var $ = Object.assign, W = 0, fe, pe, de, me, he, _e, ve;
|
|
136
136
|
function ke() {
|
|
137
137
|
}
|
|
138
138
|
ke.__reactDisabledLog = !0;
|
|
@@ -168,25 +168,25 @@ function kt() {
|
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
171
|
+
log: $({}, e, {
|
|
172
172
|
value: fe
|
|
173
173
|
}),
|
|
174
|
-
info:
|
|
174
|
+
info: $({}, e, {
|
|
175
175
|
value: pe
|
|
176
176
|
}),
|
|
177
|
-
warn:
|
|
177
|
+
warn: $({}, e, {
|
|
178
178
|
value: de
|
|
179
179
|
}),
|
|
180
|
-
error:
|
|
180
|
+
error: $({}, e, {
|
|
181
181
|
value: me
|
|
182
182
|
}),
|
|
183
|
-
group:
|
|
183
|
+
group: $({}, e, {
|
|
184
184
|
value: he
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed:
|
|
186
|
+
groupCollapsed: $({}, e, {
|
|
187
187
|
value: _e
|
|
188
188
|
}),
|
|
189
|
-
groupEnd:
|
|
189
|
+
groupEnd: $({}, e, {
|
|
190
190
|
value: ve
|
|
191
191
|
})
|
|
192
192
|
});
|
|
@@ -194,8 +194,8 @@ function kt() {
|
|
|
194
194
|
W < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var X =
|
|
198
|
-
function
|
|
197
|
+
var X = O.ReactCurrentDispatcher, Z;
|
|
198
|
+
function U(e, t, a) {
|
|
199
199
|
{
|
|
200
200
|
if (Z === void 0)
|
|
201
201
|
try {
|
|
@@ -208,16 +208,16 @@ function kt() {
|
|
|
208
208
|
` + Z + e;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var Q = !1,
|
|
211
|
+
var Q = !1, q;
|
|
212
212
|
{
|
|
213
213
|
var He = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
-
|
|
214
|
+
q = new He();
|
|
215
215
|
}
|
|
216
216
|
function be(e, t) {
|
|
217
217
|
if (!e || Q)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var a =
|
|
220
|
+
var a = q.get(e);
|
|
221
221
|
if (a !== void 0)
|
|
222
222
|
return a;
|
|
223
223
|
}
|
|
@@ -229,27 +229,27 @@ function kt() {
|
|
|
229
229
|
v = X.current, X.current = null, Ue();
|
|
230
230
|
try {
|
|
231
231
|
if (t) {
|
|
232
|
-
var
|
|
232
|
+
var m = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(m.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
241
|
+
Reflect.construct(m, []);
|
|
242
242
|
} catch (S) {
|
|
243
243
|
i = S;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(e, [],
|
|
245
|
+
Reflect.construct(e, [], m);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
248
|
+
m.call();
|
|
249
249
|
} catch (S) {
|
|
250
250
|
i = S;
|
|
251
251
|
}
|
|
252
|
-
e.call(
|
|
252
|
+
e.call(m.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
@@ -263,26 +263,26 @@ function kt() {
|
|
|
263
263
|
if (S && i && typeof S.stack == "string") {
|
|
264
264
|
for (var f = S.stack.split(`
|
|
265
265
|
`), w = i.stack.split(`
|
|
266
|
-
`), g = f.length - 1,
|
|
267
|
-
|
|
268
|
-
for (; g >= 1 &&
|
|
269
|
-
if (f[g] !== w[
|
|
270
|
-
if (g !== 1 ||
|
|
266
|
+
`), g = f.length - 1, y = w.length - 1; g >= 1 && y >= 0 && f[g] !== w[y]; )
|
|
267
|
+
y--;
|
|
268
|
+
for (; g >= 1 && y >= 0; g--, y--)
|
|
269
|
+
if (f[g] !== w[y]) {
|
|
270
|
+
if (g !== 1 || y !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (g--,
|
|
273
|
-
var
|
|
272
|
+
if (g--, y--, y < 0 || f[g] !== w[y]) {
|
|
273
|
+
var P = `
|
|
274
274
|
` + f[g].replace(" at new ", " at ");
|
|
275
|
-
return e.displayName &&
|
|
275
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, P), P;
|
|
276
276
|
}
|
|
277
|
-
while (g >= 1 &&
|
|
277
|
+
while (g >= 1 && y >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
282
|
Q = !1, X.current = v, qe(), Error.prepareStackTrace = _;
|
|
283
283
|
}
|
|
284
|
-
var D = e ? e.displayName || e.name : "", Oe = D ?
|
|
285
|
-
return typeof e == "function" &&
|
|
284
|
+
var D = e ? e.displayName || e.name : "", Oe = D ? U(D) : "";
|
|
285
|
+
return typeof e == "function" && q.set(e, Oe), Oe;
|
|
286
286
|
}
|
|
287
287
|
function Ge(e, t, a) {
|
|
288
288
|
return be(e, !1);
|
|
@@ -291,59 +291,59 @@ function kt() {
|
|
|
291
291
|
var t = e.prototype;
|
|
292
292
|
return !!(t && t.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function H(e, t, a) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
298
298
|
return be(e, Je(e));
|
|
299
299
|
if (typeof e == "string")
|
|
300
|
-
return
|
|
300
|
+
return U(e);
|
|
301
301
|
switch (e) {
|
|
302
302
|
case E:
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
303
|
+
return U("Suspense");
|
|
304
|
+
case N:
|
|
305
|
+
return U("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
309
|
case h:
|
|
310
310
|
return Ge(e.render);
|
|
311
311
|
case x:
|
|
312
|
-
return
|
|
313
|
-
case
|
|
312
|
+
return H(e.type, t, a);
|
|
313
|
+
case T: {
|
|
314
314
|
var i = e, _ = i._payload, v = i._init;
|
|
315
315
|
try {
|
|
316
|
-
return
|
|
316
|
+
return H(v(_), t, a);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
323
|
+
var G = Object.prototype.hasOwnProperty, ge = {}, Ne = O.ReactDebugCurrentFrame;
|
|
324
|
+
function J(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var t = e._owner, a =
|
|
326
|
+
var t = e._owner, a = H(e.type, e._source, t ? t.type : null);
|
|
327
327
|
Ne.setExtraStackFrame(a);
|
|
328
328
|
} else
|
|
329
329
|
Ne.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
331
|
function ze(e, t, a, i, _) {
|
|
332
332
|
{
|
|
333
|
-
var v = Function.call.bind(
|
|
334
|
-
for (var
|
|
335
|
-
if (v(e,
|
|
333
|
+
var v = Function.call.bind(G);
|
|
334
|
+
for (var m in e)
|
|
335
|
+
if (v(e, m)) {
|
|
336
336
|
var f = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof e[
|
|
339
|
-
var w = Error((i || "React class") + ": " + a + " type `" +
|
|
338
|
+
if (typeof e[m] != "function") {
|
|
339
|
+
var w = Error((i || "React class") + ": " + a + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw w.name = "Invariant Violation", w;
|
|
341
341
|
}
|
|
342
|
-
f = e[
|
|
342
|
+
f = e[m](t, m, i, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (g) {
|
|
344
344
|
f = g;
|
|
345
345
|
}
|
|
346
|
-
f && !(f instanceof Error) && (
|
|
346
|
+
f && !(f instanceof Error) && (J(_), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", a, m, typeof f), J(null)), f instanceof Error && !(f.message in ge) && (ge[f.message] = !0, J(_), R("Failed %s type: %s", a, f.message), J(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -371,7 +371,7 @@ function kt() {
|
|
|
371
371
|
if (Ze(e))
|
|
372
372
|
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), ye(e);
|
|
373
373
|
}
|
|
374
|
-
var Y =
|
|
374
|
+
var Y = O.ReactCurrentOwner, Qe = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
@@ -379,7 +379,7 @@ function kt() {
|
|
|
379
379
|
}, Re, we, te;
|
|
380
380
|
te = {};
|
|
381
381
|
function et(e) {
|
|
382
|
-
if (
|
|
382
|
+
if (G.call(e, "ref")) {
|
|
383
383
|
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
384
|
if (t && t.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -387,7 +387,7 @@ function kt() {
|
|
|
387
387
|
return e.ref !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function tt(e) {
|
|
390
|
-
if (
|
|
390
|
+
if (G.call(e, "key")) {
|
|
391
391
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
392
392
|
if (t && t.isReactWarning)
|
|
393
393
|
return !1;
|
|
@@ -422,7 +422,7 @@ function kt() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var ot = function(e, t, a, i, _, v,
|
|
425
|
+
var ot = function(e, t, a, i, _, v, m) {
|
|
426
426
|
var f = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: l,
|
|
@@ -430,7 +430,7 @@ function kt() {
|
|
|
430
430
|
type: e,
|
|
431
431
|
key: t,
|
|
432
432
|
ref: a,
|
|
433
|
-
props:
|
|
433
|
+
props: m,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
435
|
_owner: v
|
|
436
436
|
};
|
|
@@ -453,26 +453,26 @@ function kt() {
|
|
|
453
453
|
};
|
|
454
454
|
function lt(e, t, a, i, _) {
|
|
455
455
|
{
|
|
456
|
-
var v,
|
|
456
|
+
var v, m = {}, f = null, w = null;
|
|
457
457
|
a !== void 0 && (Ee(a), f = "" + a), tt(t) && (Ee(t.key), f = "" + t.key), et(t) && (w = t.ref, rt(t, _));
|
|
458
458
|
for (v in t)
|
|
459
|
-
|
|
459
|
+
G.call(t, v) && !Qe.hasOwnProperty(v) && (m[v] = t[v]);
|
|
460
460
|
if (e && e.defaultProps) {
|
|
461
461
|
var g = e.defaultProps;
|
|
462
462
|
for (v in g)
|
|
463
|
-
|
|
463
|
+
m[v] === void 0 && (m[v] = g[v]);
|
|
464
464
|
}
|
|
465
465
|
if (f || w) {
|
|
466
|
-
var
|
|
467
|
-
f && at(
|
|
466
|
+
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
467
|
+
f && at(m, y), w && nt(m, y);
|
|
468
468
|
}
|
|
469
|
-
return ot(e, f, w, _, i, Y.current,
|
|
469
|
+
return ot(e, f, w, _, i, Y.current, m);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var re =
|
|
472
|
+
var re = O.ReactCurrentOwner, xe = O.ReactDebugCurrentFrame;
|
|
473
473
|
function F(e) {
|
|
474
474
|
if (e) {
|
|
475
|
-
var t = e._owner, a =
|
|
475
|
+
var t = e._owner, a = H(e.type, e._source, t ? t.type : null);
|
|
476
476
|
xe.setExtraStackFrame(a);
|
|
477
477
|
} else
|
|
478
478
|
xe.setExtraStackFrame(null);
|
|
@@ -543,10 +543,10 @@ Check the top-level render call using <` + a + ">.");
|
|
|
543
543
|
else if (ne(e))
|
|
544
544
|
e._store && (e._store.validated = !0);
|
|
545
545
|
else if (e) {
|
|
546
|
-
var _ =
|
|
546
|
+
var _ = V(e);
|
|
547
547
|
if (typeof _ == "function" && _ !== e.entries)
|
|
548
|
-
for (var v = _.call(e),
|
|
549
|
-
ne(
|
|
548
|
+
for (var v = _.call(e), m; !(m = v.next()).done; )
|
|
549
|
+
ne(m.value) && je(m.value, t);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
@@ -589,8 +589,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
589
589
|
}
|
|
590
590
|
function Se(e, t, a, i, _, v) {
|
|
591
591
|
{
|
|
592
|
-
var
|
|
593
|
-
if (!
|
|
592
|
+
var m = Le(e);
|
|
593
|
+
if (!m) {
|
|
594
594
|
var f = "";
|
|
595
595
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
596
|
var w = st(_);
|
|
@@ -598,23 +598,23 @@ Check the top-level render call using <` + a + ">.");
|
|
|
598
598
|
var g;
|
|
599
599
|
e === null ? g = "null" : ee(e) ? g = "array" : e !== void 0 && e.$$typeof === l ? (g = "<" + (C(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, f);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
601
|
+
var y = lt(e, t, a, _, v);
|
|
602
|
+
if (y == null)
|
|
603
|
+
return y;
|
|
604
|
+
if (m) {
|
|
605
|
+
var P = t.children;
|
|
606
|
+
if (P !== void 0)
|
|
607
607
|
if (i)
|
|
608
|
-
if (ee(
|
|
609
|
-
for (var D = 0; D <
|
|
610
|
-
Ce(
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
608
|
+
if (ee(P)) {
|
|
609
|
+
for (var D = 0; D < P.length; D++)
|
|
610
|
+
Ce(P[D], e);
|
|
611
|
+
Object.freeze && Object.freeze(P);
|
|
612
612
|
} else
|
|
613
613
|
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
Ce(
|
|
615
|
+
Ce(P, e);
|
|
616
616
|
}
|
|
617
|
-
return e === c ? ut(
|
|
617
|
+
return e === c ? ut(y) : ct(y), y;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
function ft(e, t, a) {
|
|
@@ -629,16 +629,16 @@ Check the top-level render call using <` + a + ">.");
|
|
|
629
629
|
}
|
|
630
630
|
process.env.NODE_ENV === "production" ? le.exports = vt() : le.exports = kt();
|
|
631
631
|
var ie = le.exports;
|
|
632
|
-
const
|
|
632
|
+
const z = ie.Fragment, r = ie.jsx, p = ie.jsxs, oe = {}, bt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
|
|
633
633
|
function gt(o, l) {
|
|
634
634
|
return !oe[o] && typeof window.fetch == "function" && (oe[o] = window.fetch(l + o + ".svg").then((s) => s.ok ? s.text() : (console.error("Missing icon: " + l + o + ".svg"), bt)).then((s) => s)), Promise.resolve(oe[o]);
|
|
635
635
|
}
|
|
636
636
|
const b = ({ name: o, path: l, className: s = "", ...c }) => {
|
|
637
|
-
const u = "https://punkt-cdn.oslo.kommune.no/5.1/icons/", [n,
|
|
637
|
+
const u = "https://punkt-cdn.oslo.kommune.no/5.1/icons/", [n, d] = se(null);
|
|
638
638
|
return ht(() => {
|
|
639
639
|
if (!o)
|
|
640
640
|
return;
|
|
641
|
-
gt(o, l || u).then((h) =>
|
|
641
|
+
gt(o, l || u).then((h) => d(h));
|
|
642
642
|
}, [o, l, u]), n ? /* @__PURE__ */ r(
|
|
643
643
|
"span",
|
|
644
644
|
{
|
|
@@ -655,14 +655,14 @@ const b = ({ name: o, path: l, className: s = "", ...c }) => {
|
|
|
655
655
|
closeAlert: c = !1,
|
|
656
656
|
onClose: u,
|
|
657
657
|
title: n,
|
|
658
|
-
date:
|
|
658
|
+
date: d,
|
|
659
659
|
ariaLive: k = "polite",
|
|
660
660
|
...h
|
|
661
661
|
}, E) => {
|
|
662
|
-
const
|
|
663
|
-
|
|
662
|
+
const N = [l, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [x, T] = se(!0), j = () => {
|
|
663
|
+
T(!1), u && u();
|
|
664
664
|
};
|
|
665
|
-
return x ? /* @__PURE__ */ p("div", { ...h, className:
|
|
665
|
+
return x ? /* @__PURE__ */ p("div", { ...h, className: N, "aria-live": k, ref: E, children: [
|
|
666
666
|
/* @__PURE__ */ r(
|
|
667
667
|
b,
|
|
668
668
|
{
|
|
@@ -683,9 +683,9 @@ const b = ({ name: o, path: l, className: s = "", ...c }) => {
|
|
|
683
683
|
) }),
|
|
684
684
|
n && /* @__PURE__ */ r("div", { className: "pkt-alert__title", children: n }),
|
|
685
685
|
/* @__PURE__ */ r("div", { className: "pkt-alert__text", children: o }),
|
|
686
|
-
|
|
686
|
+
d && /* @__PURE__ */ p("div", { className: "pkt-alert__date", children: [
|
|
687
687
|
"Sist oppdatert: ",
|
|
688
|
-
|
|
688
|
+
d
|
|
689
689
|
] })
|
|
690
690
|
] }) : null;
|
|
691
691
|
}
|
|
@@ -697,18 +697,18 @@ const b = ({ name: o, path: l, className: s = "", ...c }) => {
|
|
|
697
697
|
secondIconName: c = "user",
|
|
698
698
|
size: u = "medium",
|
|
699
699
|
skin: n = "primary",
|
|
700
|
-
type:
|
|
700
|
+
type: d = "button",
|
|
701
701
|
variant: k = "label-only",
|
|
702
702
|
...h
|
|
703
703
|
}, E) => {
|
|
704
|
-
const
|
|
704
|
+
const N = [
|
|
705
705
|
l,
|
|
706
706
|
"pkt-btn",
|
|
707
707
|
u && `pkt-btn--${u}`,
|
|
708
708
|
n && `pkt-btn--${n}`,
|
|
709
709
|
k && `pkt-btn--${k}`
|
|
710
710
|
].filter(Boolean).join(" ");
|
|
711
|
-
return /* @__PURE__ */ p("button", { ...h, className:
|
|
711
|
+
return /* @__PURE__ */ p("button", { ...h, className: N, type: d, ref: E, children: [
|
|
712
712
|
k !== "label-only" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: s }),
|
|
713
713
|
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: o }),
|
|
714
714
|
k === "icons-right-and-left" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: c })
|
|
@@ -724,7 +724,7 @@ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
|
724
724
|
/* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: o.title }),
|
|
725
725
|
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
726
726
|
o.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: o.text }),
|
|
727
|
-
(c = o.links) == null ? void 0 : c.map((n,
|
|
727
|
+
(c = o.links) == null ? void 0 : c.map((n, d) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
|
|
728
728
|
"a",
|
|
729
729
|
{
|
|
730
730
|
className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
|
|
@@ -736,14 +736,14 @@ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
|
736
736
|
n.text
|
|
737
737
|
]
|
|
738
738
|
}
|
|
739
|
-
) }, `links-${
|
|
739
|
+
) }, `links-${d}`))
|
|
740
740
|
] })
|
|
741
741
|
] }),
|
|
742
742
|
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
743
743
|
/* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: l.title }),
|
|
744
744
|
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
745
745
|
l.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: l.text }),
|
|
746
|
-
(u = l.links) == null ? void 0 : u.map((n,
|
|
746
|
+
(u = l.links) == null ? void 0 : u.map((n, d) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
|
|
747
747
|
"a",
|
|
748
748
|
{
|
|
749
749
|
className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
|
|
@@ -755,7 +755,7 @@ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
|
755
755
|
n.text
|
|
756
756
|
]
|
|
757
757
|
}
|
|
758
|
-
) }, `links-${
|
|
758
|
+
) }, `links-${d}`))
|
|
759
759
|
] })
|
|
760
760
|
] }),
|
|
761
761
|
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
@@ -780,7 +780,7 @@ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
|
780
780
|
] })
|
|
781
781
|
] }),
|
|
782
782
|
s && /* @__PURE__ */ p("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
|
|
783
|
-
/* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: s.filter((n) => n.language).map((n,
|
|
783
|
+
/* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: s.filter((n) => n.language).map((n, d) => /* @__PURE__ */ r(
|
|
784
784
|
"div",
|
|
785
785
|
{
|
|
786
786
|
className: "pkt-footer__social-language",
|
|
@@ -795,9 +795,9 @@ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
|
795
795
|
}
|
|
796
796
|
)
|
|
797
797
|
},
|
|
798
|
-
`sociallinks-language-${
|
|
798
|
+
`sociallinks-language-${d}`
|
|
799
799
|
)) }),
|
|
800
|
-
/* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: s.filter((n) => n.iconName).map((n,
|
|
800
|
+
/* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: s.filter((n) => n.iconName).map((n, d) => /* @__PURE__ */ r(K.Fragment, { children: /* @__PURE__ */ r(
|
|
801
801
|
"a",
|
|
802
802
|
{
|
|
803
803
|
href: n.href,
|
|
@@ -807,7 +807,7 @@ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
|
807
807
|
rel: n.openInNewTab ? "noopener noreferrer" : void 0,
|
|
808
808
|
children: /* @__PURE__ */ r(b, { className: "pkt-footer__social-icon", name: n.iconName })
|
|
809
809
|
}
|
|
810
|
-
) }, `sociallinks-${
|
|
810
|
+
) }, `sociallinks-${d}`)) })
|
|
811
811
|
] })
|
|
812
812
|
] }) });
|
|
813
813
|
}, $t = ({
|
|
@@ -847,7 +847,7 @@ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
|
847
847
|
representing: c = "",
|
|
848
848
|
canChangeRepresentation: u = !1,
|
|
849
849
|
showLogInButton: n = !0,
|
|
850
|
-
onLogIn:
|
|
850
|
+
onLogIn: d,
|
|
851
851
|
onLogOut: k,
|
|
852
852
|
onChangeRepresentation: h
|
|
853
853
|
}) => {
|
|
@@ -890,7 +890,7 @@ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
|
890
890
|
{
|
|
891
891
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
892
892
|
"aria-label": "Logg inn",
|
|
893
|
-
onClick:
|
|
893
|
+
onClick: d,
|
|
894
894
|
children: [
|
|
895
895
|
/* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: "user" }),
|
|
896
896
|
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg inn" })
|
|
@@ -899,7 +899,7 @@ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
|
899
899
|
)
|
|
900
900
|
] })
|
|
901
901
|
] });
|
|
902
|
-
}, yt =
|
|
902
|
+
}, yt = K.forwardRef(
|
|
903
903
|
({ label: o, id: l, children: s, ...c }, u) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
|
|
904
904
|
/* @__PURE__ */ r("label", { htmlFor: l, className: "pkt-form-label", children: o }),
|
|
905
905
|
/* @__PURE__ */ r("input", { className: "pkt-form-input", id: l, ...c, ref: u }),
|
|
@@ -915,7 +915,7 @@ const Et = I(
|
|
|
915
915
|
openInNewTab: c = !1,
|
|
916
916
|
skin: u = "normal",
|
|
917
917
|
href: n = "#",
|
|
918
|
-
external:
|
|
918
|
+
external: d = !1,
|
|
919
919
|
title: k
|
|
920
920
|
}, h) => {
|
|
921
921
|
const E = [l, "pkt-linkcard", u && `pkt-linkcard--${u}`].filter(Boolean).join(" ");
|
|
@@ -930,7 +930,7 @@ const Et = I(
|
|
|
930
930
|
children: [
|
|
931
931
|
/* @__PURE__ */ r(b, { className: "pkt-link__icon", name: s }),
|
|
932
932
|
/* @__PURE__ */ p("div", { className: "pkt-linkcard__content", children: [
|
|
933
|
-
/* @__PURE__ */ r("div", { className: `pkt-linkcard__title ${
|
|
933
|
+
/* @__PURE__ */ r("div", { className: `pkt-linkcard__title ${d ? "pkt-link pkt-link--external" : ""}`, children: k }),
|
|
934
934
|
/* @__PURE__ */ r("div", { className: "pkt-linkcard__text", children: o })
|
|
935
935
|
] })
|
|
936
936
|
]
|
|
@@ -957,7 +957,7 @@ const Dt = ({
|
|
|
957
957
|
] })
|
|
958
958
|
);
|
|
959
959
|
Rt.displayName = "PktRadio";
|
|
960
|
-
const It = ({ label: o, children: l }) => /* @__PURE__ */ p(
|
|
960
|
+
const It = ({ label: o, children: l }) => /* @__PURE__ */ p(z, { children: [
|
|
961
961
|
/* @__PURE__ */ r("p", { children: o }),
|
|
962
962
|
/* @__PURE__ */ r("div", { className: "pkt-form-group", children: l })
|
|
963
963
|
] });
|
|
@@ -974,15 +974,15 @@ var De = { exports: {} };
|
|
|
974
974
|
for (var c = [], u = 0; u < arguments.length; u++) {
|
|
975
975
|
var n = arguments[u];
|
|
976
976
|
if (n) {
|
|
977
|
-
var
|
|
978
|
-
if (
|
|
977
|
+
var d = typeof n;
|
|
978
|
+
if (d === "string" || d === "number")
|
|
979
979
|
c.push(n);
|
|
980
980
|
else if (Array.isArray(n)) {
|
|
981
981
|
if (n.length) {
|
|
982
982
|
var k = s.apply(null, n);
|
|
983
983
|
k && c.push(k);
|
|
984
984
|
}
|
|
985
|
-
} else if (
|
|
985
|
+
} else if (d === "object") {
|
|
986
986
|
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]")) {
|
|
987
987
|
c.push(n.toString());
|
|
988
988
|
continue;
|
|
@@ -998,7 +998,7 @@ var De = { exports: {} };
|
|
|
998
998
|
})();
|
|
999
999
|
})(De);
|
|
1000
1000
|
var wt = De.exports;
|
|
1001
|
-
const xt = /* @__PURE__ */ _t(wt), Pt = ({ isResponsive: o, children: l }) => o ? /* @__PURE__ */ r("div", { className: "pkt-table-container", children: l }) : /* @__PURE__ */ r(
|
|
1001
|
+
const xt = /* @__PURE__ */ _t(wt), Pt = ({ isResponsive: o, children: l }) => o ? /* @__PURE__ */ r("div", { className: "pkt-table-container", children: l }) : /* @__PURE__ */ r(z, { children: l }), At = ({
|
|
1002
1002
|
isResponsive: o,
|
|
1003
1003
|
modifiers: { info: l = !1, success: s = !1, strong: c = !1, shadow: u = !1 } = {},
|
|
1004
1004
|
children: n
|
|
@@ -1017,62 +1017,65 @@ const xt = /* @__PURE__ */ _t(wt), Pt = ({ isResponsive: o, children: l }) => o
|
|
|
1017
1017
|
children: o,
|
|
1018
1018
|
className: l,
|
|
1019
1019
|
skin: s = "blue",
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1020
|
+
textStyle: c = "normal-text",
|
|
1021
|
+
size: u = "medium",
|
|
1022
|
+
closeTag: n = !1,
|
|
1023
|
+
iconName: d = "",
|
|
1024
|
+
type: k = "button",
|
|
1025
|
+
ariaLabel: h = "close",
|
|
1026
|
+
onClick: E = () => {
|
|
1026
1027
|
}
|
|
1027
|
-
},
|
|
1028
|
-
const [
|
|
1029
|
-
|
|
1030
|
-
},
|
|
1028
|
+
}, N) => {
|
|
1029
|
+
const [x, T] = se(!1), j = (O) => {
|
|
1030
|
+
T(!0), E(O);
|
|
1031
|
+
}, A = [
|
|
1031
1032
|
"pkt-tag",
|
|
1032
|
-
|
|
1033
|
+
u && `pkt-tag--${u}`,
|
|
1033
1034
|
s && `pkt-tag--${s}`,
|
|
1035
|
+
c && `pkt-tag--${c}`,
|
|
1034
1036
|
l
|
|
1035
|
-
].filter(Boolean).join(" "),
|
|
1037
|
+
].filter(Boolean).join(" "), L = [
|
|
1036
1038
|
"pkt-tag",
|
|
1037
1039
|
"pkt-btn",
|
|
1038
1040
|
"pkt-btn--tertiary",
|
|
1039
|
-
|
|
1041
|
+
u && `pkt-tag--${u}`,
|
|
1040
1042
|
s && `pkt-tag--${s}`,
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
+
c && `pkt-tag--${c}`,
|
|
1044
|
+
d && n ? "pkt-btn--icons-right-and-left" : null,
|
|
1045
|
+
n && !d ? "pkt-btn--icon-right" : null,
|
|
1043
1046
|
l
|
|
1044
|
-
].filter(Boolean).join(" "),
|
|
1045
|
-
return
|
|
1047
|
+
].filter(Boolean).join(" "), V = !x;
|
|
1048
|
+
return n && d ? /* @__PURE__ */ r(z, { children: V && /* @__PURE__ */ p(
|
|
1046
1049
|
"button",
|
|
1047
1050
|
{
|
|
1048
|
-
className:
|
|
1049
|
-
type:
|
|
1050
|
-
"aria-label":
|
|
1051
|
-
onClick:
|
|
1052
|
-
ref:
|
|
1051
|
+
className: L,
|
|
1052
|
+
type: k,
|
|
1053
|
+
"aria-label": h,
|
|
1054
|
+
onClick: j,
|
|
1055
|
+
ref: N,
|
|
1053
1056
|
children: [
|
|
1054
|
-
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name:
|
|
1057
|
+
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: d }),
|
|
1055
1058
|
o,
|
|
1056
1059
|
/* @__PURE__ */ r(b, { className: "pkt-tag__close-btn", name: "close" })
|
|
1057
1060
|
]
|
|
1058
1061
|
}
|
|
1059
|
-
) }) :
|
|
1062
|
+
) }) : n ? /* @__PURE__ */ r(z, { children: V && /* @__PURE__ */ p(
|
|
1060
1063
|
"button",
|
|
1061
1064
|
{
|
|
1062
|
-
className:
|
|
1063
|
-
type:
|
|
1064
|
-
"aria-label":
|
|
1065
|
-
onClick:
|
|
1066
|
-
ref:
|
|
1065
|
+
className: L,
|
|
1066
|
+
type: k,
|
|
1067
|
+
"aria-label": h,
|
|
1068
|
+
onClick: j,
|
|
1069
|
+
ref: N,
|
|
1067
1070
|
children: [
|
|
1068
1071
|
/* @__PURE__ */ r(b, { className: "pkt-tag__close-btn", name: "close" }),
|
|
1069
1072
|
o
|
|
1070
1073
|
]
|
|
1071
1074
|
}
|
|
1072
|
-
) }) :
|
|
1073
|
-
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name:
|
|
1075
|
+
) }) : d ? /* @__PURE__ */ p("span", { className: A, children: [
|
|
1076
|
+
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: d }),
|
|
1074
1077
|
o
|
|
1075
|
-
] }) : /* @__PURE__ */ r("span", { className:
|
|
1078
|
+
] }) : /* @__PURE__ */ r("span", { className: A, children: o });
|
|
1076
1079
|
});
|
|
1077
1080
|
Tt.displayName = "PktTag";
|
|
1078
1081
|
const jt = I(
|
package/dist/punkt-react.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(g,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(g=typeof globalThis<"u"?globalThis:g||self,E(g["punkt-react"]={},g.React))})(this,function(g,E){"use strict";function Be(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var
|
|
1
|
+
(function(g,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(g=typeof globalThis<"u"?globalThis:g||self,E(g["punkt-react"]={},g.React))})(this,function(g,E){"use strict";function Be(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Z={exports:{}},Y={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ie;function Le(){if(ie)return Y;ie=1;var o=E,l=Symbol.for("react.element"),s=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,u=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function
|
|
9
|
+
*/var ie;function Le(){if(ie)return Y;ie=1;var o=E,l=Symbol.for("react.element"),s=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,u=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function d(v,k,w){var y,x={},C=null,S=null;w!==void 0&&(C=""+w),k.key!==void 0&&(C=""+k.key),k.ref!==void 0&&(S=k.ref);for(y in k)c.call(k,y)&&!n.hasOwnProperty(y)&&(x[y]=k[y]);if(v&&v.defaultProps)for(y in k=v.defaultProps,k)x[y]===void 0&&(x[y]=k[y]);return{$$typeof:l,type:v,key:C,ref:S,props:x,_owner:u.current}}return Y.Fragment=s,Y.jsx=d,Y.jsxs=d,Y}var $={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ce;function Ve(){return ce||(ce=1,process.env.NODE_ENV!=="production"&&function(){var o=E,l=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),
|
|
18
|
-
`+te+e}}var re=!1,
|
|
17
|
+
*/var ce;function Ve(){return ce||(ce=1,process.env.NODE_ENV!=="production"&&function(){var o=E,l=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),v=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),M=Symbol.iterator,U="@@iterator";function H(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[U];return typeof t=="function"?t:null}var D=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];nt("error",e,a)}}function nt(e,t,a){{var i=D.ReactDebugCurrentFrame,h=i.getStackAddendum();h!==""&&(t+="%s",a=a.concat([h]));var _=a.map(function(m){return String(m)});_.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,_)}}var ot=!1,lt=!1,st=!1,it=!1,ct=!1,_e;_e=Symbol.for("react.module.reference");function ut(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===n||ct||e===u||e===w||e===y||it||e===S||ot||lt||st||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===x||e.$$typeof===d||e.$$typeof===v||e.$$typeof===k||e.$$typeof===_e||e.getModuleId!==void 0))}function ft(e,t,a){var i=e.displayName;if(i)return i;var h=t.displayName||t.name||"";return h!==""?a+"("+h+")":a}function ve(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case s:return"Portal";case n:return"Profiler";case u:return"StrictMode";case w:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v:var t=e;return ve(t)+".Consumer";case d:var a=e;return ve(a._context)+".Provider";case k:return ft(e,e.render,"ForwardRef");case x:var i=e.displayName||null;return i!==null?i:O(e.type)||"Memo";case C:{var h=e,_=h._payload,m=h._init;try{return O(m(_))}catch{return null}}}return null}var I=Object.assign,B=0,be,ge,Ne,ye,Re,Ee,we;function Pe(){}Pe.__reactDisabledLog=!0;function pt(){{if(B===0){be=console.log,ge=console.info,Ne=console.warn,ye=console.error,Re=console.group,Ee=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}B++}}function dt(){{if(B--,B===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:be}),info:I({},e,{value:ge}),warn:I({},e,{value:Ne}),error:I({},e,{value:ye}),group:I({},e,{value:Re}),groupCollapsed:I({},e,{value:Ee}),groupEnd:I({},e,{value:we})})}B<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=D.ReactCurrentDispatcher,te;function G(e,t,a){{if(te===void 0)try{throw Error()}catch(h){var i=h.stack.trim().match(/\n( *(at )?)/);te=i&&i[1]||""}return`
|
|
18
|
+
`+te+e}}var re=!1,J;{var mt=typeof WeakMap=="function"?WeakMap:Map;J=new mt}function Te(e,t){if(!e||re)return"";{var a=J.get(e);if(a!==void 0)return a}var i;re=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=ee.current,ee.current=null,pt();try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(F){i=F}Reflect.construct(e,[],m)}else{try{m.call()}catch(F){i=F}e.call(m.prototype)}}else{try{throw Error()}catch(F){i=F}e()}}catch(F){if(F&&i&&typeof F.stack=="string"){for(var p=F.stack.split(`
|
|
19
19
|
`),T=i.stack.split(`
|
|
20
|
-
`),N=p.length-1,
|
|
21
|
-
`+p[N].replace(" at new "," at ");return e.displayName&&
|
|
20
|
+
`),N=p.length-1,R=T.length-1;N>=1&&R>=0&&p[N]!==T[R];)R--;for(;N>=1&&R>=0;N--,R--)if(p[N]!==T[R]){if(N!==1||R!==1)do if(N--,R--,R<0||p[N]!==T[R]){var j=`
|
|
21
|
+
`+p[N].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&J.set(e,j),j}while(N>=1&&R>=0);break}}}finally{re=!1,ee.current=_,dt(),Error.prepareStackTrace=h}var W=e?e.displayName||e.name:"",Me=W?G(W):"";return typeof e=="function"&&J.set(e,Me),Me}function kt(e,t,a){return Te(e,!1)}function ht(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function z(e,t,a){if(e==null)return"";if(typeof e=="function")return Te(e,ht(e));if(typeof e=="string")return G(e);switch(e){case w:return G("Suspense");case y:return G("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case k:return kt(e.render);case x:return z(e.type,t,a);case C:{var i=e,h=i._payload,_=i._init;try{return z(_(h),t,a)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,xe={},je=D.ReactDebugCurrentFrame;function X(e){if(e){var t=e._owner,a=z(e.type,e._source,t?t.type:null);je.setExtraStackFrame(a)}else je.setExtraStackFrame(null)}function _t(e,t,a,i,h){{var _=Function.call.bind(K);for(var m in e)if(_(e,m)){var p=void 0;try{if(typeof e[m]!="function"){var T=Error((i||"React class")+": "+a+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}p=e[m](t,m,i,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){p=N}p&&!(p instanceof Error)&&(X(h),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",a,m,typeof p),X(null)),p instanceof Error&&!(p.message in xe)&&(xe[p.message]=!0,X(h),P("Failed %s type: %s",a,p.message),X(null))}}}var vt=Array.isArray;function ae(e){return vt(e)}function bt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function gt(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Se(e){if(gt(e))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(e)),Ce(e)}var L=D.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},Oe,Fe,ne;ne={};function yt(e){if(K.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if(K.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){if(typeof e.ref=="string"&&L.current&&t&&L.current.stateNode!==t){var a=O(L.current.type);ne[a]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(L.current.type),e.ref),ne[a]=!0)}}function wt(e,t){{var a=function(){Oe||(Oe=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Pt(e,t){{var a=function(){Fe||(Fe=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Tt=function(e,t,a,i,h,_,m){var p={$$typeof:l,type:e,key:t,ref:a,props:m,_owner:_};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function xt(e,t,a,i,h){{var _,m={},p=null,T=null;a!==void 0&&(Se(a),p=""+a),Rt(t)&&(Se(t.key),p=""+t.key),yt(t)&&(T=t.ref,Et(t,h));for(_ in t)K.call(t,_)&&!Nt.hasOwnProperty(_)&&(m[_]=t[_]);if(e&&e.defaultProps){var N=e.defaultProps;for(_ in N)m[_]===void 0&&(m[_]=N[_])}if(p||T){var R=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&wt(m,R),T&&Pt(m,R)}return Tt(e,p,T,h,i,L.current,m)}}var oe=D.ReactCurrentOwner,De=D.ReactDebugCurrentFrame;function A(e){if(e){var t=e._owner,a=z(e.type,e._source,t?t.type:null);De.setExtraStackFrame(a)}else De.setExtraStackFrame(null)}var le;le=!1;function se(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function Ie(){{if(oe.current){var e=O(oe.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function jt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+t+":"+a+"."}return""}}var Ae={};function
|
|
25
|
+
Check your code at `+t+":"+a+"."}return""}}var Ae={};function Ct(e){{var t=Ie();if(!t){var a=typeof e=="string"?e:e.displayName||e.name;a&&(t=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+a+">.")}return t}}function We(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=St(t);if(Ae[a])return;Ae[a]=!0;var i="";e&&e._owner&&e._owner!==oe.current&&(i=" It was passed a child from "+O(e._owner.type)+"."),A(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,i),A(null)}}function Ye(e,t){{if(typeof e!="object")return;if(ae(e))for(var a=0;a<e.length;a++){var i=e[a];se(i)&&We(i,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var k=q(e);if(typeof k=="function"&&k!==e.entries)for(var _=k.call(e),d;!(d=_.next()).done;)se(d.value)&&We(d.value,t)}}}function Ct(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===h||t.$$typeof===x))a=t.propTypes;else return;if(a){var i=O(t);_t(a,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!le){le=!0;var k=O(t);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ot(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var i=t[a];if(i!=="children"&&i!=="key"){A(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),A(null);break}}e.ref!==null&&(A(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Me(e,t,a,i,k,_){{var d=ut(e);if(!d){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=jt(k);T?p+=T:p+=Ie();var N;e===null?N="null":ae(e)?N="array":e!==void 0&&e.$$typeof===l?(N="<"+(O(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):N=typeof e,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,p)}var y=xt(e,t,a,k,_);if(y==null)return y;if(d){var S=t.children;if(S!==void 0)if(i)if(ae(S)){for(var W=0;W<S.length;W++)Ye(S[W],e);Object.freeze&&Object.freeze(S)}else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(S,e)}return e===c?Ot(y):Ct(y),y}}function Ft(e,t,a){return Me(e,t,a,!0)}function Dt(e,t,a){return Me(e,t,a,!1)}var It=Dt,At=Ft;M.Fragment=c,M.jsx=It,M.jsxs=At}()),M}process.env.NODE_ENV==="production"?X.exports=Le():X.exports=Ve();var Z=X.exports;const V=Z.Fragment,r=Z.jsx,f=Z.jsxs,Q={},Ue='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function He(o,l){return!Q[o]&&typeof window.fetch=="function"&&(Q[o]=window.fetch(l+o+".svg").then(s=>s.ok?s.text():(console.error("Missing icon: "+l+o+".svg"),Ue)).then(s=>s)),Promise.resolve(Q[o])}const b=({name:o,path:l,className:s="",...c})=>{const u="https://punkt-cdn.oslo.kommune.no/5.1/icons/",[n,m]=E.useState(null);return E.useEffect(()=>{if(!o)return;He(o,l||u).then(h=>m(h))},[o,l,u]),n?r("span",{className:`pkt-icon ${s}`,dangerouslySetInnerHTML:{__html:n},...c}):null},Ge=E.forwardRef(({children:o,className:l,skin:s="info",closeAlert:c=!1,onClose:u,title:n,date:m,ariaLive:v="polite",...h},w)=>{const R=[l,"pkt-alert",s&&`pkt-alert--${s}`].filter(Boolean).join(" "),[x,j]=E.useState(!0),C=()=>{j(!1),u&&u()};return x?f("div",{...h,className:R,"aria-live":v,ref:w,children:[r(b,{className:"pkt-alert__icon",name:s==="info"?"alert-information":`alert-${s}`}),c&&r("div",{className:"pkt-alert__close",children:r("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:C,children:r(b,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),n&&r("div",{className:"pkt-alert__title",children:n}),r("div",{className:"pkt-alert__text",children:o}),m&&f("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",m]})]}):null}),ue=E.forwardRef(({children:o,className:l,iconName:s="user",secondIconName:c="user",size:u="medium",skin:n="primary",type:m="button",variant:v="label-only",...h},w)=>{const R=[l,"pkt-btn",u&&`pkt-btn--${u}`,n&&`pkt-btn--${n}`,v&&`pkt-btn--${v}`].filter(Boolean).join(" ");return f("button",{...h,className:R,type:m,ref:w,children:[v!=="label-only"&&r(b,{className:"pkt-btn__icon",name:s}),r("span",{className:"pkt-btn__text",children:o}),v==="icons-right-and-left"&&r(b,{className:"pkt-btn__icon",name:c})]})});ue.displayName="PktButton";const Je=({columnOne:o,columnTwo:l,socialLinks:s})=>{var c,u;return r("footer",{className:"pkt-footer","data-mode":"dark",children:f("div",{className:"pkt-footer__container",children:[f("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:o.title}),f("ul",{className:"pkt-footer__list",children:[o.text&&r("li",{className:"pkt-footer__text",children:o.text}),(c=o.links)==null?void 0:c.map((n,m)=>r("li",{className:"pkt-footer__list-item",children:f("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${m}`))]})]}),f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:l.title}),f("ul",{className:"pkt-footer__list",children:[l.text&&r("li",{className:"pkt-footer__text",children:l.text}),(u=l.links)==null?void 0:u.map((n,m)=>r("li",{className:"pkt-footer__list-item",children:f("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${m}`))]})]}),f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),f("ul",{className:"pkt-footer__list",children:[r("li",{className:"pkt-footer__list-item",children:f("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),r("li",{className:"pkt-footer__list-item",children:f("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),s&&f("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[r("div",{className:"pkt-footer__social-languages",children:s.filter(n=>n.language).map((n,m)=>r("div",{className:"pkt-footer__social-language",children:r("a",{href:n.href,"aria-label":`til ${n.language} versjon av nettsiden`,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:n.language})},`sociallinks-language-${m}`))}),r("div",{className:"pkt-footer__social-icons",children:s.filter(n=>n.iconName).map((n,m)=>r(E.Fragment,{children:r("a",{href:n.href,"aria-label":`til ${n.iconName}`,className:"pkt-footer__social-icon-link",target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:r(b,{className:"pkt-footer__social-icon",name:n.iconName})})},`sociallinks-${m}`))})]})]})})},ze=({links:o=[]})=>r("footer",{className:"pkt-footer-simple","data-mode":"dark",children:r("div",{className:"pkt-footer-simple__container",children:f("ul",{className:"pkt-footer-simple__list",children:[o.map((l,s)=>r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:`pkt-footer-simple__link ${l.external?" pkt-link--external":""}`,href:l.href,target:l.openInNewTab?"_blank":"_self",rel:l.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),l.text]})},s)),r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})}),Ke=({className:o,logoLink:l="https://www.oslo.kommune.no/",isLoggedIn:s=!1,representing:c="",canChangeRepresentation:u=!1,showLogInButton:n=!0,onLogIn:m,onLogOut:v,onChangeRepresentation:h})=>{const w=[o,"pkt-header"].filter(Boolean).join(" ");return f("header",{id:"pkt-header",className:w,"aria-label":"Topp",children:[r("div",{className:"pkt-header__logo",children:r("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:l,children:r(b,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/5.1/logos/"})})}),f("div",{className:"pkt-header__actions",children:[s&&u&&f("button",{className:"pkt-btn pkt-btn--secondary pkt-btn--icon-right","aria-label":`Bytt bruker fra ${c}`,onClick:h,children:[r(b,{name:"user",className:"pkt-btn__icon pkt-show-tablet-up"}),r("span",{className:"pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15",children:"Endre"}),r("span",{className:"pkt-btn__text pkt-hide-tablet-up",children:"Endre"}),r("span",{className:"pkt-btn__text--representing pkt-hide pkt-show-tablet-up",children:c})]}),s&&!u&&f("div",{className:"pkt-header__action",children:[r("span",{className:"pkt-header__action-text",children:r("span",{className:"pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text",children:c})}),r(b,{className:"pkt-header__action-icon pkt-show-phablet-up",name:"user"})]}),n&&s&&f("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg ut",onClick:v,children:[r(b,{className:"pkt-btn__icon pkt-show-tablet-up",name:"exit"}),r("span",{className:"pkt-btn__text",children:"Logg ut"})]}),n&&!s&&f("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg inn",onClick:m,children:[r(b,{className:"pkt-btn__icon",name:"user"}),r("span",{className:"pkt-btn__text",children:"Logg inn"})]})]})]})},fe=E.forwardRef(({label:o,id:l,children:s,...c},u)=>f("div",{className:"pkt-form-group",children:[r("label",{htmlFor:l,className:"pkt-form-label",children:o}),r("input",{className:"pkt-form-input",id:l,...c,ref:u}),s]}));fe.displayName="PktInput";const pe=E.forwardRef(({children:o,className:l,iconName:s="user",openInNewTab:c=!1,skin:u="normal",href:n="#",external:m=!1,title:v},h)=>{const w=[l,"pkt-linkcard",u&&`pkt-linkcard--${u}`].filter(Boolean).join(" ");return f("a",{href:n,className:`pkt-linkcard pkt-link ${w}`,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,ref:h,children:[r(b,{className:"pkt-link__icon",name:s}),f("div",{className:"pkt-linkcard__content",children:[r("div",{className:`pkt-linkcard__title ${m?"pkt-link pkt-link--external":""}`,children:v}),r("div",{className:"pkt-linkcard__text",children:o})]})]})});pe.displayName="PktLinkCard";const Xe=({children:o,skin:l="beige",title:s,...c})=>{const u=["pkt-messagebox",l&&`pkt-messagebox--${l}`].filter(Boolean).join(" ");return f("div",{...c,className:u,children:[r("div",{className:"pkt-messagebox__title",children:s}),r("div",{className:"pkt-messagebox__text",children:o})]})},de=E.forwardRef(({id:o,name:l,label:s,value:c,...u},n)=>f("div",{className:"pkt-form-group",children:[r("input",{type:"radio",className:"pkt-form-check-input",id:o,name:l,value:c,ref:n,...u}),r("label",{className:"pkt-form-label",htmlFor:o,children:s})]}));de.displayName="PktRadio";const Ze=({label:o,children:l})=>f(V,{children:[r("p",{children:o}),r("div",{className:"pkt-form-group",children:l})]});var me={exports:{}};/*!
|
|
27
|
+
Check the top-level render call using <`+a+">.")}return t}}function We(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Ct(t);if(Ae[a])return;Ae[a]=!0;var i="";e&&e._owner&&e._owner!==oe.current&&(i=" It was passed a child from "+O(e._owner.type)+"."),A(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,i),A(null)}}function Ye(e,t){{if(typeof e!="object")return;if(ae(e))for(var a=0;a<e.length;a++){var i=e[a];se(i)&&We(i,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var h=H(e);if(typeof h=="function"&&h!==e.entries)for(var _=h.call(e),m;!(m=_.next()).done;)se(m.value)&&We(m.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===k||t.$$typeof===x))a=t.propTypes;else return;if(a){var i=O(t);_t(a,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!le){le=!0;var h=O(t);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ot(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var i=t[a];if(i!=="children"&&i!=="key"){A(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),A(null);break}}e.ref!==null&&(A(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function $e(e,t,a,i,h,_){{var m=ut(e);if(!m){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=jt(h);T?p+=T:p+=Ie();var N;e===null?N="null":ae(e)?N="array":e!==void 0&&e.$$typeof===l?(N="<"+(O(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):N=typeof e,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,p)}var R=xt(e,t,a,h,_);if(R==null)return R;if(m){var j=t.children;if(j!==void 0)if(i)if(ae(j)){for(var W=0;W<j.length;W++)Ye(j[W],e);Object.freeze&&Object.freeze(j)}else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(j,e)}return e===c?Ot(R):St(R),R}}function Ft(e,t,a){return $e(e,t,a,!0)}function Dt(e,t,a){return $e(e,t,a,!1)}var It=Dt,At=Ft;$.Fragment=c,$.jsx=It,$.jsxs=At}()),$}process.env.NODE_ENV==="production"?Z.exports=Le():Z.exports=Ve();var Q=Z.exports;const V=Q.Fragment,r=Q.jsx,f=Q.jsxs,q={},Ue='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function He(o,l){return!q[o]&&typeof window.fetch=="function"&&(q[o]=window.fetch(l+o+".svg").then(s=>s.ok?s.text():(console.error("Missing icon: "+l+o+".svg"),Ue)).then(s=>s)),Promise.resolve(q[o])}const b=({name:o,path:l,className:s="",...c})=>{const u="https://punkt-cdn.oslo.kommune.no/5.1/icons/",[n,d]=E.useState(null);return E.useEffect(()=>{if(!o)return;He(o,l||u).then(k=>d(k))},[o,l,u]),n?r("span",{className:`pkt-icon ${s}`,dangerouslySetInnerHTML:{__html:n},...c}):null},Ge=E.forwardRef(({children:o,className:l,skin:s="info",closeAlert:c=!1,onClose:u,title:n,date:d,ariaLive:v="polite",...k},w)=>{const y=[l,"pkt-alert",s&&`pkt-alert--${s}`].filter(Boolean).join(" "),[x,C]=E.useState(!0),S=()=>{C(!1),u&&u()};return x?f("div",{...k,className:y,"aria-live":v,ref:w,children:[r(b,{className:"pkt-alert__icon",name:s==="info"?"alert-information":`alert-${s}`}),c&&r("div",{className:"pkt-alert__close",children:r("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:S,children:r(b,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),n&&r("div",{className:"pkt-alert__title",children:n}),r("div",{className:"pkt-alert__text",children:o}),d&&f("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",d]})]}):null}),ue=E.forwardRef(({children:o,className:l,iconName:s="user",secondIconName:c="user",size:u="medium",skin:n="primary",type:d="button",variant:v="label-only",...k},w)=>{const y=[l,"pkt-btn",u&&`pkt-btn--${u}`,n&&`pkt-btn--${n}`,v&&`pkt-btn--${v}`].filter(Boolean).join(" ");return f("button",{...k,className:y,type:d,ref:w,children:[v!=="label-only"&&r(b,{className:"pkt-btn__icon",name:s}),r("span",{className:"pkt-btn__text",children:o}),v==="icons-right-and-left"&&r(b,{className:"pkt-btn__icon",name:c})]})});ue.displayName="PktButton";const Je=({columnOne:o,columnTwo:l,socialLinks:s})=>{var c,u;return r("footer",{className:"pkt-footer","data-mode":"dark",children:f("div",{className:"pkt-footer__container",children:[f("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:o.title}),f("ul",{className:"pkt-footer__list",children:[o.text&&r("li",{className:"pkt-footer__text",children:o.text}),(c=o.links)==null?void 0:c.map((n,d)=>r("li",{className:"pkt-footer__list-item",children:f("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${d}`))]})]}),f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:l.title}),f("ul",{className:"pkt-footer__list",children:[l.text&&r("li",{className:"pkt-footer__text",children:l.text}),(u=l.links)==null?void 0:u.map((n,d)=>r("li",{className:"pkt-footer__list-item",children:f("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${d}`))]})]}),f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),f("ul",{className:"pkt-footer__list",children:[r("li",{className:"pkt-footer__list-item",children:f("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),r("li",{className:"pkt-footer__list-item",children:f("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),s&&f("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[r("div",{className:"pkt-footer__social-languages",children:s.filter(n=>n.language).map((n,d)=>r("div",{className:"pkt-footer__social-language",children:r("a",{href:n.href,"aria-label":`til ${n.language} versjon av nettsiden`,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:n.language})},`sociallinks-language-${d}`))}),r("div",{className:"pkt-footer__social-icons",children:s.filter(n=>n.iconName).map((n,d)=>r(E.Fragment,{children:r("a",{href:n.href,"aria-label":`til ${n.iconName}`,className:"pkt-footer__social-icon-link",target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:r(b,{className:"pkt-footer__social-icon",name:n.iconName})})},`sociallinks-${d}`))})]})]})})},ze=({links:o=[]})=>r("footer",{className:"pkt-footer-simple","data-mode":"dark",children:r("div",{className:"pkt-footer-simple__container",children:f("ul",{className:"pkt-footer-simple__list",children:[o.map((l,s)=>r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:`pkt-footer-simple__link ${l.external?" pkt-link--external":""}`,href:l.href,target:l.openInNewTab?"_blank":"_self",rel:l.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),l.text]})},s)),r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})}),Ke=({className:o,logoLink:l="https://www.oslo.kommune.no/",isLoggedIn:s=!1,representing:c="",canChangeRepresentation:u=!1,showLogInButton:n=!0,onLogIn:d,onLogOut:v,onChangeRepresentation:k})=>{const w=[o,"pkt-header"].filter(Boolean).join(" ");return f("header",{id:"pkt-header",className:w,"aria-label":"Topp",children:[r("div",{className:"pkt-header__logo",children:r("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:l,children:r(b,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/5.1/logos/"})})}),f("div",{className:"pkt-header__actions",children:[s&&u&&f("button",{className:"pkt-btn pkt-btn--secondary pkt-btn--icon-right","aria-label":`Bytt bruker fra ${c}`,onClick:k,children:[r(b,{name:"user",className:"pkt-btn__icon pkt-show-tablet-up"}),r("span",{className:"pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15",children:"Endre"}),r("span",{className:"pkt-btn__text pkt-hide-tablet-up",children:"Endre"}),r("span",{className:"pkt-btn__text--representing pkt-hide pkt-show-tablet-up",children:c})]}),s&&!u&&f("div",{className:"pkt-header__action",children:[r("span",{className:"pkt-header__action-text",children:r("span",{className:"pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text",children:c})}),r(b,{className:"pkt-header__action-icon pkt-show-phablet-up",name:"user"})]}),n&&s&&f("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg ut",onClick:v,children:[r(b,{className:"pkt-btn__icon pkt-show-tablet-up",name:"exit"}),r("span",{className:"pkt-btn__text",children:"Logg ut"})]}),n&&!s&&f("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg inn",onClick:d,children:[r(b,{className:"pkt-btn__icon",name:"user"}),r("span",{className:"pkt-btn__text",children:"Logg inn"})]})]})]})},fe=E.forwardRef(({label:o,id:l,children:s,...c},u)=>f("div",{className:"pkt-form-group",children:[r("label",{htmlFor:l,className:"pkt-form-label",children:o}),r("input",{className:"pkt-form-input",id:l,...c,ref:u}),s]}));fe.displayName="PktInput";const pe=E.forwardRef(({children:o,className:l,iconName:s="user",openInNewTab:c=!1,skin:u="normal",href:n="#",external:d=!1,title:v},k)=>{const w=[l,"pkt-linkcard",u&&`pkt-linkcard--${u}`].filter(Boolean).join(" ");return f("a",{href:n,className:`pkt-linkcard pkt-link ${w}`,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,ref:k,children:[r(b,{className:"pkt-link__icon",name:s}),f("div",{className:"pkt-linkcard__content",children:[r("div",{className:`pkt-linkcard__title ${d?"pkt-link pkt-link--external":""}`,children:v}),r("div",{className:"pkt-linkcard__text",children:o})]})]})});pe.displayName="PktLinkCard";const Xe=({children:o,skin:l="beige",title:s,...c})=>{const u=["pkt-messagebox",l&&`pkt-messagebox--${l}`].filter(Boolean).join(" ");return f("div",{...c,className:u,children:[r("div",{className:"pkt-messagebox__title",children:s}),r("div",{className:"pkt-messagebox__text",children:o})]})},de=E.forwardRef(({id:o,name:l,label:s,value:c,...u},n)=>f("div",{className:"pkt-form-group",children:[r("input",{type:"radio",className:"pkt-form-check-input",id:o,name:l,value:c,ref:n,...u}),r("label",{className:"pkt-form-label",htmlFor:o,children:s})]}));de.displayName="PktRadio";const Ze=({label:o,children:l})=>f(V,{children:[r("p",{children:o}),r("div",{className:"pkt-form-group",children:l})]});var me={exports:{}};/*!
|
|
28
28
|
Copyright (c) 2018 Jed Watson.
|
|
29
29
|
Licensed under the MIT License (MIT), see
|
|
30
30
|
http://jedwatson.github.io/classnames
|
|
31
|
-
*/(function(o){(function(){var l={}.hasOwnProperty;function s(){for(var c=[],u=0;u<arguments.length;u++){var n=arguments[u];if(n){var
|
|
31
|
+
*/(function(o){(function(){var l={}.hasOwnProperty;function s(){for(var c=[],u=0;u<arguments.length;u++){var n=arguments[u];if(n){var d=typeof n;if(d==="string"||d==="number")c.push(n);else if(Array.isArray(n)){if(n.length){var v=s.apply(null,n);v&&c.push(v)}}else if(d==="object"){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){c.push(n.toString());continue}for(var k in n)l.call(n,k)&&n[k]&&c.push(k)}}}return c.join(" ")}o.exports?(s.default=s,o.exports=s):window.classNames=s})()})(me);var Qe=me.exports;const qe=Be(Qe),et=({isResponsive:o,children:l})=>o?r("div",{className:"pkt-table-container",children:l}):r(V,{children:l}),tt=({isResponsive:o,modifiers:{info:l=!1,success:s=!1,strong:c=!1,shadow:u=!1}={},children:n})=>r(et,{isResponsive:o,children:r("table",{className:qe("pkt-table",{"pkt-table--info":l,"pkt-table--success":s,"pkt-table--strong":c,"pkt-table--shadow":u}),children:n})}),rt=({children:o})=>r("td",{className:"pkt-table__th",children:o}),at=({children:o})=>r("th",{className:"pkt-table__th",children:o}),ke=E.forwardRef(({children:o,className:l,skin:s="blue",textStyle:c="normal-text",size:u="medium",closeTag:n=!1,iconName:d="",type:v="button",ariaLabel:k="close",onClick:w=()=>{}},y)=>{const[x,C]=E.useState(!1),S=D=>{C(!0),w(D)},M=["pkt-tag",u&&`pkt-tag--${u}`,s&&`pkt-tag--${s}`,c&&`pkt-tag--${c}`,l].filter(Boolean).join(" "),U=["pkt-tag","pkt-btn","pkt-btn--tertiary",u&&`pkt-tag--${u}`,s&&`pkt-tag--${s}`,c&&`pkt-tag--${c}`,d&&n?"pkt-btn--icons-right-and-left":null,n&&!d?"pkt-btn--icon-right":null,l].filter(Boolean).join(" "),H=!x;return n&&d?r(V,{children:H&&f("button",{className:U,type:v,"aria-label":k,onClick:S,ref:y,children:[r(b,{className:"pkt-tag__icon",name:d}),o,r(b,{className:"pkt-tag__close-btn",name:"close"})]})}):n?r(V,{children:H&&f("button",{className:U,type:v,"aria-label":k,onClick:S,ref:y,children:[r(b,{className:"pkt-tag__close-btn",name:"close"}),o]})}):d?f("span",{className:M,children:[r(b,{className:"pkt-tag__icon",name:d}),o]}):r("span",{className:M,children:o})});ke.displayName="PktTag";const he=E.forwardRef(({id:o,label:l,...s},c)=>f("div",{className:"pkt-form-group",children:[r("label",{htmlFor:o,className:"pkt-form-label",children:l}),r("textarea",{className:"pkt-form-textarea",id:o,ref:c,...s})]}));he.displayName="PktTextarea",g.PktAlert=Ge,g.PktButton=ue,g.PktFooter=Je,g.PktFooterSimple=ze,g.PktHeader=Ke,g.PktIcon=b,g.PktInput=fe,g.PktLinkCard=pe,g.PktMessagebox=Xe,g.PktRadio=de,g.PktRadioGroup=Ze,g.PktTable=tt,g.PktTableData=rt,g.PktTableHeader=at,g.PktTag=ke,g.PktTextarea=he,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|
package/dist/tag/Tag.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IPktTag extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
skin?: 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey';
|
|
3
|
+
skin?: 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'blue-light';
|
|
4
|
+
textStyle?: 'normal-text' | 'thin-text';
|
|
4
5
|
size?: 'small' | 'medium' | 'large';
|
|
5
6
|
closeTag?: boolean;
|
|
6
7
|
iconName?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-react",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.8",
|
|
4
4
|
"description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@oslokommune/punkt-assets": "^5.1.5",
|
|
35
|
-
"@oslokommune/punkt-css": "^5.1.
|
|
35
|
+
"@oslokommune/punkt-css": "^5.1.8",
|
|
36
36
|
"@testing-library/jest-dom": "^5.16.5",
|
|
37
37
|
"@testing-library/react": "^14.0.0",
|
|
38
38
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
91
91
|
},
|
|
92
92
|
"license": "MIT",
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "a16c5fa1585e36edae9b60bfc8fd8671e56b1826"
|
|
94
94
|
}
|
|
@@ -3,7 +3,8 @@ import React, { ForwardedRef, forwardRef, useState } from 'react';
|
|
|
3
3
|
import { PktIcon } from '../icon/Icon'
|
|
4
4
|
|
|
5
5
|
export interface IPktTag extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
-
skin?: 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey';
|
|
6
|
+
skin?: 'blue' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'blue-light';
|
|
7
|
+
textStyle?: 'normal-text' | 'thin-text';
|
|
7
8
|
size?: 'small' | 'medium' | 'large';
|
|
8
9
|
closeTag?: boolean;
|
|
9
10
|
iconName?: string;
|
|
@@ -14,6 +15,7 @@ export const PktTag = forwardRef(({
|
|
|
14
15
|
children,
|
|
15
16
|
className,
|
|
16
17
|
skin = 'blue',
|
|
18
|
+
textStyle = 'normal-text',
|
|
17
19
|
size = 'medium',
|
|
18
20
|
closeTag = false,
|
|
19
21
|
iconName = '',
|
|
@@ -32,6 +34,7 @@ export const PktTag = forwardRef(({
|
|
|
32
34
|
'pkt-tag',
|
|
33
35
|
size && `pkt-tag--${size}`,
|
|
34
36
|
skin && `pkt-tag--${skin}`,
|
|
37
|
+
textStyle && `pkt-tag--${textStyle}`,
|
|
35
38
|
className,
|
|
36
39
|
]
|
|
37
40
|
.filter(Boolean)
|
|
@@ -43,6 +46,7 @@ export const PktTag = forwardRef(({
|
|
|
43
46
|
'pkt-btn--tertiary',
|
|
44
47
|
size && `pkt-tag--${size}`,
|
|
45
48
|
skin && `pkt-tag--${skin}`,
|
|
49
|
+
textStyle && `pkt-tag--${textStyle}`,
|
|
46
50
|
iconName && closeTag ? 'pkt-btn--icons-right-and-left' : null,
|
|
47
51
|
closeTag && !iconName ? 'pkt-btn--icon-right' : null,
|
|
48
52
|
className,
|