@ankhorage/zora 0.10.0 → 0.12.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 (469) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +39 -2
  3. package/dist/components/badge/Badge.d.ts +1 -1
  4. package/dist/components/badge/Badge.d.ts.map +1 -1
  5. package/dist/components/badge/Badge.js +3 -1
  6. package/dist/components/badge/Badge.js.map +1 -1
  7. package/dist/components/badge/types.d.ts +2 -1
  8. package/dist/components/badge/types.d.ts.map +1 -1
  9. package/dist/components/badge/types.js.map +1 -1
  10. package/dist/components/button/Button.d.ts +1 -1
  11. package/dist/components/button/Button.d.ts.map +1 -1
  12. package/dist/components/card/Card.d.ts +1 -1
  13. package/dist/components/card/Card.d.ts.map +1 -1
  14. package/dist/components/checkbox/Checkbox.d.ts +4 -0
  15. package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
  16. package/dist/components/checkbox/Checkbox.js +8 -0
  17. package/dist/components/checkbox/Checkbox.js.map +1 -0
  18. package/dist/components/checkbox/CheckboxGroup.d.ts +1 -1
  19. package/dist/components/checkbox/CheckboxGroup.d.ts.map +1 -1
  20. package/dist/components/checkbox/CheckboxGroup.js +3 -1
  21. package/dist/components/checkbox/CheckboxGroup.js.map +1 -1
  22. package/dist/components/checkbox/index.d.ts +2 -3
  23. package/dist/components/checkbox/index.d.ts.map +1 -1
  24. package/dist/components/checkbox/index.js +1 -1
  25. package/dist/components/checkbox/index.js.map +1 -1
  26. package/dist/components/checkbox/types.d.ts +5 -2
  27. package/dist/components/checkbox/types.d.ts.map +1 -1
  28. package/dist/components/checkbox/types.js.map +1 -1
  29. package/dist/components/drawer/Drawer.d.ts +1 -1
  30. package/dist/components/drawer/Drawer.d.ts.map +1 -1
  31. package/dist/components/drawer/Drawer.js +3 -1
  32. package/dist/components/drawer/Drawer.js.map +1 -1
  33. package/dist/components/drawer/types.d.ts +2 -1
  34. package/dist/components/drawer/types.d.ts.map +1 -1
  35. package/dist/components/drawer/types.js.map +1 -1
  36. package/dist/components/form/Form.d.ts +1 -1
  37. package/dist/components/form/Form.d.ts.map +1 -1
  38. package/dist/components/form/Form.js +3 -1
  39. package/dist/components/form/Form.js.map +1 -1
  40. package/dist/components/form/FormActions.d.ts +1 -1
  41. package/dist/components/form/FormActions.d.ts.map +1 -1
  42. package/dist/components/form/FormActions.js +3 -1
  43. package/dist/components/form/FormActions.js.map +1 -1
  44. package/dist/components/form/FormError.d.ts +1 -1
  45. package/dist/components/form/FormError.d.ts.map +1 -1
  46. package/dist/components/form/FormError.js +6 -3
  47. package/dist/components/form/FormError.js.map +1 -1
  48. package/dist/components/form/FormField.d.ts +1 -1
  49. package/dist/components/form/FormField.d.ts.map +1 -1
  50. package/dist/components/form/FormField.js +5 -3
  51. package/dist/components/form/FormField.js.map +1 -1
  52. package/dist/components/form/types.d.ts +6 -9
  53. package/dist/components/form/types.d.ts.map +1 -1
  54. package/dist/components/form/types.js.map +1 -1
  55. package/dist/components/heading/Heading.d.ts +1 -1
  56. package/dist/components/heading/Heading.d.ts.map +1 -1
  57. package/dist/components/icon/Icon.d.ts +2 -2
  58. package/dist/components/icon/Icon.d.ts.map +1 -1
  59. package/dist/components/icon/Icon.js.map +1 -1
  60. package/dist/components/icon-button/IconButton.d.ts +1 -1
  61. package/dist/components/icon-button/IconButton.d.ts.map +1 -1
  62. package/dist/components/input/Input.d.ts +1 -1
  63. package/dist/components/input/Input.d.ts.map +1 -1
  64. package/dist/components/input/Input.js +5 -2
  65. package/dist/components/input/Input.js.map +1 -1
  66. package/dist/components/input/types.d.ts +2 -1
  67. package/dist/components/input/types.d.ts.map +1 -1
  68. package/dist/components/input/types.js.map +1 -1
  69. package/dist/components/modal/Modal.d.ts +1 -1
  70. package/dist/components/modal/Modal.d.ts.map +1 -1
  71. package/dist/components/modal/Modal.js +3 -1
  72. package/dist/components/modal/Modal.js.map +1 -1
  73. package/dist/components/modal/types.d.ts +2 -1
  74. package/dist/components/modal/types.d.ts.map +1 -1
  75. package/dist/components/modal/types.js.map +1 -1
  76. package/dist/components/radio/Radio.d.ts +4 -0
  77. package/dist/components/radio/Radio.d.ts.map +1 -0
  78. package/dist/components/radio/Radio.js +8 -0
  79. package/dist/components/radio/Radio.js.map +1 -0
  80. package/dist/components/radio/RadioGroup.d.ts +1 -1
  81. package/dist/components/radio/RadioGroup.d.ts.map +1 -1
  82. package/dist/components/radio/RadioGroup.js +3 -1
  83. package/dist/components/radio/RadioGroup.js.map +1 -1
  84. package/dist/components/radio/index.d.ts +2 -3
  85. package/dist/components/radio/index.d.ts.map +1 -1
  86. package/dist/components/radio/index.js +1 -1
  87. package/dist/components/radio/index.js.map +1 -1
  88. package/dist/components/radio/types.d.ts +5 -2
  89. package/dist/components/radio/types.d.ts.map +1 -1
  90. package/dist/components/radio/types.js.map +1 -1
  91. package/dist/components/select/Select.d.ts +1 -1
  92. package/dist/components/select/Select.d.ts.map +1 -1
  93. package/dist/components/select/Select.js +6 -3
  94. package/dist/components/select/Select.js.map +1 -1
  95. package/dist/components/select/types.d.ts +2 -2
  96. package/dist/components/select/types.d.ts.map +1 -1
  97. package/dist/components/select/types.js.map +1 -1
  98. package/dist/components/tabs/Tabs.d.ts +1 -1
  99. package/dist/components/tabs/Tabs.d.ts.map +1 -1
  100. package/dist/components/tabs/Tabs.js +6 -3
  101. package/dist/components/tabs/Tabs.js.map +1 -1
  102. package/dist/components/tabs/types.d.ts +2 -2
  103. package/dist/components/tabs/types.d.ts.map +1 -1
  104. package/dist/components/tabs/types.js.map +1 -1
  105. package/dist/components/text/Text.d.ts +1 -1
  106. package/dist/components/text/Text.d.ts.map +1 -1
  107. package/dist/components/textarea/Textarea.d.ts +1 -1
  108. package/dist/components/textarea/Textarea.d.ts.map +1 -1
  109. package/dist/components/textarea/Textarea.js +5 -2
  110. package/dist/components/textarea/Textarea.js.map +1 -1
  111. package/dist/components/textarea/types.d.ts +2 -1
  112. package/dist/components/textarea/types.d.ts.map +1 -1
  113. package/dist/components/textarea/types.js.map +1 -1
  114. package/dist/components/toolbar/Toolbar.d.ts +1 -1
  115. package/dist/components/toolbar/Toolbar.d.ts.map +1 -1
  116. package/dist/components/toolbar/Toolbar.js +3 -1
  117. package/dist/components/toolbar/Toolbar.js.map +1 -1
  118. package/dist/components/toolbar/ToolbarAction.d.ts +1 -1
  119. package/dist/components/toolbar/ToolbarAction.d.ts.map +1 -1
  120. package/dist/components/toolbar/ToolbarAction.js +3 -1
  121. package/dist/components/toolbar/ToolbarAction.js.map +1 -1
  122. package/dist/components/toolbar/types.d.ts +3 -4
  123. package/dist/components/toolbar/types.d.ts.map +1 -1
  124. package/dist/components/toolbar/types.js.map +1 -1
  125. package/dist/foundation/Box.d.ts +7 -0
  126. package/dist/foundation/Box.d.ts.map +1 -0
  127. package/dist/foundation/Box.js +8 -0
  128. package/dist/foundation/Box.js.map +1 -0
  129. package/dist/foundation/Center.d.ts +7 -0
  130. package/dist/foundation/Center.d.ts.map +1 -0
  131. package/dist/foundation/Center.js +8 -0
  132. package/dist/foundation/Center.js.map +1 -0
  133. package/dist/foundation/Container.d.ts +7 -0
  134. package/dist/foundation/Container.d.ts.map +1 -0
  135. package/dist/foundation/Container.js +8 -0
  136. package/dist/foundation/Container.js.map +1 -0
  137. package/dist/foundation/Divider.d.ts +7 -0
  138. package/dist/foundation/Divider.d.ts.map +1 -0
  139. package/dist/foundation/Divider.js +8 -0
  140. package/dist/foundation/Divider.js.map +1 -0
  141. package/dist/foundation/Grid.d.ts +7 -0
  142. package/dist/foundation/Grid.d.ts.map +1 -0
  143. package/dist/foundation/Grid.js +8 -0
  144. package/dist/foundation/Grid.js.map +1 -0
  145. package/dist/foundation/Inline.d.ts +7 -0
  146. package/dist/foundation/Inline.d.ts.map +1 -0
  147. package/dist/foundation/Inline.js +8 -0
  148. package/dist/foundation/Inline.js.map +1 -0
  149. package/dist/foundation/Show.d.ts +7 -0
  150. package/dist/foundation/Show.d.ts.map +1 -0
  151. package/dist/foundation/Show.js +8 -0
  152. package/dist/foundation/Show.js.map +1 -0
  153. package/dist/foundation/Spacer.d.ts +7 -0
  154. package/dist/foundation/Spacer.d.ts.map +1 -0
  155. package/dist/foundation/Spacer.js +8 -0
  156. package/dist/foundation/Spacer.js.map +1 -0
  157. package/dist/foundation/Stack.d.ts +7 -0
  158. package/dist/foundation/Stack.d.ts.map +1 -0
  159. package/dist/foundation/Stack.js +8 -0
  160. package/dist/foundation/Stack.js.map +1 -0
  161. package/dist/foundation/Surface.d.ts +8 -0
  162. package/dist/foundation/Surface.d.ts.map +1 -0
  163. package/dist/foundation/Surface.js +8 -0
  164. package/dist/foundation/Surface.js.map +1 -0
  165. package/dist/foundation/index.d.ts +20 -2
  166. package/dist/foundation/index.d.ts.map +1 -1
  167. package/dist/foundation/index.js +10 -1
  168. package/dist/foundation/index.js.map +1 -1
  169. package/dist/internal/color/index.d.ts +3 -0
  170. package/dist/internal/color/index.d.ts.map +1 -0
  171. package/dist/internal/color/index.js +3 -0
  172. package/dist/internal/color/index.js.map +1 -0
  173. package/dist/internal/color/oklch.d.ts +6 -0
  174. package/dist/internal/color/oklch.d.ts.map +1 -0
  175. package/dist/internal/color/oklch.js +53 -0
  176. package/dist/internal/color/oklch.js.map +1 -0
  177. package/dist/internal/color/primary.d.ts +3 -0
  178. package/dist/internal/color/primary.d.ts.map +1 -0
  179. package/dist/internal/color/primary.js +44 -0
  180. package/dist/internal/color/primary.js.map +1 -0
  181. package/dist/internal/color/types.d.ts +6 -0
  182. package/dist/internal/color/types.d.ts.map +1 -0
  183. package/dist/internal/color/types.js +2 -0
  184. package/dist/internal/color/types.js.map +1 -0
  185. package/dist/layout/app-shell/AppShell.d.ts +1 -1
  186. package/dist/layout/app-shell/AppShell.d.ts.map +1 -1
  187. package/dist/layout/app-shell/AppShell.js +3 -1
  188. package/dist/layout/app-shell/AppShell.js.map +1 -1
  189. package/dist/layout/app-shell/types.d.ts +2 -2
  190. package/dist/layout/app-shell/types.d.ts.map +1 -1
  191. package/dist/layout/app-shell/types.js.map +1 -1
  192. package/dist/layout/auth-layout/AuthLayout.d.ts +1 -1
  193. package/dist/layout/auth-layout/AuthLayout.d.ts.map +1 -1
  194. package/dist/layout/auth-layout/AuthLayout.js +3 -1
  195. package/dist/layout/auth-layout/AuthLayout.js.map +1 -1
  196. package/dist/layout/auth-layout/types.d.ts +2 -2
  197. package/dist/layout/auth-layout/types.d.ts.map +1 -1
  198. package/dist/layout/auth-layout/types.js.map +1 -1
  199. package/dist/layout/page/Page.d.ts +1 -1
  200. package/dist/layout/page/Page.d.ts.map +1 -1
  201. package/dist/layout/page/Page.js +3 -1
  202. package/dist/layout/page/Page.js.map +1 -1
  203. package/dist/layout/page/types.d.ts +2 -2
  204. package/dist/layout/page/types.d.ts.map +1 -1
  205. package/dist/layout/page/types.js.map +1 -1
  206. package/dist/layout/page-header/PageHeader.d.ts +1 -1
  207. package/dist/layout/page-header/PageHeader.d.ts.map +1 -1
  208. package/dist/layout/page-header/PageHeader.js +3 -1
  209. package/dist/layout/page-header/PageHeader.js.map +1 -1
  210. package/dist/layout/page-header/types.d.ts +2 -2
  211. package/dist/layout/page-header/types.d.ts.map +1 -1
  212. package/dist/layout/page-header/types.js.map +1 -1
  213. package/dist/layout/page-section/PageSection.d.ts +1 -1
  214. package/dist/layout/page-section/PageSection.d.ts.map +1 -1
  215. package/dist/layout/page-section/PageSection.js +3 -1
  216. package/dist/layout/page-section/PageSection.js.map +1 -1
  217. package/dist/layout/page-section/types.d.ts +2 -2
  218. package/dist/layout/page-section/types.d.ts.map +1 -1
  219. package/dist/layout/page-section/types.js.map +1 -1
  220. package/dist/layout/settings-layout/SettingsLayout.d.ts +1 -1
  221. package/dist/layout/settings-layout/SettingsLayout.d.ts.map +1 -1
  222. package/dist/layout/settings-layout/SettingsLayout.js +3 -1
  223. package/dist/layout/settings-layout/SettingsLayout.js.map +1 -1
  224. package/dist/layout/settings-layout/types.d.ts +2 -2
  225. package/dist/layout/settings-layout/types.d.ts.map +1 -1
  226. package/dist/layout/settings-layout/types.js.map +1 -1
  227. package/dist/layout/sidebar-layout/SidebarLayout.d.ts +1 -1
  228. package/dist/layout/sidebar-layout/SidebarLayout.d.ts.map +1 -1
  229. package/dist/layout/sidebar-layout/SidebarLayout.js +3 -1
  230. package/dist/layout/sidebar-layout/SidebarLayout.js.map +1 -1
  231. package/dist/layout/sidebar-layout/types.d.ts +2 -2
  232. package/dist/layout/sidebar-layout/types.d.ts.map +1 -1
  233. package/dist/layout/sidebar-layout/types.js.map +1 -1
  234. package/dist/layout/topbar-layout/TopbarLayout.d.ts +1 -1
  235. package/dist/layout/topbar-layout/TopbarLayout.d.ts.map +1 -1
  236. package/dist/layout/topbar-layout/TopbarLayout.js +3 -1
  237. package/dist/layout/topbar-layout/TopbarLayout.js.map +1 -1
  238. package/dist/layout/topbar-layout/types.d.ts +2 -2
  239. package/dist/layout/topbar-layout/types.d.ts.map +1 -1
  240. package/dist/layout/topbar-layout/types.js.map +1 -1
  241. package/dist/patterns/auth/ForgotPasswordForm.d.ts +1 -1
  242. package/dist/patterns/auth/ForgotPasswordForm.d.ts.map +1 -1
  243. package/dist/patterns/auth/ForgotPasswordForm.js +3 -1
  244. package/dist/patterns/auth/ForgotPasswordForm.js.map +1 -1
  245. package/dist/patterns/auth/OtpForm.d.ts +1 -1
  246. package/dist/patterns/auth/OtpForm.d.ts.map +1 -1
  247. package/dist/patterns/auth/OtpForm.js +3 -1
  248. package/dist/patterns/auth/OtpForm.js.map +1 -1
  249. package/dist/patterns/auth/SignInForm.d.ts +1 -1
  250. package/dist/patterns/auth/SignInForm.d.ts.map +1 -1
  251. package/dist/patterns/auth/SignInForm.js +3 -1
  252. package/dist/patterns/auth/SignInForm.js.map +1 -1
  253. package/dist/patterns/auth/SignUpForm.d.ts +1 -1
  254. package/dist/patterns/auth/SignUpForm.d.ts.map +1 -1
  255. package/dist/patterns/auth/SignUpForm.js +3 -1
  256. package/dist/patterns/auth/SignUpForm.js.map +1 -1
  257. package/dist/patterns/auth/types.d.ts +2 -2
  258. package/dist/patterns/auth/types.d.ts.map +1 -1
  259. package/dist/patterns/auth/types.js.map +1 -1
  260. package/dist/patterns/collection-editor/CollectionEditor.d.ts +1 -1
  261. package/dist/patterns/collection-editor/CollectionEditor.d.ts.map +1 -1
  262. package/dist/patterns/collection-editor/CollectionEditor.js +3 -1
  263. package/dist/patterns/collection-editor/CollectionEditor.js.map +1 -1
  264. package/dist/patterns/collection-editor/types.d.ts +2 -2
  265. package/dist/patterns/collection-editor/types.d.ts.map +1 -1
  266. package/dist/patterns/collection-editor/types.js.map +1 -1
  267. package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts +1 -1
  268. package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts.map +1 -1
  269. package/dist/patterns/confirm-dialog/ConfirmDialog.js +3 -1
  270. package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
  271. package/dist/patterns/confirm-dialog/types.d.ts +2 -2
  272. package/dist/patterns/confirm-dialog/types.d.ts.map +1 -1
  273. package/dist/patterns/confirm-dialog/types.js.map +1 -1
  274. package/dist/patterns/disclosure-section/DisclosureSection.d.ts +1 -1
  275. package/dist/patterns/disclosure-section/DisclosureSection.d.ts.map +1 -1
  276. package/dist/patterns/disclosure-section/DisclosureSection.js +3 -1
  277. package/dist/patterns/disclosure-section/DisclosureSection.js.map +1 -1
  278. package/dist/patterns/disclosure-section/types.d.ts +2 -2
  279. package/dist/patterns/disclosure-section/types.d.ts.map +1 -1
  280. package/dist/patterns/disclosure-section/types.js.map +1 -1
  281. package/dist/patterns/empty-state/EmptyState.d.ts +1 -1
  282. package/dist/patterns/empty-state/EmptyState.d.ts.map +1 -1
  283. package/dist/patterns/empty-state/EmptyState.js +3 -1
  284. package/dist/patterns/empty-state/EmptyState.js.map +1 -1
  285. package/dist/patterns/empty-state/types.d.ts +2 -2
  286. package/dist/patterns/empty-state/types.d.ts.map +1 -1
  287. package/dist/patterns/empty-state/types.js.map +1 -1
  288. package/dist/patterns/form-field/FormField.d.ts +1 -1
  289. package/dist/patterns/form-field/FormField.d.ts.map +1 -1
  290. package/dist/patterns/form-field/FormField.js +3 -1
  291. package/dist/patterns/form-field/FormField.js.map +1 -1
  292. package/dist/patterns/form-field/types.d.ts +2 -1
  293. package/dist/patterns/form-field/types.d.ts.map +1 -1
  294. package/dist/patterns/form-field/types.js.map +1 -1
  295. package/dist/patterns/inspector-field/InspectorField.d.ts +1 -1
  296. package/dist/patterns/inspector-field/InspectorField.d.ts.map +1 -1
  297. package/dist/patterns/inspector-field/InspectorField.js +3 -1
  298. package/dist/patterns/inspector-field/InspectorField.js.map +1 -1
  299. package/dist/patterns/inspector-field/types.d.ts +2 -2
  300. package/dist/patterns/inspector-field/types.d.ts.map +1 -1
  301. package/dist/patterns/inspector-field/types.js.map +1 -1
  302. package/dist/patterns/notice/Notice.d.ts +1 -1
  303. package/dist/patterns/notice/Notice.d.ts.map +1 -1
  304. package/dist/patterns/notice/Notice.js +3 -1
  305. package/dist/patterns/notice/Notice.js.map +1 -1
  306. package/dist/patterns/notice/types.d.ts +2 -2
  307. package/dist/patterns/notice/types.d.ts.map +1 -1
  308. package/dist/patterns/notice/types.js.map +1 -1
  309. package/dist/patterns/panel/Panel.d.ts +1 -1
  310. package/dist/patterns/panel/Panel.d.ts.map +1 -1
  311. package/dist/patterns/responsive-panel/ResponsivePanel.d.ts +1 -1
  312. package/dist/patterns/responsive-panel/ResponsivePanel.d.ts.map +1 -1
  313. package/dist/patterns/responsive-panel/ResponsivePanel.js +3 -1
  314. package/dist/patterns/responsive-panel/ResponsivePanel.js.map +1 -1
  315. package/dist/patterns/responsive-panel/types.d.ts +2 -2
  316. package/dist/patterns/responsive-panel/types.d.ts.map +1 -1
  317. package/dist/patterns/responsive-panel/types.js.map +1 -1
  318. package/dist/patterns/section-header/SectionHeader.d.ts +1 -1
  319. package/dist/patterns/section-header/SectionHeader.d.ts.map +1 -1
  320. package/dist/patterns/section-header/SectionHeader.js +3 -1
  321. package/dist/patterns/section-header/SectionHeader.js.map +1 -1
  322. package/dist/patterns/section-header/types.d.ts +2 -2
  323. package/dist/patterns/section-header/types.d.ts.map +1 -1
  324. package/dist/patterns/section-header/types.js.map +1 -1
  325. package/dist/patterns/settings-row/SettingsRow.d.ts +1 -1
  326. package/dist/patterns/settings-row/SettingsRow.d.ts.map +1 -1
  327. package/dist/patterns/settings-row/SettingsRow.js +3 -1
  328. package/dist/patterns/settings-row/SettingsRow.js.map +1 -1
  329. package/dist/patterns/settings-row/types.d.ts +2 -2
  330. package/dist/patterns/settings-row/types.d.ts.map +1 -1
  331. package/dist/patterns/settings-row/types.js.map +1 -1
  332. package/dist/patterns/switch-field/SwitchField.d.ts +1 -1
  333. package/dist/patterns/switch-field/SwitchField.d.ts.map +1 -1
  334. package/dist/patterns/switch-field/SwitchField.js +3 -1
  335. package/dist/patterns/switch-field/SwitchField.js.map +1 -1
  336. package/dist/patterns/switch-field/types.d.ts +2 -2
  337. package/dist/patterns/switch-field/types.d.ts.map +1 -1
  338. package/dist/patterns/switch-field/types.js.map +1 -1
  339. package/dist/patterns/tile-grid/PaletteItem.d.ts +1 -1
  340. package/dist/patterns/tile-grid/PaletteItem.d.ts.map +1 -1
  341. package/dist/patterns/tile-grid/PaletteItem.js +6 -3
  342. package/dist/patterns/tile-grid/PaletteItem.js.map +1 -1
  343. package/dist/patterns/tile-grid/TileGrid.d.ts +1 -1
  344. package/dist/patterns/tile-grid/TileGrid.d.ts.map +1 -1
  345. package/dist/patterns/tile-grid/TileGrid.js +3 -1
  346. package/dist/patterns/tile-grid/TileGrid.js.map +1 -1
  347. package/dist/patterns/tile-grid/types.d.ts +3 -4
  348. package/dist/patterns/tile-grid/types.d.ts.map +1 -1
  349. package/dist/patterns/tile-grid/types.js.map +1 -1
  350. package/dist/patterns/tree-view/TreeItem.d.ts +3 -2
  351. package/dist/patterns/tree-view/TreeItem.d.ts.map +1 -1
  352. package/dist/patterns/tree-view/TreeItem.js +4 -2
  353. package/dist/patterns/tree-view/TreeItem.js.map +1 -1
  354. package/dist/patterns/tree-view/TreeView.d.ts +1 -1
  355. package/dist/patterns/tree-view/TreeView.d.ts.map +1 -1
  356. package/dist/patterns/tree-view/TreeView.js +3 -1
  357. package/dist/patterns/tree-view/TreeView.js.map +1 -1
  358. package/dist/patterns/tree-view/types.d.ts +2 -2
  359. package/dist/patterns/tree-view/types.d.ts.map +1 -1
  360. package/dist/patterns/tree-view/types.js.map +1 -1
  361. package/dist/theme/createZoraThemeConfig.d.ts.map +1 -1
  362. package/dist/theme/createZoraThemeConfig.js +1 -5
  363. package/dist/theme/createZoraThemeConfig.js.map +1 -1
  364. package/dist/theme/withZoraThemeScope.d.ts +1 -1
  365. package/dist/theme/withZoraThemeScope.d.ts.map +1 -1
  366. package/dist/theme/withZoraThemeScope.js +2 -2
  367. package/dist/theme/withZoraThemeScope.js.map +1 -1
  368. package/package.json +4 -2
  369. package/src/components/badge/Badge.tsx +12 -1
  370. package/src/components/badge/types.ts +5 -4
  371. package/src/components/checkbox/Checkbox.tsx +11 -0
  372. package/src/components/checkbox/CheckboxGroup.tsx +6 -1
  373. package/src/components/checkbox/index.ts +2 -3
  374. package/src/components/checkbox/types.ts +13 -5
  375. package/src/components/drawer/Drawer.tsx +13 -1
  376. package/src/components/drawer/types.ts +9 -4
  377. package/src/components/form/Form.tsx +6 -1
  378. package/src/components/form/FormActions.tsx +6 -1
  379. package/src/components/form/FormError.tsx +7 -3
  380. package/src/components/form/FormField.tsx +24 -3
  381. package/src/components/form/types.ts +12 -12
  382. package/src/components/icon/Icon.tsx +1 -1
  383. package/src/components/input/Input.tsx +13 -2
  384. package/src/components/input/types.ts +8 -4
  385. package/src/components/modal/Modal.tsx +6 -1
  386. package/src/components/modal/types.ts +5 -4
  387. package/src/components/radio/Radio.tsx +11 -0
  388. package/src/components/radio/RadioGroup.tsx +6 -1
  389. package/src/components/radio/index.ts +2 -3
  390. package/src/components/radio/types.ts +12 -5
  391. package/src/components/select/Select.tsx +9 -3
  392. package/src/components/select/types.ts +3 -2
  393. package/src/components/tabs/Tabs.tsx +9 -3
  394. package/src/components/tabs/types.ts +2 -2
  395. package/src/components/textarea/Textarea.tsx +13 -2
  396. package/src/components/textarea/types.ts +8 -4
  397. package/src/components/toolbar/Toolbar.tsx +6 -1
  398. package/src/components/toolbar/ToolbarAction.tsx +9 -1
  399. package/src/components/toolbar/types.ts +4 -4
  400. package/src/foundation/Box.tsx +13 -0
  401. package/src/foundation/Center.tsx +16 -0
  402. package/src/foundation/Container.tsx +17 -0
  403. package/src/foundation/Divider.tsx +17 -0
  404. package/src/foundation/Grid.tsx +13 -0
  405. package/src/foundation/Inline.tsx +16 -0
  406. package/src/foundation/Show.tsx +13 -0
  407. package/src/foundation/Spacer.tsx +16 -0
  408. package/src/foundation/Stack.tsx +13 -0
  409. package/src/foundation/Surface.tsx +20 -0
  410. package/src/foundation/index.test.ts +2 -2
  411. package/src/foundation/index.ts +20 -25
  412. package/src/internal/color/index.ts +2 -0
  413. package/src/internal/color/oklch.ts +69 -0
  414. package/src/internal/color/primary.test.ts +105 -0
  415. package/src/internal/color/primary.ts +64 -0
  416. package/src/internal/color/types.ts +5 -0
  417. package/src/layout/app-shell/AppShell.tsx +6 -1
  418. package/src/layout/app-shell/types.ts +3 -2
  419. package/src/layout/auth-layout/AuthLayout.tsx +6 -1
  420. package/src/layout/auth-layout/types.ts +3 -2
  421. package/src/layout/page/Page.tsx +12 -1
  422. package/src/layout/page/types.ts +2 -2
  423. package/src/layout/page-header/PageHeader.tsx +6 -1
  424. package/src/layout/page-header/types.ts +3 -2
  425. package/src/layout/page-section/PageSection.tsx +12 -1
  426. package/src/layout/page-section/types.ts +3 -2
  427. package/src/layout/settings-layout/SettingsLayout.tsx +6 -1
  428. package/src/layout/settings-layout/types.ts +3 -2
  429. package/src/layout/sidebar-layout/SidebarLayout.tsx +6 -1
  430. package/src/layout/sidebar-layout/types.ts +3 -2
  431. package/src/layout/topbar-layout/TopbarLayout.tsx +11 -1
  432. package/src/layout/topbar-layout/types.ts +3 -2
  433. package/src/patterns/auth/ForgotPasswordForm.tsx +6 -1
  434. package/src/patterns/auth/OtpForm.tsx +6 -1
  435. package/src/patterns/auth/SignInForm.tsx +6 -1
  436. package/src/patterns/auth/SignUpForm.tsx +6 -1
  437. package/src/patterns/auth/types.ts +2 -2
  438. package/src/patterns/collection-editor/CollectionEditor.tsx +6 -1
  439. package/src/patterns/collection-editor/types.ts +3 -2
  440. package/src/patterns/confirm-dialog/ConfirmDialog.tsx +6 -1
  441. package/src/patterns/confirm-dialog/types.ts +2 -2
  442. package/src/patterns/disclosure-section/DisclosureSection.tsx +6 -1
  443. package/src/patterns/disclosure-section/types.ts +3 -2
  444. package/src/patterns/empty-state/EmptyState.tsx +6 -1
  445. package/src/patterns/empty-state/types.ts +2 -2
  446. package/src/patterns/form-field/FormField.tsx +12 -1
  447. package/src/patterns/form-field/types.ts +9 -4
  448. package/src/patterns/inspector-field/InspectorField.tsx +11 -1
  449. package/src/patterns/inspector-field/types.ts +3 -2
  450. package/src/patterns/notice/Notice.tsx +6 -1
  451. package/src/patterns/notice/types.ts +2 -2
  452. package/src/patterns/responsive-panel/ResponsivePanel.tsx +6 -1
  453. package/src/patterns/responsive-panel/types.ts +3 -2
  454. package/src/patterns/section-header/SectionHeader.tsx +6 -1
  455. package/src/patterns/section-header/types.ts +3 -2
  456. package/src/patterns/settings-row/SettingsRow.tsx +6 -1
  457. package/src/patterns/settings-row/types.ts +3 -2
  458. package/src/patterns/switch-field/SwitchField.tsx +6 -1
  459. package/src/patterns/switch-field/types.ts +3 -2
  460. package/src/patterns/tile-grid/PaletteItem.tsx +9 -3
  461. package/src/patterns/tile-grid/TileGrid.tsx +6 -1
  462. package/src/patterns/tile-grid/types.ts +4 -4
  463. package/src/patterns/tree-view/TreeItem.tsx +10 -3
  464. package/src/patterns/tree-view/TreeView.tsx +6 -1
  465. package/src/patterns/tree-view/types.ts +3 -2
  466. package/src/theme/createZoraThemeConfig.test.ts +18 -4
  467. package/src/theme/createZoraThemeConfig.ts +2 -7
  468. package/src/theme/themeScopeStructure.test.ts +186 -65
  469. package/src/theme/withZoraThemeScope.tsx +8 -7
@@ -0,0 +1,8 @@
1
+ import { type SurfaceProps as SurfaceSurfaceProps, type SurfaceVariant } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export type { SurfaceVariant };
5
+ export interface SurfaceProps extends ZoraBaseProps, Omit<SurfaceSurfaceProps, 'mode' | 'themeId'> {
6
+ }
7
+ export declare const Surface: (props: SurfaceProps) => React.ReactElement | null;
8
+ //# sourceMappingURL=Surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../src/foundation/Surface.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,IAAI,mBAAmB,EACxC,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,WAAW,YACf,SAAQ,aAAa,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAMzE,eAAO,MAAM,OAAO,oDAAmC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Surface as SurfaceSurface, } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function SurfaceInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceSurface {...props}/>;
6
+ }
7
+ export const Surface = withZoraThemeScope(SurfaceInner);
8
+ //# sourceMappingURL=Surface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Surface.js","sourceRoot":"","sources":["../../src/foundation/Surface.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,cAAc,GAG1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAQjE,SAAS,YAAY,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAgB;IAC9E,OAAO,CAAC,cAAc,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import {\n Surface as SurfaceSurface,\n type SurfaceProps as SurfaceSurfaceProps,\n type SurfaceVariant,\n} from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport type { SurfaceVariant };\n\nexport interface SurfaceProps\n extends ZoraBaseProps, Omit<SurfaceSurfaceProps, 'mode' | 'themeId'> {}\n\nfunction SurfaceInner({ themeId: _themeId, mode: _mode, ...props }: SurfaceProps) {\n return <SurfaceSurface {...props} />;\n}\n\nexport const Surface = withZoraThemeScope(SurfaceInner);\n"]}
@@ -1,3 +1,21 @@
1
- export type { BoxProps, CenterProps, ContainerProps, DividerProps, GridProps, InlineProps, ShowProps, SpacerProps, StackProps, SurfaceProps, SurfaceVariant, } from '@ankhorage/surface';
2
- export { Box, Center, Container, Divider, Grid, Inline, Show, Spacer, Stack, Surface, } from '@ankhorage/surface';
1
+ export type { BoxProps } from './Box';
2
+ export { Box } from './Box';
3
+ export type { CenterProps } from './Center';
4
+ export { Center } from './Center';
5
+ export type { ContainerProps } from './Container';
6
+ export { Container } from './Container';
7
+ export type { DividerProps } from './Divider';
8
+ export { Divider } from './Divider';
9
+ export type { GridProps } from './Grid';
10
+ export { Grid } from './Grid';
11
+ export type { InlineProps } from './Inline';
12
+ export { Inline } from './Inline';
13
+ export type { ShowProps } from './Show';
14
+ export { Show } from './Show';
15
+ export type { SpacerProps } from './Spacer';
16
+ export { Spacer } from './Spacer';
17
+ export type { StackProps } from './Stack';
18
+ export { Stack } from './Stack';
19
+ export type { SurfaceProps, SurfaceVariant } from './Surface';
20
+ export { Surface } from './Surface';
3
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/foundation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,WAAW,EACX,cAAc,EACd,YAAY,EACZ,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,GACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,GAAG,EACH,MAAM,EACN,SAAS,EACT,OAAO,EACP,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,GACR,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/foundation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -1,2 +1,11 @@
1
- export { Box, Center, Container, Divider, Grid, Inline, Show, Spacer, Stack, Surface, } from '@ankhorage/surface';
1
+ export { Box } from './Box';
2
+ export { Center } from './Center';
3
+ export { Container } from './Container';
4
+ export { Divider } from './Divider';
5
+ export { Grid } from './Grid';
6
+ export { Inline } from './Inline';
7
+ export { Show } from './Show';
8
+ export { Spacer } from './Spacer';
9
+ export { Stack } from './Stack';
10
+ export { Surface } from './Surface';
2
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/foundation/index.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,GAAG,EACH,MAAM,EACN,SAAS,EACT,OAAO,EACP,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,GACR,MAAM,oBAAoB,CAAC","sourcesContent":["export type {\n BoxProps,\n CenterProps,\n ContainerProps,\n DividerProps,\n GridProps,\n InlineProps,\n ShowProps,\n SpacerProps,\n StackProps,\n SurfaceProps,\n SurfaceVariant,\n} from '@ankhorage/surface';\nexport {\n Box,\n Center,\n Container,\n Divider,\n Grid,\n Inline,\n Show,\n Spacer,\n Stack,\n Surface,\n} from '@ankhorage/surface';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/foundation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC","sourcesContent":["export type { BoxProps } from './Box';\nexport { Box } from './Box';\nexport type { CenterProps } from './Center';\nexport { Center } from './Center';\nexport type { ContainerProps } from './Container';\nexport { Container } from './Container';\nexport type { DividerProps } from './Divider';\nexport { Divider } from './Divider';\nexport type { GridProps } from './Grid';\nexport { Grid } from './Grid';\nexport type { InlineProps } from './Inline';\nexport { Inline } from './Inline';\nexport type { ShowProps } from './Show';\nexport { Show } from './Show';\nexport type { SpacerProps } from './Spacer';\nexport { Spacer } from './Spacer';\nexport type { StackProps } from './Stack';\nexport { Stack } from './Stack';\nexport type { SurfaceProps, SurfaceVariant } from './Surface';\nexport { Surface } from './Surface';\n"]}
@@ -0,0 +1,3 @@
1
+ export { parseHexToOklch } from './oklch';
2
+ export { resolveModePrimaryColor } from './primary';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/color/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { parseHexToOklch } from './oklch';
2
+ export { resolveModePrimaryColor } from './primary';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/internal/color/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC","sourcesContent":["export { parseHexToOklch } from './oklch';\nexport { resolveModePrimaryColor } from './primary';\n"]}
@@ -0,0 +1,6 @@
1
+ import type { ZoraHexColor } from '../../theme/types';
2
+ import type { ZoraOklchColor } from './types';
3
+ export declare function parseHexToOklch(hex: ZoraHexColor): ZoraOklchColor;
4
+ export declare function formatOklchAsHex(color: ZoraOklchColor): ZoraHexColor;
5
+ export declare function clampOklchToGamut(color: ZoraOklchColor): ZoraOklchColor;
6
+ //# sourceMappingURL=oklch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oklch.d.ts","sourceRoot":"","sources":["../../../src/internal/color/oklch.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAc9C,wBAAgB,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,cAAc,CAoBjE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,GAAG,YAAY,CAcpE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,CAavE"}
@@ -0,0 +1,53 @@
1
+ import { converter, formatHex, parse, toGamut } from 'culori';
2
+ const toOklch = converter('oklch');
3
+ const gamutMapToSrgb = toGamut('rgb', 'oklch');
4
+ function normalizeHueDegrees(hue) {
5
+ const normalized = ((hue % 360) + 360) % 360;
6
+ return normalized;
7
+ }
8
+ function isSixDigitHexColor(value) {
9
+ return /^#[0-9a-fA-F]{6}$/.test(value);
10
+ }
11
+ export function parseHexToOklch(hex) {
12
+ if (!isSixDigitHexColor(hex)) {
13
+ throw new Error(`Expected a 6-digit hex color like '#0f766e', got '${String(hex)}'.`);
14
+ }
15
+ const parsed = parse(hex);
16
+ if (!parsed) {
17
+ throw new Error(`Unable to parse hex color '${String(hex)}'.`);
18
+ }
19
+ const oklch = toOklch(parsed);
20
+ if (typeof oklch.l !== 'number' || typeof oklch.c !== 'number') {
21
+ throw new Error(`Unable to convert hex color '${String(hex)}' to OKLCH.`);
22
+ }
23
+ return {
24
+ l: oklch.l,
25
+ c: oklch.c,
26
+ h: normalizeHueDegrees(typeof oklch.h === 'number' ? oklch.h : 0),
27
+ };
28
+ }
29
+ export function formatOklchAsHex(color) {
30
+ const mapped = gamutMapToSrgb({ mode: 'oklch', l: color.l, c: color.c, h: color.h });
31
+ const hex = formatHex(mapped);
32
+ if (!hex || !isSixDigitHexColor(hex)) {
33
+ throw new Error('Unable to format OKLCH color as a 6-digit hex value.');
34
+ }
35
+ const normalized = hex.toLowerCase();
36
+ if (!isSixDigitHexColor(normalized)) {
37
+ throw new Error('Unable to format OKLCH color as a 6-digit hex value.');
38
+ }
39
+ return normalized;
40
+ }
41
+ export function clampOklchToGamut(color) {
42
+ const mapped = gamutMapToSrgb({ mode: 'oklch', l: color.l, c: color.c, h: color.h });
43
+ const clamped = toOklch(mapped);
44
+ if (typeof clamped.l !== 'number' || typeof clamped.c !== 'number') {
45
+ throw new Error('Unable to clamp OKLCH color to sRGB gamut.');
46
+ }
47
+ return {
48
+ l: clamped.l,
49
+ c: clamped.c,
50
+ h: normalizeHueDegrees(typeof clamped.h === 'number' ? clamped.h : 0),
51
+ };
52
+ }
53
+ //# sourceMappingURL=oklch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oklch.js","sourceRoot":"","sources":["../../../src/internal/color/oklch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAK9D,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;AACnC,MAAM,cAAc,GAAG,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAE/C,SAAS,mBAAmB,CAAC,GAAW;IACtC,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;IAC7C,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAa;IACvC,OAAO,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,GAAiB;IAC/C,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,qDAAqD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxF,CAAC;IAED,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAC1B,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,8BAA8B,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,IAAI,OAAO,KAAK,CAAC,CAAC,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC/D,MAAM,IAAI,KAAK,CAAC,gCAAgC,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC5E,CAAC;IAED,OAAO;QACL,CAAC,EAAE,KAAK,CAAC,CAAC;QACV,CAAC,EAAE,KAAK,CAAC,CAAC;QACV,CAAC,EAAE,mBAAmB,CAAC,OAAO,KAAK,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAClE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAqB;IACpD,MAAM,MAAM,GAAG,cAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IACrF,MAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAE9B,IAAI,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;IAED,MAAM,UAAU,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,KAAqB;IACrD,MAAM,MAAM,GAAG,cAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IACrF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhC,IAAI,OAAO,OAAO,CAAC,CAAC,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;QACnE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;IAED,OAAO;QACL,CAAC,EAAE,OAAO,CAAC,CAAC;QACZ,CAAC,EAAE,OAAO,CAAC,CAAC;QACZ,CAAC,EAAE,mBAAmB,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACtE,CAAC;AACJ,CAAC","sourcesContent":["import { converter, formatHex, parse, toGamut } from 'culori';\n\nimport type { ZoraHexColor } from '../../theme/types';\nimport type { ZoraOklchColor } from './types';\n\nconst toOklch = converter('oklch');\nconst gamutMapToSrgb = toGamut('rgb', 'oklch');\n\nfunction normalizeHueDegrees(hue: number): number {\n const normalized = ((hue % 360) + 360) % 360;\n return normalized;\n}\n\nfunction isSixDigitHexColor(value: string): value is ZoraHexColor {\n return /^#[0-9a-fA-F]{6}$/.test(value);\n}\n\nexport function parseHexToOklch(hex: ZoraHexColor): ZoraOklchColor {\n if (!isSixDigitHexColor(hex)) {\n throw new Error(`Expected a 6-digit hex color like '#0f766e', got '${String(hex)}'.`);\n }\n\n const parsed = parse(hex);\n if (!parsed) {\n throw new Error(`Unable to parse hex color '${String(hex)}'.`);\n }\n\n const oklch = toOklch(parsed);\n if (typeof oklch.l !== 'number' || typeof oklch.c !== 'number') {\n throw new Error(`Unable to convert hex color '${String(hex)}' to OKLCH.`);\n }\n\n return {\n l: oklch.l,\n c: oklch.c,\n h: normalizeHueDegrees(typeof oklch.h === 'number' ? oklch.h : 0),\n };\n}\n\nexport function formatOklchAsHex(color: ZoraOklchColor): ZoraHexColor {\n const mapped = gamutMapToSrgb({ mode: 'oklch', l: color.l, c: color.c, h: color.h });\n const hex = formatHex(mapped);\n\n if (!hex || !isSixDigitHexColor(hex)) {\n throw new Error('Unable to format OKLCH color as a 6-digit hex value.');\n }\n\n const normalized = hex.toLowerCase();\n if (!isSixDigitHexColor(normalized)) {\n throw new Error('Unable to format OKLCH color as a 6-digit hex value.');\n }\n\n return normalized;\n}\n\nexport function clampOklchToGamut(color: ZoraOklchColor): ZoraOklchColor {\n const mapped = gamutMapToSrgb({ mode: 'oklch', l: color.l, c: color.c, h: color.h });\n const clamped = toOklch(mapped);\n\n if (typeof clamped.l !== 'number' || typeof clamped.c !== 'number') {\n throw new Error('Unable to clamp OKLCH color to sRGB gamut.');\n }\n\n return {\n l: clamped.l,\n c: clamped.c,\n h: normalizeHueDegrees(typeof clamped.h === 'number' ? clamped.h : 0),\n };\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ZoraHexColor, ZoraThemeMode } from '../../theme/types';
2
+ export declare function resolveModePrimaryColor(primaryColor: ZoraHexColor, mode: ZoraThemeMode): ZoraHexColor;
3
+ //# sourceMappingURL=primary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primary.d.ts","sourceRoot":"","sources":["../../../src/internal/color/primary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AA2BrE,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,aAAa,GAClB,YAAY,CAiCd"}
@@ -0,0 +1,44 @@
1
+ import { clampOklchToGamut, formatOklchAsHex, parseHexToOklch } from './oklch';
2
+ const FALLBACK_PRIMARY_COLOR = '#0f766e';
3
+ const LIGHT_PRIMARY_LIGHTNESS_TARGET = 0.52;
4
+ const DARK_PRIMARY_LIGHTNESS_TARGET = 0.72;
5
+ const MIN_PRIMARY_CHROMA = 0.04;
6
+ const MAX_LIGHT_PRIMARY_CHROMA = 0.18;
7
+ const MAX_DARK_PRIMARY_CHROMA = 0.2;
8
+ const LIGHTNESS_BLEND = 0.85;
9
+ function clampNumber(value, min, max) {
10
+ return Math.max(min, Math.min(value, max));
11
+ }
12
+ function resolveModePrimaryTargetLightness(mode) {
13
+ return mode === 'dark' ? DARK_PRIMARY_LIGHTNESS_TARGET : LIGHT_PRIMARY_LIGHTNESS_TARGET;
14
+ }
15
+ function resolveModePrimaryMaxChroma(mode) {
16
+ return mode === 'dark' ? MAX_DARK_PRIMARY_CHROMA : MAX_LIGHT_PRIMARY_CHROMA;
17
+ }
18
+ export function resolveModePrimaryColor(primaryColor, mode) {
19
+ let seed;
20
+ try {
21
+ seed = parseHexToOklch(primaryColor);
22
+ }
23
+ catch (error) {
24
+ const message = error instanceof Error ? error.message : String(error);
25
+ if (process.env.NODE_ENV === 'production') {
26
+ console.warn(`Invalid ZORA primaryColor '${primaryColor}'. Falling back. ${message}`);
27
+ return resolveModePrimaryColor(FALLBACK_PRIMARY_COLOR, mode);
28
+ }
29
+ throw error instanceof Error ? error : new Error(message);
30
+ }
31
+ const targetLightness = resolveModePrimaryTargetLightness(mode);
32
+ const maxChroma = resolveModePrimaryMaxChroma(mode);
33
+ const blendedLightness = seed.l + (targetLightness - seed.l) * LIGHTNESS_BLEND;
34
+ const boundedLightness = clampNumber(blendedLightness, 0.12, 0.92);
35
+ const cappedChroma = clampNumber(seed.c, 0, maxChroma);
36
+ const boundedChroma = seed.c < MIN_PRIMARY_CHROMA ? cappedChroma : Math.max(cappedChroma, MIN_PRIMARY_CHROMA);
37
+ const derived = clampOklchToGamut({
38
+ l: boundedLightness,
39
+ c: boundedChroma,
40
+ h: seed.h,
41
+ });
42
+ return formatOklchAsHex(derived);
43
+ }
44
+ //# sourceMappingURL=primary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primary.js","sourceRoot":"","sources":["../../../src/internal/color/primary.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/E,MAAM,sBAAsB,GAAiB,SAAS,CAAC;AAEvD,MAAM,8BAA8B,GAAG,IAAI,CAAC;AAC5C,MAAM,6BAA6B,GAAG,IAAI,CAAC;AAE3C,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAChC,MAAM,wBAAwB,GAAG,IAAI,CAAC;AACtC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpC,MAAM,eAAe,GAAG,IAAI,CAAC;AAE7B,SAAS,WAAW,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW;IAC1D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,iCAAiC,CAAC,IAAmB;IAC5D,OAAO,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,8BAA8B,CAAC;AAC1F,CAAC;AAED,SAAS,2BAA2B,CAAC,IAAmB;IACtD,OAAO,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,wBAAwB,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,YAA0B,EAC1B,IAAmB;IAEnB,IAAI,IAAoB,CAAC;IAEzB,IAAI,CAAC;QACH,IAAI,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IACvC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAEvE,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;YAC1C,OAAO,CAAC,IAAI,CAAC,8BAA8B,YAAY,oBAAoB,OAAO,EAAE,CAAC,CAAC;YACtF,OAAO,uBAAuB,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,eAAe,GAAG,iCAAiC,CAAC,IAAI,CAAC,CAAC;IAChE,MAAM,SAAS,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC;IAEpD,MAAM,gBAAgB,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC;IAC/E,MAAM,gBAAgB,GAAG,WAAW,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAEnE,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;IACvD,MAAM,aAAa,GACjB,IAAI,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC;IAE1F,MAAM,OAAO,GAAG,iBAAiB,CAAC;QAChC,CAAC,EAAE,gBAAgB;QACnB,CAAC,EAAE,aAAa;QAChB,CAAC,EAAE,IAAI,CAAC,CAAC;KACV,CAAC,CAAC;IAEH,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC;AACnC,CAAC","sourcesContent":["import type { ZoraHexColor, ZoraThemeMode } from '../../theme/types';\nimport { clampOklchToGamut, formatOklchAsHex, parseHexToOklch } from './oklch';\nimport type { ZoraOklchColor } from './types';\n\nconst FALLBACK_PRIMARY_COLOR: ZoraHexColor = '#0f766e';\n\nconst LIGHT_PRIMARY_LIGHTNESS_TARGET = 0.52;\nconst DARK_PRIMARY_LIGHTNESS_TARGET = 0.72;\n\nconst MIN_PRIMARY_CHROMA = 0.04;\nconst MAX_LIGHT_PRIMARY_CHROMA = 0.18;\nconst MAX_DARK_PRIMARY_CHROMA = 0.2;\n\nconst LIGHTNESS_BLEND = 0.85;\n\nfunction clampNumber(value: number, min: number, max: number): number {\n return Math.max(min, Math.min(value, max));\n}\n\nfunction resolveModePrimaryTargetLightness(mode: ZoraThemeMode): number {\n return mode === 'dark' ? DARK_PRIMARY_LIGHTNESS_TARGET : LIGHT_PRIMARY_LIGHTNESS_TARGET;\n}\n\nfunction resolveModePrimaryMaxChroma(mode: ZoraThemeMode): number {\n return mode === 'dark' ? MAX_DARK_PRIMARY_CHROMA : MAX_LIGHT_PRIMARY_CHROMA;\n}\n\nexport function resolveModePrimaryColor(\n primaryColor: ZoraHexColor,\n mode: ZoraThemeMode,\n): ZoraHexColor {\n let seed: ZoraOklchColor;\n\n try {\n seed = parseHexToOklch(primaryColor);\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error);\n\n if (process.env.NODE_ENV === 'production') {\n console.warn(`Invalid ZORA primaryColor '${primaryColor}'. Falling back. ${message}`);\n return resolveModePrimaryColor(FALLBACK_PRIMARY_COLOR, mode);\n }\n\n throw error instanceof Error ? error : new Error(message);\n }\n\n const targetLightness = resolveModePrimaryTargetLightness(mode);\n const maxChroma = resolveModePrimaryMaxChroma(mode);\n\n const blendedLightness = seed.l + (targetLightness - seed.l) * LIGHTNESS_BLEND;\n const boundedLightness = clampNumber(blendedLightness, 0.12, 0.92);\n\n const cappedChroma = clampNumber(seed.c, 0, maxChroma);\n const boundedChroma =\n seed.c < MIN_PRIMARY_CHROMA ? cappedChroma : Math.max(cappedChroma, MIN_PRIMARY_CHROMA);\n\n const derived = clampOklchToGamut({\n l: boundedLightness,\n c: boundedChroma,\n h: seed.h,\n });\n\n return formatOklchAsHex(derived);\n}\n"]}
@@ -0,0 +1,6 @@
1
+ export interface ZoraOklchColor {
2
+ l: number;
3
+ c: number;
4
+ h: number;
5
+ }
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/internal/color/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/internal/color/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface ZoraOklchColor {\n l: number;\n c: number;\n h: number;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { AppShellProps } from './types';
3
- export declare function AppShell({ children, header, footer, overlay, style, bodyStyle, testID, }: AppShellProps): React.JSX.Element;
3
+ export declare const AppShell: (props: AppShellProps) => React.ReactElement | null;
4
4
  //# sourceMappingURL=AppShell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../src/layout/app-shell/AppShell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,GACP,EAAE,aAAa,qBAkBf"}
1
+ {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../src/layout/app-shell/AppShell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAgC7C,eAAO,MAAM,QAAQ,qDAAoC,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { Box } from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
  import { StyleSheet, View } from 'react-native';
4
- export function AppShell({ children, header, footer, overlay, style, bodyStyle, testID, }) {
4
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
+ function AppShellInner({ themeId: _themeId, mode: _mode, children, header, footer, overlay, style, bodyStyle, testID, }) {
5
6
  return (<Box bg="background" flex={1} style={style} testID={testID}>
6
7
  <View style={styles.root}>
7
8
  {header ? <View style={styles.slot}>{header}</View> : null}
@@ -16,6 +17,7 @@ export function AppShell({ children, header, footer, overlay, style, bodyStyle,
16
17
  </View>
17
18
  </Box>);
18
19
  }
20
+ export const AppShell = withZoraThemeScope(AppShellInner);
19
21
  const styles = StyleSheet.create({
20
22
  root: {
21
23
  flex: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.js","sourceRoot":"","sources":["../../../src/layout/app-shell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIhD,MAAM,UAAU,QAAQ,CAAC,EACvB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,GACQ;IACd,OAAO,CACL,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACzD;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACvB;QAAA,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAE1D;;QAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,CAEvD;;QAAA,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAE1D;;QAAA,CAAC,OAAO,CAAC,CAAC,CAAC,CACT,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CACnD;YAAA,CAAC,OAAO,CACV;UAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACV;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;QACP,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,UAAU;KACrB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;QACP,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,CAAC;KACZ;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,CAAC;KACd;IACD,OAAO,EAAE;QACP,GAAG,UAAU,CAAC,kBAAkB;QAChC,MAAM,EAAE,EAAE;KACX;CACF,CAAC,CAAC","sourcesContent":["import { Box } from '@ankhorage/surface';\nimport React from 'react';\nimport { StyleSheet, View } from 'react-native';\n\nimport type { AppShellProps } from './types';\n\nexport function AppShell({\n children,\n header,\n footer,\n overlay,\n style,\n bodyStyle,\n testID,\n}: AppShellProps) {\n return (\n <Box bg=\"background\" flex={1} style={style} testID={testID}>\n <View style={styles.root}>\n {header ? <View style={styles.slot}>{header}</View> : null}\n\n <View style={[styles.body, bodyStyle]}>{children}</View>\n\n {footer ? <View style={styles.slot}>{footer}</View> : null}\n\n {overlay ? (\n <View pointerEvents=\"box-none\" style={styles.overlay}>\n {overlay}\n </View>\n ) : null}\n </View>\n </Box>\n );\n}\n\nconst styles = StyleSheet.create({\n root: {\n flex: 1,\n minHeight: 0,\n position: 'relative',\n },\n body: {\n flex: 1,\n minHeight: 0,\n minWidth: 0,\n },\n slot: {\n flexShrink: 0,\n },\n overlay: {\n ...StyleSheet.absoluteFillObject,\n zIndex: 10,\n },\n});\n"]}
1
+ {"version":3,"file":"AppShell.js","sourceRoot":"","sources":["../../../src/layout/app-shell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,aAAa,CAAC,EACrB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,QAAQ,EACR,MAAM,EACN,MAAM,EACN,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,GACQ;IACd,OAAO,CACL,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACzD;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACvB;QAAA,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAE1D;;QAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,CAEvD;;QAAA,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAE1D;;QAAA,CAAC,OAAO,CAAC,CAAC,CAAC,CACT,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CACnD;YAAA,CAAC,OAAO,CACV;UAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACV;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC;AAE1D,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;QACP,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,UAAU;KACrB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;QACP,SAAS,EAAE,CAAC;QACZ,QAAQ,EAAE,CAAC;KACZ;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,CAAC;KACd;IACD,OAAO,EAAE;QACP,GAAG,UAAU,CAAC,kBAAkB;QAChC,MAAM,EAAE,EAAE;KACX;CACF,CAAC,CAAC","sourcesContent":["import { Box } from '@ankhorage/surface';\nimport React from 'react';\nimport { StyleSheet, View } from 'react-native';\n\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { AppShellProps } from './types';\n\nfunction AppShellInner({\n themeId: _themeId,\n mode: _mode,\n children,\n header,\n footer,\n overlay,\n style,\n bodyStyle,\n testID,\n}: AppShellProps) {\n return (\n <Box bg=\"background\" flex={1} style={style} testID={testID}>\n <View style={styles.root}>\n {header ? <View style={styles.slot}>{header}</View> : null}\n\n <View style={[styles.body, bodyStyle]}>{children}</View>\n\n {footer ? <View style={styles.slot}>{footer}</View> : null}\n\n {overlay ? (\n <View pointerEvents=\"box-none\" style={styles.overlay}>\n {overlay}\n </View>\n ) : null}\n </View>\n </Box>\n );\n}\n\nexport const AppShell = withZoraThemeScope(AppShellInner);\n\nconst styles = StyleSheet.create({\n root: {\n flex: 1,\n minHeight: 0,\n position: 'relative',\n },\n body: {\n flex: 1,\n minHeight: 0,\n minWidth: 0,\n },\n slot: {\n flexShrink: 0,\n },\n overlay: {\n ...StyleSheet.absoluteFillObject,\n zIndex: 10,\n },\n});\n"]}
@@ -1,12 +1,12 @@
1
1
  import type React from 'react';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
- export interface AppShellProps {
3
+ import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
+ export interface AppShellProps extends ZoraBaseProps {
4
5
  children?: React.ReactNode;
5
6
  header?: React.ReactNode;
6
7
  footer?: React.ReactNode;
7
8
  overlay?: React.ReactNode;
8
9
  style?: StyleProp<ViewStyle>;
9
10
  bodyStyle?: StyleProp<ViewStyle>;
10
- testID?: string;
11
11
  }
12
12
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/layout/app-shell/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/layout/app-shell/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/layout/app-shell/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\n\nexport interface AppShellProps {\n children?: React.ReactNode;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n overlay?: React.ReactNode;\n style?: StyleProp<ViewStyle>;\n bodyStyle?: StyleProp<ViewStyle>;\n testID?: string;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/layout/app-shell/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface AppShellProps extends ZoraBaseProps {\n children?: React.ReactNode;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n overlay?: React.ReactNode;\n style?: StyleProp<ViewStyle>;\n bodyStyle?: StyleProp<ViewStyle>;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { AuthLayoutProps } from './types';
3
- export declare function AuthLayout({ title, description, eyebrow, children, footer, testID, }: AuthLayoutProps): React.JSX.Element;
3
+ export declare const AuthLayout: (props: AuthLayoutProps) => React.ReactElement | null;
4
4
  //# sourceMappingURL=AuthLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthLayout.d.ts","sourceRoot":"","sources":["../../../src/layout/auth-layout/AuthLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,GACP,EAAE,eAAe,qBAejB"}
1
+ {"version":3,"file":"AuthLayout.d.ts","sourceRoot":"","sources":["../../../src/layout/auth-layout/AuthLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA4B/C,eAAO,MAAM,UAAU,uDAAsC,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import { Center, Stack } from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
  import { Card } from '../../components/card';
4
- export function AuthLayout({ title, description, eyebrow, children, footer, testID, }) {
4
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
+ function AuthLayoutInner({ themeId: _themeId, mode: _mode, title, description, eyebrow, children, footer, testID, }) {
5
6
  return (<Center py="xl" testID={testID}>
6
7
  <Card compact description={description} eyebrow={eyebrow} footer={footer} title={title} tone="default">
7
8
  <Stack gap="m">{children}</Stack>
8
9
  </Card>
9
10
  </Center>);
10
11
  }
12
+ export const AuthLayout = withZoraThemeScope(AuthLayoutInner);
11
13
  //# sourceMappingURL=AuthLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthLayout.js","sourceRoot":"","sources":["../../../src/layout/auth-layout/AuthLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,MAAM,UAAU,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,GACU;IAChB,OAAO,CACL,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAC7B;MAAA,CAAC,IAAI,CACH,OAAO,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,CAAC,SAAS,CAEd;QAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,CAClC;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC","sourcesContent":["import { Center, Stack } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { Card } from '../../components/card';\nimport type { AuthLayoutProps } from './types';\n\nexport function AuthLayout({\n title,\n description,\n eyebrow,\n children,\n footer,\n testID,\n}: AuthLayoutProps) {\n return (\n <Center py=\"xl\" testID={testID}>\n <Card\n compact\n description={description}\n eyebrow={eyebrow}\n footer={footer}\n title={title}\n tone=\"default\"\n >\n <Stack gap=\"m\">{children}</Stack>\n </Card>\n </Center>\n );\n}\n"]}
1
+ {"version":3,"file":"AuthLayout.js","sourceRoot":"","sources":["../../../src/layout/auth-layout/AuthLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,eAAe,CAAC,EACvB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,GACU;IAChB,OAAO,CACL,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAC7B;MAAA,CAAC,IAAI,CACH,OAAO,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,CAAC,SAAS,CAEd;QAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,CAClC;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import { Center, Stack } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { Card } from '../../components/card';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { AuthLayoutProps } from './types';\n\nfunction AuthLayoutInner({\n themeId: _themeId,\n mode: _mode,\n title,\n description,\n eyebrow,\n children,\n footer,\n testID,\n}: AuthLayoutProps) {\n return (\n <Center py=\"xl\" testID={testID}>\n <Card\n compact\n description={description}\n eyebrow={eyebrow}\n footer={footer}\n title={title}\n tone=\"default\"\n >\n <Stack gap=\"m\">{children}</Stack>\n </Card>\n </Center>\n );\n}\n\nexport const AuthLayout = withZoraThemeScope(AuthLayoutInner);\n"]}
@@ -1,10 +1,10 @@
1
1
  import type React from 'react';
2
- export interface AuthLayoutProps {
2
+ import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
3
+ export interface AuthLayoutProps extends ZoraBaseProps {
3
4
  title?: React.ReactNode;
4
5
  description?: React.ReactNode;
5
6
  eyebrow?: React.ReactNode;
6
7
  children?: React.ReactNode;
7
8
  footer?: React.ReactNode;
8
- testID?: string;
9
9
  }
10
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/layout/auth-layout/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/layout/auth-layout/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/layout/auth-layout/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nexport interface AuthLayoutProps {\n title?: React.ReactNode;\n description?: React.ReactNode;\n eyebrow?: React.ReactNode;\n children?: React.ReactNode;\n footer?: React.ReactNode;\n testID?: string;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/layout/auth-layout/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface AuthLayoutProps extends ZoraBaseProps {\n title?: React.ReactNode;\n description?: React.ReactNode;\n eyebrow?: React.ReactNode;\n children?: React.ReactNode;\n footer?: React.ReactNode;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { PageProps } from './types';
3
- export declare function Page({ children, header, footer, width, testID }: PageProps): React.JSX.Element;
3
+ export declare const Page: (props: PageProps) => React.ReactElement | null;
4
4
  //# sourceMappingURL=Page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/layout/page/Page.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAiB,EAAE,MAAM,EAAE,EAAE,SAAS,qBAUtF"}
1
+ {"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/layout/page/Page.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAsBzC,eAAO,MAAM,IAAI,iDAAgC,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { Container, Stack } from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
  import { resolvePageMaxWidth } from '../../internal/recipes';
4
- export function Page({ children, header, footer, width = 'default', testID }) {
4
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
+ function PageInner({ themeId: _themeId, mode: _mode, children, header, footer, width = 'default', testID, }) {
5
6
  return (<Container maxWidth={resolvePageMaxWidth(width)} py="xl" testID={testID}>
6
7
  <Stack gap="l">
7
8
  {header}
@@ -10,4 +11,5 @@ export function Page({ children, header, footer, width = 'default', testID }) {
10
11
  </Stack>
11
12
  </Container>);
12
13
  }
14
+ export const Page = withZoraThemeScope(PageInner);
13
15
  //# sourceMappingURL=Page.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../src/layout/page/Page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D,MAAM,UAAU,IAAI,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,MAAM,EAAa;IACrF,OAAO,CACL,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACtE;MAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CACZ;QAAA,CAAC,MAAM,CACP;QAAA,CAAC,QAAQ,CACT;QAAA,CAAC,MAAM,CACT;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC","sourcesContent":["import { Container, Stack } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { resolvePageMaxWidth } from '../../internal/recipes';\nimport type { PageProps } from './types';\n\nexport function Page({ children, header, footer, width = 'default', testID }: PageProps) {\n return (\n <Container maxWidth={resolvePageMaxWidth(width)} py=\"xl\" testID={testID}>\n <Stack gap=\"l\">\n {header}\n {children}\n {footer}\n </Stack>\n </Container>\n );\n}\n"]}
1
+ {"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../src/layout/page/Page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,SAAS,CAAC,EACjB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,QAAQ,EACR,MAAM,EACN,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,MAAM,GACI;IACV,OAAO,CACL,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CACtE;MAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CACZ;QAAA,CAAC,MAAM,CACP;QAAA,CAAC,QAAQ,CACT;QAAA,CAAC,MAAM,CACT;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,SAAS,CAAC,CACb,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import { Container, Stack } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { resolvePageMaxWidth } from '../../internal/recipes';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { PageProps } from './types';\n\nfunction PageInner({\n themeId: _themeId,\n mode: _mode,\n children,\n header,\n footer,\n width = 'default',\n testID,\n}: PageProps) {\n return (\n <Container maxWidth={resolvePageMaxWidth(width)} py=\"xl\" testID={testID}>\n <Stack gap=\"l\">\n {header}\n {children}\n {footer}\n </Stack>\n </Container>\n );\n}\n\nexport const Page = withZoraThemeScope(PageInner);\n"]}
@@ -1,10 +1,10 @@
1
1
  import type React from 'react';
2
2
  import type { ZoraContentWidth } from '../../internal/recipes';
3
- export interface PageProps {
3
+ import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
+ export interface PageProps extends ZoraBaseProps {
4
5
  children?: React.ReactNode;
5
6
  header?: React.ReactNode;
6
7
  footer?: React.ReactNode;
7
8
  width?: ZoraContentWidth;
8
- testID?: string;
9
9
  }
10
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/layout/page/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/layout/page/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/layout/page/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraContentWidth } from '../../internal/recipes';\n\nexport interface PageProps {\n children?: React.ReactNode;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n width?: ZoraContentWidth;\n testID?: string;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/layout/page/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraContentWidth } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface PageProps extends ZoraBaseProps {\n children?: React.ReactNode;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n width?: ZoraContentWidth;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { PageHeaderProps } from './types';
3
- export declare function PageHeader({ title, description, eyebrow, actions, meta, testID, }: PageHeaderProps): React.JSX.Element;
3
+ export declare const PageHeader: (props: PageHeaderProps) => React.ReactElement | null;
4
4
  //# sourceMappingURL=PageHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/layout/page-header/PageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,OAAO,EACP,OAAO,EACP,IAAI,EACJ,MAAM,GACP,EAAE,eAAe,qBA4BjB"}
1
+ {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/layout/page-header/PageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAyC/C,eAAO,MAAM,UAAU,uDAAsC,CAAC"}
@@ -2,7 +2,8 @@ import { Box, Stack } from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
  import { Heading } from '../../components/heading';
4
4
  import { Text } from '../../components/text';
5
- export function PageHeader({ title, description, eyebrow, actions, meta, testID, }) {
5
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
+ function PageHeaderInner({ themeId: _themeId, mode: _mode, title, description, eyebrow, actions, meta, testID, }) {
6
7
  return (<Stack align={{ base: 'flex-start', md: 'center' }} direction={{ base: 'column', md: 'row' }} gap="l" justify="space-between" testID={testID}>
7
8
  <Box flex={1}>
8
9
  <Stack gap="s">
@@ -19,4 +20,5 @@ export function PageHeader({ title, description, eyebrow, actions, meta, testID,
19
20
  {actions ? <Box>{actions}</Box> : null}
20
21
  </Stack>);
21
22
  }
23
+ export const PageHeader = withZoraThemeScope(PageHeaderInner);
22
24
  //# sourceMappingURL=PageHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.js","sourceRoot":"","sources":["../../../src/layout/page-header/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,MAAM,UAAU,UAAU,CAAC,EACzB,KAAK,EACL,WAAW,EACX,OAAO,EACP,OAAO,EACP,IAAI,EACJ,MAAM,GACU;IAChB,OAAO,CACL,CAAC,KAAK,CACJ,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAC5C,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CACzC,GAAG,CAAC,GAAG,CACP,OAAO,CAAC,eAAe,CACvB,MAAM,CAAC,CAAC,MAAM,CAAC,CAEf;MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACX;QAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CACZ;UAAA,CAAC,OAAO,CAAC,CAAC,CAAC,CACT,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CACpD;cAAA,CAAC,OAAO,CACV;YAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACR;UAAA,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,CACnC;UAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAC/B;cAAA,CAAC,WAAW,CACd;YAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACR;UAAA,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAC1C;QAAA,EAAE,KAAK,CACT;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CACxC;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC","sourcesContent":["import { Box, Stack } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { Heading } from '../../components/heading';\nimport { Text } from '../../components/text';\nimport type { PageHeaderProps } from './types';\n\nexport function PageHeader({\n title,\n description,\n eyebrow,\n actions,\n meta,\n testID,\n}: PageHeaderProps) {\n return (\n <Stack\n align={{ base: 'flex-start', md: 'center' }}\n direction={{ base: 'column', md: 'row' }}\n gap=\"l\"\n justify=\"space-between\"\n testID={testID}\n >\n <Box flex={1}>\n <Stack gap=\"s\">\n {eyebrow ? (\n <Text tone=\"muted\" variant=\"caption\" weight=\"semiBold\">\n {eyebrow}\n </Text>\n ) : null}\n <Heading level={1}>{title}</Heading>\n {description ? (\n <Text tone=\"muted\" variant=\"body\">\n {description}\n </Text>\n ) : null}\n {meta ? <Box pt=\"xs\">{meta}</Box> : null}\n </Stack>\n </Box>\n {actions ? <Box>{actions}</Box> : null}\n </Stack>\n );\n}\n"]}
1
+ {"version":3,"file":"PageHeader.js","sourceRoot":"","sources":["../../../src/layout/page-header/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,eAAe,CAAC,EACvB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EACL,WAAW,EACX,OAAO,EACP,OAAO,EACP,IAAI,EACJ,MAAM,GACU;IAChB,OAAO,CACL,CAAC,KAAK,CACJ,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAC5C,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CACzC,GAAG,CAAC,GAAG,CACP,OAAO,CAAC,eAAe,CACvB,MAAM,CAAC,CAAC,MAAM,CAAC,CAEf;MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACX;QAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CACZ;UAAA,CAAC,OAAO,CAAC,CAAC,CAAC,CACT,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CACpD;cAAA,CAAC,OAAO,CACV;YAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACR;UAAA,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,CACnC;UAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAC/B;cAAA,CAAC,WAAW,CACd;YAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACR;UAAA,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAC1C;QAAA,EAAE,KAAK,CACT;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CACxC;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import { Box, Stack } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { Heading } from '../../components/heading';\nimport { Text } from '../../components/text';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { PageHeaderProps } from './types';\n\nfunction PageHeaderInner({\n themeId: _themeId,\n mode: _mode,\n title,\n description,\n eyebrow,\n actions,\n meta,\n testID,\n}: PageHeaderProps) {\n return (\n <Stack\n align={{ base: 'flex-start', md: 'center' }}\n direction={{ base: 'column', md: 'row' }}\n gap=\"l\"\n justify=\"space-between\"\n testID={testID}\n >\n <Box flex={1}>\n <Stack gap=\"s\">\n {eyebrow ? (\n <Text tone=\"muted\" variant=\"caption\" weight=\"semiBold\">\n {eyebrow}\n </Text>\n ) : null}\n <Heading level={1}>{title}</Heading>\n {description ? (\n <Text tone=\"muted\" variant=\"body\">\n {description}\n </Text>\n ) : null}\n {meta ? <Box pt=\"xs\">{meta}</Box> : null}\n </Stack>\n </Box>\n {actions ? <Box>{actions}</Box> : null}\n </Stack>\n );\n}\n\nexport const PageHeader = withZoraThemeScope(PageHeaderInner);\n"]}
@@ -1,10 +1,10 @@
1
1
  import type React from 'react';
2
- export interface PageHeaderProps {
2
+ import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
3
+ export interface PageHeaderProps extends ZoraBaseProps {
3
4
  title: React.ReactNode;
4
5
  description?: React.ReactNode;
5
6
  eyebrow?: React.ReactNode;
6
7
  actions?: React.ReactNode;
7
8
  meta?: React.ReactNode;
8
- testID?: string;
9
9
  }
10
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/layout/page-header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/layout/page-header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/layout/page-header/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nexport interface PageHeaderProps {\n title: React.ReactNode;\n description?: React.ReactNode;\n eyebrow?: React.ReactNode;\n actions?: React.ReactNode;\n meta?: React.ReactNode;\n testID?: string;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/layout/page-header/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface PageHeaderProps extends ZoraBaseProps {\n title: React.ReactNode;\n description?: React.ReactNode;\n eyebrow?: React.ReactNode;\n actions?: React.ReactNode;\n meta?: React.ReactNode;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { PageSectionProps } from './types';
3
- export declare function PageSection({ title, description, actions, children, testID }: PageSectionProps): React.JSX.Element;
3
+ export declare const PageSection: (props: PageSectionProps) => React.ReactElement | null;
4
4
  //# sourceMappingURL=PageSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageSection.d.ts","sourceRoot":"","sources":["../../../src/layout/page-section/PageSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,gBAAgB,qBAO9F"}
1
+ {"version":3,"file":"PageSection.d.ts","sourceRoot":"","sources":["../../../src/layout/page-section/PageSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAmBhD,eAAO,MAAM,WAAW,wDAAuC,CAAC"}
@@ -1,10 +1,12 @@
1
1
  import { Stack } from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
  import { SectionHeader } from '../../patterns/section-header';
4
- export function PageSection({ title, description, actions, children, testID }) {
4
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
+ function PageSectionInner({ themeId: _themeId, mode: _mode, title, description, actions, children, testID, }) {
5
6
  return (<Stack gap="m" testID={testID}>
6
7
  {title ? <SectionHeader actions={actions} description={description} title={title}/> : null}
7
8
  {children}
8
9
  </Stack>);
9
10
  }
11
+ export const PageSection = withZoraThemeScope(PageSectionInner);
10
12
  //# sourceMappingURL=PageSection.js.map