@ankhorage/zora 23.0.0 → 23.2.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 (203) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/constants/authoring.d.ts +4 -4
  4. package/dist/constants/authoring.d.ts.map +1 -1
  5. package/dist/constants/authoring.js +2 -0
  6. package/dist/constants/authoring.js.map +1 -1
  7. package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
  8. package/dist/features/auth/adapters/inbound/AuthScreen.d.ts +10 -0
  9. package/dist/features/auth/adapters/inbound/AuthScreen.d.ts.map +1 -0
  10. package/dist/features/auth/adapters/inbound/AuthScreen.js +67 -0
  11. package/dist/features/auth/adapters/inbound/AuthScreen.js.map +1 -0
  12. package/dist/features/auth/authScreenMeta.d.ts +204 -0
  13. package/dist/features/auth/authScreenMeta.d.ts.map +1 -0
  14. package/dist/features/auth/authScreenMeta.js +112 -0
  15. package/dist/features/auth/authScreenMeta.js.map +1 -0
  16. package/dist/features/auth/public.d.ts +2 -1
  17. package/dist/features/auth/public.d.ts.map +1 -1
  18. package/dist/features/auth/public.js +1 -0
  19. package/dist/features/auth/public.js.map +1 -1
  20. package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
  21. package/dist/features/card/cardMeta.d.ts +1 -1
  22. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  23. package/dist/features/card/postCardMeta.d.ts +1 -1
  24. package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
  25. package/dist/features/dialog/dialogMeta.d.ts +2 -2
  26. package/dist/features/gradient/gradientMeta.d.ts +1 -1
  27. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
  28. package/dist/features/layout/gridMeta.d.ts +1 -1
  29. package/dist/features/layout/screenMeta.d.ts +1 -1
  30. package/dist/features/layout/scrollViewMeta.d.ts +1 -1
  31. package/dist/features/layout/viewMeta.d.ts +1 -1
  32. package/dist/features/list/flatListMeta.d.ts +1 -1
  33. package/dist/features/list/sectionListMeta.d.ts +1 -1
  34. package/dist/features/reader/meta.d.ts +2 -2
  35. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts.map +1 -1
  36. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +2 -1
  37. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -1
  38. package/dist/features/registry/bindableComponentMeta.d.ts +2 -2
  39. package/dist/features/registry/componentMeta.d.ts.map +1 -1
  40. package/dist/features/registry/componentMeta.js +2 -0
  41. package/dist/features/registry/componentMeta.js.map +1 -1
  42. package/dist/features/scanner/meta.d.ts +2 -2
  43. package/dist/features/section/screenSectionMeta.d.ts +1 -1
  44. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  45. package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
  46. package/dist/features/tree-view/adapters/inbound/TreeItem.d.ts.map +1 -1
  47. package/dist/features/tree-view/adapters/inbound/TreeItem.js +2 -1
  48. package/dist/features/tree-view/adapters/inbound/TreeItem.js.map +1 -1
  49. package/dist/features/tree-view/adapters/inbound/web-artifact/TreeItemRow.d.ts.map +1 -1
  50. package/dist/features/tree-view/adapters/inbound/web-artifact/TreeItemRow.js +5 -4
  51. package/dist/features/tree-view/adapters/inbound/web-artifact/TreeItemRow.js.map +1 -1
  52. package/dist/features/tree-view/adapters/inbound/web-artifact/TreeView.d.ts +1 -0
  53. package/dist/features/tree-view/adapters/inbound/web-artifact/TreeView.d.ts.map +1 -1
  54. package/dist/features/tree-view/adapters/inbound/web-artifact/TreeView.js.map +1 -1
  55. package/dist/index.d.ts +2 -2
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/index.js.map +1 -1
  59. package/dist/types/auth.d.ts +19 -0
  60. package/dist/types/auth.d.ts.map +1 -1
  61. package/dist/types/auth.js.map +1 -1
  62. package/dist/types/tree-view.d.ts +1 -0
  63. package/dist/types/tree-view.d.ts.map +1 -1
  64. package/dist/types/tree-view.js.map +1 -1
  65. package/package.json +2 -2
  66. package/src/constants/authoring.ts +2 -0
  67. package/src/features/auth/adapters/inbound/AuthScreen.tsx +202 -0
  68. package/src/features/auth/authScreenMeta.ts +114 -0
  69. package/src/features/auth/public.test.ts +6 -0
  70. package/src/features/auth/public.ts +3 -0
  71. package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +2 -0
  72. package/src/features/registry/componentMeta.test.ts +1 -0
  73. package/src/features/registry/componentMeta.ts +2 -0
  74. package/src/features/tree-view/adapters/inbound/TreeItem.tsx +3 -2
  75. package/src/features/tree-view/adapters/inbound/web-artifact/TreeItemRow.tsx +12 -3
  76. package/src/features/tree-view/adapters/inbound/web-artifact/TreeView.test.tsx +19 -0
  77. package/src/features/tree-view/adapters/inbound/web-artifact/TreeView.tsx +1 -0
  78. package/src/index.ts +3 -0
  79. package/src/showcaseCoverage.test.ts +1 -0
  80. package/src/types/auth.ts +21 -0
  81. package/src/types/tree-view.ts +1 -0
  82. package/web-dist/chunks/{Accordion-q165k3az.js → Accordion-2ak69ntj.js} +9 -9
  83. package/web-dist/chunks/{Accordion-rx2gzadh.js → Accordion-46vwm9xv.js} +2 -2
  84. package/web-dist/chunks/{Accordion-xf8cj8z4.js → Accordion-4r9a9qny.js} +3 -3
  85. package/web-dist/chunks/{Accordion-w0k7gnn9.js → Accordion-5pskbqss.js} +5 -5
  86. package/web-dist/chunks/{Accordion-09se459d.js → Accordion-8xdet564.js} +13 -13
  87. package/web-dist/chunks/{Accordion-czmnsspb.js → Accordion-9n7h9hag.js} +6 -6
  88. package/web-dist/chunks/{Accordion-x1dg1f47.js → Accordion-b9myvfep.js} +3 -3
  89. package/web-dist/chunks/{Accordion-rspy7gjb.js → Accordion-bmp1ab7m.js} +494 -301
  90. package/web-dist/chunks/{Accordion-x13vca75.js → Accordion-cqgbx1pw.js} +3 -3
  91. package/web-dist/chunks/{Accordion-e633pb7z.js → Accordion-cydzrpk2.js} +1 -1
  92. package/web-dist/chunks/{Accordion-89q14src.js → Accordion-ejns5mga.js} +4 -4
  93. package/web-dist/chunks/{Accordion-f1t3rzgg.js → Accordion-ejy7gr0a.js} +4 -4
  94. package/web-dist/chunks/{Accordion-83hfn3y4.js → Accordion-f2mfgcx6.js} +13 -13
  95. package/web-dist/chunks/{Accordion-bsy1jrak.js → Accordion-ff583p4q.js} +2 -2
  96. package/web-dist/chunks/{Accordion-k7wwyx5x.js → Accordion-jksn8783.js} +3 -3
  97. package/web-dist/chunks/{Accordion-w7jv9y5t.js → Accordion-jnwa02s7.js} +2 -2
  98. package/web-dist/chunks/{Accordion-gkzhd3zk.js → Accordion-kmv2fp6m.js} +4 -4
  99. package/web-dist/chunks/{Accordion-cn8tbdvk.js → Accordion-mm4kx13n.js} +8 -8
  100. package/web-dist/chunks/{Accordion-b3ymabze.js → Accordion-nggjwm07.js} +3 -3
  101. package/web-dist/chunks/{Accordion-zx0jc0kg.js → Accordion-qb8ppq9t.js} +5 -5
  102. package/web-dist/chunks/Accordion-r23sx4gf.js +34 -0
  103. package/web-dist/chunks/{Accordion-q3z741vt.js → Accordion-rev0zb75.js} +4 -4
  104. package/web-dist/chunks/{Accordion-w1afjp87.js → Accordion-rnjt5z4y.js} +17 -17
  105. package/web-dist/chunks/{Accordion-swys7qts.js → Accordion-tyqds4zr.js} +4 -4
  106. package/web-dist/chunks/{Accordion-xzd0tx46.js → Accordion-v166qr59.js} +3 -3
  107. package/web-dist/chunks/{Accordion-gj63vb6b.js → Accordion-xw1gkpfk.js} +3 -3
  108. package/web-dist/chunks/{Accordion-dp638q63.js → Accordion-yms7x22j.js} +7 -7
  109. package/web-dist/chunks/{Accordion-fm3jxs1f.js → Accordion-z1trs7s1.js} +22 -22
  110. package/web-dist/chunks/{Accordion-5qmfa7vr.js → Accordion-z8h1hn96.js} +5 -5
  111. package/web-dist/components/accordion/Accordion.js +2 -2
  112. package/web-dist/components/accordion-item/AccordionItem.js +2 -2
  113. package/web-dist/components/app-bar/AppBar.js +6 -6
  114. package/web-dist/components/auth-screen/AuthScreen.d.ts +9 -0
  115. package/web-dist/components/auth-screen/AuthScreen.js +43 -0
  116. package/web-dist/components/auth-screen/index.d.ts +1 -0
  117. package/web-dist/components/auth-screen/index.js +2 -0
  118. package/web-dist/components/avatar/Avatar.js +2 -2
  119. package/web-dist/components/avatar-group/AvatarGroup.js +2 -2
  120. package/web-dist/components/badge/Badge.js +2 -2
  121. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +8 -8
  122. package/web-dist/components/breadcrumbs/Breadcrumbs.js +8 -8
  123. package/web-dist/components/button/Button.js +3 -3
  124. package/web-dist/components/button-group/ButtonGroup.js +3 -3
  125. package/web-dist/components/camera-permission-view/CameraPermissionView.js +8 -8
  126. package/web-dist/components/card/Card.js +7 -7
  127. package/web-dist/components/chat-list-item/ChatListItem.js +6 -6
  128. package/web-dist/components/checkbox/Checkbox.js +4 -4
  129. package/web-dist/components/checkbox-group/CheckboxGroup.js +4 -4
  130. package/web-dist/components/chip/Chip.js +2 -2
  131. package/web-dist/components/chip-group/ChipGroup.js +2 -2
  132. package/web-dist/components/collection-editor/CollectionEditor.js +9 -9
  133. package/web-dist/components/content-rail/ContentRail.js +6 -6
  134. package/web-dist/components/data-table/DataTable.js +18 -18
  135. package/web-dist/components/date-picker/DatePicker.js +12 -12
  136. package/web-dist/components/dialog/Dialog.js +3 -3
  137. package/web-dist/components/empty-state/EmptyState.js +8 -8
  138. package/web-dist/components/field/Field.js +5 -5
  139. package/web-dist/components/flat-list/FlatList.js +5 -5
  140. package/web-dist/components/forgot-password-form/ForgotPasswordForm.d.ts +1 -0
  141. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +21 -16
  142. package/web-dist/components/form/Form.js +7 -7
  143. package/web-dist/components/form-actions/FormActions.js +7 -7
  144. package/web-dist/components/form-error/FormError.js +7 -7
  145. package/web-dist/components/heading/Heading.js +3 -3
  146. package/web-dist/components/hero/Hero.js +10 -10
  147. package/web-dist/components/icon-button/IconButton.js +3 -3
  148. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +5 -32
  149. package/web-dist/components/list/List.js +5 -5
  150. package/web-dist/components/list-item/ListItem.js +5 -5
  151. package/web-dist/components/list-section/ListSection.js +5 -5
  152. package/web-dist/components/media-card/MediaCard.js +7 -7
  153. package/web-dist/components/message-bubble/MessageBubble.js +6 -6
  154. package/web-dist/components/metric-card/MetricCard.js +7 -7
  155. package/web-dist/components/missing-element/MissingElement.js +8 -8
  156. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.d.ts +1 -0
  157. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +21 -16
  158. package/web-dist/components/o-auth-provider-list/OAuthProviderList.d.ts +1 -0
  159. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +21 -16
  160. package/web-dist/components/otp-form/OtpForm.d.ts +1 -0
  161. package/web-dist/components/otp-form/OtpForm.js +21 -16
  162. package/web-dist/components/pagination/Pagination.js +6 -6
  163. package/web-dist/components/palette-item/PaletteItem.js +9 -9
  164. package/web-dist/components/popover-menu/PopoverMenu.js +3 -3
  165. package/web-dist/components/post-card/PostCard.js +7 -7
  166. package/web-dist/components/product-card/ProductCard.js +7 -7
  167. package/web-dist/components/progress/Progress.js +2 -2
  168. package/web-dist/components/progress-ring/ProgressRing.js +2 -2
  169. package/web-dist/components/radio/Radio.js +4 -4
  170. package/web-dist/components/radio-group/RadioGroup.js +4 -4
  171. package/web-dist/components/reader-surface/ReaderSurface.js +11 -11
  172. package/web-dist/components/scan-overlay/ScanOverlay.js +8 -8
  173. package/web-dist/components/screen-section/ScreenSection.js +2 -2
  174. package/web-dist/components/search-input/SearchInput.js +4 -4
  175. package/web-dist/components/section-header/SectionHeader.js +2 -2
  176. package/web-dist/components/section-list/SectionList.js +5 -5
  177. package/web-dist/components/select/Select.js +4 -4
  178. package/web-dist/components/sign-in-form/SignInForm.d.ts +1 -0
  179. package/web-dist/components/sign-in-form/SignInForm.js +21 -16
  180. package/web-dist/components/sign-up-form/SignUpForm.d.ts +1 -0
  181. package/web-dist/components/sign-up-form/SignUpForm.js +21 -16
  182. package/web-dist/components/skeleton/Skeleton.js +10 -10
  183. package/web-dist/components/skeleton-card/SkeletonCard.js +10 -10
  184. package/web-dist/components/skeleton-list/SkeletonList.js +10 -10
  185. package/web-dist/components/skeleton-text/SkeletonText.js +10 -10
  186. package/web-dist/components/switch/Switch.js +3 -3
  187. package/web-dist/components/tab/Tab.js +2 -2
  188. package/web-dist/components/tab-list/TabList.js +2 -2
  189. package/web-dist/components/tab-panel/TabPanel.js +2 -2
  190. package/web-dist/components/tabs/Tabs.js +2 -2
  191. package/web-dist/components/text/Text.js +3 -3
  192. package/web-dist/components/text-input/TextInput.js +4 -4
  193. package/web-dist/components/time-picker/TimePicker.js +10 -10
  194. package/web-dist/components/timeline/Timeline.js +4 -4
  195. package/web-dist/components/toast/Toast.js +3 -3
  196. package/web-dist/components/toast-provider/ToastProvider.js +3 -3
  197. package/web-dist/components/toolbar/Toolbar.js +7 -7
  198. package/web-dist/components/tree-item/TreeItem.js +10 -9
  199. package/web-dist/components/tree-view/TreeView.d.ts +1 -0
  200. package/web-dist/components/tree-view/TreeView.js +5 -2
  201. package/web-dist/components/uploader/Uploader.js +15 -15
  202. package/web-dist/manifest.json +444 -384
  203. package/web-dist/runtime/ZoraProvider.js +3 -3
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  Field3
4
- } from "./Accordion-zx0jc0kg.js";
4
+ } from "./Accordion-qb8ppq9t.js";
5
5
  import {
6
6
  withZoraThemeScope
7
7
  } from "./Accordion-13y3zx87.js";
@@ -9,8 +9,8 @@ import {
9
9
  View2
10
10
  } from "./Accordion-01e56hb5.js";
11
11
  import {
12
- Text2
13
- } from "./Accordion-rx2gzadh.js";
12
+ Text3
13
+ } from "./Accordion-46vwm9xv.js";
14
14
 
15
15
  // src/features/form/field/adapters/inbound/Field.tsx
16
16
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -30,12 +30,12 @@ function FieldInner({
30
30
  label: /* @__PURE__ */ jsxs(View2, {
31
31
  gap: "xs",
32
32
  children: [
33
- /* @__PURE__ */ jsx(Text2, {
33
+ /* @__PURE__ */ jsx(Text3, {
34
34
  variant: "label",
35
35
  weight: "semiBold",
36
36
  children: label
37
37
  }),
38
- description ? /* @__PURE__ */ jsx(Text2, {
38
+ description ? /* @__PURE__ */ jsx(Text3, {
39
39
  emphasis: "muted",
40
40
  variant: "bodySmall",
41
41
  children: description
@@ -13,8 +13,8 @@ import {
13
13
  Pressable
14
14
  } from "./Accordion-cdppbyad.js";
15
15
  import {
16
- Text3
17
- } from "./Accordion-bsy1jrak.js";
16
+ Text2
17
+ } from "./Accordion-ff583p4q.js";
18
18
  import {
19
19
  withZoraThemeScope
20
20
  } from "./Accordion-13y3zx87.js";
@@ -22,21 +22,21 @@ import {
22
22
  View2
23
23
  } from "./Accordion-01e56hb5.js";
24
24
  import {
25
- Text2
26
- } from "./Accordion-rx2gzadh.js";
25
+ Text3
26
+ } from "./Accordion-46vwm9xv.js";
27
27
  import {
28
28
  Icon2
29
29
  } from "./Accordion-x4rjd7yn.js";
30
- import {
31
- useZoraThemeRecipe,
32
- ZORA_COLORS
33
- } from "./Accordion-e1nn8m46.js";
34
30
  import {
35
31
  resolveFieldState,
36
32
  resolveIndicatorSize,
37
33
  resolveSelectionControlNextChecked,
38
34
  resolveSelectionControlColors
39
35
  } from "./Accordion-2d8xn32m.js";
36
+ import {
37
+ useZoraThemeRecipe,
38
+ ZORA_COLORS
39
+ } from "./Accordion-e1nn8m46.js";
40
40
  import {
41
41
  __toESM
42
42
  } from "./Accordion-9qvmwkxe.js";
@@ -156,7 +156,7 @@ function renderRadioContent(input) {
156
156
  hasContent ? /* @__PURE__ */ jsx(View3, {
157
157
  flex: 1,
158
158
  ml: "s",
159
- children: isRadioTextContent(input.children) ? /* @__PURE__ */ jsx(Text3, {
159
+ children: isRadioTextContent(input.children) ? /* @__PURE__ */ jsx(Text2, {
160
160
  emphasis: labelEmphasis,
161
161
  children: input.children
162
162
  }) : input.children
@@ -404,13 +404,13 @@ function RadioOptionControlContent({
404
404
  /* @__PURE__ */ jsxs2(import_react_native.View, {
405
405
  style: layout === "horizontal" ? styles.label : styles.centerLabel,
406
406
  children: [
407
- /* @__PURE__ */ jsx3(Text2, {
407
+ /* @__PURE__ */ jsx3(Text3, {
408
408
  variant: size === "l" ? "body" : "bodySmall",
409
409
  weight: "semiBold",
410
410
  align: layout === "vertical" || !option.iconSource ? "center" : "left",
411
411
  children: option.label
412
412
  }),
413
- option.description ? /* @__PURE__ */ jsx3(Text2, {
413
+ option.description ? /* @__PURE__ */ jsx3(Text3, {
414
414
  emphasis: "muted",
415
415
  variant: "bodySmall",
416
416
  align: layout === "vertical" || !option.iconSource ? "center" : "left",
@@ -562,10 +562,10 @@ function RadioGroupItem(props) {
562
562
  children: /* @__PURE__ */ jsxs3(View2, {
563
563
  gap: "xs",
564
564
  children: [
565
- /* @__PURE__ */ jsx4(Text2, {
565
+ /* @__PURE__ */ jsx4(Text3, {
566
566
  children: option.label
567
567
  }),
568
- option.description ? /* @__PURE__ */ jsx4(Text2, {
568
+ option.description ? /* @__PURE__ */ jsx4(Text3, {
569
569
  emphasis: "muted",
570
570
  variant: "caption",
571
571
  children: option.description
@@ -9,7 +9,7 @@ import {
9
9
  } from "./Accordion-7hn324r1.js";
10
10
  import {
11
11
  IconButton2
12
- } from "./Accordion-dp638q63.js";
12
+ } from "./Accordion-yms7x22j.js";
13
13
  import {
14
14
  withZoraThemeScope
15
15
  } from "./Accordion-13y3zx87.js";
@@ -18,11 +18,11 @@ import {
18
18
  } from "./Accordion-01e56hb5.js";
19
19
  import {
20
20
  PopoverMenu2
21
- } from "./Accordion-gkzhd3zk.js";
21
+ } from "./Accordion-kmv2fp6m.js";
22
22
  import {
23
23
  Heading2,
24
- Text2
25
- } from "./Accordion-rx2gzadh.js";
24
+ Text3
25
+ } from "./Accordion-46vwm9xv.js";
26
26
  import {
27
27
  useZoraTheme2
28
28
  } from "./Accordion-7zfskq1s.js";
@@ -243,7 +243,7 @@ function resolveCenter({
243
243
  if (children !== undefined)
244
244
  return children;
245
245
  if (isSelectionMode && resolvedMode.type === "selection") {
246
- return /* @__PURE__ */ jsx2(Text2, {
246
+ return /* @__PURE__ */ jsx2(Text3, {
247
247
  emphasis: "default",
248
248
  numberOfLines: 1,
249
249
  variant: "label",
@@ -263,7 +263,7 @@ function resolveCenter({
263
263
  size: "h5",
264
264
  children: title
265
265
  }) : null,
266
- subtitle != null ? /* @__PURE__ */ jsx2(Text2, {
266
+ subtitle != null ? /* @__PURE__ */ jsx2(Text3, {
267
267
  ellipsizeMode: "tail",
268
268
  emphasis: "muted",
269
269
  numberOfLines: 1,
@@ -7,13 +7,13 @@ import {
7
7
  } from "./Accordion-01e56hb5.js";
8
8
  import {
9
9
  ButtonGroup2
10
- } from "./Accordion-dp638q63.js";
10
+ } from "./Accordion-yms7x22j.js";
11
11
  import {
12
12
  Card2
13
- } from "./Accordion-fm3jxs1f.js";
13
+ } from "./Accordion-z1trs7s1.js";
14
14
  import {
15
15
  List2
16
- } from "./Accordion-w1afjp87.js";
16
+ } from "./Accordion-rnjt5z4y.js";
17
17
  import {
18
18
  useZoraTheme2
19
19
  } from "./Accordion-7zfskq1s.js";