@crisp-ui-kit/crisp 0.55.5 → 0.55.6

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.
@@ -459,11 +459,20 @@ function renderTyped(col, value, avatarTone, row, display, locale = "en-US", ope
459
459
  return ((0, jsx_runtime_1.jsxs)("a", { className: "crisp-datatable-phone-link", href: `tel:+${country?.dialCode ?? ""}${p.digits}`, onClick: (ev) => ev.stopPropagation(), children: ["+", country?.dialCode ?? "?", p.digits] }, `${p.iso2}|${p.digits}`));
460
460
  }) }));
461
461
  }
462
+ // crisp/#854, confirmed live -- Attio's real read-only phone cell has
463
+ // no flag anywhere (the same gap #842 already fixed in the editor's
464
+ // popover/trigger, left over here since #842 never touched this
465
+ // rendering path). The dial-code-as-its-own-muted-span shape below
466
+ // and the plain (non-link) wrapper are UNCHANGED by this fix -- #854
467
+ // measured Attio's real cell as a genuine `tel:` link with a
468
+ // continuous, non-split string plus a copy button, which is a larger
469
+ // rebuild of this whole cell's shape, left as a follow-up rather than
470
+ // folded into this "drop the flag" pass.
462
471
  const parsed = parsePhoneValue(value);
463
472
  if (!parsed?.digits)
464
473
  return empty;
465
474
  const country = (0, countries_1.countryByIso2)(parsed.iso2);
466
- return ((0, jsx_runtime_1.jsxs)("span", { className: "crisp-datatable-phone", children: [country && (0, jsx_runtime_1.jsx)("span", { "aria-hidden": "true", children: (0, countries_1.flagEmoji)(country.iso2) }), (0, jsx_runtime_1.jsxs)("span", { className: "crisp-datatable-phone-dial", children: ["+", country?.dialCode ?? "?"] }), parsed.digits] }));
475
+ return ((0, jsx_runtime_1.jsxs)("span", { className: "crisp-datatable-phone", children: [(0, jsx_runtime_1.jsxs)("span", { className: "crisp-datatable-phone-dial", children: ["+", country?.dialCode ?? "?"] }), parsed.digits] }));
467
476
  }
468
477
  case "url":
469
478
  case "email": {
@@ -23,7 +23,7 @@ import { Switch } from "../switch/index.js";
23
23
  import { Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "../table/index.js";
24
24
  import { TimePicker } from "../timepicker/index.js";
25
25
  import { Tooltip } from "../tooltip/index.js";
26
- import { COUNTRIES, countryByIso2, flagEmoji } from "./countries.js";
26
+ import { COUNTRIES, countryByIso2 } from "./countries.js";
27
27
  import { datatableRecipe } from "./datatable.recipe.js";
28
28
  // #534: whether an element's own content is being cut off by its own box --
29
29
  // the same fact `.crisp-datatable-th-label`'s CSS ellipsis is silently
@@ -421,11 +421,20 @@ function renderTyped(col, value, avatarTone, row, display, locale = "en-US", ope
421
421
  return (_jsxs("a", { className: "crisp-datatable-phone-link", href: `tel:+${country?.dialCode ?? ""}${p.digits}`, onClick: (ev) => ev.stopPropagation(), children: ["+", country?.dialCode ?? "?", p.digits] }, `${p.iso2}|${p.digits}`));
422
422
  }) }));
423
423
  }
424
+ // crisp/#854, confirmed live -- Attio's real read-only phone cell has
425
+ // no flag anywhere (the same gap #842 already fixed in the editor's
426
+ // popover/trigger, left over here since #842 never touched this
427
+ // rendering path). The dial-code-as-its-own-muted-span shape below
428
+ // and the plain (non-link) wrapper are UNCHANGED by this fix -- #854
429
+ // measured Attio's real cell as a genuine `tel:` link with a
430
+ // continuous, non-split string plus a copy button, which is a larger
431
+ // rebuild of this whole cell's shape, left as a follow-up rather than
432
+ // folded into this "drop the flag" pass.
424
433
  const parsed = parsePhoneValue(value);
425
434
  if (!parsed?.digits)
426
435
  return empty;
427
436
  const country = countryByIso2(parsed.iso2);
428
- return (_jsxs("span", { className: "crisp-datatable-phone", children: [country && _jsx("span", { "aria-hidden": "true", children: flagEmoji(country.iso2) }), _jsxs("span", { className: "crisp-datatable-phone-dial", children: ["+", country?.dialCode ?? "?"] }), parsed.digits] }));
437
+ return (_jsxs("span", { className: "crisp-datatable-phone", children: [_jsxs("span", { className: "crisp-datatable-phone-dial", children: ["+", country?.dialCode ?? "?"] }), parsed.digits] }));
429
438
  }
430
439
  case "url":
431
440
  case "email": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crisp-ui-kit/crisp",
3
- "version": "0.55.5",
3
+ "version": "0.55.6",
4
4
  "description": "A lean React design system, measured pixel-for-pixel from Attio.",
5
5
  "license": "MIT",
6
6
  "type": "module",