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