@ankhorage/zora 28.11.2 → 28.12.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.
@@ -1 +1 @@
1
- {"version":3,"file":"bindableComponentMeta.js","sourceRoot":"","sources":["../../../src/features/registry/bindableComponentMeta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,WAAW;QACrB,WAAW,EAAE,mCAAmC;QAChD,kBAAkB,EAAE,IAAI;QACxB,eAAe,EAAE,EAAE;QACnB,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,yCAAyC;oBACtD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,eAAe,EAAE,IAAI;oBACrB,iBAAiB,EAAE,IAAI;iBACxB;aACF;SACF;QACD,KAAK,EAAE;YACL,QAAQ,EAAE,sBAAsB;YAChC,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,SAAS;gBACnB,KAAK,EAAE,MAAM;aACd;SACF;KACF;IACD,OAAO,EAAE;QACP,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,WAAW;QACrB,WAAW,EAAE,iCAAiC;QAC9C,kBAAkB,EAAE,IAAI;QACxB,eAAe,EAAE,EAAE;QACnB,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,yCAAyC;oBACtD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;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QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;4BACnD,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;yBACtD;qBACF;iBACF;aACF;SACF;KACF;CACyC,CAAC","sourcesContent":["import type { UiComponentMetaRegistry } from '@ankhorage/contracts';\n\nimport { INVERTED_POLARITY_PROP } from '../../constants/authoring';\nimport { imageMeta } from '../image/imageMeta';\nimport { readerMeta } from '../reader/meta';\n\nexport const ZORA_BINDABLE_COMPONENT_META = {\n Text: {\n name: 'Text',\n category: 'component',\n description: 'Displays app-facing text content.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n text: {\n label: 'Text',\n description: 'Text content rendered by the component.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n text: {\n type: 'string',\n category: 'Content',\n label: 'Text',\n },\n },\n },\n Heading: {\n name: 'Heading',\n category: 'component',\n description: 'Displays semantic heading text.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n text: {\n label: 'Text',\n description: 'Heading text rendered by the component.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n text: {\n type: 'string',\n category: 'Content',\n label: 'Text',\n },\n },\n },\n Button: {\n name: 'Button',\n category: 'component',\n description: 'Runs an action when pressed.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n children: {\n label: 'Label',\n description: 'Button label text.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the button is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n press: {\n label: 'Press',\n description: 'Runs when the button is pressed.',\n payload: {\n eventType: 'button.press',\n fields: [],\n },\n },\n },\n },\n events: {\n press: {\n label: 'Press',\n eventType: 'button.press',\n description: 'Emitted when the button action runs.',\n payloadFields: [],\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n children: {\n type: 'string',\n category: 'Content',\n label: 'Label',\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n },\n },\n },\n Image: {\n ...imageMeta,\n props: { ...imageMeta.props, inverted: INVERTED_POLARITY_PROP },\n bindings: {\n props: {\n source: {\n label: 'Source',\n description: 'Dynamic image source or asset descriptor.',\n value: {\n type: 'imageAsset',\n fields: [\n { path: 'uri', type: 'string', label: 'URI' },\n { path: 'width', type: 'number', label: 'Width' },\n { path: 'height', type: 'number', label: 'Height' },\n { path: 'alt', type: 'string', label: 'Alt text' },\n ],\n },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n },\n TextInput: {\n name: 'TextInput',\n category: 'component',\n description: 'Captures a string value in single-line, multiline, or secure-entry modes.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n value: {\n label: 'Value',\n description: 'Current text input value.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the text input is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n value: {\n type: 'string',\n category: 'Content',\n label: 'Value',\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n },\n },\n },\n Select: {\n name: 'Select',\n category: 'component',\n description: 'Captures one selected string value with optional searchable options.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n value: {\n label: 'Value',\n description: 'Current selected value.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the select is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n options: {\n label: 'Options',\n description: 'Reactive serializable options rendered by the select.',\n value: {\n type: 'array',\n itemType: 'object',\n fields: [\n { path: '[].value', type: 'string', label: 'Value' },\n { path: '[].label', type: 'string', label: 'Label' },\n { path: '[].disabled', type: 'boolean', label: 'Disabled' },\n ],\n },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n searchValue: {\n label: 'Search value',\n description: 'Current query for the searchable option list.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n searchable: {\n label: 'Searchable',\n description: 'Whether the option list exposes a search control.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n valueChange: {\n label: 'Value change',\n description: 'Runs when the selected value changes.',\n payload: {\n eventType: 'select.valueChange',\n fields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n searchChange: {\n label: 'Search change',\n description: 'Runs when the searchable option query changes.',\n payload: {\n eventType: 'select.searchChange',\n fields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n },\n },\n events: {\n valueChange: {\n label: 'Value change',\n eventType: 'select.valueChange',\n description: 'Emitted when the selected value changes.',\n payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n searchChange: {\n label: 'Search change',\n eventType: 'select.searchChange',\n description: 'Emitted when the searchable option query changes.',\n payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n value: {\n type: 'string',\n category: 'Content',\n label: 'Value',\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n },\n options: {\n type: 'array',\n category: 'Content',\n label: 'Options',\n },\n searchable: {\n type: 'boolean',\n category: 'Behavior',\n label: 'Searchable',\n },\n searchValue: {\n type: 'string',\n category: 'State',\n label: 'Search value',\n },\n },\n },\n Checkbox: {\n name: 'Checkbox',\n category: 'component',\n description: 'Captures a boolean checked state.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n checked: {\n label: 'Checked',\n description: 'Current checked state.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the checkbox is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n checked: {\n type: 'boolean',\n category: 'State',\n label: 'Checked',\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n },\n },\n },\n Switch: {\n name: 'Switch',\n category: 'component',\n description: 'Captures a boolean checked state.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n checked: {\n label: 'Checked',\n description: 'Current checked state.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the switch is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n checked: { type: 'boolean', category: 'State', label: 'Checked' },\n disabled: { type: 'boolean', category: 'State', label: 'Disabled' },\n },\n },\n List: {\n name: 'List',\n category: 'pattern',\n description: 'Renders a collection of list items.',\n directManifestNode: true,\n allowedChildren: ['ListSection', 'ListItem'],\n bindings: {\n props: {\n items: {\n label: 'Items',\n description: 'Collection rendered by the list.',\n value: {\n type: 'array',\n itemType: 'object',\n },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n items: {\n type: 'array',\n category: 'Data',\n label: 'Items',\n },\n },\n },\n DataTable: {\n name: 'DataTable',\n category: 'component',\n description: 'Renders tabular records with portable selection and activation events.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n rows: {\n label: 'Rows',\n description: 'Rows rendered by the table.',\n value: { type: 'array', itemType: 'record' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n selectedRowIds: {\n label: 'Selected row IDs',\n description: 'Controlled stable row identities selected with the checkbox column.',\n value: { type: 'array', itemType: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n selectionChange: {\n label: 'Selection change',\n payload: {\n eventType: 'dataTable.selectionChange',\n fields: [{ path: 'selectedRowIds', type: 'unknown', label: 'Selected row IDs' }],\n },\n },\n rowActivate: {\n label: 'Activate row',\n payload: {\n eventType: 'dataTable.rowActivate',\n fields: [{ path: 'rowId', type: 'string', label: 'Row ID' }],\n },\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n rows: { type: 'array', category: 'Data', label: 'Rows' },\n selectedRowIds: { type: 'array', category: 'Selection', label: 'Selected row IDs' },\n },\n },\n Reader: {\n ...readerMeta,\n props: { ...readerMeta.props, inverted: INVERTED_POLARITY_PROP },\n bindings: {\n props: {\n location: {\n label: 'Location',\n description: 'Opaque adapter locator to restore.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n page: {\n label: 'Page',\n description: 'One-based visible page.',\n value: { type: 'number' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n pageCount: {\n label: 'Page count',\n description: 'Current number of logical pages.',\n value: { type: 'number' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n progress: {\n label: 'Progress',\n description: 'Reading progression clamped from zero to one.',\n value: { type: 'number' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n status: {\n label: 'Status',\n description: 'Current reader loading status.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n previousPage: {\n label: 'Previous page',\n description: 'Requests navigation to the previous page.',\n payload: { eventType: 'reader.previousPage', fields: [] },\n },\n nextPage: {\n label: 'Next page',\n description: 'Requests navigation to the next page.',\n payload: { eventType: 'reader.nextPage', fields: [] },\n },\n locationChange: {\n label: 'Location change',\n description: 'Runs after the adapter displays a destination.',\n payload: {\n eventType: 'reader.locationChange',\n fields: [\n { path: 'format', type: 'string', label: 'Format' },\n { path: 'locator', type: 'string', label: 'Opaque locator' },\n { path: 'page', type: 'number', label: 'Page' },\n { path: 'pageCount', type: 'number', label: 'Page count' },\n { path: 'progression', type: 'number', label: 'Progression' },\n { path: 'chapterId', type: 'string', label: 'Chapter ID' },\n { path: 'chapterTitle', type: 'string', label: 'Chapter title' },\n { path: 'trigger', type: 'string', label: 'Navigation trigger' },\n ],\n },\n },\n openContents: {\n label: 'Open contents',\n payload: { eventType: 'reader.openContents', fields: [] },\n },\n openAppearance: {\n label: 'Open appearance',\n payload: { eventType: 'reader.openAppearance', fields: [] },\n },\n toggleHighlight: {\n label: 'Toggle highlight',\n payload: { eventType: 'reader.toggleHighlight', fields: [] },\n },\n openExternalLink: {\n label: 'Open external link',\n payload: {\n eventType: 'reader.openExternalLink',\n fields: [{ path: 'url', type: 'string', label: 'URL' }],\n },\n },\n readerError: {\n label: 'Reader error',\n payload: {\n eventType: 'reader.error',\n fields: [\n { path: 'code', type: 'string', label: 'Error code' },\n { path: 'format', type: 'string', label: 'Format' },\n { path: 'message', type: 'string', label: 'Message' },\n ],\n },\n },\n },\n },\n },\n} as const satisfies UiComponentMetaRegistry;\n\nexport type ZoraBindableComponentType = keyof typeof ZORA_BINDABLE_COMPONENT_META;\n"]}
1
+ {"version":3,"file":"bindableComponentMeta.js","sourceRoot":"","sources":["../../../src/features/registry/bindableComponentMeta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,WAAW;QACrB,WAAW,EAAE,mCAAmC;QAChD,kBAAkB,EAAE,IAAI;QACxB,eAAe,EAAE,EAAE;QACnB,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL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,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,oBAAoB,EAAE;yBACjE;qBACF;iBACF;gBACD,YAAY,EAAE;oBACZ,KAAK,EAAE,eAAe;oBACtB,OAAO,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,EAAE,EAAE,EAAE;iBAC1D;gBACD,cAAc,EAAE;oBACd,KAAK,EAAE,iBAAiB;oBACxB,OAAO,EAAE,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,EAAE,EAAE;iBAC5D;gBACD,eAAe,EAAE;oBACf,KAAK,EAAE,kBAAkB;oBACzB,OAAO,EAAE,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,EAAE,EAAE,EAAE;iBAC7D;gBACD,gBAAgB,EAAE;oBAChB,KAAK,EAAE,oBAAoB;oBAC3B,OAAO,EAAE;wBACP,SAAS,EAAE,yBAAyB;wBACpC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;qBACxD;iBACF;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,cAAc;oBACrB,OAAO,EAAE;wBACP,SAAS,EAAE,cAAc;wBACzB,MAAM,EAAE;4BACN,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE;4BACrD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;4BACnD,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE;yBACtD;qBACF;iBACF;aACF;SACF;KACF;CACyC,CAAC","sourcesContent":["import type { UiComponentMetaRegistry } from '@ankhorage/contracts';\n\nimport { INVERTED_POLARITY_PROP } from '../../constants/authoring';\nimport { imageMeta } from '../image/imageMeta';\nimport { readerMeta } from '../reader/meta';\n\nexport const ZORA_BINDABLE_COMPONENT_META = {\n Text: {\n name: 'Text',\n category: 'component',\n description: 'Displays app-facing text content.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n text: {\n label: 'Text',\n description: 'Text content rendered by the component.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n text: {\n type: 'string',\n category: 'Content',\n label: 'Text',\n },\n },\n },\n Heading: {\n name: 'Heading',\n category: 'component',\n description: 'Displays semantic heading text.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n text: {\n label: 'Text',\n description: 'Heading text rendered by the component.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n text: {\n type: 'string',\n category: 'Content',\n label: 'Text',\n },\n },\n },\n Button: {\n name: 'Button',\n category: 'component',\n description: 'Runs an action when pressed.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n children: {\n label: 'Label',\n description: 'Button label text.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the button is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n press: {\n label: 'Press',\n description: 'Runs when the button is pressed.',\n payload: {\n eventType: 'button.press',\n fields: [],\n },\n },\n },\n },\n events: {\n press: {\n label: 'Press',\n eventType: 'button.press',\n description: 'Emitted when the button action runs.',\n payloadFields: [],\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n children: {\n type: 'string',\n category: 'Content',\n label: 'Label',\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n },\n },\n },\n Image: {\n ...imageMeta,\n props: { ...imageMeta.props, inverted: INVERTED_POLARITY_PROP },\n bindings: {\n props: {\n source: {\n label: 'Source',\n description: 'Dynamic image source or asset descriptor.',\n value: {\n type: 'imageAsset',\n fields: [\n { path: 'uri', type: 'string', label: 'URI' },\n { path: 'width', type: 'number', label: 'Width' },\n { path: 'height', type: 'number', label: 'Height' },\n { path: 'alt', type: 'string', label: 'Alt text' },\n ],\n },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n },\n TextInput: {\n name: 'TextInput',\n category: 'component',\n description: 'Captures a string value in single-line, multiline, or secure-entry modes.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n value: {\n label: 'Value',\n description: 'Current text input value.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the text input is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n value: {\n type: 'string',\n category: 'Content',\n label: 'Value',\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n },\n },\n },\n Select: {\n name: 'Select',\n category: 'component',\n description: 'Captures one selected string value with optional searchable options.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n value: {\n label: 'Value',\n description: 'Current selected value.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the select is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n options: {\n label: 'Options',\n description: 'Reactive serializable options rendered by the select.',\n value: {\n type: 'array',\n itemType: 'object',\n fields: [\n { path: '[].value', type: 'string', label: 'Value' },\n { path: '[].label', type: 'string', label: 'Label' },\n { path: '[].disabled', type: 'boolean', label: 'Disabled' },\n ],\n },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n searchValue: {\n label: 'Search value',\n description: 'Current query for the searchable option list.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n searchable: {\n label: 'Searchable',\n description: 'Whether the option list exposes a search control.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n valueChange: {\n label: 'Value change',\n description: 'Runs when the selected value changes.',\n payload: {\n eventType: 'select.valueChange',\n fields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n searchChange: {\n label: 'Search change',\n description: 'Runs when the searchable option query changes.',\n payload: {\n eventType: 'select.searchChange',\n fields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n },\n },\n events: {\n valueChange: {\n label: 'Value change',\n eventType: 'select.valueChange',\n description: 'Emitted when the selected value changes.',\n payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n searchChange: {\n label: 'Search change',\n eventType: 'select.searchChange',\n description: 'Emitted when the searchable option query changes.',\n payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n value: {\n type: 'string',\n category: 'Content',\n label: 'Value',\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n },\n options: {\n type: 'array',\n category: 'Content',\n label: 'Options',\n },\n searchable: {\n type: 'boolean',\n category: 'Behavior',\n label: 'Searchable',\n },\n searchValue: {\n type: 'string',\n category: 'State',\n label: 'Search value',\n },\n },\n },\n Checkbox: {\n name: 'Checkbox',\n category: 'component',\n description: 'Captures a boolean checked state.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n checked: {\n label: 'Checked',\n description: 'Current checked state.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the checkbox is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n checked: {\n type: 'boolean',\n category: 'State',\n label: 'Checked',\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n },\n },\n },\n Switch: {\n name: 'Switch',\n category: 'component',\n description: 'Captures a boolean checked state.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n checked: {\n label: 'Checked',\n description: 'Current checked state.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n disabled: {\n label: 'Disabled',\n description: 'Whether the switch is disabled.',\n value: { type: 'boolean' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n checked: { type: 'boolean', category: 'State', label: 'Checked' },\n disabled: { type: 'boolean', category: 'State', label: 'Disabled' },\n },\n },\n List: {\n name: 'List',\n category: 'pattern',\n description: 'Renders a collection of list items.',\n directManifestNode: true,\n allowedChildren: ['ListSection', 'ListItem'],\n bindings: {\n props: {\n items: {\n label: 'Items',\n description: 'Collection rendered by the list.',\n value: {\n type: 'array',\n itemType: 'object',\n },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n items: {\n type: 'array',\n category: 'Data',\n label: 'Items',\n },\n },\n },\n DataTable: {\n name: 'DataTable',\n category: 'component',\n description: 'Renders tabular records with portable selection and activation events.',\n directManifestNode: true,\n allowedChildren: [],\n bindings: {\n props: {\n rows: {\n label: 'Rows',\n description: 'Rows rendered by the table.',\n value: { type: 'array', itemType: 'record' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n selectedRowIds: {\n label: 'Selected row IDs',\n description: 'Controlled stable row identities selected with the checkbox column.',\n value: { type: 'array', itemType: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n activeRowId: {\n label: 'Active row ID',\n description:\n 'Controlled stable row identity visibly activated independently of checkbox selection.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n selectionChange: {\n label: 'Selection change',\n payload: {\n eventType: 'dataTable.selectionChange',\n fields: [{ path: 'selectedRowIds', type: 'unknown', label: 'Selected row IDs' }],\n },\n },\n rowActivate: {\n label: 'Activate row',\n payload: {\n eventType: 'dataTable.rowActivate',\n fields: [{ path: 'rowId', type: 'string', label: 'Row ID' }],\n },\n },\n },\n },\n props: {\n inverted: INVERTED_POLARITY_PROP,\n rows: { type: 'array', category: 'Data', label: 'Rows' },\n selectedRowIds: { type: 'array', category: 'Selection', label: 'Selected row IDs' },\n activeRowId: { type: 'string', category: 'Selection', label: 'Active row ID' },\n },\n },\n Reader: {\n ...readerMeta,\n props: { ...readerMeta.props, inverted: INVERTED_POLARITY_PROP },\n bindings: {\n props: {\n location: {\n label: 'Location',\n description: 'Opaque adapter locator to restore.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n page: {\n label: 'Page',\n description: 'One-based visible page.',\n value: { type: 'number' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n pageCount: {\n label: 'Page count',\n description: 'Current number of logical pages.',\n value: { type: 'number' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n progress: {\n label: 'Progress',\n description: 'Reading progression clamped from zero to one.',\n value: { type: 'number' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n status: {\n label: 'Status',\n description: 'Current reader loading status.',\n value: { type: 'string' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n previousPage: {\n label: 'Previous page',\n description: 'Requests navigation to the previous page.',\n payload: { eventType: 'reader.previousPage', fields: [] },\n },\n nextPage: {\n label: 'Next page',\n description: 'Requests navigation to the next page.',\n payload: { eventType: 'reader.nextPage', fields: [] },\n },\n locationChange: {\n label: 'Location change',\n description: 'Runs after the adapter displays a destination.',\n payload: {\n eventType: 'reader.locationChange',\n fields: [\n { path: 'format', type: 'string', label: 'Format' },\n { path: 'locator', type: 'string', label: 'Opaque locator' },\n { path: 'page', type: 'number', label: 'Page' },\n { path: 'pageCount', type: 'number', label: 'Page count' },\n { path: 'progression', type: 'number', label: 'Progression' },\n { path: 'chapterId', type: 'string', label: 'Chapter ID' },\n { path: 'chapterTitle', type: 'string', label: 'Chapter title' },\n { path: 'trigger', type: 'string', label: 'Navigation trigger' },\n ],\n },\n },\n openContents: {\n label: 'Open contents',\n payload: { eventType: 'reader.openContents', fields: [] },\n },\n openAppearance: {\n label: 'Open appearance',\n payload: { eventType: 'reader.openAppearance', fields: [] },\n },\n toggleHighlight: {\n label: 'Toggle highlight',\n payload: { eventType: 'reader.toggleHighlight', fields: [] },\n },\n openExternalLink: {\n label: 'Open external link',\n payload: {\n eventType: 'reader.openExternalLink',\n fields: [{ path: 'url', type: 'string', label: 'URL' }],\n },\n },\n readerError: {\n label: 'Reader error',\n payload: {\n eventType: 'reader.error',\n fields: [\n { path: 'code', type: 'string', label: 'Error code' },\n { path: 'format', type: 'string', label: 'Format' },\n { path: 'message', type: 'string', label: 'Message' },\n ],\n },\n },\n },\n },\n },\n} as const satisfies UiComponentMetaRegistry;\n\nexport type ZoraBindableComponentType = keyof typeof ZORA_BINDABLE_COMPONENT_META;\n"]}
@@ -74,6 +74,8 @@ export interface DataTableProps<TRow extends object> extends ZoraBaseProps {
74
74
  rowKey?: keyof TRow;
75
75
  /** Controlled identifiers for rows selected with the optional checkbox column. */
76
76
  selectedRowIds?: readonly string[];
77
+ /** Controlled stable row identity whose activation state is visibly presented. */
78
+ activeRowId?: string;
77
79
  /** Receives the next controlled selection after a row or visible-row toggle. */
78
80
  onSelectedRowIdsChange?: (selectedRowIds: readonly string[]) => void;
79
81
  /** Emits the serializable controlled selection payload used by AppManifest events. */
@@ -1 +1 @@
1
- {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../src/types/data-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,K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MAAM,CAAC;IACrB,gFAAgF;IAChF,sBAAsB,CAAC,EAAE,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAAC;IACrE,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,IAAI,CAAC;IACnE,kEAAkE;IAClE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC3D,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;IAC/E,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"data-table.js","sourceRoot":"","sources":["../../src/types/data-table.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\nimport type { PopoverMenuActionIntent } from './popover-menu';\nimport type { TextVariant } from './text';\n\nexport type DataTableColumnAlign = 'start' | 'center' | 'end';\nexport type DataTableDensity = 'comfortable' | 'compact';\nexport type DataTableSortDirection = 'asc' | 'desc';\n\n/** A portable reference to a string-valued row field used by a manifest cell. */\nexport type DataTableRowField<TRow extends object> = Extract<keyof TRow, string>;\n\n/** Serializable rich presentations for a DataTable column. */\nexport type DataTableCellSpec<TRow extends object> =\n | {\n readonly kind: 'image';\n readonly source: DataTableRowField<TRow>;\n readonly alt?: DataTableRowField<TRow>;\n }\n | {\n readonly kind: 'text';\n readonly value: DataTableRowField<TRow>;\n readonly weight?: 'regular' | 'medium' | 'semiBold' | 'bold';\n readonly variant?: TextVariant;\n }\n | {\n readonly kind: 'link';\n readonly href: DataTableRowField<TRow>;\n readonly label?: DataTableRowField<TRow>;\n readonly variant?: TextVariant;\n }\n | {\n readonly kind: 'stack';\n readonly direction: 'row' | 'column';\n readonly align?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';\n readonly gap?: 'xxs' | 'xs' | 's' | 'm' | 'l';\n readonly children: readonly DataTableCellSpec<TRow>[];\n };\n\nexport interface DataTableSortState {\n columnId: string;\n direction: DataTableSortDirection;\n}\n\nexport interface DataTableCellContext<TRow extends object> {\n row: TRow;\n rowIndex: number;\n column: DataTableColumn<TRow>;\n value: unknown;\n}\n\nexport interface DataTableColumn<TRow extends object> {\n id: string;\n header: React.ReactNode;\n accessor?: keyof TRow;\n align?: DataTableColumnAlign;\n width?: number;\n minWidth?: number;\n sortable?: boolean;\n /** Portable manifest presentation. Takes precedence over the default accessor rendering. */\n cell?: DataTableCellSpec<TRow>;\n renderCell?: (context: DataTableCellContext<TRow>) => React.ReactNode;\n}\n\nexport interface DataTableSelectionChangeEvent {\n readonly selectedRowIds: readonly string[];\n}\n\nexport interface DataTableRowActivateEvent {\n readonly rowId: string;\n}\n\nexport interface DataTableRowAction<TRow extends object> {\n id: string;\n title: React.ReactNode;\n description?: React.ReactNode;\n icon?: ButtonIconSpec;\n intent?: PopoverMenuActionIntent;\n disabled?: boolean;\n onPress?: (row: TRow) => void;\n}\n\nexport interface DataTableProps<TRow extends object> extends ZoraBaseProps {\n columns: readonly DataTableColumn<TRow>[];\n rows: readonly TRow[];\n rowId?: (row: TRow, index: number) => string;\n rowKey?: keyof TRow;\n /** Controlled identifiers for rows selected with the optional checkbox column. */\n selectedRowIds?: readonly string[];\n /** Receives the next controlled selection after a row or visible-row toggle. */\n onSelectedRowIdsChange?: (selectedRowIds: readonly string[]) => void;\n /** Emits the serializable controlled selection payload used by AppManifest events. */\n onSelectionChange?: (event: DataTableSelectionChangeEvent) => void;\n /** Emits a row activation independently of checkbox selection. */\n onRowActivate?: (event: DataTableRowActivateEvent) => void;\n rowActions?: (row: TRow, index: number) => readonly DataTableRowAction<TRow>[];\n sort?: DataTableSortState;\n onSortChange?: (sort: DataTableSortState) => void;\n loading?: boolean;\n loadingRows?: number;\n emptyTitle?: React.ReactNode;\n emptyDescription?: React.ReactNode;\n density?: DataTableDensity;\n testID?: string;\n}\n"]}
1
+ {"version":3,"file":"data-table.js","sourceRoot":"","sources":["../../src/types/data-table.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\nimport type { PopoverMenuActionIntent } from './popover-menu';\nimport type { TextVariant } from './text';\n\nexport type DataTableColumnAlign = 'start' | 'center' | 'end';\nexport type DataTableDensity = 'comfortable' | 'compact';\nexport type DataTableSortDirection = 'asc' | 'desc';\n\n/** A portable reference to a string-valued row field used by a manifest cell. */\nexport type DataTableRowField<TRow extends object> = Extract<keyof TRow, string>;\n\n/** Serializable rich presentations for a DataTable column. */\nexport type DataTableCellSpec<TRow extends object> =\n | {\n readonly kind: 'image';\n readonly source: DataTableRowField<TRow>;\n readonly alt?: DataTableRowField<TRow>;\n }\n | {\n readonly kind: 'text';\n readonly value: DataTableRowField<TRow>;\n readonly weight?: 'regular' | 'medium' | 'semiBold' | 'bold';\n readonly variant?: TextVariant;\n }\n | {\n readonly kind: 'link';\n readonly href: DataTableRowField<TRow>;\n readonly label?: DataTableRowField<TRow>;\n readonly variant?: TextVariant;\n }\n | {\n readonly kind: 'stack';\n readonly direction: 'row' | 'column';\n readonly align?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';\n readonly gap?: 'xxs' | 'xs' | 's' | 'm' | 'l';\n readonly children: readonly DataTableCellSpec<TRow>[];\n };\n\nexport interface DataTableSortState {\n columnId: string;\n direction: DataTableSortDirection;\n}\n\nexport interface DataTableCellContext<TRow extends object> {\n row: TRow;\n rowIndex: number;\n column: DataTableColumn<TRow>;\n value: unknown;\n}\n\nexport interface DataTableColumn<TRow extends object> {\n id: string;\n header: React.ReactNode;\n accessor?: keyof TRow;\n align?: DataTableColumnAlign;\n width?: number;\n minWidth?: number;\n sortable?: boolean;\n /** Portable manifest presentation. Takes precedence over the default accessor rendering. */\n cell?: DataTableCellSpec<TRow>;\n renderCell?: (context: DataTableCellContext<TRow>) => React.ReactNode;\n}\n\nexport interface DataTableSelectionChangeEvent {\n readonly selectedRowIds: readonly string[];\n}\n\nexport interface DataTableRowActivateEvent {\n readonly rowId: string;\n}\n\nexport interface DataTableRowAction<TRow extends object> {\n id: string;\n title: React.ReactNode;\n description?: React.ReactNode;\n icon?: ButtonIconSpec;\n intent?: PopoverMenuActionIntent;\n disabled?: boolean;\n onPress?: (row: TRow) => void;\n}\n\nexport interface DataTableProps<TRow extends object> extends ZoraBaseProps {\n columns: readonly DataTableColumn<TRow>[];\n rows: readonly TRow[];\n rowId?: (row: TRow, index: number) => string;\n rowKey?: keyof TRow;\n /** Controlled identifiers for rows selected with the optional checkbox column. */\n selectedRowIds?: readonly string[];\n /** Controlled stable row identity whose activation state is visibly presented. */\n activeRowId?: string;\n /** Receives the next controlled selection after a row or visible-row toggle. */\n onSelectedRowIdsChange?: (selectedRowIds: readonly string[]) => void;\n /** Emits the serializable controlled selection payload used by AppManifest events. */\n onSelectionChange?: (event: DataTableSelectionChangeEvent) => void;\n /** Emits a row activation independently of checkbox selection. */\n onRowActivate?: (event: DataTableRowActivateEvent) => void;\n rowActions?: (row: TRow, index: number) => readonly DataTableRowAction<TRow>[];\n sort?: DataTableSortState;\n onSortChange?: (sort: DataTableSortState) => void;\n loading?: boolean;\n loadingRows?: number;\n emptyTitle?: React.ReactNode;\n emptyDescription?: React.ReactNode;\n density?: DataTableDensity;\n testID?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/zora",
3
3
  "type": "module",
4
- "version": "28.11.2",
4
+ "version": "28.12.0",
5
5
  "description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
6
6
  "homepage": "https://github.com/ankhorage/zora#readme",
7
7
  "bugs": {
@@ -40,14 +40,21 @@ await mock.module('react-native', () => ({
40
40
  accessibilityLabel,
41
41
  accessibilityRole,
42
42
  children,
43
+ disabled,
43
44
  onPress,
44
45
  }: {
45
46
  accessibilityLabel?: string;
46
47
  accessibilityRole?: string;
47
48
  children?: React.ReactNode;
48
- onPress?: () => void;
49
+ disabled?: boolean;
50
+ onPress?: (event: { stopPropagation: () => void }) => void;
49
51
  }) => (
50
- <button aria-label={accessibilityLabel} onClick={onPress} role={accessibilityRole}>
52
+ <button
53
+ aria-label={accessibilityLabel}
54
+ disabled={disabled}
55
+ onClick={(event) => onPress?.(event)}
56
+ role={accessibilityRole}
57
+ >
51
58
  {children}
52
59
  </button>
53
60
  ),
@@ -63,15 +70,19 @@ await mock.module('../../../button/public', () => ({
63
70
  }));
64
71
  await mock.module('../../../card/public', () => ({
65
72
  Card: ({
73
+ accessibilityLabel,
66
74
  actions,
67
75
  children,
76
+ onPress,
68
77
  title,
69
78
  }: {
79
+ accessibilityLabel?: string;
70
80
  actions?: React.ReactNode;
71
81
  children?: React.ReactNode;
82
+ onPress?: () => void;
72
83
  title?: React.ReactNode;
73
84
  }) => (
74
- <div>
85
+ <div aria-label={accessibilityLabel} onClick={onPress} role={onPress ? 'button' : undefined}>
75
86
  {title}
76
87
  {actions}
77
88
  {children}
@@ -117,7 +128,11 @@ await mock.module('../../../image/public', () => ({
117
128
  Image: ({ alt, source }: { alt?: string; source?: string }) => <img alt={alt} src={source} />,
118
129
  }));
119
130
  await mock.module('../../../layout/public', () => ({ View }));
120
- await mock.module('../../../popover-menu/public', () => ({ PopoverMenu: View }));
131
+ await mock.module('../../../popover-menu/public', () => ({
132
+ PopoverMenu: ({ trigger }: { trigger: (input: { toggle: () => void }) => React.ReactNode }) => (
133
+ <>{trigger({ toggle: () => undefined })}</>
134
+ ),
135
+ }));
121
136
  await mock.module('../../../skeleton/public', () => ({ SkeletonList: View }));
122
137
  await mock.module('../../../theme/adapters/inbound/withZoraThemeScope', () => ({
123
138
  withZoraThemeScope: <P,>(Component: React.ComponentType<P>) => Component,
@@ -208,6 +223,7 @@ test('uses stable row identities for controlled checkbox and all-visible selecti
208
223
  />,
209
224
  );
210
225
  expect(all?.getAttribute('aria-checked')).toBe('true');
226
+ expect(mounted.host.querySelector('[aria-label="Activate row acme"]')).toBeNull();
211
227
  expect(mounted.host.textContent).not.toContain('Actions');
212
228
  expect(mounted.host.innerHTML).not.toContain('min-width: 720px');
213
229
  expect(mounted.host.innerHTML).not.toContain('min-width: 140px');
@@ -358,7 +374,7 @@ test('uses desktop stable row ids and the controlled callback in mobile cards',
358
374
  '{"selectedRowIds":["company-acme","company-zora"]}',
359
375
  );
360
376
 
361
- const activation = mounted.host.querySelector<HTMLButtonElement>(
377
+ const activation = mounted.host.querySelector<HTMLElement>(
362
378
  '[aria-label="Activate row company-acme"]',
363
379
  );
364
380
  activation?.click();
@@ -370,6 +386,37 @@ test('uses desktop stable row ids and the controlled callback in mobile cards',
370
386
  const companyLink = mounted.host.querySelector<HTMLButtonElement>('[role="link"]');
371
387
  companyLink?.click();
372
388
  expect(openedUrls).toEqual(['https://acme.test']);
389
+ expect(activationEvents).toEqual([{ rowId: 'company-acme' }]);
390
+ } finally {
391
+ mobilePresentation = false;
392
+ await mounted.unmount();
393
+ mounted.host.remove();
394
+ }
395
+ });
396
+
397
+ test('keeps mobile row activation and row actions independent', async () => {
398
+ mobilePresentation = true;
399
+ const mounted = mount();
400
+ const activationEvents: { rowId: string }[] = [];
401
+
402
+ try {
403
+ await mounted.render(
404
+ <DataTable
405
+ columns={[{ accessor: 'name', header: 'Company', id: 'company' }]}
406
+ onRowActivate={(event) => activationEvents.push(event)}
407
+ rowActions={() => [{ id: 'archive', onPress: () => undefined, title: 'Archive' }]}
408
+ rowKey="id"
409
+ rows={[{ id: 'acme', name: 'Acme' }]}
410
+ />,
411
+ );
412
+
413
+ mounted.host.querySelector<HTMLButtonElement>('[aria-label="Row actions"]')?.click();
414
+ expect(activationEvents).toEqual([]);
415
+
416
+ const row = mounted.host.querySelector<HTMLDivElement>('[aria-label="Activate row acme"]');
417
+ expect(row?.getAttribute('role')).toBe('button');
418
+ row?.click();
419
+ expect(activationEvents).toEqual([{ rowId: 'acme' }]);
373
420
  } finally {
374
421
  mobilePresentation = false;
375
422
  await mounted.unmount();
@@ -152,7 +152,13 @@ function renderPortableCell<TRow extends object>(
152
152
  const label = resolveCellString(resolveCellField(row, cell.label ?? cell.href)) ?? href;
153
153
  const externalUrl = href ? resolveExternalWebsiteUrl(href) : undefined;
154
154
  return externalUrl ? (
155
- <Pressable accessibilityRole="link" onPress={() => openExternalUrl(externalUrl)}>
155
+ <Pressable
156
+ accessibilityRole="link"
157
+ onPress={(event) => {
158
+ event.stopPropagation();
159
+ openExternalUrl(externalUrl);
160
+ }}
161
+ >
156
162
  <Text color="primary" variant={cell.variant ?? 'bodySmall'} weight="medium">
157
163
  {label}
158
164
  </Text>
@@ -396,6 +402,7 @@ function DataTableDesktop<TRow extends object>({
396
402
  rowActions,
397
403
  rowId,
398
404
  rowKey,
405
+ activeRowId,
399
406
  selectedRowIds,
400
407
  onSelectedRowIdsChange,
401
408
  onSelectionChange,
@@ -447,11 +454,12 @@ function DataTableDesktop<TRow extends object>({
447
454
  {rows.map((row, rowIndex) => {
448
455
  const currentRowId = resolveDataTableRowKey(row, rowIndex, rowKey, rowId);
449
456
  const selected = selectedRowIdSet.has(currentRowId);
457
+ const active = activeRowId === currentRowId;
450
458
 
451
459
  return (
452
460
  <View
453
- bg="surface"
454
- borderColor="border"
461
+ bg={active ? 'subtle' : 'surface'}
462
+ borderColor={active ? 'primary' : 'border'}
455
463
  borderWidth={1}
456
464
  key={currentRowId}
457
465
  radius="m"
@@ -480,28 +488,41 @@ function DataTableDesktop<TRow extends object>({
480
488
  />
481
489
  </View>
482
490
  ) : null}
483
- <View direction="row" style={{ flexGrow: 1, flexShrink: 1 }}>
484
- {columns.map((column) => (
485
- <View
486
- key={column.id}
487
- px={padding.px}
488
- py={padding.py}
489
- style={resolveCellStyle(column)}
490
- >
491
- {renderTableCell(column, row, rowIndex)}
492
- </View>
493
- ))}
494
- </View>
495
491
  {onRowActivate ? (
496
- <IconButton
497
- icon={{ name: 'arrow-forward' }}
498
- interactionPolicy={interactionPolicy}
499
- label={`Activate row ${currentRowId}`}
492
+ <Pressable
493
+ accessibilityLabel={`Activate row ${currentRowId}`}
494
+ accessibilityRole="button"
495
+ disabled={interactionPolicy === 'passive'}
500
496
  onPress={() => onRowActivate({ rowId: currentRowId })}
501
- size="s"
502
- variant="ghost"
503
- />
504
- ) : null}
497
+ style={{ flexGrow: 1, flexShrink: 1 }}
498
+ >
499
+ <View direction="row">
500
+ {columns.map((column) => (
501
+ <View
502
+ key={column.id}
503
+ px={padding.px}
504
+ py={padding.py}
505
+ style={resolveCellStyle(column)}
506
+ >
507
+ {renderTableCell(column, row, rowIndex)}
508
+ </View>
509
+ ))}
510
+ </View>
511
+ </Pressable>
512
+ ) : (
513
+ <View direction="row">
514
+ {columns.map((column) => (
515
+ <View
516
+ key={column.id}
517
+ px={padding.px}
518
+ py={padding.py}
519
+ style={resolveCellStyle(column)}
520
+ >
521
+ {renderTableCell(column, row, rowIndex)}
522
+ </View>
523
+ ))}
524
+ </View>
525
+ )}
505
526
  {hasRowActions ? (
506
527
  <View
507
528
  px={padding.px}
@@ -528,6 +549,7 @@ function DataTableMobile<TRow extends object>({
528
549
  rowActions,
529
550
  rowId,
530
551
  rowKey,
552
+ activeRowId,
531
553
  selectedRowIds,
532
554
  onSelectedRowIdsChange,
533
555
  onSelectionChange,
@@ -547,58 +569,23 @@ function DataTableMobile<TRow extends object>({
547
569
  <View gap="s">
548
570
  {rows.map((row, rowIndex) => {
549
571
  const currentRowId = resolveDataTableRowKey(row, rowIndex, rowKey, rowId);
572
+ const active = activeRowId === currentRowId;
550
573
  const title = primaryColumn
551
574
  ? renderCell(primaryColumn, row, rowIndex)
552
575
  : `Row ${rowIndex + 1}`;
553
576
  const actions = renderRowActions({ row, rowActions, rowIndex, testID, interactionPolicy });
554
- const rowActivation = onRowActivate ? (
555
- <IconButton
556
- icon={{ name: 'arrow-forward' }}
557
- interactionPolicy={interactionPolicy}
558
- label={`Activate row ${currentRowId}`}
559
- onPress={() => onRowActivate({ rowId: currentRowId })}
560
- size="s"
561
- variant="ghost"
562
- />
563
- ) : null;
564
-
565
- return (
577
+ const card = (
566
578
  <Card
567
- actions={
568
- rowActivation || actions ? (
569
- <View direction="row" gap="xs">
570
- {rowActivation}
571
- {actions}
572
- </View>
573
- ) : null
574
- }
579
+ actions={onRowActivate ? undefined : actions}
580
+ accessibilityLabel={onRowActivate ? `Activate row ${currentRowId}` : undefined}
575
581
  compact
576
582
  interactionPolicy={interactionPolicy}
577
- key={currentRowId}
583
+ onPress={onRowActivate ? () => onRowActivate({ rowId: currentRowId }) : undefined}
578
584
  testID={testID ? `${testID}-card-${rowIndex}` : undefined}
579
585
  title={title}
586
+ tone={active ? 'subtle' : undefined}
580
587
  >
581
588
  <View gap="s">
582
- {selectionEnabled ? (
583
- <Checkbox
584
- accessibilityLabel={`Select row ${currentRowId}`}
585
- checked={selectedRowIdSet.has(currentRowId)}
586
- disabled={selectionDisabled}
587
- interactionPolicy={interactionPolicy}
588
- onCheckedChange={(nextSelected) => {
589
- if (selectionDisabled) return;
590
- emitSelectionChange(
591
- resolveNextSelectedRowIds(
592
- controlledSelectedRowIds,
593
- currentRowId,
594
- nextSelected,
595
- ),
596
- onSelectedRowIdsChange,
597
- onSelectionChange,
598
- );
599
- }}
600
- />
601
- ) : null}
602
589
  {detailColumns.map((column) => (
603
590
  <View gap="xxs" key={column.id}>
604
591
  <Text emphasis="muted" variant="caption" weight="semiBold">
@@ -616,6 +603,34 @@ function DataTableMobile<TRow extends object>({
616
603
  </View>
617
604
  </Card>
618
605
  );
606
+ return (
607
+ <View gap="s" key={currentRowId}>
608
+ {onRowActivate && actions ? (
609
+ <View align="flex-start" direction="row" gap="xs">
610
+ <View flex={1}>{card}</View>
611
+ {actions}
612
+ </View>
613
+ ) : (
614
+ card
615
+ )}
616
+ {selectionEnabled ? (
617
+ <Checkbox
618
+ accessibilityLabel={`Select row ${currentRowId}`}
619
+ checked={selectedRowIdSet.has(currentRowId)}
620
+ disabled={selectionDisabled}
621
+ interactionPolicy={interactionPolicy}
622
+ onCheckedChange={(nextSelected) => {
623
+ if (selectionDisabled) return;
624
+ emitSelectionChange(
625
+ resolveNextSelectedRowIds(controlledSelectedRowIds, currentRowId, nextSelected),
626
+ onSelectedRowIdsChange,
627
+ onSelectionChange,
628
+ );
629
+ }}
630
+ />
631
+ ) : null}
632
+ </View>
633
+ );
619
634
  })}
620
635
  </View>
621
636
  );
@@ -52,6 +52,14 @@ export const dataTableMeta = {
52
52
  acceptsFallback: true,
53
53
  acceptsTransforms: true,
54
54
  },
55
+ activeRowId: {
56
+ label: 'Active row ID',
57
+ description:
58
+ 'Controlled stable row identity visibly activated independently of checkbox selection.',
59
+ value: { type: 'string' },
60
+ acceptsFallback: true,
61
+ acceptsTransforms: true,
62
+ },
55
63
  },
56
64
  events: {
57
65
  selectionChange: {
@@ -98,6 +106,7 @@ export const dataTableMeta = {
98
106
  ],
99
107
  },
100
108
  selectedRowIds: { type: 'array', category: 'Selection', label: 'Selected row IDs' },
109
+ activeRowId: { type: 'string', category: 'Selection', label: 'Active row ID' },
101
110
  loading: { type: 'boolean', category: 'State' },
102
111
  loadingRows: { type: 'number', category: 'State' },
103
112
  emptyTitle: { type: 'string', category: 'Content' },
@@ -407,6 +407,14 @@ export const ZORA_BINDABLE_COMPONENT_META = {
407
407
  acceptsFallback: true,
408
408
  acceptsTransforms: true,
409
409
  },
410
+ activeRowId: {
411
+ label: 'Active row ID',
412
+ description:
413
+ 'Controlled stable row identity visibly activated independently of checkbox selection.',
414
+ value: { type: 'string' },
415
+ acceptsFallback: true,
416
+ acceptsTransforms: true,
417
+ },
410
418
  },
411
419
  events: {
412
420
  selectionChange: {
@@ -429,6 +437,7 @@ export const ZORA_BINDABLE_COMPONENT_META = {
429
437
  inverted: INVERTED_POLARITY_PROP,
430
438
  rows: { type: 'array', category: 'Data', label: 'Rows' },
431
439
  selectedRowIds: { type: 'array', category: 'Selection', label: 'Selected row IDs' },
440
+ activeRowId: { type: 'string', category: 'Selection', label: 'Active row ID' },
432
441
  },
433
442
  },
434
443
  Reader: {
@@ -89,6 +89,8 @@ export interface DataTableProps<TRow extends object> extends ZoraBaseProps {
89
89
  rowKey?: keyof TRow;
90
90
  /** Controlled identifiers for rows selected with the optional checkbox column. */
91
91
  selectedRowIds?: readonly string[];
92
+ /** Controlled stable row identity whose activation state is visibly presented. */
93
+ activeRowId?: string;
92
94
  /** Receives the next controlled selection after a row or visible-row toggle. */
93
95
  onSelectedRowIdsChange?: (selectedRowIds: readonly string[]) => void;
94
96
  /** Emits the serializable controlled selection payload used by AppManifest events. */