@astral/ui 0.25.0 → 0.28.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.
Files changed (185) hide show
  1. package/Button/Button.js +13 -1
  2. package/ListItemIcon/styled.js +1 -1
  3. package/Menu/Menu.d.ts +2 -2
  4. package/Menu/Menu.js +5 -14
  5. package/Menu/index.d.ts +1 -0
  6. package/Menu/index.js +1 -0
  7. package/Menu/types.d.ts +1 -0
  8. package/Menu/types.js +2 -0
  9. package/MenuGroup/MenuGroup.d.ts +3 -0
  10. package/MenuGroup/MenuGroup.js +23 -0
  11. package/MenuGroup/index.d.ts +1 -0
  12. package/MenuGroup/index.js +13 -0
  13. package/MenuGroup/stories/Icons.d.ts +8 -0
  14. package/MenuGroup/stories/Icons.js +29 -0
  15. package/MenuGroup/stories/styled.d.ts +50 -0
  16. package/MenuGroup/stories/styled.js +20 -0
  17. package/MenuGroup/styled.d.ts +20 -0
  18. package/MenuGroup/styled.js +24 -0
  19. package/MenuGroup/types.d.ts +8 -0
  20. package/MenuGroup/types.js +2 -0
  21. package/MenuItem/MenuItem.d.ts +1 -1
  22. package/MenuItem/MenuItem.js +2 -2
  23. package/MenuItem/styled.d.ts +31 -0
  24. package/MenuItem/styled.js +14 -0
  25. package/MenuItem/types.d.ts +1 -0
  26. package/MenuItem/types.js +2 -0
  27. package/Notification/Notification.d.ts +6 -0
  28. package/Notification/Notification.js +42 -0
  29. package/Notification/NotificationContainer/NotificationContainer.d.ts +5 -0
  30. package/Notification/NotificationContainer/NotificationContainer.js +24 -0
  31. package/Notification/NotificationContainer/index.d.ts +1 -0
  32. package/Notification/NotificationContainer/index.js +13 -0
  33. package/Notification/NotificationContainer/styled.d.ts +5 -0
  34. package/Notification/NotificationContainer/styled.js +10 -0
  35. package/Notification/NotificationTemplate/NotificationTemplate.d.ts +13 -0
  36. package/Notification/NotificationTemplate/NotificationTemplate.js +34 -0
  37. package/Notification/NotificationTemplate/index.d.ts +1 -0
  38. package/Notification/NotificationTemplate/index.js +13 -0
  39. package/Notification/NotificationTemplate/styled.d.ts +83 -0
  40. package/Notification/NotificationTemplate/styled.js +56 -0
  41. package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.d.ts +2 -0
  42. package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +11 -0
  43. package/Notification/NotificationTemplate/utils/getActionsDirection/index.d.ts +1 -0
  44. package/Notification/NotificationTemplate/utils/getActionsDirection/index.js +13 -0
  45. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.d.ts +6 -0
  46. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +31 -0
  47. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.d.ts +1 -0
  48. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.js +13 -0
  49. package/Notification/NotificationTemplate/utils/index.d.ts +2 -0
  50. package/Notification/NotificationTemplate/utils/index.js +14 -0
  51. package/Notification/constants/defaultNotificationProps.d.ts +3 -0
  52. package/Notification/constants/defaultNotificationProps.js +6 -0
  53. package/Notification/constants/index.d.ts +3 -0
  54. package/Notification/constants/index.js +15 -0
  55. package/Notification/constants/notificationVariant.d.ts +6 -0
  56. package/Notification/constants/notificationVariant.js +23 -0
  57. package/Notification/constants/positions.d.ts +8 -0
  58. package/Notification/constants/positions.js +5 -0
  59. package/Notification/index.d.ts +5 -0
  60. package/Notification/index.js +17 -0
  61. package/Notification/styled.d.ts +77 -0
  62. package/Notification/styled.js +34 -0
  63. package/Notification/types.d.ts +27 -0
  64. package/Notification/types.js +2 -0
  65. package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.d.ts +2 -0
  66. package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +17 -0
  67. package/Notification/utils/getNotificationIconByVariant/index.d.ts +1 -0
  68. package/Notification/utils/getNotificationIconByVariant/index.js +13 -0
  69. package/Notification/utils/index.d.ts +2 -0
  70. package/Notification/utils/index.js +14 -0
  71. package/Notification/utils/notificationTemplatePropsCreator/index.d.ts +1 -0
  72. package/Notification/utils/notificationTemplatePropsCreator/index.js +13 -0
  73. package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.d.ts +4 -0
  74. package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +18 -0
  75. package/Placeholder/styled.js +2 -2
  76. package/Profile/Profile.d.ts +4 -0
  77. package/Profile/Profile.js +36 -0
  78. package/Profile/index.d.ts +2 -0
  79. package/Profile/index.js +14 -0
  80. package/Profile/styled.d.ts +40 -0
  81. package/Profile/styled.js +50 -0
  82. package/Profile/types.d.ts +20 -0
  83. package/Profile/types.js +2 -0
  84. package/Typography/index.d.ts +1 -0
  85. package/Typography/index.js +1 -0
  86. package/esm/Button/Button.js +13 -1
  87. package/esm/ListItemIcon/styled.js +1 -1
  88. package/esm/Menu/Menu.d.ts +2 -2
  89. package/esm/Menu/Menu.js +3 -15
  90. package/esm/Menu/index.d.ts +1 -0
  91. package/esm/Menu/index.js +1 -0
  92. package/esm/Menu/types.d.ts +1 -0
  93. package/esm/Menu/types.js +1 -0
  94. package/esm/MenuGroup/MenuGroup.d.ts +3 -0
  95. package/esm/MenuGroup/MenuGroup.js +19 -0
  96. package/esm/MenuGroup/index.d.ts +1 -0
  97. package/esm/MenuGroup/index.js +1 -0
  98. package/esm/MenuGroup/stories/Icons.d.ts +8 -0
  99. package/esm/MenuGroup/stories/Icons.js +19 -0
  100. package/esm/MenuGroup/stories/styled.d.ts +50 -0
  101. package/esm/MenuGroup/stories/styled.js +17 -0
  102. package/esm/MenuGroup/styled.d.ts +20 -0
  103. package/esm/MenuGroup/styled.js +21 -0
  104. package/esm/MenuGroup/types.d.ts +8 -0
  105. package/esm/MenuGroup/types.js +1 -0
  106. package/esm/MenuItem/MenuItem.d.ts +1 -1
  107. package/esm/MenuItem/MenuItem.js +2 -2
  108. package/esm/MenuItem/styled.d.ts +31 -0
  109. package/esm/MenuItem/styled.js +11 -0
  110. package/esm/MenuItem/types.d.ts +1 -0
  111. package/esm/MenuItem/types.js +1 -0
  112. package/esm/Notification/Notification.d.ts +6 -0
  113. package/esm/Notification/Notification.js +39 -0
  114. package/esm/Notification/NotificationContainer/NotificationContainer.d.ts +5 -0
  115. package/esm/Notification/NotificationContainer/NotificationContainer.js +20 -0
  116. package/esm/Notification/NotificationContainer/index.d.ts +1 -0
  117. package/esm/Notification/NotificationContainer/index.js +1 -0
  118. package/esm/Notification/NotificationContainer/styled.d.ts +5 -0
  119. package/esm/Notification/NotificationContainer/styled.js +7 -0
  120. package/esm/Notification/NotificationTemplate/NotificationTemplate.d.ts +13 -0
  121. package/esm/Notification/NotificationTemplate/NotificationTemplate.js +30 -0
  122. package/esm/Notification/NotificationTemplate/index.d.ts +1 -0
  123. package/esm/Notification/NotificationTemplate/index.js +1 -0
  124. package/esm/Notification/NotificationTemplate/styled.d.ts +83 -0
  125. package/esm/Notification/NotificationTemplate/styled.js +53 -0
  126. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.d.ts +2 -0
  127. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +7 -0
  128. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/index.d.ts +1 -0
  129. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/index.js +1 -0
  130. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.d.ts +6 -0
  131. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +27 -0
  132. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.d.ts +1 -0
  133. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.js +1 -0
  134. package/esm/Notification/NotificationTemplate/utils/index.d.ts +2 -0
  135. package/esm/Notification/NotificationTemplate/utils/index.js +2 -0
  136. package/esm/Notification/constants/defaultNotificationProps.d.ts +3 -0
  137. package/esm/Notification/constants/defaultNotificationProps.js +3 -0
  138. package/esm/Notification/constants/index.d.ts +3 -0
  139. package/esm/Notification/constants/index.js +3 -0
  140. package/esm/Notification/constants/notificationVariant.d.ts +6 -0
  141. package/esm/Notification/constants/notificationVariant.js +20 -0
  142. package/esm/Notification/constants/positions.d.ts +8 -0
  143. package/esm/Notification/constants/positions.js +2 -0
  144. package/esm/Notification/index.d.ts +5 -0
  145. package/esm/Notification/index.js +5 -0
  146. package/esm/Notification/styled.d.ts +77 -0
  147. package/esm/Notification/styled.js +31 -0
  148. package/esm/Notification/types.d.ts +27 -0
  149. package/esm/Notification/types.js +1 -0
  150. package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.d.ts +2 -0
  151. package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +13 -0
  152. package/esm/Notification/utils/getNotificationIconByVariant/index.d.ts +1 -0
  153. package/esm/Notification/utils/getNotificationIconByVariant/index.js +1 -0
  154. package/esm/Notification/utils/index.d.ts +2 -0
  155. package/esm/Notification/utils/index.js +2 -0
  156. package/esm/Notification/utils/notificationTemplatePropsCreator/index.d.ts +1 -0
  157. package/esm/Notification/utils/notificationTemplatePropsCreator/index.js +1 -0
  158. package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.d.ts +4 -0
  159. package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +14 -0
  160. package/esm/Placeholder/styled.js +2 -2
  161. package/esm/Profile/Profile.d.ts +4 -0
  162. package/esm/Profile/Profile.js +33 -0
  163. package/esm/Profile/index.d.ts +2 -0
  164. package/esm/Profile/index.js +2 -0
  165. package/esm/Profile/styled.d.ts +40 -0
  166. package/esm/Profile/styled.js +47 -0
  167. package/esm/Profile/types.d.ts +20 -0
  168. package/esm/Profile/types.js +1 -0
  169. package/esm/Typography/index.d.ts +1 -0
  170. package/esm/Typography/index.js +1 -0
  171. package/esm/index.d.ts +2 -0
  172. package/esm/index.js +2 -0
  173. package/esm/theme/components/MuiMenu.d.ts +4 -0
  174. package/esm/theme/components/MuiMenu.js +24 -0
  175. package/esm/theme/components/MuiMenuItem.d.ts +4 -0
  176. package/esm/theme/components/MuiMenuItem.js +13 -0
  177. package/esm/theme/components/components.js +2 -35
  178. package/index.d.ts +2 -0
  179. package/index.js +2 -0
  180. package/package.json +4 -3
  181. package/theme/components/MuiMenu.d.ts +4 -0
  182. package/theme/components/MuiMenu.js +27 -0
  183. package/theme/components/MuiMenuItem.d.ts +4 -0
  184. package/theme/components/MuiMenuItem.js +16 -0
  185. package/theme/components/components.js +4 -37
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { DEFAULT_NOTIFICATION_PROPS } from '../../constants';
3
+ import { ErrorNotificationIcon, InfoNotificationIcon, SuccessNotificationIcon, WarningNotificationIcon, } from '../../styled';
4
+ export var getNotificationIconByVariant = function (variant, filled) {
5
+ if (filled === void 0) { filled = DEFAULT_NOTIFICATION_PROPS.filled; }
6
+ var mapOfNotificationIcons = {
7
+ info: _jsx(InfoNotificationIcon, { filled: filled }, void 0),
8
+ success: _jsx(SuccessNotificationIcon, { filled: filled }, void 0),
9
+ warning: _jsx(WarningNotificationIcon, { filled: filled }, void 0),
10
+ error: _jsx(ErrorNotificationIcon, { filled: filled }, void 0),
11
+ };
12
+ return mapOfNotificationIcons[variant];
13
+ };
@@ -0,0 +1 @@
1
+ export * from './getNotificationIconByVariant';
@@ -0,0 +1 @@
1
+ export * from './getNotificationIconByVariant';
@@ -0,0 +1,2 @@
1
+ export * from './getNotificationIconByVariant';
2
+ export * from './notificationTemplatePropsCreator';
@@ -0,0 +1,2 @@
1
+ export * from './getNotificationIconByVariant';
2
+ export * from './notificationTemplatePropsCreator';
@@ -0,0 +1 @@
1
+ export * from './notificationTemplatePropsCreator';
@@ -0,0 +1 @@
1
+ export * from './notificationTemplatePropsCreator';
@@ -0,0 +1,4 @@
1
+ import { ToastProps } from 'react-toastify/dist/types';
2
+ import { NotificationTemplateProps } from '../../NotificationTemplate';
3
+ import { NotificationProps, Variant } from '../../types';
4
+ export declare const notificationTemplatePropsCreator: (options: NotificationProps, notifyProps: ToastProps, variant: Variant) => NotificationTemplateProps;
@@ -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
+ export var notificationTemplatePropsCreator = function (options, notifyProps, variant) {
13
+ return __assign(__assign(__assign({}, notifyProps), options), { variant: variant });
14
+ };
@@ -11,8 +11,8 @@ export var StyledContainer = styled.div(templateObject_1 || (templateObject_1 =
11
11
  var theme = _a.theme;
12
12
  return theme.palette.background.paper;
13
13
  });
14
- export var StyledInnerContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 384px;\n"], ["\n width: 384px;\n"])));
15
- export var StyledImage = styled.img(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n width: auto;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"], ["\n display: block;\n width: auto;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"])), function (_a) {
14
+ export var StyledInnerContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-width: 384px;\n"], ["\n max-width: 384px;\n"])));
15
+ export var StyledImage = styled.img(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n width: 100%;\n max-height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"], ["\n display: block;\n width: 100%;\n max-height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"])), function (_a) {
16
16
  var theme = _a.theme;
17
17
  return theme.spacing(8);
18
18
  });
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ProfileProps } from './types';
3
+ export declare const Profile: import("react").ForwardRefExoticComponent<ProfileProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export default Profile;
@@ -0,0 +1,33 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { Fragment, forwardRef, useCallback, useRef, useState } from 'react';
14
+ import { Avatar, ClickAwayListener } from '@mui/material';
15
+ import { ProfileAnnotation, ProfileChevron, ProfileCredentials, ProfileDisplayName, ProfileRoot, ProfileUser, } from './styled';
16
+ export var Profile = forwardRef(function (props, ref) {
17
+ var displayName = props.displayName, annotation = props.annotation, _a = props.avatar, avatar = _a === void 0 ? {} : _a, Menu = props.menu;
18
+ var _b = useState(false), open = _b[0], setOpen = _b[1];
19
+ var anchorRef = useRef(null);
20
+ var handleClick = useCallback(function () {
21
+ setOpen(function (prevValue) {
22
+ return !prevValue;
23
+ });
24
+ }, []);
25
+ var handleClickAway = useCallback(function () {
26
+ setOpen(false);
27
+ }, []);
28
+ var handleClose = useCallback(function () {
29
+ setOpen(false);
30
+ }, []);
31
+ return (_jsxs(Fragment, { children: [_jsx(ClickAwayListener, __assign({ ref: ref, onClickAway: handleClickAway }, { children: _jsxs(ProfileRoot, __assign({ ref: anchorRef, variant: "text", onClick: handleClick }, { children: [_jsxs(ProfileUser, { children: [_jsxs(ProfileCredentials, { children: [_jsx(ProfileDisplayName, { children: displayName }, void 0), _jsx(ProfileAnnotation, { children: annotation }, void 0)] }, void 0), _jsx(Avatar, __assign({}, avatar), void 0)] }, void 0), _jsx(ProfileChevron, { open: open }, void 0)] }), void 0) }), void 0), _jsx(Menu, { open: open, anchorEl: anchorRef.current, onClose: handleClose }, void 0)] }, void 0));
32
+ });
33
+ export default Profile;
@@ -0,0 +1,2 @@
1
+ export * from './Profile';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './Profile';
2
+ export * from './types';
@@ -0,0 +1,40 @@
1
+ /// <reference types="react" />
2
+ export declare const ProfileRoot: import("@emotion/styled").StyledComponent<Pick<import("../Button").ButtonProps, "disabled" | "component" | "href" | "onFocusVisible" | "tabIndex" | "type" | "action" | "children" | "form" | "slot" | "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" | "size" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition"> & import("react").RefAttributes<HTMLButtonElement> & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ }, {}, {}>;
5
+ export declare const ProfileUser: import("@emotion/styled").StyledComponent<{
6
+ theme?: import("@emotion/react").Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const ProfileCredentials: import("@emotion/styled").StyledComponent<{
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export declare const ProfileDisplayName: import("@emotion/styled").StyledComponent<{
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any> | undefined;
16
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
17
+ export declare const ProfileAnnotation: import("@emotion/styled").StyledComponent<{
18
+ theme?: import("@emotion/react").Theme | undefined;
19
+ as?: import("react").ElementType<any> | undefined;
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" | "end" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "elevation" | "spacing" | "values" | "mode" | "in" | "max" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "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" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "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" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "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
+ children?: import("react").ReactNode;
36
+ } & {
37
+ theme?: import("@emotion/react").Theme | undefined;
38
+ } & {
39
+ open: boolean;
40
+ }, {}, {}>;
@@ -0,0 +1,47 @@
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 { Button } from '../Button';
7
+ import { styled } from '../styles';
8
+ export var ProfileRoot = styled(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) {
9
+ var theme = _a.theme;
10
+ return theme.spacing(0.5, 0.5, 0.5, 2);
11
+ });
12
+ export var ProfileUser = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n gap: ", ";\n align-items: center;\n"], ["\n display: flex;\n gap: ", ";\n align-items: center;\n"])), function (_a) {
13
+ var theme = _a.theme;
14
+ return theme.spacing(2);
15
+ });
16
+ export var ProfileCredentials = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n"], ["\n display: block;\n"])));
17
+ export var ProfileDisplayName = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: block;\n\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n"], ["\n display: block;\n\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n"])), function (_a) {
18
+ var theme = _a.theme;
19
+ return theme.typography.fontWeightBold;
20
+ }, function (_a) {
21
+ var theme = _a.theme;
22
+ return theme.typography.pxToRem(12);
23
+ }, function (_a) {
24
+ var theme = _a.theme;
25
+ return theme.typography.pxToRem(14);
26
+ });
27
+ export var ProfileAnnotation = styled.span(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: block;\n\n color: ", ";\n font-size: ", ";\n line-height: ", ";\n"], ["\n display: block;\n\n color: ", ";\n font-size: ", ";\n line-height: ", ";\n"])), function (_a) {
28
+ var theme = _a.theme;
29
+ return theme.palette.grey[500];
30
+ }, function (_a) {
31
+ var theme = _a.theme;
32
+ return theme.typography.pxToRem(12);
33
+ }, function (_a) {
34
+ var theme = _a.theme;
35
+ return theme.typography.pxToRem(16);
36
+ });
37
+ export var ProfileChevron = styled(ChevronDOutlineMd)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n transform: ", ";\n\n transition: ", ";\n"], ["\n transform: ", ";\n\n transition: ", ";\n"])), function (_a) {
38
+ var open = _a.open;
39
+ return open ? 'rotateZ(180deg)' : ' rotateZ(0deg)';
40
+ }, function (_a) {
41
+ var theme = _a.theme;
42
+ return theme.transitions.create('transform', {
43
+ easing: theme.transitions.easing.sharp,
44
+ duration: theme.transitions.duration.enteringScreen,
45
+ });
46
+ });
47
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { AvatarProps, MenuProps } from '@mui/material';
3
+ export declare type ProfileProps = {
4
+ /**
5
+ * Имя профиля
6
+ */
7
+ displayName: string;
8
+ /**
9
+ * Дополнительная информация (например email или username)
10
+ */
11
+ annotation?: string;
12
+ /**
13
+ * Аватарка профиля
14
+ */
15
+ avatar?: AvatarProps;
16
+ /**
17
+ * Выпадающее меню
18
+ */
19
+ menu: React.FC<MenuProps>;
20
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
1
  export * from './Typography';
2
+ export * from './types';
@@ -1 +1,2 @@
1
1
  export * from './Typography';
2
+ export * from './types';
package/esm/index.d.ts CHANGED
@@ -30,6 +30,7 @@ export * from './MaskField';
30
30
  export * from './Menu';
31
31
  export * from './MenuItem';
32
32
  export * from './MenuList';
33
+ export * from './MenuGroup';
33
34
  export * from './Placeholder';
34
35
  export * from './Product';
35
36
  export * from './Select';
@@ -49,4 +50,5 @@ export * from './SideDialogActions';
49
50
  export * from './SideDialogContent';
50
51
  export * from './SideDialogContentText';
51
52
  export * from './DatePicker';
53
+ export * from './Notification';
52
54
  export * from './LocalizationProvider';
package/esm/index.js CHANGED
@@ -30,6 +30,7 @@ export * from './MaskField';
30
30
  export * from './Menu';
31
31
  export * from './MenuItem';
32
32
  export * from './MenuList';
33
+ export * from './MenuGroup';
33
34
  export * from './Placeholder';
34
35
  export * from './Product';
35
36
  export * from './Select';
@@ -49,4 +50,5 @@ export * from './SideDialogActions';
49
50
  export * from './SideDialogContent';
50
51
  export * from './SideDialogContentText';
51
52
  export * from './DatePicker';
53
+ export * from './Notification';
52
54
  export * from './LocalizationProvider';
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiMenu: Components<Theme>['MuiMenu'];
4
+ export default MuiMenu;
@@ -0,0 +1,24 @@
1
+ export var MuiMenu = {
2
+ defaultProps: {
3
+ autoFocus: false,
4
+ },
5
+ styleOverrides: {
6
+ paper: function (_a) {
7
+ var theme = _a.theme;
8
+ return {
9
+ marginTop: theme.spacing(2),
10
+ '&.MuiPaper-root': {
11
+ borderRadius: theme.shape.small,
12
+ boxShadow: theme.elevation[200],
13
+ },
14
+ };
15
+ },
16
+ list: function (_a) {
17
+ var theme = _a.theme;
18
+ return {
19
+ padding: theme.spacing(1, 0),
20
+ };
21
+ },
22
+ },
23
+ };
24
+ export default MuiMenu;
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiMenuItem: Components<Theme>['MuiMenuItem'];
4
+ export default MuiMenuItem;
@@ -0,0 +1,13 @@
1
+ export var MuiMenuItem = {
2
+ styleOverrides: {
3
+ root: function (_a) {
4
+ var theme = _a.theme;
5
+ return {
6
+ '&:hover': {
7
+ backgroundColor: theme.palette.background.elementHover,
8
+ },
9
+ };
10
+ },
11
+ },
12
+ };
13
+ export default MuiMenuItem;
@@ -18,6 +18,8 @@ import { MuiTableHead } from './MuiTableHead';
18
18
  import { MuiPickersDay } from './MuiPickersDay';
19
19
  import { MuiCalendarPicker } from './MuiCalendarPicker';
20
20
  import { MuiYearPicker } from './MuiYearPicker';
21
+ import { MuiMenu } from './MuiMenu';
22
+ import { MuiMenuItem } from './MuiMenuItem';
21
23
  import { MuiCircularProgress } from './MuiCircularProgress';
22
24
  var getMuiCssBaseline = function (fontUrls) { return ({
23
25
  styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face { \n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
@@ -32,41 +34,6 @@ var MuiRadio = {
32
34
  disableRipple: true,
33
35
  },
34
36
  };
35
- var MuiMenu = {
36
- defaultProps: {
37
- autoFocus: false,
38
- },
39
- styleOverrides: {
40
- paper: function (_a) {
41
- var theme = _a.theme;
42
- return {
43
- marginTop: theme.spacing(2),
44
- '&.MuiPaper-root': {
45
- borderRadius: theme.shape.small,
46
- boxShadow: theme.elevation[200],
47
- },
48
- };
49
- },
50
- list: function (_a) {
51
- var theme = _a.theme;
52
- return {
53
- padding: theme.spacing(1, 0),
54
- };
55
- },
56
- },
57
- };
58
- var MuiMenuItem = {
59
- styleOverrides: {
60
- root: function (_a) {
61
- var theme = _a.theme;
62
- return {
63
- '&:hover': {
64
- backgroundColor: theme.palette.background.elementHover,
65
- },
66
- };
67
- },
68
- },
69
- };
70
37
  export var getComponents = function (fontUrls) { return ({
71
38
  MuiCssBaseline: getMuiCssBaseline(fontUrls),
72
39
  MuiButton: MuiButton,
package/index.d.ts CHANGED
@@ -30,6 +30,7 @@ export * from './MaskField';
30
30
  export * from './Menu';
31
31
  export * from './MenuItem';
32
32
  export * from './MenuList';
33
+ export * from './MenuGroup';
33
34
  export * from './Placeholder';
34
35
  export * from './Product';
35
36
  export * from './Select';
@@ -49,4 +50,5 @@ export * from './SideDialogActions';
49
50
  export * from './SideDialogContent';
50
51
  export * from './SideDialogContentText';
51
52
  export * from './DatePicker';
53
+ export * from './Notification';
52
54
  export * from './LocalizationProvider';
package/index.js CHANGED
@@ -42,6 +42,7 @@ __exportStar(require("./MaskField"), exports);
42
42
  __exportStar(require("./Menu"), exports);
43
43
  __exportStar(require("./MenuItem"), exports);
44
44
  __exportStar(require("./MenuList"), exports);
45
+ __exportStar(require("./MenuGroup"), exports);
45
46
  __exportStar(require("./Placeholder"), exports);
46
47
  __exportStar(require("./Product"), exports);
47
48
  __exportStar(require("./Select"), exports);
@@ -61,4 +62,5 @@ __exportStar(require("./SideDialogActions"), exports);
61
62
  __exportStar(require("./SideDialogContent"), exports);
62
63
  __exportStar(require("./SideDialogContentText"), exports);
63
64
  __exportStar(require("./DatePicker"), exports);
65
+ __exportStar(require("./Notification"), exports);
64
66
  __exportStar(require("./LocalizationProvider"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.25.0",
3
+ "version": "0.28.0",
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.25.0",
11
+ "@astral/icons": "^0.28.0",
12
12
  "@emotion/cache": "11.7.1",
13
13
  "@emotion/react": "11.8.1",
14
14
  "@emotion/server": "11.4.0",
@@ -18,7 +18,8 @@
18
18
  "@mui/material": "5.4.3",
19
19
  "date-fns": "^2.28.0",
20
20
  "lodash-es": "4.17.21",
21
- "react-imask": "^6.4.2"
21
+ "react-imask": "^6.4.2",
22
+ "react-toastify": "^9.0.0-rc-2"
22
23
  },
23
24
  "peerDependencies": {
24
25
  "react": "^17.0.0"
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiMenu: Components<Theme>['MuiMenu'];
4
+ export default MuiMenu;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiMenu = void 0;
4
+ exports.MuiMenu = {
5
+ defaultProps: {
6
+ autoFocus: false,
7
+ },
8
+ styleOverrides: {
9
+ paper: function (_a) {
10
+ var theme = _a.theme;
11
+ return {
12
+ marginTop: theme.spacing(2),
13
+ '&.MuiPaper-root': {
14
+ borderRadius: theme.shape.small,
15
+ boxShadow: theme.elevation[200],
16
+ },
17
+ };
18
+ },
19
+ list: function (_a) {
20
+ var theme = _a.theme;
21
+ return {
22
+ padding: theme.spacing(1, 0),
23
+ };
24
+ },
25
+ },
26
+ };
27
+ exports.default = exports.MuiMenu;
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiMenuItem: Components<Theme>['MuiMenuItem'];
4
+ export default MuiMenuItem;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiMenuItem = void 0;
4
+ exports.MuiMenuItem = {
5
+ styleOverrides: {
6
+ root: function (_a) {
7
+ var theme = _a.theme;
8
+ return {
9
+ '&:hover': {
10
+ backgroundColor: theme.palette.background.elementHover,
11
+ },
12
+ };
13
+ },
14
+ },
15
+ };
16
+ exports.default = exports.MuiMenuItem;
@@ -21,6 +21,8 @@ var MuiTableHead_1 = require("./MuiTableHead");
21
21
  var MuiPickersDay_1 = require("./MuiPickersDay");
22
22
  var MuiCalendarPicker_1 = require("./MuiCalendarPicker");
23
23
  var MuiYearPicker_1 = require("./MuiYearPicker");
24
+ var MuiMenu_1 = require("./MuiMenu");
25
+ var MuiMenuItem_1 = require("./MuiMenuItem");
24
26
  var MuiCircularProgress_1 = require("./MuiCircularProgress");
25
27
  var getMuiCssBaseline = function (fontUrls) { return ({
26
28
  styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face { \n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
@@ -35,41 +37,6 @@ var MuiRadio = {
35
37
  disableRipple: true,
36
38
  },
37
39
  };
38
- var MuiMenu = {
39
- defaultProps: {
40
- autoFocus: false,
41
- },
42
- styleOverrides: {
43
- paper: function (_a) {
44
- var theme = _a.theme;
45
- return {
46
- marginTop: theme.spacing(2),
47
- '&.MuiPaper-root': {
48
- borderRadius: theme.shape.small,
49
- boxShadow: theme.elevation[200],
50
- },
51
- };
52
- },
53
- list: function (_a) {
54
- var theme = _a.theme;
55
- return {
56
- padding: theme.spacing(1, 0),
57
- };
58
- },
59
- },
60
- };
61
- var MuiMenuItem = {
62
- styleOverrides: {
63
- root: function (_a) {
64
- var theme = _a.theme;
65
- return {
66
- '&:hover': {
67
- backgroundColor: theme.palette.background.elementHover,
68
- },
69
- };
70
- },
71
- },
72
- };
73
40
  var getComponents = function (fontUrls) { return ({
74
41
  MuiCssBaseline: getMuiCssBaseline(fontUrls),
75
42
  MuiButton: MuiButton_1.MuiButton,
@@ -83,8 +50,8 @@ var getComponents = function (fontUrls) { return ({
83
50
  MuiFormHelperText: MuiFormHelperText_1.MuiFormHelperText,
84
51
  MuiAutocomplete: MuiAutocomplete_1.MuiAutocomplete,
85
52
  MuiCheckbox: MuiCheckbox,
86
- MuiMenu: MuiMenu,
87
- MuiMenuItem: MuiMenuItem,
53
+ MuiMenu: MuiMenu_1.MuiMenu,
54
+ MuiMenuItem: MuiMenuItem_1.MuiMenuItem,
88
55
  MuiRadio: MuiRadio,
89
56
  MuiDialog: MuiDialog_1.MuiDialog,
90
57
  MuiDialogTitle: MuiDialogTitle_1.MuiDialogTitle,