@learningpool/ui 1.6.10 → 1.7.1

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.
@@ -6,7 +6,7 @@ import { Avatar, Button, ListItemButton, Typography } from '../../../index';
6
6
  import { Drawer } from '@mui/material';
7
7
  import { styled } from '@mui/material/styles';
8
8
  import { animated } from '@react-spring/web';
9
- export var StyledSwipeableAvatar = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiPaper-root {\n color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n .MuiPaper-root {\n color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
9
+ export var StyledSwipeableAvatar = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n color: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.zIndex.appBar - 1; }, function (props) { return props.theme.palette.mode === 'dark'
10
10
  ? props.theme.palette.primary.contrastText
11
11
  : props.theme.palette.text.primary; });
12
12
  export var StyledBox = styled(animated.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n background-image: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n overflow: auto;\n padding: 15vh ", ";\n position: relative;\n"], ["\n background-color: ", ";\n background-image: ", ";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n height: 100%;\n overflow: auto;\n padding: 15vh ", ";\n position: relative;\n"])), function (props) { return props.theme.palette.mode === 'dark'
@@ -6,7 +6,7 @@ import { Box, List, ListItem, ListItemText, ListItemButton, Typography } from '.
6
6
  import { Drawer } from '@mui/material';
7
7
  import { styled } from '@mui/material/styles';
8
8
  import { animated } from '@react-spring/web';
9
- export var StyledSwipeableDrawer = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiPaper-root {\n background-color: ", ";\n background-image: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n .MuiPaper-root {\n background-color: ", ";\n background-image: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
9
+ export var StyledSwipeableDrawer = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n background-color: ", ";\n background-image: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"], ["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n background-color: ", ";\n background-image: ", ";\n height: 100vh;\n border: none;\n z-index: 1;\n }\n"])), function (props) { return props.theme.zIndex.appBar - 1; }, function (props) { return props.theme.palette.mode === 'dark'
10
10
  ? '#003366'
11
11
  : props.theme.palette.background.paper; }, function (props) { return props.theme.palette.mode === 'dark'
12
12
  ? 'none'
@@ -5,7 +5,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
5
5
  import { SwipeableDrawer, OutlinedInput, InputLabel } from '../../../index';
6
6
  import { styled } from '@mui/material/styles';
7
7
  import { animated } from '@react-spring/web';
8
- export var StyledSwipeableSearch = styled(SwipeableDrawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiPaper-root {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 5px 8px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 14px 0px rgba(0, 0, 0, 0.12);\n border: none;\n border-radius: 20px 20px 0 0;\n z-index: 1;\n }\n"], ["\n .MuiPaper-root {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 5px 8px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 14px 0px rgba(0, 0, 0, 0.12);\n border: none;\n border-radius: 20px 20px 0 0;\n z-index: 1;\n }\n"])));
8
+ export var StyledSwipeableSearch = styled(SwipeableDrawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 5px 8px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 14px 0px rgba(0, 0, 0, 0.12);\n border: none;\n border-radius: 20px 20px 0 0;\n z-index: 1;\n }\n"], ["\n // Override the MUI default z-index of the Drawer component\n // to ensure that the drawer is always below the AppBar.\n z-index: ", ";\n\n .MuiPaper-root {\n box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 5px 8px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 14px 0px rgba(0, 0, 0, 0.12);\n border: none;\n border-radius: 20px 20px 0 0;\n z-index: 1;\n }\n"])), function (props) { return props.theme.zIndex.appBar - 1; });
9
9
  export var StyledBox = styled(animated.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n background-image: ", ";\n padding: ", ";\n height: 100%;\n"], ["\n background-color: ", ";\n background-image: ", ";\n padding: ", ";\n height: 100%;\n"])), function (props) { return props.theme.palette.mode === 'dark'
10
10
  ? '#003366'
11
11
  : props.theme.palette.background.paper; }, function (props) { return props.theme.palette.mode === 'dark'
@@ -10,9 +10,9 @@ export var DRAWER_WIDTH = {
10
10
  Collapsed: 60,
11
11
  Expanded: 300
12
12
  };
13
- export var StyledPaper = styled(Paper)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n background-image: none;\n border-radius: 0;\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n z-index: 1000000000;\n"], ["\n background-color: ", ";\n background-image: none;\n border-radius: 0;\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n z-index: 1000000000;\n"])), function (props) { return props.theme.palette.mode === 'dark'
13
+ export var StyledPaper = styled(Paper)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n background-image: none;\n border-radius: 0;\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n z-index: ", ";\n"], ["\n background-color: ", ";\n background-image: none;\n border-radius: 0;\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n z-index: ", ";\n"])), function (props) { return props.theme.palette.mode === 'dark'
14
14
  ? props.theme.palette.primary.main
15
- : props.theme.palette.background.paper; });
15
+ : props.theme.palette.background.paper; }, function (props) { return props.theme.zIndex.appBar; });
16
16
  export var StyledNotchSVG = styled('svg', {
17
17
  shouldForwardProp: function (prop) { return prop !== 'mobileNotchPosition'; }
18
18
  })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: block;\n fill: ", ";\n height: 50px;\n left: 0;\n padding: 0;\n position: absolute;\n stroke: transparent;\n top: -29px;\n transform: rotate(270deg);\n width: 50px;\n z-index: -1;\n"], ["\n display: block;\n fill: ", ";\n height: 50px;\n left: 0;\n padding: 0;\n position: absolute;\n stroke: transparent;\n top: -29px;\n transform: rotate(270deg);\n width: 50px;\n z-index: -1;\n"])), function (props) { return props.theme.palette.mode === 'dark'
@@ -0,0 +1,4 @@
1
+ import { ReactElement } from 'react';
2
+ import { IApplicationHubProps } from '../../../types/components/stream/AppHub';
3
+ declare const AppHub: (props: IApplicationHubProps) => ReactElement | null;
4
+ export default AppHub;
@@ -0,0 +1,61 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { defaultMessages } from '../../../lang/en-us';
14
+ import AppHubItem from './AppHubProduct';
15
+ import AppHubCustom from './AppHubCustom';
16
+ import { AppHubPanel, AppHubTitle, AppHubHeader, AppHubRow } from './AppHubStyles';
17
+ import Grid from '@mui/material/Unstable_Grid2';
18
+ import { Constants } from './constants';
19
+ var AppHub = function (props) {
20
+ var isPageLayout = props.isPageLayout, localization = props.localization, customLinkBgColor = props.customLinkBgColor, data = props.data;
21
+ var messages = __assign(__assign({}, defaultMessages), localization);
22
+ var renderRow = function (rowData, rowIndex) {
23
+ var type = rowData.type, items = rowData.items, title = rowData.title, addButton = rowData.addButton;
24
+ switch (type) {
25
+ case Constants.DataRowType.Product: {
26
+ return (_jsxs(AppHubRow, { children: [title && _jsx(AppHubHeader
27
+ // @ts-ignore
28
+ , __assign({
29
+ // @ts-ignore
30
+ component: isPageLayout ? 'h2' : 'div' }, { children: title })), _jsx(Grid, __assign({ container: true, spacing: { xs: 2, md: 3 }, rowSpacing: { xs: 3, md: 4 }, columns: { xs: 12 } }, { children: items.map(function (_a, index) {
31
+ var subtitle = _a.subtitle, shortName = _a.shortName, internalName = _a.internalName, url = _a.url, children = _a.children;
32
+ return (_jsxs(Grid, __assign({ xs: 12, sm: 6, md: 4 }, { children: [url && (_jsx(AppHubItem, { internalName: internalName, shortName: shortName, subtitle: subtitle, url: url })), children && (_jsx(AppHubItem, { internalName: internalName, shortName: shortName, subtitle: subtitle, options: children }))] }), "".concat(shortName, "_").concat(rowIndex, "_").concat(index)));
33
+ }) }))] }, "row_".concat(rowIndex)));
34
+ }
35
+ case Constants.DataRowType.CustomLink: {
36
+ return (_jsxs(AppHubRow, { children: [title && _jsx(AppHubHeader
37
+ // @ts-ignore
38
+ , __assign({
39
+ // @ts-ignore
40
+ 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: messages['add-custom-link'], customLinkBgColor: customLinkBgColor, url: addButton.url }) }))), items.map(function (_a, index) {
41
+ var customName = _a.customName, url = _a.url, icon = _a.icon;
42
+ 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)));
43
+ }), addButton && addButton.order === Constants.AddButtonOrder.End && (_jsx(Grid, __assign({ xs: 6, sm: 4, md: 2 }, { children: _jsx(AppHubCustom, { isAddButton: true, customName: messages['add-custom-link'], customLinkBgColor: customLinkBgColor, url: addButton.url }) })))] }))] }, "row_".concat(rowIndex)));
44
+ }
45
+ default: {
46
+ console.log('no items');
47
+ return null;
48
+ }
49
+ }
50
+ };
51
+ if (!data || data.length <= 0) {
52
+ console.log('No data available');
53
+ return null;
54
+ }
55
+ return (_jsxs(AppHubPanel, __assign({ role: isPageLayout ? 'main' : '' }, { children: [_jsx(AppHubTitle
56
+ // @ts-ignore
57
+ , __assign({
58
+ // @ts-ignore
59
+ component: isPageLayout ? 'h1' : 'div' }, { children: messages['stream-hub-welcome'] })), data && data.map(function (row, rowIndex) { return renderRow(row, rowIndex); })] })));
60
+ };
61
+ export default AppHub;
@@ -0,0 +1,17 @@
1
+ import { ReactElement } from 'react';
2
+ export declare const LogoVariants: {
3
+ Default: string;
4
+ Solid: string;
5
+ Outlined: string;
6
+ White: string;
7
+ };
8
+ interface IAppHubCustomProps {
9
+ shortName?: string;
10
+ customName?: string;
11
+ url?: string;
12
+ isAddButton?: boolean;
13
+ customLinkBgColor?: string;
14
+ icon?: any;
15
+ }
16
+ declare const AppHubCustom: (props: IAppHubCustomProps) => ReactElement;
17
+ export default AppHubCustom;
@@ -0,0 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { StyledPaper, StyledBoxWrap, StyledTypography, StyledAvatar, StyledLink, StyledAddCircleOutlineIcon } from './AppHubCustomStyles';
14
+ import { handleAvatarInitials } from '../../../utils/helpers';
15
+ // Bug in the naming of the icons on the CDN
16
+ export var LogoVariants = {
17
+ Default: 'icon',
18
+ Solid: 'icon-solid',
19
+ Outlined: 'icon-outlined',
20
+ White: 'icon-white'
21
+ };
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;
24
+ return (_jsx(StyledPaper, __assign({ elevation: 0 }, { children: _jsx(StyledLink, __assign({ href: url, target: '_blank', underline: 'none' }, { children: _jsxs(StyledBoxWrap, { children: [!isAddButton && (_jsx(StyledAvatar, { children: icon !== null && icon !== void 0 ? icon : (customName ? handleAvatarInitials(customName) : null), customLinkBgColor: customLinkBgColor })), isAddButton && _jsx(StyledAddCircleOutlineIcon, {}), _jsx(StyledTypography
25
+ // @ts-ignore
26
+ , __assign({
27
+ // @ts-ignore
28
+ component: 'div' }, { children: customName !== null && customName !== void 0 ? customName : shortName }))] }) })) })));
29
+ };
30
+ export default AppHubCustom;
@@ -0,0 +1,74 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledPaper: import("@emotion/styled").StyledComponent<{
3
+ children?: import("react").ReactNode;
4
+ classes?: Partial<import("@mui/material").PaperClasses> | undefined;
5
+ elevation?: number | undefined;
6
+ square?: boolean | undefined;
7
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
8
+ variant?: "outlined" | "elevation" | undefined;
9
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
10
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
11
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "square" | "elevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
12
+ export declare const StyledBoxWrap: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
13
+ children?: import("react").ReactNode;
14
+ component?: import("react").ElementType<any> | undefined;
15
+ ref?: import("react").Ref<unknown> | undefined;
16
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
17
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
18
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
19
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
20
+ export declare const StyledLink: import("@emotion/styled").StyledComponent<Omit<import("@mui/material").LinkBaseProps, "classes"> & {
21
+ children?: import("react").ReactNode;
22
+ classes?: Partial<import("@mui/material").LinkClasses> | undefined;
23
+ color?: import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Color | import("csstype").Property.Color[] | undefined> | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<import("csstype").Property.Color | import("csstype").Property.Color[] | undefined>);
24
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
25
+ TypographyClasses?: (Partial<import("@mui/material").TypographyClasses> & Partial<import("@mui/material").ClassNameMap<never>>) | undefined;
26
+ underline?: "none" | "always" | "hover" | undefined;
27
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
28
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof import("react").AnchorHTMLAttributes<HTMLAnchorElement>> & {
29
+ ref?: ((instance: HTMLAnchorElement | null) => void) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
30
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "p" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "variant" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "href" | "type" | "download" | "hrefLang" | "media" | "ping" | "rel" | "target" | "referrerPolicy" | "align" | "underline" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "TypographyClasses"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
31
+ export declare const StyledAvatar: import("@emotion/styled").StyledComponent<{
32
+ alt?: string | undefined;
33
+ children?: import("react").ReactNode;
34
+ classes?: Partial<import("@mui/material").AvatarClasses> | undefined;
35
+ imgProps?: (import("react").ImgHTMLAttributes<HTMLImageElement> & {
36
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
37
+ }) | undefined;
38
+ sizes?: string | undefined;
39
+ src?: string | undefined;
40
+ srcSet?: string | undefined;
41
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
42
+ variant?: "circular" | "rounded" | "square" | undefined;
43
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
44
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
45
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "alt" | "imgProps" | "sizes" | "src" | "srcSet" | "sx" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
46
+ customLinkBgColor?: string | undefined;
47
+ }, {}, {}>;
48
+ export declare const StyledAddCircleOutlineIcon: import("@emotion/styled").StyledComponent<{
49
+ children?: import("react").ReactNode;
50
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
51
+ color?: "inherit" | "action" | "disabled" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
52
+ fontSize?: "small" | "inherit" | "large" | "medium" | undefined;
53
+ htmlColor?: string | undefined;
54
+ inheritViewBox?: boolean | undefined;
55
+ shapeRendering?: string | undefined;
56
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
57
+ titleAccess?: string | undefined;
58
+ viewBox?: string | undefined;
59
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cursor" | "direction" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "href" | "name" | "type" | "media" | "target" | "origin" | "max" | "method" | "min" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
60
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
61
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "children" | "sx" | "fontSize" | "shapeRendering" | "viewBox" | "htmlColor" | "inheritViewBox" | "titleAccess"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
62
+ export declare const StyledTypography: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
63
+ align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
64
+ children?: import("react").ReactNode;
65
+ classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
66
+ gutterBottom?: boolean | undefined;
67
+ noWrap?: boolean | undefined;
68
+ paragraph?: boolean | undefined;
69
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
70
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
71
+ variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
72
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
73
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
74
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "align" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,26 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { styled } from '@mui/material/styles';
6
+ import { Paper, Box, Typography, Avatar, Link } from '@mui/material';
7
+ import AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline';
8
+ export var StyledPaper = styled(Paper)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n cursor: pointer;\n width: 100%;\n height: 100%;\n background: transparent;\n border-radius: 10px;\n border: none;\n transition: all 180ms ease;\n\n &:hover {\n background: ", ";\n box-shadow: 0 0 0 1px ", "\n }\n\n &:focus-within {\n background: ", ";\n box-shadow: none;\n }\n"], ["\n cursor: pointer;\n width: 100%;\n height: 100%;\n background: transparent;\n border-radius: 10px;\n border: none;\n transition: all 180ms ease;\n\n &:hover {\n background: ", ";\n box-shadow: 0 0 0 1px ", "\n }\n\n &:focus-within {\n background: ", ";\n box-shadow: none;\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
9
+ ? 'rgba(0,0,0,.3)'
10
+ : '#f5f5f5'; }, function (props) { return props.theme.palette.mode === 'dark'
11
+ ? 'rgba(255,255,255,.2)'
12
+ : '#ccc'; }, function (props) { return props.theme.palette.mode === 'dark'
13
+ ? 'rgba(0,0,0,.3)'
14
+ : '#f5f5f5'; });
15
+ export var StyledBoxWrap = styled(Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: .5rem;\n text-align: center;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: .5rem;\n text-align: center;\n"])));
16
+ export var StyledLink = styled(Link)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 100%;\n display: block;\n border-radius: 10px;\n box-shadow: 0 0 0 0 transparent;\n transition: all 180ms ease;\n\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 4px ", ";\n }\n"], ["\n height: 100%;\n display: block;\n border-radius: 10px;\n box-shadow: 0 0 0 0 transparent;\n transition: all 180ms ease;\n\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 4px ", ";\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
17
+ ? 'rgba(255,255,255,.5)'
18
+ : props.theme.palette.primary.main; });
19
+ export var StyledAvatar = styled(Avatar, {
20
+ shouldForwardProp: function (prop) { return prop !== 'customLinkBgColor'; }
21
+ })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 85px;\n height: 85px;\n font-size: 2rem;\n font-weight: 700;\n background: ", ";\n color: ", ";\n\n .MuiSvgIcon-root {\n height: 2.5rem;\n width: 2.5rem;\n }\n"], ["\n width: 85px;\n height: 85px;\n font-size: 2rem;\n font-weight: 700;\n background: ", ";\n color: ", ";\n\n .MuiSvgIcon-root {\n height: 2.5rem;\n width: 2.5rem;\n }\n"])), function (props) { return props.customLinkBgColor || props.theme.palette.primary.dark; }, function (props) { return props.customLinkBgColor
22
+ ? props.theme.palette.getContrastText(props.customLinkBgColor)
23
+ : props.theme.palette.getContrastText(props.theme.palette.primary.dark); });
24
+ export var StyledAddCircleOutlineIcon = styled(AddCircleOutlineIcon)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 85px;\n height: auto;\n color: #aaa;\n"], ["\n width: 85px;\n height: auto;\n color: #aaa;\n"])));
25
+ export var StyledTypography = styled(Typography)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n font-size: 1rem;\n font-weight: 500;\n line-height: 1.3;\n margin-top: .5rem;\n\n /* Truncate text to 2 lines */\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"], ["\n color: ", ";\n font-size: 1rem;\n font-weight: 500;\n line-height: 1.3;\n margin-top: .5rem;\n\n /* Truncate text to 2 lines */\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])), function (props) { return props.theme.palette.text.primary; });
26
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from 'react';
2
+ export declare const LogoVariants: {
3
+ Default: string;
4
+ Solid: string;
5
+ Outlined: string;
6
+ White: string;
7
+ };
8
+ interface IAppHubItemProps {
9
+ internalName: string;
10
+ shortName: string;
11
+ customName?: string;
12
+ subtitle?: string;
13
+ options?: any;
14
+ url?: string;
15
+ localization?: any;
16
+ }
17
+ declare const AppHubItem: (props: IAppHubItemProps) => ReactElement;
18
+ export default AppHubItem;
@@ -0,0 +1,70 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { ListItemButton, Link, TextField, Tooltip } from '../../../index';
14
+ import LaunchIcon from '@mui/icons-material/Launch';
15
+ import { visuallyHidden } from '@mui/utils';
16
+ import { Constants } from './constants';
17
+ import { defaultMessages } from '../../../lang/en-us';
18
+ import { StyledPaper, StyledBoxWrap, StyledBoxText, StyledAutocomplete, StyledTypography, StyledTypographySubtitle, StyledButton } from './AppHubProductStyles';
19
+ import { useTheme } from '@mui/material';
20
+ // Bug in the naming of the icons on the CDN
21
+ export var LogoVariants = {
22
+ Default: 'icon',
23
+ Solid: 'icon-solid',
24
+ Outlined: 'icon-outlined',
25
+ White: 'icon-white'
26
+ };
27
+ /**
28
+ * Renders an application logo.
29
+ * @param internalName {string | null | undefined } - Internal name of the application.
30
+ * @returns {ReactElement | null } SVG containing the application logo retrieved from the CDN.
31
+ */
32
+ var renderApplicationLogo = function (internalName, logoVariant) {
33
+ if (!internalName) {
34
+ return _jsx(_Fragment, {});
35
+ }
36
+ var urlToIcon = "".concat(Constants.AssetsUrl).concat(internalName, "/logo/latest/").concat(logoVariant !== null && logoVariant !== void 0 ? logoVariant : LogoVariants.Default, ".svg");
37
+ return (_jsx("img", { src: urlToIcon, width: "90", height: "90", alt: internalName !== null && internalName !== void 0 ? internalName : '' }));
38
+ };
39
+ var AppHubItem = function (props) {
40
+ var internalName = props.internalName, shortName = props.shortName, customName = props.customName, url = props.url, subtitle = props.subtitle, localization = props.localization, options = props.options;
41
+ var initialOptions = __assign({}, options);
42
+ var solidLogo = renderApplicationLogo(internalName, LogoVariants.Solid);
43
+ var messages = __assign(__assign({}, defaultMessages), localization);
44
+ return (_jsx(StyledPaper, __assign({ elevation: 0 }, { children: _jsxs(StyledBoxWrap, { children: [solidLogo, _jsxs(StyledBoxText, { children: [subtitle && (_jsx(StyledTypographySubtitle
45
+ // @ts-ignore
46
+ , __assign({
47
+ // @ts-ignore
48
+ component: 'div' }, { children: subtitle }))), _jsx(Tooltip, __assign({ placement: 'top', title: customName !== null && customName !== void 0 ? customName : shortName }, { children: _jsx(StyledTypography
49
+ // @ts-ignore
50
+ , __assign({
51
+ // @ts-ignore
52
+ component: 'div', className: 'appHubCardTitle' }, { children: customName !== null && customName !== void 0 ? customName : shortName })) })), url && (_jsxs(StyledButton, __assign({ href: url,
53
+ // @ts-expect-error
54
+ component: Link, target: '_blank', variant: 'outlined' }, { children: [messages.open, _jsxs("span", __assign({ style: visuallyHidden }, { children: [", ", messages['open-in-new-window']] }))] }))), options && options.length > 0 && (_jsx(StyledAutocomplete, { disablePortal: true, size: 'small', options: options.map(function (option) { return option.applicationName; }),
55
+ // TODO: Add link, icon and screen reader text here:
56
+ renderOption: function (option) {
57
+ // Autocomplete only uses applicationName and we need more properties
58
+ // Careful of this if we do any sorting or grouping in future
59
+ // @ts-expect-error
60
+ var index = option['data-option-index'];
61
+ var optionItem = initialOptions[index];
62
+ var handleClick = function (event) {
63
+ optionItem.onClick && optionItem.onClick(event);
64
+ };
65
+ return (_jsxs(ListItemButton, __assign({ onClick: function (event) { return handleClick(event); } }, { children: [option.key, _jsx(LaunchIcon, { sx: { marginInlineStart: '1rem', transform: useTheme().direction === 'rtl' ? 'scaleX(-1)' : 'none' } }), _jsxs("span", __assign({ style: visuallyHidden }, { children: [", ", messages['open-in-new-window']] }))] }), "".concat(option.key, "_").concat(option.id)));
66
+ }, renderInput: function (params) {
67
+ return _jsx(TextField, __assign({}, params, { placeholder: messages['select-org'] }));
68
+ } }))] })] }) })));
69
+ };
70
+ export default AppHubItem;
@@ -0,0 +1,87 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledPaper: import("@emotion/styled").StyledComponent<{
3
+ children?: import("react").ReactNode;
4
+ classes?: Partial<import("@mui/material").PaperClasses> | undefined;
5
+ elevation?: number | undefined;
6
+ square?: boolean | undefined;
7
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
8
+ variant?: "outlined" | "elevation" | undefined;
9
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
10
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
11
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "square" | "elevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
12
+ export declare const StyledBoxWrap: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
13
+ children?: import("react").ReactNode;
14
+ component?: import("react").ElementType<any> | undefined;
15
+ ref?: import("react").Ref<unknown> | undefined;
16
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
17
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
18
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
19
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
20
+ export declare const StyledBoxText: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
21
+ children?: import("react").ReactNode;
22
+ component?: import("react").ElementType<any> | undefined;
23
+ ref?: import("react").Ref<unknown> | undefined;
24
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
25
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
26
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
27
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
28
+ export declare const StyledTypography: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
29
+ align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
30
+ children?: import("react").ReactNode;
31
+ classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
32
+ gutterBottom?: boolean | undefined;
33
+ noWrap?: boolean | undefined;
34
+ paragraph?: boolean | undefined;
35
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
36
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
37
+ variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
38
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
39
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
40
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "align" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
41
+ export declare const StyledTypographySubtitle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
42
+ align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
43
+ children?: import("react").ReactNode;
44
+ classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
45
+ gutterBottom?: boolean | undefined;
46
+ noWrap?: boolean | undefined;
47
+ paragraph?: boolean | undefined;
48
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
49
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
50
+ variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
51
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
52
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
53
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "align" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
54
+ export declare const StyledButton: import("@emotion/styled").StyledComponent<Pick<{
55
+ children?: import("react").ReactNode;
56
+ classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
57
+ color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
58
+ disabled?: boolean | undefined;
59
+ disableElevation?: boolean | undefined;
60
+ disableFocusRipple?: boolean | undefined;
61
+ endIcon?: import("react").ReactNode;
62
+ fullWidth?: boolean | undefined;
63
+ href?: string | undefined;
64
+ size?: "small" | "large" | "medium" | undefined;
65
+ startIcon?: import("react").ReactNode;
66
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
67
+ variant?: "text" | "outlined" | "contained" | undefined;
68
+ } & Omit<{
69
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
70
+ centerRipple?: boolean | undefined;
71
+ children?: import("react").ReactNode;
72
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
73
+ disabled?: boolean | undefined;
74
+ disableRipple?: boolean | undefined;
75
+ disableTouchRipple?: boolean | undefined;
76
+ focusRipple?: boolean | undefined;
77
+ focusVisibleClassName?: string | undefined;
78
+ LinkComponent?: import("react").ElementType<any> | undefined;
79
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
80
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
81
+ tabIndex?: number | undefined;
82
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
83
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
84
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
85
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
86
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "sx" | "variant" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon">, keyof import("@mui/material/OverridableComponent").CommonProps | "form" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "variant" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value"> & import("react").RefAttributes<HTMLButtonElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
87
+ export declare const StyledAutocomplete: import("@emotion/styled").StyledComponent<import("@mui/material").AutocompleteProps<unknown, boolean | undefined, boolean | undefined, boolean | undefined, "div"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,28 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { styled } from '@mui/material/styles';
6
+ import { Paper, Box, Typography, Autocomplete, Button } from '../../../index';
7
+ export var StyledPaper = styled(Paper)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n background: transparent;\n box-shadow: 0 0 0 1px ", ";\n border-radius: 10px;\n border: none;\n transition: all 180ms ease;\n\n &:hover,\n &:focus-within {\n background: ", ";\n box-shadow: 0 0 0 1px ", "\n }\n"], ["\n width: 100%;\n height: 100%;\n background: transparent;\n box-shadow: 0 0 0 1px ", ";\n border-radius: 10px;\n border: none;\n transition: all 180ms ease;\n\n &:hover,\n &:focus-within {\n background: ", ";\n box-shadow: 0 0 0 1px ", "\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
8
+ ? 'rgba(255,255,255,.1)'
9
+ : '#ddd'; }, function (props) { return props.theme.palette.mode === 'dark'
10
+ ? 'rgba(0,0,0,.3)'
11
+ : '#f5f5f5'; }, function (props) { return props.theme.palette.mode === 'dark'
12
+ ? 'rgba(255,255,255,.2)'
13
+ : '#ccc'; });
14
+ export var StyledBoxWrap = styled(Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n padding: .5rem;\n"], ["\n display: flex;\n flex-direction: row;\n padding: .5rem;\n"])));
15
+ export var StyledBoxText = styled(Box)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-between;\n margin-inline-start: 1rem;\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-between;\n margin-inline-start: 1rem;\n width: 100%;\n"])));
16
+ export var StyledTypography = styled(Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n font-size: 1rem;\n font-weight: 500;\n line-height: 1.3;\n\n /* Truncate text to 2 lines */\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"], ["\n color: ", ";\n font-size: 1rem;\n font-weight: 500;\n line-height: 1.3;\n\n /* Truncate text to 2 lines */\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])), function (props) { return props.theme.palette.text.primary; });
17
+ export var StyledTypographySubtitle = styled(Typography)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n font-size: .85rem;\n font-weight: 400;\n line-height: 1.3;\n"], ["\n color: ", ";\n font-size: .85rem;\n font-weight: 400;\n line-height: 1.3;\n"])), function (props) { return props.theme.palette.text.secondary; });
18
+ export var StyledButton = styled(Button)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: ", ";\n box-shadow: 0 0 0 0 transparent;\n transition: all 180ms ease;\n\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 4px ", ";\n\n & .MuiTouchRipple-root {\n display: none;\n }\n }\n"], ["\n background: ", ";\n box-shadow: 0 0 0 0 transparent;\n transition: all 180ms ease;\n\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 4px ", ";\n\n & .MuiTouchRipple-root {\n display: none;\n }\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
19
+ ? 'rgba(0,0,0,.2)'
20
+ : '#fff'; }, function (props) { return props.theme.palette.mode === 'dark'
21
+ ? 'rgba(255,255,255,.5)'
22
+ : props.theme.palette.primary.main; });
23
+ export var StyledAutocomplete = styled(Autocomplete)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 100%;\n\n .MuiInputBase-root {\n background: ", ";\n }\n\n & input {\n width: 100%;\n }\n\n & input::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n .MuiOutlinedInput-root .MuiAutocomplete-endAdornment {\n left: ", ";\n right: ", ";\n }\n\n /* Handle custom focus state */\n & .MuiInputBase-root {\n box-shadow: 0 0 0 0 transparent;\n transition: all 180ms ease;\n }\n & .MuiInputBase-root.Mui-focused fieldset {\n box-shadow: none !important;\n border: none !important;\n outline: none !important;\n }\n & .MuiInputBase-root.Mui-focused {\n outline: none;\n box-shadow: 0 0 0 4px ", ";\n }\n"], ["\n width: 100%;\n\n .MuiInputBase-root {\n background: ", ";\n }\n\n & input {\n width: 100%;\n }\n\n & input::placeholder {\n color: ", ";\n opacity: 1;\n }\n\n .MuiOutlinedInput-root .MuiAutocomplete-endAdornment {\n left: ", ";\n right: ", ";\n }\n\n /* Handle custom focus state */\n & .MuiInputBase-root {\n box-shadow: 0 0 0 0 transparent;\n transition: all 180ms ease;\n }\n & .MuiInputBase-root.Mui-focused fieldset {\n box-shadow: none !important;\n border: none !important;\n outline: none !important;\n }\n & .MuiInputBase-root.Mui-focused {\n outline: none;\n box-shadow: 0 0 0 4px ", ";\n }\n"])), function (props) { return props.theme.palette.mode === 'dark'
24
+ ? 'rgba(0,0,0,.2)'
25
+ : '#fff'; }, function (props) { return props.theme.palette.text.secondary; }, function (props) { return props.theme.direction === 'rtl' ? '9px' : 'auto'; }, function (props) { return props.theme.direction === 'ltr' ? '9px' : 'auto'; }, function (props) { return props.theme.palette.mode === 'dark'
26
+ ? 'rgba(255,255,255,.5)'
27
+ : props.theme.palette.primary.main; });
28
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
@@ -0,0 +1,54 @@
1
+ /// <reference types="react" />
2
+ export declare const AppHubPanel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const AppHubRow: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
4
+ children?: import("react").ReactNode;
5
+ component?: import("react").ElementType<any> | undefined;
6
+ ref?: import("react").Ref<unknown> | undefined;
7
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
8
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
9
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
11
+ export declare const AppHubTitle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
12
+ align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
13
+ children?: import("react").ReactNode;
14
+ classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
15
+ gutterBottom?: boolean | undefined;
16
+ noWrap?: boolean | undefined;
17
+ paragraph?: boolean | undefined;
18
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
19
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
20
+ variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
21
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
22
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
23
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "align" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
24
+ export declare const AppHubHeader: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
25
+ align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
26
+ children?: import("react").ReactNode;
27
+ classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
28
+ gutterBottom?: boolean | undefined;
29
+ noWrap?: boolean | undefined;
30
+ paragraph?: boolean | undefined;
31
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
32
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2" | undefined;
33
+ variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | "body1" | "body2", string>> | undefined;
34
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
35
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
36
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "align" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
37
+ export declare const StyledPaper: import("@emotion/styled").StyledComponent<{
38
+ children?: import("react").ReactNode;
39
+ classes?: Partial<import("@mui/material").PaperClasses> | undefined;
40
+ elevation?: number | undefined;
41
+ square?: boolean | undefined;
42
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
43
+ variant?: "outlined" | "elevation" | undefined;
44
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
45
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
46
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "square" | "elevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
47
+ export declare const StyledBox: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
48
+ children?: import("react").ReactNode;
49
+ component?: import("react").ElementType<any> | undefined;
50
+ ref?: import("react").Ref<unknown> | undefined;
51
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
52
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
53
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
54
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "ref" | "children" | "sx" | "component" | ("p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint")> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,13 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { styled } from '@mui/material/styles';
6
+ import { Paper, Box, Typography } from '../../../index';
7
+ export var AppHubPanel = styled('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 1rem;\n max-width: 1000px;\n"], ["\n padding: 1rem;\n max-width: 1000px;\n"])));
8
+ export var AppHubRow = styled(Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: 5rem 0 0;\n"], ["\n margin: 5rem 0 0;\n"])));
9
+ export var AppHubTitle = styled(Typography)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 2rem;\n font-weight: 700;\n line-height: 1.3;\n color: ", ";\n margin-bottom: 2rem;\n"], ["\n font-size: 2rem;\n font-weight: 700;\n line-height: 1.3;\n color: ", ";\n margin-bottom: 2rem;\n"])), function (props) { return props.theme.palette.text.primary; });
10
+ export var AppHubHeader = styled(Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: 1rem;\n font-weight: 500;\n color: ", ";\n margin: 0 0 1rem;\n"], ["\n font-size: 1rem;\n font-weight: 500;\n color: ", ";\n margin: 0 0 1rem;\n"])), function (props) { return props.theme.palette.text.secondary; });
11
+ export var StyledPaper = styled(Paper)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n background: #fff;\n"], ["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n background: #fff;\n"])));
12
+ export var StyledBox = styled(Box)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
13
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -0,0 +1,85 @@
1
+ /// <reference types="react" />
2
+ export declare const Constants: Readonly<{
3
+ DataRowType: {
4
+ Product: string;
5
+ CustomLink: string;
6
+ };
7
+ AssetsUrl: "https://uuicdn.learningpool.com/";
8
+ AddButtonOrder: {
9
+ Start: string;
10
+ End: string;
11
+ };
12
+ }>;
13
+ export declare const hubApplications: ({
14
+ applicationId: number;
15
+ applicationName: string;
16
+ shortName: string;
17
+ internalName: string;
18
+ url: string;
19
+ children?: undefined;
20
+ customName?: undefined;
21
+ subtitle?: undefined;
22
+ } | {
23
+ applicationId: number;
24
+ applicationName: string;
25
+ shortName: string;
26
+ internalName: string;
27
+ children: {
28
+ applicationId: number;
29
+ applicationName: string;
30
+ shortName: string;
31
+ internalName: string;
32
+ onClick: () => Window | null;
33
+ }[];
34
+ url?: undefined;
35
+ customName?: undefined;
36
+ subtitle?: undefined;
37
+ } | {
38
+ applicationId: number;
39
+ applicationName: string;
40
+ shortName: string;
41
+ internalName: string;
42
+ customName: string;
43
+ url: string;
44
+ children?: undefined;
45
+ subtitle?: undefined;
46
+ } | {
47
+ applicationId: number;
48
+ applicationName: string;
49
+ shortName: string;
50
+ internalName: string;
51
+ customName: string;
52
+ children: {
53
+ applicationId: number;
54
+ applicationName: string;
55
+ shortName: string;
56
+ internalName: string;
57
+ customName: string;
58
+ onClick: () => Window | null;
59
+ }[];
60
+ url?: undefined;
61
+ subtitle?: undefined;
62
+ } | {
63
+ applicationId: number;
64
+ applicationName: string;
65
+ shortName: string;
66
+ internalName: string;
67
+ customName: string;
68
+ subtitle: string;
69
+ url: string;
70
+ children?: undefined;
71
+ })[];
72
+ export declare const hubCustomLinks: ({
73
+ customName: string;
74
+ url: string;
75
+ customLinkBgColor?: undefined;
76
+ } | {
77
+ customName: string;
78
+ url: string;
79
+ customLinkBgColor: string;
80
+ })[];
81
+ export declare const hubSupportItems: {
82
+ customName: string;
83
+ url: string;
84
+ icon: JSX.Element;
85
+ }[];
@@ -0,0 +1,57 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Home } from '@mui/icons-material';
3
+ export var Constants = Object.freeze({
4
+ DataRowType: {
5
+ Product: 'product',
6
+ CustomLink: 'custom-link'
7
+ },
8
+ AssetsUrl: 'https://uuicdn.learningpool.com/',
9
+ AddButtonOrder: {
10
+ Start: 'start',
11
+ End: 'end'
12
+ }
13
+ });
14
+ export var hubApplications = [
15
+ { applicationId: 1, applicationName: 'Stream LXP', shortName: 'LXP', internalName: 'stream', url: 'https://learningpool.com' },
16
+ {
17
+ applicationId: 2,
18
+ applicationName: 'Stream Analytics',
19
+ shortName: 'Long Wrapping Text Name Truncation Test Stream Analytics',
20
+ internalName: 'analytics',
21
+ children: [
22
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
23
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
24
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
25
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
26
+ { applicationId: 2, applicationName: 'Stream Analytics', shortName: 'Long Wrapping Test Stream Analytics', internalName: 'analytics', onClick: function () { return window.open('http://learningpool.com', '_blank'); } }
27
+ ]
28
+ },
29
+ { applicationId: 3, applicationName: 'Stream Automation', shortName: 'Event Management', internalName: 'automation', customName: 'Waves 1', url: 'https://learningpool.com' },
30
+ {
31
+ applicationId: 7,
32
+ applicationName: 'Stream LMS',
33
+ shortName: 'LMS',
34
+ internalName: 'lms',
35
+ customName: 'Custom Name Test',
36
+ children: [
37
+ { applicationId: 7, applicationName: 'Stream LMS', shortName: 'LMS', internalName: 'lms', customName: 'Custom Name Test', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
38
+ { applicationId: 7, applicationName: 'Stream LMS', shortName: 'LMS', internalName: 'lms', customName: 'Custom Name Test', onClick: function () { return window.open('http://learningpool.com', '_blank'); } },
39
+ { applicationId: 7, applicationName: 'Stream LMS', shortName: 'LMS', internalName: 'lms', customName: 'Custom Name Test', onClick: function () { return window.open('http://learningpool.com', '_blank'); } }
40
+ ]
41
+ },
42
+ { applicationId: 4, applicationName: 'Stream Authoring', shortName: 'Authoring', internalName: 'authoring', customName: '', subtitle: 'Subtitle Test', url: 'https://learningpool.com' }
43
+ ];
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' }
54
+ ];
55
+ export var hubSupportItems = [
56
+ { customName: 'Contact us', url: 'https://learningpool.com', icon: _jsx(Home, {}) }
57
+ ];
package/index.d.ts CHANGED
@@ -129,6 +129,7 @@ export { default as Drawer } from './components/navigation/Drawer/Drawer';
129
129
  export { default as List } from './components/datadisplay/List/List';
130
130
  export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
131
131
  export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
132
+ export { default as AppHub } from './components/stream/AppHub/AppHub';
132
133
  export { default as Header } from './components/landmarks/Header/Header';
133
134
  export { default as MobileNavigation } from './components/navigation/MobileNavigation/MobileNavigation';
134
135
  export { default as VerticalNavigation } from './components/navigation/VerticalNavigation/VerticalNavigation';
package/index.js CHANGED
@@ -140,6 +140,7 @@ export { default as List } from './components/datadisplay/List/List';
140
140
  export { default as SideInSide } from './components/pages/SideInSide/SideInSide';
141
141
  export { default as ErrorPage } from './components/pages/ErrorPage/ErrorPage';
142
142
  // Stream Suite components
143
+ export { default as AppHub } from './components/stream/AppHub/AppHub';
143
144
  export { default as Header } from './components/landmarks/Header/Header';
144
145
  export { default as MobileNavigation } from './components/navigation/MobileNavigation/MobileNavigation';
145
146
  export { default as VerticalNavigation } from './components/navigation/VerticalNavigation/VerticalNavigation';
package/lang/en-us.d.ts CHANGED
@@ -1,9 +1,17 @@
1
1
  export const defaultMessages: {
2
2
  'app-switcher': string;
3
3
  'your-apps': string;
4
+ 'custom-apps': string;
5
+ 'add-custom-link': string;
6
+ 'lp-apps': string;
7
+ questions: string;
4
8
  'back-to': string;
5
9
  'select-an-organisation': string;
6
10
  search: string;
11
+ open: string;
12
+ 'select-org': string;
13
+ 'open-in-new-window': string;
14
+ 'stream-hub-welcome': string;
7
15
  'site-navigation': string;
8
16
  'open-navigation': string;
9
17
  'close-navigation': string;
package/lang/en-us.js CHANGED
@@ -1,10 +1,18 @@
1
1
  export var defaultMessages = {
2
2
  // App Switcher
3
3
  'app-switcher': 'App Switcher',
4
- 'your-apps': 'Your Stream suite apps',
4
+ 'your-apps': 'Your Apps',
5
+ 'custom-apps': 'Explore Custom Apps',
6
+ 'add-custom-link': 'Add Custom Link',
7
+ 'lp-apps': 'Explore Learning Pool Apps',
8
+ questions: 'Questions',
5
9
  'back-to': 'Back',
6
10
  'select-an-organisation': 'Select an organisation',
7
11
  search: 'Search',
12
+ open: 'Open',
13
+ 'select-org': 'Organisation',
14
+ 'open-in-new-window': 'opens in a new window',
15
+ 'stream-hub-welcome': 'Welcome to Stream Home',
8
16
  // Navigation
9
17
  'site-navigation': 'Site navigation',
10
18
  'open-navigation': 'Open navigation',
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "components",
10
10
  "ui"
11
11
  ],
12
- "version": "1.6.10",
12
+ "version": "1.7.1",
13
13
  "private": false,
14
14
  "main": "index.js",
15
15
  "module": "index.js",
@@ -0,0 +1,12 @@
1
+ export interface IApplicationHubProps {
2
+ data?: any;
3
+ localization?: any;
4
+ isPageLayout?: boolean;
5
+ customLinkBgColor?: string;
6
+ }
7
+ export interface IApplicationHubRowProps {
8
+ items: any;
9
+ title: string;
10
+ type?: any;
11
+ addButton?: any;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export type { IVerticalNavigationItemProps, IVerticalNavigationProps } from './components/navigation/VerticalNavigation';
2
2
  export type { IAvatarMenuItemProps, IAvatarPanelProps } from './components/navigation/VerticalNavigationAvatar';
3
3
  export type { IApplication } from './components/stream/AppSwitcher';
4
+ export type { IApplicationHubProps, IApplicationHubRowProps } from './components/stream/AppHub';
@@ -4,6 +4,18 @@
4
4
  * @returns string
5
5
  */
6
6
  export declare const handleAvatarInitials: (avatarName: string) => string;
7
+ /**
8
+ * Accepts a string and returns a color hex code e.g. #000000
9
+ * @param string string - Accepts any string
10
+ * @returns string
11
+ */
12
+ export declare const stringToColor: (string: string) => string;
13
+ /**
14
+ * Accepts a string and sets the background color and initials for an avatar
15
+ * @param string string - Accepts any string
16
+ * @returns string
17
+ */
18
+ export declare const stringAvatar: (name: string) => any;
7
19
  /**
8
20
  * Accepts a number and returns a react-spring style object from useSpring
9
21
  * @param trigger boolean - Trigger to reverse the animation from main component
package/utils/helpers.js CHANGED
@@ -27,6 +27,39 @@ export var handleAvatarInitials = function (avatarName) {
27
27
  }
28
28
  return "".concat(firstInitial).concat(secondInitial);
29
29
  };
30
+ /**
31
+ * Accepts a string and returns a color hex code e.g. #000000
32
+ * @param string string - Accepts any string
33
+ * @returns string
34
+ */
35
+ export var stringToColor = function (string) {
36
+ var hash = 0;
37
+ var i;
38
+ /* eslint-disable no-bitwise */
39
+ for (i = 0; i < string.length; i += 1) {
40
+ hash = string.charCodeAt(i) + ((hash << 5) - hash);
41
+ }
42
+ var color = '#';
43
+ for (i = 0; i < 3; i += 1) {
44
+ var value = (hash >> (i * 8)) & 0xff;
45
+ color += "00".concat(value.toString(16)).slice(-2);
46
+ }
47
+ /* eslint-enable no-bitwise */
48
+ return color;
49
+ };
50
+ /**
51
+ * Accepts a string and sets the background color and initials for an avatar
52
+ * @param string string - Accepts any string
53
+ * @returns string
54
+ */
55
+ export var stringAvatar = function (name) {
56
+ return {
57
+ sx: {
58
+ bgcolor: stringToColor(name)
59
+ },
60
+ children: handleAvatarInitials(name)
61
+ };
62
+ };
30
63
  var STAGGER_ITEMS_DELAY = 70;
31
64
  /**
32
65
  * Accepts a number and returns a react-spring style object from useSpring