@everfur/sdk 0.20.0 → 0.22.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.
- package/CHANGELOG.md +167 -0
- package/dist/{Chat.d-IpxKa9gS.d.cts → Chat.d-DDmNIlJn.d.cts} +1 -1
- package/dist/{Chat.d-D61LLPJh.d.ts → Chat.d-DySDBc6L.d.ts} +1 -1
- package/dist/{DepthViews.d-CDIL4mPa.d.cts → DepthViews.d-BHb0Xb-C.d.cts} +1 -1
- package/dist/{DepthViews.d-C8EsR8Gq.d.ts → DepthViews.d-BIfqdrvX.d.ts} +1 -1
- package/dist/{DepthViews.d-w2o4Nf7r.d.ts → DepthViews.d-BW3HrhnC.d.ts} +1 -1
- package/dist/{DepthViews.d-Q1nqdH8n.d.cts → DepthViews.d-Dq8eWBvw.d.cts} +1 -1
- package/dist/{RecordsPage.d-DqhM_rCr.d.ts → RecordsPage.d-Bs-dghTH.d.ts} +1 -1
- package/dist/{RecordsPage.d-BSjZOHu8.d.cts → RecordsPage.d-CLrw-AvZ.d.cts} +1 -1
- package/dist/animations/index.cjs +2 -2
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/animations/index.js +2 -2
- package/dist/{attachments.d-BviU_Tja.d.cts → attachments.d-DTGYmW8Y.d.cts} +1 -1
- package/dist/{attachments.d-DZVfHHnY.d.ts → attachments.d-DjxmIsNp.d.ts} +1 -1
- package/dist/{bookingCopy.d-5V3erfXD.d.ts → bookingCopy.d-CX-DMiwi.d.ts} +148 -148
- package/dist/{bookingCopy.d-DlzUPsFE.d.cts → bookingCopy.d-D952V8Tq.d.cts} +148 -148
- package/dist/{branding.d-DpNGEdDL.d.ts → branding.d-DC4imCYd.d.ts} +72 -4
- package/dist/{branding.d-BFauULV6.d.cts → branding.d-G7rpxDhI.d.cts} +72 -4
- package/dist/{casesRepository.d-Dqg-KbpA.d.ts → casesRepository.d-CnJZlUZ4.d.ts} +1 -1
- package/dist/{casesRepository.d-7Us2O-z8.d.cts → casesRepository.d-bWJHZD-_.d.cts} +1 -1
- package/dist/chat/index.cjs +59 -47
- package/dist/chat/index.d.cts +11 -11
- package/dist/chat/index.d.ts +11 -11
- package/dist/chat/index.js +59 -47
- package/dist/chat/lite/index.cjs +59 -47
- package/dist/chat/lite/index.d.cts +11 -11
- package/dist/chat/lite/index.d.ts +11 -11
- package/dist/chat/lite/index.js +59 -47
- package/dist/{chatHandoffToken.d-TYcD8NIi.d.ts → chatHandoffToken.d-BCEdhZpd.d.ts} +5 -5
- package/dist/{chatHandoffToken.d-B9pjkEfl.d.cts → chatHandoffToken.d-uKnSnIzN.d.cts} +5 -5
- package/dist/{chatTypes.d-RnQ5R4zP.d.cts → chatTypes.d-CFyYBzps.d.cts} +4 -4
- package/dist/{chatTypes.d-DPALEQoW.d.ts → chatTypes.d-DbdF3ij5.d.ts} +4 -4
- package/dist/chunk-AT7SU763.js +14 -0
- package/dist/chunk-FFMIX6HG.js +5 -0
- package/dist/chunk-K5NVMNI5.js +47 -0
- package/dist/chunk-ZASVU7CH.js +34 -0
- package/dist/client/index.cjs +9 -8
- package/dist/client/index.d.cts +18 -12
- package/dist/client/index.d.ts +18 -12
- package/dist/client/index.js +9 -8
- package/dist/{clinicBatch.d-t9hkown2.d.ts → clinicBatch.d-C_kZtYt-.d.ts} +2 -2
- package/dist/{clinicBatch.d-C6MzLj3X.d.cts → clinicBatch.d-e3Cn5HhA.d.cts} +2 -2
- package/dist/{config.d-BnZkxI5a.d.ts → config.d--6siaeNg.d.ts} +14 -6
- package/dist/{config.d-DoC-XaJ0.d.cts → config.d-Ba21AaZg.d.cts} +14 -6
- package/dist/consent/index.cjs +2 -2
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/consent/index.js +2 -2
- package/dist/{context.d-BAh7C7T4.d.cts → context.d-DLHTf-fV.d.cts} +7 -7
- package/dist/{context.d-z2zIjKEb.d.ts → context.d-TArU_9lj.d.ts} +7 -7
- package/dist/{copy.d-DLxgHsZZ.d.ts → copy.d-GokMma80.d.ts} +2 -2
- package/dist/{copy.d-BkX6G-Ws.d.cts → copy.d-zWWCn3wB.d.cts} +2 -2
- package/dist/core/index.cjs +4 -4
- package/dist/core/index.d.cts +17 -17
- package/dist/core/index.d.ts +17 -17
- package/dist/core/index.js +4 -4
- package/dist/{depth.d-z2FlzY3x.d.ts → depth.d-C_HL8yAz.d.ts} +2 -2
- package/dist/{depth.d-aXddCjyh.d.cts → depth.d-De5pT7vA.d.cts} +2 -2
- package/dist/{entitlementRepository.d-Cgmy4Opa.d.ts → entitlementRepository.d-CoKN-Ksa.d.ts} +3 -3
- package/dist/{entitlementRepository.d-CDCF8eFx.d.cts → entitlementRepository.d-Tj7lvs4e.d.cts} +3 -3
- package/dist/{focus.d-C2fd_5MW.d.ts → focus.d-7G0BBmA9.d.ts} +3 -128
- package/dist/{focus.d-q_sXGhLn.d.cts → focus.d-B0qweva0.d.cts} +3 -128
- package/dist/health-plan/index.cjs +160 -103
- package/dist/health-plan/index.d.cts +33 -18
- package/dist/health-plan/index.d.ts +33 -18
- package/dist/health-plan/index.js +167 -110
- package/dist/healthPlanRepository.d-CdCyUWph.d.ts +131 -0
- package/dist/healthPlanRepository.d-fPbLceBr.d.cts +131 -0
- package/dist/{idempotency.d-DlAPAxD5.d.ts → idempotency.d-CoUlC-Yd.d.ts} +1 -1
- package/dist/{idempotency.d-Bqdyv_yn.d.cts → idempotency.d-IDta7Jjj.d.cts} +1 -1
- package/dist/{identity.d-BWZiaByn.d.ts → identity.d-B7dPRGqm.d.ts} +1 -1
- package/dist/{identity.d-CooKscNj.d.cts → identity.d-_MK9Y7a4.d.cts} +1 -1
- package/dist/inbox.d-ChNXTovj.d.cts +103 -0
- package/dist/inbox.d-CuuPTWyW.d.ts +103 -0
- package/dist/index.cjs +69 -56
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +69 -56
- package/dist/{introEvents.d-baVM016i.d.ts → introEvents.d-D6Ay0ORN.d.ts} +1 -1
- package/dist/{introEvents.d-C8bDDiK6.d.cts → introEvents.d-JvAWRKYu.d.cts} +1 -1
- package/dist/{usePresentation.d-CyCEJ6nj.d.cts → layout.d-ByfOEhpG.d.cts} +2 -136
- package/dist/{usePresentation.d-CgvwGb2A.d.ts → layout.d-D3d4QMeO.d.ts} +2 -136
- package/dist/notifications/inbox/index.cjs +24 -12
- package/dist/notifications/inbox/index.d.cts +87 -6
- package/dist/notifications/inbox/index.d.ts +87 -6
- package/dist/notifications/inbox/index.js +24 -12
- package/dist/notifications/index.d.cts +7 -7
- package/dist/notifications/index.d.ts +7 -7
- package/dist/{optInView.d-C04aX0Hs.d.ts → optInView.d-BpFTJaaX.d.ts} +2 -2
- package/dist/{optInView.d-D_D7fs6C.d.cts → optInView.d-Bxvg0WLJ.d.cts} +2 -2
- package/dist/{pets.d-CkFNO-x-.d.ts → pets.d-Br960ekh.d.ts} +1 -1
- package/dist/{pets.d-oJ2OIY22.d.cts → pets.d-BtbJcf8T.d.cts} +1 -1
- package/dist/{petsRepository.d-VWMyIeIJ.d.cts → petsRepository.d-Bj9rPnCr.d.cts} +1 -1
- package/dist/{petsRepository.d-CKCi6rtp.d.ts → petsRepository.d-CSOth5XE.d.ts} +1 -1
- package/dist/photo/index.cjs +1 -1
- package/dist/photo/index.js +1 -1
- package/dist/{presentation.d-Bs8xQ4gD.d.ts → presentation.d-BvZs_jN-.d.cts} +6 -0
- package/dist/{presentation.d-Bs8xQ4gD.d.cts → presentation.d-BvZs_jN-.d.ts} +6 -0
- package/dist/records/depth/index.cjs +10 -6
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/depth/index.js +10 -6
- package/dist/records/index.cjs +302 -207
- package/dist/records/index.d.cts +144 -17
- package/dist/records/index.d.ts +144 -17
- package/dist/records/index.js +302 -207
- package/dist/{requestFunnel.d-By0-I8Cp.d.cts → requestFunnel.d-BwO-jFLX.d.cts} +2 -2
- package/dist/{requestFunnel.d-DVCytzTE.d.ts → requestFunnel.d-LSnmCusf.d.ts} +2 -2
- package/dist/{route.d-Ay-lRct1.d.ts → route.d-Bzyamuxa.d.ts} +2 -2
- package/dist/{route.d-DQDX6QFn.d.cts → route.d-D70-OHBc.d.cts} +2 -2
- package/dist/{runtimeTypes.d-DUVNpR6g.d.cts → runtimeTypes.d-BHdN-9aB.d.cts} +7 -7
- package/dist/{runtimeTypes.d-C49Cgb9c.d.ts → runtimeTypes.d-L_CbeCKS.d.ts} +7 -7
- package/dist/{screenProps.d-BgxlmfG5.d.cts → screenProps.d-DB5IMaGZ.d.cts} +1 -1
- package/dist/{screenProps.d-B_arD3Lh.d.ts → screenProps.d-HGSPNGHt.d.ts} +1 -1
- package/dist/server/events/index.cjs +1 -1
- package/dist/server/events/index.d.cts +2 -2
- package/dist/server/events/index.d.ts +2 -2
- package/dist/server/events/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +1 -1
- package/dist/shop/index.cjs +201 -146
- package/dist/shop/index.d.cts +3 -3
- package/dist/shop/index.d.ts +3 -3
- package/dist/shop/index.js +202 -147
- package/dist/slots/index.cjs +299 -0
- package/dist/slots/index.d.cts +155 -0
- package/dist/slots/index.d.ts +155 -0
- package/dist/slots/index.js +299 -0
- package/dist/slots/weather-glyphs/index.cjs +2 -0
- package/dist/slots/weather-glyphs/index.d.cts +11 -0
- package/dist/slots/weather-glyphs/index.d.ts +11 -0
- package/dist/slots/weather-glyphs/index.js +2 -0
- package/dist/tabs/index.cjs +43 -12
- package/dist/tabs/index.d.cts +79 -8
- package/dist/tabs/index.d.ts +79 -8
- package/dist/tabs/index.js +43 -12
- package/dist/televet/booking/index.cjs +54 -10
- package/dist/televet/booking/index.d.cts +51 -10
- package/dist/televet/booking/index.d.ts +51 -10
- package/dist/televet/booking/index.js +55 -11
- package/dist/televet/call/index.cjs +1 -1
- package/dist/televet/call/index.js +1 -1
- package/dist/televet/index.cjs +1 -1
- package/dist/televet/index.d.cts +2 -2
- package/dist/televet/index.d.ts +2 -2
- package/dist/televet/index.js +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/rn/index.cjs +1 -1
- package/dist/testing/rn/index.d.cts +13 -11
- package/dist/testing/rn/index.d.ts +13 -11
- package/dist/testing/rn/index.js +1 -1
- package/dist/testing/web/index.d.cts +10 -10
- package/dist/testing/web/index.d.ts +10 -10
- package/dist/texting/index.cjs +2 -2
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/texting/index.js +2 -2
- package/dist/{threadOptions.d-pZXzsd2d.d.cts → threadOptions.d-CS-Qu_rR.d.cts} +6 -6
- package/dist/{threadOptions.d-Cbhjjb9_.d.ts → threadOptions.d-FzFN0zsK.d.ts} +6 -6
- package/dist/{timelineRows.d-DlMs82N1.d.cts → timelineRows.d-BJRCgmdv.d.cts} +1 -1
- package/dist/{timelineRows.d-BHxMeZzl.d.ts → timelineRows.d-CPS4admm.d.ts} +1 -1
- package/dist/{tokens.d-BUVqme2D.d.cts → tokens.d-DH1mYjZl.d.cts} +43 -1
- package/dist/{tokens.d-BUVqme2D.d.ts → tokens.d-DH1mYjZl.d.ts} +43 -1
- package/dist/{typeStyle.d-Ckdh_S-t.d.cts → typeStyle.d-BIDpuYpg.d.cts} +29 -3
- package/dist/{typeStyle.d-B9Jo5mDX.d.ts → typeStyle.d-aRhFhBpG.d.ts} +29 -3
- package/dist/{types.d-d3RdaeAA.d.cts → types.d-BOKzNuuF.d.cts} +87 -85
- package/dist/{types.d-d3RdaeAA.d.ts → types.d-BOKzNuuF.d.ts} +87 -85
- package/dist/ui/index.cjs +112 -47
- package/dist/ui/index.d.cts +4 -3
- package/dist/ui/index.d.ts +4 -3
- package/dist/ui/index.js +112 -47
- package/dist/{useHealthPlanSubscription.d-BoC7H85G.d.ts → useHealthPlanSubscription.d-SQfx-45x.d.ts} +3 -2
- package/dist/{useHealthPlanSubscription.d-CZn06-lu.d.cts → useHealthPlanSubscription.d-zjsvvlhz.d.cts} +3 -2
- package/dist/useInboxUnread.d-7p3IWs_A.d.cts +109 -0
- package/dist/useInboxUnread.d-BxFKFU4o.d.ts +109 -0
- package/dist/usePresentation.d-BHO_uZ31.d.cts +140 -0
- package/dist/usePresentation.d-Dr7iD-4Y.d.ts +140 -0
- package/dist/{useRecordsDepth.d-CbXhWbx7.d.ts → useRecordsDepth.d-BinUa8W9.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-CcbL98FD.d.cts → useRecordsDepth.d-Bk8BSerZ.d.cts} +1 -1
- package/dist/{useUnread.d-BsZKbLp9.d.ts → useUnread.d-CAeYh82_.d.ts} +10 -7
- package/dist/{useUnread.d-CfF2Cx-q.d.cts → useUnread.d-DXcRBQw8.d.cts} +10 -7
- package/dist/video/index.cjs +1 -1
- package/dist/video/index.js +1 -1
- package/dist/{view.d-DdyOf0T0.d.ts → view.d-CaH6dZPJ.d.ts} +3 -3
- package/dist/{view.d-CF3AP3T7.d.cts → view.d-DV4b1cov.d.cts} +3 -3
- package/dist/web/consent/index.cjs +1 -1
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/consent/index.js +1 -1
- package/dist/web/health-plan/index.cjs +54 -25
- package/dist/web/health-plan/index.d.cts +20 -13
- package/dist/web/health-plan/index.d.ts +20 -13
- package/dist/web/health-plan/index.js +36 -31
- package/dist/web/health-plan/styles.css +165 -2
- package/dist/web/inbox/index.cjs +1 -1
- package/dist/web/inbox/index.d.cts +7 -5
- package/dist/web/inbox/index.d.ts +7 -5
- package/dist/web/inbox/index.js +1 -1
- package/dist/web/index.cjs +71 -70
- package/dist/web/index.d.cts +53 -31
- package/dist/web/index.d.ts +53 -31
- package/dist/web/index.js +28 -27
- package/dist/web/intro/index.cjs +1 -1
- package/dist/web/intro/index.d.cts +7 -6
- package/dist/web/intro/index.d.ts +7 -6
- package/dist/web/intro/index.js +1 -1
- package/dist/web/notifications/index.cjs +1 -1
- package/dist/web/notifications/index.d.cts +6 -6
- package/dist/web/notifications/index.d.ts +6 -6
- package/dist/web/notifications/index.js +1 -1
- package/dist/web/records/depth/index.cjs +1 -1
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/depth/index.js +1 -1
- package/dist/web/records/index.cjs +1 -1
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records/index.js +1 -1
- package/dist/web/records-sheet/index.cjs +3 -3
- package/dist/web/records-sheet/index.js +3 -3
- package/dist/web/shop/index.cjs +129 -88
- package/dist/web/shop/index.d.cts +4 -3
- package/dist/web/shop/index.d.ts +4 -3
- package/dist/web/shop/index.js +67 -81
- package/dist/web/televet/booking/index.cjs +53 -53
- package/dist/web/televet/booking/index.d.cts +44 -44
- package/dist/web/televet/booking/index.d.ts +44 -44
- package/dist/web/televet/booking/index.js +53 -53
- package/dist/web/televet/call/index.cjs +3 -3
- package/dist/web/televet/call/index.d.cts +7 -6
- package/dist/web/televet/call/index.d.ts +7 -6
- package/dist/web/televet/call/index.js +3 -3
- package/dist/web/televet/index.cjs +1 -1
- package/dist/web/televet/index.js +1 -1
- package/dist/web/texting/index.cjs +1 -1
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/dist/web/texting/index.js +1 -1
- package/dist/web/ui/index.cjs +116 -58
- package/dist/web/ui/index.d.cts +33 -32
- package/dist/web/ui/index.d.ts +33 -32
- package/dist/web/ui/index.js +41 -46
- package/dist/web/ui/styles.css +525 -2
- package/package.json +36 -5
- package/slots/package.json +8 -0
- package/slots/weather-glyphs/package.json +8 -0
- package/dist/chunk-Y3Q4GW47.js +0 -31
- package/dist/useInboxUnread.d-DW0dpWdv.d.cts +0 -206
- package/dist/useInboxUnread.d-vYpOXVRv.d.ts +0 -206
- package/dist/{IntakeMedia.d-Dqc5V_YH.d.cts → IntakeMedia.d-CO8weVGO.d.cts} +35 -35
- package/dist/{IntakeMedia.d-DNUAks9E.d.ts → IntakeMedia.d-DnUZJsbj.d.ts} +35 -35
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
-
import { C as ClientBranding, E as EverfurThemeInput } from './branding.d-
|
|
3
|
-
import {
|
|
2
|
+
import { C as ClientBranding, E as EverfurThemeInput } from './branding.d-DC4imCYd.js';
|
|
3
|
+
import { n as EverfurTheme, d as EverfurFontWeight, a as EverfurFontFaceKey, t as EverfurTypeRole } from './tokens.d-DH1mYjZl.js';
|
|
4
4
|
|
|
5
5
|
/** One partner input the contrast guard adjusted. */
|
|
6
6
|
interface EverfurThemeAdjustment {
|
|
@@ -76,6 +76,14 @@ interface ResolveThemeInput {
|
|
|
76
76
|
* collapsing to the platform's regular. Only named faces are asked about; a throw reads as null.
|
|
77
77
|
*/
|
|
78
78
|
readonly isFontRegistered?: (family: string) => boolean | null;
|
|
79
|
+
/**
|
|
80
|
+
* The type profile of the host. `phone` (the React Native host): the size table (`type.size`) is drawn from the
|
|
81
|
+
* type roles, the designer's partner phone, so `size.body` is the phone's body (15, not 17), and every text tier is
|
|
82
|
+
* capped (`PHONE_TEXT_SCALE_CAPS`, content included). Absent (the web): the design tokens' table and the Everfur
|
|
83
|
+
* app's caps (`TEXT_SCALE_TIER_CAPS`, content uncapped), unchanged. A partner's `text_scale_caps` and
|
|
84
|
+
* `accessibility_max_font_scale` apply over either.
|
|
85
|
+
*/
|
|
86
|
+
readonly typeProfile?: 'phone';
|
|
79
87
|
}
|
|
80
88
|
/** The smallest effective text scale the resolver will report (a device may ask for less; the surfaces stop here). */
|
|
81
89
|
declare const TEXT_SCALE_FLOOR = 0.5;
|
|
@@ -136,5 +144,23 @@ declare function face(theme: EverfurTheme, weight: EverfurFontFaceKey): EverfurF
|
|
|
136
144
|
* exists to avoid). With neither set this is exactly `face(theme, fallback)`, so Everfur's look is unchanged.
|
|
137
145
|
*/
|
|
138
146
|
declare function headingFace(theme: EverfurTheme, fallback?: EverfurFontFaceKey): EverfurFaceStyle;
|
|
147
|
+
/**
|
|
148
|
+
* The text style of one type role (`theme.type.roles`): the family and weight, the size, the line height and the
|
|
149
|
+
* tracking in px, and the case. Spread it into a style and add the colour:
|
|
150
|
+
* `{ ...textRole(theme, 'body'), color: theme.color.text.primary }`.
|
|
151
|
+
*/
|
|
152
|
+
interface EverfurRoleTextStyle extends EverfurFaceStyle {
|
|
153
|
+
readonly fontSize: number;
|
|
154
|
+
readonly lineHeight: number;
|
|
155
|
+
readonly letterSpacing?: number;
|
|
156
|
+
readonly textTransform?: 'uppercase';
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The style of `role` in `theme`, faces mapped as `face()` maps them: a NAMED face alone (its weight is baked in), a
|
|
160
|
+
* base family with the role's numeric weight. The partner's body weight (`font_weight_body`) replaces a regular role's
|
|
161
|
+
* 400; the heading face (`heading_font_family`, `font_weight_heading`) draws a `heading` role. Pure and total; cached
|
|
162
|
+
* per theme, so a surface may call it in render.
|
|
163
|
+
*/
|
|
164
|
+
declare function textRole(theme: EverfurTheme, role: EverfurTypeRole): EverfurRoleTextStyle;
|
|
139
165
|
|
|
140
|
-
export { type EverfurFaceStyle as E, type ResolveThemeInput as R, TEXT_SCALE_FLOOR as T, type
|
|
166
|
+
export { type EverfurFaceStyle as E, type ResolveThemeInput as R, TEXT_SCALE_FLOOR as T, type EverfurRoleTextStyle as a, type EverfurThemeAdjustment as b, themeAdjustments as c, face as f, headingFace as h, previewTheme as p, resolveTheme as r, textRole as t, withServerBranding as w };
|
|
@@ -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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
*
|
|
75
|
-
*
|
|
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
|
|
80
|
-
|
|
81
|
-
readonly
|
|
82
|
-
|
|
83
|
-
readonly
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
/**
|
|
@@ -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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
*
|
|
75
|
-
*
|
|
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
|
|
80
|
-
|
|
81
|
-
readonly
|
|
82
|
-
|
|
83
|
-
readonly
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
/**
|