@kaio-xyz/design-system 1.1.78 → 1.1.80
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.cjs.js +10 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/index.esm.js +10 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs.js
CHANGED
|
@@ -12,6 +12,7 @@ var RTooltip = require('@radix-ui/react-tooltip');
|
|
|
12
12
|
var recharts = require('recharts');
|
|
13
13
|
var DataTable = require('react-data-table-component');
|
|
14
14
|
var RTabs = require('@radix-ui/react-tabs');
|
|
15
|
+
var CurrencyInput = require('react-currency-input-field');
|
|
15
16
|
|
|
16
17
|
function _interopNamespaceDefault(e) {
|
|
17
18
|
var n = Object.create(null);
|
|
@@ -900,7 +901,7 @@ var Drawer = function (_a) {
|
|
|
900
901
|
var style$2 = {"root":"alert-module__root__WGdLe","button":"alert-module__button__uNX69"};
|
|
901
902
|
|
|
902
903
|
var Alert = function (_a) {
|
|
903
|
-
var title = _a.title, _b = _a.type, type = _b === void 0 ? "info" : _b,
|
|
904
|
+
var title = _a.title, _b = _a.type, type = _b === void 0 ? "info" : _b, children = _a.children, buttonText = _a.buttonText, dataTest = _a.dataTest, onClick = _a.onClick, rest = __rest(_a, ["title", "type", "children", "buttonText", "dataTest", "onClick"]);
|
|
904
905
|
var icon = React.useMemo(function () {
|
|
905
906
|
switch (type) {
|
|
906
907
|
case "success": return jsxRuntime.jsx(SvgCheck, { viewBox: "0 0 24 24" });
|
|
@@ -910,7 +911,7 @@ var Alert = function (_a) {
|
|
|
910
911
|
default: return jsxRuntime.jsx(SvgLoader, { viewBox: "0 0 24 24" });
|
|
911
912
|
}
|
|
912
913
|
}, [type]);
|
|
913
|
-
return (jsxRuntime.jsxs(Stack, __assign({ className: style$2.root, position:
|
|
914
|
+
return (jsxRuntime.jsxs(Stack, __assign({ className: style$2.root, position: children ? "vertical" : "horizontal-space", space: "m", "data-type": type, "data-test": dataTest }, rest, { children: [jsxRuntime.jsxs(Stack, { position: "horizontal", children: [icon, title] }), jsxRuntime.jsx("p", { children: children }), buttonText && (jsxRuntime.jsx(Button, { className: style$2.button, variant: type, onClick: onClick, isInverted: true, size: "small", children: buttonText }))] })));
|
|
914
915
|
};
|
|
915
916
|
|
|
916
917
|
var style$1 = {"root":"box-module__root__dZ-MR","icon":"box-module__icon__3dFXL"};
|
|
@@ -958,6 +959,12 @@ var TextArea = React.forwardRef(function (_a, ref) {
|
|
|
958
959
|
});
|
|
959
960
|
TextArea.displayName = "TextArea";
|
|
960
961
|
|
|
962
|
+
var FormattedTextField = React.forwardRef(function (_a, ref) {
|
|
963
|
+
var rest = __rest(_a, []);
|
|
964
|
+
return (jsxRuntime.jsx(CurrencyInput, __assign({ customInput: TextField, ref: ref, decimalsLimit: 2, decimalScale: 2, prefix: "$ ", groupSeparator: ",", decimalSeparator: "." }, rest)));
|
|
965
|
+
});
|
|
966
|
+
FormattedTextField.displayName = "FormattedTextField";
|
|
967
|
+
|
|
961
968
|
exports.Accordion = Accordion;
|
|
962
969
|
exports.Alert = Alert;
|
|
963
970
|
exports.Badge = Badge;
|
|
@@ -971,6 +978,7 @@ exports.Container = Container;
|
|
|
971
978
|
exports.Drawer = Drawer;
|
|
972
979
|
exports.DropdownMenu = DropdownMenu;
|
|
973
980
|
exports.FormSelect = FormSelect;
|
|
981
|
+
exports.FormattedTextField = FormattedTextField;
|
|
974
982
|
exports.InfoModal = InfoModal;
|
|
975
983
|
exports.InvestmentGraph = InvestmentGraph;
|
|
976
984
|
exports.InvestmentsHeader = InvestmentsHeader;
|