@bouku/core 0.4.8 → 0.4.9

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
1
  export { default as Section } from "./section.js";
2
2
  export { default as Footer } from "./footer.js";
3
3
  export { default as Separator } from "./separator.js";
4
+ export { ErrorMessage } from "./status.js";
@@ -1,3 +1,4 @@
1
1
  export { default as Section } from "./section.js";
2
2
  export { default as Footer } from "./footer.js";
3
3
  export { default as Separator } from "./separator.js";
4
+ export { ErrorMessage } from "./status.js";
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from "react";
2
+ export declare function ErrorMessage({ children }: {
3
+ children: ReactNode;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ColumnBox } from "../container/flex.js";
3
+ import XCircle from "../../assets/icons/x-circle.svg";
4
+ export function ErrorMessage({ children }) {
5
+ return (_jsxs(ColumnBox, { style: "grow gap-4", center: true, children: [_jsx(XCircle, { className: "text-4xl text-error" }), _jsx("span", { className: "text-2xl font-bold", children: children })] }));
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bouku/core",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "main": "./dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",