@podoba/react 0.0.9 → 0.0.11
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podoba/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "podoba React components — React Aria Components + Tailwind primitives + layout, built with uic.",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"typecheck": "tsc --build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@podoba/tokens": "^0.0.
|
|
29
|
-
"@podoba/tailwind": "^0.0.
|
|
28
|
+
"@podoba/tokens": "^0.0.11",
|
|
29
|
+
"@podoba/tailwind": "^0.0.11",
|
|
30
30
|
"react-aria-components": "1.18.0",
|
|
31
31
|
"class-variance-authority": "0.7.1",
|
|
32
32
|
"clsx": "2.1.1",
|
|
@@ -20,7 +20,7 @@ import type { ReactNode } from 'react'
|
|
|
20
20
|
* Token mapping (Tailwind + `@podoba/tokens` CSS vars — no SCSS, hard rule #3):
|
|
21
21
|
* - surface → `bg-surface-card` (#f7f6f2), 1px `border-border`, `rounded-lg`
|
|
22
22
|
* (8px) — same skin as `Card` / `StatsCard`.
|
|
23
|
-
* - title → `text-heading4` (1.125rem) `font-
|
|
23
|
+
* - title → `text-heading4` (1.125rem) `font-medium text-fg`.
|
|
24
24
|
* - description → `text-body text-fg-muted`.
|
|
25
25
|
*
|
|
26
26
|
* Presentational only (hard rule #1): all copy via props, no API/i18n.
|
|
@@ -108,7 +108,7 @@ export function CollapsibleCard({
|
|
|
108
108
|
}
|
|
109
109
|
>
|
|
110
110
|
<span className="flex flex-col gap-1">
|
|
111
|
-
<span className="text-heading4 font-
|
|
111
|
+
<span className="text-heading4 font-medium leading-tight text-fg">{title}</span>
|
|
112
112
|
{description ? (
|
|
113
113
|
<span className="text-body leading-snug text-fg-muted">{description}</span>
|
|
114
114
|
) : null}
|
package/src/components/text.tsx
CHANGED
|
@@ -36,11 +36,15 @@ export const Text = uic('span', {
|
|
|
36
36
|
headline: 'text-headline',
|
|
37
37
|
display: 'text-display',
|
|
38
38
|
},
|
|
39
|
+
// NC Fontina caps at medium (500) as the heaviest weight in the system, so
|
|
40
|
+
// `semibold` and `bold` are kept as API-compatible aliases that render
|
|
41
|
+
// medium rather than going heavier. Keeping the keys avoids a breaking
|
|
42
|
+
// change for consumers already passing weight="semibold" / "bold".
|
|
39
43
|
weight: {
|
|
40
44
|
regular: 'font-normal',
|
|
41
45
|
medium: 'font-medium',
|
|
42
|
-
semibold: 'font-
|
|
43
|
-
bold: 'font-
|
|
46
|
+
semibold: 'font-medium',
|
|
47
|
+
bold: 'font-medium',
|
|
44
48
|
},
|
|
45
49
|
tone: {
|
|
46
50
|
default: 'text-fg',
|