@everfur/sdk 0.20.0 → 0.21.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 (175) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{Chat.d-D61LLPJh.d.ts → Chat.d-CoGJrK3t.d.ts} +1 -1
  3. package/dist/{Chat.d-IpxKa9gS.d.cts → Chat.d-JDtlG_EW.d.cts} +1 -1
  4. package/dist/{DepthViews.d-C8EsR8Gq.d.ts → DepthViews.d-CNQn-eEr.d.ts} +1 -1
  5. package/dist/{DepthViews.d-w2o4Nf7r.d.ts → DepthViews.d-D31VlFKU.d.ts} +1 -1
  6. package/dist/{DepthViews.d-CDIL4mPa.d.cts → DepthViews.d-XTv4s3ru.d.cts} +1 -1
  7. package/dist/{DepthViews.d-Q1nqdH8n.d.cts → DepthViews.d-zxM_xbP9.d.cts} +1 -1
  8. package/dist/{RecordsPage.d-BSjZOHu8.d.cts → RecordsPage.d-CSZHrtWJ.d.cts} +1 -1
  9. package/dist/{RecordsPage.d-DqhM_rCr.d.ts → RecordsPage.d-D_y-ZB3S.d.ts} +1 -1
  10. package/dist/animations/index.d.cts +3 -3
  11. package/dist/animations/index.d.ts +3 -3
  12. package/dist/{attachments.d-BviU_Tja.d.cts → attachments.d-D74wbmQU.d.cts} +1 -1
  13. package/dist/{attachments.d-DZVfHHnY.d.ts → attachments.d-Dm6NUJTR.d.ts} +1 -1
  14. package/dist/{bookingCopy.d-5V3erfXD.d.ts → bookingCopy.d-DMmLKY5Q.d.ts} +2 -2
  15. package/dist/{bookingCopy.d-DlzUPsFE.d.cts → bookingCopy.d-iaYDPvPd.d.cts} +2 -2
  16. package/dist/{casesRepository.d-Dqg-KbpA.d.ts → casesRepository.d-CCJJQXnl.d.ts} +1 -1
  17. package/dist/{casesRepository.d-7Us2O-z8.d.cts → casesRepository.d-G2dahIKO.d.cts} +1 -1
  18. package/dist/chat/index.d.cts +10 -10
  19. package/dist/chat/index.d.ts +10 -10
  20. package/dist/chat/lite/index.d.cts +10 -10
  21. package/dist/chat/lite/index.d.ts +10 -10
  22. package/dist/{chatHandoffToken.d-TYcD8NIi.d.ts → chatHandoffToken.d-DVv9tl8h.d.ts} +5 -5
  23. package/dist/{chatHandoffToken.d-B9pjkEfl.d.cts → chatHandoffToken.d-xmnHrTA5.d.cts} +5 -5
  24. package/dist/{chatTypes.d-RnQ5R4zP.d.cts → chatTypes.d-CQC7GTdE.d.cts} +4 -4
  25. package/dist/{chatTypes.d-DPALEQoW.d.ts → chatTypes.d-hS1AilYl.d.ts} +4 -4
  26. package/dist/chunk-2NA7TPUA.js +5 -0
  27. package/dist/chunk-IJU5TV5N.js +12 -0
  28. package/dist/chunk-TFX6WMDN.js +30 -0
  29. package/dist/chunk-WZNPR5TY.js +34 -0
  30. package/dist/client/index.cjs +1 -1
  31. package/dist/client/index.d.cts +6 -6
  32. package/dist/client/index.d.ts +6 -6
  33. package/dist/client/index.js +1 -1
  34. package/dist/{clinicBatch.d-C6MzLj3X.d.cts → clinicBatch.d-4PFwKJfw.d.cts} +2 -2
  35. package/dist/{clinicBatch.d-t9hkown2.d.ts → clinicBatch.d-BpP2NBb3.d.ts} +2 -2
  36. package/dist/{config.d-BnZkxI5a.d.ts → config.d-D9igq-vT.d.ts} +1 -1
  37. package/dist/{config.d-DoC-XaJ0.d.cts → config.d-cX5E6DAw.d.cts} +1 -1
  38. package/dist/consent/index.d.cts +5 -5
  39. package/dist/consent/index.d.ts +5 -5
  40. package/dist/{context.d-BAh7C7T4.d.cts → context.d-BrRRNw9I.d.cts} +4 -4
  41. package/dist/{context.d-z2zIjKEb.d.ts → context.d-hPfsEsNf.d.ts} +4 -4
  42. package/dist/{copy.d-DLxgHsZZ.d.ts → copy.d-CDlirTR4.d.ts} +2 -2
  43. package/dist/{copy.d-BkX6G-Ws.d.cts → copy.d-DWjSkbrZ.d.cts} +2 -2
  44. package/dist/core/index.cjs +1 -1
  45. package/dist/core/index.d.cts +13 -13
  46. package/dist/core/index.d.ts +13 -13
  47. package/dist/core/index.js +1 -1
  48. package/dist/{depth.d-z2FlzY3x.d.ts → depth.d-CfBorxcQ.d.ts} +2 -2
  49. package/dist/{depth.d-aXddCjyh.d.cts → depth.d-KkrGx98U.d.cts} +2 -2
  50. package/dist/{entitlementRepository.d-CDCF8eFx.d.cts → entitlementRepository.d-BvnWpcQH.d.cts} +2 -2
  51. package/dist/{entitlementRepository.d-Cgmy4Opa.d.ts → entitlementRepository.d-DpQrIgW6.d.ts} +2 -2
  52. package/dist/{focus.d-q_sXGhLn.d.cts → focus.d-9loikWy8.d.cts} +2 -2
  53. package/dist/{focus.d-C2fd_5MW.d.ts → focus.d-CYwVLDvR.d.ts} +2 -2
  54. package/dist/health-plan/index.cjs +53 -37
  55. package/dist/health-plan/index.d.cts +9 -9
  56. package/dist/health-plan/index.d.ts +9 -9
  57. package/dist/health-plan/index.js +54 -38
  58. package/dist/{idempotency.d-Bqdyv_yn.d.cts → idempotency.d-CVKkUhY4.d.cts} +1 -1
  59. package/dist/{idempotency.d-DlAPAxD5.d.ts → idempotency.d-DGQ_xML5.d.ts} +1 -1
  60. package/dist/{identity.d-CooKscNj.d.cts → identity.d-Bnl5Z0MM.d.cts} +1 -1
  61. package/dist/{identity.d-BWZiaByn.d.ts → identity.d-DR5YwO6E.d.ts} +1 -1
  62. package/dist/index.cjs +1 -1
  63. package/dist/index.d.cts +13 -13
  64. package/dist/index.d.ts +13 -13
  65. package/dist/index.js +1 -1
  66. package/dist/{introEvents.d-baVM016i.d.ts → introEvents.d-D_yL7lnE.d.ts} +1 -1
  67. package/dist/{introEvents.d-C8bDDiK6.d.cts → introEvents.d-JmPqEqMQ.d.cts} +1 -1
  68. package/dist/notifications/inbox/index.d.cts +4 -4
  69. package/dist/notifications/inbox/index.d.ts +4 -4
  70. package/dist/notifications/index.d.cts +7 -7
  71. package/dist/notifications/index.d.ts +7 -7
  72. package/dist/{optInView.d-D_D7fs6C.d.cts → optInView.d-BizcW_QG.d.cts} +2 -2
  73. package/dist/{optInView.d-C04aX0Hs.d.ts → optInView.d-CZvKlq-o.d.ts} +2 -2
  74. package/dist/{pets.d-oJ2OIY22.d.cts → pets.d-C4CWxQPh.d.cts} +1 -1
  75. package/dist/{pets.d-CkFNO-x-.d.ts → pets.d-uCzgFbGi.d.ts} +1 -1
  76. package/dist/{petsRepository.d-VWMyIeIJ.d.cts → petsRepository.d-DOcVv9bd.d.cts} +1 -1
  77. package/dist/{petsRepository.d-CKCi6rtp.d.ts → petsRepository.d-DRW7NkKm.d.ts} +1 -1
  78. package/dist/records/depth/index.d.cts +9 -9
  79. package/dist/records/depth/index.d.ts +9 -9
  80. package/dist/records/index.cjs +1 -1
  81. package/dist/records/index.d.cts +10 -10
  82. package/dist/records/index.d.ts +10 -10
  83. package/dist/records/index.js +1 -1
  84. package/dist/{requestFunnel.d-DVCytzTE.d.ts → requestFunnel.d-BYLycQMI.d.ts} +2 -2
  85. package/dist/{requestFunnel.d-By0-I8Cp.d.cts → requestFunnel.d-CQ0O8fMG.d.cts} +2 -2
  86. package/dist/{route.d-Ay-lRct1.d.ts → route.d-DFJ0gXj8.d.ts} +2 -2
  87. package/dist/{route.d-DQDX6QFn.d.cts → route.d-q9yndhFy.d.cts} +2 -2
  88. package/dist/{runtimeTypes.d-DUVNpR6g.d.cts → runtimeTypes.d-3LRuzxr7.d.cts} +4 -4
  89. package/dist/{runtimeTypes.d-C49Cgb9c.d.ts → runtimeTypes.d-BJHYj2MI.d.ts} +4 -4
  90. package/dist/{screenProps.d-BgxlmfG5.d.cts → screenProps.d-DfAmuKkr.d.cts} +1 -1
  91. package/dist/{screenProps.d-B_arD3Lh.d.ts → screenProps.d-tVzlXGaN.d.ts} +1 -1
  92. package/dist/server/events/index.cjs +1 -1
  93. package/dist/server/events/index.d.cts +2 -2
  94. package/dist/server/events/index.d.ts +2 -2
  95. package/dist/server/events/index.js +1 -1
  96. package/dist/server/index.cjs +1 -1
  97. package/dist/server/index.d.cts +3 -3
  98. package/dist/server/index.d.ts +3 -3
  99. package/dist/server/index.js +1 -1
  100. package/dist/shop/index.cjs +187 -145
  101. package/dist/shop/index.d.cts +3 -3
  102. package/dist/shop/index.d.ts +3 -3
  103. package/dist/shop/index.js +188 -146
  104. package/dist/tabs/index.d.cts +6 -6
  105. package/dist/tabs/index.d.ts +6 -6
  106. package/dist/televet/booking/index.d.cts +6 -6
  107. package/dist/televet/booking/index.d.ts +6 -6
  108. package/dist/testing/index.d.cts +1 -1
  109. package/dist/testing/index.d.ts +1 -1
  110. package/dist/testing/rn/index.d.cts +7 -7
  111. package/dist/testing/rn/index.d.ts +7 -7
  112. package/dist/testing/web/index.d.cts +7 -7
  113. package/dist/testing/web/index.d.ts +7 -7
  114. package/dist/texting/index.d.cts +5 -5
  115. package/dist/texting/index.d.ts +5 -5
  116. package/dist/{threadOptions.d-Cbhjjb9_.d.ts → threadOptions.d-DfH26dy7.d.ts} +2 -2
  117. package/dist/{threadOptions.d-pZXzsd2d.d.cts → threadOptions.d-I6G3BdlP.d.cts} +2 -2
  118. package/dist/{timelineRows.d-BHxMeZzl.d.ts → timelineRows.d-CugnCOfZ.d.ts} +1 -1
  119. package/dist/{timelineRows.d-DlMs82N1.d.cts → timelineRows.d-uSfr2IP3.d.cts} +1 -1
  120. package/dist/{types.d-d3RdaeAA.d.cts → types.d-BOKzNuuF.d.cts} +87 -85
  121. package/dist/{types.d-d3RdaeAA.d.ts → types.d-BOKzNuuF.d.ts} +87 -85
  122. package/dist/ui/index.cjs +98 -46
  123. package/dist/ui/index.d.cts +4 -3
  124. package/dist/ui/index.d.ts +4 -3
  125. package/dist/ui/index.js +98 -46
  126. package/dist/{useHealthPlanSubscription.d-BoC7H85G.d.ts → useHealthPlanSubscription.d-CVVQIFpG.d.ts} +2 -2
  127. package/dist/{useHealthPlanSubscription.d-CZn06-lu.d.cts → useHealthPlanSubscription.d-DylPMm_m.d.cts} +2 -2
  128. package/dist/{useInboxUnread.d-vYpOXVRv.d.ts → useInboxUnread.d-DDoSII8D.d.ts} +1 -1
  129. package/dist/{useInboxUnread.d-DW0dpWdv.d.cts → useInboxUnread.d-Dq3CCAa3.d.cts} +1 -1
  130. package/dist/{usePresentation.d-CgvwGb2A.d.ts → usePresentation.d-CDNK4MDY.d.ts} +1 -1
  131. package/dist/{usePresentation.d-CyCEJ6nj.d.cts → usePresentation.d-CrobH0d_.d.cts} +1 -1
  132. package/dist/{useRecordsDepth.d-CbXhWbx7.d.ts → useRecordsDepth.d-BvBYIPii.d.ts} +1 -1
  133. package/dist/{useRecordsDepth.d-CcbL98FD.d.cts → useRecordsDepth.d-Cd5Vyb7D.d.cts} +1 -1
  134. package/dist/{useUnread.d-CfF2Cx-q.d.cts → useUnread.d-B4Yqcteg.d.cts} +3 -3
  135. package/dist/{useUnread.d-BsZKbLp9.d.ts → useUnread.d-ElAEfgl1.d.ts} +3 -3
  136. package/dist/{view.d-DdyOf0T0.d.ts → view.d-2RWoY9kd.d.ts} +3 -3
  137. package/dist/{view.d-CF3AP3T7.d.cts → view.d-utmOR2ee.d.cts} +3 -3
  138. package/dist/web/consent/index.d.cts +5 -5
  139. package/dist/web/consent/index.d.ts +5 -5
  140. package/dist/web/health-plan/index.cjs +43 -16
  141. package/dist/web/health-plan/index.d.cts +11 -11
  142. package/dist/web/health-plan/index.d.ts +11 -11
  143. package/dist/web/health-plan/index.js +32 -27
  144. package/dist/web/health-plan/styles.css +160 -1
  145. package/dist/web/inbox/index.d.cts +5 -5
  146. package/dist/web/inbox/index.d.ts +5 -5
  147. package/dist/web/index.cjs +1 -1
  148. package/dist/web/index.d.cts +23 -23
  149. package/dist/web/index.d.ts +23 -23
  150. package/dist/web/index.js +1 -1
  151. package/dist/web/intro/index.d.cts +6 -6
  152. package/dist/web/intro/index.d.ts +6 -6
  153. package/dist/web/notifications/index.d.cts +6 -6
  154. package/dist/web/notifications/index.d.ts +6 -6
  155. package/dist/web/records/depth/index.d.cts +9 -9
  156. package/dist/web/records/depth/index.d.ts +9 -9
  157. package/dist/web/records/index.d.cts +11 -11
  158. package/dist/web/records/index.d.ts +11 -11
  159. package/dist/web/records-sheet/index.cjs +1 -1
  160. package/dist/web/records-sheet/index.js +1 -1
  161. package/dist/web/shop/index.cjs +110 -88
  162. package/dist/web/shop/index.d.cts +3 -3
  163. package/dist/web/shop/index.d.ts +3 -3
  164. package/dist/web/shop/index.js +67 -81
  165. package/dist/web/televet/booking/index.d.cts +6 -6
  166. package/dist/web/televet/booking/index.d.ts +6 -6
  167. package/dist/web/texting/index.d.cts +5 -5
  168. package/dist/web/texting/index.d.ts +5 -5
  169. package/dist/web/ui/index.cjs +96 -57
  170. package/dist/web/ui/index.d.cts +4 -3
  171. package/dist/web/ui/index.d.ts +4 -3
  172. package/dist/web/ui/index.js +41 -46
  173. package/dist/web/ui/styles.css +481 -1
  174. package/package.json +5 -5
  175. package/dist/chunk-Y3Q4GW47.js +0 -31
@@ -51,15 +51,34 @@ interface UiThumbnailFallback {
51
51
  /** The icon's colour. Default the theme's thumbnail icon colour. */
52
52
  readonly iconColor?: string | undefined;
53
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}). */
54
+ /**
55
+ * Where a shot's photo sits on screen, for a host animation that starts from it (an add to cart that flies the photo
56
+ * to the cart). Window coordinates, the photo's box inside its frame's padding.
57
+ *
58
+ * @public
59
+ */
60
+ interface UiShotBox {
61
+ readonly x: number;
62
+ readonly y: number;
63
+ readonly width: number;
64
+ readonly height: number;
65
+ }
66
+ /** Measures a shot's photo now (see {@link UiShotBox}); null when the shot is not on screen. @public */
67
+ type UiShotMeasure = () => Promise<UiShotBox | null>;
68
+ /** A text action of a cart line (`.items__acts button`). @public */
69
+ interface UiLineAction {
70
+ readonly key: string;
71
+ readonly label: string;
72
+ readonly onPress: () => void;
73
+ readonly disabled?: boolean | undefined;
74
+ /** What a screen reader says, when it should differ from the label. */
75
+ readonly accessibilityLabel?: string | undefined;
76
+ /** This action's test id; default `${testID}-${key}`. */
61
77
  readonly testID?: string | undefined;
62
78
  }
79
+ /** A tip card's fill (`.hp-tip--y`, `--c`, `--g`, `--r`). @public */
80
+ type UiTipTone = 'y' | 'c' | 'g' | 'r';
81
+
63
82
  /** A packshot of an order, a product or a line. @public */
64
83
  interface UiShot extends UiThumbnailFallback {
65
84
  readonly key: string;
@@ -70,20 +89,65 @@ interface UiShot extends UiThumbnailFallback {
70
89
  /** This shot's test id; default `${testID}-shot-${key}`. */
71
90
  readonly testID?: string | undefined;
72
91
  }
92
+ /** A cart line's quantity: the stepper's value, bounds, words and change. @public */
93
+ interface UiCartQuantity {
94
+ readonly value: number;
95
+ readonly min?: number | undefined;
96
+ readonly max?: number | undefined;
97
+ readonly label: string;
98
+ readonly fewerLabel: string;
99
+ readonly moreLabel: string;
100
+ readonly onChange: (value: number) => void;
101
+ }
73
102
  /**
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
103
+ * A plan need's score box (`.hp-odds`): what is scored and a tag, then the score before (struck), an arrow, the score
104
+ * now with its scale, and since when. Every word is the caller's. The design system's own takes an icon too; the SDK
105
+ * publishes it without (its arrow stays). @public
78
106
  */
79
- interface UiShotBox {
80
- readonly x: number;
81
- readonly y: number;
82
- readonly width: number;
83
- readonly height: number;
107
+ interface UiNeedScore {
108
+ /** What is scored. */
109
+ readonly label: string;
110
+ /** A small tag after it (`.hp-tag`). */
111
+ readonly tag?: string | undefined;
112
+ /** The score before, struck through. */
113
+ readonly was?: string | undefined;
114
+ /** The score now. */
115
+ readonly now: string;
116
+ /** Its scale after it, smaller. */
117
+ readonly of?: string | undefined;
118
+ /** Since when. */
119
+ readonly since?: string | undefined;
120
+ /** What a screen reader says for the numbers, in place of the numbers themselves. */
121
+ readonly accessibilityLabel?: string | undefined;
122
+ }
123
+ /** One finding of a {@link UiPlanNeedCardProps}: a bold lead, then the rest. @public */
124
+ interface UiNeedSignal {
125
+ readonly key: string;
126
+ readonly lead?: string | undefined;
127
+ readonly text: string;
128
+ /** Draw the risk dot before it. Default true (`.hp-need__s .dot`). */
129
+ readonly dot?: boolean | undefined;
130
+ }
131
+ /** A Health Plan need (`.hp-need`): the focus, where it comes from, a title, the findings with a risk dot. @public */
132
+ interface UiPlanNeedCardProps extends UiBaseProps {
133
+ readonly kicker: string;
134
+ /** Where it comes from (`.hp-src`). */
135
+ readonly source?: string | undefined;
136
+ readonly title?: string | undefined;
137
+ readonly signals: readonly UiNeedSignal[];
138
+ /** The score box under the findings. */
139
+ readonly score?: UiNeedScore | undefined;
140
+ readonly loading?: boolean | undefined;
141
+ readonly loadingLabel?: string | undefined;
142
+ }
143
+ /** One term and value row of a {@link UiPriceSummaryProps}. @public */
144
+ interface UiSummaryRow {
145
+ readonly key?: string | undefined;
146
+ readonly term: string;
147
+ readonly value: string;
148
+ /** This row's test id; default `${testID}-${key}` (see {@link UiBaseProps}). */
149
+ readonly testID?: string | undefined;
84
150
  }
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
151
  /** An action under an order (`.ob-btn`; `go` is the bright one). @public */
88
152
  interface UiOrderAction {
89
153
  readonly key: string;
@@ -174,16 +238,6 @@ interface UiProductTileProps extends UiBaseProps {
174
238
  /** What the photo draws without one. */
175
239
  readonly fallback?: UiThumbnailFallback | undefined;
176
240
  }
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
241
  /**
188
242
  * A cart line (`.items li`): packshot, name and badge, meta, price, quantity, its text actions.
189
243
  * Part test ids: `${testID}-price`, `${testID}-image`.
@@ -218,17 +272,6 @@ interface UiCartLineProps extends UiBaseProps {
218
272
  readonly loading?: boolean | undefined;
219
273
  readonly loadingLabel?: string | undefined;
220
274
  }
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
275
  /** One row of a {@link UiPriceSummaryProps}; `off` paints a discount. @public */
233
276
  interface UiPriceRow extends UiSummaryRow {
234
277
  readonly tone?: 'off' | undefined;
@@ -241,50 +284,6 @@ interface UiPriceSummaryProps extends UiBaseProps {
241
284
  readonly loading?: boolean | undefined;
242
285
  readonly loadingLabel?: string | undefined;
243
286
  }
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
287
  /** A Health Plan tip (`.hp-tip`): its number, a photo or an icon, the title, a line, where it comes from. @public */
289
288
  interface UiTipCardProps extends UiBaseProps {
290
289
  readonly number: string;
@@ -298,9 +297,12 @@ interface UiTipCardProps extends UiBaseProps {
298
297
  readonly footPress?: UiPress | undefined;
299
298
  /** Default `y`. */
300
299
  readonly tone?: UiTipTone | undefined;
301
- /** A photo: a URL, or a bundled asset on React Native (see {@link UiImageSource}). */
300
+ /**
301
+ * A photo: a URL, or a bundled asset on React Native (see {@link UiImageSource}). Without one, or when it fails to
302
+ * load, the tip draws no photo frame: a compact row at the top holds the number and `icon`.
303
+ */
302
304
  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. */
305
+ /** The icon a tip without a photo (or whose photo fails to load) draws beside its number. Default `leaf`. */
304
306
  readonly icon?: UiIconName | undefined;
305
307
  readonly onPress?: (() => void) | undefined;
306
308
  /**