@mantine/core 4.0.7 → 4.1.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 (300) hide show
  1. package/cjs/components/Affix/Affix.js +1 -1
  2. package/cjs/components/Affix/Affix.js.map +1 -1
  3. package/cjs/components/AppShell/AppShell.js +11 -5
  4. package/cjs/components/AppShell/AppShell.js.map +1 -1
  5. package/cjs/components/AppShell/AppShell.styles.js +8 -4
  6. package/cjs/components/AppShell/AppShell.styles.js.map +1 -1
  7. package/cjs/components/AppShell/Aside/Aside.js +48 -0
  8. package/cjs/components/AppShell/Aside/Aside.js.map +1 -0
  9. package/cjs/components/AppShell/Footer/Footer.js +61 -0
  10. package/cjs/components/AppShell/Footer/Footer.js.map +1 -0
  11. package/cjs/components/AppShell/Header/Header.js +9 -27
  12. package/cjs/components/AppShell/Header/Header.js.map +1 -1
  13. package/cjs/components/AppShell/HorizontalSection/HorizontalSection.js +106 -0
  14. package/cjs/components/AppShell/HorizontalSection/HorizontalSection.js.map +1 -0
  15. package/cjs/components/AppShell/{Navbar/Navbar.styles.js → HorizontalSection/HorizontalSection.styles.js} +2 -2
  16. package/cjs/components/AppShell/HorizontalSection/HorizontalSection.styles.js.map +1 -0
  17. package/cjs/components/AppShell/{Navbar/NavbarSection/NavbarSection.js → HorizontalSection/Section/Section.js} +5 -5
  18. package/cjs/components/AppShell/HorizontalSection/Section/Section.js.map +1 -0
  19. package/cjs/components/AppShell/{Navbar → HorizontalSection}/get-sorted-breakpoints/get-sorted-breakpoints.js +0 -0
  20. package/cjs/components/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js.map +1 -0
  21. package/cjs/components/AppShell/Navbar/Navbar.js +8 -69
  22. package/cjs/components/AppShell/Navbar/Navbar.js.map +1 -1
  23. package/cjs/components/AppShell/VerticalSection/VerticalSection.js +90 -0
  24. package/cjs/components/AppShell/VerticalSection/VerticalSection.js.map +1 -0
  25. package/cjs/components/AppShell/{Header/Header.styles.js → VerticalSection/VerticalSection.styles.js} +4 -3
  26. package/cjs/components/AppShell/VerticalSection/VerticalSection.styles.js.map +1 -0
  27. package/cjs/components/AspectRatio/AspectRatio.js +2 -2
  28. package/cjs/components/AspectRatio/AspectRatio.js.map +1 -1
  29. package/cjs/components/Center/Center.js +1 -1
  30. package/cjs/components/Center/Center.js.map +1 -1
  31. package/cjs/components/ColorInput/ColorInput.js +2 -2
  32. package/cjs/components/ColorInput/ColorInput.js.map +1 -1
  33. package/cjs/components/Divider/Divider.js +1 -1
  34. package/cjs/components/Divider/Divider.js.map +1 -1
  35. package/cjs/components/Divider/Divider.styles.js +1 -0
  36. package/cjs/components/Divider/Divider.styles.js.map +1 -1
  37. package/cjs/components/Image/BackgroundImage/BackgroundImage.js +1 -1
  38. package/cjs/components/Image/BackgroundImage/BackgroundImage.js.map +1 -1
  39. package/cjs/components/MultiSelect/MultiSelect.js +35 -1
  40. package/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
  41. package/cjs/components/Notification/Notification.js.map +1 -1
  42. package/cjs/components/NumberInput/NumberInput.js +2 -1
  43. package/cjs/components/NumberInput/NumberInput.js.map +1 -1
  44. package/cjs/components/Overlay/Overlay.js +2 -2
  45. package/cjs/components/Overlay/Overlay.js.map +1 -1
  46. package/cjs/components/Paper/Paper.styles.js +3 -21
  47. package/cjs/components/Paper/Paper.styles.js.map +1 -1
  48. package/cjs/components/Popover/PopoverBody/PopoverBody.styles.js +3 -17
  49. package/cjs/components/Popover/PopoverBody/PopoverBody.styles.js.map +1 -1
  50. package/cjs/components/Popper/Popper.js +5 -2
  51. package/cjs/components/Popper/Popper.js.map +1 -1
  52. package/cjs/components/RadioGroup/Radio/Radio.js +19 -8
  53. package/cjs/components/RadioGroup/Radio/Radio.js.map +1 -1
  54. package/cjs/components/RadioGroup/Radio/Radio.styles.js +26 -15
  55. package/cjs/components/RadioGroup/Radio/Radio.styles.js.map +1 -1
  56. package/cjs/components/RadioGroup/Radio/RadioIcon.js +39 -0
  57. package/cjs/components/RadioGroup/Radio/RadioIcon.js.map +1 -0
  58. package/cjs/components/Select/Select.js +29 -1
  59. package/cjs/components/Select/Select.js.map +1 -1
  60. package/cjs/components/Slider/Marks/Marks.js +3 -2
  61. package/cjs/components/Slider/Marks/Marks.js.map +1 -1
  62. package/cjs/components/Slider/Marks/Marks.styles.js +2 -2
  63. package/cjs/components/Slider/Marks/Marks.styles.js.map +1 -1
  64. package/cjs/components/Slider/RangeSlider/RangeSlider.js +48 -37
  65. package/cjs/components/Slider/RangeSlider/RangeSlider.js.map +1 -1
  66. package/cjs/components/Slider/Slider/Slider.js +56 -46
  67. package/cjs/components/Slider/Slider/Slider.js.map +1 -1
  68. package/cjs/components/Slider/SliderRoot/SliderRoot.js +2 -2
  69. package/cjs/components/Slider/SliderRoot/SliderRoot.js.map +1 -1
  70. package/cjs/components/Slider/SliderRoot/SliderRoot.styles.js +2 -2
  71. package/cjs/components/Slider/SliderRoot/SliderRoot.styles.js.map +1 -1
  72. package/cjs/components/Slider/Thumb/Thumb.js +3 -2
  73. package/cjs/components/Slider/Thumb/Thumb.js.map +1 -1
  74. package/cjs/components/Slider/Thumb/Thumb.styles.js +2 -2
  75. package/cjs/components/Slider/Thumb/Thumb.styles.js.map +1 -1
  76. package/cjs/components/Slider/Track/Track.js +7 -4
  77. package/cjs/components/Slider/Track/Track.js.map +1 -1
  78. package/cjs/components/Slider/Track/Track.styles.js +2 -2
  79. package/cjs/components/Slider/Track/Track.styles.js.map +1 -1
  80. package/cjs/components/Space/Space.js +1 -1
  81. package/cjs/components/Space/Space.js.map +1 -1
  82. package/cjs/components/Stack/Stack.js +58 -0
  83. package/cjs/components/Stack/Stack.js.map +1 -0
  84. package/cjs/components/Stack/Stack.styles.js +18 -0
  85. package/cjs/components/Stack/Stack.styles.js.map +1 -0
  86. package/cjs/components/Table/Table.js +6 -3
  87. package/cjs/components/Table/Table.js.map +1 -1
  88. package/cjs/components/Table/Table.styles.js +3 -3
  89. package/cjs/components/Table/Table.styles.js.map +1 -1
  90. package/cjs/components/Timeline/Timeline.js +1 -1
  91. package/cjs/components/Timeline/Timeline.js.map +1 -1
  92. package/cjs/components/Tooltip/FloatingTooltip/FloatingTooltip.js +199 -0
  93. package/cjs/components/Tooltip/FloatingTooltip/FloatingTooltip.js.map +1 -0
  94. package/cjs/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.js +45 -0
  95. package/cjs/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.js.map +1 -0
  96. package/cjs/index.js +10 -0
  97. package/cjs/index.js.map +1 -1
  98. package/cjs/utils/get-input-mode/get-input-mode.js +24 -0
  99. package/cjs/utils/get-input-mode/get-input-mode.js.map +1 -0
  100. package/esm/components/Affix/Affix.js +1 -1
  101. package/esm/components/Affix/Affix.js.map +1 -1
  102. package/esm/components/AppShell/AppShell.context.js +1 -1
  103. package/esm/components/AppShell/AppShell.js +11 -5
  104. package/esm/components/AppShell/AppShell.js.map +1 -1
  105. package/esm/components/AppShell/AppShell.styles.js +8 -4
  106. package/esm/components/AppShell/AppShell.styles.js.map +1 -1
  107. package/esm/components/AppShell/Aside/Aside.js +40 -0
  108. package/esm/components/AppShell/Aside/Aside.js.map +1 -0
  109. package/esm/components/AppShell/Footer/Footer.js +53 -0
  110. package/esm/components/AppShell/Footer/Footer.js.map +1 -0
  111. package/esm/components/AppShell/Header/Header.js +10 -28
  112. package/esm/components/AppShell/Header/Header.js.map +1 -1
  113. package/esm/components/AppShell/HorizontalSection/HorizontalSection.js +98 -0
  114. package/esm/components/AppShell/HorizontalSection/HorizontalSection.js.map +1 -0
  115. package/esm/components/AppShell/{Navbar/Navbar.styles.js → HorizontalSection/HorizontalSection.styles.js} +2 -2
  116. package/esm/components/AppShell/HorizontalSection/HorizontalSection.styles.js.map +1 -0
  117. package/esm/components/AppShell/{Navbar/NavbarSection/NavbarSection.js → HorizontalSection/Section/Section.js} +5 -5
  118. package/esm/components/AppShell/HorizontalSection/Section/Section.js.map +1 -0
  119. package/esm/components/AppShell/{Navbar → HorizontalSection}/get-sorted-breakpoints/get-sorted-breakpoints.js +0 -0
  120. package/esm/components/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js.map +1 -0
  121. package/esm/components/AppShell/Navbar/Navbar.js +9 -70
  122. package/esm/components/AppShell/Navbar/Navbar.js.map +1 -1
  123. package/esm/components/AppShell/VerticalSection/VerticalSection.js +82 -0
  124. package/esm/components/AppShell/VerticalSection/VerticalSection.js.map +1 -0
  125. package/esm/components/AppShell/{Header/Header.styles.js → VerticalSection/VerticalSection.styles.js} +4 -3
  126. package/esm/components/AppShell/VerticalSection/VerticalSection.styles.js.map +1 -0
  127. package/esm/components/AspectRatio/AspectRatio.js +2 -2
  128. package/esm/components/AspectRatio/AspectRatio.js.map +1 -1
  129. package/esm/components/Center/Center.js +1 -1
  130. package/esm/components/Center/Center.js.map +1 -1
  131. package/esm/components/ColorInput/ColorInput.js +2 -2
  132. package/esm/components/ColorInput/ColorInput.js.map +1 -1
  133. package/esm/components/Divider/Divider.js +1 -1
  134. package/esm/components/Divider/Divider.js.map +1 -1
  135. package/esm/components/Divider/Divider.styles.js +1 -0
  136. package/esm/components/Divider/Divider.styles.js.map +1 -1
  137. package/esm/components/Image/BackgroundImage/BackgroundImage.js +1 -1
  138. package/esm/components/Image/BackgroundImage/BackgroundImage.js.map +1 -1
  139. package/esm/components/MultiSelect/MultiSelect.js +35 -1
  140. package/esm/components/MultiSelect/MultiSelect.js.map +1 -1
  141. package/esm/components/Notification/Notification.js.map +1 -1
  142. package/esm/components/NumberInput/NumberInput.js +3 -2
  143. package/esm/components/NumberInput/NumberInput.js.map +1 -1
  144. package/esm/components/Overlay/Overlay.js +2 -2
  145. package/esm/components/Overlay/Overlay.js.map +1 -1
  146. package/esm/components/Paper/Paper.styles.js +3 -21
  147. package/esm/components/Paper/Paper.styles.js.map +1 -1
  148. package/esm/components/Popover/PopoverBody/PopoverBody.styles.js +3 -17
  149. package/esm/components/Popover/PopoverBody/PopoverBody.styles.js.map +1 -1
  150. package/esm/components/Popper/Popper.js +5 -2
  151. package/esm/components/Popper/Popper.js.map +1 -1
  152. package/esm/components/RadioGroup/Radio/Radio.js +19 -8
  153. package/esm/components/RadioGroup/Radio/Radio.js.map +1 -1
  154. package/esm/components/RadioGroup/Radio/Radio.styles.js +26 -15
  155. package/esm/components/RadioGroup/Radio/Radio.styles.js.map +1 -1
  156. package/esm/components/RadioGroup/Radio/RadioIcon.js +31 -0
  157. package/esm/components/RadioGroup/Radio/RadioIcon.js.map +1 -0
  158. package/esm/components/Select/Select.js +29 -1
  159. package/esm/components/Select/Select.js.map +1 -1
  160. package/esm/components/Slider/Marks/Marks.js +3 -2
  161. package/esm/components/Slider/Marks/Marks.js.map +1 -1
  162. package/esm/components/Slider/Marks/Marks.styles.js +2 -2
  163. package/esm/components/Slider/Marks/Marks.styles.js.map +1 -1
  164. package/esm/components/Slider/RangeSlider/RangeSlider.js +48 -37
  165. package/esm/components/Slider/RangeSlider/RangeSlider.js.map +1 -1
  166. package/esm/components/Slider/Slider/Slider.js +57 -47
  167. package/esm/components/Slider/Slider/Slider.js.map +1 -1
  168. package/esm/components/Slider/SliderRoot/SliderRoot.js +2 -2
  169. package/esm/components/Slider/SliderRoot/SliderRoot.js.map +1 -1
  170. package/esm/components/Slider/SliderRoot/SliderRoot.styles.js +2 -2
  171. package/esm/components/Slider/SliderRoot/SliderRoot.styles.js.map +1 -1
  172. package/esm/components/Slider/Thumb/Thumb.js +3 -2
  173. package/esm/components/Slider/Thumb/Thumb.js.map +1 -1
  174. package/esm/components/Slider/Thumb/Thumb.styles.js +2 -2
  175. package/esm/components/Slider/Thumb/Thumb.styles.js.map +1 -1
  176. package/esm/components/Slider/Track/Track.js +7 -4
  177. package/esm/components/Slider/Track/Track.js.map +1 -1
  178. package/esm/components/Slider/Track/Track.styles.js +2 -2
  179. package/esm/components/Slider/Track/Track.styles.js.map +1 -1
  180. package/esm/components/Space/Space.js +1 -1
  181. package/esm/components/Space/Space.js.map +1 -1
  182. package/esm/components/Stack/Stack.js +50 -0
  183. package/esm/components/Stack/Stack.js.map +1 -0
  184. package/esm/components/Stack/Stack.styles.js +14 -0
  185. package/esm/components/Stack/Stack.styles.js.map +1 -0
  186. package/esm/components/Table/Table.js +6 -3
  187. package/esm/components/Table/Table.js.map +1 -1
  188. package/esm/components/Table/Table.styles.js +3 -3
  189. package/esm/components/Table/Table.styles.js.map +1 -1
  190. package/esm/components/Timeline/Timeline.js +1 -1
  191. package/esm/components/Timeline/Timeline.js.map +1 -1
  192. package/esm/components/Tooltip/FloatingTooltip/FloatingTooltip.js +191 -0
  193. package/esm/components/Tooltip/FloatingTooltip/FloatingTooltip.js.map +1 -0
  194. package/esm/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.js +41 -0
  195. package/esm/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.js.map +1 -0
  196. package/esm/index.js +5 -0
  197. package/esm/index.js.map +1 -1
  198. package/esm/utils/get-input-mode/get-input-mode.js +20 -0
  199. package/esm/utils/get-input-mode/get-input-mode.js.map +1 -0
  200. package/lib/components/Affix/Affix.d.ts.map +1 -1
  201. package/lib/components/AppShell/AppShell.d.ts +6 -0
  202. package/lib/components/AppShell/AppShell.d.ts.map +1 -1
  203. package/lib/components/AppShell/AppShell.styles.d.ts +1 -0
  204. package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
  205. package/lib/components/AppShell/Aside/Aside.d.ts +13 -0
  206. package/lib/components/AppShell/Aside/Aside.d.ts.map +1 -0
  207. package/lib/components/AppShell/Footer/Footer.d.ts +8 -0
  208. package/lib/components/AppShell/Footer/Footer.d.ts.map +1 -0
  209. package/lib/components/AppShell/Header/Header.d.ts +2 -11
  210. package/lib/components/AppShell/Header/Header.d.ts.map +1 -1
  211. package/lib/components/AppShell/HorizontalSection/HorizontalSection.d.ts +33 -0
  212. package/lib/components/AppShell/HorizontalSection/HorizontalSection.d.ts.map +1 -0
  213. package/lib/components/AppShell/{Navbar/Navbar.styles.d.ts → HorizontalSection/HorizontalSection.styles.d.ts} +6 -6
  214. package/lib/components/AppShell/HorizontalSection/HorizontalSection.styles.d.ts.map +1 -0
  215. package/lib/components/AppShell/HorizontalSection/Section/Section.d.ts +15 -0
  216. package/lib/components/AppShell/HorizontalSection/Section/Section.d.ts.map +1 -0
  217. package/lib/components/AppShell/{Navbar → HorizontalSection}/get-sorted-breakpoints/get-sorted-breakpoints.d.ts +0 -0
  218. package/lib/components/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.d.ts.map +1 -0
  219. package/lib/components/AppShell/Navbar/Navbar.d.ts +4 -20
  220. package/lib/components/AppShell/Navbar/Navbar.d.ts.map +1 -1
  221. package/lib/components/AppShell/VerticalSection/VerticalSection.d.ts +22 -0
  222. package/lib/components/AppShell/VerticalSection/VerticalSection.d.ts.map +1 -0
  223. package/lib/components/AppShell/VerticalSection/VerticalSection.styles.d.ts +20 -0
  224. package/lib/components/AppShell/VerticalSection/VerticalSection.styles.d.ts.map +1 -0
  225. package/lib/components/AppShell/index.d.ts +6 -2
  226. package/lib/components/AppShell/index.d.ts.map +1 -1
  227. package/lib/components/Divider/Divider.d.ts.map +1 -1
  228. package/lib/components/Divider/Divider.styles.d.ts +2 -2
  229. package/lib/components/Divider/Divider.styles.d.ts.map +1 -1
  230. package/lib/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  231. package/lib/components/Notification/Notification.d.ts +1 -1
  232. package/lib/components/Notification/Notification.d.ts.map +1 -1
  233. package/lib/components/NumberInput/NumberInput.d.ts.map +1 -1
  234. package/lib/components/Popover/PopoverBody/PopoverBody.styles.d.ts.map +1 -1
  235. package/lib/components/Popper/Popper.d.ts +6 -1
  236. package/lib/components/Popper/Popper.d.ts.map +1 -1
  237. package/lib/components/RadioGroup/Radio/Radio.d.ts +4 -0
  238. package/lib/components/RadioGroup/Radio/Radio.d.ts.map +1 -1
  239. package/lib/components/RadioGroup/Radio/Radio.styles.d.ts +3 -2
  240. package/lib/components/RadioGroup/Radio/Radio.styles.d.ts.map +1 -1
  241. package/lib/components/RadioGroup/Radio/RadioIcon.d.ts +3 -0
  242. package/lib/components/RadioGroup/Radio/RadioIcon.d.ts.map +1 -0
  243. package/lib/components/Select/Select.d.ts.map +1 -1
  244. package/lib/components/Slider/Marks/Marks.d.ts +2 -1
  245. package/lib/components/Slider/Marks/Marks.d.ts.map +1 -1
  246. package/lib/components/Slider/Marks/Marks.styles.d.ts +1 -0
  247. package/lib/components/Slider/Marks/Marks.styles.d.ts.map +1 -1
  248. package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +2 -0
  249. package/lib/components/Slider/RangeSlider/RangeSlider.d.ts.map +1 -1
  250. package/lib/components/Slider/Slider/Slider.d.ts +2 -0
  251. package/lib/components/Slider/Slider/Slider.d.ts.map +1 -1
  252. package/lib/components/Slider/SliderRoot/SliderRoot.d.ts +1 -0
  253. package/lib/components/Slider/SliderRoot/SliderRoot.d.ts.map +1 -1
  254. package/lib/components/Slider/SliderRoot/SliderRoot.styles.d.ts +1 -0
  255. package/lib/components/Slider/SliderRoot/SliderRoot.styles.d.ts.map +1 -1
  256. package/lib/components/Slider/Thumb/Thumb.d.ts +1 -0
  257. package/lib/components/Slider/Thumb/Thumb.d.ts.map +1 -1
  258. package/lib/components/Slider/Thumb/Thumb.styles.d.ts +1 -0
  259. package/lib/components/Slider/Thumb/Thumb.styles.d.ts.map +1 -1
  260. package/lib/components/Slider/Track/Track.d.ts +2 -1
  261. package/lib/components/Slider/Track/Track.d.ts.map +1 -1
  262. package/lib/components/Slider/Track/Track.styles.d.ts +1 -0
  263. package/lib/components/Slider/Track/Track.styles.d.ts.map +1 -1
  264. package/lib/components/Stack/Stack.d.ts +9 -0
  265. package/lib/components/Stack/Stack.d.ts.map +1 -0
  266. package/lib/components/Stack/Stack.styles.d.ts +14 -0
  267. package/lib/components/Stack/Stack.styles.d.ts.map +1 -0
  268. package/lib/components/Stack/index.d.ts +4 -0
  269. package/lib/components/Stack/index.d.ts.map +1 -0
  270. package/lib/components/Table/Table.d.ts +2 -0
  271. package/lib/components/Table/Table.d.ts.map +1 -1
  272. package/lib/components/Table/Table.styles.d.ts +1 -0
  273. package/lib/components/Table/Table.styles.d.ts.map +1 -1
  274. package/lib/components/Tooltip/FloatingTooltip/FloatingTooltip.d.ts +35 -0
  275. package/lib/components/Tooltip/FloatingTooltip/FloatingTooltip.d.ts.map +1 -0
  276. package/lib/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.d.ts +12 -0
  277. package/lib/components/Tooltip/FloatingTooltip/FloatingTooltip.styles.d.ts.map +1 -0
  278. package/lib/components/Tooltip/index.d.ts +3 -0
  279. package/lib/components/Tooltip/index.d.ts.map +1 -1
  280. package/lib/index.d.ts +1 -0
  281. package/lib/index.d.ts.map +1 -1
  282. package/lib/utils/get-input-mode/get-input-mode.d.ts +3 -0
  283. package/lib/utils/get-input-mode/get-input-mode.d.ts.map +1 -0
  284. package/lib/utils/index.d.ts +1 -0
  285. package/lib/utils/index.d.ts.map +1 -1
  286. package/package.json +3 -3
  287. package/cjs/components/AppShell/Header/Header.styles.js.map +0 -1
  288. package/cjs/components/AppShell/Navbar/Navbar.styles.js.map +0 -1
  289. package/cjs/components/AppShell/Navbar/NavbarSection/NavbarSection.js.map +0 -1
  290. package/cjs/components/AppShell/Navbar/get-sorted-breakpoints/get-sorted-breakpoints.js.map +0 -1
  291. package/esm/components/AppShell/Header/Header.styles.js.map +0 -1
  292. package/esm/components/AppShell/Navbar/Navbar.styles.js.map +0 -1
  293. package/esm/components/AppShell/Navbar/NavbarSection/NavbarSection.js.map +0 -1
  294. package/esm/components/AppShell/Navbar/get-sorted-breakpoints/get-sorted-breakpoints.js.map +0 -1
  295. package/lib/components/AppShell/Header/Header.styles.d.ts +0 -19
  296. package/lib/components/AppShell/Header/Header.styles.d.ts.map +0 -1
  297. package/lib/components/AppShell/Navbar/Navbar.styles.d.ts.map +0 -1
  298. package/lib/components/AppShell/Navbar/NavbarSection/NavbarSection.d.ts +0 -15
  299. package/lib/components/AppShell/Navbar/NavbarSection/NavbarSection.d.ts.map +0 -1
  300. package/lib/components/AppShell/Navbar/get-sorted-breakpoints/get-sorted-breakpoints.d.ts.map +0 -1
@@ -0,0 +1,53 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { getDefaultZIndex, useMantineDefaultProps } from '@mantine/styles';
3
+ import { VerticalSection } from '../VerticalSection/VerticalSection.js';
4
+
5
+ var __defProp = Object.defineProperty;
6
+ var __defProps = Object.defineProperties;
7
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __objRest = (source, exclude) => {
25
+ var target = {};
26
+ for (var prop in source)
27
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
+ target[prop] = source[prop];
29
+ if (source != null && __getOwnPropSymbols)
30
+ for (var prop of __getOwnPropSymbols(source)) {
31
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
+ target[prop] = source[prop];
33
+ }
34
+ return target;
35
+ };
36
+ const defaultProps = {
37
+ fixed: false,
38
+ position: { bottom: 0, left: 0, right: 0 },
39
+ zIndex: getDefaultZIndex("app")
40
+ };
41
+ const Footer = forwardRef((props, ref) => {
42
+ const others = __objRest(useMantineDefaultProps("Footer", defaultProps, props), []);
43
+ return /* @__PURE__ */ React.createElement(VerticalSection, __spreadProps(__spreadValues({
44
+ section: "footer",
45
+ __staticSelector: "Footer"
46
+ }, others), {
47
+ ref
48
+ }));
49
+ });
50
+ Footer.displayName = "@mantine/core/Footer";
51
+
52
+ export { Footer };
53
+ //# sourceMappingURL=Footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.js","sources":["../../../../src/components/AppShell/Footer/Footer.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { getDefaultZIndex, useMantineDefaultProps } from '@mantine/styles';\nimport { VerticalSection, VerticalSectionSharedProps } from '../VerticalSection/VerticalSection';\n\nexport interface FooterProps\n extends VerticalSectionSharedProps,\n React.ComponentPropsWithoutRef<'nav'> {\n /** Footer content */\n children: React.ReactNode;\n}\n\nconst defaultProps: Partial<FooterProps> = {\n fixed: false,\n position: { bottom: 0, left: 0, right: 0 },\n zIndex: getDefaultZIndex('app'),\n};\n\nexport const Footer = forwardRef<HTMLElement, FooterProps>((props: FooterProps, ref) => {\n const { ...others } = useMantineDefaultProps('Footer', defaultProps, props);\n return <VerticalSection section=\"footer\" __staticSelector=\"Footer\" {...others} ref={ref} />;\n});\n\nFooter.displayName = '@mantine/core/Footer';\n"],"names":[],"mappings":";;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACzD,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK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CAAC;AAClC,EAAE,IAAI,MAAM,IAAI,IAAI,IAAI,mBAAmB;AAC3C,IAAI,KAAK,IAAI,IAAI,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;AAClD,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC;AACtE,QAAQ,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;AACpC,KAAK;AACL,EAAE,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAIF,MAAM,YAAY,GAAG;AACrB,EAAE,KAAK,EAAE,KAAK;AACd,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;AAC5C,EAAE,MAAM,EAAE,gBAAgB,CAAC,KAAK,CAAC;AACjC,CAAC,CAAC;AACU,MAAC,MAAM,GAAG,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACjD,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;AACtF,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,aAAa,CAAC,cAAc,CAAC;AAC3F,IAAI,OAAO,EAAE,QAAQ;AACrB,IAAI,gBAAgB,EAAE,QAAQ;AAC9B,GAAG,EAAE,MAAM,CAAC,EAAE;AACd,IAAI,GAAG;AACP,GAAG,CAAC,CAAC,CAAC;AACN,CAAC,EAAE;AACH,MAAM,CAAC,WAAW,GAAG,sBAAsB;;;;"}
@@ -1,10 +1,10 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { getDefaultZIndex, useMantineDefaultProps, Global } from '@mantine/styles';
3
- import { useAppShellContext } from '../AppShell.context.js';
4
- import useStyles from './Header.styles.js';
5
- import { Box } from '../../Box/Box.js';
2
+ import { getDefaultZIndex, useMantineDefaultProps } from '@mantine/styles';
3
+ import { VerticalSection } from '../VerticalSection/VerticalSection.js';
6
4
 
7
5
  var __defProp = Object.defineProperty;
6
+ var __defProps = Object.defineProperties;
7
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
8
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
10
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -20,37 +20,19 @@ var __spreadValues = (a, b) => {
20
20
  }
21
21
  return a;
22
22
  };
23
- var __objRest = (source, exclude) => {
24
- var target = {};
25
- for (var prop in source)
26
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
- target[prop] = source[prop];
28
- if (source != null && __getOwnPropSymbols)
29
- for (var prop of __getOwnPropSymbols(source)) {
30
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
- target[prop] = source[prop];
32
- }
33
- return target;
34
- };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
35
24
  const defaultProps = {
36
25
  fixed: false,
37
26
  position: { top: 0, left: 0, right: 0 },
38
27
  zIndex: getDefaultZIndex("app")
39
28
  };
40
29
  const Header = forwardRef((props, ref) => {
41
- const _a = useMantineDefaultProps("Header", defaultProps, props), { children, className, classNames, styles, height, fixed, position, zIndex } = _a, others = __objRest(_a, ["children", "className", "classNames", "styles", "height", "fixed", "position", "zIndex"]);
42
- const ctx = useAppShellContext();
43
- const { classes, cx } = useStyles({ height, fixed: ctx.fixed || fixed, position, zIndex: ctx.zIndex || zIndex }, { name: "Header", classNames, styles });
44
- return /* @__PURE__ */ React.createElement(Box, __spreadValues({
45
- component: "nav",
46
- className: cx(classes.root, className),
30
+ const _props = useMantineDefaultProps("Header", defaultProps, props);
31
+ return /* @__PURE__ */ React.createElement(VerticalSection, __spreadProps(__spreadValues({
32
+ section: "header",
33
+ __staticSelector: "Header"
34
+ }, _props), {
47
35
  ref
48
- }, others), children, /* @__PURE__ */ React.createElement(Global, {
49
- styles: () => ({
50
- ":root": {
51
- "--mantine-header-height": `${height}px`
52
- }
53
- })
54
36
  }));
55
37
  });
56
38
  Header.displayName = "@mantine/core/Header";
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sources":["../../../../src/components/AppShell/Header/Header.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { DefaultProps, getDefaultZIndex, useMantineDefaultProps, Global } from '@mantine/styles';\nimport { Box } from '../../Box';\nimport { useAppShellContext } from '../AppShell.context';\nimport useStyles, { HeaderPosition } from './Header.styles';\n\nexport interface HeaderProps extends DefaultProps, React.ComponentPropsWithoutRef<'nav'> {\n /** Header content */\n children: React.ReactNode;\n\n /** Header height */\n height: number | string;\n\n /** Changes position to fixed, controlled by AppShell component if rendered inside */\n fixed?: boolean;\n\n /** Control top, left, right or bottom position values, controlled by AppShell component if rendered inside */\n position?: HeaderPosition;\n\n /** z-index */\n zIndex?: number;\n}\n\nconst defaultProps: Partial<HeaderProps> = {\n fixed: false,\n position: { top: 0, left: 0, right: 0 },\n zIndex: getDefaultZIndex('app'),\n};\n\nexport const Header = forwardRef<HTMLElement, HeaderProps>((props: HeaderProps, ref) => {\n const { children, className, classNames, styles, height, fixed, position, zIndex, ...others } =\n useMantineDefaultProps('Header', defaultProps, props);\n const ctx = useAppShellContext();\n\n const { classes, cx } = useStyles(\n { height, fixed: ctx.fixed || fixed, position, zIndex: ctx.zIndex || zIndex },\n { name: 'Header', classNames, styles }\n );\n\n return (\n <Box component=\"nav\" className={cx(classes.root, className)} ref={ref} {...others}>\n {children}\n <Global\n styles={() => ({\n ':root': {\n '--mantine-header-height': `${height}px`,\n },\n })}\n />\n </Box>\n );\n});\n\nHeader.displayName = '@mantine/core/Header';\n"],"names":[],"mappings":";;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,M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AAG,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,IAAI,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,IAAI,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;AAC3J,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,cAAc,CAAC;AACjE,IAAI,SAAS,EAAE,KAAK;AACpB,IAAI,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;AAC1C,IAAI,GAAG;AACP,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE;AACpE,IAAI,MAAM,EAAE,OAAO;AACnB,MAAM,OAAO,EAAE;AACf,QAAQ,yBAAyB,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;AAChD,OAAO;AACP,KAAK,CAAC;AACN,GAAG,CAAC,CAAC,CAAC;AACN,CAAC,EAAE;AACH,MAAM,CAAC,WAAW,GAAG,sBAAsB;;;;"}
1
+ {"version":3,"file":"Header.js","sources":["../../../../src/components/AppShell/Header/Header.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { getDefaultZIndex, useMantineDefaultProps } from '@mantine/styles';\nimport { VerticalSection, VerticalSectionSharedProps } from '../VerticalSection/VerticalSection';\n\nexport interface HeaderProps\n extends VerticalSectionSharedProps,\n React.ComponentPropsWithoutRef<'nav'> {\n /** Header content */\n children: React.ReactNode;\n}\n\nconst defaultProps: Partial<HeaderProps> = {\n fixed: false,\n position: { top: 0, left: 0, right: 0 },\n zIndex: getDefaultZIndex('app'),\n};\n\nexport const Header = forwardRef<HTMLElement, HeaderProps>((props: HeaderProps, ref) => {\n const _props = useMantineDefaultProps('Header', defaultProps, props);\n return <VerticalSection section=\"header\" __staticSelector=\"Header\" {..._props} ref={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AC,CAAC;AACF,IAAI,aAAa,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,UAAU,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAIlE,MAAM,YAAY,GAAG;AACrB,EAAE,KAAK,EAAE,KAAK;AACd,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;AACzC,EAAE,MAAM,EAAE,gBAAgB,CAAC,KAAK,CAAC;AACjC,CAAC,CAAC;AACU,MAAC,MAAM,GAAG,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACjD,EAAE,MAAM,MAAM,GAAG,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AACvE,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,aAAa,CAAC,cAAc,CAAC;AAC3F,IAAI,OAAO,EAAE,QAAQ;AACrB,IAAI,gBAAgB,EAAE,QAAQ;AAC9B,GAAG,EAAE,MAAM,CAAC,EAAE;AACd,IAAI,GAAG;AACP,GAAG,CAAC,CAAC,CAAC;AACN,CAAC,EAAE;AACH,MAAM,CAAC,WAAW,GAAG,sBAAsB;;;;"}
@@ -0,0 +1,98 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { getDefaultZIndex, Global } from '@mantine/styles';
3
+ import { useAppShellContext } from '../AppShell.context.js';
4
+ import { getSortedBreakpoints } from './get-sorted-breakpoints/get-sorted-breakpoints.js';
5
+ import { Section } from './Section/Section.js';
6
+ import useStyles from './HorizontalSection.styles.js';
7
+ import { Box } from '../../Box/Box.js';
8
+
9
+ var __defProp = Object.defineProperty;
10
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
+ var __spreadValues = (a, b) => {
15
+ for (var prop in b || (b = {}))
16
+ if (__hasOwnProp.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ if (__getOwnPropSymbols)
19
+ for (var prop of __getOwnPropSymbols(b)) {
20
+ if (__propIsEnum.call(b, prop))
21
+ __defNormalProp(a, prop, b[prop]);
22
+ }
23
+ return a;
24
+ };
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ const HorizontalSection = forwardRef((_a, ref) => {
38
+ var _b = _a, {
39
+ width,
40
+ height,
41
+ fixed = false,
42
+ position,
43
+ zIndex = getDefaultZIndex("app"),
44
+ hiddenBreakpoint = "md",
45
+ hidden = false,
46
+ className,
47
+ classNames,
48
+ styles,
49
+ children,
50
+ section,
51
+ __staticSelector
52
+ } = _b, others = __objRest(_b, [
53
+ "width",
54
+ "height",
55
+ "fixed",
56
+ "position",
57
+ "zIndex",
58
+ "hiddenBreakpoint",
59
+ "hidden",
60
+ "className",
61
+ "classNames",
62
+ "styles",
63
+ "children",
64
+ "section",
65
+ "__staticSelector"
66
+ ]);
67
+ const ctx = useAppShellContext();
68
+ const { classes, cx, theme } = useStyles({
69
+ width,
70
+ height,
71
+ fixed: ctx.fixed || fixed,
72
+ position,
73
+ hiddenBreakpoint,
74
+ zIndex: ctx.zIndex || zIndex
75
+ }, { classNames, styles, name: __staticSelector });
76
+ const breakpoints = getSortedBreakpoints(width, theme).reduce((acc, [breakpoint, breakpointSize]) => {
77
+ acc[`@media (min-width: ${breakpoint + 1}px)`] = {
78
+ [`--mantine-${section}-width`]: `${breakpointSize}px`
79
+ };
80
+ return acc;
81
+ }, {});
82
+ return /* @__PURE__ */ React.createElement(Box, __spreadValues({
83
+ component: section === "navbar" ? "nav" : "aside",
84
+ ref,
85
+ className: cx(classes.root, { [classes.hidden]: hidden }, className)
86
+ }, others), children, /* @__PURE__ */ React.createElement(Global, {
87
+ styles: () => ({
88
+ ":root": __spreadValues({
89
+ [`--mantine-${section}-width`]: (width == null ? void 0 : width.base) ? `${width.base}px` : "0px"
90
+ }, breakpoints)
91
+ })
92
+ }));
93
+ });
94
+ HorizontalSection.Section = Section;
95
+ HorizontalSection.displayName = "@mantine/core/HorizontalSection";
96
+
97
+ export { HorizontalSection };
98
+ //# sourceMappingURL=HorizontalSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalSection.js","sources":["../../../../src/components/AppShell/HorizontalSection/HorizontalSection.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n ClassNames,\n DefaultProps,\n MantineNumberSize,\n getDefaultZIndex,\n ForwardRefWithStaticComponents,\n Global,\n} from '@mantine/styles';\nimport { Box } from '../../Box';\nimport { useAppShellContext } from '../AppShell.context';\nimport { getSortedBreakpoints } from './get-sorted-breakpoints/get-sorted-breakpoints';\nimport { Section } from './Section/Section';\nimport useStyles, {\n HorizontalSectionPosition,\n HorizontalSectionWidth,\n} from './HorizontalSection.styles';\n\nexport type HorizontalSectionStylesNames = ClassNames<typeof useStyles>;\n\nexport interface HorizontalSectionSharedProps extends DefaultProps<HorizontalSectionStylesNames> {\n /** Component width with breakpoints */\n width?: HorizontalSectionWidth;\n\n /** Component height */\n height?: string | number;\n\n /** HorizontalSection content */\n children: React.ReactNode;\n\n /** Set position to fixed */\n fixed?: boolean;\n\n /** Position for fixed variant */\n position?: HorizontalSectionPosition;\n\n /** Breakpoint at which component will be hidden if hidden prop is true */\n hiddenBreakpoint?: MantineNumberSize;\n\n /** Set to true to hide component at hiddenBreakpoint */\n hidden?: boolean;\n\n /** z-index */\n zIndex?: number;\n}\n\nexport interface HorizontalSectionProps\n extends HorizontalSectionSharedProps,\n Omit<React.ComponentPropsWithRef<'nav'>, 'children'> {\n section: 'navbar' | 'aside';\n __staticSelector: string;\n}\n\ntype HorizontalSectionComponent = ForwardRefWithStaticComponents<\n HorizontalSectionProps,\n { Section: typeof Section }\n>;\n\nexport const HorizontalSection: HorizontalSectionComponent = forwardRef<\n HTMLElement,\n HorizontalSectionProps\n>(\n (\n {\n width,\n height,\n fixed = false,\n position,\n zIndex = getDefaultZIndex('app'),\n hiddenBreakpoint = 'md',\n hidden = false,\n className,\n classNames,\n styles,\n children,\n section,\n __staticSelector,\n ...others\n }: HorizontalSectionProps,\n ref\n ) => {\n const ctx = useAppShellContext();\n\n const { classes, cx, theme } = useStyles(\n {\n width,\n height,\n fixed: ctx.fixed || fixed,\n position,\n hiddenBreakpoint,\n zIndex: ctx.zIndex || zIndex,\n },\n { classNames, styles, name: __staticSelector }\n );\n\n const breakpoints = getSortedBreakpoints(width, theme).reduce(\n (acc, [breakpoint, breakpointSize]) => {\n acc[`@media (min-width: ${breakpoint + 1}px)`] = {\n [`--mantine-${section}-width`]: `${breakpointSize}px`,\n };\n\n return acc;\n },\n {}\n );\n\n return (\n <Box\n component={section === 'navbar' ? 'nav' : 'aside'}\n ref={ref}\n className={cx(classes.root, { [classes.hidden]: hidden }, className)}\n {...others}\n >\n {children}\n\n <Global\n styles={() => ({\n ':root': {\n [`--mantine-${section}-width`]: width?.base ? `${width.base}px` : '0px',\n ...breakpoints,\n },\n })}\n />\n </Box>\n );\n }\n) as any;\n\nHorizontalSection.Section = Section;\nHorizontalSection.displayName = '@mantine/core/HorizontalSection';\n"],"names":[],"mappings":";;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAC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IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,KAAK;AACzG,OAAO,EAAE,WAAW,CAAC;AACrB,KAAK,CAAC;AACN,GAAG,CAAC,CAAC,CAAC;AACN,CAAC,EAAE;AACH,iBAAiB,CAAC,OAAO,GAAG,OAAO,CAAC;AACpC,iBAAiB,CAAC,WAAW,GAAG,iCAAiC;;;;"}
@@ -32,7 +32,7 @@ var useStyles = createStyles((theme, { height, width, fixed, position, hiddenBre
32
32
  root: __spreadValues(__spreadProps(__spreadValues(__spreadValues({}, theme.fn.fontStyles()), position), {
33
33
  top: (position == null ? void 0 : position.top) || "var(--mantine-header-height)",
34
34
  zIndex,
35
- height: height || "calc(100vh - var(--mantine-header-height, 0px))",
35
+ height: height || "calc(100vh - var(--mantine-header-height, 0px) - var(--mantine-footer-height, 0px))",
36
36
  width: (width == null ? void 0 : width.base) || "100%",
37
37
  position: fixed ? "fixed" : "static",
38
38
  boxSizing: "border-box",
@@ -53,4 +53,4 @@ var useStyles = createStyles((theme, { height, width, fixed, position, hiddenBre
53
53
  });
54
54
 
55
55
  export default useStyles;
56
- //# sourceMappingURL=Navbar.styles.js.map
56
+ //# sourceMappingURL=HorizontalSection.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalSection.styles.js","sources":["../../../../src/components/AppShell/HorizontalSection/HorizontalSection.styles.ts"],"sourcesContent":["import { createStyles, MantineNumberSize } from '@mantine/styles';\nimport { getSortedBreakpoints } from './get-sorted-breakpoints/get-sorted-breakpoints';\n\nexport type HorizontalSectionWidth = Partial<Record<string, string | number>>;\n\nexport interface HorizontalSectionPosition {\n top?: number;\n left?: number;\n bottom?: number;\n right?: number;\n}\n\ninterface HorizontalSectionStyles {\n width: Partial<Record<string, string | number>>;\n height: string | number;\n position: HorizontalSectionPosition;\n hiddenBreakpoint: MantineNumberSize;\n fixed: boolean;\n zIndex: number;\n}\n\nexport default createStyles(\n (\n theme,\n { height, width, fixed, position, hiddenBreakpoint, zIndex }: HorizontalSectionStyles\n ) => {\n const breakpoints =\n typeof width === 'object' && width !== null\n ? getSortedBreakpoints(width, theme).reduce((acc, [breakpoint, breakpointSize]) => {\n acc[`@media (min-width: ${breakpoint + 1}px)`] = {\n width: breakpointSize,\n minWidth: breakpointSize,\n };\n\n return acc;\n }, {})\n : null;\n\n return {\n root: {\n ...theme.fn.fontStyles(),\n ...position,\n top: position?.top || 'var(--mantine-header-height)',\n zIndex,\n height:\n height ||\n 'calc(100vh - var(--mantine-header-height, 0px) - var(--mantine-footer-height, 0px))',\n width: width?.base || '100%',\n position: fixed ? 'fixed' : 'static',\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'column',\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[7] : theme.white,\n borderRight: `1px solid ${\n theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[2]\n }`,\n ...breakpoints,\n },\n\n hidden: {\n [`@media (max-width: ${theme.fn.size({\n size: hiddenBreakpoint,\n sizes: theme.breakpoints,\n })}px)`]: {\n display: 'none',\n },\n },\n };\n }\n);\n"],"names":[],"mappings":";;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACzD,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI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C,QAAQ,IAAI,EAAE,gBAAgB;AAC9B,QAAQ,KAAK,EAAE,KAAK,CAAC,WAAW;AAChC,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG;AAChB,QAAQ,OAAO,EAAE,MAAM;AACvB,OAAO;AACP,KAAK;AACL,GAAG,CAAC;AACJ,CAAC,CAAC;;;;"}
@@ -29,15 +29,15 @@ var __objRest = (source, exclude) => {
29
29
  }
30
30
  return target;
31
31
  };
32
- const NavbarSection = forwardRef((_a, ref) => {
32
+ const Section = forwardRef((_a, ref) => {
33
33
  var _b = _a, { component, children, grow = false, sx } = _b, others = __objRest(_b, ["component", "children", "grow", "sx"]);
34
34
  return /* @__PURE__ */ React.createElement(Box, __spreadValues({
35
35
  component: component || "div",
36
36
  ref,
37
- sx: [{ flex: grow ? 1 : 0, boxSizing: "border-box" }, sx]
37
+ sx: [{ flex: grow ? 1 : 0, boxSizing: "border-box" }, ...Array.isArray(sx) ? sx : [sx]]
38
38
  }, others), children);
39
39
  });
40
- NavbarSection.displayName = "@mantine/core/NavbarSection";
40
+ Section.displayName = "@mantine/core/Section";
41
41
 
42
- export { NavbarSection };
43
- //# sourceMappingURL=NavbarSection.js.map
42
+ export { Section };
43
+ //# sourceMappingURL=Section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.js","sources":["../../../../../src/components/AppShell/HorizontalSection/Section/Section.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { DefaultProps, PolymorphicComponentProps, PolymorphicRef } from '@mantine/styles';\nimport { Box } from '../../../Box';\n\ninterface _SectionProps extends DefaultProps {\n /** Section children */\n children: React.ReactNode;\n\n /** Force section to take all available height */\n grow?: boolean;\n}\n\nexport type SectionProps<C> = PolymorphicComponentProps<C, _SectionProps>;\n\ntype SectionComponent = <C = 'div'>(props: SectionProps<C>) => React.ReactElement;\n\nexport const Section: SectionComponent & { displayName?: string } = forwardRef(\n <C extends React.ElementType = 'div'>(\n { component, children, grow = false, sx, ...others }: SectionProps<C>,\n ref: PolymorphicRef<C>\n ) => (\n <Box<any>\n component={component || 'div'}\n ref={ref}\n sx={[{ flex: grow ? 1 : 0, boxSizing: 'border-box' }, ...(Array.isArray(sx) ? sx : [sx])]}\n {...others}\n >\n {children}\n </Box>\n )\n);\n\nSection.displayName = '@mantine/core/Section';\n"],"names":[],"mappings":";;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,IAAI,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC/B,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAChC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACxC,EAAE,IAAI,mBAAmB;AACzB,IAAI,KAAK,IAAI,IAAI,IAAI,mBAAmB,CAAC,CAAC,CAAC,EAAE;AAC7C,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AACpC,QAAQ,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;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AE,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;AAC3F,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAC;AACxB,CAAC,EAAE;AACH,OAAO,CAAC,WAAW,GAAG,uBAAuB;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-sorted-breakpoints.js","sources":["../../../../../src/components/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.ts"],"sourcesContent":["import { MantineSize, MantineTheme } from '@mantine/styles';\n\ntype Breakpoints<T> = Partial<Record<MantineSize | (string & {}), T>>;\n\nexport function getSortedBreakpoints<T>(\n breakpoints: Breakpoints<T>,\n theme: MantineTheme\n): [number, T][] {\n if (!breakpoints) {\n return [];\n }\n\n const values = Object.keys(breakpoints)\n .filter((breakpoint) => breakpoint !== 'base')\n .map((breakpoint) => [\n theme.fn.size({ size: breakpoint, sizes: theme.breakpoints }),\n breakpoints[breakpoint],\n ]);\n\n values.sort((a, b) => a[0] - b[0]);\n return values as [number, T][];\n}\n"],"names":[],"mappings":"AAAO,SAAS,oBAAoB,CAAC,WAAW,EAAE,KAAK,EAAE;AACzD,EAAE,IAAI,CAAC,WAAW,EAAE;AACpB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,KAAK,UAAU,KAAK,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,KAAK;AAC5G,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC;AACjE,IAAI,WAAW,CAAC,UAAU,CAAC;AAC3B,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrC,EAAE,OAAO,MAAM,CAAC;AAChB;;;;"}
@@ -1,10 +1,6 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { getDefaultZIndex, useMantineDefaultProps, Global } from '@mantine/styles';
3
- import { useAppShellContext } from '../AppShell.context.js';
4
- import { getSortedBreakpoints } from './get-sorted-breakpoints/get-sorted-breakpoints.js';
5
- import { NavbarSection } from './NavbarSection/NavbarSection.js';
6
- import useStyles from './Navbar.styles.js';
7
- import { Box } from '../../Box/Box.js';
2
+ import { getDefaultZIndex, useMantineDefaultProps } from '@mantine/styles';
3
+ import { HorizontalSection } from '../HorizontalSection/HorizontalSection.js';
8
4
 
9
5
  var __defProp = Object.defineProperty;
10
6
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
@@ -22,18 +18,6 @@ var __spreadValues = (a, b) => {
22
18
  }
23
19
  return a;
24
20
  };
25
- var __objRest = (source, exclude) => {
26
- var target = {};
27
- for (var prop in source)
28
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
- target[prop] = source[prop];
30
- if (source != null && __getOwnPropSymbols)
31
- for (var prop of __getOwnPropSymbols(source)) {
32
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
- target[prop] = source[prop];
34
- }
35
- return target;
36
- };
37
21
  const defaultProps = {
38
22
  fixed: false,
39
23
  position: { top: 0, left: 0 },
@@ -42,59 +26,14 @@ const defaultProps = {
42
26
  hidden: false
43
27
  };
44
28
  const Navbar = forwardRef((props, ref) => {
45
- const _a = useMantineDefaultProps("Navbar", defaultProps, props), {
46
- width,
47
- height,
48
- fixed,
49
- position,
50
- zIndex,
51
- hiddenBreakpoint,
52
- hidden,
53
- className,
54
- classNames,
55
- styles,
56
- children
57
- } = _a, others = __objRest(_a, [
58
- "width",
59
- "height",
60
- "fixed",
61
- "position",
62
- "zIndex",
63
- "hiddenBreakpoint",
64
- "hidden",
65
- "className",
66
- "classNames",
67
- "styles",
68
- "children"
69
- ]);
70
- const ctx = useAppShellContext();
71
- const { classes, cx, theme } = useStyles({
72
- width,
73
- height,
74
- fixed: ctx.fixed || fixed,
75
- position,
76
- hiddenBreakpoint,
77
- zIndex: ctx.zIndex || zIndex
78
- }, { classNames, styles, name: "Navbar" });
79
- const breakpoints = getSortedBreakpoints(width, theme).reduce((acc, [breakpoint, breakpointSize]) => {
80
- acc[`@media (min-width: ${breakpoint + 1}px)`] = {
81
- "--mantine-navbar-width": `${breakpointSize}px`
82
- };
83
- return acc;
84
- }, {});
85
- return /* @__PURE__ */ React.createElement(Box, __spreadValues({
86
- component: "nav",
87
- ref,
88
- className: cx(classes.root, { [classes.hidden]: hidden }, className)
89
- }, others), children, /* @__PURE__ */ React.createElement(Global, {
90
- styles: () => ({
91
- ":root": __spreadValues({
92
- "--mantine-navbar-width": (width == null ? void 0 : width.base) ? `${width.base}px` : "0px"
93
- }, breakpoints)
94
- })
95
- }));
29
+ const _props = useMantineDefaultProps("Navbar", defaultProps, props);
30
+ return /* @__PURE__ */ React.createElement(HorizontalSection, __spreadValues({
31
+ section: "navbar",
32
+ __staticSelector: "Navbar",
33
+ ref
34
+ }, _props));
96
35
  });
97
- Navbar.Section = NavbarSection;
36
+ Navbar.Section = HorizontalSection.Section;
98
37
  Navbar.displayName = "@mantine/core/Navbar";
99
38
 
100
39
  export { Navbar };
@@ -1 +1 @@
1
- {"version":3,"file":"Navbar.js","sources":["../../../../src/components/AppShell/Navbar/Navbar.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n ClassNames,\n DefaultProps,\n MantineNumberSize,\n getDefaultZIndex,\n ForwardRefWithStaticComponents,\n useMantineDefaultProps,\n Global,\n} from '@mantine/styles';\nimport { Box } from '../../Box';\nimport { useAppShellContext } from '../AppShell.context';\nimport { getSortedBreakpoints } from './get-sorted-breakpoints/get-sorted-breakpoints';\nimport { NavbarSection } from './NavbarSection/NavbarSection';\nimport useStyles, { NavbarPosition, NavbarWidth } from './Navbar.styles';\n\nexport type NavbarStylesNames = ClassNames<typeof useStyles>;\n\nexport interface NavbarProps\n extends DefaultProps<NavbarStylesNames>,\n React.ComponentPropsWithRef<'nav'> {\n /** Navbar width with breakpoints */\n width?: NavbarWidth;\n\n /** Navbar height */\n height?: string | number;\n\n /** Navbar content */\n children: React.ReactNode;\n\n /** Set position to fixed */\n fixed?: boolean;\n\n /** Position for fixed Navbar */\n position?: NavbarPosition;\n\n /** Breakpoint at which navbar will be hidden if hidden prop is true */\n hiddenBreakpoint?: MantineNumberSize;\n\n /** Set to true to hide breakpoint at hiddenBreakpoint */\n hidden?: boolean;\n\n /** z-index */\n zIndex?: number;\n}\n\ntype NavbarComponent = ForwardRefWithStaticComponents<\n NavbarProps,\n { Section: typeof NavbarSection }\n>;\n\nconst defaultProps: Partial<NavbarProps> = {\n fixed: false,\n position: { top: 0, left: 0 },\n zIndex: getDefaultZIndex('app'),\n hiddenBreakpoint: 'md',\n hidden: false,\n};\n\nexport const Navbar: NavbarComponent = forwardRef<HTMLElement, NavbarProps>(\n (props: NavbarProps, ref) => {\n const {\n width,\n height,\n fixed,\n position,\n zIndex,\n hiddenBreakpoint,\n hidden,\n className,\n classNames,\n styles,\n children,\n ...others\n } = useMantineDefaultProps('Navbar', defaultProps, props);\n const ctx = useAppShellContext();\n\n const { classes, cx, theme } = useStyles(\n {\n width,\n height,\n fixed: ctx.fixed || fixed,\n position,\n hiddenBreakpoint,\n zIndex: ctx.zIndex || zIndex,\n },\n { classNames, styles, name: 'Navbar' }\n );\n\n const breakpoints = getSortedBreakpoints(width, theme).reduce(\n (acc, [breakpoint, breakpointSize]) => {\n acc[`@media (min-width: ${breakpoint + 1}px)`] = {\n '--mantine-navbar-width': `${breakpointSize}px`,\n };\n\n return acc;\n },\n {}\n );\n\n return (\n <Box\n component=\"nav\"\n ref={ref}\n className={cx(classes.root, { [classes.hidden]: hidden }, className)}\n {...others}\n >\n {children}\n\n <Global\n styles={() => ({\n ':root': {\n '--mantine-navbar-width': width?.base ? `${width.base}px` : '0px',\n ...breakpoints,\n },\n })}\n />\n </Box>\n );\n }\n) as any;\n\nNavbar.Section = NavbarSection;\nNavbar.displayName = '@mantine/core/Navbar';\n"],"names":[],"mappings":";;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,IAAI,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC/B,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAChC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACxC,EAAE,IAAI,mBAAmB;AACzB,IAAI,KAAK,IAAI,IAAI,IAAI,mBAAmB,CAAC,CAAC,CAAC,EAAE;AAC7C,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AACpC,QAAQ,eAAe,CAAC,CAAC,EAAE,IAAI,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AE,CAAC,CAAC;AACT,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,cAAc,CAAC;AACjE,IAAI,SAAS,EAAE,KAAK;AACpB,IAAI,GAAG;AACP,IAAI,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,EAAE,EAAE,SAAS,CAAC;AACxE,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE;AACpE,IAAI,MAAM,EAAE,OAAO;AACnB,MAAM,OAAO,EAAE,cAAc,CAAC;AAC9B,QAAQ,wBAAwB,EAAE,CAAC,KAAK,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,KAAK;AACnG,OAAO,EAAE,WAAW,CAAC;AACrB,KAAK,CAAC;AACN,GAAG,CAAC,CAAC,CAAC;AACN,CAAC,EAAE;AACH,MAAM,CAAC,OAAO,GAAG,aAAa,CAAC;AAC/B,MAAM,CAAC,WAAW,GAAG,sBAAsB;;;;"}
1
+ {"version":3,"file":"Navbar.js","sources":["../../../../src/components/AppShell/Navbar/Navbar.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport {\n getDefaultZIndex,\n ForwardRefWithStaticComponents,\n useMantineDefaultProps,\n} from '@mantine/styles';\nimport {\n HorizontalSection,\n HorizontalSectionSharedProps,\n} from '../HorizontalSection/HorizontalSection';\n\nexport interface NavbarProps\n extends HorizontalSectionSharedProps,\n React.ComponentPropsWithRef<'nav'> {\n /** Navbar content */\n children: React.ReactNode;\n}\n\ntype NavbarComponent = ForwardRefWithStaticComponents<\n NavbarProps,\n { Section: typeof HorizontalSection.Section }\n>;\n\nconst defaultProps: Partial<NavbarProps> = {\n fixed: false,\n position: { top: 0, left: 0 },\n zIndex: getDefaultZIndex('app'),\n hiddenBreakpoint: 'md',\n hidden: false,\n};\n\nexport const Navbar: NavbarComponent = forwardRef<HTMLElement, NavbarProps>(\n (props: NavbarProps, ref) => {\n const _props = useMantineDefaultProps('Navbar', defaultProps, props);\n return <HorizontalSection section=\"navbar\" __staticSelector=\"Navbar\" ref={ref} {..._props} />;\n }\n) as any;\n\nNavbar.Section = HorizontalSection.Section;\nNavbar.displayName = '@mantine/core/Navbar';\n"],"names":[],"mappings":";;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,IAAI,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC/B,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAChC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACxC,EAAE,IAAI,mBAAmB;AACzB,IAAI,KAAK,IAAI,IAAI,IAAI,mBAAmB,CAAC,CAAC,CAAC,EAAE;AAC7C,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AACpC,QAAQ,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1C,KAAK;AACL,EAAE,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AASF,MAAM,YAAY,GAAG;AACrB,EAAE,KAAK,EAAE,KAAK;AACd,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;AAC/B,EAAE,MAAM,EAAE,gBAAgB,CAAC,KAAK,CAAC;AACjC,EAAE,gBAAgB,EAAE,IAAI;AACxB,EAAE,MAAM,EAAE,KAAK;AACf,CAAC,CAAC;AACU,MAAC,MAAM,GAAG,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACjD,EAAE,MAAM,MAAM,GAAG,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;AACvE,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,iBAAiB,EAAE,cAAc,CAAC;AAC/E,IAAI,OAAO,EAAE,QAAQ;AACrB,IAAI,gBAAgB,EAAE,QAAQ;AAC9B,IAAI,GAAG;AACP,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;AACd,CAAC,EAAE;AACH,MAAM,CAAC,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC;AAC3C,MAAM,CAAC,WAAW,GAAG,sBAAsB;;;;"}
@@ -0,0 +1,82 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { getDefaultZIndex, Global } from '@mantine/styles';
3
+ import { useAppShellContext } from '../AppShell.context.js';
4
+ import useStyles from './VerticalSection.styles.js';
5
+ import { Box } from '../../Box/Box.js';
6
+
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
35
+ const VerticalSection = forwardRef((_a, ref) => {
36
+ var _b = _a, {
37
+ children,
38
+ className,
39
+ classNames,
40
+ styles,
41
+ height,
42
+ fixed = false,
43
+ position,
44
+ zIndex = getDefaultZIndex("app"),
45
+ section,
46
+ __staticSelector
47
+ } = _b, others = __objRest(_b, [
48
+ "children",
49
+ "className",
50
+ "classNames",
51
+ "styles",
52
+ "height",
53
+ "fixed",
54
+ "position",
55
+ "zIndex",
56
+ "section",
57
+ "__staticSelector"
58
+ ]);
59
+ const ctx = useAppShellContext();
60
+ const { classes, cx } = useStyles({
61
+ height,
62
+ fixed: ctx.fixed || fixed,
63
+ position,
64
+ zIndex: ctx.zIndex || zIndex,
65
+ borderPosition: section === "header" ? "bottom" : "top"
66
+ }, { name: __staticSelector, classNames, styles });
67
+ return /* @__PURE__ */ React.createElement(Box, __spreadValues({
68
+ component: section === "header" ? "nav" : "footer",
69
+ className: cx(classes.root, className),
70
+ ref
71
+ }, others), children, /* @__PURE__ */ React.createElement(Global, {
72
+ styles: () => ({
73
+ ":root": {
74
+ [`--mantine-${section}-height`]: `${height}px`
75
+ }
76
+ })
77
+ }));
78
+ });
79
+ VerticalSection.displayName = "@mantine/core/VerticalSection";
80
+
81
+ export { VerticalSection };
82
+ //# sourceMappingURL=VerticalSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalSection.js","sources":["../../../../src/components/AppShell/VerticalSection/VerticalSection.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { DefaultProps, getDefaultZIndex, Global } from '@mantine/styles';\nimport { Box } from '../../Box';\nimport { useAppShellContext } from '../AppShell.context';\nimport useStyles, { VerticalSectionPosition } from './VerticalSection.styles';\n\nexport interface VerticalSectionSharedProps extends DefaultProps {\n /** Section content */\n children: React.ReactNode;\n\n /** Section height */\n height: number | string;\n\n /** Changes position to fixed, controlled by AppShell component if rendered inside */\n fixed?: boolean;\n\n /** Control top, left, right or bottom position values, controlled by AppShell component if rendered inside */\n position?: VerticalSectionPosition;\n\n /** z-index */\n zIndex?: number;\n}\n\ninterface VerticalSectionProps\n extends VerticalSectionSharedProps,\n Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {\n section: 'header' | 'footer';\n __staticSelector: string;\n}\n\nexport const VerticalSection = forwardRef<HTMLElement, VerticalSectionProps>(\n (\n {\n children,\n className,\n classNames,\n styles,\n height,\n fixed = false,\n position,\n zIndex = getDefaultZIndex('app'),\n section,\n __staticSelector,\n ...others\n }: VerticalSectionProps,\n ref\n ) => {\n const ctx = useAppShellContext();\n\n const { classes, cx } = useStyles(\n {\n height,\n fixed: ctx.fixed || fixed,\n position,\n zIndex: ctx.zIndex || zIndex,\n borderPosition: section === 'header' ? 'bottom' : 'top',\n },\n { name: __staticSelector, classNames, styles }\n );\n\n return (\n <Box\n component={section === 'header' ? 'nav' : 'footer'}\n className={cx(classes.root, className)}\n ref={ref}\n {...others}\n >\n {children}\n <Global\n styles={() => ({\n ':root': {\n [`--mantine-${section}-height`]: `${height}px`,\n },\n })}\n />\n </Box>\n );\n }\n);\n\nVerticalSection.displayName = '@mantine/core/VerticalSection';\n"],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,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,SAAS,CAAC;AACpC,IAAI,MAAM;AACV,IAAI,KAAK,EAAE,GAAG,CAAC,KAAK,IAAI,KAAK;AAC7B,IAAI,QAAQ;AACZ,IAAI,MAAM,EAAE,GAAG,CAAC,MAAM,IAAI,MAAM;AAChC,IAAI,cAAc,EAAE,OAAO,KAAK,QAAQ,GAAG,QAAQ,GAAG,KAAK;AAC3D,GAAG,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;AACrD,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,cAAc,CAAC;AACjE,IAAI,SAAS,EAAE,OAAO,KAAK,QAAQ,GAAG,KAAK,GAAG,QAAQ;AACtD,IAAI,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;AAC1C,IAAI,GAAG;AACP,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,kBAAkB,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE;AACpE,IAAI,MAAM,EAAE,OAAO;AACnB,MAAM,OAAO,EAAE;AACf,QAAQ,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;AACtD,OAAO;AACP,KAAK,CAAC;AACN,GAAG,CAAC,CAAC,CAAC;AACN,CAAC,EAAE;AACH,eAAe,CAAC,WAAW,GAAG,+BAA+B;;;;"}
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  return a;
20
20
  };
21
21
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
- var useStyles = createStyles((theme, { height, fixed, position, zIndex }) => ({
22
+ var useStyles = createStyles((theme, { height, fixed, position, zIndex, borderPosition }) => ({
23
23
  root: __spreadProps(__spreadValues(__spreadValues({}, theme.fn.fontStyles()), position), {
24
24
  zIndex,
25
25
  height,
@@ -27,9 +27,10 @@ var useStyles = createStyles((theme, { height, fixed, position, zIndex }) => ({
27
27
  position: fixed ? "fixed" : "static",
28
28
  boxSizing: "border-box",
29
29
  backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white,
30
- borderBottom: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[2]}`
30
+ borderBottom: borderPosition === "bottom" ? `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[2]}` : void 0,
31
+ borderTop: borderPosition === "top" ? `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[2]}` : void 0
31
32
  })
32
33
  }));
33
34
 
34
35
  export default useStyles;
35
- //# sourceMappingURL=Header.styles.js.map
36
+ //# sourceMappingURL=VerticalSection.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerticalSection.styles.js","sources":["../../../../src/components/AppShell/VerticalSection/VerticalSection.styles.ts"],"sourcesContent":["import { createStyles } from '@mantine/styles';\n\nexport interface VerticalSectionPosition {\n top?: number;\n left?: number;\n bottom?: number;\n right?: number;\n}\n\ninterface VerticalSectionStyles {\n height: number | string;\n fixed: boolean;\n position: VerticalSectionPosition;\n zIndex: number;\n borderPosition: 'top' | 'bottom';\n}\n\nexport default createStyles(\n (theme, { height, fixed, position, zIndex, borderPosition }: VerticalSectionStyles) => ({\n root: {\n ...theme.fn.fontStyles(),\n ...position,\n zIndex,\n height,\n maxHeight: height,\n position: fixed ? 'fixed' : 'static',\n boxSizing: 'border-box',\n backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[7] : theme.white,\n borderBottom:\n borderPosition === 'bottom'\n ? `1px solid ${\n theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[2]\n }`\n : undefined,\n borderTop:\n borderPosition === 'top'\n ? `1px solid ${\n theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[2]\n }`\n : undefined,\n },\n })\n);\n"],"names":[],"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- const _a = useMantineDefaultProps("AspectRatio", {}, props), { className, ratio, children } = _a, others = __objRest(_a, ["className", "ratio", "children"]);
36
- const { classes, cx } = useStyles({ ratio }, { name: "AspectRatio" });
35
+ const _a = useMantineDefaultProps("AspectRatio", {}, props), { className, ratio, children, classNames, styles } = _a, others = __objRest(_a, ["className", "ratio", "children", "classNames", "styles"]);
36
+ const { classes, cx } = useStyles({ ratio }, { name: "AspectRatio", classNames, styles });
37
37
  return /* @__PURE__ */ React.createElement(Box, __spreadValues({
38
38
  ref,
39
39
  className: cx(classes.root, className)
@@ -1 +1 @@
1
- {"version":3,"file":"AspectRatio.js","sources":["../../../src/components/AspectRatio/AspectRatio.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { DefaultProps, useMantineDefaultProps } from '@mantine/styles';\nimport { Box } from '../Box/Box';\nimport useStyles from './AspectRatio.styles';\n\nexport interface AspectRatioProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> {\n /** Aspect ratio, e.g. 16 / 9, 4 / 3, 1920 / 1080 */\n ratio: number;\n}\n\nexport const AspectRatio = forwardRef<HTMLDivElement, AspectRatioProps>(\n (props: AspectRatioProps, ref) => {\n const { className, ratio, children, ...others } = useMantineDefaultProps(\n 'AspectRatio',\n {},\n props\n );\n\n const { classes, cx } = useStyles({ ratio }, { name: 'AspectRatio' });\n\n return (\n <Box ref={ref} className={cx(classes.root, className)} {...others}>\n {children}\n </Box>\n );\n }\n);\n\nAspectRatio.displayName = '@mantine/core/AspectRatio';\n"],"names":[],"mappings":";;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE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AC,MAAM,CAAC,EAAE;AAClD,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC;AACtE,QAAQ,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;AACpC,KAAK;AACL,EAAE,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAKU,MAAC,WAAW,GAAG,UAAU,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK;AACtD,EAAE,MAAM,EAAE,GAAG,sBAAsB,CAAC,aAAa,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;AAC/J,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC;AACxE,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,cAAc,CAAC;AACjE,IAAI,GAAG;AACP,IAAI,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;AAC1C,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAC;AACxB,CAAC,EAAE;AACH,WAAW,CAAC,WAAW,GAAG,2BAA2B;;;;"}
1
+ {"version":3,"file":"AspectRatio.js","sources":["../../../src/components/AspectRatio/AspectRatio.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { DefaultProps, useMantineDefaultProps } from '@mantine/styles';\nimport { Box } from '../Box/Box';\nimport useStyles from './AspectRatio.styles';\n\nexport interface AspectRatioProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> {\n /** Aspect ratio, e.g. 16 / 9, 4 / 3, 1920 / 1080 */\n ratio: number;\n}\n\nexport const AspectRatio = forwardRef<HTMLDivElement, AspectRatioProps>(\n (props: AspectRatioProps, ref) => {\n const { className, ratio, children, classNames, styles, ...others } = useMantineDefaultProps(\n 'AspectRatio',\n {},\n props\n );\n\n const { classes, cx } = useStyles({ ratio }, { name: 'AspectRatio', classNames, styles });\n\n return (\n <Box ref={ref} className={cx(classes.root, className)} {...others}>\n {children}\n </Box>\n );\n }\n);\n\nAspectRatio.displayName = '@mantine/core/AspectRatio';\n"],"names":[],"mappings":";;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,IAAI,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AAC/B,EAAE,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAChC,IAAI,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC;AAClC,MAAM,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACxC,EAAE,IAAI,mBAAmB;AACzB,IAAI,KAAK,IAAI,IAAI,IAAI,mBAAmB,CAAC,CAAC,CAAC,EAAE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YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC3M,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;AAC5F,EAAE,uBAAuB,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,cAAc,CAAC;AACjE,IAAI,GAAG;AACP,IAAI,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;AAC1C,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAC;AACxB,CAAC,EAAE;AACH,WAAW,CAAC,WAAW,GAAG,2BAA2B;;;;"}
@@ -40,7 +40,7 @@ const Center = forwardRef((props, ref) => {
40
40
  alignItems: "center",
41
41
  justifyContent: "center"
42
42
  },
43
- sx
43
+ ...Array.isArray(sx) ? sx : [sx]
44
44
  ]
45
45
  }, others));
46
46
  });