@astral/ui 0.48.0 → 0.48.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.
@@ -26,13 +26,13 @@ exports.DataGridPagination = void 0;
26
26
  var jsx_runtime_1 = require("react/jsx-runtime");
27
27
  var react_1 = require("react");
28
28
  var Pagination_1 = require("../Pagination");
29
- var styled_1 = require("./styled");
29
+ var styles_1 = require("./styles");
30
30
  var DataGridPagination = function (_a) {
31
31
  var page = _a.page, _b = _a.rowsPerPage, rowsPerPage = _b === void 0 ? 10 : _b, totalCount = _a.totalCount, className = _a.className, props = __rest(_a, ["page", "rowsPerPage", "totalCount", "className"]);
32
32
  var count = Math.ceil(totalCount / rowsPerPage);
33
33
  var rangeStart = (0, react_1.useMemo)(function () { return (page - 1) * rowsPerPage + 1; }, [page, rowsPerPage]);
34
34
  var rangeEnd = (0, react_1.useMemo)(function () { return (page - 1) * rowsPerPage + rowsPerPage; }, [page, rowsPerPage]);
35
35
  var formattedRange = "".concat(rangeStart, " \u2014 ").concat(rangeEnd, " \u0438\u0437 ").concat(totalCount, " \u0437\u0430\u043F\u0438\u0441\u0435\u0439");
36
- return ((0, jsx_runtime_1.jsxs)(styled_1.PaginationWrapper, __assign({ className: className }, { children: [(0, jsx_runtime_1.jsx)(styled_1.Range, __assign({ variant: "h6" }, { children: formattedRange })), (0, jsx_runtime_1.jsx)(Pagination_1.Pagination, __assign({ count: count }, props))] })));
36
+ return ((0, jsx_runtime_1.jsxs)(styles_1.PaginationWrapper, __assign({ className: className }, { children: [(0, jsx_runtime_1.jsx)(styles_1.Range, __assign({ variant: "h6" }, { children: formattedRange })), (0, jsx_runtime_1.jsx)(Pagination_1.Pagination, __assign({ count: count, page: page }, props))] })));
37
37
  };
38
38
  exports.DataGridPagination = DataGridPagination;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const PaginationWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const Range: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ }, {}, {}>;
File without changes
@@ -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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<{
@@ -19,6 +19,6 @@ var NavMenuItem_1 = require("./NavMenuItem");
19
19
  exports.NavMenu = (0, react_1.forwardRef)(function (props, ref) {
20
20
  var _a = props.collapsedIn, collapsedIn = _a === void 0 ? true : _a, items = props.items;
21
21
  return ((0, jsx_runtime_1.jsx)(material_1.List, __assign({ ref: ref, disablePadding: true }, { children: items.map(function (item) {
22
- return (0, jsx_runtime_1.jsx)(NavMenuItem_1.NavMenuItem, { collapsedIn: collapsedIn, item: item });
22
+ return ((0, jsx_runtime_1.jsx)(NavMenuItem_1.NavMenuItem, { collapsedIn: collapsedIn, item: item }, item[0]));
23
23
  }) })));
24
24
  });
@@ -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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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>, {}, {}>;
@@ -9,7 +9,7 @@ var styles_1 = require("../styles");
9
9
  var Typography_1 = require("../Typography");
10
10
  exports.OverflowTypographyWrapper = (0, styles_1.styled)(Typography_1.Typography, {
11
11
  shouldForwardProp: function (name) { return name !== 'rowsCount'; },
12
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
12
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
13
13
  var rowsCount = _a.rowsCount;
14
14
  return rowsCount;
15
15
  });
@@ -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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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: ({ children, color, ...props }: TypographyProps) => JSX.Element;
3
+ export declare const Typography: import("react").ForwardRefExoticComponent<Pick<TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement>>;
4
4
  export default Typography;
@@ -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
- var Typography = function (_a) {
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;
@@ -23,12 +23,12 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import { useMemo } from 'react';
25
25
  import { Pagination } from '../Pagination';
26
- import { PaginationWrapper, Range } from './styled';
26
+ import { PaginationWrapper, Range } from './styles';
27
27
  export var DataGridPagination = function (_a) {
28
28
  var page = _a.page, _b = _a.rowsPerPage, rowsPerPage = _b === void 0 ? 10 : _b, totalCount = _a.totalCount, className = _a.className, props = __rest(_a, ["page", "rowsPerPage", "totalCount", "className"]);
29
29
  var count = Math.ceil(totalCount / rowsPerPage);
30
30
  var rangeStart = useMemo(function () { return (page - 1) * rowsPerPage + 1; }, [page, rowsPerPage]);
31
31
  var rangeEnd = useMemo(function () { return (page - 1) * rowsPerPage + rowsPerPage; }, [page, rowsPerPage]);
32
32
  var formattedRange = "".concat(rangeStart, " \u2014 ").concat(rangeEnd, " \u0438\u0437 ").concat(totalCount, " \u0437\u0430\u043F\u0438\u0441\u0435\u0439");
33
- return (_jsxs(PaginationWrapper, __assign({ className: className }, { children: [_jsx(Range, __assign({ variant: "h6" }, { children: formattedRange })), _jsx(Pagination, __assign({ count: count }, props))] })));
33
+ return (_jsxs(PaginationWrapper, __assign({ className: className }, { children: [_jsx(Range, __assign({ variant: "h6" }, { children: formattedRange })), _jsx(Pagination, __assign({ count: count, page: page }, props))] })));
34
34
  };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const PaginationWrapper: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const Range: import("@emotion/styled").StyledComponent<Pick<import("../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ }, {}, {}>;
File without changes
@@ -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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<{
@@ -16,6 +16,6 @@ import { NavMenuItem } from './NavMenuItem';
16
16
  export var NavMenu = forwardRef(function (props, ref) {
17
17
  var _a = props.collapsedIn, collapsedIn = _a === void 0 ? true : _a, items = props.items;
18
18
  return (_jsx(List, __assign({ ref: ref, disablePadding: true }, { children: items.map(function (item) {
19
- return _jsx(NavMenuItem, { collapsedIn: collapsedIn, item: item });
19
+ return (_jsx(NavMenuItem, { collapsedIn: collapsedIn, item: item }, item[0]));
20
20
  }) })));
21
21
  });
@@ -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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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>, {}, {}>;
@@ -6,7 +6,7 @@ import { styled } from '../styles';
6
6
  import { Typography } from '../Typography';
7
7
  export var OverflowTypographyWrapper = styled(Typography, {
8
8
  shouldForwardProp: function (name) { return name !== 'rowsCount'; },
9
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
9
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n /* stylelint-disable-next-line */\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
10
10
  var rowsCount = _a.rowsCount;
11
11
  return rowsCount;
12
12
  });
@@ -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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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: ({ children, color, ...props }: TypographyProps) => JSX.Element;
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.0",
3
+ "version": "0.48.3",
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.0",
11
+ "@astral/icons": "^0.48.3",
12
12
  "@emotion/cache": "11.7.1",
13
13
  "@emotion/react": "11.9.0",
14
14
  "@emotion/server": "11.4.0",
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const PaginationWrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const Range: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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
- } & {
11
- theme?: import("@emotion/react").Theme | undefined;
12
- }, {}, {}>;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const PaginationWrapper: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme | undefined;
4
- as?: import("react").ElementType<any> | undefined;
5
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const Range: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
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
- } & {
11
- theme?: import("@emotion/react").Theme | undefined;
12
- }, {}, {}>;