@godxjp/ui 27.12.0 → 27.12.1

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.
@@ -49,6 +49,18 @@ const Card = React.forwardRef(
49
49
  "Card: `asChild` renders the whole card as ONE control, so `tabList` is ignored and the tab strip is NOT drawn \u2014 a strip of `button` triggers inside a link/button is invalid HTML. Drop `asChild` and put a `Link`/`Button` inside the card instead."
50
50
  );
51
51
  }
52
+ if (isDevelopment()) {
53
+ const slots = React.Children.toArray(children).filter(React.isValidElement);
54
+ const hasHeader = slots.some((child) => child.type === CardHeader);
55
+ const soloBody = slots.some(
56
+ (child) => child.type === CardContent && child.props?.solo === true
57
+ );
58
+ if (hasHeader && soloBody) {
59
+ console.warn(
60
+ "Card: `CardContent solo` says there is NO header above it, so it takes the card's own block padding \u2014 but this card also renders a `CardHeader`. The two cannot both hold, and the padding wins, which is the empty strip above your content. Drop `solo` to keep the header, or drop the header if the body really is alone."
61
+ );
62
+ }
63
+ }
52
64
  const tabs = slotted ? void 0 : tabList;
53
65
  const Comp = asChild ? Slot : "div";
54
66
  const [mirroredKey, setMirroredKey] = React.useState(void 0);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$comment": "AUTO-GENERATED by scripts/gen-measurement-contract.mjs — do not edit. Read this instead of guessing: docs/MEASUREMENT-CONTRACT.md.",
3
- "version": "27.12.0",
3
+ "version": "27.12.1",
4
4
  "targetSize": {
5
5
  "standard": "WCAG 2.2 SC 2.5.8 Target Size (Minimum), level AA — 24×24 CSS px",
6
6
  "min": 24,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@godxjp/ui",
3
- "version": "27.12.0",
4
- "godxUiMcp": "27.12.0",
3
+ "version": "27.12.1",
4
+ "godxUiMcp": "27.12.1",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",