@entifix/react-controls 0.21.0 → 0.22.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.
Files changed (44) hide show
  1. package/dist/i18n/catalog/en.d.ts.map +1 -1
  2. package/dist/i18n/catalog/en.js +4 -0
  3. package/dist/i18n/catalog/en.js.map +1 -1
  4. package/dist/i18n/catalog/es.d.ts +4 -0
  5. package/dist/i18n/catalog/es.d.ts.map +1 -1
  6. package/dist/i18n/catalog/es.js +4 -0
  7. package/dist/i18n/catalog/es.js.map +1 -1
  8. package/dist/i18n/catalog/index.d.ts +8 -0
  9. package/dist/i18n/catalog/index.d.ts.map +1 -1
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +2 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/primitives.d.ts +2 -0
  15. package/dist/primitives.d.ts.map +1 -1
  16. package/dist/primitives.js +2 -0
  17. package/dist/primitives.js.map +1 -1
  18. package/dist/ui/atoms/cell-value/cell-value.d.ts.map +1 -1
  19. package/dist/ui/atoms/cell-value/cell-value.js +11 -0
  20. package/dist/ui/atoms/cell-value/cell-value.js.map +1 -1
  21. package/dist/ui/atoms/media-image/index.d.ts +2 -0
  22. package/dist/ui/atoms/media-image/index.d.ts.map +1 -0
  23. package/dist/ui/atoms/media-image/index.js +3 -0
  24. package/dist/ui/atoms/media-image/index.js.map +1 -0
  25. package/dist/ui/atoms/media-image/media-image.d.ts +46 -0
  26. package/dist/ui/atoms/media-image/media-image.d.ts.map +1 -0
  27. package/dist/ui/atoms/media-image/media-image.js +57 -0
  28. package/dist/ui/atoms/media-image/media-image.js.map +1 -0
  29. package/dist/ui/atoms/status-tag/status-tag.d.ts +6 -2
  30. package/dist/ui/atoms/status-tag/status-tag.d.ts.map +1 -1
  31. package/dist/ui/atoms/status-tag/status-tag.js.map +1 -1
  32. package/dist/ui/molecules/media-gallery/media-gallery.d.ts +30 -3
  33. package/dist/ui/molecules/media-gallery/media-gallery.d.ts.map +1 -1
  34. package/dist/ui/molecules/media-gallery/media-gallery.js +26 -6
  35. package/dist/ui/molecules/media-gallery/media-gallery.js.map +1 -1
  36. package/dist/ui/molecules/summary-tile/index.d.ts +2 -0
  37. package/dist/ui/molecules/summary-tile/index.d.ts.map +1 -0
  38. package/dist/ui/molecules/summary-tile/index.js +3 -0
  39. package/dist/ui/molecules/summary-tile/index.js.map +1 -0
  40. package/dist/ui/molecules/summary-tile/summary-tile.d.ts +57 -0
  41. package/dist/ui/molecules/summary-tile/summary-tile.d.ts.map +1 -0
  42. package/dist/ui/molecules/summary-tile/summary-tile.js +114 -0
  43. package/dist/ui/molecules/summary-tile/summary-tile.js.map +1 -0
  44. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/en.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,KAAK,UAAU,GAAG,cAAc,SAAS,EAAE,QAAQ,CAAC;AAEpD,eAAO,MAAM,QAAQ,EAAE,UAyRtB,CAAC"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/en.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,KAAK,UAAU,GAAG,cAAc,SAAS,EAAE,QAAQ,CAAC;AAEpD,eAAO,MAAM,QAAQ,EAAE,UA6RtB,CAAC"}
@@ -69,6 +69,10 @@
69
69
  empty: 'Your {{plural}} will appear here.',
70
70
  saved: 'Saved {{object}}.'
71
71
  },
72
+ summary: {
73
+ loading: 'Loading…',
74
+ failed: 'Could not load {{label}}.'
75
+ },
72
76
  pagination: {
73
77
  label: 'Pages',
74
78
  summary: 'Page {{current}} of {{total}} · {{items}} items',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/i18n/catalog/en.ts"],"sourcesContent":["/**\n * The `es` shape is the contract: annotating with it makes a key that exists in\n * Spanish but not here a *compile* error, so a half-translated locale cannot\n * reach a build. `tools/check-i18n.mjs` covers what types cannot — empty values,\n * and keys present here but absent from `es`.\n */\ntype EsControls = typeof import('./es.js').controls;\n\nexport const controls: EsControls = {\n actions: {\n more: 'More actions',\n forRecord: 'Actions for {{record}}',\n },\n table: {\n select: 'Select',\n actions: 'Actions',\n new: 'New',\n filters: 'Filters',\n sorting: 'Sorting',\n loading: 'Loading…',\n selection: 'Selection',\n selectRow: 'Select {{record}}',\n expandRow: 'Expand {{record}}',\n collapseRow: 'Collapse {{record}}',\n selectAllOnPage: 'Select all on this page',\n selectAllMatching_one: 'Select {{count}} match',\n selectAllMatching_other: 'Select all {{count}} matches',\n selectedCount_one: '{{count}} selected',\n selectedCount_other: '{{count}} selected',\n clearSelection: 'Clear selection',\n results_one: '{{count}} result',\n results_other: '{{count}} results',\n noResultsFiltered: 'No results for these filters',\n caption: '{{entity}} · {{results}}',\n captionSorted:\n '{{entity}} · {{results}} · sorted by {{column}}, {{direction}}',\n },\n bulk: {\n running: 'Running…',\n succeeded_one: '{{count}} record updated',\n succeeded_other: '{{count}} records updated',\n failed_one: '{{count}} record failed',\n failed_other: '{{count}} records failed',\n retryFailed: 'Retry the failures',\n dismiss: 'Dismiss result',\n resultLabel: 'Bulk action result',\n barLabel: 'Actions on the selection',\n },\n form: {\n details: 'Details',\n new: 'New',\n view: 'View',\n edit: 'Edit',\n save: 'Save',\n saving: 'Saving…',\n delete: 'Delete',\n deleting: 'Deleting…',\n clone: 'Duplicate',\n back: 'Back',\n loading: 'Loading…',\n pending: 'Waiting for the server…',\n errorSummary_one: 'Fix {{count}} field before saving',\n errorSummary_other: 'Fix {{count}} fields before saving',\n requiredHint: 'Fields marked * are required.',\n requiredMarker: '*',\n },\n state: {\n retry: 'Retry',\n forbidden: \"You don't have permission to see {{plural}}.\",\n stale: 'What is shown may be out of date.',\n noResults: 'No {{plural}} match these filters.',\n clearFilters: 'Clear filters',\n empty: 'Your {{plural}} will appear here.',\n saved: 'Saved {{object}}.',\n },\n pagination: {\n label: 'Pages',\n summary: 'Page {{current}} of {{total}} · {{items}} items',\n rows: 'Rows',\n first: 'First',\n previous: 'Previous',\n next: 'Next',\n last: 'Last',\n page: 'Page {{current}} of {{total}}',\n },\n columns: {\n title: 'Columns',\n subtitle: 'Visibility and order',\n reset: 'Reset to default',\n moveUp: 'Move {{column}} up',\n moveDown: 'Move {{column}} down',\n },\n filter: {\n match: 'Match',\n all: 'all',\n any: 'any',\n add: 'Add filter',\n apply: 'Apply',\n clear: 'Clear',\n none: 'No filterable members on this entity.',\n listPlaceholder: 'comma, separated, values',\n matchAria: 'Match all or any filter',\n member: 'Filter member',\n operator: 'Filter operator',\n value: 'Filter value',\n rangeEnd: 'Filter range end',\n remove: 'Remove filter',\n applyAria: 'Apply filters',\n clearAria: 'Clear filters',\n applied: 'Applied filters',\n removeChip: 'Remove filter: {{filter}}',\n clearAll: 'Clear all',\n withCount: '{{label}} ({{count}})',\n },\n sort: {\n by: 'Sort by',\n then: 'then by',\n ascending: 'ascending',\n descending: 'descending',\n add: 'Add sort',\n apply: 'Apply',\n clear: 'Clear',\n none: 'No sortable members on this entity.',\n member: 'Sort member',\n direction: 'Sort direction',\n raisePriority: 'Raise sort priority',\n lowerPriority: 'Lower sort priority',\n remove: 'Remove sort',\n applyAria: 'Apply sorting',\n clearAria: 'Clear sorting',\n },\n alert: {\n dismiss: 'Dismiss',\n },\n quantity: {\n decrease: 'Decrease {{label}}',\n increase: 'Increase {{label}}',\n },\n tabs: {\n close: 'Close {{label}}',\n new: 'Open a new tab',\n list: 'Workspace tabs',\n withState: '{{label}}, {{state}}',\n dirty: 'unsaved changes',\n saving: 'saving',\n error: 'not saved',\n },\n link: {\n search: 'Search {{field}}',\n suggestAria: 'Show {{field}} suggestions',\n browseAria: 'Browse {{field}}',\n browseTitle: 'Select {{field}}',\n clear: 'Clear {{field}}',\n empty: '— unassigned —',\n loading: 'Loading…',\n noResults: 'No matches',\n error: 'Could not load options',\n close: 'Close',\n },\n detail: {\n addRow: 'Add row',\n removeRow: 'Remove row {{row}}',\n rowActions: 'Row actions',\n empty: 'No rows yet.',\n errorSummary_one: '{{count}} cell has errors',\n errorSummary_other: '{{count}} cells have errors',\n },\n reference: {\n unresolved: '{{noun}} {{id}}',\n },\n value: {\n none: '— none —',\n yes: 'Yes',\n no: 'No',\n /**\n * A `composition` in a table: its rows are edited on the master's own\n * screen rather than in the cell, so the cell says how many there are.\n */\n rowCount_one: '{{count}} row',\n rowCount_other: '{{count}} rows',\n },\n /**\n * `required`…`option` are the metadata-derived rules. The rest are the\n * vocabulary an entity's Standard Schema writes its messages in: a schema\n * carries the *key*, never a sentence, so a rule stays translatable.\n *\n * `field` is the only parameter available — a Standard Schema issue exposes a\n * message and a path, nothing else — so these stay unquantified. A rule that\n * has to state its bound writes its own key in its domain catalog and passes\n * it namespaced (`entity:product-specification.validation.codeLength`).\n */\n validation: {\n required: '{{field}} is required',\n number: '{{field}} must be a number',\n date: '{{field}} must be a date',\n option: '{{field}} is not a valid option',\n minLength: '{{field}} is too short',\n maxLength: '{{field}} is too long',\n min: '{{field}} is too small',\n max: '{{field}} is too large',\n pattern: '{{field}} has an invalid format',\n minItems_one: '{{field}} needs at least {{count}} item',\n minItems_other: '{{field}} needs at least {{count}} items',\n maxItems_one: '{{field}} takes at most {{count}} item',\n maxItems_other: '{{field}} takes at most {{count}} items',\n notBefore: '{{field}} cannot be before {{other}}',\n locale: '{{field}} has no {{locale}} text',\n },\n operator: {\n eq: 'is',\n ne: 'is not',\n gt: 'greater than',\n gte: 'greater or equal',\n lt: 'less than',\n lte: 'less or equal',\n in: 'is one of',\n nin: 'is none of',\n between: 'between',\n nbetween: 'not between',\n like: 'contains',\n nlike: 'does not contain',\n isNull: 'is empty',\n isNotNull: 'is not empty',\n },\n density: {\n label: 'Density',\n comfortable: 'Comfortable',\n compact: 'Compact',\n },\n theme: {\n label: 'Theme',\n },\n themes: {\n aurora: 'Aurora',\n sunset: 'Sunset',\n midnight: 'Midnight',\n ocean: 'Ocean (runtime)',\n marketplace: 'Marketplace',\n marketplaceDark: 'Marketplace dark',\n auth: 'Identity',\n authDark: 'Identity dark',\n },\n confirm: {\n confirm: 'Confirm',\n cancel: 'Cancel',\n question: '{{verb}} {{object}}?',\n verbCount_one: '{{verb}}',\n verbCount_other: '{{verb}} {{count}}',\n selection_one: '{{count}} {{label}}',\n selection_other: '{{count}} {{plural}}',\n typeToConfirm: 'Type {{expected}} to confirm',\n done: 'Done: {{verb}}, {{object}}.',\n undo: 'Undo',\n deleteMessage: 'It is removed for good.',\n deleted: '{{object}} deleted.',\n },\n live: {\n reconnecting: 'Live updates paused — reconnecting',\n stopped: 'Live updates stopped',\n reconnect: 'Reconnect',\n resumed: 'Live updates resumed',\n waiting: 'Waiting for connection…',\n },\n toast: {\n region: 'Notifications',\n dismiss: 'Dismiss',\n },\n breadcrumbs: {\n label: 'Breadcrumb',\n },\n wizard: {\n steps: 'Steps',\n previous: 'Back',\n next: 'Continue',\n finish: 'Finish',\n submitting: 'Submitting…',\n stepOf: 'Step {{current}} of {{total}}',\n goToStep: 'Back to {{label}}',\n status: {\n pending: 'pending',\n active: 'in progress',\n complete: 'completed',\n error: 'has errors',\n },\n resume: {\n title: 'Picking up where you left off',\n dismiss: 'Got it',\n },\n },\n};\n"],"names":["controls","actions","more","forRecord","table","select","new","filters","sorting","loading","selection","selectRow","expandRow","collapseRow","selectAllOnPage","selectAllMatching_one","selectAllMatching_other","selectedCount_one","selectedCount_other","clearSelection","results_one","results_other","noResultsFiltered","caption","captionSorted","bulk","running","succeeded_one","succeeded_other","failed_one","failed_other","retryFailed","dismiss","resultLabel","barLabel","form","details","view","edit","save","saving","delete","deleting","clone","back","pending","errorSummary_one","errorSummary_other","requiredHint","requiredMarker","state","retry","forbidden","stale","noResults","clearFilters","empty","saved","pagination","label","summary","rows","first","previous","next","last","page","columns","title","subtitle","reset","moveUp","moveDown","filter","match","all","any","add","apply","clear","none","listPlaceholder","matchAria","member","operator","value","rangeEnd","remove","applyAria","clearAria","applied","removeChip","clearAll","withCount","sort","by","then","ascending","descending","direction","raisePriority","lowerPriority","alert","quantity","decrease","increase","tabs","close","list","withState","dirty","error","link","search","suggestAria","browseAria","browseTitle","detail","addRow","removeRow","rowActions","reference","unresolved","yes","no","rowCount_one","rowCount_other","validation","required","number","date","option","minLength","maxLength","min","max","pattern","minItems_one","minItems_other","maxItems_one","maxItems_other","notBefore","locale","eq","ne","gt","gte","lt","lte","in","nin","between","nbetween","like","nlike","isNull","isNotNull","density","comfortable","compact","theme","themes","aurora","sunset","midnight","ocean","marketplace","marketplaceDark","auth","authDark","confirm","cancel","question","verbCount_one","verbCount_other","selection_one","selection_other","typeToConfirm","done","undo","deleteMessage","deleted","live","reconnecting","stopped","reconnect","resumed","waiting","toast","region","breadcrumbs","wizard","steps","finish","submitting","stepOf","goToStep","status","active","complete","resume"],"mappings":"AAAA;;;;;CAKC,GAGD,OAAO,MAAMA,WAAuB;IAClCC,SAAS;QACPC,MAAM;QACNC,WAAW;IACb;IACAC,OAAO;QACLC,QAAQ;QACRJ,SAAS;QACTK,KAAK;QACLC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,WAAW;QACXC,WAAW;QACXC,WAAW;QACXC,aAAa;QACbC,iBAAiB;QACjBC,uBAAuB;QACvBC,yBAAyB;QACzBC,mBAAmB;QACnBC,qBAAqB;QACrBC,gBAAgB;QAChBC,aAAa;QACbC,eAAe;QACfC,mBAAmB;QACnBC,SAAS;QACTC,eACE;IACJ;IACAC,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,iBAAiB;QACjBC,YAAY;QACZC,cAAc;QACdC,aAAa;QACbC,SAAS;QACTC,aAAa;QACbC,UAAU;IACZ;IACAC,MAAM;QACJC,SAAS;QACT9B,KAAK;QACL+B,MAAM;QACNC,MAAM;QACNC,MAAM;QACNC,QAAQ;QACRC,QAAQ;QACRC,UAAU;QACVC,OAAO;QACPC,MAAM;QACNnC,SAAS;QACToC,SAAS;QACTC,kBAAkB;QAClBC,oBAAoB;QAC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T;QACAyF,QAAQ;YACNpI,OAAO;YACPpC,SAAS;QACX;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/i18n/catalog/en.ts"],"sourcesContent":["/**\n * The `es` shape is the contract: annotating with it makes a key that exists in\n * Spanish but not here a *compile* error, so a half-translated locale cannot\n * reach a build. `tools/check-i18n.mjs` covers what types cannot — empty values,\n * and keys present here but absent from `es`.\n */\ntype EsControls = typeof import('./es.js').controls;\n\nexport const controls: EsControls = {\n actions: {\n more: 'More actions',\n forRecord: 'Actions for {{record}}',\n },\n table: {\n select: 'Select',\n actions: 'Actions',\n new: 'New',\n filters: 'Filters',\n sorting: 'Sorting',\n loading: 'Loading…',\n selection: 'Selection',\n selectRow: 'Select {{record}}',\n expandRow: 'Expand {{record}}',\n collapseRow: 'Collapse {{record}}',\n selectAllOnPage: 'Select all on this page',\n selectAllMatching_one: 'Select {{count}} match',\n selectAllMatching_other: 'Select all {{count}} matches',\n selectedCount_one: '{{count}} selected',\n selectedCount_other: '{{count}} selected',\n clearSelection: 'Clear selection',\n results_one: '{{count}} result',\n results_other: '{{count}} results',\n noResultsFiltered: 'No results for these filters',\n caption: '{{entity}} · {{results}}',\n captionSorted:\n '{{entity}} · {{results}} · sorted by {{column}}, {{direction}}',\n },\n bulk: {\n running: 'Running…',\n succeeded_one: '{{count}} record updated',\n succeeded_other: '{{count}} records updated',\n failed_one: '{{count}} record failed',\n failed_other: '{{count}} records failed',\n retryFailed: 'Retry the failures',\n dismiss: 'Dismiss result',\n resultLabel: 'Bulk action result',\n barLabel: 'Actions on the selection',\n },\n form: {\n details: 'Details',\n new: 'New',\n view: 'View',\n edit: 'Edit',\n save: 'Save',\n saving: 'Saving…',\n delete: 'Delete',\n deleting: 'Deleting…',\n clone: 'Duplicate',\n back: 'Back',\n loading: 'Loading…',\n pending: 'Waiting for the server…',\n errorSummary_one: 'Fix {{count}} field before saving',\n errorSummary_other: 'Fix {{count}} fields before saving',\n requiredHint: 'Fields marked * are required.',\n requiredMarker: '*',\n },\n state: {\n retry: 'Retry',\n forbidden: \"You don't have permission to see {{plural}}.\",\n stale: 'What is shown may be out of date.',\n noResults: 'No {{plural}} match these filters.',\n clearFilters: 'Clear filters',\n empty: 'Your {{plural}} will appear here.',\n saved: 'Saved {{object}}.',\n },\n summary: {\n loading: 'Loading…',\n failed: 'Could not load {{label}}.',\n },\n pagination: {\n label: 'Pages',\n summary: 'Page {{current}} of {{total}} · {{items}} items',\n rows: 'Rows',\n first: 'First',\n previous: 'Previous',\n next: 'Next',\n last: 'Last',\n page: 'Page {{current}} of {{total}}',\n },\n columns: {\n title: 'Columns',\n subtitle: 'Visibility and order',\n reset: 'Reset to default',\n moveUp: 'Move {{column}} up',\n moveDown: 'Move {{column}} down',\n },\n filter: {\n match: 'Match',\n all: 'all',\n any: 'any',\n add: 'Add filter',\n apply: 'Apply',\n clear: 'Clear',\n none: 'No filterable members on this entity.',\n listPlaceholder: 'comma, separated, values',\n matchAria: 'Match all or any filter',\n member: 'Filter member',\n operator: 'Filter operator',\n value: 'Filter value',\n rangeEnd: 'Filter range end',\n remove: 'Remove filter',\n applyAria: 'Apply filters',\n clearAria: 'Clear filters',\n applied: 'Applied filters',\n removeChip: 'Remove filter: {{filter}}',\n clearAll: 'Clear all',\n withCount: '{{label}} ({{count}})',\n },\n sort: {\n by: 'Sort by',\n then: 'then by',\n ascending: 'ascending',\n descending: 'descending',\n add: 'Add sort',\n apply: 'Apply',\n clear: 'Clear',\n none: 'No sortable members on this entity.',\n member: 'Sort member',\n direction: 'Sort direction',\n raisePriority: 'Raise sort priority',\n lowerPriority: 'Lower sort priority',\n remove: 'Remove sort',\n applyAria: 'Apply sorting',\n clearAria: 'Clear sorting',\n },\n alert: {\n dismiss: 'Dismiss',\n },\n quantity: {\n decrease: 'Decrease {{label}}',\n increase: 'Increase {{label}}',\n },\n tabs: {\n close: 'Close {{label}}',\n new: 'Open a new tab',\n list: 'Workspace tabs',\n withState: '{{label}}, {{state}}',\n dirty: 'unsaved changes',\n saving: 'saving',\n error: 'not saved',\n },\n link: {\n search: 'Search {{field}}',\n suggestAria: 'Show {{field}} suggestions',\n browseAria: 'Browse {{field}}',\n browseTitle: 'Select {{field}}',\n clear: 'Clear {{field}}',\n empty: '— unassigned —',\n loading: 'Loading…',\n noResults: 'No matches',\n error: 'Could not load options',\n close: 'Close',\n },\n detail: {\n addRow: 'Add row',\n removeRow: 'Remove row {{row}}',\n rowActions: 'Row actions',\n empty: 'No rows yet.',\n errorSummary_one: '{{count}} cell has errors',\n errorSummary_other: '{{count}} cells have errors',\n },\n reference: {\n unresolved: '{{noun}} {{id}}',\n },\n value: {\n none: '— none —',\n yes: 'Yes',\n no: 'No',\n /**\n * A `composition` in a table: its rows are edited on the master's own\n * screen rather than in the cell, so the cell says how many there are.\n */\n rowCount_one: '{{count}} row',\n rowCount_other: '{{count}} rows',\n },\n /**\n * `required`…`option` are the metadata-derived rules. The rest are the\n * vocabulary an entity's Standard Schema writes its messages in: a schema\n * carries the *key*, never a sentence, so a rule stays translatable.\n *\n * `field` is the only parameter available — a Standard Schema issue exposes a\n * message and a path, nothing else — so these stay unquantified. A rule that\n * has to state its bound writes its own key in its domain catalog and passes\n * it namespaced (`entity:product-specification.validation.codeLength`).\n */\n validation: {\n required: '{{field}} is required',\n number: '{{field}} must be a number',\n date: '{{field}} must be a date',\n option: '{{field}} is not a valid option',\n minLength: '{{field}} is too short',\n maxLength: '{{field}} is too long',\n min: '{{field}} is too small',\n max: '{{field}} is too large',\n pattern: '{{field}} has an invalid format',\n minItems_one: '{{field}} needs at least {{count}} item',\n minItems_other: '{{field}} needs at least {{count}} items',\n maxItems_one: '{{field}} takes at most {{count}} item',\n maxItems_other: '{{field}} takes at most {{count}} items',\n notBefore: '{{field}} cannot be before {{other}}',\n locale: '{{field}} has no {{locale}} text',\n },\n operator: {\n eq: 'is',\n ne: 'is not',\n gt: 'greater than',\n gte: 'greater or equal',\n lt: 'less than',\n lte: 'less or equal',\n in: 'is one of',\n nin: 'is none of',\n between: 'between',\n nbetween: 'not between',\n like: 'contains',\n nlike: 'does not contain',\n isNull: 'is empty',\n isNotNull: 'is not empty',\n },\n density: {\n label: 'Density',\n comfortable: 'Comfortable',\n compact: 'Compact',\n },\n theme: {\n label: 'Theme',\n },\n themes: {\n aurora: 'Aurora',\n sunset: 'Sunset',\n midnight: 'Midnight',\n ocean: 'Ocean (runtime)',\n marketplace: 'Marketplace',\n marketplaceDark: 'Marketplace dark',\n auth: 'Identity',\n authDark: 'Identity dark',\n },\n confirm: {\n confirm: 'Confirm',\n cancel: 'Cancel',\n question: '{{verb}} {{object}}?',\n verbCount_one: '{{verb}}',\n verbCount_other: '{{verb}} {{count}}',\n selection_one: '{{count}} {{label}}',\n selection_other: '{{count}} {{plural}}',\n typeToConfirm: 'Type {{expected}} to confirm',\n done: 'Done: {{verb}}, {{object}}.',\n undo: 'Undo',\n deleteMessage: 'It is removed for good.',\n deleted: '{{object}} deleted.',\n },\n live: {\n reconnecting: 'Live updates paused — reconnecting',\n stopped: 'Live updates stopped',\n reconnect: 'Reconnect',\n resumed: 'Live updates resumed',\n waiting: 'Waiting for connection…',\n },\n toast: {\n region: 'Notifications',\n dismiss: 'Dismiss',\n },\n breadcrumbs: {\n label: 'Breadcrumb',\n },\n wizard: {\n steps: 'Steps',\n previous: 'Back',\n next: 'Continue',\n finish: 'Finish',\n submitting: 'Submitting…',\n stepOf: 'Step {{current}} of {{total}}',\n goToStep: 'Back to {{label}}',\n status: {\n pending: 'pending',\n active: 'in progress',\n complete: 'completed',\n error: 'has errors',\n },\n resume: {\n title: 'Picking up where you left off',\n dismiss: 'Got it',\n },\n },\n};\n"],"names":["controls","actions","more","forRecord","table","select","new","filters","sorting","loading","selection","selectRow","expandRow","collapseRow","selectAllOnPage","selectAllMatching_one","selectAllMatching_other","selectedCount_one","selectedCount_other","clearSelection","results_one","results_other","noResultsFiltered","caption","captionSorted","bulk","running","succeeded_one","succeeded_other","failed_one","failed_other","retryFailed","dismiss","resultLabel","barLabel","form","details","view","edit","save","saving","delete","deleting","clone","back","pending","errorSummary_one","errorSummary_other","requiredHint","requiredMarker","state","retry","forbidden","stale","noResults","clearFilters","empty","saved","summary","failed","pagination","label","rows","first","previous","next","last","page","columns","title","subtitle","reset","moveUp","moveDown","filter","match","all","any","add","apply","clear","none","listPlaceholder","matchAria","member","operator","value","rangeEnd","remove","applyAria","clearAria","applied","removeChip","clearAll","withCount","sort","by","then","ascending","descending","direction","raisePriority","lowerPriority","alert","quantity","decrease","increase","tabs","close","list","withState","dirty","error","link","search","suggestAria","browseAria","browseTitle","detail","addRow","removeRow","rowActions","reference","unresolved","yes","no","rowCount_one","rowCount_other","validation","required","number","date","option","minLength","maxLength","min","max","pattern","minItems_one","minItems_other","maxItems_one","maxItems_other","notBefore","locale","eq","ne","gt","gte","lt","lte","in","nin","between","nbetween","like","nlike","isNull","isNotNull","density","comfortable","compact","theme","themes","aurora","sunset","midnight","ocean","marketplace","marketplaceDark","auth","authDark","confirm","cancel","question","verbCount_one","verbCount_other","selection_one","selection_other","typeToConfirm","done","undo","deleteMessage","deleted","live","reconnecting","stopped","reconnect","resumed","waiting","toast","region","breadcrumbs","wizard","steps","finish","submitting","stepOf","goToStep","status","active","complete","resume"],"mappings":"AAAA;;;;;CAKC,GAGD,OAAO,MAAMA,WAAuB;IAClCC,SAAS;QACPC,MAAM;QACNC,WAAW;IACb;IACAC,OAAO;QACLC,QAAQ;QACRJ,SAAS;QACTK,KAAK;QACLC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,WAAW;QACXC,WAAW;QACXC,WAAW;QACXC,aAAa;QACbC,iBAAiB;QACjBC,uBAAuB;QACvBC,yBAAyB;QACzBC,mBAAmB;QACnBC,qBAAqB;QACrBC,gBAAgB;QAChBC,aAAa;QACbC,eAAe;QACfC,mBAAmB;QACnBC,SAAS;QACTC,eACE;IACJ;IACAC,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,iBAAiB;QACjBC,YAAY;QACZC,cAAc;QACdC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ACTC,WAAW;QACXC,SAAS;QACTC,SAAS;IACX;IACAC,OAAO;QACLC,QAAQ;QACR9J,SAAS;IACX;IACA+J,aAAa;QACXlI,OAAO;IACT;IACAmI,QAAQ;QACNC,OAAO;QACPjI,UAAU;QACVC,MAAM;QACNiI,QAAQ;QACRC,YAAY;QACZC,QAAQ;QACRC,UAAU;QACVC,QAAQ;YACNzJ,SAAS;YACT0J,QAAQ;YACRC,UAAU;YACVxF,OAAO;QACT;QACAyF,QAAQ;YACNpI,OAAO;YACPrC,SAAS;QACX;IACF;AACF,EAAE"}
@@ -93,6 +93,10 @@ export declare const controls: {
93
93
  empty: string;
94
94
  saved: string;
95
95
  };
96
+ summary: {
97
+ loading: string;
98
+ failed: string;
99
+ };
96
100
  pagination: {
97
101
  label: string;
98
102
  summary: string;
@@ -1 +1 @@
1
- {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/es.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;QAYjB;;;;WAIG;;;;;;QAMH;;;WAGG;;;;;;QAMH;;;WAGG;;;;QAIH,sEAAsE;;;;IAKxE;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;QAyBD,4EAA4E;;;;;;IAM9E;;;OAGG;;;;;;;;;;;;;;;;;;QAkBD,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8B9C,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoCpE;;;;OAIG;;;;;;;;;;;;;IAaH;;;;;;OAMG;;;;;;;;;;;;;;;;QAgBD;;;WAGG;;;;IAIL;;;;;;;;;;OAUG;;;;;;;;;;;;;;;;;;IAkBH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;IAyBH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;IAyBH,2EAA2E;;;;;;;;;;;;;;;IAe3E;;;;OAIG;;;;QAID;;;;WAIG;;;QAGH;;;;;WAKG;;;;QAIH;;;WAGG;;;;;;;QAOH;;;;WAIG;;;;;;CAMN,CAAC"}
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/es.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;QAYjB;;;;WAIG;;;;;;QAMH;;;WAGG;;;;;;QAMH;;;WAGG;;;;QAIH,sEAAsE;;;;IAKxE;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;QAyBD,4EAA4E;;;;;;IAM9E;;;OAGG;;;;;;;;;;;;;;;;;;;;;;QAsBD,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8B9C,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoCpE;;;;OAIG;;;;;;;;;;;;;IAaH;;;;;;OAMG;;;;;;;;;;;;;;;;QAgBD;;;WAGG;;;;IAIL;;;;;;;;;;OAUG;;;;;;;;;;;;;;;;;;IAkBH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;IAyBH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;IAyBH,2EAA2E;;;;;;;;;;;;;;;IAe3E;;;;OAIG;;;;QAID;;;;WAIG;;;QAGH;;;;;WAKG;;;;QAIH;;;WAGG;;;;;;;QAOH;;;;WAIG;;;;;;CAMN,CAAC"}
@@ -85,6 +85,10 @@
85
85
  empty: 'Aquí aparecerán sus {{plural}}.',
86
86
  saved: 'Se guardó {{object}}.'
87
87
  },
88
+ summary: {
89
+ loading: 'Cargando…',
90
+ failed: 'No se pudo cargar {{label}}.'
91
+ },
88
92
  pagination: {
89
93
  label: 'Páginas',
90
94
  summary: 'Página {{current}} de {{total}} · {{items}} registros',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/i18n/catalog/es.ts"],"sourcesContent":["/**\n * Copy owned by `@entifix/react-controls` — the agnostic entity UI. It lives\n * here rather than next to the components because the typed-key augmentation has\n * to see every namespace from one module, and `@entifix/tooling` (T0) may not\n * import a T3 package.\n */\nexport const controls = {\n actions: {\n more: 'Más acciones',\n forRecord: 'Acciones para {{record}}',\n },\n table: {\n select: 'Seleccionar',\n actions: 'Acciones',\n new: 'Nuevo',\n filters: 'Filtros',\n sorting: 'Orden',\n loading: 'Cargando…',\n /**\n * La columna de selección. `selectRow` nombra la fila porque una casilla\n * sin etiqueta visible sólo se anuncia por su `aria-label`, y repetir el\n * encabezado en cada fila no diría cuál es.\n */\n selection: 'Selección',\n selectRow: 'Seleccionar {{record}}',\n expandRow: 'Expandir {{record}}',\n collapseRow: 'Contraer {{record}}',\n selectAllOnPage: 'Seleccionar todo en esta página',\n /**\n * La segunda selección — la que el servidor evalúa — lleva el número\n * siempre: es la diferencia entre actuar sobre 25 filas y sobre 3.200.\n */\n selectAllMatching_one: 'Seleccionar {{count}} coincidencia',\n selectAllMatching_other: 'Seleccionar las {{count}} coincidencias',\n selectedCount_one: '{{count}} seleccionado',\n selectedCount_other: '{{count}} seleccionados',\n clearSelection: 'Limpiar selección',\n /**\n * Lo que dice la región de estado tras filtrar, ordenar o cambiar de\n * página — nunca en la primera carga, que el lector pidió al llegar.\n */\n results_one: '{{count}} resultado',\n results_other: '{{count}} resultados',\n noResultsFiltered: 'Sin resultados para estos filtros',\n /** El `caption` de la tabla: qué contiene, cuántos y en qué orden. */\n caption: '{{entity}} · {{results}}',\n captionSorted:\n '{{entity}} · {{results}} · ordenado por {{column}}, {{direction}}',\n },\n /**\n * Una acción sobre una selección. El resultado es por fila, nunca un aviso\n * único: 40 seleccionadas y 3 fallidas no es ni un éxito ni un error.\n */\n bulk: {\n running: 'Ejecutando…',\n succeeded_one: '{{count}} registro actualizado',\n succeeded_other: '{{count}} registros actualizados',\n failed_one: '{{count}} registro falló',\n failed_other: '{{count}} registros fallaron',\n retryFailed: 'Reintentar los fallidos',\n dismiss: 'Cerrar resultado',\n resultLabel: 'Resultado de la acción masiva',\n barLabel: 'Acciones sobre la selección',\n },\n form: {\n details: 'Detalles',\n new: 'Nuevo',\n view: 'Ver',\n edit: 'Editar',\n save: 'Guardar',\n saving: 'Guardando…',\n delete: 'Eliminar',\n deleting: 'Eliminando…',\n clone: 'Duplicar',\n back: 'Volver',\n loading: 'Cargando…',\n pending: 'Esperando al servidor…',\n /** El resumen de un guardado rechazado: toma el foco, enlaza cada campo. */\n errorSummary_one: 'Revise {{count}} campo antes de guardar',\n errorSummary_other: 'Revise {{count}} campos antes de guardar',\n requiredHint: 'Los campos marcados con * son obligatorios.',\n requiredMarker: '*',\n },\n /**\n * Lo que dice una región cuando no muestra su contenido (ADR 0028): qué\n * pasó, qué hacer, sin culpar a nadie y sin códigos.\n */\n state: {\n retry: 'Reintentar',\n forbidden: 'No tiene permiso para ver {{plural}}.',\n stale: 'Lo que se muestra puede estar desactualizado.',\n noResults: 'No hay {{plural}} que coincidan con estos filtros.',\n clearFilters: 'Limpiar filtros',\n empty: 'Aquí aparecerán sus {{plural}}.',\n saved: 'Se guardó {{object}}.',\n },\n pagination: {\n label: 'Páginas',\n summary: 'Página {{current}} de {{total}} · {{items}} registros',\n rows: 'Filas',\n first: 'Primera',\n previous: 'Anterior',\n next: 'Siguiente',\n last: 'Última',\n /** Lo que se anuncia al cambiar de página. */\n page: 'Página {{current}} de {{total}}',\n },\n columns: {\n title: 'Columnas',\n subtitle: 'Visibilidad y orden',\n reset: 'Restablecer',\n moveUp: 'Subir {{column}}',\n moveDown: 'Bajar {{column}}',\n },\n filter: {\n match: 'Coincidir',\n all: 'todos',\n any: 'cualquiera',\n add: 'Añadir filtro',\n apply: 'Aplicar',\n clear: 'Limpiar',\n none: 'Esta entidad no tiene miembros filtrables.',\n listPlaceholder: 'valores, separados, por comas',\n matchAria: 'Coincidir todos o cualquiera de los filtros',\n member: 'Miembro del filtro',\n operator: 'Operador del filtro',\n value: 'Valor del filtro',\n rangeEnd: 'Fin del rango del filtro',\n remove: 'Quitar filtro',\n applyAria: 'Aplicar filtros',\n clearAria: 'Limpiar filtros',\n applied: 'Filtros aplicados',\n removeChip: 'Quitar filtro: {{filter}}',\n clearAll: 'Limpiar todo',\n /** Una opción con cuántos registros la tienen: «Borrador (3)». */\n withCount: '{{label}} ({{count}})',\n },\n sort: {\n by: 'Ordenar por',\n then: 'después por',\n ascending: 'ascendente',\n descending: 'descendente',\n add: 'Añadir orden',\n apply: 'Aplicar',\n clear: 'Limpiar',\n none: 'Esta entidad no tiene miembros ordenables.',\n member: 'Miembro de orden',\n direction: 'Dirección de orden',\n raisePriority: 'Subir prioridad de orden',\n lowerPriority: 'Bajar prioridad de orden',\n remove: 'Quitar orden',\n applyAria: 'Aplicar orden',\n clearAria: 'Limpiar orden',\n },\n alert: {\n dismiss: 'Descartar',\n },\n quantity: {\n decrease: 'Disminuir {{label}}',\n increase: 'Aumentar {{label}}',\n },\n tabs: {\n close: 'Cerrar {{label}}',\n new: 'Abrir una pestaña nueva',\n list: 'Pestañas del espacio de trabajo',\n withState: '{{label}}, {{state}}',\n dirty: 'cambios sin guardar',\n saving: 'guardando',\n error: 'sin guardar',\n },\n /**\n * El editor de una relación. `search` es la búsqueda rápida y `browse` abre el\n * catálogo completo; ambos botones son iconos, así que sus etiquetas `aria` son\n * lo único que un lector de pantalla anuncia.\n */\n link: {\n search: 'Buscar {{field}}',\n suggestAria: 'Ver sugerencias de {{field}}',\n browseAria: 'Examinar {{field}}',\n browseTitle: 'Seleccionar {{field}}',\n clear: 'Quitar {{field}}',\n empty: '— sin asignar —',\n loading: 'Cargando…',\n noResults: 'Sin coincidencias',\n error: 'No se pudieron cargar las opciones',\n close: 'Cerrar',\n },\n /**\n * La rejilla de detalle: las filas que un registro **posee** — las líneas de\n * un pedido, los renglones de una factura. `errorSummary` es el único\n * `role=\"alert\"` del control: un aviso por celda anunciaría la rejilla entera\n * en cada pulsación, y un mensaje que sólo vive en la celda es inalcanzable\n * cuando la fila que falla está fuera de pantalla.\n */\n detail: {\n addRow: 'Añadir fila',\n removeRow: 'Quitar fila {{row}}',\n rowActions: 'Acciones de fila',\n empty: 'Todavía no hay filas.',\n errorSummary_one: '{{count}} celda con errores',\n errorSummary_other: '{{count}} celdas con errores',\n },\n reference: {\n unresolved: '{{noun}} {{id}}',\n },\n value: {\n none: '— ninguno —',\n yes: 'Sí',\n no: 'No',\n /**\n * Una `composition` en una tabla: sus filas se editan en la pantalla del\n * maestro, no en la celda, así que la celda dice cuántas hay.\n */\n rowCount_one: '{{count}} fila',\n rowCount_other: '{{count}} filas',\n },\n /**\n * `required`…`option` son las reglas derivadas de la metadata. El resto es el\n * vocabulario en el que un Standard Schema de una entidad escribe sus\n * mensajes: el esquema lleva la *clave*, nunca una frase, para que la regla\n * siga siendo traducible.\n *\n * `field` es el único parámetro disponible — un issue de Standard Schema\n * expone un mensaje y una ruta, nada más — así que estos mensajes no indican\n * el límite. Una regla que deba enunciarlo escribe su propia clave en el\n * catálogo de su dominio (`entity:product-specification.validation.codeLength`).\n */\n validation: {\n required: '{{field}} es obligatorio',\n number: '{{field}} debe ser un número',\n date: '{{field}} debe ser una fecha',\n option: '{{field}} no es una opción válida',\n minLength: '{{field}} es demasiado corto',\n maxLength: '{{field}} es demasiado largo',\n min: '{{field}} es demasiado pequeño',\n max: '{{field}} es demasiado grande',\n pattern: '{{field}} tiene un formato inválido',\n minItems_one: '{{field}} necesita al menos {{count}} elemento',\n minItems_other: '{{field}} necesita al menos {{count}} elementos',\n maxItems_one: '{{field}} admite como máximo {{count}} elemento',\n maxItems_other: '{{field}} admite como máximo {{count}} elementos',\n notBefore: '{{field}} no puede ser anterior a {{other}}',\n locale: '{{field}} no tiene texto en {{locale}}',\n },\n /**\n * The filter vocabulary shown to a user. Deliberately distinct from\n * `RSQL_TOKENS` in `@entifix/core` — those are wire tokens (`==`, `=gt=`)\n * and must never be translated.\n */\n operator: {\n eq: 'es',\n ne: 'no es',\n gt: 'mayor que',\n gte: 'mayor o igual',\n lt: 'menor que',\n lte: 'menor o igual',\n in: 'es uno de',\n nin: 'no es ninguno de',\n between: 'entre',\n nbetween: 'fuera de',\n like: 'contiene',\n nlike: 'no contiene',\n isNull: 'está vacío',\n isNotNull: 'no está vacío',\n },\n density: {\n label: 'Densidad',\n comfortable: 'Cómoda',\n compact: 'Compacta',\n },\n theme: {\n label: 'Tema',\n },\n /**\n * Captions for the theme presets shipped by `@entifix/style`, plus the\n * per-app brand sets. They name design-system tokens, not app copy, so they\n * live beside the switcher that renders them and stay reachable from\n * Storybook, where no shell is mounted.\n */\n themes: {\n aurora: 'Aurora',\n sunset: 'Atardecer',\n midnight: 'Medianoche',\n ocean: 'Océano (en runtime)',\n marketplace: 'Marketplace',\n marketplaceDark: 'Marketplace oscuro',\n auth: 'Identidad',\n authDark: 'Identidad oscura',\n },\n confirm: {\n confirm: 'Confirmar',\n cancel: 'Cancelar',\n question: '¿{{verb}} {{object}}?',\n verbCount_one: '{{verb}}',\n verbCount_other: '{{verb}} {{count}}',\n selection_one: '{{count}} {{label}}',\n selection_other: '{{count}} {{plural}}',\n typeToConfirm: 'Escriba {{expected}} para confirmar',\n done: 'Hecho: {{verb}}, {{object}}.',\n undo: 'Deshacer',\n deleteMessage: 'Se elimina de forma definitiva.',\n deleted: 'Se eliminó {{object}}.',\n },\n /** Las actualizaciones en vivo: se dicen al caer y al volver, nada más. */\n live: {\n reconnecting: 'Actualizaciones en vivo en pausa — reconectando',\n stopped: 'Actualizaciones en vivo detenidas',\n reconnect: 'Reconectar',\n resumed: 'Actualizaciones en vivo reanudadas',\n waiting: 'Esperando la conexión…',\n },\n toast: {\n region: 'Notificaciones',\n dismiss: 'Descartar',\n },\n breadcrumbs: {\n label: 'Ruta de navegación',\n },\n /**\n * El asistente. Las etiquetas de cada paso las traduce quien declara el\n * asistente, no el control: un paso es del dominio que lo definió, y su copy\n * vive en `shell:` junto al resto de sus nombres.\n */\n wizard: {\n steps: 'Pasos',\n previous: 'Atrás',\n /**\n * \"Continuar\" y no \"Siguiente\": una tabla dentro de un paso trae su propio\n * paginador, cuyo botón **es** \"Siguiente\". Dos controles con el mismo\n * nombre en la misma pantalla se anuncian igual y hacen cosas distintas.\n */\n next: 'Continuar',\n finish: 'Finalizar',\n /**\n * Un envío que **no** resuelve. El asistente entrega el trabajo y vuelve\n * antes de que la escritura termine, así que dice \"enviando\" y\n * nunca \"guardado\": lo segundo sería una afirmación que el control no puede\n * comprobar.\n */\n submitting: 'Enviando…',\n stepOf: 'Paso {{current}} de {{total}}',\n goToStep: 'Volver a {{label}}',\n /**\n * El estado de cada paso, anunciado además de mostrarse. El color por sí\n * solo no lo dice, y un lector de pantalla recorre la lista sin verlo.\n */\n status: {\n pending: 'pendiente',\n active: 'en curso',\n complete: 'completado',\n error: 'con errores',\n },\n /**\n * El recordatorio al retomar. La persistencia da el \"continuar\" gratis; lo\n * que no da es acordarse de lo ya decidido, que es la falla conocida de los\n * asistentes largos.\n */\n resume: {\n title: 'Retomando donde lo dejaste',\n dismiss: 'Entendido',\n },\n },\n};\n"],"names":["controls","actions","more","forRecord","table","select","new","filters","sorting","loading","selection","selectRow","expandRow","collapseRow","selectAllOnPage","selectAllMatching_one","selectAllMatching_other","selectedCount_one","selectedCount_other","clearSelection","results_one","results_other","noResultsFiltered","caption","captionSorted","bulk","running","succeeded_one","succeeded_other","failed_one","failed_other","retryFailed","dismiss","resultLabel","barLabel","form","details","view","edit","save","saving","delete","deleting","clone","back","pending","errorSummary_one","errorSummary_other","requiredHint","requiredMarker","state","retry","forbidden","stale","noResults","clearFilters","empty","saved","pagination","label","summary","rows","first","previous","next","last","page","columns","title","subtitle","reset","moveUp","moveDown","filter","match","all","any","add","apply","clear","none","listPlaceholder","matchAria","member","operator","value","rangeEnd","remove","applyAria","clearAria","applied","removeChip","clearAll","withCount","sort","by","then","ascending","descending","direction","raisePriority","lowerPriority","alert","quantity","decrease","increase","tabs","close","list","withState","dirty","error","link","search","suggestAria","browseAria","browseTitle","detail","addRow","removeRow","rowActions","reference","unresolved","yes","no","rowCount_one","rowCount_other","validation","required","number","date","option","minLength","maxLength","min","max","pattern","minItems_one","minItems_other","maxItems_one","maxItems_other","notBefore","locale","eq","ne","gt","gte","lt","lte","in","nin","between","nbetween","like","nlike","isNull","isNotNull","density","comfortable","compact","theme","themes","aurora","sunset","midnight","ocean","marketplace","marketplaceDark","auth","authDark","confirm","cancel","question","verbCount_one","verbCount_other","selection_one","selection_other","typeToConfirm","done","undo","deleteMessage","deleted","live","reconnecting","stopped","reconnect","resumed","waiting","toast","region","breadcrumbs","wizard","steps","finish","submitting","stepOf","goToStep","status","active","complete","resume"],"mappings":"AAAA;;;;;CAKC,GACD,OAAO,MAAMA,WAAW;IACtBC,SAAS;QACPC,MAAM;QACNC,WAAW;IACb;IACAC,OAAO;QACLC,QAAQ;QACRJ,SAAS;QACTK,KAAK;QACLC,SAAS;QACTC,SAAS;QACTC,SAAS;QACT;;;;KAIC,GACDC,WAAW;QACXC,WAAW;QACXC,WAAW;QACXC,aAAa;QACbC,iBAAiB;QACjB;;;KAGC,GACDC,uBAAuB;QACvBC,yBAAyB;QACzBC,mBAAmB;QACnBC,qBAAqB;QACrBC,gBAAgB;QAChB;;;KAGC,GACDC,aAAa;QACbC,eAAe;QACfC,mBAAmB;QACnB,oEAAoE,GACpEC,SAAS;QACTC,eACE;IACJ;IACA;;;GAGC,GACDC,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,iBAAiB;QACjBC,YAAY;QACZC,cAAc;QACdC,aAAa;QACbC,SAAS;QACTC,aAAa;QACbC,UAAU;IACZ;IACAC,MAAM;QACJC,SAAS;QACT9B,KAAK;QACL+B,MAAM;QACNC,MAAM;QACNC,MAAM;QACNC,QAAQ;QACRC,QAAQ;QACRC,UAAU;QACVC,OAAO;QACPC,MAAM;QACNnC,SAAS;QACToC,SAAS;QACT,0EAA0E,GAC1EC,kBAAkB;QAClBC,oBAAoB;QACpBC,cAAc;QACdC,gBAAgB;IAClB;IACA;;;GAGC,GACDC,OAAO;QACLC,OAAO;QACPC,WAAW;QACXC,OAAO;QACPC,W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;;KAGC,GACDC,QAAQ;YACNxJ,SAAS;YACTyJ,QAAQ;YACRC,UAAU;YACVxF,OAAO;QACT;QACA;;;;KAIC,GACDyF,QAAQ;YACNpI,OAAO;YACPpC,SAAS;QACX;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/i18n/catalog/es.ts"],"sourcesContent":["/**\n * Copy owned by `@entifix/react-controls` — the agnostic entity UI. It lives\n * here rather than next to the components because the typed-key augmentation has\n * to see every namespace from one module, and `@entifix/tooling` (T0) may not\n * import a T3 package.\n */\nexport const controls = {\n actions: {\n more: 'Más acciones',\n forRecord: 'Acciones para {{record}}',\n },\n table: {\n select: 'Seleccionar',\n actions: 'Acciones',\n new: 'Nuevo',\n filters: 'Filtros',\n sorting: 'Orden',\n loading: 'Cargando…',\n /**\n * La columna de selección. `selectRow` nombra la fila porque una casilla\n * sin etiqueta visible sólo se anuncia por su `aria-label`, y repetir el\n * encabezado en cada fila no diría cuál es.\n */\n selection: 'Selección',\n selectRow: 'Seleccionar {{record}}',\n expandRow: 'Expandir {{record}}',\n collapseRow: 'Contraer {{record}}',\n selectAllOnPage: 'Seleccionar todo en esta página',\n /**\n * La segunda selección — la que el servidor evalúa — lleva el número\n * siempre: es la diferencia entre actuar sobre 25 filas y sobre 3.200.\n */\n selectAllMatching_one: 'Seleccionar {{count}} coincidencia',\n selectAllMatching_other: 'Seleccionar las {{count}} coincidencias',\n selectedCount_one: '{{count}} seleccionado',\n selectedCount_other: '{{count}} seleccionados',\n clearSelection: 'Limpiar selección',\n /**\n * Lo que dice la región de estado tras filtrar, ordenar o cambiar de\n * página — nunca en la primera carga, que el lector pidió al llegar.\n */\n results_one: '{{count}} resultado',\n results_other: '{{count}} resultados',\n noResultsFiltered: 'Sin resultados para estos filtros',\n /** El `caption` de la tabla: qué contiene, cuántos y en qué orden. */\n caption: '{{entity}} · {{results}}',\n captionSorted:\n '{{entity}} · {{results}} · ordenado por {{column}}, {{direction}}',\n },\n /**\n * Una acción sobre una selección. El resultado es por fila, nunca un aviso\n * único: 40 seleccionadas y 3 fallidas no es ni un éxito ni un error.\n */\n bulk: {\n running: 'Ejecutando…',\n succeeded_one: '{{count}} registro actualizado',\n succeeded_other: '{{count}} registros actualizados',\n failed_one: '{{count}} registro falló',\n failed_other: '{{count}} registros fallaron',\n retryFailed: 'Reintentar los fallidos',\n dismiss: 'Cerrar resultado',\n resultLabel: 'Resultado de la acción masiva',\n barLabel: 'Acciones sobre la selección',\n },\n form: {\n details: 'Detalles',\n new: 'Nuevo',\n view: 'Ver',\n edit: 'Editar',\n save: 'Guardar',\n saving: 'Guardando…',\n delete: 'Eliminar',\n deleting: 'Eliminando…',\n clone: 'Duplicar',\n back: 'Volver',\n loading: 'Cargando…',\n pending: 'Esperando al servidor…',\n /** El resumen de un guardado rechazado: toma el foco, enlaza cada campo. */\n errorSummary_one: 'Revise {{count}} campo antes de guardar',\n errorSummary_other: 'Revise {{count}} campos antes de guardar',\n requiredHint: 'Los campos marcados con * son obligatorios.',\n requiredMarker: '*',\n },\n /**\n * Lo que dice una región cuando no muestra su contenido (ADR 0028): qué\n * pasó, qué hacer, sin culpar a nadie y sin códigos.\n */\n state: {\n retry: 'Reintentar',\n forbidden: 'No tiene permiso para ver {{plural}}.',\n stale: 'Lo que se muestra puede estar desactualizado.',\n noResults: 'No hay {{plural}} que coincidan con estos filtros.',\n clearFilters: 'Limpiar filtros',\n empty: 'Aquí aparecerán sus {{plural}}.',\n saved: 'Se guardó {{object}}.',\n },\n summary: {\n loading: 'Cargando…',\n failed: 'No se pudo cargar {{label}}.',\n },\n pagination: {\n label: 'Páginas',\n summary: 'Página {{current}} de {{total}} · {{items}} registros',\n rows: 'Filas',\n first: 'Primera',\n previous: 'Anterior',\n next: 'Siguiente',\n last: 'Última',\n /** Lo que se anuncia al cambiar de página. */\n page: 'Página {{current}} de {{total}}',\n },\n columns: {\n title: 'Columnas',\n subtitle: 'Visibilidad y orden',\n reset: 'Restablecer',\n moveUp: 'Subir {{column}}',\n moveDown: 'Bajar {{column}}',\n },\n filter: {\n match: 'Coincidir',\n all: 'todos',\n any: 'cualquiera',\n add: 'Añadir filtro',\n apply: 'Aplicar',\n clear: 'Limpiar',\n none: 'Esta entidad no tiene miembros filtrables.',\n listPlaceholder: 'valores, separados, por comas',\n matchAria: 'Coincidir todos o cualquiera de los filtros',\n member: 'Miembro del filtro',\n operator: 'Operador del filtro',\n value: 'Valor del filtro',\n rangeEnd: 'Fin del rango del filtro',\n remove: 'Quitar filtro',\n applyAria: 'Aplicar filtros',\n clearAria: 'Limpiar filtros',\n applied: 'Filtros aplicados',\n removeChip: 'Quitar filtro: {{filter}}',\n clearAll: 'Limpiar todo',\n /** Una opción con cuántos registros la tienen: «Borrador (3)». */\n withCount: '{{label}} ({{count}})',\n },\n sort: {\n by: 'Ordenar por',\n then: 'después por',\n ascending: 'ascendente',\n descending: 'descendente',\n add: 'Añadir orden',\n apply: 'Aplicar',\n clear: 'Limpiar',\n none: 'Esta entidad no tiene miembros ordenables.',\n member: 'Miembro de orden',\n direction: 'Dirección de orden',\n raisePriority: 'Subir prioridad de orden',\n lowerPriority: 'Bajar prioridad de orden',\n remove: 'Quitar orden',\n applyAria: 'Aplicar orden',\n clearAria: 'Limpiar orden',\n },\n alert: {\n dismiss: 'Descartar',\n },\n quantity: {\n decrease: 'Disminuir {{label}}',\n increase: 'Aumentar {{label}}',\n },\n tabs: {\n close: 'Cerrar {{label}}',\n new: 'Abrir una pestaña nueva',\n list: 'Pestañas del espacio de trabajo',\n withState: '{{label}}, {{state}}',\n dirty: 'cambios sin guardar',\n saving: 'guardando',\n error: 'sin guardar',\n },\n /**\n * El editor de una relación. `search` es la búsqueda rápida y `browse` abre el\n * catálogo completo; ambos botones son iconos, así que sus etiquetas `aria` son\n * lo único que un lector de pantalla anuncia.\n */\n link: {\n search: 'Buscar {{field}}',\n suggestAria: 'Ver sugerencias de {{field}}',\n browseAria: 'Examinar {{field}}',\n browseTitle: 'Seleccionar {{field}}',\n clear: 'Quitar {{field}}',\n empty: '— sin asignar —',\n loading: 'Cargando…',\n noResults: 'Sin coincidencias',\n error: 'No se pudieron cargar las opciones',\n close: 'Cerrar',\n },\n /**\n * La rejilla de detalle: las filas que un registro **posee** — las líneas de\n * un pedido, los renglones de una factura. `errorSummary` es el único\n * `role=\"alert\"` del control: un aviso por celda anunciaría la rejilla entera\n * en cada pulsación, y un mensaje que sólo vive en la celda es inalcanzable\n * cuando la fila que falla está fuera de pantalla.\n */\n detail: {\n addRow: 'Añadir fila',\n removeRow: 'Quitar fila {{row}}',\n rowActions: 'Acciones de fila',\n empty: 'Todavía no hay filas.',\n errorSummary_one: '{{count}} celda con errores',\n errorSummary_other: '{{count}} celdas con errores',\n },\n reference: {\n unresolved: '{{noun}} {{id}}',\n },\n value: {\n none: '— ninguno —',\n yes: 'Sí',\n no: 'No',\n /**\n * Una `composition` en una tabla: sus filas se editan en la pantalla del\n * maestro, no en la celda, así que la celda dice cuántas hay.\n */\n rowCount_one: '{{count}} fila',\n rowCount_other: '{{count}} filas',\n },\n /**\n * `required`…`option` son las reglas derivadas de la metadata. El resto es el\n * vocabulario en el que un Standard Schema de una entidad escribe sus\n * mensajes: el esquema lleva la *clave*, nunca una frase, para que la regla\n * siga siendo traducible.\n *\n * `field` es el único parámetro disponible — un issue de Standard Schema\n * expone un mensaje y una ruta, nada más — así que estos mensajes no indican\n * el límite. Una regla que deba enunciarlo escribe su propia clave en el\n * catálogo de su dominio (`entity:product-specification.validation.codeLength`).\n */\n validation: {\n required: '{{field}} es obligatorio',\n number: '{{field}} debe ser un número',\n date: '{{field}} debe ser una fecha',\n option: '{{field}} no es una opción válida',\n minLength: '{{field}} es demasiado corto',\n maxLength: '{{field}} es demasiado largo',\n min: '{{field}} es demasiado pequeño',\n max: '{{field}} es demasiado grande',\n pattern: '{{field}} tiene un formato inválido',\n minItems_one: '{{field}} necesita al menos {{count}} elemento',\n minItems_other: '{{field}} necesita al menos {{count}} elementos',\n maxItems_one: '{{field}} admite como máximo {{count}} elemento',\n maxItems_other: '{{field}} admite como máximo {{count}} elementos',\n notBefore: '{{field}} no puede ser anterior a {{other}}',\n locale: '{{field}} no tiene texto en {{locale}}',\n },\n /**\n * The filter vocabulary shown to a user. Deliberately distinct from\n * `RSQL_TOKENS` in `@entifix/core` — those are wire tokens (`==`, `=gt=`)\n * and must never be translated.\n */\n operator: {\n eq: 'es',\n ne: 'no es',\n gt: 'mayor que',\n gte: 'mayor o igual',\n lt: 'menor que',\n lte: 'menor o igual',\n in: 'es uno de',\n nin: 'no es ninguno de',\n between: 'entre',\n nbetween: 'fuera de',\n like: 'contiene',\n nlike: 'no contiene',\n isNull: 'está vacío',\n isNotNull: 'no está vacío',\n },\n density: {\n label: 'Densidad',\n comfortable: 'Cómoda',\n compact: 'Compacta',\n },\n theme: {\n label: 'Tema',\n },\n /**\n * Captions for the theme presets shipped by `@entifix/style`, plus the\n * per-app brand sets. They name design-system tokens, not app copy, so they\n * live beside the switcher that renders them and stay reachable from\n * Storybook, where no shell is mounted.\n */\n themes: {\n aurora: 'Aurora',\n sunset: 'Atardecer',\n midnight: 'Medianoche',\n ocean: 'Océano (en runtime)',\n marketplace: 'Marketplace',\n marketplaceDark: 'Marketplace oscuro',\n auth: 'Identidad',\n authDark: 'Identidad oscura',\n },\n confirm: {\n confirm: 'Confirmar',\n cancel: 'Cancelar',\n question: '¿{{verb}} {{object}}?',\n verbCount_one: '{{verb}}',\n verbCount_other: '{{verb}} {{count}}',\n selection_one: '{{count}} {{label}}',\n selection_other: '{{count}} {{plural}}',\n typeToConfirm: 'Escriba {{expected}} para confirmar',\n done: 'Hecho: {{verb}}, {{object}}.',\n undo: 'Deshacer',\n deleteMessage: 'Se elimina de forma definitiva.',\n deleted: 'Se eliminó {{object}}.',\n },\n /** Las actualizaciones en vivo: se dicen al caer y al volver, nada más. */\n live: {\n reconnecting: 'Actualizaciones en vivo en pausa — reconectando',\n stopped: 'Actualizaciones en vivo detenidas',\n reconnect: 'Reconectar',\n resumed: 'Actualizaciones en vivo reanudadas',\n waiting: 'Esperando la conexión…',\n },\n toast: {\n region: 'Notificaciones',\n dismiss: 'Descartar',\n },\n breadcrumbs: {\n label: 'Ruta de navegación',\n },\n /**\n * El asistente. Las etiquetas de cada paso las traduce quien declara el\n * asistente, no el control: un paso es del dominio que lo definió, y su copy\n * vive en `shell:` junto al resto de sus nombres.\n */\n wizard: {\n steps: 'Pasos',\n previous: 'Atrás',\n /**\n * \"Continuar\" y no \"Siguiente\": una tabla dentro de un paso trae su propio\n * paginador, cuyo botón **es** \"Siguiente\". Dos controles con el mismo\n * nombre en la misma pantalla se anuncian igual y hacen cosas distintas.\n */\n next: 'Continuar',\n finish: 'Finalizar',\n /**\n * Un envío que **no** resuelve. El asistente entrega el trabajo y vuelve\n * antes de que la escritura termine, así que dice \"enviando\" y\n * nunca \"guardado\": lo segundo sería una afirmación que el control no puede\n * comprobar.\n */\n submitting: 'Enviando…',\n stepOf: 'Paso {{current}} de {{total}}',\n goToStep: 'Volver a {{label}}',\n /**\n * El estado de cada paso, anunciado además de mostrarse. El color por sí\n * solo no lo dice, y un lector de pantalla recorre la lista sin verlo.\n */\n status: {\n pending: 'pendiente',\n active: 'en curso',\n complete: 'completado',\n error: 'con errores',\n },\n /**\n * El recordatorio al retomar. La persistencia da el \"continuar\" gratis; lo\n * que no da es acordarse de lo ya decidido, que es la falla conocida de los\n * asistentes largos.\n */\n resume: {\n title: 'Retomando donde lo dejaste',\n dismiss: 'Entendido',\n },\n },\n};\n"],"names":["controls","actions","more","forRecord","table","select","new","filters","sorting","loading","selection","selectRow","expandRow","collapseRow","selectAllOnPage","selectAllMatching_one","selectAllMatching_other","selectedCount_one","selectedCount_other","clearSelection","results_one","results_other","noResultsFiltered","caption","captionSorted","bulk","running","succeeded_one","succeeded_other","failed_one","failed_other","retryFailed","dismiss","resultLabel","barLabel","form","details","view","edit","save","saving","delete","deleting","clone","back","pending","errorSummary_one","errorSummary_other","requiredHint","requiredMarker","state","retry","forbidden","stale","noResults","clearFilters","empty","saved","summary","failed","pagination","label","rows","first","previous","next","last","page","columns","title","subtitle","reset","moveUp","moveDown","filter","match","all","any","add","apply","clear","none","listPlaceholder","matchAria","member","operator","value","rangeEnd","remove","applyAria","clearAria","applied","removeChip","clearAll","withCount","sort","by","then","ascending","descending","direction","raisePriority","lowerPriority","alert","quantity","decrease","increase","tabs","close","list","withState","dirty","error","link","search","suggestAria","browseAria","browseTitle","detail","addRow","removeRow","rowActions","reference","unresolved","yes","no","rowCount_one","rowCount_other","validation","required","number","date","option","minLength","maxLength","min","max","pattern","minItems_one","minItems_other","maxItems_one","maxItems_other","notBefore","locale","eq","ne","gt","gte","lt","lte","in","nin","between","nbetween","like","nlike","isNull","isNotNull","density","comfortable","compact","theme","themes","aurora","sunset","midnight","ocean","marketplace","marketplaceDark","auth","authDark","confirm","cancel","question","verbCount_one","verbCount_other","selection_one","selection_other","typeToConfirm","done","undo","deleteMessage","deleted","live","reconnecting","stopped","reconnect","resumed","waiting","toast","region","breadcrumbs","wizard","steps","finish","submitting","stepOf","goToStep","status","active","complete","resume"],"mappings":"AAAA;;;;;CAKC,GACD,OAAO,MAAMA,WAAW;IACtBC,SAAS;QACPC,MAAM;QACNC,WAAW;IACb;IACAC,OAAO;QACLC,QAAQ;QACRJ,SAAS;QACTK,KAAK;QACLC,SAAS;QACTC,SAAS;QACTC,SAAS;QACT;;;;KAIC,GACDC,WAAW;QACXC,WAAW;QACXC,WAAW;QACXC,aAAa;QACbC,iBAAiB;QACjB;;;KAGC,GACDC,uBAAuB;QACvBC,yBAAyB;QACzBC,mBAAmB;QACnBC,qBAAqB;QACrBC,gBAAgB;QAChB;;;KAGC,GACDC,aAAa;QACbC,eAAe;QACfC,mBAAmB;QACnB,oEAAoE,GACpEC,SAAS;QACTC,eACE;IACJ;IACA;;;GAGC,GACDC,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,iBAAiB;QACjBC,YAAY;QACZC,cAAc;QACdC,aAAa;QACbC,SAAS;QACTC,aA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AAe;QACfC,MAAM;QACNC,MAAM;QACNC,eAAe;QACfC,SAAS;IACX;IACA,yEAAyE,GACzEC,MAAM;QACJC,cAAc;QACdC,SAAS;QACTC,WAAW;QACXC,SAAS;QACTC,SAAS;IACX;IACAC,OAAO;QACLC,QAAQ;QACR9J,SAAS;IACX;IACA+J,aAAa;QACXlI,OAAO;IACT;IACA;;;;GAIC,GACDmI,QAAQ;QACNC,OAAO;QACPjI,UAAU;QACV;;;;KAIC,GACDC,MAAM;QACNiI,QAAQ;QACR;;;;;KAKC,GACDC,YAAY;QACZC,QAAQ;QACRC,UAAU;QACV;;;KAGC,GACDC,QAAQ;YACNzJ,SAAS;YACT0J,QAAQ;YACRC,UAAU;YACVxF,OAAO;QACT;QACA;;;;KAIC,GACDyF,QAAQ;YACNpI,OAAO;YACPrC,SAAS;QACX;IACF;AACF,EAAE"}
@@ -75,6 +75,10 @@ export declare const controlsCatalogs: {
75
75
  empty: string;
76
76
  saved: string;
77
77
  };
78
+ summary: {
79
+ loading: string;
80
+ failed: string;
81
+ };
78
82
  pagination: {
79
83
  label: string;
80
84
  summary: string;
@@ -344,6 +348,10 @@ export declare const controlsCatalogs: {
344
348
  empty: string;
345
349
  saved: string;
346
350
  };
351
+ summary: {
352
+ loading: string;
353
+ failed: string;
354
+ };
347
355
  pagination: {
348
356
  label: string;
349
357
  summary: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC;AAEX,qEAAqE;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB,uBAAwB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './ui/atoms/external-link/index.js';
9
9
  export * from './ui/atoms/field/index.js';
10
10
  export * from './ui/atoms/field-control/index.js';
11
11
  export * from './ui/atoms/localized-field-control/index.js';
12
+ export * from './ui/atoms/media-image/index.js';
12
13
  export * from './ui/atoms/money/index.js';
13
14
  export * from './ui/atoms/number-input/index.js';
14
15
  export * from './ui/atoms/skeleton/index.js';
@@ -49,6 +50,7 @@ export * from './ui/molecules/segmented-nav/index.js';
49
50
  export * from './ui/molecules/sort-builder/index.js';
50
51
  export * from './ui/molecules/split-view/index.js';
51
52
  export * from './ui/molecules/stack/index.js';
53
+ export * from './ui/molecules/summary-tile/index.js';
52
54
  export * from './ui/molecules/tab-strip/index.js';
53
55
  export * from './ui/molecules/table-toolbar/index.js';
54
56
  export * from './ui/molecules/theme-switcher/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAA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ACvE,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,mBAAmB,EACnB,UAAU,EACV,SAAS,GACV,MAAM,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ export * from './ui/atoms/external-link/index.js';
9
9
  export * from './ui/atoms/field/index.js';
10
10
  export * from './ui/atoms/field-control/index.js';
11
11
  export * from './ui/atoms/localized-field-control/index.js';
12
+ export * from './ui/atoms/media-image/index.js';
12
13
  export * from './ui/atoms/money/index.js';
13
14
  export * from './ui/atoms/number-input/index.js';
14
15
  export * from './ui/atoms/skeleton/index.js';
@@ -49,6 +50,7 @@ export * from './ui/molecules/segmented-nav/index.js';
49
50
  export * from './ui/molecules/sort-builder/index.js';
50
51
  export * from './ui/molecules/split-view/index.js';
51
52
  export * from './ui/molecules/stack/index.js';
53
+ export * from './ui/molecules/summary-tile/index.js';
52
54
  export * from './ui/molecules/tab-strip/index.js';
53
55
  export * from './ui/molecules/table-toolbar/index.js';
54
56
  export * from './ui/molecules/theme-switcher/index.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './i18n/index.js';\nexport * from './preferences/index.js';\nexport * from './theme/index.js';\nexport * from './ui/actions/index.js';\nexport * from './ui/atoms/alert/index.js';\nexport * from './ui/atoms/button/index.js';\nexport * from './ui/atoms/cell-value/index.js';\nexport * from './ui/atoms/external-link/index.js';\nexport * from './ui/atoms/field/index.js';\nexport * from './ui/atoms/field-control/index.js';\nexport * from './ui/atoms/localized-field-control/index.js';\nexport * from './ui/atoms/money/index.js';\nexport * from './ui/atoms/number-input/index.js';\nexport * from './ui/atoms/skeleton/index.js';\nexport * from './ui/atoms/status-tag/index.js';\nexport * from './ui/atoms/switch/index.js';\nexport * from './ui/atoms/table/index.js';\nexport * from './ui/atoms/text/index.js';\nexport * from './ui/layout/box/index.js';\nexport * from './ui/layout/center/index.js';\nexport * from './ui/layout/cluster/index.js';\nexport * from './ui/layout/cover/index.js';\nexport * from './ui/layout/grid/index.js';\nexport * from './ui/layout/sidebar/index.js';\nexport * from './ui/layout/switcher/index.js';\nexport * from './ui/molecules/action-bar/index.js';\nexport * from './ui/molecules/breadcrumbs/index.js';\nexport * from './ui/molecules/bulk-action-bar/index.js';\nexport * from './ui/molecules/bulk-result/index.js';\nexport * from './ui/molecules/card/index.js';\nexport * from './ui/molecules/column-settings/index.js';\nexport * from './ui/molecules/confirm-dialog/index.js';\nexport * from './ui/molecules/description-list/index.js';\nexport * from './ui/molecules/drawer/index.js';\nexport * from './ui/molecules/empty-state/index.js';\nexport * from './ui/molecules/entity-link-input/index.js';\nexport * from './ui/molecules/entity-link-picker/index.js';\nexport * from './ui/molecules/entity-record-card/index.js';\nexport * from './ui/molecules/filter-builder/index.js';\nexport * from './ui/molecules/filter-chips/index.js';\nexport * from './ui/molecules/loading-boundary/index.js';\nexport * from './ui/molecules/media-gallery/index.js';\nexport * from './ui/molecules/menu/index.js';\nexport * from './ui/molecules/nav-menu/index.js';\nexport * from './ui/molecules/pagination/index.js';\nexport * from './ui/molecules/region-state/index.js';\nexport * from './ui/molecules/segmented-control/index.js';\nexport * from './ui/molecules/segmented-nav/index.js';\nexport * from './ui/molecules/sort-builder/index.js';\nexport * from './ui/molecules/split-view/index.js';\nexport * from './ui/molecules/stack/index.js';\nexport * from './ui/molecules/tab-strip/index.js';\nexport * from './ui/molecules/table-toolbar/index.js';\nexport * from './ui/molecules/theme-switcher/index.js';\nexport * from './ui/molecules/toast-region/index.js';\nexport * from './ui/organisms/command-palette/index.js';\nexport * from './ui/organisms/entity-detail-grid/index.js';\nexport * from './ui/organisms/entity-form/index.js';\nexport * from './ui/organisms/entity-table/index.js';\nexport * from './ui/organisms/top-bar/index.js';\nexport * from './ui/organisms/wizard/index.js';\nexport * from './ui/utils/active-heading/index.js';\nexport * from './ui/utils/active-section/index.js';\nexport * from './ui/utils/cn.js';\nexport * from './ui/utils/fold-script/index.js';\nexport * from './ui/utils/keep-section/index.js';\nexport * from './ui/utils/live-updates.js';\nexport * from './ui/utils/media-query/index.js';\nexport * from './ui/utils/reference-labels.js';\nexport { useFocusOnArrival } from './ui/utils/use-focus-on-arrival.js';\nexport {\n type HotkeyOptions,\n type HotkeyScope,\n HotkeyScopeProvider,\n PAGE_SCOPE,\n useHotkey,\n} from './ui/utils/use-hotkey.js';\n"],"names":["useFocusOnArrival","HotkeyScopeProvider","PAGE_SCOPE","useHotkey"],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,yBAAyB;AACvC,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,iCAAiC;AAC/C,cAAc,oCAAoC;AAClD,cAAc,4BAA4B;AAC1C,cAAc,oCAAoC;AAClD,cAAc,8CAA8C;AAC5D,cAAc,4BAA4B;AAC1C,cAAc,mCAAmC;AACjD,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,8BAA8B;AAC5C,cAAc,+BAA+B;AAC7C,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,sCAAsC;AACpD,cAAc,0CAA0C;AACxD,cAAc,sCAAsC;AACpD,cAAc,+BAA+B;AAC7C,cAAc,0CAA0C;AACxD,cAAc,yCAAyC;AACvD,cAAc,2CAA2C;AACzD,cAAc,iCAAiC;AAC/C,cAAc,sCAAsC;AACpD,cAAc,4CAA4C;AAC1D,cAAc,6CAA6C;AAC3D,cAAc,6CAA6C;AAC3D,cAAc,yCAAyC;AACvD,cAAc,uCAAuC;AACrD,cAAc,2CAA2C;AACzD,cAAc,wCAAwC;AACtD,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,qCAAqC;AACnD,cAAc,uCAAuC;AACrD,cAAc,4CAA4C;AAC1D,cAAc,wCAAwC;AACtD,cAAc,uCAAuC;AACrD,cAAc,qCAAqC;AACnD,cAAc,gCAAgC;AAC9C,cAAc,oCAAoC;AAClD,cAAc,wCAAwC;AACtD,cAAc,yCAAyC;AACvD,cAAc,uCAAuC;AACrD,cAAc,0CAA0C;AACxD,cAAc,6CAA6C;AAC3D,cAAc,sCAAsC;AACpD,cAAc,uCAAuC;AACrD,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,cAAc,qCAAqC;AACnD,cAAc,qCAAqC;AACnD,cAAc,mBAAmB;AACjC,cAAc,kCAAkC;AAChD,cAAc,mCAAmC;AACjD,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,SAASA,iBAAiB,QAAQ,qCAAqC;AACvE,SAGEC,mBAAmB,EACnBC,UAAU,EACVC,SAAS,QACJ,2BAA2B"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './i18n/index.js';\nexport * from './preferences/index.js';\nexport * from './theme/index.js';\nexport * from './ui/actions/index.js';\nexport * from './ui/atoms/alert/index.js';\nexport * from './ui/atoms/button/index.js';\nexport * from './ui/atoms/cell-value/index.js';\nexport * from './ui/atoms/external-link/index.js';\nexport * from './ui/atoms/field/index.js';\nexport * from './ui/atoms/field-control/index.js';\nexport * from './ui/atoms/localized-field-control/index.js';\nexport * from './ui/atoms/media-image/index.js';\nexport * from './ui/atoms/money/index.js';\nexport * from './ui/atoms/number-input/index.js';\nexport * from './ui/atoms/skeleton/index.js';\nexport * from './ui/atoms/status-tag/index.js';\nexport * from './ui/atoms/switch/index.js';\nexport * from './ui/atoms/table/index.js';\nexport * from './ui/atoms/text/index.js';\nexport * from './ui/layout/box/index.js';\nexport * from './ui/layout/center/index.js';\nexport * from './ui/layout/cluster/index.js';\nexport * from './ui/layout/cover/index.js';\nexport * from './ui/layout/grid/index.js';\nexport * from './ui/layout/sidebar/index.js';\nexport * from './ui/layout/switcher/index.js';\nexport * from './ui/molecules/action-bar/index.js';\nexport * from './ui/molecules/breadcrumbs/index.js';\nexport * from './ui/molecules/bulk-action-bar/index.js';\nexport * from './ui/molecules/bulk-result/index.js';\nexport * from './ui/molecules/card/index.js';\nexport * from './ui/molecules/column-settings/index.js';\nexport * from './ui/molecules/confirm-dialog/index.js';\nexport * from './ui/molecules/description-list/index.js';\nexport * from './ui/molecules/drawer/index.js';\nexport * from './ui/molecules/empty-state/index.js';\nexport * from './ui/molecules/entity-link-input/index.js';\nexport * from './ui/molecules/entity-link-picker/index.js';\nexport * from './ui/molecules/entity-record-card/index.js';\nexport * from './ui/molecules/filter-builder/index.js';\nexport * from './ui/molecules/filter-chips/index.js';\nexport * from './ui/molecules/loading-boundary/index.js';\nexport * from './ui/molecules/media-gallery/index.js';\nexport * from './ui/molecules/menu/index.js';\nexport * from './ui/molecules/nav-menu/index.js';\nexport * from './ui/molecules/pagination/index.js';\nexport * from './ui/molecules/region-state/index.js';\nexport * from './ui/molecules/segmented-control/index.js';\nexport * from './ui/molecules/segmented-nav/index.js';\nexport * from './ui/molecules/sort-builder/index.js';\nexport * from './ui/molecules/split-view/index.js';\nexport * from './ui/molecules/stack/index.js';\nexport * from './ui/molecules/summary-tile/index.js';\nexport * from './ui/molecules/tab-strip/index.js';\nexport * from './ui/molecules/table-toolbar/index.js';\nexport * from './ui/molecules/theme-switcher/index.js';\nexport * from './ui/molecules/toast-region/index.js';\nexport * from './ui/organisms/command-palette/index.js';\nexport * from './ui/organisms/entity-detail-grid/index.js';\nexport * from './ui/organisms/entity-form/index.js';\nexport * from './ui/organisms/entity-table/index.js';\nexport * from './ui/organisms/top-bar/index.js';\nexport * from './ui/organisms/wizard/index.js';\nexport * from './ui/utils/active-heading/index.js';\nexport * from './ui/utils/active-section/index.js';\nexport * from './ui/utils/cn.js';\nexport * from './ui/utils/fold-script/index.js';\nexport * from './ui/utils/keep-section/index.js';\nexport * from './ui/utils/live-updates.js';\nexport * from './ui/utils/media-query/index.js';\nexport * from './ui/utils/reference-labels.js';\nexport { useFocusOnArrival } from './ui/utils/use-focus-on-arrival.js';\nexport {\n type HotkeyOptions,\n type HotkeyScope,\n HotkeyScopeProvider,\n PAGE_SCOPE,\n useHotkey,\n} from './ui/utils/use-hotkey.js';\n"],"names":["useFocusOnArrival","HotkeyScopeProvider","PAGE_SCOPE","useHotkey"],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,yBAAyB;AACvC,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,iCAAiC;AAC/C,cAAc,oCAAoC;AAClD,cAAc,4BAA4B;AAC1C,cAAc,oCAAoC;AAClD,cAAc,8CAA8C;AAC5D,cAAc,kCAAkC;AAChD,cAAc,4BAA4B;AAC1C,cAAc,mCAAmC;AACjD,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,8BAA8B;AAC5C,cAAc,+BAA+B;AAC7C,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,sCAAsC;AACpD,cAAc,0CAA0C;AACxD,cAAc,sCAAsC;AACpD,cAAc,+BAA+B;AAC7C,cAAc,0CAA0C;AACxD,cAAc,yCAAyC;AACvD,cAAc,2CAA2C;AACzD,cAAc,iCAAiC;AAC/C,cAAc,sCAAsC;AACpD,cAAc,4CAA4C;AAC1D,cAAc,6CAA6C;AAC3D,cAAc,6CAA6C;AAC3D,cAAc,yCAAyC;AACvD,cAAc,uCAAuC;AACrD,cAAc,2CAA2C;AACzD,cAAc,wCAAwC;AACtD,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,qCAAqC;AACnD,cAAc,uCAAuC;AACrD,cAAc,4CAA4C;AAC1D,cAAc,wCAAwC;AACtD,cAAc,uCAAuC;AACrD,cAAc,qCAAqC;AACnD,cAAc,gCAAgC;AAC9C,cAAc,uCAAuC;AACrD,cAAc,oCAAoC;AAClD,cAAc,wCAAwC;AACtD,cAAc,yCAAyC;AACvD,cAAc,uCAAuC;AACrD,cAAc,0CAA0C;AACxD,cAAc,6CAA6C;AAC3D,cAAc,sCAAsC;AACpD,cAAc,uCAAuC;AACrD,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,cAAc,qCAAqC;AACnD,cAAc,qCAAqC;AACnD,cAAc,mBAAmB;AACjC,cAAc,kCAAkC;AAChD,cAAc,mCAAmC;AACjD,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,SAASA,iBAAiB,QAAQ,qCAAqC;AACvE,SAGEC,mBAAmB,EACnBC,UAAU,EACVC,SAAS,QACJ,2BAA2B"}
@@ -4,6 +4,7 @@ export * from './ui/atoms/alert/index.js';
4
4
  export * from './ui/atoms/button/index.js';
5
5
  export * from './ui/atoms/external-link/index.js';
6
6
  export * from './ui/atoms/field/index.js';
7
+ export * from './ui/atoms/media-image/index.js';
7
8
  export * from './ui/atoms/money/index.js';
8
9
  export * from './ui/atoms/number-input/index.js';
9
10
  export * from './ui/atoms/skeleton/index.js';
@@ -32,6 +33,7 @@ export * from './ui/molecules/segmented-control/index.js';
32
33
  export * from './ui/molecules/segmented-nav/index.js';
33
34
  export * from './ui/molecules/split-view/index.js';
34
35
  export * from './ui/molecules/stack/index.js';
36
+ export * from './ui/molecules/summary-tile/index.js';
35
37
  export * from './ui/molecules/tab-strip/index.js';
36
38
  export * from './ui/molecules/theme-switcher/index.js';
37
39
  export * from './ui/utils/active-heading/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/primitives.ts"],"names":[],"mappings":"AAyBA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
30
30
  export * from './ui/atoms/external-link/index.js';
31
31
  export * from './ui/atoms/field/index.js';
32
+ export * from './ui/atoms/media-image/index.js';
32
33
  export * from './ui/atoms/money/index.js';
33
34
  export * from './ui/atoms/number-input/index.js';
34
35
  export * from './ui/atoms/skeleton/index.js';
@@ -60,6 +61,7 @@ export * from './ui/molecules/segmented-control/index.js';
60
61
  export * from './ui/molecules/segmented-nav/index.js';
61
62
  export * from './ui/molecules/split-view/index.js';
62
63
  export * from './ui/molecules/stack/index.js';
64
+ export * from './ui/molecules/summary-tile/index.js';
63
65
  export * from './ui/molecules/tab-strip/index.js';
64
66
  export * from './ui/molecules/theme-switcher/index.js';
65
67
  export * from './ui/utils/active-heading/index.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/primitives.ts"],"sourcesContent":["// The entity-free half of the design system, published as\n// `@entifix/react-controls/primitives`.\n//\n// It exists because the package's main barrel is one flat re-export of\n// everything, and a bundler cannot drop what a module graph reaches: a\n// storefront page importing `Card` from `.` pulled `EntityTable`,\n// `FilterBuilder`, `SortBuilder`, `ColumnSettings` and the RSQL machinery\n// behind them into its client bundle — 541 KB of back-office UI shipped to a\n// visitor looking at a product.\n//\n// The line drawn here is not \"small vs large\", it is **presentational vs\n// entity-aware**: everything below can be understood without knowing what an\n// entity is. Anything that reads entity metadata (`CellValue`, `FieldControl`,\n// `EntityTable`, `EntityForm`, the filter/sort/column builders, the link\n// inputs) stays behind the main entry, where the back-office already imports it.\n//\n// Consumers that need both may import both; nothing is duplicated, and the main\n// barrel keeps re-exporting all of this so no existing import breaks.\n\n// Providers every app mounts, whatever it renders.\n//\n// `./preferences` is deliberately **not** here. The UI-preferences store is\n// backed by Effect `Layer`s, so re-exporting it drags the whole Effect runtime\n// into the browser — and what it remembers (column visibility, table density)\n// only exists in the back-office. A storefront has no preferences to store.\nexport * from './i18n/index.js';\nexport * from './theme/index.js';\n\n// Atoms — text, buttons, fields, tables, loading placeholders.\nexport * from './ui/atoms/alert/index.js';\nexport * from './ui/atoms/button/index.js';\nexport * from './ui/atoms/external-link/index.js';\nexport * from './ui/atoms/field/index.js';\nexport * from './ui/atoms/money/index.js';\nexport * from './ui/atoms/number-input/index.js';\nexport * from './ui/atoms/skeleton/index.js';\nexport * from './ui/atoms/status-tag/index.js';\nexport * from './ui/atoms/switch/index.js';\nexport * from './ui/atoms/table/index.js';\nexport * from './ui/atoms/text/index.js';\n\n// Layout primitives (Every Layout): flex-first, with `Grid` the one CSS-Grid\n// escape hatch.\nexport * from './ui/layout/box/index.js';\nexport * from './ui/layout/center/index.js';\nexport * from './ui/layout/cluster/index.js';\nexport * from './ui/layout/cover/index.js';\nexport * from './ui/layout/grid/index.js';\nexport * from './ui/layout/sidebar/index.js';\nexport * from './ui/layout/switcher/index.js';\n\n// Molecules that compose the above and nothing else.\nexport * from './ui/molecules/breadcrumbs/index.js';\nexport * from './ui/molecules/card/index.js';\nexport * from './ui/molecules/confirm-dialog/index.js';\nexport * from './ui/molecules/description-list/index.js';\nexport * from './ui/molecules/empty-state/index.js';\nexport * from './ui/molecules/loading-boundary/index.js';\nexport * from './ui/molecules/media-gallery/index.js';\nexport * from './ui/molecules/menu/index.js';\nexport * from './ui/molecules/nav-menu/index.js';\nexport * from './ui/molecules/pagination/index.js';\nexport * from './ui/molecules/segmented-control/index.js';\nexport * from './ui/molecules/segmented-nav/index.js';\nexport * from './ui/molecules/split-view/index.js';\nexport * from './ui/molecules/stack/index.js';\nexport * from './ui/molecules/tab-strip/index.js';\nexport * from './ui/molecules/theme-switcher/index.js';\nexport * from './ui/utils/active-heading/index.js';\nexport * from './ui/utils/active-section/index.js';\nexport * from './ui/utils/cn.js';\nexport * from './ui/utils/fold-script/index.js';\nexport * from './ui/utils/keep-section/index.js';\nexport * from './ui/utils/media-query/index.js';\n"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,wCAAwC;AACxC,EAAE;AACF,uEAAuE;AACvE,uEAAuE;AACvE,kEAAkE;AAClE,0EAA0E;AAC1E,6EAA6E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, published as\n// `@entifix/react-controls/primitives`.\n//\n// It exists because the package's main barrel is one flat re-export of\n// everything, and a bundler cannot drop what a module graph reaches: a\n// storefront page importing `Card` from `.` pulled `EntityTable`,\n// `FilterBuilder`, `SortBuilder`, `ColumnSettings` and the RSQL machinery\n// behind them into its client bundle — 541 KB of back-office UI shipped to a\n// visitor looking at a product.\n//\n// The line drawn here is not \"small vs large\", it is **presentational vs\n// entity-aware**: everything below can be understood without knowing what an\n// entity is. Anything that reads entity metadata (`CellValue`, `FieldControl`,\n// `EntityTable`, `EntityForm`, the filter/sort/column builders, the link\n// inputs) stays behind the main entry, where the back-office already imports it.\n//\n// Consumers that need both may import both; nothing is duplicated, and the main\n// barrel keeps re-exporting all of this so no existing import breaks.\n\n// Providers every app mounts, whatever it renders.\n//\n// `./preferences` is deliberately **not** here. The UI-preferences store is\n// backed by Effect `Layer`s, so re-exporting it drags the whole Effect runtime\n// into the browser — and what it remembers (column visibility, table density)\n// only exists in the back-office. A storefront has no preferences to store.\nexport * from './i18n/index.js';\nexport * from './theme/index.js';\n\n// Atoms — text, buttons, fields, tables, loading placeholders.\nexport * from './ui/atoms/alert/index.js';\nexport * from './ui/atoms/button/index.js';\nexport * from './ui/atoms/external-link/index.js';\nexport * from './ui/atoms/field/index.js';\nexport * from './ui/atoms/media-image/index.js';\nexport * from './ui/atoms/money/index.js';\nexport * from './ui/atoms/number-input/index.js';\nexport * from './ui/atoms/skeleton/index.js';\nexport * from './ui/atoms/status-tag/index.js';\nexport * from './ui/atoms/switch/index.js';\nexport * from './ui/atoms/table/index.js';\nexport * from './ui/atoms/text/index.js';\n\n// Layout primitives (Every Layout): flex-first, with `Grid` the one CSS-Grid\n// escape hatch.\nexport * from './ui/layout/box/index.js';\nexport * from './ui/layout/center/index.js';\nexport * from './ui/layout/cluster/index.js';\nexport * from './ui/layout/cover/index.js';\nexport * from './ui/layout/grid/index.js';\nexport * from './ui/layout/sidebar/index.js';\nexport * from './ui/layout/switcher/index.js';\n\n// Molecules that compose the above and nothing else.\nexport * from './ui/molecules/breadcrumbs/index.js';\nexport * from './ui/molecules/card/index.js';\nexport * from './ui/molecules/confirm-dialog/index.js';\nexport * from './ui/molecules/description-list/index.js';\nexport * from './ui/molecules/empty-state/index.js';\nexport * from './ui/molecules/loading-boundary/index.js';\nexport * from './ui/molecules/media-gallery/index.js';\nexport * from './ui/molecules/menu/index.js';\nexport * from './ui/molecules/nav-menu/index.js';\nexport * from './ui/molecules/pagination/index.js';\nexport * from './ui/molecules/segmented-control/index.js';\nexport * from './ui/molecules/segmented-nav/index.js';\nexport * from './ui/molecules/split-view/index.js';\nexport * from './ui/molecules/stack/index.js';\nexport * from './ui/molecules/summary-tile/index.js';\nexport * from './ui/molecules/tab-strip/index.js';\nexport * from './ui/molecules/theme-switcher/index.js';\nexport * from './ui/utils/active-heading/index.js';\nexport * from './ui/utils/active-section/index.js';\nexport * from './ui/utils/cn.js';\nexport * from './ui/utils/fold-script/index.js';\nexport * from './ui/utils/keep-section/index.js';\nexport * from './ui/utils/media-query/index.js';\n"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,wCAAwC;AACxC,EAAE;AACF,uEAAuE;AACvE,uEAAuE;AACvE,kEAAkE;AAClE,0EAA0E;AAC1E,6EAA6E;AAC7E,gCAAgC;AAChC,EAAE;AACF,yEAAyE;AACzE,6EAA6E;AAC7E,+EAA+E;AAC/E,yEAAyE;AACzE,iFAAiF;AACjF,EAAE;AACF,gFAAgF;AAChF,sEAAsE;AAEtE,mDAAmD;AACnD,EAAE;AACF,4EAA4E;AAC5E,+EAA+E;AAC/E,8EAA8E;AAC9E,4EAA4E;AAC5E,cAAc,kBAAkB;AAChC,cAAc,mBAAmB;AAEjC,+DAA+D;AAC/D,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,oCAAoC;AAClD,cAAc,4BAA4B;AAC1C,cAAc,kCAAkC;AAChD,cAAc,4BAA4B;AAC1C,cAAc,mCAAmC;AACjD,cAAc,+BAA+B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AED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,cAAc,+BA0EtE"}
1
+ {"version":3,"file":"cell-value.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/cell-value/cell-value.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,qBAAqB,EAK3B,MAAM,eAAe,CAAC;AAgJvB;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,CAC9B,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,qBAAqB,KAC9B,MAAM,CAYV;AAsDD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,qBAAqB,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC5C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,cAAc,+BAqFtE"}
@@ -7,6 +7,7 @@ import { useReferenceLabel, useUnresolvedReference } from '../../utils/reference
7
7
  import { Money } from '../money/money.js';
8
8
  import { currencyOf } from '../money/money-math.js';
9
9
  import { Skeleton } from '../skeleton/index.js';
10
+ import { StatusTag } from '../status-tag/index.js';
10
11
  /** Stand-in for an absent value, so an empty cell still reads as intentional. */ const EMPTY = '—';
11
12
  /**
12
13
  * A link reads as its target's label once the target is loaded (embedded or
@@ -208,6 +209,16 @@ function formatByType(value, type, linkLabelProperty, formatting) {
208
209
  children: EMPTY
209
210
  });
210
211
  }
212
+ // A status reads as a tag in its declared tone, its words beside the
213
+ // colour; a value given no tone reads neutral. An enum that declared no
214
+ // tones is not a status, and stays text.
215
+ if (descriptor.type === 'enum' && descriptor.enumTones !== undefined) {
216
+ var _descriptor_enumTones_String;
217
+ return /*#__PURE__*/ _jsx(StatusTag, {
218
+ tone: (_descriptor_enumTones_String = descriptor.enumTones[String(value)]) != null ? _descriptor_enumTones_String : 'neutral',
219
+ children: text
220
+ });
221
+ }
211
222
  // Text the reader's locale lacks falls back to the default locale's, and is
212
223
  // marked as that language, so it is read in its own voice (WCAG 3.1.2).
213
224
  if (descriptor.type === 'localized' && isLocalizedText(value) && ((_value_locale = value[locale]) != null ? _value_locale : '') === '') {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/ui/atoms/cell-value/cell-value.tsx"],"sourcesContent":["'use client';\n\nimport type { Formatters, Locale } from '@entifix/core';\nimport {\n defaultLocale,\n type Entity,\n EntityCollectionLink,\n type EntityFieldDescriptor,\n EntityLink,\n isLocalizedText,\n localize,\n type MetaAccessorType,\n} from '@entifix/core';\nimport { useCallback } from 'react';\n\nimport {\n useEnumLabel,\n useFormatters,\n useLocale,\n useT,\n} from '../../../i18n/index.js';\nimport {\n useReferenceLabel,\n useUnresolvedReference,\n} from '../../utils/reference-labels.js';\nimport { Money } from '../money/money.js';\nimport { currencyOf } from '../money/money-math.js';\nimport { Skeleton } from '../skeleton/index.js';\n\n/** Stand-in for an absent value, so an empty cell still reads as intentional. */\nconst EMPTY = '—';\n\n/**\n * A link reads as its target's label once the target is loaded (embedded or\n * resolved). Never as its id: a key is not a name, and showing one fails the\n * reader who came to see which record it is (#200).\n */\nfunction entityLabel(\n target: Entity | undefined,\n linkLabelProperty: string,\n locale: Locale,\n): string | undefined {\n const label = (target as Record<string, unknown> | undefined)?.[\n linkLabelProperty\n ];\n if (label == null) return undefined;\n // A target labelled by a localized member reads in the reader's locale.\n return isLocalizedText(label) ? localize(label, locale) : String(label);\n}\n\nfunction formatLink(\n link: EntityLink<Entity>,\n linkLabelProperty: string,\n locale: Locale,\n): string {\n return link.id == null\n ? EMPTY\n : (entityLabel(link.value, linkLabelProperty, locale) ?? EMPTY);\n}\n\nfunction formatCollectionLink(\n link: EntityCollectionLink<Entity>,\n linkLabelProperty: string,\n locale: Locale,\n): string {\n return (link.values ?? [])\n .map(target => entityLabel(target, linkLabelProperty, locale) ?? EMPTY)\n .join(', ');\n}\n\n/**\n * Everything locale-dependent, resolved once by the component and handed down.\n * The formatters carry an explicit locale, which is what keeps a date rendered\n * on the server byte-identical to the same date rendered in the browser.\n */\ninterface CellFormatting {\n readonly formatters: Formatters;\n readonly yes: string;\n readonly no: string;\n readonly enumLabel: (value: string) => string;\n readonly rowCount: (count: number) => string;\n readonly locale: Locale;\n}\n\nfunction formatByType(\n value: unknown,\n type: MetaAccessorType,\n linkLabelProperty: string,\n formatting: CellFormatting,\n): string {\n switch (type) {\n case 'date':\n return formatting.formatters.date(\n value instanceof Date ? value : String(value),\n );\n case 'number':\n return typeof value === 'number'\n ? formatting.formatters.number(value)\n : String(value);\n case 'boolean':\n return value ? formatting.yes : formatting.no;\n case 'enum':\n return formatting.enumLabel(String(value));\n case 'link':\n return value instanceof EntityLink\n ? formatLink(value, linkLabelProperty, formatting.locale)\n : String(value);\n case 'linkCollection':\n return value instanceof EntityCollectionLink\n ? formatCollectionLink(value, linkLabelProperty, formatting.locale)\n : String(value);\n case 'scalarCollection':\n // The same comma list the draft holds, spaced for reading. Not `String`:\n // an array's own `toString` joins on a bare comma, which reads as one\n // run-on token in a narrow column.\n return Array.isArray(value) ? value.join(', ') : String(value);\n case 'composition':\n // Owned rows have no useful one-line form — a receipt's lines are not a\n // sentence — and the master's own screen is where they are read and\n // edited. So the cell reports the count and stops.\n return Array.isArray(value)\n ? formatting.rowCount(value.length)\n : String(value);\n case 'localized':\n // The reader's locale, falling back to the host's default; a value\n // that is not a text per locale has no reading worth guessing at.\n return isLocalizedText(value)\n ? (localize(value, formatting.locale) ?? '')\n : '';\n default:\n return String(value);\n }\n}\n\n/** The formatting {@link formatByType} reads, resolved for the reader. */\nfunction useCellFormatting(): (\n descriptor: EntityFieldDescriptor,\n) => CellFormatting {\n const t = useT();\n const formatters = useFormatters();\n const enumLabel = useEnumLabel();\n const locale = useLocale();\n return useCallback(\n descriptor => ({\n formatters,\n yes: t('value.yes'),\n no: t('value.no'),\n enumLabel: raw => enumLabel(descriptor, raw),\n rowCount: count => t('value.rowCount', { count }),\n locale,\n }),\n [enumLabel, formatters, locale, t],\n );\n}\n\n/**\n * A filled-in member's value as one line of text, exactly as its cell reads\n * it — for the places that need words rather than an element: a checkbox's\n * name, a confirm dialog's object, a toast.\n */\nexport function useValueText(): (\n value: unknown,\n descriptor: EntityFieldDescriptor,\n) => string {\n const formatting = useCellFormatting();\n return useCallback(\n (value, descriptor) =>\n formatByType(\n value,\n descriptor.type,\n descriptor.linkLabelProperty,\n formatting(descriptor),\n ),\n [formatting],\n );\n}\n\n/**\n * A reference reads as its target's name, in every state the read can be in\n * ([ADR 0030](../../../../../../../docs/adr/0030-a-reference-names-its-target-through-the-owners-read-port.md)):\n * a skeleton while it resolves (the noun and short id for a screen reader); the name; the entity's noun and the short id,\n * muted, when no record answered or the read failed — never an alert, since a\n * list that loaded has not failed because one name could not be read; and the\n * raw id, muted, when the host registered nothing to read it with.\n */\nfunction ReferenceValue({ entity, id }: { entity: string; id: string }) {\n const state = useReferenceLabel(entity, id);\n const unresolved = useUnresolvedReference();\n const locale = useLocale();\n switch (state.status) {\n case 'resolving':\n // The skeleton is hidden from assistive tech, so the noun and short id\n // stand in for it there: a record's title link is never nameless.\n return (\n <>\n <Skeleton shape=\"line\" className=\"w-16\" />\n <span className=\"sr-only\">{unresolved(entity, id)}</span>\n </>\n );\n case 'named': {\n const { label } = state;\n if (typeof label === 'string') return <span>{label}</span>;\n const text = localize(label, locale);\n return (label[locale] ?? '') === '' ? (\n <span lang={defaultLocale()}>{text}</span>\n ) : (\n <span>{text}</span>\n );\n }\n case 'unregistered':\n return <span className=\"text-content-muted\">{id}</span>;\n default:\n return (\n <span className=\"text-content-muted\">{unresolved(entity, id)}</span>\n );\n }\n}\n\n/**\n * Tabular figures, applied once, here — not on `--font-sans` and not per call\n * site. A column of numbers or dates must align on the digit; a paragraph must\n * not, because proportional figures are what prose is set in. The descriptor\n * already knows which is which, so the cell is the only place that has to.\n */\nconst NUMERIC_CLASS: Partial<Record<MetaAccessorType, string>> = {\n number: 'tabular-nums',\n date: 'tabular-nums',\n};\n\nexport interface CellValueProps {\n value: unknown;\n descriptor: EntityFieldDescriptor;\n /**\n * The record the value belongs to. A money member whose currency is another\n * member of the record (`money.currencyMember`) reads it from here.\n */\n record?: Readonly<Record<string, unknown>>;\n}\n\n/**\n * Renders one entity member according to its metadata type. Centralizing this\n * is what lets a table stay generic: a link, a date and a number all arrive as\n * \"the value of an accessor\", and only the descriptor decides how they read.\n */\nexport function CellValue({ value, descriptor, record }: CellValueProps) {\n const formatting = useCellFormatting();\n const locale = useLocale();\n\n if (value === undefined || value === null || value === '') {\n return <span className=\"text-content-muted\">{EMPTY}</span>;\n }\n\n // A key into another entity reads as that record's name, never as itself.\n if (descriptor.references !== undefined) {\n return (\n <ReferenceValue\n entity={descriptor.references.entity}\n id={String(value)}\n />\n );\n }\n\n // An amount reads as money in the reader's locale, never as the stored\n // number. A draft holds it as a string, so a numeric string counts too. A\n // currency the record does not carry leaves it a plain number rather than\n // guessing one.\n if (descriptor.money !== undefined) {\n const amount = typeof value === 'number' ? value : Number(value);\n const currency = currencyOf(descriptor.money, record);\n if (currency !== undefined && Number.isFinite(amount)) {\n return (\n <Money\n amount={amount}\n currency={currency}\n unit={descriptor.money.unit}\n locale={locale}\n />\n );\n }\n }\n\n // A relation whose target has not arrived yet holds its place with a\n // skeleton — the id is all it has, and the id is not what it means.\n if (\n (value instanceof EntityLink &&\n value.id != null &&\n value.value === undefined) ||\n (value instanceof EntityCollectionLink &&\n value.ids.length > 0 &&\n value.values === undefined)\n ) {\n return <Skeleton shape=\"line\" className=\"w-16\" />;\n }\n\n const text = formatByType(\n value,\n descriptor.type,\n descriptor.linkLabelProperty,\n formatting(descriptor),\n );\n\n if (text === '') {\n return <span className=\"text-content-muted\">{EMPTY}</span>;\n }\n\n // Text the reader's locale lacks falls back to the default locale's, and is\n // marked as that language, so it is read in its own voice (WCAG 3.1.2).\n if (\n descriptor.type === 'localized' &&\n isLocalizedText(value) &&\n (value[locale] ?? '') === ''\n ) {\n return <span lang={defaultLocale()}>{text}</span>;\n }\n\n return (\n <span className={NUMERIC_CLASS[descriptor.type] ?? undefined}>{text}</span>\n );\n}\n"],"names":["defaultLocale","EntityCollectionLink","EntityLink","isLocalizedText","localize","useCallback","useEnumLabel","useFormatters","useLocale","useT","useReferenceLabel","useUnresolvedReference","Money","currencyOf","Skeleton","EMPTY","entityLabel","target","linkLabelProperty","locale","label","undefined","String","formatLink","link","id","value","formatCollectionLink","values","map","join","formatByType","type","formatting","formatters","date","Date","number","yes","no","enumLabel","Array","isArray","rowCount","length","useCellFormatting","t","descriptor","raw","count","useValueText","ReferenceValue","entity","state","unresolved","status","shape","className","span","text","lang","NUMERIC_CLASS","CellValue","record","references","money","amount","Number","currency","isFinite","unit","ids"],"mappings":"AAAA;;AAGA,SACEA,aAAa,EAEbC,oBAAoB,EAEpBC,UAAU,EACVC,eAAe,EACfC,QAAQ,QAEH,gBAAgB;AACvB,SAASC,WAAW,QAAQ,QAAQ;AAEpC,SACEC,YAAY,EACZC,aAAa,EACbC,SAAS,EACTC,IAAI,QACC,yBAAyB;AAChC,SACEC,iBAAiB,EACjBC,sBAAsB,QACjB,kCAAkC;AACzC,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,QAAQ,QAAQ,uBAAuB;AAEhD,+EAA+E,GAC/E,MAAMC,QAAQ;AAEd;;;;CAIC,GACD,SAASC,YACPC,MAA0B,EAC1BC,iBAAyB,EACzBC,MAAc;IAEd,MAAMC,QAASH,0BAAD,AAACA,MAAgD,CAC7DC,kBACD;IACD,IAAIE,SAAS,MAAM,OAAOC;IAC1B,wEAAwE;IACxE,OAAOlB,gBAAgBiB,SAAShB,SAASgB,OAAOD,UAAUG,OAAOF;AACnE;AAEA,SAASG,WACPC,IAAwB,EACxBN,iBAAyB,EACzBC,MAAc;QAITH;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,KAAKL,aACjBK,iBAAiBzB,wBAChByB,MAAM6C,GAAG,CAAC3B,MAAM,GAAG,KACnBlB,MAAME,MAAM,KAAKP,WACnB;QACA,qBAAO,KAACP;YAAS0C,OAAM;YAAOC,WAAU;;IAC1C;IAEA,MAAME,OAAO5B,aACXL,OACAqB,WAAWf,IAAI,EACfe,WAAW7B,iBAAiB,EAC5Be,WAAWc;IAGb,IAAIY,SAAS,IAAI;QACf,qBAAO,KAACD;YAAKD,WAAU;sBAAsB1C;;IAC/C;IAEA,4EAA4E;IAC5E,wEAAwE;IACxE,IACEgC,WAAWf,IAAI,KAAK,eACpB7B,gBAAgBuB,UAChB,EAACA,gBAAAA,KAAK,CAACP,OAAO,YAAbO,gBAAiB,QAAQ,IAC1B;QACA,qBAAO,KAACgC;YAAKE,MAAM5D;sBAAkB2D;;IACvC;IAEA,qBACE,KAACD;QAAKD,SAAS,GAAEI,iCAAAA,aAAa,CAACd,WAAWf,IAAI,CAAC,YAA9B6B,iCAAkCxC;kBAAYsC;;AAEnE"}
1
+ {"version":3,"sources":["../../../../src/ui/atoms/cell-value/cell-value.tsx"],"sourcesContent":["'use client';\n\nimport type { Formatters, Locale } from '@entifix/core';\nimport {\n defaultLocale,\n type Entity,\n EntityCollectionLink,\n type EntityFieldDescriptor,\n EntityLink,\n isLocalizedText,\n localize,\n type MetaAccessorType,\n} from '@entifix/core';\nimport { useCallback } from 'react';\n\nimport {\n useEnumLabel,\n useFormatters,\n useLocale,\n useT,\n} from '../../../i18n/index.js';\nimport {\n useReferenceLabel,\n useUnresolvedReference,\n} from '../../utils/reference-labels.js';\nimport { Money } from '../money/money.js';\nimport { currencyOf } from '../money/money-math.js';\nimport { Skeleton } from '../skeleton/index.js';\nimport { StatusTag } from '../status-tag/index.js';\n\n/** Stand-in for an absent value, so an empty cell still reads as intentional. */\nconst EMPTY = '—';\n\n/**\n * A link reads as its target's label once the target is loaded (embedded or\n * resolved). Never as its id: a key is not a name, and showing one fails the\n * reader who came to see which record it is (#200).\n */\nfunction entityLabel(\n target: Entity | undefined,\n linkLabelProperty: string,\n locale: Locale,\n): string | undefined {\n const label = (target as Record<string, unknown> | undefined)?.[\n linkLabelProperty\n ];\n if (label == null) return undefined;\n // A target labelled by a localized member reads in the reader's locale.\n return isLocalizedText(label) ? localize(label, locale) : String(label);\n}\n\nfunction formatLink(\n link: EntityLink<Entity>,\n linkLabelProperty: string,\n locale: Locale,\n): string {\n return link.id == null\n ? EMPTY\n : (entityLabel(link.value, linkLabelProperty, locale) ?? EMPTY);\n}\n\nfunction formatCollectionLink(\n link: EntityCollectionLink<Entity>,\n linkLabelProperty: string,\n locale: Locale,\n): string {\n return (link.values ?? [])\n .map(target => entityLabel(target, linkLabelProperty, locale) ?? EMPTY)\n .join(', ');\n}\n\n/**\n * Everything locale-dependent, resolved once by the component and handed down.\n * The formatters carry an explicit locale, which is what keeps a date rendered\n * on the server byte-identical to the same date rendered in the browser.\n */\ninterface CellFormatting {\n readonly formatters: Formatters;\n readonly yes: string;\n readonly no: string;\n readonly enumLabel: (value: string) => string;\n readonly rowCount: (count: number) => string;\n readonly locale: Locale;\n}\n\nfunction formatByType(\n value: unknown,\n type: MetaAccessorType,\n linkLabelProperty: string,\n formatting: CellFormatting,\n): string {\n switch (type) {\n case 'date':\n return formatting.formatters.date(\n value instanceof Date ? value : String(value),\n );\n case 'number':\n return typeof value === 'number'\n ? formatting.formatters.number(value)\n : String(value);\n case 'boolean':\n return value ? formatting.yes : formatting.no;\n case 'enum':\n return formatting.enumLabel(String(value));\n case 'link':\n return value instanceof EntityLink\n ? formatLink(value, linkLabelProperty, formatting.locale)\n : String(value);\n case 'linkCollection':\n return value instanceof EntityCollectionLink\n ? formatCollectionLink(value, linkLabelProperty, formatting.locale)\n : String(value);\n case 'scalarCollection':\n // The same comma list the draft holds, spaced for reading. Not `String`:\n // an array's own `toString` joins on a bare comma, which reads as one\n // run-on token in a narrow column.\n return Array.isArray(value) ? value.join(', ') : String(value);\n case 'composition':\n // Owned rows have no useful one-line form — a receipt's lines are not a\n // sentence — and the master's own screen is where they are read and\n // edited. So the cell reports the count and stops.\n return Array.isArray(value)\n ? formatting.rowCount(value.length)\n : String(value);\n case 'localized':\n // The reader's locale, falling back to the host's default; a value\n // that is not a text per locale has no reading worth guessing at.\n return isLocalizedText(value)\n ? (localize(value, formatting.locale) ?? '')\n : '';\n default:\n return String(value);\n }\n}\n\n/** The formatting {@link formatByType} reads, resolved for the reader. */\nfunction useCellFormatting(): (\n descriptor: EntityFieldDescriptor,\n) => CellFormatting {\n const t = useT();\n const formatters = useFormatters();\n const enumLabel = useEnumLabel();\n const locale = useLocale();\n return useCallback(\n descriptor => ({\n formatters,\n yes: t('value.yes'),\n no: t('value.no'),\n enumLabel: raw => enumLabel(descriptor, raw),\n rowCount: count => t('value.rowCount', { count }),\n locale,\n }),\n [enumLabel, formatters, locale, t],\n );\n}\n\n/**\n * A filled-in member's value as one line of text, exactly as its cell reads\n * it — for the places that need words rather than an element: a checkbox's\n * name, a confirm dialog's object, a toast.\n */\nexport function useValueText(): (\n value: unknown,\n descriptor: EntityFieldDescriptor,\n) => string {\n const formatting = useCellFormatting();\n return useCallback(\n (value, descriptor) =>\n formatByType(\n value,\n descriptor.type,\n descriptor.linkLabelProperty,\n formatting(descriptor),\n ),\n [formatting],\n );\n}\n\n/**\n * A reference reads as its target's name, in every state the read can be in\n * ([ADR 0030](../../../../../../../docs/adr/0030-a-reference-names-its-target-through-the-owners-read-port.md)):\n * a skeleton while it resolves (the noun and short id for a screen reader); the name; the entity's noun and the short id,\n * muted, when no record answered or the read failed — never an alert, since a\n * list that loaded has not failed because one name could not be read; and the\n * raw id, muted, when the host registered nothing to read it with.\n */\nfunction ReferenceValue({ entity, id }: { entity: string; id: string }) {\n const state = useReferenceLabel(entity, id);\n const unresolved = useUnresolvedReference();\n const locale = useLocale();\n switch (state.status) {\n case 'resolving':\n // The skeleton is hidden from assistive tech, so the noun and short id\n // stand in for it there: a record's title link is never nameless.\n return (\n <>\n <Skeleton shape=\"line\" className=\"w-16\" />\n <span className=\"sr-only\">{unresolved(entity, id)}</span>\n </>\n );\n case 'named': {\n const { label } = state;\n if (typeof label === 'string') return <span>{label}</span>;\n const text = localize(label, locale);\n return (label[locale] ?? '') === '' ? (\n <span lang={defaultLocale()}>{text}</span>\n ) : (\n <span>{text}</span>\n );\n }\n case 'unregistered':\n return <span className=\"text-content-muted\">{id}</span>;\n default:\n return (\n <span className=\"text-content-muted\">{unresolved(entity, id)}</span>\n );\n }\n}\n\n/**\n * Tabular figures, applied once, here — not on `--font-sans` and not per call\n * site. A column of numbers or dates must align on the digit; a paragraph must\n * not, because proportional figures are what prose is set in. The descriptor\n * already knows which is which, so the cell is the only place that has to.\n */\nconst NUMERIC_CLASS: Partial<Record<MetaAccessorType, string>> = {\n number: 'tabular-nums',\n date: 'tabular-nums',\n};\n\nexport interface CellValueProps {\n value: unknown;\n descriptor: EntityFieldDescriptor;\n /**\n * The record the value belongs to. A money member whose currency is another\n * member of the record (`money.currencyMember`) reads it from here.\n */\n record?: Readonly<Record<string, unknown>>;\n}\n\n/**\n * Renders one entity member according to its metadata type. Centralizing this\n * is what lets a table stay generic: a link, a date and a number all arrive as\n * \"the value of an accessor\", and only the descriptor decides how they read.\n */\nexport function CellValue({ value, descriptor, record }: CellValueProps) {\n const formatting = useCellFormatting();\n const locale = useLocale();\n\n if (value === undefined || value === null || value === '') {\n return <span className=\"text-content-muted\">{EMPTY}</span>;\n }\n\n // A key into another entity reads as that record's name, never as itself.\n if (descriptor.references !== undefined) {\n return (\n <ReferenceValue\n entity={descriptor.references.entity}\n id={String(value)}\n />\n );\n }\n\n // An amount reads as money in the reader's locale, never as the stored\n // number. A draft holds it as a string, so a numeric string counts too. A\n // currency the record does not carry leaves it a plain number rather than\n // guessing one.\n if (descriptor.money !== undefined) {\n const amount = typeof value === 'number' ? value : Number(value);\n const currency = currencyOf(descriptor.money, record);\n if (currency !== undefined && Number.isFinite(amount)) {\n return (\n <Money\n amount={amount}\n currency={currency}\n unit={descriptor.money.unit}\n locale={locale}\n />\n );\n }\n }\n\n // A relation whose target has not arrived yet holds its place with a\n // skeleton — the id is all it has, and the id is not what it means.\n if (\n (value instanceof EntityLink &&\n value.id != null &&\n value.value === undefined) ||\n (value instanceof EntityCollectionLink &&\n value.ids.length > 0 &&\n value.values === undefined)\n ) {\n return <Skeleton shape=\"line\" className=\"w-16\" />;\n }\n\n const text = formatByType(\n value,\n descriptor.type,\n descriptor.linkLabelProperty,\n formatting(descriptor),\n );\n\n if (text === '') {\n return <span className=\"text-content-muted\">{EMPTY}</span>;\n }\n\n // A status reads as a tag in its declared tone, its words beside the\n // colour; a value given no tone reads neutral. An enum that declared no\n // tones is not a status, and stays text.\n if (descriptor.type === 'enum' && descriptor.enumTones !== undefined) {\n return (\n <StatusTag tone={descriptor.enumTones[String(value)] ?? 'neutral'}>\n {text}\n </StatusTag>\n );\n }\n\n // Text the reader's locale lacks falls back to the default locale's, and is\n // marked as that language, so it is read in its own voice (WCAG 3.1.2).\n if (\n descriptor.type === 'localized' &&\n isLocalizedText(value) &&\n (value[locale] ?? '') === ''\n ) {\n return <span lang={defaultLocale()}>{text}</span>;\n }\n\n return (\n <span className={NUMERIC_CLASS[descriptor.type] ?? undefined}>{text}</span>\n );\n}\n"],"names":["defaultLocale","EntityCollectionLink","EntityLink","isLocalizedText","localize","useCallback","useEnumLabel","useFormatters","useLocale","useT","useReferenceLabel","useUnresolvedReference","Money","currencyOf","Skeleton","StatusTag","EMPTY","entityLabel","target","linkLabelProperty","locale","label","undefined","String","formatLink","link","id","value","formatCollectionLink","values","map","join","formatByType","type","formatting","formatters","date","Date","number","yes","no","enumLabel","Array","isArray","rowCount","length","useCellFormatting","t","descriptor","raw","count","useValueText","ReferenceValue","entity","state","unresolved","status","shape","className","span","text","lang","NUMERIC_CLASS","CellValue","record","references","money","amount","Number","currency","isFinite","unit","ids","enumTones","tone"],"mappings":"AAAA;;AAGA,SACEA,aAAa,EAEbC,oBAAoB,EAE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IAGP;IAEA,4EAA4E;IAC5E,wEAAwE;IACxE,IACEZ,WAAWf,IAAI,KAAK,eACpB9B,gBAAgBwB,UAChB,EAACA,gBAAAA,KAAK,CAACP,OAAO,YAAbO,gBAAiB,QAAQ,IAC1B;QACA,qBAAO,KAACgC;YAAKE,MAAM7D;sBAAkB4D;;IACvC;IAEA,qBACE,KAACD;QAAKD,SAAS,GAAEI,iCAAAA,aAAa,CAACd,WAAWf,IAAI,CAAC,YAA9B6B,iCAAkCxC;kBAAYsC;;AAEnE"}
@@ -0,0 +1,2 @@
1
+ export * from './media-image.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/media-image/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './media-image.js';
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/ui/atoms/media-image/index.ts"],"sourcesContent":["export * from './media-image.js';\n"],"names":[],"mappings":"AAAA,cAAc,mBAAmB"}
@@ -0,0 +1,46 @@
1
+ import type { ComponentPropsWithoutRef } from 'react';
2
+ /**
3
+ * The widths a {@link MediaImageLoader} is asked for, narrow to wide. A fixed
4
+ * ladder rather than one per caller: every image on a host is cut at the same
5
+ * few sizes, which is what lets a resizing service cache them.
6
+ */
7
+ export declare const MEDIA_IMAGE_WIDTHS: readonly [320, 480, 640, 960, 1280, 1920];
8
+ /**
9
+ * The URL of `src` resized to `width` pixels wide. Supplied by the host, which
10
+ * knows which service, if any, can resize its images; without one, an image
11
+ * is served as it is.
12
+ */
13
+ export type MediaImageLoader = (src: string, width: number) => string;
14
+ export interface MediaImageProps extends Omit<ComponentPropsWithoutRef<'img'>, 'src' | 'alt' | 'width' | 'height' | 'sizes' | 'srcSet' | 'loading' | 'decoding' | 'fetchPriority'> {
15
+ src: string;
16
+ /** What the image shows. Empty only for an image that adds nothing to the text beside it. */
17
+ alt: string;
18
+ /** Intrinsic width in pixels, when known. */
19
+ width?: number;
20
+ /** Intrinsic height in pixels, when known. */
21
+ height?: number;
22
+ /**
23
+ * Width over height of the box the image is shown in. The box is reserved
24
+ * before the image arrives, so nothing below it moves when it does.
25
+ * Defaults to `1`, a square.
26
+ */
27
+ aspectRatio?: number;
28
+ /** How wide the image is shown at, as a `sizes` attribute (`(min-width: 48rem) 50vw, 100vw`). */
29
+ sizes: string;
30
+ /**
31
+ * The image is the first thing a reader sees: fetched first and at once,
32
+ * never lazily. One per page at most.
33
+ */
34
+ priority?: boolean;
35
+ /** Resizes `src` per width; given, the image offers one candidate per {@link MEDIA_IMAGE_WIDTHS}. */
36
+ loader?: MediaImageLoader;
37
+ }
38
+ /**
39
+ * One image, sized for where it is shown. Its box is reserved by aspect
40
+ * ratio, so a late image shifts nothing; it is fetched lazily unless it is the
41
+ * `priority` one; and with a host `loader` it offers a `srcset` the browser
42
+ * picks the smallest fitting candidate from. Without a loader there is nothing
43
+ * to choose between, and no `srcset` is written. Server-safe.
44
+ */
45
+ export declare function MediaImage({ src, alt, width, height, aspectRatio, sizes, priority, loader, className, style, ...props }: MediaImageProps): import("react").JSX.Element;
46
+ //# sourceMappingURL=media-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-image.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/media-image/media-image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAItD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,2CAA4C,CAAC;AAE5E;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;AAEtE,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,wBAAwB,CAAC,KAAK,CAAC,EAC7B,KAAK,GACL,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,SAAS,GACT,UAAU,GACV,eAAe,CAClB;IACC,GAAG,EAAE,MAAM,CAAC;IACZ,6FAA6F;IAC7F,GAAG,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iGAAiG;IACjG,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qGAAqG;IACrG,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EACzB,GAAG,EACH,GAAG,EACH,KAAK,EACL,MAAM,EACN,WAAe,EACf,KAAK,EACL,QAAgB,EAChB,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,eAAe,+BAqBjB"}
@@ -0,0 +1,57 @@
1
+ import { _ as _extends } from "@swc/helpers/_/_extends";
2
+ import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { cn } from '../../utils/cn.js';
5
+ /**
6
+ * The widths a {@link MediaImageLoader} is asked for, narrow to wide. A fixed
7
+ * ladder rather than one per caller: every image on a host is cut at the same
8
+ * few sizes, which is what lets a resizing service cache them.
9
+ */ export const MEDIA_IMAGE_WIDTHS = [
10
+ 320,
11
+ 480,
12
+ 640,
13
+ 960,
14
+ 1280,
15
+ 1920
16
+ ];
17
+ /**
18
+ * One image, sized for where it is shown. Its box is reserved by aspect
19
+ * ratio, so a late image shifts nothing; it is fetched lazily unless it is the
20
+ * `priority` one; and with a host `loader` it offers a `srcset` the browser
21
+ * picks the smallest fitting candidate from. Without a loader there is nothing
22
+ * to choose between, and no `srcset` is written. Server-safe.
23
+ */ export function MediaImage(_0) {
24
+ let { src, alt, width, height, aspectRatio = 1, sizes, priority = false, loader, className, style } = _0, props = _object_without_properties_loose(_0, [
25
+ "src",
26
+ "alt",
27
+ "width",
28
+ "height",
29
+ "aspectRatio",
30
+ "sizes",
31
+ "priority",
32
+ "loader",
33
+ "className",
34
+ "style"
35
+ ]);
36
+ const srcSet = loader === undefined ? undefined : MEDIA_IMAGE_WIDTHS.map((w)=>`${loader(src, w)} ${w}w`).join(', ');
37
+ return /*#__PURE__*/ _jsx("img", _extends({
38
+ src: src,
39
+ alt: alt,
40
+ width: width,
41
+ height: height,
42
+ sizes: sizes,
43
+ srcSet: srcSet
44
+ }, priority ? {
45
+ fetchPriority: 'high'
46
+ } : {
47
+ loading: 'lazy',
48
+ decoding: 'async'
49
+ }, {
50
+ className: cn('block h-auto w-full object-contain', className),
51
+ style: _extends({
52
+ aspectRatio
53
+ }, style)
54
+ }, props));
55
+ }
56
+
57
+ //# sourceMappingURL=media-image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/ui/atoms/media-image/media-image.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef } from 'react';\n\nimport { cn } from '../../utils/cn.js';\n\n/**\n * The widths a {@link MediaImageLoader} is asked for, narrow to wide. A fixed\n * ladder rather than one per caller: every image on a host is cut at the same\n * few sizes, which is what lets a resizing service cache them.\n */\nexport const MEDIA_IMAGE_WIDTHS = [320, 480, 640, 960, 1280, 1920] as const;\n\n/**\n * The URL of `src` resized to `width` pixels wide. Supplied by the host, which\n * knows which service, if any, can resize its images; without one, an image\n * is served as it is.\n */\nexport type MediaImageLoader = (src: string, width: number) => string;\n\nexport interface MediaImageProps extends Omit<\n ComponentPropsWithoutRef<'img'>,\n | 'src'\n | 'alt'\n | 'width'\n | 'height'\n | 'sizes'\n | 'srcSet'\n | 'loading'\n | 'decoding'\n | 'fetchPriority'\n> {\n src: string;\n /** What the image shows. Empty only for an image that adds nothing to the text beside it. */\n alt: string;\n /** Intrinsic width in pixels, when known. */\n width?: number;\n /** Intrinsic height in pixels, when known. */\n height?: number;\n /**\n * Width over height of the box the image is shown in. The box is reserved\n * before the image arrives, so nothing below it moves when it does.\n * Defaults to `1`, a square.\n */\n aspectRatio?: number;\n /** How wide the image is shown at, as a `sizes` attribute (`(min-width: 48rem) 50vw, 100vw`). */\n sizes: string;\n /**\n * The image is the first thing a reader sees: fetched first and at once,\n * never lazily. One per page at most.\n */\n priority?: boolean;\n /** Resizes `src` per width; given, the image offers one candidate per {@link MEDIA_IMAGE_WIDTHS}. */\n loader?: MediaImageLoader;\n}\n\n/**\n * One image, sized for where it is shown. Its box is reserved by aspect\n * ratio, so a late image shifts nothing; it is fetched lazily unless it is the\n * `priority` one; and with a host `loader` it offers a `srcset` the browser\n * picks the smallest fitting candidate from. Without a loader there is nothing\n * to choose between, and no `srcset` is written. Server-safe.\n */\nexport function MediaImage({\n src,\n alt,\n width,\n height,\n aspectRatio = 1,\n sizes,\n priority = false,\n loader,\n className,\n style,\n ...props\n}: MediaImageProps) {\n const srcSet =\n loader === undefined\n ? undefined\n : MEDIA_IMAGE_WIDTHS.map(w => `${loader(src, w)} ${w}w`).join(', ');\n return (\n <img\n src={src}\n alt={alt}\n width={width}\n height={height}\n sizes={sizes}\n srcSet={srcSet}\n {...(priority\n ? { fetchPriority: 'high' as const }\n : { loading: 'lazy' as const, decoding: 'async' as const })}\n className={cn('block h-auto w-full object-contain', className)}\n style={{ aspectRatio, ...style }}\n {...props}\n />\n );\n}\n"],"names":["cn","MEDIA_IMAGE_WIDTHS","MediaImage","src","alt","width","height","aspectRatio","sizes","priority","loader","className","style","props","srcSet","undefined","map","w","join","img","fetchPriority","loading","decoding"],"mappings":";;;AAEA,SAASA,EAAE,QAAQ,oBAAoB;AAEvC;;;;CAIC,GACD,OAAO,MAAMC,qBAAqB;IAAC;IAAK;IAAK;IAAK;IAAK;IAAM;CAAK,CAAU;AA6C5E;;;;;;CAMC,GACD,OAAO,SAASC,WAAW,EAYT;QAZS,EACzBC,GAAG,EACHC,GAAG,EACHC,KAAK,EACLC,MAAM,EACNC,cAAc,CAAC,EACfC,KAAK,EACLC,WAAW,KAAK,EAChBC,MAAM,EACNC,SAAS,EACTC,KAAK,EAEW,OADbC;;;;;;;;;;;;IAEH,MAAMC,SACJJ,WAAWK,YACPA,YACAd,mBAAmBe,GAAG,CAACC,CAAAA,IAAK,GAAGP,OAAOP,KAAKc,GAAG,CAAC,EAAEA,EAAE,CAAC,CAAC,EAAEC,IAAI,CAAC;IAClE,qBACE,KAACC;QACChB,KAAKA;QACLC,KAAKA;QACLC,OAAOA;QACPC,QAAQA;QACRE,OAAOA;QACPM,QAAQA;OACHL,WACD;QAAEW,eAAe;IAAgB,IACjC;QAAEC,SAAS;QAAiBC,UAAU;IAAiB;QAC3DX,WAAWX,GAAG,sCAAsCW;QACpDC,OAAO;YAAEL;WAAgBK;OACrBC;AAGV"}
@@ -1,6 +1,10 @@
1
+ import type { EnumTone } from '@entifix/core';
1
2
  import type { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { type Tone } from '../alert/tone.js';
3
- export type StatusTagTone = Tone | 'neutral';
3
+ /**
4
+ * The tones a status reads in. One vocabulary with core's {@link EnumTone},
5
+ * so an enum member's declared `enumTones` render here unmapped.
6
+ */
7
+ export type StatusTagTone = EnumTone;
4
8
  export interface StatusTagProps extends Omit<ComponentPropsWithoutRef<'span'>, 'children'> {
5
9
  tone: StatusTagTone;
6
10
  /** The status in words. Required and non-empty: colour is never the only carrier (WCAG 1.4.1). */
@@ -1 +1 @@
1
- {"version":3,"file":"status-tag.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/status-tag/status-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjE,OAAO,EAAE,KAAK,IAAI,EAAgB,MAAM,kBAAkB,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC;AAO7C,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,wBAAwB,CAAC,MAAM,CAAC,EAChC,UAAU,CACX;IACC,IAAI,EAAE,aAAa,CAAC;IACpB,kGAAkG;IAClG,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,+BAoBhB"}
1
+ {"version":3,"file":"status-tag.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/status-tag/status-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKjE;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;AAOrC,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,wBAAwB,CAAC,MAAM,CAAC,EAChC,UAAU,CACX;IACC,IAAI,EAAE,aAAa,CAAC;IACpB,kGAAkG;IAClG,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,+BAoBhB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/ui/atoms/status-tag/status-tag.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react';\n\nimport { cn } from '../../utils/cn.js';\nimport { type Tone, TONE_SURFACE } from '../alert/tone.js';\n\nexport type StatusTagTone = Tone | 'neutral';\n\nconst TONE_CLASS: Record<StatusTagTone, string> = {\n ...TONE_SURFACE,\n neutral: 'border-border bg-surface text-content-muted',\n};\n\nexport interface StatusTagProps extends Omit<\n ComponentPropsWithoutRef<'span'>,\n 'children'\n> {\n tone: StatusTagTone;\n /** The status in words. Required and non-empty: colour is never the only carrier (WCAG 1.4.1). */\n children: string;\n /** A glyph before the words; decorative, so hidden from assistive technology. */\n icon?: ReactNode;\n}\n\n/**\n * A record's status as a small tag: a tone and the words for it. The words are\n * mandatory, and an empty string throws rather than rendering a coloured dot\n * that means something only to people who can see the colour. Server-safe.\n */\nexport function StatusTag({\n tone,\n icon,\n className,\n children,\n ...props\n}: StatusTagProps) {\n if (children.trim() === '') {\n throw new Error(\n 'StatusTag needs its status in words: colour alone carries nothing for someone who cannot see it.',\n );\n }\n return (\n <span\n data-tone={tone}\n className={cn(\n 'inline-flex items-center gap-3xs rounded-full border px-2xs text-step-xs font-medium whitespace-nowrap',\n TONE_CLASS[tone],\n className,\n )}\n {...props}\n >\n {icon !== undefined && <span aria-hidden=\"true\">{icon}</span>}\n {children}\n </span>\n );\n}\n"],"names":["cn","TONE_SURFACE","TONE_CLASS","neutral","StatusTag","tone","icon","className","children","props","trim","Error","span","data-tone","undefined","aria-hidden"],"mappings":";;;AAEA,SAASA,EAAE,QAAQ,oBAAoB;AACvC,SAAoBC,YAAY,QAAQ,mBAAmB;AAI3D,MAAMC,aAA4C,aAC7CD;IACHE,SAAS;;AAcX;;;;CAIC,GACD,OAAO,SAASC,UAAU,EAMT;QANS,EACxBC,IAAI,EACJC,IAAI,EACJC,SAAS,EACTC,QAAQ,EAEO,OADZC;;;;;;IAEH,IAAID,SAASE,IAAI,OAAO,IAAI;QAC1B,MAAM,IAAIC,MACR;IAEJ;IACA,qBACE,MAACC;QACCC,aAAWR;QACXE,WAAWP,GACT,0GACAE,UAAU,CAACG,KAAK,EAChBE;OAEEE;;YAEHH,SAASQ,2BAAa,KAACF;gBAAKG,eAAY;0BAAQT;;YAChDE;;;AAGP"}
1
+ {"version":3,"sources":["../../../../src/ui/atoms/status-tag/status-tag.tsx"],"sourcesContent":["import type { EnumTone } from '@entifix/core';\nimport type { ComponentPropsWithoutRef, ReactNode } from 'react';\n\nimport { cn } from '../../utils/cn.js';\nimport { TONE_SURFACE } from '../alert/tone.js';\n\n/**\n * The tones a status reads in. One vocabulary with core's {@link EnumTone},\n * so an enum member's declared `enumTones` render here unmapped.\n */\nexport type StatusTagTone = EnumTone;\n\nconst TONE_CLASS: Record<StatusTagTone, string> = {\n ...TONE_SURFACE,\n neutral: 'border-border bg-surface text-content-muted',\n};\n\nexport interface StatusTagProps extends Omit<\n ComponentPropsWithoutRef<'span'>,\n 'children'\n> {\n tone: StatusTagTone;\n /** The status in words. Required and non-empty: colour is never the only carrier (WCAG 1.4.1). */\n children: string;\n /** A glyph before the words; decorative, so hidden from assistive technology. */\n icon?: ReactNode;\n}\n\n/**\n * A record's status as a small tag: a tone and the words for it. The words are\n * mandatory, and an empty string throws rather than rendering a coloured dot\n * that means something only to people who can see the colour. Server-safe.\n */\nexport function StatusTag({\n tone,\n icon,\n className,\n children,\n ...props\n}: StatusTagProps) {\n if (children.trim() === '') {\n throw new Error(\n 'StatusTag needs its status in words: colour alone carries nothing for someone who cannot see it.',\n );\n }\n return (\n <span\n data-tone={tone}\n className={cn(\n 'inline-flex items-center gap-3xs rounded-full border px-2xs text-step-xs font-medium whitespace-nowrap',\n TONE_CLASS[tone],\n className,\n )}\n {...props}\n >\n {icon !== undefined && <span aria-hidden=\"true\">{icon}</span>}\n {children}\n </span>\n );\n}\n"],"names":["cn","TONE_SURFACE","TONE_CLASS","neutral","StatusTag","tone","icon","className","children","props","trim","Error","span","data-tone","undefined","aria-hidden"],"mappings":";;;AAGA,SAASA,EAAE,QAAQ,oBAAoB;AACvC,SAASC,YAAY,QAAQ,mBAAmB;AAQhD,MAAMC,aAA4C,aAC7CD;IACHE,SAAS;;AAcX;;;;CAIC,GACD,OAAO,SAASC,UAAU,EAMT;QANS,EACxBC,IAAI,EACJC,IAAI,EACJC,SAAS,EACTC,QAAQ,EAEO,OADZC;;;;;;IAEH,IAAID,SAASE,IAAI,OAAO,IAAI;QAC1B,MAAM,IAAIC,MACR;IAEJ;IACA,qBACE,MAACC;QACCC,aAAWR;QACXE,WAAWP,GACT,0GACAE,UAAU,CAACG,KAAK,EAChBE;OAEEE;;YAEHH,SAASQ,2BAAa,KAACF;gBAAKG,eAAY;0BAAQT;;YAChDE;;;AAGP"}
@@ -1,10 +1,24 @@
1
1
  import type { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import { type MediaImageLoader } from '../../atoms/media-image/index.js';
2
3
  export interface MediaGalleryItem {
3
4
  /** Unique within the gallery; the slide's element id is derived from it. */
4
5
  readonly id: string;
5
6
  readonly src: string;
6
7
  /** What the image shows. Empty only for an image that adds nothing to the text beside it. */
7
8
  readonly alt: string;
9
+ /** Intrinsic width in pixels, when known. */
10
+ readonly width?: number;
11
+ /** Intrinsic height in pixels, when known. */
12
+ readonly height?: number;
13
+ }
14
+ /** What the gallery decided for one slide, handed to a host's own renderer. */
15
+ export interface MediaGallerySlide {
16
+ /** The slide's position, from 0. */
17
+ readonly index: number;
18
+ /** The first slide is fetched first and at once; every other one lazily. */
19
+ readonly priority: boolean;
20
+ /** The `sizes` the slide is shown at. */
21
+ readonly sizes: string;
8
22
  }
9
23
  export interface MediaGalleryLabels {
10
24
  /** The gallery's name — usually the product's. */
@@ -17,8 +31,21 @@ export interface MediaGalleryLabels {
17
31
  export interface MediaGalleryProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
18
32
  items: readonly MediaGalleryItem[];
19
33
  labels: MediaGalleryLabels;
20
- /** Renders one image; a plain `<img>` when omitted (a Next host passes `next/image`). */
21
- renderMedia?: (item: MediaGalleryItem) => ReactNode;
34
+ /**
35
+ * How wide a slide is shown at, as a `sizes` attribute. Defaults to the full
36
+ * viewport width, which is right only when the gallery is.
37
+ */
38
+ sizes?: string;
39
+ /** Width over height of every slide's box. Defaults to `1`, a square. */
40
+ aspectRatio?: number;
41
+ /** Resizes a slide's image per width, so the browser can fetch a smaller one. */
42
+ loader?: MediaImageLoader;
43
+ /**
44
+ * Renders one image; a {@link MediaImage} when omitted. A host rendering its
45
+ * own sized image receives the gallery's decisions for the slide, and the
46
+ * slide's box stays reserved around whatever it returns.
47
+ */
48
+ renderMedia?: (item: MediaGalleryItem, slide: MediaGallerySlide) => ReactNode;
22
49
  }
23
50
  /**
24
51
  * Product media as a horizontal scroller that works with scripting off and
@@ -27,5 +54,5 @@ export interface MediaGalleryProps extends Omit<ComponentPropsWithoutRef<'div'>,
27
54
  * a figure with its position, and its previous and next links jump to the
28
55
  * neighbouring slide's id, which the browser scrolls into view. Server-safe.
29
56
  */
30
- export declare function MediaGallery({ items, labels, renderMedia, className, ...props }: MediaGalleryProps): import("react").JSX.Element;
57
+ export declare function MediaGallery({ items, labels, sizes, aspectRatio, loader, renderMedia, className, ...props }: MediaGalleryProps): import("react").JSX.Element;
31
58
  //# sourceMappingURL=media-gallery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media-gallery.d.ts","sourceRoot":"","sources":["../../../../src/ui/molecules/media-gallery/media-gallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjE,MAAM,WAAW,gBAAgB;IAC/B,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,6FAA6F;IAC7F,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC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ACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC7D;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAC7C,wBAAwB,CAAC,KAAK,CAAC,EAC/B,UAAU,CACX;IACC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnC,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iFAAiF;IACjF,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,iBAAiB,KAAK,SAAS,CAAC;CAC/E;AAOD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,MAAM,EACN,KAAe,EACf,WAAe,EACf,MAAM,EACN,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iBAAiB,+BAuEnB"}
@@ -1,6 +1,7 @@
1
1
  import { _ as _extends } from "@swc/helpers/_/_extends";
2
2
  import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
3
3
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ import { MediaImage } from '../../atoms/media-image/index.js';
4
5
  import { cn } from '../../utils/cn.js';
5
6
  const slideId = (item)=>`media-${item.id}`;
6
7
  const STEP = 'flex min-h-(--target-min) items-center rounded-md px-2xs text-step-sm text-content focus-ring hover:underline';
@@ -11,13 +12,12 @@ const STEP = 'flex min-h-(--target-min) items-center rounded-md px-2xs text-step
11
12
  * a figure with its position, and its previous and next links jump to the
12
13
  * neighbouring slide's id, which the browser scrolls into view. Server-safe.
13
14
  */ export function MediaGallery(_0) {
14
- let { items, labels, renderMedia = (item)=>/*#__PURE__*/ _jsx("img", {
15
- src: item.src,
16
- alt: item.alt,
17
- className: "h-auto w-full object-contain"
18
- }), className } = _0, props = _object_without_properties_loose(_0, [
15
+ let { items, labels, sizes = '100vw', aspectRatio = 1, loader, renderMedia, className } = _0, props = _object_without_properties_loose(_0, [
19
16
  "items",
20
17
  "labels",
18
+ "sizes",
19
+ "aspectRatio",
20
+ "loader",
21
21
  "renderMedia",
22
22
  "className"
23
23
  ]);
@@ -32,11 +32,31 @@ const STEP = 'flex min-h-(--target-min) items-center rounded-md px-2xs text-step
32
32
  children: items.map((item, index)=>{
33
33
  const previous = items[index - 1];
34
34
  const next = items[index + 1];
35
+ const slide = {
36
+ index,
37
+ priority: index === 0,
38
+ sizes
39
+ };
35
40
  return /*#__PURE__*/ _jsxs("figure", {
36
41
  id: slideId(item),
37
42
  className: "m-0 flex w-full shrink-0 snap-center flex-col gap-2xs",
38
43
  children: [
39
- renderMedia(item),
44
+ /*#__PURE__*/ _jsx("div", {
45
+ className: "flex w-full items-center justify-center overflow-hidden",
46
+ style: {
47
+ aspectRatio
48
+ },
49
+ children: renderMedia === undefined ? /*#__PURE__*/ _jsx(MediaImage, {
50
+ src: item.src,
51
+ alt: item.alt,
52
+ width: item.width,
53
+ height: item.height,
54
+ aspectRatio: aspectRatio,
55
+ sizes: sizes,
56
+ priority: slide.priority,
57
+ loader: loader
58
+ }) : renderMedia(item, slide)
59
+ }),
40
60
  /*#__PURE__*/ _jsxs("figcaption", {
41
61
  className: "flex items-center justify-between gap-s text-step-xs text-content-muted",
42
62
  children: [
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/ui/molecules/media-gallery/media-gallery.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react';\n\nimport { cn } from '../../utils/cn.js';\n\nexport interface MediaGalleryItem {\n /** Unique within the gallery; the slide's element id is derived from it. */\n readonly id: string;\n readonly src: string;\n /** What the image shows. Empty only for an image that adds nothing to the text beside it. */\n readonly alt: string;\n}\n\nexport interface MediaGalleryLabels {\n /** The gallery's name — usually the product's. */\n readonly region: string;\n readonly previous: string;\n readonly next: string;\n /** A slide's position, e.g. `2 of 5`. */\n readonly position: (index: number, total: number) => string;\n}\n\nexport interface MediaGalleryProps extends Omit<\n ComponentPropsWithoutRef<'div'>,\n 'children'\n> {\n items: readonly MediaGalleryItem[];\n labels: MediaGalleryLabels;\n /** Renders one image; a plain `<img>` when omitted (a Next host passes `next/image`). */\n renderMedia?: (item: MediaGalleryItem) => ReactNode;\n}\n\nconst slideId = (item: MediaGalleryItem) => `media-${item.id}`;\n\nconst STEP =\n 'flex min-h-(--target-min) items-center rounded-md px-2xs text-step-sm text-content focus-ring hover:underline';\n\n/**\n * Product media as a horizontal scroller that works with scripting off and\n * with a keyboard. The scroller is a named region and a Tab stop, so arrow\n * keys scroll it (WCAG 2.1.1, axe `scrollable-region-focusable`); each slide is\n * a figure with its position, and its previous and next links jump to the\n * neighbouring slide's id, which the browser scrolls into view. Server-safe.\n */\nexport function MediaGallery({\n items,\n labels,\n renderMedia = item => (\n <img\n src={item.src}\n alt={item.alt}\n className=\"h-auto w-full object-contain\"\n />\n ),\n className,\n ...props\n}: MediaGalleryProps) {\n return (\n <div\n role=\"region\"\n aria-label={labels.region}\n // A scroller must take focus to be scrolled from the keyboard.\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n className={cn(\n 'flex snap-x snap-mandatory gap-s overflow-x-auto scroll-smooth rounded-lg focus-ring motion-reduce:scroll-auto',\n className,\n )}\n {...props}\n >\n {items.map((item, index) => {\n const previous = items[index - 1];\n const next = items[index + 1];\n return (\n <figure\n key={item.id}\n id={slideId(item)}\n className=\"m-0 flex w-full shrink-0 snap-center flex-col gap-2xs\"\n >\n {renderMedia(item)}\n <figcaption className=\"flex items-center justify-between gap-s text-step-xs text-content-muted\">\n {previous ? (\n <a href={`#${slideId(previous)}`} className={STEP}>\n {labels.previous}\n </a>\n ) : (\n <span />\n )}\n <span>{labels.position(index + 1, items.length)}</span>\n {next ? (\n <a href={`#${slideId(next)}`} className={STEP}>\n {labels.next}\n </a>\n ) : (\n <span />\n )}\n </figcaption>\n </figure>\n );\n })}\n </div>\n );\n}\n"],"names":["cn","slideId","item","id","STEP","MediaGallery","items","labels","renderMedia","img","src","alt","className","props","div","role","aria-label","region","tabIndex","map","index","previous","next","figure","figcaption","a","href","span","position","length"],"mappings":";;;AAEA,SAASA,EAAE,QAAQ,oBAAoB;AA6BvC,MAAMC,UAAU,CAACC,OAA2B,CAAC,MAAM,EAAEA,KAAKC,EAAE,EAAE;AAE9D,MAAMC,OACJ;AAEF;;;;;;CAMC,GACD,OAAO,SAASC,aAAa,EAYT;QAZS,EAC3BC,KAAK,EACLC,MAAM,EACNC,cAAcN,CAAAA,qBACZ,KAACO;YACCC,KAAKR,KAAKQ,GAAG;YACbC,KAAKT,KAAKS,GAAG;YACbC,WAAU;UAEb,EACDA,SAAS,EAES,OADfC;;;;;;IAEH,qBACE,KAACC;QACCC,MAAK;QACLC,cAAYT,OAAOU,MAAM;QACzB,+DAA+D;QAC/D,+DAA+D;QAC/DC,UAAU;QACVN,WAAWZ,GACT,kHACAY;OAEEC;kBAEHP,MAAMa,GAAG,CAAC,CAACjB,MAAMkB;YAChB,MAAMC,WAAWf,KAAK,CAACc,QAAQ,EAAE;YACjC,MAAME,OAAOhB,KAAK,CAACc,QAAQ,EAAE;YAC7B,qBACE,MAACG;gBAECpB,IAAIF,QAAQC;gBACZU,WAAU;;oBAETJ,YAAYN;kCACb,MAACsB;wBAAWZ,WAAU;;4BACnBS,yBACC,KAACI;gCAAEC,MAAM,CAAC,CAAC,EAAEzB,QAAQoB,WAAW;gCAAET,WAAWR;0CAC1CG,OAAOc,QAAQ;+CAGlB,KAACM;0CAEH,KAACA;0CAAMpB,OAAOqB,QAAQ,CAACR,QAAQ,GAAGd,MAAMuB,MAAM;;4BAC7CP,qBACC,KAACG;gCAAEC,MAAM,CAAC,CAAC,EAAEzB,QAAQqB,OAAO;gCAAEV,WAAWR;0CACtCG,OAAOe,IAAI;+CAGd,KAACK;;;;eAnBAzB,KAAKC,EAAE;QAwBlB;;AAGN"}
1
+ {"version":3,"sources":["../../../../src/ui/molecules/media-gallery/media-gallery.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react';\n\nimport {\n MediaImage,\n type MediaImageLoader,\n} from '../../atoms/media-image/index.js';\nimport { cn } from '../../utils/cn.js';\n\nexport interface MediaGalleryItem {\n /** Unique within the gallery; the slide's element id is derived from it. */\n readonly id: string;\n readonly src: string;\n /** What the image shows. Empty only for an image that adds nothing to the text beside it. */\n readonly alt: string;\n /** Intrinsic width in pixels, when known. */\n readonly width?: number;\n /** Intrinsic height in pixels, when known. */\n readonly height?: number;\n}\n\n/** What the gallery decided for one slide, handed to a host's own renderer. */\nexport interface MediaGallerySlide {\n /** The slide's position, from 0. */\n readonly index: number;\n /** The first slide is fetched first and at once; every other one lazily. */\n readonly priority: boolean;\n /** The `sizes` the slide is shown at. */\n readonly sizes: string;\n}\n\nexport interface MediaGalleryLabels {\n /** The gallery's name — usually the product's. */\n readonly region: string;\n readonly previous: string;\n readonly next: string;\n /** A slide's position, e.g. `2 of 5`. */\n readonly position: (index: number, total: number) => string;\n}\n\nexport interface MediaGalleryProps extends Omit<\n ComponentPropsWithoutRef<'div'>,\n 'children'\n> {\n items: readonly MediaGalleryItem[];\n labels: MediaGalleryLabels;\n /**\n * How wide a slide is shown at, as a `sizes` attribute. Defaults to the full\n * viewport width, which is right only when the gallery is.\n */\n sizes?: string;\n /** Width over height of every slide's box. Defaults to `1`, a square. */\n aspectRatio?: number;\n /** Resizes a slide's image per width, so the browser can fetch a smaller one. */\n loader?: MediaImageLoader;\n /**\n * Renders one image; a {@link MediaImage} when omitted. A host rendering its\n * own sized image receives the gallery's decisions for the slide, and the\n * slide's box stays reserved around whatever it returns.\n */\n renderMedia?: (item: MediaGalleryItem, slide: MediaGallerySlide) => ReactNode;\n}\n\nconst slideId = (item: MediaGalleryItem) => `media-${item.id}`;\n\nconst STEP =\n 'flex min-h-(--target-min) items-center rounded-md px-2xs text-step-sm text-content focus-ring hover:underline';\n\n/**\n * Product media as a horizontal scroller that works with scripting off and\n * with a keyboard. The scroller is a named region and a Tab stop, so arrow\n * keys scroll it (WCAG 2.1.1, axe `scrollable-region-focusable`); each slide is\n * a figure with its position, and its previous and next links jump to the\n * neighbouring slide's id, which the browser scrolls into view. Server-safe.\n */\nexport function MediaGallery({\n items,\n labels,\n sizes = '100vw',\n aspectRatio = 1,\n loader,\n renderMedia,\n className,\n ...props\n}: MediaGalleryProps) {\n return (\n <div\n role=\"region\"\n aria-label={labels.region}\n // A scroller must take focus to be scrolled from the keyboard.\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n className={cn(\n 'flex snap-x snap-mandatory gap-s overflow-x-auto scroll-smooth rounded-lg focus-ring motion-reduce:scroll-auto',\n className,\n )}\n {...props}\n >\n {items.map((item, index) => {\n const previous = items[index - 1];\n const next = items[index + 1];\n const slide: MediaGallerySlide = {\n index,\n priority: index === 0,\n sizes,\n };\n return (\n <figure\n key={item.id}\n id={slideId(item)}\n className=\"m-0 flex w-full shrink-0 snap-center flex-col gap-2xs\"\n >\n {/* The box is reserved before any image arrives, whoever renders\n it, so a late image shifts nothing below it. */}\n <div\n className=\"flex w-full items-center justify-center overflow-hidden\"\n style={{ aspectRatio }}\n >\n {renderMedia === undefined ? (\n <MediaImage\n src={item.src}\n alt={item.alt}\n width={item.width}\n height={item.height}\n aspectRatio={aspectRatio}\n sizes={sizes}\n priority={slide.priority}\n loader={loader}\n />\n ) : (\n renderMedia(item, slide)\n )}\n </div>\n <figcaption className=\"flex items-center justify-between gap-s text-step-xs text-content-muted\">\n {previous ? (\n <a href={`#${slideId(previous)}`} className={STEP}>\n {labels.previous}\n </a>\n ) : (\n <span />\n )}\n <span>{labels.position(index + 1, items.length)}</span>\n {next ? (\n <a href={`#${slideId(next)}`} className={STEP}>\n {labels.next}\n </a>\n ) : (\n <span />\n )}\n </figcaption>\n </figure>\n );\n })}\n </div>\n );\n}\n"],"names":["MediaImage","cn","slideId","item","id","STEP","MediaGallery","items","labels","sizes","aspectRatio","loader","renderMedia","className","props","div","role","aria-label","region","tabIndex","map","index","previous","next","slide","priority","figure","style","undefined","src","alt","width","height","figcaption","a","href","span","position","length"],"mappings":";;;AAEA,SACEA,UAAU,QAEL,mCAAmC;AAC1C,SAASC,EAAE,QAAQ,oBAAoB;AAwDvC,MAAMC,UAAU,CAACC,OAA2B,CAAC,MAAM,EAAEA,KAAKC,EAAE,EAAE;AAE9D,MAAMC,OACJ;AAEF;;;;;;CAMC,GACD,OAAO,SAASC,aAAa,EAST;QATS,EAC3BC,KAAK,EACLC,MAAM,EACNC,QAAQ,OAAO,EACfC,cAAc,CAAC,EACfC,MAAM,EACNC,WAAW,EACXC,SAAS,EAES,OADfC;;;;;;;;;IAEH,qBACE,KAACC;QACCC,MAAK;QACLC,cAAYT,OAAOU,MAAM;QACzB,+DAA+D;QAC/D,+DAA+D;QAC/DC,UAAU;QACVN,WAAWZ,GACT,kHACAY;OAEEC;kBAEHP,MAAMa,GAAG,CAAC,CAACjB,MAAMkB;YAChB,MAAMC,WAAWf,KAAK,CAACc,QAAQ,EAAE;YACjC,MAAME,OAAOhB,KAAK,CAACc,QAAQ,EAAE;YAC7B,MAAMG,QAA2B;gBAC/BH;gBACAI,UAAUJ,UAAU;gBACpBZ;YACF;YACA,qBACE,MAACiB;gBAECtB,IAAIF,QAAQC;gBACZU,WAAU;;kCAIV,KAACE;wBACCF,WAAU;wBACVc,OAAO;4BAAEjB;wBAAY;kCAEpBE,gBAAgBgB,0BACf,KAAC5B;4BACC6B,KAAK1B,KAAK0B,GAAG;4BACbC,KAAK3B,KAAK2B,GAAG;4BACbC,OAAO5B,KAAK4B,KAAK;4BACjBC,QAAQ7B,KAAK6B,MAAM;4BACnBtB,aAAaA;4BACbD,OAAOA;4BACPgB,UAAUD,MAAMC,QAAQ;4BACxBd,QAAQA;6BAGVC,YAAYT,MAAMqB;;kCAGtB,MAACS;wBAAWpB,WAAU;;4BACnBS,yBACC,KAACY;gCAAEC,MAAM,CAAC,CAAC,EAAEjC,QAAQoB,WAAW;gCAAET,WAAWR;0CAC1CG,OAAOc,QAAQ;+CAGlB,KAACc;0CAEH,KAACA;0CAAM5B,OAAO6B,QAAQ,CAAChB,QAAQ,GAAGd,MAAM+B,MAAM;;4BAC7Cf,qBACC,KAACW;gCAAEC,MAAM,CAAC,CAAC,EAAEjC,QAAQqB,OAAO;gCAAEV,WAAWR;0CACtCG,OAAOe,IAAI;+CAGd,KAACa;;;;eAvCAjC,KAAKC,EAAE;QA4ClB;;AAGN"}
@@ -0,0 +1,2 @@
1
+ export * from './summary-tile.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/molecules/summary-tile/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './summary-tile.js';
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/ui/molecules/summary-tile/index.ts"],"sourcesContent":["export * from './summary-tile.js';\n"],"names":[],"mappings":"AAAA,cAAc,oBAAoB"}
@@ -0,0 +1,57 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type MoneyUnit } from '../../atoms/money/index.js';
3
+ import { type StatusTagTone } from '../../atoms/status-tag/index.js';
4
+ import { type ClusterProps } from '../../layout/cluster/index.js';
5
+ /** An amount of money a tile states instead of a count. */
6
+ export interface SummaryTileMoney {
7
+ readonly amount: number;
8
+ readonly currency: string;
9
+ readonly unit: MoneyUnit;
10
+ }
11
+ /** What the tile's figure means at a glance, in a tone and in words. */
12
+ export interface SummaryTileStatus {
13
+ readonly tone: StatusTagTone;
14
+ /** The words for it; the tone never stands alone. */
15
+ readonly label: string;
16
+ }
17
+ export interface SummaryTileProps {
18
+ /** What is counted — "Envíos por despachar". The tile's heading. */
19
+ label: string;
20
+ /** Where the counted records are: the tile is one link there. */
21
+ href: string;
22
+ /** How many. Ignored when {@link money} is given. */
23
+ count?: number;
24
+ /** An amount instead of a count — "Próximo pago". */
25
+ money?: SummaryTileMoney;
26
+ /** The figure's meaning as a tag beside it. */
27
+ status?: SummaryTileStatus;
28
+ /** Its own source's state: one tile failing leaves every other one standing. */
29
+ state: 'loading' | 'ready' | 'failed';
30
+ /** Reads the tile's source again. Without it, a failed tile offers no Retry. */
31
+ onRetry?: () => void;
32
+ /**
33
+ * Routing escape hatch. It receives the tile's `href`, `className` and
34
+ * content, and must spread `className` onto what it renders; a plain `<a>`
35
+ * when omitted.
36
+ */
37
+ renderLink?: (link: {
38
+ href: string;
39
+ className: string;
40
+ children: ReactNode;
41
+ }) => ReactNode;
42
+ className?: string;
43
+ }
44
+ /**
45
+ * One figure that leads somewhere: a heading, a count or an amount, and a
46
+ * status in words. The whole tile is one link to the records it counts, named
47
+ * by its heading and its figure. It loads, and fails, on its own — a failed
48
+ * tile says so in place and offers Retry while its neighbours keep their
49
+ * figures ([ADR 0028](../../../../../../../docs/adr/0028-states-an-organism-must-render.md)).
50
+ * Nothing is announced live: the figure is read once, when the reader
51
+ * reaches it.
52
+ */
53
+ export declare function SummaryTile({ label, href, count, money, status, state, onRetry, renderLink, className, }: SummaryTileProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
54
+ export type SummaryTileListProps = Omit<ClusterProps, 'as' | 'role' | 'align'>;
55
+ /** Tiles side by side, wrapping as the width runs out; a list, so its size is read out. */
56
+ export declare function SummaryTileList({ children, ...props }: SummaryTileListProps): import("react").JSX.Element;
57
+ //# sourceMappingURL=summary-tile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summary-tile.d.ts","sourceRoot":"","sources":["../../../../src/ui/molecules/summary-tile/summary-tile.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAa,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG3E,2DAA2D;AAC3D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;CAC1B;AAED,wEAAwE;AACxE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,qDAAqD;IACrD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,gFAAgF;IAChF,KAAK,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IACtC,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,SAAS,CAAC;KACrB,KAAK,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,SAAS,GACV,EAAE,gBAAgB,+TAqElB;AAED,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAE/E,2FAA2F;AAC3F,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAQ3E"}
@@ -0,0 +1,114 @@
1
+ 'use client';
2
+ import { _ as _extends } from "@swc/helpers/_/_extends";
3
+ import { _ as _object_without_properties_loose } from "@swc/helpers/_/_object_without_properties_loose";
4
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
5
+ import { Children, isValidElement } from 'react';
6
+ import { useFormatters, useLocale, useT } from '../../../i18n/index.js';
7
+ import { Alert } from '../../atoms/alert/index.js';
8
+ import { Button } from '../../atoms/button/index.js';
9
+ import { Money } from '../../atoms/money/index.js';
10
+ import { Skeleton } from '../../atoms/skeleton/index.js';
11
+ import { StatusTag } from '../../atoms/status-tag/index.js';
12
+ import { Cluster } from '../../layout/cluster/index.js';
13
+ import { cn } from '../../utils/cn.js';
14
+ const SURFACE = 'flex min-h-(--target-min) flex-col gap-2xs rounded-xl border border-border bg-surface-elevated p-s text-content';
15
+ const LINK = 'block rounded-xl text-content no-underline focus-ring hover:shadow-overlay';
16
+ /**
17
+ * One figure that leads somewhere: a heading, a count or an amount, and a
18
+ * status in words. The whole tile is one link to the records it counts, named
19
+ * by its heading and its figure. It loads, and fails, on its own — a failed
20
+ * tile says so in place and offers Retry while its neighbours keep their
21
+ * figures ([ADR 0028](../../../../../../../docs/adr/0028-states-an-organism-must-render.md)).
22
+ * Nothing is announced live: the figure is read once, when the reader
23
+ * reaches it.
24
+ */ export function SummaryTile({ label, href, count, money, status, state, onRetry, renderLink, className }) {
25
+ const t = useT();
26
+ const formatters = useFormatters();
27
+ const locale = useLocale();
28
+ const link = (content, linkClass)=>renderLink === undefined ? /*#__PURE__*/ _jsx("a", {
29
+ href: href,
30
+ className: linkClass,
31
+ children: content
32
+ }) : renderLink({
33
+ href,
34
+ className: linkClass,
35
+ children: content
36
+ });
37
+ if (state === 'failed') {
38
+ return /*#__PURE__*/ _jsxs("article", {
39
+ className: cn(SURFACE, className),
40
+ children: [
41
+ /*#__PURE__*/ _jsx("h3", {
42
+ className: "text-step-sm font-semibold",
43
+ children: link(label, 'focus-ring rounded-sm text-content hover:underline')
44
+ }),
45
+ /*#__PURE__*/ _jsx(Alert, {
46
+ tone: "danger",
47
+ action: onRetry === undefined ? undefined : /*#__PURE__*/ _jsx(Button, {
48
+ type: "button",
49
+ variant: "secondary",
50
+ size: "sm",
51
+ onClick: onRetry,
52
+ children: t('state.retry')
53
+ }),
54
+ children: t('summary.failed', {
55
+ label
56
+ })
57
+ })
58
+ ]
59
+ });
60
+ }
61
+ const figure = state === 'loading' ? /*#__PURE__*/ _jsxs(_Fragment, {
62
+ children: [
63
+ /*#__PURE__*/ _jsx(Skeleton, {
64
+ shape: "line",
65
+ className: "w-12"
66
+ }),
67
+ /*#__PURE__*/ _jsx("span", {
68
+ className: "sr-only",
69
+ children: t('summary.loading')
70
+ })
71
+ ]
72
+ }) : money !== undefined ? /*#__PURE__*/ _jsx(Money, {
73
+ amount: money.amount,
74
+ currency: money.currency,
75
+ unit: money.unit,
76
+ locale: locale
77
+ }) : formatters.number(count != null ? count : 0);
78
+ return link(/*#__PURE__*/ _jsxs("article", {
79
+ className: cn(SURFACE, className),
80
+ children: [
81
+ /*#__PURE__*/ _jsx("h3", {
82
+ className: "text-step-sm font-semibold",
83
+ children: label
84
+ }),
85
+ /*#__PURE__*/ _jsx("div", {
86
+ className: "text-step-2 font-semibold tabular-nums",
87
+ children: figure
88
+ }),
89
+ state === 'ready' && status !== undefined && /*#__PURE__*/ _jsx(StatusTag, {
90
+ tone: status.tone,
91
+ className: "self-start",
92
+ children: status.label
93
+ })
94
+ ]
95
+ }), LINK);
96
+ }
97
+ /** Tiles side by side, wrapping as the width runs out; a list, so its size is read out. */ export function SummaryTileList(_0) {
98
+ let { children } = _0, props = _object_without_properties_loose(_0, [
99
+ "children"
100
+ ]);
101
+ return /*#__PURE__*/ _jsx(Cluster, _extends({
102
+ as: "ul",
103
+ role: "list",
104
+ gap: "s",
105
+ align: "stretch"
106
+ }, props, {
107
+ children: Children.map(children, (child)=>/*#__PURE__*/ isValidElement(child) ? /*#__PURE__*/ _jsx("li", {
108
+ className: "min-w-0",
109
+ children: child
110
+ }) : child)
111
+ }));
112
+ }
113
+
114
+ //# sourceMappingURL=summary-tile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/ui/molecules/summary-tile/summary-tile.tsx"],"sourcesContent":["'use client';\n\nimport { Children, isValidElement, type ReactNode } from 'react';\n\nimport { useFormatters, useLocale, useT } from '../../../i18n/index.js';\nimport { Alert } from '../../atoms/alert/index.js';\nimport { Button } from '../../atoms/button/index.js';\nimport { Money, type MoneyUnit } from '../../atoms/money/index.js';\nimport { Skeleton } from '../../atoms/skeleton/index.js';\nimport { StatusTag, type StatusTagTone } from '../../atoms/status-tag/index.js';\nimport { Cluster, type ClusterProps } from '../../layout/cluster/index.js';\nimport { cn } from '../../utils/cn.js';\n\n/** An amount of money a tile states instead of a count. */\nexport interface SummaryTileMoney {\n readonly amount: number;\n readonly currency: string;\n readonly unit: MoneyUnit;\n}\n\n/** What the tile's figure means at a glance, in a tone and in words. */\nexport interface SummaryTileStatus {\n readonly tone: StatusTagTone;\n /** The words for it; the tone never stands alone. */\n readonly label: string;\n}\n\nexport interface SummaryTileProps {\n /** What is counted — \"Envíos por despachar\". The tile's heading. */\n label: string;\n /** Where the counted records are: the tile is one link there. */\n href: string;\n /** How many. Ignored when {@link money} is given. */\n count?: number;\n /** An amount instead of a count — \"Próximo pago\". */\n money?: SummaryTileMoney;\n /** The figure's meaning as a tag beside it. */\n status?: SummaryTileStatus;\n /** Its own source's state: one tile failing leaves every other one standing. */\n state: 'loading' | 'ready' | 'failed';\n /** Reads the tile's source again. Without it, a failed tile offers no Retry. */\n onRetry?: () => void;\n /**\n * Routing escape hatch. It receives the tile's `href`, `className` and\n * content, and must spread `className` onto what it renders; a plain `<a>`\n * when omitted.\n */\n renderLink?: (link: {\n href: string;\n className: string;\n children: ReactNode;\n }) => ReactNode;\n className?: string;\n}\n\nconst SURFACE =\n 'flex min-h-(--target-min) flex-col gap-2xs rounded-xl border border-border bg-surface-elevated p-s text-content';\nconst LINK =\n 'block rounded-xl text-content no-underline focus-ring hover:shadow-overlay';\n\n/**\n * One figure that leads somewhere: a heading, a count or an amount, and a\n * status in words. The whole tile is one link to the records it counts, named\n * by its heading and its figure. It loads, and fails, on its own — a failed\n * tile says so in place and offers Retry while its neighbours keep their\n * figures ([ADR 0028](../../../../../../../docs/adr/0028-states-an-organism-must-render.md)).\n * Nothing is announced live: the figure is read once, when the reader\n * reaches it.\n */\nexport function SummaryTile({\n label,\n href,\n count,\n money,\n status,\n state,\n onRetry,\n renderLink,\n className,\n}: SummaryTileProps) {\n const t = useT();\n const formatters = useFormatters();\n const locale = useLocale();\n const link = (content: ReactNode, linkClass: string) =>\n renderLink === undefined ? (\n <a href={href} className={linkClass}>\n {content}\n </a>\n ) : (\n renderLink({ href, className: linkClass, children: content })\n );\n\n if (state === 'failed') {\n return (\n <article className={cn(SURFACE, className)}>\n <h3 className=\"text-step-sm font-semibold\">\n {link(label, 'focus-ring rounded-sm text-content hover:underline')}\n </h3>\n <Alert\n tone=\"danger\"\n action={\n onRetry === undefined ? undefined : (\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n onClick={onRetry}\n >\n {t('state.retry')}\n </Button>\n )\n }\n >\n {t('summary.failed', { label })}\n </Alert>\n </article>\n );\n }\n\n const figure =\n state === 'loading' ? (\n <>\n <Skeleton shape=\"line\" className=\"w-12\" />\n <span className=\"sr-only\">{t('summary.loading')}</span>\n </>\n ) : money !== undefined ? (\n <Money\n amount={money.amount}\n currency={money.currency}\n unit={money.unit}\n locale={locale}\n />\n ) : (\n formatters.number(count ?? 0)\n );\n\n return link(\n <article className={cn(SURFACE, className)}>\n <h3 className=\"text-step-sm font-semibold\">{label}</h3>\n <div className=\"text-step-2 font-semibold tabular-nums\">{figure}</div>\n {state === 'ready' && status !== undefined && (\n <StatusTag tone={status.tone} className=\"self-start\">\n {status.label}\n </StatusTag>\n )}\n </article>,\n LINK,\n );\n}\n\nexport type SummaryTileListProps = Omit<ClusterProps, 'as' | 'role' | 'align'>;\n\n/** Tiles side by side, wrapping as the width runs out; a list, so its size is read out. */\nexport function SummaryTileList({ children, ...props }: SummaryTileListProps) {\n return (\n <Cluster as=\"ul\" role=\"list\" gap=\"s\" align=\"stretch\" {...props}>\n {Children.map(children, child =>\n isValidElement(child) ? <li className=\"min-w-0\">{child}</li> : child,\n )}\n </Cluster>\n );\n}\n"],"names":["Children","isValidElement","useFormatters","useLocale","useT","Alert","Button","Money","Skeleton","StatusTag","Cluster","cn","SURFACE","LINK","SummaryTile","label","href","count","money","status","state","onRetry","renderLink","className","t","formatters","locale","link","content","linkClass","undefined","a","children","article","h3","tone","action","type","variant","size","onClick","figure","shape","span","amount","currency","unit","number","div","SummaryTileList","props","as","role","gap","align","map","child","li"],"mappings":"AAAA;;;;AAEA,SAASA,QAAQ,EAAEC,cAAc,QAAwB,QAAQ;AAEjE,SAASC,aAAa,EAAEC,SAAS,EAAEC,IAAI,QAAQ,yBAAyB;AACxE,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SAGVD,WAAWsB,MAAM,CAAC9B,gBAAAA,QAAS;IAG/B,OAAOU,mBACL,MAACM;QAAQV,WAAWZ,GAAGC,SAASW;;0BAC9B,KAACW;gBAAGX,WAAU;0BAA8BR;;0BAC5C,KAACiC;gBAAIzB,WAAU;0BAA0CkB;;YACxDrB,UAAU,WAAWD,WAAWW,2BAC/B,KAACrB;gBAAU0B,MAAMhB,OAAOgB,IAAI;gBAAEZ,WAAU;0BACrCJ,OAAOJ,KAAK;;;QAInBF;AAEJ;AAIA,yFAAyF,GACzF,OAAO,SAASoC,gBAAgB,EAA4C;QAA5C,EAAEjB,QAAQ,EAAkC,OAA7BkB;;;IAC7C,qBACE,KAACxC;QAAQyC,IAAG;QAAKC,MAAK;QAAOC,KAAI;QAAIC,OAAM;OAAcJ;kBACtDlD,SAASuD,GAAG,CAACvB,UAAUwB,CAAAA,sBACtBvD,eAAeuD,uBAAS,KAACC;gBAAGlC,WAAU;0BAAWiC;iBAAcA;;AAIvE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entifix/react-controls",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Entity-agnostic React UI — table, form, filters, wizard, command palette — rendered from entity metadata, plus layout primitives.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -19,7 +19,7 @@
19
19
  "@headlessui/react": "^2.2.10",
20
20
  "class-variance-authority": "^0.7.1",
21
21
  "idb": "^8.0.4",
22
- "@entifix/core": "0.21.0"
22
+ "@entifix/core": "0.22.0"
23
23
  },
24
24
  "exports": {
25
25
  "./package.json": "./package.json",
@@ -55,8 +55,8 @@
55
55
  "react": "19.3.1",
56
56
  "react-i18next": "17.1.10",
57
57
  "storybook": "^10.6.6",
58
- "@entifix/i18n": "0.21.0",
59
- "@entifix/style": "0.21.0"
58
+ "@entifix/i18n": "0.22.0",
59
+ "@entifix/style": "0.22.0"
60
60
  },
61
61
  "nx": {
62
62
  "tags": [
@@ -111,7 +111,7 @@
111
111
  "i18next": ">=26 <27",
112
112
  "react": ">=19 <20",
113
113
  "react-i18next": ">=17 <18",
114
- "@entifix/i18n": "0.21.0"
114
+ "@entifix/i18n": "0.22.0"
115
115
  },
116
116
  "peerDependenciesMeta": {
117
117
  "@entifix/i18n": {