@learningpool/ui 1.7.5 → 1.7.6
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.
|
@@ -38,10 +38,10 @@ var AppHub = function (props) {
|
|
|
38
38
|
// @ts-ignore
|
|
39
39
|
, __assign({
|
|
40
40
|
// @ts-ignore
|
|
41
|
-
component: isPageLayout ? 'h2' : 'div' }, { children: title })), _jsxs(Grid, __assign({ container: true, spacing: { xs: 2, md: 3 } }, { children: [addButton && addButton.order === Constants.AddButtonOrder.Start && (_jsx(Grid, __assign({ xs: 6, sm: 4, md: 2 }, { children: _jsx(AppHubCustom, { isAddButton: true,
|
|
42
|
-
var
|
|
43
|
-
return (_jsx(Grid, __assign({ xs: 6, sm: 4, md: 2 }, { children: url && (_jsx(AppHubCustom, {
|
|
44
|
-
}), addButton && addButton.order === Constants.AddButtonOrder.End && (_jsx(Grid, __assign({ xs: 6, sm: 4, md: 2 }, { children: _jsx(AppHubCustom, { isAddButton: true,
|
|
41
|
+
component: isPageLayout ? 'h2' : 'div' }, { children: title })), _jsxs(Grid, __assign({ container: true, spacing: { xs: 2, md: 3 } }, { children: [addButton && addButton.order === Constants.AddButtonOrder.Start && (_jsx(Grid, __assign({ xs: 6, sm: 4, md: 2 }, { children: _jsx(AppHubCustom, { isAddButton: true, name: (_a = addButton.title) !== null && _a !== void 0 ? _a : messages['add-item'], customLinkBgColor: customLinkBgColor, url: addButton.url, icon: addButton.icon }) }))), items.map(function (_a, index) {
|
|
42
|
+
var name = _a.name, url = _a.url, icon = _a.icon;
|
|
43
|
+
return (_jsx(Grid, __assign({ xs: 6, sm: 4, md: 2 }, { children: url && (_jsx(AppHubCustom, { name: name, customLinkBgColor: customLinkBgColor, url: url, icon: icon })) }), "".concat(name, "_").concat(rowIndex, "_").concat(index)));
|
|
44
|
+
}), addButton && addButton.order === Constants.AddButtonOrder.End && (_jsx(Grid, __assign({ xs: 6, sm: 4, md: 2 }, { children: _jsx(AppHubCustom, { isAddButton: true, name: (_b = addButton.title) !== null && _b !== void 0 ? _b : messages['add-item'], customLinkBgColor: customLinkBgColor, url: addButton.url, icon: addButton.icon }) })))] }))] }, "row_".concat(rowIndex)));
|
|
45
45
|
}
|
|
46
46
|
default: {
|
|
47
47
|
console.log('no items');
|
|
@@ -20,12 +20,12 @@ export var LogoVariants = {
|
|
|
20
20
|
White: 'icon-white'
|
|
21
21
|
};
|
|
22
22
|
var AppHubCustom = function (props) {
|
|
23
|
-
var
|
|
23
|
+
var name = props.name, url = props.url, isAddButton = props.isAddButton, customLinkBgColor = props.customLinkBgColor, icon = props.icon;
|
|
24
24
|
var addIcon = icon !== null && icon !== void 0 ? icon : _jsx(StyledAddCircleOutlineIcon, {});
|
|
25
|
-
return (_jsx(StyledPaper, __assign({ elevation: 0 }, { children: _jsx(StyledLink, __assign({ href: url, target: !isAddButton ? '_blank' : '_self', underline: 'none' }, { children: _jsxs(StyledBoxWrap, { children: [!isAddButton && (_jsx(StyledAvatar, { children: icon !== null && icon !== void 0 ? icon : (
|
|
25
|
+
return (_jsx(StyledPaper, __assign({ elevation: 0 }, { children: _jsx(StyledLink, __assign({ href: url, target: !isAddButton ? '_blank' : '_self', underline: 'none' }, { children: _jsxs(StyledBoxWrap, { children: [!isAddButton && (_jsx(StyledAvatar, { children: icon !== null && icon !== void 0 ? icon : (name ? handleAvatarInitials(name) : null), customLinkBgColor: customLinkBgColor })), isAddButton && addIcon, _jsx(StyledTypography
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
, __assign({
|
|
28
28
|
// @ts-ignore
|
|
29
|
-
component: 'div' }, { children:
|
|
29
|
+
component: 'div' }, { children: name }))] }) })) })));
|
|
30
30
|
};
|
|
31
31
|
export default AppHubCustom;
|
|
@@ -70,16 +70,16 @@ export declare const hubApplications: ({
|
|
|
70
70
|
children?: undefined;
|
|
71
71
|
})[];
|
|
72
72
|
export declare const hubCustomLinks: ({
|
|
73
|
-
|
|
73
|
+
name: string;
|
|
74
74
|
url: string;
|
|
75
75
|
customLinkBgColor?: undefined;
|
|
76
76
|
} | {
|
|
77
|
-
|
|
77
|
+
name: string;
|
|
78
78
|
url: string;
|
|
79
79
|
customLinkBgColor: string;
|
|
80
80
|
})[];
|
|
81
81
|
export declare const hubSupportItems: {
|
|
82
|
-
|
|
82
|
+
name: string;
|
|
83
83
|
url: string;
|
|
84
84
|
icon: JSX.Element;
|
|
85
85
|
}[];
|
|
@@ -42,16 +42,16 @@ export var hubApplications = [
|
|
|
42
42
|
{ applicationId: 4, applicationName: 'Stream Authoring', shortName: 'Authoring', internalName: 'authoring', customName: '', subtitle: 'Subtitle Test', url: 'https://learningpool.com' }
|
|
43
43
|
];
|
|
44
44
|
export var hubCustomLinks = [
|
|
45
|
-
{
|
|
46
|
-
{
|
|
47
|
-
{
|
|
48
|
-
{
|
|
49
|
-
{
|
|
50
|
-
{
|
|
51
|
-
{
|
|
52
|
-
{
|
|
53
|
-
{
|
|
45
|
+
{ name: 'Learning Pool', url: 'https://learningpool.com' },
|
|
46
|
+
{ name: 'Custom Link', url: 'https://learningpool.com' },
|
|
47
|
+
{ name: 'Another Custom Link', url: 'https://learningpool.com', customLinkBgColor: '#ff0000' },
|
|
48
|
+
{ name: 'Wrapping Text Name Truncation Test Link', url: 'https://learningpool.com' },
|
|
49
|
+
{ name: 'Link', url: 'https://learningpool.com' },
|
|
50
|
+
{ name: 'Another Custom Link', url: 'https://learningpool.com' },
|
|
51
|
+
{ name: 'Another Custom Link', url: 'https://learningpool.com' },
|
|
52
|
+
{ name: 'Another Custom Link', url: 'https://learningpool.com' },
|
|
53
|
+
{ name: 'Another Custom Link', url: 'https://learningpool.com' }
|
|
54
54
|
];
|
|
55
55
|
export var hubSupportItems = [
|
|
56
|
-
{
|
|
56
|
+
{ name: 'Contact us', url: 'https://learningpool.com', icon: _jsx(Home, {}) }
|
|
57
57
|
];
|