@kakadu/components 3.7.3 → 3.8.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/modal.d.ts +5 -0
- package/build/components/modal.js +1 -1
- package/build/components/modal.mjs +84 -70
- package/build/components/text.d.ts +3 -1
- package/build/components/text.js +1 -1
- package/build/components/text.mjs +24 -23
- package/build/components.css +1 -1
- package/build/hooks/use-fetch.js +1 -1
- package/build/hooks/use-fetch.mjs +74 -71
- package/build/index.js +1 -1
- package/build/index.mjs +190 -187
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { type ComponentType, type ReactNode } from 'react';
|
|
2
2
|
import { type DecoratorType } from './decorators';
|
|
3
|
+
import { type FlexProperties } from './flex';
|
|
4
|
+
import { type AtomProperties, type AtomElementType, type DefaultAtomElementType } from './atom';
|
|
5
|
+
import { type DefaultHeadingElementType } from './text';
|
|
3
6
|
type InitialFocusElement = HTMLElement | null;
|
|
4
7
|
type ModalProviderProperties<Data = any> = {
|
|
5
8
|
isVisible: boolean;
|
|
@@ -8,6 +11,8 @@ type ModalProviderProperties<Data = any> = {
|
|
|
8
11
|
close?: (data?: Data) => void;
|
|
9
12
|
};
|
|
10
13
|
export declare function useModalContext<Data = any>(): ModalProviderProperties<Data>;
|
|
14
|
+
export declare function ModalContent<Type extends AtomElementType = DefaultAtomElementType>(properties: FlexProperties<Type>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function ModalHeading<Type extends AtomElementType = DefaultHeadingElementType>({ as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
|
|
11
16
|
export type ModalProperties<Data = any> = {
|
|
12
17
|
readonly root?: HTMLElement | ShadowRoot;
|
|
13
18
|
readonly outerDecorators?: DecoratorType[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../jsx-runtime-BB_1_6y_.js"),e=require("react"),j=require("@kuma-ui/core"),P=require("react-dom"),$=require("../focus-trap-react-CcpTuiJi.js"),B=require("../icons/icon.js"),A=require("./text-button.js"),g=require("./decorators.js"),D=require("./flex.js"),w=require("./text.js"),C=e.createContext({isVisible:!1,isInteractive:!1}),{Provider:z}=C;function y(){return e.useContext(C)}function G(){const{isInteractive:o,close:a}=y(),r=e.useCallback(()=>{a==null||a()},[a]);return s.jsxRuntimeExports.jsx("div",{className:"kakadu-components-2566044647",children:s.jsxRuntimeExports.jsx(A.default,{iconLeft:B.IconType.times,label:"Close",disabled:!o,onClick:r})})}function J(o){return s.jsxRuntimeExports.jsx(D.default,{gap:2,...o})}function K({as:o,className:a,...r}){return s.jsxRuntimeExports.jsx(w.Heading,{...r,as:o??w.defaultHeadingElementType,className:j.cx("kakadu-components-4275938488",a)})}function Q({root:o,outerDecorators:a=[],innerDecorators:r=[],label:f,maxWidth:c,className:m,isVisible:n,isFullWidth:l=!1,shouldCloseOnOutsideClick:i=!0,shouldCloseOnEscapePress:d=!0,showCloseButton:_=!0,onClose:p,children:L}){const E=e.useRef(null),R=e.useRef(null),[M,N]=e.useState(!1),[u,x]=e.useState(!1),b=e.useCallback(t=>{E.current=t,x(!1)},[]),v=e.useRef(null),h=e.useCallback(t=>{t&&(v.current=t)},[]),[q,I]=e.useState(n??!1),S=e.useMemo(()=>({isVisible:q,isInteractive:u,setInitialFocus:h,close:b}),[q,u,h,b]);e.useEffect(()=>{n&&(N(!0),I(!0))},[n]),e.useEffect(()=>{if(n){const t=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(t)}}x(!1)},[n]),e.useEffect(()=>{if(M&&!u){const t=setTimeout(()=>{p==null||p(E.current??void 0),I(!1)},370);return()=>{clearTimeout(t)}}},[M,u,p]),e.useEffect(()=>{const t=R.current;if(n&&i&&t){const k=H=>{t===H.target&&x(!1)};return t.addEventListener("click",k),()=>{t.removeEventListener("click",k)}}},[n,i]),e.useEffect(()=>{if(!n||!d)return;const t=k=>{k.key==="Escape"&&x(!1)};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[n,d]);const F=e.useMemo(()=>({initialFocus:()=>v.current??void 0,onActivate:()=>{var t;return(t=v.current)==null?void 0:t.focus()}}),[]),T=s.jsxRuntimeExports.jsx(g.default,{decorators:a,children:s.jsxRuntimeExports.jsx("div",{"aria-hidden":!u,style:{"--max-width":c?`${c}px`:void 0},className:j.cx("kakadu-components-4119461136",u&&"kakadu-components-2522346797",m),children:s.jsxRuntimeExports.jsx(g.default,{decorators:r,children:s.jsxRuntimeExports.jsx($.focusTrapReactExports.FocusTrap,{active:u,focusTrapOptions:F,children:s.jsxRuntimeExports.jsx("div",{ref:R,className:"kakadu-components-4011815997",children:s.jsxRuntimeExports.jsx("div",{role:"dialog","aria-modal":"true","aria-label":f??"Modal",className:j.cx("kakadu-components-3324483532",l&&"kakadu-components-3799971070",u&&"kakadu-components-968755580"),children:s.jsxRuntimeExports.jsxs(z,{value:S,children:[_?s.jsxRuntimeExports.jsx(G,{}):null,s.jsxRuntimeExports.jsx("div",{className:j.cx("kakadu-components-633990035",l&&"kakadu-components-171969824"),children:L})]})})})})})})});return o?P.createPortal(T,o):T}function U(o,a){const[r,f]=e.useState(!1),c=e.useRef(void 0),m=e.useCallback(async()=>(f(!0),new Promise(i=>{c.current=i})),[]),n=e.useCallback(i=>{var d;f(!1),(d=c.current)==null||d.call(c,i),c.current=void 0},[]),l=e.useMemo(()=>s.jsxRuntimeExports.jsx(o,{...a,isVisible:r,onClose:n}),[o,a,r,n]);return e.useMemo(()=>({isVisible:r,show:m,modal:l}),[r,m,l])}exports.ModalContent=J;exports.ModalHeading=K;exports.default=Q;exports.useModal=U;exports.useModalContext=y;
|
|
@@ -1,58 +1,70 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { cx as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { f as
|
|
1
|
+
import { j as t } from "../jsx-runtime-B4hRZ52C.mjs";
|
|
2
|
+
import { createContext as $, useRef as j, useState as h, useCallback as f, useMemo as w, useEffect as m, useContext as q } from "react";
|
|
3
|
+
import { cx as I } from "@kuma-ui/core";
|
|
4
|
+
import { createPortal as z } from "react-dom";
|
|
5
|
+
import { f as G } from "../focus-trap-react-DYXrtbDH.mjs";
|
|
6
6
|
import { IconType as J } from "../icons/icon.mjs";
|
|
7
7
|
import K from "./text-button.mjs";
|
|
8
|
-
import
|
|
9
|
-
|
|
8
|
+
import F from "./decorators.mjs";
|
|
9
|
+
import Q from "./flex.mjs";
|
|
10
|
+
import { Heading as U, defaultHeadingElementType as V } from "./text.mjs";
|
|
11
|
+
const C = $({
|
|
10
12
|
isVisible: !1,
|
|
11
13
|
isInteractive: !1
|
|
12
14
|
}), {
|
|
13
|
-
Provider:
|
|
15
|
+
Provider: X
|
|
14
16
|
} = C;
|
|
15
|
-
function
|
|
16
|
-
return
|
|
17
|
+
function Y() {
|
|
18
|
+
return q(C);
|
|
17
19
|
}
|
|
18
|
-
function
|
|
20
|
+
function Z() {
|
|
19
21
|
const {
|
|
20
|
-
isInteractive:
|
|
22
|
+
isInteractive: o,
|
|
21
23
|
close: s
|
|
22
|
-
} =
|
|
24
|
+
} = Y(), r = f(() => {
|
|
23
25
|
s == null || s();
|
|
24
26
|
}, [s]);
|
|
25
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ t.jsx("div", { className: "kakadu-components-2566044647", children: /* @__PURE__ */ t.jsx(K, { iconLeft: J.times, label: "Close", disabled: !o, onClick: r }) });
|
|
28
|
+
}
|
|
29
|
+
function ce(o) {
|
|
30
|
+
return /* @__PURE__ */ t.jsx(Q, { gap: 2, ...o });
|
|
26
31
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
32
|
+
function ie({
|
|
33
|
+
as: o,
|
|
34
|
+
className: s,
|
|
35
|
+
...r
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ t.jsx(U, { ...r, as: o ?? V, className: I("kakadu-components-4275938488", s) });
|
|
38
|
+
}
|
|
39
|
+
function ue({
|
|
40
|
+
root: o,
|
|
29
41
|
outerDecorators: s = [],
|
|
30
|
-
innerDecorators:
|
|
31
|
-
label:
|
|
32
|
-
maxWidth:
|
|
33
|
-
className:
|
|
34
|
-
isVisible:
|
|
42
|
+
innerDecorators: r = [],
|
|
43
|
+
label: p,
|
|
44
|
+
maxWidth: a,
|
|
45
|
+
className: k,
|
|
46
|
+
isVisible: n,
|
|
35
47
|
isFullWidth: u = !1,
|
|
36
48
|
shouldCloseOnOutsideClick: i = !0,
|
|
37
49
|
shouldCloseOnEscapePress: l = !0,
|
|
38
|
-
showCloseButton:
|
|
39
|
-
onClose:
|
|
40
|
-
children:
|
|
50
|
+
showCloseButton: H = !0,
|
|
51
|
+
onClose: x,
|
|
52
|
+
children: B
|
|
41
53
|
}) {
|
|
42
|
-
const E = j(null),
|
|
54
|
+
const E = j(null), M = j(null), [g, P] = h(!1), [c, d] = h(!1), y = f((e) => {
|
|
43
55
|
E.current = e, d(!1);
|
|
44
|
-
}, []),
|
|
45
|
-
e && (
|
|
46
|
-
}, []), [
|
|
47
|
-
isVisible:
|
|
48
|
-
isInteractive:
|
|
49
|
-
setInitialFocus:
|
|
50
|
-
close:
|
|
51
|
-
}), [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
if (
|
|
56
|
+
}, []), T = j(null), L = f((e) => {
|
|
57
|
+
e && (T.current = e);
|
|
58
|
+
}, []), [N, R] = h(n ?? !1), A = w(() => ({
|
|
59
|
+
isVisible: N,
|
|
60
|
+
isInteractive: c,
|
|
61
|
+
setInitialFocus: L,
|
|
62
|
+
close: y
|
|
63
|
+
}), [N, c, L, y]);
|
|
64
|
+
m(() => {
|
|
65
|
+
n && (P(!0), R(!0));
|
|
66
|
+
}, [n]), m(() => {
|
|
67
|
+
if (n) {
|
|
56
68
|
const e = setTimeout(() => {
|
|
57
69
|
d(!0);
|
|
58
70
|
}, 100);
|
|
@@ -61,27 +73,27 @@ function ne({
|
|
|
61
73
|
};
|
|
62
74
|
}
|
|
63
75
|
d(!1);
|
|
64
|
-
}, [
|
|
65
|
-
if (
|
|
76
|
+
}, [n]), m(() => {
|
|
77
|
+
if (g && !c) {
|
|
66
78
|
const e = setTimeout(() => {
|
|
67
|
-
|
|
79
|
+
x == null || x(E.current ?? void 0), R(!1);
|
|
68
80
|
}, 370);
|
|
69
81
|
return () => {
|
|
70
82
|
clearTimeout(e);
|
|
71
83
|
};
|
|
72
84
|
}
|
|
73
|
-
}, [
|
|
74
|
-
const e =
|
|
75
|
-
if (
|
|
76
|
-
const v = (
|
|
77
|
-
e ===
|
|
85
|
+
}, [g, c, x]), m(() => {
|
|
86
|
+
const e = M.current;
|
|
87
|
+
if (n && i && e) {
|
|
88
|
+
const v = (S) => {
|
|
89
|
+
e === S.target && d(!1);
|
|
78
90
|
};
|
|
79
91
|
return e.addEventListener("click", v), () => {
|
|
80
92
|
e.removeEventListener("click", v);
|
|
81
93
|
};
|
|
82
94
|
}
|
|
83
|
-
}, [
|
|
84
|
-
if (!
|
|
95
|
+
}, [n, i]), m(() => {
|
|
96
|
+
if (!n || !l)
|
|
85
97
|
return;
|
|
86
98
|
const e = (v) => {
|
|
87
99
|
v.key === "Escape" && d(!1);
|
|
@@ -89,36 +101,38 @@ function ne({
|
|
|
89
101
|
return window.addEventListener("keydown", e), () => {
|
|
90
102
|
window.removeEventListener("keydown", e);
|
|
91
103
|
};
|
|
92
|
-
}, [
|
|
93
|
-
const
|
|
94
|
-
initialFocus: () =>
|
|
104
|
+
}, [n, l]);
|
|
105
|
+
const D = w(() => ({
|
|
106
|
+
initialFocus: () => T.current ?? void 0,
|
|
95
107
|
onActivate: () => {
|
|
96
108
|
var e;
|
|
97
|
-
return (e =
|
|
109
|
+
return (e = T.current) == null ? void 0 : e.focus();
|
|
98
110
|
}
|
|
99
|
-
}), []),
|
|
100
|
-
"--max-width":
|
|
101
|
-
}, className:
|
|
102
|
-
|
|
103
|
-
/* @__PURE__ */
|
|
111
|
+
}), []), b = /* @__PURE__ */ t.jsx(F, { decorators: s, children: /* @__PURE__ */ t.jsx("div", { "aria-hidden": !c, style: {
|
|
112
|
+
"--max-width": a ? `${a}px` : void 0
|
|
113
|
+
}, className: I("kakadu-components-4119461136", c && "kakadu-components-2522346797", k), children: /* @__PURE__ */ t.jsx(F, { decorators: r, children: /* @__PURE__ */ t.jsx(G.FocusTrap, { active: c, focusTrapOptions: D, children: /* @__PURE__ */ t.jsx("div", { ref: M, className: "kakadu-components-4011815997", children: /* @__PURE__ */ t.jsx("div", { role: "dialog", "aria-modal": "true", "aria-label": p ?? "Modal", className: I("kakadu-components-3324483532", u && "kakadu-components-3799971070", c && "kakadu-components-968755580"), children: /* @__PURE__ */ t.jsxs(X, { value: A, children: [
|
|
114
|
+
H ? /* @__PURE__ */ t.jsx(Z, {}) : null,
|
|
115
|
+
/* @__PURE__ */ t.jsx("div", { className: I("kakadu-components-633990035", u && "kakadu-components-171969824"), children: B })
|
|
104
116
|
] }) }) }) }) }) }) });
|
|
105
|
-
return
|
|
117
|
+
return o ? z(b, o) : b;
|
|
106
118
|
}
|
|
107
|
-
function
|
|
108
|
-
const [
|
|
109
|
-
|
|
110
|
-
})), []),
|
|
119
|
+
function le(o, s) {
|
|
120
|
+
const [r, p] = h(!1), a = j(void 0), k = f(async () => (p(!0), new Promise((i) => {
|
|
121
|
+
a.current = i;
|
|
122
|
+
})), []), n = f((i) => {
|
|
111
123
|
var l;
|
|
112
|
-
|
|
113
|
-
}, []), u =
|
|
114
|
-
return
|
|
115
|
-
isVisible:
|
|
116
|
-
show:
|
|
124
|
+
p(!1), (l = a.current) == null || l.call(a, i), a.current = void 0;
|
|
125
|
+
}, []), u = w(() => /* @__PURE__ */ t.jsx(o, { ...s, isVisible: r, onClose: n }), [o, s, r, n]);
|
|
126
|
+
return w(() => ({
|
|
127
|
+
isVisible: r,
|
|
128
|
+
show: k,
|
|
117
129
|
modal: u
|
|
118
|
-
}), [
|
|
130
|
+
}), [r, k, u]);
|
|
119
131
|
}
|
|
120
132
|
export {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
133
|
+
ce as ModalContent,
|
|
134
|
+
ie as ModalHeading,
|
|
135
|
+
ue as default,
|
|
136
|
+
le as useModal,
|
|
137
|
+
Y as useModalContext
|
|
124
138
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type AtomElementType, type AtomProperties } from './atom';
|
|
2
2
|
import { WrapperWidth } from './wrapper';
|
|
3
3
|
export declare const textShadowStyles: string;
|
|
4
|
-
export
|
|
4
|
+
export type DefaultHeadingElementType = 'h1';
|
|
5
|
+
export declare const defaultHeadingElementType = "h1";
|
|
6
|
+
export declare function Heading<Type extends AtomElementType = DefaultHeadingElementType>({ reference, as, className, ...properties }: AtomProperties<Type>): import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
export declare function AnchorHeading<Type extends AtomElementType = 'h1'>({ as, id, children, className, ...properties }: Omit<AtomProperties<Type>, 'id'> & {
|
|
6
8
|
readonly id: string;
|
|
7
9
|
}): import("react/jsx-runtime").JSX.Element;
|
package/build/components/text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../jsx-runtime-BB_1_6y_.js"),s=require("@kuma-ui/core"),j=require("../theme.js"),c=require("./atom.js"),r=require("./wrapper.js"),u="kakadu-components-1538322784",x="kakadu-components-739732526",m="h1";function i({reference:t,as:e,className:n,...o}){return a.jsxRuntimeExports.jsx(c.default,{reference:t,as:e??m,...o,className:s.cx(j.overflowProtectionStyles,u,"kakadu-components-1669332734",x,n)})}function f({as:t,id:e,children:n,className:o,...k}){return a.jsxRuntimeExports.jsx(i,{as:t??"h1",id:e,...k,className:s.cx(o),children:a.jsxRuntimeExports.jsx("a",{href:`#${e}`,className:"kakadu-components-1038708690",children:n})})}const p=s.cx("kakadu-components-1923397960",u,x);function d({as:t,className:e,...n}){return a.jsxRuntimeExports.jsx(c.default,{as:t??"span",...n,className:s.cx(p,e)})}function h({as:t,className:e,...n}){return a.jsxRuntimeExports.jsx(c.default,{as:t??"p",...n,className:s.cx(p,"kakadu-components-621160204",e)})}function S({as:t,className:e,...n}){return a.jsxRuntimeExports.jsx(d,{as:t??"span",...n,className:s.cx("kakadu-components-1329768068",e)})}function l({as:t,width:e=r.WrapperWidth.text,className:n,...o}){return a.jsxRuntimeExports.jsx(c.default,{as:t??"div",...o,className:s.cx("kakadu-components-1437359321",e===r.WrapperWidth.page&&"kakadu-components-2433581593",e===r.WrapperWidth.text&&"kakadu-components-958855245",e===r.WrapperWidth.content&&"kakadu-components-797764377",n)})}function g(t){const{className:e}=t;return a.jsxRuntimeExports.jsx(l,{...t,className:s.cx("kakadu-components-323682454",e)})}exports.AnchorHeading=f;exports.Heading=i;exports.Hero=g;exports.Label=S;exports.Paragraph=h;exports.Span=d;exports.default=l;exports.defaultHeadingElementType=m;exports.spanStyles=p;exports.textShadowStyles=u;
|
|
@@ -1,70 +1,71 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-B4hRZ52C.mjs";
|
|
2
2
|
import { cx as o } from "@kuma-ui/core";
|
|
3
|
-
import { overflowProtectionStyles as
|
|
4
|
-
import
|
|
3
|
+
import { overflowProtectionStyles as l } from "../theme.mjs";
|
|
4
|
+
import m from "./atom.mjs";
|
|
5
5
|
import { WrapperWidth as c } from "./wrapper.mjs";
|
|
6
|
-
const
|
|
7
|
-
function
|
|
6
|
+
const r = "kakadu-components-1538322784", u = "kakadu-components-739732526", d = "h1";
|
|
7
|
+
function i({
|
|
8
8
|
reference: n,
|
|
9
9
|
as: a,
|
|
10
10
|
className: s,
|
|
11
11
|
...e
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */ t.jsx(
|
|
13
|
+
return /* @__PURE__ */ t.jsx(m, { reference: n, as: a ?? d, ...e, className: o(l, r, "kakadu-components-1669332734", u, s) });
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function y({
|
|
16
16
|
as: n,
|
|
17
17
|
id: a,
|
|
18
18
|
children: s,
|
|
19
19
|
className: e,
|
|
20
20
|
...k
|
|
21
21
|
}) {
|
|
22
|
-
return /* @__PURE__ */ t.jsx(
|
|
22
|
+
return /* @__PURE__ */ t.jsx(i, { as: n ?? "h1", id: a, ...k, className: o(e), children: /* @__PURE__ */ t.jsx("a", { href: `#${a}`, className: "kakadu-components-1038708690", children: s }) });
|
|
23
23
|
}
|
|
24
|
-
const p = o("kakadu-components-1923397960",
|
|
24
|
+
const p = o("kakadu-components-1923397960", r, u);
|
|
25
25
|
function x({
|
|
26
26
|
as: n,
|
|
27
27
|
className: a,
|
|
28
28
|
...s
|
|
29
29
|
}) {
|
|
30
|
-
return /* @__PURE__ */ t.jsx(
|
|
30
|
+
return /* @__PURE__ */ t.jsx(m, { as: n ?? "span", ...s, className: o(p, a) });
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function H({
|
|
33
33
|
as: n,
|
|
34
34
|
className: a,
|
|
35
35
|
...s
|
|
36
36
|
}) {
|
|
37
|
-
return /* @__PURE__ */ t.jsx(
|
|
37
|
+
return /* @__PURE__ */ t.jsx(m, { as: n ?? "p", ...s, className: o(p, "kakadu-components-621160204", a) });
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function W({
|
|
40
40
|
as: n,
|
|
41
41
|
className: a,
|
|
42
42
|
...s
|
|
43
43
|
}) {
|
|
44
44
|
return /* @__PURE__ */ t.jsx(x, { as: n ?? "span", ...s, className: o("kakadu-components-1329768068", a) });
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function f({
|
|
47
47
|
as: n,
|
|
48
48
|
width: a = c.text,
|
|
49
49
|
className: s,
|
|
50
50
|
...e
|
|
51
51
|
}) {
|
|
52
|
-
return /* @__PURE__ */ t.jsx(
|
|
52
|
+
return /* @__PURE__ */ t.jsx(m, { as: n ?? "div", ...e, className: o("kakadu-components-1437359321", a === c.page && "kakadu-components-2433581593", a === c.text && "kakadu-components-958855245", a === c.content && "kakadu-components-797764377", s) });
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function v(n) {
|
|
55
55
|
const {
|
|
56
56
|
className: a
|
|
57
57
|
} = n;
|
|
58
|
-
return /* @__PURE__ */ t.jsx(
|
|
58
|
+
return /* @__PURE__ */ t.jsx(f, { ...n, className: o("kakadu-components-323682454", a) });
|
|
59
59
|
}
|
|
60
60
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
y as AnchorHeading,
|
|
62
|
+
i as Heading,
|
|
63
|
+
v as Hero,
|
|
64
|
+
W as Label,
|
|
65
|
+
H as Paragraph,
|
|
66
66
|
x as Span,
|
|
67
|
-
|
|
67
|
+
f as default,
|
|
68
|
+
d as defaultHeadingElementType,
|
|
68
69
|
p as spanStyles,
|
|
69
|
-
|
|
70
|
+
r as textShadowStyles
|
|
70
71
|
};
|