@cambly/syntax-core 7.13.0 → 8.0.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
@@ -487,7 +487,7 @@ declare const ButtonGroup: ({ orientation, size, children, }: {
487
487
  children?: ReactNode;
488
488
  }) => ReactElement;
489
489
 
490
- declare const CardSizes: readonly ["sm", "lg"];
490
+ declare const DeprecatedCardSizes: readonly ["sm", "lg"];
491
491
  type CardType = {
492
492
  /**
493
493
  * Test id for the button
@@ -503,9 +503,10 @@ type CardType = {
503
503
  * `sm`: 352px
504
504
  * `lg`: 744px
505
505
  *
506
- * @defaultValue sm
506
+ * @deprecated Card width should be controlled by the parent container
507
+ * @defaultValue `undefined`
507
508
  */
508
- size?: (typeof CardSizes)[number];
509
+ size?: (typeof DeprecatedCardSizes)[number];
509
510
  };
510
511
  /**
511
512
  * [Card](https://cambly-syntax.vercel.app/?path=/docs/components-card--docs) is a basic container component to apply consistent styling and render child components.
package/dist/index.js CHANGED
@@ -674,7 +674,7 @@ var ButtonGroup_default = ButtonGroup;
674
674
  var import_jsx_runtime7 = require("react/jsx-runtime");
675
675
  function Card({
676
676
  children,
677
- size = "sm",
677
+ size,
678
678
  "data-testid": dataTestId
679
679
  }) {
680
680
  const sizeWidth2 = {
@@ -687,7 +687,7 @@ function Card({
687
687
  rounding: "xl",
688
688
  padding: 7,
689
689
  smPadding: 9,
690
- maxWidth: sizeWidth2[size],
690
+ maxWidth: size && sizeWidth2[size],
691
691
  width: "100%",
692
692
  backgroundColor: "white",
693
693
  "data-testid": dataTestId,