@xfers/design-system 5.0.0-dev.99665c0a5d → 5.0.0-dev.a597d4d71a
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/cjs/StraitsXDecoVertical-70fd7a91.js +2 -0
- package/cjs/StraitsXDecoVertical-70fd7a91.js.map +1 -0
- package/cjs/StraitsXPersonalAccountLightLogo-44c49e48.js +2 -0
- package/cjs/StraitsXPersonalAccountLightLogo-44c49e48.js.map +1 -0
- package/cjs/icons.js +1 -1
- package/cjs/icons.js.map +1 -1
- package/cjs/index.js +4 -20
- package/cjs/index.js.map +1 -1
- package/cjs/logos.js +1 -1
- package/dist/components/DatePicker/index.js +18 -16
- package/dist/components/DatePicker/index.js.map +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Input/HelperText.js +17 -0
- package/dist/components/Input/HelperText.js.map +1 -0
- package/dist/components/Input/InputLabel.js +43 -0
- package/dist/components/Input/InputLabel.js.map +1 -0
- package/dist/components/Input/index.js +39 -55
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Input/inputStyles.js +17 -0
- package/dist/components/Input/inputStyles.js.map +1 -0
- package/dist/components/InputWithButton/index.js +60 -0
- package/dist/components/InputWithButton/index.js.map +1 -0
- package/dist/components/Modal/DialogItems.js +41 -0
- package/dist/components/Modal/DialogItems.js.map +1 -0
- package/dist/components/Modal/index.js +29 -32
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/styles.js +42 -0
- package/dist/components/Modal/styles.js.map +1 -0
- package/dist/components/RangePicker/index.js +9 -7
- package/dist/components/RangePicker/index.js.map +1 -1
- package/dist/components/Select/helpers.js +2 -2
- package/dist/components/Select/helpers.js.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/style.js +10 -6
- package/dist/components/Select/style.js.map +1 -1
- package/dist/icons/Coins.js +23 -0
- package/dist/icons/Coins.js.map +1 -0
- package/dist/icons/StraitsXDecoVertical.js +25 -0
- package/dist/icons/StraitsXDecoVertical.js.map +1 -0
- package/dist/icons/SwitchAccount.js +20 -0
- package/dist/icons/SwitchAccount.js.map +1 -0
- package/dist/icons/index.js +8 -2
- package/dist/icons/index.js.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/logos/Base.js +5 -2
- package/dist/logos/Base.js.map +1 -1
- package/dist/shared/TypographyStyles.js +13 -1
- package/dist/shared/TypographyStyles.js.map +1 -1
- package/dist/shared/modalContext.js +2 -2
- package/dist/shared/modalContext.js.map +1 -1
- package/dist/shared/momentDatePicker.js +9 -0
- package/dist/shared/momentDatePicker.js.map +1 -0
- package/dist/types/components/DatePicker/index.d.ts +8 -1
- package/dist/types/components/Input/HelperText.d.ts +7 -0
- package/dist/types/components/Input/InputLabel.d.ts +11 -0
- package/dist/types/components/Input/index.d.ts +29 -15
- package/dist/types/components/Input/inputStyles.d.ts +4 -0
- package/dist/types/components/InputWithButton/index.d.ts +18 -0
- package/dist/types/components/Modal/DialogItems.d.ts +13 -0
- package/dist/types/components/Modal/index.d.ts +9 -2
- package/dist/types/components/Modal/styles.d.ts +17 -0
- package/dist/types/components/RangePicker/index.d.ts +5 -2
- package/dist/types/components/Select/style.d.ts +1 -0
- package/dist/types/icons/Coins.d.ts +3 -0
- package/dist/types/icons/StraitsXDecoVertical.d.ts +3 -0
- package/dist/types/icons/SwitchAccount.d.ts +3 -0
- package/dist/types/icons/index.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/shared/TypographyStyles.d.ts +13 -0
- package/dist/types/shared/momentDatePicker.d.ts +34 -0
- package/es/StraitsXDecoVertical-0243d5ce.js +2 -0
- package/es/StraitsXDecoVertical-0243d5ce.js.map +1 -0
- package/es/{StraitsXPersonalAccountLightLogo-2319d5c0.js → StraitsXPersonalAccountLightLogo-17fc73c1.js} +2 -2
- package/es/{StraitsXPersonalAccountLightLogo-2319d5c0.js.map → StraitsXPersonalAccountLightLogo-17fc73c1.js.map} +1 -1
- package/es/icons.js +1 -1
- package/es/icons.js.map +1 -1
- package/es/index.js +4 -20
- package/es/index.js.map +1 -1
- package/es/logos.js +1 -1
- package/package.json +1 -1
- package/cjs/MintSetupWallet-000e4d82.js +0 -2
- package/cjs/MintSetupWallet-000e4d82.js.map +0 -1
- package/cjs/StraitsXPersonalAccountLightLogo-042665bf.js +0 -2
- package/cjs/StraitsXPersonalAccountLightLogo-042665bf.js.map +0 -1
- package/es/MintSetupWallet-d8dd9538.js +0 -2
- package/es/MintSetupWallet-d8dd9538.js.map +0 -1
package/dist/logos/Base.js
CHANGED
|
@@ -13,7 +13,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
var react_1 = require("react");
|
|
15
15
|
var Base = function (props) { return (react_1.default.createElement("svg", __assign({ width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
16
|
-
react_1.default.createElement("
|
|
17
|
-
|
|
16
|
+
react_1.default.createElement("g", { clipPath: "url(#clip0_5531_97)" },
|
|
17
|
+
react_1.default.createElement("path", { d: "M0.000129395 3.16C0.000129395 2.0775 0.000129402 1.53656 0.204192 1.12C0.399504 0.72125 0.721692 0.399063 1.12044 0.20375C1.53669 0 2.07763 0 3.16013 0H36.8401C37.9223 0 38.4639 0 38.8801 0.204063C39.2786 0.399375 39.6008 0.721562 39.7964 1.12031C40.0001 1.53656 40.0001 2.07781 40.0001 3.16031V36.8403C40.0001 37.9225 40.0001 38.4641 39.7964 38.8803C39.6008 39.2788 39.2786 39.6009 38.8801 39.7966C38.4639 40.0003 37.9223 40.0003 36.8401 40.0003H3.16013C2.07763 40.0003 1.53669 40.0003 1.12013 39.7966C0.721379 39.6009 0.399192 39.2788 0.203879 38.8803C-0.000183105 38.4641 -0.000183105 37.9225 -0.000183105 36.8403V3.16H0.000129395Z", fill: "#0000FF" })),
|
|
18
|
+
react_1.default.createElement("defs", null,
|
|
19
|
+
react_1.default.createElement("clipPath", { id: "clip0_5531_97" },
|
|
20
|
+
react_1.default.createElement("rect", { width: "40", height: "40", fill: "white" }))))); };
|
|
18
21
|
exports.default = Base;
|
|
19
22
|
//# sourceMappingURL=Base.js.map
|
package/dist/logos/Base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../src/logos/Base.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+BAAuC;AAEvC,IAAM,IAAI,GAAG,UAAC,KAA8B,IAAK,OAAA,CAC/C,gDACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK;IAET,
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../src/logos/Base.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+BAAuC;AAEvC,IAAM,IAAI,GAAG,UAAC,KAA8B,IAAK,OAAA,CAC/C,gDACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,IAC9B,KAAK;IAET,qCAAG,QAAQ,EAAC,qBAAqB;QAC/B,wCACE,CAAC,EAAC,4nBAA4nB,EAC9nB,IAAI,EAAC,SAAS,GACd,CACA;IACJ;QACE,4CAAU,EAAE,EAAC,eAAe;YAC1B,wCAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,GAAG,CACnC,CACN,CACH,CACP,EArBgD,CAqBhD,CAAA;AAED,kBAAe,IAAI,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LINE_HEIGHT = exports.FONT_SIZE = exports.FONT_WEIGHT = exports.FALLBACK_FONT = exports.SECONDARY_FONT = exports.MAIN_FONT = void 0;
|
|
3
|
+
exports.LINE_HEIGHT = exports.SIZE_CONFIG = exports.FONT_SIZE = exports.FONT_WEIGHT = exports.FALLBACK_FONT = exports.SECONDARY_FONT = exports.MAIN_FONT = void 0;
|
|
4
4
|
exports.MAIN_FONT = 'Hanken Grotesk';
|
|
5
5
|
exports.SECONDARY_FONT = 'Red Hat Display';
|
|
6
6
|
exports.FALLBACK_FONT = 'Inter';
|
|
@@ -24,6 +24,18 @@ var FONT_SIZE;
|
|
|
24
24
|
FONT_SIZE["SMALL"] = "12px";
|
|
25
25
|
FONT_SIZE["SMALL_MOBILE"] = "14px";
|
|
26
26
|
})(FONT_SIZE || (exports.FONT_SIZE = FONT_SIZE = {}));
|
|
27
|
+
exports.SIZE_CONFIG = {
|
|
28
|
+
large: {
|
|
29
|
+
height: '48px',
|
|
30
|
+
borderRadius: '12px',
|
|
31
|
+
padding: '12px 16px',
|
|
32
|
+
},
|
|
33
|
+
small: {
|
|
34
|
+
height: '36px',
|
|
35
|
+
borderRadius: '8px',
|
|
36
|
+
padding: '8px 12px',
|
|
37
|
+
},
|
|
38
|
+
};
|
|
27
39
|
var LINE_HEIGHT;
|
|
28
40
|
(function (LINE_HEIGHT) {
|
|
29
41
|
LINE_HEIGHT["H1"] = "29px";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypographyStyles.js","sourceRoot":"","sources":["../../src/shared/TypographyStyles.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,gBAAgB,CAAA;AAC5B,QAAA,cAAc,GAAG,iBAAiB,CAAA;AAClC,QAAA,aAAa,GAAG,OAAO,CAAA;AAEpC,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,+CAAU,CAAA;IACV,mDAAY,CAAA;IACZ,qDAAa,CAAA;AACf,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,IAAY,SAYX;AAZD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,+BAAkB,CAAA;IAClB,wBAAW,CAAA;IACX,+BAAkB,CAAA;IAClB,wBAAW,CAAA;IACX,+BAAkB,CAAA;IAClB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,+BAAkB,CAAA;IAClB,2BAAc,CAAA;IACd,kCAAqB,CAAA;AACvB,CAAC,EAZW,SAAS,yBAAT,SAAS,QAYpB;AAED,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,iCAAkB,CAAA;IAClB,0BAAW,CAAA;IACX,iCAAkB,CAAA;IAClB,0BAAW,CAAA;IACX,iCAAkB,CAAA;IAClB,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,iCAAkB,CAAA;IAClB,6BAAc,CAAA;IACd,oCAAqB,CAAA;AACvB,CAAC,EAZW,WAAW,2BAAX,WAAW,QAYtB"}
|
|
1
|
+
{"version":3,"file":"TypographyStyles.js","sourceRoot":"","sources":["../../src/shared/TypographyStyles.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,gBAAgB,CAAA;AAC5B,QAAA,cAAc,GAAG,iBAAiB,CAAA;AAClC,QAAA,aAAa,GAAG,OAAO,CAAA;AAEpC,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,+CAAU,CAAA;IACV,mDAAY,CAAA;IACZ,qDAAa,CAAA;AACf,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,IAAY,SAYX;AAZD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,+BAAkB,CAAA;IAClB,wBAAW,CAAA;IACX,+BAAkB,CAAA;IAClB,wBAAW,CAAA;IACX,+BAAkB,CAAA;IAClB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,+BAAkB,CAAA;IAClB,2BAAc,CAAA;IACd,kCAAqB,CAAA;AACvB,CAAC,EAZW,SAAS,yBAAT,SAAS,QAYpB;AAIY,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE;QACL,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,MAAM;QACpB,OAAO,EAAE,WAAW;KACrB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,KAAK;QACnB,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;AAED,IAAY,WAYX;AAZD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,iCAAkB,CAAA;IAClB,0BAAW,CAAA;IACX,iCAAkB,CAAA;IAClB,0BAAW,CAAA;IACX,iCAAkB,CAAA;IAClB,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,iCAAkB,CAAA;IAClB,6BAAc,CAAA;IACd,oCAAqB,CAAA;AACvB,CAAC,EAZW,WAAW,2BAAX,WAAW,QAYtB"}
|
|
@@ -11,7 +11,7 @@ var styled_1 = require("@emotion/styled");
|
|
|
11
11
|
var core_1 = require("@emotion/core");
|
|
12
12
|
var ModalContext = react_1.default.createContext({
|
|
13
13
|
setModal: function () { return null; },
|
|
14
|
-
resetModal: function () { return null; }
|
|
14
|
+
resetModal: function () { return null; },
|
|
15
15
|
});
|
|
16
16
|
var bodyElement = document.body;
|
|
17
17
|
var ModalContainer = function (_a) {
|
|
@@ -51,7 +51,7 @@ var useModal = function () {
|
|
|
51
51
|
};
|
|
52
52
|
exports.useModal = useModal;
|
|
53
53
|
var showAnimation = (0, core_1.keyframes)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"], ["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"])));
|
|
54
|
-
var ModalMask = styled_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(
|
|
54
|
+
var ModalMask = styled_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(5, 21, 19, 0.7);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ", ";\n"], ["\n position: fixed;\n width: 100vw;\n height: 100%;\n background: rgba(5, 21, 19, 0.7);\n top: 0;\n left: 0;\n display: none;\n overflow: auto;\n z-index: 9; // bigger than nav bar z-index: 8\n ", ";\n"])), function (props) {
|
|
55
55
|
return props.open && (0, core_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n animation: ", " 0.3s ease;\n "], ["\n display: block;\n animation: ", " 0.3s ease;\n "])), showAnimation);
|
|
56
56
|
});
|
|
57
57
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modalContext.js","sourceRoot":"","sources":["../../src/shared/modalContext.tsx"],"names":[],"mappings":";;;;;;;AAAA,+BAA+D;AAC/D,uCAAgC;AAChC,0CAAoC;AACpC,sCAAsD;AAEtD,IAAM,YAAY,GAAG,eAAK,CAAC,aAAa,CAIrC;IACD,QAAQ,EAAE,cAAM,OAAA,IAAI,EAAJ,CAAI;IACpB,UAAU,EAAE,cAAM,OAAA,IAAI,EAAJ,CAAI;CACvB,CAAC,CAAA;AAEF,IAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAA;AAKjC,IAAM,cAAc,GAAG,UAAC,EAA8B;QAA5B,KAAK,WAAA;IAC7B,sDAAsD;IAC/C,IAAA,WAAW,GAAI,IAAA,gBAAQ,EAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAA3C,CAA2C;IAC7D,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;IAE5C,IAAA,iBAAS,
|
|
1
|
+
{"version":3,"file":"modalContext.js","sourceRoot":"","sources":["../../src/shared/modalContext.tsx"],"names":[],"mappings":";;;;;;;AAAA,+BAA+D;AAC/D,uCAAgC;AAChC,0CAAoC;AACpC,sCAAsD;AAEtD,IAAM,YAAY,GAAG,eAAK,CAAC,aAAa,CAIrC;IACD,QAAQ,EAAE,cAAM,OAAA,IAAI,EAAJ,CAAI;IACpB,UAAU,EAAE,cAAM,OAAA,IAAI,EAAJ,CAAI;CACvB,CAAC,CAAA;AAEF,IAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAA;AAKjC,IAAM,cAAc,GAAG,UAAC,EAA8B;QAA5B,KAAK,WAAA;IAC7B,sDAAsD;IAC/C,IAAA,WAAW,GAAI,IAAA,gBAAQ,EAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAA3C,CAA2C;IAC7D,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;IAE5C,IAAA,iBAAS,EAAC;QACR,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;QACpC,OAAO;YACL,WAAW,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;QACtC,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAA;IAEjB,IAAM,0BAA0B,GAAG,CACjC,8BAAC,aAAM,IACL,MAAM,MAAE,UAAG,sIAAA,kEAIV,OACD,CACH,CAAA;IACD,OAAO,mBAAQ,CAAC,YAAY,CAC1B,8BAAC,SAAS,IAAC,IAAI,EAAE,CAAC,CAAC,KAAK;QACrB,CAAC,CAAC,KAAK,IAAI,0BAA0B;QACrC,KAAK,CACI,EACZ,WAAW,CACZ,CAAA;AACH,CAAC,CAAA;AAGD,IAAM,aAAa,GAAG,UAAC,EAAgC;QAA9B,QAAQ,cAAA;IAC/B,sDAAsD;IAChD,IAAA,KAAoB,IAAA,gBAAQ,GAAkC,EAA7D,KAAK,QAAA,EAAE,QAAQ,QAA8C,CAAA;IACpE,IAAM,UAAU,GAAG,IAAA,mBAAW,EAAC;QAC7B,QAAQ,CAAC,SAAS,CAAC,CAAA;IACrB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEd,OAAO,CACL,8BAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,UAAU,YAAA,EAAE,QAAQ,UAAA,EAAE;QACnD,QAAQ;QACT,8BAAC,cAAc,IAAC,KAAK,EAAE,KAAK,GAAI,CACV,CACzB,CAAA;AACH,CAAC,CAAA;AAWQ,sCAAa;AATtB,IAAM,QAAQ,GAAG;IACf,IAAM,OAAO,GAAG,eAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;IAE9C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAA;IAChE,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAEuB,4BAAQ;AAEhC,IAAM,aAAa,OAAG,gBAAS,sIAAA,kEAO9B,IAAA,CAAA;AACD,IAAM,SAAS,GAAG,gBAAM,CAAC,GAAG,wRAAmB,8MAU3C,EAKC,KACJ,KANG,UAAC,KAAK;IACN,OAAA,KAAK,CAAC,IAAI,QACV,UAAG,qIAAA,4CAEY,EAAa,mBAC3B,KADc,aAAa,CAC3B;AAJD,CAIC,CACJ,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is used to generate a DatePicker component that uses Moment.js as its date library.
|
|
3
|
+
// This is necessary because the default DatePicker component from Ant Design uses Day.js, which is not compatible with Moment.js
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
var antd_1 = require("antd");
|
|
6
|
+
var moment_1 = require("rc-picker/lib/generate/moment");
|
|
7
|
+
var MomentDatePicker = antd_1.DatePicker.generatePicker(moment_1.default);
|
|
8
|
+
exports.default = MomentDatePicker;
|
|
9
|
+
//# sourceMappingURL=momentDatePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"momentDatePicker.js","sourceRoot":"","sources":["../../src/shared/momentDatePicker.ts"],"names":[],"mappings":";AAAA,gGAAgG;AAChG,iIAAiI;;AAEjI,6BAAiC;AAEjC,wDAAgE;AAEhE,IAAM,gBAAgB,GAAG,iBAAU,CAAC,cAAc,CAAS,gBAAoB,CAAC,CAAA;AAEhF,kBAAe,gBAAgB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { InputSize } from '../Input/inputStyles';
|
|
2
3
|
type Props = {
|
|
3
4
|
placeholder?: string;
|
|
4
5
|
format?: string;
|
|
@@ -10,6 +11,12 @@ type Props = {
|
|
|
10
11
|
value?: any;
|
|
11
12
|
label?: string;
|
|
12
13
|
required?: boolean;
|
|
14
|
+
optional?: boolean;
|
|
15
|
+
size?: InputSize;
|
|
16
|
+
error?: boolean;
|
|
17
|
+
helperText?: string;
|
|
18
|
+
showInfoIcon?: boolean;
|
|
19
|
+
onInfoClick?: () => void;
|
|
13
20
|
};
|
|
14
|
-
export default function ({ disabled, label, required, ...rest }: Props): React.JSX.Element;
|
|
21
|
+
export default function ({ disabled, label, required, optional, size, error, helperText, showInfoIcon, onInfoClick, ...rest }: Props): React.JSX.Element;
|
|
15
22
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type InputLabelProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
optional?: boolean;
|
|
6
|
+
showInfoIcon?: boolean;
|
|
7
|
+
infoText?: string;
|
|
8
|
+
onInfoClick?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function InputLabel({ label, required, optional, showInfoIcon, infoText, onInfoClick, }: InputLabelProps): React.ReactElement | null;
|
|
11
|
+
export {};
|
|
@@ -1,22 +1,39 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InputProps } from 'antd';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
className?: string;
|
|
3
|
+
import { InputSize } from './inputStyles';
|
|
4
|
+
type BaseInputProps = {
|
|
8
5
|
label?: string;
|
|
9
6
|
required?: boolean;
|
|
10
7
|
optional?: boolean;
|
|
11
|
-
|
|
8
|
+
size?: InputSize;
|
|
9
|
+
helperText?: string;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
showInfoIcon?: boolean;
|
|
12
|
+
infoText?: string;
|
|
13
|
+
onInfoClick?: () => void;
|
|
14
|
+
};
|
|
15
|
+
type Props = BaseInputProps & {
|
|
16
|
+
addonBefore?: string | React.ReactNode;
|
|
17
|
+
addonAfter?: string | React.ReactNode;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
disabledAddon?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
} & Omit<InputProps, 'addonBefore' | 'addonAfter' | 'placeholder' | 'disabled' | 'className' | 'size'>;
|
|
12
23
|
declare const MainInput: {
|
|
13
|
-
({ addonBefore, placeholder, disabled, className, label, required, optional, ...rest }: Props): React.JSX.Element;
|
|
14
|
-
Password({ addonBefore, placeholder, disabled, className, label, required, ...rest }:
|
|
15
|
-
Search({ addonBefore, placeholder, className, onChange, onSearch, ...rest }: SearchProps): React.JSX.Element;
|
|
16
|
-
TextArea({ className, label, required, optional, ...rest }: TextAreaProps): React.JSX.Element;
|
|
24
|
+
({ addonBefore, addonAfter, placeholder, disabled, disabledAddon, className, label, required, optional, size, helperText, error, showInfoIcon, infoText, onInfoClick, ...rest }: Props): React.JSX.Element;
|
|
25
|
+
Password({ addonBefore, placeholder, disabled, className, label, required, optional, size, helperText, error, showInfoIcon, infoText, onInfoClick, ...rest }: PasswordProps): React.JSX.Element;
|
|
26
|
+
Search({ addonBefore, placeholder, className, onChange, onSearch, size, helperText, error, ...rest }: SearchProps): React.JSX.Element;
|
|
27
|
+
TextArea({ className, label, required, optional, size, helperText, error, showInfoIcon, infoText, onInfoClick, ...rest }: TextAreaProps): React.JSX.Element;
|
|
17
28
|
Group: import("react").FC<import("antd/es/input").GroupProps>;
|
|
18
29
|
};
|
|
19
|
-
type
|
|
30
|
+
type PasswordProps = BaseInputProps & {
|
|
31
|
+
addonBefore?: string;
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
className?: string;
|
|
35
|
+
} & Omit<InputProps, 'addonBefore' | 'placeholder' | 'disabled' | 'className' | 'size'>;
|
|
36
|
+
type SearchProps = Pick<BaseInputProps, 'size' | 'helperText' | 'error'> & {
|
|
20
37
|
addonBefore?: string | React.ReactNode;
|
|
21
38
|
placeholder?: string;
|
|
22
39
|
className?: string;
|
|
@@ -25,15 +42,12 @@ type SearchProps = {
|
|
|
25
42
|
onSearch?: () => void;
|
|
26
43
|
value?: string;
|
|
27
44
|
};
|
|
28
|
-
type TextAreaProps = {
|
|
45
|
+
type TextAreaProps = BaseInputProps & {
|
|
29
46
|
placeholder?: string;
|
|
30
47
|
className?: string;
|
|
31
48
|
style?: Record<string, unknown>;
|
|
32
49
|
onChange?: (e: any) => void;
|
|
33
50
|
onFocus?: any;
|
|
34
|
-
label?: string;
|
|
35
|
-
required?: boolean;
|
|
36
|
-
optional?: boolean;
|
|
37
51
|
disabled?: boolean;
|
|
38
52
|
value?: string;
|
|
39
53
|
rows?: number;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SIZE_CONFIG, InputSize } from 'src/shared/TypographyStyles';
|
|
2
|
+
import { straitsXTheme } from 'src/theme/theme';
|
|
3
|
+
export { SIZE_CONFIG, InputSize };
|
|
4
|
+
export declare function getBaseInputStyle(theme: typeof straitsXTheme, size?: InputSize, error?: boolean, disabledAddon?: boolean): string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
buttonText: string;
|
|
4
|
+
onButtonClick?: () => void;
|
|
5
|
+
prefix?: React.ReactNode;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
disabledInput?: boolean;
|
|
12
|
+
disabledPrefix?: boolean;
|
|
13
|
+
staticPrefix?: boolean;
|
|
14
|
+
error?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const InputWithButton: React.FC<Props>;
|
|
18
|
+
export default InputWithButton;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type DialogItemVariant = 'small' | 'large';
|
|
3
|
+
type DialogItemProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: React.ReactNode;
|
|
6
|
+
variant?: DialogItemVariant;
|
|
7
|
+
};
|
|
8
|
+
type DialogItemsProps = {
|
|
9
|
+
items: DialogItemProps[];
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const DialogItems: ({ items, className }: DialogItemsProps) => React.JSX.Element;
|
|
13
|
+
export default DialogItems;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ModalSize } from './styles';
|
|
3
|
+
export type ModalVariant = 'default' | 'illustration' | 'newFeature';
|
|
2
4
|
type ModalContentProps = {
|
|
3
5
|
onClose: () => void;
|
|
4
|
-
|
|
6
|
+
variant?: ModalVariant;
|
|
7
|
+
size?: ModalSize;
|
|
5
8
|
title?: React.ReactNode;
|
|
6
9
|
children: React.ReactNode;
|
|
7
10
|
footer: React.ReactNode;
|
|
8
11
|
disabledCloseIcon?: boolean;
|
|
9
12
|
className?: string;
|
|
13
|
+
illustration?: React.ReactNode;
|
|
14
|
+
headerImage?: React.ReactNode;
|
|
15
|
+
/** @deprecated No longer rendered. Will be removed in a future version. */
|
|
16
|
+
icon?: React.ReactNode | false;
|
|
10
17
|
};
|
|
11
|
-
declare const ModalContent: ({ onClose,
|
|
18
|
+
declare const ModalContent: ({ onClose, variant, size, title, children, footer, disabledCloseIcon, className, illustration, headerImage, }: ModalContentProps) => React.JSX.Element;
|
|
12
19
|
export default ModalContent;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type ModalSize = 'small' | 'medium';
|
|
2
|
+
export declare const ModalContentWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
modalSize: ModalSize;
|
|
4
|
+
}, object>;
|
|
5
|
+
export declare const ModalHeader: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
6
|
+
export declare const TitleContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
7
|
+
export declare const Title: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, Pick<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement>, keyof import("react").HTMLAttributes<HTMLHeadingElement>>, object>;
|
|
8
|
+
export declare const IllustrationCloseBar: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
9
|
+
export declare const IllustrationContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
10
|
+
export declare const IllustrationWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
11
|
+
export declare const CenteredTitle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, Pick<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement>, keyof import("react").HTMLAttributes<HTMLHeadingElement>>, object>;
|
|
12
|
+
export declare const NewFeatureImageContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
13
|
+
export declare const CenteredTitleFrame: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
14
|
+
export declare const NewFeatureTitle: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, Pick<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement>, keyof import("react").HTMLAttributes<HTMLHeadingElement>>, object>;
|
|
15
|
+
export declare const ModalBody: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
16
|
+
export declare const ModalFooter: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
17
|
+
export declare const Close: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { Moment } from 'moment';
|
|
3
|
+
import { InputSize } from '../Input/inputStyles';
|
|
2
4
|
type Props = {
|
|
3
5
|
format?: string;
|
|
4
6
|
style?: Record<string, unknown>;
|
|
@@ -6,8 +8,9 @@ type Props = {
|
|
|
6
8
|
onChange?: any;
|
|
7
9
|
ranges?: any;
|
|
8
10
|
disabledDate?: any;
|
|
9
|
-
value?: [
|
|
11
|
+
value?: [Moment | null, Moment | null];
|
|
10
12
|
picker?: any;
|
|
13
|
+
size?: InputSize;
|
|
11
14
|
};
|
|
12
|
-
export default function ({ format, ...rest }: Props): React.JSX.Element;
|
|
15
|
+
export default function ({ format, size, ...rest }: Props): React.JSX.Element;
|
|
13
16
|
export {};
|
|
@@ -80,6 +80,7 @@ export { default as Settings } from 'src/icons/Settings';
|
|
|
80
80
|
export { default as SignUpTwoTone } from 'src/icons/SignUpTwoTone';
|
|
81
81
|
export { default as StateSuccessV2 } from 'src/icons/StateSuccess';
|
|
82
82
|
export { default as Switch } from 'src/icons/Switch';
|
|
83
|
+
export { default as SwitchAccount } from 'src/icons/SwitchAccount';
|
|
83
84
|
export { default as Thumbnail } from 'src/icons/Thumbnail';
|
|
84
85
|
export { default as ThumbnailTwoTone } from 'src/icons/ThumbnailTwoTone';
|
|
85
86
|
export { default as Tick } from 'src/icons/Tick';
|
|
@@ -130,3 +131,5 @@ export { default as TwoFA } from './TwoFA';
|
|
|
130
131
|
export { default as GenerateVA } from './GenerateVA';
|
|
131
132
|
export { default as Time } from './Time';
|
|
132
133
|
export { default as MintSetupWallet } from './MintSetupWallet';
|
|
134
|
+
export { default as Coins } from './Coins';
|
|
135
|
+
export { default as StraitsXDecoVertical } from './StraitsXDecoVertical';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,8 +12,10 @@ export { default as Dropdown } from './components/Dropdown';
|
|
|
12
12
|
export { default as DynamicSelect } from './components/DynamicSelect';
|
|
13
13
|
export { default as Form } from './components/Form';
|
|
14
14
|
export { default as Input } from './components/Input';
|
|
15
|
+
export { default as InputWithButton } from './components/InputWithButton';
|
|
15
16
|
export { default as Tag } from './components/Tag';
|
|
16
17
|
export { default as Modal } from './components/Modal';
|
|
18
|
+
export { default as DialogItems } from './components/Modal/DialogItems';
|
|
17
19
|
export { default as DeprecatedModal } from './components/DeprecatedModal';
|
|
18
20
|
export { default as Pagination } from './components/Pagination';
|
|
19
21
|
export { default as Radio } from './components/Radio';
|
|
@@ -19,6 +19,19 @@ export declare enum FONT_SIZE {
|
|
|
19
19
|
SMALL = "12px",
|
|
20
20
|
SMALL_MOBILE = "14px"
|
|
21
21
|
}
|
|
22
|
+
export type InputSize = 'large' | 'small';
|
|
23
|
+
export declare const SIZE_CONFIG: {
|
|
24
|
+
large: {
|
|
25
|
+
height: string;
|
|
26
|
+
borderRadius: string;
|
|
27
|
+
padding: string;
|
|
28
|
+
};
|
|
29
|
+
small: {
|
|
30
|
+
height: string;
|
|
31
|
+
borderRadius: string;
|
|
32
|
+
padding: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
22
35
|
export declare enum LINE_HEIGHT {
|
|
23
36
|
H1 = "29px",
|
|
24
37
|
H1_MOBILE = "28px",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Moment } from 'moment';
|
|
2
|
+
declare const MomentDatePicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, import("antd/es/date-picker/generatePicker").PickerProps<Moment>, ValueType>) => React.ReactElement) & {
|
|
3
|
+
displayName?: string;
|
|
4
|
+
} & {
|
|
5
|
+
displayName?: string;
|
|
6
|
+
WeekPicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
|
|
7
|
+
displayName?: string;
|
|
8
|
+
};
|
|
9
|
+
MonthPicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
|
|
10
|
+
displayName?: string;
|
|
11
|
+
};
|
|
12
|
+
YearPicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
|
|
13
|
+
displayName?: string;
|
|
14
|
+
};
|
|
15
|
+
RangePicker: import("react").ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<Moment>, "locale" | "generateConfig" | "hideHeader"> & {
|
|
16
|
+
locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
|
|
17
|
+
size?: import("antd/es/button").ButtonSize;
|
|
18
|
+
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
19
|
+
bordered?: boolean;
|
|
20
|
+
status?: import("antd/es/_util/statusUtils").InputStatus;
|
|
21
|
+
variant?: import("antd/es/config-provider").Variant;
|
|
22
|
+
dropdownClassName?: string;
|
|
23
|
+
popupClassName?: string;
|
|
24
|
+
rootClassName?: string;
|
|
25
|
+
popupStyle?: React.CSSProperties;
|
|
26
|
+
} & import("react").RefAttributes<import("rc-picker").PickerRef>>;
|
|
27
|
+
TimePicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker/interface").GenericTimePickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
|
|
28
|
+
displayName?: string;
|
|
29
|
+
};
|
|
30
|
+
QuarterPicker: (<ValueType = Moment>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Moment, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Moment>, "picker">, ValueType>) => React.ReactElement) & {
|
|
31
|
+
displayName?: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default MomentDatePicker;
|