@jackbernnie/hiyf 0.1.6 → 0.1.7
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/AGENTS.md +4 -4
- package/dist/components/ui/card.js +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -52,10 +52,10 @@ import { Box, Text } from '@jackbernnie/hiyf'
|
|
|
52
52
|
|
|
53
53
|
`<Text>` renders all text. Pick a `variant` (a role), never a raw size.
|
|
54
54
|
|
|
55
|
-
`Card`
|
|
56
|
-
no
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
`Card` self-pads and **fills its container width** by default — drop content
|
|
56
|
+
straight in (`<Card padding="md">…`), no wrapper needed. For an even row of cards,
|
|
57
|
+
use `Grid` (`gridTemplateColumns="repeat(4, minmax(0, 1fr))"`) or a flex row of
|
|
58
|
+
`flexGrow={1}` slots — the layout controls across-row sizing; the card fills it.
|
|
59
59
|
|
|
60
60
|
## Token vocabulary (the entire allowed set)
|
|
61
61
|
|
|
@@ -12,7 +12,7 @@ function Card({
|
|
|
12
12
|
"data-slot": "card",
|
|
13
13
|
"data-size": size,
|
|
14
14
|
className: cn(
|
|
15
|
-
"group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card px-(--card-spacing) py-(--card-spacing) text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
|
|
15
|
+
"group/card flex w-full flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card px-(--card-spacing) py-(--card-spacing) text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
|
|
16
16
|
className
|
|
17
17
|
),
|
|
18
18
|
...props
|
package/package.json
CHANGED