@cambly/syntax-core 5.3.0 → 5.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.mjs CHANGED
@@ -502,7 +502,8 @@ var Button = forwardRef2(
502
502
  startIcon: StartIcon,
503
503
  endIcon: EndIcon,
504
504
  onClick,
505
- tooltip
505
+ tooltip,
506
+ type = "button"
506
507
  }, ref) => {
507
508
  return /* @__PURE__ */ jsxs(
508
509
  "button",
@@ -510,7 +511,7 @@ var Button = forwardRef2(
510
511
  "data-testid": dataTestId,
511
512
  ref,
512
513
  "aria-label": accessibilityLabel,
513
- type: "button",
514
+ type,
514
515
  title: tooltip,
515
516
  disabled: disabled || loading,
516
517
  onClick,
@@ -585,8 +586,28 @@ var ButtonGroup_default = ButtonGroup;
585
586
  // src/Card/Card.tsx
586
587
  import { jsx as jsx7 } from "react/jsx-runtime";
587
588
  var Card = ({
588
- children
589
- }) => /* @__PURE__ */ jsx7(Box_default, { rounding: "xl", padding: 7, smPadding: 9, backgroundColor: "white", children });
589
+ children,
590
+ size = "sm",
591
+ "data-testid": dataTestId
592
+ }) => {
593
+ const sizeWidth = {
594
+ sm: 352,
595
+ lg: 744
596
+ };
597
+ return /* @__PURE__ */ jsx7(
598
+ Box_default,
599
+ {
600
+ rounding: "xl",
601
+ padding: 7,
602
+ smPadding: 9,
603
+ maxWidth: sizeWidth[size],
604
+ width: "100%",
605
+ backgroundColor: "white",
606
+ "data-testid": dataTestId,
607
+ children
608
+ }
609
+ );
610
+ };
590
611
  var Card_default = Card;
591
612
 
592
613
  // css-module:./Divider.module.css#css-module