@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, customName: (_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 customName = _a.customName, url = _a.url, icon = _a.icon;
43
- return (_jsx(Grid, __assign({ xs: 6, sm: 4, md: 2 }, { children: url && (_jsx(AppHubCustom, { customName: customName, customLinkBgColor: customLinkBgColor, url: url, icon: icon })) }), "".concat(customName, "_").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, customName: (_b = addButton.title) !== null && _b !== void 0 ? _b : messages['add-item'], customLinkBgColor: customLinkBgColor, url: addButton.url, icon: addButton.icon }) })))] }))] }, "row_".concat(rowIndex)));
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');
@@ -6,9 +6,8 @@ export declare const LogoVariants: {
6
6
  White: string;
7
7
  };
8
8
  interface IAppHubCustomProps {
9
- shortName?: string;
10
- customName?: string;
11
- url?: string;
9
+ name: string;
10
+ url: string;
12
11
  isAddButton?: boolean;
13
12
  customLinkBgColor?: string;
14
13
  icon?: any;
@@ -20,12 +20,12 @@ export var LogoVariants = {
20
20
  White: 'icon-white'
21
21
  };
22
22
  var AppHubCustom = function (props) {
23
- var shortName = props.shortName, customName = props.customName, url = props.url, isAddButton = props.isAddButton, customLinkBgColor = props.customLinkBgColor, icon = props.icon;
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 : (customName ? handleAvatarInitials(customName) : null), customLinkBgColor: customLinkBgColor })), isAddButton && addIcon, _jsx(StyledTypography
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: customName !== null && customName !== void 0 ? customName : shortName }))] }) })) })));
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
- customName: string;
73
+ name: string;
74
74
  url: string;
75
75
  customLinkBgColor?: undefined;
76
76
  } | {
77
- customName: string;
77
+ name: string;
78
78
  url: string;
79
79
  customLinkBgColor: string;
80
80
  })[];
81
81
  export declare const hubSupportItems: {
82
- customName: string;
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
- { customName: 'Learning Pool', url: 'https://learningpool.com' },
46
- { customName: 'Custom Link', url: 'https://learningpool.com' },
47
- { customName: 'Another Custom Link', url: 'https://learningpool.com', customLinkBgColor: '#ff0000' },
48
- { customName: 'Wrapping Text Name Truncation Test Link', url: 'https://learningpool.com' },
49
- { customName: 'Link', url: 'https://learningpool.com' },
50
- { customName: 'Another Custom Link', url: 'https://learningpool.com' },
51
- { customName: 'Another Custom Link', url: 'https://learningpool.com' },
52
- { customName: 'Another Custom Link', url: 'https://learningpool.com' },
53
- { customName: 'Another Custom Link', url: 'https://learningpool.com' }
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
- { customName: 'Contact us', url: 'https://learningpool.com', icon: _jsx(Home, {}) }
56
+ { name: 'Contact us', url: 'https://learningpool.com', icon: _jsx(Home, {}) }
57
57
  ];
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "components",
10
10
  "ui"
11
11
  ],
12
- "version": "1.7.5",
12
+ "version": "1.7.6",
13
13
  "private": false,
14
14
  "main": "index.js",
15
15
  "module": "index.js",