@oslokommune/punkt-react 3.4.0 → 3.4.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 +36 -0
- package/dist/alert/Alert.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/punkt-react.es.js +247 -248
- package/dist/punkt-react.umd.js +8 -8
- package/package.json +3 -2
- package/src/components/alert/Alert.test.tsx +38 -0
- package/src/components/alert/Alert.tsx +7 -4
- package/src/components/button/Button.test.tsx +28 -0
- package/src/components/header/Header.tsx +1 -2
- package/src/components/index.ts +1 -1
- package/src/components/linkcard/LinkCard.test.tsx +4 -4
- package/src/components/messagebox/Messagebox.tsx +1 -1
- package/src/components/radioGroup/RadioGroup.tsx +1 -0
- package/src/components/table/Table.test.tsx +1 -1
- package/src/components/table/Table.tsx +1 -1
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import te, { forwardRef as G, useState as dr } from "react";
|
|
2
|
+
var L = {}, pr = {
|
|
3
3
|
get exports() {
|
|
4
|
-
return
|
|
4
|
+
return L;
|
|
5
5
|
},
|
|
6
6
|
set exports(i) {
|
|
7
|
-
|
|
7
|
+
L = i;
|
|
8
8
|
}
|
|
9
|
-
},
|
|
9
|
+
}, W = {};
|
|
10
10
|
/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.production.min.js
|
|
@@ -19,22 +19,22 @@ var Y = {}, pr = {
|
|
|
19
19
|
var we;
|
|
20
20
|
function vr() {
|
|
21
21
|
if (we)
|
|
22
|
-
return
|
|
22
|
+
return W;
|
|
23
23
|
we = 1;
|
|
24
|
-
var i =
|
|
25
|
-
function _(k, m,
|
|
26
|
-
var g,
|
|
27
|
-
|
|
24
|
+
var i = te, c = Symbol.for("react.element"), s = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, p = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
|
+
function _(k, m, x) {
|
|
26
|
+
var g, P = {}, w = null, j = null;
|
|
27
|
+
x !== void 0 && (w = "" + x), m.key !== void 0 && (w = "" + m.key), m.ref !== void 0 && (j = m.ref);
|
|
28
28
|
for (g in m)
|
|
29
|
-
|
|
29
|
+
l.call(m, g) && !f.hasOwnProperty(g) && (P[g] = m[g]);
|
|
30
30
|
if (k && k.defaultProps)
|
|
31
31
|
for (g in m = k.defaultProps, m)
|
|
32
|
-
|
|
33
|
-
return { $$typeof:
|
|
32
|
+
P[g] === void 0 && (P[g] = m[g]);
|
|
33
|
+
return { $$typeof: c, type: k, key: w, ref: j, props: P, _owner: p.current };
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return W.Fragment = s, W.jsx = _, W.jsxs = _, W;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var Y = {};
|
|
38
38
|
/**
|
|
39
39
|
* @license React
|
|
40
40
|
* react-jsx-runtime.development.js
|
|
@@ -47,14 +47,14 @@ var W = {};
|
|
|
47
47
|
var Oe;
|
|
48
48
|
function mr() {
|
|
49
49
|
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
-
var i =
|
|
50
|
+
var i = te, c = Symbol.for("react.element"), s = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), k = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), ae = Symbol.iterator, Ce = "@@iterator";
|
|
51
51
|
function je(e) {
|
|
52
52
|
if (e === null || typeof e != "object")
|
|
53
53
|
return null;
|
|
54
54
|
var r = ae && e[ae] || e[Ce];
|
|
55
55
|
return typeof r == "function" ? r : null;
|
|
56
56
|
}
|
|
57
|
-
var
|
|
57
|
+
var F = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58
58
|
function E(e) {
|
|
59
59
|
{
|
|
60
60
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
@@ -64,10 +64,10 @@ function mr() {
|
|
|
64
64
|
}
|
|
65
65
|
function Fe(e, r, t) {
|
|
66
66
|
{
|
|
67
|
-
var a =
|
|
67
|
+
var a = F.ReactDebugCurrentFrame, d = a.getStackAddendum();
|
|
68
68
|
d !== "" && (r += "%s", t = t.concat([d]));
|
|
69
|
-
var v = t.map(function(
|
|
70
|
-
return String(
|
|
69
|
+
var v = t.map(function(u) {
|
|
70
|
+
return String(u);
|
|
71
71
|
});
|
|
72
72
|
v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
|
|
73
73
|
}
|
|
@@ -75,7 +75,7 @@ function mr() {
|
|
|
75
75
|
var De = !1, Ae = !1, $e = !1, Ie = !1, We = !1, ne;
|
|
76
76
|
ne = Symbol.for("react.module.reference");
|
|
77
77
|
function Ye(e) {
|
|
78
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
78
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === f || We || e === p || e === x || e === g || Ie || e === j || De || Ae || $e || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === P || e.$$typeof === _ || e.$$typeof === k || e.$$typeof === m || // This needs to include all possible module reference object
|
|
79
79
|
// types supported by any Flight configuration anywhere since
|
|
80
80
|
// we don't know which Flight build this will end up being used
|
|
81
81
|
// with.
|
|
@@ -99,15 +99,15 @@ function mr() {
|
|
|
99
99
|
if (typeof e == "string")
|
|
100
100
|
return e;
|
|
101
101
|
switch (e) {
|
|
102
|
-
case
|
|
102
|
+
case l:
|
|
103
103
|
return "Fragment";
|
|
104
|
-
case
|
|
104
|
+
case s:
|
|
105
105
|
return "Portal";
|
|
106
106
|
case f:
|
|
107
107
|
return "Profiler";
|
|
108
108
|
case p:
|
|
109
109
|
return "StrictMode";
|
|
110
|
-
case
|
|
110
|
+
case x:
|
|
111
111
|
return "Suspense";
|
|
112
112
|
case g:
|
|
113
113
|
return "SuspenseList";
|
|
@@ -122,13 +122,13 @@ function mr() {
|
|
|
122
122
|
return ie(t._context) + ".Provider";
|
|
123
123
|
case m:
|
|
124
124
|
return Le(e, e.render, "ForwardRef");
|
|
125
|
-
case
|
|
125
|
+
case P:
|
|
126
126
|
var a = e.displayName || null;
|
|
127
127
|
return a !== null ? a : O(e.type) || "Memo";
|
|
128
128
|
case w: {
|
|
129
|
-
var d = e, v = d._payload,
|
|
129
|
+
var d = e, v = d._payload, u = d._init;
|
|
130
130
|
try {
|
|
131
|
-
return O(
|
|
131
|
+
return O(u(v));
|
|
132
132
|
} catch {
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
@@ -136,13 +136,13 @@ function mr() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var C = Object.assign,
|
|
139
|
+
var C = Object.assign, $ = 0, oe, se, le, ce, ue, fe, de;
|
|
140
140
|
function pe() {
|
|
141
141
|
}
|
|
142
142
|
pe.__reactDisabledLog = !0;
|
|
143
143
|
function Be() {
|
|
144
144
|
{
|
|
145
|
-
if (
|
|
145
|
+
if ($ === 0) {
|
|
146
146
|
oe = console.log, se = console.info, le = console.warn, ce = console.error, ue = console.group, fe = console.groupCollapsed, de = console.groupEnd;
|
|
147
147
|
var e = {
|
|
148
148
|
configurable: !0,
|
|
@@ -160,12 +160,12 @@ function mr() {
|
|
|
160
160
|
groupEnd: e
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
$++;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
function Me() {
|
|
167
167
|
{
|
|
168
|
-
if (
|
|
168
|
+
if ($--, $ === 0) {
|
|
169
169
|
var e = {
|
|
170
170
|
configurable: !0,
|
|
171
171
|
enumerable: !0,
|
|
@@ -195,30 +195,30 @@ function mr() {
|
|
|
195
195
|
})
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
$ < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
var
|
|
201
|
+
var J = F.ReactCurrentDispatcher, z;
|
|
202
202
|
function B(e, r, t) {
|
|
203
203
|
{
|
|
204
|
-
if (
|
|
204
|
+
if (z === void 0)
|
|
205
205
|
try {
|
|
206
206
|
throw Error();
|
|
207
207
|
} catch (d) {
|
|
208
208
|
var a = d.stack.trim().match(/\n( *(at )?)/);
|
|
209
|
-
|
|
209
|
+
z = a && a[1] || "";
|
|
210
210
|
}
|
|
211
211
|
return `
|
|
212
|
-
` +
|
|
212
|
+
` + z + e;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
var
|
|
215
|
+
var H = !1, M;
|
|
216
216
|
{
|
|
217
217
|
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
218
218
|
M = new Ve();
|
|
219
219
|
}
|
|
220
220
|
function ve(e, r) {
|
|
221
|
-
if (!e ||
|
|
221
|
+
if (!e || H)
|
|
222
222
|
return "";
|
|
223
223
|
{
|
|
224
224
|
var t = M.get(e);
|
|
@@ -226,34 +226,34 @@ function mr() {
|
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
228
228
|
var a;
|
|
229
|
-
|
|
229
|
+
H = !0;
|
|
230
230
|
var d = Error.prepareStackTrace;
|
|
231
231
|
Error.prepareStackTrace = void 0;
|
|
232
232
|
var v;
|
|
233
|
-
v =
|
|
233
|
+
v = J.current, J.current = null, Be();
|
|
234
234
|
try {
|
|
235
235
|
if (r) {
|
|
236
|
-
var
|
|
236
|
+
var u = function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
};
|
|
239
|
-
if (Object.defineProperty(
|
|
239
|
+
if (Object.defineProperty(u.prototype, "props", {
|
|
240
240
|
set: function() {
|
|
241
241
|
throw Error();
|
|
242
242
|
}
|
|
243
243
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
244
244
|
try {
|
|
245
|
-
Reflect.construct(
|
|
245
|
+
Reflect.construct(u, []);
|
|
246
246
|
} catch (S) {
|
|
247
247
|
a = S;
|
|
248
248
|
}
|
|
249
|
-
Reflect.construct(e, [],
|
|
249
|
+
Reflect.construct(e, [], u);
|
|
250
250
|
} else {
|
|
251
251
|
try {
|
|
252
|
-
|
|
252
|
+
u.call();
|
|
253
253
|
} catch (S) {
|
|
254
254
|
a = S;
|
|
255
255
|
}
|
|
256
|
-
e.call(
|
|
256
|
+
e.call(u.prototype);
|
|
257
257
|
}
|
|
258
258
|
} else {
|
|
259
259
|
try {
|
|
@@ -265,27 +265,27 @@ function mr() {
|
|
|
265
265
|
}
|
|
266
266
|
} catch (S) {
|
|
267
267
|
if (S && a && typeof S.stack == "string") {
|
|
268
|
-
for (var
|
|
268
|
+
for (var o = S.stack.split(`
|
|
269
269
|
`), R = a.stack.split(`
|
|
270
|
-
`), h =
|
|
270
|
+
`), h = o.length - 1, b = R.length - 1; h >= 1 && b >= 0 && o[h] !== R[b]; )
|
|
271
271
|
b--;
|
|
272
272
|
for (; h >= 1 && b >= 0; h--, b--)
|
|
273
|
-
if (
|
|
273
|
+
if (o[h] !== R[b]) {
|
|
274
274
|
if (h !== 1 || b !== 1)
|
|
275
275
|
do
|
|
276
|
-
if (h--, b--, b < 0 ||
|
|
277
|
-
var
|
|
278
|
-
` +
|
|
279
|
-
return e.displayName &&
|
|
276
|
+
if (h--, b--, b < 0 || o[h] !== R[b]) {
|
|
277
|
+
var N = `
|
|
278
|
+
` + o[h].replace(" at new ", " at ");
|
|
279
|
+
return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, N), N;
|
|
280
280
|
}
|
|
281
281
|
while (h >= 1 && b >= 0);
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
} finally {
|
|
286
|
-
|
|
286
|
+
H = !1, J.current = v, Me(), Error.prepareStackTrace = d;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
288
|
+
var A = e ? e.displayName || e.name : "", Te = A ? B(A) : "";
|
|
289
289
|
return typeof e == "function" && M.set(e, Te), Te;
|
|
290
290
|
}
|
|
291
291
|
function Ue(e, r, t) {
|
|
@@ -303,7 +303,7 @@ function mr() {
|
|
|
303
303
|
if (typeof e == "string")
|
|
304
304
|
return B(e);
|
|
305
305
|
switch (e) {
|
|
306
|
-
case
|
|
306
|
+
case x:
|
|
307
307
|
return B("Suspense");
|
|
308
308
|
case g:
|
|
309
309
|
return B("SuspenseList");
|
|
@@ -312,7 +312,7 @@ function mr() {
|
|
|
312
312
|
switch (e.$$typeof) {
|
|
313
313
|
case m:
|
|
314
314
|
return Ue(e.render);
|
|
315
|
-
case
|
|
315
|
+
case P:
|
|
316
316
|
return V(e.type, r, t);
|
|
317
317
|
case w: {
|
|
318
318
|
var a = e, d = a._payload, v = a._init;
|
|
@@ -324,7 +324,7 @@ function mr() {
|
|
|
324
324
|
}
|
|
325
325
|
return "";
|
|
326
326
|
}
|
|
327
|
-
var U = Object.prototype.hasOwnProperty, me = {}, he =
|
|
327
|
+
var U = Object.prototype.hasOwnProperty, me = {}, he = F.ReactDebugCurrentFrame;
|
|
328
328
|
function q(e) {
|
|
329
329
|
if (e) {
|
|
330
330
|
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
@@ -335,24 +335,24 @@ function mr() {
|
|
|
335
335
|
function Ge(e, r, t, a, d) {
|
|
336
336
|
{
|
|
337
337
|
var v = Function.call.bind(U);
|
|
338
|
-
for (var
|
|
339
|
-
if (v(e,
|
|
340
|
-
var
|
|
338
|
+
for (var u in e)
|
|
339
|
+
if (v(e, u)) {
|
|
340
|
+
var o = void 0;
|
|
341
341
|
try {
|
|
342
|
-
if (typeof e[
|
|
343
|
-
var R = Error((a || "React class") + ": " + t + " type `" +
|
|
342
|
+
if (typeof e[u] != "function") {
|
|
343
|
+
var R = Error((a || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
344
344
|
throw R.name = "Invariant Violation", R;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
o = e[u](r, u, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
347
|
} catch (h) {
|
|
348
|
-
|
|
348
|
+
o = h;
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
o && !(o instanceof Error) && (q(d), E("%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).", a || "React class", t, u, typeof o), q(null)), o instanceof Error && !(o.message in me) && (me[o.message] = !0, q(d), E("Failed %s type: %s", t, o.message), q(null));
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
var Je = Array.isArray;
|
|
355
|
-
function
|
|
355
|
+
function K(e) {
|
|
356
356
|
return Je(e);
|
|
357
357
|
}
|
|
358
358
|
function ze(e) {
|
|
@@ -375,13 +375,13 @@ function mr() {
|
|
|
375
375
|
if (He(e))
|
|
376
376
|
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), be(e);
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var I = F.ReactCurrentOwner, Ke = {
|
|
379
379
|
key: !0,
|
|
380
380
|
ref: !0,
|
|
381
381
|
__self: !0,
|
|
382
382
|
__source: !0
|
|
383
|
-
}, ke, ge,
|
|
384
|
-
|
|
383
|
+
}, ke, ge, X;
|
|
384
|
+
X = {};
|
|
385
385
|
function Xe(e) {
|
|
386
386
|
if (U.call(e, "ref")) {
|
|
387
387
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
@@ -399,9 +399,9 @@ function mr() {
|
|
|
399
399
|
return e.key !== void 0;
|
|
400
400
|
}
|
|
401
401
|
function Qe(e, r) {
|
|
402
|
-
if (typeof e.ref == "string" &&
|
|
403
|
-
var t = O(
|
|
404
|
-
|
|
402
|
+
if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
|
|
403
|
+
var t = O(I.current.type);
|
|
404
|
+
X[t] || (E('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(I.current.type), e.ref), X[t] = !0);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
function er(e, r) {
|
|
@@ -426,70 +426,70 @@ function mr() {
|
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var tr = function(e, r, t, a, d, v,
|
|
430
|
-
var
|
|
429
|
+
var tr = function(e, r, t, a, d, v, u) {
|
|
430
|
+
var o = {
|
|
431
431
|
// This tag allows us to uniquely identify this as a React Element
|
|
432
|
-
$$typeof:
|
|
432
|
+
$$typeof: c,
|
|
433
433
|
// Built-in properties that belong on the element
|
|
434
434
|
type: e,
|
|
435
435
|
key: r,
|
|
436
436
|
ref: t,
|
|
437
|
-
props:
|
|
437
|
+
props: u,
|
|
438
438
|
// Record the component responsible for creating this element.
|
|
439
439
|
_owner: v
|
|
440
440
|
};
|
|
441
|
-
return
|
|
441
|
+
return o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !0,
|
|
445
445
|
value: !1
|
|
446
|
-
}), Object.defineProperty(
|
|
446
|
+
}), Object.defineProperty(o, "_self", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
449
449
|
writable: !1,
|
|
450
450
|
value: a
|
|
451
|
-
}), Object.defineProperty(
|
|
451
|
+
}), Object.defineProperty(o, "_source", {
|
|
452
452
|
configurable: !1,
|
|
453
453
|
enumerable: !1,
|
|
454
454
|
writable: !1,
|
|
455
455
|
value: d
|
|
456
|
-
}), Object.freeze && (Object.freeze(
|
|
456
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
457
457
|
};
|
|
458
458
|
function ar(e, r, t, a, d) {
|
|
459
459
|
{
|
|
460
|
-
var v,
|
|
461
|
-
t !== void 0 && (_e(t),
|
|
460
|
+
var v, u = {}, o = null, R = null;
|
|
461
|
+
t !== void 0 && (_e(t), o = "" + t), Ze(r) && (_e(r.key), o = "" + r.key), Xe(r) && (R = r.ref, Qe(r, d));
|
|
462
462
|
for (v in r)
|
|
463
|
-
U.call(r, v) && !Ke.hasOwnProperty(v) && (
|
|
463
|
+
U.call(r, v) && !Ke.hasOwnProperty(v) && (u[v] = r[v]);
|
|
464
464
|
if (e && e.defaultProps) {
|
|
465
465
|
var h = e.defaultProps;
|
|
466
466
|
for (v in h)
|
|
467
|
-
|
|
467
|
+
u[v] === void 0 && (u[v] = h[v]);
|
|
468
468
|
}
|
|
469
|
-
if (
|
|
469
|
+
if (o || R) {
|
|
470
470
|
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
471
|
-
|
|
471
|
+
o && er(u, b), R && rr(u, b);
|
|
472
472
|
}
|
|
473
|
-
return tr(e,
|
|
473
|
+
return tr(e, o, R, d, a, I.current, u);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
function
|
|
476
|
+
var Z = F.ReactCurrentOwner, ye = F.ReactDebugCurrentFrame;
|
|
477
|
+
function D(e) {
|
|
478
478
|
if (e) {
|
|
479
479
|
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
480
480
|
ye.setExtraStackFrame(t);
|
|
481
481
|
} else
|
|
482
482
|
ye.setExtraStackFrame(null);
|
|
483
483
|
}
|
|
484
|
-
var
|
|
485
|
-
|
|
486
|
-
function
|
|
487
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
484
|
+
var Q;
|
|
485
|
+
Q = !1;
|
|
486
|
+
function ee(e) {
|
|
487
|
+
return typeof e == "object" && e !== null && e.$$typeof === c;
|
|
488
488
|
}
|
|
489
489
|
function Ee() {
|
|
490
490
|
{
|
|
491
|
-
if (
|
|
492
|
-
var e = O(
|
|
491
|
+
if (Z.current) {
|
|
492
|
+
var e = O(Z.current.type);
|
|
493
493
|
if (e)
|
|
494
494
|
return `
|
|
495
495
|
|
|
@@ -532,25 +532,25 @@ Check the top-level render call using <` + t + ">.");
|
|
|
532
532
|
return;
|
|
533
533
|
Re[t] = !0;
|
|
534
534
|
var a = "";
|
|
535
|
-
e && e._owner && e._owner !==
|
|
535
|
+
e && e._owner && e._owner !== Z.current && (a = " It was passed a child from " + O(e._owner.type) + "."), D(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), D(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
function Ne(e, r) {
|
|
539
539
|
{
|
|
540
540
|
if (typeof e != "object")
|
|
541
541
|
return;
|
|
542
|
-
if (
|
|
542
|
+
if (K(e))
|
|
543
543
|
for (var t = 0; t < e.length; t++) {
|
|
544
544
|
var a = e[t];
|
|
545
|
-
|
|
545
|
+
ee(a) && xe(a, r);
|
|
546
546
|
}
|
|
547
|
-
else if (
|
|
547
|
+
else if (ee(e))
|
|
548
548
|
e._store && (e._store.validated = !0);
|
|
549
549
|
else if (e) {
|
|
550
550
|
var d = je(e);
|
|
551
551
|
if (typeof d == "function" && d !== e.entries)
|
|
552
|
-
for (var v = d.call(e),
|
|
553
|
-
|
|
552
|
+
for (var v = d.call(e), u; !(u = v.next()).done; )
|
|
553
|
+
ee(u.value) && xe(u.value, r);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -564,15 +564,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
564
564
|
t = r.propTypes;
|
|
565
565
|
else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
|
|
566
566
|
// Inner props are checked in the reconciler.
|
|
567
|
-
r.$$typeof ===
|
|
567
|
+
r.$$typeof === P))
|
|
568
568
|
t = r.propTypes;
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (t) {
|
|
572
572
|
var a = O(r);
|
|
573
573
|
Ge(t, e.props, "prop", a, e);
|
|
574
|
-
} else if (r.PropTypes !== void 0 && !
|
|
575
|
-
|
|
574
|
+
} else if (r.PropTypes !== void 0 && !Q) {
|
|
575
|
+
Q = !0;
|
|
576
576
|
var d = O(r);
|
|
577
577
|
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
|
|
578
578
|
}
|
|
@@ -584,41 +584,41 @@ Check the top-level render call using <` + t + ">.");
|
|
|
584
584
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
585
585
|
var a = r[t];
|
|
586
586
|
if (a !== "children" && a !== "key") {
|
|
587
|
-
|
|
587
|
+
D(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), D(null);
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
e.ref !== null && (
|
|
591
|
+
e.ref !== null && (D(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
function Pe(e, r, t, a, d, v) {
|
|
595
595
|
{
|
|
596
|
-
var
|
|
597
|
-
if (!
|
|
598
|
-
var
|
|
599
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
596
|
+
var u = Ye(e);
|
|
597
|
+
if (!u) {
|
|
598
|
+
var o = "";
|
|
599
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
600
600
|
var R = nr(d);
|
|
601
|
-
R ?
|
|
601
|
+
R ? o += R : o += Ee();
|
|
602
602
|
var h;
|
|
603
|
-
e === null ? h = "null" :
|
|
603
|
+
e === null ? h = "null" : K(e) ? h = "array" : e !== void 0 && e.$$typeof === c ? (h = "<" + (O(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, o);
|
|
604
604
|
}
|
|
605
605
|
var b = ar(e, r, t, d, v);
|
|
606
606
|
if (b == null)
|
|
607
607
|
return b;
|
|
608
|
-
if (
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
608
|
+
if (u) {
|
|
609
|
+
var N = r.children;
|
|
610
|
+
if (N !== void 0)
|
|
611
611
|
if (a)
|
|
612
|
-
if (
|
|
613
|
-
for (var
|
|
614
|
-
Ne(
|
|
615
|
-
Object.freeze && Object.freeze(
|
|
612
|
+
if (K(N)) {
|
|
613
|
+
for (var A = 0; A < N.length; A++)
|
|
614
|
+
Ne(N[A], e);
|
|
615
|
+
Object.freeze && Object.freeze(N);
|
|
616
616
|
} else
|
|
617
617
|
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
618
618
|
else
|
|
619
|
-
Ne(
|
|
619
|
+
Ne(N, e);
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === l ? sr(b) : or(b), b;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
function lr(e, r, t) {
|
|
@@ -628,96 +628,96 @@ Check the top-level render call using <` + t + ">.");
|
|
|
628
628
|
return Pe(e, r, t, !1);
|
|
629
629
|
}
|
|
630
630
|
var ur = cr, fr = lr;
|
|
631
|
-
|
|
632
|
-
}()),
|
|
631
|
+
Y.Fragment = l, Y.jsx = ur, Y.jsxs = fr;
|
|
632
|
+
}()), Y;
|
|
633
633
|
}
|
|
634
634
|
(function(i) {
|
|
635
635
|
process.env.NODE_ENV === "production" ? i.exports = vr() : i.exports = mr();
|
|
636
636
|
})(pr);
|
|
637
|
-
const Se =
|
|
637
|
+
const Se = L.Fragment, n = L.jsx, y = L.jsxs, T = ({
|
|
638
638
|
className: i,
|
|
639
|
-
name:
|
|
640
|
-
viewBox:
|
|
641
|
-
...
|
|
639
|
+
name: c,
|
|
640
|
+
viewBox: s = "0 0 32 32",
|
|
641
|
+
...l
|
|
642
642
|
}) => {
|
|
643
643
|
const p = [i].filter(Boolean).join(" ");
|
|
644
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
645
|
-
}, xr = (
|
|
646
|
-
children: i,
|
|
647
|
-
className: l,
|
|
648
|
-
skin: u = "info",
|
|
649
|
-
closeAlert: o = !1,
|
|
650
|
-
onClose: p,
|
|
651
|
-
title: f,
|
|
652
|
-
date: _,
|
|
653
|
-
ariaLive: k = "polite",
|
|
654
|
-
...m
|
|
655
|
-
}) => {
|
|
656
|
-
const N = [l, "pkt-alert", u && `pkt-alert--${u}`].filter(Boolean).join(" "), [g, x] = dr(!0), w = () => {
|
|
657
|
-
x(!1), p && p();
|
|
658
|
-
};
|
|
659
|
-
return g ? /* @__PURE__ */ y("div", { ...m, className: N, "aria-live": k, children: [
|
|
660
|
-
/* @__PURE__ */ n("div", { className: "pkt-alert__icon", children: /* @__PURE__ */ n(T, { name: u === "info" ? "alert-information" : `alert-${u}` }) }),
|
|
661
|
-
o && /* @__PURE__ */ n("div", { className: "pkt-alert__close", children: /* @__PURE__ */ n(
|
|
662
|
-
"button",
|
|
663
|
-
{
|
|
664
|
-
className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
|
|
665
|
-
tabIndex: 0,
|
|
666
|
-
"aria-label": "close",
|
|
667
|
-
onClick: w,
|
|
668
|
-
children: /* @__PURE__ */ n(T, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
669
|
-
}
|
|
670
|
-
) }),
|
|
671
|
-
f && /* @__PURE__ */ n("div", { className: "pkt-alert__title", children: f }),
|
|
672
|
-
/* @__PURE__ */ n("div", { className: "pkt-alert__text", children: i }),
|
|
673
|
-
_ && /* @__PURE__ */ y("div", { className: "pkt-alert__date", children: [
|
|
674
|
-
"Sist oppdatert: ",
|
|
675
|
-
_
|
|
676
|
-
] })
|
|
677
|
-
] }) : null;
|
|
678
|
-
}, hr = te(
|
|
644
|
+
return /* @__PURE__ */ n("svg", { ...l, className: p, viewBox: s, children: /* @__PURE__ */ n("use", { href: `#${c}` }) });
|
|
645
|
+
}, xr = G(
|
|
679
646
|
({
|
|
680
647
|
children: i,
|
|
681
|
-
className:
|
|
682
|
-
|
|
683
|
-
|
|
648
|
+
className: c,
|
|
649
|
+
skin: s = "info",
|
|
650
|
+
closeAlert: l = !1,
|
|
651
|
+
onClose: p,
|
|
652
|
+
title: f,
|
|
653
|
+
date: _,
|
|
654
|
+
ariaLive: k = "polite",
|
|
655
|
+
...m
|
|
656
|
+
}, x) => {
|
|
657
|
+
const g = [c, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [P, w] = dr(!0), j = () => {
|
|
658
|
+
w(!1), p && p();
|
|
659
|
+
};
|
|
660
|
+
return P ? /* @__PURE__ */ y("div", { ...m, className: g, "aria-live": k, ref: x, children: [
|
|
661
|
+
/* @__PURE__ */ n("div", { className: "pkt-alert__icon", children: /* @__PURE__ */ n(T, { name: s === "info" ? "alert-information" : `alert-${s}` }) }),
|
|
662
|
+
l && /* @__PURE__ */ n("div", { className: "pkt-alert__close", children: /* @__PURE__ */ n(
|
|
663
|
+
"button",
|
|
664
|
+
{
|
|
665
|
+
className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
|
|
666
|
+
tabIndex: 0,
|
|
667
|
+
"aria-label": "close",
|
|
668
|
+
onClick: j,
|
|
669
|
+
children: /* @__PURE__ */ n(T, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
670
|
+
}
|
|
671
|
+
) }),
|
|
672
|
+
f && /* @__PURE__ */ n("div", { className: "pkt-alert__title", children: f }),
|
|
673
|
+
/* @__PURE__ */ n("div", { className: "pkt-alert__text", children: i }),
|
|
674
|
+
_ && /* @__PURE__ */ y("div", { className: "pkt-alert__date", children: [
|
|
675
|
+
"Sist oppdatert: ",
|
|
676
|
+
_
|
|
677
|
+
] })
|
|
678
|
+
] }) : null;
|
|
679
|
+
}
|
|
680
|
+
), hr = G(
|
|
681
|
+
({
|
|
682
|
+
children: i,
|
|
683
|
+
className: c,
|
|
684
|
+
iconName: s = "user",
|
|
685
|
+
secondIconName: l = "user",
|
|
684
686
|
size: p = "medium",
|
|
685
687
|
skin: f = "primary",
|
|
686
688
|
type: _ = "button",
|
|
687
689
|
variant: k = "label-only",
|
|
688
690
|
...m
|
|
689
|
-
},
|
|
691
|
+
}, x) => {
|
|
690
692
|
const g = [
|
|
691
|
-
|
|
693
|
+
c,
|
|
692
694
|
"pkt-btn",
|
|
693
695
|
p && `pkt-btn--${p}`,
|
|
694
696
|
f && `pkt-btn--${f}`,
|
|
695
697
|
k && `pkt-btn--${k}`
|
|
696
698
|
].filter(Boolean).join(" ");
|
|
697
|
-
return /* @__PURE__ */ y("button", { ...m, className: g, type: _, ref:
|
|
698
|
-
/* @__PURE__ */ n(T, { className: "pkt-btn__icon", name:
|
|
699
|
+
return /* @__PURE__ */ y("button", { ...m, className: g, type: _, ref: x, children: [
|
|
700
|
+
/* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: s }),
|
|
699
701
|
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children: i }),
|
|
700
|
-
k === "icons-right-and-left" && /* @__PURE__ */ n(T, { className: "pkt-btn__icon", name:
|
|
702
|
+
k === "icons-right-and-left" && /* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: l })
|
|
701
703
|
] });
|
|
702
704
|
}
|
|
703
705
|
);
|
|
704
706
|
hr.displayName = "PktButton";
|
|
705
707
|
const Nr = ({
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
onChangeRepresentation: N,
|
|
716
|
-
...g
|
|
708
|
+
className: i,
|
|
709
|
+
logoLink: c = "https://www.oslo.kommune.no/",
|
|
710
|
+
isLoggedIn: s = !1,
|
|
711
|
+
representing: l = "",
|
|
712
|
+
canChangeRepresentation: p = !1,
|
|
713
|
+
showLogInButton: f = !0,
|
|
714
|
+
onLogIn: _,
|
|
715
|
+
onLogOut: k,
|
|
716
|
+
onChangeRepresentation: m
|
|
717
717
|
}) => {
|
|
718
|
-
const x = [
|
|
718
|
+
const x = [i, "pkt-header"].filter(Boolean).join(" ");
|
|
719
719
|
return /* @__PURE__ */ y("header", { id: "pkt-header", className: x, "aria-label": "Topp", children: [
|
|
720
|
-
/* @__PURE__ */ n("div", { className: "pkt-header__logo", children: /* @__PURE__ */ n("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href:
|
|
720
|
+
/* @__PURE__ */ n("div", { className: "pkt-header__logo", children: /* @__PURE__ */ n("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: c, children: /* @__PURE__ */ n(
|
|
721
721
|
T,
|
|
722
722
|
{
|
|
723
723
|
name: "oslologo",
|
|
@@ -727,42 +727,42 @@ const Nr = ({
|
|
|
727
727
|
}
|
|
728
728
|
) }) }),
|
|
729
729
|
/* @__PURE__ */ y("div", { className: "pkt-header__actions", children: [
|
|
730
|
-
|
|
730
|
+
s && p && /* @__PURE__ */ y(
|
|
731
731
|
"button",
|
|
732
732
|
{
|
|
733
733
|
className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
|
|
734
|
-
"aria-label": `Bytt bruker fra ${
|
|
735
|
-
onClick:
|
|
734
|
+
"aria-label": `Bytt bruker fra ${l}`,
|
|
735
|
+
onClick: m,
|
|
736
736
|
children: [
|
|
737
737
|
/* @__PURE__ */ n(T, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
|
|
738
738
|
/* @__PURE__ */ n("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
|
|
739
739
|
/* @__PURE__ */ n("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
|
|
740
|
-
/* @__PURE__ */ n("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children:
|
|
740
|
+
/* @__PURE__ */ n("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: l })
|
|
741
741
|
]
|
|
742
742
|
}
|
|
743
743
|
),
|
|
744
|
-
|
|
745
|
-
/* @__PURE__ */ n("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ n("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children:
|
|
744
|
+
s && !p && /* @__PURE__ */ y("div", { className: "pkt-header__action", children: [
|
|
745
|
+
/* @__PURE__ */ n("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ n("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children: l }) }),
|
|
746
746
|
/* @__PURE__ */ n("span", { className: "pkt-header__action-icon pkt-show-phablet-up", children: /* @__PURE__ */ n(T, { name: "user" }) })
|
|
747
747
|
] }),
|
|
748
|
-
|
|
748
|
+
f && s && /* @__PURE__ */ y(
|
|
749
749
|
"button",
|
|
750
750
|
{
|
|
751
751
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
752
752
|
"aria-label": "Logg ut",
|
|
753
|
-
onClick:
|
|
753
|
+
onClick: k,
|
|
754
754
|
children: [
|
|
755
755
|
/* @__PURE__ */ n(T, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
|
|
756
756
|
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg ut" })
|
|
757
757
|
]
|
|
758
758
|
}
|
|
759
759
|
),
|
|
760
|
-
|
|
760
|
+
f && !s && /* @__PURE__ */ y(
|
|
761
761
|
"button",
|
|
762
762
|
{
|
|
763
763
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
764
764
|
"aria-label": "Logg inn",
|
|
765
|
-
onClick:
|
|
765
|
+
onClick: _,
|
|
766
766
|
children: [
|
|
767
767
|
/* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: "user" }),
|
|
768
768
|
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg inn" })
|
|
@@ -771,25 +771,25 @@ const Nr = ({
|
|
|
771
771
|
)
|
|
772
772
|
] })
|
|
773
773
|
] });
|
|
774
|
-
}, br =
|
|
775
|
-
({ label: i, id:
|
|
776
|
-
/* @__PURE__ */ n("label", { htmlFor:
|
|
777
|
-
/* @__PURE__ */ n("input", { className: "pkt-form-input", id:
|
|
778
|
-
|
|
774
|
+
}, br = te.forwardRef(
|
|
775
|
+
({ label: i, id: c, children: s, ...l }, p) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
|
|
776
|
+
/* @__PURE__ */ n("label", { htmlFor: c, className: "pkt-form-label", children: i }),
|
|
777
|
+
/* @__PURE__ */ n("input", { className: "pkt-form-input", id: c, ...l, ref: p }),
|
|
778
|
+
s
|
|
779
779
|
] })
|
|
780
780
|
);
|
|
781
781
|
br.displayName = "PktInput";
|
|
782
782
|
const Pr = ({
|
|
783
783
|
children: i,
|
|
784
|
-
className:
|
|
785
|
-
iconName:
|
|
786
|
-
skin:
|
|
784
|
+
className: c,
|
|
785
|
+
iconName: s = "user",
|
|
786
|
+
skin: l = "",
|
|
787
787
|
href: p = "#",
|
|
788
788
|
title: f
|
|
789
789
|
}) => {
|
|
790
|
-
const _ = [
|
|
790
|
+
const _ = [c, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
|
|
791
791
|
return /* @__PURE__ */ y("a", { href: p, className: `pkt-linkcard pkt-link ${_}`, children: [
|
|
792
|
-
/* @__PURE__ */ n(T, { className: "pkt-link__icon", name:
|
|
792
|
+
/* @__PURE__ */ n(T, { className: "pkt-link__icon", name: s }),
|
|
793
793
|
/* @__PURE__ */ y("div", { className: "pkt-linkcard__content", children: [
|
|
794
794
|
/* @__PURE__ */ n("div", { className: "pkt-linkcard__title", children: f }),
|
|
795
795
|
/* @__PURE__ */ n("div", { className: "pkt-linkcard__text", children: i })
|
|
@@ -797,39 +797,32 @@ const Pr = ({
|
|
|
797
797
|
] });
|
|
798
798
|
}, Tr = ({
|
|
799
799
|
children: i,
|
|
800
|
-
skin:
|
|
801
|
-
title:
|
|
802
|
-
...
|
|
800
|
+
skin: c = "beige",
|
|
801
|
+
title: s,
|
|
802
|
+
...l
|
|
803
803
|
}) => {
|
|
804
|
-
const p = ["pkt-messagebox",
|
|
805
|
-
return /* @__PURE__ */ y("div", { ...
|
|
806
|
-
/* @__PURE__ */ n("div", { className: "pkt-messagebox__title", children:
|
|
804
|
+
const p = ["pkt-messagebox", c && `pkt-messagebox--${c}`].filter(Boolean).join(" ");
|
|
805
|
+
return /* @__PURE__ */ y("div", { ...l, className: p, children: [
|
|
806
|
+
/* @__PURE__ */ n("div", { className: "pkt-messagebox__title", children: s }),
|
|
807
807
|
/* @__PURE__ */ n("div", { className: "pkt-messagebox__text", children: i })
|
|
808
808
|
] });
|
|
809
|
-
}, _r =
|
|
810
|
-
({ id: i, label: l, ...
|
|
811
|
-
/* @__PURE__ */ n("
|
|
812
|
-
/* @__PURE__ */ n("
|
|
813
|
-
] })
|
|
814
|
-
);
|
|
815
|
-
_r.displayName = "PktTextarea";
|
|
816
|
-
const kr = te(
|
|
817
|
-
({ id: i, name: l, label: u, value: o, ...p }, f) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
|
|
818
|
-
/* @__PURE__ */ n("input", { type: "radio", className: "pkt-form-check-input", id: i, name: l, value: o, ref: f, ...p }),
|
|
819
|
-
/* @__PURE__ */ n("label", { className: "pkt-form-label", htmlFor: i, children: u })
|
|
809
|
+
}, _r = G(
|
|
810
|
+
({ id: i, name: c, label: s, value: l, ...p }, f) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
|
|
811
|
+
/* @__PURE__ */ n("input", { type: "radio", className: "pkt-form-check-input", id: i, name: c, value: l, ref: f, ...p }),
|
|
812
|
+
/* @__PURE__ */ n("label", { className: "pkt-form-label", htmlFor: i, children: s })
|
|
820
813
|
] })
|
|
821
814
|
);
|
|
822
|
-
|
|
823
|
-
const wr = ({ label: i, children:
|
|
815
|
+
_r.displayName = "PktRadio";
|
|
816
|
+
const wr = ({ label: i, children: c }) => /* @__PURE__ */ y(Se, { children: [
|
|
824
817
|
/* @__PURE__ */ n("p", { children: i }),
|
|
825
|
-
/* @__PURE__ */ n("div", { className: "pkt-form-group", children:
|
|
818
|
+
/* @__PURE__ */ n("div", { className: "pkt-form-group", children: c })
|
|
826
819
|
] });
|
|
827
|
-
var
|
|
820
|
+
var re = {}, kr = {
|
|
828
821
|
get exports() {
|
|
829
|
-
return
|
|
822
|
+
return re;
|
|
830
823
|
},
|
|
831
824
|
set exports(i) {
|
|
832
|
-
|
|
825
|
+
re = i;
|
|
833
826
|
}
|
|
834
827
|
};
|
|
835
828
|
/*!
|
|
@@ -839,50 +832,56 @@ var ee = {}, gr = {
|
|
|
839
832
|
*/
|
|
840
833
|
(function(i) {
|
|
841
834
|
(function() {
|
|
842
|
-
var
|
|
843
|
-
function
|
|
844
|
-
for (var
|
|
835
|
+
var c = {}.hasOwnProperty;
|
|
836
|
+
function s() {
|
|
837
|
+
for (var l = [], p = 0; p < arguments.length; p++) {
|
|
845
838
|
var f = arguments[p];
|
|
846
839
|
if (f) {
|
|
847
840
|
var _ = typeof f;
|
|
848
841
|
if (_ === "string" || _ === "number")
|
|
849
|
-
|
|
842
|
+
l.push(f);
|
|
850
843
|
else if (Array.isArray(f)) {
|
|
851
844
|
if (f.length) {
|
|
852
|
-
var k =
|
|
853
|
-
k &&
|
|
845
|
+
var k = s.apply(null, f);
|
|
846
|
+
k && l.push(k);
|
|
854
847
|
}
|
|
855
848
|
} else if (_ === "object") {
|
|
856
849
|
if (f.toString !== Object.prototype.toString && !f.toString.toString().includes("[native code]")) {
|
|
857
|
-
|
|
850
|
+
l.push(f.toString());
|
|
858
851
|
continue;
|
|
859
852
|
}
|
|
860
853
|
for (var m in f)
|
|
861
|
-
|
|
854
|
+
c.call(f, m) && f[m] && l.push(m);
|
|
862
855
|
}
|
|
863
856
|
}
|
|
864
857
|
}
|
|
865
|
-
return
|
|
858
|
+
return l.join(" ");
|
|
866
859
|
}
|
|
867
|
-
i.exports ? (
|
|
860
|
+
i.exports ? (s.default = s, i.exports = s) : window.classNames = s;
|
|
868
861
|
})();
|
|
869
|
-
})(
|
|
870
|
-
const
|
|
862
|
+
})(kr);
|
|
863
|
+
const gr = re, yr = ({ isResponsive: i, children: c }) => i ? /* @__PURE__ */ n("div", { className: "pkt-table-container", children: c }) : /* @__PURE__ */ n(Se, { children: c }), Or = ({
|
|
871
864
|
isResponsive: i,
|
|
872
|
-
modifiers: { info:
|
|
865
|
+
modifiers: { info: c = !1, success: s = !1, strong: l = !1, shadow: p = !1 } = {},
|
|
873
866
|
children: f
|
|
874
|
-
}) => /* @__PURE__ */ n(
|
|
867
|
+
}) => /* @__PURE__ */ n(yr, { isResponsive: i, children: /* @__PURE__ */ n(
|
|
875
868
|
"table",
|
|
876
869
|
{
|
|
877
|
-
className:
|
|
878
|
-
"pkt-table--info":
|
|
879
|
-
"pkt-table--success":
|
|
880
|
-
"pkt-table--strong":
|
|
870
|
+
className: gr("pkt-table", {
|
|
871
|
+
"pkt-table--info": c,
|
|
872
|
+
"pkt-table--success": s,
|
|
873
|
+
"pkt-table--strong": l,
|
|
881
874
|
"pkt-table--shadow": p
|
|
882
875
|
}),
|
|
883
876
|
children: f
|
|
884
877
|
}
|
|
885
|
-
) }), Sr = ({ children: i }) => /* @__PURE__ */ n("td", { className: "pkt-table__th", children: i }), Cr = ({ children: i }) => /* @__PURE__ */ n("th", { className: "pkt-table__th", children: i })
|
|
878
|
+
) }), Sr = ({ children: i }) => /* @__PURE__ */ n("td", { className: "pkt-table__th", children: i }), Cr = ({ children: i }) => /* @__PURE__ */ n("th", { className: "pkt-table__th", children: i }), Er = G(
|
|
879
|
+
({ id: i, label: c, ...s }, l) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
|
|
880
|
+
/* @__PURE__ */ n("label", { htmlFor: i, className: "pkt-form-label", children: c }),
|
|
881
|
+
/* @__PURE__ */ n("textarea", { className: "pkt-form-textarea", id: i, ref: l, ...s })
|
|
882
|
+
] })
|
|
883
|
+
);
|
|
884
|
+
Er.displayName = "PktTextarea";
|
|
886
885
|
export {
|
|
887
886
|
xr as PktAlert,
|
|
888
887
|
hr as PktButton,
|
|
@@ -890,10 +889,10 @@ export {
|
|
|
890
889
|
br as PktInput,
|
|
891
890
|
Pr as PktLinkCard,
|
|
892
891
|
Tr as PktMessagebox,
|
|
893
|
-
|
|
892
|
+
_r as PktRadio,
|
|
894
893
|
wr as PktRadioGroup,
|
|
895
894
|
Or as PktTable,
|
|
896
895
|
Sr as PktTableData,
|
|
897
896
|
Cr as PktTableHeader,
|
|
898
|
-
|
|
897
|
+
Er as PktTextarea
|
|
899
898
|
};
|