@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.
- package/package.json +1 -1
- package/src/Wordmark.tsx +6 -6
package/package.json
CHANGED
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
|
|
16
|
-
work
|
|
17
|
-
foundation
|
|
18
|
-
ai
|
|
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
|
|
28
|
+
const knownDotClass = DOT_BY_SUFFIX.get(brandSuffix);
|
|
29
29
|
return (
|
|
30
30
|
<span
|
|
31
31
|
className={cn(
|