@rizom/ui 0.2.0-alpha.94 → 0.2.0-alpha.95

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Wordmark.tsx +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rizom/ui",
3
- "version": "0.2.0-alpha.94",
3
+ "version": "0.2.0-alpha.95",
4
4
  "description": "Shared Rizom UI primitives for app-owned Rizom site variants.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/Wordmark.tsx CHANGED
@@ -12,11 +12,11 @@ export interface WordmarkProps {
12
12
  suffixClassName?: string;
13
13
  }
14
14
 
15
- const DOT_BY_SUFFIX: Record<RizomBrandSuffix, string> = {
16
- work: "text-accent",
17
- foundation: "text-secondary",
18
- ai: "text-accent-bright",
19
- };
15
+ const DOT_BY_SUFFIX = new Map<string, string>([
16
+ ["work", "text-accent"],
17
+ ["foundation", "text-secondary"],
18
+ ["ai", "text-accent-bright"],
19
+ ]);
20
20
 
21
21
  export const Wordmark = ({
22
22
  name = "rizom",
@@ -25,7 +25,7 @@ export const Wordmark = ({
25
25
  dotClassName,
26
26
  suffixClassName,
27
27
  }: WordmarkProps): JSX.Element => {
28
- const knownDotClass = DOT_BY_SUFFIX[brandSuffix as RizomBrandSuffix];
28
+ const knownDotClass = DOT_BY_SUFFIX.get(brandSuffix);
29
29
  return (
30
30
  <span
31
31
  className={cn(