@oslokommune/punkt-react 2.0.2 → 2.0.4
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 +15 -0
- package/dist/alert/Alert.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/punkt-react.es.js +299 -265
- package/dist/punkt-react.umd.js +11 -11
- package/package.json +6 -6
- package/src/components/alert/Alert.tsx +61 -0
- package/src/components/icon/Icon.tsx +1 -1
- package/src/components/index.ts +1 -0
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import re, { forwardRef as
|
|
2
|
-
var Y = {},
|
|
1
|
+
import re, { useState as dr, forwardRef as Oe } from "react";
|
|
2
|
+
var Y = {}, pr = {
|
|
3
3
|
get exports() {
|
|
4
4
|
return Y;
|
|
5
5
|
},
|
|
6
|
-
set exports(
|
|
7
|
-
Y =
|
|
6
|
+
set exports(o) {
|
|
7
|
+
Y = o;
|
|
8
8
|
}
|
|
9
9
|
}, I = {};
|
|
10
10
|
/**
|
|
@@ -17,22 +17,22 @@ var Y = {}, dr = {
|
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
19
|
var Pe;
|
|
20
|
-
function
|
|
20
|
+
function vr() {
|
|
21
21
|
if (Pe)
|
|
22
22
|
return I;
|
|
23
23
|
Pe = 1;
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
for (
|
|
29
|
-
|
|
24
|
+
var o = re, f = Symbol.for("react.element"), d = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, v = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
|
+
function k(_, m, T) {
|
|
26
|
+
var g, R = {}, P = null, L = null;
|
|
27
|
+
T !== void 0 && (P = "" + T), m.key !== void 0 && (P = "" + m.key), m.ref !== void 0 && (L = m.ref);
|
|
28
|
+
for (g in m)
|
|
29
|
+
l.call(m, g) && !u.hasOwnProperty(g) && (R[g] = m[g]);
|
|
30
30
|
if (_ && _.defaultProps)
|
|
31
|
-
for (
|
|
32
|
-
|
|
33
|
-
return { $$typeof:
|
|
31
|
+
for (g in m = _.defaultProps, m)
|
|
32
|
+
R[g] === void 0 && (R[g] = m[g]);
|
|
33
|
+
return { $$typeof: f, type: _, key: P, ref: L, props: R, _owner: v.current };
|
|
34
34
|
}
|
|
35
|
-
return I.Fragment =
|
|
35
|
+
return I.Fragment = d, I.jsx = k, I.jsxs = k, 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
|
|
48
|
-
function
|
|
49
|
-
return
|
|
50
|
-
var
|
|
47
|
+
var Ne;
|
|
48
|
+
function mr() {
|
|
49
|
+
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
+
var o = re, f = Symbol.for("react.element"), d = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), _ = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), P = 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
|
-
var r = te && e[te] || e[
|
|
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 = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58
|
+
function y(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,18 +64,18 @@ function vr() {
|
|
|
64
64
|
}
|
|
65
65
|
function Fe(e, r, t) {
|
|
66
66
|
{
|
|
67
|
-
var a = j.ReactDebugCurrentFrame,
|
|
68
|
-
|
|
69
|
-
var
|
|
70
|
-
return String(
|
|
67
|
+
var a = j.ReactDebugCurrentFrame, c = a.getStackAddendum();
|
|
68
|
+
c !== "" && (r += "%s", t = t.concat([c]));
|
|
69
|
+
var p = t.map(function(s) {
|
|
70
|
+
return String(s);
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
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 === l || e === u || We || e === v || e === T || e === g || Ie || e === L || De || Ae || $e || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === R || e.$$typeof === k || e.$$typeof === _ || 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,31 +85,31 @@ function vr() {
|
|
|
85
85
|
var a = e.displayName;
|
|
86
86
|
if (a)
|
|
87
87
|
return a;
|
|
88
|
-
var
|
|
89
|
-
return
|
|
88
|
+
var c = r.displayName || r.name || "";
|
|
89
|
+
return c !== "" ? t + "(" + c + ")" : t;
|
|
90
90
|
}
|
|
91
91
|
function ne(e) {
|
|
92
92
|
return e.displayName || "Context";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function N(e) {
|
|
95
95
|
if (e == null)
|
|
96
96
|
return null;
|
|
97
|
-
if (typeof e.tag == "number" &&
|
|
97
|
+
if (typeof e.tag == "number" && y("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 l:
|
|
103
103
|
return "Fragment";
|
|
104
|
-
case
|
|
104
|
+
case d:
|
|
105
105
|
return "Portal";
|
|
106
|
-
case
|
|
106
|
+
case u:
|
|
107
107
|
return "Profiler";
|
|
108
108
|
case v:
|
|
109
109
|
return "StrictMode";
|
|
110
|
-
case
|
|
110
|
+
case T:
|
|
111
111
|
return "Suspense";
|
|
112
|
-
case
|
|
112
|
+
case g:
|
|
113
113
|
return "SuspenseList";
|
|
114
114
|
}
|
|
115
115
|
if (typeof e == "object")
|
|
@@ -117,18 +117,18 @@ function vr() {
|
|
|
117
117
|
case _:
|
|
118
118
|
var r = e;
|
|
119
119
|
return ne(r) + ".Consumer";
|
|
120
|
-
case
|
|
120
|
+
case k:
|
|
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
|
-
case
|
|
125
|
+
case R:
|
|
126
126
|
var a = e.displayName || null;
|
|
127
|
-
return a !== null ? a :
|
|
128
|
-
case
|
|
129
|
-
var
|
|
127
|
+
return a !== null ? a : N(e.type) || "Memo";
|
|
128
|
+
case P: {
|
|
129
|
+
var c = e, p = c._payload, s = c._init;
|
|
130
130
|
try {
|
|
131
|
-
return
|
|
131
|
+
return N(s(p));
|
|
132
132
|
} catch {
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
@@ -136,14 +136,14 @@ function vr() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var C = Object.assign, A = 0, oe, ie, se, le,
|
|
139
|
+
var C = Object.assign, A = 0, oe, ie, se, le, ce, ue, fe;
|
|
140
140
|
function de() {
|
|
141
141
|
}
|
|
142
142
|
de.__reactDisabledLog = !0;
|
|
143
143
|
function Ve() {
|
|
144
144
|
{
|
|
145
145
|
if (A === 0) {
|
|
146
|
-
oe = console.log, ie = console.info, se = console.warn, le = console.error,
|
|
146
|
+
oe = console.log, ie = 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,
|
|
@@ -185,17 +185,17 @@ function vr() {
|
|
|
185
185
|
value: le
|
|
186
186
|
}),
|
|
187
187
|
group: C({}, e, {
|
|
188
|
-
value:
|
|
188
|
+
value: ce
|
|
189
189
|
}),
|
|
190
190
|
groupCollapsed: C({}, e, {
|
|
191
|
-
value:
|
|
191
|
+
value: ue
|
|
192
192
|
}),
|
|
193
193
|
groupEnd: C({}, e, {
|
|
194
194
|
value: fe
|
|
195
195
|
})
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
A < 0 &&
|
|
198
|
+
A < 0 && y("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;
|
|
@@ -204,8 +204,8 @@ function vr() {
|
|
|
204
204
|
if (J === void 0)
|
|
205
205
|
try {
|
|
206
206
|
throw Error();
|
|
207
|
-
} catch (
|
|
208
|
-
var a =
|
|
207
|
+
} catch (c) {
|
|
208
|
+
var a = c.stack.trim().match(/\n( *(at )?)/);
|
|
209
209
|
J = a && a[1] || "";
|
|
210
210
|
}
|
|
211
211
|
return `
|
|
@@ -227,33 +227,33 @@ function vr() {
|
|
|
227
227
|
}
|
|
228
228
|
var a;
|
|
229
229
|
z = !0;
|
|
230
|
-
var
|
|
230
|
+
var c = Error.prepareStackTrace;
|
|
231
231
|
Error.prepareStackTrace = void 0;
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var p;
|
|
233
|
+
p = G.current, G.current = null, Ve();
|
|
234
234
|
try {
|
|
235
235
|
if (r) {
|
|
236
|
-
var
|
|
236
|
+
var s = function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
};
|
|
239
|
-
if (Object.defineProperty(
|
|
239
|
+
if (Object.defineProperty(s.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(s, []);
|
|
246
246
|
} catch (O) {
|
|
247
247
|
a = O;
|
|
248
248
|
}
|
|
249
|
-
Reflect.construct(e, [],
|
|
249
|
+
Reflect.construct(e, [], s);
|
|
250
250
|
} else {
|
|
251
251
|
try {
|
|
252
|
-
|
|
252
|
+
s.call();
|
|
253
253
|
} catch (O) {
|
|
254
254
|
a = O;
|
|
255
255
|
}
|
|
256
|
-
e.call(
|
|
256
|
+
e.call(s.prototype);
|
|
257
257
|
}
|
|
258
258
|
} else {
|
|
259
259
|
try {
|
|
@@ -265,25 +265,25 @@ function vr() {
|
|
|
265
265
|
}
|
|
266
266
|
} catch (O) {
|
|
267
267
|
if (O && a && typeof O.stack == "string") {
|
|
268
|
-
for (var
|
|
269
|
-
`),
|
|
270
|
-
`), h =
|
|
268
|
+
for (var i = O.stack.split(`
|
|
269
|
+
`), E = a.stack.split(`
|
|
270
|
+
`), h = i.length - 1, b = E.length - 1; h >= 1 && b >= 0 && i[h] !== E[b]; )
|
|
271
271
|
b--;
|
|
272
272
|
for (; h >= 1 && b >= 0; h--, b--)
|
|
273
|
-
if (
|
|
273
|
+
if (i[h] !== E[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 || i[h] !== E[b]) {
|
|
277
|
+
var w = `
|
|
278
|
+
` + i[h].replace(" at new ", " at ");
|
|
279
|
+
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, w), w;
|
|
280
280
|
}
|
|
281
281
|
while (h >= 1 && b >= 0);
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
} finally {
|
|
286
|
-
z = !1, G.current =
|
|
286
|
+
z = !1, G.current = p, Me(), Error.prepareStackTrace = c;
|
|
287
287
|
}
|
|
288
288
|
var D = e ? e.displayName || e.name : "", we = D ? V(D) : "";
|
|
289
289
|
return typeof e == "function" && M.set(e, we), we;
|
|
@@ -303,21 +303,21 @@ function vr() {
|
|
|
303
303
|
if (typeof e == "string")
|
|
304
304
|
return V(e);
|
|
305
305
|
switch (e) {
|
|
306
|
-
case
|
|
306
|
+
case T:
|
|
307
307
|
return V("Suspense");
|
|
308
|
-
case
|
|
308
|
+
case g:
|
|
309
309
|
return V("SuspenseList");
|
|
310
310
|
}
|
|
311
311
|
if (typeof e == "object")
|
|
312
312
|
switch (e.$$typeof) {
|
|
313
313
|
case m:
|
|
314
314
|
return Be(e.render);
|
|
315
|
-
case
|
|
315
|
+
case R:
|
|
316
316
|
return U(e.type, r, t);
|
|
317
|
-
case
|
|
318
|
-
var a = e,
|
|
317
|
+
case P: {
|
|
318
|
+
var a = e, c = a._payload, p = a._init;
|
|
319
319
|
try {
|
|
320
|
-
return U(
|
|
320
|
+
return U(p(c), r, t);
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
323
|
}
|
|
@@ -332,22 +332,22 @@ function vr() {
|
|
|
332
332
|
} else
|
|
333
333
|
me.setExtraStackFrame(null);
|
|
334
334
|
}
|
|
335
|
-
function Ge(e, r, t, a,
|
|
335
|
+
function Ge(e, r, t, a, c) {
|
|
336
336
|
{
|
|
337
|
-
var
|
|
338
|
-
for (var
|
|
339
|
-
if (
|
|
340
|
-
var
|
|
337
|
+
var p = Function.call.bind(B);
|
|
338
|
+
for (var s in e)
|
|
339
|
+
if (p(e, s)) {
|
|
340
|
+
var i = void 0;
|
|
341
341
|
try {
|
|
342
|
-
if (typeof e[
|
|
343
|
-
var
|
|
344
|
-
throw
|
|
342
|
+
if (typeof e[s] != "function") {
|
|
343
|
+
var E = Error((a || "React class") + ": " + t + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
344
|
+
throw E.name = "Invariant Violation", E;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
i = e[s](r, s, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
347
|
} catch (h) {
|
|
348
|
-
|
|
348
|
+
i = h;
|
|
349
349
|
}
|
|
350
|
-
|
|
350
|
+
i && !(i instanceof Error) && (q(c), y("%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, s, typeof i), q(null)), i instanceof Error && !(i.message in ve) && (ve[i.message] = !0, q(c), y("Failed %s type: %s", t, i.message), q(null));
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
@@ -373,14 +373,14 @@ function vr() {
|
|
|
373
373
|
}
|
|
374
374
|
function be(e) {
|
|
375
375
|
if (He(e))
|
|
376
|
-
return
|
|
376
|
+
return y("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,
|
|
380
380
|
ref: !0,
|
|
381
381
|
__self: !0,
|
|
382
382
|
__source: !0
|
|
383
|
-
}, _e,
|
|
383
|
+
}, _e, ke, K;
|
|
384
384
|
K = {};
|
|
385
385
|
function Xe(e) {
|
|
386
386
|
if (B.call(e, "ref")) {
|
|
@@ -400,14 +400,14 @@ function vr() {
|
|
|
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 = N($.current.type);
|
|
404
|
+
K[t] || (y('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', N($.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, y("%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 vr() {
|
|
|
418
418
|
function rr(e, r) {
|
|
419
419
|
{
|
|
420
420
|
var t = function() {
|
|
421
|
-
|
|
421
|
+
ke || (ke = !0, y("%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,70 +426,70 @@ function vr() {
|
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var tr = function(e, r, t, a,
|
|
430
|
-
var
|
|
429
|
+
var tr = function(e, r, t, a, c, p, s) {
|
|
430
|
+
var i = {
|
|
431
431
|
// This tag allows us to uniquely identify this as a React Element
|
|
432
|
-
$$typeof:
|
|
432
|
+
$$typeof: f,
|
|
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: s,
|
|
438
438
|
// Record the component responsible for creating this element.
|
|
439
|
-
_owner:
|
|
439
|
+
_owner: p
|
|
440
440
|
};
|
|
441
|
-
return
|
|
441
|
+
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
442
442
|
configurable: !1,
|
|
443
443
|
enumerable: !1,
|
|
444
444
|
writable: !0,
|
|
445
445
|
value: !1
|
|
446
|
-
}), Object.defineProperty(
|
|
446
|
+
}), Object.defineProperty(i, "_self", {
|
|
447
447
|
configurable: !1,
|
|
448
448
|
enumerable: !1,
|
|
449
449
|
writable: !1,
|
|
450
450
|
value: a
|
|
451
|
-
}), Object.defineProperty(
|
|
451
|
+
}), Object.defineProperty(i, "_source", {
|
|
452
452
|
configurable: !1,
|
|
453
453
|
enumerable: !1,
|
|
454
454
|
writable: !1,
|
|
455
|
-
value:
|
|
456
|
-
}), Object.freeze && (Object.freeze(
|
|
455
|
+
value: c
|
|
456
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
457
457
|
};
|
|
458
|
-
function ar(e, r, t, a,
|
|
458
|
+
function ar(e, r, t, a, c) {
|
|
459
459
|
{
|
|
460
|
-
var
|
|
461
|
-
t !== void 0 && (be(t),
|
|
462
|
-
for (
|
|
463
|
-
B.call(r,
|
|
460
|
+
var p, s = {}, i = null, E = null;
|
|
461
|
+
t !== void 0 && (be(t), i = "" + t), Ze(r) && (be(r.key), i = "" + r.key), Xe(r) && (E = r.ref, Qe(r, c));
|
|
462
|
+
for (p in r)
|
|
463
|
+
B.call(r, p) && !Ke.hasOwnProperty(p) && (s[p] = r[p]);
|
|
464
464
|
if (e && e.defaultProps) {
|
|
465
465
|
var h = e.defaultProps;
|
|
466
|
-
for (
|
|
467
|
-
|
|
466
|
+
for (p in h)
|
|
467
|
+
s[p] === void 0 && (s[p] = h[p]);
|
|
468
468
|
}
|
|
469
|
-
if (
|
|
469
|
+
if (i || E) {
|
|
470
470
|
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
471
|
-
|
|
471
|
+
i && er(s, b), E && rr(s, b);
|
|
472
472
|
}
|
|
473
|
-
return tr(e,
|
|
473
|
+
return tr(e, i, E, c, a, $.current, s);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
var X = j.ReactCurrentOwner,
|
|
476
|
+
var X = j.ReactCurrentOwner, ge = j.ReactDebugCurrentFrame;
|
|
477
477
|
function F(e) {
|
|
478
478
|
if (e) {
|
|
479
479
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
480
|
-
|
|
480
|
+
ge.setExtraStackFrame(t);
|
|
481
481
|
} else
|
|
482
|
-
|
|
482
|
+
ge.setExtraStackFrame(null);
|
|
483
483
|
}
|
|
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 === f;
|
|
488
488
|
}
|
|
489
489
|
function ye() {
|
|
490
490
|
{
|
|
491
491
|
if (X.current) {
|
|
492
|
-
var e =
|
|
492
|
+
var e = N(X.current.type);
|
|
493
493
|
if (e)
|
|
494
494
|
return `
|
|
495
495
|
|
|
@@ -532,7 +532,7 @@ Check the top-level render call using <` + 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 " + N(e._owner.type) + "."), F(e), y('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,10 +547,10 @@ 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
|
|
553
|
-
Q(
|
|
550
|
+
var c = je(e);
|
|
551
|
+
if (typeof c == "function" && c !== e.entries)
|
|
552
|
+
for (var p = c.call(e), s; !(s = p.next()).done; )
|
|
553
|
+
Q(s.value) && Re(s.value, r);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -564,19 +564,19 @@ 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 === R))
|
|
568
568
|
t = r.propTypes;
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (t) {
|
|
572
|
-
var a =
|
|
572
|
+
var a = N(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 c = N(r);
|
|
577
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
|
|
578
578
|
}
|
|
579
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
579
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("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,104 +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), y("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), y("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function Te(e, r, t, a,
|
|
594
|
+
function Te(e, r, t, a, c, p) {
|
|
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 s = Ye(e);
|
|
597
|
+
if (!s) {
|
|
598
|
+
var i = "";
|
|
599
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " 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 E = nr(c);
|
|
601
|
+
E ? i += E : i += 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 === f ? (h = "<" + (N(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, i);
|
|
604
604
|
}
|
|
605
|
-
var b = ar(e, r, t,
|
|
605
|
+
var b = ar(e, r, t, c, p);
|
|
606
606
|
if (b == null)
|
|
607
607
|
return b;
|
|
608
|
-
if (
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
608
|
+
if (s) {
|
|
609
|
+
var w = r.children;
|
|
610
|
+
if (w !== 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(w)) {
|
|
613
|
+
for (var D = 0; D < w.length; D++)
|
|
614
|
+
xe(w[D], e);
|
|
615
|
+
Object.freeze && Object.freeze(w);
|
|
616
616
|
} else
|
|
617
|
-
|
|
617
|
+
y("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(w, e);
|
|
620
620
|
}
|
|
621
|
-
return e ===
|
|
621
|
+
return e === l ? sr(b) : ir(b), b;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
function lr(e, r, t) {
|
|
625
625
|
return Te(e, r, t, !0);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function cr(e, r, t) {
|
|
628
628
|
return Te(e, r, t, !1);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
W.Fragment =
|
|
630
|
+
var ur = cr, fr = lr;
|
|
631
|
+
W.Fragment = l, W.jsx = ur, W.jsxs = fr;
|
|
632
632
|
}()), W;
|
|
633
633
|
}
|
|
634
|
-
(function(
|
|
635
|
-
process.env.NODE_ENV === "production" ?
|
|
636
|
-
})(
|
|
637
|
-
const
|
|
638
|
-
className:
|
|
639
|
-
name:
|
|
640
|
-
viewBox:
|
|
641
|
-
...
|
|
634
|
+
(function(o) {
|
|
635
|
+
process.env.NODE_ENV === "production" ? o.exports = vr() : o.exports = mr();
|
|
636
|
+
})(pr);
|
|
637
|
+
const Se = Y.Fragment, n = Y.jsx, x = Y.jsxs, S = ({
|
|
638
|
+
className: o,
|
|
639
|
+
name: f,
|
|
640
|
+
viewBox: d = "0 0 32 32",
|
|
641
|
+
...l
|
|
642
642
|
}) => {
|
|
643
|
-
const v = [
|
|
644
|
-
return /* @__PURE__ */
|
|
645
|
-
},
|
|
646
|
-
children:
|
|
647
|
-
className:
|
|
648
|
-
|
|
649
|
-
|
|
643
|
+
const v = [o].filter(Boolean).join(" ");
|
|
644
|
+
return /* @__PURE__ */ n("svg", { ...l, className: v, viewBox: d, children: /* @__PURE__ */ n("use", { href: `#${f}` }) });
|
|
645
|
+
}, Rr = ({
|
|
646
|
+
children: o,
|
|
647
|
+
className: f,
|
|
648
|
+
skin: d = "info",
|
|
649
|
+
closeAlert: l = !1,
|
|
650
|
+
onClose: v,
|
|
651
|
+
title: u,
|
|
652
|
+
date: k,
|
|
653
|
+
ariaLive: _ = "polite",
|
|
654
|
+
...m
|
|
655
|
+
}) => {
|
|
656
|
+
const T = [f, "pkt-alert", d && `pkt-alert--${d}`].filter(Boolean).join(" "), [g, R] = dr(!0), P = () => {
|
|
657
|
+
R(!1), v && v();
|
|
658
|
+
};
|
|
659
|
+
return g ? /* @__PURE__ */ x("div", { ...m, className: T, "aria-live": _, children: [
|
|
660
|
+
/* @__PURE__ */ n("div", { className: "pkt-alert__icon", children: /* @__PURE__ */ n(S, { name: d === "info" ? "alert-information" : `alert-${d}` }) }),
|
|
661
|
+
l && /* @__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: P,
|
|
668
|
+
children: /* @__PURE__ */ n(S, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
669
|
+
}
|
|
670
|
+
) }),
|
|
671
|
+
u && /* @__PURE__ */ n("div", { className: "pkt-alert__title", children: u }),
|
|
672
|
+
/* @__PURE__ */ n("div", { className: "pkt-alert__text", children: o }),
|
|
673
|
+
k && /* @__PURE__ */ x("div", { className: "pkt-alert__date", children: [
|
|
674
|
+
"Sist oppdatert: ",
|
|
675
|
+
k
|
|
676
|
+
] })
|
|
677
|
+
] }) : null;
|
|
678
|
+
}, xr = ({
|
|
679
|
+
children: o,
|
|
680
|
+
className: f,
|
|
681
|
+
iconName: d = "user",
|
|
682
|
+
secondIconName: l = "user",
|
|
650
683
|
size: v = "medium",
|
|
651
|
-
skin:
|
|
652
|
-
type:
|
|
684
|
+
skin: u = "primary",
|
|
685
|
+
type: k = "button",
|
|
653
686
|
variant: _ = "label-only",
|
|
654
687
|
...m
|
|
655
688
|
}) => {
|
|
656
|
-
const
|
|
657
|
-
|
|
689
|
+
const T = [
|
|
690
|
+
f,
|
|
658
691
|
"pkt-btn",
|
|
659
692
|
v && `pkt-btn--${v}`,
|
|
660
|
-
|
|
693
|
+
u && `pkt-btn--${u}`,
|
|
661
694
|
_ && `pkt-btn--${_}`
|
|
662
695
|
].filter(Boolean).join(" ");
|
|
663
|
-
return /* @__PURE__ */
|
|
664
|
-
/* @__PURE__ */
|
|
665
|
-
/* @__PURE__ */
|
|
666
|
-
_ === "icons-right-and-left" && /* @__PURE__ */
|
|
696
|
+
return /* @__PURE__ */ x("button", { ...m, className: T, type: k, children: [
|
|
697
|
+
/* @__PURE__ */ n(S, { className: "pkt-btn__icon", name: d }),
|
|
698
|
+
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children: o }),
|
|
699
|
+
_ === "icons-right-and-left" && /* @__PURE__ */ n(S, { className: "pkt-btn__icon", name: l })
|
|
667
700
|
] });
|
|
668
|
-
},
|
|
669
|
-
children:
|
|
670
|
-
className:
|
|
671
|
-
logoLink:
|
|
672
|
-
isLoggedIn:
|
|
701
|
+
}, Tr = ({
|
|
702
|
+
children: o,
|
|
703
|
+
className: f,
|
|
704
|
+
logoLink: d = "https://www.oslo.kommune.no/",
|
|
705
|
+
isLoggedIn: l = !1,
|
|
673
706
|
representing: v = "",
|
|
674
|
-
canChangeRepresentation:
|
|
675
|
-
showLogInButton:
|
|
707
|
+
canChangeRepresentation: u = !1,
|
|
708
|
+
showLogInButton: k = !0,
|
|
676
709
|
onLogIn: _,
|
|
677
710
|
onLogOut: m,
|
|
678
|
-
onChangeRepresentation:
|
|
679
|
-
...
|
|
711
|
+
onChangeRepresentation: T,
|
|
712
|
+
...g
|
|
680
713
|
}) => {
|
|
681
|
-
const
|
|
682
|
-
return /* @__PURE__ */
|
|
683
|
-
/* @__PURE__ */
|
|
684
|
-
|
|
714
|
+
const R = [f, "pkt-header"].filter(Boolean).join(" ");
|
|
715
|
+
return /* @__PURE__ */ x("header", { id: "pkt-header", className: R, "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: d, children: /* @__PURE__ */ n(
|
|
717
|
+
S,
|
|
685
718
|
{
|
|
686
719
|
name: "oslologo",
|
|
687
720
|
className: "pkt-header__logo-svg",
|
|
@@ -689,83 +722,83 @@ const Ce = Y.Fragment, s = Y.jsx, T = Y.jsxs, N = ({
|
|
|
689
722
|
"aria-hidden": "true"
|
|
690
723
|
}
|
|
691
724
|
) }) }),
|
|
692
|
-
/* @__PURE__ */
|
|
693
|
-
|
|
725
|
+
/* @__PURE__ */ x("div", { className: "pkt-header__actions", children: [
|
|
726
|
+
l && u && /* @__PURE__ */ x(
|
|
694
727
|
"button",
|
|
695
728
|
{
|
|
696
729
|
className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
|
|
697
730
|
"aria-label": `Bytt bruker fra ${v}`,
|
|
698
|
-
onClick:
|
|
731
|
+
onClick: T,
|
|
699
732
|
children: [
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
/* @__PURE__ */
|
|
703
|
-
/* @__PURE__ */
|
|
733
|
+
/* @__PURE__ */ n(S, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
|
|
734
|
+
/* @__PURE__ */ n("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
|
|
735
|
+
/* @__PURE__ */ n("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
|
|
736
|
+
/* @__PURE__ */ n("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: v })
|
|
704
737
|
]
|
|
705
738
|
}
|
|
706
739
|
),
|
|
707
|
-
|
|
708
|
-
/* @__PURE__ */
|
|
709
|
-
/* @__PURE__ */
|
|
740
|
+
l && !u && /* @__PURE__ */ x("div", { className: "pkt-header__action", children: [
|
|
741
|
+
/* @__PURE__ */ n("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ n("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline truncate-text", children: v }) }),
|
|
742
|
+
/* @__PURE__ */ n("span", { className: "pkt-header__action-icon pkt-show-phablet-up", children: /* @__PURE__ */ n(S, { name: "user" }) })
|
|
710
743
|
] }),
|
|
711
|
-
|
|
744
|
+
k && l && /* @__PURE__ */ x(
|
|
712
745
|
"button",
|
|
713
746
|
{
|
|
714
747
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
715
748
|
"aria-label": "Logg ut",
|
|
716
749
|
onClick: m,
|
|
717
750
|
children: [
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ n(S, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
|
|
752
|
+
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg ut" })
|
|
720
753
|
]
|
|
721
754
|
}
|
|
722
755
|
),
|
|
723
|
-
|
|
756
|
+
k && !l && /* @__PURE__ */ x(
|
|
724
757
|
"button",
|
|
725
758
|
{
|
|
726
759
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
727
760
|
"aria-label": "Logg inn",
|
|
728
761
|
onClick: _,
|
|
729
762
|
children: [
|
|
730
|
-
/* @__PURE__ */
|
|
731
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ n(S, { className: "pkt-btn__icon", name: "user" }),
|
|
764
|
+
/* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg inn" })
|
|
732
765
|
]
|
|
733
766
|
}
|
|
734
767
|
)
|
|
735
768
|
] })
|
|
736
769
|
] });
|
|
737
|
-
},
|
|
738
|
-
({ label:
|
|
739
|
-
/* @__PURE__ */
|
|
740
|
-
/* @__PURE__ */
|
|
741
|
-
|
|
770
|
+
}, hr = re.forwardRef(
|
|
771
|
+
({ label: o, id: f, children: d, ...l }, v) => /* @__PURE__ */ x("div", { className: "pkt-form-group", children: [
|
|
772
|
+
/* @__PURE__ */ n("label", { htmlFor: f, className: "pkt-form-label", children: o }),
|
|
773
|
+
/* @__PURE__ */ n("input", { className: "pkt-form-input", id: f, ...l, ref: v }),
|
|
774
|
+
d
|
|
742
775
|
] })
|
|
743
776
|
);
|
|
744
|
-
|
|
745
|
-
const
|
|
746
|
-
({ id:
|
|
747
|
-
/* @__PURE__ */
|
|
748
|
-
/* @__PURE__ */
|
|
777
|
+
hr.displayName = "PktInput";
|
|
778
|
+
const br = Oe(
|
|
779
|
+
({ id: o, label: f, ...d }, l) => /* @__PURE__ */ x("div", { className: "pkt-form-group", children: [
|
|
780
|
+
/* @__PURE__ */ n("label", { htmlFor: o, className: "pkt-form-label", children: f }),
|
|
781
|
+
/* @__PURE__ */ n("textarea", { className: "pkt-form-textarea", id: o, ref: l, ...d })
|
|
749
782
|
] })
|
|
750
783
|
);
|
|
751
|
-
|
|
752
|
-
const
|
|
753
|
-
({ id:
|
|
754
|
-
/* @__PURE__ */
|
|
755
|
-
/* @__PURE__ */
|
|
784
|
+
br.displayName = "PktTextarea";
|
|
785
|
+
const _r = Oe(
|
|
786
|
+
({ id: o, name: f, label: d, value: l, ...v }, u) => /* @__PURE__ */ x("div", { className: "pkt-form-group", children: [
|
|
787
|
+
/* @__PURE__ */ n("input", { type: "radio", className: "pkt-form-check-input", id: o, name: f, value: l, ref: u, ...v }),
|
|
788
|
+
/* @__PURE__ */ n("label", { className: "pkt-form-label", htmlFor: o, children: d })
|
|
756
789
|
] })
|
|
757
790
|
);
|
|
758
|
-
|
|
759
|
-
const
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */
|
|
791
|
+
_r.displayName = "PktRadio";
|
|
792
|
+
const wr = ({ label: o, children: f }) => /* @__PURE__ */ x(Se, { children: [
|
|
793
|
+
/* @__PURE__ */ n("p", { children: o }),
|
|
794
|
+
/* @__PURE__ */ n("div", { className: "pkt-form-group", children: f })
|
|
762
795
|
] });
|
|
763
|
-
var ee = {},
|
|
796
|
+
var ee = {}, kr = {
|
|
764
797
|
get exports() {
|
|
765
798
|
return ee;
|
|
766
799
|
},
|
|
767
|
-
set exports(
|
|
768
|
-
ee =
|
|
800
|
+
set exports(o) {
|
|
801
|
+
ee = o;
|
|
769
802
|
}
|
|
770
803
|
};
|
|
771
804
|
/*!
|
|
@@ -773,60 +806,61 @@ var ee = {}, _r = {
|
|
|
773
806
|
Licensed under the MIT License (MIT), see
|
|
774
807
|
http://jedwatson.github.io/classnames
|
|
775
808
|
*/
|
|
776
|
-
(function(
|
|
809
|
+
(function(o) {
|
|
777
810
|
(function() {
|
|
778
|
-
var
|
|
779
|
-
function
|
|
780
|
-
for (var
|
|
781
|
-
var
|
|
782
|
-
if (
|
|
783
|
-
var
|
|
784
|
-
if (
|
|
785
|
-
|
|
786
|
-
else if (Array.isArray(
|
|
787
|
-
if (
|
|
788
|
-
var _ =
|
|
789
|
-
_ &&
|
|
811
|
+
var f = {}.hasOwnProperty;
|
|
812
|
+
function d() {
|
|
813
|
+
for (var l = [], v = 0; v < arguments.length; v++) {
|
|
814
|
+
var u = arguments[v];
|
|
815
|
+
if (u) {
|
|
816
|
+
var k = typeof u;
|
|
817
|
+
if (k === "string" || k === "number")
|
|
818
|
+
l.push(u);
|
|
819
|
+
else if (Array.isArray(u)) {
|
|
820
|
+
if (u.length) {
|
|
821
|
+
var _ = d.apply(null, u);
|
|
822
|
+
_ && l.push(_);
|
|
790
823
|
}
|
|
791
|
-
} else if (
|
|
792
|
-
if (
|
|
793
|
-
|
|
824
|
+
} else if (k === "object") {
|
|
825
|
+
if (u.toString !== Object.prototype.toString && !u.toString.toString().includes("[native code]")) {
|
|
826
|
+
l.push(u.toString());
|
|
794
827
|
continue;
|
|
795
828
|
}
|
|
796
|
-
for (var m in
|
|
797
|
-
|
|
829
|
+
for (var m in u)
|
|
830
|
+
f.call(u, m) && u[m] && l.push(m);
|
|
798
831
|
}
|
|
799
832
|
}
|
|
800
833
|
}
|
|
801
|
-
return
|
|
834
|
+
return l.join(" ");
|
|
802
835
|
}
|
|
803
|
-
|
|
836
|
+
o.exports ? (d.default = d, o.exports = d) : window.classNames = d;
|
|
804
837
|
})();
|
|
805
|
-
})(
|
|
806
|
-
const gr = ee,
|
|
807
|
-
isResponsive:
|
|
808
|
-
modifiers: { info:
|
|
809
|
-
children:
|
|
810
|
-
}) => /* @__PURE__ */
|
|
838
|
+
})(kr);
|
|
839
|
+
const gr = ee, yr = ({ isResponsive: o, children: f }) => o ? /* @__PURE__ */ n("div", { className: "pkt-table-container", children: f }) : /* @__PURE__ */ n(Se, { children: f }), Pr = ({
|
|
840
|
+
isResponsive: o,
|
|
841
|
+
modifiers: { info: f = !1, success: d = !1, strong: l = !1, shadow: v = !1 } = {},
|
|
842
|
+
children: u
|
|
843
|
+
}) => /* @__PURE__ */ n(yr, { isResponsive: o, children: /* @__PURE__ */ n(
|
|
811
844
|
"table",
|
|
812
845
|
{
|
|
813
846
|
className: gr("pkt-table", {
|
|
814
|
-
"pkt-table--info":
|
|
815
|
-
"pkt-table--success":
|
|
816
|
-
"pkt-table--strong":
|
|
847
|
+
"pkt-table--info": f,
|
|
848
|
+
"pkt-table--success": d,
|
|
849
|
+
"pkt-table--strong": l,
|
|
817
850
|
"pkt-table--shadow": v
|
|
818
851
|
}),
|
|
819
|
-
children:
|
|
852
|
+
children: u
|
|
820
853
|
}
|
|
821
|
-
) }),
|
|
854
|
+
) }), Nr = ({ children: o }) => /* @__PURE__ */ n("td", { className: "pkt-table__th", children: o }), Or = ({ children: o }) => /* @__PURE__ */ n("th", { className: "pkt-table__th", children: o });
|
|
822
855
|
export {
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
856
|
+
Rr as PktAlert,
|
|
857
|
+
xr as PktButton,
|
|
858
|
+
Tr as PktHeader,
|
|
859
|
+
hr as PktInput,
|
|
860
|
+
_r as PktRadio,
|
|
861
|
+
wr as PktRadioGroup,
|
|
862
|
+
Pr as PktTable,
|
|
863
|
+
Nr as PktTableData,
|
|
864
|
+
Or as PktTableHeader,
|
|
865
|
+
br as PktTextarea
|
|
832
866
|
};
|