@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 default function Wrapper<Type extends AtomElementType = DefaultAtomElementType>({ as, gap, direction, alignment, wrap, width, className, innerClassName, children, ...properties }: FlexProperties<Type> & {
9
+ export type WrapperProperties<Type extends AtomElementType = DefaultAtomElementType> = FlexProperties<Type> & {
9
10
  readonly width?: WrapperWidth;
10
11
  readonly innerClassName?: string;
11
- }): import("react/jsx-runtime").JSX.Element;
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"),i=require("./atom.js"),a=require("./flex.js");var s=(e=>(e.page="page",e.text="text",e.content="content",e))(s||{});function k({as:e,gap:u,direction:c,alignment:r,wrap:m,width:t="page",className:p,innerClassName:l,children:x,...d}){return n.jsxRuntimeExports.jsx(a.default,{as:e??i.defaultAtomElementType,...d,className:o.cx("kakadu-components-847862034",p),children: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})})}exports.WrapperWidth=s;exports.default=k;
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 f } from "./atom.mjs";
3
+ import { defaultAtomElementType as d } from "./atom.mjs";
4
4
  import n from "./flex.mjs";
5
- var l = /* @__PURE__ */ ((e) => (e.page = "page", e.text = "text", e.content = "content", e))(l || {});
6
- function E({
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
- ...x
16
+ outerChildrenBefore: x,
17
+ outerChildrenAfter: f,
18
+ ...l
17
19
  }) {
18
- return /* @__PURE__ */ o.jsx(n, { as: e ?? f, ...x, className: a("kakadu-components-847862034", c), children: /* @__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 }) });
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
- l as WrapperWidth,
22
- E as default
27
+ g as WrapperWidth,
28
+ v as default
23
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kakadu/components",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "Kakadu components library",
5
5
  "license": "MIT",
6
6
  "main": "./build/index.js",