@kakadu/components 2.4.3 → 3.0.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/build/hooks/use-fetch.d.ts +6 -1
- package/build/hooks/use-fetch.js +1 -1
- package/build/hooks/use-fetch.mjs +89 -71
- package/build/index.js +1 -1
- package/build/index.mjs +29 -28
- package/package.json +1 -1
|
@@ -11,7 +11,12 @@ export declare function useJsonFetcher<Type = unknown>(handler?: (json: unknown)
|
|
|
11
11
|
response: Type | undefined;
|
|
12
12
|
error: Error | undefined;
|
|
13
13
|
};
|
|
14
|
-
export default function useFetch<Type>(url?: string, options?: RequestInit): {
|
|
14
|
+
export default function useFetch<Type>(url?: string, options?: RequestInit, handler?: (response: Response) => PromiseOrValue<Type | undefined>): {
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
response: Type | undefined;
|
|
17
|
+
error: Error | undefined;
|
|
18
|
+
};
|
|
19
|
+
export declare function useJsonFetch<Type = unknown>(url?: string, options?: RequestInit, handler?: (json: unknown) => PromiseOrValue<Type | undefined>): {
|
|
15
20
|
isLoading: boolean;
|
|
16
21
|
response: Type | undefined;
|
|
17
22
|
error: Error | undefined;
|
package/build/hooks/use-fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),m=new Map,E=new Map,S=new Map;function F(e,s){let t=S.get(e);return t||(t=new Set,S.set(e,t)),t.add(s),()=>{t==null||t.delete(s),t&&t.size===0&&S.delete(e)}}function y(e,s){E.set(e,{timestamp:Date.now(),response:s});const t=S.get(e);if(t)for(const c of t)c(s)}function M(e){const[s,t]=o.useState(!1),[c,i]=o.useState(),[n,f]=o.useState(),v=o.useCallback(async(l,g)=>{try{f(void 0),t(!0);const a=await fetch(l,g),d=e?await e(a):a;return i(d),d}catch(a){const d=a instanceof Error?a:new Error("Unknown error");throw f(d),d}finally{t(!1)}},[e]);return o.useMemo(()=>({isLoading:s,fetch:v,response:c,error:n}),[s,v,c,n])}function j(e){const s=o.useCallback(async t=>{const c=await t.json();return e?e(c):c},[e]);return M(s)}function b(e,s,t){const[c,i]=o.useState(()=>!!e),n=o.useMemo(()=>e?JSON.stringify({url:e,options:s}):"",[e,s]),f=o.useCallback(()=>{var r;return n?(r=E.get(n))==null?void 0:r.response:void 0},[n]),[v,l]=o.useState(()=>f()),[g,a]=o.useState(),d=o.useMemo(()=>{var r;return((r=s==null?void 0:s.method)==null?void 0:r.toUpperCase())??"GET"},[s]);return o.useEffect(()=>{if(!e||!n){l(void 0);return}const r=f();r===void 0?(l(void 0),a(void 0)):(l(r),a(void 0));const h=F(n,w=>{l(w),a(void 0)});return()=>{h()}},[e,n,f]),o.useEffect(()=>{if(!e||!n){i(!1);return}const r=d==="GET";if(r&&f()!==void 0){i(!1);return}let h=!0;a(void 0),i(!0);let w=r&&m.has(n)?m.get(n):void 0;if(!w){const u=fetch(e,s);m.set(n,u),u.then(()=>{m.delete(n)}),w=u}return w.then(async u=>{if(h){const C=t?await t(u):u;r&&y(n,C),l(C),a(void 0)}}).catch(u=>{h&&a(u)}).finally(()=>{h&&i(!1)}),()=>{h=!1}},[e,s,t,n,d,f]),o.useMemo(()=>({isLoading:c,response:v,error:g}),[c,v,g])}function p(e,s,t){const c=o.useCallback(async i=>{const n=await i.json();return t?t(n):n},[t]);return b(e,s,c)}exports.default=b;exports.useFetcher=M;exports.useJsonFetch=p;exports.useJsonFetcher=j;
|
|
@@ -1,110 +1,128 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
let t =
|
|
5
|
-
return t || (t = /* @__PURE__ */ new Set(),
|
|
6
|
-
t == null || t.delete(n), t && t.size === 0 &&
|
|
1
|
+
import { useState as v, useMemo as E, useCallback as y, useEffect as F } from "react";
|
|
2
|
+
const m = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
|
|
3
|
+
function L(e, n) {
|
|
4
|
+
let t = p.get(e);
|
|
5
|
+
return t || (t = /* @__PURE__ */ new Set(), p.set(e, t)), t.add(n), () => {
|
|
6
|
+
t == null || t.delete(n), t && t.size === 0 && p.delete(e);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
const t =
|
|
9
|
+
function M(e, n) {
|
|
10
|
+
j.set(e, { timestamp: Date.now(), response: n });
|
|
11
|
+
const t = p.get(e);
|
|
12
12
|
if (t)
|
|
13
|
-
for (const
|
|
14
|
-
|
|
13
|
+
for (const o of t)
|
|
14
|
+
o(n);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
const [n, t] =
|
|
18
|
-
async (
|
|
16
|
+
function b(e) {
|
|
17
|
+
const [n, t] = v(!1), [o, i] = v(), [s, f] = v(), w = y(
|
|
18
|
+
async (d, l) => {
|
|
19
19
|
try {
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
} catch (
|
|
24
|
-
const
|
|
25
|
-
throw
|
|
20
|
+
f(void 0), t(!0);
|
|
21
|
+
const c = await fetch(d, l), u = e ? await e(c) : c;
|
|
22
|
+
return i(u), u;
|
|
23
|
+
} catch (c) {
|
|
24
|
+
const u = c instanceof Error ? c : new Error("Unknown error");
|
|
25
|
+
throw f(u), u;
|
|
26
26
|
} finally {
|
|
27
27
|
t(!1);
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
[e]
|
|
31
31
|
);
|
|
32
|
-
return
|
|
33
|
-
() => ({ isLoading: n, fetch:
|
|
34
|
-
[n,
|
|
32
|
+
return E(
|
|
33
|
+
() => ({ isLoading: n, fetch: w, response: o, error: s }),
|
|
34
|
+
[n, w, o, s]
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
function J(e) {
|
|
38
|
+
const n = y(
|
|
39
|
+
async (t) => {
|
|
40
|
+
const o = await t.json();
|
|
41
|
+
return e ? e(o) : o;
|
|
42
|
+
},
|
|
43
|
+
[e]
|
|
44
|
+
);
|
|
45
|
+
return b(n);
|
|
42
46
|
}
|
|
43
|
-
function
|
|
44
|
-
const [
|
|
47
|
+
function q(e, n, t) {
|
|
48
|
+
const [o, i] = v(() => !!e), s = E(
|
|
45
49
|
() => e ? JSON.stringify({ url: e, options: n }) : "",
|
|
46
50
|
[e, n]
|
|
47
|
-
),
|
|
51
|
+
), f = y(
|
|
48
52
|
() => {
|
|
49
|
-
var
|
|
50
|
-
return
|
|
53
|
+
var r;
|
|
54
|
+
return s ? (r = j.get(s)) == null ? void 0 : r.response : void 0;
|
|
51
55
|
},
|
|
52
|
-
[
|
|
53
|
-
), [
|
|
56
|
+
[s]
|
|
57
|
+
), [w, d] = v(() => f()), [l, c] = v(), u = E(
|
|
54
58
|
() => {
|
|
55
|
-
var
|
|
56
|
-
return ((
|
|
59
|
+
var r;
|
|
60
|
+
return ((r = n == null ? void 0 : n.method) == null ? void 0 : r.toUpperCase()) ?? "GET";
|
|
57
61
|
},
|
|
58
62
|
[n]
|
|
59
63
|
);
|
|
60
|
-
return
|
|
61
|
-
if (!e || !
|
|
62
|
-
|
|
64
|
+
return F(() => {
|
|
65
|
+
if (!e || !s) {
|
|
66
|
+
d(void 0);
|
|
63
67
|
return;
|
|
64
68
|
}
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
+
const r = f();
|
|
70
|
+
r === void 0 ? (d(void 0), c(void 0)) : (d(r), c(void 0));
|
|
71
|
+
const h = L(s, (g) => {
|
|
72
|
+
d(g), c(void 0);
|
|
69
73
|
});
|
|
70
74
|
return () => {
|
|
71
|
-
|
|
75
|
+
h();
|
|
72
76
|
};
|
|
73
|
-
}, [e,
|
|
74
|
-
if (!e || !
|
|
75
|
-
|
|
77
|
+
}, [e, s, f]), F(() => {
|
|
78
|
+
if (!e || !s) {
|
|
79
|
+
i(!1);
|
|
76
80
|
return;
|
|
77
81
|
}
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
|
|
82
|
+
const r = u === "GET";
|
|
83
|
+
if (r && f() !== void 0) {
|
|
84
|
+
i(!1);
|
|
81
85
|
return;
|
|
82
86
|
}
|
|
83
|
-
let
|
|
84
|
-
|
|
85
|
-
let
|
|
86
|
-
if (!
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}),
|
|
87
|
+
let h = !0;
|
|
88
|
+
c(void 0), i(!0);
|
|
89
|
+
let g = r && m.has(s) ? m.get(s) : void 0;
|
|
90
|
+
if (!g) {
|
|
91
|
+
const a = fetch(e, n);
|
|
92
|
+
m.set(s, a), a.then(() => {
|
|
93
|
+
m.delete(s);
|
|
94
|
+
}), g = a;
|
|
91
95
|
}
|
|
92
|
-
return
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
return g.then(async (a) => {
|
|
97
|
+
if (h) {
|
|
98
|
+
const C = t ? await t(a) : a;
|
|
99
|
+
r && M(s, C), d(C), c(void 0);
|
|
100
|
+
}
|
|
101
|
+
}).catch((a) => {
|
|
102
|
+
h && c(a);
|
|
96
103
|
}).finally(() => {
|
|
97
|
-
|
|
104
|
+
h && i(!1);
|
|
98
105
|
}), () => {
|
|
99
|
-
|
|
106
|
+
h = !1;
|
|
100
107
|
};
|
|
101
|
-
}, [e, n,
|
|
102
|
-
() => ({ isLoading:
|
|
103
|
-
[
|
|
108
|
+
}, [e, n, t, s, u, f]), E(
|
|
109
|
+
() => ({ isLoading: o, response: w, error: l }),
|
|
110
|
+
[o, w, l]
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
function R(e, n, t) {
|
|
114
|
+
const o = y(
|
|
115
|
+
async (i) => {
|
|
116
|
+
const s = await i.json();
|
|
117
|
+
return t ? t(s) : s;
|
|
118
|
+
},
|
|
119
|
+
[t]
|
|
104
120
|
);
|
|
121
|
+
return q(e, n, o);
|
|
105
122
|
}
|
|
106
123
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
124
|
+
q as default,
|
|
125
|
+
b as useFetcher,
|
|
126
|
+
R as useJsonFetch,
|
|
127
|
+
J as useJsonFetcher
|
|
110
128
|
};
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./theme.js"),f=require("./components/aria-text.js"),g=require("./components/atom.js"),B=require("./components/bankid-logo.js"),C=require("./components/box.js"),t=require("./components/button.js"),S=require("./components/button-tooltip.js"),x=require("./components/card.js"),P=require("./components/click-ripples.js"),w=require("./components/collapsible.js"),I=require("./components/copy-icon-button.js"),G=require("./components/datum.js"),M=require("./components/dnb-logo.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./theme.js"),f=require("./components/aria-text.js"),g=require("./components/atom.js"),B=require("./components/bankid-logo.js"),C=require("./components/box.js"),t=require("./components/button.js"),S=require("./components/button-tooltip.js"),x=require("./components/card.js"),P=require("./components/click-ripples.js"),w=require("./components/collapsible.js"),I=require("./components/copy-icon-button.js"),G=require("./components/datum.js"),M=require("./components/dnb-logo.js"),F=require("./components/dot.js"),m=require("./components/flex.js"),q=require("./components/footer.js"),R=require("./components/gauge.js"),A=require("./components/gjensidige-logo.js"),D=require("./components/header.js"),_=require("./components/hover-gradient.js"),v=require("./components/icon-button.js"),s=require("./components/input.js"),K=require("./components/kakadu-guide-icon.js"),c=require("./components/kakadu-guide-logo.js"),V=require("./components/kakadu-index-logo.js"),H=require("./components/kakadu-academy-logo.js"),N=require("./components/kakadu-logo.js"),i=require("./components/modal.js"),U=require("./components/moving-gradients.js"),E=require("./components/moving-stars.js"),l=require("./components/notice.js"),d=require("./components/notification.js"),h=require("./components/popover-menu.js"),r=require("./components/popover.js"),y=require("./components/revealer.js"),a=require("./components/separator.js"),k=require("./components/skeleton.js"),W=require("./components/sparebank1-logo.js"),L=require("./components/spinner.js"),J=require("./components/sto-logo.js"),j=require("./components/storebrand-logo.js"),o=require("./components/text.js"),T=require("./components/text-button.js"),n=require("./components/theme-setter.js"),Q=require("./components/veil.js"),b=require("./components/wrapper.js"),p=require("./icons/icon.js"),O=require("./icons/kakadu-guide-icon.js"),z=require("./icons/kakadu-guide-glyph.js"),X=require("./icons/dots.js"),Y=require("./icons/menu.js"),Z=require("./icons/check.js"),$=require("./icons/plus.js"),ee=require("./icons/times.js"),oe=require("./icons/chevron-up.js"),te=require("./icons/chevron-right.js"),ne=require("./icons/chevron-down.js"),re=require("./icons/chevron-left.js"),ae=require("./icons/caret-up.js"),ue=require("./icons/caret-right.js"),se=require("./icons/caret-down.js"),ce=require("./icons/caret-left.js"),ie=require("./icons/arrow-up.js"),le=require("./icons/arrow-right.js"),de=require("./icons/arrow-down.js"),pe=require("./icons/arrow-left.js"),fe=require("./icons/anchor-up.js"),ge=require("./icons/anchor-down.js"),Se=require("./icons/trend-up.js"),me=require("./icons/edit.js"),qe=require("./icons/cog.js"),_e=require("./icons/copy.js"),ve=require("./icons/select.js"),he=require("./icons/test.js"),ye=require("./icons/share.js"),ke=require("./icons/external.js"),Le=require("./icons/exclamation-triangle.js"),Te=require("./icons/sparkle.js"),be=require("./icons/trash.js"),Be=require("./icons/chrome-browser-logo.js"),Ce=require("./icons/edge-browser-logo.js"),xe=require("./hooks/use-media-query.js"),u=require("./hooks/use-fetch.js"),Pe=require("./utilities/copy-to-clipboard.js"),we=require("./utilities/generate-random-id.js"),Ie=require("./utilities/scale.js");exports.FontFamilyHead=e.FontFamilyHead;exports.buttonResetStyles=e.buttonResetStyles;exports.darkBackgroundColor=e.darkBackgroundColor;exports.effectStyles=e.effectStyles;exports.font=e.font;exports.lightBackgroundColor=e.lightBackgroundColor;exports.nonInteractiveEffectStyles=e.nonInteractiveEffectStyles;exports.overflowProtectionStyles=e.overflowProtectionStyles;exports.theme=e.default;exports.AriaText=f.default;exports.ariaTextStyles=f.ariaTextStyles;exports.Atom=g.default;exports.defaultAtomElementType=g.defaultAtomElementType;exports.BankidLogo=B.default;exports.Box=C.default;exports.Button=t.default;exports.ButtonLoader=t.ButtonLoader;exports.ButtonVariant=t.ButtonVariant;exports.buttonDangerStyles=t.buttonDangerStyles;exports.buttonSecondaryStyles=t.buttonSecondaryStyles;exports.buttonSuccessStyles=t.buttonSuccessStyles;exports.buttonWarningStyles=t.buttonWarningStyles;exports.ButtonTooltip=S.default;exports.ButtonTooltipPosition=S.ButtonTooltipPosition;exports.Card=x.default;exports.ClickRipples=P.default;exports.Collapsible=w.default;exports.CopyIconButton=I.default;exports.Datum=G.default;exports.DnbLogo=M.default;exports.Dot=F.default;exports.Flex=m.default;exports.FlexAlignment=m.FlexAlignment;exports.Footer=q.default;exports.FooterLinkItem=q.FooterLinkItem;exports.Gauge=R.default;exports.GjensidigeLogo=A.default;exports.Header=D.default;exports.HoverGradient=_.default;exports.normalBlendStyles=_.normalBlendStyles;exports.IconButton=v.default;exports.IconButtonVariant=v.IconButtonVariant;exports.Input=s.default;exports.Select=s.Select;exports.errorParagraph=s.errorParagraph;exports.KakaduGuideIcon=K.default;exports.KakaduGuideLogo=c.default;exports.KakaduGuideLogoSvg=c.KakaduGuideLogoSvg;exports.KakaduGuideLogoVariant=c.KakaduGuideLogoVariant;exports.KakaduIndexLogo=V.default;exports.KakaduAcademyLogo=H.default;exports.KakaduLogo=N.default;exports.Modal=i.default;exports.useModal=i.useModal;exports.useModalContext=i.useModalContext;exports.MovingGradients=U.default;exports.MovingStars=E.default;exports.Notice=l.default;exports.NoticeType=l.NoticeType;exports.NotificationType=l.NoticeType;exports.Notification=d.default;exports.NotificationProvider=d.NotificationProvider;exports.useCreateNotification=d.useCreateNotification;exports.PopoverMenu=h.default;exports.usePopoverMenu=h.usePopoverMenu;exports.Popover=r.default;exports.PopoverContainer=r.PopoverContainer;exports.usePopover=r.usePopover;exports.usePopoverContext=r.usePopoverContext;exports.Revealer=y.default;exports.useRevealer=y.useRevealer;exports.Separator=a.default;exports.SeparatorLabel=a.SeparatorLabel;exports.SmallSeparator=a.SmallSeparator;exports.VerticalSeparator=a.VerticalSeparator;exports.Skeleton=k.default;exports.SkeletonInstance=k.SkeletonInstance;exports.Sparebank1Logo=W.default;exports.RevealSpinner=L.RevealSpinner;exports.Spinner=L.default;exports.StoLogo=J.default;exports.StorebrandLogo=j.default;exports.AnchorHeading=o.AnchorHeading;exports.Heading=o.Heading;exports.Hero=o.Hero;exports.Label=o.Label;exports.Paragraph=o.Paragraph;exports.Span=o.Span;exports.Text=o.default;exports.spanStyles=o.spanStyles;exports.textShadowStyles=o.textShadowStyles;exports.TextButton=T.default;exports.TextButtonVariant=T.TextButtonVariant;exports.ThemeSetter=n.default;exports.getThemePreference=n.getThemePreference;exports.setThemePreference=n.setThemePreference;exports.themePreferences=n.themePreferences;exports.useIsDarkMode=n.useIsDarkMode;exports.useIsLightMode=n.useIsLightMode;exports.useTheme=n.useTheme;exports.Veil=Q.default;exports.Wrapper=b.default;exports.WrapperWidth=b.WrapperWidth;exports.Icon=p.default;exports.IconType=p.IconType;exports.iconShadowStyles=p.iconShadowStyles;exports.KakaduGuideIconSvg=O.default;exports.KakaduGuideGlyphSvg=z.default;exports.DotsSvg=X.default;exports.MenuSvg=Y.default;exports.CheckSvg=Z.default;exports.PlusSvg=$.default;exports.TimesSvg=ee.default;exports.ChevronUpSvg=oe.default;exports.ChevronRightSvg=te.default;exports.ChevronDownSvg=ne.default;exports.ChevronLeftSvg=re.default;exports.CaretUpSvg=ae.default;exports.CaretRightSvg=ue.default;exports.CaretDownSvg=se.default;exports.CaretLeftSvg=ce.default;exports.ArrowUpSvg=ie.default;exports.ArrowRightSvg=le.default;exports.ArrowDownSvg=de.default;exports.ArrowLeftSvg=pe.default;exports.AnchorUpSvg=fe.default;exports.AnchorDownSvg=ge.default;exports.TrendUpSvg=Se.default;exports.EditSvg=me.default;exports.CogSvg=qe.default;exports.CopySvg=_e.default;exports.SelectSvg=ve.default;exports.TestSvg=he.default;exports.ShareSvg=ye.default;exports.ExternalSvg=ke.default;exports.ExclamationTriangleSvg=Le.default;exports.SparkleSvg=Te.default;exports.TrashSvg=be.default;exports.ChromeBrowserLogoSvg=Be.default;exports.EdgeBrowserLogoSvg=Ce.default;exports.useMediaQuery=xe.default;exports.useFetch=u.default;exports.useFetcher=u.useFetcher;exports.useJsonFetch=u.useJsonFetch;exports.useJsonFetcher=u.useJsonFetcher;exports.copyToClipboard=Pe.default;exports.generateRandomId=we.default;exports.scale=Ie.default;
|
package/build/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FontFamilyHead as t, buttonResetStyles as a, darkBackgroundColor as r, effectStyles as f, font as
|
|
1
|
+
import { FontFamilyHead as t, buttonResetStyles as a, darkBackgroundColor as r, effectStyles as f, font as u, lightBackgroundColor as l, nonInteractiveEffectStyles as s, overflowProtectionStyles as d, default as p } from "./theme.mjs";
|
|
2
2
|
import { default as n, ariaTextStyles as x } from "./components/aria-text.mjs";
|
|
3
3
|
import { default as S, defaultAtomElementType as i } from "./components/atom.mjs";
|
|
4
4
|
import { default as c } from "./components/bankid-logo.mjs";
|
|
@@ -10,14 +10,14 @@ import { default as K } from "./components/click-ripples.mjs";
|
|
|
10
10
|
import { default as N } from "./components/collapsible.mjs";
|
|
11
11
|
import { default as H } from "./components/copy-icon-button.mjs";
|
|
12
12
|
import { default as U } from "./components/datum.mjs";
|
|
13
|
-
import { default as
|
|
13
|
+
import { default as J } from "./components/dnb-logo.mjs";
|
|
14
14
|
import { default as Q } from "./components/dot.mjs";
|
|
15
15
|
import { default as z, FlexAlignment as O } from "./components/flex.mjs";
|
|
16
16
|
import { default as Y, FooterLinkItem as Z } from "./components/footer.mjs";
|
|
17
17
|
import { default as $ } from "./components/gauge.mjs";
|
|
18
18
|
import { default as oe } from "./components/gjensidige-logo.mjs";
|
|
19
19
|
import { default as ae } from "./components/header.mjs";
|
|
20
|
-
import { default as fe, normalBlendStyles as
|
|
20
|
+
import { default as fe, normalBlendStyles as ue } from "./components/hover-gradient.mjs";
|
|
21
21
|
import { default as se, IconButtonVariant as de } from "./components/icon-button.mjs";
|
|
22
22
|
import { default as me, Select as ne, errorParagraph as xe } from "./components/input.mjs";
|
|
23
23
|
import { default as Se } from "./components/kakadu-guide-icon.mjs";
|
|
@@ -30,11 +30,11 @@ import { default as Ge } from "./components/moving-gradients.mjs";
|
|
|
30
30
|
import { default as De } from "./components/moving-stars.mjs";
|
|
31
31
|
import { default as Ke, NoticeType as Re, NoticeType as Ne } from "./components/notice.mjs";
|
|
32
32
|
import { default as He, NotificationProvider as Ve, useCreateNotification as Ue } from "./components/notification.mjs";
|
|
33
|
-
import { default as
|
|
33
|
+
import { default as Je, usePopoverMenu as je } from "./components/popover-menu.mjs";
|
|
34
34
|
import { default as qe, PopoverContainer as ze, usePopover as Oe, usePopoverContext as Xe } from "./components/popover.mjs";
|
|
35
35
|
import { default as Ze, useRevealer as _e } from "./components/revealer.mjs";
|
|
36
36
|
import { default as eo, SeparatorLabel as oo, SmallSeparator as to, VerticalSeparator as ao } from "./components/separator.mjs";
|
|
37
|
-
import { default as fo, SkeletonInstance as
|
|
37
|
+
import { default as fo, SkeletonInstance as uo } from "./components/skeleton.mjs";
|
|
38
38
|
import { default as so } from "./components/sparebank1-logo.mjs";
|
|
39
39
|
import { RevealSpinner as mo, default as no } from "./components/spinner.mjs";
|
|
40
40
|
import { default as go } from "./components/sto-logo.mjs";
|
|
@@ -44,14 +44,14 @@ import { default as wo, TextButtonVariant as bo } from "./components/text-button
|
|
|
44
44
|
import { default as Go, getThemePreference as Mo, setThemePreference as Do, themePreferences as Fo, useIsDarkMode as Ko, useIsLightMode as Ro, useTheme as No } from "./components/theme-setter.mjs";
|
|
45
45
|
import { default as Ho } from "./components/veil.mjs";
|
|
46
46
|
import { default as Uo, WrapperWidth as Wo } from "./components/wrapper.mjs";
|
|
47
|
-
import { default as
|
|
47
|
+
import { default as jo, IconType as Qo, iconShadowStyles as qo } from "./icons/icon.mjs";
|
|
48
48
|
import { default as Oo } from "./icons/kakadu-guide-icon.mjs";
|
|
49
49
|
import { default as Yo } from "./icons/kakadu-guide-glyph.mjs";
|
|
50
50
|
import { default as _o } from "./icons/dots.mjs";
|
|
51
51
|
import { default as et } from "./icons/menu.mjs";
|
|
52
52
|
import { default as tt } from "./icons/check.mjs";
|
|
53
53
|
import { default as rt } from "./icons/plus.mjs";
|
|
54
|
-
import { default as
|
|
54
|
+
import { default as ut } from "./icons/times.mjs";
|
|
55
55
|
import { default as st } from "./icons/chevron-up.mjs";
|
|
56
56
|
import { default as pt } from "./icons/chevron-right.mjs";
|
|
57
57
|
import { default as nt } from "./icons/chevron-down.mjs";
|
|
@@ -70,7 +70,7 @@ import { default as Rt } from "./icons/trend-up.mjs";
|
|
|
70
70
|
import { default as Et } from "./icons/edit.mjs";
|
|
71
71
|
import { default as Vt } from "./icons/cog.mjs";
|
|
72
72
|
import { default as Wt } from "./icons/copy.mjs";
|
|
73
|
-
import { default as
|
|
73
|
+
import { default as jt } from "./icons/select.mjs";
|
|
74
74
|
import { default as qt } from "./icons/test.mjs";
|
|
75
75
|
import { default as Ot } from "./icons/share.mjs";
|
|
76
76
|
import { default as Yt } from "./icons/external.mjs";
|
|
@@ -78,12 +78,12 @@ import { default as _t } from "./icons/exclamation-triangle.mjs";
|
|
|
78
78
|
import { default as ea } from "./icons/sparkle.mjs";
|
|
79
79
|
import { default as ta } from "./icons/trash.mjs";
|
|
80
80
|
import { default as ra } from "./icons/chrome-browser-logo.mjs";
|
|
81
|
-
import { default as
|
|
81
|
+
import { default as ua } from "./icons/edge-browser-logo.mjs";
|
|
82
82
|
import { default as sa } from "./hooks/use-media-query.mjs";
|
|
83
|
-
import { default as pa, useFetcher as ma,
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
83
|
+
import { default as pa, useFetcher as ma, useJsonFetch as na, useJsonFetcher as xa } from "./hooks/use-fetch.mjs";
|
|
84
|
+
import { default as Sa } from "./utilities/copy-to-clipboard.mjs";
|
|
85
|
+
import { default as va } from "./utilities/generate-random-id.mjs";
|
|
86
|
+
import { default as ha } from "./utilities/scale.mjs";
|
|
87
87
|
export {
|
|
88
88
|
Ft as AnchorDownSvg,
|
|
89
89
|
co as AnchorHeading,
|
|
@@ -118,10 +118,10 @@ export {
|
|
|
118
118
|
H as CopyIconButton,
|
|
119
119
|
Wt as CopySvg,
|
|
120
120
|
U as Datum,
|
|
121
|
-
|
|
121
|
+
J as DnbLogo,
|
|
122
122
|
Q as Dot,
|
|
123
123
|
_o as DotsSvg,
|
|
124
|
-
|
|
124
|
+
ua as EdgeBrowserLogoSvg,
|
|
125
125
|
Et as EditSvg,
|
|
126
126
|
_t as ExclamationTriangleSvg,
|
|
127
127
|
Yt as ExternalSvg,
|
|
@@ -136,7 +136,7 @@ export {
|
|
|
136
136
|
ho as Heading,
|
|
137
137
|
yo as Hero,
|
|
138
138
|
fe as HoverGradient,
|
|
139
|
-
|
|
139
|
+
jo as Icon,
|
|
140
140
|
se as IconButton,
|
|
141
141
|
de as IconButtonVariant,
|
|
142
142
|
Qo as IconType,
|
|
@@ -164,16 +164,16 @@ export {
|
|
|
164
164
|
rt as PlusSvg,
|
|
165
165
|
qe as Popover,
|
|
166
166
|
ze as PopoverContainer,
|
|
167
|
-
|
|
167
|
+
Je as PopoverMenu,
|
|
168
168
|
mo as RevealSpinner,
|
|
169
169
|
Ze as Revealer,
|
|
170
170
|
ne as Select,
|
|
171
|
-
|
|
171
|
+
jt as SelectSvg,
|
|
172
172
|
eo as Separator,
|
|
173
173
|
oo as SeparatorLabel,
|
|
174
174
|
Ot as ShareSvg,
|
|
175
175
|
fo as Skeleton,
|
|
176
|
-
|
|
176
|
+
uo as SkeletonInstance,
|
|
177
177
|
to as SmallSeparator,
|
|
178
178
|
To as Span,
|
|
179
179
|
so as Sparebank1Logo,
|
|
@@ -186,7 +186,7 @@ export {
|
|
|
186
186
|
wo as TextButton,
|
|
187
187
|
bo as TextButtonVariant,
|
|
188
188
|
Go as ThemeSetter,
|
|
189
|
-
|
|
189
|
+
ut as TimesSvg,
|
|
190
190
|
ta as TrashSvg,
|
|
191
191
|
Rt as TrendUpSvg,
|
|
192
192
|
Ho as Veil,
|
|
@@ -199,20 +199,20 @@ export {
|
|
|
199
199
|
I as buttonSecondaryStyles,
|
|
200
200
|
P as buttonSuccessStyles,
|
|
201
201
|
w as buttonWarningStyles,
|
|
202
|
-
|
|
202
|
+
Sa as copyToClipboard,
|
|
203
203
|
r as darkBackgroundColor,
|
|
204
204
|
i as defaultAtomElementType,
|
|
205
205
|
f as effectStyles,
|
|
206
206
|
xe as errorParagraph,
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
u as font,
|
|
208
|
+
va as generateRandomId,
|
|
209
209
|
Mo as getThemePreference,
|
|
210
210
|
qo as iconShadowStyles,
|
|
211
|
-
|
|
211
|
+
l as lightBackgroundColor,
|
|
212
212
|
s as nonInteractiveEffectStyles,
|
|
213
|
-
|
|
213
|
+
ue as normalBlendStyles,
|
|
214
214
|
d as overflowProtectionStyles,
|
|
215
|
-
|
|
215
|
+
ha as scale,
|
|
216
216
|
Do as setThemePreference,
|
|
217
217
|
Bo as spanStyles,
|
|
218
218
|
Io as textShadowStyles,
|
|
@@ -223,13 +223,14 @@ export {
|
|
|
223
223
|
ma as useFetcher,
|
|
224
224
|
Ko as useIsDarkMode,
|
|
225
225
|
Ro as useIsLightMode,
|
|
226
|
-
na as
|
|
226
|
+
na as useJsonFetch,
|
|
227
|
+
xa as useJsonFetcher,
|
|
227
228
|
sa as useMediaQuery,
|
|
228
229
|
we as useModal,
|
|
229
230
|
be as useModalContext,
|
|
230
231
|
Oe as usePopover,
|
|
231
232
|
Xe as usePopoverContext,
|
|
232
|
-
|
|
233
|
+
je as usePopoverMenu,
|
|
233
234
|
_e as useRevealer,
|
|
234
235
|
No as useTheme
|
|
235
236
|
};
|