@newskit-render/my-account 0.118.0 → 0.121.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/CHANGELOG.md +49 -0
- package/dist/Components/Sections/Form/Address/FormAddress.js +8 -8
- package/dist/Components/Sections/Form/Address/FormAddress.js.map +1 -1
- package/dist/Components/Sections/Form/Landline/Landline.js +1 -1
- package/dist/Components/Sections/Form/Landline/Landline.js.map +1 -1
- package/dist/Components/Sections/Form/Phone/Phone.js +9 -4
- package/dist/Components/Sections/Form/Phone/Phone.js.map +1 -1
- package/dist/Components/Sections/Form/Phone/types.d.ts +1 -1
- package/dist/Components/Sections/Form/onFormSubmit.js +4 -0
- package/dist/Components/Sections/Form/onFormSubmit.js.map +1 -1
- package/dist/api/mutateHandler.js +4 -9
- package/dist/api/mutateHandler.js.map +1 -1
- package/dist/helpers/apiHandlerUtils.d.ts +2 -2
- package/dist/helpers/apiHandlerUtils.js +13 -17
- package/dist/helpers/apiHandlerUtils.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/pages/Error.js +2 -2
- package/dist/pages/Error.js.map +1 -1
- package/dist/pages/NewslettersAndAlerts.js +2 -2
- package/dist/pages/NewslettersAndAlerts.js.map +1 -1
- package/dist/pages/PersonalDetails.d.ts +10 -1
- package/dist/pages/PersonalDetails.js +13 -13
- package/dist/pages/PersonalDetails.js.map +1 -1
- package/dist/pages/SubscriptionAndBilling.js +2 -2
- package/dist/pages/SubscriptionAndBilling.js.map +1 -1
- package/dist/providers/newslettersAndAlertsProvider.js +6 -2
- package/dist/providers/newslettersAndAlertsProvider.js.map +1 -1
- package/dist/providers/types.d.ts +1 -5
- package/dist/queries/getEditField.js +1 -1
- package/dist/queries/getEditField.js.map +1 -1
- package/dist/queries/getUserProfile.js +1 -1
- package/dist/queries/getUserProfile.js.map +1 -1
- package/dist/queries/index.d.ts +0 -3
- package/dist/queries/index.js +0 -3
- package/dist/queries/index.js.map +1 -1
- package/dist/queries/mutateCancellation.d.ts +2 -2
- package/dist/queries/mutateCancellation.js +2 -5
- package/dist/queries/mutateCancellation.js.map +1 -1
- package/dist/queries/mutateDisplayName.d.ts +2 -2
- package/dist/queries/mutateDisplayName.js +1 -3
- package/dist/queries/mutateDisplayName.js.map +1 -1
- package/dist/queries/mutatePaymentMethod.d.ts +2 -2
- package/dist/queries/mutatePaymentMethod.js +2 -5
- package/dist/queries/mutatePaymentMethod.js.map +1 -1
- package/dist/queries/mutateUser.d.ts +2 -2
- package/dist/queries/mutateUser.js +2 -5
- package/dist/queries/mutateUser.js.map +1 -1
- package/package.json +15 -5
- package/dist/queries/getUserNewsletter.d.ts +0 -1
- package/dist/queries/getUserNewsletter.js +0 -11
- package/dist/queries/getUserNewsletter.js.map +0 -1
- package/dist/queries/mutateAddress.d.ts +0 -2
- package/dist/queries/mutateAddress.js +0 -15
- package/dist/queries/mutateAddress.js.map +0 -1
- package/dist/queries/mutateCustom.d.ts +0 -4
- package/dist/queries/mutateCustom.js +0 -15
- package/dist/queries/mutateCustom.js.map +0 -1
- package/dist/theme/border-radius.json +0 -3
- package/dist/theme/colors.json +0 -135
- package/dist/theme/fonts.json +0 -162
- package/dist/theme/index.d.ts +0 -4
- package/dist/theme/index.js +0 -1107
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/overlays.json +0 -12
- package/dist/theme/shadows.json +0 -8
- package/dist/theme/typography-presets.json +0 -289
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonalDetails.js","sourceRoot":"","sources":["../../src/pages/PersonalDetails.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwC;AACxC,mEAAiE;AAGjE,sEAAkF;AAClF,0CAAqD;AACrD,mCAAuC;AACvC,8DAA6B;AAC7B,sCAAuC;AACvC,qFAA8D;AAE9D,IAAM,KAAK,GAAG,kBAAkB,CAAA;AAEnB,QAAA,
|
|
1
|
+
{"version":3,"file":"PersonalDetails.js","sourceRoot":"","sources":["../../src/pages/PersonalDetails.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwC;AACxC,mEAAiE;AAGjE,sEAAkF;AAClF,0CAAqD;AACrD,mCAAuC;AACvC,8DAA6B;AAC7B,sCAAuC;AACvC,qFAA8D;AAE9D,IAAM,KAAK,GAAG,kBAAkB,CAAA;AAEnB,QAAA,sBAAsB,GAAG;IACpC,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,SAAS;CACnB,CAAA;AAED,IAAM,kBAAkB,GAAG;IACzB,WAAW,EAAE,wCAAwC;IACrD,cAAc,EAAE,uCAAuC;IACvD,aAAa,EAAE,0CAA0C;CAC1D,CAAA;AAEY,QAAA,sBAAsB,GAAmB;IACpD,OAAO,EAAE,oBAAQ;IACjB,IAAI,EAAE;QACJ,SAAS,EAAE,KAAK;KACjB;IACD,aAAa,EAAE,2CAA2B;IAC1C,MAAM,EAAE;QACN,KAAK,OAAA;QACL,WAAW,EACT,uFAAuF;QACzF,oBAAoB,EAAE;YACpB,UAAU,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE;SAC/C;QACD,KAAK,EAAE;YACL,GAAG,EAAE,wCAAwC;YAC7C,GAAG,EAAE,EAAE;SACR;KACF;IACD,eAAe,EAAE,kBAAkB;IACnC,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE;gBACL,iBAAiB,EAAE;oBACjB,KAAK,EAAE,SAAS;iBACjB;gBACD,KAAK,EAAE;oBACL;wBACE,KAAK,EAAE,MAAM;wBACb,OAAO,EAAE,wBAAwB;wB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sB,CAAC,MAAM,CAAC,OAAO,CAAC,EACtC,SAAS,EACT,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,KAAI,8BAAsB,CAAC,aAAa,EAC9D,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB;gBAC1B,8BAAsB,CAAC,mBAAmB,CAC7C,CAAA;SACF;QAED,IAAI,eAAe,CAAC,OAAO,EAAE;YAC3B,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAA;SACtE;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IACN,OAAO,CACL;QACE,8BAAC,mBAAM,IACL,OAAO,QACP,MAAM,QACN,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ;YAElB,8BAAC,2BAAe,OAAG,CACZ;QACT,8BAAC,uBAAa,IAAC,QAAQ,EAAE,eAAe,GAAkB,CACzD,CACJ,CAAA;AACH,CAAC,CAAA;AAxDY,QAAA,eAAe,mBAwD3B"}
|
|
@@ -36,7 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.SubscriptionAndBilling = exports.SubscriptionAndBillingContext = void 0;
|
|
37
37
|
var react_1 = __importStar(require("react"));
|
|
38
38
|
var Templates_1 = __importStar(require("../Components/Templates"));
|
|
39
|
-
var
|
|
39
|
+
var shared_components_1 = require("@newskit-render/shared-components");
|
|
40
40
|
var PastDueBanner_1 = require("../Components/Elements/PastDueBanner");
|
|
41
41
|
var router_1 = require("next/router");
|
|
42
42
|
var newskit_1 = require("newskit");
|
|
@@ -163,7 +163,7 @@ var SubscriptionAndBilling = function (_a) {
|
|
|
163
163
|
}
|
|
164
164
|
}, []);
|
|
165
165
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
166
|
-
react_1.default.createElement(Templates_1.default, { sidebar: true, footer: true, context: enhancedContext, customTheme: customTheme ||
|
|
166
|
+
react_1.default.createElement(Templates_1.default, { sidebar: true, footer: true, context: enhancedContext, customTheme: customTheme || shared_components_1.sharedTheme, setTheme: setTheme },
|
|
167
167
|
react_1.default.createElement(Templates_1.DisplayRenderer, null)),
|
|
168
168
|
react_1.default.createElement(newskit_1.ToastProvider, { position: 'bottom-center', verticalOffset: 'space040', horizontalOffset: { xs: 'space000', lg: 'space040' } })));
|
|
169
169
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionAndBilling.js","sourceRoot":"","sources":["../../src/pages/SubscriptionAndBilling.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwC;AACxC,mEAAiE;AAGjE,
|
|
1
|
+
{"version":3,"file":"SubscriptionAndBilling.js","sourceRoot":"","sources":["../../src/pages/SubscriptionAndBilling.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwC;AACxC,mEAAiE;AAGjE,uEAA+E;AAC/E,sEAAkF;AAClF,sCAAuC;AACvC,mCAAuC;AACvC,8DAA6B;AAC7B,qFAA8D;AAC9D,0CAAuC;AAEvC,IAAM,KAAK,GAAG,wBAAwB,CAAA;AAEzB,QAAA,6BAA6B,GAAmB;IAC3D,OAAO,EAAE,oBAAQ;IACjB,IAAI,EAAE;QACJ,SAAS,EAAE,KAAK;KACjB;IACD,aAAa,EAAE,2CAA2B;IAC1C,MAAM,EAAE;QACN,KAAK,OAAA;QACL,WAAW,EACT,yEAAyE;QAC3E,oBAAoB,EAAE;YACpB,UAAU,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE;SAC/C;QACD,KAAK,EAAE;YACL,GAAG,EAAE,oCAAoC;YACzC,GAAG,EAAE,EAAE;SACR;KACF;IACD,eAAe,EAAE,0BAA0B;IAC3C,QAAQ,EAAE;QACR;YACE,IAAI,EAAE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C1B,gBAAgB,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE,GACrC,CAChB,CACJ,CAAA;AACH,CAAC,CAAA;AAnDY,QAAA,sBAAsB,0BAmDlC"}
|
|
@@ -53,7 +53,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
53
53
|
exports.newslettersAndAlertsProvider = void 0;
|
|
54
54
|
var helpers_1 = require("../helpers");
|
|
55
55
|
var md5_1 = __importDefault(require("md5"));
|
|
56
|
-
var
|
|
56
|
+
var getEditField_1 = require("../queries/getEditField");
|
|
57
57
|
var newslettersAndAlertsProvider = function (_a) {
|
|
58
58
|
var mainApolloClient = _a.mainApolloClient;
|
|
59
59
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -66,7 +66,11 @@ var newslettersAndAlertsProvider = function (_a) {
|
|
|
66
66
|
case 1:
|
|
67
67
|
_b.trys.push([1, 3, , 4]);
|
|
68
68
|
return [4 /*yield*/, mainApolloClient.query({
|
|
69
|
-
query: (0, helpers_1.getQuery)(
|
|
69
|
+
query: (0, helpers_1.getQuery)((0, getEditField_1.buildQueryBody)({
|
|
70
|
+
fields: ['email'],
|
|
71
|
+
shouldUseNewskitApi: false,
|
|
72
|
+
currentEditField: 'EditField',
|
|
73
|
+
}), 'EditField'),
|
|
70
74
|
variables: { id: process.env.MAIN_USER_ID },
|
|
71
75
|
})];
|
|
72
76
|
case 2:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newslettersAndAlertsProvider.js","sourceRoot":"","sources":["../../src/providers/newslettersAndAlertsProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAqC;AAErC,4CAAqB;AACrB,
|
|
1
|
+
{"version":3,"file":"newslettersAndAlertsProvider.js","sourceRoot":"","sources":["../../src/providers/newslettersAndAlertsProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAqC;AAErC,4CAAqB;AACrB,wDAAwD;AAGjD,IAAM,4BAA4B,GAAG,UAAO,EAEpC;QADb,gBAAgB,sBAAA;;;;;;oBAEZ,IAAI,GAAG,EAA+B,CAAA;;;;oBAEvB,qBAAM,gBAAgB,CAAC,KAAK,CAAC;4BAC5C,KAAK,EAAE,IAAA,kBAAQ,EACb,IAAA,6BAAc,EAAC;gCACb,MAAM,EAAE,CAAC,OAAO,CAAC;gCACjB,mBAAmB,EAAE,KAAK;gCAC1B,gBAAgB,EAAE,WAAW;6BAC9B,CAAC,EACF,WAAW,CACZ;4BACD,SAAS,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;yBAC5C,CAAC,EAAA;;oBAVI,QAAQ,GAAG,SAUf;oBAEI,IAAI,GAAG,IAAA,aAAG,EACd,KAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAqB,CAChE,CAAA;oBAED,IAAI,GAAG;wBACL,IAAI,wBACC,QAAQ,CAAC,IAAI,CAAC,IAAI,KACrB,IAAI,MAAA,GACL;qBACF,CAAA;;;;oBAED,OAAO,CAAC,KAAK,CAAC,KAAG,CAAC,OAAO,CAAC,CAAA;;wBAE5B,sBAAO,IAAI,EAAA;;;;CACZ,CAAA;AA/BY,QAAA,4BAA4B,gCA+BxC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaymentProvider } from './../pages/types';
|
|
2
|
-
import { ApolloClient,
|
|
2
|
+
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
|
3
3
|
import { GetServerSidePropsContext } from 'next';
|
|
4
4
|
export declare type ServerSidePropsContext = GetServerSidePropsContext & {
|
|
5
5
|
params: {
|
|
@@ -17,10 +17,6 @@ export interface MappedField {
|
|
|
17
17
|
value: string;
|
|
18
18
|
field: string;
|
|
19
19
|
}
|
|
20
|
-
export declare type UserMutation = {
|
|
21
|
-
internal: DocumentNode;
|
|
22
|
-
external?: DocumentNode;
|
|
23
|
-
};
|
|
24
20
|
export declare type RSASignature = {
|
|
25
21
|
id: string;
|
|
26
22
|
tenantId: number;
|
|
@@ -17,7 +17,7 @@ var buildQueryBody = function (_a) {
|
|
|
17
17
|
return (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n fragment ", " on UserDetails {\n ", "\n }\n "], ["\n fragment ", " on UserDetails {\n ", "\n }\n "])), fragmentName, fields.join('\n'));
|
|
18
18
|
}
|
|
19
19
|
if (currentEditField === 'address') {
|
|
20
|
-
return (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n fragment ", " on User {\n address {\n city\n country {\n countryIsoCode\n name\n }\n county\n line1\n line2\n line3\n }\n }\n "], ["\n fragment ", " on User {\n address {\n city\n country {\n countryIsoCode\n name\n }\n county\n line1\n line2\n line3\n }\n }\n "])), fragmentName);
|
|
20
|
+
return (0, client_1.gql)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n fragment ", " on User {\n address {\n city\n country {\n countryIsoCode\n name\n }\n county\n line1\n line2\n line3\n postcode\n }\n }\n "], ["\n fragment ", " on User {\n address {\n city\n country {\n countryIsoCode\n name\n }\n county\n line1\n line2\n line3\n postcode\n }\n }\n "])), fragmentName);
|
|
21
21
|
}
|
|
22
22
|
return (0, client_1.gql)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n fragment ", " on User {\n ", "\n }\n "], ["\n fragment ", " on User {\n ", "\n }\n "])), fragmentName, fields.join('\n'));
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEditField.js","sourceRoot":"","sources":["../../src/queries/getEditField.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAkD;AAClD,sCAA8C;AAEvC,IAAM,cAAc,GAAG,UAAC,EAQ9B;QAPC,MAAM,YAAA,EACN,mBAAmB,y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,KAHY,YAAY,EACnB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAEtB;AACH,CAAC,CAAA;AAxDY,QAAA,cAAc,kBAwD1B"}
|
|
@@ -6,6 +6,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.GET_USER_PROFILE = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.GET_USER_PROFILE = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment UserProfile on User {\n cpn\n firstName\n lastName\n email\n mobile\n phoneNumber\n address {\n line1\n line2\n line3\n city\n postcode\n country {\n countryIsoCode\n name\n }\n }\n }\n"], ["\n fragment UserProfile on User {\n cpn\n firstName\n lastName\n email\n mobile\n phoneNumber\n address {\n line1\n line2\n line3\n city\n postcode\n country {\n countryIsoCode\n name\n }\n }\n }\n"])));
|
|
9
|
+
exports.GET_USER_PROFILE = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment UserProfile on User {\n cpn\n firstName\n lastName\n email\n mobile\n phoneNumber\n address {\n line1\n line2\n line3\n city\n postcode\n county\n country {\n countryIsoCode\n name\n }\n }\n }\n"], ["\n fragment UserProfile on User {\n cpn\n firstName\n lastName\n email\n mobile\n phoneNumber\n address {\n line1\n line2\n line3\n city\n postcode\n county\n country {\n countryIsoCode\n name\n }\n }\n }\n"])));
|
|
10
10
|
var templateObject_1;
|
|
11
11
|
//# sourceMappingURL=getUserProfile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserProfile.js","sourceRoot":"","sources":["../../src/queries/getUserProfile.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,gBAAgB,OAAG,YAAG,
|
|
1
|
+
{"version":3,"file":"getUserProfile.js","sourceRoot":"","sources":["../../src/queries/getUserProfile.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,gBAAgB,OAAG,YAAG,oWAAA,gSAqBlC,KAAA"}
|
package/dist/queries/index.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
export * from './getEditField';
|
|
2
2
|
export * from './getUserDisplayName';
|
|
3
|
-
export * from './getUserNewsletter';
|
|
4
3
|
export * from './getUserPaymentInstance';
|
|
5
4
|
export * from './getUserProfile';
|
|
6
5
|
export * from './getUserQuery';
|
|
7
6
|
export * from './getUserSubscription';
|
|
8
|
-
export * from './mutateAddress';
|
|
9
|
-
export * from './mutateCustom';
|
|
10
7
|
export * from './mutateDisplayName';
|
|
11
8
|
export * from './mutatePaymentMethod';
|
|
12
9
|
export * from './mutateUser';
|
package/dist/queries/index.js
CHANGED
|
@@ -12,13 +12,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./getEditField"), exports);
|
|
14
14
|
__exportStar(require("./getUserDisplayName"), exports);
|
|
15
|
-
__exportStar(require("./getUserNewsletter"), exports);
|
|
16
15
|
__exportStar(require("./getUserPaymentInstance"), exports);
|
|
17
16
|
__exportStar(require("./getUserProfile"), exports);
|
|
18
17
|
__exportStar(require("./getUserQuery"), exports);
|
|
19
18
|
__exportStar(require("./getUserSubscription"), exports);
|
|
20
|
-
__exportStar(require("./mutateAddress"), exports);
|
|
21
|
-
__exportStar(require("./mutateCustom"), exports);
|
|
22
19
|
__exportStar(require("./mutateDisplayName"), exports);
|
|
23
20
|
__exportStar(require("./mutatePaymentMethod"), exports);
|
|
24
21
|
__exportStar(require("./mutateUser"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA8B;AAC9B,uDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA8B;AAC9B,uDAAoC;AACpC,2DAAwC;AACxC,mDAAgC;AAChC,iDAA8B;AAC9B,wDAAqC;AACrC,sDAAmC;AACnC,wDAAqC;AACrC,+CAA4B;AAC5B,+CAA4B;AAC5B,uDAAoC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const mutateCancellation:
|
|
1
|
+
import { DocumentNode } from '@apollo/client';
|
|
2
|
+
export declare const mutateCancellation: DocumentNode;
|
|
@@ -6,9 +6,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.mutateCancellation = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.mutateCancellation = {
|
|
10
|
-
|
|
11
|
-
internal: (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation ($input: CancelInteractionInput!, $principalID: ID!) {\n cancel(input: $input, principalID: $principalID)\n }\n "], ["\n mutation ($input: CancelInteractionInput!, $principalID: ID!) {\n cancel(input: $input, principalID: $principalID)\n }\n "]))),
|
|
12
|
-
};
|
|
13
|
-
var templateObject_1, templateObject_2;
|
|
9
|
+
exports.mutateCancellation = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation ($input: CancelInteractionInput!, $principalID: ID!) {\n cancel(input: $input, principalID: $principalID)\n }\n"], ["\n mutation ($input: CancelInteractionInput!, $principalID: ID!) {\n cancel(input: $input, principalID: $principalID)\n }\n"])));
|
|
10
|
+
var templateObject_1;
|
|
14
11
|
//# sourceMappingURL=mutateCancellation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutateCancellation.js","sourceRoot":"","sources":["../../src/queries/mutateCancellation.ts"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"mutateCancellation.js","sourceRoot":"","sources":["../../src/queries/mutateCancellation.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAkD;AAErC,QAAA,kBAAkB,OAAiB,YAAG,sMAAA,kIAIlD,KAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const mutateDisplayName:
|
|
1
|
+
import { DocumentNode } from '@apollo/client';
|
|
2
|
+
export declare const mutateDisplayName: DocumentNode;
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.mutateDisplayName = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
9
|
//Used for Display name and notification preferences
|
|
10
|
-
exports.mutateDisplayName = {
|
|
11
|
-
internal: (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation (\n $notifications: NotificationsInput\n $displayName: String!\n $publisher: Publisher!\n ) {\n updateUser(\n notifications: $notifications\n displayName: $displayName\n publisher: $publisher\n ) {\n success\n }\n }\n "], ["\n mutation (\n $notifications: NotificationsInput\n $displayName: String!\n $publisher: Publisher!\n ) {\n updateUser(\n notifications: $notifications\n displayName: $displayName\n publisher: $publisher\n ) {\n success\n }\n }\n "]))),
|
|
12
|
-
};
|
|
10
|
+
exports.mutateDisplayName = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation (\n $notifications: NotificationsInput\n $displayName: String!\n $publisher: Publisher!\n ) {\n updateUser(\n notifications: $notifications\n displayName: $displayName\n publisher: $publisher\n ) {\n success\n }\n }\n"], ["\n mutation (\n $notifications: NotificationsInput\n $displayName: String!\n $publisher: Publisher!\n ) {\n updateUser(\n notifications: $notifications\n displayName: $displayName\n publisher: $publisher\n ) {\n success\n }\n }\n"])));
|
|
13
11
|
var templateObject_1;
|
|
14
12
|
//# sourceMappingURL=mutateDisplayName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutateDisplayName.js","sourceRoot":"","sources":["../../src/queries/mutateDisplayName.ts"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"mutateDisplayName.js","sourceRoot":"","sources":["../../src/queries/mutateDisplayName.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAkD;AAElD,oDAAoD;AACvC,QAAA,iBAAiB,OAAiB,YAAG,oVAAA,gRAcjD,KAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const mutatePaymentMethod:
|
|
1
|
+
import { DocumentNode } from '@apollo/client';
|
|
2
|
+
export declare const mutatePaymentMethod: DocumentNode;
|
|
@@ -7,9 +7,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.mutatePaymentMethod = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
9
|
//Used for single field of customData
|
|
10
|
-
exports.mutatePaymentMethod = {
|
|
11
|
-
|
|
12
|
-
internal: (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation ($input: StripeUpdatePaymentMethodInput!) {\n stripeUpdatePaymentMethod(input: $input) {\n __typename\n ... on StripeUpdatePaymentMethodSucceeded {\n status\n }\n ... on StripeRequiresPaymentMethod {\n status\n }\n ... on StripeRequiresSetupIntentConfirmation {\n clientSecret\n }\n }\n }\n "], ["\n mutation ($input: StripeUpdatePaymentMethodInput!) {\n stripeUpdatePaymentMethod(input: $input) {\n __typename\n ... on StripeUpdatePaymentMethodSucceeded {\n status\n }\n ... on StripeRequiresPaymentMethod {\n status\n }\n ... on StripeRequiresSetupIntentConfirmation {\n clientSecret\n }\n }\n }\n "]))),
|
|
13
|
-
};
|
|
14
|
-
var templateObject_1, templateObject_2;
|
|
10
|
+
exports.mutatePaymentMethod = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation ($input: StripeUpdatePaymentMethodInput!) {\n stripeUpdatePaymentMethod(input: $input) {\n __typename\n ... on StripeUpdatePaymentMethodSucceeded {\n status\n }\n ... on StripeRequiresPaymentMethod {\n status\n }\n ... on StripeRequiresSetupIntentConfirmation {\n clientSecret\n }\n }\n }\n"], ["\n mutation ($input: StripeUpdatePaymentMethodInput!) {\n stripeUpdatePaymentMethod(input: $input) {\n __typename\n ... on StripeUpdatePaymentMethodSucceeded {\n status\n }\n ... on StripeRequiresPaymentMethod {\n status\n }\n ... on StripeRequiresSetupIntentConfirmation {\n clientSecret\n }\n }\n }\n"])));
|
|
11
|
+
var templateObject_1;
|
|
15
12
|
//# sourceMappingURL=mutatePaymentMethod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutatePaymentMethod.js","sourceRoot":"","sources":["../../src/queries/mutatePaymentMethod.ts"],"names":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"mutatePaymentMethod.js","sourceRoot":"","sources":["../../src/queries/mutatePaymentMethod.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAkD;AAElD,qCAAqC;AACxB,QAAA,mBAAmB,OAAiB,YAAG,obAAA,gXAenD,KAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const mutateUser:
|
|
1
|
+
import { DocumentNode } from '@apollo/client';
|
|
2
|
+
export declare const mutateUser: DocumentNode;
|
|
@@ -7,9 +7,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.mutateUser = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
9
|
//Used for firstname & lastName
|
|
10
|
-
exports.mutateUser = {
|
|
11
|
-
|
|
12
|
-
internal: (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation ($input: UpdateUserInput!) {\n updateUser(input: $input) {\n email\n }\n }\n "], ["\n mutation ($input: UpdateUserInput!) {\n updateUser(input: $input) {\n email\n }\n }\n "]))),
|
|
13
|
-
};
|
|
14
|
-
var templateObject_1, templateObject_2;
|
|
10
|
+
exports.mutateUser = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation ($input: UserInput!) {\n updateUser(input: $input) {\n email\n }\n }\n"], ["\n mutation ($input: UserInput!) {\n updateUser(input: $input) {\n email\n }\n }\n"])));
|
|
11
|
+
var templateObject_1;
|
|
15
12
|
//# sourceMappingURL=mutateUser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutateUser.js","sourceRoot":"","sources":["../../src/queries/mutateUser.ts"],"names":[],"mappings":";;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"mutateUser.js","sourceRoot":"","sources":["../../src/queries/mutateUser.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAkD;AAElD,+BAA+B;AAClB,QAAA,UAAU,OAAiB,YAAG,qKAAA,iGAM1C,KAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/my-account",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.121.0",
|
|
4
4
|
"description": "Newskit Render",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
"test:unit:ci": "JEST_JUNIT_OUTPUT_NAME=create-render-app.xml node --max_old_space_size=4096 --expose-gc ./node_modules/.bin/jest --ci --coverage --reporters=default --reporters=jest-junit --runInBand --logHeapUsage",
|
|
15
15
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx . --color",
|
|
16
16
|
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --color --fix && prettier --write './**/*.{js,jsx,ts,tsx,json}'",
|
|
17
|
+
"precommit:lint": "eslint",
|
|
18
|
+
"precommit": "lint-staged",
|
|
17
19
|
"clean": "rm -rf node_modules & rm -f package-lock.json & rm -f yarn.lock",
|
|
18
20
|
"storybook": "start-storybook -p 6006",
|
|
19
21
|
"build-storybook": "build-storybook",
|
|
@@ -26,9 +28,9 @@
|
|
|
26
28
|
"dependencies": {
|
|
27
29
|
"@apollo/client": "^3.4.16",
|
|
28
30
|
"@hookform/resolvers": "^2.5.2",
|
|
29
|
-
"@newskit-render/api": "^0.
|
|
30
|
-
"@newskit-render/shared-components": "^0.
|
|
31
|
-
"@newskit-render/validation": "^0.
|
|
31
|
+
"@newskit-render/api": "^0.8.0",
|
|
32
|
+
"@newskit-render/shared-components": "^0.25.0",
|
|
33
|
+
"@newskit-render/validation": "^0.30.0",
|
|
32
34
|
"@stripe/react-stripe-js": "^1.4.1",
|
|
33
35
|
"@stripe/stripe-js": "^1.17.0",
|
|
34
36
|
"cookie": "^0.4.1",
|
|
@@ -53,7 +55,6 @@
|
|
|
53
55
|
"@babel/polyfill": "^7.10.1",
|
|
54
56
|
"@babel/register": "^7.10.1",
|
|
55
57
|
"@emotion/jest": "^11.3.0",
|
|
56
|
-
"@newskit-render/validation": "^0.14.3",
|
|
57
58
|
"@storybook/addon-actions": "^6.2.9",
|
|
58
59
|
"@storybook/react": "^6.2.9",
|
|
59
60
|
"@testing-library/jest-dom": "^5.12.0",
|
|
@@ -74,6 +75,7 @@
|
|
|
74
75
|
"jest": "^26.6.3",
|
|
75
76
|
"jest-junit": "^12.0.0",
|
|
76
77
|
"jest-watch-typeahead": "^0.6.3",
|
|
78
|
+
"lint-staged": "^12.1.7",
|
|
77
79
|
"next": "^12.0.2",
|
|
78
80
|
"prettier": "^2.2.1",
|
|
79
81
|
"react": "17.0.2",
|
|
@@ -85,6 +87,14 @@
|
|
|
85
87
|
"resolutions": {
|
|
86
88
|
"newskit/react-hook-form": "7.8.4"
|
|
87
89
|
},
|
|
90
|
+
"precommit": [
|
|
91
|
+
"precommit"
|
|
92
|
+
],
|
|
93
|
+
"lint-staged": {
|
|
94
|
+
"**/*.(ts|tsx)": [
|
|
95
|
+
"yarn run precommit:lint"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
88
98
|
"files": [
|
|
89
99
|
"dist"
|
|
90
100
|
],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GET_USER_NEWSLETTER: import("@apollo/client").DocumentNode;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.GET_USER_NEWSLETTER = void 0;
|
|
8
|
-
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.GET_USER_NEWSLETTER = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment UserNewsletter on User {\n email\n vxInstances {\n isActive\n interactions {\n ... on SubscriptionPaymentInstance {\n startAt\n pastDue {\n isPastDue\n since\n }\n }\n }\n }\n }\n"], ["\n fragment UserNewsletter on User {\n email\n vxInstances {\n isActive\n interactions {\n ... on SubscriptionPaymentInstance {\n startAt\n pastDue {\n isPastDue\n since\n }\n }\n }\n }\n }\n"])));
|
|
10
|
-
var templateObject_1;
|
|
11
|
-
//# sourceMappingURL=getUserNewsletter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getUserNewsletter.js","sourceRoot":"","sources":["../../src/queries/getUserNewsletter.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,mBAAmB,OAAG,YAAG,8VAAA,0RAgBrC,KAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.mutateAdress = void 0;
|
|
8
|
-
var client_1 = require("@apollo/client");
|
|
9
|
-
//Used for address
|
|
10
|
-
exports.mutateAdress = {
|
|
11
|
-
external: (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation ($id: ID, $input: SaveUserAddressInput!) {\n saveUserAddress(id: $id, input: $input) {\n addresses {\n type\n country\n line1\n line2\n line3\n line4\n line5\n line6\n line7\n }\n }\n }\n "], ["\n mutation ($id: ID, $input: SaveUserAddressInput!) {\n saveUserAddress(id: $id, input: $input) {\n addresses {\n type\n country\n line1\n line2\n line3\n line4\n line5\n line6\n line7\n }\n }\n }\n "]))),
|
|
12
|
-
internal: (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation ($input: SaveUserAddressInput!) {\n saveUserAddress(input: $input) {\n addresses {\n type\n country\n line1\n line2\n line3\n line4\n line5\n line6\n line7\n }\n }\n }\n "], ["\n mutation ($input: SaveUserAddressInput!) {\n saveUserAddress(input: $input) {\n addresses {\n type\n country\n line1\n line2\n line3\n line4\n line5\n line6\n line7\n }\n }\n }\n "]))),
|
|
13
|
-
};
|
|
14
|
-
var templateObject_1, templateObject_2;
|
|
15
|
-
//# sourceMappingURL=mutateAddress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutateAddress.js","sourceRoot":"","sources":["../../src/queries/mutateAddress.ts"],"names":[],"mappings":";;;;;;;AACA,yCAAoC;AAEpC,kBAAkB;AACL,QAAA,YAAY,GAAiB;IACxC,QAAQ,MAAE,YAAG,8XAAA,0TAgBZ,IAAA;IACD,QAAQ,MAAE,YAAG,4WAAA,wSAgBZ,IAAA;CACF,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.mutateCustomData = void 0;
|
|
8
|
-
var client_1 = require("@apollo/client");
|
|
9
|
-
//Used for single field of customData
|
|
10
|
-
exports.mutateCustomData = {
|
|
11
|
-
external: (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n mutation ($id: ID, $input: SaveUserCustomDataInput!) {\n saveUserCustomDataSingle(id: $id, input: $input) {\n firstName\n }\n }\n "], ["\n mutation ($id: ID, $input: SaveUserCustomDataInput!) {\n saveUserCustomDataSingle(id: $id, input: $input) {\n firstName\n }\n }\n "]))),
|
|
12
|
-
internal: (0, client_1.gql)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n mutation ($input: SaveUserCustomDataInput!) {\n saveUserCustomDataSingle(input: $input) {\n firstName\n }\n }\n "], ["\n mutation ($input: SaveUserCustomDataInput!) {\n saveUserCustomDataSingle(input: $input) {\n firstName\n }\n }\n "]))),
|
|
13
|
-
};
|
|
14
|
-
var templateObject_1, templateObject_2;
|
|
15
|
-
//# sourceMappingURL=mutateCustom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mutateCustom.js","sourceRoot":"","sources":["../../src/queries/mutateCustom.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEpC,qCAAqC;AACxB,QAAA,gBAAgB,GAAG;IAC9B,QAAQ,MAAE,YAAG,mOAAA,+JAMZ,IAAA;IACD,QAAQ,MAAE,YAAG,iNAAA,6IAMZ,IAAA;CACF,CAAA"}
|
package/dist/theme/colors.json
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"amber010": "rgba(255, 227, 176, 1)",
|
|
3
|
-
"amber020": "rgba(255, 210, 132, 1)",
|
|
4
|
-
"amber030": "rgba(255, 192, 88, 1)",
|
|
5
|
-
"amber040": "rgba(255, 173, 44, 1)",
|
|
6
|
-
"amber050": "rgba(255, 153, 0, 1)",
|
|
7
|
-
"amber060": "rgba(255, 143, 0, 1)",
|
|
8
|
-
"amber070": "rgba(255, 130, 0, 1)",
|
|
9
|
-
"amber080": "rgba(255, 114, 0, 1)",
|
|
10
|
-
"amber090": "rgba(255, 96, 0, 1)",
|
|
11
|
-
"amber100": "rgba(255, 75, 0, 1)",
|
|
12
|
-
"black": "rgba(10, 10, 10, 1)",
|
|
13
|
-
"white": "rgba(255, 255, 255, 1)",
|
|
14
|
-
"blue010": "rgba(235, 245, 255, 1)",
|
|
15
|
-
"blue020": "rgba(195, 224, 255, 1)",
|
|
16
|
-
"blue030": "rgba(141, 195, 255, 1)",
|
|
17
|
-
"blue040": "rgba(91, 169, 255, 1)",
|
|
18
|
-
"blue050": "rgba(38, 142, 255, 1)",
|
|
19
|
-
"blue060": "rgba(0, 114, 238, 1)",
|
|
20
|
-
"blue070": "rgba(0, 86, 180, 1)",
|
|
21
|
-
"blue080": "rgba(0, 62, 129, 1)",
|
|
22
|
-
"blue090": "rgba(0, 48, 100, 1)",
|
|
23
|
-
"blue100": "rgba(0, 26, 54, 1)",
|
|
24
|
-
"green010": "rgba(220, 252, 220, 1)",
|
|
25
|
-
"green020": "rgba(137, 244, 137, 1)",
|
|
26
|
-
"green030": "rgba(0, 222, 0, 1)",
|
|
27
|
-
"green040": "rgba(0, 193, 0, 1)",
|
|
28
|
-
"green050": "rgba(0, 165, 0, 1)",
|
|
29
|
-
"green060": "rgba(0, 138, 0, 1)",
|
|
30
|
-
"green070": "rgba(0, 104, 0, 1)",
|
|
31
|
-
"green080": "rgba(0, 75, 0, 1)",
|
|
32
|
-
"green090": "rgba(0, 58, 0, 1)",
|
|
33
|
-
"green100": "rgba(0, 31, 0, 1)",
|
|
34
|
-
"neutral010": "rgba(243, 243, 243, 1)",
|
|
35
|
-
"neutral020": "rgba(220, 221, 221, 1)",
|
|
36
|
-
"neutral030": "rgba(190, 191, 191, 1)",
|
|
37
|
-
"neutral040": "rgba(165, 166, 166, 1)",
|
|
38
|
-
"neutral050": "rgba(141, 142, 142, 1)",
|
|
39
|
-
"neutral060": "rgba(117, 119, 119, 1)",
|
|
40
|
-
"neutral070": "rgba(88, 89, 89, 1)",
|
|
41
|
-
"neutral080": "rgba(62, 63, 63, 1)",
|
|
42
|
-
"neutral090": "rgba(48, 48, 48, 1)",
|
|
43
|
-
"neutral100": "rgba(25, 26, 26, 1)",
|
|
44
|
-
"purple010": "rgba(178, 195, 213, 1)",
|
|
45
|
-
"purple020": "rgba(147, 161, 195, 1)",
|
|
46
|
-
"purple030": "rgba(117, 124, 177, 1)",
|
|
47
|
-
"purple040": "rgba(93, 88, 159, 1)",
|
|
48
|
-
"purple050": "rgba(80, 59, 140, 1)",
|
|
49
|
-
"purple060": "rgba(71, 30, 121, 1)",
|
|
50
|
-
"purple070": "rgba(80, 25, 107, 1)",
|
|
51
|
-
"purple080": "rgba(84, 20, 93, 1)",
|
|
52
|
-
"purple090": "rgba(79, 16, 73, 1)",
|
|
53
|
-
"purple100": "rgba(64, 12, 48, 1)",
|
|
54
|
-
"red010": "rgba(251, 242, 240, 1)",
|
|
55
|
-
"red020": "rgba(242, 215, 211, 1)",
|
|
56
|
-
"red030": "rgba(231, 179, 172, 1)",
|
|
57
|
-
"red040": "rgba(221, 147, 138, 1)",
|
|
58
|
-
"red050": "rgba(211, 115, 103, 1)",
|
|
59
|
-
"red060": "rgba(208, 72, 55, 1)",
|
|
60
|
-
"red070": "rgba(178, 20, 0, 1)",
|
|
61
|
-
"red080": "rgba(129, 14, 0, 1)",
|
|
62
|
-
"red090": "rgba(101, 11, 0, 1)",
|
|
63
|
-
"red100": "rgba(57, 6, 0, 1)",
|
|
64
|
-
"socialFacebook": "rgba(24, 119, 242, 1)",
|
|
65
|
-
"socialInstagram": "rgba(195, 42, 163, 1)",
|
|
66
|
-
"socialReddit": "rgba(255, 69, 0, 1)",
|
|
67
|
-
"socialTwitter": "rgba(29, 161, 242, 1)",
|
|
68
|
-
"socialWhatsapp": "rgba(37, 211, 102, 1)",
|
|
69
|
-
"socialYoutube": "rgba(255, 0, 0, 1)",
|
|
70
|
-
"sun010": "rgba(255, 240, 240, 1)",
|
|
71
|
-
"sun020": "rgba(255, 210, 210, 1)",
|
|
72
|
-
"sun030": "rgba(255, 168, 168, 1)",
|
|
73
|
-
"sun040": "rgba(255, 127, 128, 1)",
|
|
74
|
-
"sun050": "rgba(255, 76, 77, 1)",
|
|
75
|
-
"sun060": "rgba(235, 23, 1, 1)",
|
|
76
|
-
"sun070": "rgba(179, 18, 1, 1)",
|
|
77
|
-
"sun080": "rgba(130, 12, 1, 1)",
|
|
78
|
-
"sun090": "rgba(101, 10, 0, 1)",
|
|
79
|
-
"sun100": "rgba(57, 5, 0, 1)",
|
|
80
|
-
"inkBase": "{{colors.neutral090}}",
|
|
81
|
-
"inkBrand010": "{{colors.blue060}}",
|
|
82
|
-
"inkBrand020": "{{colors.sun060}}",
|
|
83
|
-
"inkContrast": "{{colors.neutral100}}",
|
|
84
|
-
"inkInformative": "{{colors.blue060}}",
|
|
85
|
-
"inkInverse": "{{colors.white}}",
|
|
86
|
-
"inkNegative": "{{colors.red060}}",
|
|
87
|
-
"inkNonEssential": "{{colors.neutral030}}",
|
|
88
|
-
"inkNotice": "{{colors.amber050}}",
|
|
89
|
-
"inkPositive": "{{colors.green060}}",
|
|
90
|
-
"inkSubtle": "{{colors.neutral060}}",
|
|
91
|
-
"interface010": "{{colors.white}}",
|
|
92
|
-
"interface020": "{{colors.neutral010}}",
|
|
93
|
-
"interface030": "{{colors.neutral020}}",
|
|
94
|
-
"interface040": "{{colors.neutral030}}",
|
|
95
|
-
"interface050": "{{colors.neutral040}}",
|
|
96
|
-
"interface060": "{{colors.neutral100}}",
|
|
97
|
-
"interfaceBackground": "{{colors.white}}",
|
|
98
|
-
"interfaceBrand010": "{{colors.sun060}}",
|
|
99
|
-
"interfaceBrand020": "{{colors.sun070}}",
|
|
100
|
-
"interfaceInformative010": "{{colors.blue060}}",
|
|
101
|
-
"interfaceInformative020": "{{colors.blue010}}",
|
|
102
|
-
"interfaceNegative010": "{{colors.red060}}",
|
|
103
|
-
"interfaceNegative020": "{{colors.sun010}}",
|
|
104
|
-
"interfaceNeutral010": "{{colors.neutral070}}",
|
|
105
|
-
"interfaceNeutral020": "{{colors.neutral010}}",
|
|
106
|
-
"interfaceNotice010": "{{colors.amber060}}",
|
|
107
|
-
"interfaceNotice020": "{{colors.amber010}}",
|
|
108
|
-
"interfacePositive010": "{{colors.green060}}",
|
|
109
|
-
"interfacePositive020": "{{colors.green010}}",
|
|
110
|
-
"interfaceSkeleton010": "{{colors.neutral010}}",
|
|
111
|
-
"interfaceSkeleton020": "{{colors.neutral020}}",
|
|
112
|
-
"transparent": "transparent",
|
|
113
|
-
"interactiveDisabled010": "{{colors.neutral010}}",
|
|
114
|
-
"interactiveNegative010": "{{colors.red020}}",
|
|
115
|
-
"interactiveNegative020": "{{colors.red030}}",
|
|
116
|
-
"interactiveNegative030": "{{colors.red060}}",
|
|
117
|
-
"interactiveNegative040": "{{colors.red070}}",
|
|
118
|
-
"interactiveNegative050": "{{colors.red080}}",
|
|
119
|
-
"interactivePositive010": "{{colors.green020}}",
|
|
120
|
-
"interactivePositive020": "{{colors.green030}}",
|
|
121
|
-
"interactivePositive030": "{{colors.green060}}",
|
|
122
|
-
"interactivePositive040": "{{colors.green070}}",
|
|
123
|
-
"interactivePositive050": "{{colors.green080}}",
|
|
124
|
-
"interactivePrimary010": "{{colors.blue020}}",
|
|
125
|
-
"interactivePrimary020": "{{colors.blue030}}",
|
|
126
|
-
"interactivePrimary030": "{{colors.blue060}}",
|
|
127
|
-
"interactivePrimary040": "{{colors.blue070}}",
|
|
128
|
-
"interactivePrimary050": "{{colors.blue080}}",
|
|
129
|
-
"interactiveSecondary010": "{{colors.neutral020}}",
|
|
130
|
-
"interactiveSecondary020": "{{colors.neutral030}}",
|
|
131
|
-
"interactiveSecondary030": "{{colors.neutral080}}",
|
|
132
|
-
"interactiveSecondary040": "{{colors.neutral090}}",
|
|
133
|
-
"interactiveSecondary050": "{{colors.neutral100}}",
|
|
134
|
-
"interactiveVisited010": "{{colors.purple060}}"
|
|
135
|
-
}
|