@ankhorage/zora 1.3.0 → 1.4.1

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 (367) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +208 -0
  3. package/dist/components/app-bar/meta.d.ts +9 -0
  4. package/dist/components/app-bar/meta.d.ts.map +1 -0
  5. package/dist/components/app-bar/meta.js +9 -0
  6. package/dist/components/app-bar/meta.js.map +1 -0
  7. package/dist/components/avatar/meta.d.ts +9 -0
  8. package/dist/components/avatar/meta.d.ts.map +1 -0
  9. package/dist/components/avatar/meta.js +9 -0
  10. package/dist/components/avatar/meta.js.map +1 -0
  11. package/dist/components/avatar-group/meta.d.ts +9 -0
  12. package/dist/components/avatar-group/meta.d.ts.map +1 -0
  13. package/dist/components/avatar-group/meta.js +9 -0
  14. package/dist/components/avatar-group/meta.js.map +1 -0
  15. package/dist/components/badge/meta.d.ts +9 -0
  16. package/dist/components/badge/meta.d.ts.map +1 -0
  17. package/dist/components/badge/meta.js +9 -0
  18. package/dist/components/badge/meta.js.map +1 -0
  19. package/dist/components/button/meta.d.ts +45 -0
  20. package/dist/components/button/meta.d.ts.map +1 -0
  21. package/dist/components/button/meta.js +45 -0
  22. package/dist/components/button/meta.js.map +1 -0
  23. package/dist/components/card/meta.d.ts +44 -0
  24. package/dist/components/card/meta.d.ts.map +1 -0
  25. package/dist/components/card/meta.js +45 -0
  26. package/dist/components/card/meta.js.map +1 -0
  27. package/dist/components/checkbox/meta.d.ts +17 -0
  28. package/dist/components/checkbox/meta.d.ts.map +1 -0
  29. package/dist/components/checkbox/meta.js +17 -0
  30. package/dist/components/checkbox/meta.js.map +1 -0
  31. package/dist/components/chip/meta.d.ts +9 -0
  32. package/dist/components/chip/meta.d.ts.map +1 -0
  33. package/dist/components/chip/meta.js +9 -0
  34. package/dist/components/chip/meta.js.map +1 -0
  35. package/dist/components/chip-group/meta.d.ts +9 -0
  36. package/dist/components/chip-group/meta.d.ts.map +1 -0
  37. package/dist/components/chip-group/meta.js +9 -0
  38. package/dist/components/chip-group/meta.js.map +1 -0
  39. package/dist/components/drawer/meta.d.ts +9 -0
  40. package/dist/components/drawer/meta.d.ts.map +1 -0
  41. package/dist/components/drawer/meta.js +9 -0
  42. package/dist/components/drawer/meta.js.map +1 -0
  43. package/dist/components/form/index.d.ts +1 -1
  44. package/dist/components/form/index.d.ts.map +1 -1
  45. package/dist/components/form/index.js.map +1 -1
  46. package/dist/components/form/meta.d.ts +79 -0
  47. package/dist/components/form/meta.d.ts.map +1 -0
  48. package/dist/components/form/meta.js +79 -0
  49. package/dist/components/form/meta.js.map +1 -0
  50. package/dist/components/form/types.d.ts +2 -1
  51. package/dist/components/form/types.d.ts.map +1 -1
  52. package/dist/components/form/types.js.map +1 -1
  53. package/dist/components/heading/meta.d.ts +69 -0
  54. package/dist/components/heading/meta.d.ts.map +1 -0
  55. package/dist/components/heading/meta.js +66 -0
  56. package/dist/components/heading/meta.js.map +1 -0
  57. package/dist/components/icon/meta.d.ts +9 -0
  58. package/dist/components/icon/meta.d.ts.map +1 -0
  59. package/dist/components/icon/meta.js +9 -0
  60. package/dist/components/icon/meta.js.map +1 -0
  61. package/dist/components/icon-button/meta.d.ts +9 -0
  62. package/dist/components/icon-button/meta.d.ts.map +1 -0
  63. package/dist/components/icon-button/meta.js +9 -0
  64. package/dist/components/icon-button/meta.js.map +1 -0
  65. package/dist/components/image/meta.d.ts +9 -0
  66. package/dist/components/image/meta.d.ts.map +1 -0
  67. package/dist/components/image/meta.js +9 -0
  68. package/dist/components/image/meta.js.map +1 -0
  69. package/dist/components/input/meta.d.ts +45 -0
  70. package/dist/components/input/meta.d.ts.map +1 -0
  71. package/dist/components/input/meta.js +45 -0
  72. package/dist/components/input/meta.js.map +1 -0
  73. package/dist/components/media-card/meta.d.ts +9 -0
  74. package/dist/components/media-card/meta.d.ts.map +1 -0
  75. package/dist/components/media-card/meta.js +9 -0
  76. package/dist/components/media-card/meta.js.map +1 -0
  77. package/dist/components/metric-card/meta.d.ts +9 -0
  78. package/dist/components/metric-card/meta.d.ts.map +1 -0
  79. package/dist/components/metric-card/meta.js +9 -0
  80. package/dist/components/metric-card/meta.js.map +1 -0
  81. package/dist/components/modal/meta.d.ts +9 -0
  82. package/dist/components/modal/meta.d.ts.map +1 -0
  83. package/dist/components/modal/meta.js +9 -0
  84. package/dist/components/modal/meta.js.map +1 -0
  85. package/dist/components/navigation-item/meta.d.ts +9 -0
  86. package/dist/components/navigation-item/meta.d.ts.map +1 -0
  87. package/dist/components/navigation-item/meta.js +9 -0
  88. package/dist/components/navigation-item/meta.js.map +1 -0
  89. package/dist/components/navigation-list/meta.d.ts +9 -0
  90. package/dist/components/navigation-list/meta.d.ts.map +1 -0
  91. package/dist/components/navigation-list/meta.js +9 -0
  92. package/dist/components/navigation-list/meta.js.map +1 -0
  93. package/dist/components/progress/meta.d.ts +9 -0
  94. package/dist/components/progress/meta.d.ts.map +1 -0
  95. package/dist/components/progress/meta.js +9 -0
  96. package/dist/components/progress/meta.js.map +1 -0
  97. package/dist/components/radio/meta.d.ts +17 -0
  98. package/dist/components/radio/meta.d.ts.map +1 -0
  99. package/dist/components/radio/meta.js +17 -0
  100. package/dist/components/radio/meta.js.map +1 -0
  101. package/dist/components/rating/meta.d.ts +9 -0
  102. package/dist/components/rating/meta.d.ts.map +1 -0
  103. package/dist/components/rating/meta.js +9 -0
  104. package/dist/components/rating/meta.js.map +1 -0
  105. package/dist/components/search-bar/meta.d.ts +9 -0
  106. package/dist/components/search-bar/meta.d.ts.map +1 -0
  107. package/dist/components/search-bar/meta.js +9 -0
  108. package/dist/components/search-bar/meta.js.map +1 -0
  109. package/dist/components/select/meta.d.ts +9 -0
  110. package/dist/components/select/meta.d.ts.map +1 -0
  111. package/dist/components/select/meta.js +9 -0
  112. package/dist/components/select/meta.js.map +1 -0
  113. package/dist/components/tabs/meta.d.ts +9 -0
  114. package/dist/components/tabs/meta.d.ts.map +1 -0
  115. package/dist/components/tabs/meta.js +9 -0
  116. package/dist/components/tabs/meta.js.map +1 -0
  117. package/dist/components/text/meta.d.ts +71 -0
  118. package/dist/components/text/meta.d.ts.map +1 -0
  119. package/dist/components/text/meta.js +68 -0
  120. package/dist/components/text/meta.js.map +1 -0
  121. package/dist/components/textarea/meta.d.ts +45 -0
  122. package/dist/components/textarea/meta.d.ts.map +1 -0
  123. package/dist/components/textarea/meta.js +45 -0
  124. package/dist/components/textarea/meta.js.map +1 -0
  125. package/dist/components/toolbar/meta.d.ts +17 -0
  126. package/dist/components/toolbar/meta.d.ts.map +1 -0
  127. package/dist/components/toolbar/meta.js +17 -0
  128. package/dist/components/toolbar/meta.js.map +1 -0
  129. package/dist/foundation/meta.d.ts +93 -0
  130. package/dist/foundation/meta.d.ts.map +1 -0
  131. package/dist/foundation/meta.js +84 -0
  132. package/dist/foundation/meta.js.map +1 -0
  133. package/dist/index.d.ts +5 -1
  134. package/dist/index.d.ts.map +1 -1
  135. package/dist/index.js +2 -0
  136. package/dist/index.js.map +1 -1
  137. package/dist/layout/app-shell/meta.d.ts +9 -0
  138. package/dist/layout/app-shell/meta.d.ts.map +1 -0
  139. package/dist/layout/app-shell/meta.js +9 -0
  140. package/dist/layout/app-shell/meta.js.map +1 -0
  141. package/dist/layout/auth-layout/meta.d.ts +33 -0
  142. package/dist/layout/auth-layout/meta.d.ts.map +1 -0
  143. package/dist/layout/auth-layout/meta.js +34 -0
  144. package/dist/layout/auth-layout/meta.js.map +1 -0
  145. package/dist/layout/page/meta.d.ts +19 -0
  146. package/dist/layout/page/meta.d.ts.map +1 -0
  147. package/dist/layout/page/meta.js +20 -0
  148. package/dist/layout/page/meta.js.map +1 -0
  149. package/dist/layout/page-header/meta.d.ts +38 -0
  150. package/dist/layout/page-header/meta.d.ts.map +1 -0
  151. package/dist/layout/page-header/meta.js +38 -0
  152. package/dist/layout/page-header/meta.js.map +1 -0
  153. package/dist/layout/page-section/meta.d.ts +28 -0
  154. package/dist/layout/page-section/meta.d.ts.map +1 -0
  155. package/dist/layout/page-section/meta.js +29 -0
  156. package/dist/layout/page-section/meta.js.map +1 -0
  157. package/dist/layout/settings-layout/meta.d.ts +9 -0
  158. package/dist/layout/settings-layout/meta.d.ts.map +1 -0
  159. package/dist/layout/settings-layout/meta.js +9 -0
  160. package/dist/layout/settings-layout/meta.js.map +1 -0
  161. package/dist/layout/sidebar-layout/meta.d.ts +9 -0
  162. package/dist/layout/sidebar-layout/meta.d.ts.map +1 -0
  163. package/dist/layout/sidebar-layout/meta.js +9 -0
  164. package/dist/layout/sidebar-layout/meta.js.map +1 -0
  165. package/dist/layout/topbar-layout/meta.d.ts +9 -0
  166. package/dist/layout/topbar-layout/meta.d.ts.map +1 -0
  167. package/dist/layout/topbar-layout/meta.js +9 -0
  168. package/dist/layout/topbar-layout/meta.js.map +1 -0
  169. package/dist/metadata/allowedChildren.d.ts +4 -0
  170. package/dist/metadata/allowedChildren.d.ts.map +1 -0
  171. package/dist/metadata/allowedChildren.js +26 -0
  172. package/dist/metadata/allowedChildren.js.map +1 -0
  173. package/dist/metadata/componentMeta.d.ts +3 -0
  174. package/dist/metadata/componentMeta.d.ts.map +1 -0
  175. package/dist/metadata/componentMeta.js +143 -0
  176. package/dist/metadata/componentMeta.js.map +1 -0
  177. package/dist/metadata/index.d.ts +3 -0
  178. package/dist/metadata/index.d.ts.map +1 -0
  179. package/dist/metadata/index.js +2 -0
  180. package/dist/metadata/index.js.map +1 -0
  181. package/dist/metadata/types.d.ts +49 -0
  182. package/dist/metadata/types.d.ts.map +1 -0
  183. package/dist/metadata/types.js +2 -0
  184. package/dist/metadata/types.js.map +1 -0
  185. package/dist/patterns/auth/meta.d.ts +33 -0
  186. package/dist/patterns/auth/meta.d.ts.map +1 -0
  187. package/dist/patterns/auth/meta.js +34 -0
  188. package/dist/patterns/auth/meta.js.map +1 -0
  189. package/dist/patterns/collection-editor/meta.d.ts +9 -0
  190. package/dist/patterns/collection-editor/meta.d.ts.map +1 -0
  191. package/dist/patterns/collection-editor/meta.js +9 -0
  192. package/dist/patterns/collection-editor/meta.js.map +1 -0
  193. package/dist/patterns/confirm-dialog/meta.d.ts +9 -0
  194. package/dist/patterns/confirm-dialog/meta.d.ts.map +1 -0
  195. package/dist/patterns/confirm-dialog/meta.js +9 -0
  196. package/dist/patterns/confirm-dialog/meta.js.map +1 -0
  197. package/dist/patterns/disclosure-section/meta.d.ts +9 -0
  198. package/dist/patterns/disclosure-section/meta.d.ts.map +1 -0
  199. package/dist/patterns/disclosure-section/meta.js +9 -0
  200. package/dist/patterns/disclosure-section/meta.js.map +1 -0
  201. package/dist/patterns/empty-state/meta.d.ts +33 -0
  202. package/dist/patterns/empty-state/meta.d.ts.map +1 -0
  203. package/dist/patterns/empty-state/meta.js +33 -0
  204. package/dist/patterns/empty-state/meta.js.map +1 -0
  205. package/dist/patterns/filter-bar/meta.d.ts +9 -0
  206. package/dist/patterns/filter-bar/meta.d.ts.map +1 -0
  207. package/dist/patterns/filter-bar/meta.js +9 -0
  208. package/dist/patterns/filter-bar/meta.js.map +1 -0
  209. package/dist/patterns/hero/Hero.d.ts +4 -0
  210. package/dist/patterns/hero/Hero.d.ts.map +1 -0
  211. package/dist/patterns/hero/Hero.js +59 -0
  212. package/dist/patterns/hero/Hero.js.map +1 -0
  213. package/dist/patterns/hero/index.d.ts +3 -0
  214. package/dist/patterns/hero/index.d.ts.map +1 -0
  215. package/dist/patterns/hero/index.js +2 -0
  216. package/dist/patterns/hero/index.js.map +1 -0
  217. package/dist/patterns/hero/meta.d.ts +101 -0
  218. package/dist/patterns/hero/meta.d.ts.map +1 -0
  219. package/dist/patterns/hero/meta.js +94 -0
  220. package/dist/patterns/hero/meta.js.map +1 -0
  221. package/dist/patterns/hero/types.d.ts +27 -0
  222. package/dist/patterns/hero/types.d.ts.map +1 -0
  223. package/dist/patterns/hero/types.js +2 -0
  224. package/dist/patterns/hero/types.js.map +1 -0
  225. package/dist/patterns/image-preview/meta.d.ts +9 -0
  226. package/dist/patterns/image-preview/meta.d.ts.map +1 -0
  227. package/dist/patterns/image-preview/meta.js +9 -0
  228. package/dist/patterns/image-preview/meta.js.map +1 -0
  229. package/dist/patterns/image-upload-field/meta.d.ts +9 -0
  230. package/dist/patterns/image-upload-field/meta.d.ts.map +1 -0
  231. package/dist/patterns/image-upload-field/meta.js +9 -0
  232. package/dist/patterns/image-upload-field/meta.js.map +1 -0
  233. package/dist/patterns/inspector-field/meta.d.ts +9 -0
  234. package/dist/patterns/inspector-field/meta.d.ts.map +1 -0
  235. package/dist/patterns/inspector-field/meta.js +9 -0
  236. package/dist/patterns/inspector-field/meta.js.map +1 -0
  237. package/dist/patterns/list/meta.d.ts +25 -0
  238. package/dist/patterns/list/meta.d.ts.map +1 -0
  239. package/dist/patterns/list/meta.js +26 -0
  240. package/dist/patterns/list/meta.js.map +1 -0
  241. package/dist/patterns/notice/meta.d.ts +34 -0
  242. package/dist/patterns/notice/meta.d.ts.map +1 -0
  243. package/dist/patterns/notice/meta.js +35 -0
  244. package/dist/patterns/notice/meta.js.map +1 -0
  245. package/dist/patterns/panel/meta.d.ts +44 -0
  246. package/dist/patterns/panel/meta.d.ts.map +1 -0
  247. package/dist/patterns/panel/meta.js +45 -0
  248. package/dist/patterns/panel/meta.js.map +1 -0
  249. package/dist/patterns/responsive-panel/meta.d.ts +9 -0
  250. package/dist/patterns/responsive-panel/meta.d.ts.map +1 -0
  251. package/dist/patterns/responsive-panel/meta.js +9 -0
  252. package/dist/patterns/responsive-panel/meta.js.map +1 -0
  253. package/dist/patterns/section-header/meta.d.ts +33 -0
  254. package/dist/patterns/section-header/meta.d.ts.map +1 -0
  255. package/dist/patterns/section-header/meta.js +33 -0
  256. package/dist/patterns/section-header/meta.js.map +1 -0
  257. package/dist/patterns/selection/meta.d.ts +17 -0
  258. package/dist/patterns/selection/meta.d.ts.map +1 -0
  259. package/dist/patterns/selection/meta.js +18 -0
  260. package/dist/patterns/selection/meta.js.map +1 -0
  261. package/dist/patterns/settings-row/meta.d.ts +39 -0
  262. package/dist/patterns/settings-row/meta.d.ts.map +1 -0
  263. package/dist/patterns/settings-row/meta.js +39 -0
  264. package/dist/patterns/settings-row/meta.js.map +1 -0
  265. package/dist/patterns/switch-field/meta.d.ts +9 -0
  266. package/dist/patterns/switch-field/meta.d.ts.map +1 -0
  267. package/dist/patterns/switch-field/meta.js +9 -0
  268. package/dist/patterns/switch-field/meta.js.map +1 -0
  269. package/dist/patterns/theme-composer/meta.d.ts +9 -0
  270. package/dist/patterns/theme-composer/meta.d.ts.map +1 -0
  271. package/dist/patterns/theme-composer/meta.js +9 -0
  272. package/dist/patterns/theme-composer/meta.js.map +1 -0
  273. package/dist/patterns/tile-grid/meta.d.ts +17 -0
  274. package/dist/patterns/tile-grid/meta.d.ts.map +1 -0
  275. package/dist/patterns/tile-grid/meta.js +18 -0
  276. package/dist/patterns/tile-grid/meta.js.map +1 -0
  277. package/dist/patterns/timeline/meta.d.ts +9 -0
  278. package/dist/patterns/timeline/meta.d.ts.map +1 -0
  279. package/dist/patterns/timeline/meta.js +9 -0
  280. package/dist/patterns/timeline/meta.js.map +1 -0
  281. package/dist/patterns/tree-view/meta.d.ts +17 -0
  282. package/dist/patterns/tree-view/meta.d.ts.map +1 -0
  283. package/dist/patterns/tree-view/meta.js +18 -0
  284. package/dist/patterns/tree-view/meta.js.map +1 -0
  285. package/dist/patterns/zora-drawer-content/meta.d.ts +9 -0
  286. package/dist/patterns/zora-drawer-content/meta.d.ts.map +1 -0
  287. package/dist/patterns/zora-drawer-content/meta.js +9 -0
  288. package/dist/patterns/zora-drawer-content/meta.js.map +1 -0
  289. package/dist/patterns/zora-tab-bar/meta.d.ts +9 -0
  290. package/dist/patterns/zora-tab-bar/meta.d.ts.map +1 -0
  291. package/dist/patterns/zora-tab-bar/meta.js +9 -0
  292. package/dist/patterns/zora-tab-bar/meta.js.map +1 -0
  293. package/package.json +1 -1
  294. package/src/components/app-bar/meta.ts +10 -0
  295. package/src/components/avatar/meta.ts +10 -0
  296. package/src/components/avatar-group/meta.ts +10 -0
  297. package/src/components/badge/meta.ts +10 -0
  298. package/src/components/button/meta.ts +46 -0
  299. package/src/components/card/meta.ts +46 -0
  300. package/src/components/checkbox/meta.ts +19 -0
  301. package/src/components/chip/meta.ts +10 -0
  302. package/src/components/chip-group/meta.ts +10 -0
  303. package/src/components/drawer/meta.ts +10 -0
  304. package/src/components/form/index.ts +0 -1
  305. package/src/components/form/meta.ts +83 -0
  306. package/src/components/form/types.ts +1 -1
  307. package/src/components/heading/meta.ts +67 -0
  308. package/src/components/icon/meta.ts +10 -0
  309. package/src/components/icon-button/meta.ts +10 -0
  310. package/src/components/image/meta.ts +10 -0
  311. package/src/components/input/meta.ts +46 -0
  312. package/src/components/media-card/meta.ts +10 -0
  313. package/src/components/metric-card/meta.ts +10 -0
  314. package/src/components/modal/meta.ts +10 -0
  315. package/src/components/navigation-item/meta.ts +10 -0
  316. package/src/components/navigation-list/meta.ts +10 -0
  317. package/src/components/progress/meta.ts +10 -0
  318. package/src/components/radio/meta.ts +19 -0
  319. package/src/components/rating/meta.ts +10 -0
  320. package/src/components/search-bar/meta.ts +10 -0
  321. package/src/components/select/meta.ts +10 -0
  322. package/src/components/tabs/meta.ts +10 -0
  323. package/src/components/text/meta.ts +69 -0
  324. package/src/components/textarea/meta.ts +46 -0
  325. package/src/components/toolbar/meta.ts +19 -0
  326. package/src/foundation/meta.ts +85 -0
  327. package/src/index.ts +15 -1
  328. package/src/layout/app-shell/meta.ts +10 -0
  329. package/src/layout/auth-layout/meta.ts +35 -0
  330. package/src/layout/page/meta.ts +21 -0
  331. package/src/layout/page-header/meta.ts +39 -0
  332. package/src/layout/page-section/meta.ts +30 -0
  333. package/src/layout/settings-layout/meta.ts +10 -0
  334. package/src/layout/sidebar-layout/meta.ts +10 -0
  335. package/src/layout/topbar-layout/meta.ts +10 -0
  336. package/src/metadata/allowedChildren.ts +27 -0
  337. package/src/metadata/componentMeta.test.ts +205 -0
  338. package/src/metadata/componentMeta.ts +149 -0
  339. package/src/metadata/index.ts +13 -0
  340. package/src/metadata/types.ts +74 -0
  341. package/src/patterns/auth/meta.ts +39 -0
  342. package/src/patterns/collection-editor/meta.ts +10 -0
  343. package/src/patterns/confirm-dialog/meta.ts +10 -0
  344. package/src/patterns/disclosure-section/meta.ts +10 -0
  345. package/src/patterns/empty-state/meta.ts +34 -0
  346. package/src/patterns/filter-bar/meta.ts +10 -0
  347. package/src/patterns/hero/Hero.tsx +112 -0
  348. package/src/patterns/hero/index.ts +2 -0
  349. package/src/patterns/hero/meta.ts +95 -0
  350. package/src/patterns/hero/types.ts +30 -0
  351. package/src/patterns/image-preview/meta.ts +10 -0
  352. package/src/patterns/image-upload-field/meta.ts +10 -0
  353. package/src/patterns/inspector-field/meta.ts +10 -0
  354. package/src/patterns/list/meta.ts +30 -0
  355. package/src/patterns/notice/meta.ts +36 -0
  356. package/src/patterns/panel/meta.ts +46 -0
  357. package/src/patterns/responsive-panel/meta.ts +10 -0
  358. package/src/patterns/section-header/meta.ts +34 -0
  359. package/src/patterns/selection/meta.ts +21 -0
  360. package/src/patterns/settings-row/meta.ts +40 -0
  361. package/src/patterns/switch-field/meta.ts +10 -0
  362. package/src/patterns/theme-composer/meta.ts +10 -0
  363. package/src/patterns/tile-grid/meta.ts +21 -0
  364. package/src/patterns/timeline/meta.ts +10 -0
  365. package/src/patterns/tree-view/meta.ts +21 -0
  366. package/src/patterns/zora-drawer-content/meta.ts +10 -0
  367. package/src/patterns/zora-tab-bar/meta.ts +10 -0
@@ -0,0 +1,9 @@
1
+ export const chipGroupMeta = {
2
+ name: 'ChipGroup',
3
+ category: 'component',
4
+ directManifestNode: false,
5
+ allowedChildren: [],
6
+ note: 'Selection component; not represented as a manifest node in v1.',
7
+ props: {},
8
+ };
9
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/chip-group/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,gEAAgE;IACtE,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const chipGroupMeta = {\n name: 'ChipGroup',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Selection component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,9 @@
1
+ export declare const drawerMeta: {
2
+ readonly name: "Drawer";
3
+ readonly category: "component";
4
+ readonly directManifestNode: false;
5
+ readonly allowedChildren: readonly [];
6
+ readonly note: "Shell/navigation component; not represented as a manifest node in v1.";
7
+ readonly props: {};
8
+ };
9
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;CAOe,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const drawerMeta = {
2
+ name: 'Drawer',
3
+ category: 'component',
4
+ directManifestNode: false,
5
+ allowedChildren: [],
6
+ note: 'Shell/navigation component; not represented as a manifest node in v1.',
7
+ props: {},
8
+ };
9
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/drawer/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,uEAAuE;IAC7E,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const drawerMeta = {\n name: 'Drawer',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Shell/navigation component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -2,7 +2,7 @@ export { Form } from './Form';
2
2
  export { FormActions } from './FormActions';
3
3
  export { FormError } from './FormError';
4
4
  export { FormField } from './FormField';
5
- export type { FormActionsProps, FormErrorProps, FormErrors, FormFieldConfig, FormFieldControlProps, FormFieldInputType, FormFieldProps, FormFieldValue, FormFieldWrapperProps, FormProps, FormValidationErrors, FormValidationResult, FormValues, UseFormControllerOptions, UseFormControllerResult, ValidationRule, } from './types';
5
+ export type { FormActionsProps, FormErrorProps, FormErrors, FormFieldConfig, FormFieldControlProps, FormFieldInputType, FormFieldProps, FormFieldValue, FormProps, FormValidationErrors, FormValidationResult, FormValues, UseFormControllerOptions, UseFormControllerResult, ValidationRule, } from './types';
6
6
  export { useFormController } from './useFormController';
7
7
  export { hasRequiredRule, validateField, validateFields, validateValue } from './validation';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,wBAAwB,EACxB,uBAAuB,EACvB,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,UAAU,EACV,wBAAwB,EACxB,uBAAuB,EACvB,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAmBxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { Form } from './Form';\nexport { FormActions } from './FormActions';\nexport { FormError } from './FormError';\nexport { FormField } from './FormField';\nexport type {\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldControlProps,\n FormFieldInputType,\n FormFieldProps,\n FormFieldValue,\n FormFieldWrapperProps,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './types';\nexport { useFormController } from './useFormController';\nexport { hasRequiredRule, validateField, validateFields, validateValue } from './validation';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAkBxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { Form } from './Form';\nexport { FormActions } from './FormActions';\nexport { FormError } from './FormError';\nexport { FormField } from './FormField';\nexport type {\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldControlProps,\n FormFieldInputType,\n FormFieldProps,\n FormFieldValue,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './types';\nexport { useFormController } from './useFormController';\nexport { hasRequiredRule, validateField, validateFields, validateValue } from './validation';\n"]}
@@ -0,0 +1,79 @@
1
+ export declare const formMeta: {
2
+ readonly name: "Form";
3
+ readonly category: "component";
4
+ readonly directManifestNode: false;
5
+ readonly allowedChildren: readonly [];
6
+ readonly note: "Form orchestration component; not represented as a manifest node in v1.";
7
+ readonly props: {};
8
+ };
9
+ export declare const formActionsMeta: {
10
+ readonly name: "FormActions";
11
+ readonly category: "component";
12
+ readonly directManifestNode: false;
13
+ readonly allowedChildren: readonly [];
14
+ readonly note: "Form helper component; not represented as a manifest node in v1.";
15
+ readonly props: {};
16
+ };
17
+ export declare const formErrorMeta: {
18
+ readonly name: "FormError";
19
+ readonly category: "component";
20
+ readonly directManifestNode: false;
21
+ readonly allowedChildren: readonly [];
22
+ readonly note: "Form helper component; not represented as a manifest node in v1.";
23
+ readonly props: {};
24
+ };
25
+ export declare const formFieldMeta: {
26
+ readonly name: "FormField";
27
+ readonly category: "component";
28
+ readonly directManifestNode: true;
29
+ readonly allowedChildren: readonly ["Input", "Textarea"];
30
+ readonly blueprint: {
31
+ readonly label: "Form field";
32
+ readonly defaultProps: {
33
+ readonly label: "Label";
34
+ };
35
+ };
36
+ readonly props: {
37
+ readonly label: {
38
+ readonly type: "string";
39
+ readonly category: "Content";
40
+ readonly label: "Label";
41
+ readonly default: "Label";
42
+ };
43
+ readonly description: {
44
+ readonly type: "string";
45
+ readonly category: "Content";
46
+ readonly label: "Description";
47
+ };
48
+ readonly helperText: {
49
+ readonly type: "string";
50
+ readonly category: "Content";
51
+ readonly label: "Helper text";
52
+ };
53
+ readonly required: {
54
+ readonly type: "boolean";
55
+ readonly category: "Validation";
56
+ readonly label: "Required";
57
+ readonly default: false;
58
+ };
59
+ readonly invalid: {
60
+ readonly type: "boolean";
61
+ readonly category: "Validation";
62
+ readonly label: "Invalid";
63
+ readonly default: false;
64
+ };
65
+ readonly disabled: {
66
+ readonly type: "boolean";
67
+ readonly category: "State";
68
+ readonly label: "Disabled";
69
+ readonly default: false;
70
+ };
71
+ readonly readOnly: {
72
+ readonly type: "boolean";
73
+ readonly category: "State";
74
+ readonly label: "Read-only";
75
+ readonly default: false;
76
+ };
77
+ };
78
+ };
79
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/form/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;CAOiB,CAAC;AAEvC,eAAO,MAAM,eAAe;;;;;;;CAOU,CAAC;AAEvC,eAAO,MAAM,aAAa;;;;;;;CAOY,CAAC;AAEvC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDY,CAAC"}
@@ -0,0 +1,79 @@
1
+ export const formMeta = {
2
+ name: 'Form',
3
+ category: 'component',
4
+ directManifestNode: false,
5
+ allowedChildren: [],
6
+ note: 'Form orchestration component; not represented as a manifest node in v1.',
7
+ props: {},
8
+ };
9
+ export const formActionsMeta = {
10
+ name: 'FormActions',
11
+ category: 'component',
12
+ directManifestNode: false,
13
+ allowedChildren: [],
14
+ note: 'Form helper component; not represented as a manifest node in v1.',
15
+ props: {},
16
+ };
17
+ export const formErrorMeta = {
18
+ name: 'FormError',
19
+ category: 'component',
20
+ directManifestNode: false,
21
+ allowedChildren: [],
22
+ note: 'Form helper component; not represented as a manifest node in v1.',
23
+ props: {},
24
+ };
25
+ export const formFieldMeta = {
26
+ name: 'FormField',
27
+ category: 'component',
28
+ directManifestNode: true,
29
+ allowedChildren: ['Input', 'Textarea'],
30
+ blueprint: {
31
+ label: 'Form field',
32
+ defaultProps: {
33
+ label: 'Label',
34
+ },
35
+ },
36
+ props: {
37
+ label: {
38
+ type: 'string',
39
+ category: 'Content',
40
+ label: 'Label',
41
+ default: 'Label',
42
+ },
43
+ description: {
44
+ type: 'string',
45
+ category: 'Content',
46
+ label: 'Description',
47
+ },
48
+ helperText: {
49
+ type: 'string',
50
+ category: 'Content',
51
+ label: 'Helper text',
52
+ },
53
+ required: {
54
+ type: 'boolean',
55
+ category: 'Validation',
56
+ label: 'Required',
57
+ default: false,
58
+ },
59
+ invalid: {
60
+ type: 'boolean',
61
+ category: 'Validation',
62
+ label: 'Invalid',
63
+ default: false,
64
+ },
65
+ disabled: {
66
+ type: 'boolean',
67
+ category: 'State',
68
+ label: 'Disabled',
69
+ default: false,
70
+ },
71
+ readOnly: {
72
+ type: 'boolean',
73
+ category: 'State',
74
+ label: 'Read-only',
75
+ default: false,
76
+ },
77
+ },
78
+ };
79
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/form/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,yEAAyE;IAC/E,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,kEAAkE;IACxE,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,kEAAkE;IACxE,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;IACtC,SAAS,EAAE;QACT,KAAK,EAAE,YAAY;QACnB,YAAY,EAAE;YACZ,KAAK,EAAE,OAAO;SACf;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,OAAO;SACjB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;SACrB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;SACrB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,KAAK;SACf;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,KAAK;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,KAAK;SACf;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const formMeta = {\n name: 'Form',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Form orchestration component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const formActionsMeta = {\n name: 'FormActions',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Form helper component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const formErrorMeta = {\n name: 'FormError',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Form helper component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const formFieldMeta = {\n name: 'FormField',\n category: 'component',\n directManifestNode: true,\n allowedChildren: ['Input', 'Textarea'],\n blueprint: {\n label: 'Form field',\n defaultProps: {\n label: 'Label',\n },\n },\n props: {\n label: {\n type: 'string',\n category: 'Content',\n label: 'Label',\n default: 'Label',\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n },\n helperText: {\n type: 'string',\n category: 'Content',\n label: 'Helper text',\n },\n required: {\n type: 'boolean',\n category: 'Validation',\n label: 'Required',\n default: false,\n },\n invalid: {\n type: 'boolean',\n category: 'Validation',\n label: 'Invalid',\n default: false,\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n default: false,\n },\n readOnly: {\n type: 'boolean',\n category: 'State',\n label: 'Read-only',\n default: false,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -41,7 +41,7 @@ export interface FormFieldConfig<TName extends string = string> {
41
41
  disabled?: boolean;
42
42
  testID?: string;
43
43
  }
44
- export interface FormFieldWrapperProps extends ZoraBaseProps, Pick<Omit<SurfaceFieldProps, 'mode' | 'themeId'>, 'children' | 'disabled' | 'errorText' | 'invalid' | 'readOnly' | 'required'> {
44
+ interface FormFieldWrapperProps extends ZoraBaseProps, Pick<Omit<SurfaceFieldProps, 'mode' | 'themeId'>, 'children' | 'disabled' | 'errorText' | 'invalid' | 'readOnly' | 'required'> {
45
45
  label: React.ReactNode;
46
46
  description?: React.ReactNode;
47
47
  helperText?: React.ReactNode;
@@ -101,4 +101,5 @@ export interface UseFormControllerResult<TName extends string = string> {
101
101
  handleSubmit: () => Promise<void>;
102
102
  reset: () => void;
103
103
  }
104
+ export {};
104
105
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/form/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MA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CAAC;IAC5D,QAAQ,EAAE,MAAM,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAC5C,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/form/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { FieldProps as SurfaceFieldProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\nimport type { InputProps } from '../input';\n\nexport type ValidationRule =\n | { kind: 'required'; message?: string }\n | { kind: 'email'; message?: string }\n | { kind: 'minLength'; value: number; message?: string }\n | { kind: 'pattern'; value: string; message?: string };\n\nexport type FormFieldValue = string;\nexport type FormValues<TName extends string = string> = Record<TName, FormFieldValue>;\nexport type FormErrors<TName extends string = string> = Partial<Record<TName, React.ReactNode>>;\nexport type FormValidationErrors<TName extends string = string> = Partial<Record<TName, string>>;\n\nexport type FormFieldInputType = 'email' | 'number' | 'otp' | 'password' | 'tel' | 'text' | 'url';\n\nexport interface FormFieldConfig<TName extends string = string> {\n name: TName;\n label: React.ReactNode;\n description?: React.ReactNode;\n helperText?: React.ReactNode;\n type?: FormFieldInputType;\n placeholder?: string;\n rules?: readonly ValidationRule[];\n autoCapitalize?: InputProps['autoCapitalize'];\n autoComplete?: InputProps['autoComplete'];\n keyboardType?: InputProps['keyboardType'];\n maxLength?: InputProps['maxLength'];\n readOnly?: boolean;\n required?: boolean;\n secureTextEntry?: boolean;\n textContentType?: InputProps['textContentType'];\n disabled?: boolean;\n testID?: string;\n}\n\nexport interface FormFieldWrapperProps\n extends\n ZoraBaseProps,\n Pick<\n Omit<SurfaceFieldProps, 'mode' | 'themeId'>,\n 'children' | 'disabled' | 'errorText' | 'invalid' | 'readOnly' | 'required'\n > {\n label: React.ReactNode;\n description?: React.ReactNode;\n helperText?: React.ReactNode;\n}\n\nexport interface FormFieldControlProps<TName extends string = string> extends ZoraBaseProps {\n field: FormFieldConfig<TName>;\n value: FormFieldValue;\n onChange: (name: TName, value: FormFieldValue) => void;\n error?: React.ReactNode;\n disabled?: boolean;\n loading?: boolean;\n}\n\nexport type FormFieldProps<TName extends string = string> =\n | FormFieldControlProps<TName>\n | FormFieldWrapperProps;\n\nexport interface FormActionsProps extends ZoraBaseProps {\n submitLabel?: React.ReactNode;\n loading?: boolean;\n disabled?: boolean;\n onSubmit?: () => void;\n children?: React.ReactNode;\n}\n\nexport interface FormErrorProps extends ZoraBaseProps {\n error?: React.ReactNode;\n}\n\nexport interface FormProps<TName extends string = string> extends ZoraBaseProps {\n fields: readonly FormFieldConfig<TName>[];\n values: FormValues<TName>;\n onChange: (values: FormValues<TName>) => void;\n onSubmit: (values: FormValues<TName>) => void | Promise<void>;\n errors?: FormErrors<TName>;\n error?: React.ReactNode;\n loading?: boolean;\n disabled?: boolean;\n submitLabel?: React.ReactNode;\n actions?: React.ReactNode;\n footer?: React.ReactNode;\n validateOnChange?: boolean;\n}\n\nexport interface FormValidationResult<TName extends string = string> {\n errors: FormValidationErrors<TName>;\n valid: boolean;\n}\n\nexport interface UseFormControllerOptions<TName extends string = string> {\n fields: readonly FormFieldConfig<TName>[];\n initialValues?: Partial<FormValues<TName>>;\n values?: FormValues<TName>;\n errors?: FormErrors<TName>;\n onChange?: (values: FormValues<TName>) => void;\n onSubmit?: (values: FormValues<TName>) => void | Promise<void>;\n validateOnChange?: boolean;\n}\n\nexport interface UseFormControllerResult<TName extends string = string> {\n values: FormValues<TName>;\n errors: FormErrors<TName>;\n setValues: (values: FormValues<TName>) => void;\n setFieldValue: (name: TName, value: FormFieldValue) => void;\n validate: () => FormValidationResult<TName>;\n handleSubmit: () => Promise<void>;\n reset: () => void;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/form/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { FieldProps as SurfaceFieldProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\nimport type { InputProps } from '../input';\n\nexport type ValidationRule =\n | { kind: 'required'; message?: string }\n | { kind: 'email'; message?: string }\n | { kind: 'minLength'; value: number; message?: string }\n | { kind: 'pattern'; value: string; message?: string };\n\nexport type FormFieldValue = string;\nexport type FormValues<TName extends string = string> = Record<TName, FormFieldValue>;\nexport type FormErrors<TName extends string = string> = Partial<Record<TName, React.ReactNode>>;\nexport type FormValidationErrors<TName extends string = string> = Partial<Record<TName, string>>;\n\nexport type FormFieldInputType = 'email' | 'number' | 'otp' | 'password' | 'tel' | 'text' | 'url';\n\nexport interface FormFieldConfig<TName extends string = string> {\n name: TName;\n label: React.ReactNode;\n description?: React.ReactNode;\n helperText?: React.ReactNode;\n type?: FormFieldInputType;\n placeholder?: string;\n rules?: readonly ValidationRule[];\n autoCapitalize?: InputProps['autoCapitalize'];\n autoComplete?: InputProps['autoComplete'];\n keyboardType?: InputProps['keyboardType'];\n maxLength?: InputProps['maxLength'];\n readOnly?: boolean;\n required?: boolean;\n secureTextEntry?: boolean;\n textContentType?: InputProps['textContentType'];\n disabled?: boolean;\n testID?: string;\n}\n\ninterface FormFieldWrapperProps\n extends\n ZoraBaseProps,\n Pick<\n Omit<SurfaceFieldProps, 'mode' | 'themeId'>,\n 'children' | 'disabled' | 'errorText' | 'invalid' | 'readOnly' | 'required'\n > {\n label: React.ReactNode;\n description?: React.ReactNode;\n helperText?: React.ReactNode;\n}\n\nexport interface FormFieldControlProps<TName extends string = string> extends ZoraBaseProps {\n field: FormFieldConfig<TName>;\n value: FormFieldValue;\n onChange: (name: TName, value: FormFieldValue) => void;\n error?: React.ReactNode;\n disabled?: boolean;\n loading?: boolean;\n}\n\nexport type FormFieldProps<TName extends string = string> =\n | FormFieldControlProps<TName>\n | FormFieldWrapperProps;\n\nexport interface FormActionsProps extends ZoraBaseProps {\n submitLabel?: React.ReactNode;\n loading?: boolean;\n disabled?: boolean;\n onSubmit?: () => void;\n children?: React.ReactNode;\n}\n\nexport interface FormErrorProps extends ZoraBaseProps {\n error?: React.ReactNode;\n}\n\nexport interface FormProps<TName extends string = string> extends ZoraBaseProps {\n fields: readonly FormFieldConfig<TName>[];\n values: FormValues<TName>;\n onChange: (values: FormValues<TName>) => void;\n onSubmit: (values: FormValues<TName>) => void | Promise<void>;\n errors?: FormErrors<TName>;\n error?: React.ReactNode;\n loading?: boolean;\n disabled?: boolean;\n submitLabel?: React.ReactNode;\n actions?: React.ReactNode;\n footer?: React.ReactNode;\n validateOnChange?: boolean;\n}\n\nexport interface FormValidationResult<TName extends string = string> {\n errors: FormValidationErrors<TName>;\n valid: boolean;\n}\n\nexport interface UseFormControllerOptions<TName extends string = string> {\n fields: readonly FormFieldConfig<TName>[];\n initialValues?: Partial<FormValues<TName>>;\n values?: FormValues<TName>;\n errors?: FormErrors<TName>;\n onChange?: (values: FormValues<TName>) => void;\n onSubmit?: (values: FormValues<TName>) => void | Promise<void>;\n validateOnChange?: boolean;\n}\n\nexport interface UseFormControllerResult<TName extends string = string> {\n values: FormValues<TName>;\n errors: FormErrors<TName>;\n setValues: (values: FormValues<TName>) => void;\n setFieldValue: (name: TName, value: FormFieldValue) => void;\n validate: () => FormValidationResult<TName>;\n handleSubmit: () => Promise<void>;\n reset: () => void;\n}\n"]}
@@ -0,0 +1,69 @@
1
+ export declare const headingMeta: {
2
+ readonly name: "Heading";
3
+ readonly category: "component";
4
+ readonly directManifestNode: true;
5
+ readonly allowedChildren: readonly [];
6
+ readonly blueprint: {
7
+ readonly label: "Heading";
8
+ readonly defaultProps: {
9
+ readonly text: "Heading";
10
+ readonly level: 2;
11
+ };
12
+ };
13
+ readonly i18n: {
14
+ readonly fields: readonly [{
15
+ readonly keyProp: "i18nKey";
16
+ readonly defaultTextProp: "text";
17
+ }];
18
+ };
19
+ readonly props: {
20
+ readonly text: {
21
+ readonly type: "string";
22
+ readonly category: "Content";
23
+ readonly label: "Text";
24
+ readonly default: "Heading";
25
+ };
26
+ readonly i18nKey: {
27
+ readonly type: "string";
28
+ readonly category: "Content";
29
+ readonly label: "i18n key";
30
+ };
31
+ readonly level: {
32
+ readonly type: "enum";
33
+ readonly category: "Semantics";
34
+ readonly label: "Level";
35
+ readonly enum: readonly [1, 2, 3, 4, 5, 6];
36
+ readonly default: 2;
37
+ };
38
+ readonly tone: {
39
+ readonly type: "enum";
40
+ readonly category: "Style";
41
+ readonly label: "Tone";
42
+ readonly enum: readonly ["default", "muted", "subtle", "inverse", "primary", "danger", "success", "warning"];
43
+ };
44
+ readonly align: {
45
+ readonly type: "enum";
46
+ readonly category: "Layout";
47
+ readonly label: "Align";
48
+ readonly enum: readonly ["auto", "left", "right", "center", "justify"];
49
+ };
50
+ readonly weight: {
51
+ readonly type: "enum";
52
+ readonly category: "Typography";
53
+ readonly label: "Weight";
54
+ readonly enum: readonly ["regular", "medium", "semiBold", "bold"];
55
+ };
56
+ readonly italic: {
57
+ readonly type: "boolean";
58
+ readonly category: "Typography";
59
+ readonly label: "Italic";
60
+ readonly default: false;
61
+ };
62
+ readonly numberOfLines: {
63
+ readonly type: "number";
64
+ readonly category: "Layout";
65
+ readonly label: "Line clamp";
66
+ };
67
+ };
68
+ };
69
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/heading/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEc,CAAC"}
@@ -0,0 +1,66 @@
1
+ export const headingMeta = {
2
+ name: 'Heading',
3
+ category: 'component',
4
+ directManifestNode: true,
5
+ allowedChildren: [],
6
+ blueprint: {
7
+ label: 'Heading',
8
+ defaultProps: {
9
+ text: 'Heading',
10
+ level: 2,
11
+ },
12
+ },
13
+ i18n: {
14
+ fields: [{ keyProp: 'i18nKey', defaultTextProp: 'text' }],
15
+ },
16
+ props: {
17
+ text: {
18
+ type: 'string',
19
+ category: 'Content',
20
+ label: 'Text',
21
+ default: 'Heading',
22
+ },
23
+ i18nKey: {
24
+ type: 'string',
25
+ category: 'Content',
26
+ label: 'i18n key',
27
+ },
28
+ level: {
29
+ type: 'enum',
30
+ category: 'Semantics',
31
+ label: 'Level',
32
+ enum: [1, 2, 3, 4, 5, 6],
33
+ default: 2,
34
+ },
35
+ tone: {
36
+ type: 'enum',
37
+ category: 'Style',
38
+ label: 'Tone',
39
+ enum: ['default', 'muted', 'subtle', 'inverse', 'primary', 'danger', 'success', 'warning'],
40
+ },
41
+ align: {
42
+ type: 'enum',
43
+ category: 'Layout',
44
+ label: 'Align',
45
+ enum: ['auto', 'left', 'right', 'center', 'justify'],
46
+ },
47
+ weight: {
48
+ type: 'enum',
49
+ category: 'Typography',
50
+ label: 'Weight',
51
+ enum: ['regular', 'medium', 'semiBold', 'bold'],
52
+ },
53
+ italic: {
54
+ type: 'boolean',
55
+ category: 'Typography',
56
+ label: 'Italic',
57
+ default: false,
58
+ },
59
+ numberOfLines: {
60
+ type: 'number',
61
+ category: 'Layout',
62
+ label: 'Line clamp',
63
+ },
64
+ },
65
+ };
66
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/heading/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,SAAS;QAChB,YAAY,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,CAAC;SACT;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC;KAC1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CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const headingMeta = {\n name: 'Heading',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Heading',\n defaultProps: {\n text: 'Heading',\n level: 2,\n },\n },\n i18n: {\n fields: [{ keyProp: 'i18nKey', defaultTextProp: 'text' }],\n },\n props: {\n text: {\n type: 'string',\n category: 'Content',\n label: 'Text',\n default: 'Heading',\n },\n i18nKey: {\n type: 'string',\n category: 'Content',\n label: 'i18n key',\n },\n level: {\n type: 'enum',\n category: 'Semantics',\n label: 'Level',\n enum: [1, 2, 3, 4, 5, 6],\n default: 2,\n },\n tone: {\n type: 'enum',\n category: 'Style',\n label: 'Tone',\n enum: ['default', 'muted', 'subtle', 'inverse', 'primary', 'danger', 'success', 'warning'],\n },\n align: {\n type: 'enum',\n category: 'Layout',\n label: 'Align',\n enum: ['auto', 'left', 'right', 'center', 'justify'],\n },\n weight: {\n type: 'enum',\n category: 'Typography',\n label: 'Weight',\n enum: ['regular', 'medium', 'semiBold', 'bold'],\n },\n italic: {\n type: 'boolean',\n category: 'Typography',\n label: 'Italic',\n default: false,\n },\n numberOfLines: {\n type: 'number',\n category: 'Layout',\n label: 'Line clamp',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,9 @@
1
+ export declare const iconMeta: {
2
+ readonly name: "Icon";
3
+ readonly category: "component";
4
+ readonly directManifestNode: false;
5
+ readonly allowedChildren: readonly [];
6
+ readonly note: "Icon renderer component; not represented as a manifest node in v1.";
7
+ readonly props: {};
8
+ };
9
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/icon/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;CAOiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const iconMeta = {
2
+ name: 'Icon',
3
+ category: 'component',
4
+ directManifestNode: false,
5
+ allowedChildren: [],
6
+ note: 'Icon renderer component; not represented as a manifest node in v1.',
7
+ props: {},
8
+ };
9
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/icon/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,oEAAoE;IAC1E,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const iconMeta = {\n name: 'Icon',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Icon renderer component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,9 @@
1
+ export declare const iconButtonMeta: {
2
+ readonly name: "IconButton";
3
+ readonly category: "component";
4
+ readonly directManifestNode: false;
5
+ readonly allowedChildren: readonly [];
6
+ readonly note: "Icon-only action component; not represented as a manifest node in v1.";
7
+ readonly props: {};
8
+ };
9
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;CAOW,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const iconButtonMeta = {
2
+ name: 'IconButton',
3
+ category: 'component',
4
+ directManifestNode: false,
5
+ allowedChildren: [],
6
+ note: 'Icon-only action component; not represented as a manifest node in v1.',
7
+ props: {},
8
+ };
9
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/icon-button/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,uEAAuE;IAC7E,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const iconButtonMeta = {\n name: 'IconButton',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Icon-only action component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,9 @@
1
+ export declare const imageMeta: {
2
+ readonly name: "Image";
3
+ readonly category: "component";
4
+ readonly directManifestNode: false;
5
+ readonly allowedChildren: readonly [];
6
+ readonly note: "Media component; not represented as a manifest node in v1.";
7
+ readonly props: {};
8
+ };
9
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/image/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;CAOgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const imageMeta = {
2
+ name: 'Image',
3
+ category: 'component',
4
+ directManifestNode: false,
5
+ allowedChildren: [],
6
+ note: 'Media component; not represented as a manifest node in v1.',
7
+ props: {},
8
+ };
9
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/image/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,4DAA4D;IAClE,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const imageMeta = {\n name: 'Image',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Media component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,45 @@
1
+ export declare const inputMeta: {
2
+ readonly name: "Input";
3
+ readonly category: "component";
4
+ readonly directManifestNode: true;
5
+ readonly allowedChildren: readonly [];
6
+ readonly blueprint: {
7
+ readonly label: "Input";
8
+ readonly defaultProps: {
9
+ readonly placeholder: "Enter text…";
10
+ readonly value: "";
11
+ };
12
+ };
13
+ readonly props: {
14
+ readonly placeholder: {
15
+ readonly type: "string";
16
+ readonly category: "Content";
17
+ readonly label: "Placeholder";
18
+ };
19
+ readonly value: {
20
+ readonly type: "string";
21
+ readonly category: "Content";
22
+ readonly label: "Value";
23
+ readonly default: "";
24
+ };
25
+ readonly size: {
26
+ readonly type: "enum";
27
+ readonly category: "Style";
28
+ readonly label: "Size";
29
+ readonly enum: readonly ["s", "m", "l"];
30
+ };
31
+ readonly disabled: {
32
+ readonly type: "boolean";
33
+ readonly category: "State";
34
+ readonly label: "Disabled";
35
+ readonly default: false;
36
+ };
37
+ readonly readOnly: {
38
+ readonly type: "boolean";
39
+ readonly category: "State";
40
+ readonly label: "Read-only";
41
+ readonly default: false;
42
+ };
43
+ };
44
+ };
45
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/input/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CgB,CAAC"}
@@ -0,0 +1,45 @@
1
+ export const inputMeta = {
2
+ name: 'Input',
3
+ category: 'component',
4
+ directManifestNode: true,
5
+ allowedChildren: [],
6
+ blueprint: {
7
+ label: 'Input',
8
+ defaultProps: {
9
+ placeholder: 'Enter text…',
10
+ value: '',
11
+ },
12
+ },
13
+ props: {
14
+ placeholder: {
15
+ type: 'string',
16
+ category: 'Content',
17
+ label: 'Placeholder',
18
+ },
19
+ value: {
20
+ type: 'string',
21
+ category: 'Content',
22
+ label: 'Value',
23
+ default: '',
24
+ },
25
+ size: {
26
+ type: 'enum',
27
+ category: 'Style',
28
+ label: 'Size',
29
+ enum: ['s', 'm', 'l'],
30
+ },
31
+ disabled: {
32
+ type: 'boolean',
33
+ category: 'State',
34
+ label: 'Disabled',
35
+ default: false,
36
+ },
37
+ readOnly: {
38
+ type: 'boolean',
39
+ category: 'State',
40
+ label: 'Read-only',
41
+ default: false,
42
+ },
43
+ },
44
+ };
45
+ //# sourceMappingURL=meta.js.map