@press2ai/theme-therapy-soft 0.2.0 → 0.3.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.
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Warm classless theme for therapy verticals (`otwarty-terapeuta`).
|
|
4
4
|
|
|
5
|
-
Sage greens + warm beiges, Crimson Text serif headings, Inter body. Structurally compatible with `@press2ai/engine` `
|
|
5
|
+
Sage greens + warm beiges, Crimson Text serif headings, Inter body. Structurally compatible with `@press2ai/engine` `CatalogTheme` interface — drop-in replacement for `@press2ai/theme-specialist-glossy` in CEIDG verticals.
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@press2ai/theme-therapy-soft",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Warm sage/beige classless theme for therapy verticals. Crimson Text serif + Inter. Structurally compatible with @press2ai/engine
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Warm sage/beige classless theme for therapy verticals. Crimson Text serif + Inter. Structurally compatible with @press2ai/engine CatalogTheme.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://www.npmjs.com/package/@press2ai/theme-therapy-soft",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"./ai": "./src/ai.ts"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@press2ai/engine": ">=0.
|
|
31
|
+
"@press2ai/engine": ">=0.6.0"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/src/templates/helpers.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CatalogProfile } from '@press2ai/engine/template-catalog';
|
|
2
2
|
|
|
3
3
|
export function esc(s: string | undefined | null): string {
|
|
4
4
|
if (!s) return '';
|
|
5
5
|
return s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export function fullName(p:
|
|
8
|
+
export function fullName(p: CatalogProfile): string {
|
|
9
9
|
return `${p.firstName} ${p.lastName}`;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export type {
|
|
12
|
+
export type { CatalogProfile };
|
package/src/templates/index.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { layout, type LayoutProps } from './layout.ts';
|
|
|
2
2
|
export { profileCard } from './profile-card.ts';
|
|
3
3
|
export { profileArticle } from './profile-article.ts';
|
|
4
4
|
export { catalogHero, catalogGrid, statBar, categoryNav, pagination, type CatalogHeroProps, type PaginationProps } from './catalog.ts';
|
|
5
|
-
export { esc, fullName, type
|
|
5
|
+
export { esc, fullName, type CatalogProfile } from './helpers.ts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { esc, fullName, type
|
|
1
|
+
import { esc, fullName, type CatalogProfile } from './helpers.ts';
|
|
2
2
|
|
|
3
3
|
const SOCIAL_URL_PREFIX: Record<string, string> = {
|
|
4
4
|
linkedin: 'https://linkedin.com/in/',
|
|
@@ -9,7 +9,7 @@ const SOCIAL_URL_PREFIX: Record<string, string> = {
|
|
|
9
9
|
instagram: 'https://instagram.com/',
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
export function profileArticle(p:
|
|
12
|
+
export function profileArticle(p: CatalogProfile): string {
|
|
13
13
|
const name = fullName(p);
|
|
14
14
|
const socials = Object.entries(p.social ?? {}).filter(([, v]) => v);
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { esc, fullName, type
|
|
1
|
+
import { esc, fullName, type CatalogProfile } from './helpers.ts';
|
|
2
2
|
|
|
3
|
-
export function profileCard(p:
|
|
3
|
+
export function profileCard(p: CatalogProfile, href: string): string {
|
|
4
4
|
const name = fullName(p);
|
|
5
5
|
const initials = `${(p.firstName?.[0] ?? '').toUpperCase()}${(p.lastName?.[0] ?? '').toUpperCase()}`;
|
|
6
6
|
|