@cambly/syntax-core 9.3.0 → 9.4.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.d.ts CHANGED
@@ -417,7 +417,7 @@ type BoxProps = {
417
417
  */
418
418
  declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
419
419
 
420
- declare const Color: readonly ["primary", "secondary", "tertiary", "branded", "destructive-primary", "destructive-secondary", "destructive-tertiary", "success", "gray200", "gray700", "gray800", "gray900", "white", "inherit"];
420
+ declare const Color: readonly ["primary", "secondary", "tertiary", "branded", "inverse", "destructive-primary", "destructive-secondary", "destructive-tertiary", "success", "gray200", "gray700", "gray800", "gray900", "white", "inherit"];
421
421
  declare const Size: readonly ["sm", "md", "lg"];
422
422
 
423
423
  type ButtonProps = {
@@ -438,7 +438,7 @@ type ButtonProps = {
438
438
  *
439
439
  * @defaultValue "primary"
440
440
  */
441
- color?: "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success";
441
+ color?: "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "inverse";
442
442
  /**
443
443
  * The size of the button
444
444
  *
@@ -675,7 +675,7 @@ declare const Heading: ({ align, as, children, color, "data-testid": dataTestId,
675
675
  *
676
676
  * @defaultValue "gray900"
677
677
  */
678
- color?: "gray200" | "gray900" | "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "gray700" | "gray800" | "white" | "inherit" | undefined;
678
+ color?: "gray200" | "gray900" | "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "inverse" | "gray700" | "gray800" | "white" | "inherit" | undefined;
679
679
  /**
680
680
  * Test id for the text.
681
681
  */
@@ -1194,7 +1194,7 @@ declare const Typography: ({ align, as, children, color, "data-testid": dataTest
1194
1194
  *
1195
1195
  * @defaultValue "gray900"
1196
1196
  */
1197
- color?: "gray200" | "gray900" | "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "gray700" | "gray800" | "white" | "inherit" | undefined;
1197
+ color?: "gray200" | "gray900" | "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "inverse" | "gray700" | "gray800" | "white" | "inherit" | undefined;
1198
1198
  /**
1199
1199
  * Test id for the text
1200
1200
  */
package/dist/index.js CHANGED
@@ -508,6 +508,8 @@ function backgroundColor(color) {
508
508
  return colors_module_default2.whiteBackgroundColor;
509
509
  case "branded":
510
510
  return colors_module_default2.yellow700BackgroundColor;
511
+ case "inverse":
512
+ return colors_module_default2.gray60BackgroundColor;
511
513
  default:
512
514
  return colors_module_default2.primary700BackgroundColor;
513
515
  }
@@ -524,6 +526,8 @@ function foregroundColor(color) {
524
526
  return colors_module_default2.destructive700Color;
525
527
  case "branded":
526
528
  return colors_module_default2.gray900Color;
529
+ case "inverse":
530
+ return colors_module_default2.whiteColor;
527
531
  default:
528
532
  return colors_module_default2.whiteColor;
529
533
  }
@@ -540,6 +544,8 @@ function foregroundTypographyColor(color) {
540
544
  return "destructive-primary";
541
545
  case "branded":
542
546
  return "gray900";
547
+ case "inverse":
548
+ return "white";
543
549
  default:
544
550
  return "white";
545
551
  }