@newskit-render/my-account 0.0.0-2b93091d → 0.0.0-42901200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Components/Elements/Tile/Tile.d.ts +3 -0
- package/dist/cjs/Components/Elements/Tile/Tile.js +14 -0
- package/dist/cjs/Components/Elements/Tile/Tile.js.map +1 -0
- package/dist/cjs/Components/Elements/Tile/index.d.ts +2 -0
- package/dist/cjs/Components/Elements/Tile/index.js +19 -0
- package/dist/cjs/Components/Elements/Tile/index.js.map +1 -0
- package/dist/cjs/Components/Elements/Tile/types.d.ts +5 -0
- package/dist/cjs/Components/Elements/Tile/types.js +3 -0
- package/dist/cjs/Components/Elements/Tile/types.js.map +1 -0
- package/dist/cjs/Components/Templates/UserHubRender.js +2 -1
- package/dist/cjs/Components/Templates/UserHubRender.js.map +1 -1
- package/dist/cjs/context/types.d.ts +2 -1
- package/dist/cjs/context/types.js.map +1 -1
- package/dist/esm/Components/Elements/Tile/Tile.d.ts +3 -0
- package/dist/esm/Components/Elements/Tile/Tile.js +7 -0
- package/dist/esm/Components/Elements/Tile/Tile.js.map +1 -0
- package/dist/esm/Components/Elements/Tile/index.d.ts +2 -0
- package/dist/esm/Components/Elements/Tile/index.js +3 -0
- package/dist/esm/Components/Elements/Tile/index.js.map +1 -0
- package/dist/esm/Components/Elements/Tile/types.d.ts +5 -0
- package/dist/esm/Components/Elements/Tile/types.js +2 -0
- package/dist/esm/Components/Elements/Tile/types.js.map +1 -0
- package/dist/esm/Components/Templates/UserHubRender.js +2 -1
- package/dist/esm/Components/Templates/UserHubRender.js.map +1 -1
- package/dist/esm/context/types.d.ts +2 -1
- package/dist/esm/context/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Tile = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var shared_components_1 = require("@newskit-render/shared-components");
|
|
9
|
+
var Tile = function (_a) {
|
|
10
|
+
var title = _a.title, id = _a.id, href = _a.href;
|
|
11
|
+
return (react_1.default.createElement(shared_components_1.NextLink, { type: "inline", href: href, "data-testid": id || '' }, title));
|
|
12
|
+
};
|
|
13
|
+
exports.Tile = Tile;
|
|
14
|
+
//# sourceMappingURL=Tile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/Tile/Tile.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAyB;AAEzB,uEAA4D;AAErD,IAAM,IAAI,GAAwB,UAAC,EAAmB;QAAjB,KAAK,WAAA,EAAE,EAAE,QAAA,EAAE,IAAI,UAAA;IACzD,OAAO,CACL,8BAAC,4BAAQ,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,iBAAe,EAAE,IAAI,EAAE,IACtD,KAAK,CACG,CACZ,CAAA;AACH,CAAC,CAAA;AANY,QAAA,IAAI,QAMhB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./Tile"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/Tile/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,yCAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/Tile/types.ts"],"names":[],"mappings":""}
|
|
@@ -32,6 +32,7 @@ var context_1 = require("../../context");
|
|
|
32
32
|
var types_1 = require("../../context/types");
|
|
33
33
|
var newskit_1 = require("newskit");
|
|
34
34
|
var helpers_1 = require("../../helpers");
|
|
35
|
+
var Tile_1 = require("../../Components/Elements/Tile");
|
|
35
36
|
var UserHubRender = function () {
|
|
36
37
|
var contextName = types_1.ContextName.userHubPage;
|
|
37
38
|
var _a = (0, context_1.useAccountContext)(contextName), baseUrl = _a.baseUrl, header = _a.header, tiles = _a.tiles;
|
|
@@ -40,7 +41,7 @@ var UserHubRender = function () {
|
|
|
40
41
|
react_1.default.createElement(newskit_1.Stack, null, tiles.map(function (_a) {
|
|
41
42
|
var href = _a.href, props = __rest(_a, ["href"]);
|
|
42
43
|
return (react_1.default.createElement(newskit_1.StackChild, null,
|
|
43
|
-
react_1.default.createElement(
|
|
44
|
+
react_1.default.createElement(Tile_1.Tile, __assign({}, props, { href: (0, helpers_1.replaceBaseURL)(baseUrl, href) }))));
|
|
44
45
|
}))));
|
|
45
46
|
};
|
|
46
47
|
exports.UserHubRender = UserHubRender;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserHubRender.js","sourceRoot":"","sources":["../../../../src/Components/Templates/UserHubRender.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"UserHubRender.js","sourceRoot":"","sources":["../../../../src/Components/Templates/UserHubRender.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,uEAA0D;AAC1D,yCAAwE;AAExE,6CAAiD;AACjD,mCAA2C;AAC3C,yCAA8C;AAC9C,uDAAqD;AAE9C,IAAM,aAAa,GAAa;IACrC,IAAM,WAAW,GAAG,mBAAW,CAAC,WAAW,CAAA;IACrC,IAAA,KAA6B,IAAA,2BAAiB,EAClD,WAAW,CACa,EAFlB,OAAO,aAAA,EAAE,MAAM,YAAA,EAAE,KAAK,WAEJ,CAAA;IAE1B,OAAO,CACL;QACE,8BAAC,0BAAM,eAAK,MAAM,IAAE,cAAc,UAAG;QACrC,8BAAC,eAAK,QACH,KAAK,CAAC,GAAG,CAAC,UAAC,EAAkB;YAAhB,IAAA,IAAI,UAAA,EAAK,KAAK,cAAhB,QAAkB,CAAF;YAAO,OAAA,CACjC,8BAAC,oBAAU;gBACT,8BAAC,WAAI,eAAK,KAAK,IAAE,IAAI,EAAE,IAAA,wBAAc,EAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAC7C,CACd,CAAA;SAAA,CAAC,CACI,CACP,CACJ,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,aAAa,iBAkBzB"}
|
|
@@ -14,10 +14,11 @@ import { SubscriptionStatusProps } from '../Components/Sections/NoSubscription';
|
|
|
14
14
|
import { DeliveryInstructionsProps } from '../Components/Sections/Form/DeliveryInstructions';
|
|
15
15
|
import { HolidayStopProps } from '../Components/Sections/Form/HolidayStop';
|
|
16
16
|
import { VouchersProps } from '../Components/Sections/Form/Vouchers';
|
|
17
|
-
import { ButtonProps
|
|
17
|
+
import { ButtonProps } from '@newskit-render/shared-components';
|
|
18
18
|
import { CardContentContainerProps } from 'Components/Sections/CardContentContainer';
|
|
19
19
|
import { FamilyMemberProps } from '../Components/Sections/Form/InviteFamilyMember/types';
|
|
20
20
|
import { PaymentMethodsMap } from 'Components/Templates';
|
|
21
|
+
import { TileProps } from '../Components/Elements/Tile';
|
|
21
22
|
interface InfoPanel extends InlineMessageProps {
|
|
22
23
|
infoPanelCells?: MQ<number>;
|
|
23
24
|
href?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/context/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/context/types.ts"],"names":[],"mappings":";;;AA+KA,IAAY,WAmBX;AAnBD,WAAY,WAAW;IACrB,kDAAqC,CAAA;IACrC,gEAAmD,CAAA;IACnD,0CAA6B,CAAA;IAC7B,4DAA+C,CAAA;IAC/C,kCAAqB,CAAA;IACrB,sCAAyB,CAAA;IACzB,oCAAuB,CAAA;IACvB,4CAA+B,CAAA;IAC/B,8BAAiB,CAAA;IACjB,gDAAmC,CAAA;IACnC,kDAAqC,CAAA;IACrC,gDAAmC,CAAA;IACnC,sCAAyB,CAAA;IACzB,0CAA6B,CAAA;IAC7B,kDAAqC,CAAA;IACrC,gEAAmD,CAAA;IACnD,gCAAmB,CAAA;IACnB,0CAA6B,CAAA;AAC/B,CAAC,EAnBW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAmBtB;AAiHD,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;AACnB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,gDAA4B,CAAA;IAC5B,yCAAqB,CAAA;IACrB,8CAA0B,CAAA;AAC5B,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,6CAAyB,CAAA;AAC3B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AA0ZD,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACrB,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NextLink } from '@newskit-render/shared-components';
|
|
3
|
+
export var Tile = function (_a) {
|
|
4
|
+
var title = _a.title, id = _a.id, href = _a.href;
|
|
5
|
+
return (React.createElement(NextLink, { type: "inline", href: href, "data-testid": id || '' }, title));
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=Tile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AAE5D,MAAM,CAAC,IAAM,IAAI,GAAwB,UAAC,EAAmB;QAAjB,KAAK,WAAA,EAAE,EAAE,QAAA,EAAE,IAAI,UAAA;IACzD,OAAO,CACL,oBAAC,QAAQ,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,iBAAe,EAAE,IAAI,EAAE,IACtD,KAAK,CACG,CACZ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/Tile/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/Components/Elements/Tile/types.ts"],"names":[],"mappings":""}
|
|
@@ -21,11 +21,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import React from 'react';
|
|
24
|
-
import { Header
|
|
24
|
+
import { Header } from '@newskit-render/shared-components';
|
|
25
25
|
import { useAccountContext } from '../../context';
|
|
26
26
|
import { ContextName } from '../../context/types';
|
|
27
27
|
import { Stack, StackChild } from 'newskit';
|
|
28
28
|
import { replaceBaseURL } from '../../helpers';
|
|
29
|
+
import { Tile } from '../../Components/Elements/Tile';
|
|
29
30
|
export var UserHubRender = function () {
|
|
30
31
|
var contextName = ContextName.userHubPage;
|
|
31
32
|
var _a = useAccountContext(contextName), baseUrl = _a.baseUrl, header = _a.header, tiles = _a.tiles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserHubRender.js","sourceRoot":"","sources":["../../../../src/Components/Templates/UserHubRender.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"UserHubRender.js","sourceRoot":"","sources":["../../../../src/Components/Templates/UserHubRender.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAyB,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAErD,MAAM,CAAC,IAAM,aAAa,GAAa;IACrC,IAAM,WAAW,GAAG,WAAW,CAAC,WAAW,CAAA;IACrC,IAAA,KAA6B,iBAAiB,CAClD,WAAW,CACa,EAFlB,OAAO,aAAA,EAAE,MAAM,YAAA,EAAE,KAAK,WAEJ,CAAA;IAE1B,OAAO,CACL;QACE,oBAAC,MAAM,eAAK,MAAM,IAAE,cAAc,UAAG;QACrC,oBAAC,KAAK,QACH,KAAK,CAAC,GAAG,CAAC,UAAC,EAAkB;YAAhB,IAAA,IAAI,UAAA,EAAK,KAAK,cAAhB,QAAkB,CAAF;YAAO,OAAA,CACjC,oBAAC,UAAU;gBACT,oBAAC,IAAI,eAAK,KAAK,IAAE,IAAI,EAAE,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAC7C,CACd,CAAA;SAAA,CAAC,CACI,CACP,CACJ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -14,10 +14,11 @@ import { SubscriptionStatusProps } from '../Components/Sections/NoSubscription';
|
|
|
14
14
|
import { DeliveryInstructionsProps } from '../Components/Sections/Form/DeliveryInstructions';
|
|
15
15
|
import { HolidayStopProps } from '../Components/Sections/Form/HolidayStop';
|
|
16
16
|
import { VouchersProps } from '../Components/Sections/Form/Vouchers';
|
|
17
|
-
import { ButtonProps
|
|
17
|
+
import { ButtonProps } from '@newskit-render/shared-components';
|
|
18
18
|
import { CardContentContainerProps } from 'Components/Sections/CardContentContainer';
|
|
19
19
|
import { FamilyMemberProps } from '../Components/Sections/Form/InviteFamilyMember/types';
|
|
20
20
|
import { PaymentMethodsMap } from 'Components/Templates';
|
|
21
|
+
import { TileProps } from '../Components/Elements/Tile';
|
|
21
22
|
interface InfoPanel extends InlineMessageProps {
|
|
22
23
|
infoPanelCells?: MQ<number>;
|
|
23
24
|
href?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/context/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/context/types.ts"],"names":[],"mappings":"AA+KA,MAAM,CAAN,IAAY,WAmBX;AAnBD,WAAY,WAAW;IACrB,kDAAqC,CAAA;IACrC,gEAAmD,CAAA;IACnD,0CAA6B,CAAA;IAC7B,4DAA+C,CAAA;IAC/C,kCAAqB,CAAA;IACrB,sCAAyB,CAAA;IACzB,oCAAuB,CAAA;IACvB,4CAA+B,CAAA;IAC/B,8BAAiB,CAAA;IACjB,gDAAmC,CAAA;IACnC,kDAAqC,CAAA;IACrC,gDAAmC,CAAA;IACnC,sCAAyB,CAAA;IACzB,0CAA6B,CAAA;IAC7B,kDAAqC,CAAA;IACrC,gEAAmD,CAAA;IACnD,gCAAmB,CAAA;IACnB,0CAA6B,CAAA;AAC/B,CAAC,EAnBW,WAAW,KAAX,WAAW,QAmBtB;AAiHD,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAqB,CAAA;IACrB,+BAAiB,CAAA;AACnB,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAED,MAAM,CAAN,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,gDAA4B,CAAA;IAC5B,yCAAqB,CAAA;IACrB,8CAA0B,CAAA;AAC5B,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B;AAED,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,6CAAyB,CAAA;AAC3B,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AA0ZD,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;AACrB,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC"}
|