@molecule/app-list-item-row-solid 0.0.1-stage → 1.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-15T07:09:47.969Z
6
+ Generated: 2026-11-17T04:21:39.944Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-list-item-row-solid
@@ -69,9 +69,13 @@ interface ListItemRowProps {
69
69
  leading?: JSX.Element
70
70
  /** Optional right-side actions (buttons, action menu). */
71
71
  actions?: JSX.Element
72
- /** Called when the row body is clicked. */
72
+ /**
73
+ * Called when the row is activated. The whole row is clickable through a
74
+ * transparent native button over it, named by the title; the inner controls
75
+ * (the `actions` slot) sit above it and keep their own clicks.
76
+ */
73
77
  onClick?: () => void
74
- /** When true, sets `aria-selected` on the row — no built-in visual highlight; style it via `className` or host CSS. */
78
+ /** When true, sets `aria-current="true"` on the row — no built-in visual highlight; style it via `className` or host CSS. */
75
79
  selected?: boolean
76
80
  /** When true, renders in a disabled visual state. */
77
81
  disabled?: boolean
@@ -90,8 +94,11 @@ Generic "thumbnail + text + actions" row — used everywhere: navigation
90
94
  lists, mobile menus, inbox-style threads, search results, picker dialogs,
91
95
  bookmark lists, etc.
92
96
 
93
- Different from `<RowWithActions>` in `@molecule/app-data-table-ui-react`
94
- in NOT being a `<tr>` — use this for non-table lists.
97
+ With `onClick` the whole row is clickable through a transparent native
98
+ button over it, named by the title (`aria-labelledby`); Enter / Space on
99
+ that button run the same handler a click anywhere on the row runs, and the
100
+ inner controls (the `actions` slot) sit above the button and keep their own
101
+ clicks.
95
102
 
96
103
  ```typescript
97
104
  function ListItemRow(props: ListItemRowProps): JSX.Element
@@ -119,11 +126,14 @@ Peer dependencies:
119
126
  - `@molecule/app-ui-solid`
120
127
  - `solid-js`
121
128
 
122
- - `selected` only sets the `aria-selected` attribute — no built-in highlight.
123
- Pass a highlight class via `className` (or target `[aria-selected="true"]` in
124
- host CSS) to make selection visible.
125
- - Clicks inside `actions` are stopPropagation'd automatically, so action buttons
126
- never trigger the row `onClick`.
127
- - `disabled` halves the opacity and disables `onClick`; there is no
128
- `data-mol-id` prop.
129
+ - `selected` only sets the `aria-current="true"` attribute — no built-in
130
+ highlight. Pass a highlight class via `className` (or target
131
+ `[aria-current="true"]` in host CSS) to make selection visible.
132
+ - With `onClick` the whole row is clickable through a transparent native
133
+ button over it, named by the title (`aria-labelledby`); Enter / Space on
134
+ that button run the same handler a click anywhere on the row runs, and the
135
+ inner controls (the `actions` slot) sit above the button and keep their
136
+ own clicks.
137
+ - `disabled` halves the opacity and disables the open button (no pointer
138
+ cursor, no activation); there is no `data-mol-id` prop.
129
139
  - Styling resolves through `getClassMap()` — wire a ClassMap bond first.
@@ -6,15 +6,18 @@
6
6
  *
7
7
  * @module
8
8
  */
9
- import type { Component } from 'solid-js';
9
+ import { type Component } from 'solid-js';
10
10
  import type { ListItemRowProps } from './types.js';
11
11
  /**
12
12
  * Generic "thumbnail + text + actions" row — used everywhere: navigation
13
13
  * lists, mobile menus, inbox-style threads, search results, picker dialogs,
14
14
  * bookmark lists, etc.
15
15
  *
16
- * Different from `<RowWithActions>` in `@molecule/app-data-table-ui-react`
17
- * in NOT being a `<tr>` — use this for non-table lists.
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 own
20
+ * clicks.
18
21
  *
19
22
  * @param props - Component props (see {@link ListItemRowProps}).
20
23
  * @returns The rendered list-item row.
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemRow.d.ts","sourceRoot":"","sources":["../src/ListItemRow.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAIzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,gBAAgB,CAiCnD,CAAA"}
1
+ {"version":3,"file":"ListItemRow.d.ts","sourceRoot":"","sources":["../src/ListItemRow.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,UAAU,CAAA;AAIzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,gBAAgB,CA0DnD,CAAA"}
@@ -6,32 +6,48 @@
6
6
  *
7
7
  * @module
8
8
  */
9
+ import { createUniqueId } from 'solid-js';
9
10
  import { getClassMap } from '@molecule/app-ui';
10
11
  /**
11
12
  * Generic "thumbnail + text + actions" row — used everywhere: navigation
12
13
  * lists, mobile menus, inbox-style threads, search results, picker dialogs,
13
14
  * bookmark lists, etc.
14
15
  *
15
- * Different from `<RowWithActions>` in `@molecule/app-data-table-ui-react`
16
- * in NOT being a `<tr>` — use this for non-table lists.
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 own
20
+ * clicks.
17
21
  *
18
22
  * @param props - Component props (see {@link ListItemRowProps}).
19
23
  * @returns The rendered list-item row.
20
24
  */
21
25
  export const ListItemRow = (props) => {
22
26
  const cm = getClassMap();
23
- const clickable = () => Boolean(props.onClick) && !props.disabled;
27
+ const nameId = createUniqueId();
24
28
  const padY = () => (props.density === 'compact' ? 2 : 3);
25
- return (<div role={props.onClick ? 'button' : undefined} tabindex={clickable() ? 0 : undefined} aria-selected={props.selected} aria-disabled={props.disabled} onClick={props.disabled ? undefined : props.onClick} class={cm.cn(cm.flex({ align: 'center', gap: 'sm' }), cm.sp('px', 3), cm.sp('py', padY()), clickable() ? cm.cursorPointer : undefined, props.className)} style={props.disabled ? { opacity: 0.5 } : undefined}>
29
+ return (<div aria-current={props.selected ? 'true' : undefined} aria-disabled={props.disabled} class={cm.cn(cm.flex({ align: 'center', gap: 'sm' }), cm.sp('px', 3), cm.sp('py', padY()), props.onClick ? cm.position('relative') : undefined, props.className)} style={props.disabled ? { opacity: 0.5 } : undefined}>
30
+ {props.onClick && (<button type="button" aria-labelledby={nameId} data-mol-id="list-item-row-open" disabled={props.disabled} onClick={() => {
31
+ if (!props.disabled)
32
+ props.onClick?.();
33
+ }}
34
+ /* mol-bespoke-button: the whole row is the hit area, not a CTA — an
35
+ empty, transparent button over the row; the inline background/
36
+ border/padding are native resets. React writes the shorthand
37
+ `border: 'none'` and `padding: 0`, which the CSSOM serializes as
38
+ `border: medium` and `0px` — Solid writes the style attribute
39
+ directly, so the port writes that same serialized form (identical
40
+ computed style). */
41
+ class={cm.cn(cm.position('absolute'), cm.inset0, props.disabled ? undefined : cm.cursorPointer)} style={{ background: 'transparent', border: 'medium', padding: '0px' }}/>)}
26
42
  {props.leading && <div class={cm.shrink0}>{props.leading}</div>}
27
43
  <div class={cm.cn(cm.flex1, cm.stack(0))}>
28
- <div class={cm.cn(cm.textSize('sm'), cm.fontWeight('semibold'))}>{props.title}</div>
44
+ <div id={props.onClick ? nameId : undefined} class={cm.cn(cm.textSize('sm'), cm.fontWeight('semibold'))}>
45
+ {props.title}
46
+ </div>
29
47
  {props.subtitle && <div class={cm.textSize('sm')}>{props.subtitle}</div>}
30
48
  {props.metadata && <div class={cm.textSize('xs')}>{props.metadata}</div>}
31
49
  </div>
32
- {props.actions && (<div class={cm.shrink0} onClick={(event) => event.stopPropagation()}>
33
- {props.actions}
34
- </div>)}
50
+ {props.actions && (<div class={cm.cn(cm.shrink0, cm.position('relative'))}>{props.actions}</div>)}
35
51
  </div>);
36
52
  };
37
53
  //# sourceMappingURL=ListItemRow.jsx.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemRow.jsx","sourceRoot":"","sources":["../src/ListItemRow.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,WAAW,GAAgC,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,MAAM,SAAS,GAAG,GAAY,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAA;IAC1E,MAAM,IAAI,GAAG,GAAU,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/D,OAAO,CACL,CAAC,GAAG,CACF,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAC3C,QAAQ,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CACtC,aAAa,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAC9B,aAAa,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAC9B,OAAO,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACpD,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CACV,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,E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KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CACvC;QAAA,CAAC,GAAG,CACF,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CACvC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAE3D;UAAA,CAAC,KAAK,CAAC,KAAK,CACd;QAAA,EAAE,GAAG,CACL;QAAA,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CACxE;QAAA,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAC1E;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,KAAK,CAAC,OAAO,IAAI,CAChB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,CAC9E,CACH;IAAA,EAAE,GAAG,CAAC,CACP,CAAA;AACH,CAAC,CAAA"}
package/dist/index.d.ts CHANGED
@@ -26,13 +26,16 @@
26
26
  * ```
27
27
  *
28
28
  * @remarks
29
- * - `selected` only sets the `aria-selected` attribute — no built-in highlight.
30
- * Pass a highlight class via `className` (or target `[aria-selected="true"]` in
31
- * host CSS) to make selection visible.
32
- * - Clicks inside `actions` are stopPropagation'd automatically, so action buttons
33
- * never trigger the row `onClick`.
34
- * - `disabled` halves the opacity and disables `onClick`; there is no
35
- * `data-mol-id` prop.
29
+ * - `selected` only sets the `aria-current="true"` attribute — no built-in
30
+ * highlight. Pass a highlight class via `className` (or target
31
+ * `[aria-current="true"]` in host CSS) to make selection visible.
32
+ * - With `onClick` the whole row is clickable through a transparent native
33
+ * button over it, named by the title (`aria-labelledby`); Enter / Space on
34
+ * that button run the same handler a click anywhere on the row runs, and the
35
+ * inner controls (the `actions` slot) sit above the button and keep their
36
+ * own clicks.
37
+ * - `disabled` halves the opacity and disables the open button (no pointer
38
+ * cursor, no activation); there is no `data-mol-id` prop.
36
39
  * - Styling resolves through `getClassMap()` — wire a ClassMap bond first.
37
40
  *
38
41
  * @module
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA"}
package/dist/index.js CHANGED
@@ -26,13 +26,16 @@
26
26
  * ```
27
27
  *
28
28
  * @remarks
29
- * - `selected` only sets the `aria-selected` attribute — no built-in highlight.
30
- * Pass a highlight class via `className` (or target `[aria-selected="true"]` in
31
- * host CSS) to make selection visible.
32
- * - Clicks inside `actions` are stopPropagation'd automatically, so action buttons
33
- * never trigger the row `onClick`.
34
- * - `disabled` halves the opacity and disables `onClick`; there is no
35
- * `data-mol-id` prop.
29
+ * - `selected` only sets the `aria-current="true"` attribute — no built-in
30
+ * highlight. Pass a highlight class via `className` (or target
31
+ * `[aria-current="true"]` in host CSS) to make selection visible.
32
+ * - With `onClick` the whole row is clickable through a transparent native
33
+ * button over it, named by the title (`aria-labelledby`); Enter / Space on
34
+ * that button run the same handler a click anywhere on the row runs, and the
35
+ * inner controls (the `actions` slot) sit above the button and keep their
36
+ * own clicks.
37
+ * - `disabled` halves the opacity and disables the open button (no pointer
38
+ * cursor, no activation); there is no `data-mol-id` prop.
36
39
  * - Styling resolves through `getClassMap()` — wire a ClassMap bond first.
37
40
  *
38
41
  * @module
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA"}
package/dist/types.d.ts CHANGED
@@ -16,9 +16,13 @@ export interface ListItemRowProps {
16
16
  leading?: JSX.Element;
17
17
  /** Optional right-side actions (buttons, action menu). */
18
18
  actions?: JSX.Element;
19
- /** Called when the row body is clicked. */
19
+ /**
20
+ * Called when the row is activated. The whole row is clickable through a
21
+ * transparent native button over it, named by the title; the inner controls
22
+ * (the `actions` slot) sit above it and keep their own clicks.
23
+ */
20
24
  onClick?: () => void;
21
- /** When true, sets `aria-selected` on the row — no built-in visual highlight; style it via `className` or host CSS. */
25
+ /** When true, sets `aria-current="true"` on the row — no built-in visual highlight; style it via `className` or host CSS. */
22
26
  selected?: boolean;
23
27
  /** When true, renders in a disabled visual state. */
24
28
  disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,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;IAC7H,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IACnC,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-list-item-row-solid",
3
- "version": "0.0.1-stage",
3
+ "version": "1.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-solid",
6
6
  "type": "module",
@@ -49,11 +49,11 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@molecule/app-framework-conformance": "0.0.0",
52
- "@molecule/app-i18n": "1.2.1",
52
+ "@molecule/app-i18n": "1.2.2",
53
53
  "@molecule/app-icons": "1.0.4",
54
- "@molecule/app-solid": "3.6.0",
55
- "@molecule/app-ui": "1.3.11",
56
- "@molecule/app-ui-solid": "1.1.2",
54
+ "@molecule/app-solid": "3.7.1",
55
+ "@molecule/app-ui": "1.4.0",
56
+ "@molecule/app-ui-solid": "1.1.4",
57
57
  "@types/node": "26.6.5",
58
58
  "jsdom": "30.1.3",
59
59
  "solid-js": "1.9.17",