@cambly/syntax-core 5.2.0 → 5.3.1

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
@@ -442,6 +442,10 @@ type ButtonType = {
442
442
  * The tooltip to be displayed when the user hovers over the button
443
443
  */
444
444
  tooltip?: string;
445
+ /**
446
+ * The type you want to set for the primitive <button/>
447
+ */
448
+ type?: "button" | "submit" | "reset";
445
449
  };
446
450
  declare const Button: React__default.ForwardRefExoticComponent<ButtonType & React__default.RefAttributes<HTMLButtonElement>>;
447
451
 
package/dist/index.js CHANGED
@@ -528,7 +528,8 @@ var Button = (0, import_react2.forwardRef)(
528
528
  startIcon: StartIcon,
529
529
  endIcon: EndIcon,
530
530
  onClick,
531
- tooltip
531
+ tooltip,
532
+ type = "button"
532
533
  }, ref) => {
533
534
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
534
535
  "button",
@@ -536,7 +537,7 @@ var Button = (0, import_react2.forwardRef)(
536
537
  "data-testid": dataTestId,
537
538
  ref,
538
539
  "aria-label": accessibilityLabel,
539
- type: "button",
540
+ type,
540
541
  title: tooltip,
541
542
  disabled: disabled || loading,
542
543
  onClick,
@@ -1050,7 +1051,7 @@ var SelectList = ({
1050
1051
  {
1051
1052
  size: 100,
1052
1053
  color: errorText ? "destructive-primary" : "gray700",
1053
- children: errorText != null ? errorText : helperText
1054
+ children: errorText ? errorText : helperText
1054
1055
  }
1055
1056
  ) })
1056
1057
  ]