@cambly/syntax-core 5.1.0 → 5.3.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
@@ -639,7 +639,7 @@ declare const MiniActionCard: ({ children, }: {
639
639
  /**
640
640
  * RadioButton is a radio button with accompanying text
641
641
  */
642
- declare const RadioButton: ({ checked, "data-testid": dataTestId, disabled, error, label, name, onChange, size, value, }: {
642
+ declare const RadioButton: ({ checked, "data-testid": dataTestId, disabled, error, id, label, name, onChange, size, value, }: {
643
643
  /**
644
644
  * Whether or not the radio button is checked
645
645
  *
@@ -662,6 +662,10 @@ declare const RadioButton: ({ checked, "data-testid": dataTestId, disabled, erro
662
662
  * @defaultValue false
663
663
  */
664
664
  error?: boolean | undefined;
665
+ /**
666
+ * Id for the the radio button
667
+ */
668
+ id?: string | undefined;
665
669
  /**
666
670
  * Value to show end user
667
671
  */
package/dist/index.js CHANGED
@@ -883,6 +883,7 @@ var RadioButton = ({
883
883
  "data-testid": dataTestId,
884
884
  disabled = false,
885
885
  error = false,
886
+ id,
886
887
  label,
887
888
  name,
888
889
  onChange,
@@ -909,6 +910,7 @@ var RadioButton = ({
909
910
  {
910
911
  "data-testid": dataTestId,
911
912
  type: "radio",
913
+ id,
912
914
  name,
913
915
  className: (0, import_classnames8.default)(RadioButton_module_default.radioStyleOverride, {
914
916
  [RadioButton_module_default.smOverride]: size === "sm",
@@ -935,7 +937,7 @@ var RadioButton = ({
935
937
  })
936
938
  }
937
939
  ) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: (0, import_classnames8.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
938
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
940
+ label && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
939
941
  Typography_default,
940
942
  {
941
943
  size: size === "md" ? 200 : 100,
@@ -1048,7 +1050,7 @@ var SelectList = ({
1048
1050
  {
1049
1051
  size: 100,
1050
1052
  color: errorText ? "destructive-primary" : "gray700",
1051
- children: errorText != null ? errorText : helperText
1053
+ children: errorText ? errorText : helperText
1052
1054
  }
1053
1055
  ) })
1054
1056
  ]