@twentyfirstmedia/ui-core 0.5.0 → 0.7.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/dist/components/admin.d.ts.map +1 -1
- package/dist/components/admin.js +31 -21
- package/dist/components/admin.js.map +1 -1
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +21 -18
- package/dist/components/agents.js.map +1 -1
- package/dist/components/app-chrome.d.ts.map +1 -1
- package/dist/components/app-chrome.js +5 -5
- package/dist/components/app-chrome.js.map +1 -1
- package/dist/components/approvals.d.ts.map +1 -1
- package/dist/components/approvals.js +2 -2
- package/dist/components/approvals.js.map +1 -1
- package/dist/components/building-blocks.d.ts.map +1 -1
- package/dist/components/building-blocks.js +13 -10
- package/dist/components/building-blocks.js.map +1 -1
- package/dist/components/charts.d.ts +2 -2
- package/dist/components/charts.d.ts.map +1 -1
- package/dist/components/charts.js +14 -11
- package/dist/components/charts.js.map +1 -1
- package/dist/components/chat.d.ts +2 -2
- package/dist/components/chat.d.ts.map +1 -1
- package/dist/components/chat.js +22 -18
- package/dist/components/chat.js.map +1 -1
- package/dist/components/commerce.d.ts.map +1 -1
- package/dist/components/commerce.js +20 -16
- package/dist/components/commerce.js.map +1 -1
- package/dist/components/data-display.d.ts +0 -5
- package/dist/components/data-display.d.ts.map +1 -1
- package/dist/components/data-display.js +41 -22
- package/dist/components/data-display.js.map +1 -1
- package/dist/components/data-table.d.ts +2 -2
- package/dist/components/data-table.d.ts.map +1 -1
- package/dist/components/data-table.js +3 -3
- package/dist/components/data-table.js.map +1 -1
- package/dist/components/developer.d.ts.map +1 -1
- package/dist/components/developer.js +7 -6
- package/dist/components/developer.js.map +1 -1
- package/dist/components/feedback.d.ts.map +1 -1
- package/dist/components/feedback.js +5 -4
- package/dist/components/feedback.js.map +1 -1
- package/dist/components/forms.d.ts.map +1 -1
- package/dist/components/forms.js +63 -21
- package/dist/components/forms.js.map +1 -1
- package/dist/components/foundation.d.ts.map +1 -1
- package/dist/components/foundation.js +13 -9
- package/dist/components/foundation.js.map +1 -1
- package/dist/components/household.d.ts +19 -0
- package/dist/components/household.d.ts.map +1 -0
- package/dist/components/household.js +137 -0
- package/dist/components/household.js.map +1 -0
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs.d.ts.map +1 -1
- package/dist/components/inputs.js +33 -8
- package/dist/components/inputs.js.map +1 -1
- package/dist/components/life.d.ts +26 -0
- package/dist/components/life.d.ts.map +1 -0
- package/dist/components/life.js +186 -0
- package/dist/components/life.js.map +1 -0
- package/dist/components/mail.d.ts.map +1 -1
- package/dist/components/mail.js +5 -5
- package/dist/components/mail.js.map +1 -1
- package/dist/components/media.d.ts.map +1 -1
- package/dist/components/media.js +62 -11
- package/dist/components/media.js.map +1 -1
- package/dist/components/navigation.d.ts +3 -1
- package/dist/components/navigation.d.ts.map +1 -1
- package/dist/components/navigation.js +287 -20
- package/dist/components/navigation.js.map +1 -1
- package/dist/components/operations.d.ts.map +1 -1
- package/dist/components/operations.js +10 -10
- package/dist/components/operations.js.map +1 -1
- package/dist/components/overlays.d.ts.map +1 -1
- package/dist/components/overlays.js +2 -2
- package/dist/components/overlays.js.map +1 -1
- package/dist/components/previews.js +2 -2
- package/dist/components/previews.js.map +1 -1
- package/dist/components/primitives.js +2 -2
- package/dist/components/primitives.js.map +1 -1
- package/dist/components/qr-code.d.ts +8 -0
- package/dist/components/qr-code.d.ts.map +1 -0
- package/dist/components/qr-code.js +18 -0
- package/dist/components/qr-code.js.map +1 -0
- package/dist/components/real-estate.d.ts.map +1 -1
- package/dist/components/real-estate.js +5 -5
- package/dist/components/real-estate.js.map +1 -1
- package/dist/components/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor.js +1 -1
- package/dist/components/rich-text-editor.js.map +1 -1
- package/dist/components/select-menu.js +1 -1
- package/dist/components/select-menu.js.map +1 -1
- package/dist/components/shell.d.ts +0 -4
- package/dist/components/shell.d.ts.map +1 -1
- package/dist/components/shell.js +100 -7
- package/dist/components/shell.js.map +1 -1
- package/dist/components/site.d.ts.map +1 -1
- package/dist/components/site.js +8 -6
- package/dist/components/site.js.map +1 -1
- package/dist/components/status.d.ts.map +1 -1
- package/dist/components/status.js +2 -2
- package/dist/components/status.js.map +1 -1
- package/dist/components/system.d.ts.map +1 -1
- package/dist/components/system.js +3 -2
- package/dist/components/system.js.map +1 -1
- package/dist/components/types.d.ts +589 -18
- package/dist/components/types.d.ts.map +1 -1
- package/dist/components/workspace.d.ts.map +1 -1
- package/dist/components/workspace.js +15 -12
- package/dist/components/workspace.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/qr.d.ts +14 -0
- package/dist/qr.d.ts.map +1 -0
- package/dist/qr.js +298 -0
- package/dist/qr.js.map +1 -0
- package/dist/strings.d.ts +126 -4
- package/dist/strings.d.ts.map +1 -1
- package/dist/strings.js +88 -1
- package/dist/strings.js.map +1 -1
- package/dist/themes.css +15592 -10463
- package/package.json +2 -1
- package/src/components/admin.tsx +66 -23
- package/src/components/agents.tsx +22 -20
- package/src/components/app-chrome.tsx +9 -5
- package/src/components/approvals.tsx +3 -1
- package/src/components/building-blocks.tsx +24 -13
- package/src/components/charts.tsx +17 -12
- package/src/components/chat.tsx +54 -31
- package/src/components/commerce.tsx +58 -24
- package/src/components/data-display.tsx +106 -38
- package/src/components/data-table.tsx +11 -7
- package/src/components/developer.tsx +15 -6
- package/src/components/feedback.tsx +5 -3
- package/src/components/forms.tsx +101 -23
- package/src/components/foundation.tsx +9 -5
- package/src/components/household.tsx +489 -0
- package/src/components/index.ts +32 -1
- package/src/components/inputs.tsx +44 -7
- package/src/components/life.tsx +672 -0
- package/src/components/mail.tsx +7 -3
- package/src/components/media.tsx +88 -16
- package/src/components/navigation.tsx +651 -71
- package/src/components/operations.tsx +17 -8
- package/src/components/overlays.tsx +7 -2
- package/src/components/previews.tsx +2 -2
- package/src/components/primitives.tsx +2 -2
- package/src/components/qr-code.tsx +30 -0
- package/src/components/real-estate.tsx +7 -4
- package/src/components/rich-text-editor.tsx +7 -1
- package/src/components/select-menu.tsx +1 -1
- package/src/components/shell.tsx +237 -11
- package/src/components/site.tsx +18 -4
- package/src/components/status.tsx +2 -0
- package/src/components/system.tsx +3 -2
- package/src/components/types.ts +583 -18
- package/src/components/workspace.tsx +37 -15
- package/src/index.ts +2 -0
- package/src/qr.ts +300 -0
- package/src/strings.ts +297 -1
package/src/strings.ts
CHANGED
|
@@ -102,8 +102,22 @@ export interface UIStrings {
|
|
|
102
102
|
/** Accessible name of main navigation landmarks. */
|
|
103
103
|
mainNavigation: string;
|
|
104
104
|
sidebar: string;
|
|
105
|
+
/** Name of a `Sidebar as="aside"` and its button on phones, unless the app passes `label` */
|
|
106
|
+
filters: string;
|
|
105
107
|
expandSidebar: string;
|
|
106
108
|
collapseSidebar: string;
|
|
109
|
+
/** The menu button that opens the sidebar on phones. */
|
|
110
|
+
openNavigation: string;
|
|
111
|
+
closeNavigation: string;
|
|
112
|
+
/** The "…" button of a sidebar item. */
|
|
113
|
+
moreActionsFor: (label: string) => string;
|
|
114
|
+
/** Said after a link that opens in a new tab. */
|
|
115
|
+
opensInNewTab: string;
|
|
116
|
+
/** Said for the dot marker on a sidebar item. */
|
|
117
|
+
newActivity: string;
|
|
118
|
+
switchWorkspace: string;
|
|
119
|
+
/** The account menu (UserMenu). */
|
|
120
|
+
account: string;
|
|
107
121
|
/* Carousel */
|
|
108
122
|
/** aria-roledescription of a carousel slide. */
|
|
109
123
|
slide: string;
|
|
@@ -122,6 +136,9 @@ export interface UIStrings {
|
|
|
122
136
|
pickRange: string;
|
|
123
137
|
decrease: string;
|
|
124
138
|
increase: string;
|
|
139
|
+
/** TextField type="password": the reveal button */
|
|
140
|
+
showPassword: string;
|
|
141
|
+
hidePassword: string;
|
|
125
142
|
verificationCode: string;
|
|
126
143
|
digitN: (n: number) => string;
|
|
127
144
|
dropFiles: string;
|
|
@@ -178,6 +195,13 @@ export interface UIStrings {
|
|
|
178
195
|
/* Shell: SideRail, Dock */
|
|
179
196
|
tools: string;
|
|
180
197
|
quickActions: string;
|
|
198
|
+
/** SideRail toggle: show the names next to the icons */
|
|
199
|
+
expandRail: string;
|
|
200
|
+
/** SideRail toggle: back to icons only */
|
|
201
|
+
collapseRail: string;
|
|
202
|
+
/** FloatingLayout bottom sheet handle */
|
|
203
|
+
expandPanel: string;
|
|
204
|
+
collapsePanel: string;
|
|
181
205
|
/* Site: ChatLauncher, CookieConsent */
|
|
182
206
|
assistant: string;
|
|
183
207
|
openAssistant: string;
|
|
@@ -453,6 +477,8 @@ export interface UIStrings {
|
|
|
453
477
|
fileReady: string;
|
|
454
478
|
newExport: string;
|
|
455
479
|
twoFactorSteps: [string, string, string];
|
|
480
|
+
/** TwoFactorSetup: the checkbox under the code field */
|
|
481
|
+
trustDevice: string;
|
|
456
482
|
qrCode: string;
|
|
457
483
|
scanText: string;
|
|
458
484
|
next: string;
|
|
@@ -466,6 +492,100 @@ export interface UIStrings {
|
|
|
466
492
|
contrastAA: string;
|
|
467
493
|
contrastAALarge: string;
|
|
468
494
|
contrastFails: string;
|
|
495
|
+
/* Life: HabitTracker, MoodPicker, VitalTile, ActivityRings, SleepChart, MedicationList, GoalCard, InsightCard, ConsentList */
|
|
496
|
+
habits: string;
|
|
497
|
+
/** "12-day streak" */
|
|
498
|
+
habitStreak: (days: number) => string;
|
|
499
|
+
/** "Mark {habit} done today" */
|
|
500
|
+
markHabitDone: (habit: string) => string;
|
|
501
|
+
habitDone: string;
|
|
502
|
+
habitMissed: string;
|
|
503
|
+
habitNoData: string;
|
|
504
|
+
howAreYou: string;
|
|
505
|
+
/** The five mood words, lowest first. */
|
|
506
|
+
moodLevels: [string, string, string, string, string];
|
|
507
|
+
inRange: string;
|
|
508
|
+
belowRange: string;
|
|
509
|
+
aboveRange: string;
|
|
510
|
+
/** "Normal 60–100" */
|
|
511
|
+
normalRange: (low: string, high: string) => string;
|
|
512
|
+
activity: string;
|
|
513
|
+
/** "6,240 of 8,000 steps" */
|
|
514
|
+
ofGoal: (value: string, goal: string) => string;
|
|
515
|
+
sleepStages: string;
|
|
516
|
+
/** Names of the sleep stages. */
|
|
517
|
+
sleepStageNames: Record<"awake" | "rem" | "light" | "deep", string>;
|
|
518
|
+
/** "7 h 32 min" */
|
|
519
|
+
durationHm: (hours: number, minutes: number) => string;
|
|
520
|
+
/** "Asleep 7 h 32 min" */
|
|
521
|
+
totalSleep: (duration: string) => string;
|
|
522
|
+
medication: string;
|
|
523
|
+
medTaken: string;
|
|
524
|
+
medDue: string;
|
|
525
|
+
medMissed: string;
|
|
526
|
+
medUpcoming: string;
|
|
527
|
+
/** "Mark {name} as taken" */
|
|
528
|
+
markTaken: (name: string) => string;
|
|
529
|
+
/** "By {date}" */
|
|
530
|
+
dueBy: (date: string) => string;
|
|
531
|
+
whyInsight: string;
|
|
532
|
+
insightAccept: string;
|
|
533
|
+
insightSnooze: string;
|
|
534
|
+
dataAccess: string;
|
|
535
|
+
revokeAccess: string;
|
|
536
|
+
/** "Last used {date}" */
|
|
537
|
+
lastUsed: (date: string) => string;
|
|
538
|
+
notUsedYet: string;
|
|
539
|
+
requiredScope: string;
|
|
540
|
+
/* Life: BudgetList, SubscriptionList, NetWorthCard, DeadlineList, PolicyCard, CoverageMatrix, ClaimTimeline, DocumentList */
|
|
541
|
+
budgets: string;
|
|
542
|
+
/** "€120 left" */
|
|
543
|
+
budgetLeft: (amount: string) => string;
|
|
544
|
+
/** "€40 over" */
|
|
545
|
+
budgetOver: (amount: string) => string;
|
|
546
|
+
subscriptions: string;
|
|
547
|
+
/** "€86 a month" */
|
|
548
|
+
perMonthTotal: (amount: string) => string;
|
|
549
|
+
/** "€1,032 a year" */
|
|
550
|
+
perYearTotal: (amount: string) => string;
|
|
551
|
+
/** "Manage {name}" */
|
|
552
|
+
manageItem: (name: string) => string;
|
|
553
|
+
/** "Trial" */
|
|
554
|
+
trialEnds: string;
|
|
555
|
+
cancelledLabel: string;
|
|
556
|
+
/** "Next on {date}" */
|
|
557
|
+
nextCharge: (date: string) => string;
|
|
558
|
+
/** Words for billing periods. */
|
|
559
|
+
periodWord: Record<"week" | "month" | "quarter" | "year", string>;
|
|
560
|
+
netWorth: string;
|
|
561
|
+
assetsLabel: string;
|
|
562
|
+
liabilitiesLabel: string;
|
|
563
|
+
deadlines: string;
|
|
564
|
+
/** "Overdue by 3 days" */
|
|
565
|
+
overdueBy: (days: number) => string;
|
|
566
|
+
dueToday: string;
|
|
567
|
+
/** "In 12 days" */
|
|
568
|
+
dueIn: (days: number) => string;
|
|
569
|
+
/** "Mark {title} done" */
|
|
570
|
+
markDone: (title: string) => string;
|
|
571
|
+
coverageLabel: string;
|
|
572
|
+
covered: string;
|
|
573
|
+
partlyCovered: string;
|
|
574
|
+
notCovered: string;
|
|
575
|
+
sumInsured: string;
|
|
576
|
+
deductibleLabel: string;
|
|
577
|
+
/** "Renews {date}" */
|
|
578
|
+
renewsOn: (date: string) => string;
|
|
579
|
+
policyNo: string;
|
|
580
|
+
/** Words for a policy's status. */
|
|
581
|
+
policyStatus: Record<"active" | "pending" | "expiring" | "lapsed", string>;
|
|
582
|
+
claimAmount: string;
|
|
583
|
+
documents: string;
|
|
584
|
+
expired: string;
|
|
585
|
+
/** "Expires in 40 days" */
|
|
586
|
+
expiresIn: (days: number) => string;
|
|
587
|
+
/** "Valid until {date}" */
|
|
588
|
+
expiresOn: (date: string) => string;
|
|
469
589
|
// @@KEYS
|
|
470
590
|
}
|
|
471
591
|
|
|
@@ -610,6 +730,7 @@ export const ADMIN_STRINGS: Pick<
|
|
|
610
730
|
| "newExport"
|
|
611
731
|
| "twoFactorSteps"
|
|
612
732
|
| "qrCode"
|
|
733
|
+
| "trustDevice"
|
|
613
734
|
| "scanText"
|
|
614
735
|
| "enterCode"
|
|
615
736
|
| "codeFailed"
|
|
@@ -621,7 +742,9 @@ export const ADMIN_STRINGS: Pick<
|
|
|
621
742
|
| "contrastAA"
|
|
622
743
|
| "contrastAALarge"
|
|
623
744
|
| "contrastFails"
|
|
745
|
+
| "switchWorkspace"
|
|
624
746
|
> = {
|
|
747
|
+
switchWorkspace: "Switch workspace",
|
|
625
748
|
minimum: "Minimum",
|
|
626
749
|
maximum: "Maximum",
|
|
627
750
|
min: "Min",
|
|
@@ -685,6 +808,7 @@ export const ADMIN_STRINGS: Pick<
|
|
|
685
808
|
newExport: "New export",
|
|
686
809
|
twoFactorSteps: ["Scan", "Confirm", "Save codes"],
|
|
687
810
|
qrCode: "QR code",
|
|
811
|
+
trustDevice: "Trust this device",
|
|
688
812
|
scanText:
|
|
689
813
|
"Scan the code with your authenticator app. If you can't scan it, enter the key by hand.",
|
|
690
814
|
enterCode: "Enter the 6-digit code from the app.",
|
|
@@ -1061,8 +1185,12 @@ export const FORMS_STRINGS: Pick<
|
|
|
1061
1185
|
| "dropHint"
|
|
1062
1186
|
| "uploaded"
|
|
1063
1187
|
| "cancelUpload"
|
|
1188
|
+
| "showPassword"
|
|
1189
|
+
| "hidePassword"
|
|
1064
1190
|
> = {
|
|
1065
1191
|
noMatches: "No matches",
|
|
1192
|
+
showPassword: "Show password",
|
|
1193
|
+
hidePassword: "Hide password",
|
|
1066
1194
|
createOption: (text) => `Create “${text}”`,
|
|
1067
1195
|
tagPlaceholder: "Type and press Enter",
|
|
1068
1196
|
previousMonth: "Previous month",
|
|
@@ -1126,16 +1254,30 @@ export const NAVIGATION_STRINGS: Pick<
|
|
|
1126
1254
|
| "previousPage"
|
|
1127
1255
|
| "nextPage"
|
|
1128
1256
|
| "sidebar"
|
|
1257
|
+
| "filters"
|
|
1129
1258
|
| "expandSidebar"
|
|
1130
1259
|
| "collapseSidebar"
|
|
1260
|
+
| "openNavigation"
|
|
1261
|
+
| "closeNavigation"
|
|
1262
|
+
| "moreActionsFor"
|
|
1263
|
+
| "opensInNewTab"
|
|
1264
|
+
| "newActivity"
|
|
1265
|
+
| "account"
|
|
1131
1266
|
> = {
|
|
1132
1267
|
breadcrumb: "Breadcrumb",
|
|
1133
1268
|
pagination: "Pagination",
|
|
1134
1269
|
previousPage: "Previous page",
|
|
1135
1270
|
nextPage: "Next page",
|
|
1136
1271
|
sidebar: "Sidebar",
|
|
1272
|
+
filters: "Filters",
|
|
1137
1273
|
expandSidebar: "Expand sidebar",
|
|
1138
1274
|
collapseSidebar: "Collapse sidebar",
|
|
1275
|
+
openNavigation: "Open navigation",
|
|
1276
|
+
closeNavigation: "Close navigation",
|
|
1277
|
+
moreActionsFor: (label) => `More actions for ${label}`,
|
|
1278
|
+
opensInNewTab: "(opens in a new tab)",
|
|
1279
|
+
newActivity: "New activity",
|
|
1280
|
+
account: "Account",
|
|
1139
1281
|
};
|
|
1140
1282
|
|
|
1141
1283
|
/** Strings of the components in `operations.tsx`. */
|
|
@@ -1325,9 +1467,16 @@ export const SELECT_MENU_STRINGS: Pick<UIStrings, "options"> = {
|
|
|
1325
1467
|
};
|
|
1326
1468
|
|
|
1327
1469
|
/** Strings of the components in `shell.tsx`. */
|
|
1328
|
-
export const SHELL_STRINGS: Pick<
|
|
1470
|
+
export const SHELL_STRINGS: Pick<
|
|
1471
|
+
UIStrings,
|
|
1472
|
+
"tools" | "quickActions" | "expandRail" | "collapseRail" | "expandPanel" | "collapsePanel"
|
|
1473
|
+
> = {
|
|
1329
1474
|
tools: "Tools",
|
|
1330
1475
|
quickActions: "Quick actions",
|
|
1476
|
+
expandRail: "Show names",
|
|
1477
|
+
collapseRail: "Icons only",
|
|
1478
|
+
expandPanel: "Expand panel",
|
|
1479
|
+
collapsePanel: "Collapse panel",
|
|
1331
1480
|
};
|
|
1332
1481
|
|
|
1333
1482
|
/** Strings of the components in `site.tsx`. */
|
|
@@ -1436,6 +1585,151 @@ export const WORKSPACE_STRINGS: Pick<
|
|
|
1436
1585
|
accept: "Accept",
|
|
1437
1586
|
};
|
|
1438
1587
|
|
|
1588
|
+
/** Strings of the components in `life.tsx`. */
|
|
1589
|
+
export const LIFE_STRINGS: Pick<
|
|
1590
|
+
UIStrings,
|
|
1591
|
+
| "habits"
|
|
1592
|
+
| "habitStreak"
|
|
1593
|
+
| "markHabitDone"
|
|
1594
|
+
| "habitDone"
|
|
1595
|
+
| "habitMissed"
|
|
1596
|
+
| "habitNoData"
|
|
1597
|
+
| "howAreYou"
|
|
1598
|
+
| "moodLevels"
|
|
1599
|
+
| "inRange"
|
|
1600
|
+
| "belowRange"
|
|
1601
|
+
| "aboveRange"
|
|
1602
|
+
| "normalRange"
|
|
1603
|
+
| "activity"
|
|
1604
|
+
| "ofGoal"
|
|
1605
|
+
| "sleepStages"
|
|
1606
|
+
| "sleepStageNames"
|
|
1607
|
+
| "durationHm"
|
|
1608
|
+
| "totalSleep"
|
|
1609
|
+
| "medication"
|
|
1610
|
+
| "medTaken"
|
|
1611
|
+
| "medDue"
|
|
1612
|
+
| "medMissed"
|
|
1613
|
+
| "medUpcoming"
|
|
1614
|
+
| "markTaken"
|
|
1615
|
+
| "dueBy"
|
|
1616
|
+
| "whyInsight"
|
|
1617
|
+
| "insightAccept"
|
|
1618
|
+
| "insightSnooze"
|
|
1619
|
+
| "dataAccess"
|
|
1620
|
+
| "revokeAccess"
|
|
1621
|
+
| "lastUsed"
|
|
1622
|
+
| "notUsedYet"
|
|
1623
|
+
| "requiredScope"
|
|
1624
|
+
> = {
|
|
1625
|
+
habits: "Habits",
|
|
1626
|
+
habitStreak: (days) => `${days}-day streak`,
|
|
1627
|
+
markHabitDone: (habit) => `Mark ${habit} done today`,
|
|
1628
|
+
habitDone: "Done",
|
|
1629
|
+
habitMissed: "Missed",
|
|
1630
|
+
habitNoData: "No entry",
|
|
1631
|
+
howAreYou: "How are you feeling?",
|
|
1632
|
+
moodLevels: ["Awful", "Low", "Okay", "Good", "Great"],
|
|
1633
|
+
inRange: "In range",
|
|
1634
|
+
belowRange: "Below range",
|
|
1635
|
+
aboveRange: "Above range",
|
|
1636
|
+
normalRange: (low, high) => `Normal ${low}–${high}`,
|
|
1637
|
+
activity: "Activity",
|
|
1638
|
+
ofGoal: (value, goal) => `${value} of ${goal}`,
|
|
1639
|
+
sleepStages: "Sleep stages",
|
|
1640
|
+
sleepStageNames: { awake: "Awake", rem: "REM", light: "Light", deep: "Deep" },
|
|
1641
|
+
durationHm: (hours, minutes) =>
|
|
1642
|
+
hours ? (minutes ? `${hours} h ${minutes} min` : `${hours} h`) : `${minutes} min`,
|
|
1643
|
+
totalSleep: (duration) => `Asleep ${duration}`,
|
|
1644
|
+
medication: "Medication",
|
|
1645
|
+
medTaken: "Taken",
|
|
1646
|
+
medDue: "Due",
|
|
1647
|
+
medMissed: "Missed",
|
|
1648
|
+
medUpcoming: "Later",
|
|
1649
|
+
markTaken: (name) => `Mark ${name} as taken`,
|
|
1650
|
+
dueBy: (date) => `By ${date}`,
|
|
1651
|
+
whyInsight: "Why am I seeing this?",
|
|
1652
|
+
insightAccept: "Do it",
|
|
1653
|
+
insightSnooze: "Later",
|
|
1654
|
+
dataAccess: "Data access",
|
|
1655
|
+
revokeAccess: "Revoke access",
|
|
1656
|
+
lastUsed: (date) => `Last used ${date}`,
|
|
1657
|
+
notUsedYet: "Not used yet",
|
|
1658
|
+
requiredScope: "Required",
|
|
1659
|
+
};
|
|
1660
|
+
|
|
1661
|
+
/** Strings of the components in `household.tsx`. */
|
|
1662
|
+
export const HOUSEHOLD_STRINGS: Pick<
|
|
1663
|
+
UIStrings,
|
|
1664
|
+
| "budgets"
|
|
1665
|
+
| "budgetLeft"
|
|
1666
|
+
| "budgetOver"
|
|
1667
|
+
| "subscriptions"
|
|
1668
|
+
| "perMonthTotal"
|
|
1669
|
+
| "perYearTotal"
|
|
1670
|
+
| "manageItem"
|
|
1671
|
+
| "trialEnds"
|
|
1672
|
+
| "cancelledLabel"
|
|
1673
|
+
| "nextCharge"
|
|
1674
|
+
| "periodWord"
|
|
1675
|
+
| "netWorth"
|
|
1676
|
+
| "assetsLabel"
|
|
1677
|
+
| "liabilitiesLabel"
|
|
1678
|
+
| "deadlines"
|
|
1679
|
+
| "overdueBy"
|
|
1680
|
+
| "dueToday"
|
|
1681
|
+
| "dueIn"
|
|
1682
|
+
| "markDone"
|
|
1683
|
+
| "coverageLabel"
|
|
1684
|
+
| "covered"
|
|
1685
|
+
| "partlyCovered"
|
|
1686
|
+
| "notCovered"
|
|
1687
|
+
| "sumInsured"
|
|
1688
|
+
| "deductibleLabel"
|
|
1689
|
+
| "renewsOn"
|
|
1690
|
+
| "policyNo"
|
|
1691
|
+
| "policyStatus"
|
|
1692
|
+
| "claimAmount"
|
|
1693
|
+
| "documents"
|
|
1694
|
+
| "expired"
|
|
1695
|
+
| "expiresIn"
|
|
1696
|
+
| "expiresOn"
|
|
1697
|
+
> = {
|
|
1698
|
+
budgets: "Budgets",
|
|
1699
|
+
budgetLeft: (amount) => `${amount} left`,
|
|
1700
|
+
budgetOver: (amount) => `${amount} over`,
|
|
1701
|
+
subscriptions: "Subscriptions",
|
|
1702
|
+
perMonthTotal: (amount) => `${amount} a month`,
|
|
1703
|
+
perYearTotal: (amount) => `${amount} a year`,
|
|
1704
|
+
manageItem: (name) => `Manage ${name}`,
|
|
1705
|
+
trialEnds: "Trial",
|
|
1706
|
+
cancelledLabel: "Cancelled",
|
|
1707
|
+
nextCharge: (date) => `Next on ${date}`,
|
|
1708
|
+
periodWord: { week: "week", month: "month", quarter: "quarter", year: "year" },
|
|
1709
|
+
netWorth: "Net worth",
|
|
1710
|
+
assetsLabel: "Assets",
|
|
1711
|
+
liabilitiesLabel: "Liabilities",
|
|
1712
|
+
deadlines: "Deadlines",
|
|
1713
|
+
overdueBy: (days) => (days === 1 ? "Overdue by 1 day" : `Overdue by ${days} days`),
|
|
1714
|
+
dueToday: "Today",
|
|
1715
|
+
dueIn: (days) => (days === 1 ? "Tomorrow" : `In ${days} days`),
|
|
1716
|
+
markDone: (title) => `Mark ${title} done`,
|
|
1717
|
+
coverageLabel: "Coverage",
|
|
1718
|
+
covered: "Covered",
|
|
1719
|
+
partlyCovered: "Partly",
|
|
1720
|
+
notCovered: "Not covered",
|
|
1721
|
+
sumInsured: "Sum insured",
|
|
1722
|
+
deductibleLabel: "Deductible",
|
|
1723
|
+
renewsOn: (date) => `Renews ${date}`,
|
|
1724
|
+
policyNo: "Policy no.",
|
|
1725
|
+
policyStatus: { active: "Active", pending: "Pending", expiring: "Expiring", lapsed: "Lapsed" },
|
|
1726
|
+
claimAmount: "Claimed",
|
|
1727
|
+
documents: "Documents",
|
|
1728
|
+
expired: "Expired",
|
|
1729
|
+
expiresIn: (days) => (days === 1 ? "Expires tomorrow" : `Expires in ${days} days`),
|
|
1730
|
+
expiresOn: (date) => `Valid until ${date}`,
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1439
1733
|
/** The English defaults: every group together. */
|
|
1440
1734
|
export const DEFAULT_STRINGS: UIStrings = /* @__PURE__ */ Object.assign(
|
|
1441
1735
|
{},
|
|
@@ -1454,6 +1748,8 @@ export const DEFAULT_STRINGS: UIStrings = /* @__PURE__ */ Object.assign(
|
|
|
1454
1748
|
FEEDBACK_STRINGS,
|
|
1455
1749
|
FORM_STRINGS,
|
|
1456
1750
|
FORMS_STRINGS,
|
|
1751
|
+
HOUSEHOLD_STRINGS,
|
|
1752
|
+
LIFE_STRINGS,
|
|
1457
1753
|
MAIL_STRINGS,
|
|
1458
1754
|
MEDIA_STRINGS,
|
|
1459
1755
|
NAVIGATION_STRINGS,
|