@astral/ui 0.46.1 → 0.48.1

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 (217) hide show
  1. package/Chevron/styles.d.ts +1 -1
  2. package/Collapse/Collapse.d.ts +2 -3
  3. package/Collapse/Collapse.js +2 -17
  4. package/DashboardLayout/DashboardLayout.d.ts +1 -1
  5. package/DashboardLayout/DashboardLayout.js +2 -2
  6. package/DashboardLayout/DashboardLayoutStory.d.ts +2 -0
  7. package/DashboardLayout/DashboardLayoutStory.js +2 -7
  8. package/DashboardLayout/Header/Header.js +2 -2
  9. package/DashboardLayout/Header/{styled.d.ts → styles.d.ts} +0 -0
  10. package/DashboardLayout/Header/{styled.js → styles.js} +1 -1
  11. package/DashboardLayout/Sidebar/Sidebar.d.ts +16 -4
  12. package/DashboardLayout/Sidebar/Sidebar.js +14 -5
  13. package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.d.ts +5 -0
  14. package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +20 -0
  15. package/DashboardLayout/Sidebar/SidebarNav/index.d.ts +1 -0
  16. package/DashboardLayout/Sidebar/SidebarNav/index.js +17 -0
  17. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +6 -0
  18. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +33 -0
  19. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/index.d.ts +1 -0
  20. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/index.js +17 -0
  21. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +4 -0
  22. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +14 -0
  23. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.d.ts +6 -0
  24. package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +25 -0
  25. package/DashboardLayout/Sidebar/SidebarToggler/index.d.ts +1 -0
  26. package/DashboardLayout/Sidebar/SidebarToggler/index.js +17 -0
  27. package/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +8 -0
  28. package/DashboardLayout/Sidebar/SidebarToggler/styled.js +15 -0
  29. package/DashboardLayout/Sidebar/styles.d.ts +7 -0
  30. package/DashboardLayout/Sidebar/{styled.js → styles.js} +12 -8
  31. package/DashboardLayout/{styled.d.ts → styles.d.ts} +0 -0
  32. package/DashboardLayout/{styled.js → styles.js} +1 -1
  33. package/DataGridPagination/styled.d.ts +5 -13
  34. package/DatePicker/DatePickerHeader/styled.d.ts +5 -13
  35. package/FormHelperText/styled.d.ts +2 -2
  36. package/List/List.d.ts +2 -1
  37. package/List/List.js +5 -2
  38. package/List/index.d.ts +0 -1
  39. package/List/index.js +0 -1
  40. package/ListItem/ListItem.js +2 -2
  41. package/ListItem/{styled.d.ts → styles.d.ts} +0 -0
  42. package/ListItem/{styled.js → styles.js} +0 -0
  43. package/ListItemButton/ListItemButton.d.ts +6 -3
  44. package/ListItemButton/ListItemButton.js +5 -17
  45. package/ListItemIcon/ListItemIcon.d.ts +1 -1
  46. package/ListItemIcon/ListItemIcon.js +4 -16
  47. package/ListItemText/ListItemText.d.ts +3 -2
  48. package/ListItemText/ListItemText.js +5 -14
  49. package/MenuGroup/stories/Icons.js +7 -7
  50. package/MenuGroup/stories/styled.d.ts +5 -13
  51. package/MenuGroup/styled.d.ts +5 -13
  52. package/NavMenu/NavMenu.d.ts +10 -0
  53. package/NavMenu/NavMenu.js +24 -0
  54. package/NavMenu/NavMenuItem/NavMenuItem.d.ts +16 -0
  55. package/NavMenu/NavMenuItem/NavMenuItem.js +40 -0
  56. package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.d.ts +11 -0
  57. package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +34 -0
  58. package/NavMenu/NavMenuItem/NavMenuItemButton/index.d.ts +1 -0
  59. package/NavMenu/NavMenuItem/NavMenuItemButton/index.js +17 -0
  60. package/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +29 -0
  61. package/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +46 -0
  62. package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.d.ts +13 -0
  63. package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +26 -0
  64. package/NavMenu/NavMenuItem/NavMenuItemList/index.d.ts +1 -0
  65. package/NavMenu/NavMenuItem/NavMenuItemList/index.js +17 -0
  66. package/NavMenu/NavMenuItem/index.d.ts +1 -0
  67. package/NavMenu/NavMenuItem/index.js +17 -0
  68. package/NavMenu/index.d.ts +1 -0
  69. package/NavMenu/index.js +17 -0
  70. package/Notification/NotificationTemplate/styled.d.ts +6 -14
  71. package/Notification/styled.d.ts +4 -4
  72. package/OverflowTypography/OverflowTypography.d.ts +1 -1
  73. package/OverflowTypography/styles.d.ts +5 -13
  74. package/OverflowTypography/styles.js +1 -1
  75. package/Placeholder/styles.d.ts +10 -26
  76. package/Tooltip/Tooltip.js +6 -3
  77. package/Typography/Typography.d.ts +4 -1
  78. package/Typography/Typography.js +37 -4
  79. package/Typography/enums.d.ts +10 -0
  80. package/Typography/enums.js +14 -0
  81. package/Typography/types.d.ts +10 -3
  82. package/esm/Chevron/styles.d.ts +1 -1
  83. package/esm/Collapse/Collapse.d.ts +2 -3
  84. package/esm/Collapse/Collapse.js +2 -16
  85. package/esm/DashboardLayout/DashboardLayout.d.ts +1 -1
  86. package/esm/DashboardLayout/DashboardLayout.js +1 -1
  87. package/esm/DashboardLayout/DashboardLayoutStory.d.ts +2 -0
  88. package/esm/DashboardLayout/DashboardLayoutStory.js +2 -7
  89. package/esm/DashboardLayout/Header/Header.js +1 -1
  90. package/esm/DashboardLayout/Header/{styled.d.ts → styles.d.ts} +0 -0
  91. package/esm/DashboardLayout/Header/{styled.js → styles.js} +1 -1
  92. package/esm/DashboardLayout/Sidebar/Sidebar.d.ts +16 -4
  93. package/esm/DashboardLayout/Sidebar/Sidebar.js +14 -5
  94. package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.d.ts +5 -0
  95. package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +17 -0
  96. package/esm/DashboardLayout/Sidebar/SidebarNav/index.d.ts +1 -0
  97. package/esm/DashboardLayout/Sidebar/SidebarNav/index.js +1 -0
  98. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +6 -0
  99. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +30 -0
  100. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/index.d.ts +1 -0
  101. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/index.js +1 -0
  102. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +4 -0
  103. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +11 -0
  104. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.d.ts +6 -0
  105. package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +22 -0
  106. package/esm/DashboardLayout/Sidebar/SidebarToggler/index.d.ts +1 -0
  107. package/esm/DashboardLayout/Sidebar/SidebarToggler/index.js +1 -0
  108. package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +8 -0
  109. package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.js +12 -0
  110. package/esm/DashboardLayout/Sidebar/styles.d.ts +7 -0
  111. package/esm/DashboardLayout/Sidebar/{styled.js → styles.js} +11 -7
  112. package/esm/DashboardLayout/{styled.d.ts → styles.d.ts} +0 -0
  113. package/esm/DashboardLayout/{styled.js → styles.js} +1 -1
  114. package/esm/DataGridPagination/styled.d.ts +5 -13
  115. package/esm/DatePicker/DatePickerHeader/styled.d.ts +5 -13
  116. package/esm/FormHelperText/styled.d.ts +2 -2
  117. package/esm/List/List.d.ts +2 -1
  118. package/esm/List/List.js +2 -2
  119. package/esm/List/index.d.ts +0 -1
  120. package/esm/List/index.js +0 -1
  121. package/esm/ListItem/ListItem.js +1 -1
  122. package/esm/ListItem/{styled.d.ts → styles.d.ts} +0 -0
  123. package/esm/ListItem/{styled.js → styles.js} +0 -0
  124. package/esm/ListItemButton/ListItemButton.d.ts +6 -3
  125. package/esm/ListItemButton/ListItemButton.js +5 -16
  126. package/esm/ListItemIcon/ListItemIcon.d.ts +1 -1
  127. package/esm/ListItemIcon/ListItemIcon.js +4 -15
  128. package/esm/ListItemText/ListItemText.d.ts +3 -2
  129. package/esm/ListItemText/ListItemText.js +3 -15
  130. package/esm/MenuGroup/stories/Icons.js +7 -7
  131. package/esm/MenuGroup/stories/styled.d.ts +5 -13
  132. package/esm/MenuGroup/styled.d.ts +5 -13
  133. package/esm/NavMenu/NavMenu.d.ts +10 -0
  134. package/esm/NavMenu/NavMenu.js +21 -0
  135. package/esm/NavMenu/NavMenuItem/NavMenuItem.d.ts +16 -0
  136. package/esm/NavMenu/NavMenuItem/NavMenuItem.js +36 -0
  137. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.d.ts +11 -0
  138. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +31 -0
  139. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/index.d.ts +1 -0
  140. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/index.js +1 -0
  141. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +29 -0
  142. package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +43 -0
  143. package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.d.ts +13 -0
  144. package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +22 -0
  145. package/esm/NavMenu/NavMenuItem/NavMenuItemList/index.d.ts +1 -0
  146. package/esm/NavMenu/NavMenuItem/NavMenuItemList/index.js +1 -0
  147. package/esm/NavMenu/NavMenuItem/index.d.ts +1 -0
  148. package/esm/NavMenu/NavMenuItem/index.js +1 -0
  149. package/esm/NavMenu/index.d.ts +1 -0
  150. package/esm/NavMenu/index.js +1 -0
  151. package/esm/Notification/NotificationTemplate/styled.d.ts +6 -14
  152. package/esm/Notification/styled.d.ts +4 -4
  153. package/esm/OverflowTypography/OverflowTypography.d.ts +1 -1
  154. package/esm/OverflowTypography/styles.d.ts +5 -13
  155. package/esm/OverflowTypography/styles.js +1 -1
  156. package/esm/Placeholder/styles.d.ts +10 -26
  157. package/esm/Tooltip/Tooltip.js +6 -3
  158. package/esm/Typography/Typography.d.ts +4 -1
  159. package/esm/Typography/Typography.js +37 -1
  160. package/esm/Typography/enums.d.ts +10 -0
  161. package/esm/Typography/enums.js +11 -0
  162. package/esm/Typography/types.d.ts +10 -3
  163. package/esm/hooks/index.d.ts +1 -0
  164. package/esm/hooks/index.js +1 -0
  165. package/esm/hooks/useLocalStorage/index.d.ts +1 -0
  166. package/esm/hooks/useLocalStorage/index.js +1 -0
  167. package/esm/hooks/useLocalStorage/useLocalStorage.d.ts +1 -0
  168. package/esm/hooks/useLocalStorage/useLocalStorage.js +1 -0
  169. package/esm/index.d.ts +1 -0
  170. package/esm/index.js +1 -0
  171. package/esm/theme/components/MuiButton.js +1 -0
  172. package/esm/theme/components/MuiListItemButton.d.ts +3 -0
  173. package/esm/theme/components/MuiListItemButton.js +13 -0
  174. package/esm/theme/components/MuiListItemText.d.ts +3 -0
  175. package/esm/theme/components/MuiListItemText.js +12 -0
  176. package/esm/theme/components/components.js +4 -0
  177. package/hooks/index.d.ts +1 -0
  178. package/hooks/index.js +1 -0
  179. package/hooks/useLocalStorage/index.d.ts +1 -0
  180. package/hooks/useLocalStorage/index.js +17 -0
  181. package/hooks/useLocalStorage/useLocalStorage.d.ts +1 -0
  182. package/hooks/useLocalStorage/useLocalStorage.js +5 -0
  183. package/index.d.ts +1 -0
  184. package/index.js +1 -0
  185. package/package.json +4 -3
  186. package/theme/components/MuiButton.js +1 -0
  187. package/theme/components/MuiListItemButton.d.ts +3 -0
  188. package/theme/components/MuiListItemButton.js +16 -0
  189. package/theme/components/MuiListItemText.d.ts +3 -0
  190. package/theme/components/MuiListItemText.js +15 -0
  191. package/theme/components/components.js +4 -0
  192. package/Collapse/styles.d.ts +0 -3
  193. package/Collapse/styles.js +0 -11
  194. package/DashboardLayout/Sidebar/styled.d.ts +0 -8
  195. package/List/styles.d.ts +0 -15
  196. package/List/styles.js +0 -11
  197. package/List/types.d.ts +0 -4
  198. package/List/types.js +0 -2
  199. package/ListItemButton/styled.d.ts +0 -35
  200. package/ListItemButton/styled.js +0 -49
  201. package/ListItemButton/types.d.ts +0 -2
  202. package/ListItemButton/types.js +0 -2
  203. package/ListItemText/styles.d.ts +0 -7
  204. package/ListItemText/styles.js +0 -11
  205. package/esm/Collapse/styles.d.ts +0 -3
  206. package/esm/Collapse/styles.js +0 -8
  207. package/esm/DashboardLayout/Sidebar/styled.d.ts +0 -8
  208. package/esm/List/styles.d.ts +0 -15
  209. package/esm/List/styles.js +0 -8
  210. package/esm/List/types.d.ts +0 -4
  211. package/esm/List/types.js +0 -1
  212. package/esm/ListItemButton/styled.d.ts +0 -35
  213. package/esm/ListItemButton/styled.js +0 -44
  214. package/esm/ListItemButton/types.d.ts +0 -2
  215. package/esm/ListItemButton/types.js +0 -1
  216. package/esm/ListItemText/styles.d.ts +0 -7
  217. package/esm/ListItemText/styles.js +0 -8
@@ -20,5 +20,5 @@ declare type TooltipCustomizable = {
20
20
  export declare type OverflowedElementProps = OverflowedProps & TooltipCustomizable & TypographyProps;
21
21
  export declare type OverflowedTypographyProps = PropsWithChildren<OverflowedElementProps>;
22
22
  export declare const DEFAULT_ROWS_COUNT = 1;
23
- export declare const OverflowTypography: import("react").ForwardRefExoticComponent<Pick<OverflowedTypographyProps, "tabIndex" | "children" | "slot" | "title" | "key" | "css" | "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" | "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" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "rowsCount" | "tooltipProps"> & import("react").RefAttributes<HTMLElement>>;
23
+ export declare const OverflowTypography: import("react").ForwardRefExoticComponent<Pick<OverflowedTypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement>>;
24
24
  export {};
@@ -1,17 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { OverflowedProps } from './OverflowTypography';
3
- export declare const OverflowTypographyWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
4
- align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
5
- children?: import("react").ReactNode;
6
- classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
7
- gutterBottom?: boolean | undefined;
8
- noWrap?: boolean | undefined;
9
- paragraph?: boolean | undefined;
10
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
11
- variant?: "inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div" | undefined;
12
- variantMapping?: Partial<Record<"inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div", string>> | undefined;
13
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
14
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
15
- }, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
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
+ } & {
16
8
  theme?: import("@emotion/react").Theme | undefined;
17
9
  } & 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,34 +11,18 @@ 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<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
15
- align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
16
- children?: import("react").ReactNode;
17
- classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
18
- gutterBottom?: boolean | undefined;
19
- noWrap?: boolean | undefined;
20
- paragraph?: boolean | undefined;
21
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
22
- variant?: "inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div" | undefined;
23
- variantMapping?: Partial<Record<"inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div", string>> | undefined;
24
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
25
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
26
- }, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
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
+ } & {
27
19
  theme?: import("@emotion/react").Theme | undefined;
28
20
  }, {}, {}>;
29
- export declare const PlaceholderDescription: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
30
- align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
31
- children?: import("react").ReactNode;
32
- classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
33
- gutterBottom?: boolean | undefined;
34
- noWrap?: boolean | undefined;
35
- paragraph?: boolean | undefined;
36
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
37
- variant?: "inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div" | undefined;
38
- variantMapping?: Partial<Record<"inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div", string>> | undefined;
39
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
40
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
41
- }, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
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
+ } & {
42
26
  theme?: import("@emotion/react").Theme | undefined;
43
27
  }, {}, {}>;
44
28
  export declare const PlaceholderActions: import("@emotion/styled").StyledComponent<{
@@ -24,7 +24,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { forwardRef } from 'react';
25
25
  import { StyledTooltip } from './styled';
26
26
  import { TooltipSizes } from './constants';
27
- export var Tooltip = forwardRef(function (_a, ref) {
28
- var children = _a.children, _b = _a.placement, placement = _b === void 0 ? 'top' : _b, _c = _a.size, size = _c === void 0 ? TooltipSizes.MEDIUM : _c, props = __rest(_a, ["children", "placement", "size"]);
29
- return (_jsx(StyledTooltip, __assign({ ref: ref, size: size, placement: placement }, props, { children: children })));
27
+ export var Tooltip = forwardRef(function (props, ref) {
28
+ var title = props.title, _a = props.placement, placement = _a === void 0 ? 'top' : _a, _b = props.size, size = _b === void 0 ? TooltipSizes.MEDIUM : _b, children = props.children, restProps = __rest(props, ["title", "placement", "size", "children"]);
29
+ if (title) {
30
+ return (_jsx(StyledTooltip, __assign({ ref: ref, title: title, size: size, placement: placement }, restProps, { children: children })));
31
+ }
32
+ return children;
30
33
  });
@@ -1 +1,4 @@
1
- export { default as Typography } from '@mui/material/Typography';
1
+ /// <reference types="react" />
2
+ import { TypographyProps } from './types';
3
+ export declare const Typography: ({ children, color, ...props }: TypographyProps) => JSX.Element;
4
+ export default Typography;
@@ -1 +1,37 @@
1
- export { default as Typography } from '@mui/material/Typography';
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { Typography as MuiTypography } from '@mui/material';
25
+ import { useMemo } from 'react';
26
+ import { TypographyColors } from './enums';
27
+ export var Typography = function (_a) {
28
+ var children = _a.children, color = _a.color, props = __rest(_a, ["children", "color"]);
29
+ var typographyColor = useMemo(function () {
30
+ if (typeof color === 'function') {
31
+ return color;
32
+ }
33
+ return (color && TypographyColors[color]) || color;
34
+ }, [color]);
35
+ return (_jsx(MuiTypography, __assign({}, props, { color: typographyColor }, { children: children })));
36
+ };
37
+ export default Typography;
@@ -0,0 +1,10 @@
1
+ export declare enum TypographyColors {
2
+ text = "text",
3
+ secondary = "secondary",
4
+ primary = "primary",
5
+ error = "error",
6
+ success = "success.main",
7
+ warning = "warning.main",
8
+ info = "info.main",
9
+ textSecondary = "text.secondary"
10
+ }
@@ -0,0 +1,11 @@
1
+ export var TypographyColors;
2
+ (function (TypographyColors) {
3
+ TypographyColors["text"] = "text";
4
+ TypographyColors["secondary"] = "secondary";
5
+ TypographyColors["primary"] = "primary";
6
+ TypographyColors["error"] = "error";
7
+ TypographyColors["success"] = "success.main";
8
+ TypographyColors["warning"] = "warning.main";
9
+ TypographyColors["info"] = "info.main";
10
+ TypographyColors["textSecondary"] = "text.secondary";
11
+ })(TypographyColors || (TypographyColors = {}));
@@ -1,5 +1,9 @@
1
- import { TypographyProps as MuiTypographyProps } from '@mui/material/Typography';
1
+ import { OverrideProps } from '@mui/material/OverridableComponent';
2
+ import { TypographyPropsVariantOverrides, TypographyTypeMap } from '@mui/material/Typography';
2
3
  import { Variant } from '@mui/material/styles/createTypography';
4
+ import * as React from 'react';
5
+ import { Theme } from '../theme';
6
+ import { TypographyColors } from './enums';
3
7
  declare module '@mui/material/Typography' {
4
8
  interface TypographyPropsVariantOverrides {
5
9
  h7: true;
@@ -13,6 +17,9 @@ declare module '@mui/material/Typography' {
13
17
  div: true;
14
18
  }
15
19
  }
16
- export declare type TypographyProps = Omit<MuiTypographyProps, 'variant'> & {
17
- variant?: Variant | 'h7' | 'h8' | 'h9' | 'ui' | 'link' | 'pointer' | 'small' | 'code' | 'div';
20
+ export declare type TypographyColor = keyof typeof TypographyColors;
21
+ export declare type TypographyProps = Omit<OverrideProps<TypographyTypeMap, React.ElementType>, 'variant' | 'color'> & {
22
+ variant?: Variant | keyof TypographyPropsVariantOverrides;
23
+ component?: React.ElementType;
24
+ color?: TypographyColor | ((theme: Theme) => string);
18
25
  };
@@ -1 +1,2 @@
1
+ export * from './useLocalStorage';
1
2
  export * from './useMenu';
@@ -1 +1,2 @@
1
+ export * from './useLocalStorage';
1
2
  export * from './useMenu';
@@ -0,0 +1 @@
1
+ export * from './useLocalStorage';
@@ -0,0 +1 @@
1
+ export * from './useLocalStorage';
@@ -0,0 +1 @@
1
+ export { useLocalStorage } from 'react-use';
@@ -0,0 +1 @@
1
+ export { useLocalStorage } from 'react-use';
package/esm/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './ActionCell';
2
2
  export * from './Autocomplete';
3
3
  export * from './Badge';
4
4
  export * from './Button';
5
+ export * from './Divider';
5
6
  export * from './ButtonBase';
6
7
  export * from './Checkbox';
7
8
  export * from './CircularProgress';
package/esm/index.js CHANGED
@@ -2,6 +2,7 @@ export * from './ActionCell';
2
2
  export * from './Autocomplete';
3
3
  export * from './Badge';
4
4
  export * from './Button';
5
+ export * from './Divider';
5
6
  export * from './ButtonBase';
6
7
  export * from './Checkbox';
7
8
  export * from './CircularProgress';
@@ -12,6 +12,7 @@ export var MuiButton = {
12
12
  var selected = ownerState.selected;
13
13
  return {
14
14
  display: 'inline-flex',
15
+ gap: theme.spacing(1),
15
16
  color: getColor({
16
17
  selected: selected,
17
18
  theme: theme,
@@ -0,0 +1,3 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiListItemButton: Components<Theme>['MuiListItemButton'];
@@ -0,0 +1,13 @@
1
+ export var MuiListItemButton = {
2
+ styleOverrides: {
3
+ root: function (_a) {
4
+ var theme = _a.theme;
5
+ return {
6
+ '&.Mui-selected': {
7
+ color: theme.palette.primary[800],
8
+ backgroundColor: theme.palette.grey[100],
9
+ },
10
+ };
11
+ },
12
+ },
13
+ };
@@ -0,0 +1,3 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiListItemText: Components<Theme>['MuiListItemText'];
@@ -0,0 +1,12 @@
1
+ export var MuiListItemText = {
2
+ styleOverrides: {
3
+ root: function () {
4
+ return {
5
+ overflow: 'hidden',
6
+ whiteSpace: 'nowrap',
7
+ textAlign: 'left',
8
+ textOverflow: 'ellipsis',
9
+ };
10
+ },
11
+ },
12
+ };
@@ -19,6 +19,8 @@ import { MuiTableRow } from './MuiTableRow';
19
19
  import { MuiMenu } from './MuiMenu';
20
20
  import { MuiMenuItem } from './MuiMenuItem';
21
21
  import { MuiCircularProgress } from './MuiCircularProgress';
22
+ import { MuiListItemButton } from './MuiListItemButton';
23
+ import { MuiListItemText } from './MuiListItemText';
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 "),
24
26
  }); };
@@ -57,4 +59,6 @@ export var getComponents = function (fontUrls) { return ({
57
59
  MuiTableRow: MuiTableRow,
58
60
  MuiPaginationItem: MuiPaginationItem,
59
61
  MuiCircularProgress: MuiCircularProgress,
62
+ MuiListItemButton: MuiListItemButton,
63
+ MuiListItemText: MuiListItemText,
60
64
  }); };
package/hooks/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export * from './useLocalStorage';
1
2
  export * from './useMenu';
package/hooks/index.js CHANGED
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./useLocalStorage"), exports);
17
18
  __exportStar(require("./useMenu"), exports);
@@ -0,0 +1 @@
1
+ export * from './useLocalStorage';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./useLocalStorage"), exports);
@@ -0,0 +1 @@
1
+ export { useLocalStorage } from 'react-use';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useLocalStorage = void 0;
4
+ var react_use_1 = require("react-use");
5
+ Object.defineProperty(exports, "useLocalStorage", { enumerable: true, get: function () { return react_use_1.useLocalStorage; } });
package/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './ActionCell';
2
2
  export * from './Autocomplete';
3
3
  export * from './Badge';
4
4
  export * from './Button';
5
+ export * from './Divider';
5
6
  export * from './ButtonBase';
6
7
  export * from './Checkbox';
7
8
  export * from './CircularProgress';
package/index.js CHANGED
@@ -18,6 +18,7 @@ __exportStar(require("./ActionCell"), exports);
18
18
  __exportStar(require("./Autocomplete"), exports);
19
19
  __exportStar(require("./Badge"), exports);
20
20
  __exportStar(require("./Button"), exports);
21
+ __exportStar(require("./Divider"), exports);
21
22
  __exportStar(require("./ButtonBase"), exports);
22
23
  __exportStar(require("./Checkbox"), exports);
23
24
  __exportStar(require("./CircularProgress"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.46.1",
3
+ "version": "0.48.1",
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.46.1",
11
+ "@astral/icons": "^0.48.1",
12
12
  "@emotion/cache": "11.7.1",
13
13
  "@emotion/react": "11.9.0",
14
14
  "@emotion/server": "11.4.0",
@@ -20,7 +20,8 @@
20
20
  "lodash-es": "4.17.21",
21
21
  "react-datepicker": "4.7.0",
22
22
  "react-imask": "^6.4.2",
23
- "react-toastify": "9.0.3"
23
+ "react-toastify": "9.0.3",
24
+ "react-use": "^17.4.0"
24
25
  },
25
26
  "peerDependencies": {
26
27
  "react": ">=17.0.0"
@@ -15,6 +15,7 @@ exports.MuiButton = {
15
15
  var selected = ownerState.selected;
16
16
  return {
17
17
  display: 'inline-flex',
18
+ gap: theme.spacing(1),
18
19
  color: (0, styled_1.getColor)({
19
20
  selected: selected,
20
21
  theme: theme,
@@ -0,0 +1,3 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiListItemButton: Components<Theme>['MuiListItemButton'];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiListItemButton = void 0;
4
+ exports.MuiListItemButton = {
5
+ styleOverrides: {
6
+ root: function (_a) {
7
+ var theme = _a.theme;
8
+ return {
9
+ '&.Mui-selected': {
10
+ color: theme.palette.primary[800],
11
+ backgroundColor: theme.palette.grey[100],
12
+ },
13
+ };
14
+ },
15
+ },
16
+ };
@@ -0,0 +1,3 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiListItemText: Components<Theme>['MuiListItemText'];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiListItemText = void 0;
4
+ exports.MuiListItemText = {
5
+ styleOverrides: {
6
+ root: function () {
7
+ return {
8
+ overflow: 'hidden',
9
+ whiteSpace: 'nowrap',
10
+ textAlign: 'left',
11
+ textOverflow: 'ellipsis',
12
+ };
13
+ },
14
+ },
15
+ };
@@ -22,6 +22,8 @@ var MuiTableRow_1 = require("./MuiTableRow");
22
22
  var MuiMenu_1 = require("./MuiMenu");
23
23
  var MuiMenuItem_1 = require("./MuiMenuItem");
24
24
  var MuiCircularProgress_1 = require("./MuiCircularProgress");
25
+ var MuiListItemButton_1 = require("./MuiListItemButton");
26
+ var MuiListItemText_1 = require("./MuiListItemText");
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 "),
27
29
  }); };
@@ -60,5 +62,7 @@ var getComponents = function (fontUrls) { return ({
60
62
  MuiTableRow: MuiTableRow_1.MuiTableRow,
61
63
  MuiPaginationItem: MuiPaginationItem_1.MuiPaginationItem,
62
64
  MuiCircularProgress: MuiCircularProgress_1.MuiCircularProgress,
65
+ MuiListItemButton: MuiListItemButton_1.MuiListItemButton,
66
+ MuiListItemText: MuiListItemText_1.MuiListItemText,
63
67
  }); };
64
68
  exports.getComponents = getComponents;
@@ -1,3 +0,0 @@
1
- export declare const StyledCollapse: import("@emotion/styled").StyledComponent<import("@mui/material").CollapseProps & {
2
- theme?: import("@emotion/react").Theme | undefined;
3
- }, {}, {}>;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.StyledCollapse = void 0;
8
- var material_1 = require("@mui/material");
9
- var styles_1 = require("../styles");
10
- exports.StyledCollapse = (0, styles_1.styled)(material_1.Collapse)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &.MuiCollapse-horizontal {\n .MuiCollapse-wrapperInner {\n width: 100%;\n }\n }\n"], ["\n &.MuiCollapse-horizontal {\n .MuiCollapse-wrapperInner {\n width: 100%;\n }\n }\n"])));
11
- var templateObject_1;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SidebarRoot: 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<HTMLElement>, HTMLElement>, {}>;
6
- export declare const SidebarToggler: import("@emotion/styled").StyledComponent<Pick<import("../../Button").ButtonProps, "disabled" | "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" | "variant" | "size" | "component" | "selected" | 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> & {
7
- theme?: import("@emotion/react").Theme | undefined;
8
- }, {}, {}>;
package/List/styles.d.ts DELETED
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledList: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").ListClasses> | undefined;
5
- dense?: boolean | undefined;
6
- disablePadding?: boolean | undefined;
7
- subheader?: import("react").ReactNode;
8
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLUListElement>> & {
10
- ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
11
- }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "dense" | "subheader" | "disablePadding"> & {
12
- theme?: import("@emotion/react").Theme | undefined;
13
- } & {
14
- collapsed?: boolean | undefined;
15
- }, {}, {}>;
package/List/styles.js DELETED
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.StyledList = void 0;
8
- var material_1 = require("@mui/material");
9
- var styles_1 = require("../styles");
10
- exports.StyledList = (0, styles_1.styled)(material_1.List)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n a {\n display: inline-block;\n width: 100%;\n\n text-decoration: none;\n }\n"], ["\n a {\n display: inline-block;\n width: 100%;\n\n text-decoration: none;\n }\n"])));
11
- var templateObject_1;
package/List/types.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { ListProps as MuiListProps } from '@mui/material';
2
- export declare type ListProps = MuiListProps & {
3
- collapsed?: boolean;
4
- };
package/List/types.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });