@obolnetwork/obol-ui 1.0.37 → 1.0.38
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/index.es.js +4 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1424,7 +1424,10 @@ var TextFieldWithCopy = forwardRef(function (_a, ref) {
|
|
|
1424
1424
|
onChange(e);
|
|
1425
1425
|
}
|
|
1426
1426
|
};
|
|
1427
|
-
return (jsxs(Box, __assign({ css: { display: "flex", width: "$full" } }, { children: [jsx(TextField, __assign({}, props, { withCopy: true, ref: innerRef, value: inputValue, onChange: handleOnChange, css: { width: "$full" } })), jsxs(Tooltip, __assign({ open: isCopied }, { children: [jsx(TooltipTrigger, __assign({ asChild: true }, { children: jsx(IconButton, __assign({ onClick: function () {
|
|
1427
|
+
return (jsxs(Box, __assign({ css: { display: "flex", width: "$full" } }, { children: [jsx(TextField, __assign({}, props, { withCopy: true, ref: innerRef, value: inputValue, onChange: handleOnChange, css: { width: "$full" } })), jsxs(Tooltip, __assign({ open: isCopied }, { children: [jsx(TooltipTrigger, __assign({ asChild: true }, { children: jsx(IconButton, __assign({ onClick: function (e) {
|
|
1428
|
+
e.preventDefault();
|
|
1429
|
+
copyToClipBoard(inputValue);
|
|
1430
|
+
} }, { children: !isCopied ? jsx(CopyIcon, {}) : jsx(CheckIcon, {}) })) })), jsxs(Content$3, __assign({ side: "bottom", sideOffset: 5 }, { children: ["Copied!", jsx(TooltipArrow, {})] }))] }))] })));
|
|
1428
1431
|
});
|
|
1429
1432
|
TextFieldWithCopy.displayName = "TextFieldWithCopy";
|
|
1430
1433
|
|
package/dist/index.js
CHANGED
|
@@ -1458,7 +1458,10 @@ var TextFieldWithCopy = React.forwardRef(function (_a, ref) {
|
|
|
1458
1458
|
onChange(e);
|
|
1459
1459
|
}
|
|
1460
1460
|
};
|
|
1461
|
-
return (jsxRuntime.jsxs(Box, __assign({ css: { display: "flex", width: "$full" } }, { children: [jsxRuntime.jsx(TextField, __assign({}, props, { withCopy: true, ref: innerRef, value: inputValue, onChange: handleOnChange, css: { width: "$full" } })), jsxRuntime.jsxs(Tooltip, __assign({ open: isCopied }, { children: [jsxRuntime.jsx(TooltipTrigger, __assign({ asChild: true }, { children: jsxRuntime.jsx(IconButton, __assign({ onClick: function () {
|
|
1461
|
+
return (jsxRuntime.jsxs(Box, __assign({ css: { display: "flex", width: "$full" } }, { children: [jsxRuntime.jsx(TextField, __assign({}, props, { withCopy: true, ref: innerRef, value: inputValue, onChange: handleOnChange, css: { width: "$full" } })), jsxRuntime.jsxs(Tooltip, __assign({ open: isCopied }, { children: [jsxRuntime.jsx(TooltipTrigger, __assign({ asChild: true }, { children: jsxRuntime.jsx(IconButton, __assign({ onClick: function (e) {
|
|
1462
|
+
e.preventDefault();
|
|
1463
|
+
copyToClipBoard(inputValue);
|
|
1464
|
+
} }, { children: !isCopied ? jsxRuntime.jsx(CopyIcon, {}) : jsxRuntime.jsx(CheckIcon, {}) })) })), jsxRuntime.jsxs(Content$3, __assign({ side: "bottom", sideOffset: 5 }, { children: ["Copied!", jsxRuntime.jsx(TooltipArrow, {})] }))] }))] })));
|
|
1462
1465
|
});
|
|
1463
1466
|
TextFieldWithCopy.displayName = "TextFieldWithCopy";
|
|
1464
1467
|
|