@makoai/app-sdk 2.25.0 → 2.26.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/README.md +3 -0
- package/components/badge.tsx +8 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -577,6 +577,9 @@ stays the default:
|
|
|
577
577
|
- `SheetContent closeLabel="Fermer"`: the close button's screen-reader label.
|
|
578
578
|
- `SelectContent container={document.fullscreenElement ?? undefined}`: where
|
|
579
579
|
the list portals, for a fullscreen page.
|
|
580
|
+
- `Badge variant="success" | "warning" | "danger" | "info" | "violet" | "muted"`
|
|
581
|
+
(2.26): status tones in the house tokens (`--positive`, `--warning`,
|
|
582
|
+
`--negative`, `--brand`, `--chart-4`). Stock variants are unchanged.
|
|
580
583
|
|
|
581
584
|
`tailwind.css` lets Tailwind see the SDK's classes (`@source`) and maps the
|
|
582
585
|
house tokens onto Tailwind's colour names (`bg-popover`,
|
package/components/badge.tsx
CHANGED
|
@@ -17,6 +17,14 @@ const badgeVariants = cva(
|
|
|
17
17
|
"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
18
18
|
ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
19
19
|
link: "text-primary underline-offset-4 [a&]:hover:underline",
|
|
20
|
+
// Mako thin prop (2.26): status tones in the house tokens, light and
|
|
21
|
+
// dark alike. From the FR dashboards' copies (fr-sales, fr-renewals, fr-sdr).
|
|
22
|
+
success: "border-[color-mix(in_srgb,var(--positive)_30%,transparent)] bg-[color-mix(in_srgb,var(--positive)_12%,transparent)] text-[var(--positive)]",
|
|
23
|
+
warning: "border-[color-mix(in_srgb,var(--warning)_30%,transparent)] bg-[color-mix(in_srgb,var(--warning)_12%,transparent)] text-[var(--warning)]",
|
|
24
|
+
danger: "border-[color-mix(in_srgb,var(--negative)_30%,transparent)] bg-[color-mix(in_srgb,var(--negative)_12%,transparent)] text-[var(--negative)]",
|
|
25
|
+
info: "border-[color-mix(in_srgb,var(--brand)_30%,transparent)] bg-[color-mix(in_srgb,var(--brand)_12%,transparent)] text-[var(--brand)]",
|
|
26
|
+
violet: "border-[color-mix(in_srgb,var(--chart-4)_30%,transparent)] bg-[color-mix(in_srgb,var(--chart-4)_12%,transparent)] text-[var(--chart-4)]",
|
|
27
|
+
muted: "border-border bg-muted text-muted-foreground",
|
|
20
28
|
},
|
|
21
29
|
},
|
|
22
30
|
defaultVariants: {
|
package/index.js
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
* in a page (or this export) says which SDK a deployed app actually runs.
|
|
39
39
|
* Kept in step with package.json by snapshot.test.mjs.
|
|
40
40
|
*/
|
|
41
|
-
export const SDK_VERSION = "2.
|
|
41
|
+
export const SDK_VERSION = "2.26.0";
|
|
42
42
|
if (typeof window !== "undefined") {
|
|
43
43
|
try {
|
|
44
44
|
window.__MAKO_APP_SDK__ = SDK_VERSION;
|