@babylonlabs-io/core-ui 1.16.0 → 1.18.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/dist/components/Warning/Warning.js +1 -1
- package/dist/elements/Table/Table.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +2123 -1966
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/widgets/sections/PreviewModal/PreviewModal.d.ts +10 -1
- package/dist/widgets/sections/PreviewModal/PreviewModal.js +23 -12
- package/dist/widgets/sections/PreviewModal/PreviewModal.stories.d.ts +1 -0
- package/dist/widgets/sections/PreviewModal/PreviewModal.stories.js +29 -0
- package/dist/widgets/sections/UnbondingModal/UnbondingModal.d.ts +49 -0
- package/dist/widgets/sections/UnbondingModal/UnbondingModal.js +18 -0
- package/dist/widgets/sections/UnbondingModal/UnbondingModal.stories.d.ts +7 -0
- package/dist/widgets/sections/UnbondingModal/UnbondingModal.stories.js +81 -0
- package/dist/widgets/sections/UnbondingModal/index.d.ts +1 -0
- package/dist/widgets/sections/UnbondingModal/index.js +1 -0
- package/dist/widgets/sections/ValidatorSelector/ValidatorSelector.d.ts +25 -0
- package/dist/widgets/sections/ValidatorSelector/ValidatorSelector.js +34 -0
- package/dist/widgets/sections/ValidatorSelector/ValidatorSelector.stories.d.ts +6 -0
- package/dist/widgets/sections/ValidatorSelector/ValidatorSelector.stories.js +52 -0
- package/dist/widgets/sections/ValidatorSelector/index.d.ts +1 -0
- package/dist/widgets/sections/ValidatorSelector/index.js +1 -0
- package/package.json +1 -1
|
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { twJoin } from "tailwind-merge";
|
|
3
3
|
import "./Warning.css";
|
|
4
4
|
export function Warning({ children, className }) {
|
|
5
|
-
return (_jsxs("div", { className: twJoin("bbn-warning", className), children: [_jsx("img", { src: "/images/status/warning_dark2.svg", alt: "Warning icon", className: "bbn-warning-icon" }), _jsx("p", { className: "bbn-warning-message", children: children })] }));
|
|
5
|
+
return (_jsxs("div", { className: twJoin("bbn-warning", className), children: [_jsx("img", { src: "/images/status/warning_dark2.svg", alt: "Warning icon", className: "bbn-warning-icon" }), _jsx("p", { className: "bbn-warning-message whitespace-pre-line", children: children })] }));
|
|
6
6
|
}
|
|
@@ -10,5 +10,5 @@ export const Table = ({ data }) => {
|
|
|
10
10
|
const gridStyle = {
|
|
11
11
|
gridTemplateColumns: `repeat(${columnCount}, minmax(0, 1fr))`,
|
|
12
12
|
};
|
|
13
|
-
return (_jsx(Card, { className: "p-6 pt-4", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "items-center gap-4 pb-4 grid", style: gridStyle, children: headers.map((header, idx) => (_jsx(Text, { variant: "caption", className: "text-secondary
|
|
13
|
+
return (_jsx(Card, { className: "p-6 pt-4", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("div", { className: "items-center gap-4 pb-4 grid", style: gridStyle, children: headers.map((header, idx) => (_jsx(Text, { variant: "caption", className: "text-secondary px-2.5", children: header }, `header-${idx}`))) }), rows.map((row, rowIdx) => (_jsx("div", { className: "items-center gap-4 rounded bg-primary-contrast p-1 grid", style: gridStyle, children: row.map((cell, cellIdx) => (_jsx("div", { className: "flex w-full items-center gap-2 py-1 px-2.5", children: cell }, `cell-${rowIdx}-${cellIdx}`))) }, `row-${rowIdx}`)))] }) }));
|
|
14
14
|
};
|