@medixdeck/ui 0.1.25 → 0.1.26
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/README.md +17 -11
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +64 -2
- package/dist/index.js +2403 -2319
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -452,8 +452,8 @@ Shown above the sidebar nav on **desktop only**. Only pass this prop for doctor-
|
|
|
452
452
|
name: 'Dr. Okedi Williams',
|
|
453
453
|
role: 'Cardiologist',
|
|
454
454
|
avatarSrc: '/dr-okedi.jpg', // optional — initials fallback
|
|
455
|
-
tier: 'gold', // "bronze" | "silver" | "gold" | "platinum" | "
|
|
456
|
-
medixScore:
|
|
455
|
+
tier: 'gold', // "bronze" | "silver" | "gold" | "platinum" | "elite-i" | "elite-ii" | "elite-iii" | "elite-iv" | "elite-v"
|
|
456
|
+
medixScore: 8470,
|
|
457
457
|
link: '/doctor/profile', // optional — makes the card clickable
|
|
458
458
|
}}
|
|
459
459
|
>
|
|
@@ -461,15 +461,21 @@ Shown above the sidebar nav on **desktop only**. Only pass this prop for doctor-
|
|
|
461
461
|
</DashboardLayout>
|
|
462
462
|
```
|
|
463
463
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
|
469
|
-
|
|
|
470
|
-
| `
|
|
471
|
-
| `
|
|
472
|
-
| `
|
|
464
|
+
Tiers mirror the backend `MEDIX_SCORE_TIER` bands. Use `getMedixScoreTierForScore(score)` to resolve a tier key from a raw balance.
|
|
465
|
+
|
|
466
|
+
Tier colours and score bands:
|
|
467
|
+
|
|
468
|
+
| Tier | Level | Score band | Label colour | Avatar ring |
|
|
469
|
+
| ----------- | :---: | ----------------- | ------------ | ----------- |
|
|
470
|
+
| `bronze` | 1 | 0 – 999 | `#92400E` | `#D97706` |
|
|
471
|
+
| `silver` | 2 | 1,000 – 4,999 | `#475569` | `#94A3B8` |
|
|
472
|
+
| `gold` | 3 | 5,000 – 14,999 | `#D97706` | `#F59E0B` |
|
|
473
|
+
| `platinum` | 4 | 15,000 – 39,999 | `#0284C7` | `#38BDF8` |
|
|
474
|
+
| `elite-i` | 5 | 40,000 – 59,999 | `#6D28D9` | `#8B5CF6` |
|
|
475
|
+
| `elite-ii` | 6 | 60,000 – 79,999 | `#7C3AED` | `#A78BFA` |
|
|
476
|
+
| `elite-iii` | 7 | 80,000 – 119,999 | `#7700CC` | `#A855F7` |
|
|
477
|
+
| `elite-iv` | 8 | 120,000 – 199,999 | `#5B21B6` | `#7C3AED` |
|
|
478
|
+
| `elite-v` | 9 | 200,000+ | `#4C1D95` | `#6D28D9` |
|
|
473
479
|
|
|
474
480
|
### Greeting subtitle (`greetingSubtext`)
|
|
475
481
|
|