@xfers/design-system 2.53.0 → 3.0.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/cjs/index.js +6 -6
- package/cjs/index.js.map +1 -1
- package/dist/components/ActionButton/ActionButton.js +2 -2
- package/dist/components/ActionButton/ActionButton.js.map +1 -1
- package/dist/components/ActionCard/index.js +2 -2
- package/dist/components/ActionCard/index.js.map +1 -1
- package/dist/components/BadgeIcon/index.js +2 -2
- package/dist/components/BadgeIcon/index.js.map +1 -1
- package/dist/components/Banner/index.js +2 -2
- package/dist/components/Banner/index.js.map +1 -1
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Card/index.js +2 -2
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/Carousel/index.js +2 -2
- package/dist/components/Carousel/index.js.map +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/ContentBreakdown/index.js +2 -2
- package/dist/components/ContentBreakdown/index.js.map +1 -1
- package/dist/components/DatePicker/index.js +3 -3
- package/dist/components/DatePicker/index.js.map +1 -1
- package/dist/components/DeprecatedModal/index.js +2 -2
- package/dist/components/DeprecatedModal/index.js.map +1 -1
- package/dist/components/Divider/index.js +2 -2
- package/dist/components/Divider/index.js.map +1 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/ErrorPage/index.js +2 -2
- package/dist/components/ErrorPage/index.js.map +1 -1
- package/dist/components/Input/index.js +4 -4
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Link/index.js +2 -2
- package/dist/components/Link/index.js.map +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Note/index.js +2 -2
- package/dist/components/Note/index.js.map +1 -1
- package/dist/components/Radio/index.js +2 -2
- package/dist/components/Radio/index.js.map +1 -1
- package/dist/components/RangePicker/index.js +1 -1
- package/dist/components/RangePicker/index.js.map +1 -1
- package/dist/components/Select/index.js +3 -3
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/style.js +1 -1
- package/dist/components/Select/style.js.map +1 -1
- package/dist/components/Spin/index.js +2 -2
- package/dist/components/Spin/index.js.map +1 -1
- package/dist/components/Steps/index.js +2 -2
- package/dist/components/Steps/index.js.map +1 -1
- package/dist/constants/Typography/Typography.js +71 -0
- package/dist/constants/Typography/Typography.js.map +1 -0
- package/dist/constants/Typography/Typography.styles.js +52 -0
- package/dist/constants/Typography/Typography.styles.js.map +1 -0
- package/dist/constants/Typography/Typography.types.js +3 -0
- package/dist/constants/Typography/Typography.types.js.map +1 -0
- package/dist/constants/colors.js +123 -0
- package/dist/constants/colors.js.map +1 -0
- package/dist/constants/shadow.js +11 -0
- package/dist/constants/shadow.js.map +1 -0
- package/dist/index.js +54 -50
- package/dist/index.js.map +1 -1
- package/dist/{shared/NormalizeStyles.js → theme/NormalizeStyles/index.js} +1 -1
- package/dist/theme/NormalizeStyles/index.js.map +1 -0
- package/dist/{shared/themeContext.js → theme/ThemeContext.js} +1 -1
- package/dist/theme/ThemeContext.js.map +1 -0
- package/dist/theme/theme.js +175 -0
- package/dist/theme/theme.js.map +1 -0
- package/dist/types/constants/Typography/Typography.d.ts +35 -0
- package/dist/types/constants/Typography/Typography.styles.d.ts +2 -0
- package/dist/types/constants/Typography/Typography.types.d.ts +24 -0
- package/dist/types/constants/colors.d.ts +98 -0
- package/dist/types/constants/shadow.d.ts +6 -0
- package/dist/types/index.d.ts +49 -48
- package/dist/types/theme/ThemeContext.d.ts +148 -0
- package/dist/types/theme/theme.d.ts +282 -0
- package/es/icons.js +1 -1
- package/es/index.js +6 -6
- package/es/index.js.map +1 -1
- package/es/logos.js +1 -1
- package/package.json +1 -1
- package/dist/constants/colors/black.js +0 -11
- package/dist/constants/colors/black.js.map +0 -1
- package/dist/constants/colors/blue.js +0 -14
- package/dist/constants/colors/blue.js.map +0 -1
- package/dist/constants/colors/green.js +0 -14
- package/dist/constants/colors/green.js.map +0 -1
- package/dist/constants/colors/grey.js +0 -15
- package/dist/constants/colors/grey.js.map +0 -1
- package/dist/constants/colors/index.js +0 -17
- package/dist/constants/colors/index.js.map +0 -1
- package/dist/constants/colors/red.js +0 -10
- package/dist/constants/colors/red.js.map +0 -1
- package/dist/constants/colors/white.js +0 -8
- package/dist/constants/colors/white.js.map +0 -1
- package/dist/constants/colors/yellow.js +0 -10
- package/dist/constants/colors/yellow.js.map +0 -1
- package/dist/shared/NormalizeStyles.js.map +0 -1
- package/dist/shared/theme.js +0 -114
- package/dist/shared/theme.js.map +0 -1
- package/dist/shared/themeContext.js.map +0 -1
- package/dist/types/constants/colors/black.d.ts +0 -6
- package/dist/types/constants/colors/blue.d.ts +0 -9
- package/dist/types/constants/colors/green.d.ts +0 -9
- package/dist/types/constants/colors/grey.d.ts +0 -10
- package/dist/types/constants/colors/index.d.ts +0 -7
- package/dist/types/constants/colors/red.d.ts +0 -5
- package/dist/types/constants/colors/white.d.ts +0 -3
- package/dist/types/constants/colors/yellow.d.ts +0 -5
- package/dist/types/shared/theme.d.ts +0 -163
- package/dist/types/shared/themeContext.d.ts +0 -89
- /package/dist/types/{shared/NormalizeStyles.d.ts → theme/NormalizeStyles/index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BLACK = void 0;
|
|
4
|
-
var BLACK;
|
|
5
|
-
(function (BLACK) {
|
|
6
|
-
BLACK["DEFAULT"] = "#1B2736";
|
|
7
|
-
BLACK["T10"] = "#2C4058";
|
|
8
|
-
BLACK["T20"] = "#3E597A";
|
|
9
|
-
BLACK["T30"] = "#4F719C";
|
|
10
|
-
})(BLACK = exports.BLACK || (exports.BLACK = {}));
|
|
11
|
-
//# sourceMappingURL=black.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"black.js","sourceRoot":"","sources":["../../../src/constants/colors/black.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAKX;AALD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,wBAAe,CAAA;IACf,wBAAe,CAAA;IACf,wBAAe,CAAA;AACjB,CAAC,EALW,KAAK,GAAL,aAAK,KAAL,aAAK,QAKhB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BLUE = void 0;
|
|
4
|
-
var BLUE;
|
|
5
|
-
(function (BLUE) {
|
|
6
|
-
BLUE["DEFAULT"] = "#2F8DEE";
|
|
7
|
-
BLUE["T10"] = "#5FA8F2";
|
|
8
|
-
BLUE["T20"] = "#8EC2F6";
|
|
9
|
-
BLUE["T40"] = "#ECF5FD";
|
|
10
|
-
BLUE["S400"] = "#1863B0";
|
|
11
|
-
BLUE["S300"] = "#3585E6";
|
|
12
|
-
BLUE["S100"] = "#EBF5FF";
|
|
13
|
-
})(BLUE = exports.BLUE || (exports.BLUE = {}));
|
|
14
|
-
//# sourceMappingURL=blue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blue.js","sourceRoot":"","sources":["../../../src/constants/colors/blue.ts"],"names":[],"mappings":";;;AAAA,IAAY,IAQX;AARD,WAAY,IAAI;IACd,2BAAmB,CAAA;IACnB,uBAAe,CAAA;IACf,uBAAe,CAAA;IACf,uBAAe,CAAA;IACf,wBAAgB,CAAA;IAChB,wBAAgB,CAAA;IAChB,wBAAgB,CAAA;AAClB,CAAC,EARW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAQf"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GREEN = void 0;
|
|
4
|
-
var GREEN;
|
|
5
|
-
(function (GREEN) {
|
|
6
|
-
GREEN["S500"] = "#00D37E";
|
|
7
|
-
GREEN["S400"] = "#189C08";
|
|
8
|
-
GREEN["S300"] = "#43CC32";
|
|
9
|
-
GREEN["S100"] = "#F0FFF3";
|
|
10
|
-
GREEN["DEFAULT"] = "#00A965";
|
|
11
|
-
GREEN["G100"] = "#F0FFF9";
|
|
12
|
-
GREEN["HOVER"] = "#008f56";
|
|
13
|
-
})(GREEN = exports.GREEN || (exports.GREEN = {}));
|
|
14
|
-
//# sourceMappingURL=green.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"green.js","sourceRoot":"","sources":["../../../src/constants/colors/green.ts"],"names":[],"mappings":";;;AAAA,IAAY,KASX;AATD,WAAY,KAAK;IACf,yBAAgB,CAAA;IAChB,yBAAgB,CAAA;IAChB,yBAAgB,CAAA;IAChB,yBAAgB,CAAA;IAEhB,4BAAmB,CAAA;IACnB,yBAAgB,CAAA;IAChB,0BAAiB,CAAA;AACnB,CAAC,EATW,KAAK,GAAL,aAAK,KAAL,aAAK,QAShB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GREY = void 0;
|
|
4
|
-
var GREY;
|
|
5
|
-
(function (GREY) {
|
|
6
|
-
GREY["S500"] = "#777777";
|
|
7
|
-
GREY["S400"] = "#959595";
|
|
8
|
-
GREY["T10"] = "#ADADAD";
|
|
9
|
-
GREY["S300"] = "#CACACA";
|
|
10
|
-
GREY["S200"] = "#E8E8E8";
|
|
11
|
-
GREY["S100"] = "#F6F7F9";
|
|
12
|
-
GREY["S50"] = "#FFFFFF";
|
|
13
|
-
GREY["BLUISH"] = "#D3D7DE";
|
|
14
|
-
})(GREY = exports.GREY || (exports.GREY = {}));
|
|
15
|
-
//# sourceMappingURL=grey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grey.js","sourceRoot":"","sources":["../../../src/constants/colors/grey.ts"],"names":[],"mappings":";;;AAAA,IAAY,IASX;AATD,WAAY,IAAI;IACd,wBAAgB,CAAA;IAChB,wBAAgB,CAAA;IAChB,uBAAe,CAAA;IACf,wBAAgB,CAAA;IAChB,wBAAgB,CAAA;IAChB,wBAAgB,CAAA;IAChB,uBAAe,CAAA;IACf,0BAAkB,CAAA;AACpB,CAAC,EATW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QASf"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var blue_1 = require("./blue");
|
|
4
|
-
Object.defineProperty(exports, "BLUE", { enumerable: true, get: function () { return blue_1.BLUE; } });
|
|
5
|
-
var green_1 = require("./green");
|
|
6
|
-
Object.defineProperty(exports, "GREEN", { enumerable: true, get: function () { return green_1.GREEN; } });
|
|
7
|
-
var red_1 = require("./red");
|
|
8
|
-
Object.defineProperty(exports, "RED", { enumerable: true, get: function () { return red_1.RED; } });
|
|
9
|
-
var yellow_1 = require("./yellow");
|
|
10
|
-
Object.defineProperty(exports, "YELLOW", { enumerable: true, get: function () { return yellow_1.YELLOW; } });
|
|
11
|
-
var black_1 = require("./black");
|
|
12
|
-
Object.defineProperty(exports, "BLACK", { enumerable: true, get: function () { return black_1.BLACK; } });
|
|
13
|
-
var grey_1 = require("./grey");
|
|
14
|
-
Object.defineProperty(exports, "GREY", { enumerable: true, get: function () { return grey_1.GREY; } });
|
|
15
|
-
var white_1 = require("./white");
|
|
16
|
-
Object.defineProperty(exports, "WHITE", { enumerable: true, get: function () { return white_1.WHITE; } });
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/colors/index.tsx"],"names":[],"mappings":";;AAAA,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,6BAA2B;AAAlB,0FAAA,GAAG,OAAA;AACZ,mCAAiC;AAAxB,gGAAA,MAAM,OAAA;AACf,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,iCAA+B;AAAtB,8FAAA,KAAK,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RED = void 0;
|
|
4
|
-
var RED;
|
|
5
|
-
(function (RED) {
|
|
6
|
-
RED["S400"] = "#B71515";
|
|
7
|
-
RED["S300"] = "#E22726";
|
|
8
|
-
RED["S100"] = "#FFF0F0";
|
|
9
|
-
})(RED = exports.RED || (exports.RED = {}));
|
|
10
|
-
//# sourceMappingURL=red.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"red.js","sourceRoot":"","sources":["../../../src/constants/colors/red.ts"],"names":[],"mappings":";;;AAAA,IAAY,GAIX;AAJD,WAAY,GAAG;IACb,uBAAgB,CAAA;IAChB,uBAAgB,CAAA;IAChB,uBAAgB,CAAA;AAClB,CAAC,EAJW,GAAG,GAAH,WAAG,KAAH,WAAG,QAId"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"white.js","sourceRoot":"","sources":["../../../src/constants/colors/white.ts"],"names":[],"mappings":";;;AAAA,IAAY,KAEX;AAFD,WAAY,KAAK;IACf,4BAAmB,CAAA;AACrB,CAAC,EAFW,KAAK,GAAL,aAAK,KAAL,aAAK,QAEhB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.YELLOW = void 0;
|
|
4
|
-
var YELLOW;
|
|
5
|
-
(function (YELLOW) {
|
|
6
|
-
YELLOW["S400"] = "#8D7700";
|
|
7
|
-
YELLOW["S300"] = "#E5C412";
|
|
8
|
-
YELLOW["S100"] = "#FFFBE9";
|
|
9
|
-
})(YELLOW = exports.YELLOW || (exports.YELLOW = {}));
|
|
10
|
-
//# sourceMappingURL=yellow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yellow.js","sourceRoot":"","sources":["../../../src/constants/colors/yellow.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,0BAAgB,CAAA;IAChB,0BAAgB,CAAA;IAChB,0BAAgB,CAAA;AAClB,CAAC,EAJW,MAAM,GAAN,cAAM,KAAN,cAAM,QAIjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NormalizeStyles.js","sourceRoot":"","sources":["../../src/shared/NormalizeStyles.tsx"],"names":[],"mappings":";;;;;;AAAA,+BAAyB;AACzB,sCAA2C;AAC3C,uBAAoB;AAEpB,mBAAe,cAAM,OAAA,CACnB,8BAAC,aAAM,IACL,MAAM,EAAE,UAAG,+7BAAA,43BA6CV,OACD,CACH,EAjDoB,CAiDpB,EAAA"}
|
package/dist/shared/theme.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.straitsXTheme = exports.xfersTheme = void 0;
|
|
15
|
-
var colors_1 = require("src/constants/colors");
|
|
16
|
-
var spacing_1 = require("src/constants/spacing");
|
|
17
|
-
// root theme: define function level & component level colors
|
|
18
|
-
var rootTheme = {
|
|
19
|
-
spacing: {
|
|
20
|
-
xs: spacing_1.EXTRA_SMALL_SPACING,
|
|
21
|
-
sm: spacing_1.SMALL_SPACING,
|
|
22
|
-
md: spacing_1.MEDIUM_SPACING,
|
|
23
|
-
lg: spacing_1.LARGE_SPACING,
|
|
24
|
-
xl: spacing_1.EXTRA_LARGE_SPACING,
|
|
25
|
-
},
|
|
26
|
-
layout: {
|
|
27
|
-
desktop: spacing_1.LAYOUT_SPACING_DESKTOP,
|
|
28
|
-
mobile: spacing_1.LAYOUT_SPACING_MOBILE,
|
|
29
|
-
},
|
|
30
|
-
text: {
|
|
31
|
-
default: colors_1.BLACK.DEFAULT,
|
|
32
|
-
white: colors_1.WHITE.DEFAULT,
|
|
33
|
-
},
|
|
34
|
-
button: {
|
|
35
|
-
background: colors_1.WHITE.DEFAULT,
|
|
36
|
-
color: colors_1.GREEN.DEFAULT,
|
|
37
|
-
border: colors_1.GREY.S200,
|
|
38
|
-
hover: colors_1.BLACK.T10,
|
|
39
|
-
},
|
|
40
|
-
actionButton: {
|
|
41
|
-
color: colors_1.GREY.S400,
|
|
42
|
-
hover: colors_1.GREY.T10,
|
|
43
|
-
},
|
|
44
|
-
neutral: {
|
|
45
|
-
text: colors_1.GREY.S400,
|
|
46
|
-
emphasis: colors_1.GREY.S300,
|
|
47
|
-
border: colors_1.GREY.S200,
|
|
48
|
-
background: colors_1.GREY.S100,
|
|
49
|
-
white: colors_1.WHITE.DEFAULT,
|
|
50
|
-
bluish: colors_1.GREY.BLUISH,
|
|
51
|
-
},
|
|
52
|
-
success: {
|
|
53
|
-
text: colors_1.GREEN.S400,
|
|
54
|
-
emphasis: colors_1.GREEN.S300,
|
|
55
|
-
border: colors_1.GREEN.S300,
|
|
56
|
-
background: colors_1.GREEN.S100,
|
|
57
|
-
},
|
|
58
|
-
warning: {
|
|
59
|
-
text: colors_1.YELLOW.S400,
|
|
60
|
-
emphasis: colors_1.YELLOW.S300,
|
|
61
|
-
border: colors_1.YELLOW.S300,
|
|
62
|
-
background: colors_1.YELLOW.S100,
|
|
63
|
-
},
|
|
64
|
-
error: {
|
|
65
|
-
text: colors_1.RED.S400,
|
|
66
|
-
emphasis: colors_1.RED.S300,
|
|
67
|
-
border: colors_1.RED.S300,
|
|
68
|
-
background: colors_1.RED.S100,
|
|
69
|
-
},
|
|
70
|
-
notification: {
|
|
71
|
-
text: colors_1.BLUE.S300,
|
|
72
|
-
emphasis: colors_1.BLUE.DEFAULT,
|
|
73
|
-
background: colors_1.BLUE.S100,
|
|
74
|
-
},
|
|
75
|
-
card: {
|
|
76
|
-
background: {
|
|
77
|
-
default: colors_1.WHITE.DEFAULT,
|
|
78
|
-
dark: colors_1.BLACK.T10,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
divider: {
|
|
82
|
-
background: colors_1.GREY.S200,
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
// define brand level colors
|
|
86
|
-
exports.xfersTheme = __assign(__assign({}, rootTheme), { brand: {
|
|
87
|
-
primary: {
|
|
88
|
-
default: colors_1.BLUE.DEFAULT,
|
|
89
|
-
emphasis: colors_1.BLUE.S300,
|
|
90
|
-
background: colors_1.BLUE.S100,
|
|
91
|
-
contrast: colors_1.WHITE.DEFAULT,
|
|
92
|
-
illustration: colors_1.BLUE.DEFAULT,
|
|
93
|
-
},
|
|
94
|
-
action: {
|
|
95
|
-
default: colors_1.BLUE.DEFAULT,
|
|
96
|
-
hover: colors_1.BLUE.T10,
|
|
97
|
-
disabledOpacity: 0.7,
|
|
98
|
-
},
|
|
99
|
-
} });
|
|
100
|
-
exports.straitsXTheme = __assign(__assign({}, rootTheme), { brand: {
|
|
101
|
-
primary: {
|
|
102
|
-
default: colors_1.GREEN.DEFAULT,
|
|
103
|
-
emphasis: colors_1.GREEN.DEFAULT,
|
|
104
|
-
background: colors_1.GREEN.G100,
|
|
105
|
-
contrast: colors_1.WHITE.DEFAULT,
|
|
106
|
-
illustration: colors_1.GREEN.S500,
|
|
107
|
-
},
|
|
108
|
-
action: {
|
|
109
|
-
default: colors_1.GREEN.DEFAULT,
|
|
110
|
-
hover: colors_1.GREEN.HOVER,
|
|
111
|
-
disabledOpacity: 0.7,
|
|
112
|
-
},
|
|
113
|
-
} });
|
|
114
|
-
//# sourceMappingURL=theme.js.map
|
package/dist/shared/theme.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/shared/theme.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themeContext.js","sourceRoot":"","sources":["../../src/shared/themeContext.tsx"],"names":[],"mappings":";;;AAAA,+BAAyB;AACzB,iCAAuC;AACvC,qDAA+C;AAE/C,IAAM,YAAY,GAAG,eAAK,CAAC,aAAa,CAAC,qBAAa,CAAC,CAAA;AAMvD,IAAM,aAAa,GAAG,UAAC,EAGF;QAFnB,aAAqB,EAArB,KAAK,mBAAG,qBAAa,KAAA,EACrB,QAAQ,cAAA;IAER,OAAO,CACL,8BAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACjC,8BAAC,yBAAe,OAAG;QAClB,QAAQ,CACa,CACzB,CAAA;AACH,CAAC,CAAA;AAUQ,sCAAa;AARtB,IAAM,QAAQ,GAAG;IACf,IAAM,OAAO,GAAG,eAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;IAC9C,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAA;KAChE;IACD,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAEuB,4BAAQ"}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { BLACK, BLUE, GREEN, GREY, RED, YELLOW, WHITE } from 'src/constants/colors';
|
|
2
|
-
export declare const xfersTheme: {
|
|
3
|
-
brand: {
|
|
4
|
-
primary: {
|
|
5
|
-
default: string;
|
|
6
|
-
emphasis: string;
|
|
7
|
-
background: string;
|
|
8
|
-
contrast: string;
|
|
9
|
-
illustration: string;
|
|
10
|
-
};
|
|
11
|
-
action: {
|
|
12
|
-
default: string;
|
|
13
|
-
hover: string;
|
|
14
|
-
disabledOpacity: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
spacing: {
|
|
18
|
-
xs: string;
|
|
19
|
-
sm: string;
|
|
20
|
-
md: string;
|
|
21
|
-
lg: string;
|
|
22
|
-
xl: string;
|
|
23
|
-
};
|
|
24
|
-
layout: {
|
|
25
|
-
desktop: string;
|
|
26
|
-
mobile: string;
|
|
27
|
-
};
|
|
28
|
-
text: {
|
|
29
|
-
default: BLACK;
|
|
30
|
-
white: WHITE;
|
|
31
|
-
};
|
|
32
|
-
button: {
|
|
33
|
-
background: WHITE;
|
|
34
|
-
color: GREEN;
|
|
35
|
-
border: GREY;
|
|
36
|
-
hover: BLACK;
|
|
37
|
-
};
|
|
38
|
-
actionButton: {
|
|
39
|
-
color: GREY;
|
|
40
|
-
hover: GREY;
|
|
41
|
-
};
|
|
42
|
-
neutral: {
|
|
43
|
-
text: GREY;
|
|
44
|
-
emphasis: GREY;
|
|
45
|
-
border: GREY;
|
|
46
|
-
background: GREY;
|
|
47
|
-
white: WHITE;
|
|
48
|
-
bluish: GREY;
|
|
49
|
-
};
|
|
50
|
-
success: {
|
|
51
|
-
text: GREEN;
|
|
52
|
-
emphasis: GREEN;
|
|
53
|
-
border: GREEN;
|
|
54
|
-
background: GREEN;
|
|
55
|
-
};
|
|
56
|
-
warning: {
|
|
57
|
-
text: YELLOW;
|
|
58
|
-
emphasis: YELLOW;
|
|
59
|
-
border: YELLOW;
|
|
60
|
-
background: YELLOW;
|
|
61
|
-
};
|
|
62
|
-
error: {
|
|
63
|
-
text: RED;
|
|
64
|
-
emphasis: RED;
|
|
65
|
-
border: RED;
|
|
66
|
-
background: RED;
|
|
67
|
-
};
|
|
68
|
-
notification: {
|
|
69
|
-
text: BLUE;
|
|
70
|
-
emphasis: BLUE;
|
|
71
|
-
background: BLUE;
|
|
72
|
-
};
|
|
73
|
-
card: {
|
|
74
|
-
background: {
|
|
75
|
-
default: WHITE;
|
|
76
|
-
dark: BLACK;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
divider: {
|
|
80
|
-
background: GREY;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
export declare const straitsXTheme: {
|
|
84
|
-
brand: {
|
|
85
|
-
primary: {
|
|
86
|
-
default: string;
|
|
87
|
-
emphasis: string;
|
|
88
|
-
background: string;
|
|
89
|
-
contrast: string;
|
|
90
|
-
illustration: string;
|
|
91
|
-
};
|
|
92
|
-
action: {
|
|
93
|
-
default: string;
|
|
94
|
-
hover: string;
|
|
95
|
-
disabledOpacity: number;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
spacing: {
|
|
99
|
-
xs: string;
|
|
100
|
-
sm: string;
|
|
101
|
-
md: string;
|
|
102
|
-
lg: string;
|
|
103
|
-
xl: string;
|
|
104
|
-
};
|
|
105
|
-
layout: {
|
|
106
|
-
desktop: string;
|
|
107
|
-
mobile: string;
|
|
108
|
-
};
|
|
109
|
-
text: {
|
|
110
|
-
default: BLACK;
|
|
111
|
-
white: WHITE;
|
|
112
|
-
};
|
|
113
|
-
button: {
|
|
114
|
-
background: WHITE;
|
|
115
|
-
color: GREEN;
|
|
116
|
-
border: GREY;
|
|
117
|
-
hover: BLACK;
|
|
118
|
-
};
|
|
119
|
-
actionButton: {
|
|
120
|
-
color: GREY;
|
|
121
|
-
hover: GREY;
|
|
122
|
-
};
|
|
123
|
-
neutral: {
|
|
124
|
-
text: GREY;
|
|
125
|
-
emphasis: GREY;
|
|
126
|
-
border: GREY;
|
|
127
|
-
background: GREY;
|
|
128
|
-
white: WHITE;
|
|
129
|
-
bluish: GREY;
|
|
130
|
-
};
|
|
131
|
-
success: {
|
|
132
|
-
text: GREEN;
|
|
133
|
-
emphasis: GREEN;
|
|
134
|
-
border: GREEN;
|
|
135
|
-
background: GREEN;
|
|
136
|
-
};
|
|
137
|
-
warning: {
|
|
138
|
-
text: YELLOW;
|
|
139
|
-
emphasis: YELLOW;
|
|
140
|
-
border: YELLOW;
|
|
141
|
-
background: YELLOW;
|
|
142
|
-
};
|
|
143
|
-
error: {
|
|
144
|
-
text: RED;
|
|
145
|
-
emphasis: RED;
|
|
146
|
-
border: RED;
|
|
147
|
-
background: RED;
|
|
148
|
-
};
|
|
149
|
-
notification: {
|
|
150
|
-
text: BLUE;
|
|
151
|
-
emphasis: BLUE;
|
|
152
|
-
background: BLUE;
|
|
153
|
-
};
|
|
154
|
-
card: {
|
|
155
|
-
background: {
|
|
156
|
-
default: WHITE;
|
|
157
|
-
dark: BLACK;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
divider: {
|
|
161
|
-
background: GREY;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { straitsXTheme } from './theme';
|
|
3
|
-
declare type ThemeProviderProps = {
|
|
4
|
-
theme: typeof straitsXTheme;
|
|
5
|
-
children: React.ReactChild;
|
|
6
|
-
};
|
|
7
|
-
declare const ThemeProvider: ({ theme, children }: ThemeProviderProps) => JSX.Element;
|
|
8
|
-
declare const useTheme: () => {
|
|
9
|
-
brand: {
|
|
10
|
-
primary: {
|
|
11
|
-
default: string;
|
|
12
|
-
emphasis: string;
|
|
13
|
-
background: string;
|
|
14
|
-
contrast: string;
|
|
15
|
-
illustration: string;
|
|
16
|
-
};
|
|
17
|
-
action: {
|
|
18
|
-
default: string;
|
|
19
|
-
hover: string;
|
|
20
|
-
disabledOpacity: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
spacing: {
|
|
24
|
-
xs: string;
|
|
25
|
-
sm: string;
|
|
26
|
-
md: string;
|
|
27
|
-
lg: string;
|
|
28
|
-
xl: string;
|
|
29
|
-
};
|
|
30
|
-
layout: {
|
|
31
|
-
desktop: string;
|
|
32
|
-
mobile: string;
|
|
33
|
-
};
|
|
34
|
-
text: {
|
|
35
|
-
default: import("../constants/colors").BLACK;
|
|
36
|
-
white: import("../constants/colors").WHITE;
|
|
37
|
-
};
|
|
38
|
-
button: {
|
|
39
|
-
background: import("../constants/colors").WHITE;
|
|
40
|
-
color: import("../constants/colors").GREEN;
|
|
41
|
-
border: import("../constants/colors").GREY;
|
|
42
|
-
hover: import("../constants/colors").BLACK;
|
|
43
|
-
};
|
|
44
|
-
actionButton: {
|
|
45
|
-
color: import("../constants/colors").GREY;
|
|
46
|
-
hover: import("../constants/colors").GREY;
|
|
47
|
-
};
|
|
48
|
-
neutral: {
|
|
49
|
-
text: import("../constants/colors").GREY;
|
|
50
|
-
emphasis: import("../constants/colors").GREY;
|
|
51
|
-
border: import("../constants/colors").GREY;
|
|
52
|
-
background: import("../constants/colors").GREY;
|
|
53
|
-
white: import("../constants/colors").WHITE;
|
|
54
|
-
bluish: import("../constants/colors").GREY;
|
|
55
|
-
};
|
|
56
|
-
success: {
|
|
57
|
-
text: import("../constants/colors").GREEN;
|
|
58
|
-
emphasis: import("../constants/colors").GREEN;
|
|
59
|
-
border: import("../constants/colors").GREEN;
|
|
60
|
-
background: import("../constants/colors").GREEN;
|
|
61
|
-
};
|
|
62
|
-
warning: {
|
|
63
|
-
text: import("../constants/colors").YELLOW;
|
|
64
|
-
emphasis: import("../constants/colors").YELLOW;
|
|
65
|
-
border: import("../constants/colors").YELLOW;
|
|
66
|
-
background: import("../constants/colors").YELLOW;
|
|
67
|
-
};
|
|
68
|
-
error: {
|
|
69
|
-
text: import("../constants/colors").RED;
|
|
70
|
-
emphasis: import("../constants/colors").RED;
|
|
71
|
-
border: import("../constants/colors").RED;
|
|
72
|
-
background: import("../constants/colors").RED;
|
|
73
|
-
};
|
|
74
|
-
notification: {
|
|
75
|
-
text: import("../constants/colors").BLUE;
|
|
76
|
-
emphasis: import("../constants/colors").BLUE;
|
|
77
|
-
background: import("../constants/colors").BLUE;
|
|
78
|
-
};
|
|
79
|
-
card: {
|
|
80
|
-
background: {
|
|
81
|
-
default: import("../constants/colors").WHITE;
|
|
82
|
-
dark: import("../constants/colors").BLACK;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
divider: {
|
|
86
|
-
background: import("../constants/colors").GREY;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export { ThemeProvider, useTheme };
|
|
File without changes
|