@astral/ui 0.41.3 → 0.43.0
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/Autocomplete/Autocomplete.d.ts +9 -1
- package/Autocomplete/Autocomplete.js +4 -2
- package/Autocomplete/constants.d.ts +1 -0
- package/Autocomplete/constants.js +2 -1
- package/Autocomplete/index.d.ts +0 -1
- package/Autocomplete/index.js +0 -1
- package/Chevron/Chevron.d.ts +7 -0
- package/Chevron/Chevron.js +18 -0
- package/Chevron/index.d.ts +1 -0
- package/{ListProvider → Chevron}/index.js +1 -2
- package/Chevron/styles.d.ts +18 -0
- package/Chevron/styles.js +20 -0
- package/CircularProgress/CircularProgress.d.ts +19 -2
- package/CircularProgress/CircularProgress.js +2 -5
- package/CircularProgress/index.d.ts +0 -1
- package/CircularProgress/index.js +0 -1
- package/Collapse/Collapse.d.ts +3 -2
- package/Collapse/Collapse.js +17 -2
- package/Collapse/styles.d.ts +3 -0
- package/Collapse/styles.js +11 -0
- package/DropdownButton/DropdownButton.js +3 -3
- package/IconButton/IconButton.js +2 -2
- package/IconButton/{styled.d.ts → styles.d.ts} +0 -0
- package/IconButton/{styled.js → styles.js} +0 -0
- package/List/List.d.ts +1 -1
- package/List/List.js +3 -22
- package/List/{styled.d.ts → styles.d.ts} +0 -0
- package/List/styles.js +11 -0
- package/ListItemText/ListItemText.js +2 -5
- package/ListItemText/{styled.d.ts → styles.d.ts} +3 -3
- package/ListItemText/{styled.js → styles.js} +1 -10
- package/OverflowTypography/OverflowTypography.d.ts +24 -0
- package/OverflowTypography/OverflowTypography.js +40 -0
- package/OverflowTypography/hooks/useOverflowed/index.d.ts +1 -0
- package/OverflowTypography/hooks/useOverflowed/index.js +17 -0
- package/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +5 -0
- package/OverflowTypography/hooks/useOverflowed/useOverflowed.js +30 -0
- package/OverflowTypography/index.d.ts +1 -0
- package/OverflowTypography/index.js +17 -0
- package/OverflowTypography/styles.d.ts +17 -0
- package/OverflowTypography/styles.js +16 -0
- package/Profile/Profile.js +2 -1
- package/Profile/styled.d.ts +0 -18
- package/Profile/styled.js +2 -13
- package/Tooltip/Tooltip.d.ts +10 -2
- package/Tooltip/styled.d.ts +1 -1
- package/Tooltip/types.d.ts +0 -4
- package/esm/Autocomplete/Autocomplete.d.ts +9 -1
- package/esm/Autocomplete/Autocomplete.js +4 -2
- package/esm/Autocomplete/constants.d.ts +1 -0
- package/esm/Autocomplete/constants.js +1 -0
- package/esm/Autocomplete/index.d.ts +0 -1
- package/esm/Autocomplete/index.js +0 -1
- package/esm/Chevron/Chevron.d.ts +7 -0
- package/esm/Chevron/Chevron.js +14 -0
- package/esm/Chevron/index.d.ts +1 -0
- package/esm/Chevron/index.js +1 -0
- package/esm/Chevron/styles.d.ts +18 -0
- package/esm/Chevron/styles.js +17 -0
- package/esm/CircularProgress/CircularProgress.d.ts +19 -2
- package/esm/CircularProgress/CircularProgress.js +1 -1
- package/esm/CircularProgress/index.d.ts +0 -1
- package/esm/CircularProgress/index.js +0 -1
- package/esm/Collapse/Collapse.d.ts +3 -2
- package/esm/Collapse/Collapse.js +16 -2
- package/esm/Collapse/styles.d.ts +3 -0
- package/esm/Collapse/styles.js +8 -0
- package/esm/DropdownButton/DropdownButton.js +3 -3
- package/esm/IconButton/IconButton.js +1 -1
- package/esm/IconButton/{styled.d.ts → styles.d.ts} +0 -0
- package/esm/IconButton/{styled.js → styles.js} +0 -0
- package/esm/List/List.d.ts +1 -1
- package/esm/List/List.js +3 -19
- package/esm/List/{styled.d.ts → styles.d.ts} +0 -0
- package/esm/List/styles.js +8 -0
- package/esm/ListItemText/ListItemText.js +2 -5
- package/esm/ListItemText/{styled.d.ts → styles.d.ts} +3 -3
- package/esm/ListItemText/{styled.js → styles.js} +1 -10
- package/esm/OverflowTypography/OverflowTypography.d.ts +24 -0
- package/esm/OverflowTypography/OverflowTypography.js +37 -0
- package/esm/OverflowTypography/hooks/useOverflowed/index.d.ts +1 -0
- package/esm/OverflowTypography/hooks/useOverflowed/index.js +1 -0
- package/esm/OverflowTypography/hooks/useOverflowed/useOverflowed.d.ts +5 -0
- package/esm/OverflowTypography/hooks/useOverflowed/useOverflowed.js +23 -0
- package/esm/OverflowTypography/index.d.ts +1 -0
- package/esm/OverflowTypography/index.js +1 -0
- package/esm/OverflowTypography/styles.d.ts +17 -0
- package/esm/OverflowTypography/styles.js +13 -0
- package/esm/Profile/Profile.js +3 -2
- package/esm/Profile/styled.d.ts +0 -18
- package/esm/Profile/styled.js +1 -12
- package/esm/Tooltip/Tooltip.d.ts +10 -2
- package/esm/Tooltip/styled.d.ts +1 -1
- package/esm/Tooltip/types.d.ts +0 -4
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/types.d.ts +1 -0
- package/esm/{Autocomplete/types.js → types.js} +0 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/types.d.ts +1 -0
- package/{Autocomplete/types.js → types.js} +0 -0
- package/Autocomplete/types.d.ts +0 -7
- package/CircularProgress/types.d.ts +0 -11
- package/CircularProgress/types.js +0 -2
- package/DropdownButton/styles.d.ts +0 -4
- package/DropdownButton/styles.js +0 -20
- package/List/styled.js +0 -17
- package/ListProvider/ListProvider.d.ts +0 -7
- package/ListProvider/ListProvider.js +0 -6
- package/ListProvider/index.d.ts +0 -2
- package/ListProvider/types.d.ts +0 -3
- package/ListProvider/types.js +0 -2
- package/esm/Autocomplete/types.d.ts +0 -7
- package/esm/CircularProgress/types.d.ts +0 -11
- package/esm/CircularProgress/types.js +0 -1
- package/esm/DropdownButton/styles.d.ts +0 -4
- package/esm/DropdownButton/styles.js +0 -17
- package/esm/List/styled.js +0 -14
- package/esm/ListProvider/ListProvider.d.ts +0 -7
- package/esm/ListProvider/ListProvider.js +0 -3
- package/esm/ListProvider/index.d.ts +0 -2
- package/esm/ListProvider/index.js +0 -2
- package/esm/ListProvider/types.d.ts +0 -3
- package/esm/ListProvider/types.js +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./OverflowTypography"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OverflowedProps } from './OverflowTypography';
|
|
3
|
+
export declare const OverflowTypographyWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
4
|
+
align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
|
7
|
+
gutterBottom?: boolean | undefined;
|
|
8
|
+
noWrap?: boolean | undefined;
|
|
9
|
+
paragraph?: boolean | undefined;
|
|
10
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
11
|
+
variant?: "inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div" | undefined;
|
|
12
|
+
variantMapping?: Partial<Record<"inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div", string>> | undefined;
|
|
13
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
14
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
15
|
+
}, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "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" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
} & Required<OverflowedProps>, {}, {}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.OverflowTypographyWrapper = void 0;
|
|
8
|
+
var styles_1 = require("../styles");
|
|
9
|
+
var Typography_1 = require("../Typography");
|
|
10
|
+
exports.OverflowTypographyWrapper = (0, styles_1.styled)(Typography_1.Typography, {
|
|
11
|
+
shouldForwardProp: function (name) { return name !== 'rowsCount'; },
|
|
12
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n"], ["\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n"])), function (_a) {
|
|
13
|
+
var rowsCount = _a.rowsCount;
|
|
14
|
+
return rowsCount;
|
|
15
|
+
});
|
|
16
|
+
var templateObject_1;
|
package/Profile/Profile.js
CHANGED
|
@@ -16,10 +16,11 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
16
16
|
var react_1 = require("react");
|
|
17
17
|
var material_1 = require("@mui/material");
|
|
18
18
|
var hooks_1 = require("../hooks");
|
|
19
|
+
var Chevron_1 = require("../Chevron");
|
|
19
20
|
var styled_1 = require("./styled");
|
|
20
21
|
exports.Profile = (0, react_1.forwardRef)(function (props, ref) {
|
|
21
22
|
var displayName = props.displayName, annotation = props.annotation, _a = props.avatar, avatar = _a === void 0 ? {} : _a, Menu = props.menu;
|
|
22
23
|
var _b = (0, hooks_1.useMenu)(), open = _b.open, anchorRef = _b.anchorRef, handleOpenMenu = _b.handleOpenMenu, handleCloseMenu = _b.handleCloseMenu;
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, __assign({ ref: ref, onClickAway: handleCloseMenu }, { children: (0, jsx_runtime_1.jsxs)(styled_1.ProfileRoot, __assign({ ref: anchorRef, variant: "text", onClick: handleOpenMenu }, { children: [(0, jsx_runtime_1.jsxs)(styled_1.ProfileUser, { children: [(0, jsx_runtime_1.jsxs)(styled_1.ProfileCredentials, { children: [(0, jsx_runtime_1.jsx)(styled_1.ProfileDisplayName, { children: displayName }), (0, jsx_runtime_1.jsx)(styled_1.ProfileAnnotation, { children: annotation })] }), (0, jsx_runtime_1.jsx)(material_1.Avatar, __assign({}, avatar))] }), (0, jsx_runtime_1.jsx)(
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.ClickAwayListener, __assign({ ref: ref, onClickAway: handleCloseMenu }, { children: (0, jsx_runtime_1.jsxs)(styled_1.ProfileRoot, __assign({ ref: anchorRef, variant: "text", onClick: handleOpenMenu }, { children: [(0, jsx_runtime_1.jsxs)(styled_1.ProfileUser, { children: [(0, jsx_runtime_1.jsxs)(styled_1.ProfileCredentials, { children: [(0, jsx_runtime_1.jsx)(styled_1.ProfileDisplayName, { children: displayName }), (0, jsx_runtime_1.jsx)(styled_1.ProfileAnnotation, { children: annotation })] }), (0, jsx_runtime_1.jsx)(material_1.Avatar, __assign({}, avatar))] }), (0, jsx_runtime_1.jsx)(Chevron_1.Chevron, { isActive: open })] })) })), (0, jsx_runtime_1.jsx)(Menu, { open: open, anchorEl: anchorRef.current, onClose: handleCloseMenu })] }));
|
|
24
25
|
});
|
|
25
26
|
exports.default = exports.Profile;
|
package/Profile/styled.d.ts
CHANGED
|
@@ -18,21 +18,3 @@ export declare const ProfileAnnotation: import("@emotion/styled").StyledComponen
|
|
|
18
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
19
|
as?: import("react").ElementType<any> | undefined;
|
|
20
20
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
21
|
-
export declare const ProfileChevron: import("@emotion/styled").StyledComponent<{
|
|
22
|
-
children?: import("react").ReactNode;
|
|
23
|
-
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
24
|
-
color?: "inherit" | "primary" | "secondary" | "disabled" | "error" | "success" | "warning" | "action" | "info" | undefined;
|
|
25
|
-
fontSize?: "inherit" | "large" | "medium" | "small" | undefined;
|
|
26
|
-
htmlColor?: string | undefined;
|
|
27
|
-
inheritViewBox?: boolean | undefined;
|
|
28
|
-
shapeRendering?: string | undefined;
|
|
29
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
30
|
-
titleAccess?: string | undefined;
|
|
31
|
-
viewBox?: string | undefined;
|
|
32
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "fontSize" | "fontWeight" | "fontFamily" | "href" | "tabIndex" | "to" | "type" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "css" | "name" | "id" | "lang" | "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" | "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" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "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" | "values" | "elevation" | "spacing" | "mode" | "local" | "in" | "max" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "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" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "numOctaves" | "operator" | "orient" | "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" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "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"> & {
|
|
33
|
-
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
34
|
-
}, "fontSize" | "children" | "color" | "shapeRendering" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & {
|
|
35
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
36
|
-
} & {
|
|
37
|
-
open: boolean;
|
|
38
|
-
}, {}, {}>;
|
package/Profile/styled.js
CHANGED
|
@@ -4,8 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
8
|
-
var icons_1 = require("@astral/icons");
|
|
7
|
+
exports.ProfileAnnotation = exports.ProfileDisplayName = exports.ProfileCredentials = exports.ProfileUser = exports.ProfileRoot = void 0;
|
|
9
8
|
var Button_1 = require("../Button");
|
|
10
9
|
var styles_1 = require("../styles");
|
|
11
10
|
exports.ProfileRoot = (0, styles_1.styled)(Button_1.Button)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n height: auto;\n padding: ", ";\n\n text-align: right;\n"], ["\n display: flex;\n align-items: center;\n height: auto;\n padding: ", ";\n\n text-align: right;\n"])), function (_a) {
|
|
@@ -37,14 +36,4 @@ exports.ProfileAnnotation = styles_1.styled.span(templateObject_5 || (templateOb
|
|
|
37
36
|
var theme = _a.theme;
|
|
38
37
|
return theme.typography.pxToRem(16);
|
|
39
38
|
});
|
|
40
|
-
|
|
41
|
-
var open = _a.open;
|
|
42
|
-
return open ? 'rotateZ(180deg)' : ' rotateZ(0deg)';
|
|
43
|
-
}, function (_a) {
|
|
44
|
-
var theme = _a.theme;
|
|
45
|
-
return theme.transitions.create('transform', {
|
|
46
|
-
easing: theme.transitions.easing.sharp,
|
|
47
|
-
duration: theme.transitions.duration.enteringScreen,
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
39
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
package/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TooltipProps } from '
|
|
3
|
-
|
|
2
|
+
import { TooltipProps as MuiTooltipProps } from '@mui/material/Tooltip';
|
|
3
|
+
import { WithoutEmotionSpecific } from '../types';
|
|
4
|
+
import { TooltipSize } from './types';
|
|
5
|
+
export declare type TooltipProps = WithoutEmotionSpecific<MuiTooltipProps> & {
|
|
6
|
+
/**
|
|
7
|
+
* Размер тултипа
|
|
8
|
+
*/
|
|
9
|
+
size?: TooltipSize;
|
|
10
|
+
};
|
|
11
|
+
export declare const Tooltip: import("react").ForwardRefExoticComponent<Pick<TooltipProps, "tabIndex" | "children" | "className" | "components" | "componentsProps" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "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" | "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" | "size" | "classes" | "open" | "onClose" | "TransitionComponent" | "TransitionProps" | "placement" | "arrow" | "describeChild" | "disableFocusListener" | "disableHoverListener" | "disableInteractive" | "disableTouchListener" | "enterDelay" | "enterNextDelay" | "enterTouchDelay" | "followCursor" | "leaveDelay" | "leaveTouchDelay" | "onOpen" | "PopperComponent" | "PopperProps"> & import("react").RefAttributes<HTMLDivElement>>;
|
package/Tooltip/styled.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const StyledTooltip: import("@emotion/styled").StyledComponent<import("@mui/material").TooltipProps & {
|
|
1
|
+
export declare const StyledTooltip: import("@emotion/styled").StyledComponent<import("../types").WithoutEmotionSpecific<import("@mui/material").TooltipProps> & {
|
|
2
2
|
size?: "medium" | "small" | undefined;
|
|
3
3
|
} & {
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
package/Tooltip/types.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AutocompleteProps } from '
|
|
2
|
+
import { AutocompleteProps as MuiAutocompleteProps } from '@mui/material';
|
|
3
|
+
import { TextFieldProps } from '../TextField';
|
|
4
|
+
import { OverflowedElementProps } from '../OverflowTypography';
|
|
5
|
+
import { AutocompleteSizes } from './constants';
|
|
6
|
+
export declare type AutocompleteSize = `${AutocompleteSizes}`;
|
|
7
|
+
export declare type AutocompleteProps<AutocompleteValueProps, Multiple extends boolean, DisableClearable extends boolean, FreeSolo extends boolean> = Omit<MuiAutocompleteProps<AutocompleteValueProps, Multiple, DisableClearable, FreeSolo>, 'size' | 'renderInput'> & Pick<TextFieldProps, 'error' | 'success' | 'helperText' | 'label'> & {
|
|
8
|
+
size?: AutocompleteSize;
|
|
9
|
+
overflowOption?: OverflowedElementProps;
|
|
10
|
+
};
|
|
3
11
|
export declare const Autocomplete: <AutocompleteValueProps, Multiple extends boolean, DisableClearable extends boolean, FreeSolo extends boolean>(props: AutocompleteProps<AutocompleteValueProps, Multiple, DisableClearable, FreeSolo>) => JSX.Element;
|
|
@@ -29,8 +29,10 @@ import { TextField } from '../TextField';
|
|
|
29
29
|
import { Tag } from '../Tag';
|
|
30
30
|
import { MenuItem } from '../MenuItem';
|
|
31
31
|
import { Checkbox } from '../Checkbox';
|
|
32
|
+
import { OverflowTypography, } from '../OverflowTypography';
|
|
33
|
+
import { DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT, } from './constants';
|
|
32
34
|
export var Autocomplete = function (props) {
|
|
33
|
-
var multiple = props.multiple, placeholder = props.placeholder, error = props.error, success = props.success, helperText = props.helperText, label = props.label, _a = props.size, size = _a === void 0 ? 'medium' : _a, getOptionLabel = props.getOptionLabel, externalRenderOption = props.renderOption, restProps = __rest(props, ["multiple", "placeholder", "error", "success", "helperText", "label", "size", "getOptionLabel", "renderOption"]);
|
|
35
|
+
var multiple = props.multiple, placeholder = props.placeholder, error = props.error, success = props.success, helperText = props.helperText, label = props.label, _a = props.size, size = _a === void 0 ? 'medium' : _a, getOptionLabel = props.getOptionLabel, externalRenderOption = props.renderOption, overflowOption = props.overflowOption, restProps = __rest(props, ["multiple", "placeholder", "error", "success", "helperText", "label", "size", "getOptionLabel", "renderOption", "overflowOption"]);
|
|
34
36
|
var renderTags = useCallback(function (tags, getTagProps) {
|
|
35
37
|
return tags.map(function (tag, index) {
|
|
36
38
|
var title = (getOptionLabel && getOptionLabel(tag)) || '';
|
|
@@ -45,7 +47,7 @@ export var Autocomplete = function (props) {
|
|
|
45
47
|
var selected = Boolean(optionProps['aria-selected']);
|
|
46
48
|
return (_createElement(MenuItem, __assign({}, optionProps, { key: optionProps.id }),
|
|
47
49
|
multiple && (_jsx(ListItemIcon, { children: _jsx(Checkbox, { checked: selected }) })),
|
|
48
|
-
optionProps.key));
|
|
50
|
+
_jsx(OverflowTypography, __assign({ rowsCount: DEFAULT_AUTOCOMPLETE_ELEMENT_ROWS_COUNT }, overflowOption, { children: optionProps.key }))));
|
|
49
51
|
}, [multiple, externalRenderOption]);
|
|
50
52
|
return (_jsx(MuiAutocomplete, __assign({}, restProps, { size: size, multiple: multiple, getOptionLabel: getOptionLabel, disableCloseOnSelect: multiple, renderTags: renderTags, renderInput: renderInput, renderOption: renderOption, popupIcon: _jsx(ChevronDOutlineMd, {}), clearIcon: _jsx(CrossSmOutlineSm, {}), componentsProps: { clearIndicator: { disableRipple: true } }, noOptionsText: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445" })));
|
|
51
53
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SvgIconProps } from '@mui/material';
|
|
3
|
+
export declare const Chevron: (props: ChevronProps) => JSX.Element;
|
|
4
|
+
export declare type ChevronProps = {
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
} & Omit<SvgIconProps, 'children' | 'classes' | 'ref' | 'sx'>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import { ChevronWrapper } from './styles';
|
|
14
|
+
export var Chevron = function (props) { return (_jsx(ChevronWrapper, __assign({}, props))); };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Chevron';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Chevron';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChevronProps } from './Chevron';
|
|
3
|
+
export declare const ChevronWrapper: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
6
|
+
color?: "inherit" | "primary" | "secondary" | "disabled" | "error" | "success" | "warning" | "action" | "info" | undefined;
|
|
7
|
+
fontSize?: "inherit" | "large" | "medium" | "small" | undefined;
|
|
8
|
+
htmlColor?: string | undefined;
|
|
9
|
+
inheritViewBox?: boolean | undefined;
|
|
10
|
+
shapeRendering?: string | undefined;
|
|
11
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
12
|
+
titleAccess?: string | undefined;
|
|
13
|
+
viewBox?: string | undefined;
|
|
14
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "fontSize" | "fontWeight" | "fontFamily" | "href" | "tabIndex" | "to" | "type" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "css" | "name" | "id" | "lang" | "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" | "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" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "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" | "values" | "elevation" | "spacing" | "mode" | "local" | "in" | "max" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "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" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "numOctaves" | "operator" | "orient" | "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" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "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"> & {
|
|
15
|
+
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
16
|
+
}, "fontSize" | "children" | "color" | "shapeRendering" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & {
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
} & Pick<ChevronProps, "isActive">, {}, {}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { ChevronDOutlineMd } from '@astral/icons';
|
|
6
|
+
import { styled } from '../styles';
|
|
7
|
+
export var ChevronWrapper = styled(ChevronDOutlineMd)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transform: rotateZ(", "deg);\n\n transition: ", ";\n"], ["\n transform: rotateZ(", "deg);\n\n transition: ", ";\n"])), function (_a) {
|
|
8
|
+
var isActive = _a.isActive;
|
|
9
|
+
return (isActive ? 180 : 0);
|
|
10
|
+
}, function (_a) {
|
|
11
|
+
var theme = _a.theme;
|
|
12
|
+
return theme.transitions.create('transform', {
|
|
13
|
+
easing: theme.transitions.easing.sharp,
|
|
14
|
+
duration: theme.transitions.duration.short,
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var templateObject_1;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CircularProgressProps } from '
|
|
3
|
-
|
|
2
|
+
import { CircularProgressProps as MuiCircularProgressProps } from '@mui/material';
|
|
3
|
+
import { WithoutEmotionSpecific } from '../types';
|
|
4
|
+
declare module '@mui/material/CircularProgress' {
|
|
5
|
+
interface CircularProgressPropsColorOverrides {
|
|
6
|
+
primary: true;
|
|
7
|
+
inverted: true;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare type CircularProgressProps = WithoutEmotionSpecific<Omit<MuiCircularProgressProps, 'color' | 'size'>> & {
|
|
11
|
+
/**
|
|
12
|
+
* Цвет лоадера
|
|
13
|
+
*/
|
|
14
|
+
color?: 'primary' | 'inverted';
|
|
15
|
+
/**
|
|
16
|
+
* Размер лоадера
|
|
17
|
+
*/
|
|
18
|
+
size?: 'small' | 'medium';
|
|
19
|
+
};
|
|
20
|
+
export declare const CircularProgress: import("react").ForwardRefExoticComponent<Pick<CircularProgressProps, "tabIndex" | "className" | "slot" | "style" | "title" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "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" | "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" | "variant" | "size" | "classes" | "disableShrink" | "thickness"> & import("react").RefAttributes<HTMLElement>>;
|
|
4
21
|
export default CircularProgress;
|
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { forwardRef, useMemo } from 'react';
|
|
25
|
-
import MuiCircularProgress from '@mui/material
|
|
25
|
+
import { CircularProgress as MuiCircularProgress, } from '@mui/material';
|
|
26
26
|
export var CircularProgress = forwardRef(function (props, ref) {
|
|
27
27
|
var sizeProp = props.size, color = props.color, restProps = __rest(props, ["size", "color"]);
|
|
28
28
|
var size = useMemo(function () {
|
package/esm/Collapse/Collapse.js
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import { StyledCollapse } from './styles';
|
|
14
|
+
export var Collapse = function (props) {
|
|
15
|
+
return _jsx(StyledCollapse, __assign({}, props));
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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 { Collapse } from '@mui/material';
|
|
6
|
+
import { styled } from '../styles';
|
|
7
|
+
export var StyledCollapse = styled(Collapse)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &.MuiCollapse-horizontal {\n .MuiCollapse-wrapperInner {\n width: 100%;\n }\n }\n"], ["\n &.MuiCollapse-horizontal {\n .MuiCollapse-wrapperInner {\n width: 100%;\n }\n }\n"])));
|
|
8
|
+
var templateObject_1;
|
|
@@ -23,12 +23,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import { ClickAwayListener } from '@mui/material';
|
|
25
25
|
import { forwardRef } from 'react';
|
|
26
|
-
import { ChevronDOutlineMd } from '@astral/icons';
|
|
27
26
|
import { useMenu } from '../hooks';
|
|
28
27
|
import { Menu } from '../Menu';
|
|
29
|
-
import {
|
|
28
|
+
import { Button } from '../Button';
|
|
29
|
+
import { Chevron } from '../Chevron';
|
|
30
30
|
export var DropdownButton = forwardRef(function (_a, ref) {
|
|
31
31
|
var children = _a.children, name = _a.name, props = __rest(_a, ["children", "name"]);
|
|
32
32
|
var _b = useMenu(), open = _b.open, anchorRef = _b.anchorRef, handleOpenMenu = _b.handleOpenMenu, handleCloseMenu = _b.handleCloseMenu;
|
|
33
|
-
return (_jsxs(_Fragment, { children: [_jsx(ClickAwayListener, __assign({ ref: ref, onClickAway: handleCloseMenu }, { children: _jsx(
|
|
33
|
+
return (_jsxs(_Fragment, { children: [_jsx(ClickAwayListener, __assign({ ref: ref, onClickAway: handleCloseMenu }, { children: _jsx(Button, __assign({}, props, { ref: anchorRef, onClick: handleOpenMenu, endIcon: _jsx(Chevron, { isActive: open }) }, { children: name })) })), _jsx(Menu, __assign({ open: open, anchorEl: anchorRef.current }, { children: children }))] }));
|
|
34
34
|
});
|
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { forwardRef } from 'react';
|
|
25
|
-
import { StyledIconButton } from './
|
|
25
|
+
import { StyledIconButton } from './styles';
|
|
26
26
|
export var IconButton = forwardRef(function (_a, ref) {
|
|
27
27
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
28
28
|
return (_jsx(StyledIconButton, __assign({}, props, { ref: ref }, { children: children })));
|
|
File without changes
|
|
File without changes
|
package/esm/List/List.d.ts
CHANGED
package/esm/List/List.js
CHANGED
|
@@ -9,24 +9,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
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
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var COLLAPSED_SIZE = 60;
|
|
28
|
-
export var List = function (_a) {
|
|
29
|
-
var collapsed = _a.collapsed, children = _a.children, props = __rest(_a, ["collapsed", "children"]);
|
|
30
|
-
var open = collapsed === undefined || collapsed;
|
|
31
|
-
return (_jsx(StyledList, __assign({}, props, { children: _jsx(ListProvider, __assign({ value: { open: open } }, { children: _jsx(Collapse, __assign({ orientation: "horizontal", in: open, collapsedSize: COLLAPSED_SIZE }, { children: children })) })) })));
|
|
13
|
+
import { StyledList } from './styles';
|
|
14
|
+
export var List = function (props) {
|
|
15
|
+
return _jsx(StyledList, __assign({}, props));
|
|
32
16
|
};
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
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 { List as MuiList } from '@mui/material';
|
|
6
|
+
import { styled } from '../styles';
|
|
7
|
+
export var StyledList = styled(MuiList)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n a {\n display: inline-block;\n width: 100%;\n\n text-decoration: none;\n }\n"], ["\n a {\n display: inline-block;\n width: 100%;\n\n text-decoration: none;\n }\n"])));
|
|
8
|
+
var templateObject_1;
|
|
@@ -21,11 +21,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import {
|
|
25
|
-
import { ListContext } from '../ListProvider';
|
|
26
|
-
import { StyledListItemText } from './styled';
|
|
24
|
+
import { StyledListItemText } from './styles';
|
|
27
25
|
export var ListItemText = function (_a) {
|
|
28
26
|
var props = __rest(_a, []);
|
|
29
|
-
|
|
30
|
-
return _jsx(StyledListItemText, __assign({}, props, { open: open }));
|
|
27
|
+
return _jsx(StyledListItemText, __assign({}, props));
|
|
31
28
|
};
|