@oslokommune/punkt-react 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/linkcard/LinkCard.d.ts +8 -0
- package/dist/punkt-react.es.js +302 -285
- package/dist/punkt-react.umd.js +11 -11
- package/package.json +11 -4
- package/src/components/index.ts +1 -0
- package/src/components/linkcard/LinkCard.test.tsx +79 -0
- package/src/components/linkcard/LinkCard.tsx +30 -0
- package/src/components/linkcard/__snapshots__/LinkCard.test.tsx.snap +33 -0
- package/src/components/table/__snapshots__/Table.test.tsx.snap +137 -0
package/dist/punkt-react.es.js
CHANGED
|
@@ -3,8 +3,8 @@ var Y = {}, pr = {
|
|
|
3
3
|
get exports() {
|
|
4
4
|
return Y;
|
|
5
5
|
},
|
|
6
|
-
set exports(
|
|
7
|
-
Y =
|
|
6
|
+
set exports(i) {
|
|
7
|
+
Y = i;
|
|
8
8
|
}
|
|
9
9
|
}, I = {};
|
|
10
10
|
/**
|
|
@@ -16,23 +16,23 @@ var Y = {}, pr = {
|
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
|
-
var
|
|
19
|
+
var Te;
|
|
20
20
|
function vr() {
|
|
21
|
-
if (
|
|
21
|
+
if (Te)
|
|
22
22
|
return I;
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
function k
|
|
26
|
-
var g, x = {},
|
|
27
|
-
|
|
23
|
+
Te = 1;
|
|
24
|
+
var i = re, l = Symbol.for("react.element"), u = Symbol.for("react.fragment"), o = 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, N) {
|
|
26
|
+
var g, x = {}, w = null, L = null;
|
|
27
|
+
N !== void 0 && (w = "" + N), m.key !== void 0 && (w = "" + m.key), m.ref !== void 0 && (L = m.ref);
|
|
28
28
|
for (g in m)
|
|
29
|
-
|
|
30
|
-
if (
|
|
31
|
-
for (g in m =
|
|
29
|
+
o.call(m, g) && !f.hasOwnProperty(g) && (x[g] = m[g]);
|
|
30
|
+
if (k && k.defaultProps)
|
|
31
|
+
for (g in m = k.defaultProps, m)
|
|
32
32
|
x[g] === void 0 && (x[g] = m[g]);
|
|
33
|
-
return { $$typeof:
|
|
33
|
+
return { $$typeof: l, type: k, key: w, ref: L, props: x, _owner: p.current };
|
|
34
34
|
}
|
|
35
|
-
return I.Fragment =
|
|
35
|
+
return I.Fragment = u, I.jsx = _, I.jsxs = _, I;
|
|
36
36
|
}
|
|
37
37
|
var W = {};
|
|
38
38
|
/**
|
|
@@ -44,18 +44,18 @@ var W = {};
|
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
var
|
|
47
|
+
var we;
|
|
48
48
|
function mr() {
|
|
49
|
-
return
|
|
50
|
-
var
|
|
49
|
+
return we || (we = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
+
var i = re, l = Symbol.for("react.element"), u = Symbol.for("react.portal"), o = 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"), N = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), te = 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 = te && e[te] || e[Ce];
|
|
55
55
|
return typeof r == "function" ? r : null;
|
|
56
56
|
}
|
|
57
|
-
var j =
|
|
58
|
-
function
|
|
57
|
+
var j = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
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++)
|
|
61
61
|
t[a - 1] = arguments[a];
|
|
@@ -64,10 +64,10 @@ function mr() {
|
|
|
64
64
|
}
|
|
65
65
|
function Fe(e, r, t) {
|
|
66
66
|
{
|
|
67
|
-
var a = j.ReactDebugCurrentFrame,
|
|
68
|
-
|
|
69
|
-
var v = t.map(function(
|
|
70
|
-
return String(
|
|
67
|
+
var a = j.ReactDebugCurrentFrame, d = a.getStackAddendum();
|
|
68
|
+
d !== "" && (r += "%s", t = t.concat([d]));
|
|
69
|
+
var v = t.map(function(c) {
|
|
70
|
+
return String(c);
|
|
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, ae;
|
|
76
76
|
ae = 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 === o || e === f || We || e === p || e === N || e === g || Ie || e === L || De || Ae || $e || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === x || 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.
|
|
@@ -85,50 +85,50 @@ function mr() {
|
|
|
85
85
|
var a = e.displayName;
|
|
86
86
|
if (a)
|
|
87
87
|
return a;
|
|
88
|
-
var
|
|
89
|
-
return
|
|
88
|
+
var d = r.displayName || r.name || "";
|
|
89
|
+
return d !== "" ? t + "(" + d + ")" : t;
|
|
90
90
|
}
|
|
91
91
|
function ne(e) {
|
|
92
92
|
return e.displayName || "Context";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function O(e) {
|
|
95
95
|
if (e == null)
|
|
96
96
|
return null;
|
|
97
|
-
if (typeof e.tag == "number" &&
|
|
97
|
+
if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
98
98
|
return e.displayName || e.name || null;
|
|
99
99
|
if (typeof e == "string")
|
|
100
100
|
return e;
|
|
101
101
|
switch (e) {
|
|
102
|
-
case
|
|
102
|
+
case o:
|
|
103
103
|
return "Fragment";
|
|
104
|
-
case
|
|
104
|
+
case u:
|
|
105
105
|
return "Portal";
|
|
106
|
-
case
|
|
106
|
+
case f:
|
|
107
107
|
return "Profiler";
|
|
108
108
|
case p:
|
|
109
109
|
return "StrictMode";
|
|
110
|
-
case
|
|
110
|
+
case N:
|
|
111
111
|
return "Suspense";
|
|
112
112
|
case g:
|
|
113
113
|
return "SuspenseList";
|
|
114
114
|
}
|
|
115
115
|
if (typeof e == "object")
|
|
116
116
|
switch (e.$$typeof) {
|
|
117
|
-
case
|
|
117
|
+
case k:
|
|
118
118
|
var r = e;
|
|
119
119
|
return ne(r) + ".Consumer";
|
|
120
|
-
case
|
|
120
|
+
case _:
|
|
121
121
|
var t = e;
|
|
122
122
|
return ne(t._context) + ".Provider";
|
|
123
123
|
case m:
|
|
124
124
|
return Le(e, e.render, "ForwardRef");
|
|
125
125
|
case x:
|
|
126
126
|
var a = e.displayName || null;
|
|
127
|
-
return a !== null ? a :
|
|
128
|
-
case
|
|
129
|
-
var
|
|
127
|
+
return a !== null ? a : O(e.type) || "Memo";
|
|
128
|
+
case w: {
|
|
129
|
+
var d = e, v = d._payload, c = d._init;
|
|
130
130
|
try {
|
|
131
|
-
return
|
|
131
|
+
return O(c(v));
|
|
132
132
|
} catch {
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
@@ -136,14 +136,14 @@ function mr() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var C = Object.assign, A = 0,
|
|
139
|
+
var C = Object.assign, A = 0, ie, oe, se, le, ce, ue, fe;
|
|
140
140
|
function de() {
|
|
141
141
|
}
|
|
142
142
|
de.__reactDisabledLog = !0;
|
|
143
|
-
function
|
|
143
|
+
function Be() {
|
|
144
144
|
{
|
|
145
145
|
if (A === 0) {
|
|
146
|
-
|
|
146
|
+
ie = console.log, oe = console.info, se = console.warn, le = console.error, ce = console.group, ue = console.groupCollapsed, fe = console.groupEnd;
|
|
147
147
|
var e = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -163,7 +163,7 @@ function mr() {
|
|
|
163
163
|
A++;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Me() {
|
|
167
167
|
{
|
|
168
168
|
if (A--, A === 0) {
|
|
169
169
|
var e = {
|
|
@@ -173,10 +173,10 @@ function mr() {
|
|
|
173
173
|
};
|
|
174
174
|
Object.defineProperties(console, {
|
|
175
175
|
log: C({}, e, {
|
|
176
|
-
value:
|
|
176
|
+
value: ie
|
|
177
177
|
}),
|
|
178
178
|
info: C({}, e, {
|
|
179
|
-
value:
|
|
179
|
+
value: oe
|
|
180
180
|
}),
|
|
181
181
|
warn: C({}, e, {
|
|
182
182
|
value: se
|
|
@@ -195,98 +195,98 @@ function mr() {
|
|
|
195
195
|
})
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
A < 0 &&
|
|
198
|
+
A < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
var G = j.ReactCurrentDispatcher, J;
|
|
202
|
-
function
|
|
202
|
+
function B(e, r, t) {
|
|
203
203
|
{
|
|
204
204
|
if (J === void 0)
|
|
205
205
|
try {
|
|
206
206
|
throw Error();
|
|
207
|
-
} catch (
|
|
208
|
-
var a =
|
|
207
|
+
} catch (d) {
|
|
208
|
+
var a = d.stack.trim().match(/\n( *(at )?)/);
|
|
209
209
|
J = a && a[1] || "";
|
|
210
210
|
}
|
|
211
211
|
return `
|
|
212
212
|
` + J + e;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
var z = !1,
|
|
215
|
+
var z = !1, M;
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
|
|
217
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
218
|
+
M = new Ve();
|
|
219
219
|
}
|
|
220
220
|
function pe(e, r) {
|
|
221
221
|
if (!e || z)
|
|
222
222
|
return "";
|
|
223
223
|
{
|
|
224
|
-
var t =
|
|
224
|
+
var t = M.get(e);
|
|
225
225
|
if (t !== void 0)
|
|
226
226
|
return t;
|
|
227
227
|
}
|
|
228
228
|
var a;
|
|
229
229
|
z = !0;
|
|
230
|
-
var
|
|
230
|
+
var d = Error.prepareStackTrace;
|
|
231
231
|
Error.prepareStackTrace = void 0;
|
|
232
232
|
var v;
|
|
233
|
-
v = G.current, G.current = null,
|
|
233
|
+
v = G.current, G.current = null, Be();
|
|
234
234
|
try {
|
|
235
235
|
if (r) {
|
|
236
|
-
var
|
|
236
|
+
var c = function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
};
|
|
239
|
-
if (Object.defineProperty(
|
|
239
|
+
if (Object.defineProperty(c.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(
|
|
246
|
-
} catch (
|
|
247
|
-
a =
|
|
245
|
+
Reflect.construct(c, []);
|
|
246
|
+
} catch (S) {
|
|
247
|
+
a = S;
|
|
248
248
|
}
|
|
249
|
-
Reflect.construct(e, [],
|
|
249
|
+
Reflect.construct(e, [], c);
|
|
250
250
|
} else {
|
|
251
251
|
try {
|
|
252
|
-
|
|
253
|
-
} catch (
|
|
254
|
-
a =
|
|
252
|
+
c.call();
|
|
253
|
+
} catch (S) {
|
|
254
|
+
a = S;
|
|
255
255
|
}
|
|
256
|
-
e.call(
|
|
256
|
+
e.call(c.prototype);
|
|
257
257
|
}
|
|
258
258
|
} else {
|
|
259
259
|
try {
|
|
260
260
|
throw Error();
|
|
261
|
-
} catch (
|
|
262
|
-
a =
|
|
261
|
+
} catch (S) {
|
|
262
|
+
a = S;
|
|
263
263
|
}
|
|
264
264
|
e();
|
|
265
265
|
}
|
|
266
|
-
} catch (
|
|
267
|
-
if (
|
|
268
|
-
for (var
|
|
269
|
-
`),
|
|
270
|
-
`), h =
|
|
266
|
+
} catch (S) {
|
|
267
|
+
if (S && a && typeof S.stack == "string") {
|
|
268
|
+
for (var s = S.stack.split(`
|
|
269
|
+
`), R = a.stack.split(`
|
|
270
|
+
`), h = s.length - 1, b = R.length - 1; h >= 1 && b >= 0 && s[h] !== R[b]; )
|
|
271
271
|
b--;
|
|
272
272
|
for (; h >= 1 && b >= 0; h--, b--)
|
|
273
|
-
if (
|
|
273
|
+
if (s[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 || s[h] !== R[b]) {
|
|
277
|
+
var P = `
|
|
278
|
+
` + s[h].replace(" at new ", " at ");
|
|
279
|
+
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, P), P;
|
|
280
280
|
}
|
|
281
281
|
while (h >= 1 && b >= 0);
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
} finally {
|
|
286
|
-
z = !1, G.current = v,
|
|
286
|
+
z = !1, G.current = v, Me(), Error.prepareStackTrace = d;
|
|
287
287
|
}
|
|
288
|
-
var D = e ? e.displayName || e.name : "",
|
|
289
|
-
return typeof e == "function" &&
|
|
288
|
+
var D = e ? e.displayName || e.name : "", Pe = D ? B(D) : "";
|
|
289
|
+
return typeof e == "function" && M.set(e, Pe), Pe;
|
|
290
290
|
}
|
|
291
291
|
function Ue(e, r, t) {
|
|
292
292
|
return pe(e, !1);
|
|
@@ -295,29 +295,29 @@ function mr() {
|
|
|
295
295
|
var r = e.prototype;
|
|
296
296
|
return !!(r && r.isReactComponent);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function V(e, r, t) {
|
|
299
299
|
if (e == null)
|
|
300
300
|
return "";
|
|
301
301
|
if (typeof e == "function")
|
|
302
302
|
return pe(e, qe(e));
|
|
303
303
|
if (typeof e == "string")
|
|
304
|
-
return
|
|
304
|
+
return B(e);
|
|
305
305
|
switch (e) {
|
|
306
|
-
case
|
|
307
|
-
return
|
|
306
|
+
case N:
|
|
307
|
+
return B("Suspense");
|
|
308
308
|
case g:
|
|
309
|
-
return
|
|
309
|
+
return B("SuspenseList");
|
|
310
310
|
}
|
|
311
311
|
if (typeof e == "object")
|
|
312
312
|
switch (e.$$typeof) {
|
|
313
313
|
case m:
|
|
314
314
|
return Ue(e.render);
|
|
315
315
|
case x:
|
|
316
|
-
return
|
|
317
|
-
case
|
|
318
|
-
var a = e,
|
|
316
|
+
return V(e.type, r, t);
|
|
317
|
+
case w: {
|
|
318
|
+
var a = e, d = a._payload, v = a._init;
|
|
319
319
|
try {
|
|
320
|
-
return
|
|
320
|
+
return V(v(d), r, t);
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
323
|
}
|
|
@@ -327,27 +327,27 @@ function mr() {
|
|
|
327
327
|
var U = Object.prototype.hasOwnProperty, ve = {}, me = j.ReactDebugCurrentFrame;
|
|
328
328
|
function q(e) {
|
|
329
329
|
if (e) {
|
|
330
|
-
var r = e._owner, t =
|
|
330
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
331
331
|
me.setExtraStackFrame(t);
|
|
332
332
|
} else
|
|
333
333
|
me.setExtraStackFrame(null);
|
|
334
334
|
}
|
|
335
|
-
function Ge(e, r, t, a,
|
|
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 c in e)
|
|
339
|
+
if (v(e, c)) {
|
|
340
|
+
var s = void 0;
|
|
341
341
|
try {
|
|
342
|
-
if (typeof e[
|
|
343
|
-
var
|
|
344
|
-
throw
|
|
342
|
+
if (typeof e[c] != "function") {
|
|
343
|
+
var R = Error((a || "React class") + ": " + t + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
344
|
+
throw R.name = "Invariant Violation", R;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
s = e[c](r, c, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
347
|
} catch (h) {
|
|
348
|
-
|
|
348
|
+
s = h;
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
s && !(s 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, c, typeof s), q(null)), s instanceof Error && !(s.message in ve) && (ve[s.message] = !0, q(d), E("Failed %s type: %s", t, s.message), q(null));
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
@@ -373,7 +373,7 @@ function mr() {
|
|
|
373
373
|
}
|
|
374
374
|
function be(e) {
|
|
375
375
|
if (He(e))
|
|
376
|
-
return
|
|
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)), he(e);
|
|
377
377
|
}
|
|
378
378
|
var $ = j.ReactCurrentOwner, Ke = {
|
|
379
379
|
key: !0,
|
|
@@ -400,14 +400,14 @@ function mr() {
|
|
|
400
400
|
}
|
|
401
401
|
function Qe(e, r) {
|
|
402
402
|
if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
|
|
403
|
-
var t =
|
|
404
|
-
K[t] || (
|
|
403
|
+
var t = O($.current.type);
|
|
404
|
+
K[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($.current.type), e.ref), K[t] = !0);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
function er(e, r) {
|
|
408
408
|
{
|
|
409
409
|
var t = function() {
|
|
410
|
-
_e || (_e = !0,
|
|
410
|
+
_e || (_e = !0, E("%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)", r));
|
|
411
411
|
};
|
|
412
412
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
413
413
|
get: t,
|
|
@@ -418,7 +418,7 @@ function mr() {
|
|
|
418
418
|
function rr(e, r) {
|
|
419
419
|
{
|
|
420
420
|
var t = function() {
|
|
421
|
-
ke || (ke = !0,
|
|
421
|
+
ke || (ke = !0, E("%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)", r));
|
|
422
422
|
};
|
|
423
423
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
424
424
|
get: t,
|
|
@@ -426,57 +426,57 @@ function mr() {
|
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var tr = function(e, r, t, a,
|
|
430
|
-
var
|
|
429
|
+
var tr = function(e, r, t, a, d, v, c) {
|
|
430
|
+
var s = {
|
|
431
431
|
// This tag allows us to uniquely identify this as a React Element
|
|
432
|
-
$$typeof:
|
|
432
|
+
$$typeof: l,
|
|
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: c,
|
|
438
438
|
// Record the component responsible for creating this element.
|
|
439
439
|
_owner: v
|
|
440
440
|
};
|
|
441
|
-
return
|
|
441
|
+
return s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !0,
|
|
445
445
|
value: !1
|
|
446
|
-
}), Object.defineProperty(
|
|
446
|
+
}), Object.defineProperty(s, "_self", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
449
449
|
writable: !1,
|
|
450
450
|
value: a
|
|
451
|
-
}), Object.defineProperty(
|
|
451
|
+
}), Object.defineProperty(s, "_source", {
|
|
452
452
|
configurable: !1,
|
|
453
453
|
enumerable: !1,
|
|
454
454
|
writable: !1,
|
|
455
|
-
value:
|
|
456
|
-
}), Object.freeze && (Object.freeze(
|
|
455
|
+
value: d
|
|
456
|
+
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
457
457
|
};
|
|
458
|
-
function ar(e, r, t, a,
|
|
458
|
+
function ar(e, r, t, a, d) {
|
|
459
459
|
{
|
|
460
|
-
var v,
|
|
461
|
-
t !== void 0 && (be(t),
|
|
460
|
+
var v, c = {}, s = null, R = null;
|
|
461
|
+
t !== void 0 && (be(t), s = "" + t), Ze(r) && (be(r.key), s = "" + 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) && (c[v] = r[v]);
|
|
464
464
|
if (e && e.defaultProps) {
|
|
465
465
|
var h = e.defaultProps;
|
|
466
466
|
for (v in h)
|
|
467
|
-
|
|
467
|
+
c[v] === void 0 && (c[v] = h[v]);
|
|
468
468
|
}
|
|
469
|
-
if (
|
|
469
|
+
if (s || R) {
|
|
470
470
|
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
471
|
-
|
|
471
|
+
s && er(c, b), R && rr(c, b);
|
|
472
472
|
}
|
|
473
|
-
return tr(e,
|
|
473
|
+
return tr(e, s, R, d, a, $.current, c);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
var X = j.ReactCurrentOwner, ge = j.ReactDebugCurrentFrame;
|
|
477
477
|
function F(e) {
|
|
478
478
|
if (e) {
|
|
479
|
-
var r = e._owner, t =
|
|
479
|
+
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
480
480
|
ge.setExtraStackFrame(t);
|
|
481
481
|
} else
|
|
482
482
|
ge.setExtraStackFrame(null);
|
|
@@ -484,12 +484,12 @@ function mr() {
|
|
|
484
484
|
var Z;
|
|
485
485
|
Z = !1;
|
|
486
486
|
function Q(e) {
|
|
487
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
487
|
+
return typeof e == "object" && e !== null && e.$$typeof === l;
|
|
488
488
|
}
|
|
489
489
|
function ye() {
|
|
490
490
|
{
|
|
491
491
|
if (X.current) {
|
|
492
|
-
var e =
|
|
492
|
+
var e = O(X.current.type);
|
|
493
493
|
if (e)
|
|
494
494
|
return `
|
|
495
495
|
|
|
@@ -510,7 +510,7 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
var Ee = {};
|
|
513
|
-
function
|
|
513
|
+
function ir(e) {
|
|
514
514
|
{
|
|
515
515
|
var r = ye();
|
|
516
516
|
if (!r) {
|
|
@@ -527,12 +527,12 @@ Check the top-level render call using <` + t + ">.");
|
|
|
527
527
|
if (!e._store || e._store.validated || e.key != null)
|
|
528
528
|
return;
|
|
529
529
|
e._store.validated = !0;
|
|
530
|
-
var t =
|
|
530
|
+
var t = ir(r);
|
|
531
531
|
if (Ee[t])
|
|
532
532
|
return;
|
|
533
533
|
Ee[t] = !0;
|
|
534
534
|
var a = "";
|
|
535
|
-
e && e._owner && e._owner !== X.current && (a = " It was passed a child from " +
|
|
535
|
+
e && e._owner && e._owner !== X.current && (a = " It was passed a child from " + O(e._owner.type) + "."), F(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), F(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
function xe(e, r) {
|
|
@@ -547,14 +547,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
547
547
|
else if (Q(e))
|
|
548
548
|
e._store && (e._store.validated = !0);
|
|
549
549
|
else if (e) {
|
|
550
|
-
var
|
|
551
|
-
if (typeof
|
|
552
|
-
for (var v =
|
|
553
|
-
Q(
|
|
550
|
+
var d = je(e);
|
|
551
|
+
if (typeof d == "function" && d !== e.entries)
|
|
552
|
+
for (var v = d.call(e), c; !(c = v.next()).done; )
|
|
553
|
+
Q(c.value) && Re(c.value, r);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function or(e) {
|
|
558
558
|
{
|
|
559
559
|
var r = e.type;
|
|
560
560
|
if (r == null || typeof r == "string")
|
|
@@ -569,14 +569,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (t) {
|
|
572
|
-
var a =
|
|
572
|
+
var a = O(r);
|
|
573
573
|
Ge(t, e.props, "prop", a, e);
|
|
574
574
|
} else if (r.PropTypes !== void 0 && !Z) {
|
|
575
575
|
Z = !0;
|
|
576
|
-
var
|
|
577
|
-
|
|
576
|
+
var d = O(r);
|
|
577
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
|
|
578
578
|
}
|
|
579
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
579
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
function sr(e) {
|
|
@@ -584,137 +584,137 @@ 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
|
-
F(e),
|
|
587
|
+
F(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), F(null);
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
e.ref !== null && (F(e),
|
|
591
|
+
e.ref !== null && (F(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ne(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) && (
|
|
600
|
-
var
|
|
601
|
-
|
|
596
|
+
var c = Ye(e);
|
|
597
|
+
if (!c) {
|
|
598
|
+
var s = "";
|
|
599
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " 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
|
+
var R = nr(d);
|
|
601
|
+
R ? s += R : s += ye();
|
|
602
602
|
var h;
|
|
603
|
-
e === null ? h = "null" : H(e) ? h = "array" : e !== void 0 && e.$$typeof ===
|
|
603
|
+
e === null ? h = "null" : H(e) ? h = "array" : e !== void 0 && e.$$typeof === l ? (h = "<" + (O(e.type) || "Unknown") + " />", s = " 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, s);
|
|
604
604
|
}
|
|
605
|
-
var b = ar(e, r, t,
|
|
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 (c) {
|
|
609
|
+
var P = r.children;
|
|
610
|
+
if (P !== void 0)
|
|
611
611
|
if (a)
|
|
612
|
-
if (H(
|
|
613
|
-
for (var D = 0; D <
|
|
614
|
-
xe(
|
|
615
|
-
Object.freeze && Object.freeze(
|
|
612
|
+
if (H(P)) {
|
|
613
|
+
for (var D = 0; D < P.length; D++)
|
|
614
|
+
xe(P[D], e);
|
|
615
|
+
Object.freeze && Object.freeze(P);
|
|
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
|
-
xe(
|
|
619
|
+
xe(P, e);
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === o ? sr(b) : or(b), b;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
function lr(e, r, t) {
|
|
625
|
-
return
|
|
625
|
+
return Ne(e, r, t, !0);
|
|
626
626
|
}
|
|
627
627
|
function cr(e, r, t) {
|
|
628
|
-
return
|
|
628
|
+
return Ne(e, r, t, !1);
|
|
629
629
|
}
|
|
630
630
|
var ur = cr, fr = lr;
|
|
631
|
-
W.Fragment =
|
|
631
|
+
W.Fragment = o, W.jsx = ur, W.jsxs = fr;
|
|
632
632
|
}()), W;
|
|
633
633
|
}
|
|
634
|
-
(function(
|
|
635
|
-
process.env.NODE_ENV === "production" ?
|
|
634
|
+
(function(i) {
|
|
635
|
+
process.env.NODE_ENV === "production" ? i.exports = vr() : i.exports = mr();
|
|
636
636
|
})(pr);
|
|
637
|
-
const Se = Y.Fragment, n = Y.jsx,
|
|
638
|
-
className:
|
|
639
|
-
name:
|
|
640
|
-
viewBox:
|
|
641
|
-
...
|
|
637
|
+
const Se = Y.Fragment, n = Y.jsx, y = Y.jsxs, T = ({
|
|
638
|
+
className: i,
|
|
639
|
+
name: l,
|
|
640
|
+
viewBox: u = "0 0 32 32",
|
|
641
|
+
...o
|
|
642
642
|
}) => {
|
|
643
|
-
const p = [
|
|
644
|
-
return /* @__PURE__ */ n("svg", { ...
|
|
643
|
+
const p = [i].filter(Boolean).join(" ");
|
|
644
|
+
return /* @__PURE__ */ n("svg", { ...o, className: p, viewBox: u, children: /* @__PURE__ */ n("use", { href: `#${l}` }) });
|
|
645
645
|
}, Rr = ({
|
|
646
|
-
children:
|
|
647
|
-
className:
|
|
648
|
-
skin:
|
|
649
|
-
closeAlert:
|
|
646
|
+
children: i,
|
|
647
|
+
className: l,
|
|
648
|
+
skin: u = "info",
|
|
649
|
+
closeAlert: o = !1,
|
|
650
650
|
onClose: p,
|
|
651
|
-
title:
|
|
652
|
-
date:
|
|
653
|
-
ariaLive:
|
|
651
|
+
title: f,
|
|
652
|
+
date: _,
|
|
653
|
+
ariaLive: k = "polite",
|
|
654
654
|
...m
|
|
655
655
|
}) => {
|
|
656
|
-
const
|
|
656
|
+
const N = [l, "pkt-alert", u && `pkt-alert--${u}`].filter(Boolean).join(" "), [g, x] = dr(!0), w = () => {
|
|
657
657
|
x(!1), p && p();
|
|
658
658
|
};
|
|
659
|
-
return g ? /* @__PURE__ */
|
|
660
|
-
/* @__PURE__ */ n("div", { className: "pkt-alert__icon", children: /* @__PURE__ */ n(
|
|
661
|
-
|
|
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
662
|
"button",
|
|
663
663
|
{
|
|
664
664
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
|
|
665
665
|
tabIndex: 0,
|
|
666
666
|
"aria-label": "close",
|
|
667
|
-
onClick:
|
|
668
|
-
children: /* @__PURE__ */ n(
|
|
667
|
+
onClick: w,
|
|
668
|
+
children: /* @__PURE__ */ n(T, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
669
669
|
}
|
|
670
670
|
) }),
|
|
671
|
-
|
|
672
|
-
/* @__PURE__ */ n("div", { className: "pkt-alert__text", children:
|
|
673
|
-
|
|
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
674
|
"Sist oppdatert: ",
|
|
675
|
-
|
|
675
|
+
_
|
|
676
676
|
] })
|
|
677
677
|
] }) : null;
|
|
678
678
|
}, xr = ({
|
|
679
|
-
children:
|
|
680
|
-
className:
|
|
681
|
-
iconName:
|
|
682
|
-
secondIconName:
|
|
679
|
+
children: i,
|
|
680
|
+
className: l,
|
|
681
|
+
iconName: u = "user",
|
|
682
|
+
secondIconName: o = "user",
|
|
683
683
|
size: p = "medium",
|
|
684
|
-
skin:
|
|
685
|
-
type:
|
|
686
|
-
variant:
|
|
684
|
+
skin: f = "primary",
|
|
685
|
+
type: _ = "button",
|
|
686
|
+
variant: k = "label-only",
|
|
687
687
|
...m
|
|
688
688
|
}) => {
|
|
689
|
-
const
|
|
690
|
-
|
|
689
|
+
const N = [
|
|
690
|
+
l,
|
|
691
691
|
"pkt-btn",
|
|
692
692
|
p && `pkt-btn--${p}`,
|
|
693
|
-
|
|
694
|
-
|
|
693
|
+
f && `pkt-btn--${f}`,
|
|
694
|
+
k && `pkt-btn--${k}`
|
|
695
695
|
].filter(Boolean).join(" ");
|
|
696
|
-
return /* @__PURE__ */
|
|
697
|
-
/* @__PURE__ */ n(
|
|
698
|
-
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children:
|
|
699
|
-
|
|
696
|
+
return /* @__PURE__ */ y("button", { ...m, className: N, type: _, children: [
|
|
697
|
+
/* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: u }),
|
|
698
|
+
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children: i }),
|
|
699
|
+
k === "icons-right-and-left" && /* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: o })
|
|
700
700
|
] });
|
|
701
|
-
},
|
|
702
|
-
children:
|
|
703
|
-
className:
|
|
704
|
-
logoLink:
|
|
705
|
-
isLoggedIn:
|
|
701
|
+
}, Nr = ({
|
|
702
|
+
children: i,
|
|
703
|
+
className: l,
|
|
704
|
+
logoLink: u = "https://www.oslo.kommune.no/",
|
|
705
|
+
isLoggedIn: o = !1,
|
|
706
706
|
representing: p = "",
|
|
707
|
-
canChangeRepresentation:
|
|
708
|
-
showLogInButton:
|
|
709
|
-
onLogIn:
|
|
707
|
+
canChangeRepresentation: f = !1,
|
|
708
|
+
showLogInButton: _ = !0,
|
|
709
|
+
onLogIn: k,
|
|
710
710
|
onLogOut: m,
|
|
711
|
-
onChangeRepresentation:
|
|
711
|
+
onChangeRepresentation: N,
|
|
712
712
|
...g
|
|
713
713
|
}) => {
|
|
714
|
-
const x = [
|
|
715
|
-
return /* @__PURE__ */
|
|
716
|
-
/* @__PURE__ */ n("div", { className: "pkt-header__logo", children: /* @__PURE__ */ n("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href:
|
|
717
|
-
|
|
714
|
+
const x = [l, "pkt-header"].filter(Boolean).join(" ");
|
|
715
|
+
return /* @__PURE__ */ y("header", { id: "pkt-header", className: x, "aria-label": "Topp", children: [
|
|
716
|
+
/* @__PURE__ */ n("div", { className: "pkt-header__logo", children: /* @__PURE__ */ n("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: u, children: /* @__PURE__ */ n(
|
|
717
|
+
T,
|
|
718
718
|
{
|
|
719
719
|
name: "oslologo",
|
|
720
720
|
className: "pkt-header__logo-svg",
|
|
@@ -722,45 +722,45 @@ const Se = Y.Fragment, n = Y.jsx, R = Y.jsxs, S = ({
|
|
|
722
722
|
"aria-hidden": "true"
|
|
723
723
|
}
|
|
724
724
|
) }) }),
|
|
725
|
-
/* @__PURE__ */
|
|
726
|
-
|
|
725
|
+
/* @__PURE__ */ y("div", { className: "pkt-header__actions", children: [
|
|
726
|
+
o && f && /* @__PURE__ */ y(
|
|
727
727
|
"button",
|
|
728
728
|
{
|
|
729
729
|
className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
|
|
730
730
|
"aria-label": `Bytt bruker fra ${p}`,
|
|
731
|
-
onClick:
|
|
731
|
+
onClick: N,
|
|
732
732
|
children: [
|
|
733
|
-
/* @__PURE__ */ n(
|
|
733
|
+
/* @__PURE__ */ n(T, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
|
|
734
734
|
/* @__PURE__ */ n("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
|
|
735
735
|
/* @__PURE__ */ n("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
|
|
736
736
|
/* @__PURE__ */ n("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: p })
|
|
737
737
|
]
|
|
738
738
|
}
|
|
739
739
|
),
|
|
740
|
-
|
|
740
|
+
o && !f && /* @__PURE__ */ y("div", { className: "pkt-header__action", children: [
|
|
741
741
|
/* @__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: p }) }),
|
|
742
|
-
/* @__PURE__ */ n("span", { className: "pkt-header__action-icon pkt-show-phablet-up", children: /* @__PURE__ */ n(
|
|
742
|
+
/* @__PURE__ */ n("span", { className: "pkt-header__action-icon pkt-show-phablet-up", children: /* @__PURE__ */ n(T, { name: "user" }) })
|
|
743
743
|
] }),
|
|
744
|
-
|
|
744
|
+
_ && o && /* @__PURE__ */ y(
|
|
745
745
|
"button",
|
|
746
746
|
{
|
|
747
747
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
748
748
|
"aria-label": "Logg ut",
|
|
749
749
|
onClick: m,
|
|
750
750
|
children: [
|
|
751
|
-
/* @__PURE__ */ n(
|
|
751
|
+
/* @__PURE__ */ n(T, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
|
|
752
752
|
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg ut" })
|
|
753
753
|
]
|
|
754
754
|
}
|
|
755
755
|
),
|
|
756
|
-
|
|
756
|
+
_ && !o && /* @__PURE__ */ y(
|
|
757
757
|
"button",
|
|
758
758
|
{
|
|
759
759
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
760
760
|
"aria-label": "Logg inn",
|
|
761
|
-
onClick:
|
|
761
|
+
onClick: k,
|
|
762
762
|
children: [
|
|
763
|
-
/* @__PURE__ */ n(
|
|
763
|
+
/* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: "user" }),
|
|
764
764
|
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg inn" })
|
|
765
765
|
]
|
|
766
766
|
}
|
|
@@ -768,48 +768,64 @@ const Se = Y.Fragment, n = Y.jsx, R = Y.jsxs, S = ({
|
|
|
768
768
|
] })
|
|
769
769
|
] });
|
|
770
770
|
}, hr = re.forwardRef(
|
|
771
|
-
({ label:
|
|
772
|
-
/* @__PURE__ */ n("label", { htmlFor:
|
|
773
|
-
/* @__PURE__ */ n("input", { className: "pkt-form-input", id:
|
|
774
|
-
|
|
771
|
+
({ label: i, id: l, children: u, ...o }, p) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
|
|
772
|
+
/* @__PURE__ */ n("label", { htmlFor: l, className: "pkt-form-label", children: i }),
|
|
773
|
+
/* @__PURE__ */ n("input", { className: "pkt-form-input", id: l, ...o, ref: p }),
|
|
774
|
+
u
|
|
775
775
|
] })
|
|
776
776
|
);
|
|
777
777
|
hr.displayName = "PktInput";
|
|
778
|
-
const
|
|
779
|
-
children:
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
778
|
+
const Pr = ({
|
|
779
|
+
children: i,
|
|
780
|
+
className: l,
|
|
781
|
+
iconName: u = "user",
|
|
782
|
+
skin: o = "",
|
|
783
|
+
href: p = "#",
|
|
784
|
+
title: f
|
|
785
|
+
}) => {
|
|
786
|
+
const _ = [l, "pkt-linkcard", o && `pkt-linkcard--${o}`].filter(Boolean).join(" ");
|
|
787
|
+
return /* @__PURE__ */ y("a", { href: p, className: `pkt-linkcard pkt-link ${_}`, children: [
|
|
788
|
+
/* @__PURE__ */ n(T, { className: "pkt-link__icon", name: u }),
|
|
789
|
+
/* @__PURE__ */ y("div", { className: "pkt-linkcard__content", children: [
|
|
790
|
+
/* @__PURE__ */ n("div", { className: "pkt-linkcard__title", children: f }),
|
|
791
|
+
/* @__PURE__ */ n("div", { className: "pkt-linkcard__text", children: i })
|
|
792
|
+
] })
|
|
793
|
+
] });
|
|
794
|
+
}, Tr = ({
|
|
795
|
+
children: i,
|
|
796
|
+
skin: l = "beige",
|
|
797
|
+
title: u,
|
|
798
|
+
...o
|
|
783
799
|
}) => {
|
|
784
|
-
const p = ["pkt-messagebox",
|
|
785
|
-
return /* @__PURE__ */
|
|
786
|
-
/* @__PURE__ */ n("div", { className: "pkt-messagebox__title", children:
|
|
787
|
-
/* @__PURE__ */ n("div", { className: "pkt-messagebox__text", children:
|
|
800
|
+
const p = ["pkt-messagebox", l && `pkt-messagebox--${l}`].filter(Boolean).join(" ");
|
|
801
|
+
return /* @__PURE__ */ y("div", { ...o, className: p, children: [
|
|
802
|
+
/* @__PURE__ */ n("div", { className: "pkt-messagebox__title", children: u }),
|
|
803
|
+
/* @__PURE__ */ n("div", { className: "pkt-messagebox__text", children: i })
|
|
788
804
|
] });
|
|
789
805
|
}, br = Oe(
|
|
790
|
-
({ id:
|
|
791
|
-
/* @__PURE__ */ n("label", { htmlFor:
|
|
792
|
-
/* @__PURE__ */ n("textarea", { className: "pkt-form-textarea", id:
|
|
806
|
+
({ id: i, label: l, ...u }, o) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
|
|
807
|
+
/* @__PURE__ */ n("label", { htmlFor: i, className: "pkt-form-label", children: l }),
|
|
808
|
+
/* @__PURE__ */ n("textarea", { className: "pkt-form-textarea", id: i, ref: o, ...u })
|
|
793
809
|
] })
|
|
794
810
|
);
|
|
795
811
|
br.displayName = "PktTextarea";
|
|
796
812
|
const _r = Oe(
|
|
797
|
-
({ id:
|
|
798
|
-
/* @__PURE__ */ n("input", { type: "radio", className: "pkt-form-check-input", id:
|
|
799
|
-
/* @__PURE__ */ n("label", { className: "pkt-form-label", htmlFor:
|
|
813
|
+
({ id: i, name: l, label: u, value: o, ...p }, f) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
|
|
814
|
+
/* @__PURE__ */ n("input", { type: "radio", className: "pkt-form-check-input", id: i, name: l, value: o, ref: f, ...p }),
|
|
815
|
+
/* @__PURE__ */ n("label", { className: "pkt-form-label", htmlFor: i, children: u })
|
|
800
816
|
] })
|
|
801
817
|
);
|
|
802
818
|
_r.displayName = "PktRadio";
|
|
803
|
-
const
|
|
804
|
-
/* @__PURE__ */ n("p", { children:
|
|
805
|
-
/* @__PURE__ */ n("div", { className: "pkt-form-group", children:
|
|
819
|
+
const wr = ({ label: i, children: l }) => /* @__PURE__ */ y(Se, { children: [
|
|
820
|
+
/* @__PURE__ */ n("p", { children: i }),
|
|
821
|
+
/* @__PURE__ */ n("div", { className: "pkt-form-group", children: l })
|
|
806
822
|
] });
|
|
807
823
|
var ee = {}, kr = {
|
|
808
824
|
get exports() {
|
|
809
825
|
return ee;
|
|
810
826
|
},
|
|
811
|
-
set exports(
|
|
812
|
-
ee =
|
|
827
|
+
set exports(i) {
|
|
828
|
+
ee = i;
|
|
813
829
|
}
|
|
814
830
|
};
|
|
815
831
|
/*!
|
|
@@ -817,62 +833,63 @@ var ee = {}, kr = {
|
|
|
817
833
|
Licensed under the MIT License (MIT), see
|
|
818
834
|
http://jedwatson.github.io/classnames
|
|
819
835
|
*/
|
|
820
|
-
(function(
|
|
836
|
+
(function(i) {
|
|
821
837
|
(function() {
|
|
822
|
-
var
|
|
823
|
-
function
|
|
824
|
-
for (var
|
|
825
|
-
var
|
|
826
|
-
if (
|
|
827
|
-
var
|
|
828
|
-
if (
|
|
829
|
-
|
|
830
|
-
else if (Array.isArray(
|
|
831
|
-
if (
|
|
832
|
-
var
|
|
833
|
-
|
|
838
|
+
var l = {}.hasOwnProperty;
|
|
839
|
+
function u() {
|
|
840
|
+
for (var o = [], p = 0; p < arguments.length; p++) {
|
|
841
|
+
var f = arguments[p];
|
|
842
|
+
if (f) {
|
|
843
|
+
var _ = typeof f;
|
|
844
|
+
if (_ === "string" || _ === "number")
|
|
845
|
+
o.push(f);
|
|
846
|
+
else if (Array.isArray(f)) {
|
|
847
|
+
if (f.length) {
|
|
848
|
+
var k = u.apply(null, f);
|
|
849
|
+
k && o.push(k);
|
|
834
850
|
}
|
|
835
|
-
} else if (
|
|
836
|
-
if (
|
|
837
|
-
|
|
851
|
+
} else if (_ === "object") {
|
|
852
|
+
if (f.toString !== Object.prototype.toString && !f.toString.toString().includes("[native code]")) {
|
|
853
|
+
o.push(f.toString());
|
|
838
854
|
continue;
|
|
839
855
|
}
|
|
840
|
-
for (var m in
|
|
841
|
-
|
|
856
|
+
for (var m in f)
|
|
857
|
+
l.call(f, m) && f[m] && o.push(m);
|
|
842
858
|
}
|
|
843
859
|
}
|
|
844
860
|
}
|
|
845
|
-
return
|
|
861
|
+
return o.join(" ");
|
|
846
862
|
}
|
|
847
|
-
|
|
863
|
+
i.exports ? (u.default = u, i.exports = u) : window.classNames = u;
|
|
848
864
|
})();
|
|
849
865
|
})(kr);
|
|
850
|
-
const gr = ee, yr = ({ isResponsive:
|
|
851
|
-
isResponsive:
|
|
852
|
-
modifiers: { info:
|
|
853
|
-
children:
|
|
854
|
-
}) => /* @__PURE__ */ n(yr, { isResponsive:
|
|
866
|
+
const gr = ee, yr = ({ isResponsive: i, children: l }) => i ? /* @__PURE__ */ n("div", { className: "pkt-table-container", children: l }) : /* @__PURE__ */ n(Se, { children: l }), Or = ({
|
|
867
|
+
isResponsive: i,
|
|
868
|
+
modifiers: { info: l = !1, success: u = !1, strong: o = !1, shadow: p = !1 } = {},
|
|
869
|
+
children: f
|
|
870
|
+
}) => /* @__PURE__ */ n(yr, { isResponsive: i, children: /* @__PURE__ */ n(
|
|
855
871
|
"table",
|
|
856
872
|
{
|
|
857
873
|
className: gr("pkt-table", {
|
|
858
|
-
"pkt-table--info":
|
|
859
|
-
"pkt-table--success":
|
|
860
|
-
"pkt-table--strong":
|
|
874
|
+
"pkt-table--info": l,
|
|
875
|
+
"pkt-table--success": u,
|
|
876
|
+
"pkt-table--strong": o,
|
|
861
877
|
"pkt-table--shadow": p
|
|
862
878
|
}),
|
|
863
|
-
children:
|
|
879
|
+
children: f
|
|
864
880
|
}
|
|
865
|
-
) }),
|
|
881
|
+
) }), Sr = ({ children: i }) => /* @__PURE__ */ n("td", { className: "pkt-table__th", children: i }), Cr = ({ children: i }) => /* @__PURE__ */ n("th", { className: "pkt-table__th", children: i });
|
|
866
882
|
export {
|
|
867
883
|
Rr as PktAlert,
|
|
868
884
|
xr as PktButton,
|
|
869
|
-
|
|
885
|
+
Nr as PktHeader,
|
|
870
886
|
hr as PktInput,
|
|
871
|
-
|
|
887
|
+
Pr as PktLinkCard,
|
|
888
|
+
Tr as PktMessagebox,
|
|
872
889
|
_r as PktRadio,
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
890
|
+
wr as PktRadioGroup,
|
|
891
|
+
Or as PktTable,
|
|
892
|
+
Sr as PktTableData,
|
|
893
|
+
Cr as PktTableHeader,
|
|
877
894
|
br as PktTextarea
|
|
878
895
|
};
|