@auth0/quantum-product 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/floating-panel/floating-panel.js +64 -0
- package/esm/floating-panel/index.js +1 -0
- package/esm/panel/panel-content/index.js +1 -0
- package/esm/panel/panel-content/panel-content.js +40 -0
- package/esm/panel/panel-footer/index.js +1 -0
- package/esm/panel/panel-footer/panel-footer.js +39 -0
- package/esm/panel/panel-header/index.js +1 -0
- package/esm/panel/panel-header/panel-header.js +61 -0
- package/esm/panel-layout/panel-layout.js +1 -1
- package/floating-panel/floating-panel.d.ts +26 -0
- package/floating-panel/floating-panel.js +90 -0
- package/floating-panel/index.d.ts +2 -0
- package/floating-panel/index.js +5 -0
- package/package.json +1 -1
- package/panel/panel-content/index.d.ts +2 -0
- package/panel/panel-content/index.js +5 -0
- package/panel/panel-content/panel-content.d.ts +7 -0
- package/panel/panel-content/panel-content.js +66 -0
- package/panel/panel-footer/index.d.ts +2 -0
- package/panel/panel-footer/index.js +5 -0
- package/panel/panel-footer/panel-footer.d.ts +11 -0
- package/panel/panel-footer/panel-footer.js +65 -0
- package/panel/panel-header/index.d.ts +2 -0
- package/panel/panel-header/index.js +5 -0
- package/panel/panel-header/panel-header.d.ts +12 -0
- package/panel/panel-header/panel-header.js +87 -0
- package/panel-layout/panel/panel.d.ts +1 -3
- package/panel-layout/panel-layout.js +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
import { styled } from '../styled';
|
|
25
|
+
import { IconButton } from '../icon-button';
|
|
26
|
+
import { XIcon } from '../icon';
|
|
27
|
+
import { Drawer } from '@mui/material';
|
|
28
|
+
export var floatingPanelComponentName = 'QuantumFloatingPanel';
|
|
29
|
+
var CloseButton = function (_a) {
|
|
30
|
+
var onCloseButtonClick = _a.onCloseButtonClick;
|
|
31
|
+
return (React.createElement(StyledIconButton, { variant: "outlined", shape: "circular", size: "small", onClick: onCloseButtonClick },
|
|
32
|
+
React.createElement(XIcon, null)));
|
|
33
|
+
};
|
|
34
|
+
var StyledIconButton = styled(IconButton)(function (_a) {
|
|
35
|
+
var theme = _a.theme;
|
|
36
|
+
return ({
|
|
37
|
+
position: 'absolute',
|
|
38
|
+
top: theme.spacing(3),
|
|
39
|
+
right: theme.spacing(3),
|
|
40
|
+
zIndex: theme.zIndex.drawer,
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
var SubContainer = styled('div')({
|
|
44
|
+
display: 'flex',
|
|
45
|
+
width: 0,
|
|
46
|
+
});
|
|
47
|
+
export var Root = styled(Drawer, { name: floatingPanelComponentName, slot: 'Root' })(function (_a) {
|
|
48
|
+
var _b;
|
|
49
|
+
var theme = _a.theme, panelWidth = _a.panelWidth, elevated = _a.elevated, topOffset = _a.topOffset, anchor = _a.anchor;
|
|
50
|
+
var boxShadowStyle = elevated ? theme.shadows[2] : 'none';
|
|
51
|
+
var topOffsetStyle = topOffset ? (topOffset === 'appbar' ? 56 : topOffset) : 0;
|
|
52
|
+
var borderStyle = "1px solid ".concat(theme.tokens.color_border_default);
|
|
53
|
+
var borderPositionStyle = anchor === 'left' ? { borderRight: borderStyle } : { borderLeft: borderStyle };
|
|
54
|
+
return _b = {},
|
|
55
|
+
_b["& .MuiPaper-root"] = __assign({ width: "".concat(panelWidth, "px"), top: topOffsetStyle, bottom: 0, height: 'auto', boxShadow: boxShadowStyle, background: theme.tokens.color_bg_layer_elevated }, borderPositionStyle),
|
|
56
|
+
_b;
|
|
57
|
+
});
|
|
58
|
+
export var FloatingPanel = React.forwardRef(function (_a) {
|
|
59
|
+
var _b = _a.panelWidth, panelWidth = _b === void 0 ? 360 : _b, _c = _a.closeOnOutsideClick, closeOnOutsideClick = _c === void 0 ? true : _c, _d = _a.showCloseButton, showCloseButton = _d === void 0 ? true : _d, open = _a.open, _e = _a.elevated, elevated = _e === void 0 ? true : _e, topOffset = _a.topOffset, ref = _a.ref, position = _a.position, onClose = _a.onClose, children = _a.children, sx = _a.sx, rootProps = __rest(_a, ["panelWidth", "closeOnOutsideClick", "showCloseButton", "open", "elevated", "topOffset", "ref", "position", "onClose", "children", "sx"]);
|
|
60
|
+
return (React.createElement(Root, __assign({ ref: ref, panelWidth: panelWidth, open: open, anchor: position, onClose: onClose, elevated: elevated, topOffset: topOffset, hideBackdrop: !closeOnOutsideClick, sx: sx, BackdropProps: { invisible: true } }, rootProps),
|
|
61
|
+
children,
|
|
62
|
+
showCloseButton && (React.createElement(SubContainer, null,
|
|
63
|
+
React.createElement(CloseButton, { onCloseButtonClick: onClose })))));
|
|
64
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FloatingPanel } from './floating-panel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PanelContent } from './panel-content';
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
import { styled } from '../../styled';
|
|
25
|
+
export var panelContentComponentName = 'QuantumPanelContent';
|
|
26
|
+
var Root = styled('div', {
|
|
27
|
+
name: panelContentComponentName,
|
|
28
|
+
slot: 'Root',
|
|
29
|
+
})(function (_a) {
|
|
30
|
+
var theme = _a.theme;
|
|
31
|
+
return ({
|
|
32
|
+
overflowY: 'auto',
|
|
33
|
+
height: "calc(100% - ".concat(theme.spacing(9), ")"),
|
|
34
|
+
padding: theme.spacing(3),
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
export var PanelContent = React.forwardRef(function (_a) {
|
|
38
|
+
var children = _a.children, ref = _a.ref, rootProps = __rest(_a, ["children", "ref"]);
|
|
39
|
+
return (React.createElement(Root, __assign({ ref: ref }, rootProps), children));
|
|
40
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PanelFooter } from './panel-footer';
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
import { styled } from '../../styled';
|
|
25
|
+
export var panelComponentName = 'QuantumPanelFooter';
|
|
26
|
+
export var Root = styled('div', { name: panelComponentName, slot: 'Root' })(function (_a) {
|
|
27
|
+
var theme = _a.theme;
|
|
28
|
+
return ({
|
|
29
|
+
display: 'flex',
|
|
30
|
+
padding: theme.spacing(3),
|
|
31
|
+
alignItems: 'flex-start',
|
|
32
|
+
borderTop: "1px solid ".concat(theme.tokens.color_border_default),
|
|
33
|
+
justifyContent: 'space-between',
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
export var PanelFooter = React.forwardRef(function (_a) {
|
|
37
|
+
var children = _a.children, ref = _a.ref, sx = _a.sx, rootProps = __rest(_a, ["children", "ref", "sx"]);
|
|
38
|
+
return (React.createElement(Root, __assign({ ref: ref, sx: sx }, rootProps), children));
|
|
39
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PanelHeader } from './panel-header';
|
|
@@ -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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
import { styled } from '../../styled';
|
|
25
|
+
export var panelHeaderComponentName = 'QuantumPanelHeader';
|
|
26
|
+
export var Root = styled('div', { name: panelHeaderComponentName, slot: 'Root' })(function (_a) {
|
|
27
|
+
var theme = _a.theme;
|
|
28
|
+
return ({
|
|
29
|
+
display: 'flex',
|
|
30
|
+
padding: theme.spacing(3),
|
|
31
|
+
paddingBottom: theme.spacing(2),
|
|
32
|
+
paddingRight: theme.spacing(7),
|
|
33
|
+
alignItems: 'flex-start',
|
|
34
|
+
minHeight: theme.spacing(7),
|
|
35
|
+
justifyContent: 'space-between',
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
var PanelTitle = styled('div', { name: panelHeaderComponentName, slot: 'Title' })(function (_a) {
|
|
39
|
+
var theme = _a.theme;
|
|
40
|
+
return ({
|
|
41
|
+
color: theme.tokens.color_fg_bold,
|
|
42
|
+
fontSize: '20px',
|
|
43
|
+
fontWeight: 500,
|
|
44
|
+
fontFamily: 'Aeonik',
|
|
45
|
+
lineHeight: theme.spacing(3.5),
|
|
46
|
+
minHeight: theme.spacing(3.5),
|
|
47
|
+
letterSpacing: '0.4px',
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var Container = styled('div', { name: panelHeaderComponentName, slot: 'Container' })(function (_a) {
|
|
51
|
+
var theme = _a.theme;
|
|
52
|
+
return ({
|
|
53
|
+
display: 'flex',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
minHeight: theme.spacing(3.5),
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
export var PanelHeader = React.forwardRef(function (_a) {
|
|
59
|
+
var children = _a.children, title = _a.title, sx = _a.sx, ref = _a.ref, rootProps = __rest(_a, ["children", "title", "sx", "ref"]);
|
|
60
|
+
return (React.createElement(Root, __assign({ ref: ref, sx: sx }, rootProps), title ? React.createElement(PanelTitle, null, title) : React.createElement(Container, null, children)));
|
|
61
|
+
});
|
|
@@ -33,7 +33,7 @@ var LeftPanel = styled(Panel, { name: panelsLayoutComponentName, slot: 'LeftPane
|
|
|
33
33
|
});
|
|
34
34
|
var Root = styled(Grid, { name: panelsLayoutComponentName, slot: 'Root' })({
|
|
35
35
|
display: 'flex',
|
|
36
|
-
height: '
|
|
36
|
+
height: '-webkit-fill-available',
|
|
37
37
|
});
|
|
38
38
|
export var PanelLayout = React.forwardRef(function (props, ref) {
|
|
39
39
|
var startPanel = props.startPanel, endPanel = props.endPanel, children = props.children, rootProps = __rest(props, ["startPanel", "endPanel", "children"]);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IStyledComponentProps } from '../styled';
|
|
3
|
+
import { Drawer } from '@mui/material';
|
|
4
|
+
import { SxProps } from '@mui/system';
|
|
5
|
+
import { ITheme } from '../theme';
|
|
6
|
+
export declare const floatingPanelComponentName = "QuantumFloatingPanel";
|
|
7
|
+
export interface IFloatingPanelOwnerState {
|
|
8
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
9
|
+
panelWidth?: number;
|
|
10
|
+
position: 'left' | 'right';
|
|
11
|
+
sx?: SxProps<ITheme>;
|
|
12
|
+
closeOnOutsideClick?: boolean;
|
|
13
|
+
showCloseButton?: boolean;
|
|
14
|
+
hideBackdrop?: boolean;
|
|
15
|
+
topOffset?: 'appbar' | number;
|
|
16
|
+
elevated?: boolean;
|
|
17
|
+
onClose?: (() => void) | undefined;
|
|
18
|
+
open: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare type IFloatingPanelProps = IStyledComponentProps<{
|
|
21
|
+
props: IFloatingPanelOwnerState;
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
defaultComponent: 'div';
|
|
24
|
+
}>;
|
|
25
|
+
export declare const Root: import("styled-components").StyledComponent<typeof Drawer, ITheme, import("@mui/system").MUIStyledCommonProps<ITheme> & IFloatingPanelOwnerState & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof IFloatingPanelOwnerState> & import("../styled").IStyledCommonProps, never>;
|
|
26
|
+
export declare const FloatingPanel: React.ForwardRefExoticComponent<Pick<IFloatingPanelProps, "slot" | "style" | "title" | "color" | "hidden" | "open" | "position" | "translate" | "className" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "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" | "component" | "hideBackdrop" | "onClose" | "as" | "panelWidth" | "closeOnOutsideClick" | "showCloseButton" | "topOffset" | "elevated"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.FloatingPanel = exports.Root = exports.floatingPanelComponentName = void 0;
|
|
49
|
+
var React = __importStar(require("react"));
|
|
50
|
+
var styled_1 = require("../styled");
|
|
51
|
+
var icon_button_1 = require("../icon-button");
|
|
52
|
+
var icon_1 = require("../icon");
|
|
53
|
+
var material_1 = require("@mui/material");
|
|
54
|
+
exports.floatingPanelComponentName = 'QuantumFloatingPanel';
|
|
55
|
+
var CloseButton = function (_a) {
|
|
56
|
+
var onCloseButtonClick = _a.onCloseButtonClick;
|
|
57
|
+
return (React.createElement(StyledIconButton, { variant: "outlined", shape: "circular", size: "small", onClick: onCloseButtonClick },
|
|
58
|
+
React.createElement(icon_1.XIcon, null)));
|
|
59
|
+
};
|
|
60
|
+
var StyledIconButton = (0, styled_1.styled)(icon_button_1.IconButton)(function (_a) {
|
|
61
|
+
var theme = _a.theme;
|
|
62
|
+
return ({
|
|
63
|
+
position: 'absolute',
|
|
64
|
+
top: theme.spacing(3),
|
|
65
|
+
right: theme.spacing(3),
|
|
66
|
+
zIndex: theme.zIndex.drawer,
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
var SubContainer = (0, styled_1.styled)('div')({
|
|
70
|
+
display: 'flex',
|
|
71
|
+
width: 0,
|
|
72
|
+
});
|
|
73
|
+
exports.Root = (0, styled_1.styled)(material_1.Drawer, { name: exports.floatingPanelComponentName, slot: 'Root' })(function (_a) {
|
|
74
|
+
var _b;
|
|
75
|
+
var theme = _a.theme, panelWidth = _a.panelWidth, elevated = _a.elevated, topOffset = _a.topOffset, anchor = _a.anchor;
|
|
76
|
+
var boxShadowStyle = elevated ? theme.shadows[2] : 'none';
|
|
77
|
+
var topOffsetStyle = topOffset ? (topOffset === 'appbar' ? 56 : topOffset) : 0;
|
|
78
|
+
var borderStyle = "1px solid ".concat(theme.tokens.color_border_default);
|
|
79
|
+
var borderPositionStyle = anchor === 'left' ? { borderRight: borderStyle } : { borderLeft: borderStyle };
|
|
80
|
+
return _b = {},
|
|
81
|
+
_b["& .MuiPaper-root"] = __assign({ width: "".concat(panelWidth, "px"), top: topOffsetStyle, bottom: 0, height: 'auto', boxShadow: boxShadowStyle, background: theme.tokens.color_bg_layer_elevated }, borderPositionStyle),
|
|
82
|
+
_b;
|
|
83
|
+
});
|
|
84
|
+
exports.FloatingPanel = React.forwardRef(function (_a) {
|
|
85
|
+
var _b = _a.panelWidth, panelWidth = _b === void 0 ? 360 : _b, _c = _a.closeOnOutsideClick, closeOnOutsideClick = _c === void 0 ? true : _c, _d = _a.showCloseButton, showCloseButton = _d === void 0 ? true : _d, open = _a.open, _e = _a.elevated, elevated = _e === void 0 ? true : _e, topOffset = _a.topOffset, ref = _a.ref, position = _a.position, onClose = _a.onClose, children = _a.children, sx = _a.sx, rootProps = __rest(_a, ["panelWidth", "closeOnOutsideClick", "showCloseButton", "open", "elevated", "topOffset", "ref", "position", "onClose", "children", "sx"]);
|
|
86
|
+
return (React.createElement(exports.Root, __assign({ ref: ref, panelWidth: panelWidth, open: open, anchor: position, onClose: onClose, elevated: elevated, topOffset: topOffset, hideBackdrop: !closeOnOutsideClick, sx: sx, BackdropProps: { invisible: true } }, rootProps),
|
|
87
|
+
children,
|
|
88
|
+
showCloseButton && (React.createElement(SubContainer, null,
|
|
89
|
+
React.createElement(CloseButton, { onCloseButtonClick: onClose })))));
|
|
90
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FloatingPanel = void 0;
|
|
4
|
+
var floating_panel_1 = require("./floating-panel");
|
|
5
|
+
Object.defineProperty(exports, "FloatingPanel", { enumerable: true, get: function () { return floating_panel_1.FloatingPanel; } });
|
package/package.json
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PanelContent = void 0;
|
|
4
|
+
var panel_content_1 = require("./panel-content");
|
|
5
|
+
Object.defineProperty(exports, "PanelContent", { enumerable: true, get: function () { return panel_content_1.PanelContent; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const panelContentComponentName = "QuantumPanelContent";
|
|
3
|
+
export interface IPanelContentProps {
|
|
4
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const PanelContent: React.ForwardRefExoticComponent<Pick<IPanelContentProps, "children"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.PanelContent = exports.panelContentComponentName = void 0;
|
|
49
|
+
var React = __importStar(require("react"));
|
|
50
|
+
var styled_1 = require("../../styled");
|
|
51
|
+
exports.panelContentComponentName = 'QuantumPanelContent';
|
|
52
|
+
var Root = (0, styled_1.styled)('div', {
|
|
53
|
+
name: exports.panelContentComponentName,
|
|
54
|
+
slot: 'Root',
|
|
55
|
+
})(function (_a) {
|
|
56
|
+
var theme = _a.theme;
|
|
57
|
+
return ({
|
|
58
|
+
overflowY: 'auto',
|
|
59
|
+
height: "calc(100% - ".concat(theme.spacing(9), ")"),
|
|
60
|
+
padding: theme.spacing(3),
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
exports.PanelContent = React.forwardRef(function (_a) {
|
|
64
|
+
var children = _a.children, ref = _a.ref, rootProps = __rest(_a, ["children", "ref"]);
|
|
65
|
+
return (React.createElement(Root, __assign({ ref: ref }, rootProps), children));
|
|
66
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PanelFooter = void 0;
|
|
4
|
+
var panel_footer_1 = require("./panel-footer");
|
|
5
|
+
Object.defineProperty(exports, "PanelFooter", { enumerable: true, get: function () { return panel_footer_1.PanelFooter; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/system';
|
|
3
|
+
import { ITheme } from '../../theme';
|
|
4
|
+
export declare const panelComponentName = "QuantumPanelFooter";
|
|
5
|
+
export interface IPanelFooterProps {
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
sx?: SxProps<ITheme>;
|
|
9
|
+
}
|
|
10
|
+
export declare const Root: import("styled-components").StyledComponent<"div", ITheme, import("@mui/system").MUIStyledCommonProps<ITheme>, never>;
|
|
11
|
+
export declare const PanelFooter: React.ForwardRefExoticComponent<Pick<IPanelFooterProps, "children" | "sx"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.PanelFooter = exports.Root = exports.panelComponentName = void 0;
|
|
49
|
+
var React = __importStar(require("react"));
|
|
50
|
+
var styled_1 = require("../../styled");
|
|
51
|
+
exports.panelComponentName = 'QuantumPanelFooter';
|
|
52
|
+
exports.Root = (0, styled_1.styled)('div', { name: exports.panelComponentName, slot: 'Root' })(function (_a) {
|
|
53
|
+
var theme = _a.theme;
|
|
54
|
+
return ({
|
|
55
|
+
display: 'flex',
|
|
56
|
+
padding: theme.spacing(3),
|
|
57
|
+
alignItems: 'flex-start',
|
|
58
|
+
borderTop: "1px solid ".concat(theme.tokens.color_border_default),
|
|
59
|
+
justifyContent: 'space-between',
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
exports.PanelFooter = React.forwardRef(function (_a) {
|
|
63
|
+
var children = _a.children, ref = _a.ref, sx = _a.sx, rootProps = __rest(_a, ["children", "ref", "sx"]);
|
|
64
|
+
return (React.createElement(exports.Root, __assign({ ref: ref, sx: sx }, rootProps), children));
|
|
65
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PanelHeader = void 0;
|
|
4
|
+
var panel_header_1 = require("./panel-header");
|
|
5
|
+
Object.defineProperty(exports, "PanelHeader", { enumerable: true, get: function () { return panel_header_1.PanelHeader; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/system';
|
|
3
|
+
import { ITheme } from '../../theme';
|
|
4
|
+
export declare const panelHeaderComponentName = "QuantumPanelHeader";
|
|
5
|
+
export interface IPanelHeaderProps {
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
title?: string;
|
|
9
|
+
sx?: SxProps<ITheme>;
|
|
10
|
+
}
|
|
11
|
+
export declare const Root: import("styled-components").StyledComponent<"div", ITheme, import("@mui/system").MUIStyledCommonProps<ITheme>, never>;
|
|
12
|
+
export declare const PanelHeader: React.ForwardRefExoticComponent<Pick<IPanelHeaderProps, "title" | "children" | "sx"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.PanelHeader = exports.Root = exports.panelHeaderComponentName = void 0;
|
|
49
|
+
var React = __importStar(require("react"));
|
|
50
|
+
var styled_1 = require("../../styled");
|
|
51
|
+
exports.panelHeaderComponentName = 'QuantumPanelHeader';
|
|
52
|
+
exports.Root = (0, styled_1.styled)('div', { name: exports.panelHeaderComponentName, slot: 'Root' })(function (_a) {
|
|
53
|
+
var theme = _a.theme;
|
|
54
|
+
return ({
|
|
55
|
+
display: 'flex',
|
|
56
|
+
padding: theme.spacing(3),
|
|
57
|
+
paddingBottom: theme.spacing(2),
|
|
58
|
+
paddingRight: theme.spacing(7),
|
|
59
|
+
alignItems: 'flex-start',
|
|
60
|
+
minHeight: theme.spacing(7),
|
|
61
|
+
justifyContent: 'space-between',
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
var PanelTitle = (0, styled_1.styled)('div', { name: exports.panelHeaderComponentName, slot: 'Title' })(function (_a) {
|
|
65
|
+
var theme = _a.theme;
|
|
66
|
+
return ({
|
|
67
|
+
color: theme.tokens.color_fg_bold,
|
|
68
|
+
fontSize: '20px',
|
|
69
|
+
fontWeight: 500,
|
|
70
|
+
fontFamily: 'Aeonik',
|
|
71
|
+
lineHeight: theme.spacing(3.5),
|
|
72
|
+
minHeight: theme.spacing(3.5),
|
|
73
|
+
letterSpacing: '0.4px',
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
var Container = (0, styled_1.styled)('div', { name: exports.panelHeaderComponentName, slot: 'Container' })(function (_a) {
|
|
77
|
+
var theme = _a.theme;
|
|
78
|
+
return ({
|
|
79
|
+
display: 'flex',
|
|
80
|
+
alignItems: 'center',
|
|
81
|
+
minHeight: theme.spacing(3.5),
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
exports.PanelHeader = React.forwardRef(function (_a) {
|
|
85
|
+
var children = _a.children, title = _a.title, sx = _a.sx, ref = _a.ref, rootProps = __rest(_a, ["children", "title", "sx", "ref"]);
|
|
86
|
+
return (React.createElement(exports.Root, __assign({ ref: ref, sx: sx }, rootProps), title ? React.createElement(PanelTitle, null, title) : React.createElement(Container, null, children)));
|
|
87
|
+
});
|
|
@@ -4,7 +4,5 @@ export interface IPanelProps extends GridProps {
|
|
|
4
4
|
position?: any;
|
|
5
5
|
children?: React.ReactChild | React.ReactChild[];
|
|
6
6
|
}
|
|
7
|
-
export declare const Root: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").GridTypeMap<{}, "div">>, import("../..").ITheme, import("@mui/system").MUIStyledCommonProps<import("../..").ITheme> &
|
|
8
|
-
position: 'start' | 'end' | undefined;
|
|
9
|
-
}, never>;
|
|
7
|
+
export declare const Root: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").GridTypeMap<{}, "div">>, import("../..").ITheme, import("@mui/system").MUIStyledCommonProps<import("../..").ITheme> & IPanelProps, never>;
|
|
10
8
|
export declare const Panel: React.ForwardRefExoticComponent<Pick<IPanelProps, "p" | "slot" | "style" | "title" | "color" | "border" | "boxShadow" | "hidden" | "left" | "right" | "bottom" | "top" | "flex" | "wrap" | "padding" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "direction" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "columns" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "typography" | "spacing" | "className" | "classes" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "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" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "container" | "xs" | "sm" | "md" | "lg" | "xl" | "columnSpacing" | "item" | "rowSpacing" | "zeroMinWidth"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -59,7 +59,7 @@ var LeftPanel = (0, styled_1.styled)(panel_1.Panel, { name: panelsLayoutComponen
|
|
|
59
59
|
});
|
|
60
60
|
var Root = (0, styled_1.styled)(material_1.Grid, { name: panelsLayoutComponentName, slot: 'Root' })({
|
|
61
61
|
display: 'flex',
|
|
62
|
-
height: '
|
|
62
|
+
height: '-webkit-fill-available',
|
|
63
63
|
});
|
|
64
64
|
exports.PanelLayout = React.forwardRef(function (props, ref) {
|
|
65
65
|
var startPanel = props.startPanel, endPanel = props.endPanel, children = props.children, rootProps = __rest(props, ["startPanel", "endPanel", "children"]);
|