@cambly/syntax-core 9.3.0 → 9.5.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.
package/dist/index.mjs CHANGED
@@ -478,6 +478,8 @@ function backgroundColor(color) {
478
478
  return colors_module_default2.whiteBackgroundColor;
479
479
  case "branded":
480
480
  return colors_module_default2.yellow700BackgroundColor;
481
+ case "inverse":
482
+ return colors_module_default2.gray60BackgroundColor;
481
483
  default:
482
484
  return colors_module_default2.primary700BackgroundColor;
483
485
  }
@@ -494,6 +496,8 @@ function foregroundColor(color) {
494
496
  return colors_module_default2.destructive700Color;
495
497
  case "branded":
496
498
  return colors_module_default2.gray900Color;
499
+ case "inverse":
500
+ return colors_module_default2.whiteColor;
497
501
  default:
498
502
  return colors_module_default2.whiteColor;
499
503
  }
@@ -510,6 +514,8 @@ function foregroundTypographyColor(color) {
510
514
  return "destructive-primary";
511
515
  case "branded":
512
516
  return "gray900";
517
+ case "inverse":
518
+ return "white";
513
519
  default:
514
520
  return "white";
515
521
  }
@@ -1540,7 +1546,13 @@ var TapArea = forwardRef6(
1540
1546
  hovered: false,
1541
1547
  focussed: false
1542
1548
  });
1543
- const handleClick = (event) => !disabled ? onClick(event) : void 0;
1549
+ const handleClick = (event) => {
1550
+ if (disabled) {
1551
+ } else {
1552
+ event.currentTarget.blur();
1553
+ onClick(event);
1554
+ }
1555
+ };
1544
1556
  const handleKeyDown = (event) => {
1545
1557
  if (disabled)
1546
1558
  return;