@kakadu/components 3.15.5 → 4.0.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/components/button-tooltip.d.ts +2 -4
- package/build/components/button-tooltip.js +1 -1
- package/build/components/button-tooltip.mjs +11 -11
- package/build/components/button.d.ts +2 -6
- package/build/components/button.js +1 -1
- package/build/components/button.mjs +51 -51
- package/build/components/card.js +1 -1
- package/build/components/card.mjs +22 -22
- package/build/components/combobox.d.ts +25 -0
- package/build/components/combobox.js +1 -0
- package/build/components/combobox.mjs +322 -0
- package/build/components/copy-icon-button.js +1 -1
- package/build/components/copy-icon-button.mjs +20 -21
- package/build/components/datum.js +1 -1
- package/build/components/datum.mjs +12 -12
- package/build/components/flex.d.ts +13 -9
- package/build/components/flex.js +1 -1
- package/build/components/flex.mjs +25 -15
- package/build/components/footer.d.ts +3 -6
- package/build/components/footer.js +1 -1
- package/build/components/footer.mjs +33 -33
- package/build/components/header.js +1 -1
- package/build/components/header.mjs +4 -5
- package/build/components/icon-button.d.ts +2 -6
- package/build/components/icon-button.js +1 -1
- package/build/components/icon-button.mjs +41 -41
- package/build/components/input.d.ts +12 -19
- package/build/components/input.js +2 -2
- package/build/components/input.mjs +122 -147
- package/build/components/kakadu-guide-logo.d.ts +2 -4
- package/build/components/kakadu-guide-logo.js +1 -1
- package/build/components/kakadu-guide-logo.mjs +13 -13
- package/build/components/modal.js +1 -1
- package/build/components/modal.mjs +65 -66
- package/build/components/notice.d.ts +2 -7
- package/build/components/notice.js +1 -1
- package/build/components/notice.mjs +16 -16
- package/build/components/notification.d.ts +2 -1
- package/build/components/notification.js +1 -1
- package/build/components/notification.mjs +9 -9
- package/build/components/popover-menu.js +1 -1
- package/build/components/popover-menu.mjs +98 -106
- package/build/components/popover.js +1 -1
- package/build/components/popover.mjs +1 -1
- package/build/components/select.d.ts +12 -0
- package/build/components/select.js +1 -0
- package/build/components/select.mjs +36 -0
- package/build/components/separator.js +1 -1
- package/build/components/separator.mjs +25 -25
- package/build/components/text-button.d.ts +2 -4
- package/build/components/text-button.js +1 -1
- package/build/components/text-button.mjs +26 -27
- package/build/components/text.d.ts +1 -1
- package/build/components/text.js +1 -1
- package/build/components/text.mjs +29 -30
- package/build/components/theme-setter.d.ts +1 -1
- package/build/components/wrapper.d.ts +3 -6
- package/build/components/wrapper.js +1 -1
- package/build/components/wrapper.mjs +25 -23
- package/build/components.css +1 -1
- package/build/{focus-trap-react-CcpTuiJi.js → focus-trap-react-CkKg4ubd.js} +5 -5
- package/build/{focus-trap-react-DYXrtbDH.mjs → focus-trap-react-DATIi_Ob.mjs} +34 -29
- package/build/hooks/use-synchronized-value.d.ts +4 -0
- package/build/icons/icon.d.ts +4 -42
- package/build/icons/icon.js +1 -1
- package/build/icons/icon.mjs +76 -76
- package/build/index.d.ts +4 -0
- package/build/index.js +1 -1
- package/build/index.mjs +248 -241
- package/build/use-synchronized-value-D0_rS5Wp.js +1 -0
- package/build/use-synchronized-value-XnIpeq1s.mjs +28 -0
- package/package.json +3 -1
|
@@ -1,195 +1,170 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-B4hRZ52C.mjs";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { cx as
|
|
4
|
-
import xe from "../icons/chevron-up.mjs";
|
|
5
|
-
import { IconType as Y } from "../icons/icon.mjs";
|
|
2
|
+
import { useRef as L, useId as ke, useState as P, useLayoutEffect as fe, useMemo as T, useEffect as he, useCallback as x } from "react";
|
|
3
|
+
import { cx as o } from "@kuma-ui/core";
|
|
6
4
|
import Z from "../utilities/copy-to-clipboard.mjs";
|
|
7
|
-
import { buttonResetStyles as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Span as
|
|
5
|
+
import { buttonResetStyles as xe, overflowProtectionStyles as ne } from "../theme.mjs";
|
|
6
|
+
import je from "../icons/sparkle.mjs";
|
|
7
|
+
import be from "./button-tooltip.mjs";
|
|
8
|
+
import H from "./text-button.mjs";
|
|
9
|
+
import { Span as A, Paragraph as R } from "./text.mjs";
|
|
12
10
|
import ye from "./collapsible.mjs";
|
|
13
11
|
import _ from "./click-ripples.mjs";
|
|
14
12
|
import ee from "./hover-gradient.mjs";
|
|
15
13
|
import { useCreateNotification as ge } from "./notification.mjs";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...m
|
|
14
|
+
const Ne = "kakadu-components-922159086", ve = "kakadu-components-25448712", M = "kakadu-components-1923392328", F = "kakadu-components-4056037255", Ce = o(F, "kakadu-components-3245407458"), Se = o(F, "kakadu-components-1117160492"), Ee = o(F, "kakadu-components-2261792866");
|
|
15
|
+
function Ie({
|
|
16
|
+
as: m,
|
|
17
|
+
className: l,
|
|
18
|
+
...p
|
|
22
19
|
}) {
|
|
23
|
-
return /* @__PURE__ */ e.jsx(
|
|
20
|
+
return /* @__PURE__ */ e.jsx(A, { as: m ?? "span", ...p, className: o("kakadu-components-520991867", l) });
|
|
24
21
|
}
|
|
25
|
-
function
|
|
26
|
-
label:
|
|
27
|
-
error:
|
|
28
|
-
errorId:
|
|
29
|
-
warning:
|
|
30
|
-
warningId:
|
|
31
|
-
information:
|
|
32
|
-
informationId:
|
|
33
|
-
footnote:
|
|
34
|
-
attachments:
|
|
22
|
+
function Be({
|
|
23
|
+
label: m,
|
|
24
|
+
error: l,
|
|
25
|
+
errorId: p,
|
|
26
|
+
warning: c,
|
|
27
|
+
warningId: j,
|
|
28
|
+
information: r,
|
|
29
|
+
informationId: v,
|
|
30
|
+
footnote: a,
|
|
31
|
+
attachments: C,
|
|
35
32
|
className: u,
|
|
36
|
-
children:
|
|
37
|
-
...
|
|
33
|
+
children: k,
|
|
34
|
+
...f
|
|
38
35
|
}) {
|
|
39
|
-
const
|
|
40
|
-
return /* @__PURE__ */ e.jsx("label", { ...
|
|
41
|
-
/* @__PURE__ */ e.jsx(
|
|
36
|
+
const b = !!l, i = !!c, d = !!r, h = !!a;
|
|
37
|
+
return /* @__PURE__ */ e.jsx("label", { ...f, className: o(Ne, u), children: /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-3146929190", children: [
|
|
38
|
+
/* @__PURE__ */ e.jsx(A, { className: o(ne, ve), children: /* @__PURE__ */ e.jsx("span", { children: m }) }),
|
|
42
39
|
/* @__PURE__ */ e.jsxs("span", { className: "kakadu-components-3298764637", children: [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
k,
|
|
41
|
+
h ? /* @__PURE__ */ e.jsx(Ie, { className: "kakadu-components-613632806", children: a }) : null,
|
|
42
|
+
C
|
|
46
43
|
] }),
|
|
47
|
-
|
|
44
|
+
b || i || d ? /* @__PURE__ */ e.jsx("div", { className: "kakadu-components-2927674627", children: b ? /* @__PURE__ */ e.jsx(R, { id: p, className: Ce, children: l instanceof Error ? l.message : l }) : i ? /* @__PURE__ */ e.jsx(R, { id: j, className: Se, children: c instanceof Error ? c.message : c }) : d ? /* @__PURE__ */ e.jsx(R, { id: v, className: Ee, children: r instanceof Error ? r.message : r }) : null }) : null
|
|
48
45
|
] }) });
|
|
49
46
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
const {
|
|
69
|
-
value: w
|
|
70
|
-
} = a.target;
|
|
71
|
-
B(w), o == null || o(w, a);
|
|
72
|
-
}, [o]);
|
|
73
|
-
return /* @__PURE__ */ e.jsxs(se, { label: h, error: m, errorId: g, warning: i, warningId: p, information: b, informationId: k, footnote: x, children: [
|
|
74
|
-
/* @__PURE__ */ e.jsx("select", { ...j, value: E, "aria-invalid": l, "data-warning": f, "data-information": v, "aria-describedby": I, className: c($, "kakadu-components-4228384787", n), onChange: C, children: r.map((a) => /* @__PURE__ */ e.jsx("option", { value: a.value, disabled: a.disabled, children: a.label }, a.value)) }),
|
|
75
|
-
/* @__PURE__ */ e.jsx(xe, { width: 14, height: 14, className: "kakadu-components-158931186" })
|
|
76
|
-
] });
|
|
77
|
-
}
|
|
78
|
-
const Te = 40, O = "kakadu-components-4233741488";
|
|
79
|
-
function Ke({
|
|
80
|
-
type: h,
|
|
81
|
-
label: r,
|
|
82
|
-
error: m,
|
|
83
|
-
warning: i,
|
|
84
|
-
information: b,
|
|
85
|
-
footnote: x,
|
|
86
|
-
suggestion: n,
|
|
87
|
-
actions: o = [],
|
|
88
|
-
hasCopyButton: j,
|
|
89
|
-
hasClearButton: u,
|
|
90
|
-
isMultiline: g,
|
|
91
|
-
onChange: p,
|
|
92
|
-
className: k,
|
|
93
|
-
...l
|
|
47
|
+
const we = 40, $ = "kakadu-components-4233741488";
|
|
48
|
+
function De({
|
|
49
|
+
ref: m,
|
|
50
|
+
type: l,
|
|
51
|
+
label: p,
|
|
52
|
+
error: c,
|
|
53
|
+
warning: j,
|
|
54
|
+
information: r,
|
|
55
|
+
footnote: v,
|
|
56
|
+
suggestion: a,
|
|
57
|
+
attachments: C,
|
|
58
|
+
actions: u = [],
|
|
59
|
+
hasCopyButton: k,
|
|
60
|
+
hasClearButton: f,
|
|
61
|
+
isMultiline: b,
|
|
62
|
+
onChange: i,
|
|
63
|
+
className: d,
|
|
64
|
+
...h
|
|
94
65
|
}) {
|
|
95
|
-
const
|
|
96
|
-
value:
|
|
97
|
-
disabled:
|
|
98
|
-
} =
|
|
66
|
+
const V = L(null), O = L(null), S = L(null), W = ge(), E = ke(), z = `${E}-error`, D = `${E}-warning`, G = `${E}-information`, {
|
|
67
|
+
value: y,
|
|
68
|
+
disabled: te
|
|
69
|
+
} = h, [ae, U] = P(""), s = y ?? ae, [se, oe] = P(), le = l === "textarea" || !!b;
|
|
70
|
+
fe(() => {
|
|
71
|
+
typeof s == "string" && S.current && oe(S.current.scrollHeight);
|
|
72
|
+
}, [s]);
|
|
73
|
+
const I = T(() => typeof s == "string" ? `${s} `.split(`
|
|
74
|
+
`) : [], [s]), ce = T(() => I.length, [I]), g = !!c, B = !g && !!j, w = !!r, q = g ? z : B ? D : w ? G : void 0;
|
|
99
75
|
he(() => {
|
|
100
|
-
typeof
|
|
101
|
-
}, [
|
|
102
|
-
const
|
|
103
|
-
`) : [], [d]), ie = A(() => H.length, [H]), T = !!m, R = !T && !!i, V = !!b, G = T ? B : R ? E : V ? C : void 0;
|
|
104
|
-
ae(() => {
|
|
105
|
-
D(typeof a == "string" ? a : "");
|
|
106
|
-
}, [a]);
|
|
107
|
-
const q = N((t) => {
|
|
76
|
+
U(typeof y == "string" ? y : "");
|
|
77
|
+
}, [y]);
|
|
78
|
+
const J = x((n) => {
|
|
108
79
|
const {
|
|
109
|
-
value:
|
|
110
|
-
} =
|
|
111
|
-
|
|
112
|
-
}, [
|
|
113
|
-
typeof
|
|
114
|
-
type:
|
|
80
|
+
value: t
|
|
81
|
+
} = n.target;
|
|
82
|
+
U(t), i == null || i(t, n);
|
|
83
|
+
}, [i]), re = x(() => {
|
|
84
|
+
typeof s == "string" && (Z(s), W({
|
|
85
|
+
type: "success",
|
|
115
86
|
children: "Copied to clipboard."
|
|
116
87
|
}));
|
|
117
|
-
}, [
|
|
118
|
-
var
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
-
const
|
|
122
|
-
if (
|
|
123
|
-
|
|
124
|
-
const
|
|
88
|
+
}, [s, W]), N = x((n) => {
|
|
89
|
+
var X;
|
|
90
|
+
const t = O.current ?? V.current ?? void 0;
|
|
91
|
+
if (t) {
|
|
92
|
+
const Y = (X = Object.getOwnPropertyDescriptor(t instanceof HTMLTextAreaElement ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype, "value")) == null ? void 0 : X.set;
|
|
93
|
+
if (Y) {
|
|
94
|
+
Y.call(t, n);
|
|
95
|
+
const ue = new Event("input", {
|
|
125
96
|
bubbles: !0
|
|
126
97
|
});
|
|
127
|
-
|
|
98
|
+
t.dispatchEvent(ue), t.focus();
|
|
128
99
|
return;
|
|
129
100
|
}
|
|
130
101
|
}
|
|
131
102
|
throw new Error("Unable to set value.");
|
|
132
|
-
}, []),
|
|
133
|
-
|
|
134
|
-
}, [
|
|
135
|
-
if (
|
|
103
|
+
}, []), ie = x(() => {
|
|
104
|
+
N("");
|
|
105
|
+
}, [N]), [de, me] = P(""), K = !!a && de !== a, pe = x(() => {
|
|
106
|
+
if (a) {
|
|
136
107
|
try {
|
|
137
|
-
|
|
108
|
+
N(a);
|
|
138
109
|
} catch {
|
|
139
|
-
Z(
|
|
110
|
+
Z(a);
|
|
140
111
|
}
|
|
141
|
-
|
|
112
|
+
me(a);
|
|
142
113
|
}
|
|
143
|
-
}, [
|
|
144
|
-
return /* @__PURE__ */ e.jsxs(
|
|
145
|
-
/* @__PURE__ */ e.jsx(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
114
|
+
}, [a, N]), Q = T(() => u.length, [u]);
|
|
115
|
+
return /* @__PURE__ */ e.jsxs(Be, { ref: m, label: p, error: c, errorId: z, warning: j, warningId: D, information: r, informationId: G, footnote: v, attachments: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
116
|
+
/* @__PURE__ */ e.jsx(ye, { isCollapsed: !K, children: K ? /* @__PURE__ */ e.jsxs("button", { type: "button", className: o(xe, ne, "kakadu-components-4141839293"), onClick: pe, children: [
|
|
117
|
+
/* @__PURE__ */ e.jsx(be, { label: "Apply suggestion" }),
|
|
118
|
+
/* @__PURE__ */ e.jsx(je, { width: 13, height: 13, className: "kakadu-components-1417828741" }),
|
|
119
|
+
/* @__PURE__ */ e.jsx(A, { className: "kakadu-components-1384720019", children: a }),
|
|
120
|
+
/* @__PURE__ */ e.jsx(_, { className: "kakadu-components-2744733744" }),
|
|
121
|
+
/* @__PURE__ */ e.jsx(ee, {})
|
|
122
|
+
] }) : null }),
|
|
123
|
+
C
|
|
124
|
+
] }), style: {
|
|
125
|
+
"--button-padding": `calc(${we * ((k ? 1 : 0) + (f ? 1 : 0) + Q)}px + 6px)`
|
|
152
126
|
}, children: [
|
|
153
127
|
/* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-3146929190", children: [
|
|
154
|
-
|
|
155
|
-
/* @__PURE__ */ e.jsxs("span", { ref:
|
|
156
|
-
|
|
128
|
+
le ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
129
|
+
/* @__PURE__ */ e.jsxs("span", { ref: S, "aria-hidden": !0, className: o(M, d, "kakadu-components-2033521835"), children: [
|
|
130
|
+
I.map((n, t) => (
|
|
157
131
|
// eslint-disable-next-line react/no-array-index-key
|
|
158
132
|
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
] },
|
|
133
|
+
n,
|
|
134
|
+
ce > 1 ? /* @__PURE__ */ e.jsx("br", {}) : null
|
|
135
|
+
] }, t)
|
|
162
136
|
)),
|
|
163
137
|
" "
|
|
164
138
|
] }),
|
|
165
|
-
/* @__PURE__ */ e.jsx("textarea", { ...
|
|
166
|
-
minHeight:
|
|
167
|
-
}, onChange:
|
|
168
|
-
] }) : /* @__PURE__ */ e.jsx("input", { ...
|
|
169
|
-
|
|
139
|
+
/* @__PURE__ */ e.jsx("textarea", { ...h, ref: O, rows: 1, "aria-invalid": g, "data-warning": B, "data-information": w, "aria-describedby": q, value: s, className: o(M, d, "kakadu-components-2119524139"), style: {
|
|
140
|
+
minHeight: se
|
|
141
|
+
}, onChange: J })
|
|
142
|
+
] }) : /* @__PURE__ */ e.jsx("input", { ...h, ref: V, type: l ?? "text", value: s, "aria-invalid": g, "data-warning": B, "data-information": w, "aria-describedby": q, className: o(M, d), onChange: J }),
|
|
143
|
+
te ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
170
144
|
/* @__PURE__ */ e.jsx(_, { className: "kakadu-components-616311160" }),
|
|
171
145
|
/* @__PURE__ */ e.jsx(ee, { className: "kakadu-components-1962999040" })
|
|
172
146
|
] })
|
|
173
147
|
] }),
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
148
|
+
k || f || Q > 0 ? /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-131986363", children: [
|
|
149
|
+
u.map((n, t) => /* @__PURE__ */ e.jsx(
|
|
150
|
+
H,
|
|
177
151
|
{
|
|
178
|
-
iconLeft:
|
|
179
|
-
label:
|
|
180
|
-
tooltip:
|
|
181
|
-
className:
|
|
182
|
-
onClick:
|
|
152
|
+
iconLeft: n.icon,
|
|
153
|
+
label: n.label,
|
|
154
|
+
tooltip: n.label,
|
|
155
|
+
className: $,
|
|
156
|
+
onClick: n.onClick
|
|
183
157
|
},
|
|
184
|
-
|
|
158
|
+
n.label + t
|
|
185
159
|
)),
|
|
186
|
-
|
|
187
|
-
|
|
160
|
+
k ? /* @__PURE__ */ e.jsx(H, { iconLeft: "copy", label: "Copy", tooltip: "Copy", className: $, onClick: re }) : null,
|
|
161
|
+
f ? /* @__PURE__ */ e.jsx(H, { iconLeft: "times", label: "Clear", tooltip: "Clear", className: $, onClick: ie }) : null
|
|
188
162
|
] }) : null
|
|
189
163
|
] });
|
|
190
164
|
}
|
|
191
165
|
export {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
166
|
+
Be as InputLabel,
|
|
167
|
+
De as default,
|
|
168
|
+
Ce as errorParagraph,
|
|
169
|
+
M as inputStyles
|
|
195
170
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
export declare function KakaduGuideLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
'flat' = "flat"
|
|
6
|
-
}
|
|
3
|
+
export declare const kakaduGuideLogoVariants: readonly ["default", "flat"];
|
|
4
|
+
export type KakaduGuideLogoVariant = (typeof kakaduGuideLogoVariants)[number];
|
|
7
5
|
export default function KakaduGuideLogo({ variant, height, }: {
|
|
8
6
|
readonly variant?: KakaduGuideLogoVariant;
|
|
9
7
|
readonly height?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../jsx-runtime-BB_1_6y_.js"),u=require("../icons/kakadu-guide-icon.js"),r=require("../utilities/scale.js"),e=require("./flex.js"),m=require("./kakadu-guide-icon.js"),a=require("./aria-text.js");function x({fill:c,...t}){const{width:n,height:o}=r.default({originalWidth:110,originalHeight:52,width:t.width,height:t.height});return s.jsxRuntimeExports.jsx("svg",{fill:"none",viewBox:"0 0 110 52",xmlns:"http://www.w3.org/2000/svg",...t,width:n,height:o,children:s.jsxRuntimeExports.jsxs("g",{fill:c??"currentColor",children:[s.jsxRuntimeExports.jsx("path",{d:"m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z"}),s.jsxRuntimeExports.jsx("path",{d:"m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z"}),s.jsxRuntimeExports.jsx("path",{d:"m91.8753 6.81641c1.8165.03194 3.435.44719 4.6929 1.79198.9983 1.09201 1.5656 2.51001 1.5962 3.98961.0575 1.0701 0 2.1466.0223 3.2231-.0244.6209.1648 1.2315.5361 1.7297.3713.4983.9021.854 1.5042 1.0077 1.542.4504 3.294-.7762 3.31-2.3701.029-2.9675 0-5.9318.019-8.89605v-.45678c2.995-.0543 5.578 1.37673 6.168 4.75943.407 2.2104.363 4.4802-.131 6.6729-.775 3.3252-3.875 6.0467-7.259 6.5866-1.835.2898-3.7145.0093-5.3849-.8035-1.6705-.8129-3.0514-2.119-3.9565-3.742-.744-1.3135-1.1304-2.7993-1.1205-4.3091 0-2.9802 0-5.9573 0-8.94392-.0096-.06708-.0032-.14375.0032-.23957z"}),s.jsxRuntimeExports.jsx("path",{d:"m91.8753 6.81641c1.8165.03194 3.435.44719 4.6929 1.79198.9983 1.09201 1.5656 2.51001 1.5962 3.98961.0575 1.0701 0 2.1466.0223 3.2231-.0244.6209.1648 1.2315.5361 1.7297.3713.4983.9021.854 1.5042 1.0077 1.542.4504 3.294-.7762 3.31-2.3701.029-2.9675 0-5.9318.019-8.89605v-.45678c2.995-.0543 5.578 1.37673 6.168 4.75943.407 2.2104.363 4.4802-.131 6.6729-.775 3.3252-3.875 6.0467-7.259 6.5866-1.835.2898-3.7145.0093-5.3849-.8035-1.6705-.8129-3.0514-2.119-3.9565-3.742-.744-1.3135-1.1304-2.7993-1.1205-4.3091 0-2.9802 0-5.9573 0-8.94392-.0096-.06708-.0032-.14375.0032-.23957z"}),s.jsxRuntimeExports.jsx("path",{d:"m9.84872 15.7676 7.28838 7.1999c-1.8389 1.9996-4.2428 2.6225-6.8223 1.3129-1.44616-.7411-2.62737-1.8112-3.78304-2.9196-.16282-.1533-.2969-.3386-.50122-.5782-.98008 2.9803-3.07752 4.1813-6.03054 4.2005v-24.97919375c1.692 0 3.22757.35456375 4.46944 1.56199375 1.31209 1.27771 1.79415 2.87485 1.84523 4.64447.03831 1.37035 0 2.74388 0 4.21643l.38948-.3386c.95774-.84966 1.83886-1.7728 2.85086-2.53304 2.34009-1.76324 4.75999-1.59713 6.93079.37373.2203.19805.4342.40248.7024.63885z"}),s.jsxRuntimeExports.jsx("path",{d:"m9.84872 15.7676 7.28838 7.1999c-1.8389 1.9996-4.2428 2.6225-6.8223 1.3129-1.44616-.7411-2.62737-1.8112-3.78304-2.9196-.16282-.1533-.2969-.3386-.50122-.5782-.98008 2.9803-3.07752 4.1813-6.03054 4.2005v-24.97919375c1.692 0 3.22757.35456375 4.46944 1.56199375 1.31209 1.27771 1.79415 2.87485 1.84523 4.64447.03831 1.37035 0 2.74388 0 4.21643l.38948-.3386c.95774-.84966 1.83886-1.7728 2.85086-2.53304 2.34009-1.76324 4.75999-1.59713 6.93079.37373.2203.19805.4342.40248.7024.63885z"}),s.jsxRuntimeExports.jsx("path",{d:"m53.1648 8.56764-7.2405 7.16796 7.2149 7.2031c-1.6313 1.8111-3.8309 2.5554-6.1359 1.6418-1.5483-.6101-2.7966-1.645-3.9937-2.7534-.3416-.3195-.6385-.6772-.9769-1.0478-1.3855 3.0665-3.2595 4.3506-6.021 4.1718v-24.9313273c.7841-.0461673 1.5699.0534731 2.3177.2938733 2.5221.773014 3.831 3.012194 3.9363 5.478174.0703 1.51089 0 3.02817 0 4.65088.1692-.1565.2714-.2524.3799-.3482.9578-.84648 1.8453-1.76004 2.8541-2.52667 2.3305-1.76323 4.6961-1.62269 6.9053.31943.2458.20124.4724.42164.7598.68038z"}),s.jsxRuntimeExports.jsx("path",{d:"m53.1648 8.56764-7.2405 7.16796 7.2149 7.2031c-1.6313 1.8111-3.8309 2.5554-6.1359 1.6418-1.5483-.6101-2.7966-1.645-3.9937-2.7534-.3416-.3195-.6385-.6772-.9769-1.0478-1.3855 3.0665-3.2595 4.3506-6.021 4.1718v-24.9313273c.7841-.0461673 1.5699.0534731 2.3177.2938733 2.5221.773014 3.831 3.012194 3.9363 5.478174.0703 1.51089 0 3.02817 0 4.65088.1692-.1565.2714-.2524.3799-.3482.9578-.84648 1.8453-1.76004 2.8541-2.52667 2.3305-1.76323 4.6961-1.62269 6.9053.31943.2458.20124.4724.42164.7598.68038z"}),s.jsxRuntimeExports.jsx("path",{d:"m70.5731 24.9668c-1.4086.0874-2.8049-.308-3.9587-1.1212-.0835-.0825-.1938-.1324-.3109-.1406s-.2333.0258-.3276.0958c-1.1441.6519-2.4163 1.0469-3.7283 1.1578-1.312.1108-2.6324-.0652-3.8696-.5158-1.2373-.4506-2.3617-1.1651-3.2955-2.0939-.9337-.9288-1.6544-2.0497-2.1121-3.285-.4576-1.2352-.6413-2.5553-.5382-3.8687.103-1.3133.4903-2.5886 1.135-3.7372.6447-1.1487 1.5314-2.14332 2.5986-2.91493 1.0672-.77162 2.2893-1.30176 3.5817-1.55368 2.1596-.45022 4.4094-.07047 6.3019 1.0637.0786.05612.1751.08128.2711.07068.096-.01061.1848-.05624.2492-.12818 1.1717-.91037 2.554-1.14355 4.0034-1.17869zm-6.3849-9.1037c.0245-.362-.0267-.7251-.1504-1.0661-.1238-.341-.3173-.6524-.5682-.9143-.2509-.2618-.5537-.4684-.889-.6065s-.6957-.2046-1.0581-.1953c-.7289.0137-1.4239.3107-1.9377.8281-.5139.5174-.8064 1.2146-.8155 1.944s.2658 1.4337.7666 1.9638c.5007.5301 1.188.8444 1.9163.8764 1.5612.0192 2.7136-1.1691 2.736-2.8301z"}),s.jsxRuntimeExports.jsx("path",{d:"m70.5731 24.9668c-1.4086.0874-2.8049-.308-3.9587-1.1212-.0835-.0825-.1938-.1324-.3109-.1406s-.2333.0258-.3276.0958c-1.1441.6519-2.4163 1.0469-3.7283 1.1578-1.312.1108-2.6324-.0652-3.8696-.5158-1.2373-.4506-2.3617-1.1651-3.2955-2.0939-.9337-.9288-1.6544-2.0497-2.1121-3.285-.4576-1.2352-.6413-2.5553-.5382-3.8687.103-1.3133.4903-2.5886 1.135-3.7372.6447-1.1487 1.5314-2.14332 2.5986-2.91493 1.0672-.77162 2.2893-1.30176 3.5817-1.55368 2.1596-.45022 4.4094-.07047 6.3019 1.0637.0786.05612.1751.08128.2711.07068.096-.01061.1848-.05624.2492-.12818 1.1717-.91037 2.554-1.14355 4.0034-1.17869zm-6.3849-9.1037c.0245-.362-.0267-.7251-.1504-1.0661-.1238-.341-.3173-.6524-.5682-.9143-.2509-.2618-.5537-.4684-.889-.6065s-.6957-.2046-1.0581-.1953c-.7289.0137-1.4239.3107-1.9377.8281-.5139.5174-.8064 1.2146-.8155 1.944s.2658 1.4337.7666 1.9638c.5007.5301 1.188.8444 1.9163.8764 1.5612.0192 2.7136-1.1691 2.736-2.8301z"}),s.jsxRuntimeExports.jsx("path",{d:"m34.1057 6.80968v18.20732c-.5363-.0511-1.0694-.0607-1.5962-.1629-.8807-.1549-1.714-.51-2.4358-1.0381-.0738-.0371-.1553-.0564-.2379-.0564s-.164.0193-.2378.0564c-1.5131.85-3.2341 1.2583-4.9675 1.1787-1.9966-.0702-3.9102-.8169-5.4271-2.1178-1.0238-.8288-1.8471-1.8785-2.4082-3.0705s-.8456-2.4956-.8322-3.8132c-.0396-1.8326.487-3.6327 1.5081-5.1546 1.021-1.52185 2.4867-2.69128 4.1968-3.34854 1.2775-.53907 2.6638-.76993 4.0469-.67393 1.3831.09599 2.7243.51615 3.9151 1.22654.0676.03326.1418.05055.2171.05055s.1496-.01729.2171-.05055c1.178-.92953 2.5508-1.1723 4.0416-1.23299zm-6.3498 9.01422c0-1.6163-1.1397-2.7598-2.7072-2.7439-.368.0028-.732.078-1.071.2215-.3391.1434-.6465.3523-.9049.6147-.2583.2623-.4625.573-.6009.9143-.1383.3413-.2081.7066-.2054 1.0749s.0779.7324.2213 1.0716c.1434.3393.3522.6469.6144.9054s.5727.4628.9138.6012c.3411.1385.7062.2083 1.0742.2056 1.5356-.016 2.6849-1.2426 2.6657-2.8653z"}),s.jsxRuntimeExports.jsx("path",{d:"m34.1057 6.80968v18.20732c-.5363-.0511-1.0694-.0607-1.5962-.1629-.8807-.1549-1.714-.51-2.4358-1.0381-.0738-.0371-.1553-.0564-.2379-.0564s-.164.0193-.2378.0564c-1.5131.85-3.2341 1.2583-4.9675 1.1787-1.9966-.0702-3.9102-.8169-5.4271-2.1178-1.0238-.8288-1.8471-1.8785-2.4082-3.0705s-.8456-2.4956-.8322-3.8132c-.0396-1.8326.487-3.6327 1.5081-5.1546 1.021-1.52185 2.4867-2.69128 4.1968-3.34854 1.2775-.53907 2.6638-.76993 4.0469-.67393 1.3831.09599 2.7243.51615 3.9151 1.22654.0676.03326.1418.05055.2171.05055s.1496-.01729.2171-.05055c1.178-.92953 2.5508-1.1723 4.0416-1.23299zm-6.3498 9.01422c0-1.6163-1.1397-2.7598-2.7072-2.7439-.368.0028-.732.078-1.071.2215-.3391.1434-.6465.3523-.9049.6147-.2583.2623-.4625.573-.6009.9143-.1383.3413-.2081.7066-.2054 1.0749s.0779.7324.2213 1.0716c.1434.3393.3522.6469.6144.9054s.5727.4628.9138.6012c.3411.1385.7062.2083 1.0742.2056 1.5356-.016 2.6849-1.2426 2.6657-2.8653z"}),s.jsxRuntimeExports.jsxs("g",{opacity:.8,children:[s.jsxRuntimeExports.jsx("path",{d:"m50.0654 51.3369c-1.0869 0-2.0234-.2427-2.8095-.728-.7793-.4922-1.3775-1.1724-1.7945-2.0405-.417-.875-.6255-1.8833-.6255-3.0249s.2085-2.1534.6255-3.0352c.4239-.8818 1.0152-1.5723 1.774-2.0713.7656-.499 1.6508-.7485 2.6557-.7485.6631 0 1.292.1162 1.8867.3486.6016.2256 1.1314.5742 1.5894 1.0459.4648.4717.8271 1.0664 1.0869 1.7842.2666.7178.3999 1.562.3999 2.5327v.6563h-8.9004v-1.5279h7.916l-.8203.5537c0-.7451-.123-1.4013-.3691-1.9687-.2461-.5742-.605-1.0186-1.0767-1.333-.4648-.3213-1.0356-.482-1.7124-.482-.6699 0-1.2475.1607-1.7329.482-.4853.3213-.8613.7553-1.1279 1.3022-.2598.5401-.3897 1.145-.3897 1.815v.9228c0 .8067.1402 1.5039.4204 2.0918.2803.5811.6768 1.0288 1.1895 1.3433.5195.3076 1.1279.4614 1.8252.4614.4717 0 .8955-.0684 1.2715-.2051.3828-.1435.7041-.352.9638-.6255.2666-.2734.4649-.6015.5948-.9843l1.7636.2973c-.164.6221-.458 1.169-.8818 1.6406-.4238.4717-.9536.8409-1.5894 1.1075-.6357.2597-1.3466.3896-2.1328.3896z"}),s.jsxRuntimeExports.jsx("path",{d:"m37.1343 51.3164c-.9434 0-1.7774-.2393-2.502-.7178s-1.2885-1.1518-1.6919-2.02c-.3965-.875-.5947-1.9004-.5947-3.0762 0-1.1757.2017-2.1977.605-3.0659.4033-.8681.9639-1.5381 1.6816-2.0097.7246-.4786 1.5586-.7178 2.502-.7178.6426 0 1.1792.1025 1.6098.3076.4375.1982.793.4443 1.0664.7383.2803.2939.5059.581.6768.8613h.0923v-5.8037h1.8047v15.2783h-1.7534v-1.7226h-.1333c-.1778.2939-.4102.5913-.6973.8921-.2803.3007-.6392.5537-1.0767.7587-.4306.1983-.9604.2974-1.5893.2974zm.2666-1.6099c.6904 0 1.2749-.1777 1.7534-.5332.4853-.3554.8545-.8476 1.1074-1.4765.2598-.6358.3897-1.3706.3897-2.2046 0-.8408-.1265-1.5723-.3794-2.1943-.253-.6221-.6221-1.1075-1.1074-1.4561-.4854-.3486-1.0733-.523-1.7637-.523-.6836 0-1.2681.1744-1.7534.523-.4786.3486-.8443.8374-1.0972 1.4663-.2529.6221-.3794 1.3501-.3794 2.1841 0 .8271.1265 1.5586.3794 2.1943.2598.6289.6289 1.1245 1.1074 1.4868.4854.3555 1.0664.5332 1.7432.5332z"}),s.jsxRuntimeExports.jsx("path",{d:"m28.1001 51.0908v-11.2178h1.8047v11.2178zm.9023-13.1865c-.3349 0-.6254-.1162-.8715-.3486-.2461-.2393-.3692-.5264-.3692-.8614 0-.3349.1231-.6186.3692-.851.2461-.2393.5366-.3589.8715-.3589.3487 0 .646.1196.8921.3589.2461.2324.3692.5195.3692.8613 0 .3281-.1231.6118-.3692.8511-.2461.2324-.5434.3486-.8921.3486z"}),s.jsxRuntimeExports.jsx("path",{d:"m19.96 51.2549c-.752 0-1.4253-.1572-2.0201-.4717-.5947-.3213-1.0595-.7998-1.3945-1.4355-.335-.6426-.5024-1.4458-.5024-2.4097v-7.065h1.8047v6.9214c0 .9024.229 1.5996.687 2.0918s1.0903.7383 1.8969.7383c.5332 0 1.0152-.1128 1.4458-.3384.4375-.2324.7828-.5776 1.0357-1.0356.2529-.4649.3794-1.0357.3794-1.7124v-6.6651h1.8149v11.2178h-1.7534v-2.7173h.3486c-.3554 1.0323-.8579 1.7705-1.5073 2.2149-.6426.4443-1.3877.6665-2.2353.6665z"}),s.jsxRuntimeExports.jsx("path",{d:"m7.01953 51.3164c-1.36035 0-2.55664-.3247-3.58887-.9741-1.03222-.6563-1.84228-1.5723-2.43017-2.7481-.581056-1.1757-.871584-2.5532-.871584-4.1323 0-1.5928.290528-2.977.871584-4.1528.58105-1.1758 1.38428-2.0884 2.40967-2.7378 1.03222-.6563 2.21142-.9844 3.53759-.9844.80664 0 1.56202.1231 2.26612.3692.7041.246 1.33303.5947 1.88673 1.0459.5605.4511 1.0254.9877 1.3945 1.6098.3692.6153.6221 1.2988.7588 2.0508h-1.9585c-.1367-.499-.3384-.9502-.605-1.3535s-.5879-.7486-.96384-1.0357c-.36914-.2939-.78955-.5195-1.26123-.6767-.46484-.1572-.9707-.2359-1.51758-.2359-.94336 0-1.78759.2427-2.53271.7281-.74512.4853-1.33301 1.1826-1.76367 2.0918-.43067.9091-.646 2.0029-.646 3.2812 0 1.2647.21533 2.3516.646 3.2608.43066.9023 1.02197 1.5996 1.77392 2.0918.75879.4853 1.62354.728 2.59424.728.86133 0 1.62695-.1846 2.29688-.5537.66992-.376 1.19629-.9024 1.57909-1.5791.3897-.6768.5845-1.4732.5845-2.3892l.5845.082h-4.55278v-1.6713h5.84468v1.6611c0 1.2373-.2768 2.3242-.8305 3.2607-.5469.9297-1.2988 1.6577-2.2559 2.1841-.95018.5195-2.03367.7793-3.25047.7793z"})]})]})})}var i=(c=>(c.default="default",c.flat="flat",c))(i||{});function d({variant:c="default",height:t=56}){return s.jsxRuntimeExports.jsxs(e.default,{direction:"row",alignment:e.FlexAlignment.start,style:{gap:t/3},children:[c==="flat"?s.jsxRuntimeExports.jsx(u.default,{width:t,height:t,fill:"var(--foreground-color)"}):s.jsxRuntimeExports.jsx(m.default,{size:t}),s.jsxRuntimeExports.jsx(x,{height:t-2,className:"kakadu-components-3861346893"}),s.jsxRuntimeExports.jsx(a.default,{children:"Kakadu Guide"})]})}exports.KakaduGuideLogoSvg=x;exports.KakaduGuideLogoVariant=i;exports.default=d;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../jsx-runtime-BB_1_6y_.js"),o=require("../icons/kakadu-guide-icon.js"),u=require("../utilities/scale.js"),n=require("./flex.js"),r=require("./kakadu-guide-icon.js"),a=require("./aria-text.js");function e({fill:c,...t}){const{width:x,height:i}=u.default({originalWidth:110,originalHeight:52,width:t.width,height:t.height});return s.jsxRuntimeExports.jsx("svg",{fill:"none",viewBox:"0 0 110 52",xmlns:"http://www.w3.org/2000/svg",...t,width:x,height:i,children:s.jsxRuntimeExports.jsxs("g",{fill:c??"currentColor",children:[s.jsxRuntimeExports.jsx("path",{d:"m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z"}),s.jsxRuntimeExports.jsx("path",{d:"m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z"}),s.jsxRuntimeExports.jsx("path",{d:"m91.8753 6.81641c1.8165.03194 3.435.44719 4.6929 1.79198.9983 1.09201 1.5656 2.51001 1.5962 3.98961.0575 1.0701 0 2.1466.0223 3.2231-.0244.6209.1648 1.2315.5361 1.7297.3713.4983.9021.854 1.5042 1.0077 1.542.4504 3.294-.7762 3.31-2.3701.029-2.9675 0-5.9318.019-8.89605v-.45678c2.995-.0543 5.578 1.37673 6.168 4.75943.407 2.2104.363 4.4802-.131 6.6729-.775 3.3252-3.875 6.0467-7.259 6.5866-1.835.2898-3.7145.0093-5.3849-.8035-1.6705-.8129-3.0514-2.119-3.9565-3.742-.744-1.3135-1.1304-2.7993-1.1205-4.3091 0-2.9802 0-5.9573 0-8.94392-.0096-.06708-.0032-.14375.0032-.23957z"}),s.jsxRuntimeExports.jsx("path",{d:"m91.8753 6.81641c1.8165.03194 3.435.44719 4.6929 1.79198.9983 1.09201 1.5656 2.51001 1.5962 3.98961.0575 1.0701 0 2.1466.0223 3.2231-.0244.6209.1648 1.2315.5361 1.7297.3713.4983.9021.854 1.5042 1.0077 1.542.4504 3.294-.7762 3.31-2.3701.029-2.9675 0-5.9318.019-8.89605v-.45678c2.995-.0543 5.578 1.37673 6.168 4.75943.407 2.2104.363 4.4802-.131 6.6729-.775 3.3252-3.875 6.0467-7.259 6.5866-1.835.2898-3.7145.0093-5.3849-.8035-1.6705-.8129-3.0514-2.119-3.9565-3.742-.744-1.3135-1.1304-2.7993-1.1205-4.3091 0-2.9802 0-5.9573 0-8.94392-.0096-.06708-.0032-.14375.0032-.23957z"}),s.jsxRuntimeExports.jsx("path",{d:"m9.84872 15.7676 7.28838 7.1999c-1.8389 1.9996-4.2428 2.6225-6.8223 1.3129-1.44616-.7411-2.62737-1.8112-3.78304-2.9196-.16282-.1533-.2969-.3386-.50122-.5782-.98008 2.9803-3.07752 4.1813-6.03054 4.2005v-24.97919375c1.692 0 3.22757.35456375 4.46944 1.56199375 1.31209 1.27771 1.79415 2.87485 1.84523 4.64447.03831 1.37035 0 2.74388 0 4.21643l.38948-.3386c.95774-.84966 1.83886-1.7728 2.85086-2.53304 2.34009-1.76324 4.75999-1.59713 6.93079.37373.2203.19805.4342.40248.7024.63885z"}),s.jsxRuntimeExports.jsx("path",{d:"m9.84872 15.7676 7.28838 7.1999c-1.8389 1.9996-4.2428 2.6225-6.8223 1.3129-1.44616-.7411-2.62737-1.8112-3.78304-2.9196-.16282-.1533-.2969-.3386-.50122-.5782-.98008 2.9803-3.07752 4.1813-6.03054 4.2005v-24.97919375c1.692 0 3.22757.35456375 4.46944 1.56199375 1.31209 1.27771 1.79415 2.87485 1.84523 4.64447.03831 1.37035 0 2.74388 0 4.21643l.38948-.3386c.95774-.84966 1.83886-1.7728 2.85086-2.53304 2.34009-1.76324 4.75999-1.59713 6.93079.37373.2203.19805.4342.40248.7024.63885z"}),s.jsxRuntimeExports.jsx("path",{d:"m53.1648 8.56764-7.2405 7.16796 7.2149 7.2031c-1.6313 1.8111-3.8309 2.5554-6.1359 1.6418-1.5483-.6101-2.7966-1.645-3.9937-2.7534-.3416-.3195-.6385-.6772-.9769-1.0478-1.3855 3.0665-3.2595 4.3506-6.021 4.1718v-24.9313273c.7841-.0461673 1.5699.0534731 2.3177.2938733 2.5221.773014 3.831 3.012194 3.9363 5.478174.0703 1.51089 0 3.02817 0 4.65088.1692-.1565.2714-.2524.3799-.3482.9578-.84648 1.8453-1.76004 2.8541-2.52667 2.3305-1.76323 4.6961-1.62269 6.9053.31943.2458.20124.4724.42164.7598.68038z"}),s.jsxRuntimeExports.jsx("path",{d:"m53.1648 8.56764-7.2405 7.16796 7.2149 7.2031c-1.6313 1.8111-3.8309 2.5554-6.1359 1.6418-1.5483-.6101-2.7966-1.645-3.9937-2.7534-.3416-.3195-.6385-.6772-.9769-1.0478-1.3855 3.0665-3.2595 4.3506-6.021 4.1718v-24.9313273c.7841-.0461673 1.5699.0534731 2.3177.2938733 2.5221.773014 3.831 3.012194 3.9363 5.478174.0703 1.51089 0 3.02817 0 4.65088.1692-.1565.2714-.2524.3799-.3482.9578-.84648 1.8453-1.76004 2.8541-2.52667 2.3305-1.76323 4.6961-1.62269 6.9053.31943.2458.20124.4724.42164.7598.68038z"}),s.jsxRuntimeExports.jsx("path",{d:"m70.5731 24.9668c-1.4086.0874-2.8049-.308-3.9587-1.1212-.0835-.0825-.1938-.1324-.3109-.1406s-.2333.0258-.3276.0958c-1.1441.6519-2.4163 1.0469-3.7283 1.1578-1.312.1108-2.6324-.0652-3.8696-.5158-1.2373-.4506-2.3617-1.1651-3.2955-2.0939-.9337-.9288-1.6544-2.0497-2.1121-3.285-.4576-1.2352-.6413-2.5553-.5382-3.8687.103-1.3133.4903-2.5886 1.135-3.7372.6447-1.1487 1.5314-2.14332 2.5986-2.91493 1.0672-.77162 2.2893-1.30176 3.5817-1.55368 2.1596-.45022 4.4094-.07047 6.3019 1.0637.0786.05612.1751.08128.2711.07068.096-.01061.1848-.05624.2492-.12818 1.1717-.91037 2.554-1.14355 4.0034-1.17869zm-6.3849-9.1037c.0245-.362-.0267-.7251-.1504-1.0661-.1238-.341-.3173-.6524-.5682-.9143-.2509-.2618-.5537-.4684-.889-.6065s-.6957-.2046-1.0581-.1953c-.7289.0137-1.4239.3107-1.9377.8281-.5139.5174-.8064 1.2146-.8155 1.944s.2658 1.4337.7666 1.9638c.5007.5301 1.188.8444 1.9163.8764 1.5612.0192 2.7136-1.1691 2.736-2.8301z"}),s.jsxRuntimeExports.jsx("path",{d:"m70.5731 24.9668c-1.4086.0874-2.8049-.308-3.9587-1.1212-.0835-.0825-.1938-.1324-.3109-.1406s-.2333.0258-.3276.0958c-1.1441.6519-2.4163 1.0469-3.7283 1.1578-1.312.1108-2.6324-.0652-3.8696-.5158-1.2373-.4506-2.3617-1.1651-3.2955-2.0939-.9337-.9288-1.6544-2.0497-2.1121-3.285-.4576-1.2352-.6413-2.5553-.5382-3.8687.103-1.3133.4903-2.5886 1.135-3.7372.6447-1.1487 1.5314-2.14332 2.5986-2.91493 1.0672-.77162 2.2893-1.30176 3.5817-1.55368 2.1596-.45022 4.4094-.07047 6.3019 1.0637.0786.05612.1751.08128.2711.07068.096-.01061.1848-.05624.2492-.12818 1.1717-.91037 2.554-1.14355 4.0034-1.17869zm-6.3849-9.1037c.0245-.362-.0267-.7251-.1504-1.0661-.1238-.341-.3173-.6524-.5682-.9143-.2509-.2618-.5537-.4684-.889-.6065s-.6957-.2046-1.0581-.1953c-.7289.0137-1.4239.3107-1.9377.8281-.5139.5174-.8064 1.2146-.8155 1.944s.2658 1.4337.7666 1.9638c.5007.5301 1.188.8444 1.9163.8764 1.5612.0192 2.7136-1.1691 2.736-2.8301z"}),s.jsxRuntimeExports.jsx("path",{d:"m34.1057 6.80968v18.20732c-.5363-.0511-1.0694-.0607-1.5962-.1629-.8807-.1549-1.714-.51-2.4358-1.0381-.0738-.0371-.1553-.0564-.2379-.0564s-.164.0193-.2378.0564c-1.5131.85-3.2341 1.2583-4.9675 1.1787-1.9966-.0702-3.9102-.8169-5.4271-2.1178-1.0238-.8288-1.8471-1.8785-2.4082-3.0705s-.8456-2.4956-.8322-3.8132c-.0396-1.8326.487-3.6327 1.5081-5.1546 1.021-1.52185 2.4867-2.69128 4.1968-3.34854 1.2775-.53907 2.6638-.76993 4.0469-.67393 1.3831.09599 2.7243.51615 3.9151 1.22654.0676.03326.1418.05055.2171.05055s.1496-.01729.2171-.05055c1.178-.92953 2.5508-1.1723 4.0416-1.23299zm-6.3498 9.01422c0-1.6163-1.1397-2.7598-2.7072-2.7439-.368.0028-.732.078-1.071.2215-.3391.1434-.6465.3523-.9049.6147-.2583.2623-.4625.573-.6009.9143-.1383.3413-.2081.7066-.2054 1.0749s.0779.7324.2213 1.0716c.1434.3393.3522.6469.6144.9054s.5727.4628.9138.6012c.3411.1385.7062.2083 1.0742.2056 1.5356-.016 2.6849-1.2426 2.6657-2.8653z"}),s.jsxRuntimeExports.jsx("path",{d:"m34.1057 6.80968v18.20732c-.5363-.0511-1.0694-.0607-1.5962-.1629-.8807-.1549-1.714-.51-2.4358-1.0381-.0738-.0371-.1553-.0564-.2379-.0564s-.164.0193-.2378.0564c-1.5131.85-3.2341 1.2583-4.9675 1.1787-1.9966-.0702-3.9102-.8169-5.4271-2.1178-1.0238-.8288-1.8471-1.8785-2.4082-3.0705s-.8456-2.4956-.8322-3.8132c-.0396-1.8326.487-3.6327 1.5081-5.1546 1.021-1.52185 2.4867-2.69128 4.1968-3.34854 1.2775-.53907 2.6638-.76993 4.0469-.67393 1.3831.09599 2.7243.51615 3.9151 1.22654.0676.03326.1418.05055.2171.05055s.1496-.01729.2171-.05055c1.178-.92953 2.5508-1.1723 4.0416-1.23299zm-6.3498 9.01422c0-1.6163-1.1397-2.7598-2.7072-2.7439-.368.0028-.732.078-1.071.2215-.3391.1434-.6465.3523-.9049.6147-.2583.2623-.4625.573-.6009.9143-.1383.3413-.2081.7066-.2054 1.0749s.0779.7324.2213 1.0716c.1434.3393.3522.6469.6144.9054s.5727.4628.9138.6012c.3411.1385.7062.2083 1.0742.2056 1.5356-.016 2.6849-1.2426 2.6657-2.8653z"}),s.jsxRuntimeExports.jsxs("g",{opacity:.8,children:[s.jsxRuntimeExports.jsx("path",{d:"m50.0654 51.3369c-1.0869 0-2.0234-.2427-2.8095-.728-.7793-.4922-1.3775-1.1724-1.7945-2.0405-.417-.875-.6255-1.8833-.6255-3.0249s.2085-2.1534.6255-3.0352c.4239-.8818 1.0152-1.5723 1.774-2.0713.7656-.499 1.6508-.7485 2.6557-.7485.6631 0 1.292.1162 1.8867.3486.6016.2256 1.1314.5742 1.5894 1.0459.4648.4717.8271 1.0664 1.0869 1.7842.2666.7178.3999 1.562.3999 2.5327v.6563h-8.9004v-1.5279h7.916l-.8203.5537c0-.7451-.123-1.4013-.3691-1.9687-.2461-.5742-.605-1.0186-1.0767-1.333-.4648-.3213-1.0356-.482-1.7124-.482-.6699 0-1.2475.1607-1.7329.482-.4853.3213-.8613.7553-1.1279 1.3022-.2598.5401-.3897 1.145-.3897 1.815v.9228c0 .8067.1402 1.5039.4204 2.0918.2803.5811.6768 1.0288 1.1895 1.3433.5195.3076 1.1279.4614 1.8252.4614.4717 0 .8955-.0684 1.2715-.2051.3828-.1435.7041-.352.9638-.6255.2666-.2734.4649-.6015.5948-.9843l1.7636.2973c-.164.6221-.458 1.169-.8818 1.6406-.4238.4717-.9536.8409-1.5894 1.1075-.6357.2597-1.3466.3896-2.1328.3896z"}),s.jsxRuntimeExports.jsx("path",{d:"m37.1343 51.3164c-.9434 0-1.7774-.2393-2.502-.7178s-1.2885-1.1518-1.6919-2.02c-.3965-.875-.5947-1.9004-.5947-3.0762 0-1.1757.2017-2.1977.605-3.0659.4033-.8681.9639-1.5381 1.6816-2.0097.7246-.4786 1.5586-.7178 2.502-.7178.6426 0 1.1792.1025 1.6098.3076.4375.1982.793.4443 1.0664.7383.2803.2939.5059.581.6768.8613h.0923v-5.8037h1.8047v15.2783h-1.7534v-1.7226h-.1333c-.1778.2939-.4102.5913-.6973.8921-.2803.3007-.6392.5537-1.0767.7587-.4306.1983-.9604.2974-1.5893.2974zm.2666-1.6099c.6904 0 1.2749-.1777 1.7534-.5332.4853-.3554.8545-.8476 1.1074-1.4765.2598-.6358.3897-1.3706.3897-2.2046 0-.8408-.1265-1.5723-.3794-2.1943-.253-.6221-.6221-1.1075-1.1074-1.4561-.4854-.3486-1.0733-.523-1.7637-.523-.6836 0-1.2681.1744-1.7534.523-.4786.3486-.8443.8374-1.0972 1.4663-.2529.6221-.3794 1.3501-.3794 2.1841 0 .8271.1265 1.5586.3794 2.1943.2598.6289.6289 1.1245 1.1074 1.4868.4854.3555 1.0664.5332 1.7432.5332z"}),s.jsxRuntimeExports.jsx("path",{d:"m28.1001 51.0908v-11.2178h1.8047v11.2178zm.9023-13.1865c-.3349 0-.6254-.1162-.8715-.3486-.2461-.2393-.3692-.5264-.3692-.8614 0-.3349.1231-.6186.3692-.851.2461-.2393.5366-.3589.8715-.3589.3487 0 .646.1196.8921.3589.2461.2324.3692.5195.3692.8613 0 .3281-.1231.6118-.3692.8511-.2461.2324-.5434.3486-.8921.3486z"}),s.jsxRuntimeExports.jsx("path",{d:"m19.96 51.2549c-.752 0-1.4253-.1572-2.0201-.4717-.5947-.3213-1.0595-.7998-1.3945-1.4355-.335-.6426-.5024-1.4458-.5024-2.4097v-7.065h1.8047v6.9214c0 .9024.229 1.5996.687 2.0918s1.0903.7383 1.8969.7383c.5332 0 1.0152-.1128 1.4458-.3384.4375-.2324.7828-.5776 1.0357-1.0356.2529-.4649.3794-1.0357.3794-1.7124v-6.6651h1.8149v11.2178h-1.7534v-2.7173h.3486c-.3554 1.0323-.8579 1.7705-1.5073 2.2149-.6426.4443-1.3877.6665-2.2353.6665z"}),s.jsxRuntimeExports.jsx("path",{d:"m7.01953 51.3164c-1.36035 0-2.55664-.3247-3.58887-.9741-1.03222-.6563-1.84228-1.5723-2.43017-2.7481-.581056-1.1757-.871584-2.5532-.871584-4.1323 0-1.5928.290528-2.977.871584-4.1528.58105-1.1758 1.38428-2.0884 2.40967-2.7378 1.03222-.6563 2.21142-.9844 3.53759-.9844.80664 0 1.56202.1231 2.26612.3692.7041.246 1.33303.5947 1.88673 1.0459.5605.4511 1.0254.9877 1.3945 1.6098.3692.6153.6221 1.2988.7588 2.0508h-1.9585c-.1367-.499-.3384-.9502-.605-1.3535s-.5879-.7486-.96384-1.0357c-.36914-.2939-.78955-.5195-1.26123-.6767-.46484-.1572-.9707-.2359-1.51758-.2359-.94336 0-1.78759.2427-2.53271.7281-.74512.4853-1.33301 1.1826-1.76367 2.0918-.43067.9091-.646 2.0029-.646 3.2812 0 1.2647.21533 2.3516.646 3.2608.43066.9023 1.02197 1.5996 1.77392 2.0918.75879.4853 1.62354.728 2.59424.728.86133 0 1.62695-.1846 2.29688-.5537.66992-.376 1.19629-.9024 1.57909-1.5791.3897-.6768.5845-1.4732.5845-2.3892l.5845.082h-4.55278v-1.6713h5.84468v1.6611c0 1.2373-.2768 2.3242-.8305 3.2607-.5469.9297-1.2988 1.6577-2.2559 2.1841-.95018.5195-2.03367.7793-3.25047.7793z"})]})]})})}const m=["default","flat"];function d({variant:c="default",height:t=56}){return s.jsxRuntimeExports.jsxs(n.default,{direction:"row",preset:"start",style:{gap:t/3},children:[c==="flat"?s.jsxRuntimeExports.jsx(o.default,{width:t,height:t,fill:"var(--foreground-color)"}):s.jsxRuntimeExports.jsx(r.default,{size:t}),s.jsxRuntimeExports.jsx(e,{height:t-2,className:"kakadu-components-3861346893"}),s.jsxRuntimeExports.jsx(a.default,{children:"Kakadu Guide"})]})}exports.KakaduGuideLogoSvg=e;exports.default=d;exports.kakaduGuideLogoVariants=m;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as c } from "../jsx-runtime-B4hRZ52C.mjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import h from "../icons/kakadu-guide-icon.mjs";
|
|
3
|
+
import m from "../utilities/scale.mjs";
|
|
4
|
+
import o from "./flex.mjs";
|
|
5
|
+
import i from "./kakadu-guide-icon.mjs";
|
|
6
6
|
import r from "./aria-text.mjs";
|
|
7
7
|
function v({
|
|
8
8
|
fill: t,
|
|
@@ -10,14 +10,14 @@ function v({
|
|
|
10
10
|
}) {
|
|
11
11
|
const {
|
|
12
12
|
width: a,
|
|
13
|
-
height:
|
|
14
|
-
} =
|
|
13
|
+
height: d
|
|
14
|
+
} = m({
|
|
15
15
|
originalWidth: 110,
|
|
16
16
|
originalHeight: 52,
|
|
17
17
|
width: s.width,
|
|
18
18
|
height: s.height
|
|
19
19
|
});
|
|
20
|
-
return /* @__PURE__ */ c.jsx("svg", { fill: "none", viewBox: "0 0 110 52", xmlns: "http://www.w3.org/2000/svg", ...s, width: a, height:
|
|
20
|
+
return /* @__PURE__ */ c.jsx("svg", { fill: "none", viewBox: "0 0 110 52", xmlns: "http://www.w3.org/2000/svg", ...s, width: a, height: d, children: /* @__PURE__ */ c.jsxs("g", { fill: t ?? "currentColor", children: [
|
|
21
21
|
/* @__PURE__ */ c.jsx("path", { d: "m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z" }),
|
|
22
22
|
/* @__PURE__ */ c.jsx("path", { d: "m83.6751 7.23154v-7.22863441c2.8285-.07346819 5.2867 1.24257441 6.0656 4.37295441.1611.66727.2415 1.35149.2395 2.03795.017 6.02229.017 12.04559 0 18.06999v.4983c-1.4686-.0224-2.8286-.2971-4.0066-1.1723-.0767-.0743-.1774-.1187-.284-.1252-.1066-.0064-.2119.0255-.297.0901-4.7376 2.68-10.7937.6899-12.8624-4.3379-1.443-3.5136-.9066-6.8229 1.6697-9.64026 2.4773-2.70874 5.5931-3.53606 9.1591-2.6225zm0 8.66606c.0121-.3664-.0502-.7315-.1832-1.0731-.1331-.3416-.334-.6527-.5907-.9143s-.5638-.4683-.9027-.6077-.7026-.2085-1.0689-.2031c-.7409-.0059-1.4538.2829-1.9818.8028-.5281.52-.8281 1.2286-.834 1.9698-.0059.7413.2827 1.4546.8024 1.9829.5197.5284 1.2278.8286 1.9687.8345.3672.0047.7317-.0643 1.0719-.203.3401-.1388.649-.3444.9083-.6047.2592-.2603.4637-.5701.6012-.9109.1374-.3408.2052-.7057.1992-1.0732z" }),
|
|
23
23
|
/* @__PURE__ */ c.jsx("path", { d: "m91.8753 6.81641c1.8165.03194 3.435.44719 4.6929 1.79198.9983 1.09201 1.5656 2.51001 1.5962 3.98961.0575 1.0701 0 2.1466.0223 3.2231-.0244.6209.1648 1.2315.5361 1.7297.3713.4983.9021.854 1.5042 1.0077 1.542.4504 3.294-.7762 3.31-2.3701.029-2.9675 0-5.9318.019-8.89605v-.45678c2.995-.0543 5.578 1.37673 6.168 4.75943.407 2.2104.363 4.4802-.131 6.6729-.775 3.3252-3.875 6.0467-7.259 6.5866-1.835.2898-3.7145.0093-5.3849-.8035-1.6705-.8129-3.0514-2.119-3.9565-3.742-.744-1.3135-1.1304-2.7993-1.1205-4.3091 0-2.9802 0-5.9573 0-8.94392-.0096-.06708-.0032-.14375.0032-.23957z" }),
|
|
@@ -39,21 +39,21 @@ function v({
|
|
|
39
39
|
] })
|
|
40
40
|
] }) });
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
function
|
|
42
|
+
const z = ["default", "flat"];
|
|
43
|
+
function u({
|
|
44
44
|
variant: t = "default",
|
|
45
45
|
height: s = 56
|
|
46
46
|
}) {
|
|
47
|
-
return /* @__PURE__ */ c.jsxs(
|
|
47
|
+
return /* @__PURE__ */ c.jsxs(o, { direction: "row", preset: "start", style: {
|
|
48
48
|
gap: s / 3
|
|
49
49
|
}, children: [
|
|
50
|
-
t === "flat" ? /* @__PURE__ */ c.jsx(
|
|
50
|
+
t === "flat" ? /* @__PURE__ */ c.jsx(h, { width: s, height: s, fill: "var(--foreground-color)" }) : /* @__PURE__ */ c.jsx(i, { size: s }),
|
|
51
51
|
/* @__PURE__ */ c.jsx(v, { height: s - 2, className: "kakadu-components-3861346893" }),
|
|
52
52
|
/* @__PURE__ */ c.jsx(r, { children: "Kakadu Guide" })
|
|
53
53
|
] });
|
|
54
54
|
}
|
|
55
55
|
export {
|
|
56
56
|
v as KakaduGuideLogoSvg,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
u as default,
|
|
58
|
+
z as kakaduGuideLogoVariants
|
|
59
59
|
};
|
|
@@ -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 s=require("../jsx-runtime-BB_1_6y_.js"),e=require("react"),k=require("@kuma-ui/core"),P=require("react-dom"),$=require("../focus-trap-react-CkKg4ubd.js"),B=require("./text-button.js"),T=require("./decorators.js"),I=require("./flex.js"),D=require("./atom.js"),C=require("./text.js"),y=e.createContext({isVisible:!1,isInteractive:!1}),{Provider:z}=y;function _(){return e.useContext(y)}function G(){const{isInteractive:n,close:o}=_(),r=e.useCallback(()=>{o==null||o()},[o]);return s.jsxRuntimeExports.jsx("div",{className:"kakadu-components-2566044647",children:s.jsxRuntimeExports.jsx(B.default,{iconLeft:"times",label:"Close",disabled:!n,onClick:r})})}function J(n){return s.jsxRuntimeExports.jsx(I.default,{gap:2,...n})}function K({as:n,className:o,...r}){return s.jsxRuntimeExports.jsx(C.Heading,{...r,as:n??C.defaultHeadingElementType,className:k.cx("kakadu-components-4275938488",o)})}function Q({as:n,...o}){return s.jsxRuntimeExports.jsx(I.default,{direction:"row",gap:1,preset:"end",...o,as:n??D.defaultAtomElementType})}function U({root:n,outerDecorators:o=[],innerDecorators:r=[],label:f,maxWidth:c,className:m,isVisible:a,isFullWidth:l=!1,shouldCloseOnOutsideClick:i=!0,shouldCloseOnEscapePress:d=!0,showCloseButton:L=!0,onClose:p,children:N}){const v=e.useRef(null),R=e.useRef(null),[M,S]=e.useState(!1),[u,x]=e.useState(!1),b=e.useCallback(t=>{v.current=t,x(!1)},[]),E=e.useRef(null),g=e.useCallback(t=>{t&&(E.current=t)},[]),[h,q]=e.useState(a??!1),A=e.useMemo(()=>({isVisible:h,isInteractive:u,setInitialFocus:g,close:b}),[h,u,g,b]);e.useEffect(()=>{a&&(S(!0),q(!0))},[a]),e.useEffect(()=>{if(a){const t=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(t)}}x(!1)},[a]),e.useEffect(()=>{if(M&&!u){const t=setTimeout(()=>{p==null||p(v.current??void 0),q(!1)},370);return()=>{clearTimeout(t)}}},[M,u,p]),e.useEffect(()=>{const t=R.current;if(a&&i&&t){const j=H=>{t===H.target&&x(!1)};return t.addEventListener("click",j),()=>{t.removeEventListener("click",j)}}},[a,i]),e.useEffect(()=>{if(!a||!d)return;const t=j=>{j.key==="Escape"&&x(!1)};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[a,d]);const F=e.useMemo(()=>({initialFocus:()=>E.current??void 0,onActivate:()=>{var t;return(t=E.current)==null?void 0:t.focus()}}),[]),w=s.jsxRuntimeExports.jsx(T.default,{decorators:o,children:s.jsxRuntimeExports.jsx("div",{"aria-hidden":!u,style:{"--max-width":c?`${c}px`:void 0},className:k.cx("kakadu-components-4119461136",u&&"kakadu-components-2522346797",m),children:s.jsxRuntimeExports.jsx(T.default,{decorators:r,children:s.jsxRuntimeExports.jsx($.focusTrapReactExports.FocusTrap,{active:u,focusTrapOptions:F,children:s.jsxRuntimeExports.jsx("div",{ref:R,className:"kakadu-components-4011815997",children:s.jsxRuntimeExports.jsx("div",{role:"dialog","aria-modal":"true","aria-label":f??"Modal",className:k.cx("kakadu-components-3324483532",l&&"kakadu-components-3799971070",u&&"kakadu-components-968755580"),children:s.jsxRuntimeExports.jsxs(z,{value:A,children:[L?s.jsxRuntimeExports.jsx(G,{}):null,s.jsxRuntimeExports.jsx("div",{className:k.cx("kakadu-components-633990035",l&&"kakadu-components-171969824"),children:N})]})})})})})})});return n?P.createPortal(w,n):w}function V(n,o){const[r,f]=e.useState(!1),c=e.useRef(void 0),m=e.useCallback(async()=>(f(!0),new Promise(i=>{c.current=i})),[]),a=e.useCallback(i=>{var d;f(!1),(d=c.current)==null||d.call(c,i),c.current=void 0},[]),l=e.useMemo(()=>s.jsxRuntimeExports.jsx(n,{...o,isVisible:r,onClose:a}),[n,o,r,a]);return e.useMemo(()=>({isVisible:r,show:m,modal:l}),[r,m,l])}exports.ModalActions=Q;exports.ModalContent=J;exports.ModalHeading=K;exports.default=U;exports.useModal=V;exports.useModalContext=_;
|