@astral/ui 0.46.0 → 0.48.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 (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/hooks/useOverflowed/useOverflowed.js +2 -5
  74. package/OverflowTypography/styles.d.ts +5 -13
  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/hooks/useOverflowed/useOverflowed.js +1 -1
  155. package/esm/OverflowTypography/styles.d.ts +5 -13
  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
@@ -11,7 +11,7 @@ export declare const ChevronWrapper: import("@emotion/styled").StyledComponent<{
11
11
  sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
12
12
  titleAccess?: string | undefined;
13
13
  viewBox?: string | undefined;
14
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "fontSize" | "fontWeight" | "fontFamily" | "href" | "tabIndex" | "to" | "type" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "css" | "name" | "id" | "lang" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cursor" | "direction" | "display" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "values" | "elevation" | "spacing" | "mode" | "local" | "in" | "max" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "numOctaves" | "operator" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
14
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "fontSize" | "fontWeight" | "fontFamily" | "href" | "tabIndex" | "to" | "type" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "css" | "name" | "id" | "lang" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "cursor" | "direction" | "display" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "values" | "elevation" | "spacing" | "mode" | "local" | "in" | "end" | "max" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "numOctaves" | "operator" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
15
15
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
16
16
  }, "fontSize" | "children" | "color" | "shapeRendering" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & {
17
17
  theme?: import("@emotion/react").Theme | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
- import { CollapseProps } from '@mui/material';
3
- export declare const Collapse: (props: CollapseProps) => JSX.Element;
1
+ import { Collapse, CollapseProps } from '@mui/material';
2
+ export { Collapse };
4
3
  export type { CollapseProps };
@@ -1,16 +1,2 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { StyledCollapse } from './styles';
14
- export var Collapse = function (props) {
15
- return _jsx(StyledCollapse, __assign({}, props));
16
- };
1
+ import { Collapse } from '@mui/material';
2
+ export { Collapse };
@@ -5,7 +5,7 @@ export declare type DashBoardLayoutProps = {
5
5
  export declare const DashboardLayout: {
6
6
  (props: DashBoardLayoutProps): JSX.Element;
7
7
  Header: import("react").ForwardRefExoticComponent<import("./Header").HeaderProps & import("react").RefAttributes<HTMLDivElement>>;
8
- Sidebar: import("react").ForwardRefExoticComponent<import("./Sidebar").SidebarProps & import("react").RefAttributes<HTMLDivElement>>;
8
+ Sidebar: import("react").ForwardRefExoticComponent<import("./Sidebar").SidebarProps & import("react").RefAttributes<HTMLBaseElement>>;
9
9
  Main: import("react").ForwardRefExoticComponent<import("./Main").MainProps & import("react").RefAttributes<HTMLDivElement>>;
10
10
  };
11
11
  export default DashboardLayout;
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Header } from './Header';
3
3
  import { Sidebar } from './Sidebar';
4
4
  import { Main } from './Main';
5
- import { DashboardLayoutRoot } from './styled';
5
+ import { DashboardLayoutRoot } from './styles';
6
6
  export var DashboardLayout = function (props) {
7
7
  var children = props.children;
8
8
  return _jsx(DashboardLayoutRoot, { children: children });
@@ -1,7 +1,9 @@
1
1
  import { FC } from 'react';
2
2
  import { HeaderProps } from './Header';
3
+ import { SidebarProps } from './Sidebar';
3
4
  export declare type DashboardLayoutStoryProps = {
4
5
  header: HeaderProps;
6
+ sidebar: SidebarProps;
5
7
  };
6
8
  export declare const DashboardLayoutStory: FC<DashboardLayoutStoryProps>;
7
9
  export default DashboardLayoutStory;
@@ -10,14 +10,9 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { CompanyOutlineMd, ProfileOutlineMd, SettingsFillMd, } from '@astral/icons';
14
- import { ListItemButton } from '@mui/material';
15
- import { List } from '../List';
16
- import { ListItemIcon } from '../ListItemIcon';
17
- import { ListItemText } from '../ListItemText';
18
13
  import { DashboardLayout } from '../DashboardLayout';
19
14
  export var DashboardLayoutStory = function (props) {
20
- var header = props.header;
21
- return (_jsxs(DashboardLayout, { children: [_jsx(DashboardLayout.Header, __assign({}, header)), _jsx(DashboardLayout.Sidebar, { children: _jsxs(List, { children: [_jsxs(ListItemButton, { children: [_jsx(ListItemIcon, { children: _jsx(ProfileOutlineMd, {}) }), _jsx(ListItemText, { children: "\u0413\u043B\u0430\u0432\u043D\u0430\u044F" })] }), _jsxs(ListItemButton, { children: [_jsx(ListItemIcon, { children: _jsx(CompanyOutlineMd, {}) }), _jsx(ListItemText, { children: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B" })] }), _jsxs(ListItemButton, { children: [_jsx(ListItemIcon, { children: _jsx(SettingsFillMd, {}) }), _jsx(ListItemText, { children: "\u041A\u043E\u043D\u0442\u0440\u0430\u0433\u0435\u043D\u0442\u044B" })] })] }) }), _jsx(DashboardLayout.Main, { children: "main-content" })] }));
15
+ var header = props.header, sidebar = props.sidebar;
16
+ return (_jsxs(DashboardLayout, { children: [_jsx(DashboardLayout.Header, __assign({}, header)), _jsx(DashboardLayout.Sidebar, __assign({}, sidebar)), _jsx(DashboardLayout.Main, { children: "main-content" })] }));
22
17
  };
23
18
  export default DashboardLayoutStory;
@@ -14,7 +14,7 @@ import { forwardRef } from 'react';
14
14
  // import { MenuListProps } from '../../MenuList';
15
15
  import { Product } from '../../Product';
16
16
  import { Profile } from '../../Profile';
17
- import { HeaderNav, HeaderRoot } from './styled';
17
+ import { HeaderNav, HeaderRoot } from './styles';
18
18
  export var Header = forwardRef(function (props, ref) {
19
19
  var ProductSwitcher = props.productSwitcher, product = props.product,
20
20
  // menu: Menu,
@@ -8,7 +8,7 @@ export var HeaderRoot = styled.header(templateObject_1 || (templateObject_1 = __
8
8
  return theme.zIndex.appBar;
9
9
  }, function (_a) {
10
10
  var theme = _a.theme;
11
- return theme.spacing(2, 4);
11
+ return theme.spacing(2, 3);
12
12
  }, function (_a) {
13
13
  var theme = _a.theme;
14
14
  return theme.palette.background.default;
@@ -1,6 +1,18 @@
1
- import { ReactNode } from 'react';
1
+ /// <reference types="react" />
2
+ import { NavMenuProps } from '../../NavMenu';
2
3
  export declare type SidebarProps = {
3
- children: ReactNode;
4
+ /**
5
+ * Ключ по которому осуществляется персист состояния collapsedIn в localStorage
6
+ */
7
+ localStorageKey?: string;
8
+ /**
9
+ * Описание меню
10
+ */
11
+ menu: {
12
+ /**
13
+ * Пункты меню
14
+ */
15
+ items: NavMenuProps['items'];
16
+ };
4
17
  };
5
- export declare const Sidebar: import("react").ForwardRefExoticComponent<SidebarProps & import("react").RefAttributes<HTMLDivElement>>;
6
- export default Sidebar;
18
+ export declare const Sidebar: import("react").ForwardRefExoticComponent<SidebarProps & import("react").RefAttributes<HTMLBaseElement>>;
@@ -11,9 +11,18 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { forwardRef } from 'react';
14
- import { SidebarRoot, SidebarToggler } from './styled';
15
- export var Sidebar = forwardRef(function (_a, ref) {
16
- var children = _a.children;
17
- return (_jsxs(SidebarRoot, __assign({ ref: ref }, { children: [_jsx("nav", { children: children }), _jsx(SidebarToggler, __assign({ variant: "text" }, { children: "\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0435\u043D\u044E" }))] })));
14
+ import { NavMenu } from '../../NavMenu';
15
+ import { useLocalStorage } from '../../hooks';
16
+ import { SidebarRoot } from './styles';
17
+ import { SidebarNav } from './SidebarNav';
18
+ import { SidebarToggler } from './SidebarToggler';
19
+ export var Sidebar = forwardRef(function (props, ref) {
20
+ var menu = props.menu, _a = props.localStorageKey, localStorageKey = _a === void 0 ? '@astral/ui::Sidebar::collapsedIn' : _a;
21
+ var _b = useLocalStorage(localStorageKey, true), _c = _b[0], collapsedIn = _c === void 0 ? true : _c, setCollapsedIn = _b[1];
22
+ var handleTogglerChange = function () {
23
+ setCollapsedIn(function () {
24
+ return !collapsedIn;
25
+ });
26
+ };
27
+ return (_jsxs(SidebarRoot, __assign({ ref: ref, collapsedIn: collapsedIn }, { children: [_jsx(SidebarNav, { menu: _jsx(NavMenu, { collapsedIn: collapsedIn, items: menu.items }) }), _jsx(SidebarToggler, { collapsedIn: collapsedIn, onToggle: handleTogglerChange })] })));
18
28
  });
19
- export default Sidebar;
@@ -0,0 +1,5 @@
1
+ import { ReactElement } from 'react';
2
+ export declare type SidebarNavProps = {
3
+ menu: ReactElement;
4
+ };
5
+ export declare const SidebarNav: import("react").ForwardRefExoticComponent<SidebarNavProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,17 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from 'react';
14
+ export var SidebarNav = forwardRef(function (props, ref) {
15
+ var menu = props.menu;
16
+ return _jsx("nav", __assign({ ref: ref }, { children: menu }));
17
+ });
@@ -0,0 +1 @@
1
+ export * from './SidebarNav';
@@ -0,0 +1 @@
1
+ export * from './SidebarNav';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from '../../../../Button';
3
+ export declare type SidebarTogglerButtonProps = ButtonProps & {
4
+ collapsedIn: boolean;
5
+ };
6
+ export declare const SidebarTogglerButton: import("react").ForwardRefExoticComponent<Pick<SidebarTogglerButtonProps, "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" | "collapsedIn"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,30 @@
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 { forwardRef } from 'react';
25
+ import { MenuOffOutlineMd, MenuOnOutlineMd } from '@astral/icons';
26
+ import { SidebarTogglerButtonRoot } from './styles';
27
+ export var SidebarTogglerButton = forwardRef(function (props, ref) {
28
+ var collapsedIn = props.collapsedIn, restProps = __rest(props, ["collapsedIn"]);
29
+ return (_jsx(SidebarTogglerButtonRoot, __assign({ ref: ref, startIcon: collapsedIn ? _jsx(MenuOffOutlineMd, {}) : _jsx(MenuOnOutlineMd, {}), variant: "text" }, restProps)));
30
+ });
@@ -0,0 +1 @@
1
+ export * from './SidebarToggleButton';
@@ -0,0 +1 @@
1
+ export * from './SidebarToggleButton';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const SidebarTogglerButtonRoot: 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> & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ }, {}, {}>;
@@ -0,0 +1,11 @@
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 { styled } from '../../../../styles';
6
+ import { Button } from '../../../../Button';
7
+ export var SidebarTogglerButtonRoot = styled(Button)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n gap: 0;\n justify-content: flex-start;\n width: 100%;\n min-width: 0;\n padding: ", ";\n\n &.MuiButton-root .MuiButton-startIcon {\n margin: 0;\n }\n"], ["\n gap: 0;\n justify-content: flex-start;\n width: 100%;\n min-width: 0;\n padding: ", ";\n\n &.MuiButton-root .MuiButton-startIcon {\n margin: 0;\n }\n"])), function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.spacing(2);
10
+ });
11
+ var templateObject_1;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare type SidebarTogglerProps = {
3
+ collapsedIn: boolean;
4
+ onToggle: () => void;
5
+ };
6
+ export declare const SidebarToggler: import("react").ForwardRefExoticComponent<SidebarTogglerProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,22 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from 'react';
14
+ import { Collapse } from '../../../Collapse';
15
+ import { SidebarTogglerContent, SidebarTogglerRoot } from './styled';
16
+ export var SidebarToggler = forwardRef(function (props, ref) {
17
+ var collapsedIn = props.collapsedIn, onToggle = props.onToggle;
18
+ var handleButtonClick = function () {
19
+ onToggle();
20
+ };
21
+ return (_jsx(SidebarTogglerRoot, __assign({ ref: ref, collapsedIn: collapsedIn, onClick: handleButtonClick }, { children: _jsx(Collapse, __assign({ orientation: "horizontal", in: collapsedIn }, { children: _jsx(SidebarTogglerContent, { children: "\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0435\u043D\u044E" }) })) })));
22
+ });
@@ -0,0 +1 @@
1
+ export * from './SidebarToggler';
@@ -0,0 +1 @@
1
+ export * from './SidebarToggler';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const SidebarTogglerRoot: import("@emotion/styled").StyledComponent<Pick<import("./SidebarToggleButton").SidebarTogglerButtonProps, "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" | "collapsedIn"> & import("react").RefAttributes<HTMLButtonElement> & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ }, {}, {}>;
5
+ export declare const SidebarTogglerContent: 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<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -0,0 +1,12 @@
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 { styled } from '../../../styles';
6
+ import { SidebarTogglerButton } from './SidebarToggleButton';
7
+ export var SidebarTogglerRoot = styled(SidebarTogglerButton)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 40px;\n margin-top: auto;\n"], ["\n height: 40px;\n margin-top: auto;\n"])));
8
+ export var SidebarTogglerContent = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-left: ", ";\n\n white-space: nowrap;\n"], ["\n margin-left: ", ";\n\n white-space: nowrap;\n"])), function (_a) {
9
+ var theme = _a.theme;
10
+ return theme.spacing(4);
11
+ });
12
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,7 @@
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
+ } & {
6
+ collapsedIn: boolean;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -3,21 +3,25 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import { styled } from '../../styles';
6
- import { Button } from '../../Button';
7
- export var SidebarRoot = styled.aside(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n"], ["\n z-index: ", ";\n\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n"])), function (_a) {
6
+ export var SidebarRoot = styled.aside(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n min-width: ", ";\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n\n transition: ", ";\n"], ["\n z-index: ", ";\n\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n min-width: ", ";\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n\n transition: ", ";\n"])), function (_a) {
8
7
  var theme = _a.theme;
9
8
  return theme.zIndex.appBar - 1;
9
+ }, function (_a) {
10
+ var collapsedIn = _a.collapsedIn;
11
+ return (collapsedIn ? '240px' : '100%');
10
12
  }, function (_a) {
11
13
  var theme = _a.theme;
12
- return theme.spacing(6);
14
+ return theme.spacing(2);
13
15
  }, function (_a) {
14
16
  var theme = _a.theme;
15
17
  return theme.palette.background.element;
16
18
  }, function (_a) {
17
19
  var theme = _a.theme;
18
20
  return theme.palette.grey[300];
21
+ }, function (_a) {
22
+ var theme = _a.theme;
23
+ return theme.transitions.create('min-width', {
24
+ duration: theme.transitions.duration.standard,
25
+ });
19
26
  });
20
- // export const SidebarNav = styled.nav`
21
- // `;
22
- export var SidebarToggler = styled(Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: auto;\n"], ["\n margin-top: auto;\n"])));
23
- var templateObject_1, templateObject_2;
27
+ var templateObject_1;
File without changes
@@ -4,6 +4,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { styled } from '../styles';
6
6
  export var DashboardLayoutRoot = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n grid-template: ", ";\n height: 100vh;\n"], ["\n display: grid;\n grid-template: ", ";\n height: 100vh;\n"])), function () {
7
- return "\n\n [header-start] \"header header\" [header-end]\n [main-start] \"sidebar main\" 1fr [main-end] / 240px 1fr\n ";
7
+ return "\n\n [header-start] \"header header\" [header-end]\n [main-start] \"sidebar main\" 1fr [main-end] / auto 1fr\n ";
8
8
  });
9
9
  var templateObject_1;
@@ -3,18 +3,10 @@ export declare const PaginationWrapper: import("@emotion/styled").StyledComponen
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const Range: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
7
- align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
8
- children?: import("react").ReactNode;
9
- classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
10
- gutterBottom?: boolean | undefined;
11
- noWrap?: boolean | undefined;
12
- paragraph?: boolean | undefined;
13
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
14
- 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;
15
- 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;
16
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
17
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
18
- }, "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"> & {
6
+ export declare const Range: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
7
+ variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
8
+ component?: import("react").ElementType<any> | undefined;
9
+ color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
10
+ } & {
19
11
  theme?: import("@emotion/react").Theme | undefined;
20
12
  }, {}, {}>;
@@ -3,18 +3,10 @@ export declare const DatePickerHeaderWrapper: import("@emotion/styled").StyledCo
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
7
- align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
8
- children?: import("react").ReactNode;
9
- classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
10
- gutterBottom?: boolean | undefined;
11
- noWrap?: boolean | undefined;
12
- paragraph?: boolean | undefined;
13
- sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
14
- 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;
15
- 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;
16
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
17
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
18
- }, "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"> & {
6
+ export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
7
+ variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
8
+ component?: import("react").ElementType<any> | undefined;
9
+ color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
10
+ } & {
19
11
  theme?: import("@emotion/react").Theme | undefined;
20
12
  }, {}, {}>;