@mantine/core 9.6.3 → 9.7.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 (373) hide show
  1. package/cjs/components/ActionBar/ActionBar.cjs +0 -3
  2. package/cjs/components/ActionBar/ActionBar.cjs.map +1 -1
  3. package/cjs/components/ActionBar/ActionBar.module.cjs.map +1 -1
  4. package/cjs/components/AppShell/AppShell.cjs +33 -6
  5. package/cjs/components/AppShell/AppShell.cjs.map +1 -1
  6. package/cjs/components/AppShell/AppShell.context.cjs.map +1 -1
  7. package/cjs/components/AppShell/AppShell.module.cjs +2 -1
  8. package/cjs/components/AppShell/AppShell.module.cjs.map +1 -1
  9. package/cjs/components/AppShell/AppShellAside/AppShellAside.cjs +28 -7
  10. package/cjs/components/AppShell/AppShellAside/AppShellAside.cjs.map +1 -1
  11. package/cjs/components/AppShell/AppShellFooter/AppShellFooter.cjs +28 -7
  12. package/cjs/components/AppShell/AppShellFooter/AppShellFooter.cjs.map +1 -1
  13. package/cjs/components/AppShell/AppShellHeader/AppShellHeader.cjs +28 -7
  14. package/cjs/components/AppShell/AppShellHeader/AppShellHeader.cjs.map +1 -1
  15. package/cjs/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.cjs +3 -2
  16. package/cjs/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.cjs.map +1 -1
  17. package/cjs/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.cjs +27 -16
  18. package/cjs/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.cjs.map +1 -1
  19. package/cjs/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.cjs +24 -16
  20. package/cjs/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.cjs.map +1 -1
  21. package/cjs/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.cjs +24 -16
  22. package/cjs/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.cjs.map +1 -1
  23. package/cjs/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.cjs +30 -19
  24. package/cjs/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.cjs.map +1 -1
  25. package/cjs/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.cjs +26 -0
  26. package/cjs/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.cjs.map +1 -0
  27. package/cjs/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.cjs +10 -0
  28. package/cjs/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.cjs.map +1 -0
  29. package/cjs/components/AppShell/AppShellMediaStyles/get-variables/get-variables.cjs +13 -5
  30. package/cjs/components/AppShell/AppShellMediaStyles/get-variables/get-variables.cjs.map +1 -1
  31. package/cjs/components/AppShell/AppShellNavbar/AppShellNavbar.cjs +28 -7
  32. package/cjs/components/AppShell/AppShellNavbar/AppShellNavbar.cjs.map +1 -1
  33. package/cjs/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.cjs +270 -0
  34. package/cjs/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.cjs.map +1 -0
  35. package/cjs/components/AppShell/use-app-shell-resize/clamp-resize-size.cjs +15 -0
  36. package/cjs/components/AppShell/use-app-shell-resize/clamp-resize-size.cjs.map +1 -0
  37. package/cjs/components/AppShell/use-app-shell-resize/resize-section-config.cjs +51 -0
  38. package/cjs/components/AppShell/use-app-shell-resize/resize-section-config.cjs.map +1 -0
  39. package/cjs/components/AppShell/use-app-shell-resize/safe-area-inset.cjs +12 -0
  40. package/cjs/components/AppShell/use-app-shell-resize/safe-area-inset.cjs.map +1 -0
  41. package/cjs/components/AppShell/use-app-shell-resize/use-app-shell-resize.cjs +127 -0
  42. package/cjs/components/AppShell/use-app-shell-resize/use-app-shell-resize.cjs.map +1 -0
  43. package/cjs/components/AppShell/use-resizing/use-resizing.cjs +20 -2
  44. package/cjs/components/AppShell/use-resizing/use-resizing.cjs.map +1 -1
  45. package/cjs/components/Checkbox/Checkbox.cjs +10 -2
  46. package/cjs/components/Checkbox/Checkbox.cjs.map +1 -1
  47. package/cjs/components/Checkbox/Checkbox.module.cjs +1 -0
  48. package/cjs/components/Checkbox/Checkbox.module.cjs.map +1 -1
  49. package/cjs/components/Checkbox/CheckboxIndicator/CheckboxIndicator.cjs +10 -2
  50. package/cjs/components/Checkbox/CheckboxIndicator/CheckboxIndicator.cjs.map +1 -1
  51. package/cjs/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.cjs +1 -0
  52. package/cjs/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.cjs.map +1 -1
  53. package/cjs/components/Dialog/Dialog.cjs +0 -1
  54. package/cjs/components/Dialog/Dialog.cjs.map +1 -1
  55. package/cjs/components/Dialog/Dialog.module.cjs.map +1 -1
  56. package/cjs/components/HoverCard/HoverCard.cjs +34 -5
  57. package/cjs/components/HoverCard/HoverCard.cjs.map +1 -1
  58. package/cjs/components/HoverCard/HoverCard.context.cjs.map +1 -1
  59. package/cjs/components/HoverCard/HoverCardDropdown/HoverCardDropdown.cjs +13 -18
  60. package/cjs/components/HoverCard/HoverCardDropdown/HoverCardDropdown.cjs.map +1 -1
  61. package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.cjs +6 -23
  62. package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.cjs.map +1 -1
  63. package/cjs/components/HoverCard/use-hover-card.cjs +26 -12
  64. package/cjs/components/HoverCard/use-hover-card.cjs.map +1 -1
  65. package/cjs/components/Radio/Radio.cjs +10 -2
  66. package/cjs/components/Radio/Radio.cjs.map +1 -1
  67. package/cjs/components/Radio/Radio.module.cjs +1 -0
  68. package/cjs/components/Radio/Radio.module.cjs.map +1 -1
  69. package/cjs/components/Radio/RadioIndicator/RadioIndicator.cjs +10 -2
  70. package/cjs/components/Radio/RadioIndicator/RadioIndicator.cjs.map +1 -1
  71. package/cjs/components/Radio/RadioIndicator/RadioIndicator.module.cjs +1 -0
  72. package/cjs/components/Radio/RadioIndicator/RadioIndicator.module.cjs.map +1 -1
  73. package/cjs/components/Toggle/Toggle.cjs +80 -0
  74. package/cjs/components/Toggle/Toggle.cjs.map +1 -0
  75. package/cjs/components/Toggle/Toggle.module.cjs +7 -0
  76. package/cjs/components/Toggle/Toggle.module.cjs.map +1 -0
  77. package/cjs/components/Toolbar/Toolbar.cjs +107 -0
  78. package/cjs/components/Toolbar/Toolbar.cjs.map +1 -0
  79. package/cjs/components/Toolbar/Toolbar.context.cjs +8 -0
  80. package/cjs/components/Toolbar/Toolbar.context.cjs.map +1 -0
  81. package/cjs/components/Toolbar/Toolbar.module.cjs +12 -0
  82. package/cjs/components/Toolbar/Toolbar.module.cjs.map +1 -0
  83. package/cjs/components/Toolbar/ToolbarDivider/ToolbarDivider.cjs +31 -0
  84. package/cjs/components/Toolbar/ToolbarDivider/ToolbarDivider.cjs.map +1 -0
  85. package/cjs/components/Toolbar/ToolbarGroup/ToolbarGroup.cjs +31 -0
  86. package/cjs/components/Toolbar/ToolbarGroup/ToolbarGroup.cjs.map +1 -0
  87. package/cjs/components/Toolbar/ToolbarToggle/ToolbarToggle.cjs +47 -0
  88. package/cjs/components/Toolbar/ToolbarToggle/ToolbarToggle.cjs.map +1 -0
  89. package/cjs/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.cjs +61 -0
  90. package/cjs/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.cjs.map +1 -0
  91. package/cjs/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.cjs +8 -0
  92. package/cjs/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.cjs.map +1 -0
  93. package/cjs/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.cjs +51 -0
  94. package/cjs/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.cjs.map +1 -0
  95. package/cjs/components/Toolbar/use-toolbar-navigation.cjs +76 -0
  96. package/cjs/components/Toolbar/use-toolbar-navigation.cjs.map +1 -0
  97. package/cjs/components/Tooltip/Tooltip.cjs +9 -5
  98. package/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
  99. package/cjs/components/Tooltip/use-tooltip.cjs +6 -3
  100. package/cjs/components/Tooltip/use-tooltip.cjs.map +1 -1
  101. package/cjs/components/Tour/Tour.cjs +283 -0
  102. package/cjs/components/Tour/Tour.cjs.map +1 -0
  103. package/cjs/components/Tour/Tour.context.cjs +25 -0
  104. package/cjs/components/Tour/Tour.context.cjs.map +1 -0
  105. package/cjs/components/Tour/Tour.module.cjs +19 -0
  106. package/cjs/components/Tour/Tour.module.cjs.map +1 -0
  107. package/cjs/components/Tour/TourBeacon/TourBeacon.cjs +54 -0
  108. package/cjs/components/Tour/TourBeacon/TourBeacon.cjs.map +1 -0
  109. package/cjs/components/Tour/TourBeaconPositioned.cjs +46 -0
  110. package/cjs/components/Tour/TourBeaconPositioned.cjs.map +1 -0
  111. package/cjs/components/Tour/TourBody/TourBody.cjs +37 -0
  112. package/cjs/components/Tour/TourBody/TourBody.cjs.map +1 -0
  113. package/cjs/components/Tour/TourCloseButton/TourCloseButton.cjs +26 -0
  114. package/cjs/components/Tour/TourCloseButton/TourCloseButton.cjs.map +1 -0
  115. package/cjs/components/Tour/TourNavigation/TourNavigation.cjs +63 -0
  116. package/cjs/components/Tour/TourNavigation/TourNavigation.cjs.map +1 -0
  117. package/cjs/components/Tour/TourOverlay/TourOverlay.cjs +70 -0
  118. package/cjs/components/Tour/TourOverlay/TourOverlay.cjs.map +1 -0
  119. package/cjs/components/Tour/TourRoot/TourRoot.cjs +125 -0
  120. package/cjs/components/Tour/TourRoot/TourRoot.cjs.map +1 -0
  121. package/cjs/components/Tour/TourStep/TourStep.cjs +10 -0
  122. package/cjs/components/Tour/TourStep/TourStep.cjs.map +1 -0
  123. package/cjs/components/Tour/TourTitle/TourTitle.cjs +38 -0
  124. package/cjs/components/Tour/TourTitle/TourTitle.cjs.map +1 -0
  125. package/cjs/components/Tour/TourTooltip/TourTooltip.cjs +87 -0
  126. package/cjs/components/Tour/TourTooltip/TourTooltip.cjs.map +1 -0
  127. package/cjs/components/Tour/get-overlay-hit-path.cjs +17 -0
  128. package/cjs/components/Tour/get-overlay-hit-path.cjs.map +1 -0
  129. package/cjs/components/Tour/is-element-in-view.cjs +30 -0
  130. package/cjs/components/Tour/is-element-in-view.cjs.map +1 -0
  131. package/cjs/components/Tour/press-aware-auto-update.cjs +38 -0
  132. package/cjs/components/Tour/press-aware-auto-update.cjs.map +1 -0
  133. package/cjs/components/Tour/use-target-rect.cjs +61 -0
  134. package/cjs/components/Tour/use-target-rect.cjs.map +1 -0
  135. package/cjs/components/Tour/use-tooltip-auto-focus.cjs +34 -0
  136. package/cjs/components/Tour/use-tooltip-auto-focus.cjs.map +1 -0
  137. package/cjs/components/Tour/use-tour-state.cjs +102 -0
  138. package/cjs/components/Tour/use-tour-state.cjs.map +1 -0
  139. package/cjs/components/Tour/use-tour.cjs +155 -0
  140. package/cjs/components/Tour/use-tour.cjs.map +1 -0
  141. package/cjs/components/TreeSelect/TreeSelect.cjs +29 -16
  142. package/cjs/components/TreeSelect/TreeSelect.cjs.map +1 -1
  143. package/cjs/index.cjs +41 -1
  144. package/esm/components/ActionBar/ActionBar.mjs +0 -3
  145. package/esm/components/ActionBar/ActionBar.mjs.map +1 -1
  146. package/esm/components/ActionBar/ActionBar.module.mjs.map +1 -1
  147. package/esm/components/AppShell/AppShell.context.mjs.map +1 -1
  148. package/esm/components/AppShell/AppShell.mjs +35 -8
  149. package/esm/components/AppShell/AppShell.mjs.map +1 -1
  150. package/esm/components/AppShell/AppShell.module.mjs +2 -1
  151. package/esm/components/AppShell/AppShell.module.mjs.map +1 -1
  152. package/esm/components/AppShell/AppShellAside/AppShellAside.mjs +29 -8
  153. package/esm/components/AppShell/AppShellAside/AppShellAside.mjs.map +1 -1
  154. package/esm/components/AppShell/AppShellFooter/AppShellFooter.mjs +29 -8
  155. package/esm/components/AppShell/AppShellFooter/AppShellFooter.mjs.map +1 -1
  156. package/esm/components/AppShell/AppShellHeader/AppShellHeader.mjs +29 -8
  157. package/esm/components/AppShell/AppShellHeader/AppShellHeader.mjs.map +1 -1
  158. package/esm/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.mjs +3 -2
  159. package/esm/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.mjs.map +1 -1
  160. package/esm/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.mjs +27 -16
  161. package/esm/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.mjs.map +1 -1
  162. package/esm/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.mjs +24 -16
  163. package/esm/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.mjs.map +1 -1
  164. package/esm/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.mjs +24 -16
  165. package/esm/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.mjs.map +1 -1
  166. package/esm/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.mjs +30 -19
  167. package/esm/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.mjs.map +1 -1
  168. package/esm/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.mjs +26 -0
  169. package/esm/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.mjs.map +1 -0
  170. package/esm/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.mjs +10 -0
  171. package/esm/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.mjs.map +1 -0
  172. package/esm/components/AppShell/AppShellMediaStyles/get-variables/get-variables.mjs +13 -5
  173. package/esm/components/AppShell/AppShellMediaStyles/get-variables/get-variables.mjs.map +1 -1
  174. package/esm/components/AppShell/AppShellNavbar/AppShellNavbar.mjs +29 -8
  175. package/esm/components/AppShell/AppShellNavbar/AppShellNavbar.mjs.map +1 -1
  176. package/esm/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.mjs +270 -0
  177. package/esm/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.mjs.map +1 -0
  178. package/esm/components/AppShell/use-app-shell-resize/clamp-resize-size.mjs +14 -0
  179. package/esm/components/AppShell/use-app-shell-resize/clamp-resize-size.mjs.map +1 -0
  180. package/esm/components/AppShell/use-app-shell-resize/resize-section-config.mjs +49 -0
  181. package/esm/components/AppShell/use-app-shell-resize/resize-section-config.mjs.map +1 -0
  182. package/esm/components/AppShell/use-app-shell-resize/safe-area-inset.mjs +12 -0
  183. package/esm/components/AppShell/use-app-shell-resize/safe-area-inset.mjs.map +1 -0
  184. package/esm/components/AppShell/use-app-shell-resize/use-app-shell-resize.mjs +127 -0
  185. package/esm/components/AppShell/use-app-shell-resize/use-app-shell-resize.mjs.map +1 -0
  186. package/esm/components/AppShell/use-resizing/use-resizing.mjs +21 -3
  187. package/esm/components/AppShell/use-resizing/use-resizing.mjs.map +1 -1
  188. package/esm/components/Checkbox/Checkbox.mjs +10 -2
  189. package/esm/components/Checkbox/Checkbox.mjs.map +1 -1
  190. package/esm/components/Checkbox/Checkbox.module.mjs +1 -0
  191. package/esm/components/Checkbox/Checkbox.module.mjs.map +1 -1
  192. package/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.mjs +10 -2
  193. package/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.mjs.map +1 -1
  194. package/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.mjs +1 -0
  195. package/esm/components/Checkbox/CheckboxIndicator/CheckboxIndicator.module.mjs.map +1 -1
  196. package/esm/components/Dialog/Dialog.mjs +0 -1
  197. package/esm/components/Dialog/Dialog.mjs.map +1 -1
  198. package/esm/components/Dialog/Dialog.module.mjs.map +1 -1
  199. package/esm/components/HoverCard/HoverCard.context.mjs.map +1 -1
  200. package/esm/components/HoverCard/HoverCard.mjs +34 -5
  201. package/esm/components/HoverCard/HoverCard.mjs.map +1 -1
  202. package/esm/components/HoverCard/HoverCardDropdown/HoverCardDropdown.mjs +13 -18
  203. package/esm/components/HoverCard/HoverCardDropdown/HoverCardDropdown.mjs.map +1 -1
  204. package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.mjs +7 -24
  205. package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.mjs.map +1 -1
  206. package/esm/components/HoverCard/use-hover-card.mjs +27 -13
  207. package/esm/components/HoverCard/use-hover-card.mjs.map +1 -1
  208. package/esm/components/Radio/Radio.mjs +10 -2
  209. package/esm/components/Radio/Radio.mjs.map +1 -1
  210. package/esm/components/Radio/Radio.module.mjs +1 -0
  211. package/esm/components/Radio/Radio.module.mjs.map +1 -1
  212. package/esm/components/Radio/RadioIndicator/RadioIndicator.mjs +10 -2
  213. package/esm/components/Radio/RadioIndicator/RadioIndicator.mjs.map +1 -1
  214. package/esm/components/Radio/RadioIndicator/RadioIndicator.module.mjs +1 -0
  215. package/esm/components/Radio/RadioIndicator/RadioIndicator.module.mjs.map +1 -1
  216. package/esm/components/Toggle/Toggle.mjs +80 -0
  217. package/esm/components/Toggle/Toggle.mjs.map +1 -0
  218. package/esm/components/Toggle/Toggle.module.mjs +7 -0
  219. package/esm/components/Toggle/Toggle.module.mjs.map +1 -0
  220. package/esm/components/Toolbar/Toolbar.context.mjs +8 -0
  221. package/esm/components/Toolbar/Toolbar.context.mjs.map +1 -0
  222. package/esm/components/Toolbar/Toolbar.mjs +107 -0
  223. package/esm/components/Toolbar/Toolbar.mjs.map +1 -0
  224. package/esm/components/Toolbar/Toolbar.module.mjs +12 -0
  225. package/esm/components/Toolbar/Toolbar.module.mjs.map +1 -0
  226. package/esm/components/Toolbar/ToolbarDivider/ToolbarDivider.mjs +31 -0
  227. package/esm/components/Toolbar/ToolbarDivider/ToolbarDivider.mjs.map +1 -0
  228. package/esm/components/Toolbar/ToolbarGroup/ToolbarGroup.mjs +31 -0
  229. package/esm/components/Toolbar/ToolbarGroup/ToolbarGroup.mjs.map +1 -0
  230. package/esm/components/Toolbar/ToolbarToggle/ToolbarToggle.mjs +47 -0
  231. package/esm/components/Toolbar/ToolbarToggle/ToolbarToggle.mjs.map +1 -0
  232. package/esm/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.mjs +8 -0
  233. package/esm/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.mjs.map +1 -0
  234. package/esm/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.mjs +61 -0
  235. package/esm/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.mjs.map +1 -0
  236. package/esm/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.mjs +51 -0
  237. package/esm/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.mjs.map +1 -0
  238. package/esm/components/Toolbar/use-toolbar-navigation.mjs +76 -0
  239. package/esm/components/Toolbar/use-toolbar-navigation.mjs.map +1 -0
  240. package/esm/components/Tooltip/Tooltip.mjs +9 -5
  241. package/esm/components/Tooltip/Tooltip.mjs.map +1 -1
  242. package/esm/components/Tooltip/use-tooltip.mjs +7 -4
  243. package/esm/components/Tooltip/use-tooltip.mjs.map +1 -1
  244. package/esm/components/Tour/Tour.context.mjs +22 -0
  245. package/esm/components/Tour/Tour.context.mjs.map +1 -0
  246. package/esm/components/Tour/Tour.mjs +283 -0
  247. package/esm/components/Tour/Tour.mjs.map +1 -0
  248. package/esm/components/Tour/Tour.module.mjs +19 -0
  249. package/esm/components/Tour/Tour.module.mjs.map +1 -0
  250. package/esm/components/Tour/TourBeacon/TourBeacon.mjs +54 -0
  251. package/esm/components/Tour/TourBeacon/TourBeacon.mjs.map +1 -0
  252. package/esm/components/Tour/TourBeaconPositioned.mjs +46 -0
  253. package/esm/components/Tour/TourBeaconPositioned.mjs.map +1 -0
  254. package/esm/components/Tour/TourBody/TourBody.mjs +37 -0
  255. package/esm/components/Tour/TourBody/TourBody.mjs.map +1 -0
  256. package/esm/components/Tour/TourCloseButton/TourCloseButton.mjs +26 -0
  257. package/esm/components/Tour/TourCloseButton/TourCloseButton.mjs.map +1 -0
  258. package/esm/components/Tour/TourNavigation/TourNavigation.mjs +63 -0
  259. package/esm/components/Tour/TourNavigation/TourNavigation.mjs.map +1 -0
  260. package/esm/components/Tour/TourOverlay/TourOverlay.mjs +70 -0
  261. package/esm/components/Tour/TourOverlay/TourOverlay.mjs.map +1 -0
  262. package/esm/components/Tour/TourRoot/TourRoot.mjs +125 -0
  263. package/esm/components/Tour/TourRoot/TourRoot.mjs.map +1 -0
  264. package/esm/components/Tour/TourStep/TourStep.mjs +10 -0
  265. package/esm/components/Tour/TourStep/TourStep.mjs.map +1 -0
  266. package/esm/components/Tour/TourTitle/TourTitle.mjs +38 -0
  267. package/esm/components/Tour/TourTitle/TourTitle.mjs.map +1 -0
  268. package/esm/components/Tour/TourTooltip/TourTooltip.mjs +87 -0
  269. package/esm/components/Tour/TourTooltip/TourTooltip.mjs.map +1 -0
  270. package/esm/components/Tour/get-overlay-hit-path.mjs +17 -0
  271. package/esm/components/Tour/get-overlay-hit-path.mjs.map +1 -0
  272. package/esm/components/Tour/is-element-in-view.mjs +30 -0
  273. package/esm/components/Tour/is-element-in-view.mjs.map +1 -0
  274. package/esm/components/Tour/press-aware-auto-update.mjs +38 -0
  275. package/esm/components/Tour/press-aware-auto-update.mjs.map +1 -0
  276. package/esm/components/Tour/use-target-rect.mjs +59 -0
  277. package/esm/components/Tour/use-target-rect.mjs.map +1 -0
  278. package/esm/components/Tour/use-tooltip-auto-focus.mjs +34 -0
  279. package/esm/components/Tour/use-tooltip-auto-focus.mjs.map +1 -0
  280. package/esm/components/Tour/use-tour-state.mjs +102 -0
  281. package/esm/components/Tour/use-tour-state.mjs.map +1 -0
  282. package/esm/components/Tour/use-tour.mjs +155 -0
  283. package/esm/components/Tour/use-tour.mjs.map +1 -0
  284. package/esm/components/TreeSelect/TreeSelect.mjs +30 -17
  285. package/esm/components/TreeSelect/TreeSelect.mjs.map +1 -1
  286. package/esm/index.mjs +21 -2
  287. package/lib/components/ActionBar/ActionBar.d.ts +1 -1
  288. package/lib/components/AppShell/AppShell.context.d.ts +4 -0
  289. package/lib/components/AppShell/AppShell.d.ts +5 -3
  290. package/lib/components/AppShell/AppShell.types.d.ts +70 -0
  291. package/lib/components/AppShell/AppShellMediaStyles/AppShellMediaStyles.d.ts +6 -1
  292. package/lib/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.d.ts +3 -1
  293. package/lib/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.d.ts +3 -1
  294. package/lib/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.d.ts +3 -1
  295. package/lib/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.d.ts +3 -1
  296. package/lib/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.d.ts +2 -0
  297. package/lib/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.d.ts +1 -0
  298. package/lib/components/AppShell/AppShellMediaStyles/get-variables/get-variables.d.ts +6 -1
  299. package/lib/components/AppShell/AppShellResizeHandle/AppShellResizeHandle.d.ts +10 -0
  300. package/lib/components/AppShell/index.d.ts +3 -2
  301. package/lib/components/AppShell/use-app-shell-resize/clamp-resize-size.d.ts +9 -0
  302. package/lib/components/AppShell/use-app-shell-resize/resize-section-config.d.ts +29 -0
  303. package/lib/components/AppShell/use-app-shell-resize/safe-area-inset.d.ts +1 -0
  304. package/lib/components/AppShell/use-app-shell-resize/use-app-shell-resize.d.ts +2 -0
  305. package/lib/components/AppShell/use-resizing/use-resizing.d.ts +2 -1
  306. package/lib/components/Checkbox/Checkbox.d.ts +2 -2
  307. package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.d.ts +2 -2
  308. package/lib/components/HoverCard/HoverCard.context.d.ts +8 -4
  309. package/lib/components/HoverCard/HoverCard.d.ts +41 -0
  310. package/lib/components/HoverCard/index.d.ts +1 -1
  311. package/lib/components/HoverCard/use-hover-card.d.ts +11 -0
  312. package/lib/components/Radio/Radio.d.ts +2 -2
  313. package/lib/components/Radio/RadioIndicator/RadioIndicator.d.ts +2 -2
  314. package/lib/components/Toggle/Toggle.d.ts +73 -0
  315. package/lib/components/Toggle/index.d.ts +7 -0
  316. package/lib/components/Toolbar/Toolbar.context.d.ts +7 -0
  317. package/lib/components/Toolbar/Toolbar.d.ts +58 -0
  318. package/lib/components/Toolbar/ToolbarDivider/ToolbarDivider.d.ts +16 -0
  319. package/lib/components/Toolbar/ToolbarGroup/ToolbarGroup.d.ts +16 -0
  320. package/lib/components/Toolbar/ToolbarToggle/ToolbarToggle.d.ts +44 -0
  321. package/lib/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.context.d.ts +7 -0
  322. package/lib/components/Toolbar/ToolbarToggleGroup/ToolbarToggleGroup.d.ts +42 -0
  323. package/lib/components/Toolbar/ToolbarToggleItem/ToolbarToggleItem.d.ts +22 -0
  324. package/lib/components/Toolbar/index.d.ts +32 -0
  325. package/lib/components/Toolbar/use-toolbar-navigation.d.ts +11 -0
  326. package/lib/components/Tooltip/Tooltip.d.ts +2 -0
  327. package/lib/components/Tooltip/use-tooltip.d.ts +2 -0
  328. package/lib/components/Tour/Tour.context.d.ts +66 -0
  329. package/lib/components/Tour/Tour.d.ts +144 -0
  330. package/lib/components/Tour/TourBeacon/TourBeacon.d.ts +23 -0
  331. package/lib/components/Tour/TourBeaconPositioned.d.ts +13 -0
  332. package/lib/components/Tour/TourBody/TourBody.d.ts +19 -0
  333. package/lib/components/Tour/TourCloseButton/TourCloseButton.d.ts +12 -0
  334. package/lib/components/Tour/TourNavigation/TourNavigation.d.ts +11 -0
  335. package/lib/components/Tour/TourOverlay/TourOverlay.d.ts +22 -0
  336. package/lib/components/Tour/TourRoot/TourRoot.d.ts +72 -0
  337. package/lib/components/Tour/TourStep/TourStep.d.ts +30 -0
  338. package/lib/components/Tour/TourTitle/TourTitle.d.ts +19 -0
  339. package/lib/components/Tour/TourTooltip/TourTooltip.d.ts +29 -0
  340. package/lib/components/Tour/get-overlay-hit-path.d.ts +2 -0
  341. package/lib/components/Tour/index.d.ts +23 -0
  342. package/lib/components/Tour/is-element-in-view.d.ts +1 -0
  343. package/lib/components/Tour/press-aware-auto-update.d.ts +2 -0
  344. package/lib/components/Tour/use-target-rect.d.ts +13 -0
  345. package/lib/components/Tour/use-tooltip-auto-focus.d.ts +7 -0
  346. package/lib/components/Tour/use-tour-state.d.ts +23 -0
  347. package/lib/components/Tour/use-tour.d.ts +40 -0
  348. package/lib/components/TreeSelect/TreeSelect.d.ts +14 -0
  349. package/lib/components/TreeSelect/index.d.ts +2 -2
  350. package/lib/components/index.d.ts +3 -0
  351. package/package.json +5 -5
  352. package/styles/ActionBar.css +1 -0
  353. package/styles/ActionBar.layer.css +1 -0
  354. package/styles/AppShell.css +68 -0
  355. package/styles/AppShell.layer.css +68 -0
  356. package/styles/Checkbox.css +20 -0
  357. package/styles/Checkbox.layer.css +20 -0
  358. package/styles/CheckboxIndicator.css +16 -0
  359. package/styles/CheckboxIndicator.layer.css +16 -0
  360. package/styles/Dialog.css +1 -0
  361. package/styles/Dialog.layer.css +1 -0
  362. package/styles/Radio.css +10 -0
  363. package/styles/Radio.layer.css +10 -0
  364. package/styles/RadioIndicator.css +11 -0
  365. package/styles/RadioIndicator.layer.css +11 -0
  366. package/styles/Toggle.css +98 -0
  367. package/styles/Toggle.layer.css +99 -0
  368. package/styles/Toolbar.css +220 -0
  369. package/styles/Toolbar.layer.css +221 -0
  370. package/styles/Tour.css +127 -0
  371. package/styles/Tour.layer.css +128 -0
  372. package/styles.css +575 -0
  373. package/styles.layer.css +575 -0
@@ -1 +1 @@
1
- {"version":3,"file":"assign-aside-variables.cjs","names":["isPrimitiveSize","rem","getBaseSize","isResponsiveSize","getBreakpointValue"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.ts"],"sourcesContent":["import { getBreakpointValue, keys, MantineTheme, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignAsideVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n maxMediaStyles: MediaQueryVariables;\n aside: AppShellProps['aside'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n}\n\nexport function assignAsideVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n aside,\n theme,\n mode,\n}: AssignAsideVariablesInput) {\n const asideWidth = aside?.width;\n const collapsedAsideTransform = 'translateX(var(--app-shell-aside-width))';\n const collapsedAsideTransformRtl = 'translateX(calc(var(--app-shell-aside-width) * -1))';\n\n if (aside?.breakpoint !== undefined && !aside?.collapsed?.mobile) {\n maxMediaStyles[aside?.breakpoint] = maxMediaStyles[aside?.breakpoint] || {};\n if (mode === 'fixed') {\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-width'] = '100%';\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-offset'] = '0px';\n } else {\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-width'] = '0px';\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-offset'] = '0px';\n }\n }\n\n if (isPrimitiveSize(asideWidth)) {\n const baseSize = rem(getBaseSize(asideWidth));\n baseStyles['--app-shell-aside-width'] = baseSize;\n baseStyles['--app-shell-aside-offset'] = baseSize;\n }\n\n if (isResponsiveSize(asideWidth)) {\n if (typeof asideWidth.base !== 'undefined') {\n baseStyles['--app-shell-aside-width'] = rem(asideWidth.base);\n baseStyles['--app-shell-aside-offset'] = rem(asideWidth.base);\n }\n\n keys(asideWidth).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-aside-width'] = rem(asideWidth![key]);\n minMediaStyles[key]['--app-shell-aside-offset'] = rem(asideWidth![key]);\n }\n });\n }\n\n if (aside?.breakpoint !== undefined && mode === 'static') {\n minMediaStyles[aside.breakpoint] = minMediaStyles[aside.breakpoint] || {};\n minMediaStyles[aside.breakpoint]['--app-shell-aside-position'] = 'sticky';\n minMediaStyles[aside.breakpoint]['--app-shell-aside-grid-row'] = '2';\n minMediaStyles[aside.breakpoint]['--app-shell-aside-grid-column'] = '3';\n // Adjust main column end when aside is visible\n minMediaStyles[aside.breakpoint]['--app-shell-main-column-end'] = '3';\n }\n\n if (aside?.collapsed?.desktop) {\n const breakpointValue = aside!.breakpoint;\n minMediaStyles[breakpointValue] = minMediaStyles[breakpointValue] || {};\n minMediaStyles[breakpointValue]['--app-shell-aside-transform'] = collapsedAsideTransform;\n minMediaStyles[breakpointValue]['--app-shell-aside-transform-rtl'] = collapsedAsideTransformRtl;\n if (mode === 'fixed') {\n minMediaStyles[breakpointValue]['--app-shell-aside-offset'] = '0px !important';\n } else {\n minMediaStyles[breakpointValue]['--app-shell-aside-width'] = '0px';\n minMediaStyles[breakpointValue]['--app-shell-aside-display'] = 'none';\n minMediaStyles[breakpointValue]['--app-shell-main-column-end'] = '-1';\n }\n minMediaStyles[breakpointValue]['--app-shell-aside-scroll-locked-visibility'] = 'hidden';\n }\n\n if (aside?.collapsed?.mobile) {\n const breakpointValue = getBreakpointValue(aside!.breakpoint, theme.breakpoints) - 0.1;\n maxMediaStyles[breakpointValue] = maxMediaStyles[breakpointValue] || {};\n if (mode === 'fixed') {\n maxMediaStyles[breakpointValue]['--app-shell-aside-width'] = '100%';\n maxMediaStyles[breakpointValue]['--app-shell-aside-offset'] = '0px';\n } else {\n maxMediaStyles[breakpointValue]['--app-shell-aside-width'] = '0px';\n }\n maxMediaStyles[breakpointValue]['--app-shell-aside-transform'] = collapsedAsideTransform;\n maxMediaStyles[breakpointValue]['--app-shell-aside-transform-rtl'] = collapsedAsideTransformRtl;\n maxMediaStyles[breakpointValue]['--app-shell-aside-scroll-locked-visibility'] = 'hidden';\n }\n}\n"],"mappings":";;;;;;;;AAgBA,SAAgB,qBAAqB,EACnC,YACA,gBACA,gBACA,OACA,OACA,QAC4B;CAC5B,MAAM,aAAa,OAAO;CAC1B,MAAM,0BAA0B;CAChC,MAAM,6BAA6B;CAEnC,IAAI,OAAO,eAAe,KAAA,KAAa,CAAC,OAAO,WAAW,QAAQ;EAChE,eAAe,OAAO,cAAc,eAAe,OAAO,eAAe,CAAC;EAC1E,IAAI,SAAS,SAAS;GACpB,eAAe,OAAO,WAAW,CAAC,6BAA6B;GAC/D,eAAe,OAAO,WAAW,CAAC,8BAA8B;EAClE,OAAO;GACL,eAAe,OAAO,WAAW,CAAC,6BAA6B;GAC/D,eAAe,OAAO,WAAW,CAAC,8BAA8B;EAClE;CACF;CAEA,IAAIA,0BAAAA,gBAAgB,UAAU,GAAG;EAC/B,MAAM,WAAWC,YAAAA,IAAIC,sBAAAA,YAAY,UAAU,CAAC;EAC5C,WAAW,6BAA6B;EACxC,WAAW,8BAA8B;CAC3C;CAEA,IAAIC,2BAAAA,iBAAiB,UAAU,GAAG;EAChC,IAAI,OAAO,WAAW,SAAS,aAAa;GAC1C,WAAW,6BAA6BF,YAAAA,IAAI,WAAW,IAAI;GAC3D,WAAW,8BAA8BA,YAAAA,IAAI,WAAW,IAAI;EAC9D;EAEA,aAAA,KAAK,UAAU,CAAC,CAAC,SAAS,QAAQ;GAChC,IAAI,QAAQ,QAAQ;IAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;IAC9C,eAAe,IAAI,CAAC,6BAA6BA,YAAAA,IAAI,WAAY,IAAI;IACrE,eAAe,IAAI,CAAC,8BAA8BA,YAAAA,IAAI,WAAY,IAAI;GACxE;EACF,CAAC;CACH;CAEA,IAAI,OAAO,eAAe,KAAA,KAAa,SAAS,UAAU;EACxD,eAAe,MAAM,cAAc,eAAe,MAAM,eAAe,CAAC;EACxE,eAAe,MAAM,WAAW,CAAC,gCAAgC;EACjE,eAAe,MAAM,WAAW,CAAC,gCAAgC;EACjE,eAAe,MAAM,WAAW,CAAC,mCAAmC;EAEpE,eAAe,MAAM,WAAW,CAAC,iCAAiC;CACpE;CAEA,IAAI,OAAO,WAAW,SAAS;EAC7B,MAAM,kBAAkB,MAAO;EAC/B,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,eAAe,gBAAgB,CAAC,iCAAiC;EACjE,eAAe,gBAAgB,CAAC,qCAAqC;EACrE,IAAI,SAAS,SACX,eAAe,gBAAgB,CAAC,8BAA8B;OACzD;GACL,eAAe,gBAAgB,CAAC,6BAA6B;GAC7D,eAAe,gBAAgB,CAAC,+BAA+B;GAC/D,eAAe,gBAAgB,CAAC,iCAAiC;EACnE;EACA,eAAe,gBAAgB,CAAC,gDAAgD;CAClF;CAEA,IAAI,OAAO,WAAW,QAAQ;EAC5B,MAAM,kBAAkBG,6BAAAA,mBAAmB,MAAO,YAAY,MAAM,WAAW,IAAI;EACnF,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,IAAI,SAAS,SAAS;GACpB,eAAe,gBAAgB,CAAC,6BAA6B;GAC7D,eAAe,gBAAgB,CAAC,8BAA8B;EAChE,OACE,eAAe,gBAAgB,CAAC,6BAA6B;EAE/D,eAAe,gBAAgB,CAAC,iCAAiC;EACjE,eAAe,gBAAgB,CAAC,qCAAqC;EACrE,eAAe,gBAAgB,CAAC,gDAAgD;CAClF;AACF"}
1
+ {"version":3,"file":"assign-aside-variables.cjs","names":["getResizedValue","isPrimitiveSize","rem","getBaseSize","isResponsiveSize","getBreakpointValue"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-aside-variables/assign-aside-variables.ts"],"sourcesContent":["import { getBreakpointValue, keys, MantineTheme, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport { getResizedValue } from '../get-resized-value/get-resized-value';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignAsideVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n maxMediaStyles: MediaQueryVariables;\n aside: AppShellProps['aside'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n resizedSize?: number;\n resizable?: boolean;\n}\n\nexport function assignAsideVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n aside,\n theme,\n mode,\n resizedSize,\n resizable,\n}: AssignAsideVariablesInput) {\n const asideWidth = aside?.width;\n const collapsedAsideTransform = 'translateX(var(--app-shell-aside-width))';\n const collapsedAsideTransformRtl = 'translateX(calc(var(--app-shell-aside-width) * -1))';\n\n if (aside?.breakpoint !== undefined && !aside?.collapsed?.mobile) {\n maxMediaStyles[aside?.breakpoint] = maxMediaStyles[aside?.breakpoint] || {};\n if (mode === 'fixed') {\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-width'] = '100%';\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-offset'] = '0px';\n } else {\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-width'] = '0px';\n maxMediaStyles[aside?.breakpoint]['--app-shell-aside-offset'] = '0px';\n }\n if (resizable) {\n maxMediaStyles[aside.breakpoint]['--app-shell-aside-resize-handle-display'] = 'none';\n }\n }\n\n if (resizedSize !== undefined) {\n const resizedValue = getResizedValue(resizedSize, 'horizontal');\n baseStyles['--app-shell-aside-width'] = resizedValue;\n baseStyles['--app-shell-aside-offset'] = resizedValue;\n if (mode === 'static') {\n baseStyles['--app-shell-aside-grid-width'] = resizedValue;\n }\n } else {\n if (isPrimitiveSize(asideWidth)) {\n const baseSize = rem(getBaseSize(asideWidth));\n baseStyles['--app-shell-aside-width'] = baseSize;\n baseStyles['--app-shell-aside-offset'] = baseSize;\n }\n\n if (isResponsiveSize(asideWidth)) {\n if (typeof asideWidth.base !== 'undefined') {\n baseStyles['--app-shell-aside-width'] = rem(asideWidth.base);\n baseStyles['--app-shell-aside-offset'] = rem(asideWidth.base);\n }\n\n keys(asideWidth).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-aside-width'] = rem(asideWidth![key]);\n minMediaStyles[key]['--app-shell-aside-offset'] = rem(asideWidth![key]);\n }\n });\n }\n }\n\n if (aside?.breakpoint !== undefined && mode === 'static') {\n minMediaStyles[aside.breakpoint] = minMediaStyles[aside.breakpoint] || {};\n minMediaStyles[aside.breakpoint]['--app-shell-aside-position'] = 'sticky';\n minMediaStyles[aside.breakpoint]['--app-shell-aside-grid-row'] = '2';\n minMediaStyles[aside.breakpoint]['--app-shell-aside-grid-column'] = '3';\n // Adjust main column end when aside is visible\n minMediaStyles[aside.breakpoint]['--app-shell-main-column-end'] = '3';\n }\n\n if (aside?.collapsed?.desktop) {\n const breakpointValue = aside!.breakpoint;\n minMediaStyles[breakpointValue] = minMediaStyles[breakpointValue] || {};\n minMediaStyles[breakpointValue]['--app-shell-aside-transform'] = collapsedAsideTransform;\n minMediaStyles[breakpointValue]['--app-shell-aside-transform-rtl'] = collapsedAsideTransformRtl;\n if (mode === 'fixed') {\n minMediaStyles[breakpointValue]['--app-shell-aside-offset'] = '0px !important';\n } else {\n minMediaStyles[breakpointValue]['--app-shell-aside-width'] = '0px';\n minMediaStyles[breakpointValue]['--app-shell-aside-display'] = 'none';\n minMediaStyles[breakpointValue]['--app-shell-main-column-end'] = '-1';\n }\n minMediaStyles[breakpointValue]['--app-shell-aside-scroll-locked-visibility'] = 'hidden';\n if (resizable) {\n minMediaStyles[breakpointValue]['--app-shell-aside-resize-handle-display'] = 'none';\n }\n }\n\n if (aside?.collapsed?.mobile) {\n const breakpointValue = getBreakpointValue(aside!.breakpoint, theme.breakpoints) - 0.1;\n maxMediaStyles[breakpointValue] = maxMediaStyles[breakpointValue] || {};\n if (mode === 'fixed') {\n maxMediaStyles[breakpointValue]['--app-shell-aside-width'] = '100%';\n maxMediaStyles[breakpointValue]['--app-shell-aside-offset'] = '0px';\n } else {\n maxMediaStyles[breakpointValue]['--app-shell-aside-width'] = '0px';\n }\n maxMediaStyles[breakpointValue]['--app-shell-aside-transform'] = collapsedAsideTransform;\n maxMediaStyles[breakpointValue]['--app-shell-aside-transform-rtl'] = collapsedAsideTransformRtl;\n maxMediaStyles[breakpointValue]['--app-shell-aside-scroll-locked-visibility'] = 'hidden';\n if (resizable) {\n maxMediaStyles[breakpointValue]['--app-shell-aside-resize-handle-display'] = 'none';\n }\n }\n}\n"],"mappings":";;;;;;;;;AAmBA,SAAgB,qBAAqB,EACnC,YACA,gBACA,gBACA,OACA,OACA,MACA,aACA,aAC4B;CAC5B,MAAM,aAAa,OAAO;CAC1B,MAAM,0BAA0B;CAChC,MAAM,6BAA6B;CAEnC,IAAI,OAAO,eAAe,KAAA,KAAa,CAAC,OAAO,WAAW,QAAQ;EAChE,eAAe,OAAO,cAAc,eAAe,OAAO,eAAe,CAAC;EAC1E,IAAI,SAAS,SAAS;GACpB,eAAe,OAAO,WAAW,CAAC,6BAA6B;GAC/D,eAAe,OAAO,WAAW,CAAC,8BAA8B;EAClE,OAAO;GACL,eAAe,OAAO,WAAW,CAAC,6BAA6B;GAC/D,eAAe,OAAO,WAAW,CAAC,8BAA8B;EAClE;EACA,IAAI,WACF,eAAe,MAAM,WAAW,CAAC,6CAA6C;CAElF;CAEA,IAAI,gBAAgB,KAAA,GAAW;EAC7B,MAAM,eAAeA,0BAAAA,gBAAgB,aAAa,YAAY;EAC9D,WAAW,6BAA6B;EACxC,WAAW,8BAA8B;EACzC,IAAI,SAAS,UACX,WAAW,kCAAkC;CAEjD,OAAO;EACL,IAAIC,0BAAAA,gBAAgB,UAAU,GAAG;GAC/B,MAAM,WAAWC,YAAAA,IAAIC,sBAAAA,YAAY,UAAU,CAAC;GAC5C,WAAW,6BAA6B;GACxC,WAAW,8BAA8B;EAC3C;EAEA,IAAIC,2BAAAA,iBAAiB,UAAU,GAAG;GAChC,IAAI,OAAO,WAAW,SAAS,aAAa;IAC1C,WAAW,6BAA6BF,YAAAA,IAAI,WAAW,IAAI;IAC3D,WAAW,8BAA8BA,YAAAA,IAAI,WAAW,IAAI;GAC9D;GAEA,aAAA,KAAK,UAAU,CAAC,CAAC,SAAS,QAAQ;IAChC,IAAI,QAAQ,QAAQ;KAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;KAC9C,eAAe,IAAI,CAAC,6BAA6BA,YAAAA,IAAI,WAAY,IAAI;KACrE,eAAe,IAAI,CAAC,8BAA8BA,YAAAA,IAAI,WAAY,IAAI;IACxE;GACF,CAAC;EACH;CACF;CAEA,IAAI,OAAO,eAAe,KAAA,KAAa,SAAS,UAAU;EACxD,eAAe,MAAM,cAAc,eAAe,MAAM,eAAe,CAAC;EACxE,eAAe,MAAM,WAAW,CAAC,gCAAgC;EACjE,eAAe,MAAM,WAAW,CAAC,gCAAgC;EACjE,eAAe,MAAM,WAAW,CAAC,mCAAmC;EAEpE,eAAe,MAAM,WAAW,CAAC,iCAAiC;CACpE;CAEA,IAAI,OAAO,WAAW,SAAS;EAC7B,MAAM,kBAAkB,MAAO;EAC/B,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,eAAe,gBAAgB,CAAC,iCAAiC;EACjE,eAAe,gBAAgB,CAAC,qCAAqC;EACrE,IAAI,SAAS,SACX,eAAe,gBAAgB,CAAC,8BAA8B;OACzD;GACL,eAAe,gBAAgB,CAAC,6BAA6B;GAC7D,eAAe,gBAAgB,CAAC,+BAA+B;GAC/D,eAAe,gBAAgB,CAAC,iCAAiC;EACnE;EACA,eAAe,gBAAgB,CAAC,gDAAgD;EAChF,IAAI,WACF,eAAe,gBAAgB,CAAC,6CAA6C;CAEjF;CAEA,IAAI,OAAO,WAAW,QAAQ;EAC5B,MAAM,kBAAkBG,6BAAAA,mBAAmB,MAAO,YAAY,MAAM,WAAW,IAAI;EACnF,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,IAAI,SAAS,SAAS;GACpB,eAAe,gBAAgB,CAAC,6BAA6B;GAC7D,eAAe,gBAAgB,CAAC,8BAA8B;EAChE,OACE,eAAe,gBAAgB,CAAC,6BAA6B;EAE/D,eAAe,gBAAgB,CAAC,iCAAiC;EACjE,eAAe,gBAAgB,CAAC,qCAAqC;EACrE,eAAe,gBAAgB,CAAC,gDAAgD;EAChF,IAAI,WACF,eAAe,gBAAgB,CAAC,6CAA6C;CAEjF;AACF"}
@@ -2,10 +2,11 @@
2
2
  const require_keys = require("../../../../core/utils/keys/keys.cjs");
3
3
  const require_rem = require("../../../../core/utils/units-converters/rem.cjs");
4
4
  const require_get_base_size = require("../get-base-size/get-base-size.cjs");
5
+ const require_get_resized_value = require("../get-resized-value/get-resized-value.cjs");
5
6
  const require_is_primitive_size = require("../is-primitive-size/is-primitive-size.cjs");
6
7
  const require_is_responsive_size = require("../is-responsive-size/is-responsive-size.cjs");
7
8
  //#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.ts
8
- function assignFooterVariables({ baseStyles, minMediaStyles, footer, mode }) {
9
+ function assignFooterVariables({ baseStyles, minMediaStyles, footer, mode, resizedSize, resizable }) {
9
10
  const footerHeight = footer?.height;
10
11
  const collapsedFooterTransform = "translateY(var(--app-shell-footer-height))";
11
12
  const shouldOffset = mode === "static" ? true : footer?.offset ?? true;
@@ -14,27 +15,34 @@ function assignFooterVariables({ baseStyles, minMediaStyles, footer, mode }) {
14
15
  baseStyles["--app-shell-footer-grid-column"] = "1 / -1";
15
16
  baseStyles["--app-shell-footer-grid-row"] = "3";
16
17
  }
17
- if (require_is_primitive_size.isPrimitiveSize(footerHeight)) {
18
- const baseSize = require_rem.rem(require_get_base_size.getBaseSize(footerHeight));
19
- baseStyles["--app-shell-footer-height"] = baseSize;
20
- if (shouldOffset) baseStyles["--app-shell-footer-offset"] = baseSize;
21
- }
22
- if (require_is_responsive_size.isResponsiveSize(footerHeight)) {
23
- if (typeof footerHeight.base !== "undefined") {
24
- baseStyles["--app-shell-footer-height"] = require_rem.rem(footerHeight.base);
25
- if (shouldOffset) baseStyles["--app-shell-footer-offset"] = require_rem.rem(footerHeight.base);
18
+ if (resizedSize !== void 0) {
19
+ const resizedValue = require_get_resized_value.getResizedValue(resizedSize, "vertical");
20
+ baseStyles["--app-shell-footer-height"] = resizedValue;
21
+ if (shouldOffset) baseStyles["--app-shell-footer-offset"] = resizedValue;
22
+ } else {
23
+ if (require_is_primitive_size.isPrimitiveSize(footerHeight)) {
24
+ const baseSize = require_rem.rem(require_get_base_size.getBaseSize(footerHeight));
25
+ baseStyles["--app-shell-footer-height"] = baseSize;
26
+ if (shouldOffset) baseStyles["--app-shell-footer-offset"] = baseSize;
26
27
  }
27
- require_keys.keys(footerHeight).forEach((key) => {
28
- if (key !== "base") {
29
- minMediaStyles[key] = minMediaStyles[key] || {};
30
- minMediaStyles[key]["--app-shell-footer-height"] = require_rem.rem(footerHeight[key]);
31
- if (shouldOffset) minMediaStyles[key]["--app-shell-footer-offset"] = require_rem.rem(footerHeight[key]);
28
+ if (require_is_responsive_size.isResponsiveSize(footerHeight)) {
29
+ if (typeof footerHeight.base !== "undefined") {
30
+ baseStyles["--app-shell-footer-height"] = require_rem.rem(footerHeight.base);
31
+ if (shouldOffset) baseStyles["--app-shell-footer-offset"] = require_rem.rem(footerHeight.base);
32
32
  }
33
- });
33
+ require_keys.keys(footerHeight).forEach((key) => {
34
+ if (key !== "base") {
35
+ minMediaStyles[key] = minMediaStyles[key] || {};
36
+ minMediaStyles[key]["--app-shell-footer-height"] = require_rem.rem(footerHeight[key]);
37
+ if (shouldOffset) minMediaStyles[key]["--app-shell-footer-offset"] = require_rem.rem(footerHeight[key]);
38
+ }
39
+ });
40
+ }
34
41
  }
35
42
  if (footer?.collapsed) {
36
43
  baseStyles["--app-shell-footer-transform"] = collapsedFooterTransform;
37
44
  if (mode === "fixed") baseStyles["--app-shell-footer-offset"] = "0px !important";
45
+ if (resizable) baseStyles["--app-shell-footer-resize-handle-display"] = "none";
38
46
  }
39
47
  }
40
48
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"assign-footer-variables.cjs","names":["isPrimitiveSize","rem","getBaseSize","isResponsiveSize"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.ts"],"sourcesContent":["import { keys, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignFooterVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n footer: AppShellProps['footer'] | undefined;\n mode: 'fixed' | 'static';\n}\n\nexport function assignFooterVariables({\n baseStyles,\n minMediaStyles,\n footer,\n mode,\n}: AssignFooterVariablesInput) {\n const footerHeight = footer?.height;\n const collapsedFooterTransform = 'translateY(var(--app-shell-footer-height))';\n const shouldOffset = mode === 'static' ? true : (footer?.offset ?? true);\n\n if (mode === 'static' && footer) {\n baseStyles['--app-shell-footer-position'] = 'sticky';\n baseStyles['--app-shell-footer-grid-column'] = '1 / -1';\n baseStyles['--app-shell-footer-grid-row'] = '3';\n }\n\n if (isPrimitiveSize(footerHeight)) {\n const baseSize = rem(getBaseSize(footerHeight));\n baseStyles['--app-shell-footer-height'] = baseSize;\n if (shouldOffset) {\n baseStyles['--app-shell-footer-offset'] = baseSize;\n }\n }\n\n if (isResponsiveSize(footerHeight)) {\n if (typeof footerHeight.base !== 'undefined') {\n baseStyles['--app-shell-footer-height'] = rem(footerHeight.base);\n\n if (shouldOffset) {\n baseStyles['--app-shell-footer-offset'] = rem(footerHeight.base);\n }\n }\n\n keys(footerHeight).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-footer-height'] = rem(footerHeight[key]);\n\n if (shouldOffset) {\n minMediaStyles[key]['--app-shell-footer-offset'] = rem(footerHeight[key]);\n }\n }\n });\n }\n\n if (footer?.collapsed) {\n baseStyles['--app-shell-footer-transform'] = collapsedFooterTransform;\n if (mode === 'fixed') {\n baseStyles['--app-shell-footer-offset'] = '0px !important';\n }\n }\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,sBAAsB,EACpC,YACA,gBACA,QACA,QAC6B;CAC7B,MAAM,eAAe,QAAQ;CAC7B,MAAM,2BAA2B;CACjC,MAAM,eAAe,SAAS,WAAW,OAAQ,QAAQ,UAAU;CAEnE,IAAI,SAAS,YAAY,QAAQ;EAC/B,WAAW,iCAAiC;EAC5C,WAAW,oCAAoC;EAC/C,WAAW,iCAAiC;CAC9C;CAEA,IAAIA,0BAAAA,gBAAgB,YAAY,GAAG;EACjC,MAAM,WAAWC,YAAAA,IAAIC,sBAAAA,YAAY,YAAY,CAAC;EAC9C,WAAW,+BAA+B;EAC1C,IAAI,cACF,WAAW,+BAA+B;CAE9C;CAEA,IAAIC,2BAAAA,iBAAiB,YAAY,GAAG;EAClC,IAAI,OAAO,aAAa,SAAS,aAAa;GAC5C,WAAW,+BAA+BF,YAAAA,IAAI,aAAa,IAAI;GAE/D,IAAI,cACF,WAAW,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;EAEnE;EAEA,aAAA,KAAK,YAAY,CAAC,CAAC,SAAS,QAAQ;GAClC,IAAI,QAAQ,QAAQ;IAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;IAC9C,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;IAExE,IAAI,cACF,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;GAE5E;EACF,CAAC;CACH;CAEA,IAAI,QAAQ,WAAW;EACrB,WAAW,kCAAkC;EAC7C,IAAI,SAAS,SACX,WAAW,+BAA+B;CAE9C;AACF"}
1
+ {"version":3,"file":"assign-footer-variables.cjs","names":["getResizedValue","isPrimitiveSize","rem","getBaseSize","isResponsiveSize"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-footer-variables/assign-footer-variables.ts"],"sourcesContent":["import { keys, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport { getResizedValue } from '../get-resized-value/get-resized-value';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignFooterVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n footer: AppShellProps['footer'] | undefined;\n mode: 'fixed' | 'static';\n resizedSize?: number;\n resizable?: boolean;\n}\n\nexport function assignFooterVariables({\n baseStyles,\n minMediaStyles,\n footer,\n mode,\n resizedSize,\n resizable,\n}: AssignFooterVariablesInput) {\n const footerHeight = footer?.height;\n const collapsedFooterTransform = 'translateY(var(--app-shell-footer-height))';\n const shouldOffset = mode === 'static' ? true : (footer?.offset ?? true);\n\n if (mode === 'static' && footer) {\n baseStyles['--app-shell-footer-position'] = 'sticky';\n baseStyles['--app-shell-footer-grid-column'] = '1 / -1';\n baseStyles['--app-shell-footer-grid-row'] = '3';\n }\n\n if (resizedSize !== undefined) {\n const resizedValue = getResizedValue(resizedSize, 'vertical');\n baseStyles['--app-shell-footer-height'] = resizedValue;\n if (shouldOffset) {\n baseStyles['--app-shell-footer-offset'] = resizedValue;\n }\n } else {\n if (isPrimitiveSize(footerHeight)) {\n const baseSize = rem(getBaseSize(footerHeight));\n baseStyles['--app-shell-footer-height'] = baseSize;\n if (shouldOffset) {\n baseStyles['--app-shell-footer-offset'] = baseSize;\n }\n }\n\n if (isResponsiveSize(footerHeight)) {\n if (typeof footerHeight.base !== 'undefined') {\n baseStyles['--app-shell-footer-height'] = rem(footerHeight.base);\n\n if (shouldOffset) {\n baseStyles['--app-shell-footer-offset'] = rem(footerHeight.base);\n }\n }\n\n keys(footerHeight).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-footer-height'] = rem(footerHeight[key]);\n\n if (shouldOffset) {\n minMediaStyles[key]['--app-shell-footer-offset'] = rem(footerHeight[key]);\n }\n }\n });\n }\n }\n\n if (footer?.collapsed) {\n baseStyles['--app-shell-footer-transform'] = collapsedFooterTransform;\n if (mode === 'fixed') {\n baseStyles['--app-shell-footer-offset'] = '0px !important';\n }\n if (resizable) {\n baseStyles['--app-shell-footer-resize-handle-display'] = 'none';\n }\n }\n}\n"],"mappings":";;;;;;;;AAiBA,SAAgB,sBAAsB,EACpC,YACA,gBACA,QACA,MACA,aACA,aAC6B;CAC7B,MAAM,eAAe,QAAQ;CAC7B,MAAM,2BAA2B;CACjC,MAAM,eAAe,SAAS,WAAW,OAAQ,QAAQ,UAAU;CAEnE,IAAI,SAAS,YAAY,QAAQ;EAC/B,WAAW,iCAAiC;EAC5C,WAAW,oCAAoC;EAC/C,WAAW,iCAAiC;CAC9C;CAEA,IAAI,gBAAgB,KAAA,GAAW;EAC7B,MAAM,eAAeA,0BAAAA,gBAAgB,aAAa,UAAU;EAC5D,WAAW,+BAA+B;EAC1C,IAAI,cACF,WAAW,+BAA+B;CAE9C,OAAO;EACL,IAAIC,0BAAAA,gBAAgB,YAAY,GAAG;GACjC,MAAM,WAAWC,YAAAA,IAAIC,sBAAAA,YAAY,YAAY,CAAC;GAC9C,WAAW,+BAA+B;GAC1C,IAAI,cACF,WAAW,+BAA+B;EAE9C;EAEA,IAAIC,2BAAAA,iBAAiB,YAAY,GAAG;GAClC,IAAI,OAAO,aAAa,SAAS,aAAa;IAC5C,WAAW,+BAA+BF,YAAAA,IAAI,aAAa,IAAI;IAE/D,IAAI,cACF,WAAW,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;GAEnE;GAEA,aAAA,KAAK,YAAY,CAAC,CAAC,SAAS,QAAQ;IAClC,IAAI,QAAQ,QAAQ;KAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;KAC9C,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;KAExE,IAAI,cACF,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;IAE5E;GACF,CAAC;EACH;CACF;CAEA,IAAI,QAAQ,WAAW;EACrB,WAAW,kCAAkC;EAC7C,IAAI,SAAS,SACX,WAAW,+BAA+B;EAE5C,IAAI,WACF,WAAW,8CAA8C;CAE7D;AACF"}
@@ -2,10 +2,11 @@
2
2
  const require_keys = require("../../../../core/utils/keys/keys.cjs");
3
3
  const require_rem = require("../../../../core/utils/units-converters/rem.cjs");
4
4
  const require_get_base_size = require("../get-base-size/get-base-size.cjs");
5
+ const require_get_resized_value = require("../get-resized-value/get-resized-value.cjs");
5
6
  const require_is_primitive_size = require("../is-primitive-size/is-primitive-size.cjs");
6
7
  const require_is_responsive_size = require("../is-responsive-size/is-responsive-size.cjs");
7
8
  //#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.ts
8
- function assignHeaderVariables({ baseStyles, minMediaStyles, header, mode }) {
9
+ function assignHeaderVariables({ baseStyles, minMediaStyles, header, mode, resizedSize, resizable }) {
9
10
  const headerHeight = header?.height;
10
11
  const collapsedHeaderTransform = "translateY(calc(var(--app-shell-header-height) * -1))";
11
12
  const shouldOffset = mode === "static" ? true : header?.offset ?? true;
@@ -14,27 +15,34 @@ function assignHeaderVariables({ baseStyles, minMediaStyles, header, mode }) {
14
15
  baseStyles["--app-shell-header-grid-column"] = "1 / -1";
15
16
  baseStyles["--app-shell-header-grid-row"] = "1";
16
17
  }
17
- if (require_is_primitive_size.isPrimitiveSize(headerHeight)) {
18
- const baseSize = require_rem.rem(require_get_base_size.getBaseSize(headerHeight));
19
- baseStyles["--app-shell-header-height"] = baseSize;
20
- if (shouldOffset) baseStyles["--app-shell-header-offset"] = baseSize;
21
- }
22
- if (require_is_responsive_size.isResponsiveSize(headerHeight)) {
23
- if (typeof headerHeight.base !== "undefined") {
24
- baseStyles["--app-shell-header-height"] = require_rem.rem(headerHeight.base);
25
- if (shouldOffset) baseStyles["--app-shell-header-offset"] = require_rem.rem(headerHeight.base);
18
+ if (resizedSize !== void 0) {
19
+ const resizedValue = require_get_resized_value.getResizedValue(resizedSize, "vertical");
20
+ baseStyles["--app-shell-header-height"] = resizedValue;
21
+ if (shouldOffset) baseStyles["--app-shell-header-offset"] = resizedValue;
22
+ } else {
23
+ if (require_is_primitive_size.isPrimitiveSize(headerHeight)) {
24
+ const baseSize = require_rem.rem(require_get_base_size.getBaseSize(headerHeight));
25
+ baseStyles["--app-shell-header-height"] = baseSize;
26
+ if (shouldOffset) baseStyles["--app-shell-header-offset"] = baseSize;
26
27
  }
27
- require_keys.keys(headerHeight).forEach((key) => {
28
- if (key !== "base") {
29
- minMediaStyles[key] = minMediaStyles[key] || {};
30
- minMediaStyles[key]["--app-shell-header-height"] = require_rem.rem(headerHeight[key]);
31
- if (shouldOffset) minMediaStyles[key]["--app-shell-header-offset"] = require_rem.rem(headerHeight[key]);
28
+ if (require_is_responsive_size.isResponsiveSize(headerHeight)) {
29
+ if (typeof headerHeight.base !== "undefined") {
30
+ baseStyles["--app-shell-header-height"] = require_rem.rem(headerHeight.base);
31
+ if (shouldOffset) baseStyles["--app-shell-header-offset"] = require_rem.rem(headerHeight.base);
32
32
  }
33
- });
33
+ require_keys.keys(headerHeight).forEach((key) => {
34
+ if (key !== "base") {
35
+ minMediaStyles[key] = minMediaStyles[key] || {};
36
+ minMediaStyles[key]["--app-shell-header-height"] = require_rem.rem(headerHeight[key]);
37
+ if (shouldOffset) minMediaStyles[key]["--app-shell-header-offset"] = require_rem.rem(headerHeight[key]);
38
+ }
39
+ });
40
+ }
34
41
  }
35
42
  if (header?.collapsed) {
36
43
  baseStyles["--app-shell-header-transform"] = collapsedHeaderTransform;
37
44
  if (mode === "fixed") baseStyles["--app-shell-header-offset"] = "0px !important";
45
+ if (resizable) baseStyles["--app-shell-header-resize-handle-display"] = "none";
38
46
  }
39
47
  }
40
48
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"assign-header-variables.cjs","names":["isPrimitiveSize","rem","getBaseSize","isResponsiveSize"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.ts"],"sourcesContent":["import { keys, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignHeaderVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n header: AppShellProps['header'] | undefined;\n mode: 'fixed' | 'static';\n}\n\nexport function assignHeaderVariables({\n baseStyles,\n minMediaStyles,\n header,\n mode,\n}: AssignHeaderVariablesInput) {\n const headerHeight = header?.height;\n const collapsedHeaderTransform = 'translateY(calc(var(--app-shell-header-height) * -1))';\n const shouldOffset = mode === 'static' ? true : (header?.offset ?? true);\n\n if (mode === 'static' && header) {\n baseStyles['--app-shell-header-position'] = 'sticky';\n baseStyles['--app-shell-header-grid-column'] = '1 / -1';\n baseStyles['--app-shell-header-grid-row'] = '1';\n }\n\n if (isPrimitiveSize(headerHeight)) {\n const baseSize = rem(getBaseSize(headerHeight));\n baseStyles['--app-shell-header-height'] = baseSize;\n if (shouldOffset) {\n baseStyles['--app-shell-header-offset'] = baseSize;\n }\n }\n\n if (isResponsiveSize(headerHeight)) {\n if (typeof headerHeight.base !== 'undefined') {\n baseStyles['--app-shell-header-height'] = rem(headerHeight.base);\n\n if (shouldOffset) {\n baseStyles['--app-shell-header-offset'] = rem(headerHeight.base);\n }\n }\n\n keys(headerHeight).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-header-height'] = rem(headerHeight[key]);\n\n if (shouldOffset) {\n minMediaStyles[key]['--app-shell-header-offset'] = rem(headerHeight[key]);\n }\n }\n });\n }\n\n if (header?.collapsed) {\n baseStyles['--app-shell-header-transform'] = collapsedHeaderTransform;\n if (mode === 'fixed') {\n baseStyles['--app-shell-header-offset'] = '0px !important';\n }\n }\n}\n"],"mappings":";;;;;;;AAcA,SAAgB,sBAAsB,EACpC,YACA,gBACA,QACA,QAC6B;CAC7B,MAAM,eAAe,QAAQ;CAC7B,MAAM,2BAA2B;CACjC,MAAM,eAAe,SAAS,WAAW,OAAQ,QAAQ,UAAU;CAEnE,IAAI,SAAS,YAAY,QAAQ;EAC/B,WAAW,iCAAiC;EAC5C,WAAW,oCAAoC;EAC/C,WAAW,iCAAiC;CAC9C;CAEA,IAAIA,0BAAAA,gBAAgB,YAAY,GAAG;EACjC,MAAM,WAAWC,YAAAA,IAAIC,sBAAAA,YAAY,YAAY,CAAC;EAC9C,WAAW,+BAA+B;EAC1C,IAAI,cACF,WAAW,+BAA+B;CAE9C;CAEA,IAAIC,2BAAAA,iBAAiB,YAAY,GAAG;EAClC,IAAI,OAAO,aAAa,SAAS,aAAa;GAC5C,WAAW,+BAA+BF,YAAAA,IAAI,aAAa,IAAI;GAE/D,IAAI,cACF,WAAW,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;EAEnE;EAEA,aAAA,KAAK,YAAY,CAAC,CAAC,SAAS,QAAQ;GAClC,IAAI,QAAQ,QAAQ;IAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;IAC9C,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;IAExE,IAAI,cACF,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;GAE5E;EACF,CAAC;CACH;CAEA,IAAI,QAAQ,WAAW;EACrB,WAAW,kCAAkC;EAC7C,IAAI,SAAS,SACX,WAAW,+BAA+B;CAE9C;AACF"}
1
+ {"version":3,"file":"assign-header-variables.cjs","names":["getResizedValue","isPrimitiveSize","rem","getBaseSize","isResponsiveSize"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-header-variables/assign-header-variables.ts"],"sourcesContent":["import { keys, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport { getResizedValue } from '../get-resized-value/get-resized-value';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignHeaderVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n header: AppShellProps['header'] | undefined;\n mode: 'fixed' | 'static';\n resizedSize?: number;\n resizable?: boolean;\n}\n\nexport function assignHeaderVariables({\n baseStyles,\n minMediaStyles,\n header,\n mode,\n resizedSize,\n resizable,\n}: AssignHeaderVariablesInput) {\n const headerHeight = header?.height;\n const collapsedHeaderTransform = 'translateY(calc(var(--app-shell-header-height) * -1))';\n const shouldOffset = mode === 'static' ? true : (header?.offset ?? true);\n\n if (mode === 'static' && header) {\n baseStyles['--app-shell-header-position'] = 'sticky';\n baseStyles['--app-shell-header-grid-column'] = '1 / -1';\n baseStyles['--app-shell-header-grid-row'] = '1';\n }\n\n if (resizedSize !== undefined) {\n const resizedValue = getResizedValue(resizedSize, 'vertical');\n baseStyles['--app-shell-header-height'] = resizedValue;\n if (shouldOffset) {\n baseStyles['--app-shell-header-offset'] = resizedValue;\n }\n } else {\n if (isPrimitiveSize(headerHeight)) {\n const baseSize = rem(getBaseSize(headerHeight));\n baseStyles['--app-shell-header-height'] = baseSize;\n if (shouldOffset) {\n baseStyles['--app-shell-header-offset'] = baseSize;\n }\n }\n\n if (isResponsiveSize(headerHeight)) {\n if (typeof headerHeight.base !== 'undefined') {\n baseStyles['--app-shell-header-height'] = rem(headerHeight.base);\n\n if (shouldOffset) {\n baseStyles['--app-shell-header-offset'] = rem(headerHeight.base);\n }\n }\n\n keys(headerHeight).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-header-height'] = rem(headerHeight[key]);\n\n if (shouldOffset) {\n minMediaStyles[key]['--app-shell-header-offset'] = rem(headerHeight[key]);\n }\n }\n });\n }\n }\n\n if (header?.collapsed) {\n baseStyles['--app-shell-header-transform'] = collapsedHeaderTransform;\n if (mode === 'fixed') {\n baseStyles['--app-shell-header-offset'] = '0px !important';\n }\n if (resizable) {\n baseStyles['--app-shell-header-resize-handle-display'] = 'none';\n }\n }\n}\n"],"mappings":";;;;;;;;AAiBA,SAAgB,sBAAsB,EACpC,YACA,gBACA,QACA,MACA,aACA,aAC6B;CAC7B,MAAM,eAAe,QAAQ;CAC7B,MAAM,2BAA2B;CACjC,MAAM,eAAe,SAAS,WAAW,OAAQ,QAAQ,UAAU;CAEnE,IAAI,SAAS,YAAY,QAAQ;EAC/B,WAAW,iCAAiC;EAC5C,WAAW,oCAAoC;EAC/C,WAAW,iCAAiC;CAC9C;CAEA,IAAI,gBAAgB,KAAA,GAAW;EAC7B,MAAM,eAAeA,0BAAAA,gBAAgB,aAAa,UAAU;EAC5D,WAAW,+BAA+B;EAC1C,IAAI,cACF,WAAW,+BAA+B;CAE9C,OAAO;EACL,IAAIC,0BAAAA,gBAAgB,YAAY,GAAG;GACjC,MAAM,WAAWC,YAAAA,IAAIC,sBAAAA,YAAY,YAAY,CAAC;GAC9C,WAAW,+BAA+B;GAC1C,IAAI,cACF,WAAW,+BAA+B;EAE9C;EAEA,IAAIC,2BAAAA,iBAAiB,YAAY,GAAG;GAClC,IAAI,OAAO,aAAa,SAAS,aAAa;IAC5C,WAAW,+BAA+BF,YAAAA,IAAI,aAAa,IAAI;IAE/D,IAAI,cACF,WAAW,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;GAEnE;GAEA,aAAA,KAAK,YAAY,CAAC,CAAC,SAAS,QAAQ;IAClC,IAAI,QAAQ,QAAQ;KAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;KAC9C,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;KAExE,IAAI,cACF,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,aAAa,IAAI;IAE5E;GACF,CAAC;EACH;CACF;CAEA,IAAI,QAAQ,WAAW;EACrB,WAAW,kCAAkC;EAC7C,IAAI,SAAS,SACX,WAAW,+BAA+B;EAE5C,IAAI,WACF,WAAW,8CAA8C;CAE7D;AACF"}
@@ -3,10 +3,11 @@ const require_keys = require("../../../../core/utils/keys/keys.cjs");
3
3
  const require_rem = require("../../../../core/utils/units-converters/rem.cjs");
4
4
  const require_get_breakpoint_value = require("../../../../core/utils/get-breakpoint-value/get-breakpoint-value.cjs");
5
5
  const require_get_base_size = require("../get-base-size/get-base-size.cjs");
6
+ const require_get_resized_value = require("../get-resized-value/get-resized-value.cjs");
6
7
  const require_is_primitive_size = require("../is-primitive-size/is-primitive-size.cjs");
7
8
  const require_is_responsive_size = require("../is-responsive-size/is-responsive-size.cjs");
8
9
  //#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.ts
9
- function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, navbar, theme, mode }) {
10
+ function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, navbar, theme, mode, resizedSize, resizable }) {
10
11
  const navbarWidth = navbar?.width;
11
12
  const collapsedNavbarTransform = "translateX(calc(var(--app-shell-navbar-width) * -1))";
12
13
  const collapsedNavbarTransformRtl = "translateX(var(--app-shell-navbar-width))";
@@ -15,27 +16,35 @@ function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, nav
15
16
  maxMediaStyles[navbar?.breakpoint]["--app-shell-navbar-offset"] = "0px";
16
17
  maxMediaStyles[navbar?.breakpoint]["--app-shell-navbar-width"] = "100%";
17
18
  if (mode === "static") maxMediaStyles[navbar?.breakpoint]["--app-shell-navbar-grid-width"] = "0px";
19
+ if (resizable) maxMediaStyles[navbar.breakpoint]["--app-shell-navbar-resize-handle-display"] = "none";
18
20
  }
19
- if (require_is_primitive_size.isPrimitiveSize(navbarWidth)) {
20
- const baseSize = require_rem.rem(require_get_base_size.getBaseSize(navbarWidth));
21
- baseStyles["--app-shell-navbar-width"] = baseSize;
22
- baseStyles["--app-shell-navbar-offset"] = baseSize;
23
- if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] = baseSize;
24
- }
25
- if (require_is_responsive_size.isResponsiveSize(navbarWidth)) {
26
- if (typeof navbarWidth.base !== "undefined") {
27
- baseStyles["--app-shell-navbar-width"] = require_rem.rem(navbarWidth.base);
28
- baseStyles["--app-shell-navbar-offset"] = require_rem.rem(navbarWidth.base);
29
- if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] = require_rem.rem(navbarWidth.base);
21
+ if (resizedSize !== void 0) {
22
+ const resizedValue = require_get_resized_value.getResizedValue(resizedSize, "horizontal");
23
+ baseStyles["--app-shell-navbar-width"] = resizedValue;
24
+ baseStyles["--app-shell-navbar-offset"] = resizedValue;
25
+ if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] = resizedValue;
26
+ } else {
27
+ if (require_is_primitive_size.isPrimitiveSize(navbarWidth)) {
28
+ const baseSize = require_rem.rem(require_get_base_size.getBaseSize(navbarWidth));
29
+ baseStyles["--app-shell-navbar-width"] = baseSize;
30
+ baseStyles["--app-shell-navbar-offset"] = baseSize;
31
+ if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] = baseSize;
30
32
  }
31
- require_keys.keys(navbarWidth).forEach((key) => {
32
- if (key !== "base") {
33
- minMediaStyles[key] = minMediaStyles[key] || {};
34
- minMediaStyles[key]["--app-shell-navbar-width"] = require_rem.rem(navbarWidth[key]);
35
- minMediaStyles[key]["--app-shell-navbar-offset"] = require_rem.rem(navbarWidth[key]);
36
- if (mode === "static") minMediaStyles[key]["--app-shell-navbar-grid-width"] = require_rem.rem(navbarWidth[key]);
33
+ if (require_is_responsive_size.isResponsiveSize(navbarWidth)) {
34
+ if (typeof navbarWidth.base !== "undefined") {
35
+ baseStyles["--app-shell-navbar-width"] = require_rem.rem(navbarWidth.base);
36
+ baseStyles["--app-shell-navbar-offset"] = require_rem.rem(navbarWidth.base);
37
+ if (mode === "static") baseStyles["--app-shell-navbar-grid-width"] = require_rem.rem(navbarWidth.base);
37
38
  }
38
- });
39
+ require_keys.keys(navbarWidth).forEach((key) => {
40
+ if (key !== "base") {
41
+ minMediaStyles[key] = minMediaStyles[key] || {};
42
+ minMediaStyles[key]["--app-shell-navbar-width"] = require_rem.rem(navbarWidth[key]);
43
+ minMediaStyles[key]["--app-shell-navbar-offset"] = require_rem.rem(navbarWidth[key]);
44
+ if (mode === "static") minMediaStyles[key]["--app-shell-navbar-grid-width"] = require_rem.rem(navbarWidth[key]);
45
+ }
46
+ });
47
+ }
39
48
  }
40
49
  if (navbar?.breakpoint !== void 0 && mode === "static") {
41
50
  minMediaStyles[navbar.breakpoint] = minMediaStyles[navbar.breakpoint] || {};
@@ -55,6 +64,7 @@ function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, nav
55
64
  minMediaStyles[breakpointValue]["--app-shell-navbar-display"] = "none";
56
65
  minMediaStyles[breakpointValue]["--app-shell-main-column-start"] = "1";
57
66
  }
67
+ if (resizable) minMediaStyles[breakpointValue]["--app-shell-navbar-resize-handle-display"] = "none";
58
68
  }
59
69
  if (navbar?.collapsed?.mobile) {
60
70
  const breakpointValue = require_get_breakpoint_value.getBreakpointValue(navbar.breakpoint, theme.breakpoints) - .1;
@@ -64,6 +74,7 @@ function assignNavbarVariables({ baseStyles, minMediaStyles, maxMediaStyles, nav
64
74
  if (mode === "static") maxMediaStyles[breakpointValue]["--app-shell-navbar-grid-width"] = "0px";
65
75
  maxMediaStyles[breakpointValue]["--app-shell-navbar-transform"] = collapsedNavbarTransform;
66
76
  maxMediaStyles[breakpointValue]["--app-shell-navbar-transform-rtl"] = collapsedNavbarTransformRtl;
77
+ if (resizable) maxMediaStyles[breakpointValue]["--app-shell-navbar-resize-handle-display"] = "none";
67
78
  }
68
79
  }
69
80
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"assign-navbar-variables.cjs","names":["isPrimitiveSize","rem","getBaseSize","isResponsiveSize","getBreakpointValue"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.ts"],"sourcesContent":["import { getBreakpointValue, keys, MantineTheme, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignNavbarVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n maxMediaStyles: MediaQueryVariables;\n navbar: AppShellProps['navbar'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n}\n\nexport function assignNavbarVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n navbar,\n theme,\n mode,\n}: AssignNavbarVariablesInput) {\n const navbarWidth = navbar?.width;\n const collapsedNavbarTransform = 'translateX(calc(var(--app-shell-navbar-width) * -1))';\n const collapsedNavbarTransformRtl = 'translateX(var(--app-shell-navbar-width))';\n\n if (navbar?.breakpoint !== undefined && !navbar?.collapsed?.mobile) {\n maxMediaStyles[navbar?.breakpoint] = maxMediaStyles[navbar?.breakpoint] || {};\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-offset'] = '0px';\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-width'] = '100%';\n if (mode === 'static') {\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-grid-width'] = '0px';\n }\n }\n\n if (isPrimitiveSize(navbarWidth)) {\n const baseSize = rem(getBaseSize(navbarWidth));\n baseStyles['--app-shell-navbar-width'] = baseSize;\n baseStyles['--app-shell-navbar-offset'] = baseSize;\n if (mode === 'static') {\n baseStyles['--app-shell-navbar-grid-width'] = baseSize;\n }\n }\n\n if (isResponsiveSize(navbarWidth)) {\n if (typeof navbarWidth.base !== 'undefined') {\n baseStyles['--app-shell-navbar-width'] = rem(navbarWidth.base);\n baseStyles['--app-shell-navbar-offset'] = rem(navbarWidth.base);\n if (mode === 'static') {\n baseStyles['--app-shell-navbar-grid-width'] = rem(navbarWidth.base);\n }\n }\n\n keys(navbarWidth).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-navbar-width'] = rem(navbarWidth![key]);\n minMediaStyles[key]['--app-shell-navbar-offset'] = rem(navbarWidth![key]);\n if (mode === 'static') {\n minMediaStyles[key]['--app-shell-navbar-grid-width'] = rem(navbarWidth![key]);\n }\n }\n });\n }\n\n if (navbar?.breakpoint !== undefined && mode === 'static') {\n minMediaStyles[navbar.breakpoint] = minMediaStyles[navbar.breakpoint] || {};\n minMediaStyles[navbar.breakpoint]['--app-shell-navbar-position'] = 'sticky';\n minMediaStyles[navbar.breakpoint]['--app-shell-navbar-grid-row'] = '2';\n minMediaStyles[navbar.breakpoint]['--app-shell-navbar-grid-column'] = '1';\n minMediaStyles[navbar.breakpoint]['--app-shell-main-column-start'] = '2';\n }\n\n if (navbar?.collapsed?.desktop) {\n const breakpointValue = navbar!.breakpoint;\n minMediaStyles[breakpointValue] = minMediaStyles[breakpointValue] || {};\n minMediaStyles[breakpointValue]['--app-shell-navbar-transform'] = collapsedNavbarTransform;\n minMediaStyles[breakpointValue]['--app-shell-navbar-transform-rtl'] =\n collapsedNavbarTransformRtl;\n if (mode === 'fixed') {\n minMediaStyles[breakpointValue]['--app-shell-navbar-offset'] = '0px !important';\n } else {\n // In static mode, hide the element completely so grid column collapses\n minMediaStyles[breakpointValue]['--app-shell-navbar-width'] = '0px';\n minMediaStyles[breakpointValue]['--app-shell-navbar-display'] = 'none';\n minMediaStyles[breakpointValue]['--app-shell-main-column-start'] = '1';\n }\n }\n\n if (navbar?.collapsed?.mobile) {\n const breakpointValue = getBreakpointValue(navbar!.breakpoint, theme.breakpoints) - 0.1;\n maxMediaStyles[breakpointValue] = maxMediaStyles[breakpointValue] || {};\n maxMediaStyles[breakpointValue]['--app-shell-navbar-width'] = '100%';\n maxMediaStyles[breakpointValue]['--app-shell-navbar-offset'] = '0px';\n if (mode === 'static') {\n maxMediaStyles[breakpointValue]['--app-shell-navbar-grid-width'] = '0px';\n }\n maxMediaStyles[breakpointValue]['--app-shell-navbar-transform'] = collapsedNavbarTransform;\n maxMediaStyles[breakpointValue]['--app-shell-navbar-transform-rtl'] =\n collapsedNavbarTransformRtl;\n }\n}\n"],"mappings":";;;;;;;;AAgBA,SAAgB,sBAAsB,EACpC,YACA,gBACA,gBACA,QACA,OACA,QAC6B;CAC7B,MAAM,cAAc,QAAQ;CAC5B,MAAM,2BAA2B;CACjC,MAAM,8BAA8B;CAEpC,IAAI,QAAQ,eAAe,KAAA,KAAa,CAAC,QAAQ,WAAW,QAAQ;EAClE,eAAe,QAAQ,cAAc,eAAe,QAAQ,eAAe,CAAC;EAC5E,eAAe,QAAQ,WAAW,CAAC,+BAA+B;EAClE,eAAe,QAAQ,WAAW,CAAC,8BAA8B;EACjE,IAAI,SAAS,UACX,eAAe,QAAQ,WAAW,CAAC,mCAAmC;CAE1E;CAEA,IAAIA,0BAAAA,gBAAgB,WAAW,GAAG;EAChC,MAAM,WAAWC,YAAAA,IAAIC,sBAAAA,YAAY,WAAW,CAAC;EAC7C,WAAW,8BAA8B;EACzC,WAAW,+BAA+B;EAC1C,IAAI,SAAS,UACX,WAAW,mCAAmC;CAElD;CAEA,IAAIC,2BAAAA,iBAAiB,WAAW,GAAG;EACjC,IAAI,OAAO,YAAY,SAAS,aAAa;GAC3C,WAAW,8BAA8BF,YAAAA,IAAI,YAAY,IAAI;GAC7D,WAAW,+BAA+BA,YAAAA,IAAI,YAAY,IAAI;GAC9D,IAAI,SAAS,UACX,WAAW,mCAAmCA,YAAAA,IAAI,YAAY,IAAI;EAEtE;EAEA,aAAA,KAAK,WAAW,CAAC,CAAC,SAAS,QAAQ;GACjC,IAAI,QAAQ,QAAQ;IAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;IAC9C,eAAe,IAAI,CAAC,8BAA8BA,YAAAA,IAAI,YAAa,IAAI;IACvE,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,YAAa,IAAI;IACxE,IAAI,SAAS,UACX,eAAe,IAAI,CAAC,mCAAmCA,YAAAA,IAAI,YAAa,IAAI;GAEhF;EACF,CAAC;CACH;CAEA,IAAI,QAAQ,eAAe,KAAA,KAAa,SAAS,UAAU;EACzD,eAAe,OAAO,cAAc,eAAe,OAAO,eAAe,CAAC;EAC1E,eAAe,OAAO,WAAW,CAAC,iCAAiC;EACnE,eAAe,OAAO,WAAW,CAAC,iCAAiC;EACnE,eAAe,OAAO,WAAW,CAAC,oCAAoC;EACtE,eAAe,OAAO,WAAW,CAAC,mCAAmC;CACvE;CAEA,IAAI,QAAQ,WAAW,SAAS;EAC9B,MAAM,kBAAkB,OAAQ;EAChC,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,eAAe,gBAAgB,CAAC,kCAAkC;EAClE,eAAe,gBAAgB,CAAC,sCAC9B;EACF,IAAI,SAAS,SACX,eAAe,gBAAgB,CAAC,+BAA+B;OAC1D;GAEL,eAAe,gBAAgB,CAAC,8BAA8B;GAC9D,eAAe,gBAAgB,CAAC,gCAAgC;GAChE,eAAe,gBAAgB,CAAC,mCAAmC;EACrE;CACF;CAEA,IAAI,QAAQ,WAAW,QAAQ;EAC7B,MAAM,kBAAkBG,6BAAAA,mBAAmB,OAAQ,YAAY,MAAM,WAAW,IAAI;EACpF,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,eAAe,gBAAgB,CAAC,8BAA8B;EAC9D,eAAe,gBAAgB,CAAC,+BAA+B;EAC/D,IAAI,SAAS,UACX,eAAe,gBAAgB,CAAC,mCAAmC;EAErE,eAAe,gBAAgB,CAAC,kCAAkC;EAClE,eAAe,gBAAgB,CAAC,sCAC9B;CACJ;AACF"}
1
+ {"version":3,"file":"assign-navbar-variables.cjs","names":["getResizedValue","isPrimitiveSize","rem","getBaseSize","isResponsiveSize","getBreakpointValue"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/assign-navbar-variables/assign-navbar-variables.ts"],"sourcesContent":["import { getBreakpointValue, keys, MantineTheme, rem } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { getBaseSize } from '../get-base-size/get-base-size';\nimport { getResizedValue } from '../get-resized-value/get-resized-value';\nimport type { CSSVariables, MediaQueryVariables } from '../get-variables/get-variables';\nimport { isPrimitiveSize } from '../is-primitive-size/is-primitive-size';\nimport { isResponsiveSize } from '../is-responsive-size/is-responsive-size';\n\ninterface AssignNavbarVariablesInput {\n baseStyles: CSSVariables;\n minMediaStyles: MediaQueryVariables;\n maxMediaStyles: MediaQueryVariables;\n navbar: AppShellProps['navbar'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n resizedSize?: number;\n resizable?: boolean;\n}\n\nexport function assignNavbarVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n navbar,\n theme,\n mode,\n resizedSize,\n resizable,\n}: AssignNavbarVariablesInput) {\n const navbarWidth = navbar?.width;\n const collapsedNavbarTransform = 'translateX(calc(var(--app-shell-navbar-width) * -1))';\n const collapsedNavbarTransformRtl = 'translateX(var(--app-shell-navbar-width))';\n\n if (navbar?.breakpoint !== undefined && !navbar?.collapsed?.mobile) {\n maxMediaStyles[navbar?.breakpoint] = maxMediaStyles[navbar?.breakpoint] || {};\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-offset'] = '0px';\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-width'] = '100%';\n if (mode === 'static') {\n maxMediaStyles[navbar?.breakpoint]['--app-shell-navbar-grid-width'] = '0px';\n }\n if (resizable) {\n maxMediaStyles[navbar.breakpoint]['--app-shell-navbar-resize-handle-display'] = 'none';\n }\n }\n\n if (resizedSize !== undefined) {\n const resizedValue = getResizedValue(resizedSize, 'horizontal');\n baseStyles['--app-shell-navbar-width'] = resizedValue;\n baseStyles['--app-shell-navbar-offset'] = resizedValue;\n if (mode === 'static') {\n baseStyles['--app-shell-navbar-grid-width'] = resizedValue;\n }\n } else {\n if (isPrimitiveSize(navbarWidth)) {\n const baseSize = rem(getBaseSize(navbarWidth));\n baseStyles['--app-shell-navbar-width'] = baseSize;\n baseStyles['--app-shell-navbar-offset'] = baseSize;\n if (mode === 'static') {\n baseStyles['--app-shell-navbar-grid-width'] = baseSize;\n }\n }\n\n if (isResponsiveSize(navbarWidth)) {\n if (typeof navbarWidth.base !== 'undefined') {\n baseStyles['--app-shell-navbar-width'] = rem(navbarWidth.base);\n baseStyles['--app-shell-navbar-offset'] = rem(navbarWidth.base);\n if (mode === 'static') {\n baseStyles['--app-shell-navbar-grid-width'] = rem(navbarWidth.base);\n }\n }\n\n keys(navbarWidth).forEach((key) => {\n if (key !== 'base') {\n minMediaStyles[key] = minMediaStyles[key] || {};\n minMediaStyles[key]['--app-shell-navbar-width'] = rem(navbarWidth![key]);\n minMediaStyles[key]['--app-shell-navbar-offset'] = rem(navbarWidth![key]);\n if (mode === 'static') {\n minMediaStyles[key]['--app-shell-navbar-grid-width'] = rem(navbarWidth![key]);\n }\n }\n });\n }\n }\n\n if (navbar?.breakpoint !== undefined && mode === 'static') {\n minMediaStyles[navbar.breakpoint] = minMediaStyles[navbar.breakpoint] || {};\n minMediaStyles[navbar.breakpoint]['--app-shell-navbar-position'] = 'sticky';\n minMediaStyles[navbar.breakpoint]['--app-shell-navbar-grid-row'] = '2';\n minMediaStyles[navbar.breakpoint]['--app-shell-navbar-grid-column'] = '1';\n minMediaStyles[navbar.breakpoint]['--app-shell-main-column-start'] = '2';\n }\n\n if (navbar?.collapsed?.desktop) {\n const breakpointValue = navbar!.breakpoint;\n minMediaStyles[breakpointValue] = minMediaStyles[breakpointValue] || {};\n minMediaStyles[breakpointValue]['--app-shell-navbar-transform'] = collapsedNavbarTransform;\n minMediaStyles[breakpointValue]['--app-shell-navbar-transform-rtl'] =\n collapsedNavbarTransformRtl;\n if (mode === 'fixed') {\n minMediaStyles[breakpointValue]['--app-shell-navbar-offset'] = '0px !important';\n } else {\n // In static mode, hide the element completely so grid column collapses\n minMediaStyles[breakpointValue]['--app-shell-navbar-width'] = '0px';\n minMediaStyles[breakpointValue]['--app-shell-navbar-display'] = 'none';\n minMediaStyles[breakpointValue]['--app-shell-main-column-start'] = '1';\n }\n if (resizable) {\n minMediaStyles[breakpointValue]['--app-shell-navbar-resize-handle-display'] = 'none';\n }\n }\n\n if (navbar?.collapsed?.mobile) {\n const breakpointValue = getBreakpointValue(navbar!.breakpoint, theme.breakpoints) - 0.1;\n maxMediaStyles[breakpointValue] = maxMediaStyles[breakpointValue] || {};\n maxMediaStyles[breakpointValue]['--app-shell-navbar-width'] = '100%';\n maxMediaStyles[breakpointValue]['--app-shell-navbar-offset'] = '0px';\n if (mode === 'static') {\n maxMediaStyles[breakpointValue]['--app-shell-navbar-grid-width'] = '0px';\n }\n maxMediaStyles[breakpointValue]['--app-shell-navbar-transform'] = collapsedNavbarTransform;\n maxMediaStyles[breakpointValue]['--app-shell-navbar-transform-rtl'] =\n collapsedNavbarTransformRtl;\n if (resizable) {\n maxMediaStyles[breakpointValue]['--app-shell-navbar-resize-handle-display'] = 'none';\n }\n }\n}\n"],"mappings":";;;;;;;;;AAmBA,SAAgB,sBAAsB,EACpC,YACA,gBACA,gBACA,QACA,OACA,MACA,aACA,aAC6B;CAC7B,MAAM,cAAc,QAAQ;CAC5B,MAAM,2BAA2B;CACjC,MAAM,8BAA8B;CAEpC,IAAI,QAAQ,eAAe,KAAA,KAAa,CAAC,QAAQ,WAAW,QAAQ;EAClE,eAAe,QAAQ,cAAc,eAAe,QAAQ,eAAe,CAAC;EAC5E,eAAe,QAAQ,WAAW,CAAC,+BAA+B;EAClE,eAAe,QAAQ,WAAW,CAAC,8BAA8B;EACjE,IAAI,SAAS,UACX,eAAe,QAAQ,WAAW,CAAC,mCAAmC;EAExE,IAAI,WACF,eAAe,OAAO,WAAW,CAAC,8CAA8C;CAEpF;CAEA,IAAI,gBAAgB,KAAA,GAAW;EAC7B,MAAM,eAAeA,0BAAAA,gBAAgB,aAAa,YAAY;EAC9D,WAAW,8BAA8B;EACzC,WAAW,+BAA+B;EAC1C,IAAI,SAAS,UACX,WAAW,mCAAmC;CAElD,OAAO;EACL,IAAIC,0BAAAA,gBAAgB,WAAW,GAAG;GAChC,MAAM,WAAWC,YAAAA,IAAIC,sBAAAA,YAAY,WAAW,CAAC;GAC7C,WAAW,8BAA8B;GACzC,WAAW,+BAA+B;GAC1C,IAAI,SAAS,UACX,WAAW,mCAAmC;EAElD;EAEA,IAAIC,2BAAAA,iBAAiB,WAAW,GAAG;GACjC,IAAI,OAAO,YAAY,SAAS,aAAa;IAC3C,WAAW,8BAA8BF,YAAAA,IAAI,YAAY,IAAI;IAC7D,WAAW,+BAA+BA,YAAAA,IAAI,YAAY,IAAI;IAC9D,IAAI,SAAS,UACX,WAAW,mCAAmCA,YAAAA,IAAI,YAAY,IAAI;GAEtE;GAEA,aAAA,KAAK,WAAW,CAAC,CAAC,SAAS,QAAQ;IACjC,IAAI,QAAQ,QAAQ;KAClB,eAAe,OAAO,eAAe,QAAQ,CAAC;KAC9C,eAAe,IAAI,CAAC,8BAA8BA,YAAAA,IAAI,YAAa,IAAI;KACvE,eAAe,IAAI,CAAC,+BAA+BA,YAAAA,IAAI,YAAa,IAAI;KACxE,IAAI,SAAS,UACX,eAAe,IAAI,CAAC,mCAAmCA,YAAAA,IAAI,YAAa,IAAI;IAEhF;GACF,CAAC;EACH;CACF;CAEA,IAAI,QAAQ,eAAe,KAAA,KAAa,SAAS,UAAU;EACzD,eAAe,OAAO,cAAc,eAAe,OAAO,eAAe,CAAC;EAC1E,eAAe,OAAO,WAAW,CAAC,iCAAiC;EACnE,eAAe,OAAO,WAAW,CAAC,iCAAiC;EACnE,eAAe,OAAO,WAAW,CAAC,oCAAoC;EACtE,eAAe,OAAO,WAAW,CAAC,mCAAmC;CACvE;CAEA,IAAI,QAAQ,WAAW,SAAS;EAC9B,MAAM,kBAAkB,OAAQ;EAChC,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,eAAe,gBAAgB,CAAC,kCAAkC;EAClE,eAAe,gBAAgB,CAAC,sCAC9B;EACF,IAAI,SAAS,SACX,eAAe,gBAAgB,CAAC,+BAA+B;OAC1D;GAEL,eAAe,gBAAgB,CAAC,8BAA8B;GAC9D,eAAe,gBAAgB,CAAC,gCAAgC;GAChE,eAAe,gBAAgB,CAAC,mCAAmC;EACrE;EACA,IAAI,WACF,eAAe,gBAAgB,CAAC,8CAA8C;CAElF;CAEA,IAAI,QAAQ,WAAW,QAAQ;EAC7B,MAAM,kBAAkBG,6BAAAA,mBAAmB,OAAQ,YAAY,MAAM,WAAW,IAAI;EACpF,eAAe,mBAAmB,eAAe,oBAAoB,CAAC;EACtE,eAAe,gBAAgB,CAAC,8BAA8B;EAC9D,eAAe,gBAAgB,CAAC,+BAA+B;EAC/D,IAAI,SAAS,UACX,eAAe,gBAAgB,CAAC,mCAAmC;EAErE,eAAe,gBAAgB,CAAC,kCAAkC;EAClE,eAAe,gBAAgB,CAAC,sCAC9B;EACF,IAAI,WACF,eAAe,gBAAgB,CAAC,8CAA8C;CAElF;AACF"}
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ //#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.ts
3
+ function isNameCodeUnit(codeUnit) {
4
+ return codeUnit >= 128 || codeUnit === 45 || codeUnit === 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122;
5
+ }
6
+ function isDigit(codeUnit) {
7
+ return codeUnit >= 48 && codeUnit <= 57;
8
+ }
9
+ /** Serializes a string as a CSS identifier, same output as `CSS.escape`, works on the server */
10
+ function escapeCssId(value) {
11
+ let result = "";
12
+ for (let index = 0; index < value.length; index += 1) {
13
+ const codeUnit = value.charCodeAt(index);
14
+ const char = value.charAt(index);
15
+ if (codeUnit === 0) result += String.fromCharCode(65533);
16
+ else if (codeUnit >= 1 && codeUnit <= 31 || codeUnit === 127 || index === 0 && isDigit(codeUnit) || index === 1 && isDigit(codeUnit) && value.charCodeAt(0) === 45) result += `\\${codeUnit.toString(16)} `;
17
+ else if (index === 0 && value.length === 1 && codeUnit === 45) result += `\\${char}`;
18
+ else if (isNameCodeUnit(codeUnit)) result += char;
19
+ else result += `\\${char}`;
20
+ }
21
+ return result;
22
+ }
23
+ //#endregion
24
+ exports.escapeCssId = escapeCssId;
25
+
26
+ //# sourceMappingURL=escape-css-id.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escape-css-id.cjs","names":[],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/escape-css-id/escape-css-id.ts"],"sourcesContent":["function isNameCodeUnit(codeUnit: number) {\n return (\n codeUnit >= 0x80 ||\n codeUnit === 0x2d ||\n codeUnit === 0x5f ||\n (codeUnit >= 0x30 && codeUnit <= 0x39) ||\n (codeUnit >= 0x41 && codeUnit <= 0x5a) ||\n (codeUnit >= 0x61 && codeUnit <= 0x7a)\n );\n}\n\nfunction isDigit(codeUnit: number) {\n return codeUnit >= 0x30 && codeUnit <= 0x39;\n}\n\n/** Serializes a string as a CSS identifier, same output as `CSS.escape`, works on the server */\nexport function escapeCssId(value: string) {\n let result = '';\n\n for (let index = 0; index < value.length; index += 1) {\n const codeUnit = value.charCodeAt(index);\n const char = value.charAt(index);\n\n if (codeUnit === 0) {\n result += String.fromCharCode(0xfffd);\n } else if (\n (codeUnit >= 0x1 && codeUnit <= 0x1f) ||\n codeUnit === 0x7f ||\n (index === 0 && isDigit(codeUnit)) ||\n (index === 1 && isDigit(codeUnit) && value.charCodeAt(0) === 0x2d)\n ) {\n result += `\\\\${codeUnit.toString(16)} `;\n } else if (index === 0 && value.length === 1 && codeUnit === 0x2d) {\n result += `\\\\${char}`;\n } else if (isNameCodeUnit(codeUnit)) {\n result += char;\n } else {\n result += `\\\\${char}`;\n }\n }\n\n return result;\n}\n"],"mappings":";;AAAA,SAAS,eAAe,UAAkB;CACxC,OACE,YAAY,OACZ,aAAa,MACb,aAAa,MACZ,YAAY,MAAQ,YAAY,MAChC,YAAY,MAAQ,YAAY,MAChC,YAAY,MAAQ,YAAY;AAErC;AAEA,SAAS,QAAQ,UAAkB;CACjC,OAAO,YAAY,MAAQ,YAAY;AACzC;;AAGA,SAAgB,YAAY,OAAe;CACzC,IAAI,SAAS;CAEb,KAAK,IAAI,QAAQ,GAAG,QAAQ,MAAM,QAAQ,SAAS,GAAG;EACpD,MAAM,WAAW,MAAM,WAAW,KAAK;EACvC,MAAM,OAAO,MAAM,OAAO,KAAK;EAE/B,IAAI,aAAa,GACf,UAAU,OAAO,aAAa,KAAM;OAC/B,IACJ,YAAY,KAAO,YAAY,MAChC,aAAa,OACZ,UAAU,KAAK,QAAQ,QAAQ,KAC/B,UAAU,KAAK,QAAQ,QAAQ,KAAK,MAAM,WAAW,CAAC,MAAM,IAE7D,UAAU,KAAK,SAAS,SAAS,EAAE,EAAE;OAChC,IAAI,UAAU,KAAK,MAAM,WAAW,KAAK,aAAa,IAC3D,UAAU,KAAK;OACV,IAAI,eAAe,QAAQ,GAChC,UAAU;OAEV,UAAU,KAAK;CAEnB;CAEA,OAAO;AACT"}
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ const require_rem = require("../../../../core/utils/units-converters/rem.cjs");
3
+ //#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.ts
4
+ function getResizedValue(size, axis) {
5
+ return `min(${require_rem.rem(size)}, ${axis === "horizontal" ? "100vw" : "100dvh"})`;
6
+ }
7
+ //#endregion
8
+ exports.getResizedValue = getResizedValue;
9
+
10
+ //# sourceMappingURL=get-resized-value.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-resized-value.cjs","names":["rem"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/get-resized-value/get-resized-value.ts"],"sourcesContent":["import { rem } from '../../../../core';\n\nexport function getResizedValue(size: number, axis: 'horizontal' | 'vertical') {\n return `min(${rem(size)}, ${axis === 'horizontal' ? '100vw' : '100dvh'})`;\n}\n"],"mappings":";;;AAEA,SAAgB,gBAAgB,MAAc,MAAiC;CAC7E,OAAO,OAAOA,YAAAA,IAAI,IAAI,EAAE,IAAI,SAAS,eAAe,UAAU,SAAS;AACzE"}
@@ -8,7 +8,7 @@ const require_assign_header_variables = require("../assign-header-variables/assi
8
8
  const require_assign_navbar_variables = require("../assign-navbar-variables/assign-navbar-variables.cjs");
9
9
  const require_assign_padding_variables = require("../assign-padding-variables/assign-padding-variables.cjs");
10
10
  //#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/get-variables/get-variables.ts
11
- function getVariables({ navbar, header, footer, aside, padding, theme, mode }) {
11
+ function getVariables({ navbar, header, footer, aside, padding, theme, mode, resize }) {
12
12
  const minMediaStyles = {};
13
13
  const maxMediaStyles = {};
14
14
  const baseStyles = {};
@@ -22,7 +22,9 @@ function getVariables({ navbar, header, footer, aside, padding, theme, mode }) {
22
22
  maxMediaStyles,
23
23
  navbar,
24
24
  theme,
25
- mode
25
+ mode,
26
+ resizedSize: resize?.sizes.navbar,
27
+ resizable: resize?.enabled.navbar
26
28
  });
27
29
  require_assign_aside_variables.assignAsideVariables({
28
30
  baseStyles,
@@ -30,19 +32,25 @@ function getVariables({ navbar, header, footer, aside, padding, theme, mode }) {
30
32
  maxMediaStyles,
31
33
  aside,
32
34
  theme,
33
- mode
35
+ mode,
36
+ resizedSize: resize?.sizes.aside,
37
+ resizable: resize?.enabled.aside
34
38
  });
35
39
  require_assign_header_variables.assignHeaderVariables({
36
40
  baseStyles,
37
41
  minMediaStyles,
38
42
  header,
39
- mode
43
+ mode,
44
+ resizedSize: resize?.sizes.header,
45
+ resizable: resize?.enabled.header
40
46
  });
41
47
  require_assign_footer_variables.assignFooterVariables({
42
48
  baseStyles,
43
49
  minMediaStyles,
44
50
  footer,
45
- mode
51
+ mode,
52
+ resizedSize: resize?.sizes.footer,
53
+ resizable: resize?.enabled.footer
46
54
  });
47
55
  require_assign_padding_variables.assignPaddingVariables({
48
56
  baseStyles,
@@ -1 +1 @@
1
- {"version":3,"file":"get-variables.cjs","names":["getSortedBreakpoints","keys","em"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/get-variables/get-variables.ts"],"sourcesContent":["import { em, getSortedBreakpoints, keys, MantineTheme } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport { assignAsideVariables } from '../assign-aside-variables/assign-aside-variables';\nimport { assignFooterVariables } from '../assign-footer-variables/assign-footer-variables';\nimport { assignHeaderVariables } from '../assign-header-variables/assign-header-variables';\nimport { assignNavbarVariables } from '../assign-navbar-variables/assign-navbar-variables';\nimport { assignPaddingVariables } from '../assign-padding-variables/assign-padding-variables';\n\nexport type CSSVariables = Record<`--${string}`, string | undefined>;\nexport type MediaQueryVariables = Record<string, Record<`--${string}`, string | undefined>>;\n\ninterface GetVariablesInput {\n navbar: AppShellProps['navbar'] | undefined;\n header: AppShellProps['header'] | undefined;\n footer: AppShellProps['footer'] | undefined;\n aside: AppShellProps['aside'] | undefined;\n padding: AppShellProps['padding'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n}\n\nexport function getVariables({\n navbar,\n header,\n footer,\n aside,\n padding,\n theme,\n mode,\n}: GetVariablesInput) {\n const minMediaStyles: MediaQueryVariables = {};\n const maxMediaStyles: MediaQueryVariables = {};\n const baseStyles: CSSVariables = {};\n\n // Set default main grid position in static mode\n if (mode === 'static') {\n baseStyles['--app-shell-main-grid-column'] = '1 / -1';\n baseStyles['--app-shell-main-grid-row'] = '2';\n }\n\n assignNavbarVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n navbar,\n theme,\n mode,\n });\n\n assignAsideVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n aside,\n theme,\n mode,\n });\n\n assignHeaderVariables({ baseStyles, minMediaStyles, header, mode });\n assignFooterVariables({ baseStyles, minMediaStyles, footer, mode });\n assignPaddingVariables({ baseStyles, minMediaStyles, padding });\n\n const minMedia = getSortedBreakpoints(keys(minMediaStyles), theme.breakpoints).map(\n (breakpoint) => ({\n query: `(min-width: ${em(breakpoint.px)})`,\n styles: minMediaStyles[breakpoint.value],\n })\n );\n\n const maxMedia = getSortedBreakpoints(keys(maxMediaStyles), theme.breakpoints).map(\n (breakpoint) => ({\n query: `(max-width: ${em(breakpoint.px)})`,\n styles: maxMediaStyles[breakpoint.value],\n })\n );\n\n const media = [...minMedia, ...maxMedia];\n\n return { baseStyles, media };\n}\n"],"mappings":";;;;;;;;;;AAqBA,SAAgB,aAAa,EAC3B,QACA,QACA,QACA,OACA,SACA,OACA,QACoB;CACpB,MAAM,iBAAsC,CAAC;CAC7C,MAAM,iBAAsC,CAAC;CAC7C,MAAM,aAA2B,CAAC;CAGlC,IAAI,SAAS,UAAU;EACrB,WAAW,kCAAkC;EAC7C,WAAW,+BAA+B;CAC5C;CAEA,gCAAA,sBAAsB;EACpB;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CAED,+BAAA,qBAAqB;EACnB;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CAED,gCAAA,sBAAsB;EAAE;EAAY;EAAgB;EAAQ;CAAK,CAAC;CAClE,gCAAA,sBAAsB;EAAE;EAAY;EAAgB;EAAQ;CAAK,CAAC;CAClE,iCAAA,uBAAuB;EAAE;EAAY;EAAgB;CAAQ,CAAC;CAE9D,MAAM,WAAWA,+BAAAA,qBAAqBC,aAAAA,KAAK,cAAc,GAAG,MAAM,WAAW,CAAC,CAAC,KAC5E,gBAAgB;EACf,OAAO,eAAeC,YAAAA,GAAG,WAAW,EAAE,EAAE;EACxC,QAAQ,eAAe,WAAW;CACpC,EACF;CAEA,MAAM,WAAWF,+BAAAA,qBAAqBC,aAAAA,KAAK,cAAc,GAAG,MAAM,WAAW,CAAC,CAAC,KAC5E,gBAAgB;EACf,OAAO,eAAeC,YAAAA,GAAG,WAAW,EAAE,EAAE;EACxC,QAAQ,eAAe,WAAW;CACpC,EACF;CAIA,OAAO;EAAE;EAAY,OAAA,CAFN,GAAG,UAAU,GAAG,QAEN;CAAE;AAC7B"}
1
+ {"version":3,"file":"get-variables.cjs","names":["getSortedBreakpoints","keys","em"],"sources":["../../../../../src/components/AppShell/AppShellMediaStyles/get-variables/get-variables.ts"],"sourcesContent":["import { em, getSortedBreakpoints, keys, MantineTheme } from '../../../../core';\nimport type { AppShellProps } from '../../AppShell';\nimport type { AppShellResizeSection, AppShellResizeSizes } from '../../AppShell.types';\nimport { assignAsideVariables } from '../assign-aside-variables/assign-aside-variables';\nimport { assignFooterVariables } from '../assign-footer-variables/assign-footer-variables';\nimport { assignHeaderVariables } from '../assign-header-variables/assign-header-variables';\nimport { assignNavbarVariables } from '../assign-navbar-variables/assign-navbar-variables';\nimport { assignPaddingVariables } from '../assign-padding-variables/assign-padding-variables';\n\nexport type CSSVariables = Record<`--${string}`, string | undefined>;\nexport type MediaQueryVariables = Record<string, Record<`--${string}`, string | undefined>>;\n\ninterface GetVariablesInput {\n navbar: AppShellProps['navbar'] | undefined;\n header: AppShellProps['header'] | undefined;\n footer: AppShellProps['footer'] | undefined;\n aside: AppShellProps['aside'] | undefined;\n padding: AppShellProps['padding'] | undefined;\n theme: MantineTheme;\n mode: 'fixed' | 'static';\n resize:\n | { sizes: AppShellResizeSizes; enabled: Partial<Record<AppShellResizeSection, boolean>> }\n | undefined;\n}\n\nexport function getVariables({\n navbar,\n header,\n footer,\n aside,\n padding,\n theme,\n mode,\n resize,\n}: GetVariablesInput) {\n const minMediaStyles: MediaQueryVariables = {};\n const maxMediaStyles: MediaQueryVariables = {};\n const baseStyles: CSSVariables = {};\n\n // Set default main grid position in static mode\n if (mode === 'static') {\n baseStyles['--app-shell-main-grid-column'] = '1 / -1';\n baseStyles['--app-shell-main-grid-row'] = '2';\n }\n\n assignNavbarVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n navbar,\n theme,\n mode,\n resizedSize: resize?.sizes.navbar,\n resizable: resize?.enabled.navbar,\n });\n\n assignAsideVariables({\n baseStyles,\n minMediaStyles,\n maxMediaStyles,\n aside,\n theme,\n mode,\n resizedSize: resize?.sizes.aside,\n resizable: resize?.enabled.aside,\n });\n\n assignHeaderVariables({\n baseStyles,\n minMediaStyles,\n header,\n mode,\n resizedSize: resize?.sizes.header,\n resizable: resize?.enabled.header,\n });\n assignFooterVariables({\n baseStyles,\n minMediaStyles,\n footer,\n mode,\n resizedSize: resize?.sizes.footer,\n resizable: resize?.enabled.footer,\n });\n assignPaddingVariables({ baseStyles, minMediaStyles, padding });\n\n const minMedia = getSortedBreakpoints(keys(minMediaStyles), theme.breakpoints).map(\n (breakpoint) => ({\n query: `(min-width: ${em(breakpoint.px)})`,\n styles: minMediaStyles[breakpoint.value],\n })\n );\n\n const maxMedia = getSortedBreakpoints(keys(maxMediaStyles), theme.breakpoints).map(\n (breakpoint) => ({\n query: `(max-width: ${em(breakpoint.px)})`,\n styles: maxMediaStyles[breakpoint.value],\n })\n );\n\n const media = [...minMedia, ...maxMedia];\n\n return { baseStyles, media };\n}\n"],"mappings":";;;;;;;;;;AAyBA,SAAgB,aAAa,EAC3B,QACA,QACA,QACA,OACA,SACA,OACA,MACA,UACoB;CACpB,MAAM,iBAAsC,CAAC;CAC7C,MAAM,iBAAsC,CAAC;CAC7C,MAAM,aAA2B,CAAC;CAGlC,IAAI,SAAS,UAAU;EACrB,WAAW,kCAAkC;EAC7C,WAAW,+BAA+B;CAC5C;CAEA,gCAAA,sBAAsB;EACpB;EACA;EACA;EACA;EACA;EACA;EACA,aAAa,QAAQ,MAAM;EAC3B,WAAW,QAAQ,QAAQ;CAC7B,CAAC;CAED,+BAAA,qBAAqB;EACnB;EACA;EACA;EACA;EACA;EACA;EACA,aAAa,QAAQ,MAAM;EAC3B,WAAW,QAAQ,QAAQ;CAC7B,CAAC;CAED,gCAAA,sBAAsB;EACpB;EACA;EACA;EACA;EACA,aAAa,QAAQ,MAAM;EAC3B,WAAW,QAAQ,QAAQ;CAC7B,CAAC;CACD,gCAAA,sBAAsB;EACpB;EACA;EACA;EACA;EACA,aAAa,QAAQ,MAAM;EAC3B,WAAW,QAAQ,QAAQ;CAC7B,CAAC;CACD,iCAAA,uBAAuB;EAAE;EAAY;EAAgB;CAAQ,CAAC;CAE9D,MAAM,WAAWA,+BAAAA,qBAAqBC,aAAAA,KAAK,cAAc,GAAG,MAAM,WAAW,CAAC,CAAC,KAC5E,gBAAgB;EACf,OAAO,eAAeC,YAAAA,GAAG,WAAW,EAAE,EAAE;EACxC,QAAQ,eAAe,WAAW;CACpC,EACF;CAEA,MAAM,WAAWF,+BAAAA,qBAAqBC,aAAAA,KAAK,cAAc,GAAG,MAAM,WAAW,CAAC,CAAC,KAC5E,gBAAgB;EACf,OAAO,eAAeC,YAAAA,GAAG,WAAW,EAAE,EAAE;EACxC,QAAQ,eAAe,WAAW;CACpC,EACF;CAIA,OAAO;EAAE;EAAY,OAAA,CAFN,GAAG,UAAU,GAAG,QAEN;CAAE;AAC7B"}
@@ -4,27 +4,48 @@ const require_use_props = require("../../../core/MantineProvider/use-props/use-p
4
4
  const require_factory = require("../../../core/factory/factory.cjs");
5
5
  const require_Box = require("../../../core/Box/Box.cjs");
6
6
  const require_AppShell_context = require("../AppShell.context.cjs");
7
+ const require_AppShellResizeHandle = require("../AppShellResizeHandle/AppShellResizeHandle.cjs");
7
8
  const require_AppShell_module = require("../AppShell.module.cjs");
8
9
  let react = require("react");
9
10
  react = require_runtime.__toESM(react);
11
+ let _mantine_hooks = require("@mantine/hooks");
10
12
  let react_jsx_runtime = require("react/jsx-runtime");
11
13
  //#region packages/@mantine/core/src/components/AppShell/AppShellNavbar/AppShellNavbar.tsx
12
14
  const AppShellNavbar = require_factory.factory((_props) => {
13
15
  const { classNames, className, style, styles, unstyled, vars, withBorder, zIndex, mod, ...others } = require_use_props.useProps("AppShellNavbar", null, _props);
14
16
  const ctx = require_AppShell_context.useAppShellContext();
17
+ const sectionId = (0, _mantine_hooks.useId)(others.id);
15
18
  if (ctx.disabled) return null;
16
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
19
+ const isResizable = ctx.resize?.navbar.enabled ?? false;
20
+ const boxProps = ctx.getStyles("navbar", {
21
+ className,
22
+ classNames,
23
+ styles,
24
+ style
25
+ });
26
+ if (!isResizable) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
17
27
  component: "nav",
18
28
  mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
19
- ...ctx.getStyles("navbar", {
20
- className,
21
- classNames,
22
- styles,
23
- style
24
- }),
29
+ ...boxProps,
25
30
  ...others,
26
31
  __vars: { "--app-shell-navbar-z-index": `calc(${zIndex ?? ctx.zIndex} + 1)` }
27
32
  });
33
+ const { children, dangerouslySetInnerHTML, ...rest } = others;
34
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Box.Box, {
35
+ component: "nav",
36
+ mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
37
+ ...boxProps,
38
+ ...rest,
39
+ __vars: { "--app-shell-navbar-z-index": `calc(${zIndex ?? ctx.zIndex} + 1)` },
40
+ id: sectionId,
41
+ children: [dangerouslySetInnerHTML ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
42
+ style: { display: "contents" },
43
+ dangerouslySetInnerHTML
44
+ }) : children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AppShellResizeHandle.AppShellResizeHandle, {
45
+ section: "navbar",
46
+ sectionId
47
+ })]
48
+ });
28
49
  });
29
50
  AppShellNavbar.classes = require_AppShell_module.default;
30
51
  AppShellNavbar.displayName = "@mantine/core/AppShellNavbar";
@@ -1 +1 @@
1
- {"version":3,"file":"AppShellNavbar.cjs","names":["factory","useProps","useAppShellContext","Box","classes"],"sources":["../../../../src/components/AppShell/AppShellNavbar/AppShellNavbar.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Box,\n BoxProps,\n ElementProps,\n factory,\n Factory,\n StylesApiProps,\n useProps,\n} from '../../../core';\nimport { useAppShellContext } from '../AppShell.context';\nimport type { AppShellCompoundProps } from '../AppShell.types';\nimport classes from '../AppShell.module.css';\n\nexport type AppShellNavbarStylesNames = 'navbar';\n\nexport interface AppShellNavbarProps\n extends\n BoxProps,\n AppShellCompoundProps,\n StylesApiProps<AppShellNavbarFactory>,\n ElementProps<'div'> {}\n\nexport type AppShellNavbarFactory = Factory<{\n props: AppShellNavbarProps;\n ref: HTMLElement;\n stylesNames: AppShellNavbarStylesNames;\n}>;\n\nexport const AppShellNavbar = factory<AppShellNavbarFactory>((_props) => {\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n withBorder,\n zIndex,\n mod,\n ...others\n } = useProps('AppShellNavbar', null, _props);\n\n const ctx = useAppShellContext();\n\n if (ctx.disabled) {\n return null;\n }\n\n return (\n <Box\n component=\"nav\"\n mod={[{ 'with-border': withBorder ?? ctx.withBorder }, mod]}\n {...ctx.getStyles('navbar', { className, classNames, styles, style })}\n {...others}\n __vars={{ '--app-shell-navbar-z-index': `calc(${zIndex ?? ctx.zIndex} + 1)` }}\n />\n );\n});\n\nAppShellNavbar.classes = classes;\nAppShellNavbar.displayName = '@mantine/core/AppShellNavbar';\n"],"mappings":";;;;;;;;;;;AA6BA,MAAa,iBAAiBA,gBAAAA,SAAgC,WAAW;CACvE,MAAM,EACJ,YACA,WACA,OACA,QACA,UACA,MACA,YACA,QACA,KACA,GAAG,WACDC,kBAAAA,SAAS,kBAAkB,MAAM,MAAM;CAE3C,MAAM,MAAMC,yBAAAA,mBAAmB;CAE/B,IAAI,IAAI,UACN,OAAO;CAGT,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,YAAAA,KAAD;EACE,WAAU;EACV,KAAK,CAAC,EAAE,eAAe,cAAc,IAAI,WAAW,GAAG,GAAG;EAC1D,GAAI,IAAI,UAAU,UAAU;GAAE;GAAW;GAAY;GAAQ;EAAM,CAAC;EACpE,GAAI;EACJ,QAAQ,EAAE,8BAA8B,QAAQ,UAAU,IAAI,OAAO,OAAO;CAC7E,CAAA;AAEL,CAAC;AAED,eAAe,UAAUC,wBAAAA;AACzB,eAAe,cAAc"}
1
+ {"version":3,"file":"AppShellNavbar.cjs","names":["factory","useProps","useAppShellContext","useId","Box","AppShellResizeHandle","classes"],"sources":["../../../../src/components/AppShell/AppShellNavbar/AppShellNavbar.tsx"],"sourcesContent":["import React from 'react';\nimport { useId } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n ElementProps,\n factory,\n Factory,\n StylesApiProps,\n useProps,\n} from '../../../core';\nimport { useAppShellContext } from '../AppShell.context';\nimport type { AppShellCompoundProps } from '../AppShell.types';\nimport { AppShellResizeHandle } from '../AppShellResizeHandle/AppShellResizeHandle';\nimport classes from '../AppShell.module.css';\n\nexport type AppShellNavbarStylesNames = 'navbar';\n\nexport interface AppShellNavbarProps\n extends\n BoxProps,\n AppShellCompoundProps,\n StylesApiProps<AppShellNavbarFactory>,\n ElementProps<'div'> {}\n\nexport type AppShellNavbarFactory = Factory<{\n props: AppShellNavbarProps;\n ref: HTMLElement;\n stylesNames: AppShellNavbarStylesNames;\n}>;\n\nexport const AppShellNavbar = factory<AppShellNavbarFactory>((_props) => {\n const {\n classNames,\n className,\n style,\n styles,\n unstyled,\n vars,\n withBorder,\n zIndex,\n mod,\n ...others\n } = useProps('AppShellNavbar', null, _props);\n\n const ctx = useAppShellContext();\n const sectionId = useId(others.id);\n\n if (ctx.disabled) {\n return null;\n }\n\n const isResizable = ctx.resize?.navbar.enabled ?? false;\n const boxProps = ctx.getStyles('navbar', { className, classNames, styles, style });\n\n if (!isResizable) {\n return (\n <Box\n component=\"nav\"\n mod={[{ 'with-border': withBorder ?? ctx.withBorder }, mod]}\n {...boxProps}\n {...others}\n __vars={{ '--app-shell-navbar-z-index': `calc(${zIndex ?? ctx.zIndex} + 1)` }}\n />\n );\n }\n\n const { children, dangerouslySetInnerHTML, ...rest } = others;\n\n return (\n <Box\n component=\"nav\"\n mod={[{ 'with-border': withBorder ?? ctx.withBorder }, mod]}\n {...boxProps}\n {...rest}\n __vars={{ '--app-shell-navbar-z-index': `calc(${zIndex ?? ctx.zIndex} + 1)` }}\n id={sectionId}\n >\n {dangerouslySetInnerHTML ? (\n <div style={{ display: 'contents' }} dangerouslySetInnerHTML={dangerouslySetInnerHTML} />\n ) : (\n children\n )}\n <AppShellResizeHandle section=\"navbar\" sectionId={sectionId} />\n </Box>\n );\n});\n\nAppShellNavbar.classes = classes;\nAppShellNavbar.displayName = '@mantine/core/AppShellNavbar';\n"],"mappings":";;;;;;;;;;;;;AA+BA,MAAa,iBAAiBA,gBAAAA,SAAgC,WAAW;CACvE,MAAM,EACJ,YACA,WACA,OACA,QACA,UACA,MACA,YACA,QACA,KACA,GAAG,WACDC,kBAAAA,SAAS,kBAAkB,MAAM,MAAM;CAE3C,MAAM,MAAMC,yBAAAA,mBAAmB;CAC/B,MAAM,aAAA,GAAYC,eAAAA,MAAAA,CAAM,OAAO,EAAE;CAEjC,IAAI,IAAI,UACN,OAAO;CAGT,MAAM,cAAc,IAAI,QAAQ,OAAO,WAAW;CAClD,MAAM,WAAW,IAAI,UAAU,UAAU;EAAE;EAAW;EAAY;EAAQ;CAAM,CAAC;CAEjF,IAAI,CAAC,aACH,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,YAAAA,KAAD;EACE,WAAU;EACV,KAAK,CAAC,EAAE,eAAe,cAAc,IAAI,WAAW,GAAG,GAAG;EAC1D,GAAI;EACJ,GAAI;EACJ,QAAQ,EAAE,8BAA8B,QAAQ,UAAU,IAAI,OAAO,OAAO;CAC7E,CAAA;CAIL,MAAM,EAAE,UAAU,yBAAyB,GAAG,SAAS;CAEvD,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACA,YAAAA,KAAD;EACE,WAAU;EACV,KAAK,CAAC,EAAE,eAAe,cAAc,IAAI,WAAW,GAAG,GAAG;EAC1D,GAAI;EACJ,GAAI;EACJ,QAAQ,EAAE,8BAA8B,QAAQ,UAAU,IAAI,OAAO,OAAO;EAC5E,IAAI;EANN,UAAA,CAQG,0BACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GAAK,OAAO,EAAE,SAAS,WAAW;GAA4B;EAA0B,CAAA,IAExF,UAEF,iBAAA,GAAA,kBAAA,IAAA,CAACC,6BAAAA,sBAAD;GAAsB,SAAQ;GAAoB;EAAY,CAAA,CAC3D;;AAET,CAAC;AAED,eAAe,UAAUC,wBAAAA;AACzB,eAAe,cAAc"}