@kakadu/components 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/datum.d.ts +2 -1
- package/build/components/input.d.ts +13 -7
- package/build/components/input.js +2 -2
- package/build/components/input.mjs +148 -144
- package/build/components/kakadu-academy-logo.d.ts +2 -0
- package/build/components/kakadu-academy-logo.js +1 -0
- package/build/components/kakadu-academy-logo.mjs +43 -0
- package/build/components.css +1 -1
- package/build/index.d.ts +2 -0
- package/build/index.js +1 -1
- package/build/index.mjs +159 -157
- package/package.json +1 -1
|
@@ -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
|
|
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"),
|
|
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"),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
|
|
3
|
-
import { cx as
|
|
4
|
-
import
|
|
5
|
-
import { IconType as
|
|
6
|
-
import
|
|
7
|
-
import { buttonResetStyles as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Span as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { useCreateNotification as
|
|
16
|
-
import { NoticeType as
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
as:
|
|
20
|
-
className:
|
|
21
|
-
...
|
|
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(
|
|
23
|
+
return /* @__PURE__ */ e.jsx(U, { as: h ?? "span", ...m, className: c("kakadu-components-520991867", r) });
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
label:
|
|
27
|
-
error:
|
|
28
|
-
errorId:
|
|
29
|
-
warning:
|
|
30
|
-
warningId:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
38
|
-
return /* @__PURE__ */ e.jsx("label", { ...
|
|
39
|
-
/* @__PURE__ */ e.jsx(
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
g,
|
|
44
|
+
v ? /* @__PURE__ */ e.jsx(we, { className: "kakadu-components-613632806", children: s }) : null,
|
|
45
|
+
j
|
|
44
46
|
] }),
|
|
45
|
-
|
|
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
|
|
49
|
-
label:
|
|
50
|
-
options:
|
|
51
|
-
error:
|
|
52
|
-
warning:
|
|
53
|
-
|
|
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:
|
|
56
|
-
...
|
|
58
|
+
onChange: s,
|
|
59
|
+
...j
|
|
57
60
|
}) {
|
|
58
|
-
const
|
|
59
|
-
value:
|
|
60
|
-
} =
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, [
|
|
64
|
-
const
|
|
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:
|
|
67
|
-
} =
|
|
68
|
-
|
|
69
|
-
}, [
|
|
70
|
-
return /* @__PURE__ */ e.jsxs(
|
|
71
|
-
/* @__PURE__ */ e.jsx("select", { ...
|
|
72
|
-
/* @__PURE__ */ e.jsx(
|
|
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
|
|
76
|
-
function
|
|
77
|
-
type:
|
|
78
|
-
label:
|
|
79
|
-
error:
|
|
80
|
-
warning:
|
|
81
|
-
|
|
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:
|
|
84
|
-
hasCopyButton:
|
|
85
|
-
hasClearButton:
|
|
86
|
-
isMultiline:
|
|
87
|
-
onChange:
|
|
88
|
-
className:
|
|
89
|
-
...
|
|
87
|
+
actions: s = [],
|
|
88
|
+
hasCopyButton: j,
|
|
89
|
+
hasClearButton: u,
|
|
90
|
+
isMultiline: g,
|
|
91
|
+
onChange: p,
|
|
92
|
+
className: k,
|
|
93
|
+
...o
|
|
90
94
|
}) {
|
|
91
|
-
const
|
|
92
|
-
value:
|
|
93
|
-
disabled:
|
|
94
|
-
} =
|
|
95
|
-
|
|
96
|
-
typeof
|
|
97
|
-
}, [
|
|
98
|
-
const
|
|
99
|
-
`) : [], [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}, [
|
|
103
|
-
const
|
|
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:
|
|
106
|
-
} =
|
|
107
|
-
|
|
108
|
-
}, [
|
|
109
|
-
typeof
|
|
110
|
-
type:
|
|
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
|
-
}, [
|
|
114
|
-
var
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
117
|
-
const
|
|
118
|
-
if (
|
|
119
|
-
|
|
120
|
-
const
|
|
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
|
-
|
|
127
|
+
t.dispatchEvent(fe), t.focus();
|
|
124
128
|
return;
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
131
|
throw new Error("Unable to set value.");
|
|
128
|
-
}, []),
|
|
129
|
-
|
|
130
|
-
}, [
|
|
132
|
+
}, []), me = N(() => {
|
|
133
|
+
L("");
|
|
134
|
+
}, [L]), [ue, pe] = P(""), J = !!n && ue !== n, ke = N(() => {
|
|
131
135
|
if (n) {
|
|
132
136
|
try {
|
|
133
|
-
|
|
137
|
+
L(n);
|
|
134
138
|
} catch {
|
|
135
|
-
|
|
139
|
+
Z(n);
|
|
136
140
|
}
|
|
137
|
-
|
|
141
|
+
pe(n);
|
|
138
142
|
}
|
|
139
|
-
}, [n,
|
|
140
|
-
return /* @__PURE__ */ e.jsxs(
|
|
141
|
-
/* @__PURE__ */ e.jsx(
|
|
142
|
-
/* @__PURE__ */ e.jsx(
|
|
143
|
-
/* @__PURE__ */ e.jsx(
|
|
144
|
-
/* @__PURE__ */ e.jsx(
|
|
145
|
-
/* @__PURE__ */ e.jsx(
|
|
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(${
|
|
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
|
-
|
|
151
|
-
/* @__PURE__ */ e.jsxs("span", { ref:
|
|
152
|
-
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
] },
|
|
159
|
+
a,
|
|
160
|
+
ie > 1 ? /* @__PURE__ */ e.jsx("br", {}) : null
|
|
161
|
+
] }, t)
|
|
158
162
|
)),
|
|
159
163
|
" "
|
|
160
164
|
] }),
|
|
161
|
-
/* @__PURE__ */ e.jsx("textarea", { ...
|
|
162
|
-
minHeight:
|
|
163
|
-
}, onChange:
|
|
164
|
-
] }) : /* @__PURE__ */ e.jsx("input", { ...
|
|
165
|
-
|
|
166
|
-
/* @__PURE__ */ e.jsx(
|
|
167
|
-
/* @__PURE__ */ e.jsx(
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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:
|
|
175
|
-
label:
|
|
176
|
-
tooltip:
|
|
177
|
-
className:
|
|
178
|
-
onClick:
|
|
178
|
+
iconLeft: a.icon,
|
|
179
|
+
label: a.label,
|
|
180
|
+
tooltip: a.label,
|
|
181
|
+
className: O,
|
|
182
|
+
onClick: a.onClick
|
|
179
183
|
},
|
|
180
|
-
|
|
184
|
+
a.label + t
|
|
181
185
|
)),
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
192
|
+
Je as Select,
|
|
193
|
+
Ke as default,
|
|
194
|
+
Be as errorParagraph
|
|
191
195
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../jsx-runtime-BB_1_6y_.js"),e=require("../utilities/scale.js");function i({fill:c,...t}){const{width:x,height:h}=e.default({originalWidth:120,originalHeight:59,width:t.width,height:t.height});return s.jsxRuntimeExports.jsx("svg",{fill:"none",viewBox:"0 0 120 59",width:x,height:h,xmlns:"http://www.w3.org/2000/svg",children:s.jsxRuntimeExports.jsxs("g",{fill:c??"currentColor",children:[s.jsxRuntimeExports.jsx("path",{d:"m91.2012 7.831v-7.82785355c3.063-.07955845 5.7249 1.34557355 6.5685 4.73545355.1744.72258.2615 1.46352.2592 2.20688.0185 6.52152.0185 13.04412 0 19.56792v.5396c-1.5902-.0242-3.0629-.3217-4.3386-1.2695-.083-.0805-.1922-.1285-.3076-.1355s-.2295.0276-.3216.0975c-5.1303 2.9021-11.6884.7471-13.9286-4.6974-1.5626-3.805-.9818-7.3886 1.808-10.4395 2.6827-2.93325 6.0569-3.82915 9.9184-2.83986zm0 9.3844c.0131-.3968-.0544-.7921-.1984-1.162-.1441-.3699-.3617-.7068-.6396-.9901-.278-.2833-.6106-.5072-.9776-.6581s-.7608-.2257-1.1575-.2199c-.8023-.0064-1.5742.3063-2.1461.8694-.5718.563-.8966 1.3303-.9031 2.1331-.0064.8027.3062 1.5751.8689 2.1472.5628.5722 1.3296.8972 2.1319.9037.3977.0051.7924-.0697 1.1608-.2199.3683-.1502.7028-.3729.9835-.6548.2808-.2819.5022-.6173.6511-.9864.1489-.369.2222-.7642.2157-1.1622z"}),s.jsxRuntimeExports.jsx("path",{d:"m100.081 7.38135c1.967.03459 3.72.48427 5.082 1.94053 1.081 1.18252 1.695 2.71812 1.728 4.32042.063 1.1587 0 2.3244.025 3.4901-.027.6725.178 1.3337.58 1.8732s.977.9247 1.629 1.0913c1.67.4877 3.567-.8406 3.585-2.5667.031-3.2134 0-6.4234.021-9.63345v-.49465c3.242-.0588 6.039 1.49086 6.679 5.154.44 2.3936.392 4.8516-.142 7.226-.84 3.6009-4.197 6.548-7.862 7.1326-1.986.3138-4.022.0101-5.831-.8701-1.808-.8803-3.304-2.2946-4.284-4.0522-.806-1.4223-1.224-3.0314-1.213-4.6662 0-3.2274 0-6.4512 0-9.68542-.011-.07264-.004-.15566.003-.25943z"}),s.jsxRuntimeExports.jsx("path",{d:"m11.255 17.0749 7.8925 7.7967c-1.9913 2.1654-4.5945 2.8399-7.3878 1.4217-1.566-.8025-2.84517-1.9613-4.09664-3.1616-.17631-.1661-.32151-.3667-.54277-.6261-1.06132 3.2273-3.33263 4.5279-6.530446 4.5487v-27.04990547c1.832256 0 3.495126.38395547 4.839936 1.69148547 1.42086 1.38362 1.94288 3.11315 1.9982 5.02947.04148 1.48394 0 2.97133 0 4.56595l.42176-.3666c1.03713-.9202 1.99129-1.91983 3.08716-2.74309 2.5341-1.9094 5.1546-1.72953 7.5054.40471.2385.21447.4701.43585.7605.69182z"}),s.jsxRuntimeExports.jsx("path",{d:"m58.1609 9.27762-7.8407 7.76218 7.813 7.8001c-1.7665 1.9613-4.1485 2.7673-6.6445 1.778-1.6767-.6607-3.0284-1.7814-4.3248-2.9817-.3699-.3459-.6914-.7333-1.0579-1.1346-1.5004 3.3207-3.5297 4.7113-6.5201 4.5175v-26.9979286c.8491-.0499943 1.7001.0579059 2.5099.3182336 2.7311.837095 4.1485 3.261895 4.2626 5.932295.076 1.63613 0 3.27919 0 5.0364.1832-.1695.2938-.2733.4114-.377 1.0371-.9167 1.9982-1.90599 3.0906-2.73617 2.5237-1.9094 5.0854-1.7572 7.4777.34591.2662.21792.5117.4566.8228.73678z"}),s.jsxRuntimeExports.jsx("path",{d:"m77.0128 27.0363c-1.5253.0947-3.0374-.3335-4.2868-1.2142-.0905-.0893-.2099-.1433-.3368-.1522-.1268-.0089-.2526.028-.3546.1038-1.2391.7059-2.6167 1.1337-4.0375 1.2537-1.4207.12-2.8506-.0705-4.1903-.5585-1.3398-.488-2.5575-1.2617-3.5687-2.2675-1.0111-1.0058-1.7916-2.2196-2.2872-3.5573-.4956-1.3376-.6944-2.7671-.5828-4.1894.1116-1.4222.531-2.8031 1.2291-4.047.6982-1.2439 1.6584-2.321 2.814-3.15657s2.4791-1.40966 3.8786-1.68246c2.3386-.48754 4.7749-.07632 6.8243 1.15187.0851.06077.1897.08802.2936.07654.104-.01149.2001-.06091.2699-.13881 1.2687-.98583 2.7657-1.23834 4.3352-1.27639zm-6.9142-9.8584c.0266-.3919-.0289-.7851-.1629-1.1544-.134-.3692-.3435-.7065-.6152-.9901-.2717-.2835-.5996-.5073-.9627-.6568s-.7534-.2215-1.1459-.2115c-.7893.0149-1.5418.3365-2.0983.8968s-.8732 1.3153-.8831 2.1051c-.0099.7899.2878 1.5525.8301 2.1266s1.2866.9145 2.0753.9491c1.6905.0207 2.9385-1.266 2.9627-3.0648z"}),s.jsxRuntimeExports.jsx("path",{d:"m37.522 7.37438v19.71662c-.5808-.0553-1.1582-.0657-1.7286-.1764-.9537-.1677-1.8561-.5523-2.6377-1.1242-.08-.0401-.1682-.0611-.2576-.0611s-.1776.021-.2575.0611c-1.6385.9205-3.5022 1.3627-5.3793 1.2764-2.1622-.0759-4.2344-.8845-5.877-2.2933-1.1087-.8975-2.0002-2.0342-2.6079-3.325-.6076-1.2909-.9157-2.7025-.9011-4.1293-.0429-1.9845.5274-3.9339 1.6331-5.5819s2.6928-2.91439 4.5447-3.62614c1.3834-.58375 2.8846-.83375 4.3824-.7298 1.4977.10395 2.9501.55895 4.2396 1.32822.0732.03601.1536.05474.2351.05474s.162-.01873.2351-.05474c1.2757-1.00659 2.7622-1.26948 4.3767-1.3352zm-6.8762 9.76142c0-1.7502-1.2342-2.9886-2.9316-2.9713-.3986.003-.7927.0844-1.1599.2398-.3671.1554-.7001.3815-.9798.6656-.2798.2842-.5009.6206-.6507.9902s-.2254.7651-.2225 1.164c.003.3988.0844.7931.2397 1.1605.1553.3673.3813.7005.6653.9804.2839.2799.6202.5012.9896.6511.3693.1498.7646.2255 1.1632.2225 1.6629-.0173 2.9075-1.3455 2.8867-3.1028z"}),s.jsxRuntimeExports.jsxs("g",{opacity:.8,children:[s.jsxRuntimeExports.jsx("path",{d:"m80.3091 58.2949.2871-1.5791.5332.0308c.3144.0615.5981.0615.8511 0 .2597-.0615.4922-.2119.6972-.4512.2051-.2324.3897-.5742.5537-1.0254l.4307-1.1792-4.3066-11.2178h1.9687l2.3994 6.5831c.2325.6357.4375 1.268.6153 1.8969.1845.6289.3691 1.2442.5537 1.8457h-.5845c.1846-.6015.3691-1.2168.5537-1.8457.1846-.6357.3897-1.268.6153-1.8969l2.3994-6.5831h1.9482l-5.0142 13.043c-.2187.5606-.4853 1.0254-.7998 1.3945-.3076.376-.6699.6563-1.0869.8409-.4101.1845-.8681.2768-1.374.2768-.2734 0-.5195-.0171-.7383-.0512-.2119-.0274-.3794-.0547-.5024-.0821z"}),s.jsxRuntimeExports.jsx("path",{d:"m62.6914 54.0908v-11.2178h1.7534l.0103 2.4302h-.1743c.1777-.5879.4375-1.0732.7793-1.456.3418-.3897.7382-.6836 1.1894-.8819.4512-.1982.9229-.2973 1.4151-.2973.8339 0 1.5244.2529 2.0712.7588.5469.499.8955 1.1279 1.0459 1.8867h-.2973c.1504-.5264.3999-.9878.7485-1.3843s.7759-.7041 1.2817-.9229c.5059-.2255 1.063-.3383 1.6714-.3383.6631 0 1.2681.1435 1.815.4306s.9809.7212 1.3022 1.3023c.3281.581.4922 1.3159.4922 2.2046v7.4853h-1.8047v-7.4546c0-.8271-.2358-1.4184-.7075-1.7739-.4648-.3623-1.0049-.5435-1.6201-.5435-.5195 0-.9673.1094-1.3433.3282-.376.2119-.6665.5092-.8716.8921-.205.3759-.3076.81-.3076 1.3022v7.2495h-1.8047v-7.6391c0-.6426-.2153-1.1587-.646-1.5484-.4238-.3896-.9638-.5845-1.6201-.5845-.4443 0-.8647.106-1.2612.3179-.3965.2051-.7144.5161-.9536.9331-.2393.417-.3589.9297-.3589 1.5381v6.9829z"}),s.jsxRuntimeExports.jsx("path",{d:"m55.4951 54.3369c-1.0869 0-2.0234-.2427-2.8096-.728-.7793-.4922-1.3774-1.1724-1.7944-2.0405-.417-.875-.6255-1.8833-.6255-3.0249s.2085-2.1534.6255-3.0352c.4238-.8818 1.0151-1.5723 1.7739-2.0713.7657-.499 1.6509-.7485 2.6558-.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.2476.1607-1.7329.482-.4854.3213-.8613.7553-1.1279 1.3022-.2598.5401-.3897 1.145-.3897 1.815v.9228c0 .8067.1401 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.5947-.9843l1.7637.2973c-.164.6221-.458 1.169-.8818 1.6406-.4238.4717-.9536.8409-1.5894 1.1075-.6357.2597-1.3467.3896-2.1328.3896z"}),s.jsxRuntimeExports.jsx("path",{d:"m42.564 54.3164c-.9434 0-1.7774-.2393-2.502-.7178s-1.2886-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.9638-1.5381 1.6816-2.0097.7246-.4786 1.5586-.7178 2.502-.7178.6425 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.7535v-1.7226h-.1333c-.1777.2939-.4101.5913-.6972.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.1075-1.4561-.4853-.3486-1.0732-.523-1.7636-.523-.6836 0-1.2681.1744-1.7535.523-.4785.3486-.8442.8374-1.0971 1.4663-.2529.6221-.3794 1.3501-.3794 2.1841 0 .8271.1265 1.5586.3794 2.1943.2597.6289.6289 1.1245 1.1074 1.4868.4854.3555 1.0664.5332 1.7432.5332z"}),s.jsxRuntimeExports.jsx("path",{d:"m30.125 54.3164c-.7246 0-1.3774-.1299-1.9585-.3896-.5811-.2666-1.0425-.6563-1.3843-1.169s-.5127-1.1382-.5127-1.8765c0-.6425.1265-1.1621.3794-1.5585.253-.4034.5913-.7212 1.0152-.9537.4238-.2324.8955-.4067 1.415-.5229.5264-.1162 1.0562-.2085 1.5894-.2769.6904-.0888 1.2441-.1572 1.6611-.205.417-.0479.7212-.1265.9126-.2359.1914-.1162.2871-.3144.2871-.5947v-.082c0-.4444-.0923-.8272-.2769-1.1485-.1777-.3213-.4443-.5674-.7998-.7383-.3554-.1777-.7964-.2666-1.3227-.2666-.5264 0-.9844.0855-1.374.2564-.3897.1641-.7041.3828-.9434.6562-.2324.2666-.3931.5503-.4819.8511l-1.774-.3589c.1914-.6836.5127-1.2441.9639-1.6816.4512-.4444.9878-.7725 1.6099-.9844.622-.2187 1.2783-.3281 1.9687-.3281.4785 0 .9639.0615 1.4561.1846.499.123.957.3281 1.374.6152.4238.2871.7622.6802 1.0151 1.1792.253.499.3794 1.1245.3794 1.8765v7.5263h-1.7739v-1.5483h-.0923c-.1299.2597-.3315.5298-.605.81-.2734.2735-.6357.5025-1.0869.6871-.4443.1845-.9912.2768-1.6406.2768zm.2871-1.5996c.6973 0 1.2749-.1299 1.7329-.3897.4649-.2666.8101-.6083 1.0357-1.0253.2324-.4239.3486-.8682.3486-1.333v-1.5074c-.0684.0821-.2153.1573-.4409.2256-.2256.0615-.4888.1196-.7896.1743s-.605.1026-.9126.1436c-.3008.041-.5674.0752-.7998.1025-.4306.0547-.8374.1504-1.2202.2871-.3828.1299-.6904.3213-.9228.5743-.2325.246-.3487.5844-.3487 1.0151 0 .3691.0991.6836.2974.9433.1982.2598.4683.4581.81.5948.3487.1299.752.1948 1.21.1948z"}),s.jsxRuntimeExports.jsx("path",{d:"m19.6978 54.3369c-1.0186 0-1.9141-.2427-2.6866-.728-.7724-.4922-1.374-1.1724-1.8047-2.0405-.4306-.875-.646-1.8868-.646-3.0352 0-1.1621.2154-2.1807.646-3.0557.4307-.8818 1.0323-1.5654 1.8047-2.0507.7725-.4922 1.668-.7383 2.6866-.7383.581 0 1.121.082 1.6201.2461.5058.1572.9604.3862 1.3637.687.4034.2939.7452.6494 1.0254 1.0664.2803.417.482.8852.605 1.4048l-1.7739.3076c-.0684-.3008-.1846-.5776-.3486-.8306-.1641-.2597-.3658-.4819-.605-.6665-.2393-.1845-.5161-.3281-.8306-.4306-.3144-.1094-.6665-.1641-1.0561-.1641-.7315 0-1.3433.188-1.8355.564-.4853.3759-.8545.8852-1.1074 1.5278-.2461.6357-.3692 1.3467-.3692 2.1328 0 .7793.1231 1.4868.3692 2.1226.2529.6289.6221 1.1313 1.1074 1.5073.4922.3691 1.104.5537 1.8355.5537.3896 0 .7417-.0513 1.0561-.1538.3213-.1026.6016-.2495.8408-.4409.2393-.1914.4375-.417.5948-.6768.164-.2666.2871-.5571.3691-.8716l1.7842.3076c-.1231.5196-.3247.9913-.605 1.4151-.2803.417-.6255.7793-1.0357 1.0869-.4033.3076-.8613.5435-1.374.7075-.5058.1641-1.0493.2461-1.6303.2461z"}),s.jsxRuntimeExports.jsx("path",{d:"m0 54.0908 5.57812-15.2783h2.19434l5.59864 15.2783h-2.02l-3.21975-9.1157c-.20508-.5811-.44092-1.2783-.70752-2.0918-.25977-.8203-.58447-1.873-.97412-3.1582h.43066c-.37598 1.292-.70068 2.3516-.97412 3.1787-.2666.8272-.49561 1.5176-.68701 2.0713l-3.20947 9.1157zm2.83008-4.2759v-1.6713h7.71092v1.6713z"})]})]})})}exports.default=i;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { j as c } from "../jsx-runtime-B4hRZ52C.mjs";
|
|
2
|
+
import l from "../utilities/scale.mjs";
|
|
3
|
+
function d({
|
|
4
|
+
fill: s,
|
|
5
|
+
...h
|
|
6
|
+
}) {
|
|
7
|
+
const { width: t, height: v } = l({
|
|
8
|
+
originalWidth: 120,
|
|
9
|
+
originalHeight: 59,
|
|
10
|
+
width: h.width,
|
|
11
|
+
height: h.height
|
|
12
|
+
});
|
|
13
|
+
return /* @__PURE__ */ c.jsx(
|
|
14
|
+
"svg",
|
|
15
|
+
{
|
|
16
|
+
fill: "none",
|
|
17
|
+
viewBox: "0 0 120 59",
|
|
18
|
+
width: t,
|
|
19
|
+
height: v,
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
+
children: /* @__PURE__ */ c.jsxs("g", { fill: s ?? "currentColor", children: [
|
|
22
|
+
/* @__PURE__ */ c.jsx("path", { d: "m91.2012 7.831v-7.82785355c3.063-.07955845 5.7249 1.34557355 6.5685 4.73545355.1744.72258.2615 1.46352.2592 2.20688.0185 6.52152.0185 13.04412 0 19.56792v.5396c-1.5902-.0242-3.0629-.3217-4.3386-1.2695-.083-.0805-.1922-.1285-.3076-.1355s-.2295.0276-.3216.0975c-5.1303 2.9021-11.6884.7471-13.9286-4.6974-1.5626-3.805-.9818-7.3886 1.808-10.4395 2.6827-2.93325 6.0569-3.82915 9.9184-2.83986zm0 9.3844c.0131-.3968-.0544-.7921-.1984-1.162-.1441-.3699-.3617-.7068-.6396-.9901-.278-.2833-.6106-.5072-.9776-.6581s-.7608-.2257-1.1575-.2199c-.8023-.0064-1.5742.3063-2.1461.8694-.5718.563-.8966 1.3303-.9031 2.1331-.0064.8027.3062 1.5751.8689 2.1472.5628.5722 1.3296.8972 2.1319.9037.3977.0051.7924-.0697 1.1608-.2199.3683-.1502.7028-.3729.9835-.6548.2808-.2819.5022-.6173.6511-.9864.1489-.369.2222-.7642.2157-1.1622z" }),
|
|
23
|
+
/* @__PURE__ */ c.jsx("path", { d: "m100.081 7.38135c1.967.03459 3.72.48427 5.082 1.94053 1.081 1.18252 1.695 2.71812 1.728 4.32042.063 1.1587 0 2.3244.025 3.4901-.027.6725.178 1.3337.58 1.8732s.977.9247 1.629 1.0913c1.67.4877 3.567-.8406 3.585-2.5667.031-3.2134 0-6.4234.021-9.63345v-.49465c3.242-.0588 6.039 1.49086 6.679 5.154.44 2.3936.392 4.8516-.142 7.226-.84 3.6009-4.197 6.548-7.862 7.1326-1.986.3138-4.022.0101-5.831-.8701-1.808-.8803-3.304-2.2946-4.284-4.0522-.806-1.4223-1.224-3.0314-1.213-4.6662 0-3.2274 0-6.4512 0-9.68542-.011-.07264-.004-.15566.003-.25943z" }),
|
|
24
|
+
/* @__PURE__ */ c.jsx("path", { d: "m11.255 17.0749 7.8925 7.7967c-1.9913 2.1654-4.5945 2.8399-7.3878 1.4217-1.566-.8025-2.84517-1.9613-4.09664-3.1616-.17631-.1661-.32151-.3667-.54277-.6261-1.06132 3.2273-3.33263 4.5279-6.530446 4.5487v-27.04990547c1.832256 0 3.495126.38395547 4.839936 1.69148547 1.42086 1.38362 1.94288 3.11315 1.9982 5.02947.04148 1.48394 0 2.97133 0 4.56595l.42176-.3666c1.03713-.9202 1.99129-1.91983 3.08716-2.74309 2.5341-1.9094 5.1546-1.72953 7.5054.40471.2385.21447.4701.43585.7605.69182z" }),
|
|
25
|
+
/* @__PURE__ */ c.jsx("path", { d: "m58.1609 9.27762-7.8407 7.76218 7.813 7.8001c-1.7665 1.9613-4.1485 2.7673-6.6445 1.778-1.6767-.6607-3.0284-1.7814-4.3248-2.9817-.3699-.3459-.6914-.7333-1.0579-1.1346-1.5004 3.3207-3.5297 4.7113-6.5201 4.5175v-26.9979286c.8491-.0499943 1.7001.0579059 2.5099.3182336 2.7311.837095 4.1485 3.261895 4.2626 5.932295.076 1.63613 0 3.27919 0 5.0364.1832-.1695.2938-.2733.4114-.377 1.0371-.9167 1.9982-1.90599 3.0906-2.73617 2.5237-1.9094 5.0854-1.7572 7.4777.34591.2662.21792.5117.4566.8228.73678z" }),
|
|
26
|
+
/* @__PURE__ */ c.jsx("path", { d: "m77.0128 27.0363c-1.5253.0947-3.0374-.3335-4.2868-1.2142-.0905-.0893-.2099-.1433-.3368-.1522-.1268-.0089-.2526.028-.3546.1038-1.2391.7059-2.6167 1.1337-4.0375 1.2537-1.4207.12-2.8506-.0705-4.1903-.5585-1.3398-.488-2.5575-1.2617-3.5687-2.2675-1.0111-1.0058-1.7916-2.2196-2.2872-3.5573-.4956-1.3376-.6944-2.7671-.5828-4.1894.1116-1.4222.531-2.8031 1.2291-4.047.6982-1.2439 1.6584-2.321 2.814-3.15657s2.4791-1.40966 3.8786-1.68246c2.3386-.48754 4.7749-.07632 6.8243 1.15187.0851.06077.1897.08802.2936.07654.104-.01149.2001-.06091.2699-.13881 1.2687-.98583 2.7657-1.23834 4.3352-1.27639zm-6.9142-9.8584c.0266-.3919-.0289-.7851-.1629-1.1544-.134-.3692-.3435-.7065-.6152-.9901-.2717-.2835-.5996-.5073-.9627-.6568s-.7534-.2215-1.1459-.2115c-.7893.0149-1.5418.3365-2.0983.8968s-.8732 1.3153-.8831 2.1051c-.0099.7899.2878 1.5525.8301 2.1266s1.2866.9145 2.0753.9491c1.6905.0207 2.9385-1.266 2.9627-3.0648z" }),
|
|
27
|
+
/* @__PURE__ */ c.jsx("path", { d: "m37.522 7.37438v19.71662c-.5808-.0553-1.1582-.0657-1.7286-.1764-.9537-.1677-1.8561-.5523-2.6377-1.1242-.08-.0401-.1682-.0611-.2576-.0611s-.1776.021-.2575.0611c-1.6385.9205-3.5022 1.3627-5.3793 1.2764-2.1622-.0759-4.2344-.8845-5.877-2.2933-1.1087-.8975-2.0002-2.0342-2.6079-3.325-.6076-1.2909-.9157-2.7025-.9011-4.1293-.0429-1.9845.5274-3.9339 1.6331-5.5819s2.6928-2.91439 4.5447-3.62614c1.3834-.58375 2.8846-.83375 4.3824-.7298 1.4977.10395 2.9501.55895 4.2396 1.32822.0732.03601.1536.05474.2351.05474s.162-.01873.2351-.05474c1.2757-1.00659 2.7622-1.26948 4.3767-1.3352zm-6.8762 9.76142c0-1.7502-1.2342-2.9886-2.9316-2.9713-.3986.003-.7927.0844-1.1599.2398-.3671.1554-.7001.3815-.9798.6656-.2798.2842-.5009.6206-.6507.9902s-.2254.7651-.2225 1.164c.003.3988.0844.7931.2397 1.1605.1553.3673.3813.7005.6653.9804.2839.2799.6202.5012.9896.6511.3693.1498.7646.2255 1.1632.2225 1.6629-.0173 2.9075-1.3455 2.8867-3.1028z" }),
|
|
28
|
+
/* @__PURE__ */ c.jsxs("g", { opacity: 0.8, children: [
|
|
29
|
+
/* @__PURE__ */ c.jsx("path", { d: "m80.3091 58.2949.2871-1.5791.5332.0308c.3144.0615.5981.0615.8511 0 .2597-.0615.4922-.2119.6972-.4512.2051-.2324.3897-.5742.5537-1.0254l.4307-1.1792-4.3066-11.2178h1.9687l2.3994 6.5831c.2325.6357.4375 1.268.6153 1.8969.1845.6289.3691 1.2442.5537 1.8457h-.5845c.1846-.6015.3691-1.2168.5537-1.8457.1846-.6357.3897-1.268.6153-1.8969l2.3994-6.5831h1.9482l-5.0142 13.043c-.2187.5606-.4853 1.0254-.7998 1.3945-.3076.376-.6699.6563-1.0869.8409-.4101.1845-.8681.2768-1.374.2768-.2734 0-.5195-.0171-.7383-.0512-.2119-.0274-.3794-.0547-.5024-.0821z" }),
|
|
30
|
+
/* @__PURE__ */ c.jsx("path", { d: "m62.6914 54.0908v-11.2178h1.7534l.0103 2.4302h-.1743c.1777-.5879.4375-1.0732.7793-1.456.3418-.3897.7382-.6836 1.1894-.8819.4512-.1982.9229-.2973 1.4151-.2973.8339 0 1.5244.2529 2.0712.7588.5469.499.8955 1.1279 1.0459 1.8867h-.2973c.1504-.5264.3999-.9878.7485-1.3843s.7759-.7041 1.2817-.9229c.5059-.2255 1.063-.3383 1.6714-.3383.6631 0 1.2681.1435 1.815.4306s.9809.7212 1.3022 1.3023c.3281.581.4922 1.3159.4922 2.2046v7.4853h-1.8047v-7.4546c0-.8271-.2358-1.4184-.7075-1.7739-.4648-.3623-1.0049-.5435-1.6201-.5435-.5195 0-.9673.1094-1.3433.3282-.376.2119-.6665.5092-.8716.8921-.205.3759-.3076.81-.3076 1.3022v7.2495h-1.8047v-7.6391c0-.6426-.2153-1.1587-.646-1.5484-.4238-.3896-.9638-.5845-1.6201-.5845-.4443 0-.8647.106-1.2612.3179-.3965.2051-.7144.5161-.9536.9331-.2393.417-.3589.9297-.3589 1.5381v6.9829z" }),
|
|
31
|
+
/* @__PURE__ */ c.jsx("path", { d: "m55.4951 54.3369c-1.0869 0-2.0234-.2427-2.8096-.728-.7793-.4922-1.3774-1.1724-1.7944-2.0405-.417-.875-.6255-1.8833-.6255-3.0249s.2085-2.1534.6255-3.0352c.4238-.8818 1.0151-1.5723 1.7739-2.0713.7657-.499 1.6509-.7485 2.6558-.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.2476.1607-1.7329.482-.4854.3213-.8613.7553-1.1279 1.3022-.2598.5401-.3897 1.145-.3897 1.815v.9228c0 .8067.1401 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.5947-.9843l1.7637.2973c-.164.6221-.458 1.169-.8818 1.6406-.4238.4717-.9536.8409-1.5894 1.1075-.6357.2597-1.3467.3896-2.1328.3896z" }),
|
|
32
|
+
/* @__PURE__ */ c.jsx("path", { d: "m42.564 54.3164c-.9434 0-1.7774-.2393-2.502-.7178s-1.2886-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.9638-1.5381 1.6816-2.0097.7246-.4786 1.5586-.7178 2.502-.7178.6425 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.7535v-1.7226h-.1333c-.1777.2939-.4101.5913-.6972.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.1075-1.4561-.4853-.3486-1.0732-.523-1.7636-.523-.6836 0-1.2681.1744-1.7535.523-.4785.3486-.8442.8374-1.0971 1.4663-.2529.6221-.3794 1.3501-.3794 2.1841 0 .8271.1265 1.5586.3794 2.1943.2597.6289.6289 1.1245 1.1074 1.4868.4854.3555 1.0664.5332 1.7432.5332z" }),
|
|
33
|
+
/* @__PURE__ */ c.jsx("path", { d: "m30.125 54.3164c-.7246 0-1.3774-.1299-1.9585-.3896-.5811-.2666-1.0425-.6563-1.3843-1.169s-.5127-1.1382-.5127-1.8765c0-.6425.1265-1.1621.3794-1.5585.253-.4034.5913-.7212 1.0152-.9537.4238-.2324.8955-.4067 1.415-.5229.5264-.1162 1.0562-.2085 1.5894-.2769.6904-.0888 1.2441-.1572 1.6611-.205.417-.0479.7212-.1265.9126-.2359.1914-.1162.2871-.3144.2871-.5947v-.082c0-.4444-.0923-.8272-.2769-1.1485-.1777-.3213-.4443-.5674-.7998-.7383-.3554-.1777-.7964-.2666-1.3227-.2666-.5264 0-.9844.0855-1.374.2564-.3897.1641-.7041.3828-.9434.6562-.2324.2666-.3931.5503-.4819.8511l-1.774-.3589c.1914-.6836.5127-1.2441.9639-1.6816.4512-.4444.9878-.7725 1.6099-.9844.622-.2187 1.2783-.3281 1.9687-.3281.4785 0 .9639.0615 1.4561.1846.499.123.957.3281 1.374.6152.4238.2871.7622.6802 1.0151 1.1792.253.499.3794 1.1245.3794 1.8765v7.5263h-1.7739v-1.5483h-.0923c-.1299.2597-.3315.5298-.605.81-.2734.2735-.6357.5025-1.0869.6871-.4443.1845-.9912.2768-1.6406.2768zm.2871-1.5996c.6973 0 1.2749-.1299 1.7329-.3897.4649-.2666.8101-.6083 1.0357-1.0253.2324-.4239.3486-.8682.3486-1.333v-1.5074c-.0684.0821-.2153.1573-.4409.2256-.2256.0615-.4888.1196-.7896.1743s-.605.1026-.9126.1436c-.3008.041-.5674.0752-.7998.1025-.4306.0547-.8374.1504-1.2202.2871-.3828.1299-.6904.3213-.9228.5743-.2325.246-.3487.5844-.3487 1.0151 0 .3691.0991.6836.2974.9433.1982.2598.4683.4581.81.5948.3487.1299.752.1948 1.21.1948z" }),
|
|
34
|
+
/* @__PURE__ */ c.jsx("path", { d: "m19.6978 54.3369c-1.0186 0-1.9141-.2427-2.6866-.728-.7724-.4922-1.374-1.1724-1.8047-2.0405-.4306-.875-.646-1.8868-.646-3.0352 0-1.1621.2154-2.1807.646-3.0557.4307-.8818 1.0323-1.5654 1.8047-2.0507.7725-.4922 1.668-.7383 2.6866-.7383.581 0 1.121.082 1.6201.2461.5058.1572.9604.3862 1.3637.687.4034.2939.7452.6494 1.0254 1.0664.2803.417.482.8852.605 1.4048l-1.7739.3076c-.0684-.3008-.1846-.5776-.3486-.8306-.1641-.2597-.3658-.4819-.605-.6665-.2393-.1845-.5161-.3281-.8306-.4306-.3144-.1094-.6665-.1641-1.0561-.1641-.7315 0-1.3433.188-1.8355.564-.4853.3759-.8545.8852-1.1074 1.5278-.2461.6357-.3692 1.3467-.3692 2.1328 0 .7793.1231 1.4868.3692 2.1226.2529.6289.6221 1.1313 1.1074 1.5073.4922.3691 1.104.5537 1.8355.5537.3896 0 .7417-.0513 1.0561-.1538.3213-.1026.6016-.2495.8408-.4409.2393-.1914.4375-.417.5948-.6768.164-.2666.2871-.5571.3691-.8716l1.7842.3076c-.1231.5196-.3247.9913-.605 1.4151-.2803.417-.6255.7793-1.0357 1.0869-.4033.3076-.8613.5435-1.374.7075-.5058.1641-1.0493.2461-1.6303.2461z" }),
|
|
35
|
+
/* @__PURE__ */ c.jsx("path", { d: "m0 54.0908 5.57812-15.2783h2.19434l5.59864 15.2783h-2.02l-3.21975-9.1157c-.20508-.5811-.44092-1.2783-.70752-2.0918-.25977-.8203-.58447-1.873-.97412-3.1582h.43066c-.37598 1.292-.70068 2.3516-.97412 3.1787-.2666.8272-.49561 1.5176-.68701 2.0713l-3.20947 9.1157zm2.83008-4.2759v-1.6713h7.71092v1.6713z" })
|
|
36
|
+
] })
|
|
37
|
+
] })
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
d as default
|
|
43
|
+
};
|