@ankhorage/zora 11.0.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +2 -1
  3. package/dist/constants.d.ts +3 -0
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/constants.js +3 -0
  6. package/dist/constants.js.map +1 -1
  7. package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
  8. package/dist/features/card/cardMeta.d.ts +1 -1
  9. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  10. package/dist/features/card/postCardMeta.d.ts +1 -1
  11. package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
  12. package/dist/features/data-table/adapters/inbound/DataTable.js +1 -1
  13. package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
  14. package/dist/{components/date-picker → features/date-picker/adapters/inbound}/DatePicker.d.ts +1 -1
  15. package/dist/features/date-picker/adapters/inbound/DatePicker.d.ts.map +1 -0
  16. package/dist/{components/date-picker → features/date-picker/adapters/inbound}/DatePicker.js +23 -26
  17. package/dist/features/date-picker/adapters/inbound/DatePicker.js.map +1 -0
  18. package/dist/features/date-picker/datePickerMeta.d.ts +83 -0
  19. package/dist/features/date-picker/datePickerMeta.d.ts.map +1 -0
  20. package/dist/features/date-picker/datePickerMeta.js +57 -0
  21. package/dist/features/date-picker/datePickerMeta.js.map +1 -0
  22. package/dist/features/date-picker/public.d.ts +3 -0
  23. package/dist/features/date-picker/public.d.ts.map +1 -0
  24. package/dist/features/date-picker/public.js +2 -0
  25. package/dist/features/date-picker/public.js.map +1 -0
  26. package/dist/features/date-picker/utils/localDate.d.ts +5 -0
  27. package/dist/features/date-picker/utils/localDate.d.ts.map +1 -0
  28. package/dist/features/date-picker/utils/localDate.js +27 -0
  29. package/dist/features/date-picker/utils/localDate.js.map +1 -0
  30. package/dist/{patterns/hero → features/hero/adapters/inbound}/Hero.d.ts +1 -1
  31. package/dist/features/hero/adapters/inbound/Hero.d.ts.map +1 -0
  32. package/dist/{patterns/hero → features/hero/adapters/inbound}/Hero.js +5 -6
  33. package/dist/features/hero/adapters/inbound/Hero.js.map +1 -0
  34. package/dist/{patterns/hero/meta.d.ts → features/hero/heroMeta.d.ts} +1 -1
  35. package/dist/features/hero/heroMeta.d.ts.map +1 -0
  36. package/dist/{patterns/hero/meta.js → features/hero/heroMeta.js} +1 -1
  37. package/dist/features/hero/heroMeta.js.map +1 -0
  38. package/dist/features/hero/public.d.ts +3 -0
  39. package/dist/features/hero/public.d.ts.map +1 -0
  40. package/dist/features/hero/public.js +2 -0
  41. package/dist/features/hero/public.js.map +1 -0
  42. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
  43. package/dist/features/layout/boxMeta.d.ts +1 -1
  44. package/dist/features/layout/containerMeta.d.ts +1 -1
  45. package/dist/features/layout/gridMeta.d.ts +1 -1
  46. package/dist/features/layout/stackMeta.d.ts +1 -1
  47. package/dist/features/list/flatListMeta.d.ts +1 -1
  48. package/dist/features/list/sectionListMeta.d.ts +1 -1
  49. package/dist/{patterns/missing-element → features/missing-element/adapters/inbound}/MissingElement.d.ts +1 -1
  50. package/dist/features/missing-element/adapters/inbound/MissingElement.d.ts.map +1 -0
  51. package/dist/{patterns/missing-element → features/missing-element/adapters/inbound}/MissingElement.js +5 -5
  52. package/dist/features/missing-element/adapters/inbound/MissingElement.js.map +1 -0
  53. package/dist/{patterns/missing-element/meta.d.ts → features/missing-element/missingElementMeta.d.ts} +1 -1
  54. package/dist/features/missing-element/missingElementMeta.d.ts.map +1 -0
  55. package/dist/{patterns/missing-element/meta.js → features/missing-element/missingElementMeta.js} +1 -1
  56. package/dist/features/missing-element/missingElementMeta.js.map +1 -0
  57. package/dist/features/missing-element/public.d.ts +3 -0
  58. package/dist/features/missing-element/public.d.ts.map +1 -0
  59. package/dist/features/missing-element/public.js +2 -0
  60. package/dist/features/missing-element/public.js.map +1 -0
  61. package/dist/{components/skeleton → features/skeleton/adapters/inbound}/Skeleton.d.ts +1 -1
  62. package/dist/features/skeleton/adapters/inbound/Skeleton.d.ts.map +1 -0
  63. package/dist/{components/skeleton → features/skeleton/adapters/inbound}/Skeleton.js +3 -3
  64. package/dist/features/skeleton/adapters/inbound/Skeleton.js.map +1 -0
  65. package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonCard.d.ts +1 -1
  66. package/dist/features/skeleton/adapters/inbound/SkeletonCard.d.ts.map +1 -0
  67. package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonCard.js +4 -4
  68. package/dist/features/skeleton/adapters/inbound/SkeletonCard.js.map +1 -0
  69. package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonList.d.ts +1 -1
  70. package/dist/features/skeleton/adapters/inbound/SkeletonList.d.ts.map +1 -0
  71. package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonList.js +2 -2
  72. package/dist/features/skeleton/adapters/inbound/SkeletonList.js.map +1 -0
  73. package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonText.d.ts +1 -1
  74. package/dist/features/skeleton/adapters/inbound/SkeletonText.d.ts.map +1 -0
  75. package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonText.js +2 -2
  76. package/dist/features/skeleton/adapters/inbound/SkeletonText.js.map +1 -0
  77. package/dist/features/skeleton/public.d.ts +6 -0
  78. package/dist/features/skeleton/public.d.ts.map +1 -0
  79. package/dist/features/skeleton/public.js +5 -0
  80. package/dist/features/skeleton/public.js.map +1 -0
  81. package/dist/features/skeleton/skeletonMeta.d.ts +178 -0
  82. package/dist/features/skeleton/skeletonMeta.d.ts.map +1 -0
  83. package/dist/features/skeleton/skeletonMeta.js +84 -0
  84. package/dist/features/skeleton/skeletonMeta.js.map +1 -0
  85. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  86. package/dist/{components/time-picker → features/time-picker/adapters/inbound}/TimePicker.d.ts +1 -1
  87. package/dist/features/time-picker/adapters/inbound/TimePicker.d.ts.map +1 -0
  88. package/dist/{components/time-picker → features/time-picker/adapters/inbound}/TimePicker.js +8 -11
  89. package/dist/features/time-picker/adapters/inbound/TimePicker.js.map +1 -0
  90. package/dist/features/time-picker/public.d.ts +3 -0
  91. package/dist/features/time-picker/public.d.ts.map +1 -0
  92. package/dist/features/time-picker/public.js +2 -0
  93. package/dist/features/time-picker/public.js.map +1 -0
  94. package/dist/features/time-picker/timePickerMeta.d.ts +90 -0
  95. package/dist/features/time-picker/timePickerMeta.d.ts.map +1 -0
  96. package/dist/features/time-picker/timePickerMeta.js +64 -0
  97. package/dist/features/time-picker/timePickerMeta.js.map +1 -0
  98. package/dist/index.d.ts +5 -10
  99. package/dist/index.d.ts.map +1 -1
  100. package/dist/index.js +5 -5
  101. package/dist/index.js.map +1 -1
  102. package/dist/layout/screen/meta.d.ts +1 -1
  103. package/dist/layout/screen-section/meta.d.ts +1 -1
  104. package/dist/metadata/allowedChildren.d.ts +3 -3
  105. package/dist/metadata/allowedChildren.d.ts.map +1 -1
  106. package/dist/metadata/allowedChildren.js +7 -0
  107. package/dist/metadata/allowedChildren.js.map +1 -1
  108. package/dist/metadata/bindableComponentMeta.d.ts +2 -2
  109. package/dist/metadata/componentMeta.js +5 -5
  110. package/dist/metadata/componentMeta.js.map +1 -1
  111. package/dist/patterns/message-bubble/meta.d.ts +1 -1
  112. package/dist/patterns/notice/meta.d.ts +1 -1
  113. package/dist/patterns/panel/meta.d.ts +1 -1
  114. package/dist/patterns/reader/meta.d.ts +2 -2
  115. package/dist/patterns/scanner/meta.d.ts +2 -2
  116. package/dist/registry.js +5 -5
  117. package/dist/registry.js.map +1 -1
  118. package/dist/{components/date-picker/types.d.ts → types/date-picker.d.ts} +6 -6
  119. package/dist/types/date-picker.d.ts.map +1 -0
  120. package/dist/types/date-picker.js +2 -0
  121. package/dist/types/date-picker.js.map +1 -0
  122. package/dist/{patterns/hero/types.d.ts → types/hero.d.ts} +3 -3
  123. package/dist/types/hero.d.ts.map +1 -0
  124. package/dist/types/hero.js +2 -0
  125. package/dist/types/hero.js.map +1 -0
  126. package/dist/{patterns/missing-element/types.d.ts → types/missing-element.d.ts} +2 -2
  127. package/dist/types/missing-element.d.ts.map +1 -0
  128. package/dist/types/missing-element.js +2 -0
  129. package/dist/types/missing-element.js.map +1 -0
  130. package/dist/{components/skeleton/types.d.ts → types/skeleton.d.ts} +3 -3
  131. package/dist/types/skeleton.d.ts.map +1 -0
  132. package/dist/types/skeleton.js +2 -0
  133. package/dist/types/skeleton.js.map +1 -0
  134. package/dist/{components/time-picker/types.d.ts → types/time-picker.d.ts} +2 -2
  135. package/dist/types/time-picker.d.ts.map +1 -0
  136. package/dist/types/time-picker.js +2 -0
  137. package/dist/types/time-picker.js.map +1 -0
  138. package/package.json +1 -1
  139. package/src/constants.ts +3 -0
  140. package/src/featureManifest.test.ts +12 -0
  141. package/src/features/bottom-sheet/public.test.ts +2 -2
  142. package/src/features/data-table/adapters/inbound/DataTable.tsx +1 -1
  143. package/src/{components/date-picker → features/date-picker/adapters/inbound}/DatePicker.tsx +41 -32
  144. package/src/features/date-picker/datePickerMeta.ts +58 -0
  145. package/src/features/date-picker/public.test.ts +15 -0
  146. package/src/features/date-picker/public.ts +2 -0
  147. package/src/features/date-picker/utils/localDate.test.ts +18 -0
  148. package/src/features/date-picker/utils/localDate.ts +29 -0
  149. package/src/{patterns/hero → features/hero/adapters/inbound}/Hero.tsx +6 -7
  150. package/src/features/hero/public.ts +2 -0
  151. package/src/{patterns → features}/missing-element/MissingElement.test.ts +6 -4
  152. package/src/{patterns/missing-element → features/missing-element/adapters/inbound}/MissingElement.tsx +6 -6
  153. package/src/features/missing-element/public.ts +2 -0
  154. package/src/{components/skeleton → features/skeleton/adapters/inbound}/Skeleton.tsx +4 -4
  155. package/src/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonCard.tsx +5 -5
  156. package/src/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonList.tsx +3 -3
  157. package/src/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonText.tsx +3 -3
  158. package/src/features/skeleton/public.test.ts +24 -0
  159. package/src/features/skeleton/public.ts +13 -0
  160. package/src/features/skeleton/skeletonMeta.ts +88 -0
  161. package/src/{components/time-picker → features/time-picker/adapters/inbound}/TimePicker.tsx +9 -12
  162. package/src/features/time-picker/public.test.ts +14 -0
  163. package/src/features/time-picker/public.ts +2 -0
  164. package/src/features/time-picker/timePickerMeta.ts +65 -0
  165. package/src/index.ts +32 -18
  166. package/src/interactionPolicy.test.ts +3 -3
  167. package/src/metadata/allowedChildren.ts +7 -0
  168. package/src/metadata/componentMeta.test.ts +6 -0
  169. package/src/metadata/componentMeta.ts +10 -10
  170. package/src/registry.ts +5 -5
  171. package/src/{components/date-picker/types.ts → types/date-picker.ts} +5 -5
  172. package/src/{patterns/hero/types.ts → types/hero.ts} +2 -2
  173. package/src/{patterns/missing-element/types.ts → types/missing-element.ts} +1 -1
  174. package/src/{components/skeleton/types.ts → types/skeleton.ts} +2 -2
  175. package/src/{components/time-picker/types.ts → types/time-picker.ts} +1 -1
  176. package/dist/components/date-picker/DatePicker.d.ts.map +0 -1
  177. package/dist/components/date-picker/DatePicker.js.map +0 -1
  178. package/dist/components/date-picker/index.d.ts +0 -3
  179. package/dist/components/date-picker/index.d.ts.map +0 -1
  180. package/dist/components/date-picker/index.js +0 -2
  181. package/dist/components/date-picker/index.js.map +0 -1
  182. package/dist/components/date-picker/meta.d.ts +0 -9
  183. package/dist/components/date-picker/meta.d.ts.map +0 -1
  184. package/dist/components/date-picker/meta.js +0 -9
  185. package/dist/components/date-picker/meta.js.map +0 -1
  186. package/dist/components/date-picker/types.d.ts.map +0 -1
  187. package/dist/components/date-picker/types.js +0 -2
  188. package/dist/components/date-picker/types.js.map +0 -1
  189. package/dist/components/skeleton/Skeleton.d.ts.map +0 -1
  190. package/dist/components/skeleton/Skeleton.js.map +0 -1
  191. package/dist/components/skeleton/SkeletonCard.d.ts.map +0 -1
  192. package/dist/components/skeleton/SkeletonCard.js.map +0 -1
  193. package/dist/components/skeleton/SkeletonList.d.ts.map +0 -1
  194. package/dist/components/skeleton/SkeletonList.js.map +0 -1
  195. package/dist/components/skeleton/SkeletonText.d.ts.map +0 -1
  196. package/dist/components/skeleton/SkeletonText.js.map +0 -1
  197. package/dist/components/skeleton/index.d.ts +0 -6
  198. package/dist/components/skeleton/index.d.ts.map +0 -1
  199. package/dist/components/skeleton/index.js +0 -5
  200. package/dist/components/skeleton/index.js.map +0 -1
  201. package/dist/components/skeleton/meta.d.ts +0 -33
  202. package/dist/components/skeleton/meta.d.ts.map +0 -1
  203. package/dist/components/skeleton/meta.js +0 -33
  204. package/dist/components/skeleton/meta.js.map +0 -1
  205. package/dist/components/skeleton/types.d.ts.map +0 -1
  206. package/dist/components/skeleton/types.js +0 -2
  207. package/dist/components/skeleton/types.js.map +0 -1
  208. package/dist/components/time-picker/TimePicker.d.ts.map +0 -1
  209. package/dist/components/time-picker/TimePicker.js.map +0 -1
  210. package/dist/components/time-picker/index.d.ts +0 -3
  211. package/dist/components/time-picker/index.d.ts.map +0 -1
  212. package/dist/components/time-picker/index.js +0 -2
  213. package/dist/components/time-picker/index.js.map +0 -1
  214. package/dist/components/time-picker/meta.d.ts +0 -9
  215. package/dist/components/time-picker/meta.d.ts.map +0 -1
  216. package/dist/components/time-picker/meta.js +0 -9
  217. package/dist/components/time-picker/meta.js.map +0 -1
  218. package/dist/components/time-picker/types.d.ts.map +0 -1
  219. package/dist/components/time-picker/types.js +0 -2
  220. package/dist/components/time-picker/types.js.map +0 -1
  221. package/dist/patterns/hero/Hero.d.ts.map +0 -1
  222. package/dist/patterns/hero/Hero.js.map +0 -1
  223. package/dist/patterns/hero/index.d.ts +0 -3
  224. package/dist/patterns/hero/index.d.ts.map +0 -1
  225. package/dist/patterns/hero/index.js +0 -2
  226. package/dist/patterns/hero/index.js.map +0 -1
  227. package/dist/patterns/hero/meta.d.ts.map +0 -1
  228. package/dist/patterns/hero/meta.js.map +0 -1
  229. package/dist/patterns/hero/types.d.ts.map +0 -1
  230. package/dist/patterns/hero/types.js +0 -2
  231. package/dist/patterns/hero/types.js.map +0 -1
  232. package/dist/patterns/missing-element/MissingElement.d.ts.map +0 -1
  233. package/dist/patterns/missing-element/MissingElement.js.map +0 -1
  234. package/dist/patterns/missing-element/index.d.ts +0 -3
  235. package/dist/patterns/missing-element/index.d.ts.map +0 -1
  236. package/dist/patterns/missing-element/index.js +0 -2
  237. package/dist/patterns/missing-element/index.js.map +0 -1
  238. package/dist/patterns/missing-element/meta.d.ts.map +0 -1
  239. package/dist/patterns/missing-element/meta.js.map +0 -1
  240. package/dist/patterns/missing-element/types.d.ts.map +0 -1
  241. package/dist/patterns/missing-element/types.js +0 -2
  242. package/dist/patterns/missing-element/types.js.map +0 -1
  243. package/src/components/date-picker/index.ts +0 -2
  244. package/src/components/date-picker/meta.ts +0 -10
  245. package/src/components/skeleton/index.ts +0 -13
  246. package/src/components/skeleton/meta.ts +0 -37
  247. package/src/components/time-picker/index.ts +0 -2
  248. package/src/components/time-picker/meta.ts +0 -10
  249. package/src/patterns/hero/index.ts +0 -2
  250. package/src/patterns/missing-element/index.ts +0 -2
  251. /package/src/{patterns/hero/meta.ts → features/hero/heroMeta.ts} +0 -0
  252. /package/src/{patterns/missing-element/meta.ts → features/missing-element/missingElementMeta.ts} +0 -0
package/dist/registry.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { AppBar } from './components/app-bar';
2
2
  import { Breadcrumbs } from './components/breadcrumbs';
3
- import { DatePicker } from './components/date-picker';
4
3
  import { Gradient } from './components/gradient';
5
4
  import { DropdownMenu, Menu } from './components/menu';
6
5
  import { Modal } from './components/modal';
@@ -8,9 +7,7 @@ import { Pagination } from './components/pagination';
8
7
  import { Rating } from './components/rating';
9
8
  import { SearchBar } from './components/search-bar';
10
9
  import { Select } from './components/select';
11
- import { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './components/skeleton';
12
10
  import { Tabs } from './components/tabs';
13
- import { TimePicker } from './components/time-picker';
14
11
  import { Toast } from './components/toast';
15
12
  import { Toolbar, ToolbarAction } from './components/toolbar';
16
13
  import { ActivityIndicator } from './features/activity-indicator/public';
@@ -29,19 +26,24 @@ import { ProductCard } from './features/card/public';
29
26
  import { Chip } from './features/chip/public';
30
27
  import { ChipGroup } from './features/chip/public';
31
28
  import { DataTable } from './features/data-table/public';
29
+ import { DatePicker } from './features/date-picker/public';
32
30
  import { EmptyState } from './features/empty-state/public';
33
31
  import { Checkbox, CheckboxGroup } from './features/form/checkbox/public';
34
32
  import { Form, FormActions, FormError, FormField } from './features/form/public';
35
33
  import { Radio, RadioGroup } from './features/form/radio/public';
36
34
  import { TextInput } from './features/form/text-input/public';
35
+ import { Hero } from './features/hero/public';
37
36
  import { Icon } from './features/icon/public';
38
37
  import { Image } from './features/image/public';
39
38
  import { KeyboardAvoidingView } from './features/keyboard-avoiding-view/public';
40
39
  import { Box, Container, Divider, Grid, Stack } from './features/layout/public';
41
40
  import { ContentRail } from './features/layout/public';
42
41
  import { FlatList, SectionList } from './features/list/public';
42
+ import { MissingElement } from './features/missing-element/public';
43
43
  import { Progress, ProgressRing } from './features/progress/public';
44
+ import { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './features/skeleton/public';
44
45
  import { Surface } from './features/surface/public';
46
+ import { TimePicker } from './features/time-picker/public';
45
47
  import { Heading } from './features/typography/public';
46
48
  import { Text } from './features/typography/public';
47
49
  import { Uploader } from './features/uploader/public';
@@ -58,11 +60,9 @@ import { CollectionEditor } from './patterns/collection-editor';
58
60
  import { ConfirmDialog } from './patterns/confirm-dialog';
59
61
  import { DisclosureSection } from './patterns/disclosure-section';
60
62
  import { FilterBar } from './patterns/filter-bar';
61
- import { Hero } from './patterns/hero';
62
63
  import { InspectorField } from './patterns/inspector-field';
63
64
  import { List, ListRow, ListSection } from './patterns/list';
64
65
  import { MessageBubble } from './patterns/message-bubble';
65
- import { MissingElement } from './patterns/missing-element';
66
66
  import { Notice } from './patterns/notice';
67
67
  import { Panel } from './patterns/panel';
68
68
  import { ReaderSurface } from './patterns/reader';
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,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U;IACV,QAAQ;IACR,YAAY;IACZ,KAAK;IACL,UAAU;IACV,MAAM;IACN,SAAS;IACT,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,IAAI;IACJ,IAAI;IACJ,UAAU;IACV,KAAK;IACL,OAAO;IACP,aAAa;IACb,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,WAAW;IACX,eAAe;IACf,GAAG;IACH,MAAM;IACN,SAAS;IACT,OAAO;IACP,IAAI;IACJ,MAAM;IACN,IAAI;IACJ,MAAM;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,aAAa;IACb,cAAc;IACd,aAAa;IACb,YAAY;IACZ,kBAAkB;IAClB,mBAAmB;IACnB,iBAAiB;IACjB,OAAO;IACP,UAAU;IACV,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,aAAa;IACb,WAAW;IACX,iBAAiB;IACjB,UAAU;IACV,SAAS;IACT,IAAI;IACJ,cAAc;IACd,IAAI;IACJ,OAAO;IACP,WAAW;IACX,aAAa;IACb,cAAc;IACd,MAAM;IACN,KAAK;IACL,QAAQ;IACR,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,WAAW;IACX,aAAa;IACb,cAAc;IACd,WAAW;IACX,WAAW;IACX,aAAa;IACb,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;CACgC,CAAC;AAE3C,MAAM,CAAC,MAAM,uBAAuB,GAA0B,wBAAwB,CAAC","sourcesContent":["import type { InteractionPolicyProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport { AppBar } from './components/app-bar';\nimport { Breadcrumbs } from './components/breadcrumbs';\nimport { DatePicker } from './components/date-picker';\nimport { Gradient } from './components/gradient';\nimport { DropdownMenu, Menu } from './components/menu';\nimport { Modal } from './components/modal';\nimport { Pagination } from './components/pagination';\nimport { Rating } from './components/rating';\nimport { SearchBar } from './components/search-bar';\nimport { Select } from './components/select';\nimport { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './components/skeleton';\nimport { Tabs } from './components/tabs';\nimport { TimePicker } from './components/time-picker';\nimport { Toast } from './components/toast';\nimport { Toolbar, ToolbarAction } from './components/toolbar';\nimport { ActivityIndicator } from './features/activity-indicator/public';\nimport { Avatar } from './features/avatar/public';\nimport { AvatarGroup } from './features/avatar/public';\nimport { Badge } from './features/badge/public';\nimport { BottomSheet } from './features/bottom-sheet/public';\nimport { Button } from './features/button/public';\nimport { ButtonGroup } from './features/button/public';\nimport { IconButton } from './features/button/public';\nimport { Card } from './features/card/public';\nimport { MediaCard } from './features/card/public';\nimport { MetricCard } from './features/card/public';\nimport { PostCard } from './features/card/public';\nimport { ProductCard } from './features/card/public';\nimport { Chip } from './features/chip/public';\nimport { ChipGroup } from './features/chip/public';\nimport { DataTable } from './features/data-table/public';\nimport { EmptyState } from './features/empty-state/public';\nimport { Checkbox, CheckboxGroup } from './features/form/checkbox/public';\nimport { Form, FormActions, FormError, FormField } from './features/form/public';\nimport { Radio, RadioGroup } from './features/form/radio/public';\nimport { TextInput } from './features/form/text-input/public';\nimport { Icon } from './features/icon/public';\nimport { Image } from './features/image/public';\nimport { KeyboardAvoidingView } from './features/keyboard-avoiding-view/public';\nimport { Box, Container, Divider, Grid, Stack } from './features/layout/public';\nimport { ContentRail } from './features/layout/public';\nimport { FlatList, SectionList } from './features/list/public';\nimport { Progress, ProgressRing } from './features/progress/public';\nimport { Surface } from './features/surface/public';\nimport { Heading } from './features/typography/public';\nimport { Text } from './features/typography/public';\nimport { Uploader } from './features/uploader/public';\nimport { Center, Inline, Show, Spacer } from './foundation';\nimport { AppShell } from './layout/app-shell';\nimport { Screen } from './layout/screen';\nimport { ScreenSection } from './layout/screen-section';\nimport { SettingsLayout } from './layout/settings-layout';\nimport { SidebarLayout } from './layout/sidebar-layout';\nimport { TopbarLayout } from './layout/topbar-layout';\nimport {\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n SignInForm,\n SignUpForm,\n} from './patterns/auth';\nimport { ChatListItem } from './patterns/chat-list-item';\nimport { CollectionEditor } from './patterns/collection-editor';\nimport { ConfirmDialog } from './patterns/confirm-dialog';\nimport { DisclosureSection } from './patterns/disclosure-section';\nimport { FilterBar } from './patterns/filter-bar';\nimport { Hero } from './patterns/hero';\nimport { InspectorField } from './patterns/inspector-field';\nimport { List, ListRow, ListSection } from './patterns/list';\nimport { MessageBubble } from './patterns/message-bubble';\nimport { MissingElement } from './patterns/missing-element';\nimport { Notice } from './patterns/notice';\nimport { Panel } from './patterns/panel';\nimport { ReaderSurface } from './patterns/reader';\nimport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './patterns/scanner';\nimport { SectionHeader } from './patterns/section-header';\nimport { SelectableItem } from './patterns/selection';\nimport { SettingsRow } from './patterns/settings-row';\nimport { SwitchField } from './patterns/switch-field';\nimport { ThemeComposer } from './patterns/theme-composer';\nimport { PaletteItem, TileGrid } from './patterns/tile-grid';\nimport { Timeline } from './patterns/timeline';\nimport { TreeItem, TreeView } from './patterns/tree-view';\nimport { ThemeModeToggle } from './theme/ThemeModeToggle';\n\nexport type ZoraComponentRegistry = Readonly<Record<string, React.ElementType>>;\n\ntype ComponentPropsFor<K extends keyof typeof _ZORA_COMPONENT_REGISTRY> = React.ComponentProps<\n (typeof _ZORA_COMPONENT_REGISTRY)[K]\n>;\n\ntype AcceptsSurfaceInteractionPolicyProps<P> = 'interactionPolicy' extends keyof P\n ? InteractionPolicyProps extends Pick<P, 'interactionPolicy'>\n ? Pick<P, 'interactionPolicy'> extends InteractionPolicyProps\n ? true\n : false\n : false\n : false;\n\ntype RegistryInteractionPolicyContract = {\n [K in keyof typeof _ZORA_COMPONENT_REGISTRY]: AcceptsSurfaceInteractionPolicyProps<\n ComponentPropsFor<K>\n >;\n};\n\ntype _AssertTrue<T extends true> = T;\ntype _RegistryInteractionPolicyCheck = _AssertTrue<\n RegistryInteractionPolicyContract[keyof typeof _ZORA_COMPONENT_REGISTRY]\n>;\n\nconst _ZORA_COMPONENT_REGISTRY = {\n ActivityIndicator,\n AppBar,\n Avatar,\n AvatarGroup,\n Badge,\n Breadcrumbs,\n Button,\n ButtonGroup,\n Card,\n Checkbox,\n CheckboxGroup,\n Chip,\n ChipGroup,\n DataTable,\n DatePicker,\n DropdownMenu,\n Form,\n FormActions,\n FormError,\n FormField,\n Gradient,\n Heading,\n Icon,\n IconButton,\n Image,\n KeyboardAvoidingView,\n TextInput,\n MediaCard,\n Menu,\n MetricCard,\n Modal,\n Pagination,\n Progress,\n ProgressRing,\n Radio,\n RadioGroup,\n Rating,\n SearchBar,\n Select,\n Skeleton,\n SkeletonCard,\n SkeletonList,\n SkeletonText,\n Tabs,\n Text,\n TimePicker,\n Toast,\n Toolbar,\n ToolbarAction,\n Uploader,\n BottomSheet,\n FlatList,\n SectionList,\n ThemeModeToggle,\n Box,\n Center,\n Container,\n Divider,\n Grid,\n Inline,\n Show,\n Spacer,\n Stack,\n Surface,\n AppShell,\n Screen,\n ScreenSection,\n SettingsLayout,\n SidebarLayout,\n TopbarLayout,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n SignInForm,\n SignUpForm,\n ChatListItem,\n CollectionEditor,\n ConfirmDialog,\n ContentRail,\n DisclosureSection,\n EmptyState,\n FilterBar,\n Hero,\n InspectorField,\n List,\n ListRow,\n ListSection,\n MessageBubble,\n MissingElement,\n Notice,\n Panel,\n PostCard,\n ProductCard,\n ReaderSurface,\n BarcodeScannerView,\n CameraPermissionView,\n ScanOverlay,\n SectionHeader,\n SelectableItem,\n SettingsRow,\n SwitchField,\n ThemeComposer,\n PaletteItem,\n TileGrid,\n Timeline,\n TreeItem,\n TreeView,\n} as const satisfies ZoraComponentRegistry;\n\nexport const ZORA_COMPONENT_REGISTRY: ZoraComponentRegistry = _ZORA_COMPONENT_REGISTRY;\n"]}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[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AAU;IACV,KAAK;IACL,OAAO;IACP,aAAa;IACb,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,WAAW;IACX,eAAe;IACf,GAAG;IACH,MAAM;IACN,SAAS;IACT,OAAO;IACP,IAAI;IACJ,MAAM;IACN,IAAI;IACJ,MAAM;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,aAAa;IACb,cAAc;IACd,aAAa;IACb,YAAY;IACZ,kBAAkB;IAClB,mBAAmB;IACnB,iBAAiB;IACjB,OAAO;IACP,UAAU;IACV,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,aAAa;IACb,WAAW;IACX,iBAAiB;IACjB,UAAU;IACV,SAAS;IACT,IAAI;IACJ,cAAc;IACd,IAAI;IACJ,OAAO;IACP,WAAW;IACX,aAAa;IACb,cAAc;IACd,MAAM;IACN,KAAK;IACL,QAAQ;IACR,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,WAAW;IACX,aAAa;IACb,cAAc;IACd,WAAW;IACX,WAAW;IACX,aAAa;IACb,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;CACgC,CAAC;AAE3C,MAAM,CAAC,MAAM,uBAAuB,GAA0B,wBAAwB,CAAC","sourcesContent":["import type { InteractionPolicyProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport { AppBar } from './components/app-bar';\nimport { Breadcrumbs } from './components/breadcrumbs';\nimport { Gradient } from './components/gradient';\nimport { DropdownMenu, Menu } from './components/menu';\nimport { Modal } from './components/modal';\nimport { Pagination } from './components/pagination';\nimport { Rating } from './components/rating';\nimport { SearchBar } from './components/search-bar';\nimport { Select } from './components/select';\nimport { Tabs } from './components/tabs';\nimport { Toast } from './components/toast';\nimport { Toolbar, ToolbarAction } from './components/toolbar';\nimport { ActivityIndicator } from './features/activity-indicator/public';\nimport { Avatar } from './features/avatar/public';\nimport { AvatarGroup } from './features/avatar/public';\nimport { Badge } from './features/badge/public';\nimport { BottomSheet } from './features/bottom-sheet/public';\nimport { Button } from './features/button/public';\nimport { ButtonGroup } from './features/button/public';\nimport { IconButton } from './features/button/public';\nimport { Card } from './features/card/public';\nimport { MediaCard } from './features/card/public';\nimport { MetricCard } from './features/card/public';\nimport { PostCard } from './features/card/public';\nimport { ProductCard } from './features/card/public';\nimport { Chip } from './features/chip/public';\nimport { ChipGroup } from './features/chip/public';\nimport { DataTable } from './features/data-table/public';\nimport { DatePicker } from './features/date-picker/public';\nimport { EmptyState } from './features/empty-state/public';\nimport { Checkbox, CheckboxGroup } from './features/form/checkbox/public';\nimport { Form, FormActions, FormError, FormField } from './features/form/public';\nimport { Radio, RadioGroup } from './features/form/radio/public';\nimport { TextInput } from './features/form/text-input/public';\nimport { Hero } from './features/hero/public';\nimport { Icon } from './features/icon/public';\nimport { Image } from './features/image/public';\nimport { KeyboardAvoidingView } from './features/keyboard-avoiding-view/public';\nimport { Box, Container, Divider, Grid, Stack } from './features/layout/public';\nimport { ContentRail } from './features/layout/public';\nimport { FlatList, SectionList } from './features/list/public';\nimport { MissingElement } from './features/missing-element/public';\nimport { Progress, ProgressRing } from './features/progress/public';\nimport { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './features/skeleton/public';\nimport { Surface } from './features/surface/public';\nimport { TimePicker } from './features/time-picker/public';\nimport { Heading } from './features/typography/public';\nimport { Text } from './features/typography/public';\nimport { Uploader } from './features/uploader/public';\nimport { Center, Inline, Show, Spacer } from './foundation';\nimport { AppShell } from './layout/app-shell';\nimport { Screen } from './layout/screen';\nimport { ScreenSection } from './layout/screen-section';\nimport { SettingsLayout } from './layout/settings-layout';\nimport { SidebarLayout } from './layout/sidebar-layout';\nimport { TopbarLayout } from './layout/topbar-layout';\nimport {\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n SignInForm,\n SignUpForm,\n} from './patterns/auth';\nimport { ChatListItem } from './patterns/chat-list-item';\nimport { CollectionEditor } from './patterns/collection-editor';\nimport { ConfirmDialog } from './patterns/confirm-dialog';\nimport { DisclosureSection } from './patterns/disclosure-section';\nimport { FilterBar } from './patterns/filter-bar';\nimport { InspectorField } from './patterns/inspector-field';\nimport { List, ListRow, ListSection } from './patterns/list';\nimport { MessageBubble } from './patterns/message-bubble';\nimport { Notice } from './patterns/notice';\nimport { Panel } from './patterns/panel';\nimport { ReaderSurface } from './patterns/reader';\nimport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './patterns/scanner';\nimport { SectionHeader } from './patterns/section-header';\nimport { SelectableItem } from './patterns/selection';\nimport { SettingsRow } from './patterns/settings-row';\nimport { SwitchField } from './patterns/switch-field';\nimport { ThemeComposer } from './patterns/theme-composer';\nimport { PaletteItem, TileGrid } from './patterns/tile-grid';\nimport { Timeline } from './patterns/timeline';\nimport { TreeItem, TreeView } from './patterns/tree-view';\nimport { ThemeModeToggle } from './theme/ThemeModeToggle';\n\nexport type ZoraComponentRegistry = Readonly<Record<string, React.ElementType>>;\n\ntype ComponentPropsFor<K extends keyof typeof _ZORA_COMPONENT_REGISTRY> = React.ComponentProps<\n (typeof _ZORA_COMPONENT_REGISTRY)[K]\n>;\n\ntype AcceptsSurfaceInteractionPolicyProps<P> = 'interactionPolicy' extends keyof P\n ? InteractionPolicyProps extends Pick<P, 'interactionPolicy'>\n ? Pick<P, 'interactionPolicy'> extends InteractionPolicyProps\n ? true\n : false\n : false\n : false;\n\ntype RegistryInteractionPolicyContract = {\n [K in keyof typeof _ZORA_COMPONENT_REGISTRY]: AcceptsSurfaceInteractionPolicyProps<\n ComponentPropsFor<K>\n >;\n};\n\ntype _AssertTrue<T extends true> = T;\ntype _RegistryInteractionPolicyCheck = _AssertTrue<\n RegistryInteractionPolicyContract[keyof typeof _ZORA_COMPONENT_REGISTRY]\n>;\n\nconst _ZORA_COMPONENT_REGISTRY = {\n ActivityIndicator,\n AppBar,\n Avatar,\n AvatarGroup,\n Badge,\n Breadcrumbs,\n Button,\n ButtonGroup,\n Card,\n Checkbox,\n CheckboxGroup,\n Chip,\n ChipGroup,\n DataTable,\n DatePicker,\n DropdownMenu,\n Form,\n FormActions,\n FormError,\n FormField,\n Gradient,\n Heading,\n Icon,\n IconButton,\n Image,\n KeyboardAvoidingView,\n TextInput,\n MediaCard,\n Menu,\n MetricCard,\n Modal,\n Pagination,\n Progress,\n ProgressRing,\n Radio,\n RadioGroup,\n Rating,\n SearchBar,\n Select,\n Skeleton,\n SkeletonCard,\n SkeletonList,\n SkeletonText,\n Tabs,\n Text,\n TimePicker,\n Toast,\n Toolbar,\n ToolbarAction,\n Uploader,\n BottomSheet,\n FlatList,\n SectionList,\n ThemeModeToggle,\n Box,\n Center,\n Container,\n Divider,\n Grid,\n Inline,\n Show,\n Spacer,\n Stack,\n Surface,\n AppShell,\n Screen,\n ScreenSection,\n SettingsLayout,\n SidebarLayout,\n TopbarLayout,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n SignInForm,\n SignUpForm,\n ChatListItem,\n CollectionEditor,\n ConfirmDialog,\n ContentRail,\n DisclosureSection,\n EmptyState,\n FilterBar,\n Hero,\n InspectorField,\n List,\n ListRow,\n ListSection,\n MessageBubble,\n MissingElement,\n Notice,\n Panel,\n PostCard,\n ProductCard,\n ReaderSurface,\n BarcodeScannerView,\n CameraPermissionView,\n ScanOverlay,\n SectionHeader,\n SelectableItem,\n SettingsRow,\n SwitchField,\n ThemeComposer,\n PaletteItem,\n TileGrid,\n Timeline,\n TreeItem,\n TreeView,\n} as const satisfies ZoraComponentRegistry;\n\nexport const ZORA_COMPONENT_REGISTRY: ZoraComponentRegistry = _ZORA_COMPONENT_REGISTRY;\n"]}
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
3
- export type DatePickerValue = Date | null;
2
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
3
+ export type DatePickerValue = string | null;
4
4
  export interface DatePickerProps extends ZoraBaseProps {
5
5
  value: DatePickerValue;
6
6
  onValueChange?: (value: DatePickerValue) => void;
@@ -8,11 +8,11 @@ export interface DatePickerProps extends ZoraBaseProps {
8
8
  description?: React.ReactNode;
9
9
  error?: React.ReactNode;
10
10
  placeholder?: React.ReactNode;
11
- minDate?: Date;
12
- maxDate?: Date;
11
+ minDate?: string;
12
+ maxDate?: string;
13
13
  disabled?: boolean;
14
14
  required?: boolean;
15
- formatDate?: (value: Date) => React.ReactNode;
15
+ formatDate?: (value: string) => React.ReactNode;
16
16
  testID?: string;
17
17
  }
18
- //# sourceMappingURL=types.d.ts.map
18
+ //# sourceMappingURL=date-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../src/types/date-picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,KAAK,EAAE,eAAe,CAAC;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=date-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.js","sourceRoot":"","sources":["../../src/types/date-picker.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport type DatePickerValue = string | null;\n\nexport interface DatePickerProps extends ZoraBaseProps {\n value: DatePickerValue;\n onValueChange?: (value: DatePickerValue) => void;\n label?: React.ReactNode;\n description?: React.ReactNode;\n error?: React.ReactNode;\n placeholder?: React.ReactNode;\n minDate?: string;\n maxDate?: string;\n disabled?: boolean;\n required?: boolean;\n formatDate?: (value: string) => React.ReactNode;\n testID?: string;\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
- import type { ZoraButtonVariant, ZoraColor } from '../../internal/recipes';
3
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
2
+ import type { ZoraButtonVariant, ZoraColor } from '../internal/recipes';
3
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
4
4
  export type HeroAlign = 'start' | 'center';
5
5
  export type HeroLayout = 'stack' | 'split' | 'mediaFirst';
6
6
  export type HeroTone = 'default' | 'subtle' | 'outline';
@@ -24,4 +24,4 @@ export interface HeroProps extends ZoraBaseProps {
24
24
  tone?: HeroTone;
25
25
  compact?: boolean;
26
26
  }
27
- //# sourceMappingURL=types.d.ts.map
27
+ //# sourceMappingURL=hero.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../src/types/hero.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC3C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,YAAY,CAAC;AAC1D,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,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,UAAU,CAAC;IAC3B,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=hero.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero.js","sourceRoot":"","sources":["../../src/types/hero.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 type HeroAlign = 'start' | 'center';\nexport type HeroLayout = 'stack' | 'split' | 'mediaFirst';\nexport type HeroTone = 'default' | 'subtle' | 'outline';\n\nexport interface HeroAction {\n label: React.ReactNode;\n onPress: () => void;\n color?: ZoraColor;\n variant?: ZoraButtonVariant;\n disabled?: boolean;\n}\n\nexport interface HeroProps extends ZoraBaseProps {\n title: React.ReactNode;\n description?: React.ReactNode;\n eyebrow?: React.ReactNode;\n primaryAction?: HeroAction;\n secondaryAction?: HeroAction;\n media?: React.ReactNode;\n footer?: React.ReactNode;\n align?: HeroAlign;\n layout?: HeroLayout;\n tone?: HeroTone;\n compact?: boolean;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
1
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
2
2
  export interface MissingElementProps extends ZoraBaseProps {
3
3
  requestedCapability: string;
4
4
  reason: string;
@@ -6,4 +6,4 @@ export interface MissingElementProps extends ZoraBaseProps {
6
6
  minimumWidth?: number;
7
7
  minimumHeight?: number;
8
8
  }
9
- //# sourceMappingURL=types.d.ts.map
9
+ //# sourceMappingURL=missing-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"missing-element.d.ts","sourceRoot":"","sources":["../../src/types/missing-element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=missing-element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"missing-element.js","sourceRoot":"","sources":["../../src/types/missing-element.ts"],"names":[],"mappings":"","sourcesContent":["import type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface MissingElementProps extends ZoraBaseProps {\n requestedCapability: string;\n reason: string;\n evidenceId?: string;\n minimumWidth?: number;\n minimumHeight?: number;\n}\n"]}
@@ -1,5 +1,5 @@
1
- import type { BoxProps, StackProps } from '../../features/layout/public';
2
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
1
+ import type { BoxProps, StackProps } from '../features/layout/public';
2
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
3
3
  export type SkeletonRadius = BoxProps['radius'];
4
4
  export type SkeletonDimension = BoxProps['width'];
5
5
  export type SkeletonListVariant = 'divider' | 'card';
@@ -29,4 +29,4 @@ export interface SkeletonListProps extends ZoraBaseProps {
29
29
  variant?: SkeletonListVariant;
30
30
  compact?: boolean;
31
31
  }
32
- //# sourceMappingURL=types.d.ts.map
32
+ //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/types/skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAChD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;AAClD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,MAAM,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACxB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../src/types/skeleton.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxProps, StackProps } from '../features/layout/public';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport type SkeletonRadius = BoxProps['radius'];\nexport type SkeletonDimension = BoxProps['width'];\nexport type SkeletonListVariant = 'divider' | 'card';\n\nexport interface SkeletonProps extends ZoraBaseProps {\n width?: SkeletonDimension;\n height?: BoxProps['height'];\n radius?: SkeletonRadius;\n}\n\nexport interface SkeletonTextProps extends ZoraBaseProps {\n lines?: number;\n lineHeight?: number;\n gap?: StackProps['gap'];\n width?: SkeletonDimension;\n lastLineWidth?: SkeletonDimension;\n}\n\nexport interface SkeletonCardProps extends ZoraBaseProps {\n media?: boolean;\n actions?: boolean;\n lines?: number;\n compact?: boolean;\n}\n\nexport interface SkeletonListProps extends ZoraBaseProps {\n rows?: number;\n avatar?: boolean;\n media?: boolean;\n lines?: number;\n variant?: SkeletonListVariant;\n compact?: boolean;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type React from 'react';
2
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
2
+ import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
3
3
  export type TimePickerValue = string | null;
4
4
  export interface TimePickerProps extends ZoraBaseProps {
5
5
  value: TimePickerValue;
@@ -16,4 +16,4 @@ export interface TimePickerProps extends ZoraBaseProps {
16
16
  formatTime?: (value: string) => React.ReactNode;
17
17
  testID?: string;
18
18
  }
19
- //# sourceMappingURL=types.d.ts.map
19
+ //# sourceMappingURL=time-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.d.ts","sourceRoot":"","sources":["../../src/types/time-picker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,KAAK,EAAE,eAAe,CAAC;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=time-picker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.js","sourceRoot":"","sources":["../../src/types/time-picker.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport type TimePickerValue = string | null;\n\nexport interface TimePickerProps extends ZoraBaseProps {\n value: TimePickerValue;\n onValueChange?: (value: TimePickerValue) => void;\n label?: React.ReactNode;\n description?: React.ReactNode;\n error?: React.ReactNode;\n placeholder?: React.ReactNode;\n minTime?: string;\n maxTime?: string;\n stepMinutes?: number;\n disabled?: boolean;\n required?: boolean;\n formatTime?: (value: string) => React.ReactNode;\n testID?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/zora",
3
3
  "type": "module",
4
- "version": "11.0.0",
4
+ "version": "12.0.0",
5
5
  "description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
6
6
  "homepage": "https://github.com/ankhorage/zora#readme",
7
7
  "bugs": {
package/src/constants.ts CHANGED
@@ -11,6 +11,7 @@ export const FEATURE_MANIFEST_ELEMENTS = {
11
11
  card: ['Card', 'MediaCard', 'MetricCard', 'PostCard', 'ProductCard'],
12
12
  chip: ['Chip', 'ChipGroup'],
13
13
  'data-table': ['DataTable'],
14
+ 'date-picker': ['DatePicker'],
14
15
  form: ['Form', 'FormError', 'FormField'],
15
16
  button: ['Button', 'IconButton', 'ButtonGroup'],
16
17
  icon: ['Icon'],
@@ -18,7 +19,9 @@ export const FEATURE_MANIFEST_ELEMENTS = {
18
19
  'keyboard-avoiding-view': ['KeyboardAvoidingView'],
19
20
  layout: ['Box', 'Container', 'ContentRail', 'Divider', 'Grid', 'Stack'],
20
21
  list: ['FlatList', 'SectionList'],
22
+ skeleton: ['Skeleton', 'SkeletonCard', 'SkeletonList', 'SkeletonText'],
21
23
  typography: ['Heading', 'Text'],
24
+ 'time-picker': ['TimePicker'],
22
25
  uploader: ['Uploader'],
23
26
  'bottom-sheet': ['BottomSheet'],
24
27
  } as const;
@@ -24,6 +24,18 @@ test('form composition has one canonical feature owner', () => {
24
24
  expect(existsSync('src/patterns/form-field')).toBe(false);
25
25
  });
26
26
 
27
+ test('migrated picker and presentation elements have one canonical feature owner', () => {
28
+ for (const legacyPath of [
29
+ 'src/components/date-picker',
30
+ 'src/components/skeleton',
31
+ 'src/components/time-picker',
32
+ 'src/patterns/hero',
33
+ 'src/patterns/missing-element',
34
+ ]) {
35
+ expect(existsSync(legacyPath), legacyPath).toBe(false);
36
+ }
37
+ });
38
+
27
39
  test('interactive authoring retains state and event payload bindings after plugin composition', () => {
28
40
  const meta = ZORA_CORE_PLUGIN_METADATA.componentMeta;
29
41
  expect(meta.DataTable?.bindings?.props?.sort?.value.type).toBe('object');
@@ -25,8 +25,8 @@ describe('ZORA BottomSheet public contract', () => {
25
25
  test('installs the shared provider and removes picker ActionSheet dependencies', async () => {
26
26
  const [provider, datePicker, timePicker] = await Promise.all([
27
27
  Bun.file('src/theme/ZoraProvider.tsx').text(),
28
- Bun.file('src/components/date-picker/DatePicker.tsx').text(),
29
- Bun.file('src/components/time-picker/TimePicker.tsx').text(),
28
+ Bun.file('src/features/date-picker/adapters/inbound/DatePicker.tsx').text(),
29
+ Bun.file('src/features/time-picker/adapters/inbound/TimePicker.tsx').text(),
30
30
  ]);
31
31
 
32
32
  expect(provider).toContain('<BottomSheetProvider>{children}</BottomSheetProvider>');
@@ -3,7 +3,6 @@ import React from 'react';
3
3
  import { ScrollView, type ViewStyle } from 'react-native';
4
4
 
5
5
  import { DropdownMenu, type MenuAction } from '../../../../components/menu';
6
- import { SkeletonList } from '../../../../components/skeleton';
7
6
  import { Show } from '../../../../foundation';
8
7
  import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
9
8
  import type {
@@ -20,6 +19,7 @@ import { IconButton } from '../../../button/public';
20
19
  import { Card } from '../../../card/public';
21
20
  import { EmptyState } from '../../../empty-state/public';
22
21
  import { Box, Stack } from '../../../layout/public';
22
+ import { SkeletonList } from '../../../skeleton/public';
23
23
  import { Text, type TextAlign } from '../../../typography/public';
24
24
  import { resolveDataTableRowKey } from '../../utils/resolveDataTableRowKey';
25
25
  /***
@@ -1,12 +1,13 @@
1
1
  import { Field } from '@ankhorage/surface';
2
2
  import React from 'react';
3
3
 
4
- import { useBottomSheet } from '../../features/bottom-sheet/public';
5
- import { Button } from '../../features/button/public';
6
- import { Box, Stack } from '../../features/layout/public';
7
- import { Text } from '../../features/typography/public';
8
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
9
- import type { DatePickerProps } from './types';
4
+ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
5
+ import type { DatePickerProps } from '../../../../types/date-picker';
6
+ import { useBottomSheet } from '../../../bottom-sheet/public';
7
+ import { Button } from '../../../button/public';
8
+ import { Box, Stack } from '../../../layout/public';
9
+ import { Text } from '../../../typography/public';
10
+ import { formatLocalDate, parseLocalDate } from '../../utils/localDate';
10
11
 
11
12
  const WEEKDAY_LABELS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] as const;
12
13
  const DAY_CELL_WIDTH = 42;
@@ -27,15 +28,14 @@ function renderLabel(label: React.ReactNode, description: React.ReactNode | unde
27
28
  );
28
29
  }
29
30
 
30
- /*** Normalize a date to the start of its local calendar day. */
31
- function startOfLocalDay(value: Date): Date {
32
- return new Date(value.getFullYear(), value.getMonth(), value.getDate());
31
+ /*** Compare two values by local calendar day. */
32
+ function isSameLocalDay(left: string | null, right: Date): boolean {
33
+ return left === formatLocalDate(right);
33
34
  }
34
35
 
35
- /*** Compare two values by local calendar day. */
36
- function isSameLocalDay(left: Date | null, right: Date): boolean {
37
- if (!left) return false;
38
- return startOfLocalDay(left).getTime() === startOfLocalDay(right).getTime();
36
+ /*** Normalize a Date to the start of its local calendar day for range comparisons. */
37
+ function startOfLocalDay(value: Date): Date {
38
+ return new Date(value.getFullYear(), value.getMonth(), value.getDate());
39
39
  }
40
40
 
41
41
  /*** Report whether one local calendar day precedes another. */
@@ -65,28 +65,27 @@ function formatMonthLabel(value: Date): string {
65
65
  }
66
66
 
67
67
  /*** Format a selected date with the platform locale defaults. */
68
- function formatDefaultDate(value: Date): string {
69
- return value.toLocaleDateString();
68
+ function formatDefaultDate(value: string): string {
69
+ return parseLocalDate(value)?.toLocaleDateString() ?? value;
70
70
  }
71
71
 
72
72
  /*** Build the padded calendar grid for one month. */
73
73
  function createMonthDays(month: Date): (Date | null)[] {
74
74
  const firstDay = new Date(month.getFullYear(), month.getMonth(), 1);
75
75
  const dayCount = new Date(month.getFullYear(), month.getMonth() + 1, 0).getDate();
76
- const days: (Date | null)[] = [];
76
+ const populatedLength = firstDay.getDay() + dayCount;
77
+ const paddedLength = Math.ceil(populatedLength / 7) * 7;
77
78
 
78
- for (let offset = 0; offset < firstDay.getDay(); offset += 1) days.push(null);
79
- for (let day = 1; day <= dayCount; day += 1) {
80
- days.push(new Date(month.getFullYear(), month.getMonth(), day));
81
- }
82
- while (days.length % 7 !== 0) days.push(null);
83
-
84
- return days;
79
+ return Array.from({ length: paddedLength }, (_, index) =>
80
+ index < firstDay.getDay()
81
+ ? null
82
+ : new Date(month.getFullYear(), month.getMonth(), index - firstDay.getDay() + 1),
83
+ );
85
84
  }
86
85
 
87
86
  /*** Resolve the month initially shown by the calendar sheet. */
88
- function resolveInitialMonth(value: Date | null, minDate: Date | undefined): Date {
89
- const base = value ?? minDate ?? new Date();
87
+ function resolveInitialMonth(value: string | null, minDate: string | undefined): Date {
88
+ const base = parseLocalDate(value) ?? parseLocalDate(minDate) ?? new Date();
90
89
  return new Date(base.getFullYear(), base.getMonth(), 1);
91
90
  }
92
91
 
@@ -142,7 +141,7 @@ function DatePickerInner({
142
141
  minDate={minDate}
143
142
  onDismiss={dismiss}
144
143
  onSelect={(date) => {
145
- onValueChange?.(startOfLocalDay(date));
144
+ onValueChange?.(formatLocalDate(date));
146
145
  dismiss();
147
146
  }}
148
147
  testID={testID}
@@ -197,6 +196,8 @@ function DatePickerSheet({
197
196
  }: DatePickerSheetProps) {
198
197
  const [displayMonth, setDisplayMonth] = React.useState(() => resolveInitialMonth(value, minDate));
199
198
  const monthDays = React.useMemo(() => createMonthDays(displayMonth), [displayMonth]);
199
+ const resolvedMaxDate = React.useMemo(() => parseLocalDate(maxDate), [maxDate]);
200
+ const resolvedMinDate = React.useMemo(() => parseLocalDate(minDate), [minDate]);
200
201
 
201
202
  return (
202
203
  <Stack gap="m" p="m" testID={testID ? `${testID}-sheet` : undefined}>
@@ -204,15 +205,15 @@ function DatePickerSheet({
204
205
  <DatePickerMonthNavigation
205
206
  displayMonth={displayMonth}
206
207
  interactionPolicy={interactionPolicy}
207
- maxDate={maxDate}
208
- minDate={minDate}
208
+ maxDate={resolvedMaxDate}
209
+ minDate={resolvedMinDate}
209
210
  onMonthChange={setDisplayMonth}
210
211
  />
211
212
  <DatePickerWeekdays />
212
213
  <DatePickerCalendar
213
214
  interactionPolicy={interactionPolicy}
214
- maxDate={maxDate}
215
- minDate={minDate}
215
+ maxDate={resolvedMaxDate}
216
+ minDate={resolvedMinDate}
216
217
  monthDays={monthDays}
217
218
  onSelect={onSelect}
218
219
  testID={testID}
@@ -254,8 +255,11 @@ function DatePickerMonthNavigation({
254
255
  maxDate,
255
256
  minDate,
256
257
  onMonthChange,
257
- }: Pick<DatePickerSheetProps, 'interactionPolicy' | 'maxDate' | 'minDate'> & {
258
+ }: {
258
259
  displayMonth: Date;
260
+ interactionPolicy: DatePickerProps['interactionPolicy'];
261
+ maxDate: Date | undefined;
262
+ minDate: Date | undefined;
259
263
  onMonthChange: (month: Date) => void;
260
264
  }) {
261
265
  const previousMonth = new Date(displayMonth.getFullYear(), displayMonth.getMonth() - 1, 1);
@@ -312,9 +316,14 @@ function DatePickerCalendar({
312
316
  onSelect,
313
317
  testID,
314
318
  value,
315
- }: Pick<DatePickerSheetProps, 'interactionPolicy' | 'maxDate' | 'minDate' | 'testID' | 'value'> & {
319
+ }: {
320
+ interactionPolicy: DatePickerProps['interactionPolicy'];
321
+ maxDate: Date | undefined;
322
+ minDate: Date | undefined;
316
323
  monthDays: readonly (Date | null)[];
317
324
  onSelect: (value: Date) => void;
325
+ testID: string | undefined;
326
+ value: DatePickerProps['value'];
318
327
  }) {
319
328
  return (
320
329
  <Stack direction="row" gap="xs" wrap="wrap">
@@ -0,0 +1,58 @@
1
+ import type { ZoraComponentMeta } from '../../metadata';
2
+
3
+ export const datePickerMeta = {
4
+ name: 'DatePicker',
5
+ category: 'component',
6
+ description: 'Captures a local calendar date through the shared BottomSheet picker host.',
7
+ directManifestNode: true,
8
+ allowedChildren: [],
9
+ blueprint: {
10
+ label: 'Date picker',
11
+ defaultProps: {
12
+ value: null,
13
+ placeholder: 'Choose date',
14
+ disabled: false,
15
+ required: false,
16
+ },
17
+ },
18
+ events: {
19
+ valueChange: {
20
+ label: 'Value change',
21
+ eventType: 'datePicker.valueChange',
22
+ description: 'Emitted when a local calendar date is selected.',
23
+ payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],
24
+ },
25
+ },
26
+ props: {
27
+ value: {
28
+ type: 'string',
29
+ category: 'State',
30
+ label: 'Value',
31
+ default: null,
32
+ authoring: { authority: 'instance' },
33
+ },
34
+ label: { type: 'string', category: 'Content', label: 'Label' },
35
+ description: { type: 'string', category: 'Content', label: 'Description' },
36
+ error: { type: 'string', category: 'Validation', label: 'Error' },
37
+ placeholder: {
38
+ type: 'string',
39
+ category: 'Content',
40
+ label: 'Placeholder',
41
+ default: 'Choose date',
42
+ },
43
+ minDate: { type: 'string', category: 'Validation', label: 'Minimum date' },
44
+ maxDate: { type: 'string', category: 'Validation', label: 'Maximum date' },
45
+ disabled: {
46
+ type: 'boolean',
47
+ category: 'State',
48
+ label: 'Disabled',
49
+ default: false,
50
+ },
51
+ required: {
52
+ type: 'boolean',
53
+ category: 'Validation',
54
+ label: 'Required',
55
+ default: false,
56
+ },
57
+ },
58
+ } as const satisfies ZoraComponentMeta;
@@ -0,0 +1,15 @@
1
+ import { expect, test } from 'bun:test';
2
+
3
+ import { ZORA_COMPONENT_META } from '../../metadata/componentMeta';
4
+
5
+ test('DatePicker exposes a serializable manifest contract through the shared BottomSheet', async () => {
6
+ const source = await Bun.file('src/features/date-picker/adapters/inbound/DatePicker.tsx').text();
7
+ const meta = ZORA_COMPONENT_META.DatePicker;
8
+
9
+ expect(meta.directManifestNode).toBe(true);
10
+ expect(meta.props.value?.type).toBe('string');
11
+ expect(meta.events?.valueChange?.eventType).toBe('datePicker.valueChange');
12
+ expect(meta.bindings?.props?.value?.value.type).toBe('string');
13
+ expect(source).toContain('useBottomSheet()');
14
+ expect(source).toContain('formatLocalDate(date)');
15
+ });
@@ -0,0 +1,2 @@
1
+ export type { DatePickerProps, DatePickerValue } from '../../types/date-picker';
2
+ export { DatePicker } from './adapters/inbound/DatePicker';
@@ -0,0 +1,18 @@
1
+ import { describe, expect, test } from 'bun:test';
2
+
3
+ import { formatLocalDate, parseLocalDate } from './localDate';
4
+
5
+ describe('local date serialization', () => {
6
+ test('round-trips a valid YYYY-MM-DD value without a UTC conversion', () => {
7
+ const parsed = parseLocalDate('2026-09-13');
8
+
9
+ expect(parsed).toBeDefined();
10
+ expect(parsed ? formatLocalDate(parsed) : undefined).toBe('2026-09-13');
11
+ });
12
+
13
+ test('rejects malformed and impossible calendar dates', () => {
14
+ expect(parseLocalDate('2026-2-03')).toBeUndefined();
15
+ expect(parseLocalDate('2026-02-30')).toBeUndefined();
16
+ expect(parseLocalDate(null)).toBeUndefined();
17
+ });
18
+ });