@soroush.tech/design-system 1.3.3 → 2.0.0-alpha.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 (226) hide show
  1. package/README.md +45 -10
  2. package/dist/AppBar.cjs +4 -0
  3. package/dist/AppBar.d.cts +3 -3
  4. package/dist/AppBar.d.mts +3 -3
  5. package/dist/AppBar.mjs +4 -0
  6. package/dist/Avatar.cjs +1 -1
  7. package/dist/Avatar.d.cts +3 -3
  8. package/dist/Avatar.d.mts +3 -3
  9. package/dist/Avatar.mjs +1 -1
  10. package/dist/Backdrop.d.cts +1 -1
  11. package/dist/Backdrop.d.mts +1 -1
  12. package/dist/Button.cjs +1 -1
  13. package/dist/Button.d.cts +1 -1
  14. package/dist/Button.d.mts +1 -1
  15. package/dist/Button.mjs +1 -1
  16. package/dist/ButtonGroup.d.cts +1 -1
  17. package/dist/ButtonGroup.d.mts +1 -1
  18. package/dist/Card.cjs +2 -2
  19. package/dist/Card.d.cts +3 -3
  20. package/dist/Card.d.mts +3 -3
  21. package/dist/Card.mjs +2 -2
  22. package/dist/Checkbox.d.cts +2 -2
  23. package/dist/Checkbox.d.mts +2 -2
  24. package/dist/CircularProgress.d.cts +3 -3
  25. package/dist/CircularProgress.d.mts +3 -3
  26. package/dist/Drawer.d.cts +2 -2
  27. package/dist/Drawer.d.mts +2 -2
  28. package/dist/Flex.d.cts +1 -1
  29. package/dist/Flex.d.mts +1 -1
  30. package/dist/Form.d.cts +1 -1
  31. package/dist/Form.d.mts +1 -1
  32. package/dist/FormControl.cjs +1 -1
  33. package/dist/FormControl.d.cts +2 -2
  34. package/dist/FormControl.d.mts +2 -2
  35. package/dist/FormControl.mjs +1 -1
  36. package/dist/FormHelperText.d.cts +1 -1
  37. package/dist/FormHelperText.d.mts +1 -1
  38. package/dist/FormLabel.d.cts +1 -1
  39. package/dist/FormLabel.d.mts +1 -1
  40. package/dist/Grid.d.cts +1 -15
  41. package/dist/Grid.d.mts +1 -15
  42. package/dist/{Icon-BAMpe9SO.cjs → Icon-CKLBJ7CC.cjs} +1 -1
  43. package/dist/{Icon-gSiGgU13.mjs → Icon-CkQGOBmm.mjs} +1 -1
  44. package/dist/Icon.cjs +1 -1
  45. package/dist/Icon.d.cts +1 -1
  46. package/dist/Icon.d.mts +1 -1
  47. package/dist/Icon.mjs +1 -1
  48. package/dist/Image.d.cts +2 -2
  49. package/dist/Image.d.mts +2 -2
  50. package/dist/LinearProgress.d.cts +3 -3
  51. package/dist/LinearProgress.d.mts +3 -3
  52. package/dist/Link.cjs +1 -1
  53. package/dist/Link.d.cts +1 -1
  54. package/dist/Link.d.mts +1 -1
  55. package/dist/Link.mjs +1 -1
  56. package/dist/MenuItem.cjs +2 -2
  57. package/dist/MenuItem.d.cts +2 -2
  58. package/dist/MenuItem.d.mts +2 -2
  59. package/dist/MenuItem.mjs +2 -2
  60. package/dist/Modal.d.cts +1 -1
  61. package/dist/Modal.d.mts +1 -1
  62. package/dist/NativeSelect.cjs +2 -2
  63. package/dist/NativeSelect.d.cts +3 -3
  64. package/dist/NativeSelect.d.mts +3 -3
  65. package/dist/NativeSelect.mjs +2 -2
  66. package/dist/PageLayout/LayoutGrid.cjs +21 -0
  67. package/dist/PageLayout/LayoutGrid.d.cts +22 -0
  68. package/dist/PageLayout/LayoutGrid.d.mts +22 -0
  69. package/dist/PageLayout/LayoutGrid.mjs +20 -0
  70. package/dist/PageLayout/PageLayout.cjs +148 -0
  71. package/dist/PageLayout/PageLayout.d.cts +31 -0
  72. package/dist/PageLayout/PageLayout.d.mts +31 -0
  73. package/dist/PageLayout/PageLayout.mjs +147 -0
  74. package/dist/PageLayout.cjs +7 -0
  75. package/dist/PageLayout.d.cts +19 -0
  76. package/dist/PageLayout.d.mts +19 -0
  77. package/dist/PageLayout.mjs +4 -0
  78. package/dist/PageLayoutContext-DjJ1_7Xc.mjs +5 -0
  79. package/dist/PageLayoutContext-agXGhegE.cjs +9 -0
  80. package/dist/Pagination/PaginationItem.cjs +1 -1
  81. package/dist/Pagination/PaginationItem.d.cts +1 -1
  82. package/dist/Pagination/PaginationItem.d.mts +1 -1
  83. package/dist/Pagination/PaginationItem.mjs +1 -1
  84. package/dist/Pagination.d.cts +2 -2
  85. package/dist/Pagination.d.mts +2 -2
  86. package/dist/Paper.cjs +1 -1
  87. package/dist/Paper.d.cts +1 -1
  88. package/dist/Paper.d.mts +1 -1
  89. package/dist/Paper.mjs +1 -1
  90. package/dist/{Popover-Bq31OTEl.mjs → Popover-DWOrf7sy.mjs} +1 -1
  91. package/dist/{Popover-gg44qzwo.cjs → Popover-Dz6h3A_9.cjs} +1 -1
  92. package/dist/Popover.cjs +1 -1
  93. package/dist/Popover.d.cts +4 -4
  94. package/dist/Popover.d.mts +4 -4
  95. package/dist/Popover.mjs +1 -1
  96. package/dist/Pressable.cjs +1 -1
  97. package/dist/Pressable.d.cts +1 -1
  98. package/dist/Pressable.d.mts +1 -1
  99. package/dist/Pressable.mjs +1 -1
  100. package/dist/Quote.d.cts +3 -3
  101. package/dist/Quote.d.mts +3 -3
  102. package/dist/Radio.d.cts +2 -2
  103. package/dist/Radio.d.mts +2 -2
  104. package/dist/Select.cjs +3 -3
  105. package/dist/Select.d.cts +3 -3
  106. package/dist/Select.d.mts +3 -3
  107. package/dist/Select.mjs +3 -3
  108. package/dist/Sidebar/Sidebar.cjs +25 -6
  109. package/dist/Sidebar/Sidebar.d.cts +5 -2
  110. package/dist/Sidebar/Sidebar.d.mts +5 -2
  111. package/dist/Sidebar/Sidebar.mjs +26 -7
  112. package/dist/Sidebar/SidebarItem.cjs +2 -1
  113. package/dist/Sidebar/SidebarItem.d.cts +4 -4
  114. package/dist/Sidebar/SidebarItem.d.mts +4 -4
  115. package/dist/Sidebar/SidebarItem.mjs +2 -1
  116. package/dist/Skeleton.d.cts +2 -2
  117. package/dist/Skeleton.d.mts +2 -2
  118. package/dist/Switch.cjs +1 -1
  119. package/dist/Switch.d.cts +2 -2
  120. package/dist/Switch.d.mts +2 -2
  121. package/dist/Switch.mjs +1 -1
  122. package/dist/Table/Table.d.cts +3 -3
  123. package/dist/Table/Table.d.mts +3 -3
  124. package/dist/Table/TableBody.d.cts +2 -2
  125. package/dist/Table/TableBody.d.mts +2 -2
  126. package/dist/Table/TableCell.d.cts +1 -1
  127. package/dist/Table/TableCell.d.mts +1 -1
  128. package/dist/Table/TableContainer.d.cts +3 -3
  129. package/dist/Table/TableContainer.d.mts +3 -3
  130. package/dist/Table/TableControl.d.cts +1 -1
  131. package/dist/Table/TableControl.d.mts +1 -1
  132. package/dist/Table/TableFooter.d.cts +2 -2
  133. package/dist/Table/TableFooter.d.mts +2 -2
  134. package/dist/Table/TableHead.d.cts +2 -2
  135. package/dist/Table/TableHead.d.mts +2 -2
  136. package/dist/Table/TablePagination.d.cts +2 -2
  137. package/dist/Table/TablePagination.d.mts +2 -2
  138. package/dist/Table/TablePaginationActions.cjs +1 -1
  139. package/dist/Table/TablePaginationActions.d.cts +1 -1
  140. package/dist/Table/TablePaginationActions.d.mts +1 -1
  141. package/dist/Table/TablePaginationActions.mjs +1 -1
  142. package/dist/Table/TableRow.d.cts +2 -2
  143. package/dist/Table/TableRow.d.mts +2 -2
  144. package/dist/Table/TableSortLabel.cjs +1 -1
  145. package/dist/Table/TableSortLabel.d.cts +1 -1
  146. package/dist/Table/TableSortLabel.d.mts +1 -1
  147. package/dist/Table/TableSortLabel.mjs +1 -1
  148. package/dist/Table/hooks.d.cts +1 -1
  149. package/dist/Table/hooks.d.mts +1 -1
  150. package/dist/Table.d.cts +5 -5
  151. package/dist/Table.d.mts +5 -5
  152. package/dist/{TableContext-BrIREKe7.d.mts → TableContext-DBOk01Xl.d.mts} +1 -1
  153. package/dist/{TableContext-DXzUQ4-a.d.cts → TableContext-DRAhXvq3.d.cts} +1 -1
  154. package/dist/TextInput.cjs +1 -1
  155. package/dist/TextInput.d.cts +2 -2
  156. package/dist/TextInput.d.mts +2 -2
  157. package/dist/TextInput.mjs +1 -1
  158. package/dist/ToggleButton/ToggleButton.cjs +1 -1
  159. package/dist/ToggleButton/ToggleButton.d.cts +1 -1
  160. package/dist/ToggleButton/ToggleButton.d.mts +1 -1
  161. package/dist/ToggleButton/ToggleButton.mjs +1 -1
  162. package/dist/ToggleButton/ToggleButtonGroup.cjs +1 -1
  163. package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
  164. package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
  165. package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
  166. package/dist/Typography.cjs +1 -1
  167. package/dist/Typography.d.cts +2 -2
  168. package/dist/Typography.d.mts +2 -2
  169. package/dist/Typography.mjs +1 -1
  170. package/dist/View.d.cts +1 -1
  171. package/dist/View.d.mts +1 -1
  172. package/dist/engine.d.cts +1 -1
  173. package/dist/engine.d.mts +1 -1
  174. package/dist/{index-COYxtrc0.d.mts → index-8mHoIUt5.d.mts} +2 -2
  175. package/dist/{index-DOLA1VFD.d.cts → index-B41OXLX8.d.mts} +3 -3
  176. package/dist/{index-BoIi-XoB.d.mts → index-B6vxRNLt.d.cts} +4 -4
  177. package/dist/{index-CTVFwvju.d.mts → index-B8KscJic.d.cts} +2 -2
  178. package/dist/{index-D3iQQ0L3.d.cts → index-BDD-L8uL.d.cts} +1 -1
  179. package/dist/{index-Cf7w9Lod.d.cts → index-BGD4OzzG.d.cts} +3 -3
  180. package/dist/index-BJ5Tsf7u.d.cts +16 -0
  181. package/dist/{index-KZKeZDAF.d.mts → index-BMJ3tyIw.d.cts} +3 -3
  182. package/dist/{index-C5-ZM7lt.d.cts → index-BNpkmtaM.d.mts} +4 -4
  183. package/dist/{index-BCvkP5R1.d.mts → index-BSR9zrAA.d.mts} +3 -3
  184. package/dist/index-BnFxdnEL.d.mts +16 -0
  185. package/dist/{index-DhMAwR96.d.mts → index-CCrocxBL.d.cts} +4 -4
  186. package/dist/{index-v_otepCe.d.mts → index-CEqa8xx8.d.mts} +1 -1
  187. package/dist/{index-d6gR2x8j.d.cts → index-CLttbRhG.d.cts} +2 -2
  188. package/dist/{index-CHRAYSwH.d.cts → index-CVb5zbas.d.mts} +4 -4
  189. package/dist/{index-XZDPGJ_h.d.mts → index-Cjlax0-f.d.mts} +2 -2
  190. package/dist/{index-NBVilQuP.d.mts → index-CoHrw2p7.d.mts} +1 -1
  191. package/dist/{index-h36rcOy8.d.mts → index-CohgpyUj.d.cts} +4 -4
  192. package/dist/{index-DzuXwDCW.d.cts → index-CtrxW81j.d.cts} +2 -2
  193. package/dist/{index-DQ16ijxx.d.mts → index-CvWslVk6.d.cts} +3 -3
  194. package/dist/{index-DdBeSvit.d.mts → index-CzmA09Yf.d.mts} +2 -2
  195. package/dist/{index-C-2VKPcp.d.mts → index-D4i9vrQM.d.mts} +2 -2
  196. package/dist/{index-vuPAf55D.d.cts → index-DNNg9RoR.d.cts} +3 -3
  197. package/dist/{index-76XH-GEc.d.mts → index-DPHwCZYf.d.cts} +2 -2
  198. package/dist/{index-jmy5eXpx.d.cts → index-DkJzi96w.d.cts} +1 -1
  199. package/dist/{index-Br2gDSme.d.cts → index-DsKd9VW5.d.mts} +4 -4
  200. package/dist/{index-Csp1Wzbz.d.cts → index-DuefjNlC.d.mts} +3 -3
  201. package/dist/{index-D9CwTcnr.d.cts → index-EYR0z1Qv.d.cts} +2 -2
  202. package/dist/{index-ggLhNdZV.d.mts → index-IEvuh6Cd.d.mts} +3 -3
  203. package/dist/{index-Oxx0z4dS.d.cts → index-S3NZS-Qp.d.cts} +2 -2
  204. package/dist/{index-BWECJgSb.d.mts → index-bN91IhZi.d.cts} +3 -3
  205. package/dist/{index-D-QRCHiS.d.cts → index-qtKJ56yu.d.mts} +2 -2
  206. package/dist/{index-DCu7qjpa.d.cts → index-r2avCy1z.d.mts} +2 -2
  207. package/dist/{index-Btmdtbpb.d.cts → index-tv-TGYSG.d.mts} +3 -3
  208. package/dist/index.d.cts +2 -2
  209. package/dist/index.d.mts +2 -2
  210. package/dist/layoutStyles-B4Z1K6HZ.cjs +67 -0
  211. package/dist/layoutStyles-f0ISNjsC.mjs +56 -0
  212. package/dist/style.cjs +1 -1
  213. package/dist/style.d.cts +2 -2
  214. package/dist/style.d.mts +2 -2
  215. package/dist/style.mjs +1 -1
  216. package/dist/{theme-BuqqFbsz.mjs → theme-BQGlZoma.mjs} +49 -1
  217. package/dist/{theme-Bnc03K83.cjs → theme-BmEAXmwh.cjs} +60 -0
  218. package/dist/theme.cjs +3 -1
  219. package/dist/theme.d.cts +3 -3
  220. package/dist/theme.d.mts +3 -3
  221. package/dist/theme.mjs +2 -2
  222. package/dist/{themes-kbuYiwCi.d.cts → themes-9YNnlVyY.d.cts} +70 -1
  223. package/dist/{themes-kbuYiwCi.d.mts → themes-9YNnlVyY.d.mts} +70 -1
  224. package/dist/{useTablePagination-BpMOVLsR.d.cts → useTablePagination-CLoac5oX.d.cts} +1 -1
  225. package/dist/{useTablePagination-DebYZ6vN.d.mts → useTablePagination-RelVsdMR.d.mts} +1 -1
  226. package/package.json +14 -4
package/dist/Link.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { o as styled } from "./src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "./theme-BuqqFbsz.mjs";
3
+ import { r as useTheme } from "./theme-BQGlZoma.mjs";
4
4
  import { Typography } from "./Typography.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
package/dist/MenuItem.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
4
- const require_theme = require("./theme-Bnc03K83.cjs");
5
- const require_Icon = require("./Icon-BAMpe9SO.cjs");
4
+ const require_theme = require("./theme-BmEAXmwh.cjs");
5
+ const require_Icon = require("./Icon-CKLBJ7CC.cjs");
6
6
  let react = require("react");
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  //#region src/MenuItem/MenuItem.tsx
@@ -1,5 +1,5 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
1
+ import { S as Theme } from "./themes-9YNnlVyY.cjs";
2
+ import "./index-DkJzi96w.cjs";
3
3
  import { ElementType, ReactNode } from "react";
4
4
  //#region src/MenuItem/MenuItem.d.ts
5
5
  type MenuItemColor = keyof Theme['palette'];
@@ -1,5 +1,5 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.mjs";
2
- import "./index-v_otepCe.mjs";
1
+ import { S as Theme } from "./themes-9YNnlVyY.mjs";
2
+ import "./index-CEqa8xx8.mjs";
3
3
  import { ElementType, ReactNode } from "react";
4
4
  //#region src/MenuItem/MenuItem.d.ts
5
5
  type MenuItemColor = keyof Theme['palette'];
package/dist/MenuItem.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as src_exports, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "./theme-BuqqFbsz.mjs";
4
- import { t as Icon } from "./Icon-gSiGgU13.mjs";
3
+ import { r as useTheme } from "./theme-BQGlZoma.mjs";
4
+ import { t as Icon } from "./Icon-CkQGOBmm.mjs";
5
5
  import { useEffect, useRef, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/MenuItem/MenuItem.tsx
package/dist/Modal.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-D-QRCHiS.cjs";
1
+ import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-B8KscJic.cjs";
2
2
  export { ManagedModal, ManagedModalProps, Modal, ModalCloseReason, ModalManager, ModalProps, ModalScroll, UseModalParameters, UseModalReturnValue, exposeToAria, hideFromAria, useModal };
package/dist/Modal.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-CTVFwvju.mjs";
1
+ import { a as hideFromAria, c as ModalScroll, d as UseModalReturnValue, f as useModal, i as exposeToAria, l as ModalCloseReason, n as ManagedModalProps, o as Modal, r as ModalManager, s as ModalProps, t as ManagedModal, u as UseModalParameters } from "./index-qtKJ56yu.mjs";
2
2
  export { ManagedModal, ManagedModalProps, Modal, ModalCloseReason, ModalManager, ModalProps, ModalScroll, UseModalParameters, UseModalReturnValue, exposeToAria, hideFromAria, useModal };
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_src = require("./src-DU81aGy9.cjs");
3
3
  const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
4
- const require_theme = require("./theme-Bnc03K83.cjs");
5
- const require_Icon = require("./Icon-BAMpe9SO.cjs");
4
+ const require_theme = require("./theme-BmEAXmwh.cjs");
5
+ const require_Icon = require("./Icon-CKLBJ7CC.cjs");
6
6
  const require_FormControl = require("./FormControl.cjs");
7
7
  const require_inputVariantStyles = require("./inputVariantStyles-BBkkYQtE.cjs");
8
8
  require("react");
@@ -1,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.cjs";
2
- import "./index-jmy5eXpx.cjs";
3
- import { n as IconProps, r as IconName } from "./index-DCu7qjpa.cjs";
1
+ import { S as Theme } from "./themes-9YNnlVyY.cjs";
2
+ import "./index-DkJzi96w.cjs";
3
+ import { n as IconProps, r as IconName } from "./index-DPHwCZYf.cjs";
4
4
  import { SelectHTMLAttributes } from "react";
5
5
  import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
6
6
  //#region src/NativeSelect/NativeSelect.d.ts
@@ -1,6 +1,6 @@
1
- import { h as Theme } from "./themes-kbuYiwCi.mjs";
2
- import "./index-v_otepCe.mjs";
3
- import { n as IconProps, r as IconName } from "./index-76XH-GEc.mjs";
1
+ import { S as Theme } from "./themes-9YNnlVyY.mjs";
2
+ import "./index-CEqa8xx8.mjs";
3
+ import { n as IconProps, r as IconName } from "./index-r2avCy1z.mjs";
4
4
  import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
5
5
  import { SelectHTMLAttributes } from "react";
6
6
  //#region src/NativeSelect/NativeSelect.d.ts
@@ -1,7 +1,7 @@
1
1
  import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
2
2
  import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
3
- import { r as useTheme } from "./theme-BuqqFbsz.mjs";
4
- import { t as Icon } from "./Icon-gSiGgU13.mjs";
3
+ import { r as useTheme } from "./theme-BQGlZoma.mjs";
4
+ import { t as Icon } from "./Icon-CkQGOBmm.mjs";
5
5
  import { useFormControl } from "./FormControl.mjs";
6
6
  import { t as inputVariantStyles } from "./inputVariantStyles-CcqpGfuP.mjs";
7
7
  import "react";
@@ -0,0 +1,21 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_src = require("../src-DU81aGy9.cjs");
3
+ const require_Grid = require("../Grid.cjs");
4
+ const require_layoutStyles = require("../layoutStyles-B4Z1K6HZ.cjs");
5
+ //#region src/PageLayout/LayoutGrid/LayoutGrid.tsx
6
+ /**
7
+ * A `Grid` on the theme's content columns: each breakpoint's
8
+ * `theme.layout.*.content.columns` equal tracks, its `gutter` between them.
9
+ * Place items with `gridColumn` (`'span 4'`, `'1 / -1'`, ...). `grid` and
10
+ * `space` come last, so a `gridTemplateColumns` or `gap` prop still wins.
11
+ */
12
+ const LayoutGrid = require_src.styled(require_Grid.Grid, {
13
+ name: "LayoutGrid",
14
+ label: "LayoutGrid",
15
+ systemProps: [require_src.src_exports.grid, require_src.src_exports.space]
16
+ })(({ theme }) => require_layoutStyles.layoutStyles(theme, ({ content: { columns, gutter } }) => ({
17
+ gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`,
18
+ columnGap: require_layoutStyles.layoutLength(theme, gutter)
19
+ })));
20
+ //#endregion
21
+ exports.LayoutGrid = LayoutGrid;
@@ -0,0 +1,22 @@
1
+ import { S as Theme } from "../themes-9YNnlVyY.cjs";
2
+ import "../index-DkJzi96w.cjs";
3
+ import { s as ViewProps } from "../index-CvWslVk6.cjs";
4
+ import { r as GridProps } from "../index-BJ5Tsf7u.cjs";
5
+ //#region src/PageLayout/LayoutGrid/LayoutGrid.d.ts
6
+ type LayoutGridProps = GridProps;
7
+ /**
8
+ * A `Grid` on the theme's content columns: each breakpoint's
9
+ * `theme.layout.*.content.columns` equal tracks, its `gutter` between them.
10
+ * Place items with `gridColumn` (`'span 4'`, `'1 / -1'`, ...). `grid` and
11
+ * `space` come last, so a `gridTemplateColumns` or `gap` prop still wins.
12
+ */
13
+ declare const LayoutGrid: import("@emotion/styled").StyledComponent<Pick<{
14
+ theme?: Theme;
15
+ as?: React.ElementType;
16
+ } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
17
+ theme?: Theme;
18
+ } & GridProps, "about" | "accessKey" | "alignContent" | "alignItems" | "alignSelf" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "as" | "aspectRatio" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "autoSave" | "bg" | "border" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderColor" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "borderX" | "borderY" | "bottom" | "children" | "className" | "color" | "columnGap" | "content" | "contentEditable" | "contextMenu" | "cursor" | "dangerouslySetInnerHTML" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "display" | "draggable" | "enterKeyHint" | "exportparts" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnGap" | "gridGap" | "gridRow" | "gridRowGap" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "justifyContent" | "justifyItems" | "justifySelf" | "key" | "lang" | "left" | "letterSpacing" | "lineHeight" | "m" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "marginX" | "marginY" | "maxHeight" | "maxWidth" | "mb" | "minHeight" | "minWidth" | "ml" | "mr" | "mt" | "mx" | "my" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "opacity" | "order" | "overflow" | "overflowX" | "overflowY" | "p" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingX" | "paddingY" | "part" | "pb" | "pl" | "popover" | "popoverTarget" | "popoverTargetAction" | "position" | "pr" | "prefix" | "property" | "pt" | "px" | "py" | "radioGroup" | "ref" | "rel" | "resource" | "results" | "rev" | "right" | "role" | "rowGap" | "security" | "size" | "slot" | "spellCheck" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "textAlign" | "textAlignLast" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationStyle" | "textDecorationThickness" | "textOverflow" | "textTransform" | "theme" | "title" | "top" | "translate" | "typeof" | "unselectable" | "verticalAlign" | "vocab" | "whiteSpace" | "width" | "zIndex"> & {
19
+ theme?: Theme;
20
+ } & GridProps, {}, {}>;
21
+ //#endregion
22
+ export { LayoutGrid, LayoutGridProps };
@@ -0,0 +1,22 @@
1
+ import { S as Theme } from "../themes-9YNnlVyY.mjs";
2
+ import "../index-CEqa8xx8.mjs";
3
+ import { s as ViewProps } from "../index-tv-TGYSG.mjs";
4
+ import { r as GridProps } from "../index-BnFxdnEL.mjs";
5
+ //#region src/PageLayout/LayoutGrid/LayoutGrid.d.ts
6
+ type LayoutGridProps = GridProps;
7
+ /**
8
+ * A `Grid` on the theme's content columns: each breakpoint's
9
+ * `theme.layout.*.content.columns` equal tracks, its `gutter` between them.
10
+ * Place items with `gridColumn` (`'span 4'`, `'1 / -1'`, ...). `grid` and
11
+ * `space` come last, so a `gridTemplateColumns` or `gap` prop still wins.
12
+ */
13
+ declare const LayoutGrid: import("@emotion/styled").StyledComponent<Pick<{
14
+ theme?: Theme;
15
+ as?: React.ElementType;
16
+ } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
17
+ theme?: Theme;
18
+ } & GridProps, "about" | "accessKey" | "alignContent" | "alignItems" | "alignSelf" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "as" | "aspectRatio" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "autoSave" | "bg" | "border" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderColor" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "borderX" | "borderY" | "bottom" | "children" | "className" | "color" | "columnGap" | "content" | "contentEditable" | "contextMenu" | "cursor" | "dangerouslySetInnerHTML" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "display" | "draggable" | "enterKeyHint" | "exportparts" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnGap" | "gridGap" | "gridRow" | "gridRowGap" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "hidden" | "id" | "inert" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "justifyContent" | "justifyItems" | "justifySelf" | "key" | "lang" | "left" | "letterSpacing" | "lineHeight" | "m" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "marginX" | "marginY" | "maxHeight" | "maxWidth" | "mb" | "minHeight" | "minWidth" | "ml" | "mr" | "mt" | "mx" | "my" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "opacity" | "order" | "overflow" | "overflowX" | "overflowY" | "p" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingX" | "paddingY" | "part" | "pb" | "pl" | "popover" | "popoverTarget" | "popoverTargetAction" | "position" | "pr" | "prefix" | "property" | "pt" | "px" | "py" | "radioGroup" | "ref" | "rel" | "resource" | "results" | "rev" | "right" | "role" | "rowGap" | "security" | "size" | "slot" | "spellCheck" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "textAlign" | "textAlignLast" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationStyle" | "textDecorationThickness" | "textOverflow" | "textTransform" | "theme" | "title" | "top" | "translate" | "typeof" | "unselectable" | "verticalAlign" | "vocab" | "whiteSpace" | "width" | "zIndex"> & {
19
+ theme?: Theme;
20
+ } & GridProps, {}, {}>;
21
+ //#endregion
22
+ export { LayoutGrid, LayoutGridProps };
@@ -0,0 +1,20 @@
1
+ import { a as src_exports, o as styled } from "../src-DLGYOJMh.mjs";
2
+ import { Grid } from "../Grid.mjs";
3
+ import { n as layoutStyles, t as layoutLength } from "../layoutStyles-f0ISNjsC.mjs";
4
+ //#region src/PageLayout/LayoutGrid/LayoutGrid.tsx
5
+ /**
6
+ * A `Grid` on the theme's content columns: each breakpoint's
7
+ * `theme.layout.*.content.columns` equal tracks, its `gutter` between them.
8
+ * Place items with `gridColumn` (`'span 4'`, `'1 / -1'`, ...). `grid` and
9
+ * `space` come last, so a `gridTemplateColumns` or `gap` prop still wins.
10
+ */
11
+ const LayoutGrid = styled(Grid, {
12
+ name: "LayoutGrid",
13
+ label: "LayoutGrid",
14
+ systemProps: [src_exports.grid, src_exports.space]
15
+ })(({ theme }) => layoutStyles(theme, ({ content: { columns, gutter } }) => ({
16
+ gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`,
17
+ columnGap: layoutLength(theme, gutter)
18
+ })));
19
+ //#endregion
20
+ export { LayoutGrid };
@@ -0,0 +1,148 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_src = require("../src-DU81aGy9.cjs");
3
+ const require_View = require("../View.cjs");
4
+ const require_PageLayoutContext = require("../PageLayoutContext-agXGhegE.cjs");
5
+ const require_Grid = require("../Grid.cjs");
6
+ const require_layoutStyles = require("../layoutStyles-B4Z1K6HZ.cjs");
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+ //#region src/PageLayout/PageLayout/PageLayout.tsx
9
+ const regionContext = {
10
+ top: {
11
+ region: "bar",
12
+ placement: "top"
13
+ },
14
+ bottom: {
15
+ region: "bar",
16
+ placement: "bottom"
17
+ },
18
+ start: {
19
+ region: "panel",
20
+ side: "start"
21
+ },
22
+ end: {
23
+ region: "panel",
24
+ side: "end"
25
+ }
26
+ };
27
+ const inRegion = (key, node) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_PageLayoutContext.PageLayoutContext.Provider, {
28
+ value: regionContext[key],
29
+ children: node
30
+ });
31
+ const panelTrack = (theme, panel) => {
32
+ if (panel?.mode === "inline") return require_layoutStyles.layoutLength(theme, panel.width);
33
+ if (panel?.mode === "collapsed") return require_layoutStyles.layoutLength(theme, panel.railWidth);
34
+ return "0px";
35
+ };
36
+ const PageLayoutRoot = require_src.styled(require_Grid.Grid, {
37
+ name: "PageLayout",
38
+ label: "PageLayout",
39
+ shouldForwardProp: (prop) => prop !== "regions",
40
+ systemProps: [require_src.src_exports.layout]
41
+ })({
42
+ position: "relative",
43
+ minHeight: "100dvh",
44
+ gridTemplateAreas: "\"top top top\" \"start content end\" \"bottom bottom bottom\""
45
+ }, ({ theme, regions }) => require_layoutStyles.layoutStyles(theme, ({ bars, panels }) => {
46
+ const track = (side) => regions[side] ? panelTrack(theme, panels[side]) : "0px";
47
+ const row = (placement) => regions[placement] ? require_layoutStyles.layoutLength(theme, bars[placement]) : "0px";
48
+ return {
49
+ gridTemplateColumns: `${track("start")} minmax(0, 1fr) ${track("end")}`,
50
+ gridTemplateRows: `${row("top")} minmax(0, 1fr) ${row("bottom")}`
51
+ };
52
+ }));
53
+ const PageLayoutBar = require_src.styled(require_View.View, {
54
+ name: "PageLayout",
55
+ slot: "bar",
56
+ label: "PageLayoutBar",
57
+ shouldForwardProp: (prop) => prop !== "placement"
58
+ })(({ theme, placement }) => ({
59
+ gridArea: placement,
60
+ minWidth: 0,
61
+ ...require_layoutStyles.layoutStyles(theme, ({ bars }) => ({ display: require_layoutStyles.layoutLength(theme, bars[placement]) === "0px" ? "none" : "block" }))
62
+ }));
63
+ const panelStyle = (theme, side, isOpen, panel) => {
64
+ if (panel?.mode === "overlay") return {
65
+ display: isOpen ? "block" : "none",
66
+ position: "absolute",
67
+ insetBlock: 0,
68
+ [side === "start" ? "insetInlineStart" : "insetInlineEnd"]: 0,
69
+ width: require_layoutStyles.layoutLength(theme, panel.width),
70
+ zIndex: theme.zOrder.drawer
71
+ };
72
+ return {
73
+ display: !panel || panel.mode === "hidden" ? "none" : "block",
74
+ position: "static",
75
+ width: "auto",
76
+ zIndex: "auto"
77
+ };
78
+ };
79
+ const PageLayoutPanel = require_src.styled(require_View.View, {
80
+ name: "PageLayout",
81
+ slot: "panel",
82
+ label: "PageLayoutPanel",
83
+ shouldForwardProp: (prop) => prop !== "side" && prop !== "isOpen"
84
+ })(({ theme, side, isOpen }) => ({
85
+ gridArea: side,
86
+ minWidth: 0,
87
+ overflow: "auto",
88
+ ...require_layoutStyles.layoutStyles(theme, ({ panels }) => panelStyle(theme, side, isOpen, panels[side]))
89
+ }));
90
+ const PageLayoutContent = require_src.styled(require_View.View, {
91
+ name: "PageLayout",
92
+ slot: "content",
93
+ label: "PageLayoutContent"
94
+ })(({ theme }) => ({
95
+ gridArea: "content",
96
+ minWidth: 0,
97
+ width: "100%",
98
+ ...require_layoutStyles.layoutStyles(theme, ({ content: { margin, mode, maxWidth } }) => {
99
+ const isFixed = mode === "fixed";
100
+ return {
101
+ paddingInline: require_layoutStyles.layoutLength(theme, margin),
102
+ maxWidth: isFixed && maxWidth !== void 0 ? require_layoutStyles.layoutLength(theme, maxWidth) : "none",
103
+ marginInline: isFixed ? "auto" : 0
104
+ };
105
+ })
106
+ }));
107
+ /**
108
+ * The page frame from `theme.layout`: bars on top and bottom, side panels at the
109
+ * start and end, and the content container between them, each breakpoint
110
+ * arranged by its layout entry in CSS alone (no JavaScript media queries, so
111
+ * server rendering matches the client). Lay the content out on the theme's
112
+ * columns with `LayoutGrid`.
113
+ */
114
+ function PageLayout({ children, topBar, bottomBar, startPanel, endPanel, openPanels = {}, ...rest }) {
115
+ const regions = {
116
+ top: topBar != null,
117
+ bottom: bottomBar != null,
118
+ start: startPanel != null,
119
+ end: endPanel != null
120
+ };
121
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(PageLayoutRoot, {
122
+ regions,
123
+ ...rest,
124
+ children: [
125
+ regions.top && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PageLayoutBar, {
126
+ placement: "top",
127
+ children: inRegion("top", topBar)
128
+ }),
129
+ regions.start && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PageLayoutPanel, {
130
+ side: "start",
131
+ isOpen: !!openPanels.start,
132
+ children: inRegion("start", startPanel)
133
+ }),
134
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PageLayoutContent, { children }),
135
+ regions.end && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PageLayoutPanel, {
136
+ side: "end",
137
+ isOpen: !!openPanels.end,
138
+ children: inRegion("end", endPanel)
139
+ }),
140
+ regions.bottom && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PageLayoutBar, {
141
+ placement: "bottom",
142
+ children: inRegion("bottom", bottomBar)
143
+ })
144
+ ]
145
+ });
146
+ }
147
+ //#endregion
148
+ exports.PageLayout = PageLayout;
@@ -0,0 +1,31 @@
1
+ import { h as LayoutPanels } from "../themes-9YNnlVyY.cjs";
2
+ import { r as GridProps } from "../index-BJ5Tsf7u.cjs";
3
+ import "../index-BDD-L8uL.cjs";
4
+ import { ReactNode } from "react";
5
+ //#region src/PageLayout/PageLayout/PageLayout.d.ts
6
+ type PageLayoutPanelSide = keyof LayoutPanels;
7
+ type PageLayoutBarPlacement = 'top' | 'bottom';
8
+ interface PageLayoutProps extends GridProps {
9
+ /** The page content, in the theme's content container (fluid or fixed per breakpoint). */
10
+ children: ReactNode;
11
+ /** The top bar - its height per breakpoint is `theme.layout.*.bars.top`; absent where unset or `0`. */
12
+ topBar?: ReactNode;
13
+ /** The bottom bar - its height per breakpoint is `theme.layout.*.bars.bottom`; absent where unset or `0`. */
14
+ bottomBar?: ReactNode;
15
+ /** The start-side panel, laid out per breakpoint by `theme.layout.*.panels.start`. */
16
+ startPanel?: ReactNode;
17
+ /** The end-side panel, laid out per breakpoint by `theme.layout.*.panels.end`. */
18
+ endPanel?: ReactNode;
19
+ /** Which `overlay` panels are open. Panels in another mode ignore it. Default: none. */
20
+ openPanels?: { [Side in PageLayoutPanelSide]?: boolean; };
21
+ }
22
+ /**
23
+ * The page frame from `theme.layout`: bars on top and bottom, side panels at the
24
+ * start and end, and the content container between them, each breakpoint
25
+ * arranged by its layout entry in CSS alone (no JavaScript media queries, so
26
+ * server rendering matches the client). Lay the content out on the theme's
27
+ * columns with `LayoutGrid`.
28
+ */
29
+ declare function PageLayout({ children, topBar, bottomBar, startPanel, endPanel, openPanels, ...rest }: Readonly<PageLayoutProps>): import("react").JSX.Element;
30
+ //#endregion
31
+ export { PageLayout, PageLayoutBarPlacement, PageLayoutPanelSide, PageLayoutProps };
@@ -0,0 +1,31 @@
1
+ import { h as LayoutPanels } from "../themes-9YNnlVyY.mjs";
2
+ import { r as GridProps } from "../index-BnFxdnEL.mjs";
3
+ import "../index-CoHrw2p7.mjs";
4
+ import { ReactNode } from "react";
5
+ //#region src/PageLayout/PageLayout/PageLayout.d.ts
6
+ type PageLayoutPanelSide = keyof LayoutPanels;
7
+ type PageLayoutBarPlacement = 'top' | 'bottom';
8
+ interface PageLayoutProps extends GridProps {
9
+ /** The page content, in the theme's content container (fluid or fixed per breakpoint). */
10
+ children: ReactNode;
11
+ /** The top bar - its height per breakpoint is `theme.layout.*.bars.top`; absent where unset or `0`. */
12
+ topBar?: ReactNode;
13
+ /** The bottom bar - its height per breakpoint is `theme.layout.*.bars.bottom`; absent where unset or `0`. */
14
+ bottomBar?: ReactNode;
15
+ /** The start-side panel, laid out per breakpoint by `theme.layout.*.panels.start`. */
16
+ startPanel?: ReactNode;
17
+ /** The end-side panel, laid out per breakpoint by `theme.layout.*.panels.end`. */
18
+ endPanel?: ReactNode;
19
+ /** Which `overlay` panels are open. Panels in another mode ignore it. Default: none. */
20
+ openPanels?: { [Side in PageLayoutPanelSide]?: boolean; };
21
+ }
22
+ /**
23
+ * The page frame from `theme.layout`: bars on top and bottom, side panels at the
24
+ * start and end, and the content container between them, each breakpoint
25
+ * arranged by its layout entry in CSS alone (no JavaScript media queries, so
26
+ * server rendering matches the client). Lay the content out on the theme's
27
+ * columns with `LayoutGrid`.
28
+ */
29
+ declare function PageLayout({ children, topBar, bottomBar, startPanel, endPanel, openPanels, ...rest }: Readonly<PageLayoutProps>): import("react").JSX.Element;
30
+ //#endregion
31
+ export { PageLayout, PageLayoutBarPlacement, PageLayoutPanelSide, PageLayoutProps };
@@ -0,0 +1,147 @@
1
+ import { a as src_exports, o as styled } from "../src-DLGYOJMh.mjs";
2
+ import { View } from "../View.mjs";
3
+ import { t as PageLayoutContext } from "../PageLayoutContext-DjJ1_7Xc.mjs";
4
+ import { Grid } from "../Grid.mjs";
5
+ import { n as layoutStyles, t as layoutLength } from "../layoutStyles-f0ISNjsC.mjs";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ //#region src/PageLayout/PageLayout/PageLayout.tsx
8
+ const regionContext = {
9
+ top: {
10
+ region: "bar",
11
+ placement: "top"
12
+ },
13
+ bottom: {
14
+ region: "bar",
15
+ placement: "bottom"
16
+ },
17
+ start: {
18
+ region: "panel",
19
+ side: "start"
20
+ },
21
+ end: {
22
+ region: "panel",
23
+ side: "end"
24
+ }
25
+ };
26
+ const inRegion = (key, node) => /* @__PURE__ */ jsx(PageLayoutContext.Provider, {
27
+ value: regionContext[key],
28
+ children: node
29
+ });
30
+ const panelTrack = (theme, panel) => {
31
+ if (panel?.mode === "inline") return layoutLength(theme, panel.width);
32
+ if (panel?.mode === "collapsed") return layoutLength(theme, panel.railWidth);
33
+ return "0px";
34
+ };
35
+ const PageLayoutRoot = styled(Grid, {
36
+ name: "PageLayout",
37
+ label: "PageLayout",
38
+ shouldForwardProp: (prop) => prop !== "regions",
39
+ systemProps: [src_exports.layout]
40
+ })({
41
+ position: "relative",
42
+ minHeight: "100dvh",
43
+ gridTemplateAreas: "\"top top top\" \"start content end\" \"bottom bottom bottom\""
44
+ }, ({ theme, regions }) => layoutStyles(theme, ({ bars, panels }) => {
45
+ const track = (side) => regions[side] ? panelTrack(theme, panels[side]) : "0px";
46
+ const row = (placement) => regions[placement] ? layoutLength(theme, bars[placement]) : "0px";
47
+ return {
48
+ gridTemplateColumns: `${track("start")} minmax(0, 1fr) ${track("end")}`,
49
+ gridTemplateRows: `${row("top")} minmax(0, 1fr) ${row("bottom")}`
50
+ };
51
+ }));
52
+ const PageLayoutBar = styled(View, {
53
+ name: "PageLayout",
54
+ slot: "bar",
55
+ label: "PageLayoutBar",
56
+ shouldForwardProp: (prop) => prop !== "placement"
57
+ })(({ theme, placement }) => ({
58
+ gridArea: placement,
59
+ minWidth: 0,
60
+ ...layoutStyles(theme, ({ bars }) => ({ display: layoutLength(theme, bars[placement]) === "0px" ? "none" : "block" }))
61
+ }));
62
+ const panelStyle = (theme, side, isOpen, panel) => {
63
+ if (panel?.mode === "overlay") return {
64
+ display: isOpen ? "block" : "none",
65
+ position: "absolute",
66
+ insetBlock: 0,
67
+ [side === "start" ? "insetInlineStart" : "insetInlineEnd"]: 0,
68
+ width: layoutLength(theme, panel.width),
69
+ zIndex: theme.zOrder.drawer
70
+ };
71
+ return {
72
+ display: !panel || panel.mode === "hidden" ? "none" : "block",
73
+ position: "static",
74
+ width: "auto",
75
+ zIndex: "auto"
76
+ };
77
+ };
78
+ const PageLayoutPanel = styled(View, {
79
+ name: "PageLayout",
80
+ slot: "panel",
81
+ label: "PageLayoutPanel",
82
+ shouldForwardProp: (prop) => prop !== "side" && prop !== "isOpen"
83
+ })(({ theme, side, isOpen }) => ({
84
+ gridArea: side,
85
+ minWidth: 0,
86
+ overflow: "auto",
87
+ ...layoutStyles(theme, ({ panels }) => panelStyle(theme, side, isOpen, panels[side]))
88
+ }));
89
+ const PageLayoutContent = styled(View, {
90
+ name: "PageLayout",
91
+ slot: "content",
92
+ label: "PageLayoutContent"
93
+ })(({ theme }) => ({
94
+ gridArea: "content",
95
+ minWidth: 0,
96
+ width: "100%",
97
+ ...layoutStyles(theme, ({ content: { margin, mode, maxWidth } }) => {
98
+ const isFixed = mode === "fixed";
99
+ return {
100
+ paddingInline: layoutLength(theme, margin),
101
+ maxWidth: isFixed && maxWidth !== void 0 ? layoutLength(theme, maxWidth) : "none",
102
+ marginInline: isFixed ? "auto" : 0
103
+ };
104
+ })
105
+ }));
106
+ /**
107
+ * The page frame from `theme.layout`: bars on top and bottom, side panels at the
108
+ * start and end, and the content container between them, each breakpoint
109
+ * arranged by its layout entry in CSS alone (no JavaScript media queries, so
110
+ * server rendering matches the client). Lay the content out on the theme's
111
+ * columns with `LayoutGrid`.
112
+ */
113
+ function PageLayout({ children, topBar, bottomBar, startPanel, endPanel, openPanels = {}, ...rest }) {
114
+ const regions = {
115
+ top: topBar != null,
116
+ bottom: bottomBar != null,
117
+ start: startPanel != null,
118
+ end: endPanel != null
119
+ };
120
+ return /* @__PURE__ */ jsxs(PageLayoutRoot, {
121
+ regions,
122
+ ...rest,
123
+ children: [
124
+ regions.top && /* @__PURE__ */ jsx(PageLayoutBar, {
125
+ placement: "top",
126
+ children: inRegion("top", topBar)
127
+ }),
128
+ regions.start && /* @__PURE__ */ jsx(PageLayoutPanel, {
129
+ side: "start",
130
+ isOpen: !!openPanels.start,
131
+ children: inRegion("start", startPanel)
132
+ }),
133
+ /* @__PURE__ */ jsx(PageLayoutContent, { children }),
134
+ regions.end && /* @__PURE__ */ jsx(PageLayoutPanel, {
135
+ side: "end",
136
+ isOpen: !!openPanels.end,
137
+ children: inRegion("end", endPanel)
138
+ }),
139
+ regions.bottom && /* @__PURE__ */ jsx(PageLayoutBar, {
140
+ placement: "bottom",
141
+ children: inRegion("bottom", bottomBar)
142
+ })
143
+ ]
144
+ });
145
+ }
146
+ //#endregion
147
+ export { PageLayout };
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_PageLayoutContext = require("./PageLayoutContext-agXGhegE.cjs");
3
+ const require_PageLayout_PageLayout = require("./PageLayout/PageLayout.cjs");
4
+ const require_PageLayout_LayoutGrid = require("./PageLayout/LayoutGrid.cjs");
5
+ exports.LayoutGrid = require_PageLayout_LayoutGrid.LayoutGrid;
6
+ exports.PageLayout = require_PageLayout_PageLayout.PageLayout;
7
+ exports.PageLayoutContext = require_PageLayoutContext.PageLayoutContext;
@@ -0,0 +1,19 @@
1
+ import { h as LayoutPanels } from "./themes-9YNnlVyY.cjs";
2
+ import { LayoutGrid, LayoutGridProps } from "./PageLayout/LayoutGrid.cjs";
3
+ import "./index-BDD-L8uL.cjs";
4
+ import { PageLayout, PageLayoutBarPlacement, PageLayoutPanelSide, PageLayoutProps } from "./PageLayout/PageLayout.cjs";
5
+ //#region src/PageLayout/PageLayoutContext.d.ts
6
+ /**
7
+ * The `PageLayout` region a component renders in, so components that fill a region
8
+ * (`Sidebar` in a panel, `AppBar` in a bar) can size from it. `null` outside one.
9
+ */
10
+ type PageLayoutRegion = {
11
+ region: 'panel';
12
+ side: keyof LayoutPanels;
13
+ } | {
14
+ region: 'bar';
15
+ placement: 'top' | 'bottom';
16
+ };
17
+ declare const PageLayoutContext: import("react").Context<PageLayoutRegion | null>;
18
+ //#endregion
19
+ export { LayoutGrid, LayoutGridProps, PageLayout, PageLayoutBarPlacement, PageLayoutContext, PageLayoutPanelSide, PageLayoutProps, PageLayoutRegion };