@babylonlabs-io/core-ui 1.22.0 → 1.24.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/Dialog/Dialog.stories.js +2 -1
- package/dist/components/Icons/common/CollapseIcon.d.ts +2 -0
- package/dist/components/Icons/common/CollapseIcon.js +7 -0
- package/dist/components/Icons/common/OpenIcon.d.ts +2 -0
- package/dist/components/Icons/common/OpenIcon.js +7 -0
- package/dist/components/Icons/index.d.ts +2 -0
- package/dist/components/Icons/index.js +2 -0
- package/dist/images/status/collapse.svg +4 -0
- package/dist/images/status/open.svg +4 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1239 -1099
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/widgets/sections/ActivityCard/ActivityCard.d.ts +5 -0
- package/dist/widgets/sections/ActivityCard/ActivityCard.js +2 -1
- package/dist/widgets/sections/ActivityCard/ActivityCard.stories.js +48 -11
- package/dist/widgets/sections/ActivityCard/components/ActivityCardActionSection.js +1 -1
- package/dist/widgets/sections/ActivityCard/components/ActivityCardAmountSection.d.ts +4 -3
- package/dist/widgets/sections/ActivityCard/components/ActivityCardAmountSection.js +4 -4
- package/dist/widgets/sections/ActivityCard/components/ActivityCardDetailsSection.js +11 -2
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { Button } from "@/components/Button";
|
|
|
6
6
|
import { Checkbox } from "@/components/Form";
|
|
7
7
|
import { Text } from "@/components/Text";
|
|
8
8
|
import { Heading } from "@/index";
|
|
9
|
+
import { WarningIcon } from "@/components/Icons";
|
|
9
10
|
const meta = {
|
|
10
11
|
component: Dialog,
|
|
11
12
|
tags: ["autodocs"],
|
|
@@ -34,7 +35,7 @@ export const NoBackdrop = {
|
|
|
34
35
|
const [visible, setVisibility] = useState(false);
|
|
35
36
|
return (_jsxs(ScrollLocker, { children: [_jsx(Button, { onClick: () => {
|
|
36
37
|
setVisibility(true);
|
|
37
|
-
}, children: "Push me softly" }), _jsxs(Dialog, { ...props, open: visible, hasBackdrop: false, children: [_jsxs(DialogBody, { className: "flex flex-col items-center pb-8 pt-4 text-primary-dark", children: [_jsx(
|
|
38
|
+
}, children: "Push me softly" }), _jsxs(Dialog, { ...props, open: visible, hasBackdrop: false, children: [_jsxs(DialogBody, { className: "flex flex-col items-center pb-8 pt-4 text-primary-dark", children: [_jsx(WarningIcon, { size: 88, variant: "default" }), _jsx(Heading, { variant: "h5", className: "mt-4", children: "Unbonding Error" }), _jsx(Text, { variant: "body1", className: "mt-2 text-center", children: "Your request to unbond failed due to: Failed to sign PSBT for the unbonding transaction" })] }), _jsx(DialogFooter, { children: _jsx(Button, { fluid: true, variant: "outlined", onClick: () => {
|
|
38
39
|
setVisibility(false);
|
|
39
40
|
}, children: "Done" }) })] })] }));
|
|
40
41
|
},
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { iconColorVariants } from "../index";
|
|
3
|
+
import { twJoin } from "tailwind-merge";
|
|
4
|
+
export const CollapseIcon = ({ className = "", size = 20, variant = "default", color }) => {
|
|
5
|
+
const colorClass = color || iconColorVariants[variant];
|
|
6
|
+
return (_jsxs("svg", { style: { width: size, height: size }, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: twJoin("transition-opacity duration-200", colorClass, className), children: [_jsx("rect", { x: "0.5", y: "0.5", width: "19", height: "19", rx: "3.5", stroke: "currentColor" }), _jsx("path", { d: "M14.0832 10.5846H5.9165V9.41797H14.0832V10.5846Z", fill: "currentColor" })] }));
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { iconColorVariants } from "../index";
|
|
3
|
+
import { twJoin } from "tailwind-merge";
|
|
4
|
+
export const OpenIcon = ({ className = "", size = 20, variant = "default", color }) => {
|
|
5
|
+
const colorClass = color || iconColorVariants[variant];
|
|
6
|
+
return (_jsxs("svg", { style: { width: size, height: size }, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: twJoin("transition-opacity duration-200", colorClass, className), children: [_jsx("rect", { x: "0.5", y: "0.5", width: "19", height: "19", rx: "3.5", stroke: "currentColor" }), _jsx("path", { d: "M14 10.5714H10.5714V14H9.42857V10.5714H6V9.42857H9.42857V6H10.5714V9.42857H14V10.5714Z", fill: "currentColor" })] }));
|
|
7
|
+
};
|
|
@@ -22,3 +22,5 @@ export { UsingInscriptionIcon } from "./wallet/UsingInscriptionIcon";
|
|
|
22
22
|
export { CopyIcon } from "./common/CopyIcon";
|
|
23
23
|
export { CloseIcon } from "./common/CloseIcon";
|
|
24
24
|
export { WarningIcon } from "./common/WarningIcon";
|
|
25
|
+
export { CollapseIcon } from "./common/CollapseIcon";
|
|
26
|
+
export { OpenIcon } from "./common/OpenIcon";
|
|
@@ -17,3 +17,5 @@ export { UsingInscriptionIcon } from "./wallet/UsingInscriptionIcon";
|
|
|
17
17
|
export { CopyIcon } from "./common/CopyIcon";
|
|
18
18
|
export { CloseIcon } from "./common/CloseIcon";
|
|
19
19
|
export { WarningIcon } from "./common/WarningIcon";
|
|
20
|
+
export { CollapseIcon } from "./common/CollapseIcon";
|
|
21
|
+
export { OpenIcon } from "./common/OpenIcon";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.5" y="0.5" width="19" height="19" rx="3.5" stroke="#5A5A5A" />
|
|
3
|
+
<path d="M14 10.5714H10.5714V14H9.42857V10.5714H6V9.42857H9.42857V6H10.5714V9.42857H14V10.5714Z" fill="#5A5A5A" />
|
|
4
|
+
</svg>
|