@cambly/syntax-core 5.3.1 → 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.d.ts +17 -2
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -475,15 +475,30 @@ declare const ButtonGroup: ({ orientation, size, children, }: {
|
|
|
475
475
|
children?: ReactNode;
|
|
476
476
|
}) => ReactElement;
|
|
477
477
|
|
|
478
|
+
declare const CardSizes: readonly ["sm", "lg"];
|
|
478
479
|
/**
|
|
479
480
|
* Card is a basic container component to apply consistent styling and render child components.
|
|
480
481
|
*/
|
|
481
|
-
|
|
482
|
+
type CardType = {
|
|
483
|
+
/**
|
|
484
|
+
* Test id for the button
|
|
485
|
+
*/
|
|
486
|
+
"data-testid"?: string;
|
|
482
487
|
/**
|
|
483
488
|
* The child components to render within Card.
|
|
484
489
|
*/
|
|
485
490
|
children: JSX.Element;
|
|
486
|
-
|
|
491
|
+
/**
|
|
492
|
+
* The size of the card
|
|
493
|
+
*
|
|
494
|
+
* `sm`: 352px
|
|
495
|
+
* `lg`: 744px
|
|
496
|
+
*
|
|
497
|
+
* @defaultValue sm
|
|
498
|
+
*/
|
|
499
|
+
size?: (typeof CardSizes)[number];
|
|
500
|
+
};
|
|
501
|
+
declare const Card: ({ children, size, "data-testid": dataTestId, }: CardType) => JSX.Element;
|
|
487
502
|
|
|
488
503
|
/**
|
|
489
504
|
* Divider is a thin horizontal line to group content in lists and layouts.
|
package/dist/index.js
CHANGED
|
@@ -612,8 +612,28 @@ var ButtonGroup_default = ButtonGroup;
|
|
|
612
612
|
// src/Card/Card.tsx
|
|
613
613
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
614
614
|
var Card = ({
|
|
615
|
-
children
|
|
616
|
-
|
|
615
|
+
children,
|
|
616
|
+
size = "sm",
|
|
617
|
+
"data-testid": dataTestId
|
|
618
|
+
}) => {
|
|
619
|
+
const sizeWidth = {
|
|
620
|
+
sm: 352,
|
|
621
|
+
lg: 744
|
|
622
|
+
};
|
|
623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
624
|
+
Box_default,
|
|
625
|
+
{
|
|
626
|
+
rounding: "xl",
|
|
627
|
+
padding: 7,
|
|
628
|
+
smPadding: 9,
|
|
629
|
+
maxWidth: sizeWidth[size],
|
|
630
|
+
width: "100%",
|
|
631
|
+
backgroundColor: "white",
|
|
632
|
+
"data-testid": dataTestId,
|
|
633
|
+
children
|
|
634
|
+
}
|
|
635
|
+
);
|
|
636
|
+
};
|
|
617
637
|
var Card_default = Card;
|
|
618
638
|
|
|
619
639
|
// css-module:./Divider.module.css#css-module
|