@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.
@@ -1,12 +1,15 @@
1
1
  import type { HTMLAttributes, ReactNode } from "react";
2
2
  /**
3
- * Semantic tone for a {@link DataBadge}. Mirrors the `Badge` vocabulary
4
- * (role, not tone) so the soft-wash color treatment is shared and already
5
- * AA-verified. Map a consumer's tone names onto these roles:
6
- * `default neutral`, `destructive error`, `brand primary`,
7
- * `accent info` (or `secondary`).
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"). */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fabio.caffarello/react-design-system",
3
3
  "private": false,
4
- "version": "4.3.0",
4
+ "version": "4.4.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",