@blakesteve/roster 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.
@@ -5,7 +5,21 @@
5
5
  *
6
6
  * The left stripe carries the color weight so the fill can stay quiet enough
7
7
  * to sit inside a form without shouting.
8
+ *
9
+ * Two additions let this absorb the summary callouts apps were hand-rolling
10
+ * beside it — a labeled, accent-keyed panel carrying a sentence of prose is
11
+ * this component with a `title`, not a different component:
12
+ *
13
+ * - `colorScheme: "current"` inherits `currentColor` for the stripe, the text
14
+ * and the fill, so a page can tint an Alert with an accent Roster has never
15
+ * heard of. Pullquote, Stat and InlineCode already work this way; Alert was
16
+ * the one that could not, which is what pushed a consumer to build its own.
17
+ * - `surface: "gradient"` fades the fill out to the right instead of holding a
18
+ * flat tint, which is the treatment those hand-rolled callouts used.
19
+ *
20
+ * Both default to the previous behavior, so neither changes an existing Alert.
8
21
  */
9
22
  export declare const alertVariants: (props?: ({
10
- colorScheme?: "primary" | "amber" | "success" | "error" | "neutral" | "info" | null | undefined;
23
+ colorScheme?: "primary" | "amber" | "success" | "error" | "neutral" | "current" | "info" | null | undefined;
24
+ surface?: "tint" | "gradient" | null | undefined;
11
25
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;