@astral/ui 0.48.1 → 0.48.2
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/DataGridPagination/styled.d.ts +1 -5
- package/DatePicker/DatePickerHeader/styled.d.ts +1 -5
- package/MenuGroup/stories/styled.d.ts +1 -5
- package/MenuGroup/styled.d.ts +1 -5
- package/Notification/NotificationTemplate/styled.d.ts +1 -5
- package/OverflowTypography/styles.d.ts +1 -5
- package/Placeholder/styles.d.ts +2 -10
- package/Typography/Typography.d.ts +1 -1
- package/Typography/Typography.js +3 -4
- package/esm/DataGridPagination/styled.d.ts +1 -5
- package/esm/DatePicker/DatePickerHeader/styled.d.ts +1 -5
- package/esm/MenuGroup/stories/styled.d.ts +1 -5
- package/esm/MenuGroup/styled.d.ts +1 -5
- package/esm/Notification/NotificationTemplate/styled.d.ts +1 -5
- package/esm/OverflowTypography/styles.d.ts +1 -5
- package/esm/Placeholder/styles.d.ts +2 -10
- package/esm/Typography/Typography.d.ts +1 -1
- package/esm/Typography/Typography.js +4 -4
- package/package.json +2 -2
|
@@ -3,10 +3,6 @@ export declare const PaginationWrapper: import("@emotion/styled").StyledComponen
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const Range: import("@emotion/styled").StyledComponent<
|
|
7
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
8
|
-
component?: import("react").ElementType<any> | undefined;
|
|
9
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
10
|
-
} & {
|
|
6
|
+
export declare const Range: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
11
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
8
|
}, {}, {}>;
|
|
@@ -3,10 +3,6 @@ export declare const DatePickerHeaderWrapper: import("@emotion/styled").StyledCo
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<
|
|
7
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
8
|
-
component?: import("react").ElementType<any> | undefined;
|
|
9
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
10
|
-
} & {
|
|
6
|
+
export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<Pick<import("../../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
11
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
8
|
}, {}, {}>;
|
|
@@ -29,11 +29,7 @@ export declare const StyledMenuItem: import("@emotion/styled").StyledComponent<{
|
|
|
29
29
|
}, "disabled" | "onFocusVisible" | "tabIndex" | "action" | "children" | "autoFocus" | "selected" | "divider" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "dense" | "disableGutters"> & {
|
|
30
30
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
31
|
}, {}, {}>;
|
|
32
|
-
export declare const StyledLabel: import("@emotion/styled").StyledComponent<
|
|
33
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
34
|
-
component?: import("react").ElementType<any> | undefined;
|
|
35
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
36
|
-
} & {
|
|
32
|
+
export declare const StyledLabel: import("@emotion/styled").StyledComponent<Pick<import("../../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
37
33
|
theme?: import("@emotion/react").Theme | undefined;
|
|
38
34
|
}, {}, {}>;
|
|
39
35
|
export declare const StyledMenuWrapper: import("@emotion/styled").StyledComponent<{
|
package/MenuGroup/styled.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("@emotion/styled").StyledComponent<
|
|
3
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
4
|
-
component?: import("react").ElementType<any> | undefined;
|
|
5
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
6
|
-
} & {
|
|
2
|
+
export declare const StyledLabel: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
7
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
4
|
}, {}, {}>;
|
|
9
5
|
export declare const StyledContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
@@ -59,11 +59,7 @@ export declare const NotificationCloseIcon: import("@emotion/styled").StyledComp
|
|
|
59
59
|
export declare const NotificationCloseButton: import("@emotion/styled").StyledComponent<Pick<import("../..").BaseButtonProps, keyof import("@mui/base").ButtonUnstyledOwnProps | "form" | "slot" | "style" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "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" | "component" | "selected"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
60
60
|
theme?: import("@emotion/react").Theme | undefined;
|
|
61
61
|
} & NotificationCloseButtonProps, {}, {}>;
|
|
62
|
-
export declare const NotificationTitle: import("@emotion/styled").StyledComponent<
|
|
63
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
64
|
-
component?: import("react").ElementType<any> | undefined;
|
|
65
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
66
|
-
} & {
|
|
62
|
+
export declare const NotificationTitle: import("@emotion/styled").StyledComponent<Pick<import("../../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
67
63
|
theme?: import("@emotion/react").Theme | undefined;
|
|
68
64
|
}, {}, {}>;
|
|
69
65
|
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { OverflowedProps } from './OverflowTypography';
|
|
3
|
-
export declare const OverflowTypographyWrapper: import("@emotion/styled").StyledComponent<
|
|
4
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
5
|
-
component?: import("react").ElementType<any> | undefined;
|
|
6
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
7
|
-
} & {
|
|
3
|
+
export declare const OverflowTypographyWrapper: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
8
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
5
|
} & Required<OverflowedProps>, {}, {}>;
|
package/Placeholder/styles.d.ts
CHANGED
|
@@ -11,18 +11,10 @@ export declare const PlaceholderImage: import("@emotion/styled").StyledComponent
|
|
|
11
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
12
|
as?: import("react").ElementType<any> | undefined;
|
|
13
13
|
}, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
14
|
-
export declare const PlaceholderTitle: import("@emotion/styled").StyledComponent<
|
|
15
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
16
|
-
component?: import("react").ElementType<any> | undefined;
|
|
17
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
18
|
-
} & {
|
|
14
|
+
export declare const PlaceholderTitle: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
19
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
16
|
}, {}, {}>;
|
|
21
|
-
export declare const PlaceholderDescription: import("@emotion/styled").StyledComponent<
|
|
22
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
23
|
-
component?: import("react").ElementType<any> | undefined;
|
|
24
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
25
|
-
} & {
|
|
17
|
+
export declare const PlaceholderDescription: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
26
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
19
|
}, {}, {}>;
|
|
28
20
|
export declare const PlaceholderActions: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TypographyProps } from './types';
|
|
3
|
-
export declare const Typography: (
|
|
3
|
+
export declare const Typography: import("react").ForwardRefExoticComponent<Pick<TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement>>;
|
|
4
4
|
export default Typography;
|
package/Typography/Typography.js
CHANGED
|
@@ -27,7 +27,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
27
27
|
var material_1 = require("@mui/material");
|
|
28
28
|
var react_1 = require("react");
|
|
29
29
|
var enums_1 = require("./enums");
|
|
30
|
-
|
|
30
|
+
exports.Typography = (0, react_1.forwardRef)(function (_a, ref) {
|
|
31
31
|
var children = _a.children, color = _a.color, props = __rest(_a, ["children", "color"]);
|
|
32
32
|
var typographyColor = (0, react_1.useMemo)(function () {
|
|
33
33
|
if (typeof color === 'function') {
|
|
@@ -35,7 +35,6 @@ var Typography = function (_a) {
|
|
|
35
35
|
}
|
|
36
36
|
return (color && enums_1.TypographyColors[color]) || color;
|
|
37
37
|
}, [color]);
|
|
38
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Typography, __assign({}, props, { color: typographyColor }, { children: children })));
|
|
39
|
-
};
|
|
40
|
-
exports.Typography = Typography;
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ ref: ref }, props, { color: typographyColor }, { children: children })));
|
|
39
|
+
});
|
|
41
40
|
exports.default = exports.Typography;
|
|
@@ -3,10 +3,6 @@ export declare const PaginationWrapper: import("@emotion/styled").StyledComponen
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const Range: import("@emotion/styled").StyledComponent<
|
|
7
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
8
|
-
component?: import("react").ElementType<any> | undefined;
|
|
9
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
10
|
-
} & {
|
|
6
|
+
export declare const Range: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
11
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
8
|
}, {}, {}>;
|
|
@@ -3,10 +3,6 @@ export declare const DatePickerHeaderWrapper: import("@emotion/styled").StyledCo
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<
|
|
7
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
8
|
-
component?: import("react").ElementType<any> | undefined;
|
|
9
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
10
|
-
} & {
|
|
6
|
+
export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<Pick<import("../../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
11
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
8
|
}, {}, {}>;
|
|
@@ -29,11 +29,7 @@ export declare const StyledMenuItem: import("@emotion/styled").StyledComponent<{
|
|
|
29
29
|
}, "disabled" | "onFocusVisible" | "tabIndex" | "action" | "children" | "autoFocus" | "selected" | "divider" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "dense" | "disableGutters"> & {
|
|
30
30
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
31
|
}, {}, {}>;
|
|
32
|
-
export declare const StyledLabel: import("@emotion/styled").StyledComponent<
|
|
33
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
34
|
-
component?: import("react").ElementType<any> | undefined;
|
|
35
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
36
|
-
} & {
|
|
32
|
+
export declare const StyledLabel: import("@emotion/styled").StyledComponent<Pick<import("../../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
37
33
|
theme?: import("@emotion/react").Theme | undefined;
|
|
38
34
|
}, {}, {}>;
|
|
39
35
|
export declare const StyledMenuWrapper: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledLabel: import("@emotion/styled").StyledComponent<
|
|
3
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
4
|
-
component?: import("react").ElementType<any> | undefined;
|
|
5
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
6
|
-
} & {
|
|
2
|
+
export declare const StyledLabel: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
7
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
4
|
}, {}, {}>;
|
|
9
5
|
export declare const StyledContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
@@ -59,11 +59,7 @@ export declare const NotificationCloseIcon: import("@emotion/styled").StyledComp
|
|
|
59
59
|
export declare const NotificationCloseButton: import("@emotion/styled").StyledComponent<Pick<import("../..").BaseButtonProps, keyof import("@mui/base").ButtonUnstyledOwnProps | "form" | "slot" | "style" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "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" | "component" | "selected"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
60
60
|
theme?: import("@emotion/react").Theme | undefined;
|
|
61
61
|
} & NotificationCloseButtonProps, {}, {}>;
|
|
62
|
-
export declare const NotificationTitle: import("@emotion/styled").StyledComponent<
|
|
63
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
64
|
-
component?: import("react").ElementType<any> | undefined;
|
|
65
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
66
|
-
} & {
|
|
62
|
+
export declare const NotificationTitle: import("@emotion/styled").StyledComponent<Pick<import("../../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
67
63
|
theme?: import("@emotion/react").Theme | undefined;
|
|
68
64
|
}, {}, {}>;
|
|
69
65
|
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { OverflowedProps } from './OverflowTypography';
|
|
3
|
-
export declare const OverflowTypographyWrapper: import("@emotion/styled").StyledComponent<
|
|
4
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
5
|
-
component?: import("react").ElementType<any> | undefined;
|
|
6
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
7
|
-
} & {
|
|
3
|
+
export declare const OverflowTypographyWrapper: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
8
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
9
5
|
} & Required<OverflowedProps>, {}, {}>;
|
|
@@ -11,18 +11,10 @@ export declare const PlaceholderImage: import("@emotion/styled").StyledComponent
|
|
|
11
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
12
|
as?: import("react").ElementType<any> | undefined;
|
|
13
13
|
}, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
14
|
-
export declare const PlaceholderTitle: import("@emotion/styled").StyledComponent<
|
|
15
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
16
|
-
component?: import("react").ElementType<any> | undefined;
|
|
17
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
18
|
-
} & {
|
|
14
|
+
export declare const PlaceholderTitle: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
19
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
16
|
}, {}, {}>;
|
|
21
|
-
export declare const PlaceholderDescription: import("@emotion/styled").StyledComponent<
|
|
22
|
-
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
23
|
-
component?: import("react").ElementType<any> | undefined;
|
|
24
|
-
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
25
|
-
} & {
|
|
17
|
+
export declare const PlaceholderDescription: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
26
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
19
|
}, {}, {}>;
|
|
28
20
|
export declare const PlaceholderActions: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TypographyProps } from './types';
|
|
3
|
-
export declare const Typography: (
|
|
3
|
+
export declare const Typography: import("react").ForwardRefExoticComponent<Pick<TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement>>;
|
|
4
4
|
export default Typography;
|
|
@@ -22,9 +22,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { Typography as MuiTypography } from '@mui/material';
|
|
25
|
-
import { useMemo } from 'react';
|
|
25
|
+
import { forwardRef, useMemo } from 'react';
|
|
26
26
|
import { TypographyColors } from './enums';
|
|
27
|
-
export var Typography = function (_a) {
|
|
27
|
+
export var Typography = forwardRef(function (_a, ref) {
|
|
28
28
|
var children = _a.children, color = _a.color, props = __rest(_a, ["children", "color"]);
|
|
29
29
|
var typographyColor = useMemo(function () {
|
|
30
30
|
if (typeof color === 'function') {
|
|
@@ -32,6 +32,6 @@ export var Typography = function (_a) {
|
|
|
32
32
|
}
|
|
33
33
|
return (color && TypographyColors[color]) || color;
|
|
34
34
|
}, [color]);
|
|
35
|
-
return (_jsx(MuiTypography, __assign({}, props, { color: typographyColor }, { children: children })));
|
|
36
|
-
};
|
|
35
|
+
return (_jsx(MuiTypography, __assign({ ref: ref }, props, { color: typographyColor }, { children: children })));
|
|
36
|
+
});
|
|
37
37
|
export default Typography;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.2",
|
|
4
4
|
"browser": "./src/index.ts",
|
|
5
5
|
"jest": {
|
|
6
6
|
"moduleNameMapper": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@astral/icons": "^0.48.
|
|
11
|
+
"@astral/icons": "^0.48.2",
|
|
12
12
|
"@emotion/cache": "11.7.1",
|
|
13
13
|
"@emotion/react": "11.9.0",
|
|
14
14
|
"@emotion/server": "11.4.0",
|