@molecule/app-list-item-row-react 4.0.0 → 4.1.0
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 +40 -13
- package/dist/ListItemRow.d.ts +21 -5
- package/dist/ListItemRow.d.ts.map +1 -1
- package/dist/ListItemRow.js +21 -2
- package/dist/index.d.ts +20 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -9
- package/package.json +4 -4
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-18T14:39:28.038Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-list-item-row-react
|
|
@@ -12,7 +12,7 @@ Generic list-item row.
|
|
|
12
12
|
|
|
13
13
|
Exports `<ListItemRow>` — leading slot (icon/avatar/thumbnail) + up to three
|
|
14
14
|
text lines (title / subtitle / metadata) + right-side actions. Props: `title`,
|
|
15
|
-
`subtitle?`, `metadata?`, `leading?`, `actions?`, `onClick?`, `selected?`,
|
|
15
|
+
`subtitle?`, `metadata?`, `leading?`, `actions?`, `toggle?`, `onClick?`, `selected?`,
|
|
16
16
|
`disabled?`, `density?` (`'comfortable'` default | `'compact'`), `className?`.
|
|
17
17
|
Use for nav lists, mobile menus, search results, picker dialogs, inbox threads.
|
|
18
18
|
For table rows use `<RowWithActions>` from `@molecule/app-data-table-ui-react`
|
|
@@ -32,7 +32,12 @@ import { ListItemRow } from '@molecule/app-list-item-row-react'
|
|
|
32
32
|
subtitle="Last edited 2 hours ago"
|
|
33
33
|
metadata="3 collaborators · 12 files"
|
|
34
34
|
leading={<img src="/icons/folder.svg" alt="" width={32} height={32} />}
|
|
35
|
-
|
|
35
|
+
toggle={{
|
|
36
|
+
value: project.pinned,
|
|
37
|
+
commit: async (desired) => (await setPinned(project.id, desired)).pinned,
|
|
38
|
+
activeLabel: t('projects.unpin', undefined, { defaultValue: 'Unpin project' }),
|
|
39
|
+
inactiveLabel: t('projects.pin', undefined, { defaultValue: 'Pin project' }),
|
|
40
|
+
}}
|
|
36
41
|
onClick={() => navigate('/projects/alpha')}
|
|
37
42
|
/>
|
|
38
43
|
```
|
|
@@ -68,11 +73,17 @@ interface ListItemRowProps {
|
|
|
68
73
|
leading?: ReactNode
|
|
69
74
|
/** Optional right-side actions (buttons, action menu). */
|
|
70
75
|
actions?: ReactNode
|
|
71
|
-
/**
|
|
76
|
+
/** Loaded boolean action rendered as a native button, independently of read-only metadata. */
|
|
77
|
+
toggle?: OptimisticToggleButtonProps
|
|
78
|
+
/**
|
|
79
|
+
* Called when the row is activated. The whole row is clickable through a
|
|
80
|
+
* transparent native button over it, named by the title; the inner controls
|
|
81
|
+
* (the `actions` slot) sit above it and keep their own clicks.
|
|
82
|
+
*/
|
|
72
83
|
onClick?: () => void
|
|
73
|
-
/** When true, sets `aria-
|
|
84
|
+
/** When true, sets `aria-current="true"` on the row — no built-in visual highlight; style it via `className` or host CSS. */
|
|
74
85
|
selected?: boolean
|
|
75
|
-
/** When true, renders in a disabled visual state. */
|
|
86
|
+
/** When true, renders in a disabled visual state and disables the open button. */
|
|
76
87
|
disabled?: boolean
|
|
77
88
|
/** Dense vs comfortable spacing. Defaults to `'comfortable'`. */
|
|
78
89
|
density?: 'comfortable' | 'compact'
|
|
@@ -89,6 +100,15 @@ Generic "thumbnail + text + actions" row — used everywhere:
|
|
|
89
100
|
navigation lists, mobile menus, inbox-style threads, search
|
|
90
101
|
results, picker dialogs, bookmark lists, etc.
|
|
91
102
|
|
|
103
|
+
With `onClick` the whole row is clickable through a transparent native
|
|
104
|
+
`<button type="button">` stretched over it — named by the title
|
|
105
|
+
(`aria-labelledby`) — so mouse and keyboard users get the same action and
|
|
106
|
+
the hit area is the whole row, not just the text. The `actions` slot sits above that button (a
|
|
107
|
+
`position: relative` wrapper), so its clicks stay its own; everything else
|
|
108
|
+
sits under it, so a click anywhere else on the row runs the handler.
|
|
109
|
+
`disabled` disables the button and drops the pointer cursor.
|
|
110
|
+
Unstyled apart from the transparent button, so the row looks as it did.
|
|
111
|
+
|
|
92
112
|
Different from `<RowWithActions>` in `@molecule/app-data-table-ui-react`
|
|
93
113
|
in NOT being a `<tr>` — use this for non-table lists.
|
|
94
114
|
|
|
@@ -99,6 +119,7 @@ function ListItemRow({
|
|
|
99
119
|
metadata,
|
|
100
120
|
leading,
|
|
101
121
|
actions,
|
|
122
|
+
toggle,
|
|
102
123
|
onClick,
|
|
103
124
|
selected,
|
|
104
125
|
disabled,
|
|
@@ -127,11 +148,17 @@ Peer dependencies:
|
|
|
127
148
|
- `@molecule/app-ui-react`
|
|
128
149
|
- `react`
|
|
129
150
|
|
|
130
|
-
- `selected` only sets the `aria-
|
|
131
|
-
Pass a highlight class via `className` (or target
|
|
132
|
-
host CSS) to make selection visible.
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
`
|
|
151
|
+
- `selected` only sets the `aria-current="true"` attribute — no built-in
|
|
152
|
+
highlight. Pass a highlight class via `className` (or target
|
|
153
|
+
`[aria-current="true"]` in host CSS) to make selection visible.
|
|
154
|
+
- With `onClick` the whole row is clickable through a transparent native
|
|
155
|
+
button over it, named by the title (`aria-labelledby`); Enter / Space on
|
|
156
|
+
that button run the same handler a click anywhere on the row runs, and the
|
|
157
|
+
inner controls (the `actions` slot) sit above the button and keep their
|
|
158
|
+
own clicks.
|
|
159
|
+
- `disabled` halves the opacity and disables the open button (no pointer
|
|
160
|
+
cursor, no activation); there is no `data-mol-id` prop.
|
|
161
|
+
- Pass `toggle` for a loaded server-backed action that belongs on the row.
|
|
162
|
+
It renders the real `OptimisticToggleButton` beside any read-only counts in
|
|
163
|
+
`metadata`. Key each row by record identity when rendering a collection.
|
|
137
164
|
- Styling resolves through `getClassMap()` — wire a ClassMap bond first.
|
package/dist/ListItemRow.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type JSX, type ReactNode } from 'react';
|
|
2
|
+
import { type OptimisticToggleButtonProps } from '@molecule/app-ui-react';
|
|
2
3
|
/** Props for {@link ListItemRow}. */
|
|
3
4
|
export interface ListItemRowProps {
|
|
4
5
|
/** Title — first line. */
|
|
@@ -11,11 +12,17 @@ export interface ListItemRowProps {
|
|
|
11
12
|
leading?: ReactNode;
|
|
12
13
|
/** Optional right-side actions (buttons, action menu). */
|
|
13
14
|
actions?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
+
/** Loaded boolean action rendered as a native button, independently of read-only metadata. */
|
|
16
|
+
toggle?: OptimisticToggleButtonProps;
|
|
17
|
+
/**
|
|
18
|
+
* Called when the row is activated. The whole row is clickable through a
|
|
19
|
+
* transparent native button over it, named by the title; the inner controls
|
|
20
|
+
* (the `actions` slot) sit above it and keep their own clicks.
|
|
21
|
+
*/
|
|
15
22
|
onClick?: () => void;
|
|
16
|
-
/** When true, sets `aria-
|
|
23
|
+
/** When true, sets `aria-current="true"` on the row — no built-in visual highlight; style it via `className` or host CSS. */
|
|
17
24
|
selected?: boolean;
|
|
18
|
-
/** When true, renders in a disabled visual state. */
|
|
25
|
+
/** When true, renders in a disabled visual state and disables the open button. */
|
|
19
26
|
disabled?: boolean;
|
|
20
27
|
/** Dense vs comfortable spacing. Defaults to `'comfortable'`. */
|
|
21
28
|
density?: 'comfortable' | 'compact';
|
|
@@ -27,9 +34,18 @@ export interface ListItemRowProps {
|
|
|
27
34
|
* navigation lists, mobile menus, inbox-style threads, search
|
|
28
35
|
* results, picker dialogs, bookmark lists, etc.
|
|
29
36
|
*
|
|
37
|
+
* With `onClick` the whole row is clickable through a transparent native
|
|
38
|
+
* `<button type="button">` stretched over it — named by the title
|
|
39
|
+
* (`aria-labelledby`) — so mouse and keyboard users get the same action and
|
|
40
|
+
* the hit area is the whole row, not just the text. The `actions` slot sits above that button (a
|
|
41
|
+
* `position: relative` wrapper), so its clicks stay its own; everything else
|
|
42
|
+
* sits under it, so a click anywhere else on the row runs the handler.
|
|
43
|
+
* `disabled` disables the button and drops the pointer cursor.
|
|
44
|
+
* Unstyled apart from the transparent button, so the row looks as it did.
|
|
45
|
+
*
|
|
30
46
|
* Different from `<RowWithActions>` in `@molecule/app-data-table-ui-react`
|
|
31
47
|
* in NOT being a `<tr>` — use this for non-table lists.
|
|
32
48
|
* @param props - Component props (see {@link ListItemRowProps}).
|
|
33
49
|
*/
|
|
34
|
-
export declare function ListItemRow({ title, subtitle, metadata, leading, actions, onClick, selected, disabled, density, className, }: ListItemRowProps): JSX.Element;
|
|
50
|
+
export declare function ListItemRow({ title, subtitle, metadata, leading, actions, toggle, onClick, selected, disabled, density, className, }: ListItemRowProps): JSX.Element;
|
|
35
51
|
//# sourceMappingURL=ListItemRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemRow.d.ts","sourceRoot":"","sources":["../src/ListItemRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
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;AAGvD,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,EACP,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAuB,EACvB,SAAS,GACV,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAyDhC"}
|
package/dist/ListItemRow.js
CHANGED
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from 'react';
|
|
2
3
|
import { getClassMap } from '@molecule/app-ui';
|
|
4
|
+
import { OptimisticToggleButton } from '@molecule/app-ui-react';
|
|
3
5
|
/**
|
|
4
6
|
* Generic "thumbnail + text + actions" row — used everywhere:
|
|
5
7
|
* navigation lists, mobile menus, inbox-style threads, search
|
|
6
8
|
* results, picker dialogs, bookmark lists, etc.
|
|
7
9
|
*
|
|
10
|
+
* With `onClick` the whole row is clickable through a transparent native
|
|
11
|
+
* `<button type="button">` stretched over it — named by the title
|
|
12
|
+
* (`aria-labelledby`) — so mouse and keyboard users get the same action and
|
|
13
|
+
* the hit area is the whole row, not just the text. The `actions` slot sits above that button (a
|
|
14
|
+
* `position: relative` wrapper), so its clicks stay its own; everything else
|
|
15
|
+
* sits under it, so a click anywhere else on the row runs the handler.
|
|
16
|
+
* `disabled` disables the button and drops the pointer cursor.
|
|
17
|
+
* Unstyled apart from the transparent button, so the row looks as it did.
|
|
18
|
+
*
|
|
8
19
|
* Different from `<RowWithActions>` in `@molecule/app-data-table-ui-react`
|
|
9
20
|
* in NOT being a `<tr>` — use this for non-table lists.
|
|
10
21
|
* @param props - Component props (see {@link ListItemRowProps}).
|
|
11
22
|
*/
|
|
12
|
-
export function ListItemRow({ title, subtitle, metadata, leading, actions, onClick, selected, disabled, density = 'comfortable', className, }) {
|
|
23
|
+
export function ListItemRow({ title, subtitle, metadata, leading, actions, toggle, onClick, selected, disabled, density = 'comfortable', className, }) {
|
|
13
24
|
const cm = getClassMap();
|
|
25
|
+
const nameId = useId();
|
|
14
26
|
const padY = density === 'compact' ? 2 : 3;
|
|
15
|
-
return (_jsxs("div", {
|
|
27
|
+
return (_jsxs("div", { "aria-current": selected ? 'true' : undefined, "aria-disabled": disabled, className: cm.cn(cm.flex({ align: 'center', gap: 'sm' }), cm.sp('px', 3), cm.sp('py', padY), onClick ? cm.position('relative') : undefined, className), style: disabled ? { opacity: 0.5 } : undefined, children: [onClick && (_jsx("button", { type: "button", "aria-labelledby": nameId, "data-mol-id": "list-item-row-open", disabled: disabled, onClick: () => {
|
|
28
|
+
if (!disabled)
|
|
29
|
+
onClick();
|
|
30
|
+
},
|
|
31
|
+
/* mol-bespoke-button: the whole row is the hit area, not a CTA — an
|
|
32
|
+
empty, transparent button over the row; the inline background/
|
|
33
|
+
border/padding are native resets. */
|
|
34
|
+
className: cm.cn(cm.position('absolute'), cm.inset0, disabled ? undefined : cm.cursorPointer), style: { background: 'transparent', border: 'none', padding: 0 } })), leading && _jsx("div", { className: cm.shrink0, children: leading }), _jsxs("div", { className: cm.cn(cm.flex1, cm.stack(0)), children: [_jsx("div", { id: onClick ? nameId : undefined, className: cm.cn(cm.textSize('sm'), cm.fontWeight('semibold')), children: title }), subtitle && _jsx("div", { className: cm.textSize('sm'), children: subtitle }), metadata && _jsx("div", { className: cm.textSize('xs'), children: metadata })] }), (toggle || actions) && (_jsxs("div", { className: cm.cn(cm.shrink0, cm.position('relative')), children: [toggle && _jsx(OptimisticToggleButton, { ...toggle }), actions] }))] }));
|
|
16
35
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,20 +3,26 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Exports `<ListItemRow>` — leading slot (icon/avatar/thumbnail) + up to three
|
|
5
5
|
* text lines (title / subtitle / metadata) + right-side actions. Props: `title`,
|
|
6
|
-
* `subtitle?`, `metadata?`, `leading?`, `actions?`, `onClick?`, `selected?`,
|
|
6
|
+
* `subtitle?`, `metadata?`, `leading?`, `actions?`, `toggle?`, `onClick?`, `selected?`,
|
|
7
7
|
* `disabled?`, `density?` (`'comfortable'` default | `'compact'`), `className?`.
|
|
8
8
|
* Use for nav lists, mobile menus, search results, picker dialogs, inbox threads.
|
|
9
9
|
* For table rows use `<RowWithActions>` from `@molecule/app-data-table-ui-react`
|
|
10
10
|
* instead — this component is not a `<tr>`.
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* - `selected` only sets the `aria-
|
|
14
|
-
* Pass a highlight class via `className` (or target
|
|
15
|
-
* host CSS) to make selection visible.
|
|
16
|
-
* -
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* `
|
|
13
|
+
* - `selected` only sets the `aria-current="true"` attribute — no built-in
|
|
14
|
+
* highlight. Pass a highlight class via `className` (or target
|
|
15
|
+
* `[aria-current="true"]` in host CSS) to make selection visible.
|
|
16
|
+
* - With `onClick` the whole row is clickable through a transparent native
|
|
17
|
+
* button over it, named by the title (`aria-labelledby`); Enter / Space on
|
|
18
|
+
* that button run the same handler a click anywhere on the row runs, and the
|
|
19
|
+
* inner controls (the `actions` slot) sit above the button and keep their
|
|
20
|
+
* own clicks.
|
|
21
|
+
* - `disabled` halves the opacity and disables the open button (no pointer
|
|
22
|
+
* cursor, no activation); there is no `data-mol-id` prop.
|
|
23
|
+
* - Pass `toggle` for a loaded server-backed action that belongs on the row.
|
|
24
|
+
* It renders the real `OptimisticToggleButton` beside any read-only counts in
|
|
25
|
+
* `metadata`. Key each row by record identity when rendering a collection.
|
|
20
26
|
* - Styling resolves through `getClassMap()` — wire a ClassMap bond first.
|
|
21
27
|
*
|
|
22
28
|
* @example
|
|
@@ -28,7 +34,12 @@
|
|
|
28
34
|
* subtitle="Last edited 2 hours ago"
|
|
29
35
|
* metadata="3 collaborators · 12 files"
|
|
30
36
|
* leading={<img src="/icons/folder.svg" alt="" width={32} height={32} />}
|
|
31
|
-
*
|
|
37
|
+
* toggle={{
|
|
38
|
+
* value: project.pinned,
|
|
39
|
+
* commit: async (desired) => (await setPinned(project.id, desired)).pinned,
|
|
40
|
+
* activeLabel: t('projects.unpin', undefined, { defaultValue: 'Unpin project' }),
|
|
41
|
+
* inactiveLabel: t('projects.pin', undefined, { defaultValue: 'Pin project' }),
|
|
42
|
+
* }}
|
|
32
43
|
* onClick={() => navigate('/projects/alpha')}
|
|
33
44
|
* />
|
|
34
45
|
* ```
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,cAAc,kBAAkB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -3,20 +3,26 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Exports `<ListItemRow>` — leading slot (icon/avatar/thumbnail) + up to three
|
|
5
5
|
* text lines (title / subtitle / metadata) + right-side actions. Props: `title`,
|
|
6
|
-
* `subtitle?`, `metadata?`, `leading?`, `actions?`, `onClick?`, `selected?`,
|
|
6
|
+
* `subtitle?`, `metadata?`, `leading?`, `actions?`, `toggle?`, `onClick?`, `selected?`,
|
|
7
7
|
* `disabled?`, `density?` (`'comfortable'` default | `'compact'`), `className?`.
|
|
8
8
|
* Use for nav lists, mobile menus, search results, picker dialogs, inbox threads.
|
|
9
9
|
* For table rows use `<RowWithActions>` from `@molecule/app-data-table-ui-react`
|
|
10
10
|
* instead — this component is not a `<tr>`.
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* - `selected` only sets the `aria-
|
|
14
|
-
* Pass a highlight class via `className` (or target
|
|
15
|
-
* host CSS) to make selection visible.
|
|
16
|
-
* -
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* `
|
|
13
|
+
* - `selected` only sets the `aria-current="true"` attribute — no built-in
|
|
14
|
+
* highlight. Pass a highlight class via `className` (or target
|
|
15
|
+
* `[aria-current="true"]` in host CSS) to make selection visible.
|
|
16
|
+
* - With `onClick` the whole row is clickable through a transparent native
|
|
17
|
+
* button over it, named by the title (`aria-labelledby`); Enter / Space on
|
|
18
|
+
* that button run the same handler a click anywhere on the row runs, and the
|
|
19
|
+
* inner controls (the `actions` slot) sit above the button and keep their
|
|
20
|
+
* own clicks.
|
|
21
|
+
* - `disabled` halves the opacity and disables the open button (no pointer
|
|
22
|
+
* cursor, no activation); there is no `data-mol-id` prop.
|
|
23
|
+
* - Pass `toggle` for a loaded server-backed action that belongs on the row.
|
|
24
|
+
* It renders the real `OptimisticToggleButton` beside any read-only counts in
|
|
25
|
+
* `metadata`. Key each row by record identity when rendering a collection.
|
|
20
26
|
* - Styling resolves through `getClassMap()` — wire a ClassMap bond first.
|
|
21
27
|
*
|
|
22
28
|
* @example
|
|
@@ -28,7 +34,12 @@
|
|
|
28
34
|
* subtitle="Last edited 2 hours ago"
|
|
29
35
|
* metadata="3 collaborators · 12 files"
|
|
30
36
|
* leading={<img src="/icons/folder.svg" alt="" width={32} height={32} />}
|
|
31
|
-
*
|
|
37
|
+
* toggle={{
|
|
38
|
+
* value: project.pinned,
|
|
39
|
+
* commit: async (desired) => (await setPinned(project.id, desired)).pinned,
|
|
40
|
+
* activeLabel: t('projects.unpin', undefined, { defaultValue: 'Unpin project' }),
|
|
41
|
+
* inactiveLabel: t('projects.pin', undefined, { defaultValue: 'Pin project' }),
|
|
42
|
+
* }}
|
|
32
43
|
* onClick={() => navigate('/projects/alpha')}
|
|
33
44
|
* />
|
|
34
45
|
* ```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-list-item-row-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
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",
|
|
@@ -39,9 +39,9 @@
|
|
|
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.8.0",
|
|
43
|
+
"@molecule/app-ui": "1.4.0",
|
|
44
|
+
"@molecule/app-ui-react": "4.1.6",
|
|
45
45
|
"@types/node": "26.6.5",
|
|
46
46
|
"@types/react": "19.3.0",
|
|
47
47
|
"@types/react-dom": "19.3.0",
|