@officesdk/design 0.1.19 → 0.1.20

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.
@@ -673,7 +673,7 @@ declare const IconProvider: React.FC<IconProviderProps>;
673
673
  */
674
674
  declare const useIconRegistry: () => IconRegistry | null;
675
675
 
676
- interface ToastProps {
676
+ interface ToastProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'children' | 'onClick'> {
677
677
  /**
678
678
  * Toast variant type
679
679
  */
@@ -269,7 +269,8 @@ var init_Toast = __esm({
269
269
  icon,
270
270
  showIcon = true,
271
271
  className,
272
- style
272
+ style,
273
+ ...restProps
273
274
  }) => {
274
275
  const [visible, setVisible] = useState(true);
275
276
  useEffect(() => {
@@ -316,7 +317,8 @@ var init_Toast = __esm({
316
317
  className,
317
318
  style,
318
319
  role: "alert",
319
- "aria-live": "polite"
320
+ "aria-live": "polite",
321
+ ...restProps
320
322
  },
321
323
  showIcon && /* @__PURE__ */ React3.createElement(IconWrapper, { $variant: variant, $hasDescription: hasDescription }, iconElement),
322
324
  /* @__PURE__ */ React3.createElement(ContentWrapper, { $hasDescription: hasDescription }, /* @__PURE__ */ React3.createElement(Message, null, message), description && /* @__PURE__ */ React3.createElement(Description, null, description)),