@cambly/syntax-core 5.3.1 → 5.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.d.ts +18 -3
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -3
- 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.
|
|
@@ -724,7 +739,7 @@ declare const SelectList: {
|
|
|
724
739
|
/**
|
|
725
740
|
* Text shown above select box
|
|
726
741
|
*/
|
|
727
|
-
label
|
|
742
|
+
label?: string | undefined;
|
|
728
743
|
/**
|
|
729
744
|
* The callback to be called when an option is selected
|
|
730
745
|
*/
|
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
|
|
@@ -1002,7 +1022,7 @@ var SelectList = ({
|
|
|
1002
1022
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
1003
1023
|
}),
|
|
1004
1024
|
children: [
|
|
1005
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }),
|
|
1025
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Typography_default, { size: 100, color: "gray700", children: label }) }),
|
|
1006
1026
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: SelectList_module_default.selectWrapper, children: [
|
|
1007
1027
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1008
1028
|
"select",
|