@rizom/ui 0.2.0-alpha.44 → 0.2.0-alpha.46
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/ecosystem-content.ts +49 -0
- package/src/index.ts +4 -0
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { EcosystemContent } from "./Ecosystem";
|
|
2
|
+
import type { RizomBrandSuffix } from "./types";
|
|
3
|
+
|
|
4
|
+
const HERE_LABEL = "You are here";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Default ecosystem content, sourced from rizom.work brain-data:
|
|
8
|
+
* ../rizom-work/brain-data/site-content/home/ecosystem.md
|
|
9
|
+
*/
|
|
10
|
+
const DEFAULT_CARDS = [
|
|
11
|
+
{
|
|
12
|
+
suffix: "work",
|
|
13
|
+
title: "The service",
|
|
14
|
+
body: "Workshops and consulting that apply the methodology in live engagements.",
|
|
15
|
+
linkLabel: "Visit rizom.work →",
|
|
16
|
+
linkHref: "https://rizom.work",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
suffix: "foundation",
|
|
20
|
+
title: "The source",
|
|
21
|
+
body: "The non-profit that holds the IP and stewards the methodology independently.",
|
|
22
|
+
linkLabel: "Read the manifesto →",
|
|
23
|
+
linkHref: "https://rizom.foundation",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
suffix: "ai",
|
|
27
|
+
title: "The tools",
|
|
28
|
+
body: "Open-source AI agents built on the methodology, the technical layer underneath.",
|
|
29
|
+
linkLabel: "See the platform →",
|
|
30
|
+
linkHref: "https://rizom.ai",
|
|
31
|
+
},
|
|
32
|
+
] as const;
|
|
33
|
+
|
|
34
|
+
export function getRizomEcosystemContent(
|
|
35
|
+
current?: RizomBrandSuffix,
|
|
36
|
+
): EcosystemContent {
|
|
37
|
+
return {
|
|
38
|
+
eyebrow: "The Ecosystem",
|
|
39
|
+
headline: "One practice. *Three faces.*",
|
|
40
|
+
cards: DEFAULT_CARDS.map((card) =>
|
|
41
|
+
card.suffix === current
|
|
42
|
+
? { ...card, linkLabel: HERE_LABEL, linkHref: "" }
|
|
43
|
+
: card,
|
|
44
|
+
),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const rizomEcosystemContent: EcosystemContent =
|
|
49
|
+
getRizomEcosystemContent();
|
package/src/index.ts
CHANGED
|
@@ -26,6 +26,10 @@ export type { WordmarkProps } from "./Wordmark";
|
|
|
26
26
|
|
|
27
27
|
export { Ecosystem } from "./Ecosystem";
|
|
28
28
|
export type { EcosystemCard, EcosystemContent } from "./Ecosystem";
|
|
29
|
+
export {
|
|
30
|
+
getRizomEcosystemContent,
|
|
31
|
+
rizomEcosystemContent,
|
|
32
|
+
} from "./ecosystem-content";
|
|
29
33
|
|
|
30
34
|
export type {
|
|
31
35
|
RizomBrandSuffix,
|