@commmerce/ui 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cdn.js CHANGED
@@ -2084,7 +2084,7 @@ cm-data-table > table .numeric, cm-data-table > table [data-type='numeric'], cm-
2084
2084
  cm-data-table > table .numeric, cm-data-table > table [data-type='numeric'], cm-data-table > table [data-type='money'], cm-data-table > table [data-type='date'] { white-space: nowrap; }
2085
2085
  cm-data-table > table [data-type='actions'] { width: 1%; white-space: nowrap; }
2086
2086
  cm-data-table > table td [data-lines] { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
2087
- cm-data-table > table td [data-lines='1'] { display: block; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; max-inline-size: var(--cm-data-table-cell-max-width, 320px); }
2087
+ cm-data-table > table td [data-lines='1'] { display: block; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; max-inline-size: min(var(--cm-data-table-cell-max-width, 320px), 100%); }
2088
2088
  cm-data-table > table td [data-lines='3'] { -webkit-line-clamp: 3; line-clamp: 3; }
2089
2089
  cm-data-table > table td [data-lines='4'] { -webkit-line-clamp: 4; line-clamp: 4; }
2090
2090
  cm-data-table > table tbody td[data-type='actions'] { padding-block: 0; }
@@ -2102,6 +2102,8 @@ cm-data-table:has(> table) { container-type: inline-size; }
2102
2102
  cm-data-table[mobile='cards'] > table tr { display: block; margin-block-end: var(--cm-space-8); padding: var(--cm-space-12) var(--cm-space-16); border: var(--cm-border-1) solid var(--cm-border-subtle); border-radius: var(--cm-radius-md); background: var(--cm-bg-surface); }
2103
2103
  cm-data-table[mobile='cards'] > table tr > * { display: flex; justify-content: space-between; gap: var(--cm-space-12); height: auto; padding: var(--cm-space-4) 0; border: 0; background: none; text-align: end; white-space: normal; }
2104
2104
  cm-data-table[mobile='cards'] > table tbody tr:hover > * { background: none; }
2105
+ /* The value side of a card row may shrink, so one-line [data-lines] items end in "\u2026" inside the card (CRM 1.7.1). */
2106
+ cm-data-table[mobile='cards'] > table tr > * > * { min-inline-size: 0; max-inline-size: 100%; }
2105
2107
  cm-data-table[mobile='cards'] > table tr > :first-child { font-size: var(--cm-font-size-14); line-height: var(--cm-line-height-14); font-weight: 600; text-align: start; }
2106
2108
  cm-data-table[mobile='cards'] > table tr > :not(:first-child)[data-label]::before { content: attr(data-label); font-size: var(--cm-font-size-12); line-height: var(--cm-line-height-12); color: var(--cm-text-tertiary); text-align: start; font-weight: 400; }
2107
2109
  cm-data-table[mobile='cards'] > table td[data-type='actions'] { justify-content: flex-start; flex-wrap: wrap; padding-block-start: var(--cm-space-8); }
@@ -72,7 +72,7 @@ cm-data-table > table .numeric, cm-data-table > table [data-type='numeric'], cm-
72
72
  cm-data-table > table .numeric, cm-data-table > table [data-type='numeric'], cm-data-table > table [data-type='money'], cm-data-table > table [data-type='date'] { white-space: nowrap; }
73
73
  cm-data-table > table [data-type='actions'] { width: 1%; white-space: nowrap; }
74
74
  cm-data-table > table td [data-lines] { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
75
- cm-data-table > table td [data-lines='1'] { display: block; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; max-inline-size: var(--cm-data-table-cell-max-width, 320px); }
75
+ cm-data-table > table td [data-lines='1'] { display: block; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; max-inline-size: min(var(--cm-data-table-cell-max-width, 320px), 100%); }
76
76
  cm-data-table > table td [data-lines='3'] { -webkit-line-clamp: 3; line-clamp: 3; }
77
77
  cm-data-table > table td [data-lines='4'] { -webkit-line-clamp: 4; line-clamp: 4; }
78
78
  cm-data-table > table tbody td[data-type='actions'] { padding-block: 0; }
@@ -90,6 +90,8 @@ cm-data-table:has(> table) { container-type: inline-size; }
90
90
  cm-data-table[mobile='cards'] > table tr { display: block; margin-block-end: var(--cm-space-8); padding: var(--cm-space-12) var(--cm-space-16); border: var(--cm-border-1) solid var(--cm-border-subtle); border-radius: var(--cm-radius-md); background: var(--cm-bg-surface); }
91
91
  cm-data-table[mobile='cards'] > table tr > * { display: flex; justify-content: space-between; gap: var(--cm-space-12); height: auto; padding: var(--cm-space-4) 0; border: 0; background: none; text-align: end; white-space: normal; }
92
92
  cm-data-table[mobile='cards'] > table tbody tr:hover > * { background: none; }
93
+ /* The value side of a card row may shrink, so one-line [data-lines] items end in "…" inside the card (CRM 1.7.1). */
94
+ cm-data-table[mobile='cards'] > table tr > * > * { min-inline-size: 0; max-inline-size: 100%; }
93
95
  cm-data-table[mobile='cards'] > table tr > :first-child { font-size: var(--cm-font-size-14); line-height: var(--cm-line-height-14); font-weight: 600; text-align: start; }
94
96
  cm-data-table[mobile='cards'] > table tr > :not(:first-child)[data-label]::before { content: attr(data-label); font-size: var(--cm-font-size-12); line-height: var(--cm-line-height-12); color: var(--cm-text-tertiary); text-align: start; font-weight: 400; }
95
97
  cm-data-table[mobile='cards'] > table td[data-type='actions'] { justify-content: flex-start; flex-wrap: wrap; padding-block-start: var(--cm-space-8); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commmerce/ui",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Commmerce UI web components: build apps that feel native to the Commmerce admin. Works in plain HTML, React, Vue and server-rendered pages.",
5
5
  "keywords": [
6
6
  "web-components",
@@ -50,8 +50,8 @@
50
50
  "test": "vitest run"
51
51
  },
52
52
  "dependencies": {
53
- "@commmerce/icons": "1.7.1",
54
- "@commmerce/tokens": "1.7.1",
53
+ "@commmerce/icons": "1.7.2",
54
+ "@commmerce/tokens": "1.7.2",
55
55
  "lit": "3.2.1"
56
56
  },
57
57
  "devDependencies": {