@molecule/app-listing-card-react 4.1.0 → 4.1.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.
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-18T17:41:18.494Z
6
+ Generated: 2026-11-24T08:58:59.282Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-listing-card-react
@@ -226,9 +226,9 @@ Body of a `<ListingCard>` — title / subtitle / price / meta rows stacked.
226
226
  ```typescript
227
227
  function ListingCardBody({
228
228
  title,
229
- subtitle,
230
- price,
231
- meta,
229
+ subtitle: subtitleProp,
230
+ price: priceProp,
231
+ meta: metaProp,
232
232
  className,
233
233
  }: ListingCardBodyProps): JSX.Element
234
234
  ```
@@ -244,9 +244,9 @@ inline style so apps get consistent card sizing without custom CSS.
244
244
  function ListingCardMedia({
245
245
  src,
246
246
  alt,
247
- children,
247
+ children: childrenProp,
248
248
  aspect = '4/3',
249
- overlay,
249
+ overlay: overlayProp,
250
250
  className,
251
251
  }: ListingCardMediaProps): JSX.Element
252
252
  ```
@@ -276,7 +276,7 @@ function ListingGrid({
276
276
 
277
277
  Peer dependencies:
278
278
 
279
- - `@molecule/app-react` ^4.0.0
279
+ - `@molecule/app-react` ^4.13.0
280
280
  - `@molecule/app-ui` ^1.0.1
281
281
  - `@molecule/app-ui-react` ^4.0.0
282
282
  - `react` ^18.0.0 || ^19.0.0
@@ -16,5 +16,5 @@ export interface ListingCardBodyProps {
16
16
  * Body of a `<ListingCard>` — title / subtitle / price / meta rows stacked.
17
17
  * @param props - Component props (see {@link ListingCardBodyProps}).
18
18
  */
19
- export declare function ListingCardBody({ title, subtitle, price, meta, className, }: ListingCardBodyProps): JSX.Element;
19
+ export declare function ListingCardBody({ title, subtitle: subtitleProp, price: priceProp, meta: metaProp, className, }: ListingCardBodyProps): JSX.Element;
20
20
  //# sourceMappingURL=ListingCardBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListingCardBody.d.ts","sourceRoot":"","sources":["../src/ListingCardBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI3C,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC,4BAA4B;IAC5B,KAAK,EAAE,SAAS,CAAA;IAChB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,SAAS,GACV,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CAUpC"}
1
+ {"version":3,"file":"ListingCardBody.d.ts","sourceRoot":"","sources":["../src/ListingCardBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAK3C,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC,4BAA4B;IAC5B,KAAK,EAAE,SAAS,CAAA;IAChB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,EACd,SAAS,GACV,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CAapC"}
@@ -1,10 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { slot } from '@molecule/app-react/render';
2
3
  import { getClassMap } from '@molecule/app-ui';
3
4
  /**
4
5
  * Body of a `<ListingCard>` — title / subtitle / price / meta rows stacked.
5
6
  * @param props - Component props (see {@link ListingCardBodyProps}).
6
7
  */
7
- export function ListingCardBody({ title, subtitle, price, meta, className, }) {
8
+ export function ListingCardBody({ title, subtitle: subtitleProp, price: priceProp, meta: metaProp, className, }) {
9
+ const subtitle = slot(subtitleProp);
10
+ const price = slot(priceProp);
11
+ const meta = slot(metaProp);
8
12
  const cm = getClassMap();
9
13
  return (_jsxs("div", { className: cm.cn(cm.stack(1), cm.sp('p', 3), className), children: [_jsx("h3", { className: cm.cn(cm.textSize('base'), cm.fontWeight('semibold')), children: title }), subtitle && _jsx("p", { className: cm.textSize('sm'), children: subtitle }), price && _jsx("p", { className: cm.cn(cm.textSize('lg'), cm.fontWeight('bold')), children: price }), meta && _jsx("div", { className: cm.flex({ align: 'center', gap: 'sm', wrap: 'wrap' }), children: meta })] }));
10
14
  }
@@ -18,5 +18,5 @@ export interface ListingCardMediaProps {
18
18
  * inline style so apps get consistent card sizing without custom CSS.
19
19
  * @param props - Component props (see {@link ListingCardMediaProps}).
20
20
  */
21
- export declare function ListingCardMedia({ src, alt, children, aspect, overlay, className, }: ListingCardMediaProps): JSX.Element;
21
+ export declare function ListingCardMedia({ src, alt, children: childrenProp, aspect, overlay: overlayProp, className, }: ListingCardMediaProps): JSX.Element;
22
22
  //# sourceMappingURL=ListingCardMedia.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListingCardMedia.d.ts","sourceRoot":"","sources":["../src/ListingCardMedia.tsx"],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AAY,EACtB,MAAc,EACd,OAAO,EAAE,WAAW,EACpB,SAAS,GACV,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CAoBrC"}
@@ -1,11 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { slot } from '@molecule/app-react/render';
2
3
  import { getClassMap } from '@molecule/app-ui';
3
4
  /**
4
5
  * Media slot at the top of a `<ListingCard>`. Locks aspect ratio via
5
6
  * inline style so apps get consistent card sizing without custom CSS.
6
7
  * @param props - Component props (see {@link ListingCardMediaProps}).
7
8
  */
8
- export function ListingCardMedia({ src, alt, children, aspect = '4/3', overlay, className, }) {
9
+ export function ListingCardMedia({ src, alt, children: childrenProp, aspect = '4/3', overlay: overlayProp, className, }) {
10
+ const children = slot(childrenProp);
11
+ const overlay = slot(overlayProp);
9
12
  const cm = getClassMap();
10
13
  return (_jsxs("div", { className: cm.cn(cm.position('relative'), className), style: { aspectRatio: aspect.replace('/', ' / ') }, children: [children ??
11
14
  (src && (_jsx("img", { src: src, alt: alt ?? '', style: { width: '100%', height: '100%', objectFit: 'cover' } }))), overlay && _jsx("div", { className: cm.cn(cm.position('absolute'), cm.inset0), children: overlay })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-listing-card-react",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "React listing/product-card primitives with media, body, actions slots",
5
5
  "homepage": "https://www.molecule.dev/packages/app-listing-card-react",
6
6
  "type": "module",
@@ -33,15 +33,15 @@
33
33
  "directory": "packages/app/features/listing-card-react"
34
34
  },
35
35
  "peerDependencies": {
36
- "@molecule/app-react": "^4.0.0",
36
+ "@molecule/app-react": "^4.13.0",
37
37
  "@molecule/app-ui": "^1.0.1",
38
38
  "@molecule/app-ui-react": "^4.0.0",
39
39
  "react": "^18.0.0 || ^19.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@molecule/app-react": "4.8.0",
43
- "@molecule/app-ui": "1.4.0",
44
- "@molecule/app-ui-react": "4.1.6",
42
+ "@molecule/app-react": "4.13.0",
43
+ "@molecule/app-ui": "1.5.0",
44
+ "@molecule/app-ui-react": "4.3.2",
45
45
  "@types/node": "26.6.5",
46
46
  "@types/react": "19.3.0",
47
47
  "@types/react-dom": "19.3.0",