@kakadu/components 1.1.24 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import { type AtomElementType, type DefaultAtomElementType } from './atom';
|
|
2
3
|
import { type FlexProperties } from './flex';
|
|
3
4
|
export declare enum WrapperWidth {
|
|
@@ -5,7 +6,10 @@ export declare enum WrapperWidth {
|
|
|
5
6
|
'text' = "text",
|
|
6
7
|
'content' = "content"
|
|
7
8
|
}
|
|
8
|
-
export
|
|
9
|
+
export type WrapperProperties<Type extends AtomElementType = DefaultAtomElementType> = FlexProperties<Type> & {
|
|
9
10
|
readonly width?: WrapperWidth;
|
|
10
11
|
readonly innerClassName?: string;
|
|
11
|
-
|
|
12
|
+
readonly outerChildrenBefore?: ReactNode;
|
|
13
|
+
readonly outerChildrenAfter?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export default function Wrapper<Type extends AtomElementType = DefaultAtomElementType>({ as, gap, direction, alignment, wrap, width, className, innerClassName, children, outerChildrenBefore, outerChildrenAfter, ...properties }: WrapperProperties<Type>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../jsx-runtime-BB_1_6y_.js"),o=require("@kuma-ui/core"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../jsx-runtime-BB_1_6y_.js"),o=require("@kuma-ui/core"),f=require("./atom.js"),a=require("./flex.js");var s=(e=>(e.page="page",e.text="text",e.content="content",e))(s||{});function g({as:e,gap:u,direction:c,alignment:r,wrap:m,width:t="page",className:p,innerClassName:l,children:x,outerChildrenBefore:d,outerChildrenAfter:i,...k}){return n.jsxRuntimeExports.jsxs(a.default,{as:e??f.defaultAtomElementType,...k,className:o.cx("kakadu-components-847862034",p),children:[d,n.jsxRuntimeExports.jsx(a.default,{direction:c,alignment:r,wrap:m,gap:u,className:o.cx("kakadu-components-1099799322",t==="page"&&"kakadu-components-3142729958",t==="text"&&"kakadu-components-2670503515",t==="content"&&"kakadu-components-259932668",l),children:x}),i]})}exports.WrapperWidth=s;exports.default=g;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "../jsx-runtime-B4hRZ52C.mjs";
|
|
2
2
|
import { cx as a } from "@kuma-ui/core";
|
|
3
|
-
import { defaultAtomElementType as
|
|
3
|
+
import { defaultAtomElementType as d } from "./atom.mjs";
|
|
4
4
|
import n from "./flex.mjs";
|
|
5
|
-
var
|
|
6
|
-
function
|
|
5
|
+
var g = /* @__PURE__ */ ((e) => (e.page = "page", e.text = "text", e.content = "content", e))(g || {});
|
|
6
|
+
function v({
|
|
7
7
|
as: e,
|
|
8
8
|
gap: m,
|
|
9
9
|
direction: s,
|
|
@@ -13,11 +13,17 @@ function E({
|
|
|
13
13
|
className: c,
|
|
14
14
|
innerClassName: u,
|
|
15
15
|
children: k,
|
|
16
|
-
|
|
16
|
+
outerChildrenBefore: x,
|
|
17
|
+
outerChildrenAfter: f,
|
|
18
|
+
...l
|
|
17
19
|
}) {
|
|
18
|
-
return /* @__PURE__ */ o.
|
|
20
|
+
return /* @__PURE__ */ o.jsxs(n, { as: e ?? d, ...l, className: a("kakadu-components-847862034", c), children: [
|
|
21
|
+
x,
|
|
22
|
+
/* @__PURE__ */ o.jsx(n, { direction: s, alignment: p, wrap: r, gap: m, className: a("kakadu-components-1099799322", t === "page" && "kakadu-components-3142729958", t === "text" && "kakadu-components-2670503515", t === "content" && "kakadu-components-259932668", u), children: k }),
|
|
23
|
+
f
|
|
24
|
+
] });
|
|
19
25
|
}
|
|
20
26
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
g as WrapperWidth,
|
|
28
|
+
v as default
|
|
23
29
|
};
|