@fabio.caffarello/react-design-system 4.3.0 → 4.4.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/granular/ui/primitives/DataBadge/DataBadge.js +60 -57
- package/dist/granular/ui/primitives/DataBadge/DataBadge.js.map +1 -1
- package/dist/index.cjs +32 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/react-design-system.css +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +33 -30
- package/dist/server/index.js.map +1 -1
- package/dist/ui/primitives/DataBadge/DataBadge.d.ts +9 -6
- package/package.json +1 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
/**
|
|
3
|
-
* Semantic tone for a {@link DataBadge}.
|
|
4
|
-
* (role, not tone) so the soft-wash
|
|
5
|
-
* AA-verified
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* Semantic tone for a {@link DataBadge}. The status/brand members mirror the
|
|
4
|
+
* `Badge` vocabulary (role, not tone) so the soft-wash treatment is shared
|
|
5
|
+
* and already AA-verified; `dataviz` adds a CATEGORICAL member (a
|
|
6
|
+
* reddish-purple wash for "category / analytical" data, the badge-facing
|
|
7
|
+
* counterpart to the chart palette) that is intentionally NOT a status.
|
|
8
|
+
* Map a consumer's tone names onto these roles: `default → neutral`,
|
|
9
|
+
* `destructive → error`, `brand → primary`, `accent → dataviz` (the
|
|
10
|
+
* data-viz purple — RDS `accent` is cyan, so the category tone is `dataviz`).
|
|
8
11
|
*/
|
|
9
|
-
export type DataBadgeTone = "neutral" | "success" | "warning" | "error" | "info" | "primary" | "secondary";
|
|
12
|
+
export type DataBadgeTone = "neutral" | "success" | "warning" | "error" | "info" | "primary" | "secondary" | "dataviz";
|
|
10
13
|
export type DataBadgeSize = "sm" | "md";
|
|
11
14
|
export interface DataBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
12
15
|
/** Primary datum — the value the badge is about (e.g. "L2", "Aprovada"). */
|