@kakadu/components 1.7.15 → 2.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.
@@ -1,5 +1,6 @@
1
+ import { type ReactNode } from 'react';
1
2
  export type DatumProperties = {
2
- readonly title: string;
3
+ readonly title: ReactNode;
3
4
  readonly value: string;
4
5
  readonly hasCopyButton?: boolean;
5
6
  };
@@ -1,12 +1,18 @@
1
1
  import { type ChangeEvent, type HTMLProps, type ReactNode } from 'react';
2
2
  import { IconType } from '../icons/icon';
3
3
  export declare const errorParagraph: string;
4
- type LabelProperties = HTMLProps<HTMLLabelElement> & {
4
+ type LabelMessageType = Error | ReactNode | string;
5
+ type LabelMessageProperties<Key extends string> = ({
6
+ readonly [Property in Key]?: undefined;
7
+ } & {
8
+ readonly [Property in `${Key}Id`]?: undefined;
9
+ }) | ({
10
+ readonly [Property in Key]: LabelMessageType;
11
+ } & {
12
+ readonly [Property in `${Key}Id`]: string;
13
+ });
14
+ type LabelProperties = HTMLProps<HTMLLabelElement> & LabelMessageProperties<'error'> & LabelMessageProperties<'warning'> & LabelMessageProperties<'information'> & {
5
15
  readonly label: string;
6
- readonly error?: Error | ReactNode | string;
7
- readonly errorId?: string;
8
- readonly warning?: Error | ReactNode | string;
9
- readonly warningId?: string;
10
16
  readonly footnote?: ReactNode;
11
17
  readonly attachments?: ReactNode;
12
18
  };
@@ -19,7 +25,7 @@ export type SelectProperties = Omit<ControllerProperties & HTMLProps<HTMLSelectE
19
25
  readonly options: SelectOption[];
20
26
  readonly onChange?: (value: string, event: ChangeEvent<HTMLSelectElement>) => void;
21
27
  };
22
- export declare function Select({ label, options, error, warning, footnote, className, onChange, ...properties }: SelectProperties): import("react/jsx-runtime").JSX.Element;
28
+ export declare function Select({ label, options, error, warning, information, footnote, className, onChange, ...properties }: SelectProperties): import("react/jsx-runtime").JSX.Element;
23
29
  type InputType = HTMLInputElement | HTMLTextAreaElement;
24
30
  export type InputAction = {
25
31
  icon: IconType;
@@ -34,5 +40,5 @@ export type InputProperties = Omit<ControllerProperties & HTMLProps<InputType>,
34
40
  readonly isMultiline?: boolean;
35
41
  readonly onChange?: (value: string, event: ChangeEvent<InputType>) => void;
36
42
  };
37
- export default function Input({ type, label, error, warning, footnote, suggestion, actions, hasCopyButton, hasClearButton, isMultiline, onChange, className, ...properties }: InputProperties): import("react/jsx-runtime").JSX.Element;
43
+ export default function Input({ type, label, error, warning, information, footnote, suggestion, actions, hasCopyButton, hasClearButton, isMultiline, onChange, className, ...properties }: InputProperties): import("react/jsx-runtime").JSX.Element;
38
44
  export {};
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jsx-runtime-BB_1_6y_.js"),t=require("react"),u=require("@kuma-ui/core"),re=require("../icons/chevron-up.js"),W=require("../icons/icon.js"),U=require("../utilities/copy-to-clipboard.js"),M=require("../theme.js"),ie=require("../icons/sparkle.js"),ue=require("./button-tooltip.js"),P=require("./text-button.js"),g=require("./text.js"),xe=require("./collapsible.js"),z=require("./click-ripples.js"),D=require("./hover-gradient.js"),pe=require("./notification.js"),de=require("./notice.js"),me="kakadu-components-922159086",je="kakadu-components-2436386418",I="kakadu-components-1816130686",G="kakadu-components-4056037255",J=u.cx(G,"kakadu-components-3245407458"),ke=u.cx(G,"kakadu-components-1117160492");function fe({as:d,className:o,...x}){return e.jsxRuntimeExports.jsx(g.Span,{as:d??"span",...x,className:u.cx("kakadu-components-3574036749",o)})}function K({label:d,error:o,errorId:x,warning:c,warningId:R,footnote:s,attachments:l,className:m,children:j,...b}){const p=!!o,r=!!c,k=!!s;return e.jsxRuntimeExports.jsx("label",{...b,className:u.cx(me,m),children:e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-3146929190",children:[e.jsxRuntimeExports.jsx(g.Span,{className:u.cx(M.overflowProtectionStyles,je),children:e.jsxRuntimeExports.jsx("span",{children:d})}),e.jsxRuntimeExports.jsxs("span",{className:"kakadu-components-3298764637",children:[j,k?e.jsxRuntimeExports.jsx(fe,{className:"kakadu-components-613632806",children:s}):null,l]}),p||r?e.jsxRuntimeExports.jsx("div",{className:"kakadu-components-2927674627",children:p?e.jsxRuntimeExports.jsx(g.Paragraph,{id:x,className:J,children:o instanceof Error?o.message:o}):r?e.jsxRuntimeExports.jsx(g.Paragraph,{id:R,className:ke,children:c instanceof Error?c.message:c}):null}):null]})})}function he({label:d,options:o,error:x,warning:c,footnote:R,className:s,onChange:l,...m}){const j=t.useId(),b=`${j}-error`,p=`${j}-warning`,r=!!x,k=!r&&!!c,N=r?b:k?p:void 0,{value:h}=m,[y,v]=t.useState(""),S=h??y;t.useEffect(()=>{v(typeof h=="string"?h:"")},[h]);const _=t.useCallback(f=>{const{value:E}=f.target;v(E),l==null||l(E,f)},[l]);return e.jsxRuntimeExports.jsxs(K,{label:d,error:x,warning:c,footnote:R,children:[e.jsxRuntimeExports.jsx("select",{...m,value:S,"aria-invalid":r,"data-warning":k,"aria-describedby":N,className:u.cx(I,"kakadu-components-4228384787",s),onChange:_,children:o.map(f=>e.jsxRuntimeExports.jsx("option",{value:f.value,children:f.label},f.value))}),e.jsxRuntimeExports.jsx(re.default,{width:14,height:14,className:"kakadu-components-158931186"})]})}const Ee=40,T="kakadu-components-4233741488";function Re({type:d,label:o,error:x,warning:c,footnote:R,suggestion:s,actions:l=[],hasCopyButton:m,hasClearButton:j,isMultiline:b,onChange:p,className:r,...k}){const N=t.useRef(null),h=t.useRef(null),y=t.useRef(null),v=pe.useCreateNotification(),S=t.useId(),_=`${S}-error`,f=`${S}-warning`,{value:E,disabled:Q}=k,[X,L]=t.useState(""),i=E??X,[Y,Z]=t.useState(),ee=d==="textarea"||!!b;t.useLayoutEffect(()=>{typeof i=="string"&&y.current&&Z(y.current.scrollHeight)},[i]);const w=t.useMemo(()=>typeof i=="string"?`${i} `.split(`
2
- `):[],[i]),te=t.useMemo(()=>w.length,[w]),q=!!x,B=!q&&!!c,$=q?_:B?f:void 0;t.useEffect(()=>{L(typeof E=="string"?E:"")},[E]);const V=t.useCallback(n=>{const{value:a}=n.target;L(a),p==null||p(a,n)},[p]),se=t.useCallback(()=>{typeof i=="string"&&(U.default(i),v({type:de.NoticeType.success,children:"Copied to clipboard."}))},[i,v]),C=t.useCallback(n=>{var F;const a=h.current??N.current??void 0;if(a){const O=(F=Object.getOwnPropertyDescriptor(a instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,"value"))==null?void 0:F.set;if(O){O.call(a,n);const le=new Event("input",{bubbles:!0});a.dispatchEvent(le),a.focus();return}}throw new Error("Unable to set value.")},[]),ne=t.useCallback(()=>{C("")},[C]),[ae,oe]=t.useState(""),H=!!s&&ae!==s,ce=t.useCallback(()=>{if(s){try{C(s)}catch{U.default(s)}oe(s)}},[s,C]),A=t.useMemo(()=>l.length,[l]);return e.jsxRuntimeExports.jsxs(K,{label:o,error:x,warning:c,footnote:R,attachments:e.jsxRuntimeExports.jsx(xe.default,{isCollapsed:!H,children:H?e.jsxRuntimeExports.jsxs("button",{type:"button",className:u.cx(M.buttonResetStyles,M.overflowProtectionStyles,"kakadu-components-2355856341"),onClick:ce,children:[e.jsxRuntimeExports.jsx(ue.default,{label:"Apply suggestion"}),e.jsxRuntimeExports.jsx(ie.default,{width:13,height:13,className:"kakadu-components-1021263934"}),e.jsxRuntimeExports.jsx(g.Span,{className:"kakadu-components-1585874956",children:s}),e.jsxRuntimeExports.jsx(z.default,{className:"kakadu-components-3448565402"}),e.jsxRuntimeExports.jsx(D.default,{})]}):null}),style:{"--button-padding":`calc(${Ee*((m?1:0)+(j?1:0)+A)}px + 6px)`},children:[e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-3146929190",children:[ee?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("span",{ref:y,"aria-hidden":!0,className:u.cx(I,r,"kakadu-components-2033521835"),children:[w.map((n,a)=>e.jsxRuntimeExports.jsxs("span",{children:[n,te>1?e.jsxRuntimeExports.jsx("br",{}):null]},a))," "]}),e.jsxRuntimeExports.jsx("textarea",{...k,ref:h,rows:1,"aria-invalid":q,"data-warning":B,"aria-describedby":$,value:i,className:u.cx(I,r,"kakadu-components-2119524139"),style:{minHeight:Y},onChange:V})]}):e.jsxRuntimeExports.jsx("input",{...k,ref:N,type:d??"text",value:i,"aria-invalid":q,"data-warning":B,"aria-describedby":$,className:u.cx(I,r),onChange:V}),Q?null:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(z.default,{className:"kakadu-components-616311160"}),e.jsxRuntimeExports.jsx(D.default,{className:"kakadu-components-1962999040"})]})]}),m||j||A>0?e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-131986363",children:[l.map((n,a)=>e.jsxRuntimeExports.jsx(P.default,{iconLeft:n.icon,label:n.label,tooltip:n.label,className:T,onClick:n.onClick},n.label+a)),m?e.jsxRuntimeExports.jsx(P.default,{iconLeft:W.IconType.copy,label:"Copy",tooltip:"Copy",className:T,onClick:se}):null,j?e.jsxRuntimeExports.jsx(P.default,{iconLeft:W.IconType.times,label:"Clear",tooltip:"Clear",className:T,onClick:ne}):null]}):null]})}exports.Select=he;exports.default=Re;exports.errorParagraph=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jsx-runtime-BB_1_6y_.js"),t=require("react"),l=require("@kuma-ui/core"),xe=require("../icons/chevron-up.js"),J=require("../icons/icon.js"),K=require("../utilities/copy-to-clipboard.js"),H=require("../theme.js"),pe=require("../icons/sparkle.js"),de=require("./button-tooltip.js"),L=require("./text-button.js"),g=require("./text.js"),me=require("./collapsible.js"),Q=require("./click-ripples.js"),X=require("./hover-gradient.js"),je=require("./notification.js"),ke=require("./notice.js"),fe="kakadu-components-922159086",he="kakadu-components-25448712",w="kakadu-components-1923392328",A="kakadu-components-4056037255",Y=l.cx(A,"kakadu-components-3245407458"),Ee=l.cx(A,"kakadu-components-1117160492"),Re=l.cx(A,"kakadu-components-2261792866");function be({as:f,className:i,...p}){return e.jsxRuntimeExports.jsx(g.Span,{as:f??"span",...p,className:l.cx("kakadu-components-520991867",i)})}function Z({label:f,error:i,errorId:p,warning:u,warningId:R,information:h,informationId:s,footnote:o,attachments:E,className:d,children:v,...m}){const j=!!i,c=!!u,k=!!h,b=!!o;return e.jsxRuntimeExports.jsx("label",{...m,className:l.cx(fe,d),children:e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-3146929190",children:[e.jsxRuntimeExports.jsx(g.Span,{className:l.cx(H.overflowProtectionStyles,he),children:e.jsxRuntimeExports.jsx("span",{children:f})}),e.jsxRuntimeExports.jsxs("span",{className:"kakadu-components-3298764637",children:[v,b?e.jsxRuntimeExports.jsx(be,{className:"kakadu-components-613632806",children:o}):null,E]}),j||c||k?e.jsxRuntimeExports.jsx("div",{className:"kakadu-components-2927674627",children:j?e.jsxRuntimeExports.jsx(g.Paragraph,{id:p,className:Y,children:i instanceof Error?i.message:i}):c?e.jsxRuntimeExports.jsx(g.Paragraph,{id:R,className:Ee,children:u instanceof Error?u.message:u}):k?e.jsxRuntimeExports.jsx(g.Paragraph,{id:s,className:Re,children:h instanceof Error?h.message:h}):null}):null]})})}function ye({label:f,options:i,error:p,warning:u,information:R,footnote:h,className:s,onChange:o,...E}){const d=t.useId(),v=`${d}-error`,m=`${d}-warning`,j=`${d}-information`,c=!!p,k=!c&&!!u,b=!c&&!k&&!!R,N=c?v:k?m:b?j:void 0,{value:y}=E,[S,I]=t.useState(""),q=y??S;t.useEffect(()=>{I(typeof y=="string"?y:"")},[y]);const C=t.useCallback(r=>{const{value:B}=r.target;I(B),o==null||o(B,r)},[o]);return e.jsxRuntimeExports.jsxs(Z,{label:f,error:p,errorId:v,warning:u,warningId:m,information:R,informationId:j,footnote:h,children:[e.jsxRuntimeExports.jsx("select",{...E,value:q,"aria-invalid":c,"data-warning":k,"data-information":b,"aria-describedby":N,className:l.cx(w,"kakadu-components-4228384787",s),onChange:C,children:i.map(r=>e.jsxRuntimeExports.jsx("option",{value:r.value,children:r.label},r.value))}),e.jsxRuntimeExports.jsx(xe.default,{width:14,height:14,className:"kakadu-components-158931186"})]})}const ve=40,V="kakadu-components-4233741488";function ge({type:f,label:i,error:p,warning:u,information:R,footnote:h,suggestion:s,actions:o=[],hasCopyButton:E,hasClearButton:d,isMultiline:v,onChange:m,className:j,...c}){const k=t.useRef(null),b=t.useRef(null),N=t.useRef(null),y=je.useCreateNotification(),S=t.useId(),I=`${S}-error`,q=`${S}-warning`,C=`${S}-information`,{value:r,disabled:B}=c,[ee,F]=t.useState(""),x=r??ee,[te,se]=t.useState(),ne=f==="textarea"||!!v;t.useLayoutEffect(()=>{typeof x=="string"&&N.current&&se(N.current.scrollHeight)},[x]);const T=t.useMemo(()=>typeof x=="string"?`${x} `.split(`
2
+ `):[],[x]),ae=t.useMemo(()=>T.length,[T]),_=!!p,$=!_&&!!u,M=!!R,O=_?I:$?q:M?C:void 0;t.useEffect(()=>{F(typeof r=="string"?r:"")},[r]);const W=t.useCallback(n=>{const{value:a}=n.target;F(a),m==null||m(a,n)},[m]),oe=t.useCallback(()=>{typeof x=="string"&&(K.default(x),y({type:ke.NoticeType.success,children:"Copied to clipboard."}))},[x,y]),P=t.useCallback(n=>{var D;const a=b.current??k.current??void 0;if(a){const G=(D=Object.getOwnPropertyDescriptor(a instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,"value"))==null?void 0:D.set;if(G){G.call(a,n);const ue=new Event("input",{bubbles:!0});a.dispatchEvent(ue),a.focus();return}}throw new Error("Unable to set value.")},[]),ce=t.useCallback(()=>{P("")},[P]),[re,le]=t.useState(""),U=!!s&&re!==s,ie=t.useCallback(()=>{if(s){try{P(s)}catch{K.default(s)}le(s)}},[s,P]),z=t.useMemo(()=>o.length,[o]);return e.jsxRuntimeExports.jsxs(Z,{label:i,error:p,errorId:I,warning:u,warningId:q,information:R,informationId:C,footnote:h,attachments:e.jsxRuntimeExports.jsx(me.default,{isCollapsed:!U,children:U?e.jsxRuntimeExports.jsxs("button",{type:"button",className:l.cx(H.buttonResetStyles,H.overflowProtectionStyles,"kakadu-components-2355856341"),onClick:ie,children:[e.jsxRuntimeExports.jsx(de.default,{label:"Apply suggestion"}),e.jsxRuntimeExports.jsx(pe.default,{width:13,height:13,className:"kakadu-components-1021263934"}),e.jsxRuntimeExports.jsx(g.Span,{className:"kakadu-components-1585874956",children:s}),e.jsxRuntimeExports.jsx(Q.default,{className:"kakadu-components-3448565402"}),e.jsxRuntimeExports.jsx(X.default,{})]}):null}),style:{"--button-padding":`calc(${ve*((E?1:0)+(d?1:0)+z)}px + 6px)`},children:[e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-3146929190",children:[ne?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("span",{ref:N,"aria-hidden":!0,className:l.cx(w,j,"kakadu-components-2033521835"),children:[T.map((n,a)=>e.jsxRuntimeExports.jsxs("span",{children:[n,ae>1?e.jsxRuntimeExports.jsx("br",{}):null]},a))," "]}),e.jsxRuntimeExports.jsx("textarea",{...c,ref:b,rows:1,"aria-invalid":_,"data-warning":$,"data-information":M,"aria-describedby":O,value:x,className:l.cx(w,j,"kakadu-components-2119524139"),style:{minHeight:te},onChange:W})]}):e.jsxRuntimeExports.jsx("input",{...c,ref:k,type:f??"text",value:x,"aria-invalid":_,"data-warning":$,"data-information":M,"aria-describedby":O,className:l.cx(w,j),onChange:W}),B?null:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(Q.default,{className:"kakadu-components-616311160"}),e.jsxRuntimeExports.jsx(X.default,{className:"kakadu-components-1962999040"})]})]}),E||d||z>0?e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-131986363",children:[o.map((n,a)=>e.jsxRuntimeExports.jsx(L.default,{iconLeft:n.icon,label:n.label,tooltip:n.label,className:V,onClick:n.onClick},n.label+a)),E?e.jsxRuntimeExports.jsx(L.default,{iconLeft:J.IconType.copy,label:"Copy",tooltip:"Copy",className:V,onClick:oe}):null,d?e.jsxRuntimeExports.jsx(L.default,{iconLeft:J.IconType.times,label:"Clear",tooltip:"Clear",className:V,onClick:ce}):null]}):null]})}exports.Select=ye;exports.default=ge;exports.errorParagraph=Y;
@@ -1,191 +1,195 @@
1
1
  import { j as e } from "../jsx-runtime-B4hRZ52C.mjs";
2
- import { useRef as P, useId as X, useState as I, useLayoutEffect as pe, useMemo as R, useEffect as Y, useCallback as b } from "react";
3
- import { cx as i } from "@kuma-ui/core";
4
- import ke from "../icons/chevron-up.mjs";
5
- import { IconType as G } from "../icons/icon.mjs";
6
- import q from "../utilities/copy-to-clipboard.mjs";
7
- import { buttonResetStyles as fe, overflowProtectionStyles as Z } from "../theme.mjs";
8
- import xe from "../icons/sparkle.mjs";
9
- import he from "./button-tooltip.mjs";
10
- import V from "./text-button.mjs";
11
- import { Span as M, Paragraph as J } from "./text.mjs";
12
- import je from "./collapsible.mjs";
13
- import K from "./click-ripples.mjs";
14
- import Q from "./hover-gradient.mjs";
15
- import { useCreateNotification as be } from "./notification.mjs";
16
- import { NoticeType as ve } from "./notice.mjs";
17
- const ye = "kakadu-components-922159086", ge = "kakadu-components-2436386418", w = "kakadu-components-1816130686", _ = "kakadu-components-4056037255", Ne = i(_, "kakadu-components-3245407458"), Se = i(_, "kakadu-components-1117160492");
18
- function Ee({
19
- as: m,
20
- className: s,
21
- ...d
2
+ import { useRef as M, useId as ne, useState as P, useLayoutEffect as he, useMemo as A, useEffect as ae, useCallback as N } from "react";
3
+ import { cx as c } from "@kuma-ui/core";
4
+ import xe from "../icons/chevron-up.mjs";
5
+ import { IconType as Y } from "../icons/icon.mjs";
6
+ import Z from "../utilities/copy-to-clipboard.mjs";
7
+ import { buttonResetStyles as je, overflowProtectionStyles as te } from "../theme.mjs";
8
+ import be from "../icons/sparkle.mjs";
9
+ import ve from "./button-tooltip.mjs";
10
+ import F from "./text-button.mjs";
11
+ import { Span as U, Paragraph as W } from "./text.mjs";
12
+ import ye from "./collapsible.mjs";
13
+ import _ from "./click-ripples.mjs";
14
+ import ee from "./hover-gradient.mjs";
15
+ import { useCreateNotification as ge } from "./notification.mjs";
16
+ import { NoticeType as Ne } from "./notice.mjs";
17
+ const Ie = "kakadu-components-922159086", Se = "kakadu-components-25448712", $ = "kakadu-components-1923392328", z = "kakadu-components-4056037255", Be = c(z, "kakadu-components-3245407458"), Ee = c(z, "kakadu-components-1117160492"), Ce = c(z, "kakadu-components-2261792866");
18
+ function we({
19
+ as: h,
20
+ className: r,
21
+ ...m
22
22
  }) {
23
- return /* @__PURE__ */ e.jsx(M, { as: m ?? "span", ...d, className: i("kakadu-components-3574036749", s) });
23
+ return /* @__PURE__ */ e.jsx(U, { as: h ?? "span", ...m, className: c("kakadu-components-520991867", r) });
24
24
  }
25
- function ee({
26
- label: m,
27
- error: s,
28
- errorId: d,
29
- warning: o,
30
- warningId: v,
31
- footnote: n,
32
- attachments: l,
33
- className: p,
34
- children: k,
35
- ...y
25
+ function se({
26
+ label: h,
27
+ error: r,
28
+ errorId: m,
29
+ warning: i,
30
+ warningId: b,
31
+ information: x,
32
+ informationId: n,
33
+ footnote: s,
34
+ attachments: j,
35
+ className: u,
36
+ children: g,
37
+ ...p
36
38
  }) {
37
- const u = !!s, c = !!o, f = !!n;
38
- return /* @__PURE__ */ e.jsx("label", { ...y, className: i(ye, p), children: /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-3146929190", children: [
39
- /* @__PURE__ */ e.jsx(M, { className: i(Z, ge), children: /* @__PURE__ */ e.jsx("span", { children: m }) }),
39
+ const k = !!r, o = !!i, f = !!x, v = !!s;
40
+ return /* @__PURE__ */ e.jsx("label", { ...p, className: c(Ie, u), children: /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-3146929190", children: [
41
+ /* @__PURE__ */ e.jsx(U, { className: c(te, Se), children: /* @__PURE__ */ e.jsx("span", { children: h }) }),
40
42
  /* @__PURE__ */ e.jsxs("span", { className: "kakadu-components-3298764637", children: [
41
- k,
42
- f ? /* @__PURE__ */ e.jsx(Ee, { className: "kakadu-components-613632806", children: n }) : null,
43
- l
43
+ g,
44
+ v ? /* @__PURE__ */ e.jsx(we, { className: "kakadu-components-613632806", children: s }) : null,
45
+ j
44
46
  ] }),
45
- u || c ? /* @__PURE__ */ e.jsx("div", { className: "kakadu-components-2927674627", children: u ? /* @__PURE__ */ e.jsx(J, { id: d, className: Ne, children: s instanceof Error ? s.message : s }) : c ? /* @__PURE__ */ e.jsx(J, { id: v, className: Se, children: o instanceof Error ? o.message : o }) : null }) : null
47
+ k || o || f ? /* @__PURE__ */ e.jsx("div", { className: "kakadu-components-2927674627", children: k ? /* @__PURE__ */ e.jsx(W, { id: m, className: Be, children: r instanceof Error ? r.message : r }) : o ? /* @__PURE__ */ e.jsx(W, { id: b, className: Ee, children: i instanceof Error ? i.message : i }) : f ? /* @__PURE__ */ e.jsx(W, { id: n, className: Ce, children: x instanceof Error ? x.message : x }) : null }) : null
46
48
  ] }) });
47
49
  }
48
- function ze({
49
- label: m,
50
- options: s,
51
- error: d,
52
- warning: o,
53
- footnote: v,
50
+ function Je({
51
+ label: h,
52
+ options: r,
53
+ error: m,
54
+ warning: i,
55
+ information: b,
56
+ footnote: x,
54
57
  className: n,
55
- onChange: l,
56
- ...p
58
+ onChange: s,
59
+ ...j
57
60
  }) {
58
- const k = X(), y = `${k}-error`, u = `${k}-warning`, c = !!d, f = !c && !!o, S = c ? y : f ? u : void 0, {
59
- value: h
60
- } = p, [g, N] = I(""), E = h ?? g;
61
- Y(() => {
62
- N(typeof h == "string" ? h : "");
63
- }, [h]);
64
- const T = b((x) => {
61
+ const u = ne(), g = `${u}-error`, p = `${u}-warning`, k = `${u}-information`, o = !!m, f = !o && !!i, v = !o && !f && !!b, I = o ? g : f ? p : v ? k : void 0, {
62
+ value: y
63
+ } = j, [S, B] = P(""), E = y ?? S;
64
+ ae(() => {
65
+ B(typeof y == "string" ? y : "");
66
+ }, [y]);
67
+ const C = N((l) => {
65
68
  const {
66
- value: j
67
- } = x.target;
68
- N(j), l == null || l(j, x);
69
- }, [l]);
70
- return /* @__PURE__ */ e.jsxs(ee, { label: m, error: d, warning: o, footnote: v, children: [
71
- /* @__PURE__ */ e.jsx("select", { ...p, value: E, "aria-invalid": c, "data-warning": f, "aria-describedby": S, className: i(w, "kakadu-components-4228384787", n), onChange: T, children: s.map((x) => /* @__PURE__ */ e.jsx("option", { value: x.value, children: x.label }, x.value)) }),
72
- /* @__PURE__ */ e.jsx(ke, { width: 14, height: 14, className: "kakadu-components-158931186" })
69
+ value: w
70
+ } = l.target;
71
+ B(w), s == null || s(w, l);
72
+ }, [s]);
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": o, "data-warning": f, "data-information": v, "aria-describedby": I, className: c($, "kakadu-components-4228384787", n), onChange: C, children: r.map((l) => /* @__PURE__ */ e.jsx("option", { value: l.value, children: l.label }, l.value)) }),
75
+ /* @__PURE__ */ e.jsx(xe, { width: 14, height: 14, className: "kakadu-components-158931186" })
73
76
  ] });
74
77
  }
75
- const Ce = 40, $ = "kakadu-components-4233741488";
76
- function De({
77
- type: m,
78
- label: s,
79
- error: d,
80
- warning: o,
81
- footnote: v,
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,
82
86
  suggestion: n,
83
- actions: l = [],
84
- hasCopyButton: p,
85
- hasClearButton: k,
86
- isMultiline: y,
87
- onChange: u,
88
- className: c,
89
- ...f
87
+ actions: s = [],
88
+ hasCopyButton: j,
89
+ hasClearButton: u,
90
+ isMultiline: g,
91
+ onChange: p,
92
+ className: k,
93
+ ...o
90
94
  }) {
91
- const S = P(null), h = P(null), g = P(null), N = be(), E = X(), T = `${E}-error`, x = `${E}-warning`, {
92
- value: j,
93
- disabled: ne
94
- } = f, [te, A] = I(""), r = j ?? te, [ae, se] = I(), oe = m === "textarea" || !!y;
95
- pe(() => {
96
- typeof r == "string" && g.current && se(g.current.scrollHeight);
97
- }, [r]);
98
- const L = R(() => typeof r == "string" ? `${r} `.split(`
99
- `) : [], [r]), le = R(() => L.length, [L]), C = !!d, H = !C && !!o, F = C ? T : H ? x : void 0;
100
- Y(() => {
101
- A(typeof j == "string" ? j : "");
102
- }, [j]);
103
- const W = b((t) => {
95
+ const f = M(null), v = M(null), I = M(null), y = ge(), S = ne(), B = `${S}-error`, E = `${S}-warning`, C = `${S}-information`, {
96
+ value: l,
97
+ disabled: w
98
+ } = o, [oe, D] = P(""), d = l ?? oe, [le, ce] = P(), re = h === "textarea" || !!g;
99
+ he(() => {
100
+ typeof d == "string" && I.current && ce(I.current.scrollHeight);
101
+ }, [d]);
102
+ const H = A(() => typeof d == "string" ? `${d} `.split(`
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 l == "string" ? l : "");
106
+ }, [l]);
107
+ const q = N((a) => {
104
108
  const {
105
- value: a
106
- } = t.target;
107
- A(a), u == null || u(a, t);
108
- }, [u]), ce = b(() => {
109
- typeof r == "string" && (q(r), N({
110
- type: ve.success,
109
+ value: t
110
+ } = a.target;
111
+ D(t), p == null || p(t, a);
112
+ }, [p]), de = N(() => {
113
+ typeof d == "string" && (Z(d), y({
114
+ type: Ne.success,
111
115
  children: "Copied to clipboard."
112
116
  }));
113
- }, [r, N]), B = b((t) => {
114
- var z;
115
- const a = h.current ?? S.current ?? void 0;
116
- if (a) {
117
- const D = (z = Object.getOwnPropertyDescriptor(a instanceof HTMLTextAreaElement ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype, "value")) == null ? void 0 : z.set;
118
- if (D) {
119
- D.call(a, t);
120
- const me = new Event("input", {
117
+ }, [d, y]), L = N((a) => {
118
+ var Q;
119
+ const t = v.current ?? f.current ?? void 0;
120
+ if (t) {
121
+ const X = (Q = Object.getOwnPropertyDescriptor(t instanceof HTMLTextAreaElement ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype, "value")) == null ? void 0 : Q.set;
122
+ if (X) {
123
+ X.call(t, a);
124
+ const fe = new Event("input", {
121
125
  bubbles: !0
122
126
  });
123
- a.dispatchEvent(me), a.focus();
127
+ t.dispatchEvent(fe), t.focus();
124
128
  return;
125
129
  }
126
130
  }
127
131
  throw new Error("Unable to set value.");
128
- }, []), re = b(() => {
129
- B("");
130
- }, [B]), [ie, de] = I(""), O = !!n && ie !== n, ue = b(() => {
132
+ }, []), me = N(() => {
133
+ L("");
134
+ }, [L]), [ue, pe] = P(""), J = !!n && ue !== n, ke = N(() => {
131
135
  if (n) {
132
136
  try {
133
- B(n);
137
+ L(n);
134
138
  } catch {
135
- q(n);
139
+ Z(n);
136
140
  }
137
- de(n);
141
+ pe(n);
138
142
  }
139
- }, [n, B]), U = R(() => l.length, [l]);
140
- return /* @__PURE__ */ e.jsxs(ee, { label: s, error: d, warning: o, footnote: v, attachments: /* @__PURE__ */ e.jsx(je, { isCollapsed: !O, children: O ? /* @__PURE__ */ e.jsxs("button", { type: "button", className: i(fe, Z, "kakadu-components-2355856341"), onClick: ue, children: [
141
- /* @__PURE__ */ e.jsx(he, { label: "Apply suggestion" }),
142
- /* @__PURE__ */ e.jsx(xe, { width: 13, height: 13, className: "kakadu-components-1021263934" }),
143
- /* @__PURE__ */ e.jsx(M, { className: "kakadu-components-1585874956", children: n }),
144
- /* @__PURE__ */ e.jsx(K, { className: "kakadu-components-3448565402" }),
145
- /* @__PURE__ */ e.jsx(Q, {})
143
+ }, [n, L]), K = A(() => s.length, [s]);
144
+ return /* @__PURE__ */ e.jsxs(se, { label: r, error: m, errorId: B, warning: i, warningId: E, information: b, informationId: C, footnote: x, attachments: /* @__PURE__ */ e.jsx(ye, { isCollapsed: !J, children: J ? /* @__PURE__ */ e.jsxs("button", { type: "button", className: c(je, te, "kakadu-components-2355856341"), onClick: ke, children: [
145
+ /* @__PURE__ */ e.jsx(ve, { label: "Apply suggestion" }),
146
+ /* @__PURE__ */ e.jsx(be, { width: 13, height: 13, className: "kakadu-components-1021263934" }),
147
+ /* @__PURE__ */ e.jsx(U, { className: "kakadu-components-1585874956", children: n }),
148
+ /* @__PURE__ */ e.jsx(_, { className: "kakadu-components-3448565402" }),
149
+ /* @__PURE__ */ e.jsx(ee, {})
146
150
  ] }) : null }), style: {
147
- "--button-padding": `calc(${Ce * ((p ? 1 : 0) + (k ? 1 : 0) + U)}px + 6px)`
151
+ "--button-padding": `calc(${Te * ((j ? 1 : 0) + (u ? 1 : 0) + K)}px + 6px)`
148
152
  }, children: [
149
153
  /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-3146929190", children: [
150
- oe ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
151
- /* @__PURE__ */ e.jsxs("span", { ref: g, "aria-hidden": !0, className: i(w, c, "kakadu-components-2033521835"), children: [
152
- L.map((t, a) => (
154
+ re ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
155
+ /* @__PURE__ */ e.jsxs("span", { ref: I, "aria-hidden": !0, className: c($, k, "kakadu-components-2033521835"), children: [
156
+ H.map((a, t) => (
153
157
  // eslint-disable-next-line react/no-array-index-key
154
158
  /* @__PURE__ */ e.jsxs("span", { children: [
155
- t,
156
- le > 1 ? /* @__PURE__ */ e.jsx("br", {}) : null
157
- ] }, a)
159
+ a,
160
+ ie > 1 ? /* @__PURE__ */ e.jsx("br", {}) : null
161
+ ] }, t)
158
162
  )),
159
163
  " "
160
164
  ] }),
161
- /* @__PURE__ */ e.jsx("textarea", { ...f, ref: h, rows: 1, "aria-invalid": C, "data-warning": H, "aria-describedby": F, value: r, className: i(w, c, "kakadu-components-2119524139"), style: {
162
- minHeight: ae
163
- }, onChange: W })
164
- ] }) : /* @__PURE__ */ e.jsx("input", { ...f, ref: S, type: m ?? "text", value: r, "aria-invalid": C, "data-warning": H, "aria-describedby": F, className: i(w, c), onChange: W }),
165
- ne ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
166
- /* @__PURE__ */ e.jsx(K, { className: "kakadu-components-616311160" }),
167
- /* @__PURE__ */ e.jsx(Q, { className: "kakadu-components-1962999040" })
165
+ /* @__PURE__ */ e.jsx("textarea", { ...o, ref: v, rows: 1, "aria-invalid": T, "data-warning": R, "data-information": V, "aria-describedby": G, value: d, className: c($, k, "kakadu-components-2119524139"), style: {
166
+ minHeight: le
167
+ }, onChange: q })
168
+ ] }) : /* @__PURE__ */ e.jsx("input", { ...o, ref: f, type: h ?? "text", value: d, "aria-invalid": T, "data-warning": R, "data-information": V, "aria-describedby": G, className: c($, k), onChange: q }),
169
+ w ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
170
+ /* @__PURE__ */ e.jsx(_, { className: "kakadu-components-616311160" }),
171
+ /* @__PURE__ */ e.jsx(ee, { className: "kakadu-components-1962999040" })
168
172
  ] })
169
173
  ] }),
170
- p || k || U > 0 ? /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-131986363", children: [
171
- l.map((t, a) => /* @__PURE__ */ e.jsx(
172
- V,
174
+ j || u || K > 0 ? /* @__PURE__ */ e.jsxs("div", { className: "kakadu-components-131986363", children: [
175
+ s.map((a, t) => /* @__PURE__ */ e.jsx(
176
+ F,
173
177
  {
174
- iconLeft: t.icon,
175
- label: t.label,
176
- tooltip: t.label,
177
- className: $,
178
- onClick: t.onClick
178
+ iconLeft: a.icon,
179
+ label: a.label,
180
+ tooltip: a.label,
181
+ className: O,
182
+ onClick: a.onClick
179
183
  },
180
- t.label + a
184
+ a.label + t
181
185
  )),
182
- p ? /* @__PURE__ */ e.jsx(V, { iconLeft: G.copy, label: "Copy", tooltip: "Copy", className: $, onClick: ce }) : null,
183
- k ? /* @__PURE__ */ e.jsx(V, { iconLeft: G.times, label: "Clear", tooltip: "Clear", className: $, onClick: re }) : null
186
+ j ? /* @__PURE__ */ e.jsx(F, { iconLeft: Y.copy, label: "Copy", tooltip: "Copy", className: O, onClick: de }) : null,
187
+ u ? /* @__PURE__ */ e.jsx(F, { iconLeft: Y.times, label: "Clear", tooltip: "Clear", className: O, onClick: me }) : null
184
188
  ] }) : null
185
189
  ] });
186
190
  }
187
191
  export {
188
- ze as Select,
189
- De as default,
190
- Ne as errorParagraph
192
+ Je as Select,
193
+ Ke as default,
194
+ Be as errorParagraph
191
195
  };
@@ -1 +1 @@
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.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:u}=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:u,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(o.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"),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,9 +1,9 @@
1
1
  import { j as c } from "../jsx-runtime-B4hRZ52C.mjs";
2
- import m from "../icons/kakadu-guide.mjs";
2
+ import m from "../icons/kakadu-guide-icon.mjs";
3
3
  import d from "../utilities/scale.mjs";
4
4
  import i, { FlexAlignment as l } from "./flex.mjs";
5
- import r from "./kakadu-guide-icon.mjs";
6
- import o from "./aria-text.mjs";
5
+ import o from "./kakadu-guide-icon.mjs";
6
+ import r from "./aria-text.mjs";
7
7
  function v({
8
8
  fill: t,
9
9
  ...s
@@ -47,9 +47,9 @@ function f({
47
47
  return /* @__PURE__ */ c.jsxs(i, { direction: "row", alignment: l.start, style: {
48
48
  gap: s / 3
49
49
  }, children: [
50
- t === "flat" ? /* @__PURE__ */ c.jsx(m, { width: s, height: s, fill: "var(--foreground-color)" }) : /* @__PURE__ */ c.jsx(r, { size: s }),
50
+ t === "flat" ? /* @__PURE__ */ c.jsx(m, { width: s, height: s, fill: "var(--foreground-color)" }) : /* @__PURE__ */ c.jsx(o, { size: s }),
51
51
  /* @__PURE__ */ c.jsx(v, { height: s - 2, className: "kakadu-components-3861346893" }),
52
- /* @__PURE__ */ c.jsx(o, { children: "Kakadu Guide" })
52
+ /* @__PURE__ */ c.jsx(r, { children: "Kakadu Guide" })
53
53
  ] });
54
54
  }
55
55
  export {