@ankhorage/zora 0.10.0 → 0.11.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 (443) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +23 -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/layout/app-shell/AppShell.d.ts +1 -1
  170. package/dist/layout/app-shell/AppShell.d.ts.map +1 -1
  171. package/dist/layout/app-shell/AppShell.js +3 -1
  172. package/dist/layout/app-shell/AppShell.js.map +1 -1
  173. package/dist/layout/app-shell/types.d.ts +2 -2
  174. package/dist/layout/app-shell/types.d.ts.map +1 -1
  175. package/dist/layout/app-shell/types.js.map +1 -1
  176. package/dist/layout/auth-layout/AuthLayout.d.ts +1 -1
  177. package/dist/layout/auth-layout/AuthLayout.d.ts.map +1 -1
  178. package/dist/layout/auth-layout/AuthLayout.js +3 -1
  179. package/dist/layout/auth-layout/AuthLayout.js.map +1 -1
  180. package/dist/layout/auth-layout/types.d.ts +2 -2
  181. package/dist/layout/auth-layout/types.d.ts.map +1 -1
  182. package/dist/layout/auth-layout/types.js.map +1 -1
  183. package/dist/layout/page/Page.d.ts +1 -1
  184. package/dist/layout/page/Page.d.ts.map +1 -1
  185. package/dist/layout/page/Page.js +3 -1
  186. package/dist/layout/page/Page.js.map +1 -1
  187. package/dist/layout/page/types.d.ts +2 -2
  188. package/dist/layout/page/types.d.ts.map +1 -1
  189. package/dist/layout/page/types.js.map +1 -1
  190. package/dist/layout/page-header/PageHeader.d.ts +1 -1
  191. package/dist/layout/page-header/PageHeader.d.ts.map +1 -1
  192. package/dist/layout/page-header/PageHeader.js +3 -1
  193. package/dist/layout/page-header/PageHeader.js.map +1 -1
  194. package/dist/layout/page-header/types.d.ts +2 -2
  195. package/dist/layout/page-header/types.d.ts.map +1 -1
  196. package/dist/layout/page-header/types.js.map +1 -1
  197. package/dist/layout/page-section/PageSection.d.ts +1 -1
  198. package/dist/layout/page-section/PageSection.d.ts.map +1 -1
  199. package/dist/layout/page-section/PageSection.js +3 -1
  200. package/dist/layout/page-section/PageSection.js.map +1 -1
  201. package/dist/layout/page-section/types.d.ts +2 -2
  202. package/dist/layout/page-section/types.d.ts.map +1 -1
  203. package/dist/layout/page-section/types.js.map +1 -1
  204. package/dist/layout/settings-layout/SettingsLayout.d.ts +1 -1
  205. package/dist/layout/settings-layout/SettingsLayout.d.ts.map +1 -1
  206. package/dist/layout/settings-layout/SettingsLayout.js +3 -1
  207. package/dist/layout/settings-layout/SettingsLayout.js.map +1 -1
  208. package/dist/layout/settings-layout/types.d.ts +2 -2
  209. package/dist/layout/settings-layout/types.d.ts.map +1 -1
  210. package/dist/layout/settings-layout/types.js.map +1 -1
  211. package/dist/layout/sidebar-layout/SidebarLayout.d.ts +1 -1
  212. package/dist/layout/sidebar-layout/SidebarLayout.d.ts.map +1 -1
  213. package/dist/layout/sidebar-layout/SidebarLayout.js +3 -1
  214. package/dist/layout/sidebar-layout/SidebarLayout.js.map +1 -1
  215. package/dist/layout/sidebar-layout/types.d.ts +2 -2
  216. package/dist/layout/sidebar-layout/types.d.ts.map +1 -1
  217. package/dist/layout/sidebar-layout/types.js.map +1 -1
  218. package/dist/layout/topbar-layout/TopbarLayout.d.ts +1 -1
  219. package/dist/layout/topbar-layout/TopbarLayout.d.ts.map +1 -1
  220. package/dist/layout/topbar-layout/TopbarLayout.js +3 -1
  221. package/dist/layout/topbar-layout/TopbarLayout.js.map +1 -1
  222. package/dist/layout/topbar-layout/types.d.ts +2 -2
  223. package/dist/layout/topbar-layout/types.d.ts.map +1 -1
  224. package/dist/layout/topbar-layout/types.js.map +1 -1
  225. package/dist/patterns/auth/ForgotPasswordForm.d.ts +1 -1
  226. package/dist/patterns/auth/ForgotPasswordForm.d.ts.map +1 -1
  227. package/dist/patterns/auth/ForgotPasswordForm.js +3 -1
  228. package/dist/patterns/auth/ForgotPasswordForm.js.map +1 -1
  229. package/dist/patterns/auth/OtpForm.d.ts +1 -1
  230. package/dist/patterns/auth/OtpForm.d.ts.map +1 -1
  231. package/dist/patterns/auth/OtpForm.js +3 -1
  232. package/dist/patterns/auth/OtpForm.js.map +1 -1
  233. package/dist/patterns/auth/SignInForm.d.ts +1 -1
  234. package/dist/patterns/auth/SignInForm.d.ts.map +1 -1
  235. package/dist/patterns/auth/SignInForm.js +3 -1
  236. package/dist/patterns/auth/SignInForm.js.map +1 -1
  237. package/dist/patterns/auth/SignUpForm.d.ts +1 -1
  238. package/dist/patterns/auth/SignUpForm.d.ts.map +1 -1
  239. package/dist/patterns/auth/SignUpForm.js +3 -1
  240. package/dist/patterns/auth/SignUpForm.js.map +1 -1
  241. package/dist/patterns/auth/types.d.ts +2 -2
  242. package/dist/patterns/auth/types.d.ts.map +1 -1
  243. package/dist/patterns/auth/types.js.map +1 -1
  244. package/dist/patterns/collection-editor/CollectionEditor.d.ts +1 -1
  245. package/dist/patterns/collection-editor/CollectionEditor.d.ts.map +1 -1
  246. package/dist/patterns/collection-editor/CollectionEditor.js +3 -1
  247. package/dist/patterns/collection-editor/CollectionEditor.js.map +1 -1
  248. package/dist/patterns/collection-editor/types.d.ts +2 -2
  249. package/dist/patterns/collection-editor/types.d.ts.map +1 -1
  250. package/dist/patterns/collection-editor/types.js.map +1 -1
  251. package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts +1 -1
  252. package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts.map +1 -1
  253. package/dist/patterns/confirm-dialog/ConfirmDialog.js +3 -1
  254. package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
  255. package/dist/patterns/confirm-dialog/types.d.ts +2 -2
  256. package/dist/patterns/confirm-dialog/types.d.ts.map +1 -1
  257. package/dist/patterns/confirm-dialog/types.js.map +1 -1
  258. package/dist/patterns/disclosure-section/DisclosureSection.d.ts +1 -1
  259. package/dist/patterns/disclosure-section/DisclosureSection.d.ts.map +1 -1
  260. package/dist/patterns/disclosure-section/DisclosureSection.js +3 -1
  261. package/dist/patterns/disclosure-section/DisclosureSection.js.map +1 -1
  262. package/dist/patterns/disclosure-section/types.d.ts +2 -2
  263. package/dist/patterns/disclosure-section/types.d.ts.map +1 -1
  264. package/dist/patterns/disclosure-section/types.js.map +1 -1
  265. package/dist/patterns/empty-state/EmptyState.d.ts +1 -1
  266. package/dist/patterns/empty-state/EmptyState.d.ts.map +1 -1
  267. package/dist/patterns/empty-state/EmptyState.js +3 -1
  268. package/dist/patterns/empty-state/EmptyState.js.map +1 -1
  269. package/dist/patterns/empty-state/types.d.ts +2 -2
  270. package/dist/patterns/empty-state/types.d.ts.map +1 -1
  271. package/dist/patterns/empty-state/types.js.map +1 -1
  272. package/dist/patterns/form-field/FormField.d.ts +1 -1
  273. package/dist/patterns/form-field/FormField.d.ts.map +1 -1
  274. package/dist/patterns/form-field/FormField.js +3 -1
  275. package/dist/patterns/form-field/FormField.js.map +1 -1
  276. package/dist/patterns/form-field/types.d.ts +2 -1
  277. package/dist/patterns/form-field/types.d.ts.map +1 -1
  278. package/dist/patterns/form-field/types.js.map +1 -1
  279. package/dist/patterns/inspector-field/InspectorField.d.ts +1 -1
  280. package/dist/patterns/inspector-field/InspectorField.d.ts.map +1 -1
  281. package/dist/patterns/inspector-field/InspectorField.js +3 -1
  282. package/dist/patterns/inspector-field/InspectorField.js.map +1 -1
  283. package/dist/patterns/inspector-field/types.d.ts +2 -2
  284. package/dist/patterns/inspector-field/types.d.ts.map +1 -1
  285. package/dist/patterns/inspector-field/types.js.map +1 -1
  286. package/dist/patterns/notice/Notice.d.ts +1 -1
  287. package/dist/patterns/notice/Notice.d.ts.map +1 -1
  288. package/dist/patterns/notice/Notice.js +3 -1
  289. package/dist/patterns/notice/Notice.js.map +1 -1
  290. package/dist/patterns/notice/types.d.ts +2 -2
  291. package/dist/patterns/notice/types.d.ts.map +1 -1
  292. package/dist/patterns/notice/types.js.map +1 -1
  293. package/dist/patterns/panel/Panel.d.ts +1 -1
  294. package/dist/patterns/panel/Panel.d.ts.map +1 -1
  295. package/dist/patterns/responsive-panel/ResponsivePanel.d.ts +1 -1
  296. package/dist/patterns/responsive-panel/ResponsivePanel.d.ts.map +1 -1
  297. package/dist/patterns/responsive-panel/ResponsivePanel.js +3 -1
  298. package/dist/patterns/responsive-panel/ResponsivePanel.js.map +1 -1
  299. package/dist/patterns/responsive-panel/types.d.ts +2 -2
  300. package/dist/patterns/responsive-panel/types.d.ts.map +1 -1
  301. package/dist/patterns/responsive-panel/types.js.map +1 -1
  302. package/dist/patterns/section-header/SectionHeader.d.ts +1 -1
  303. package/dist/patterns/section-header/SectionHeader.d.ts.map +1 -1
  304. package/dist/patterns/section-header/SectionHeader.js +3 -1
  305. package/dist/patterns/section-header/SectionHeader.js.map +1 -1
  306. package/dist/patterns/section-header/types.d.ts +2 -2
  307. package/dist/patterns/section-header/types.d.ts.map +1 -1
  308. package/dist/patterns/section-header/types.js.map +1 -1
  309. package/dist/patterns/settings-row/SettingsRow.d.ts +1 -1
  310. package/dist/patterns/settings-row/SettingsRow.d.ts.map +1 -1
  311. package/dist/patterns/settings-row/SettingsRow.js +3 -1
  312. package/dist/patterns/settings-row/SettingsRow.js.map +1 -1
  313. package/dist/patterns/settings-row/types.d.ts +2 -2
  314. package/dist/patterns/settings-row/types.d.ts.map +1 -1
  315. package/dist/patterns/settings-row/types.js.map +1 -1
  316. package/dist/patterns/switch-field/SwitchField.d.ts +1 -1
  317. package/dist/patterns/switch-field/SwitchField.d.ts.map +1 -1
  318. package/dist/patterns/switch-field/SwitchField.js +3 -1
  319. package/dist/patterns/switch-field/SwitchField.js.map +1 -1
  320. package/dist/patterns/switch-field/types.d.ts +2 -2
  321. package/dist/patterns/switch-field/types.d.ts.map +1 -1
  322. package/dist/patterns/switch-field/types.js.map +1 -1
  323. package/dist/patterns/tile-grid/PaletteItem.d.ts +1 -1
  324. package/dist/patterns/tile-grid/PaletteItem.d.ts.map +1 -1
  325. package/dist/patterns/tile-grid/PaletteItem.js +6 -3
  326. package/dist/patterns/tile-grid/PaletteItem.js.map +1 -1
  327. package/dist/patterns/tile-grid/TileGrid.d.ts +1 -1
  328. package/dist/patterns/tile-grid/TileGrid.d.ts.map +1 -1
  329. package/dist/patterns/tile-grid/TileGrid.js +3 -1
  330. package/dist/patterns/tile-grid/TileGrid.js.map +1 -1
  331. package/dist/patterns/tile-grid/types.d.ts +3 -4
  332. package/dist/patterns/tile-grid/types.d.ts.map +1 -1
  333. package/dist/patterns/tile-grid/types.js.map +1 -1
  334. package/dist/patterns/tree-view/TreeItem.d.ts +3 -2
  335. package/dist/patterns/tree-view/TreeItem.d.ts.map +1 -1
  336. package/dist/patterns/tree-view/TreeItem.js +4 -2
  337. package/dist/patterns/tree-view/TreeItem.js.map +1 -1
  338. package/dist/patterns/tree-view/TreeView.d.ts +1 -1
  339. package/dist/patterns/tree-view/TreeView.d.ts.map +1 -1
  340. package/dist/patterns/tree-view/TreeView.js +3 -1
  341. package/dist/patterns/tree-view/TreeView.js.map +1 -1
  342. package/dist/patterns/tree-view/types.d.ts +2 -2
  343. package/dist/patterns/tree-view/types.d.ts.map +1 -1
  344. package/dist/patterns/tree-view/types.js.map +1 -1
  345. package/dist/theme/withZoraThemeScope.d.ts +1 -1
  346. package/dist/theme/withZoraThemeScope.d.ts.map +1 -1
  347. package/dist/theme/withZoraThemeScope.js +2 -2
  348. package/dist/theme/withZoraThemeScope.js.map +1 -1
  349. package/package.json +1 -1
  350. package/src/components/badge/Badge.tsx +12 -1
  351. package/src/components/badge/types.ts +5 -4
  352. package/src/components/checkbox/Checkbox.tsx +11 -0
  353. package/src/components/checkbox/CheckboxGroup.tsx +6 -1
  354. package/src/components/checkbox/index.ts +2 -3
  355. package/src/components/checkbox/types.ts +13 -5
  356. package/src/components/drawer/Drawer.tsx +13 -1
  357. package/src/components/drawer/types.ts +9 -4
  358. package/src/components/form/Form.tsx +6 -1
  359. package/src/components/form/FormActions.tsx +6 -1
  360. package/src/components/form/FormError.tsx +7 -3
  361. package/src/components/form/FormField.tsx +24 -3
  362. package/src/components/form/types.ts +12 -12
  363. package/src/components/icon/Icon.tsx +1 -1
  364. package/src/components/input/Input.tsx +13 -2
  365. package/src/components/input/types.ts +8 -4
  366. package/src/components/modal/Modal.tsx +6 -1
  367. package/src/components/modal/types.ts +5 -4
  368. package/src/components/radio/Radio.tsx +11 -0
  369. package/src/components/radio/RadioGroup.tsx +6 -1
  370. package/src/components/radio/index.ts +2 -3
  371. package/src/components/radio/types.ts +12 -5
  372. package/src/components/select/Select.tsx +9 -3
  373. package/src/components/select/types.ts +3 -2
  374. package/src/components/tabs/Tabs.tsx +9 -3
  375. package/src/components/tabs/types.ts +2 -2
  376. package/src/components/textarea/Textarea.tsx +13 -2
  377. package/src/components/textarea/types.ts +8 -4
  378. package/src/components/toolbar/Toolbar.tsx +6 -1
  379. package/src/components/toolbar/ToolbarAction.tsx +9 -1
  380. package/src/components/toolbar/types.ts +4 -4
  381. package/src/foundation/Box.tsx +13 -0
  382. package/src/foundation/Center.tsx +16 -0
  383. package/src/foundation/Container.tsx +17 -0
  384. package/src/foundation/Divider.tsx +17 -0
  385. package/src/foundation/Grid.tsx +13 -0
  386. package/src/foundation/Inline.tsx +16 -0
  387. package/src/foundation/Show.tsx +13 -0
  388. package/src/foundation/Spacer.tsx +16 -0
  389. package/src/foundation/Stack.tsx +13 -0
  390. package/src/foundation/Surface.tsx +20 -0
  391. package/src/foundation/index.test.ts +2 -2
  392. package/src/foundation/index.ts +20 -25
  393. package/src/layout/app-shell/AppShell.tsx +6 -1
  394. package/src/layout/app-shell/types.ts +3 -2
  395. package/src/layout/auth-layout/AuthLayout.tsx +6 -1
  396. package/src/layout/auth-layout/types.ts +3 -2
  397. package/src/layout/page/Page.tsx +12 -1
  398. package/src/layout/page/types.ts +2 -2
  399. package/src/layout/page-header/PageHeader.tsx +6 -1
  400. package/src/layout/page-header/types.ts +3 -2
  401. package/src/layout/page-section/PageSection.tsx +12 -1
  402. package/src/layout/page-section/types.ts +3 -2
  403. package/src/layout/settings-layout/SettingsLayout.tsx +6 -1
  404. package/src/layout/settings-layout/types.ts +3 -2
  405. package/src/layout/sidebar-layout/SidebarLayout.tsx +6 -1
  406. package/src/layout/sidebar-layout/types.ts +3 -2
  407. package/src/layout/topbar-layout/TopbarLayout.tsx +11 -1
  408. package/src/layout/topbar-layout/types.ts +3 -2
  409. package/src/patterns/auth/ForgotPasswordForm.tsx +6 -1
  410. package/src/patterns/auth/OtpForm.tsx +6 -1
  411. package/src/patterns/auth/SignInForm.tsx +6 -1
  412. package/src/patterns/auth/SignUpForm.tsx +6 -1
  413. package/src/patterns/auth/types.ts +2 -2
  414. package/src/patterns/collection-editor/CollectionEditor.tsx +6 -1
  415. package/src/patterns/collection-editor/types.ts +3 -2
  416. package/src/patterns/confirm-dialog/ConfirmDialog.tsx +6 -1
  417. package/src/patterns/confirm-dialog/types.ts +2 -2
  418. package/src/patterns/disclosure-section/DisclosureSection.tsx +6 -1
  419. package/src/patterns/disclosure-section/types.ts +3 -2
  420. package/src/patterns/empty-state/EmptyState.tsx +6 -1
  421. package/src/patterns/empty-state/types.ts +2 -2
  422. package/src/patterns/form-field/FormField.tsx +12 -1
  423. package/src/patterns/form-field/types.ts +9 -4
  424. package/src/patterns/inspector-field/InspectorField.tsx +11 -1
  425. package/src/patterns/inspector-field/types.ts +3 -2
  426. package/src/patterns/notice/Notice.tsx +6 -1
  427. package/src/patterns/notice/types.ts +2 -2
  428. package/src/patterns/responsive-panel/ResponsivePanel.tsx +6 -1
  429. package/src/patterns/responsive-panel/types.ts +3 -2
  430. package/src/patterns/section-header/SectionHeader.tsx +6 -1
  431. package/src/patterns/section-header/types.ts +3 -2
  432. package/src/patterns/settings-row/SettingsRow.tsx +6 -1
  433. package/src/patterns/settings-row/types.ts +3 -2
  434. package/src/patterns/switch-field/SwitchField.tsx +6 -1
  435. package/src/patterns/switch-field/types.ts +3 -2
  436. package/src/patterns/tile-grid/PaletteItem.tsx +9 -3
  437. package/src/patterns/tile-grid/TileGrid.tsx +6 -1
  438. package/src/patterns/tile-grid/types.ts +4 -4
  439. package/src/patterns/tree-view/TreeItem.tsx +10 -3
  440. package/src/patterns/tree-view/TreeView.tsx +6 -1
  441. package/src/patterns/tree-view/types.ts +3 -2
  442. package/src/theme/themeScopeStructure.test.ts +186 -65
  443. package/src/theme/withZoraThemeScope.tsx +8 -7
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/select/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;IACzC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,YAAY,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,aAAa;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;IACzC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/select/types.ts"],"names":[],"mappings":"","sourcesContent":["export interface SelectOption<TValue extends string = string> {\n value: TValue;\n label: string;\n disabled?: boolean;\n}\n\nexport interface SelectProps<TValue extends string = string> {\n value: TValue;\n options: readonly SelectOption<TValue>[];\n onValueChange: (value: TValue) => void;\n disabled?: boolean;\n invalid?: boolean;\n testID?: string;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/select/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface SelectOption<TValue extends string = string> {\n value: TValue;\n label: string;\n disabled?: boolean;\n}\n\nexport interface SelectProps<TValue extends string = string> extends ZoraBaseProps {\n value: TValue;\n options: readonly SelectOption<TValue>[];\n onValueChange: (value: TValue) => void;\n disabled?: boolean;\n invalid?: boolean;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { TabsProps } from './types';
3
- export declare function Tabs<TValue extends string = string>({ value, items, onValueChange, variant, size, disabled: tabsDisabled, testID, }: TabsProps<TValue>): React.JSX.Element;
3
+ export declare const Tabs: <TValue extends string = string>(props: TabsProps<TValue>) => React.ReactElement | null;
4
4
  //# sourceMappingURL=Tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAW,SAAS,EAAE,MAAM,SAAS,CAAC;AAElD,wBAAgB,IAAI,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,EACnD,KAAK,EACL,KAAK,EACL,aAAa,EACb,OAAqB,EACrB,IAAU,EACV,QAAQ,EAAE,YAAY,EACtB,MAAM,GACP,EAAE,SAAS,CAAC,MAAM,CAAC,qBAoFnB"}
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAW,SAAS,EAAE,MAAM,SAAS,CAAC;AAkGlD,eAAO,MAAM,IAAI,GAhGE,MAAM,SAAS,MAAM,iEAgGS,CAAC"}
@@ -1,9 +1,11 @@
1
- import { Box, Stack, useTheme } from '@ankhorage/surface';
1
+ import { Box, Stack } from '@ankhorage/surface';
2
2
  import React from 'react';
3
+ import { useZoraTheme } from '../../theme/useZoraTheme';
4
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
3
5
  import { Button } from '../button';
4
6
  import { Text } from '../text';
5
- export function Tabs({ value, items, onValueChange, variant = 'underline', size = 'm', disabled: tabsDisabled, testID, }) {
6
- const { theme } = useTheme();
7
+ function TabsInner({ themeId: _themeId, mode: _mode, value, items, onValueChange, variant = 'underline', size = 'm', disabled: tabsDisabled, testID, }) {
8
+ const { theme } = useZoraTheme();
7
9
  const renderTab = (item) => {
8
10
  const isActive = item.value === value;
9
11
  const isDisabled = tabsDisabled ?? item.disabled;
@@ -35,4 +37,5 @@ export function Tabs({ value, items, onValueChange, variant = 'underline', size
35
37
  {items.map(renderTab)}
36
38
  </Stack>);
37
39
  }
40
+ export const Tabs = withZoraThemeScope(TabsInner);
38
41
  //# sourceMappingURL=Tabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,UAAU,IAAI,CAAiC,EACnD,KAAK,EACL,KAAK,EACL,aAAa,EACb,OAAO,GAAG,WAAW,EACrB,IAAI,GAAG,GAAG,EACV,QAAQ,EAAE,YAAY,EACtB,MAAM,GACY;IAClB,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,CAAC;IAE7B,MAAM,SAAS,GAAG,CAAC,IAAqB,EAAE,EAAE;QAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC;QACtC,MAAM,UAAU,GAAG,YAAY,IAAI,IAAI,CAAC,QAAQ,CAAC;QAEjD,IAAI,OAAO,KAAK,WAAW,EAAE,CAAC;YAC5B,OAAO,CACL,CAAC,MAAM,CACL,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAChB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CACvC,IAAI,CAAC,SAAS,CACd,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CACzC,WAAW,CAAC,CAAC,IAAI,CAAC,IAA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ankhorage/surface';\nimport React from 'react';\n\nimport { Button } from '../button';\nimport { Text } from '../text';\nimport type { TabItem, TabsProps } from './types';\n\nexport function Tabs<TValue extends string = string>({\n value,\n items,\n onValueChange,\n variant = 'underline',\n size = 'm',\n disabled: tabsDisabled,\n testID,\n}: TabsProps<TValue>) {\n const { theme } = useTheme();\n\n const renderTab = (item: TabItem<TValue>) => {\n const isActive = item.value === value;\n const isDisabled = tabsDisabled ?? item.disabled;\n\n if (variant === 'segmented') {\n return (\n <Button\n key={item.value}\n emphasis={isActive ? 'solid' : 'ghost'}\n tone=\"neutral\"\n size={size}\n disabled={isDisabled}\n onPress={() => onValueChange(item.value)}\n leadingIcon={item.icon}\n testID={item.testID}\n >\n {item.label}\n {item.badge}\n </Button>\n );\n }\n\n if (variant === 'pill') {\n return (\n <Button\n key={item.value}\n emphasis={isActive ? 'soft' : 'ghost'}\n tone={isActive ? 'primary' : 'neutral'}\n size={size}\n disabled={isDisabled}\n onPress={() => onValueChange(item.value)}\n leadingIcon={item.icon}\n testID={item.testID}\n >\n {item.label}\n {item.badge}\n </Button>\n );\n }\n\n // Default: 'underline'\n return (\n <Box\n key={item.value}\n borderColor={isActive ? theme.colors.primary : 'transparent'}\n pb=\"xs\"\n style={{\n borderBottomWidth: 2,\n }}\n >\n <Button\n emphasis=\"ghost\"\n tone=\"neutral\"\n size={size}\n disabled={isDisabled}\n onPress={() => onValueChange(item.value)}\n leadingIcon={item.icon}\n testID={item.testID}\n >\n <Text tone={isActive ? 'primary' : 'muted'} weight={isActive ? 'semiBold' : 'regular'}>\n {item.label}\n </Text>\n {item.badge}\n </Button>\n </Box>\n );\n };\n\n return (\n <Stack\n direction=\"row\"\n gap={variant === 'segmented' ? 'none' : 'm'}\n align=\"center\"\n testID={testID}\n p={variant === 'segmented' ? 'xxs' : 'none'}\n bg={variant === 'segmented' ? 'subtle' : 'transparent'}\n radius={variant === 'segmented' ? 'm' : 'none'}\n >\n {items.map(renderTab)}\n </Stack>\n );\n}\n"]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AG,kBAAkB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import { Box, Stack } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { Button } from '../button';\nimport { Text } from '../text';\nimport type { TabItem, TabsProps } from './types';\n\nfunction TabsInner<TValue extends string = string>({\n themeId: _themeId,\n mode: _mode,\n value,\n items,\n onValueChange,\n variant = 'underline',\n size = 'm',\n disabled: tabsDisabled,\n testID,\n}: TabsProps<TValue>) {\n const { theme } = useZoraTheme();\n\n const renderTab = (item: TabItem<TValue>) => {\n const isActive = item.value === value;\n const isDisabled = tabsDisabled ?? item.disabled;\n\n if (variant === 'segmented') {\n return (\n <Button\n key={item.value}\n emphasis={isActive ? 'solid' : 'ghost'}\n tone=\"neutral\"\n size={size}\n disabled={isDisabled}\n onPress={() => onValueChange(item.value)}\n leadingIcon={item.icon}\n testID={item.testID}\n >\n {item.label}\n {item.badge}\n </Button>\n );\n }\n\n if (variant === 'pill') {\n return (\n <Button\n key={item.value}\n emphasis={isActive ? 'soft' : 'ghost'}\n tone={isActive ? 'primary' : 'neutral'}\n size={size}\n disabled={isDisabled}\n onPress={() => onValueChange(item.value)}\n leadingIcon={item.icon}\n testID={item.testID}\n >\n {item.label}\n {item.badge}\n </Button>\n );\n }\n\n // Default: 'underline'\n return (\n <Box\n key={item.value}\n borderColor={isActive ? theme.colors.primary : 'transparent'}\n pb=\"xs\"\n style={{\n borderBottomWidth: 2,\n }}\n >\n <Button\n emphasis=\"ghost\"\n tone=\"neutral\"\n size={size}\n disabled={isDisabled}\n onPress={() => onValueChange(item.value)}\n leadingIcon={item.icon}\n testID={item.testID}\n >\n <Text tone={isActive ? 'primary' : 'muted'} weight={isActive ? 'semiBold' : 'regular'}>\n {item.label}\n </Text>\n {item.badge}\n </Button>\n </Box>\n );\n };\n\n return (\n <Stack\n direction=\"row\"\n gap={variant === 'segmented' ? 'none' : 'm'}\n align=\"center\"\n testID={testID}\n p={variant === 'segmented' ? 'xxs' : 'none'}\n bg={variant === 'segmented' ? 'subtle' : 'transparent'}\n radius={variant === 'segmented' ? 'm' : 'none'}\n >\n {items.map(renderTab)}\n </Stack>\n );\n}\n\nexport const Tabs = withZoraThemeScope(TabsInner);\n"]}
@@ -1,6 +1,7 @@
1
1
  import type { ButtonIconSpec } from '@ankhorage/surface';
2
2
  import type { ReactNode } from 'react';
3
3
  import type { ZoraControlSize } from '../../internal/recipes';
4
+ import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
5
  export interface TabItem<TValue extends string = string> {
5
6
  value: TValue;
6
7
  label: ReactNode;
@@ -10,13 +11,12 @@ export interface TabItem<TValue extends string = string> {
10
11
  testID?: string;
11
12
  }
12
13
  export type TabsVariant = 'underline' | 'pill' | 'segmented';
13
- export interface TabsProps<TValue extends string = string> {
14
+ export interface TabsProps<TValue extends string = string> extends ZoraBaseProps {
14
15
  value: TValue;
15
16
  items: readonly TabItem<TValue>[];
16
17
  onValueChange: (value: TValue) => void;
17
18
  variant?: TabsVariant;
18
19
  size?: ZoraControlSize;
19
20
  disabled?: boolean;
20
- testID?: string;
21
21
  }
22
22
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,WAAW,OAAO,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,C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MAAM,CAAC;IACd,KAAK,EAAE,SAAS,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IAClC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/tabs/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type { ReactNode } from 'react';\n\nimport type { ZoraControlSize } from '../../internal/recipes';\n\nexport interface TabItem<TValue extends string = string> {\n value: TValue;\n label: ReactNode;\n icon?: ButtonIconSpec;\n badge?: ReactNode;\n disabled?: boolean;\n testID?: string;\n}\n\nexport type TabsVariant = 'underline' | 'pill' | 'segmented';\n\nexport interface TabsProps<TValue extends string = string> {\n value: TValue;\n items: readonly TabItem<TValue>[];\n onValueChange: (value: TValue) => void;\n variant?: TabsVariant;\n size?: ZoraControlSize;\n disabled?: boolean;\n testID?: string;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/tabs/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type { ReactNode } from 'react';\n\nimport type { ZoraControlSize } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface TabItem<TValue extends string = string> {\n value: TValue;\n label: ReactNode;\n icon?: ButtonIconSpec;\n badge?: ReactNode;\n disabled?: boolean;\n testID?: string;\n}\n\nexport type TabsVariant = 'underline' | 'pill' | 'segmented';\n\nexport interface TabsProps<TValue extends string = string> extends ZoraBaseProps {\n value: TValue;\n items: readonly TabItem<TValue>[];\n onValueChange: (value: TValue) => void;\n variant?: TabsVariant;\n size?: ZoraControlSize;\n disabled?: boolean;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { TextProps } from './types';
3
- export declare const Text: React.FC<TextProps>;
3
+ export declare const Text: (props: TextProps) => React.ReactElement | null;
4
4
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAiFzC,eAAO,MAAM,IAAI,qBAAgC,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAiFzC,eAAO,MAAM,IAAI,iDAAgC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { TextareaProps } from './types';
3
- export declare function Textarea({ size, leadingIcon, trailingIcon, ...props }: TextareaProps): React.JSX.Element;
3
+ export declare const Textarea: (props: TextareaProps) => React.ReactElement | null;
4
4
  //# sourceMappingURL=Textarea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/textarea/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,wBAAgB,QAAQ,CAAC,EAAE,IAAU,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,qBA+B1F"}
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/textarea/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA0C7C,eAAO,MAAM,QAAQ,qDAAoC,CAAC"}
@@ -1,10 +1,13 @@
1
1
  import * as Surface from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
  import { resolveIconSize } from '../../internal/recipes';
4
- export function Textarea({ size = 'l', leadingIcon, trailingIcon, ...props }) {
5
- const { theme } = Surface.useTheme();
4
+ import { useZoraTheme } from '../../theme/useZoraTheme';
5
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
+ function TextareaInner({ themeId: _themeId, mode: _mode, size = 'l', leadingIcon, trailingIcon, ...props }) {
7
+ const { theme } = useZoraTheme();
6
8
  const iconSize = resolveIconSize(size);
7
9
  const iconColor = theme.semantics.content.muted;
8
10
  return (<Surface.Textarea {...props} leadingAccessory={leadingIcon ? (<Surface.Icon color={iconColor} name={leadingIcon.name} provider={leadingIcon.provider} size={iconSize}/>) : undefined} size={size} trailingAccessory={trailingIcon ? (<Surface.Icon color={iconColor} name={trailingIcon.name} provider={trailingIcon.provider} size={iconSize}/>) : undefined}/>);
9
11
  }
12
+ export const Textarea = withZoraThemeScope(TextareaInner);
10
13
  //# sourceMappingURL=Textarea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../src/components/textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,UAAU,QAAQ,CAAC,EAAE,IAAI,GAAG,GAAG,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,KAAK,EAAiB;IACzF,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;IAEhD,OAAO,CACL,CAAC,OAAO,CAAC,QAAQ,CACf,IAAI,KAAK,CAAC,CACV,gBAAgB,CAAC,CACf,WAAW,CAAC,CAAC,CAAC,CACZ,CAAC,OAAO,CAAC,IAAI,CACX,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,IAAI,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CACvB,QAAQ,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAC/B,IAAI,CAAC,CAAC,QAAQ,CAAC,EACf,CACH,CAAC,CAAC,CAAC,SACN,CAAC,CACD,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,iBAAiB,CAAC,CAChB,YAAY,CAAC,CAAC,CAAC,CACb,CAAC,OAAO,CAAC,IAAI,CACX,KAAK,CAAC,CAAC,SAAS,CAAC,CACjB,IAAI,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CACxB,QAAQ,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAChC,IAAI,CAAC,CAAC,QAAQ,CAAC,EACf,CACH,CAAC,CAAC,CAAC,SACN,CAAC,EACD,CACH,CAAC;AACJ,CAAC","sourcesContent":["import * as Surface from '@ankhorage/surface';\nimport React from 'react';\n\nimport { resolveIconSize } from '../../internal/recipes';\nimport type { TextareaProps } from './types';\n\nexport function Textarea({ size = 'l', leadingIcon, trailingIcon, ...props }: TextareaProps) {\n const { theme } = Surface.useTheme();\n const iconSize = resolveIconSize(size);\n const iconColor = theme.semantics.content.muted;\n\n return (\n <Surface.Textarea\n {...props}\n leadingAccessory={\n leadingIcon ? (\n <Surface.Icon\n color={iconColor}\n name={leadingIcon.name}\n provider={leadingIcon.provider}\n size={iconSize}\n />\n ) : undefined\n }\n size={size}\n trailingAccessory={\n trailingIcon ? (\n <Surface.Icon\n color={iconColor}\n name={trailingIcon.name}\n provider={trailingIcon.provider}\n size={iconSize}\n />\n ) : undefined\n }\n />\n );\n}\n"]}
1
+ {"version":3,"file":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AAI,CAAC,CAAC,QAAQ,CAAC,EACf,CACH,CAAC,CAAC,CAAC,SACN,CAAC,EACD,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import * as Surface from '@ankhorage/surface';\nimport React from 'react';\n\nimport { resolveIconSize } from '../../internal/recipes';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { TextareaProps } from './types';\n\nfunction TextareaInner({\n themeId: _themeId,\n mode: _mode,\n size = 'l',\n leadingIcon,\n trailingIcon,\n ...props\n}: TextareaProps) {\n const { theme } = useZoraTheme();\n const iconSize = resolveIconSize(size);\n const iconColor = theme.semantics.content.muted;\n\n return (\n <Surface.Textarea\n {...props}\n leadingAccessory={\n leadingIcon ? (\n <Surface.Icon\n color={iconColor}\n name={leadingIcon.name}\n provider={leadingIcon.provider}\n size={iconSize}\n />\n ) : undefined\n }\n size={size}\n trailingAccessory={\n trailingIcon ? (\n <Surface.Icon\n color={iconColor}\n name={trailingIcon.name}\n provider={trailingIcon.provider}\n size={iconSize}\n />\n ) : undefined\n }\n />\n );\n}\n\nexport const Textarea = withZoraThemeScope(TextareaInner);\n"]}
@@ -1,6 +1,7 @@
1
1
  import type * as Surface from '@ankhorage/surface';
2
2
  import type { ZoraControlSize } from '../../internal/recipes';
3
- export interface TextareaProps extends Omit<Surface.TextareaProps, 'leadingAccessory' | 'size' | 'trailingAccessory'> {
3
+ import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
+ export interface TextareaProps extends ZoraBaseProps, Omit<Surface.TextareaProps, 'leadingAccessory' | 'size' | 'trailingAccessory' | 'mode' | 'themeId'> {
4
5
  size?: ZoraControlSize;
5
6
  leadingIcon?: Surface.ButtonIconSpec;
6
7
  trailingIcon?: Surface.ButtonIconSpec;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/textarea/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,OAAO,CAAC,aAAa,EACrB,kBAAkB,GAAG,MAAM,GAAG,mBAAmB,CAClD;IACC,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC;CACvC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/textarea/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,aACf,SACE,aAAa,EACb,IAAI,CACF,OAAO,CAAC,aAAa,EACrB,kBAAkB,GAAG,MAAM,GAAG,mBAAmB,GAAG,MAAM,GAAG,SAAS,CACvE;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC;CACvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/textarea/types.ts"],"names":[],"mappings":"","sourcesContent":["import type * as Surface from '@ankhorage/surface';\n\nimport type { ZoraControlSize } from '../../internal/recipes';\n\nexport interface TextareaProps extends Omit<\n Surface.TextareaProps,\n 'leadingAccessory' | 'size' | 'trailingAccessory'\n> {\n size?: ZoraControlSize;\n leadingIcon?: Surface.ButtonIconSpec;\n trailingIcon?: Surface.ButtonIconSpec;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/textarea/types.ts"],"names":[],"mappings":"","sourcesContent":["import type * as Surface from '@ankhorage/surface';\n\nimport type { ZoraControlSize } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface TextareaProps\n extends\n ZoraBaseProps,\n Omit<\n Surface.TextareaProps,\n 'leadingAccessory' | 'size' | 'trailingAccessory' | 'mode' | 'themeId'\n > {\n size?: ZoraControlSize;\n leadingIcon?: Surface.ButtonIconSpec;\n trailingIcon?: Surface.ButtonIconSpec;\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ToolbarProps } from './types';
3
- export declare function Toolbar({ children, position, floating, compact, testID, }: ToolbarProps): React.JSX.Element;
3
+ export declare const Toolbar: (props: ToolbarProps) => React.ReactElement | null;
4
4
  //# sourceMappingURL=Toolbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/Toolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,QAAmB,EACnB,QAAgB,EAChB,OAAc,EACd,MAAM,GACP,EAAE,YAAY,qBAwBd"}
1
+ {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/Toolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAoC5C,eAAO,MAAM,OAAO,oDAAmC,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { Stack } from '@ankhorage/surface';
2
2
  import React from 'react';
3
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
3
4
  import { Card } from '../card';
4
- export function Toolbar({ children, position = 'inline', floating = false, compact = true, testID, }) {
5
+ function ToolbarInner({ themeId: _themeId, mode: _mode, children, position = 'inline', floating = false, compact = true, testID, }) {
5
6
  const isFixed = position === 'top' || position === 'bottom';
6
7
  return (<Card compact={compact} tone={floating ? 'default' : 'subtle'} testID={testID} style={isFixed
7
8
  ? {
@@ -16,4 +17,5 @@ export function Toolbar({ children, position = 'inline', floating = false, compa
16
17
  </Stack>
17
18
  </Card>);
18
19
  }
20
+ export const Toolbar = withZoraThemeScope(ToolbarInner);
19
21
  //# sourceMappingURL=Toolbar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../src/components/toolbar/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,UAAU,OAAO,CAAC,EACtB,QAAQ,EACR,QAAQ,GAAG,QAAQ,EACnB,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,IAAI,EACd,MAAM,GACO;IACb,MAAM,OAAO,GAAG,QAAQ,KAAK,KAAK,IAAI,QAAQ,KAAK,QAAQ,CAAC;IAE5D,OAAO,CACL,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CACtC,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CACJ,OAAO;YACL,CAAC,CAAC;gBACE,QAAQ,EAAE,UAAU;gBACpB,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACb,MAAM,EAAE,EAAE;gBACV,SAAS,EAAE,QAAQ;aACpB;YACH,CAAC,CAAC,SACN,CAAC,CAED;MAAA,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAC3C;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC","sourcesContent":["import { Stack } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { Card } from '../card';\nimport type { ToolbarProps } from './types';\n\nexport function Toolbar({\n children,\n position = 'inline',\n floating = false,\n compact = true,\n testID,\n}: ToolbarProps) {\n const isFixed = position === 'top' || position === 'bottom';\n\n return (\n <Card\n compact={compact}\n tone={floating ? 'default' : 'subtle'}\n testID={testID}\n style={\n isFixed\n ? {\n position: 'absolute',\n [position]: 0,\n zIndex: 10,\n alignSelf: 'center',\n }\n : undefined\n }\n >\n <Stack direction=\"row\" gap=\"s\" align=\"center\">\n {children}\n </Stack>\n </Card>\n );\n}\n"]}
1
+ {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../src/components/toolbar/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,SAAS,YAAY,CAAC,EACpB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,QAAQ,EACR,QAAQ,GAAG,QAAQ,EACnB,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,IAAI,EACd,MAAM,GACO;IACb,MAAM,OAAO,GAAG,QAAQ,KAAK,KAAK,IAAI,QAAQ,KAAK,QAAQ,CAAC;IAE5D,OAAO,CACL,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CACtC,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CACJ,OAAO;YACL,CAAC,CAAC;gBACE,QAAQ,EAAE,UAAU;gBACpB,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACb,MAAM,EAAE,EAAE;gBACV,SAAS,EAAE,QAAQ;aACpB;YACH,CAAC,CAAC,SACN,CAAC,CAED;MAAA,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAC3C;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import { Stack } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { Card } from '../card';\nimport type { ToolbarProps } from './types';\n\nfunction ToolbarInner({\n themeId: _themeId,\n mode: _mode,\n children,\n position = 'inline',\n floating = false,\n compact = true,\n testID,\n}: ToolbarProps) {\n const isFixed = position === 'top' || position === 'bottom';\n\n return (\n <Card\n compact={compact}\n tone={floating ? 'default' : 'subtle'}\n testID={testID}\n style={\n isFixed\n ? {\n position: 'absolute',\n [position]: 0,\n zIndex: 10,\n alignSelf: 'center',\n }\n : undefined\n }\n >\n <Stack direction=\"row\" gap=\"s\" align=\"center\">\n {children}\n </Stack>\n </Card>\n );\n}\n\nexport const Toolbar = withZoraThemeScope(ToolbarInner);\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ToolbarActionProps } from './types';
3
- export declare function ToolbarAction({ active, ...props }: ToolbarActionProps): React.JSX.Element;
3
+ export declare const ToolbarAction: (props: ToolbarActionProps) => React.ReactElement | null;
4
4
  //# sourceMappingURL=ToolbarAction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarAction.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/ToolbarAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,qBASrE"}
1
+ {"version":3,"file":"ToolbarAction.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/ToolbarAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAkBlD,eAAO,MAAM,aAAa,0DAAyC,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
+ import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
2
3
  import { IconButton } from '../icon-button';
3
- export function ToolbarAction({ active, ...props }) {
4
+ function ToolbarActionInner({ themeId: _themeId, mode: _mode, active, ...props }) {
4
5
  return (<IconButton {...props} emphasis={active ? 'soft' : 'ghost'} tone={active ? 'primary' : 'neutral'} size="m"/>);
5
6
  }
7
+ export const ToolbarAction = withZoraThemeScope(ToolbarActionInner);
6
8
  //# sourceMappingURL=ToolbarAction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarAction.js","sourceRoot":"","sources":["../../../src/components/toolbar/ToolbarAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,MAAM,UAAU,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAAsB;IACpE,OAAO,CACL,CAAC,UAAU,CACT,IAAI,KAAK,CAAC,CACV,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CACpC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CACrC,IAAI,CAAC,GAAG,EACR,CACH,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\n\nimport { IconButton } from '../icon-button';\nimport type { ToolbarActionProps } from './types';\n\nexport function ToolbarAction({ active, ...props }: ToolbarActionProps) {\n return (\n <IconButton\n {...props}\n emphasis={active ? 'soft' : 'ghost'}\n tone={active ? 'primary' : 'neutral'}\n size=\"m\"\n />\n );\n}\n"]}
1
+ {"version":3,"file":"ToolbarAction.js","sourceRoot":"","sources":["../../../src/components/toolbar/ToolbarAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,SAAS,kBAAkB,CAAC,EAC1B,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,MAAM,EACN,GAAG,KAAK,EACW;IACnB,OAAO,CACL,CAAC,UAAU,CACT,IAAI,KAAK,CAAC,CACV,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CACpC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CACrC,IAAI,CAAC,GAAG,EACR,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { IconButton } from '../icon-button';\nimport type { ToolbarActionProps } from './types';\n\nfunction ToolbarActionInner({\n themeId: _themeId,\n mode: _mode,\n active,\n ...props\n}: ToolbarActionProps) {\n return (\n <IconButton\n {...props}\n emphasis={active ? 'soft' : 'ghost'}\n tone={active ? 'primary' : 'neutral'}\n size=\"m\"\n />\n );\n}\n\nexport const ToolbarAction = withZoraThemeScope(ToolbarActionInner);\n"]}
@@ -1,19 +1,18 @@
1
1
  import type { ButtonIconSpec } from '@ankhorage/surface';
2
2
  import type React from 'react';
3
3
  export type ToolbarPosition = 'top' | 'bottom' | 'inline';
4
- export interface ToolbarProps {
4
+ import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
5
+ export interface ToolbarProps extends ZoraBaseProps {
5
6
  children?: React.ReactNode;
6
7
  position?: ToolbarPosition;
7
8
  floating?: boolean;
8
9
  compact?: boolean;
9
- testID?: string;
10
10
  }
11
- export interface ToolbarActionProps {
11
+ export interface ToolbarActionProps extends ZoraBaseProps {
12
12
  label: string;
13
13
  icon: ButtonIconSpec;
14
14
  active?: boolean;
15
15
  disabled?: boolean;
16
16
  onPress?: () => void;
17
- testID?: string;
18
17
  }
19
18
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/toolbar/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nexport type ToolbarPosition = 'top' | 'bottom' | 'inline';\n\nexport interface ToolbarProps {\n children?: React.ReactNode;\n position?: ToolbarPosition;\n floating?: boolean;\n compact?: boolean;\n testID?: string;\n}\n\nexport interface ToolbarActionProps {\n label: string;\n icon: ButtonIconSpec;\n active?: boolean;\n disabled?: boolean;\n onPress?: () => void;\n testID?: string;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/toolbar/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nexport type ToolbarPosition = 'top' | 'bottom' | 'inline';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface ToolbarProps extends ZoraBaseProps {\n children?: React.ReactNode;\n position?: ToolbarPosition;\n floating?: boolean;\n compact?: boolean;\n}\n\nexport interface ToolbarActionProps extends ZoraBaseProps {\n label: string;\n icon: ButtonIconSpec;\n active?: boolean;\n disabled?: boolean;\n onPress?: () => void;\n}\n"]}
@@ -0,0 +1,7 @@
1
+ import { type BoxProps as SurfaceBoxProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export interface BoxProps extends ZoraBaseProps, Omit<SurfaceBoxProps, 'mode' | 'themeId'> {
5
+ }
6
+ export declare const Box: (props: BoxProps) => React.ReactElement | null;
7
+ //# sourceMappingURL=Box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/foundation/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,QAAQ,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,QAAS,SAAQ,aAAa,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAM7F,eAAO,MAAM,GAAG,gDAA+B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Box as SurfaceBox } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function BoxInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceBox {...props}/>;
6
+ }
7
+ export const Box = withZoraThemeScope(BoxInner);
8
+ //# sourceMappingURL=Box.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.js","sourceRoot":"","sources":["../../src/foundation/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,UAAU,EAAoC,MAAM,oBAAoB,CAAC;AACzF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAKjE,SAAS,QAAQ,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAY;IACtE,OAAO,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACnC,CAAC;AAED,MAAM,CAAC,MAAM,GAAG,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC","sourcesContent":["import { Box as SurfaceBox, type BoxProps as SurfaceBoxProps } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface BoxProps extends ZoraBaseProps, Omit<SurfaceBoxProps, 'mode' | 'themeId'> {}\n\nfunction BoxInner({ themeId: _themeId, mode: _mode, ...props }: BoxProps) {\n return <SurfaceBox {...props} />;\n}\n\nexport const Box = withZoraThemeScope(BoxInner);\n"]}
@@ -0,0 +1,7 @@
1
+ import { type CenterProps as SurfaceCenterProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export interface CenterProps extends ZoraBaseProps, Omit<SurfaceCenterProps, 'mode' | 'themeId'> {
5
+ }
6
+ export declare const Center: (props: CenterProps) => React.ReactElement | null;
7
+ //# sourceMappingURL=Center.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../src/foundation/Center.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,IAAI,kBAAkB,EACvC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,WAAY,SAAQ,aAAa,EAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAMnG,eAAO,MAAM,MAAM,mDAAkC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Center as SurfaceCenter, } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function CenterInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceCenter {...props}/>;
6
+ }
7
+ export const Center = withZoraThemeScope(CenterInner);
8
+ //# sourceMappingURL=Center.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Center.js","sourceRoot":"","sources":["../../src/foundation/Center.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,aAAa,GAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAKjE,SAAS,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAe;IAC5E,OAAO,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACtC,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import {\n Center as SurfaceCenter,\n type CenterProps as SurfaceCenterProps,\n} from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface CenterProps extends ZoraBaseProps, Omit<SurfaceCenterProps, 'mode' | 'themeId'> {}\n\nfunction CenterInner({ themeId: _themeId, mode: _mode, ...props }: CenterProps) {\n return <SurfaceCenter {...props} />;\n}\n\nexport const Center = withZoraThemeScope(CenterInner);\n"]}
@@ -0,0 +1,7 @@
1
+ import { type ContainerProps as SurfaceContainerProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export interface ContainerProps extends ZoraBaseProps, Omit<SurfaceContainerProps, 'mode' | 'themeId'> {
5
+ }
6
+ export declare const Container: (props: ContainerProps) => React.ReactElement | null;
7
+ //# sourceMappingURL=Container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../src/foundation/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,IAAI,qBAAqB,EAC7C,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,cACf,SAAQ,aAAa,EAAE,IAAI,CAAC,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAM3E,eAAO,MAAM,SAAS,sDAAqC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Container as SurfaceContainer, } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function ContainerInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceContainer {...props}/>;
6
+ }
7
+ export const Container = withZoraThemeScope(ContainerInner);
8
+ //# sourceMappingURL=Container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.js","sourceRoot":"","sources":["../../src/foundation/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,IAAI,gBAAgB,GAE9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAMjE,SAAS,cAAc,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAkB;IAClF,OAAO,CAAC,gBAAgB,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import {\n Container as SurfaceContainer,\n type ContainerProps as SurfaceContainerProps,\n} from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface ContainerProps\n extends ZoraBaseProps, Omit<SurfaceContainerProps, 'mode' | 'themeId'> {}\n\nfunction ContainerInner({ themeId: _themeId, mode: _mode, ...props }: ContainerProps) {\n return <SurfaceContainer {...props} />;\n}\n\nexport const Container = withZoraThemeScope(ContainerInner);\n"]}
@@ -0,0 +1,7 @@
1
+ import { type DividerProps as SurfaceDividerProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export interface DividerProps extends ZoraBaseProps, Omit<SurfaceDividerProps, 'mode' | 'themeId'> {
5
+ }
6
+ export declare const Divider: (props: DividerProps) => React.ReactElement | null;
7
+ //# sourceMappingURL=Divider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../src/foundation/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,IAAI,mBAAmB,EACzC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,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 { Divider as SurfaceDivider, } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function DividerInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceDivider {...props}/>;
6
+ }
7
+ export const Divider = withZoraThemeScope(DividerInner);
8
+ //# sourceMappingURL=Divider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.js","sourceRoot":"","sources":["../../src/foundation/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,cAAc,GAE1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAMjE,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 Divider as SurfaceDivider,\n type DividerProps as SurfaceDividerProps,\n} from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface DividerProps\n extends ZoraBaseProps, Omit<SurfaceDividerProps, 'mode' | 'themeId'> {}\n\nfunction DividerInner({ themeId: _themeId, mode: _mode, ...props }: DividerProps) {\n return <SurfaceDivider {...props} />;\n}\n\nexport const Divider = withZoraThemeScope(DividerInner);\n"]}
@@ -0,0 +1,7 @@
1
+ import { type GridProps as SurfaceGridProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export interface GridProps extends ZoraBaseProps, Omit<SurfaceGridProps, 'mode' | 'themeId'> {
5
+ }
6
+ export declare const Grid: (props: GridProps) => React.ReactElement | null;
7
+ //# sourceMappingURL=Grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../src/foundation/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAM/F,eAAO,MAAM,IAAI,iDAAgC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Grid as SurfaceGrid } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function GridInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceGrid {...props}/>;
6
+ }
7
+ export const Grid = withZoraThemeScope(GridInner);
8
+ //# sourceMappingURL=Grid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../src/foundation/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAsC,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAKjE,SAAS,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAa;IACxE,OAAO,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACpC,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import { Grid as SurfaceGrid, type GridProps as SurfaceGridProps } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface GridProps extends ZoraBaseProps, Omit<SurfaceGridProps, 'mode' | 'themeId'> {}\n\nfunction GridInner({ themeId: _themeId, mode: _mode, ...props }: GridProps) {\n return <SurfaceGrid {...props} />;\n}\n\nexport const Grid = withZoraThemeScope(GridInner);\n"]}
@@ -0,0 +1,7 @@
1
+ import { type InlineProps as SurfaceInlineProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export interface InlineProps extends ZoraBaseProps, Omit<SurfaceInlineProps, 'mode' | 'themeId'> {
5
+ }
6
+ export declare const Inline: (props: InlineProps) => React.ReactElement | null;
7
+ //# sourceMappingURL=Inline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../src/foundation/Inline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,IAAI,kBAAkB,EACvC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,WAAY,SAAQ,aAAa,EAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAMnG,eAAO,MAAM,MAAM,mDAAkC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Inline as SurfaceInline, } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function InlineInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceInline {...props}/>;
6
+ }
7
+ export const Inline = withZoraThemeScope(InlineInner);
8
+ //# sourceMappingURL=Inline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Inline.js","sourceRoot":"","sources":["../../src/foundation/Inline.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,aAAa,GAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAKjE,SAAS,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAe;IAC5E,OAAO,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACtC,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import {\n Inline as SurfaceInline,\n type InlineProps as SurfaceInlineProps,\n} from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface InlineProps extends ZoraBaseProps, Omit<SurfaceInlineProps, 'mode' | 'themeId'> {}\n\nfunction InlineInner({ themeId: _themeId, mode: _mode, ...props }: InlineProps) {\n return <SurfaceInline {...props} />;\n}\n\nexport const Inline = withZoraThemeScope(InlineInner);\n"]}
@@ -0,0 +1,7 @@
1
+ import { type ShowProps as SurfaceShowProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export interface ShowProps extends ZoraBaseProps, Omit<SurfaceShowProps, 'mode' | 'themeId'> {
5
+ }
6
+ export declare const Show: (props: ShowProps) => React.ReactElement | null;
7
+ //# sourceMappingURL=Show.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Show.d.ts","sourceRoot":"","sources":["../../src/foundation/Show.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,SAAU,SAAQ,aAAa,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAM/F,eAAO,MAAM,IAAI,iDAAgC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Show as SurfaceShow } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function ShowInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceShow {...props}/>;
6
+ }
7
+ export const Show = withZoraThemeScope(ShowInner);
8
+ //# sourceMappingURL=Show.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Show.js","sourceRoot":"","sources":["../../src/foundation/Show.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAsC,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAKjE,SAAS,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAa;IACxE,OAAO,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACpC,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import { Show as SurfaceShow, type ShowProps as SurfaceShowProps } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface ShowProps extends ZoraBaseProps, Omit<SurfaceShowProps, 'mode' | 'themeId'> {}\n\nfunction ShowInner({ themeId: _themeId, mode: _mode, ...props }: ShowProps) {\n return <SurfaceShow {...props} />;\n}\n\nexport const Show = withZoraThemeScope(ShowInner);\n"]}
@@ -0,0 +1,7 @@
1
+ import { type SpacerProps as SurfaceSpacerProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export interface SpacerProps extends ZoraBaseProps, Omit<SurfaceSpacerProps, 'mode' | 'themeId'> {
5
+ }
6
+ export declare const Spacer: (props: SpacerProps) => React.ReactElement | null;
7
+ //# sourceMappingURL=Spacer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spacer.d.ts","sourceRoot":"","sources":["../../src/foundation/Spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,IAAI,kBAAkB,EACvC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,WAAY,SAAQ,aAAa,EAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAMnG,eAAO,MAAM,MAAM,mDAAkC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Spacer as SurfaceSpacer, } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function SpacerInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceSpacer {...props}/>;
6
+ }
7
+ export const Spacer = withZoraThemeScope(SpacerInner);
8
+ //# sourceMappingURL=Spacer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spacer.js","sourceRoot":"","sources":["../../src/foundation/Spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,aAAa,GAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAKjE,SAAS,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAe;IAC5E,OAAO,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACtC,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import {\n Spacer as SurfaceSpacer,\n type SpacerProps as SurfaceSpacerProps,\n} from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface SpacerProps extends ZoraBaseProps, Omit<SurfaceSpacerProps, 'mode' | 'themeId'> {}\n\nfunction SpacerInner({ themeId: _themeId, mode: _mode, ...props }: SpacerProps) {\n return <SurfaceSpacer {...props} />;\n}\n\nexport const Spacer = withZoraThemeScope(SpacerInner);\n"]}
@@ -0,0 +1,7 @@
1
+ import { type StackProps as SurfaceStackProps } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
+ export interface StackProps extends ZoraBaseProps, Omit<SurfaceStackProps, 'mode' | 'themeId'> {
5
+ }
6
+ export declare const Stack: (props: StackProps) => React.ReactElement | null;
7
+ //# sourceMappingURL=Stack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../src/foundation/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,UAAU,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACjG,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,UAAW,SAAQ,aAAa,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG;AAMjG,eAAO,MAAM,KAAK,kDAAiC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Stack as SurfaceStack } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../theme/withZoraThemeScope';
4
+ function StackInner({ themeId: _themeId, mode: _mode, ...props }) {
5
+ return <SurfaceStack {...props}/>;
6
+ }
7
+ export const Stack = withZoraThemeScope(StackInner);
8
+ //# sourceMappingURL=Stack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stack.js","sourceRoot":"","sources":["../../src/foundation/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,YAAY,EAAwC,MAAM,oBAAoB,CAAC;AACjG,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAKjE,SAAS,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAc;IAC1E,OAAO,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACrC,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import { Stack as SurfaceStack, type StackProps as SurfaceStackProps } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface StackProps extends ZoraBaseProps, Omit<SurfaceStackProps, 'mode' | 'themeId'> {}\n\nfunction StackInner({ themeId: _themeId, mode: _mode, ...props }: StackProps) {\n return <SurfaceStack {...props} />;\n}\n\nexport const Stack = withZoraThemeScope(StackInner);\n"]}