@everfur/sdk 0.17.0 → 0.18.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 (223) hide show
  1. package/CHANGELOG.md +167 -26
  2. package/care/package.json +8 -0
  3. package/dist/{Chat.d-uETscjrL.d.ts → Chat.d-Bz4iJ7d2.d.ts} +1 -1
  4. package/dist/{Chat.d-BYY1U61e.d.cts → Chat.d-C2ddC2u7.d.cts} +1 -1
  5. package/dist/{DepthViews.d-BsZ73mzL.d.ts → DepthViews.d-C6-Kzs6H.d.ts} +1 -1
  6. package/dist/{DepthViews.d-D_Qp4glO.d.cts → DepthViews.d-Chjs8H9V.d.cts} +1 -1
  7. package/dist/{DepthViews.d-DL8MP_kA.d.cts → DepthViews.d-pFL_ZBZT.d.cts} +1 -1
  8. package/dist/{DepthViews.d-B4SE5GUD.d.ts → DepthViews.d-qXt9OMgz.d.ts} +1 -1
  9. package/dist/{RecordsPage.d-CYotk2R9.d.cts → RecordsPage.d-Cmny6Q7g.d.cts} +2 -2
  10. package/dist/{RecordsPage.d-D4gP4leq.d.ts → RecordsPage.d-sNRolVdy.d.ts} +2 -2
  11. package/dist/animations/index.d.cts +5 -5
  12. package/dist/animations/index.d.ts +5 -5
  13. package/dist/{appStateLifecycle.d-DJXdDOJY.d.cts → appStateLifecycle.d-Bt70TQog.d.cts} +7 -7
  14. package/dist/{appStateLifecycle.d-CXJzBS3c.d.ts → appStateLifecycle.d-Jdg9_PFt.d.ts} +7 -7
  15. package/dist/{attachments.d-B8kOCb6q.d.cts → attachments.d-BVp3r6Ms.d.cts} +5 -5
  16. package/dist/{attachments.d-C61URT8r.d.cts → attachments.d-CF4_n-DZ.d.cts} +2 -2
  17. package/dist/{attachments.d-BTIGzXWD.d.ts → attachments.d-DnSCMjH0.d.ts} +5 -5
  18. package/dist/{attachments.d-BgatKf7d.d.ts → attachments.d-DsUZpMad.d.ts} +2 -2
  19. package/dist/{bookingCopy.d-B-bSYgqS.d.cts → bookingCopy.d-BHqE9Ozq.d.cts} +16 -16
  20. package/dist/{bookingCopy.d-JQW2SLM-.d.ts → bookingCopy.d-Ca4AQGZ7.d.ts} +16 -16
  21. package/dist/{branding.d-Bbc6p1XY.d.cts → branding.d-BFauULV6.d.cts} +1 -1
  22. package/dist/{branding.d-y6c0UwhE.d.ts → branding.d-DpNGEdDL.d.ts} +1 -1
  23. package/dist/care/index.cjs +3 -0
  24. package/dist/care/index.d.cts +434 -0
  25. package/dist/care/index.d.ts +434 -0
  26. package/dist/care/index.js +3 -0
  27. package/dist/{casesRepository.d-CVG2EXcg.d.cts → casesRepository.d-DFwD2kiS.d.cts} +1 -1
  28. package/dist/{casesRepository.d-CHEjzT4h.d.ts → casesRepository.d-VzxEyq2N.d.ts} +1 -1
  29. package/dist/chat/index.cjs +14 -13
  30. package/dist/chat/index.d.cts +13 -13
  31. package/dist/chat/index.d.ts +13 -13
  32. package/dist/chat/index.js +14 -13
  33. package/dist/chat/lite/index.cjs +14 -13
  34. package/dist/chat/lite/index.d.cts +13 -13
  35. package/dist/chat/lite/index.d.ts +13 -13
  36. package/dist/chat/lite/index.js +14 -13
  37. package/dist/chunk-Y3Q4GW47.js +31 -0
  38. package/dist/client/index.cjs +1 -1
  39. package/dist/client/index.d.cts +10 -10
  40. package/dist/client/index.d.ts +10 -10
  41. package/dist/client/index.js +1 -1
  42. package/dist/{clinicBatch.d-DdlFy4pD.d.cts → clinicBatch.d-CLqaih2C.d.cts} +2 -2
  43. package/dist/{clinicBatch.d-oNwH_dbI.d.ts → clinicBatch.d-DXDIL1lC.d.ts} +2 -2
  44. package/dist/{config.d-Cy_hJBJG.d.cts → config.d-7bCXvOGn.d.cts} +1 -1
  45. package/dist/{config.d-DopRLD4f.d.ts → config.d-cqyvpzDb.d.ts} +1 -1
  46. package/dist/consent/index.d.cts +5 -5
  47. package/dist/consent/index.d.ts +5 -5
  48. package/dist/{context.d-C42juGn6.d.cts → context.d-BeRanUXQ.d.cts} +7 -7
  49. package/dist/{context.d-Ban-Hhqu.d.ts → context.d-DAnmDYGr.d.ts} +7 -7
  50. package/dist/{copy.d-BTS5l6Ri.d.cts → copy.d-BPqs8swm.d.cts} +2 -2
  51. package/dist/{copy.d-qdbygul9.d.ts → copy.d-CxFzeuvo.d.ts} +2 -2
  52. package/dist/core/index.cjs +1 -1
  53. package/dist/core/index.d.cts +17 -17
  54. package/dist/core/index.d.ts +17 -17
  55. package/dist/core/index.js +1 -1
  56. package/dist/{depth.d-BGkHm2Se.d.ts → depth.d-C6XbnFig.d.ts} +2 -2
  57. package/dist/{depth.d-BfVrhq9o.d.cts → depth.d-qHdXHDd-.d.cts} +2 -2
  58. package/dist/{entitlementRepository.d-npT7L_7_.d.cts → entitlementRepository.d-C6uTDswj.d.cts} +4 -4
  59. package/dist/{entitlementRepository.d-CjwqCyhS.d.ts → entitlementRepository.d-D_cc7g4l.d.ts} +4 -4
  60. package/dist/{focus.d-S0nq_k1A.d.ts → focus.d-DiWvQR2j.d.ts} +193 -21
  61. package/dist/{focus.d-DS7Ze1Pp.d.cts → focus.d-HSkMHd-i.d.cts} +193 -21
  62. package/dist/health-plan/index.cjs +261 -176
  63. package/dist/health-plan/index.d.cts +627 -19
  64. package/dist/health-plan/index.d.ts +627 -19
  65. package/dist/health-plan/index.js +261 -176
  66. package/dist/{idempotency.d-COIrwuCb.d.ts → idempotency.d-CF5AvlYp.d.ts} +18 -639
  67. package/dist/{idempotency.d-gfiN4Qnp.d.cts → idempotency.d-DrO2zEZO.d.cts} +18 -639
  68. package/dist/{identity.d-D76vXtkJ.d.cts → identity.d-84x0dV7-.d.cts} +1 -1
  69. package/dist/{identity.d-B3mFvvRq.d.ts → identity.d-BXztMVYM.d.ts} +1 -1
  70. package/dist/index.cjs +12 -11
  71. package/dist/index.d.cts +21 -21
  72. package/dist/index.d.ts +21 -21
  73. package/dist/index.js +12 -11
  74. package/dist/{introEvents.d-3FLEemX3.d.cts → introEvents.d-Cwv72ER-.d.cts} +11 -11
  75. package/dist/{introEvents.d-BYnr37bd.d.ts → introEvents.d-DYU3znJs.d.ts} +11 -11
  76. package/dist/notifications/index.d.cts +4 -4
  77. package/dist/notifications/index.d.ts +4 -4
  78. package/dist/omsErrors.d-VF5tnr20.d.cts +633 -0
  79. package/dist/omsErrors.d-VF5tnr20.d.ts +633 -0
  80. package/dist/omsFields.d-BHntKIAH.d.cts +153 -0
  81. package/dist/omsFields.d-Cvfw8wWU.d.ts +153 -0
  82. package/dist/{optInView.d-DXRUGDiD.d.cts → optInView.d-4Hl4HbQh.d.cts} +3 -3
  83. package/dist/{optInView.d-BqFMcum4.d.ts → optInView.d-pq8tUTf6.d.ts} +3 -3
  84. package/dist/{parse.d-CY22hFxb.d.ts → parse.d-BJhhYfkv.d.ts} +1 -1
  85. package/dist/{parse.d-rvA_aRSO.d.cts → parse.d-D0v06qxx.d.cts} +1 -1
  86. package/dist/{pets.d-Cicz-aIO.d.ts → pets.d-1_CHpfgB.d.ts} +1 -1
  87. package/dist/{pets.d-RoHTZsaV.d.cts → pets.d-C4n-MDC4.d.cts} +1 -1
  88. package/dist/{petsRepository.d-DtAZf_Ja.d.ts → petsRepository.d-BuomdFjZ.d.ts} +1 -1
  89. package/dist/{petsRepository.d-BxMyt6Aj.d.cts → petsRepository.d-Dd95xh-M.d.cts} +1 -1
  90. package/dist/{ports.d-D7cjFUoL.d.cts → ports.d-Bf3tp7Pn.d.cts} +4 -4
  91. package/dist/{ports.d-DrgKa73F.d.ts → ports.d-ChZHFd-q.d.ts} +4 -4
  92. package/dist/{presentation.d-vy8kTGfR.d.cts → presentation.d-Bs8xQ4gD.d.cts} +4 -4
  93. package/dist/{presentation.d-vy8kTGfR.d.ts → presentation.d-Bs8xQ4gD.d.ts} +4 -4
  94. package/dist/records/depth/index.d.cts +9 -9
  95. package/dist/records/depth/index.d.ts +9 -9
  96. package/dist/records/index.cjs +11 -10
  97. package/dist/records/index.d.cts +24 -23
  98. package/dist/records/index.d.ts +24 -23
  99. package/dist/records/index.js +11 -10
  100. package/dist/{requestFunnel.d-BdQf53zs.d.cts → requestFunnel.d-CWI2pD3V.d.cts} +2 -2
  101. package/dist/{requestFunnel.d-B5y7Py8Z.d.ts → requestFunnel.d-DcQIAs45.d.ts} +2 -2
  102. package/dist/{resolve.d-CoQWUy1Y.d.cts → resolve.d-BTC3b6FW.d.cts} +1 -1
  103. package/dist/{resolve.d-CoQWUy1Y.d.ts → resolve.d-BTC3b6FW.d.ts} +1 -1
  104. package/dist/{runtimeTypes.d-r4Q5vASZ.d.cts → runtimeTypes.d-CIOVzjEK.d.cts} +6 -6
  105. package/dist/{runtimeTypes.d-D5EDgS3Y.d.ts → runtimeTypes.d-rbuONrIv.d.ts} +6 -6
  106. package/dist/{screenProps.d-v4a4kzxA.d.cts → screenProps.d-CFZe27oI.d.cts} +1 -1
  107. package/dist/{screenProps.d-KLCrP43b.d.ts → screenProps.d-yUA4k6yK.d.ts} +1 -1
  108. package/dist/server/events/index.cjs +2 -2
  109. package/dist/server/events/index.d.cts +49 -6
  110. package/dist/server/events/index.d.ts +49 -6
  111. package/dist/server/events/index.js +2 -2
  112. package/dist/server/index.cjs +1 -1
  113. package/dist/server/index.d.cts +3 -3
  114. package/dist/server/index.d.ts +3 -3
  115. package/dist/server/index.js +1 -1
  116. package/dist/shop/index.cjs +6 -6
  117. package/dist/shop/index.d.cts +9 -8
  118. package/dist/shop/index.d.ts +9 -8
  119. package/dist/shop/index.js +6 -6
  120. package/dist/shop/orders-v2/index.d.cts +2 -2
  121. package/dist/shop/orders-v2/index.d.ts +2 -2
  122. package/dist/tabs/index.cjs +4 -4
  123. package/dist/tabs/index.d.cts +14 -14
  124. package/dist/tabs/index.d.ts +14 -14
  125. package/dist/tabs/index.js +4 -4
  126. package/dist/{tabsModel.d-B7QMug1u.d.ts → tabsModel.d-D9GWPFrL.d.cts} +1 -1
  127. package/dist/{tabsModel.d-B7QMug1u.d.cts → tabsModel.d-D9GWPFrL.d.ts} +1 -1
  128. package/dist/televet/booking/index.d.cts +6 -6
  129. package/dist/televet/booking/index.d.ts +6 -6
  130. package/dist/testing/index.cjs +1 -1
  131. package/dist/testing/index.d.cts +85 -2
  132. package/dist/testing/index.d.ts +85 -2
  133. package/dist/testing/index.js +1 -1
  134. package/dist/testing/rn/index.d.cts +10 -10
  135. package/dist/testing/rn/index.d.ts +10 -10
  136. package/dist/testing/web/index.d.cts +10 -10
  137. package/dist/testing/web/index.d.ts +10 -10
  138. package/dist/texting/index.d.cts +6 -6
  139. package/dist/texting/index.d.ts +6 -6
  140. package/dist/{threadOptions.d-EFJaNBP1.d.cts → threadOptions.d-CRbFXnlq.d.cts} +66 -11
  141. package/dist/{threadOptions.d-GPJPprkn.d.cts → threadOptions.d-CW51PyVd.d.cts} +28 -1
  142. package/dist/{threadOptions.d-GPJPprkn.d.ts → threadOptions.d-CW51PyVd.d.ts} +28 -1
  143. package/dist/{threadOptions.d-B0folrKm.d.cts → threadOptions.d-U5YBUKM-.d.ts} +2 -2
  144. package/dist/{threadOptions.d-Crh_LiDe.d.ts → threadOptions.d-aK8FkszA.d.ts} +66 -11
  145. package/dist/{threadOptions.d-DTsJFkL-.d.ts → threadOptions.d-bEAFkIsC.d.cts} +2 -2
  146. package/dist/{timelineRows.d-DpSis9HR.d.ts → timelineRows.d-BbCLvjy1.d.ts} +1 -1
  147. package/dist/{timelineRows.d-6-Cw8xGd.d.cts → timelineRows.d-BvA_BoOe.d.cts} +1 -1
  148. package/dist/{typeStyle.d-B3Kdtjie.d.ts → typeStyle.d-B9Jo5mDX.d.ts} +1 -1
  149. package/dist/{typeStyle.d-DmlwyJq-.d.cts → typeStyle.d-Ckdh_S-t.d.cts} +1 -1
  150. package/dist/types.d-d3RdaeAA.d.cts +317 -0
  151. package/dist/types.d-d3RdaeAA.d.ts +317 -0
  152. package/dist/ui/index.cjs +68 -0
  153. package/dist/ui/index.d.cts +73 -0
  154. package/dist/ui/index.d.ts +73 -0
  155. package/dist/ui/index.js +68 -0
  156. package/dist/useHealthPlanSubscription.d-BN40CVK6.d.cts +756 -0
  157. package/dist/useHealthPlanSubscription.d-BYehTI7R.d.ts +756 -0
  158. package/dist/{usePresentation.d-CRG3Gaaq.d.ts → usePresentation.d-BfcyAEFt.d.ts} +66 -7
  159. package/dist/{usePresentation.d-C8rqY56C.d.cts → usePresentation.d-C39kKhoO.d.cts} +66 -7
  160. package/dist/{useRecordsDepth.d-DlRda5jp.d.ts → useRecordsDepth.d-B2ewVbRm.d.ts} +1 -1
  161. package/dist/{useRecordsDepth.d-BYk7m7gF.d.cts → useRecordsDepth.d-CKXAAHXI.d.cts} +1 -1
  162. package/dist/{view.d-DuIXHr08.d.ts → view.d-BnUDSQXz.d.ts} +3 -3
  163. package/dist/{view.d-B31M8rCG.d.cts → view.d-CbcJKNJj.d.cts} +1 -1
  164. package/dist/{view.d-B31M8rCG.d.ts → view.d-CbcJKNJj.d.ts} +1 -1
  165. package/dist/{view.d-CLpEHKOp.d.cts → view.d-DTNPjiZ1.d.cts} +3 -3
  166. package/dist/web/consent/index.d.cts +5 -5
  167. package/dist/web/consent/index.d.ts +5 -5
  168. package/dist/web/health-plan/index.cjs +335 -180
  169. package/dist/web/health-plan/index.d.cts +576 -19
  170. package/dist/web/health-plan/index.d.ts +576 -19
  171. package/dist/web/health-plan/index.js +297 -162
  172. package/dist/web/health-plan/styles.css +233 -0
  173. package/dist/web/health-plan/today/index.cjs +7 -0
  174. package/dist/web/health-plan/today/index.d.cts +15 -0
  175. package/dist/web/health-plan/today/index.d.ts +15 -0
  176. package/dist/web/health-plan/today/index.js +7 -0
  177. package/dist/web/index.cjs +36 -33
  178. package/dist/web/index.d.cts +60 -37
  179. package/dist/web/index.d.ts +60 -37
  180. package/dist/web/index.js +36 -33
  181. package/dist/web/intro/index.cjs +2 -2
  182. package/dist/web/intro/index.d.cts +8 -8
  183. package/dist/web/intro/index.d.ts +8 -8
  184. package/dist/web/intro/index.js +2 -2
  185. package/dist/web/notifications/index.d.cts +3 -3
  186. package/dist/web/notifications/index.d.ts +3 -3
  187. package/dist/web/records/depth/index.d.cts +9 -9
  188. package/dist/web/records/depth/index.d.ts +9 -9
  189. package/dist/web/records/index.cjs +1 -1
  190. package/dist/web/records/index.d.cts +11 -11
  191. package/dist/web/records/index.d.ts +11 -11
  192. package/dist/web/records/index.js +1 -1
  193. package/dist/web/records-sheet/index.cjs +13 -12
  194. package/dist/web/records-sheet/index.d.cts +13 -10
  195. package/dist/web/records-sheet/index.d.ts +13 -10
  196. package/dist/web/records-sheet/index.js +13 -12
  197. package/dist/web/shop/index.cjs +6 -6
  198. package/dist/web/shop/index.d.cts +8 -7
  199. package/dist/web/shop/index.d.ts +8 -7
  200. package/dist/web/shop/index.js +6 -6
  201. package/dist/web/shop/orders-v2/index.d.cts +1 -1
  202. package/dist/web/shop/orders-v2/index.d.ts +1 -1
  203. package/dist/web/televet/booking/index.cjs +1 -1
  204. package/dist/web/televet/booking/index.d.cts +6 -6
  205. package/dist/web/televet/booking/index.d.ts +6 -6
  206. package/dist/web/televet/booking/index.js +1 -1
  207. package/dist/web/texting/index.cjs +1 -1
  208. package/dist/web/texting/index.d.cts +6 -6
  209. package/dist/web/texting/index.d.ts +6 -6
  210. package/dist/web/texting/index.js +1 -1
  211. package/dist/web/ui/index.cjs +70 -0
  212. package/dist/web/ui/index.d.cts +78 -0
  213. package/dist/web/ui/index.d.ts +78 -0
  214. package/dist/web/ui/index.js +48 -0
  215. package/dist/web/ui/styles.css +244 -0
  216. package/package.json +71 -5
  217. package/ui/package.json +8 -0
  218. package/web/health-plan/today/native-blocked.cjs +12 -0
  219. package/web/health-plan/today/package.json +8 -0
  220. package/web/ui/native-blocked.cjs +12 -0
  221. package/web/ui/package.json +8 -0
  222. package/dist/useHealthPlanSubscription.d-DD30EkUR.d.ts +0 -205
  223. package/dist/useHealthPlanSubscription.d-DWrzUXf4.d.cts +0 -205
@@ -0,0 +1,317 @@
1
+ /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
+ /**
3
+ * The shared icon names: the symbols of the design's one icon sprite (app-icons.svg) that this package carries.
4
+ *
5
+ * @public
6
+ */
7
+ type UiIconName = 'alert' | 'arrow-left' | 'bag' | 'bell' | 'bowl' | 'box' | 'calendar' | 'camera' | 'check' | 'chevron' | 'clock' | 'download' | 'edit' | 'file' | 'flask' | 'folder' | 'heart' | 'help' | 'house' | 'image' | 'info' | 'leaf' | 'lock' | 'mail' | 'message' | 'minus' | 'more' | 'paw' | 'phone' | 'pill' | 'pin' | 'plus' | 'search' | 'send' | 'shield' | 'sparkle' | 'syringe' | 'upload' | 'user' | 'video' | 'x';
8
+ /**
9
+ * Props every shared component takes.
10
+ *
11
+ * Test ids of a block's items and parts follow one rule: an item (a row, a step, an action, a shot) takes its own
12
+ * `testID` when it has one, else `${testID}-${key}` from the block's `testID` and the item's key (a row without a key
13
+ * uses its index). Named parts (a cart line's price, a tip's foot) are `${testID}-<part>`. Without a block `testID`,
14
+ * only the items' own ids are set.
15
+ *
16
+ * @public
17
+ */
18
+ interface UiBaseProps {
19
+ /** React Native `testID`; `data-testid` on the web. */
20
+ readonly testID?: string | undefined;
21
+ }
22
+ /**
23
+ * An image source: a URL, or on React Native a bundled asset (`require('./tip.webp')`, a number) or an
24
+ * `{ uri }` source. The web draws a URL or `{ uri }`; a bundled number draws nothing there (pass the bundler's URL).
25
+ *
26
+ * @public
27
+ */
28
+ type UiImageSource = string | number | {
29
+ readonly uri: string;
30
+ readonly width?: number | undefined;
31
+ readonly height?: number | undefined;
32
+ };
33
+ /** A pressable part of a block: its press, what a screen reader calls it, its test id. @public */
34
+ interface UiPress {
35
+ readonly onPress: () => void;
36
+ readonly accessibilityLabel?: string | undefined;
37
+ readonly testID?: string | undefined;
38
+ }
39
+ /** The pill tones (`.pill--*`; `high` a high reading, `allergy` with its dot). @public */
40
+ type UiPillTone = 'rx' | 'soon' | 'overdue' | 'clear' | 'stable' | 'later' | 'plain' | 'new' | 'pink' | 'watch' | 'high' | 'allergy';
41
+ /**
42
+ * What a thumbnail draws without an image: its icon, the frame's tint and the icon's colour.
43
+ *
44
+ * @public
45
+ */
46
+ interface UiThumbnailFallback {
47
+ /** The icon without an image. Default `box`. */
48
+ readonly icon?: UiIconName | undefined;
49
+ /** The frame's fill without an image. Default the size's own frame. */
50
+ readonly tint?: string | undefined;
51
+ /** The icon's colour. Default the theme's thumbnail icon colour. */
52
+ readonly iconColor?: string | undefined;
53
+ }
54
+
55
+ /** One term and value row of a {@link UiPriceSummaryProps}. @public */
56
+ interface UiSummaryRow {
57
+ readonly key?: string | undefined;
58
+ readonly term: string;
59
+ readonly value: string;
60
+ /** This row's test id; default `${testID}-${key}` (see {@link UiBaseProps}). */
61
+ readonly testID?: string | undefined;
62
+ }
63
+ /** A packshot of an order, a product or a line. @public */
64
+ interface UiShot extends UiThumbnailFallback {
65
+ readonly key: string;
66
+ readonly src?: string | null | undefined;
67
+ readonly alt?: string | undefined;
68
+ /** The shot opens its product (`.ob-order__shots a`); `alt` names the press. Not when the whole row is one button. */
69
+ readonly onPress?: (() => void) | undefined;
70
+ /** This shot's test id; default `${testID}-shot-${key}`. */
71
+ readonly testID?: string | undefined;
72
+ }
73
+ /**
74
+ * Where a shot's photo sits on screen, for a host animation that starts from it (an add to cart that flies the photo
75
+ * to the cart). Window coordinates, the photo's box inside its frame's padding.
76
+ *
77
+ * @public
78
+ */
79
+ interface UiShotBox {
80
+ readonly x: number;
81
+ readonly y: number;
82
+ readonly width: number;
83
+ readonly height: number;
84
+ }
85
+ /** Measures a shot's photo now (see {@link UiShotBox}); null when the shot is not on screen. @public */
86
+ type UiShotMeasure = () => Promise<UiShotBox | null>;
87
+ /** An action under an order (`.ob-btn`; `go` is the bright one). @public */
88
+ interface UiOrderAction {
89
+ readonly key: string;
90
+ readonly label: string;
91
+ readonly onPress: () => void;
92
+ /**
93
+ * Default `plain`: the past order's shelf grey (`.ob-order .ob-btn`, the "In the cart" and Receipt buttons). `go`
94
+ * is the bright one.
95
+ */
96
+ readonly tone?: 'go' | 'plain' | undefined;
97
+ /** An icon before the label (`.ob-btn .ico`: the check of "In the cart"). */
98
+ readonly icon?: UiIconName | undefined;
99
+ readonly busy?: boolean | undefined;
100
+ readonly disabled?: boolean | undefined;
101
+ /** This action's test id; default `${testID}-${key}`. */
102
+ readonly testID?: string | undefined;
103
+ }
104
+ /** An order (`.ob-order`): its day or name, a line, the total, its packshots, actions. @public */
105
+ interface UiOrderRowProps extends UiBaseProps {
106
+ readonly title: string;
107
+ readonly meta?: string | undefined;
108
+ readonly total?: string | undefined;
109
+ /** The order's number. The order row's design does not draw it; accepted so an order's data passes as it is. */
110
+ readonly number?: string | undefined;
111
+ /** The order's status. The order row's design does not draw it; accepted so an order's data passes as it is. */
112
+ readonly status?: {
113
+ readonly label: string;
114
+ readonly tone?: UiPillTone | undefined;
115
+ } | undefined;
116
+ readonly shots?: readonly UiShot[] | undefined;
117
+ readonly actions?: readonly UiOrderAction[] | undefined;
118
+ /** The row opens the order (the whole row is one button). */
119
+ readonly onPress?: (() => void) | undefined;
120
+ /** What a screen reader says for the pressable row. */
121
+ readonly accessibilityLabel?: string | undefined;
122
+ /** A failed action's line, announced (`role="alert"`). */
123
+ readonly error?: string | undefined;
124
+ readonly loading?: boolean | undefined;
125
+ readonly loadingLabel?: string | undefined;
126
+ /**
127
+ * Lay the actions in the design's grid columns (`.ob-order .ob-acts`, 2), so a lone action keeps its column's width.
128
+ * Default false: the actions share the row.
129
+ */
130
+ readonly actionGrid?: boolean | undefined;
131
+ /** Called with each shot's measure once it is drawn (and null when it goes), keyed by the shot's key. */
132
+ readonly onShotMeasure?: ((key: string, measure: UiShotMeasure | null) => void) | undefined;
133
+ }
134
+ /** A product (`.sx-card` in a shop row, or as a row): its packshot, a why line, name, meta, price, add. @public */
135
+ interface UiProductTileProps extends UiBaseProps {
136
+ readonly name: string;
137
+ readonly image?: string | null | undefined;
138
+ readonly imageAlt?: string | undefined;
139
+ /** A small mono line above the name (`.sx-why`). */
140
+ readonly kicker?: string | undefined;
141
+ readonly meta?: string | undefined;
142
+ readonly price?: string | undefined;
143
+ /** The add button (`btn--outline btn--row`). */
144
+ readonly action?: {
145
+ readonly label: string;
146
+ readonly onPress: () => void;
147
+ readonly busy?: boolean | undefined;
148
+ readonly disabled?: boolean | undefined;
149
+ } | undefined;
150
+ /** The tile opens the product. */
151
+ readonly onPress?: (() => void) | undefined;
152
+ /**
153
+ * Default `tile` (the shop's row card, `.sx-card`); `row` lays it out as a row; `card` is
154
+ * care-shop-b's grid card (`.sb-card`: the price over the name, `tag` and `stepper` over the photo).
155
+ */
156
+ readonly layout?: 'tile' | 'row' | 'card' | undefined;
157
+ readonly loading?: boolean | undefined;
158
+ readonly loadingLabel?: string | undefined;
159
+ /** The price before a discount, struck through beside the price (`card`). */
160
+ readonly wasPrice?: string | undefined;
161
+ /** `auto` paints the meta line as the auto-ship line (`.sb-card__meta--auto`, `card`). */
162
+ readonly metaTone?: 'auto' | undefined;
163
+ /** A tag over the photo's corner (`.sb-tag`, `card`): the need it serves, its icon in the need's colour. */
164
+ readonly tag?: {
165
+ readonly label: string;
166
+ readonly icon?: UiIconName | undefined;
167
+ readonly color?: string | undefined;
168
+ } | undefined;
169
+ /**
170
+ * The stepper over the photo (`.sb-step`, `card`): only its + until the value is above 0, then fewer, the count and
171
+ * more. It replaces `action` on a card.
172
+ */
173
+ readonly stepper?: UiCartQuantity | undefined;
174
+ /** What the photo draws without one. */
175
+ readonly fallback?: UiThumbnailFallback | undefined;
176
+ }
177
+ /** A cart line's quantity: the stepper's value, bounds, words and change. @public */
178
+ interface UiCartQuantity {
179
+ readonly value: number;
180
+ readonly min?: number | undefined;
181
+ readonly max?: number | undefined;
182
+ readonly label: string;
183
+ readonly fewerLabel: string;
184
+ readonly moreLabel: string;
185
+ readonly onChange: (value: number) => void;
186
+ }
187
+ /**
188
+ * A cart line (`.items li`): packshot, name and badge, meta, price, quantity, its text actions.
189
+ * Part test ids: `${testID}-price`, `${testID}-image`.
190
+ *
191
+ * @public
192
+ */
193
+ interface UiCartLineProps extends UiBaseProps {
194
+ readonly name: string;
195
+ readonly image?: string | null | undefined;
196
+ readonly imageAlt?: string | undefined;
197
+ /** A pill beside the name (`Rx`). */
198
+ readonly badge?: {
199
+ readonly label: string;
200
+ readonly tone?: UiPillTone | undefined;
201
+ } | undefined;
202
+ readonly meta?: string | undefined;
203
+ readonly price?: string | undefined;
204
+ /** The price before a discount, struck through. */
205
+ readonly wasPrice?: string | undefined;
206
+ readonly quantity?: UiCartQuantity | undefined;
207
+ readonly removeLabel?: string | undefined;
208
+ readonly onRemove?: (() => void) | undefined;
209
+ /**
210
+ * The line's text actions (`.items__acts`, for example a plan swap and Remove), in order. When given they replace
211
+ * `removeLabel`/`onRemove`.
212
+ */
213
+ readonly actions?: readonly UiLineAction[] | undefined;
214
+ /** What the packshot draws without a photo. */
215
+ readonly fallback?: UiThumbnailFallback | undefined;
216
+ /** A failed change's line, announced. */
217
+ readonly error?: string | undefined;
218
+ readonly loading?: boolean | undefined;
219
+ readonly loadingLabel?: string | undefined;
220
+ }
221
+ /** A text action of a cart line (`.items__acts button`). @public */
222
+ interface UiLineAction {
223
+ readonly key: string;
224
+ readonly label: string;
225
+ readonly onPress: () => void;
226
+ readonly disabled?: boolean | undefined;
227
+ /** What a screen reader says, when it should differ from the label. */
228
+ readonly accessibilityLabel?: string | undefined;
229
+ /** This action's test id; default `${testID}-${key}`. */
230
+ readonly testID?: string | undefined;
231
+ }
232
+ /** One row of a {@link UiPriceSummaryProps}; `off` paints a discount. @public */
233
+ interface UiPriceRow extends UiSummaryRow {
234
+ readonly tone?: 'off' | undefined;
235
+ }
236
+ /** A price summary (`.sum--total`): rows, discounts, the total. @public */
237
+ interface UiPriceSummaryProps extends UiBaseProps {
238
+ readonly rows: readonly UiPriceRow[];
239
+ /** The last, large row. */
240
+ readonly total?: UiSummaryRow | undefined;
241
+ readonly loading?: boolean | undefined;
242
+ readonly loadingLabel?: string | undefined;
243
+ }
244
+ /** One finding of a {@link UiPlanNeedCardProps}: a bold lead, then the rest. @public */
245
+ interface UiNeedSignal {
246
+ readonly key: string;
247
+ readonly lead?: string | undefined;
248
+ readonly text: string;
249
+ /** Draw the risk dot before it. Default true (`.hp-need__s .dot`). */
250
+ readonly dot?: boolean | undefined;
251
+ }
252
+ /**
253
+ * A plan need's score box (`.hp-odds`): what is scored and a tag, then the score before (struck), an arrow, the score
254
+ * now with its scale, and since when. Every word is the caller's.
255
+ *
256
+ * @public
257
+ */
258
+ interface UiNeedScore {
259
+ /** What is scored (`Her itch score, out of 10, ...`). */
260
+ readonly label: string;
261
+ /** A small tag after it (`.hp-tag`, `Sample`). */
262
+ readonly tag?: string | undefined;
263
+ /** The score before, struck through (`7/10`). */
264
+ readonly was?: string | undefined;
265
+ /** The score now (`3`). */
266
+ readonly now: string;
267
+ /** Its scale after it, smaller (`/10`). */
268
+ readonly of?: string | undefined;
269
+ /** Since when (`since Apoquel`). */
270
+ readonly since?: string | undefined;
271
+ /** What a screen reader says for the numbers (`went from 7 out of 10 to 3 out of 10 since Apoquel`). */
272
+ readonly accessibilityLabel?: string | undefined;
273
+ }
274
+ /** A Health Plan need (`.hp-need`): the focus, where it comes from, a title, the findings with a risk dot. @public */
275
+ interface UiPlanNeedCardProps extends UiBaseProps {
276
+ readonly kicker: string;
277
+ /** Where it comes from (`.hp-src`). */
278
+ readonly source?: string | undefined;
279
+ readonly title?: string | undefined;
280
+ readonly signals: readonly UiNeedSignal[];
281
+ /** The score box under the findings. */
282
+ readonly score?: UiNeedScore | undefined;
283
+ readonly loading?: boolean | undefined;
284
+ readonly loadingLabel?: string | undefined;
285
+ }
286
+ /** A tip card's fill (`.hp-tip--y`, `--c`, `--g`, `--r`). @public */
287
+ type UiTipTone = 'y' | 'c' | 'g' | 'r';
288
+ /** A Health Plan tip (`.hp-tip`): its number, a photo or an icon, the title, a line, where it comes from. @public */
289
+ interface UiTipCardProps extends UiBaseProps {
290
+ readonly number: string;
291
+ readonly title: string;
292
+ readonly text?: string | undefined;
293
+ /** A mono line at the foot. */
294
+ readonly foot?: string | undefined;
295
+ /** Draw the arrow after the foot (`.hp-tip em .ico`). Default false; `footPress` always draws it. */
296
+ readonly footArrow?: boolean | undefined;
297
+ /** The foot is its own link (where the tip comes from: her records, her medicines), drawn with the arrow. */
298
+ readonly footPress?: UiPress | undefined;
299
+ /** Default `y`. */
300
+ readonly tone?: UiTipTone | undefined;
301
+ /** A photo: a URL, or a bundled asset on React Native (see {@link UiImageSource}). */
302
+ readonly image?: UiImageSource | null | undefined;
303
+ /** An icon. The tip's design (the number on the photo) does not draw it; accepted so a tip's data passes as it is. */
304
+ readonly icon?: UiIconName | undefined;
305
+ readonly onPress?: (() => void) | undefined;
306
+ /**
307
+ * What `onPress` covers: `title` (the default) or the whole `card` (the `.hp-link` cover button, a soft press that
308
+ * settles the card). With `card`, `accessibilityLabel` names the press.
309
+ */
310
+ readonly pressTarget?: 'title' | 'card' | undefined;
311
+ /** What a screen reader says for the card press (`pressTarget: 'card'`). Default the title. */
312
+ readonly accessibilityLabel?: string | undefined;
313
+ readonly loading?: boolean | undefined;
314
+ readonly loadingLabel?: string | undefined;
315
+ }
316
+
317
+ export type { UiCartLineProps as U, UiOrderRowProps as a, UiPlanNeedCardProps as b, UiPriceSummaryProps as c, UiProductTileProps as d, UiTipCardProps as e, UiBaseProps as f, UiCartQuantity as g, UiIconName as h, UiImageSource as i, UiLineAction as j, UiNeedScore as k, UiNeedSignal as l, UiOrderAction as m, UiPillTone as n, UiPress as o, UiPriceRow as p, UiShot as q, UiShotBox as r, UiShotMeasure as s, UiSummaryRow as t, UiThumbnailFallback as u, UiTipTone as v };
@@ -0,0 +1,317 @@
1
+ /*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
2
+ /**
3
+ * The shared icon names: the symbols of the design's one icon sprite (app-icons.svg) that this package carries.
4
+ *
5
+ * @public
6
+ */
7
+ type UiIconName = 'alert' | 'arrow-left' | 'bag' | 'bell' | 'bowl' | 'box' | 'calendar' | 'camera' | 'check' | 'chevron' | 'clock' | 'download' | 'edit' | 'file' | 'flask' | 'folder' | 'heart' | 'help' | 'house' | 'image' | 'info' | 'leaf' | 'lock' | 'mail' | 'message' | 'minus' | 'more' | 'paw' | 'phone' | 'pill' | 'pin' | 'plus' | 'search' | 'send' | 'shield' | 'sparkle' | 'syringe' | 'upload' | 'user' | 'video' | 'x';
8
+ /**
9
+ * Props every shared component takes.
10
+ *
11
+ * Test ids of a block's items and parts follow one rule: an item (a row, a step, an action, a shot) takes its own
12
+ * `testID` when it has one, else `${testID}-${key}` from the block's `testID` and the item's key (a row without a key
13
+ * uses its index). Named parts (a cart line's price, a tip's foot) are `${testID}-<part>`. Without a block `testID`,
14
+ * only the items' own ids are set.
15
+ *
16
+ * @public
17
+ */
18
+ interface UiBaseProps {
19
+ /** React Native `testID`; `data-testid` on the web. */
20
+ readonly testID?: string | undefined;
21
+ }
22
+ /**
23
+ * An image source: a URL, or on React Native a bundled asset (`require('./tip.webp')`, a number) or an
24
+ * `{ uri }` source. The web draws a URL or `{ uri }`; a bundled number draws nothing there (pass the bundler's URL).
25
+ *
26
+ * @public
27
+ */
28
+ type UiImageSource = string | number | {
29
+ readonly uri: string;
30
+ readonly width?: number | undefined;
31
+ readonly height?: number | undefined;
32
+ };
33
+ /** A pressable part of a block: its press, what a screen reader calls it, its test id. @public */
34
+ interface UiPress {
35
+ readonly onPress: () => void;
36
+ readonly accessibilityLabel?: string | undefined;
37
+ readonly testID?: string | undefined;
38
+ }
39
+ /** The pill tones (`.pill--*`; `high` a high reading, `allergy` with its dot). @public */
40
+ type UiPillTone = 'rx' | 'soon' | 'overdue' | 'clear' | 'stable' | 'later' | 'plain' | 'new' | 'pink' | 'watch' | 'high' | 'allergy';
41
+ /**
42
+ * What a thumbnail draws without an image: its icon, the frame's tint and the icon's colour.
43
+ *
44
+ * @public
45
+ */
46
+ interface UiThumbnailFallback {
47
+ /** The icon without an image. Default `box`. */
48
+ readonly icon?: UiIconName | undefined;
49
+ /** The frame's fill without an image. Default the size's own frame. */
50
+ readonly tint?: string | undefined;
51
+ /** The icon's colour. Default the theme's thumbnail icon colour. */
52
+ readonly iconColor?: string | undefined;
53
+ }
54
+
55
+ /** One term and value row of a {@link UiPriceSummaryProps}. @public */
56
+ interface UiSummaryRow {
57
+ readonly key?: string | undefined;
58
+ readonly term: string;
59
+ readonly value: string;
60
+ /** This row's test id; default `${testID}-${key}` (see {@link UiBaseProps}). */
61
+ readonly testID?: string | undefined;
62
+ }
63
+ /** A packshot of an order, a product or a line. @public */
64
+ interface UiShot extends UiThumbnailFallback {
65
+ readonly key: string;
66
+ readonly src?: string | null | undefined;
67
+ readonly alt?: string | undefined;
68
+ /** The shot opens its product (`.ob-order__shots a`); `alt` names the press. Not when the whole row is one button. */
69
+ readonly onPress?: (() => void) | undefined;
70
+ /** This shot's test id; default `${testID}-shot-${key}`. */
71
+ readonly testID?: string | undefined;
72
+ }
73
+ /**
74
+ * Where a shot's photo sits on screen, for a host animation that starts from it (an add to cart that flies the photo
75
+ * to the cart). Window coordinates, the photo's box inside its frame's padding.
76
+ *
77
+ * @public
78
+ */
79
+ interface UiShotBox {
80
+ readonly x: number;
81
+ readonly y: number;
82
+ readonly width: number;
83
+ readonly height: number;
84
+ }
85
+ /** Measures a shot's photo now (see {@link UiShotBox}); null when the shot is not on screen. @public */
86
+ type UiShotMeasure = () => Promise<UiShotBox | null>;
87
+ /** An action under an order (`.ob-btn`; `go` is the bright one). @public */
88
+ interface UiOrderAction {
89
+ readonly key: string;
90
+ readonly label: string;
91
+ readonly onPress: () => void;
92
+ /**
93
+ * Default `plain`: the past order's shelf grey (`.ob-order .ob-btn`, the "In the cart" and Receipt buttons). `go`
94
+ * is the bright one.
95
+ */
96
+ readonly tone?: 'go' | 'plain' | undefined;
97
+ /** An icon before the label (`.ob-btn .ico`: the check of "In the cart"). */
98
+ readonly icon?: UiIconName | undefined;
99
+ readonly busy?: boolean | undefined;
100
+ readonly disabled?: boolean | undefined;
101
+ /** This action's test id; default `${testID}-${key}`. */
102
+ readonly testID?: string | undefined;
103
+ }
104
+ /** An order (`.ob-order`): its day or name, a line, the total, its packshots, actions. @public */
105
+ interface UiOrderRowProps extends UiBaseProps {
106
+ readonly title: string;
107
+ readonly meta?: string | undefined;
108
+ readonly total?: string | undefined;
109
+ /** The order's number. The order row's design does not draw it; accepted so an order's data passes as it is. */
110
+ readonly number?: string | undefined;
111
+ /** The order's status. The order row's design does not draw it; accepted so an order's data passes as it is. */
112
+ readonly status?: {
113
+ readonly label: string;
114
+ readonly tone?: UiPillTone | undefined;
115
+ } | undefined;
116
+ readonly shots?: readonly UiShot[] | undefined;
117
+ readonly actions?: readonly UiOrderAction[] | undefined;
118
+ /** The row opens the order (the whole row is one button). */
119
+ readonly onPress?: (() => void) | undefined;
120
+ /** What a screen reader says for the pressable row. */
121
+ readonly accessibilityLabel?: string | undefined;
122
+ /** A failed action's line, announced (`role="alert"`). */
123
+ readonly error?: string | undefined;
124
+ readonly loading?: boolean | undefined;
125
+ readonly loadingLabel?: string | undefined;
126
+ /**
127
+ * Lay the actions in the design's grid columns (`.ob-order .ob-acts`, 2), so a lone action keeps its column's width.
128
+ * Default false: the actions share the row.
129
+ */
130
+ readonly actionGrid?: boolean | undefined;
131
+ /** Called with each shot's measure once it is drawn (and null when it goes), keyed by the shot's key. */
132
+ readonly onShotMeasure?: ((key: string, measure: UiShotMeasure | null) => void) | undefined;
133
+ }
134
+ /** A product (`.sx-card` in a shop row, or as a row): its packshot, a why line, name, meta, price, add. @public */
135
+ interface UiProductTileProps extends UiBaseProps {
136
+ readonly name: string;
137
+ readonly image?: string | null | undefined;
138
+ readonly imageAlt?: string | undefined;
139
+ /** A small mono line above the name (`.sx-why`). */
140
+ readonly kicker?: string | undefined;
141
+ readonly meta?: string | undefined;
142
+ readonly price?: string | undefined;
143
+ /** The add button (`btn--outline btn--row`). */
144
+ readonly action?: {
145
+ readonly label: string;
146
+ readonly onPress: () => void;
147
+ readonly busy?: boolean | undefined;
148
+ readonly disabled?: boolean | undefined;
149
+ } | undefined;
150
+ /** The tile opens the product. */
151
+ readonly onPress?: (() => void) | undefined;
152
+ /**
153
+ * Default `tile` (the shop's row card, `.sx-card`); `row` lays it out as a row; `card` is
154
+ * care-shop-b's grid card (`.sb-card`: the price over the name, `tag` and `stepper` over the photo).
155
+ */
156
+ readonly layout?: 'tile' | 'row' | 'card' | undefined;
157
+ readonly loading?: boolean | undefined;
158
+ readonly loadingLabel?: string | undefined;
159
+ /** The price before a discount, struck through beside the price (`card`). */
160
+ readonly wasPrice?: string | undefined;
161
+ /** `auto` paints the meta line as the auto-ship line (`.sb-card__meta--auto`, `card`). */
162
+ readonly metaTone?: 'auto' | undefined;
163
+ /** A tag over the photo's corner (`.sb-tag`, `card`): the need it serves, its icon in the need's colour. */
164
+ readonly tag?: {
165
+ readonly label: string;
166
+ readonly icon?: UiIconName | undefined;
167
+ readonly color?: string | undefined;
168
+ } | undefined;
169
+ /**
170
+ * The stepper over the photo (`.sb-step`, `card`): only its + until the value is above 0, then fewer, the count and
171
+ * more. It replaces `action` on a card.
172
+ */
173
+ readonly stepper?: UiCartQuantity | undefined;
174
+ /** What the photo draws without one. */
175
+ readonly fallback?: UiThumbnailFallback | undefined;
176
+ }
177
+ /** A cart line's quantity: the stepper's value, bounds, words and change. @public */
178
+ interface UiCartQuantity {
179
+ readonly value: number;
180
+ readonly min?: number | undefined;
181
+ readonly max?: number | undefined;
182
+ readonly label: string;
183
+ readonly fewerLabel: string;
184
+ readonly moreLabel: string;
185
+ readonly onChange: (value: number) => void;
186
+ }
187
+ /**
188
+ * A cart line (`.items li`): packshot, name and badge, meta, price, quantity, its text actions.
189
+ * Part test ids: `${testID}-price`, `${testID}-image`.
190
+ *
191
+ * @public
192
+ */
193
+ interface UiCartLineProps extends UiBaseProps {
194
+ readonly name: string;
195
+ readonly image?: string | null | undefined;
196
+ readonly imageAlt?: string | undefined;
197
+ /** A pill beside the name (`Rx`). */
198
+ readonly badge?: {
199
+ readonly label: string;
200
+ readonly tone?: UiPillTone | undefined;
201
+ } | undefined;
202
+ readonly meta?: string | undefined;
203
+ readonly price?: string | undefined;
204
+ /** The price before a discount, struck through. */
205
+ readonly wasPrice?: string | undefined;
206
+ readonly quantity?: UiCartQuantity | undefined;
207
+ readonly removeLabel?: string | undefined;
208
+ readonly onRemove?: (() => void) | undefined;
209
+ /**
210
+ * The line's text actions (`.items__acts`, for example a plan swap and Remove), in order. When given they replace
211
+ * `removeLabel`/`onRemove`.
212
+ */
213
+ readonly actions?: readonly UiLineAction[] | undefined;
214
+ /** What the packshot draws without a photo. */
215
+ readonly fallback?: UiThumbnailFallback | undefined;
216
+ /** A failed change's line, announced. */
217
+ readonly error?: string | undefined;
218
+ readonly loading?: boolean | undefined;
219
+ readonly loadingLabel?: string | undefined;
220
+ }
221
+ /** A text action of a cart line (`.items__acts button`). @public */
222
+ interface UiLineAction {
223
+ readonly key: string;
224
+ readonly label: string;
225
+ readonly onPress: () => void;
226
+ readonly disabled?: boolean | undefined;
227
+ /** What a screen reader says, when it should differ from the label. */
228
+ readonly accessibilityLabel?: string | undefined;
229
+ /** This action's test id; default `${testID}-${key}`. */
230
+ readonly testID?: string | undefined;
231
+ }
232
+ /** One row of a {@link UiPriceSummaryProps}; `off` paints a discount. @public */
233
+ interface UiPriceRow extends UiSummaryRow {
234
+ readonly tone?: 'off' | undefined;
235
+ }
236
+ /** A price summary (`.sum--total`): rows, discounts, the total. @public */
237
+ interface UiPriceSummaryProps extends UiBaseProps {
238
+ readonly rows: readonly UiPriceRow[];
239
+ /** The last, large row. */
240
+ readonly total?: UiSummaryRow | undefined;
241
+ readonly loading?: boolean | undefined;
242
+ readonly loadingLabel?: string | undefined;
243
+ }
244
+ /** One finding of a {@link UiPlanNeedCardProps}: a bold lead, then the rest. @public */
245
+ interface UiNeedSignal {
246
+ readonly key: string;
247
+ readonly lead?: string | undefined;
248
+ readonly text: string;
249
+ /** Draw the risk dot before it. Default true (`.hp-need__s .dot`). */
250
+ readonly dot?: boolean | undefined;
251
+ }
252
+ /**
253
+ * A plan need's score box (`.hp-odds`): what is scored and a tag, then the score before (struck), an arrow, the score
254
+ * now with its scale, and since when. Every word is the caller's.
255
+ *
256
+ * @public
257
+ */
258
+ interface UiNeedScore {
259
+ /** What is scored (`Her itch score, out of 10, ...`). */
260
+ readonly label: string;
261
+ /** A small tag after it (`.hp-tag`, `Sample`). */
262
+ readonly tag?: string | undefined;
263
+ /** The score before, struck through (`7/10`). */
264
+ readonly was?: string | undefined;
265
+ /** The score now (`3`). */
266
+ readonly now: string;
267
+ /** Its scale after it, smaller (`/10`). */
268
+ readonly of?: string | undefined;
269
+ /** Since when (`since Apoquel`). */
270
+ readonly since?: string | undefined;
271
+ /** What a screen reader says for the numbers (`went from 7 out of 10 to 3 out of 10 since Apoquel`). */
272
+ readonly accessibilityLabel?: string | undefined;
273
+ }
274
+ /** A Health Plan need (`.hp-need`): the focus, where it comes from, a title, the findings with a risk dot. @public */
275
+ interface UiPlanNeedCardProps extends UiBaseProps {
276
+ readonly kicker: string;
277
+ /** Where it comes from (`.hp-src`). */
278
+ readonly source?: string | undefined;
279
+ readonly title?: string | undefined;
280
+ readonly signals: readonly UiNeedSignal[];
281
+ /** The score box under the findings. */
282
+ readonly score?: UiNeedScore | undefined;
283
+ readonly loading?: boolean | undefined;
284
+ readonly loadingLabel?: string | undefined;
285
+ }
286
+ /** A tip card's fill (`.hp-tip--y`, `--c`, `--g`, `--r`). @public */
287
+ type UiTipTone = 'y' | 'c' | 'g' | 'r';
288
+ /** A Health Plan tip (`.hp-tip`): its number, a photo or an icon, the title, a line, where it comes from. @public */
289
+ interface UiTipCardProps extends UiBaseProps {
290
+ readonly number: string;
291
+ readonly title: string;
292
+ readonly text?: string | undefined;
293
+ /** A mono line at the foot. */
294
+ readonly foot?: string | undefined;
295
+ /** Draw the arrow after the foot (`.hp-tip em .ico`). Default false; `footPress` always draws it. */
296
+ readonly footArrow?: boolean | undefined;
297
+ /** The foot is its own link (where the tip comes from: her records, her medicines), drawn with the arrow. */
298
+ readonly footPress?: UiPress | undefined;
299
+ /** Default `y`. */
300
+ readonly tone?: UiTipTone | undefined;
301
+ /** A photo: a URL, or a bundled asset on React Native (see {@link UiImageSource}). */
302
+ readonly image?: UiImageSource | null | undefined;
303
+ /** An icon. The tip's design (the number on the photo) does not draw it; accepted so a tip's data passes as it is. */
304
+ readonly icon?: UiIconName | undefined;
305
+ readonly onPress?: (() => void) | undefined;
306
+ /**
307
+ * What `onPress` covers: `title` (the default) or the whole `card` (the `.hp-link` cover button, a soft press that
308
+ * settles the card). With `card`, `accessibilityLabel` names the press.
309
+ */
310
+ readonly pressTarget?: 'title' | 'card' | undefined;
311
+ /** What a screen reader says for the card press (`pressTarget: 'card'`). Default the title. */
312
+ readonly accessibilityLabel?: string | undefined;
313
+ readonly loading?: boolean | undefined;
314
+ readonly loadingLabel?: string | undefined;
315
+ }
316
+
317
+ export type { UiCartLineProps as U, UiOrderRowProps as a, UiPlanNeedCardProps as b, UiPriceSummaryProps as c, UiProductTileProps as d, UiTipCardProps as e, UiBaseProps as f, UiCartQuantity as g, UiIconName as h, UiImageSource as i, UiLineAction as j, UiNeedScore as k, UiNeedSignal as l, UiOrderAction as m, UiPillTone as n, UiPress as o, UiPriceRow as p, UiShot as q, UiShotBox as r, UiShotMeasure as s, UiSummaryRow as t, UiThumbnailFallback as u, UiTipTone as v };