@molecule/app-list-item-row-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 +4 -4
- package/dist/ListItemRow.d.ts +1 -1
- package/dist/ListItemRow.d.ts.map +1 -1
- package/dist/ListItemRow.js +4 -1
- package/package.json +5 -5
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-
|
|
6
|
+
Generated: 2026-11-24T08:58:56.946Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-list-item-row-react
|
|
@@ -117,8 +117,8 @@ function ListItemRow({
|
|
|
117
117
|
title,
|
|
118
118
|
subtitle,
|
|
119
119
|
metadata,
|
|
120
|
-
leading,
|
|
121
|
-
actions,
|
|
120
|
+
leading: leadingProp,
|
|
121
|
+
actions: actionsProp,
|
|
122
122
|
toggle,
|
|
123
123
|
onClick,
|
|
124
124
|
selected,
|
|
@@ -136,7 +136,7 @@ function ListItemRow({
|
|
|
136
136
|
|
|
137
137
|
Peer dependencies:
|
|
138
138
|
|
|
139
|
-
- `@molecule/app-react` ^4.
|
|
139
|
+
- `@molecule/app-react` ^4.13.0
|
|
140
140
|
- `@molecule/app-ui` ^1.0.1
|
|
141
141
|
- `@molecule/app-ui-react` ^4.0.0
|
|
142
142
|
- `react` ^18.0.0 || ^19.0.0
|
package/dist/ListItemRow.d.ts
CHANGED
|
@@ -47,5 +47,5 @@ export interface ListItemRowProps {
|
|
|
47
47
|
* in NOT being a `<tr>` — use this for non-table lists.
|
|
48
48
|
* @param props - Component props (see {@link ListItemRowProps}).
|
|
49
49
|
*/
|
|
50
|
-
export declare function ListItemRow({ title, subtitle, metadata, leading, actions, toggle, onClick, selected, disabled, density, className, }: ListItemRowProps): JSX.Element;
|
|
50
|
+
export declare function ListItemRow({ title, subtitle, metadata, leading: leadingProp, actions: actionsProp, toggle, onClick, selected, disabled, density, className, }: ListItemRowProps): JSX.Element;
|
|
51
51
|
//# sourceMappingURL=ListItemRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemRow.d.ts","sourceRoot":"","sources":["../src/ListItemRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ListItemRow.d.ts","sourceRoot":"","sources":["../src/ListItemRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAA;AAIvD,OAAO,EAA0B,KAAK,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AAEjG,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,0BAA0B;IAC1B,KAAK,EAAE,SAAS,CAAA;IAChB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,2BAA2B,CAAA;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,6HAA6H;IAC7H,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IACnC,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAuB,EACvB,SAAS,GACV,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CA2DhC"}
|
package/dist/ListItemRow.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useId } from 'react';
|
|
3
|
+
import { slot } from '@molecule/app-react/render';
|
|
3
4
|
import { getClassMap } from '@molecule/app-ui';
|
|
4
5
|
import { OptimisticToggleButton } from '@molecule/app-ui-react';
|
|
5
6
|
/**
|
|
@@ -20,7 +21,9 @@ import { OptimisticToggleButton } from '@molecule/app-ui-react';
|
|
|
20
21
|
* in NOT being a `<tr>` — use this for non-table lists.
|
|
21
22
|
* @param props - Component props (see {@link ListItemRowProps}).
|
|
22
23
|
*/
|
|
23
|
-
export function ListItemRow({ title, subtitle, metadata, leading, actions, toggle, onClick, selected, disabled, density = 'comfortable', className, }) {
|
|
24
|
+
export function ListItemRow({ title, subtitle, metadata, leading: leadingProp, actions: actionsProp, toggle, onClick, selected, disabled, density = 'comfortable', className, }) {
|
|
25
|
+
const leading = slot(leadingProp);
|
|
26
|
+
const actions = slot(actionsProp);
|
|
24
27
|
const cm = getClassMap();
|
|
25
28
|
const nameId = useId();
|
|
26
29
|
const padY = density === 'compact' ? 2 : 3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-list-item-row-react",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Thumbnail + title + subtitle + metadata + actions row (nav lists, mobile menus)",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-list-item-row-react",
|
|
6
6
|
"type": "module",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"directory": "packages/app/features/list-item-row-react"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@molecule/app-react": "^4.
|
|
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.
|
|
43
|
-
"@molecule/app-ui": "1.
|
|
44
|
-
"@molecule/app-ui-react": "4.
|
|
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",
|