@ankhorage/zora 8.0.0 → 9.0.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 (360) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/components/form/FormField.js +2 -2
  4. package/dist/components/form/FormField.js.map +1 -1
  5. package/dist/components/form/meta.d.ts +1 -1
  6. package/dist/components/form/meta.js +1 -1
  7. package/dist/components/form/meta.js.map +1 -1
  8. package/dist/components/form/types.d.ts +6 -6
  9. package/dist/components/form/types.d.ts.map +1 -1
  10. package/dist/components/form/types.js.map +1 -1
  11. package/dist/components/search-bar/SearchBar.js +2 -2
  12. package/dist/components/search-bar/SearchBar.js.map +1 -1
  13. package/dist/features/activity-indicator/activityIndicatorMeta.d.ts +32 -0
  14. package/dist/features/activity-indicator/activityIndicatorMeta.d.ts.map +1 -0
  15. package/dist/features/activity-indicator/activityIndicatorMeta.js +13 -0
  16. package/dist/features/activity-indicator/activityIndicatorMeta.js.map +1 -0
  17. package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.d.ts +5 -0
  18. package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.d.ts.map +1 -0
  19. package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js +12 -0
  20. package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js.map +1 -0
  21. package/dist/features/activity-indicator/public.d.ts +3 -0
  22. package/dist/features/activity-indicator/public.d.ts.map +1 -0
  23. package/dist/features/activity-indicator/public.js +2 -0
  24. package/dist/features/activity-indicator/public.js.map +1 -0
  25. package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
  26. package/dist/features/card/cardMeta.d.ts +1 -1
  27. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  28. package/dist/features/card/postCardMeta.d.ts +1 -1
  29. package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
  30. package/dist/features/data-table/adapters/inbound/DataTable.js +1 -1
  31. package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
  32. package/dist/{patterns/empty-state → features/empty-state/adapters/inbound}/EmptyState.d.ts +1 -1
  33. package/dist/features/empty-state/adapters/inbound/EmptyState.d.ts.map +1 -0
  34. package/dist/{patterns/empty-state → features/empty-state/adapters/inbound}/EmptyState.js +4 -4
  35. package/dist/features/empty-state/adapters/inbound/EmptyState.js.map +1 -0
  36. package/dist/{patterns/empty-state/meta.d.ts → features/empty-state/emptyStateMeta.d.ts} +1 -1
  37. package/dist/features/empty-state/emptyStateMeta.d.ts.map +1 -0
  38. package/dist/{patterns/empty-state/meta.js → features/empty-state/emptyStateMeta.js} +1 -1
  39. package/dist/features/empty-state/emptyStateMeta.js.map +1 -0
  40. package/dist/features/empty-state/public.d.ts +3 -0
  41. package/dist/features/empty-state/public.d.ts.map +1 -0
  42. package/dist/features/empty-state/public.js +2 -0
  43. package/dist/features/empty-state/public.js.map +1 -0
  44. package/dist/{components/checkbox → features/form/checkbox/adapters/inbound}/Checkbox.d.ts +1 -1
  45. package/dist/features/form/checkbox/adapters/inbound/Checkbox.d.ts.map +1 -0
  46. package/dist/{components/checkbox → features/form/checkbox/adapters/inbound}/Checkbox.js +1 -1
  47. package/dist/features/form/checkbox/adapters/inbound/Checkbox.js.map +1 -0
  48. package/dist/{components/checkbox → features/form/checkbox/adapters/inbound}/CheckboxGroup.d.ts +1 -1
  49. package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.d.ts.map +1 -0
  50. package/dist/{components/checkbox → features/form/checkbox/adapters/inbound}/CheckboxGroup.js +3 -3
  51. package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js.map +1 -0
  52. package/dist/features/form/checkbox/checkboxMeta.d.ts +67 -0
  53. package/dist/features/form/checkbox/checkboxMeta.d.ts.map +1 -0
  54. package/dist/features/form/checkbox/checkboxMeta.js +28 -0
  55. package/dist/features/form/checkbox/checkboxMeta.js.map +1 -0
  56. package/dist/features/form/checkbox/public.d.ts +4 -0
  57. package/dist/features/form/checkbox/public.d.ts.map +1 -0
  58. package/dist/features/form/checkbox/public.js +3 -0
  59. package/dist/features/form/checkbox/public.js.map +1 -0
  60. package/dist/{components/radio → features/form/radio/adapters/inbound}/Radio.d.ts +1 -1
  61. package/dist/features/form/radio/adapters/inbound/Radio.d.ts.map +1 -0
  62. package/dist/{components/radio → features/form/radio/adapters/inbound}/Radio.js +1 -1
  63. package/dist/features/form/radio/adapters/inbound/Radio.js.map +1 -0
  64. package/dist/{components/radio → features/form/radio/adapters/inbound}/RadioGroup.d.ts +1 -1
  65. package/dist/features/form/radio/adapters/inbound/RadioGroup.d.ts.map +1 -0
  66. package/dist/{components/radio → features/form/radio/adapters/inbound}/RadioGroup.js +5 -5
  67. package/dist/features/form/radio/adapters/inbound/RadioGroup.js.map +1 -0
  68. package/dist/{components/radio → features/form/radio/adapters/inbound}/RadioOptionControl.d.ts +1 -1
  69. package/dist/features/form/radio/adapters/inbound/RadioOptionControl.d.ts.map +1 -0
  70. package/dist/{components/radio → features/form/radio/adapters/inbound}/RadioOptionControl.js +4 -4
  71. package/dist/features/form/radio/adapters/inbound/RadioOptionControl.js.map +1 -0
  72. package/dist/features/form/radio/public.d.ts +4 -0
  73. package/dist/features/form/radio/public.d.ts.map +1 -0
  74. package/dist/features/form/radio/public.js +3 -0
  75. package/dist/features/form/radio/public.js.map +1 -0
  76. package/dist/{components/radio/meta.d.ts → features/form/radio/radioMeta.d.ts} +28 -4
  77. package/dist/features/form/radio/radioMeta.d.ts.map +1 -0
  78. package/dist/{components/radio/meta.js → features/form/radio/radioMeta.js} +9 -5
  79. package/dist/features/form/radio/radioMeta.js.map +1 -0
  80. package/dist/features/form/radio/themeRecipeMeta.d.ts.map +1 -0
  81. package/dist/{components → features/form}/radio/themeRecipeMeta.js +1 -1
  82. package/dist/features/form/radio/themeRecipeMeta.js.map +1 -0
  83. package/dist/features/form/radio/utils/handleRadioOptionKeyDown.d.ts.map +1 -0
  84. package/dist/{components/radio → features/form/radio/utils}/handleRadioOptionKeyDown.js +1 -1
  85. package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js.map +1 -0
  86. package/dist/{components/radio → features/form/radio/utils}/resolveRadioGroupThemeRecipe.d.ts +2 -2
  87. package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts.map +1 -0
  88. package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.js.map +1 -0
  89. package/dist/{components/radio → features/form/radio/utils}/resolveRadioOptionColors.d.ts +1 -1
  90. package/dist/features/form/radio/utils/resolveRadioOptionColors.d.ts.map +1 -0
  91. package/dist/features/form/radio/utils/resolveRadioOptionColors.js.map +1 -0
  92. package/dist/features/form/text-input/adapters/inbound/TextInput.d.ts +14 -0
  93. package/dist/features/form/text-input/adapters/inbound/TextInput.d.ts.map +1 -0
  94. package/dist/{components/input/Input.js → features/form/text-input/adapters/inbound/TextInput.js} +9 -10
  95. package/dist/features/form/text-input/adapters/inbound/TextInput.js.map +1 -0
  96. package/dist/features/form/text-input/public.d.ts +3 -0
  97. package/dist/features/form/text-input/public.d.ts.map +1 -0
  98. package/dist/features/form/text-input/public.js +2 -0
  99. package/dist/features/form/text-input/public.js.map +1 -0
  100. package/dist/{components/input/meta.d.ts → features/form/text-input/textInputMeta.d.ts} +16 -4
  101. package/dist/features/form/text-input/textInputMeta.d.ts.map +1 -0
  102. package/dist/{components/input/meta.js → features/form/text-input/textInputMeta.js} +16 -4
  103. package/dist/features/form/text-input/textInputMeta.js.map +1 -0
  104. package/dist/features/layout/boxMeta.d.ts +1 -1
  105. package/dist/features/layout/containerMeta.d.ts +1 -1
  106. package/dist/features/layout/gridMeta.d.ts +1 -1
  107. package/dist/features/layout/stackMeta.d.ts +1 -1
  108. package/dist/features/list/flatListMeta.d.ts +1 -1
  109. package/dist/features/list/sectionListMeta.d.ts +1 -1
  110. package/dist/{components/progress → features/progress/adapters/inbound}/Progress.d.ts +1 -1
  111. package/dist/features/progress/adapters/inbound/Progress.d.ts.map +1 -0
  112. package/dist/{components/progress → features/progress/adapters/inbound}/Progress.js +5 -5
  113. package/dist/features/progress/adapters/inbound/Progress.js.map +1 -0
  114. package/dist/{components/progress → features/progress/adapters/inbound}/ProgressRing.d.ts +1 -1
  115. package/dist/features/progress/adapters/inbound/ProgressRing.d.ts.map +1 -0
  116. package/dist/{components/progress → features/progress/adapters/inbound}/ProgressRing.js +7 -7
  117. package/dist/features/progress/adapters/inbound/ProgressRing.js.map +1 -0
  118. package/dist/{components/progress/meta.d.ts → features/progress/progressMeta.d.ts} +1 -1
  119. package/dist/features/progress/progressMeta.d.ts.map +1 -0
  120. package/dist/{components/progress/meta.js → features/progress/progressMeta.js} +1 -1
  121. package/dist/features/progress/progressMeta.js.map +1 -0
  122. package/dist/features/progress/public.d.ts +4 -0
  123. package/dist/features/progress/public.d.ts.map +1 -0
  124. package/dist/features/progress/public.js +3 -0
  125. package/dist/features/progress/public.js.map +1 -0
  126. package/dist/features/progress/utils/resolveProgressFraction.d.ts.map +1 -0
  127. package/dist/features/progress/utils/resolveProgressFraction.js.map +1 -0
  128. package/dist/features/progress/utils/resolveProgressRingGeometry.d.ts.map +1 -0
  129. package/dist/features/progress/utils/resolveProgressRingGeometry.js.map +1 -0
  130. package/dist/features/splash-screen/splashScreenMeta.d.ts +1 -1
  131. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  132. package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
  133. package/dist/features/uploader/adapters/inbound/Uploader.js +1 -1
  134. package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
  135. package/dist/index.d.ts +6 -12
  136. package/dist/index.d.ts.map +1 -1
  137. package/dist/index.js +6 -6
  138. package/dist/index.js.map +1 -1
  139. package/dist/layout/screen/meta.d.ts +1 -1
  140. package/dist/layout/screen-section/meta.d.ts +1 -1
  141. package/dist/metadata/allowedChildren.d.ts +3 -3
  142. package/dist/metadata/allowedChildren.d.ts.map +1 -1
  143. package/dist/metadata/allowedChildren.js +2 -2
  144. package/dist/metadata/allowedChildren.js.map +1 -1
  145. package/dist/metadata/bindableComponentMeta.d.ts +9 -76
  146. package/dist/metadata/bindableComponentMeta.d.ts.map +1 -1
  147. package/dist/metadata/bindableComponentMeta.js +7 -62
  148. package/dist/metadata/bindableComponentMeta.js.map +1 -1
  149. package/dist/metadata/componentMeta.js +8 -8
  150. package/dist/metadata/componentMeta.js.map +1 -1
  151. package/dist/metadata/themeRecipeMeta.js +1 -1
  152. package/dist/metadata/themeRecipeMeta.js.map +1 -1
  153. package/dist/patterns/message-bubble/meta.d.ts +1 -1
  154. package/dist/patterns/notice/meta.d.ts +1 -1
  155. package/dist/patterns/panel/meta.d.ts +1 -1
  156. package/dist/patterns/reader/ReaderSurface.js +1 -1
  157. package/dist/patterns/reader/ReaderSurface.js.map +1 -1
  158. package/dist/patterns/reader/meta.d.ts +2 -2
  159. package/dist/patterns/scanner/meta.d.ts +2 -2
  160. package/dist/patterns/theme-composer/ThemeComposer.js +3 -3
  161. package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
  162. package/dist/registry.js +8 -8
  163. package/dist/registry.js.map +1 -1
  164. package/dist/types/activity-indicator.d.ts +6 -0
  165. package/dist/types/activity-indicator.d.ts.map +1 -0
  166. package/dist/types/activity-indicator.js +2 -0
  167. package/dist/types/activity-indicator.js.map +1 -0
  168. package/dist/{components/checkbox/types.d.ts → types/checkbox.d.ts} +2 -2
  169. package/dist/types/checkbox.d.ts.map +1 -0
  170. package/dist/types/checkbox.js +2 -0
  171. package/dist/types/checkbox.js.map +1 -0
  172. package/dist/{patterns/empty-state/types.d.ts → types/empty-state.d.ts} +3 -3
  173. package/dist/types/empty-state.d.ts.map +1 -0
  174. package/dist/types/empty-state.js +2 -0
  175. package/dist/types/empty-state.js.map +1 -0
  176. package/dist/{components/progress/types.d.ts → types/progress.d.ts} +3 -3
  177. package/dist/types/progress.d.ts.map +1 -0
  178. package/dist/{components/progress/types.js → types/progress.js} +1 -1
  179. package/dist/types/progress.js.map +1 -0
  180. package/dist/{components/radio/types.d.ts → types/radio.d.ts} +3 -3
  181. package/dist/types/radio.d.ts.map +1 -0
  182. package/dist/types/radio.js +2 -0
  183. package/dist/types/radio.js.map +1 -0
  184. package/dist/types/text-input.d.ts +22 -0
  185. package/dist/types/text-input.d.ts.map +1 -0
  186. package/dist/types/text-input.js +2 -0
  187. package/dist/types/text-input.js.map +1 -0
  188. package/package.json +1 -1
  189. package/src/audit.test.ts +1 -1
  190. package/src/components/form/FormField.tsx +2 -2
  191. package/src/components/form/meta.ts +1 -1
  192. package/src/components/form/types.ts +6 -6
  193. package/src/components/search-bar/SearchBar.tsx +3 -3
  194. package/src/features/activity-indicator/activityIndicatorMeta.ts +14 -0
  195. package/src/features/activity-indicator/adapters/inbound/ActivityIndicator.tsx +21 -0
  196. package/src/features/activity-indicator/public.ts +2 -0
  197. package/src/features/data-table/adapters/inbound/DataTable.tsx +1 -1
  198. package/src/{patterns/empty-state → features/empty-state/adapters/inbound}/EmptyState.tsx +5 -5
  199. package/src/features/empty-state/public.ts +2 -0
  200. package/src/{components/checkbox → features/form/checkbox/adapters/inbound}/Checkbox.tsx +2 -2
  201. package/src/{components/checkbox → features/form/checkbox/adapters/inbound}/CheckboxGroup.tsx +4 -4
  202. package/src/features/form/checkbox/checkboxMeta.ts +30 -0
  203. package/src/features/form/checkbox/public.ts +7 -0
  204. package/src/{components/radio → features/form/radio/adapters/inbound}/Radio.tsx +2 -2
  205. package/src/{components/radio → features/form/radio/adapters/inbound}/RadioGroup.test.ts +3 -3
  206. package/src/{components/radio → features/form/radio/adapters/inbound}/RadioGroup.tsx +6 -6
  207. package/src/{components/radio → features/form/radio/adapters/inbound}/RadioOptionControl.tsx +5 -5
  208. package/src/features/form/radio/public.ts +3 -0
  209. package/src/{components/radio/meta.ts → features/form/radio/radioMeta.ts} +9 -5
  210. package/src/{components → features/form}/radio/themeRecipeMeta.ts +2 -2
  211. package/src/{components/radio → features/form/radio/utils}/handleRadioOptionKeyDown.test.ts +1 -1
  212. package/src/{components/radio → features/form/radio/utils}/handleRadioOptionKeyDown.ts +1 -1
  213. package/src/{components/radio → features/form/radio/utils}/resolveRadioGroupThemeRecipe.ts +2 -2
  214. package/src/{components/radio → features/form/radio/utils}/resolveRadioOptionColors.ts +1 -1
  215. package/src/{components/input/Input.tsx → features/form/text-input/adapters/inbound/TextInput.tsx} +10 -11
  216. package/src/features/form/text-input/public.ts +2 -0
  217. package/src/{components/input/meta.ts → features/form/text-input/textInputMeta.ts} +16 -4
  218. package/src/{components/progress → features/progress/adapters/inbound}/Progress.tsx +5 -5
  219. package/src/{components/progress → features/progress/adapters/inbound}/ProgressRing.test.ts +9 -6
  220. package/src/{components/progress → features/progress/adapters/inbound}/ProgressRing.tsx +7 -7
  221. package/src/features/progress/public.ts +3 -0
  222. package/src/features/uploader/adapters/inbound/Uploader.tsx +1 -1
  223. package/src/index.ts +34 -12
  224. package/src/interactionPolicy.test.ts +2 -2
  225. package/src/metadata/allowedChildren.ts +2 -2
  226. package/src/metadata/bindableComponentMeta.test.ts +1 -1
  227. package/src/metadata/bindableComponentMeta.ts +7 -62
  228. package/src/metadata/componentMeta.test.ts +5 -2
  229. package/src/metadata/componentMeta.ts +8 -8
  230. package/src/metadata/themeRecipeMeta.ts +1 -1
  231. package/src/patterns/reader/ReaderSurface.tsx +1 -1
  232. package/src/patterns/theme-composer/ThemeComposer.tsx +3 -3
  233. package/src/registry.ts +8 -8
  234. package/src/showcaseCoverage.test.ts +1 -2
  235. package/src/theme/themeScopeStructure.test.ts +12 -14
  236. package/src/types/activity-indicator.ts +8 -0
  237. package/src/{components/checkbox/types.ts → types/checkbox.ts} +1 -1
  238. package/src/{patterns/empty-state/types.ts → types/empty-state.ts} +2 -2
  239. package/src/{components/progress/types.ts → types/progress.ts} +2 -2
  240. package/src/{components/radio/types.ts → types/radio.ts} +2 -2
  241. package/src/{components/input/types.ts → types/text-input.ts} +7 -7
  242. package/dist/components/checkbox/Checkbox.d.ts.map +0 -1
  243. package/dist/components/checkbox/Checkbox.js.map +0 -1
  244. package/dist/components/checkbox/CheckboxGroup.d.ts.map +0 -1
  245. package/dist/components/checkbox/CheckboxGroup.js.map +0 -1
  246. package/dist/components/checkbox/index.d.ts +0 -4
  247. package/dist/components/checkbox/index.d.ts.map +0 -1
  248. package/dist/components/checkbox/index.js +0 -3
  249. package/dist/components/checkbox/index.js.map +0 -1
  250. package/dist/components/checkbox/meta.d.ts +0 -17
  251. package/dist/components/checkbox/meta.d.ts.map +0 -1
  252. package/dist/components/checkbox/meta.js +0 -17
  253. package/dist/components/checkbox/meta.js.map +0 -1
  254. package/dist/components/checkbox/types.d.ts.map +0 -1
  255. package/dist/components/checkbox/types.js +0 -2
  256. package/dist/components/checkbox/types.js.map +0 -1
  257. package/dist/components/input/Input.d.ts +0 -15
  258. package/dist/components/input/Input.d.ts.map +0 -1
  259. package/dist/components/input/Input.js.map +0 -1
  260. package/dist/components/input/index.d.ts +0 -3
  261. package/dist/components/input/index.d.ts.map +0 -1
  262. package/dist/components/input/index.js +0 -2
  263. package/dist/components/input/index.js.map +0 -1
  264. package/dist/components/input/meta.d.ts.map +0 -1
  265. package/dist/components/input/meta.js.map +0 -1
  266. package/dist/components/input/types.d.ts +0 -22
  267. package/dist/components/input/types.d.ts.map +0 -1
  268. package/dist/components/input/types.js +0 -2
  269. package/dist/components/input/types.js.map +0 -1
  270. package/dist/components/progress/Progress.d.ts.map +0 -1
  271. package/dist/components/progress/Progress.js.map +0 -1
  272. package/dist/components/progress/ProgressRing.d.ts.map +0 -1
  273. package/dist/components/progress/ProgressRing.js.map +0 -1
  274. package/dist/components/progress/index.d.ts +0 -4
  275. package/dist/components/progress/index.d.ts.map +0 -1
  276. package/dist/components/progress/index.js +0 -3
  277. package/dist/components/progress/index.js.map +0 -1
  278. package/dist/components/progress/meta.d.ts.map +0 -1
  279. package/dist/components/progress/meta.js.map +0 -1
  280. package/dist/components/progress/resolveProgressFraction.d.ts.map +0 -1
  281. package/dist/components/progress/resolveProgressFraction.js.map +0 -1
  282. package/dist/components/progress/resolveProgressRingGeometry.d.ts.map +0 -1
  283. package/dist/components/progress/resolveProgressRingGeometry.js.map +0 -1
  284. package/dist/components/progress/types.d.ts.map +0 -1
  285. package/dist/components/progress/types.js.map +0 -1
  286. package/dist/components/radio/Radio.d.ts.map +0 -1
  287. package/dist/components/radio/Radio.js.map +0 -1
  288. package/dist/components/radio/RadioGroup.d.ts.map +0 -1
  289. package/dist/components/radio/RadioGroup.js.map +0 -1
  290. package/dist/components/radio/RadioOptionControl.d.ts.map +0 -1
  291. package/dist/components/radio/RadioOptionControl.js.map +0 -1
  292. package/dist/components/radio/handleRadioOptionKeyDown.d.ts.map +0 -1
  293. package/dist/components/radio/handleRadioOptionKeyDown.js.map +0 -1
  294. package/dist/components/radio/index.d.ts +0 -4
  295. package/dist/components/radio/index.d.ts.map +0 -1
  296. package/dist/components/radio/index.js +0 -3
  297. package/dist/components/radio/index.js.map +0 -1
  298. package/dist/components/radio/meta.d.ts.map +0 -1
  299. package/dist/components/radio/meta.js.map +0 -1
  300. package/dist/components/radio/resolveRadioGroupThemeRecipe.d.ts.map +0 -1
  301. package/dist/components/radio/resolveRadioGroupThemeRecipe.js.map +0 -1
  302. package/dist/components/radio/resolveRadioOptionColors.d.ts.map +0 -1
  303. package/dist/components/radio/resolveRadioOptionColors.js.map +0 -1
  304. package/dist/components/radio/themeRecipeMeta.d.ts.map +0 -1
  305. package/dist/components/radio/themeRecipeMeta.js.map +0 -1
  306. package/dist/components/radio/types.d.ts.map +0 -1
  307. package/dist/components/radio/types.js +0 -2
  308. package/dist/components/radio/types.js.map +0 -1
  309. package/dist/components/textarea/Textarea.d.ts +0 -9
  310. package/dist/components/textarea/Textarea.d.ts.map +0 -1
  311. package/dist/components/textarea/Textarea.js +0 -18
  312. package/dist/components/textarea/Textarea.js.map +0 -1
  313. package/dist/components/textarea/index.d.ts +0 -3
  314. package/dist/components/textarea/index.d.ts.map +0 -1
  315. package/dist/components/textarea/index.js +0 -2
  316. package/dist/components/textarea/index.js.map +0 -1
  317. package/dist/components/textarea/meta.d.ts +0 -45
  318. package/dist/components/textarea/meta.d.ts.map +0 -1
  319. package/dist/components/textarea/meta.js +0 -45
  320. package/dist/components/textarea/meta.js.map +0 -1
  321. package/dist/components/textarea/types.d.ts +0 -9
  322. package/dist/components/textarea/types.d.ts.map +0 -1
  323. package/dist/components/textarea/types.js +0 -2
  324. package/dist/components/textarea/types.js.map +0 -1
  325. package/dist/patterns/empty-state/EmptyState.d.ts.map +0 -1
  326. package/dist/patterns/empty-state/EmptyState.js.map +0 -1
  327. package/dist/patterns/empty-state/index.d.ts +0 -3
  328. package/dist/patterns/empty-state/index.d.ts.map +0 -1
  329. package/dist/patterns/empty-state/index.js +0 -2
  330. package/dist/patterns/empty-state/index.js.map +0 -1
  331. package/dist/patterns/empty-state/meta.d.ts.map +0 -1
  332. package/dist/patterns/empty-state/meta.js.map +0 -1
  333. package/dist/patterns/empty-state/types.d.ts.map +0 -1
  334. package/dist/patterns/empty-state/types.js +0 -2
  335. package/dist/patterns/empty-state/types.js.map +0 -1
  336. package/src/components/checkbox/index.ts +0 -3
  337. package/src/components/checkbox/meta.ts +0 -19
  338. package/src/components/input/index.ts +0 -2
  339. package/src/components/progress/index.ts +0 -3
  340. package/src/components/radio/index.ts +0 -3
  341. package/src/components/textarea/Textarea.tsx +0 -46
  342. package/src/components/textarea/index.ts +0 -2
  343. package/src/components/textarea/meta.ts +0 -46
  344. package/src/components/textarea/types.ts +0 -16
  345. package/src/patterns/empty-state/index.ts +0 -2
  346. /package/dist/{components → features/form}/radio/themeRecipeMeta.d.ts +0 -0
  347. /package/dist/{components/radio → features/form/radio/utils}/handleRadioOptionKeyDown.d.ts +0 -0
  348. /package/dist/{components/radio → features/form/radio/utils}/resolveRadioGroupThemeRecipe.js +0 -0
  349. /package/dist/{components/radio → features/form/radio/utils}/resolveRadioOptionColors.js +0 -0
  350. /package/dist/{components/progress → features/progress/utils}/resolveProgressFraction.d.ts +0 -0
  351. /package/dist/{components/progress → features/progress/utils}/resolveProgressFraction.js +0 -0
  352. /package/dist/{components/progress → features/progress/utils}/resolveProgressRingGeometry.d.ts +0 -0
  353. /package/dist/{components/progress → features/progress/utils}/resolveProgressRingGeometry.js +0 -0
  354. /package/src/{patterns/empty-state/meta.ts → features/empty-state/emptyStateMeta.ts} +0 -0
  355. /package/src/{components/radio → features/form/radio/utils}/resolveRadioOptionColors.test.ts +0 -0
  356. /package/src/{components/progress/meta.ts → features/progress/progressMeta.ts} +0 -0
  357. /package/src/{components/progress → features/progress/utils}/resolveProgressFraction.test.ts +0 -0
  358. /package/src/{components/progress → features/progress/utils}/resolveProgressFraction.ts +0 -0
  359. /package/src/{components/progress → features/progress/utils}/resolveProgressRingGeometry.test.ts +0 -0
  360. /package/src/{components/progress → features/progress/utils}/resolveProgressRingGeometry.ts +0 -0
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/radio/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { RadioProps as SurfaceRadioProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { IconProps } from '../../features/icon/public';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface RadioProps extends ZoraBaseProps, Omit<SurfaceRadioProps, 'mode' | 'themeId'> {}\n\nexport interface RadioGroupOption<TValue extends string> {\n value: TValue;\n label: React.ReactNode;\n description?: React.ReactNode;\n /** SVG media is resolved by the consuming runtime before rendering. */\n iconSource?: Extract<IconProps, { source: unknown }>['source'];\n disabled?: boolean;\n testID?: string;\n}\n\nexport interface RadioGroupProps<TValue extends string>\n extends\n ZoraBaseProps,\n Pick<\n Omit<SurfaceRadioProps, 'mode' | 'themeId'>,\n 'color' | 'size' | 'invalid' | 'readOnly' | 'disabled'\n > {\n value?: TValue;\n defaultValue?: TValue;\n onValueChange?: (value: TValue) => void;\n options: readonly RadioGroupOption<TValue>[];\n orientation?: 'horizontal' | 'vertical';\n gap?: 'xs' | 's' | 'm' | 'l';\n presentation?: 'inline' | 'card';\n /** Arrangement inside a selection card, independent of the group direction. */\n contentOrientation?: 'horizontal' | 'vertical';\n /** Equal-width card columns; omitted columns follow orientation. */\n columns?: 1 | 2 | 3 | 4;\n}\n"]}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { TextareaProps } from './types';
3
- /***
4
- * Multi-line text input with consistent ZORA field styling.
5
- *
6
-
7
- */
8
- export declare const Textarea: (props: TextareaProps) => React.ReactElement | null;
9
- //# sourceMappingURL=Textarea.d.ts.map
@@ -1 +0,0 @@
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;AAkC7C;;;;GAIG;AACH,eAAO,MAAM,QAAQ,qDAAoC,CAAC"}
@@ -1,18 +0,0 @@
1
- import * as Surface from '@ankhorage/surface';
2
- import React from 'react';
3
- import { resolveIconSize } from '../../internal/recipes';
4
- import { useZoraTheme } from '../../theme/useZoraTheme';
5
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
- function TextareaInner({ themeId: _themeId, mode: _mode, size = 'l', leadingIcon, trailingIcon, interactionPolicy, ...props }) {
7
- const { theme } = useZoraTheme();
8
- const iconSize = resolveIconSize(size);
9
- const iconColor = theme.semantics.content.muted;
10
- return (<Surface.Textarea {...props} interactionPolicy={interactionPolicy} leadingAccessory={leadingIcon ? (<Surface.Icon {...leadingIcon} color={iconColor} size={iconSize}/>) : undefined} size={size} trailingAccessory={trailingIcon ? (<Surface.Icon {...trailingIcon} color={iconColor} size={iconSize}/>) : undefined}/>);
11
- }
12
- /***
13
- * Multi-line text input with consistent ZORA field styling.
14
- *
15
-
16
- */
17
- export const Textarea = withZoraThemeScope(TextareaInner);
18
- //# sourceMappingURL=Textarea.js.map
@@ -1 +0,0 @@
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;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,aAAa,CAAC,EACrB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,IAAI,GAAG,GAAG,EACV,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,GAAG,KAAK,EACM;IACd,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IACjC,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,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,gBAAgB,CAAC,CACf,WAAW,CAAC,CAAC,CAAC,CACZ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAG,CACpE,CAAC,CAAC,CAAC,SACN,CAAC,CACD,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,iBAAiB,CAAC,CAChB,YAAY,CAAC,CAAC,CAAC,CACb,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAG,CACrE,CAAC,CAAC,CAAC,SACN,CAAC,EACD,CACH,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,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 interactionPolicy,\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 interactionPolicy={interactionPolicy}\n leadingAccessory={\n leadingIcon ? (\n <Surface.Icon {...leadingIcon} color={iconColor} size={iconSize} />\n ) : undefined\n }\n size={size}\n trailingAccessory={\n trailingIcon ? (\n <Surface.Icon {...trailingIcon} color={iconColor} size={iconSize} />\n ) : undefined\n }\n />\n );\n}\n\n/***\n * Multi-line text input with consistent ZORA field styling.\n *\n \n */\nexport const Textarea = withZoraThemeScope(TextareaInner);\n"]}
@@ -1,3 +0,0 @@
1
- export { Textarea } from './Textarea';
2
- export type { TextareaProps } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export { Textarea } from './Textarea';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export { Textarea } from './Textarea';\nexport type { TextareaProps } from './types';\n"]}
@@ -1,45 +0,0 @@
1
- export declare const textareaMeta: {
2
- readonly name: "Textarea";
3
- readonly category: "component";
4
- readonly directManifestNode: true;
5
- readonly allowedChildren: readonly [];
6
- readonly blueprint: {
7
- readonly label: "Textarea";
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/textarea/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Ca,CAAC"}
@@ -1,45 +0,0 @@
1
- export const textareaMeta = {
2
- name: 'Textarea',
3
- category: 'component',
4
- directManifestNode: true,
5
- allowedChildren: [],
6
- blueprint: {
7
- label: 'Textarea',
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/textarea/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,UAAU;QACjB,YAAY,EAAE;YACZ,WAAW,EAAE,aAAa;YAC1B,KAAK,EAAE,EAAE;SACV;KACF;IACD,KAAK,EAAE;QACL,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;SACrB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,EAAE;SACZ;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;SACtB;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 textareaMeta = {\n name: 'Textarea',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Textarea',\n defaultProps: {\n placeholder: 'Enter text…',\n value: '',\n },\n },\n props: {\n placeholder: {\n type: 'string',\n category: 'Content',\n label: 'Placeholder',\n },\n value: {\n type: 'string',\n category: 'Content',\n label: 'Value',\n default: '',\n },\n size: {\n type: 'enum',\n category: 'Style',\n label: 'Size',\n enum: ['s', 'm', 'l'],\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"]}
@@ -1,9 +0,0 @@
1
- import type * as Surface from '@ankhorage/surface';
2
- import type { ZoraControlSize } from '../../internal/recipes';
3
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
- export interface TextareaProps extends ZoraBaseProps, Omit<Surface.TextareaProps, 'leadingAccessory' | 'size' | 'trailingAccessory' | 'mode' | 'themeId'> {
5
- size?: ZoraControlSize;
6
- leadingIcon?: Surface.ButtonIconSpec;
7
- trailingIcon?: Surface.ButtonIconSpec;
8
- }
9
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/patterns/empty-state/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAuD/C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,uDAAsC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmptyState.js","sourceRoot":"","sources":["../../../src/patterns/empty-state/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,eAAe,CAAC,EACvB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EACjB,KAAK,EACL,WAAW,EACX,OAAO,EACP,aAAa,EACb,eAAe,EACf,MAAM,EACN,MAAM,GACU;IAChB,OAAO,CACL,CAAC,IAAI,CACH,OAAO,CACP,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,CAAC,QAAQ,CAEb;MAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CACZ;QAAA,CAAC,aAAa,IAAI,eAAe,CAAC,CAAC,CAAC,CAClC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CACtD;YAAA,CAAC,aAAa,CAAC,CAAC,CAAC,CACf,CAAC,MAAM,CACL,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,OAAO,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAC/B,OAAO,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAC/B,KAAK,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAE3B;gBAAA,CAAC,aAAa,CAAC,KAAK,CACtB;cAAA,EAAE,MAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACR;YAAA,CAAC,eAAe,CAAC,CAAC,CAAC,CACjB,CAAC,MAAM,CACL,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,OAAO,CAAC,CAAC,eAAe,CAAC,OAAO,IAAI,MAAM,CAAC,CAC3C,OAAO,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CACjC,KAAK,CAAC,CAAC,eAAe,CAAC,KAAK,IAAI,SAAS,CAAC,CAE1C;gBAAA,CAAC,eAAe,CAAC,KAAK,CACxB;cAAA,EAAE,MAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACV;UAAA,EAAE,KAAK,CAAC,CACT,CAAC,CAAC,CAAC,IAAI,CACR;QAAA,CAAC,MAAM,CACT;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Button } from '../../features/button/public';\nimport { Card } from '../../features/card/public';\nimport { Stack } from '../../features/layout/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { EmptyStateProps } from './types';\n\nfunction EmptyStateInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy,\n title,\n description,\n eyebrow,\n primaryAction,\n secondaryAction,\n footer,\n testID,\n}: EmptyStateProps) {\n return (\n <Card\n compact\n description={description}\n eyebrow={eyebrow}\n interactionPolicy={interactionPolicy}\n testID={testID}\n title={title}\n tone=\"subtle\"\n >\n <Stack gap=\"m\">\n {primaryAction || secondaryAction ? (\n <Stack direction={{ base: 'column', md: 'row' }} gap=\"s\">\n {primaryAction ? (\n <Button\n interactionPolicy={interactionPolicy}\n variant={primaryAction.variant}\n onPress={primaryAction.onPress}\n color={primaryAction.color}\n >\n {primaryAction.label}\n </Button>\n ) : null}\n {secondaryAction ? (\n <Button\n interactionPolicy={interactionPolicy}\n variant={secondaryAction.variant ?? 'soft'}\n onPress={secondaryAction.onPress}\n color={secondaryAction.color ?? 'neutral'}\n >\n {secondaryAction.label}\n </Button>\n ) : null}\n </Stack>\n ) : null}\n {footer}\n </Stack>\n </Card>\n );\n}\n\n/***\n * Reusable fallback state for empty lists, missing data, or first-run experiences.\n *\n * `EmptyState` combines concise copy with optional primary and secondary actions\n * so apps can guide users without custom card and button wiring.\n *\n \n * @example Empty project list\n * ```tsx\n * <EmptyState title=\"No projects yet\" primaryAction={{ label: 'Create project', onPress }} />\n * ```\n */\nexport const EmptyState = withZoraThemeScope(EmptyStateInner);\n"]}
@@ -1,3 +0,0 @@
1
- export { EmptyState } from './EmptyState';
2
- export type { EmptyStateAction, EmptyStateProps } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/empty-state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export { EmptyState } from './EmptyState';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/empty-state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { EmptyState } from './EmptyState';\nexport type { EmptyStateAction, EmptyStateProps } from './types';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/empty-state/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/empty-state/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,EAAE,aAAa;QACpB,YAAY,EAAE;YACZ,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,6BAA6B;SAC3C;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,kBAAkB;SAC5B;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;YACpB,OAAO,EAAE,6BAA6B;SACvC;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,SAAS;SACjB;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const emptyStateMeta = {\n name: 'EmptyState',\n category: 'pattern',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Empty state',\n defaultProps: {\n title: 'Nothing here yet',\n description: 'Try adding your first item.',\n },\n },\n props: {\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n default: 'Nothing here yet',\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n default: 'Try adding your first item.',\n },\n eyebrow: {\n type: 'string',\n category: 'Content',\n label: 'Eyebrow',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/empty-state/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/empty-state/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraButtonVariant, ZoraColor } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface EmptyStateAction {\n label: React.ReactNode;\n onPress: () => void;\n color?: ZoraColor;\n variant?: ZoraButtonVariant;\n}\n\nexport interface EmptyStateProps extends ZoraBaseProps {\n title: React.ReactNode;\n description?: React.ReactNode;\n eyebrow?: React.ReactNode;\n primaryAction?: EmptyStateAction;\n secondaryAction?: EmptyStateAction;\n footer?: React.ReactNode;\n}\n"]}
@@ -1,3 +0,0 @@
1
- export { Checkbox } from './Checkbox';
2
- export { CheckboxGroup } from './CheckboxGroup';
3
- export type { CheckboxGroupOption, CheckboxGroupProps, CheckboxProps } from './types';
@@ -1,19 +0,0 @@
1
- import type { ZoraComponentMeta } from '../../metadata';
2
-
3
- export const checkboxMeta = {
4
- name: 'Checkbox',
5
- category: 'component',
6
- directManifestNode: false,
7
- allowedChildren: [],
8
- note: 'Form control component; not represented as a manifest node in v1.',
9
- props: {},
10
- } as const satisfies ZoraComponentMeta;
11
-
12
- export const checkboxGroupMeta = {
13
- name: 'CheckboxGroup',
14
- category: 'component',
15
- directManifestNode: false,
16
- allowedChildren: [],
17
- note: 'Form control component; not represented as a manifest node in v1.',
18
- props: {},
19
- } as const satisfies ZoraComponentMeta;
@@ -1,2 +0,0 @@
1
- export { Input } from './Input';
2
- export type { InputProps, InputTrailingAction } from './types';
@@ -1,3 +0,0 @@
1
- export { Progress } from './Progress';
2
- export { ProgressRing } from './ProgressRing';
3
- export type { ProgressProps, ProgressRingProps } from './types';
@@ -1,3 +0,0 @@
1
- export { Radio } from './Radio';
2
- export { RadioGroup } from './RadioGroup';
3
- export type { RadioGroupOption, RadioGroupProps, RadioProps } from './types';
@@ -1,46 +0,0 @@
1
- import * as Surface from '@ankhorage/surface';
2
- import React from 'react';
3
-
4
- import { resolveIconSize } from '../../internal/recipes';
5
- import { useZoraTheme } from '../../theme/useZoraTheme';
6
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
- import type { TextareaProps } from './types';
8
-
9
- function TextareaInner({
10
- themeId: _themeId,
11
- mode: _mode,
12
- size = 'l',
13
- leadingIcon,
14
- trailingIcon,
15
- interactionPolicy,
16
- ...props
17
- }: TextareaProps) {
18
- const { theme } = useZoraTheme();
19
- const iconSize = resolveIconSize(size);
20
- const iconColor = theme.semantics.content.muted;
21
-
22
- return (
23
- <Surface.Textarea
24
- {...props}
25
- interactionPolicy={interactionPolicy}
26
- leadingAccessory={
27
- leadingIcon ? (
28
- <Surface.Icon {...leadingIcon} color={iconColor} size={iconSize} />
29
- ) : undefined
30
- }
31
- size={size}
32
- trailingAccessory={
33
- trailingIcon ? (
34
- <Surface.Icon {...trailingIcon} color={iconColor} size={iconSize} />
35
- ) : undefined
36
- }
37
- />
38
- );
39
- }
40
-
41
- /***
42
- * Multi-line text input with consistent ZORA field styling.
43
- *
44
-
45
- */
46
- export const Textarea = withZoraThemeScope(TextareaInner);
@@ -1,2 +0,0 @@
1
- export { Textarea } from './Textarea';
2
- export type { TextareaProps } from './types';
@@ -1,46 +0,0 @@
1
- import type { ZoraComponentMeta } from '../../metadata';
2
-
3
- export const textareaMeta = {
4
- name: 'Textarea',
5
- category: 'component',
6
- directManifestNode: true,
7
- allowedChildren: [],
8
- blueprint: {
9
- label: 'Textarea',
10
- defaultProps: {
11
- placeholder: 'Enter text…',
12
- value: '',
13
- },
14
- },
15
- props: {
16
- placeholder: {
17
- type: 'string',
18
- category: 'Content',
19
- label: 'Placeholder',
20
- },
21
- value: {
22
- type: 'string',
23
- category: 'Content',
24
- label: 'Value',
25
- default: '',
26
- },
27
- size: {
28
- type: 'enum',
29
- category: 'Style',
30
- label: 'Size',
31
- enum: ['s', 'm', 'l'],
32
- },
33
- disabled: {
34
- type: 'boolean',
35
- category: 'State',
36
- label: 'Disabled',
37
- default: false,
38
- },
39
- readOnly: {
40
- type: 'boolean',
41
- category: 'State',
42
- label: 'Read-only',
43
- default: false,
44
- },
45
- },
46
- } as const satisfies ZoraComponentMeta;
@@ -1,16 +0,0 @@
1
- import type * as Surface from '@ankhorage/surface';
2
-
3
- import type { ZoraControlSize } from '../../internal/recipes';
4
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
5
-
6
- export interface TextareaProps
7
- extends
8
- ZoraBaseProps,
9
- Omit<
10
- Surface.TextareaProps,
11
- 'leadingAccessory' | 'size' | 'trailingAccessory' | 'mode' | 'themeId'
12
- > {
13
- size?: ZoraControlSize;
14
- leadingIcon?: Surface.ButtonIconSpec;
15
- trailingIcon?: Surface.ButtonIconSpec;
16
- }
@@ -1,2 +0,0 @@
1
- export { EmptyState } from './EmptyState';
2
- export type { EmptyStateAction, EmptyStateProps } from './types';