@cambly/syntax-core 4.3.0 → 4.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 CHANGED
@@ -1,4 +1,4 @@
1
- import React$1, { ReactNode, ReactElement } from 'react';
1
+ import React$1, { ReactNode, AriaRole, ReactElement } from 'react';
2
2
 
3
3
  /**
4
4
  * Avatar is a circular image that represents a user.
@@ -275,6 +275,12 @@ declare function Box(props: {
275
275
  * @defaultValue "static"
276
276
  */
277
277
  position?: "absolute" | "fixed" | "relative" | "static" | "sticky";
278
+ /**
279
+ * The role attribute of the box.
280
+ *
281
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) for the list of valid roles.
282
+ */
283
+ role?: AriaRole;
278
284
  /**
279
285
  * Border radius of the box.
280
286
  *
package/dist/index.js CHANGED
@@ -349,7 +349,7 @@ function Box(props) {
349
349
  }, (_c = dangerouslySetInlineStyle == null ? void 0 : dangerouslySetInlineStyle.__style) != null ? _c : {})
350
350
  };
351
351
  const passthroughProps = Object.entries(maybePassThroughProps).reduce((acc, [key]) => {
352
- if (key === "id" || key.startsWith("aria-") || key.startsWith("data-testid")) {
352
+ if (key === "id" || key === "role" || key.startsWith("aria-") || key.startsWith("data-testid")) {
353
353
  acc[key] = maybePassThroughProps[key];
354
354
  }
355
355
  return acc;