@kakadu/components 6.1.1 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/aria-text.d.ts +2 -1
- package/build/components/box.d.ts +2 -1
- package/build/components/button-tooltip.d.ts +2 -1
- package/build/components/button.d.ts +3 -3
- package/build/components/button.js +1 -1
- package/build/components/button.mjs +27 -25
- package/build/components/card.d.ts +2 -2
- package/build/components/click-ripples.d.ts +2 -2
- package/build/components/collapsible.d.ts +2 -2
- package/build/components/combobox.d.ts +2 -2
- package/build/components/copy-icon-button.d.ts +2 -1
- package/build/components/datum.d.ts +2 -2
- package/build/components/dot.d.ts +2 -2
- package/build/components/flex.d.ts +2 -1
- package/build/components/footer.d.ts +2 -2
- package/build/components/gauge.d.ts +2 -1
- package/build/components/header.d.ts +2 -1
- package/build/components/hover-gradient.d.ts +2 -2
- package/build/components/icon-button.d.ts +2 -2
- package/build/components/input.d.ts +3 -3
- package/build/components/input.js +2 -2
- package/build/components/input.mjs +21 -21
- package/build/components/logos/akt-logo.d.ts +2 -2
- package/build/components/logos/amedia-logo.d.ts +2 -2
- package/build/components/logos/bankaxept-logo.d.ts +2 -2
- package/build/components/logos/bankid-logo.d.ts +2 -2
- package/build/components/logos/dnb-logo.d.ts +2 -2
- package/build/components/logos/entur-logo.d.ts +2 -2
- package/build/components/logos/gjensidige-logo.d.ts +2 -2
- package/build/components/logos/kakadu-academy-logo.d.ts +2 -2
- package/build/components/logos/kakadu-guide-icon.d.ts +2 -1
- package/build/components/logos/kakadu-guide-logo.d.ts +3 -3
- package/build/components/logos/kakadu-index-logo.d.ts +2 -2
- package/build/components/logos/kakadu-logo.d.ts +2 -2
- package/build/components/logos/kakadu-play-logo.d.ts +2 -2
- package/build/components/logos/kolumbus-logo.d.ts +2 -2
- package/build/components/logos/nordea-logo.d.ts +2 -2
- package/build/components/logos/norsk-tipping-logo.d.ts +2 -2
- package/build/components/logos/ruter-logo.d.ts +2 -2
- package/build/components/logos/senteret-for-et-aldersvennlig-norge-logo.d.ts +2 -2
- package/build/components/logos/sparebank1-logo.d.ts +2 -2
- package/build/components/logos/sparebanken-norge-logo.d.ts +2 -2
- package/build/components/logos/sto-logo.d.ts +2 -2
- package/build/components/logos/storebrand-logo.d.ts +2 -2
- package/build/components/modal.d.ts +6 -6
- package/build/components/notice.d.ts +2 -2
- package/build/components/notification.d.ts +8 -6
- package/build/components/notification.js +1 -1
- package/build/components/notification.mjs +87 -71
- package/build/components/popover-menu.d.ts +3 -3
- package/build/components/popover.d.ts +4 -4
- package/build/components/revealer.d.ts +2 -2
- package/build/components/select.d.ts +2 -2
- package/build/components/separator.d.ts +5 -5
- package/build/components/skeleton.d.ts +3 -2
- package/build/components/spinner.d.ts +3 -2
- package/build/components/text-button.d.ts +2 -2
- package/build/components/text.d.ts +9 -8
- package/build/components/theme-setter.d.ts +2 -2
- package/build/components/veil.d.ts +2 -1
- package/build/components/wrapper.d.ts +2 -2
- package/build/components.css +1 -1
- package/build/icons/anchor-down.d.ts +2 -2
- package/build/icons/anchor-up.d.ts +2 -2
- package/build/icons/arrow-down.d.ts +2 -2
- package/build/icons/arrow-left.d.ts +2 -2
- package/build/icons/arrow-right.d.ts +2 -2
- package/build/icons/arrow-up.d.ts +2 -2
- package/build/icons/caret-down.d.ts +2 -2
- package/build/icons/caret-left.d.ts +2 -2
- package/build/icons/caret-right.d.ts +2 -2
- package/build/icons/caret-up.d.ts +2 -2
- package/build/icons/check.d.ts +2 -2
- package/build/icons/chevron-down.d.ts +2 -2
- package/build/icons/chevron-left.d.ts +2 -2
- package/build/icons/chevron-right.d.ts +2 -2
- package/build/icons/chevron-up.d.ts +2 -2
- package/build/icons/chrome-browser-logo.d.ts +2 -2
- package/build/icons/cog.d.ts +2 -2
- package/build/icons/copy.d.ts +2 -2
- package/build/icons/document.d.ts +2 -2
- package/build/icons/dots.d.ts +2 -2
- package/build/icons/drag.d.ts +2 -2
- package/build/icons/edge-browser-logo.d.ts +2 -2
- package/build/icons/edit.d.ts +2 -2
- package/build/icons/exclamation-triangle.d.ts +2 -2
- package/build/icons/external.d.ts +2 -2
- package/build/icons/eye.d.ts +2 -2
- package/build/icons/icon.d.ts +2 -2
- package/build/icons/information.d.ts +2 -2
- package/build/icons/kakadu-guide-glyph.d.ts +2 -2
- package/build/icons/kakadu-guide-icon.d.ts +2 -2
- package/build/icons/menu.d.ts +2 -2
- package/build/icons/package.d.ts +2 -2
- package/build/icons/plus.d.ts +2 -2
- package/build/icons/select.d.ts +2 -2
- package/build/icons/share.d.ts +2 -2
- package/build/icons/sparkle.d.ts +2 -2
- package/build/icons/test.d.ts +2 -2
- package/build/icons/times.d.ts +2 -2
- package/build/icons/trash.d.ts +2 -2
- package/build/icons/trend-up.d.ts +2 -2
- package/build/theme.d.ts +2 -1
- package/package.json +16 -22
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type AtomElementType, type AtomProperties } from './atom';
|
|
2
3
|
export declare const ariaTextStyles: string;
|
|
3
4
|
type AriaTextProperties<Type extends AtomElementType = 'span'> = AtomProperties<Type>;
|
|
4
|
-
export default function AriaText<Type extends AtomElementType = 'span'>({ as, className, ...properties }: AriaTextProperties<Type>):
|
|
5
|
+
export default function AriaText<Type extends AtomElementType = 'span'>({ as, className, ...properties }: AriaTextProperties<Type>): React.JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type DefaultAtomElementType, type AtomElementType, type AtomProperties } from './atom';
|
|
2
3
|
type BoxProperties<Type extends AtomElementType = DefaultAtomElementType> = AtomProperties<Type>;
|
|
3
|
-
export default function Box<Type extends AtomElementType = DefaultAtomElementType>({ as, className, ...properties }: BoxProperties<Type>):
|
|
4
|
+
export default function Box<Type extends AtomElementType = DefaultAtomElementType>({ as, className, ...properties }: BoxProperties<Type>): React.JSX.Element;
|
|
4
5
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const buttonTooltipPositions: readonly ["top", "bottom"];
|
|
2
3
|
export type ButtonTooltipPosition = (typeof buttonTooltipPositions)[number];
|
|
3
4
|
export type ButtonTooltipProperties = {
|
|
@@ -6,4 +7,4 @@ export type ButtonTooltipProperties = {
|
|
|
6
7
|
readonly position?: ButtonTooltipPosition;
|
|
7
8
|
readonly className?: string;
|
|
8
9
|
};
|
|
9
|
-
export default function ButtonTooltip({ id, label, position, className, }: ButtonTooltipProperties):
|
|
10
|
+
export default function ButtonTooltip({ id, label, position, className, }: ButtonTooltipProperties): React.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type ReactNode, type HTMLProps } from 'react';
|
|
1
|
+
import React, { type ReactNode, type HTMLProps } from 'react';
|
|
2
2
|
import { type IconType } from '../icons/icon';
|
|
3
3
|
import { type ButtonTooltipPosition } from './button-tooltip';
|
|
4
4
|
export declare function ButtonLoader({ isLoading, size, className, }: {
|
|
5
5
|
readonly isLoading?: boolean;
|
|
6
6
|
readonly size?: number;
|
|
7
7
|
readonly className?: string;
|
|
8
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
export declare const buttonVariants: readonly ["primary", "secondary", "warning", "danger"];
|
|
10
10
|
export type ButtonVariant = (typeof buttonVariants)[number];
|
|
11
11
|
export declare const buttonSecondaryStyles: string;
|
|
@@ -33,5 +33,5 @@ export type ButtonProperties = BaseButtonProperties & ({
|
|
|
33
33
|
children?: never;
|
|
34
34
|
label: string;
|
|
35
35
|
});
|
|
36
|
-
export default function Button({ ref, type, variant, href, target, rel, disabled, className, children, label, tooltip, tooltipPosition, iconLeft, iconRight, isLoading, isSkeleton, isSkeletonAnimated, hasMovingGradients, movingGradientsCount, hasMovingStars, movingStarsCount, ...properties }: ButtonProperties):
|
|
36
|
+
export default function Button({ ref, type, variant, href, target, rel, disabled, className, children, label, tooltip, tooltipPosition, iconLeft, iconRight, isLoading, isSkeleton, isSkeletonAnimated, hasMovingGradients, movingGradientsCount, hasMovingStars, movingStarsCount, ...properties }: ButtonProperties): React.JSX.Element;
|
|
37
37
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jsx-runtime-BB_1_6y_.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../jsx-runtime-BB_1_6y_.js"),b=require("react"),c=require("@kuma-ui/core"),f=require("../theme.js"),$=require("../icons/icon.js"),C=require("./spinner.js"),F=require("./moving-gradients.js"),O=require("./moving-stars.js"),P=require("./theme-setter.js"),H=require("./click-ripples.js"),v=require("./hover-gradient.js"),J=require("./button-tooltip.js"),K=require("./aria-text.js"),Q=require("./atom.js"),U=require("./skeleton.js");function h({isLoading:t,size:a,className:s}){return e.jsxRuntimeExports.jsx("div",{className:c.cx("kakadu-components-2832510379",t&&"kakadu-components-4114685569",s),children:e.jsxRuntimeExports.jsx("div",{className:"kakadu-components-920467642",children:e.jsxRuntimeExports.jsx(C.RevealSpinner,{isVisible:t,size:a})})})}const X=["primary","secondary","warning","danger"];function S({icon:t,variant:a="primary",className:s,...r}){return e.jsxRuntimeExports.jsx("div",{...r,className:c.cx("kakadu-components-2658660333",a==="secondary"&&"kakadu-components-3469662110",s),children:typeof t=="string"?e.jsxRuntimeExports.jsx($.default,{width:14,height:14,type:t}):t})}const q="kakadu-components-2550769169",Y="kakadu-components-1998774084",g="kakadu-components-2945752235",N="kakadu-components-1546692192";function Z({ref:t,type:a,variant:s="primary",href:r,target:_,rel:B,disabled:w,className:T,children:n,label:D,tooltip:i,tooltipPosition:I,iconLeft:m,iconRight:l,isLoading:x,isSkeleton:u,isSkeletonAnimated:M=!0,hasMovingGradients:G=!1,movingGradientsCount:p=4,hasMovingStars:V=!1,movingStarsCount:k=10,...z}){const j=b.useId(),y=b.useRef(null),A=P.useIsDarkTheme(y),W=a??"button",R=G&&p>0,E=V&&k>0,o=r!==void 0&&!u,d=!!w||!!x||!!u;return e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-3559664923",children:[e.jsxRuntimeExports.jsxs(Q.default,{...z,reference:t,as:o?"a":"button",type:o?void 0:W,href:o?r:void 0,target:o?_:void 0,rel:o?B:void 0,"aria-describedby":i?j:void 0,disabled:o?void 0:d,inert:o?d:void 0,className:c.cx(f.effectStyles,f.overlayEffectStyles,"kakadu-components-2514848457",!!m&&"kakadu-components-2735110382",!n&&"kakadu-components-3621693630",s==="secondary"&&q,s==="warning"&&g,s==="danger"&&N,u&&"kakadu-components-2662775151",T),children:[m?e.jsxRuntimeExports.jsx(S,{variant:s,icon:m,className:n?"kakadu-components-136489413":void 0}):null,n?e.jsxRuntimeExports.jsx("div",{ref:y,className:"kakadu-components-207477259",children:n}):e.jsxRuntimeExports.jsx(K.default,{children:D}),l?e.jsxRuntimeExports.jsx(S,{variant:s,icon:l,className:n?"kakadu-components-3631501803":void 0}):null,e.jsxRuntimeExports.jsx(h,{isLoading:x}),R||E?e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-2836016662",children:[R&&e.jsxRuntimeExports.jsx(F.default,{opacity:A?.5:.4,maximumGradientsCount:p,className:c.cx("kakadu-components-1191635212",s==="secondary"&&"kakadu-components-3653612936")}),E&&e.jsxRuntimeExports.jsx(O.default,{maximumStarsCount:k,className:"kakadu-components-2551727666"})]}):null,d?null:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(H.default,{size:n?void 0:50}),e.jsxRuntimeExports.jsx(v.default,{size:n?void 0:50,className:s==="secondary"?v.normalBlendStyles:void 0})]}),i?e.jsxRuntimeExports.jsx(J.default,{id:j,label:i,position:I}):null]}),u?e.jsxRuntimeExports.jsx("div",{className:"kakadu-components-3422055155",children:e.jsxRuntimeExports.jsx(U.SkeletonInstance,{width:"100%",height:"100%",isAnimated:M})}):null]})}exports.ButtonLoader=h;exports.buttonDangerStyles=N;exports.buttonSecondaryStyles=q;exports.buttonSuccessStyles=Y;exports.buttonVariants=X;exports.buttonWarningStyles=g;exports.default=Z;
|
|
@@ -15,61 +15,63 @@ import U from "./atom.mjs";
|
|
|
15
15
|
import { SkeletonInstance as X } from "./skeleton.mjs";
|
|
16
16
|
function Y({
|
|
17
17
|
isLoading: n,
|
|
18
|
-
size:
|
|
18
|
+
size: t,
|
|
19
19
|
className: s
|
|
20
20
|
}) {
|
|
21
|
-
return /* @__PURE__ */ o.jsx("div", { className: c("kakadu-components-2832510379", n && "kakadu-components-4114685569", s), children: /* @__PURE__ */ o.jsx("div", { className: "kakadu-components-920467642", children: /* @__PURE__ */ o.jsx(F, { isVisible: n, size:
|
|
21
|
+
return /* @__PURE__ */ o.jsx("div", { className: c("kakadu-components-2832510379", n && "kakadu-components-4114685569", s), children: /* @__PURE__ */ o.jsx("div", { className: "kakadu-components-920467642", children: /* @__PURE__ */ o.jsx(F, { isVisible: n, size: t }) }) });
|
|
22
22
|
}
|
|
23
23
|
const fo = ["primary", "secondary", "warning", "danger"];
|
|
24
|
-
function
|
|
24
|
+
function b({
|
|
25
25
|
icon: n,
|
|
26
|
-
variant:
|
|
26
|
+
variant: t = "primary",
|
|
27
27
|
className: s,
|
|
28
28
|
...r
|
|
29
29
|
}) {
|
|
30
|
-
return /* @__PURE__ */ o.jsx("div", { ...r, className: c("kakadu-components-2658660333",
|
|
30
|
+
return /* @__PURE__ */ o.jsx("div", { ...r, className: c("kakadu-components-2658660333", t === "secondary" && "kakadu-components-3469662110", s), children: typeof n == "string" ? /* @__PURE__ */ o.jsx(V, { width: 14, height: 14, type: n }) : n });
|
|
31
31
|
}
|
|
32
32
|
const Z = "kakadu-components-2550769169", xo = "kakadu-components-1998774084", _ = "kakadu-components-2945752235", $ = "kakadu-components-1546692192";
|
|
33
33
|
function yo({
|
|
34
34
|
ref: n,
|
|
35
|
-
type:
|
|
35
|
+
type: t,
|
|
36
36
|
variant: s = "primary",
|
|
37
37
|
href: r,
|
|
38
|
-
target:
|
|
39
|
-
rel:
|
|
40
|
-
disabled:
|
|
41
|
-
className:
|
|
38
|
+
target: h,
|
|
39
|
+
rel: N,
|
|
40
|
+
disabled: g,
|
|
41
|
+
className: S,
|
|
42
42
|
children: e,
|
|
43
|
-
label:
|
|
43
|
+
label: B,
|
|
44
44
|
tooltip: d,
|
|
45
|
-
tooltipPosition:
|
|
45
|
+
tooltipPosition: w,
|
|
46
46
|
iconLeft: i,
|
|
47
47
|
iconRight: l,
|
|
48
48
|
isLoading: p,
|
|
49
49
|
isSkeleton: m,
|
|
50
|
-
isSkeletonAnimated:
|
|
51
|
-
hasMovingGradients:
|
|
50
|
+
isSkeletonAnimated: I = !0,
|
|
51
|
+
hasMovingGradients: T = !1,
|
|
52
52
|
movingGradientsCount: k = 4,
|
|
53
|
-
hasMovingStars:
|
|
53
|
+
hasMovingStars: A = !1,
|
|
54
54
|
movingStarsCount: f = 10,
|
|
55
|
-
...
|
|
55
|
+
...D
|
|
56
56
|
}) {
|
|
57
|
-
const x = R(), y = z(null),
|
|
57
|
+
const x = R(), y = z(null), M = q(y), G = t ?? "button", j = T && k > 0, v = A && f > 0, a = r !== void 0 && !m, u = !!g || !!p || !!m;
|
|
58
58
|
return /* @__PURE__ */ o.jsxs("div", { className: "kakadu-components-3559664923", children: [
|
|
59
|
-
/* @__PURE__ */ o.jsxs(U, { ...
|
|
60
|
-
i ? /* @__PURE__ */ o.jsx(
|
|
61
|
-
e ? /* @__PURE__ */ o.jsx("div", { ref: y, className: "kakadu-components-207477259", children: e }) : /* @__PURE__ */ o.jsx(Q, { children:
|
|
62
|
-
l ? /* @__PURE__ */ o.jsx(
|
|
59
|
+
/* @__PURE__ */ o.jsxs(U, { ...D, reference: n, as: a ? "a" : "button", type: a ? void 0 : G, href: a ? r : void 0, target: a ? h : void 0, rel: a ? N : void 0, "aria-describedby": d ? x : void 0, disabled: a ? void 0 : u, inert: a ? u : void 0, className: c(C, E, "kakadu-components-2514848457", !!i && "kakadu-components-2735110382", !e && "kakadu-components-3621693630", s === "secondary" && Z, s === "warning" && _, s === "danger" && $, m && "kakadu-components-2662775151", S), children: [
|
|
60
|
+
i ? /* @__PURE__ */ o.jsx(b, { variant: s, icon: i, className: e ? "kakadu-components-136489413" : void 0 }) : null,
|
|
61
|
+
e ? /* @__PURE__ */ o.jsx("div", { ref: y, className: "kakadu-components-207477259", children: e }) : /* @__PURE__ */ o.jsx(Q, { children: B }),
|
|
62
|
+
l ? /* @__PURE__ */ o.jsx(b, { variant: s, icon: l, className: e ? "kakadu-components-3631501803" : void 0 }) : null,
|
|
63
63
|
/* @__PURE__ */ o.jsx(Y, { isLoading: p }),
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
j || v ? /* @__PURE__ */ o.jsxs("div", { className: "kakadu-components-2836016662", children: [
|
|
65
|
+
j && /* @__PURE__ */ o.jsx(H, { opacity: M ? 0.5 : 0.4, maximumGradientsCount: k, className: c("kakadu-components-1191635212", s === "secondary" && "kakadu-components-3653612936") }),
|
|
66
|
+
v && /* @__PURE__ */ o.jsx(W, { maximumStarsCount: f, className: "kakadu-components-2551727666" })
|
|
67
|
+
] }) : null,
|
|
66
68
|
u ? null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
67
69
|
/* @__PURE__ */ o.jsx(J, { size: e ? void 0 : 50 }),
|
|
68
70
|
/* @__PURE__ */ o.jsx(K, { size: e ? void 0 : 50, className: s === "secondary" ? O : void 0 })
|
|
69
71
|
] }),
|
|
70
|
-
d ? /* @__PURE__ */ o.jsx(P, { id: x, label: d, position:
|
|
72
|
+
d ? /* @__PURE__ */ o.jsx(P, { id: x, label: d, position: w }) : null
|
|
71
73
|
] }),
|
|
72
|
-
m ? /* @__PURE__ */ o.jsx("div", { className: "kakadu-components-3422055155", children: /* @__PURE__ */ o.jsx(X, { width: "100%", height: "100%", isAnimated:
|
|
74
|
+
m ? /* @__PURE__ */ o.jsx("div", { className: "kakadu-components-3422055155", children: /* @__PURE__ */ o.jsx(X, { width: "100%", height: "100%", isAnimated: I }) }) : null
|
|
73
75
|
] });
|
|
74
76
|
}
|
|
75
77
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLProps } from 'react';
|
|
1
|
+
import React, { type HTMLProps } from 'react';
|
|
2
2
|
import { type IconType } from '../icons/icon';
|
|
3
3
|
export type CardProperties = HTMLProps<HTMLButtonElement> & {
|
|
4
4
|
readonly icon?: IconType;
|
|
@@ -6,4 +6,4 @@ export type CardProperties = HTMLProps<HTMLButtonElement> & {
|
|
|
6
6
|
readonly description: string;
|
|
7
7
|
readonly action: string;
|
|
8
8
|
};
|
|
9
|
-
export default function Card({ ref, icon, title, description, action, href, target, rel, className, ...properties }: CardProperties):
|
|
9
|
+
export default function Card({ ref, icon, title, description, action, href, target, rel, className, ...properties }: CardProperties): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLProps } from 'react';
|
|
1
|
+
import React, { type HTMLProps } from 'react';
|
|
2
2
|
export default function ClickRipples({ isActive, size, className, ...properties }: HTMLProps<HTMLDivElement> & {
|
|
3
3
|
readonly isActive?: boolean;
|
|
4
|
-
}):
|
|
4
|
+
}): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ElementType } from 'react';
|
|
1
|
+
import React, { type ElementType } from 'react';
|
|
2
2
|
import { type AtomProperties } from './atom';
|
|
3
3
|
export default function Collapsible<Type extends ElementType = 'div'>({ as, isCollapsed, transitionDuration, children, className, ...properties }: AtomProperties<Type> & {
|
|
4
4
|
readonly isCollapsed?: boolean;
|
|
5
5
|
readonly transitionDuration?: number;
|
|
6
|
-
}):
|
|
6
|
+
}): React.JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChangeEvent, type HTMLProps, type ReactNode } from 'react';
|
|
1
|
+
import React, { type ChangeEvent, type HTMLProps, type ReactNode } from 'react';
|
|
2
2
|
import { type InputType, type InputLabelControllerProperties } from './input';
|
|
3
3
|
export type ComboboxOption<Type = string> = {
|
|
4
4
|
readonly value: Type;
|
|
@@ -25,4 +25,4 @@ export type ComboboxProperties<Type = string> = Omit<InputLabelControllerPropert
|
|
|
25
25
|
readonly onChange?: (value: string, event?: ChangeEvent<InputType>) => void;
|
|
26
26
|
readonly onSelect?: (value?: Type) => void;
|
|
27
27
|
};
|
|
28
|
-
export default function Combobox<Type = string>({ isLoading, shouldFilterOptions, label, options, error, warning, information, footnote, className, onChange, onSelect, ...properties }: ComboboxProperties<Type>):
|
|
28
|
+
export default function Combobox<Type = string>({ isLoading, shouldFilterOptions, label, options, error, warning, information, footnote, className, onChange, onSelect, ...properties }: ComboboxProperties<Type>): React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type IconButtonProperties } from './icon-button';
|
|
2
3
|
export default function CopyIconButton({ label, copiedLabel, value, onClick, ...properties }: {
|
|
3
4
|
readonly label?: string;
|
|
4
5
|
readonly copiedLabel?: string;
|
|
5
6
|
readonly value: string;
|
|
6
|
-
} & Omit<IconButtonProperties, 'icon' | 'label' | 'variant'>):
|
|
7
|
+
} & Omit<IconButtonProperties, 'icon' | 'label' | 'variant'>): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
export type DatumProperties = {
|
|
3
3
|
readonly title: ReactNode;
|
|
4
4
|
readonly value: string;
|
|
5
5
|
readonly hasCopyButton?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export default function Datum({ title, value, hasCopyButton }: DatumProperties):
|
|
7
|
+
export default function Datum({ title, value, hasCopyButton }: DatumProperties): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type HTMLProps } from 'react';
|
|
2
|
-
export default function Dot({ className }: HTMLProps<HTMLSpanElement>):
|
|
1
|
+
import React, { type HTMLProps } from 'react';
|
|
2
|
+
export default function Dot({ className }: HTMLProps<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type AtomElementType, type AtomProperties, type DefaultAtomElementType } from './atom';
|
|
2
3
|
export declare const flexDirections: readonly ["row", "row-reverse", "column", "column-reverse"];
|
|
3
4
|
export type FlexDirection = (typeof flexDirections)[number];
|
|
@@ -18,5 +19,5 @@ export type FlexProperties<Type extends AtomElementType = DefaultAtomElementType
|
|
|
18
19
|
readonly wrap?: boolean;
|
|
19
20
|
readonly fill?: boolean;
|
|
20
21
|
};
|
|
21
|
-
export default function Flex<Type extends AtomElementType = DefaultAtomElementType>({ as, direction, preset, distribution, alignment, gap, wrap, fill, style: inputStyle, className, ...properties }: FlexProperties<Type>):
|
|
22
|
+
export default function Flex<Type extends AtomElementType = DefaultAtomElementType>({ as, direction, preset, distribution, alignment, gap, wrap, fill, style: inputStyle, className, ...properties }: FlexProperties<Type>): React.JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLAttributeAnchorTarget, type ReactNode } from 'react';
|
|
1
|
+
import React, { type HTMLAttributeAnchorTarget, type ReactNode } from 'react';
|
|
2
2
|
import { type WrapperWidth } from './wrapper';
|
|
3
3
|
export declare const footerSections: readonly ["services", "results", "about", "compliance"];
|
|
4
4
|
export declare const footerSectionLinks: {
|
|
@@ -33,5 +33,5 @@ export type FooterProperties = {
|
|
|
33
33
|
readonly sections?: FooterSections;
|
|
34
34
|
readonly className?: string;
|
|
35
35
|
};
|
|
36
|
-
export default function Footer({ width, sections: inputSections, attribution, className, }: FooterProperties):
|
|
36
|
+
export default function Footer({ width, sections: inputSections, attribution, className, }: FooterProperties): React.JSX.Element;
|
|
37
37
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export type GaugeProperties = {
|
|
2
3
|
readonly label: string;
|
|
3
4
|
readonly size?: 'small' | 'medium' | 'large';
|
|
4
5
|
readonly percentage?: number;
|
|
5
6
|
readonly isAnimated?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export default function Gauge({ label, size, percentage, isAnimated, }: GaugeProperties):
|
|
8
|
+
export default function Gauge({ label, size, percentage, isAnimated, }: GaugeProperties): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type WrapperProperties } from './wrapper';
|
|
2
3
|
import { type AtomElementType, type DefaultAtomElementType } from './atom';
|
|
3
|
-
export default function Header<Type extends AtomElementType = DefaultAtomElementType>({ as, className, ...properties }: WrapperProperties<Type>):
|
|
4
|
+
export default function Header<Type extends AtomElementType = DefaultAtomElementType>({ as, className, ...properties }: WrapperProperties<Type>): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type HTMLProps } from 'react';
|
|
1
|
+
import React, { type HTMLProps } from 'react';
|
|
2
2
|
export declare const normalBlendStyles: string;
|
|
3
3
|
export default function HoverGradient({ isActive, size, className, ...properties }: HTMLProps<HTMLDivElement> & {
|
|
4
4
|
readonly isActive?: boolean;
|
|
5
5
|
readonly size?: number;
|
|
6
|
-
}):
|
|
6
|
+
}): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HTMLProps } from 'react';
|
|
1
|
+
import React, { type HTMLProps } from 'react';
|
|
2
2
|
import { type IconType } from '../icons/icon';
|
|
3
3
|
import { type ButtonTooltipPosition } from './button-tooltip';
|
|
4
4
|
export declare const iconButtonVariants: readonly ["default", "success", "warning", "danger"];
|
|
@@ -12,4 +12,4 @@ export type IconButtonProperties = HTMLProps<HTMLButtonElement> & {
|
|
|
12
12
|
readonly isSkeleton?: boolean;
|
|
13
13
|
readonly isSkeletonAnimated?: boolean;
|
|
14
14
|
};
|
|
15
|
-
export default function IconButton({ ref, icon, variant, label, tooltipPosition, href, target, rel, disabled, isLoading, isSkeleton, isSkeletonAnimated, className, ...properties }: IconButtonProperties):
|
|
15
|
+
export default function IconButton({ ref, icon, variant, label, tooltipPosition, href, target, rel, disabled, isLoading, isSkeleton, isSkeletonAnimated, className, ...properties }: IconButtonProperties): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChangeEvent, type HTMLProps, type ReactNode } from 'react';
|
|
1
|
+
import React, { type ChangeEvent, type HTMLProps, type ReactNode } from 'react';
|
|
2
2
|
import { type IconType } from '../icons/icon';
|
|
3
3
|
export declare const inputStyles: string;
|
|
4
4
|
export declare const errorParagraph: string;
|
|
@@ -17,7 +17,7 @@ type InputLabelProperties = HTMLProps<HTMLLabelElement> & InputLabelMessagePrope
|
|
|
17
17
|
readonly footnote?: ReactNode;
|
|
18
18
|
readonly attachments?: ReactNode;
|
|
19
19
|
};
|
|
20
|
-
export declare function InputLabel({ label, error, errorId, warning, warningId, information, informationId, footnote, attachments, className, children, ...properties }: InputLabelProperties):
|
|
20
|
+
export declare function InputLabel({ label, error, errorId, warning, warningId, information, informationId, footnote, attachments, className, children, ...properties }: InputLabelProperties): React.JSX.Element;
|
|
21
21
|
export type InputLabelControllerProperties = Omit<InputLabelProperties, 'errorId' | 'warningId' | 'attachments' | 'onClick' | 'onMouseDown' | 'onMouseUp' | 'onChange' | 'onFocus' | 'onBlur' | 'onInput' | 'onBeforeInput'>;
|
|
22
22
|
export type InputType = HTMLInputElement | HTMLTextAreaElement;
|
|
23
23
|
export type InputAction = {
|
|
@@ -34,5 +34,5 @@ export type InputProperties = Omit<InputLabelControllerProperties & Omit<HTMLPro
|
|
|
34
34
|
readonly isMultiline?: boolean;
|
|
35
35
|
readonly onChange?: (value: string, event: ChangeEvent<InputType>) => void;
|
|
36
36
|
};
|
|
37
|
-
export default function Input({ ref, type, label, error, warning, information, footnote, suggestion, attachments, actions, hasCopyButton, hasClearButton, isMultiline, onChange, children, className, ...properties }: InputProperties):
|
|
37
|
+
export default function Input({ ref, type, label, error, warning, information, footnote, suggestion, attachments, actions, hasCopyButton, hasClearButton, isMultiline, onChange, children, className, ...properties }: InputProperties): React.JSX.Element;
|
|
38
38
|
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"),r=require("@kuma-ui/core"),Q=require("../utilities/copy-to-clipboard.js"),M=require("../theme.js"),me=require("../icons/sparkle.js"),de=require("./button-tooltip.js"),
|
|
2
|
-
`):[],[o]),re=t.useMemo(()=>P.length,[P]),
|
|
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"),r=require("@kuma-ui/core"),Q=require("../utilities/copy-to-clipboard.js"),M=require("../theme.js"),me=require("../icons/sparkle.js"),de=require("./button-tooltip.js"),B=require("./text-button.js"),x=require("./text.js"),je=require("./collapsible.js"),X=require("./click-ripples.js"),Y=require("./hover-gradient.js"),ke=require("./notification.js"),fe="kakadu-components-922159086",he="kakadu-components-25448712",v="kakadu-components-3185985134",T="kakadu-components-4056037255",Z=r.cx(T,"kakadu-components-3245407458"),Ee=r.cx(T,"kakadu-components-1117160492"),Re=r.cx(T,"kakadu-components-821835704");function be({as:p,className:c,...m}){return e.jsxRuntimeExports.jsx(x.Span,{as:p??"span",...m,className:r.cx("kakadu-components-520991867",c)})}function ee({label:p,error:c,errorId:m,warning:l,warningId:h,information:i,informationId:S,footnote:a,attachments:C,className:d,children:j,...k}){const E=!!c,u=!!l,R=!!i,f=!!a;return e.jsxRuntimeExports.jsx("label",{...k,className:r.cx(fe,d),children:e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-3146929190",children:[e.jsxRuntimeExports.jsx(x.Span,{className:r.cx(M.overflowProtectionStyles,he),children:e.jsxRuntimeExports.jsx("span",{children:p})}),e.jsxRuntimeExports.jsxs("span",{className:"kakadu-components-3298764637",children:[j,f?e.jsxRuntimeExports.jsx(be,{className:"kakadu-components-613632806",children:a}):null,C]}),E||u||R?e.jsxRuntimeExports.jsx("div",{className:"kakadu-components-2927674627",children:E?e.jsxRuntimeExports.jsx(x.Paragraph,{id:m,className:Z,children:c instanceof Error?c.message:c}):u?e.jsxRuntimeExports.jsx(x.Paragraph,{id:h,className:Ee,children:l instanceof Error?l.message:l}):R?e.jsxRuntimeExports.jsx(x.Paragraph,{id:S,className:Re,children:i instanceof Error?i.message:i}):null}):null]})})}const ge=40,L="kakadu-components-4233741488";function ye({ref:p,type:c,label:m,error:l,warning:h,information:i,footnote:S,suggestion:a,attachments:C,actions:d=[],hasCopyButton:j,hasClearButton:k,isMultiline:E,onChange:u,children:R,className:f,...b}){const $=t.useRef(null),H=t.useRef(null),q=t.useRef(null),A=ke.useCreateNotification(),I=t.useId(),F=`${I}-error`,V=`${I}-warning`,O=`${I}-information`,{value:g,disabled:te}=b,[se,W]=t.useState(""),o=g??se,[ne,ae]=t.useState(),oe=c==="textarea"||!!E;t.useLayoutEffect(()=>{typeof o=="string"&&q.current&&ae(q.current.scrollHeight)},[o]);const P=t.useMemo(()=>typeof o=="string"?`${o} `.split(`
|
|
2
|
+
`):[],[o]),re=t.useMemo(()=>P.length,[P]),y=!!l,_=!y&&!!h,w=!!i,z=y?F:_?V:w?O:void 0;t.useEffect(()=>{W(typeof g=="string"?g:"")},[g]);const D=t.useCallback(s=>{const{value:n}=s.target;W(n),u==null||u(n,s)},[u]),ce=t.useCallback(()=>{typeof o=="string"&&(Q.default(o),A({type:"success",children:"Copied to clipboard."}))},[o,A]),N=t.useCallback(s=>{var J;const n=H.current??$.current??void 0;if(n){const K=(J=Object.getOwnPropertyDescriptor(n instanceof HTMLTextAreaElement?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,"value"))==null?void 0:J.set;if(K){K.call(n,s);const pe=new Event("input",{bubbles:!0});n.dispatchEvent(pe),n.focus();return}}throw new Error("Unable to set value.")},[]),le=t.useCallback(()=>{N("")},[N]),[ie,ue]=t.useState(""),G=!!a&&ie!==a,xe=t.useCallback(()=>{if(a){try{N(a)}catch{Q.default(a)}ue(a)}},[a,N]),U=t.useMemo(()=>d.length,[d]);return e.jsxRuntimeExports.jsxs(ee,{ref:p,label:m,error:l,errorId:F,warning:h,warningId:V,information:i,informationId:O,footnote:S,attachments:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(je.default,{isCollapsed:!G,children:G?e.jsxRuntimeExports.jsxs("button",{type:"button",className:r.cx(M.buttonResetStyles,M.overflowProtectionStyles,"kakadu-components-4141839293"),onClick:xe,children:[e.jsxRuntimeExports.jsx(de.default,{label:"Apply suggestion"}),e.jsxRuntimeExports.jsx(me.default,{width:13,height:13,className:"kakadu-components-1417828741"}),e.jsxRuntimeExports.jsx(x.Span,{className:"kakadu-components-1384720019",children:a}),e.jsxRuntimeExports.jsx(X.default,{className:"kakadu-components-2744733744"}),e.jsxRuntimeExports.jsx(Y.default,{})]}):null}),C]}),style:{"--button-padding":`calc(${ge*((j?1:0)+(k?1:0)+U)}px + 6px)`},children:[e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-3146929190",children:[oe?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("span",{ref:q,"aria-hidden":!0,className:r.cx(v,f,"kakadu-components-2033521835"),children:[P.map((s,n)=>e.jsxRuntimeExports.jsxs("span",{children:[s,re>1?e.jsxRuntimeExports.jsx("br",{}):null]},n))," "]}),e.jsxRuntimeExports.jsx("textarea",{...b,ref:H,rows:b.rows??1,"aria-invalid":y,"data-warning":_,"data-information":w,"aria-describedby":z,value:o,className:r.cx(v,f,"kakadu-components-2119524139"),style:{minHeight:ne},onChange:D})]}):e.jsxRuntimeExports.jsx("input",{...b,ref:$,type:c??"text",value:o,"aria-invalid":y,"data-warning":_,"data-information":w,"aria-describedby":z,className:r.cx(v,f),onChange:D}),te?null:e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(X.default,{className:"kakadu-components-616311160"}),e.jsxRuntimeExports.jsx(Y.default,{className:"kakadu-components-1962999040"})]})]}),j||k||U>0?e.jsxRuntimeExports.jsxs("div",{className:"kakadu-components-131986363",children:[d.map((s,n)=>e.jsxRuntimeExports.jsx(B.default,{iconLeft:s.icon,label:s.label,tooltip:s.label,className:L,onClick:s.onClick},s.label+n)),j?e.jsxRuntimeExports.jsx(B.default,{iconLeft:"copy",label:"Copy",tooltip:"Copy",className:L,onClick:ce}):null,k?e.jsxRuntimeExports.jsx(B.default,{iconLeft:"times",label:"Clear",tooltip:"Clear",className:L,onClick:le}):null]}):null,R]})}exports.InputLabel=ee;exports.default=ye;exports.errorParagraph=Z;exports.inputStyles=v;
|
|
@@ -26,9 +26,9 @@ function we({
|
|
|
26
26
|
warning: c,
|
|
27
27
|
warningId: x,
|
|
28
28
|
information: r,
|
|
29
|
-
informationId:
|
|
29
|
+
informationId: C,
|
|
30
30
|
footnote: a,
|
|
31
|
-
attachments:
|
|
31
|
+
attachments: S,
|
|
32
32
|
className: p,
|
|
33
33
|
children: u,
|
|
34
34
|
...k
|
|
@@ -39,9 +39,9 @@ function we({
|
|
|
39
39
|
/* @__PURE__ */ e.jsxs("span", { className: "kakadu-components-3298764637", children: [
|
|
40
40
|
u,
|
|
41
41
|
f ? /* @__PURE__ */ e.jsx(Be, { className: "kakadu-components-613632806", children: a }) : null,
|
|
42
|
-
|
|
42
|
+
S
|
|
43
43
|
] }),
|
|
44
|
-
j || i || b ? /* @__PURE__ */ e.jsx("div", { className: "kakadu-components-2927674627", children: j ? /* @__PURE__ */ e.jsx(M, { id: m, className: Se, children: l instanceof Error ? l.message : l }) : i ? /* @__PURE__ */ e.jsx(M, { id: x, className: Ee, children: c instanceof Error ? c.message : c }) : b ? /* @__PURE__ */ e.jsx(M, { id:
|
|
44
|
+
j || i || b ? /* @__PURE__ */ e.jsx("div", { className: "kakadu-components-2927674627", children: j ? /* @__PURE__ */ e.jsx(M, { id: m, className: Se, children: l instanceof Error ? l.message : l }) : i ? /* @__PURE__ */ e.jsx(M, { id: x, className: Ee, children: c instanceof Error ? c.message : c }) : b ? /* @__PURE__ */ e.jsx(M, { id: C, className: Ie, children: r instanceof Error ? r.message : r }) : null }) : null
|
|
45
45
|
] }) });
|
|
46
46
|
}
|
|
47
47
|
const Le = 40, A = "kakadu-components-4233741488";
|
|
@@ -52,9 +52,9 @@ function Ge({
|
|
|
52
52
|
error: c,
|
|
53
53
|
warning: x,
|
|
54
54
|
information: r,
|
|
55
|
-
footnote:
|
|
55
|
+
footnote: C,
|
|
56
56
|
suggestion: a,
|
|
57
|
-
attachments:
|
|
57
|
+
attachments: S,
|
|
58
58
|
actions: p = [],
|
|
59
59
|
hasCopyButton: u,
|
|
60
60
|
hasClearButton: k,
|
|
@@ -62,20 +62,20 @@ function Ge({
|
|
|
62
62
|
onChange: i,
|
|
63
63
|
children: b,
|
|
64
64
|
className: f,
|
|
65
|
-
...
|
|
65
|
+
...y
|
|
66
66
|
}) {
|
|
67
67
|
const O = P(null), W = P(null), E = P(null), z = Ne(), I = fe(), D = `${I}-error`, G = `${I}-warning`, U = `${I}-information`, {
|
|
68
|
-
value:
|
|
68
|
+
value: g,
|
|
69
69
|
disabled: ae
|
|
70
|
-
} =
|
|
70
|
+
} = y, [se, q] = T(""), s = g ?? se, [oe, le] = T(), ce = l === "textarea" || !!j;
|
|
71
71
|
he(() => {
|
|
72
72
|
typeof s == "string" && E.current && le(E.current.scrollHeight);
|
|
73
73
|
}, [s]);
|
|
74
74
|
const B = H(() => typeof s == "string" ? `${s} `.split(`
|
|
75
|
-
`) : [], [s]), re = H(() => B.length, [B]),
|
|
75
|
+
`) : [], [s]), re = H(() => B.length, [B]), N = !!c, w = !N && !!x, L = !!r, J = N ? D : w ? G : L ? U : void 0;
|
|
76
76
|
xe(() => {
|
|
77
|
-
q(typeof
|
|
78
|
-
}, [
|
|
77
|
+
q(typeof g == "string" ? g : "");
|
|
78
|
+
}, [g]);
|
|
79
79
|
const K = h((n) => {
|
|
80
80
|
const {
|
|
81
81
|
value: t
|
|
@@ -86,7 +86,7 @@ function Ge({
|
|
|
86
86
|
type: "success",
|
|
87
87
|
children: "Copied to clipboard."
|
|
88
88
|
}));
|
|
89
|
-
}, [s, z]),
|
|
89
|
+
}, [s, z]), v = h((n) => {
|
|
90
90
|
var Y;
|
|
91
91
|
const t = W.current ?? O.current ?? void 0;
|
|
92
92
|
if (t) {
|
|
@@ -102,18 +102,18 @@ function Ge({
|
|
|
102
102
|
}
|
|
103
103
|
throw new Error("Unable to set value.");
|
|
104
104
|
}, []), de = h(() => {
|
|
105
|
-
|
|
106
|
-
}, [
|
|
105
|
+
v("");
|
|
106
|
+
}, [v]), [me, pe] = T(""), Q = !!a && me !== a, ue = h(() => {
|
|
107
107
|
if (a) {
|
|
108
108
|
try {
|
|
109
|
-
|
|
109
|
+
v(a);
|
|
110
110
|
} catch {
|
|
111
111
|
_(a);
|
|
112
112
|
}
|
|
113
113
|
pe(a);
|
|
114
114
|
}
|
|
115
|
-
}, [a,
|
|
116
|
-
return /* @__PURE__ */ e.jsxs(we, { ref: d, label: m, error: c, errorId: D, warning: x, warningId: G, information: r, informationId: U, footnote:
|
|
115
|
+
}, [a, v]), X = H(() => p.length, [p]);
|
|
116
|
+
return /* @__PURE__ */ e.jsxs(we, { ref: d, label: m, error: c, errorId: D, warning: x, warningId: G, information: r, informationId: U, footnote: C, attachments: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
117
117
|
/* @__PURE__ */ e.jsx(ge, { isCollapsed: !Q, children: Q ? /* @__PURE__ */ e.jsxs("button", { type: "button", className: o(je, te, "kakadu-components-4141839293"), onClick: ue, children: [
|
|
118
118
|
/* @__PURE__ */ e.jsx(ye, { label: "Apply suggestion" }),
|
|
119
119
|
/* @__PURE__ */ e.jsx(be, { width: 13, height: 13, className: "kakadu-components-1417828741" }),
|
|
@@ -121,7 +121,7 @@ function Ge({
|
|
|
121
121
|
/* @__PURE__ */ e.jsx(ee, { className: "kakadu-components-2744733744" }),
|
|
122
122
|
/* @__PURE__ */ e.jsx(ne, {})
|
|
123
123
|
] }) : null }),
|
|
124
|
-
|
|
124
|
+
S
|
|
125
125
|
] }), style: {
|
|
126
126
|
"--button-padding": `calc(${Le * ((u ? 1 : 0) + (k ? 1 : 0) + X)}px + 6px)`
|
|
127
127
|
}, children: [
|
|
@@ -137,10 +137,10 @@ function Ge({
|
|
|
137
137
|
)),
|
|
138
138
|
" "
|
|
139
139
|
] }),
|
|
140
|
-
/* @__PURE__ */ e.jsx("textarea", { ...
|
|
140
|
+
/* @__PURE__ */ e.jsx("textarea", { ...y, ref: W, rows: y.rows ?? 1, "aria-invalid": N, "data-warning": w, "data-information": L, "aria-describedby": J, value: s, className: o($, f, "kakadu-components-2119524139"), style: {
|
|
141
141
|
minHeight: oe
|
|
142
142
|
}, onChange: K })
|
|
143
|
-
] }) : /* @__PURE__ */ e.jsx("input", { ...
|
|
143
|
+
] }) : /* @__PURE__ */ e.jsx("input", { ...y, ref: O, type: l ?? "text", value: s, "aria-invalid": N, "data-warning": w, "data-information": L, "aria-describedby": J, className: o($, f), onChange: K }),
|
|
144
144
|
ae ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
145
145
|
/* @__PURE__ */ e.jsx(ee, { className: "kakadu-components-616311160" }),
|
|
146
146
|
/* @__PURE__ */ e.jsx(ne, { className: "kakadu-components-1962999040" })
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function AktLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function AktLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function AmediaLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function AmediaLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function BankAxeptLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function BankAxeptLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function BankIdLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function BankIdLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function DnbLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function DnbLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function EnturLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function EnturLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function GjensidigeLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function GjensidigeLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function KakaduAcademyLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function KakaduAcademyLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export declare function KakaduGuideLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export declare function KakaduGuideLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
3
3
|
export declare const kakaduGuideLogoVariants: readonly ["default", "flat"];
|
|
4
4
|
export type KakaduGuideLogoVariant = (typeof kakaduGuideLogoVariants)[number];
|
|
5
5
|
export default function KakaduGuideLogo({ variant, height, }: {
|
|
6
6
|
readonly variant?: KakaduGuideLogoVariant;
|
|
7
7
|
readonly height?: number;
|
|
8
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function KakaduIndexLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function KakaduIndexLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function KakaduLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function KakaduLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function KakaduPlayLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function KakaduPlayLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function KolumbusLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function KolumbusLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function NordeaLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function NordeaLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export default function NorskTippingLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>):
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export default function NorskTippingLogoSvg({ fill, ...properties }: ComponentPropsWithoutRef<'svg'>): React.JSX.Element;
|