@oslokommune/punkt-react 9.2.10 → 9.3.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 +27 -0
- package/dist/icon/DefaultIconFetcher.d.ts +4 -0
- package/dist/icon/IconContext.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/punkt-react.es.js +157 -160
- package/dist/punkt-react.umd.js +13 -13
- package/package.json +3 -3
- package/src/components/icon/DefaultIconFetcher.tsx +37 -0
- package/src/components/icon/Icon.test.tsx +78 -0
- package/src/components/icon/Icon.tsx +9 -34
- package/src/components/icon/IconContext.tsx +9 -0
- package/src/components/index.ts +1 -0
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as b from "react";
|
|
2
|
-
import
|
|
3
|
-
function
|
|
2
|
+
import q, { createContext as on, useState as ue, useContext as sn, useEffect as yt, forwardRef as B, useRef as cn } from "react";
|
|
3
|
+
function un(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
6
|
var Ue = { exports: {} }, se = {};
|
|
@@ -14,11 +14,11 @@ var Ue = { exports: {} }, se = {};
|
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
16
|
var kt;
|
|
17
|
-
function
|
|
17
|
+
function pn() {
|
|
18
18
|
if (kt)
|
|
19
19
|
return se;
|
|
20
20
|
kt = 1;
|
|
21
|
-
var e =
|
|
21
|
+
var e = q, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
22
|
function s(f, p, c) {
|
|
23
23
|
var m, v = {}, E = null, w = null;
|
|
24
24
|
c !== void 0 && (E = "" + c), p.key !== void 0 && (E = "" + p.key), p.ref !== void 0 && (w = p.ref);
|
|
@@ -42,9 +42,9 @@ var ce = {};
|
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
44
|
var vt;
|
|
45
|
-
function
|
|
45
|
+
function fn() {
|
|
46
46
|
return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var e =
|
|
47
|
+
var e = q, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), f = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), S = Symbol.iterator, P = "@@iterator";
|
|
48
48
|
function T(t) {
|
|
49
49
|
if (t === null || typeof t != "object")
|
|
50
50
|
return null;
|
|
@@ -71,7 +71,7 @@ function un() {
|
|
|
71
71
|
}
|
|
72
72
|
var F = !1, A = !1, U = !1, M = !1, H = !1, Y;
|
|
73
73
|
Y = Symbol.for("react.module.reference");
|
|
74
|
-
function
|
|
74
|
+
function G(t) {
|
|
75
75
|
return !!(typeof t == "string" || typeof t == "function" || t === o || t === i || H || t === a || t === c || t === m || M || t === w || F || A || U || typeof t == "object" && t !== null && (t.$$typeof === E || t.$$typeof === v || t.$$typeof === s || t.$$typeof === f || t.$$typeof === p || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
@@ -133,13 +133,13 @@ function un() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var J = Object.assign,
|
|
136
|
+
var J = Object.assign, K = 0, Z, Q, oe, Xe, Ze, Qe, et;
|
|
137
137
|
function tt() {
|
|
138
138
|
}
|
|
139
139
|
tt.__reactDisabledLog = !0;
|
|
140
140
|
function Lt() {
|
|
141
141
|
{
|
|
142
|
-
if (
|
|
142
|
+
if (K === 0) {
|
|
143
143
|
Z = console.log, Q = console.info, oe = console.warn, Xe = console.error, Ze = console.group, Qe = console.groupCollapsed, et = console.groupEnd;
|
|
144
144
|
var t = {
|
|
145
145
|
configurable: !0,
|
|
@@ -157,12 +157,12 @@ function un() {
|
|
|
157
157
|
groupEnd: t
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
K++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
function It() {
|
|
164
164
|
{
|
|
165
|
-
if (
|
|
165
|
+
if (K--, K === 0) {
|
|
166
166
|
var t = {
|
|
167
167
|
configurable: !0,
|
|
168
168
|
enumerable: !0,
|
|
@@ -192,7 +192,7 @@ function un() {
|
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
K < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
var Pe = C.ReactCurrentDispatcher, Se;
|
|
@@ -401,7 +401,7 @@ function un() {
|
|
|
401
401
|
je[d] || (g('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', D(ie.current.type), t.ref), je[d] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Gt(t, u) {
|
|
405
405
|
{
|
|
406
406
|
var d = function() {
|
|
407
407
|
it || (it = !0, g("%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)", u));
|
|
@@ -412,7 +412,7 @@ function un() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Kt(t, u) {
|
|
416
416
|
{
|
|
417
417
|
var d = function() {
|
|
418
418
|
st || (st = !0, g("%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)", u));
|
|
@@ -423,7 +423,7 @@ function un() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var qt = function(t, u, d, k, R, O, x) {
|
|
427
427
|
var N = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
429
|
$$typeof: n,
|
|
@@ -465,9 +465,9 @@ function un() {
|
|
|
465
465
|
}
|
|
466
466
|
if (N || V) {
|
|
467
467
|
var L = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
468
|
-
N &&
|
|
468
|
+
N && Gt(x, L), V && Kt(x, L);
|
|
469
469
|
}
|
|
470
|
-
return
|
|
470
|
+
return qt(t, N, V, R, k, ie.current, x);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
var De = C.ReactCurrentOwner, ct = C.ReactDebugCurrentFrame;
|
|
@@ -590,7 +590,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
590
590
|
}
|
|
591
591
|
function mt(t, u, d, k, R, O) {
|
|
592
592
|
{
|
|
593
|
-
var x =
|
|
593
|
+
var x = G(t);
|
|
594
594
|
if (!x) {
|
|
595
595
|
var N = "";
|
|
596
596
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -628,27 +628,23 @@ Check the top-level render call using <` + d + ">.");
|
|
|
628
628
|
ce.Fragment = o, ce.jsx = an, ce.jsxs = ln;
|
|
629
629
|
}()), ce;
|
|
630
630
|
}
|
|
631
|
-
process.env.NODE_ENV === "production" ? Ue.exports =
|
|
631
|
+
process.env.NODE_ENV === "production" ? Ue.exports = pn() : Ue.exports = fn();
|
|
632
632
|
var ze = Ue.exports;
|
|
633
|
-
const ee = ze.Fragment, l = ze.jsx, h = ze.jsxs, Ie = {},
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
const y = ({ name: e, path: n, className: r = "", ...o }) => {
|
|
638
|
-
const a = "https://punkt-cdn.oslo.kommune.no/9.2/icons/", [i, s] = ue(null);
|
|
633
|
+
const ee = ze.Fragment, l = ze.jsx, h = ze.jsxs, Ie = {}, dn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', mn = "https://punkt-cdn.oslo.kommune.no/9.3/icons/", hn = (e, n) => (!Ie[e] && typeof window.fetch == "function" && (Ie[e] = window.fetch(n + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + n + e + ".svg"), dn)).then((r) => r)), Promise.resolve(Ie[e])), kn = {
|
|
634
|
+
fetchIcon: async (e, n) => hn(e, n || mn)
|
|
635
|
+
}, vn = on(kn), y = ({ name: e, path: n, className: r = "", ...o }) => {
|
|
636
|
+
const [a, i] = ue(null), s = sn(vn);
|
|
639
637
|
return yt(() => {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
fn(e, n || a).then((p) => s(p));
|
|
643
|
-
}, [e, n, a]), i ? /* @__PURE__ */ l(
|
|
638
|
+
e ? s.fetchIcon(e, n).then(i) : i(null);
|
|
639
|
+
}, [e, n]), a ? /* @__PURE__ */ l(
|
|
644
640
|
"span",
|
|
645
641
|
{
|
|
646
642
|
className: `pkt-icon ${r}`,
|
|
647
|
-
dangerouslySetInnerHTML: { __html:
|
|
643
|
+
dangerouslySetInnerHTML: { __html: a },
|
|
648
644
|
...o
|
|
649
645
|
}
|
|
650
646
|
) : null;
|
|
651
|
-
},
|
|
647
|
+
}, _n = B(
|
|
652
648
|
({
|
|
653
649
|
children: e,
|
|
654
650
|
className: n,
|
|
@@ -696,7 +692,7 @@ const y = ({ name: e, path: n, className: r = "", ...o }) => {
|
|
|
696
692
|
] })
|
|
697
693
|
] }) : null;
|
|
698
694
|
}
|
|
699
|
-
),
|
|
695
|
+
), sr = B(
|
|
700
696
|
({ href: e, text: n, onClick: r, className: o, ...a }, i) => {
|
|
701
697
|
const s = [
|
|
702
698
|
o,
|
|
@@ -777,7 +773,7 @@ function Be(e, n) {
|
|
|
777
773
|
let r = n.endsWith("/") ? n.length - 1 : n.length, o = e.charAt(r);
|
|
778
774
|
return o && o !== "/" ? null : e.slice(r) || "/";
|
|
779
775
|
}
|
|
780
|
-
function
|
|
776
|
+
function bn(e, n) {
|
|
781
777
|
n === void 0 && (n = "/");
|
|
782
778
|
let {
|
|
783
779
|
pathname: r,
|
|
@@ -785,12 +781,12 @@ function mn(e, n) {
|
|
|
785
781
|
hash: a = ""
|
|
786
782
|
} = typeof e == "string" ? Et(e) : e;
|
|
787
783
|
return {
|
|
788
|
-
pathname: r ? r.startsWith("/") ? r :
|
|
789
|
-
search:
|
|
790
|
-
hash:
|
|
784
|
+
pathname: r ? r.startsWith("/") ? r : gn(r, n) : n,
|
|
785
|
+
search: Nn(o),
|
|
786
|
+
hash: yn(a)
|
|
791
787
|
};
|
|
792
788
|
}
|
|
793
|
-
function
|
|
789
|
+
function gn(e, n) {
|
|
794
790
|
let r = n.replace(/\/+$/, "").split("/");
|
|
795
791
|
return e.split("/").forEach((a) => {
|
|
796
792
|
a === ".." ? r.length > 1 && r.pop() : a !== "." && r.push(a);
|
|
@@ -819,13 +815,13 @@ function wt(e, n, r, o) {
|
|
|
819
815
|
}
|
|
820
816
|
f = v >= 0 ? n[v] : "/";
|
|
821
817
|
}
|
|
822
|
-
let p =
|
|
818
|
+
let p = bn(a, f), c = s && s !== "/" && s.endsWith("/"), m = (i || s === ".") && r.endsWith("/");
|
|
823
819
|
return !p.pathname.endsWith("/") && (c || m) && (p.pathname += "/"), p;
|
|
824
820
|
}
|
|
825
|
-
const He = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
821
|
+
const He = (e) => e.join("/").replace(/\/\/+/g, "/"), Nn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, yn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ct = ["post", "put", "patch", "delete"];
|
|
826
822
|
new Set(Ct);
|
|
827
|
-
const
|
|
828
|
-
new Set(
|
|
823
|
+
const En = ["get", ...Ct];
|
|
824
|
+
new Set(En);
|
|
829
825
|
/**
|
|
830
826
|
* React Router v6.14.1
|
|
831
827
|
*
|
|
@@ -850,25 +846,25 @@ const xe = /* @__PURE__ */ b.createContext(null);
|
|
|
850
846
|
process.env.NODE_ENV !== "production" && (xe.displayName = "DataRouter");
|
|
851
847
|
const Rt = /* @__PURE__ */ b.createContext(null);
|
|
852
848
|
process.env.NODE_ENV !== "production" && (Rt.displayName = "DataRouterState");
|
|
853
|
-
const
|
|
854
|
-
process.env.NODE_ENV !== "production" && (
|
|
849
|
+
const xn = /* @__PURE__ */ b.createContext(null);
|
|
850
|
+
process.env.NODE_ENV !== "production" && (xn.displayName = "Await");
|
|
855
851
|
const te = /* @__PURE__ */ b.createContext(null);
|
|
856
852
|
process.env.NODE_ENV !== "production" && (te.displayName = "Navigation");
|
|
857
|
-
const
|
|
858
|
-
process.env.NODE_ENV !== "production" && (
|
|
853
|
+
const Ge = /* @__PURE__ */ b.createContext(null);
|
|
854
|
+
process.env.NODE_ENV !== "production" && (Ge.displayName = "Location");
|
|
859
855
|
const le = /* @__PURE__ */ b.createContext({
|
|
860
856
|
outlet: null,
|
|
861
857
|
matches: [],
|
|
862
858
|
isDataRoute: !1
|
|
863
859
|
});
|
|
864
860
|
process.env.NODE_ENV !== "production" && (le.displayName = "Route");
|
|
865
|
-
const
|
|
866
|
-
process.env.NODE_ENV !== "production" && (
|
|
867
|
-
function
|
|
861
|
+
const wn = /* @__PURE__ */ b.createContext(null);
|
|
862
|
+
process.env.NODE_ENV !== "production" && (wn.displayName = "RouteError");
|
|
863
|
+
function Cn(e, n) {
|
|
868
864
|
let {
|
|
869
865
|
relative: r
|
|
870
866
|
} = n === void 0 ? {} : n;
|
|
871
|
-
|
|
867
|
+
Ke() || (process.env.NODE_ENV !== "production" ? I(
|
|
872
868
|
!1,
|
|
873
869
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
874
870
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -890,29 +886,29 @@ function Nn(e, n) {
|
|
|
890
886
|
hash: i
|
|
891
887
|
});
|
|
892
888
|
}
|
|
893
|
-
function
|
|
894
|
-
return b.useContext(
|
|
889
|
+
function Ke() {
|
|
890
|
+
return b.useContext(Ge) != null;
|
|
895
891
|
}
|
|
896
892
|
function pe() {
|
|
897
|
-
return
|
|
893
|
+
return Ke() || (process.env.NODE_ENV !== "production" ? I(
|
|
898
894
|
!1,
|
|
899
895
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
900
896
|
// router loaded. We can help them understand how to avoid that.
|
|
901
897
|
"useLocation() may be used only in the context of a <Router> component."
|
|
902
|
-
) : I(!1)), b.useContext(
|
|
898
|
+
) : I(!1)), b.useContext(Ge).location;
|
|
903
899
|
}
|
|
904
900
|
const Pt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
905
901
|
function St(e) {
|
|
906
902
|
b.useContext(te).static || b.useLayoutEffect(e);
|
|
907
903
|
}
|
|
908
|
-
function
|
|
904
|
+
function Rn() {
|
|
909
905
|
let {
|
|
910
906
|
isDataRoute: e
|
|
911
907
|
} = b.useContext(le);
|
|
912
|
-
return e ?
|
|
908
|
+
return e ? jn() : Pn();
|
|
913
909
|
}
|
|
914
|
-
function
|
|
915
|
-
|
|
910
|
+
function Pn() {
|
|
911
|
+
Ke() || (process.env.NODE_ENV !== "production" ? I(
|
|
916
912
|
!1,
|
|
917
913
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
918
914
|
// router loaded. We can help them understand how to avoid that.
|
|
@@ -960,25 +956,25 @@ var ge;
|
|
|
960
956
|
function Ot(e) {
|
|
961
957
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
962
958
|
}
|
|
963
|
-
function
|
|
959
|
+
function Sn(e) {
|
|
964
960
|
let n = b.useContext(xe);
|
|
965
961
|
return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
|
|
966
962
|
}
|
|
967
|
-
function
|
|
963
|
+
function On(e) {
|
|
968
964
|
let n = b.useContext(le);
|
|
969
965
|
return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
|
|
970
966
|
}
|
|
971
967
|
function Tt(e) {
|
|
972
|
-
let n =
|
|
968
|
+
let n = On(e), r = n.matches[n.matches.length - 1];
|
|
973
969
|
return r.route.id || (process.env.NODE_ENV !== "production" ? I(!1, e + ' can only be used on routes that contain a unique "id"') : I(!1)), r.route.id;
|
|
974
970
|
}
|
|
975
|
-
function
|
|
971
|
+
function Tn() {
|
|
976
972
|
return Tt(ge.UseRouteId);
|
|
977
973
|
}
|
|
978
|
-
function
|
|
974
|
+
function jn() {
|
|
979
975
|
let {
|
|
980
976
|
router: e
|
|
981
|
-
} =
|
|
977
|
+
} = Sn(Ye.UseNavigateStable), n = Tt(ge.UseNavigateStable), r = b.useRef(!1);
|
|
982
978
|
return St(() => {
|
|
983
979
|
r.current = !0;
|
|
984
980
|
}), b.useCallback(function(a, i) {
|
|
@@ -1013,7 +1009,7 @@ function ne() {
|
|
|
1013
1009
|
return e;
|
|
1014
1010
|
}, ne.apply(this, arguments);
|
|
1015
1011
|
}
|
|
1016
|
-
function
|
|
1012
|
+
function qe(e, n) {
|
|
1017
1013
|
if (e == null)
|
|
1018
1014
|
return {};
|
|
1019
1015
|
var r = {}, o = Object.keys(e), a, i;
|
|
@@ -1025,25 +1021,25 @@ const _e = "get", be = "application/x-www-form-urlencoded";
|
|
|
1025
1021
|
function Ce(e) {
|
|
1026
1022
|
return e != null && typeof e.tagName == "string";
|
|
1027
1023
|
}
|
|
1028
|
-
function
|
|
1024
|
+
function Dn(e) {
|
|
1029
1025
|
return Ce(e) && e.tagName.toLowerCase() === "button";
|
|
1030
1026
|
}
|
|
1031
|
-
function
|
|
1027
|
+
function $n(e) {
|
|
1032
1028
|
return Ce(e) && e.tagName.toLowerCase() === "form";
|
|
1033
1029
|
}
|
|
1034
|
-
function
|
|
1030
|
+
function Ln(e) {
|
|
1035
1031
|
return Ce(e) && e.tagName.toLowerCase() === "input";
|
|
1036
1032
|
}
|
|
1037
|
-
function
|
|
1033
|
+
function In(e) {
|
|
1038
1034
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1039
1035
|
}
|
|
1040
|
-
function
|
|
1036
|
+
function Fn(e, n) {
|
|
1041
1037
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1042
1038
|
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
1043
|
-
!
|
|
1039
|
+
!In(e);
|
|
1044
1040
|
}
|
|
1045
1041
|
let ve = null;
|
|
1046
|
-
function
|
|
1042
|
+
function An() {
|
|
1047
1043
|
if (ve === null)
|
|
1048
1044
|
try {
|
|
1049
1045
|
new FormData(
|
|
@@ -1056,21 +1052,21 @@ function Dn() {
|
|
|
1056
1052
|
}
|
|
1057
1053
|
return ve;
|
|
1058
1054
|
}
|
|
1059
|
-
const
|
|
1055
|
+
const Un = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
1060
1056
|
function Ae(e) {
|
|
1061
|
-
return e != null &&
|
|
1057
|
+
return e != null && !Un.has(e) ? (process.env.NODE_ENV !== "production" && Ee(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + be + '"')), null) : e;
|
|
1062
1058
|
}
|
|
1063
|
-
function
|
|
1059
|
+
function Vn(e, n) {
|
|
1064
1060
|
let r, o, a, i, s;
|
|
1065
|
-
if (
|
|
1061
|
+
if ($n(e)) {
|
|
1066
1062
|
let f = e.getAttribute("action");
|
|
1067
1063
|
o = f ? Be(f, n) : null, r = e.getAttribute("method") || _e, a = Ae(e.getAttribute("enctype")) || be, i = new FormData(e);
|
|
1068
|
-
} else if (
|
|
1064
|
+
} else if (Dn(e) || Ln(e) && (e.type === "submit" || e.type === "image")) {
|
|
1069
1065
|
let f = e.form;
|
|
1070
1066
|
if (f == null)
|
|
1071
1067
|
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
1072
1068
|
let p = e.getAttribute("formaction") || f.getAttribute("action");
|
|
1073
|
-
if (o = p ? Be(p, n) : null, r = e.getAttribute("formmethod") || f.getAttribute("method") || _e, a = Ae(e.getAttribute("formenctype")) || Ae(f.getAttribute("enctype")) || be, i = new FormData(f, e), !
|
|
1069
|
+
if (o = p ? Be(p, n) : null, r = e.getAttribute("formmethod") || f.getAttribute("method") || _e, a = Ae(e.getAttribute("formenctype")) || Ae(f.getAttribute("enctype")) || be, i = new FormData(f, e), !An()) {
|
|
1074
1070
|
let {
|
|
1075
1071
|
name: c,
|
|
1076
1072
|
type: m,
|
|
@@ -1095,9 +1091,9 @@ function Ln(e, n) {
|
|
|
1095
1091
|
body: s
|
|
1096
1092
|
};
|
|
1097
1093
|
}
|
|
1098
|
-
const
|
|
1094
|
+
const Wn = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset"], Bn = ["aria-current", "caseSensitive", "className", "end", "style", "to", "children"], Mn = ["reloadDocument", "replace", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset"];
|
|
1099
1095
|
process.env.NODE_ENV;
|
|
1100
|
-
const
|
|
1096
|
+
const Yn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Jn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = /* @__PURE__ */ b.forwardRef(function(n, r) {
|
|
1101
1097
|
let {
|
|
1102
1098
|
onClick: o,
|
|
1103
1099
|
relative: a,
|
|
@@ -1107,19 +1103,19 @@ const Un = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
1107
1103
|
target: p,
|
|
1108
1104
|
to: c,
|
|
1109
1105
|
preventScrollReset: m
|
|
1110
|
-
} = n, v =
|
|
1106
|
+
} = n, v = qe(n, Wn), {
|
|
1111
1107
|
basename: E
|
|
1112
1108
|
} = b.useContext(te), w, S = !1;
|
|
1113
|
-
if (typeof c == "string" &&
|
|
1109
|
+
if (typeof c == "string" && Jn.test(c) && (w = c, Yn))
|
|
1114
1110
|
try {
|
|
1115
1111
|
let g = new URL(window.location.href), j = c.startsWith("//") ? new URL(g.protocol + c) : new URL(c), F = Be(j.pathname, E);
|
|
1116
1112
|
j.origin === g.origin && F != null ? c = F + j.search + j.hash : S = !0;
|
|
1117
1113
|
} catch {
|
|
1118
1114
|
process.env.NODE_ENV !== "production" && Ee(!1, '<Link to="' + c + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
1119
1115
|
}
|
|
1120
|
-
let P =
|
|
1116
|
+
let P = Cn(c, {
|
|
1121
1117
|
relative: a
|
|
1122
|
-
}), T =
|
|
1118
|
+
}), T = qn(c, {
|
|
1123
1119
|
replace: s,
|
|
1124
1120
|
state: f,
|
|
1125
1121
|
target: p,
|
|
@@ -1140,7 +1136,7 @@ const Un = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
1140
1136
|
);
|
|
1141
1137
|
});
|
|
1142
1138
|
process.env.NODE_ENV !== "production" && (Ne.displayName = "Link");
|
|
1143
|
-
const
|
|
1139
|
+
const zn = /* @__PURE__ */ b.forwardRef(function(n, r) {
|
|
1144
1140
|
let {
|
|
1145
1141
|
"aria-current": o = "page",
|
|
1146
1142
|
caseSensitive: a = !1,
|
|
@@ -1149,7 +1145,7 @@ const Wn = /* @__PURE__ */ b.forwardRef(function(n, r) {
|
|
|
1149
1145
|
style: f,
|
|
1150
1146
|
to: p,
|
|
1151
1147
|
children: c
|
|
1152
|
-
} = n, m =
|
|
1148
|
+
} = n, m = qe(n, Bn), v = we(p, {
|
|
1153
1149
|
relative: m.relative
|
|
1154
1150
|
}), E = pe(), w = b.useContext(Rt), {
|
|
1155
1151
|
navigator: S
|
|
@@ -1175,15 +1171,15 @@ const Wn = /* @__PURE__ */ b.forwardRef(function(n, r) {
|
|
|
1175
1171
|
isPending: j
|
|
1176
1172
|
}) : c);
|
|
1177
1173
|
});
|
|
1178
|
-
process.env.NODE_ENV !== "production" && (
|
|
1179
|
-
const
|
|
1180
|
-
let r =
|
|
1174
|
+
process.env.NODE_ENV !== "production" && (zn.displayName = "NavLink");
|
|
1175
|
+
const Hn = /* @__PURE__ */ b.forwardRef((e, n) => {
|
|
1176
|
+
let r = Zn();
|
|
1181
1177
|
return /* @__PURE__ */ b.createElement(jt, ne({}, e, {
|
|
1182
1178
|
submit: r,
|
|
1183
1179
|
ref: n
|
|
1184
1180
|
}));
|
|
1185
1181
|
});
|
|
1186
|
-
process.env.NODE_ENV !== "production" && (
|
|
1182
|
+
process.env.NODE_ENV !== "production" && (Hn.displayName = "Form");
|
|
1187
1183
|
const jt = /* @__PURE__ */ b.forwardRef((e, n) => {
|
|
1188
1184
|
let {
|
|
1189
1185
|
reloadDocument: r,
|
|
@@ -1194,7 +1190,7 @@ const jt = /* @__PURE__ */ b.forwardRef((e, n) => {
|
|
|
1194
1190
|
submit: f,
|
|
1195
1191
|
relative: p,
|
|
1196
1192
|
preventScrollReset: c
|
|
1197
|
-
} = e, m =
|
|
1193
|
+
} = e, m = qe(e, Mn), v = a.toLowerCase() === "get" ? "get" : "post", E = Qn(i, {
|
|
1198
1194
|
relative: p
|
|
1199
1195
|
}), w = (S) => {
|
|
1200
1196
|
if (s && s(S), S.defaultPrevented)
|
|
@@ -1225,25 +1221,25 @@ var Nt;
|
|
|
1225
1221
|
(function(e) {
|
|
1226
1222
|
e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
1227
1223
|
})(Nt || (Nt = {}));
|
|
1228
|
-
function
|
|
1224
|
+
function Gn(e) {
|
|
1229
1225
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
1230
1226
|
}
|
|
1231
|
-
function
|
|
1227
|
+
function Kn(e) {
|
|
1232
1228
|
let n = b.useContext(xe);
|
|
1233
|
-
return n || (process.env.NODE_ENV !== "production" ? I(!1,
|
|
1229
|
+
return n || (process.env.NODE_ENV !== "production" ? I(!1, Gn(e)) : I(!1)), n;
|
|
1234
1230
|
}
|
|
1235
|
-
function
|
|
1231
|
+
function qn(e, n) {
|
|
1236
1232
|
let {
|
|
1237
1233
|
target: r,
|
|
1238
1234
|
replace: o,
|
|
1239
1235
|
state: a,
|
|
1240
1236
|
preventScrollReset: i,
|
|
1241
1237
|
relative: s
|
|
1242
|
-
} = n === void 0 ? {} : n, f =
|
|
1238
|
+
} = n === void 0 ? {} : n, f = Rn(), p = pe(), c = we(e, {
|
|
1243
1239
|
relative: s
|
|
1244
1240
|
});
|
|
1245
1241
|
return b.useCallback((m) => {
|
|
1246
|
-
if (
|
|
1242
|
+
if (Fn(m, r)) {
|
|
1247
1243
|
m.preventDefault();
|
|
1248
1244
|
let v = o !== void 0 ? o : We(p) === We(c);
|
|
1249
1245
|
f(e, {
|
|
@@ -1255,25 +1251,25 @@ function Jn(e, n) {
|
|
|
1255
1251
|
}
|
|
1256
1252
|
}, [p, f, c, o, a, r, e, i, s]);
|
|
1257
1253
|
}
|
|
1258
|
-
function
|
|
1254
|
+
function Xn() {
|
|
1259
1255
|
if (typeof document > "u")
|
|
1260
1256
|
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
1261
1257
|
}
|
|
1262
|
-
function
|
|
1258
|
+
function Zn() {
|
|
1263
1259
|
let {
|
|
1264
1260
|
router: e
|
|
1265
|
-
} =
|
|
1261
|
+
} = Kn(Je.UseSubmit), {
|
|
1266
1262
|
basename: n
|
|
1267
|
-
} = b.useContext(te), r =
|
|
1263
|
+
} = b.useContext(te), r = Tn();
|
|
1268
1264
|
return b.useCallback(function(o, a) {
|
|
1269
|
-
a === void 0 && (a = {}),
|
|
1265
|
+
a === void 0 && (a = {}), Xn();
|
|
1270
1266
|
let {
|
|
1271
1267
|
action: i,
|
|
1272
1268
|
method: s,
|
|
1273
1269
|
encType: f,
|
|
1274
1270
|
formData: p,
|
|
1275
1271
|
body: c
|
|
1276
|
-
} =
|
|
1272
|
+
} = Vn(o, n);
|
|
1277
1273
|
e.navigate(a.action || i, {
|
|
1278
1274
|
preventScrollReset: a.preventScrollReset,
|
|
1279
1275
|
formData: p,
|
|
@@ -1285,7 +1281,7 @@ function Hn() {
|
|
|
1285
1281
|
});
|
|
1286
1282
|
}, [e, n, r]);
|
|
1287
1283
|
}
|
|
1288
|
-
function
|
|
1284
|
+
function Qn(e, n) {
|
|
1289
1285
|
let {
|
|
1290
1286
|
relative: r
|
|
1291
1287
|
} = n === void 0 ? {} : n, {
|
|
@@ -1301,7 +1297,7 @@ function Kn(e, n) {
|
|
|
1301
1297
|
}
|
|
1302
1298
|
return (!e || e === ".") && i.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (s.pathname = s.pathname === "/" ? o : He([o, s.pathname])), We(s);
|
|
1303
1299
|
}
|
|
1304
|
-
const
|
|
1300
|
+
const cr = B(
|
|
1305
1301
|
({ breadcrumbs: e, navigationType: n, className: r, ...o }, a) => {
|
|
1306
1302
|
const i = e.slice(0, 4), s = i[i.length - 2], f = [
|
|
1307
1303
|
r,
|
|
@@ -1416,7 +1412,7 @@ const ar = B(
|
|
|
1416
1412
|
}
|
|
1417
1413
|
);
|
|
1418
1414
|
ye.displayName = "PktButton";
|
|
1419
|
-
const
|
|
1415
|
+
const er = B(
|
|
1420
1416
|
({
|
|
1421
1417
|
id: e,
|
|
1422
1418
|
hasTile: n = !1,
|
|
@@ -1450,8 +1446,8 @@ const qn = B(
|
|
|
1450
1446
|
] }) });
|
|
1451
1447
|
}
|
|
1452
1448
|
);
|
|
1453
|
-
|
|
1454
|
-
const
|
|
1449
|
+
er.displayName = "PktCheckbox";
|
|
1450
|
+
const ur = ({
|
|
1455
1451
|
columnOne: e,
|
|
1456
1452
|
columnTwo: n,
|
|
1457
1453
|
socialLinks: r,
|
|
@@ -1540,7 +1536,7 @@ const lr = ({
|
|
|
1540
1536
|
},
|
|
1541
1537
|
`sociallinks-language-${m}`
|
|
1542
1538
|
)) }),
|
|
1543
|
-
/* @__PURE__ */ l("div", { className: "pkt-footer__social-icons", children: r.filter((c) => c.iconName).map((c, m) => /* @__PURE__ */ l(
|
|
1539
|
+
/* @__PURE__ */ l("div", { className: "pkt-footer__social-icons", children: r.filter((c) => c.iconName).map((c, m) => /* @__PURE__ */ l(q.Fragment, { children: /* @__PURE__ */ l(
|
|
1544
1540
|
"a",
|
|
1545
1541
|
{
|
|
1546
1542
|
href: c.href,
|
|
@@ -1553,7 +1549,7 @@ const lr = ({
|
|
|
1553
1549
|
) }, `sociallinks-${m}`)) })
|
|
1554
1550
|
] })
|
|
1555
1551
|
] }) });
|
|
1556
|
-
},
|
|
1552
|
+
}, pr = ({
|
|
1557
1553
|
links: e = [],
|
|
1558
1554
|
personvernOgInfoLink: n = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
1559
1555
|
tilgjengelighetLink: r = "https://www.oslo.kommune.no/tilgjengelighet/",
|
|
@@ -1626,8 +1622,8 @@ var Dt = { exports: {} };
|
|
|
1626
1622
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
1627
1623
|
})();
|
|
1628
1624
|
})(Dt);
|
|
1629
|
-
var
|
|
1630
|
-
const $t = /* @__PURE__ */
|
|
1625
|
+
var tr = Dt.exports;
|
|
1626
|
+
const $t = /* @__PURE__ */ un(tr), fr = B(
|
|
1631
1627
|
({
|
|
1632
1628
|
logoLink: e = "https://www.oslo.kommune.no/",
|
|
1633
1629
|
serviceName: n,
|
|
@@ -1646,17 +1642,17 @@ const $t = /* @__PURE__ */ sn(Gn), ir = B(
|
|
|
1646
1642
|
changeRepresentation: S,
|
|
1647
1643
|
...P
|
|
1648
1644
|
}, T) => {
|
|
1649
|
-
const C =
|
|
1645
|
+
const C = q.useMemo(() => typeof (a == null ? void 0 : a.lastLoggedIn) == "string" ? a.lastLoggedIn : a != null && a.lastLoggedIn ? new Date(a.lastLoggedIn).toLocaleString("nb-NO", {
|
|
1650
1646
|
year: "numeric",
|
|
1651
1647
|
month: "long",
|
|
1652
1648
|
day: "numeric"
|
|
1653
|
-
}) : "", [a]), [g, j] =
|
|
1654
|
-
|
|
1655
|
-
document.removeEventListener("mouseup",
|
|
1649
|
+
}) : "", [a]), [g, j] = q.useState(!1), [F, A] = q.useState(0), [U, M] = q.useState(!1), H = q.useRef(null);
|
|
1650
|
+
q.useEffect(() => (document.addEventListener("mouseup", G), window.addEventListener("scroll", W), () => {
|
|
1651
|
+
document.removeEventListener("mouseup", G), window.removeEventListener("scroll", W);
|
|
1656
1652
|
}));
|
|
1657
1653
|
const Y = () => {
|
|
1658
1654
|
M(!U);
|
|
1659
|
-
},
|
|
1655
|
+
}, G = (_) => {
|
|
1660
1656
|
H.current && !H.current.contains(_.target) && M(!1);
|
|
1661
1657
|
}, W = () => {
|
|
1662
1658
|
if (o) {
|
|
@@ -1687,7 +1683,7 @@ const $t = /* @__PURE__ */ sn(Gn), ir = B(
|
|
|
1687
1683
|
name: "oslologo",
|
|
1688
1684
|
className: "pkt-header__logo-svg",
|
|
1689
1685
|
"aria-hidden": "true",
|
|
1690
|
-
path: "https://punkt-cdn.oslo.kommune.no/9.
|
|
1686
|
+
path: "https://punkt-cdn.oslo.kommune.no/9.3/logos/"
|
|
1691
1687
|
}
|
|
1692
1688
|
) }) : /* @__PURE__ */ l(
|
|
1693
1689
|
"button",
|
|
@@ -1701,7 +1697,7 @@ const $t = /* @__PURE__ */ sn(Gn), ir = B(
|
|
|
1701
1697
|
name: "oslologo",
|
|
1702
1698
|
className: "pkt-header__logo-svg",
|
|
1703
1699
|
"aria-hidden": "true",
|
|
1704
|
-
path: "https://punkt-cdn.oslo.kommune.no/9.
|
|
1700
|
+
path: "https://punkt-cdn.oslo.kommune.no/9.3/logos/"
|
|
1705
1701
|
}
|
|
1706
1702
|
)
|
|
1707
1703
|
}
|
|
@@ -1817,14 +1813,14 @@ const $t = /* @__PURE__ */ sn(Gn), ir = B(
|
|
|
1817
1813
|
}
|
|
1818
1814
|
);
|
|
1819
1815
|
}
|
|
1820
|
-
),
|
|
1816
|
+
), nr = q.forwardRef(
|
|
1821
1817
|
({ label: e, id: n, children: r, ...o }, a) => /* @__PURE__ */ h("div", { className: "pkt-form-group", children: [
|
|
1822
1818
|
/* @__PURE__ */ l("label", { htmlFor: n, className: "pkt-form-label", children: e }),
|
|
1823
1819
|
/* @__PURE__ */ l("input", { className: "pkt-form-input", id: n, ...o, ref: a }),
|
|
1824
1820
|
r
|
|
1825
1821
|
] })
|
|
1826
1822
|
);
|
|
1827
|
-
|
|
1823
|
+
nr.displayName = "PktInput";
|
|
1828
1824
|
const Re = B(
|
|
1829
1825
|
({
|
|
1830
1826
|
forId: e,
|
|
@@ -1848,11 +1844,11 @@ const Re = B(
|
|
|
1848
1844
|
}, g) => {
|
|
1849
1845
|
const [j, F] = ue(!1), A = () => {
|
|
1850
1846
|
F(!j);
|
|
1851
|
-
}, U = () => i ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : f ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", M = i ? s : f ? p : "", H = v ? "pkt-inputwrapper--disabled" : "", Y = E ? "pkt-inputwrapper--inline" : "",
|
|
1847
|
+
}, U = () => i ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : f ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", M = i ? s : f ? p : "", H = v ? "pkt-inputwrapper--disabled" : "", Y = E ? "pkt-inputwrapper--inline" : "", G = c ? "pkt-inputwrapper--error" : "", W = !!o && o !== "", _ = a || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', D = C ? "fieldset" : W ? "div" : "label", J = C ? "legend" : W ? "h2" : "span", K = w || (r ? `${e}-helptext` : void 0);
|
|
1852
1848
|
return /* @__PURE__ */ h(
|
|
1853
1849
|
"div",
|
|
1854
1850
|
{
|
|
1855
|
-
className: ["pkt-inputwrapper", T, H, Y,
|
|
1851
|
+
className: ["pkt-inputwrapper", T, H, Y, G].join(
|
|
1856
1852
|
" "
|
|
1857
1853
|
),
|
|
1858
1854
|
ref: g,
|
|
@@ -1903,7 +1899,7 @@ const Re = B(
|
|
|
1903
1899
|
children: /* @__PURE__ */ l("span", { dangerouslySetInnerHTML: { __html: o } })
|
|
1904
1900
|
}
|
|
1905
1901
|
),
|
|
1906
|
-
/* @__PURE__ */ l("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby":
|
|
1902
|
+
/* @__PURE__ */ l("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": K, children: n })
|
|
1907
1903
|
] }),
|
|
1908
1904
|
/* @__PURE__ */ l(ee, { children: P })
|
|
1909
1905
|
]
|
|
@@ -1914,21 +1910,21 @@ const Re = B(
|
|
|
1914
1910
|
{
|
|
1915
1911
|
htmlFor: e,
|
|
1916
1912
|
className: "pkt-sr-only",
|
|
1917
|
-
"aria-describedby":
|
|
1913
|
+
"aria-describedby": K,
|
|
1918
1914
|
id: `${e}-label`,
|
|
1919
1915
|
children: n
|
|
1920
1916
|
}
|
|
1921
1917
|
),
|
|
1922
1918
|
P
|
|
1923
1919
|
] }),
|
|
1924
|
-
c && m && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
1920
|
+
c && m && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(_n, { skin: "error", "aria-live": "assertive", id: `${e}-error`, slim: !0, children: m }) })
|
|
1925
1921
|
]
|
|
1926
1922
|
}
|
|
1927
1923
|
);
|
|
1928
1924
|
}
|
|
1929
1925
|
);
|
|
1930
1926
|
Re.displayName = "PktInputWrapper";
|
|
1931
|
-
const
|
|
1927
|
+
const rr = B(
|
|
1932
1928
|
({
|
|
1933
1929
|
children: e,
|
|
1934
1930
|
className: n,
|
|
@@ -1961,8 +1957,8 @@ const Zn = B(
|
|
|
1961
1957
|
);
|
|
1962
1958
|
}
|
|
1963
1959
|
);
|
|
1964
|
-
|
|
1965
|
-
const
|
|
1960
|
+
rr.displayName = "PktLinkCard";
|
|
1961
|
+
const dr = ({
|
|
1966
1962
|
children: e,
|
|
1967
1963
|
skin: n = "beige",
|
|
1968
1964
|
title: r,
|
|
@@ -1974,7 +1970,7 @@ const sr = ({
|
|
|
1974
1970
|
r && /* @__PURE__ */ l("div", { className: "pkt-messagebox__title", children: r }),
|
|
1975
1971
|
/* @__PURE__ */ l("div", { className: "pkt-messagebox__text", children: e })
|
|
1976
1972
|
] });
|
|
1977
|
-
},
|
|
1973
|
+
}, ar = B(
|
|
1978
1974
|
({
|
|
1979
1975
|
id: e,
|
|
1980
1976
|
name: n,
|
|
@@ -2010,8 +2006,8 @@ const sr = ({
|
|
|
2010
2006
|
] }) });
|
|
2011
2007
|
}
|
|
2012
2008
|
);
|
|
2013
|
-
|
|
2014
|
-
const
|
|
2009
|
+
ar.displayName = "PktRadioButton";
|
|
2010
|
+
const mr = B(
|
|
2015
2011
|
({
|
|
2016
2012
|
ariaDescribedby: e,
|
|
2017
2013
|
ariaLabelledby: n,
|
|
@@ -2071,11 +2067,11 @@ const cr = B(
|
|
|
2071
2067
|
}
|
|
2072
2068
|
);
|
|
2073
2069
|
}
|
|
2074
|
-
),
|
|
2070
|
+
), lr = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ l("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ l(ee, { children: n }), hr = ({
|
|
2075
2071
|
isResponsive: e,
|
|
2076
2072
|
modifiers: { info: n = !1, success: r = !1, strong: o = !1, shadow: a = !1 } = {},
|
|
2077
2073
|
children: i
|
|
2078
|
-
}) => /* @__PURE__ */ l(
|
|
2074
|
+
}) => /* @__PURE__ */ l(lr, { isResponsive: e, children: /* @__PURE__ */ l(
|
|
2079
2075
|
"table",
|
|
2080
2076
|
{
|
|
2081
2077
|
className: $t("pkt-table", {
|
|
@@ -2086,7 +2082,7 @@ const cr = B(
|
|
|
2086
2082
|
}),
|
|
2087
2083
|
children: i
|
|
2088
2084
|
}
|
|
2089
|
-
) }),
|
|
2085
|
+
) }), kr = ({ children: e }) => /* @__PURE__ */ l("td", { className: "pkt-table__th", children: e }), vr = ({ children: e }) => /* @__PURE__ */ l("th", { className: "pkt-table__th", children: e }), or = B(({
|
|
2090
2086
|
children: e,
|
|
2091
2087
|
className: n,
|
|
2092
2088
|
skin: r = "blue",
|
|
@@ -2150,8 +2146,8 @@ const cr = B(
|
|
|
2150
2146
|
e
|
|
2151
2147
|
] }) : /* @__PURE__ */ l("span", { className: S, children: e });
|
|
2152
2148
|
});
|
|
2153
|
-
|
|
2154
|
-
const
|
|
2149
|
+
or.displayName = "PktTag";
|
|
2150
|
+
const _r = B(
|
|
2155
2151
|
({
|
|
2156
2152
|
id: e,
|
|
2157
2153
|
ariaDescribedby: n,
|
|
@@ -2179,7 +2175,7 @@ const dr = B(
|
|
|
2179
2175
|
onChange: M,
|
|
2180
2176
|
...H
|
|
2181
2177
|
}, Y) => {
|
|
2182
|
-
const
|
|
2178
|
+
const G = [i, "pkt-textinput", "pkt-textarea"].join(" "), W = r || `${e}-label`, _ = cn(null), [D, J] = ue(0), K = (Z) => {
|
|
2183
2179
|
var Q, oe;
|
|
2184
2180
|
if (o && J(((oe = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : oe.length) || 0), M)
|
|
2185
2181
|
return M(Z);
|
|
@@ -2191,7 +2187,7 @@ const dr = B(
|
|
|
2191
2187
|
Re,
|
|
2192
2188
|
{
|
|
2193
2189
|
ariaDescribedby: n,
|
|
2194
|
-
className:
|
|
2190
|
+
className: G,
|
|
2195
2191
|
disabled: s,
|
|
2196
2192
|
errorMessage: f,
|
|
2197
2193
|
forId: e,
|
|
@@ -2221,7 +2217,7 @@ const dr = B(
|
|
|
2221
2217
|
"aria-invalid": p,
|
|
2222
2218
|
"aria-errormessage": `${e}-error`,
|
|
2223
2219
|
...H,
|
|
2224
|
-
onChange:
|
|
2220
|
+
onChange: K
|
|
2225
2221
|
}
|
|
2226
2222
|
),
|
|
2227
2223
|
o && /* @__PURE__ */ h("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
|
|
@@ -2232,7 +2228,7 @@ const dr = B(
|
|
|
2232
2228
|
}
|
|
2233
2229
|
);
|
|
2234
2230
|
}
|
|
2235
|
-
),
|
|
2231
|
+
), br = B(
|
|
2236
2232
|
({
|
|
2237
2233
|
id: e,
|
|
2238
2234
|
ariaDescribedby: n,
|
|
@@ -2260,7 +2256,7 @@ const dr = B(
|
|
|
2260
2256
|
type: M = "text",
|
|
2261
2257
|
useWrapper: H = !0,
|
|
2262
2258
|
value: Y,
|
|
2263
|
-
...
|
|
2259
|
+
...G
|
|
2264
2260
|
}, W) => {
|
|
2265
2261
|
const _ = [a, "pkt-textinput"].join(" "), D = r || `${e}-label`;
|
|
2266
2262
|
return /* @__PURE__ */ l(
|
|
@@ -2299,7 +2295,7 @@ const dr = B(
|
|
|
2299
2295
|
"aria-invalid": f,
|
|
2300
2296
|
"aria-errormessage": `${e}-error`,
|
|
2301
2297
|
"aria-labelledby": D,
|
|
2302
|
-
...
|
|
2298
|
+
...G
|
|
2303
2299
|
}
|
|
2304
2300
|
),
|
|
2305
2301
|
U && /* @__PURE__ */ h("p", { className: "pkt-input-suffix", children: [
|
|
@@ -2313,25 +2309,26 @@ const dr = B(
|
|
|
2313
2309
|
}
|
|
2314
2310
|
);
|
|
2315
2311
|
export {
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2312
|
+
_n as PktAlert,
|
|
2313
|
+
sr as PktBackLink,
|
|
2314
|
+
cr as PktBreadcrumbs,
|
|
2319
2315
|
ye as PktButton,
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2316
|
+
er as PktCheckbox,
|
|
2317
|
+
ur as PktFooter,
|
|
2318
|
+
pr as PktFooterSimple,
|
|
2319
|
+
fr as PktHeader,
|
|
2324
2320
|
y as PktIcon,
|
|
2325
|
-
|
|
2321
|
+
vn as PktIconContext,
|
|
2322
|
+
nr as PktInput,
|
|
2326
2323
|
Re as PktInputWrapper,
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2324
|
+
rr as PktLinkCard,
|
|
2325
|
+
dr as PktMessagebox,
|
|
2326
|
+
ar as PktRadioButton,
|
|
2327
|
+
mr as PktSelect,
|
|
2328
|
+
hr as PktTable,
|
|
2329
|
+
kr as PktTableData,
|
|
2330
|
+
vr as PktTableHeader,
|
|
2331
|
+
or as PktTag,
|
|
2332
|
+
_r as PktTextarea,
|
|
2333
|
+
br as PktTextinput
|
|
2337
2334
|
};
|