@ama-pt/agora-design-system 2.2.4 → 2.2.5

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.
@@ -35,12 +35,19 @@ export interface InputPasswordProps extends ComponentPropsWithRef<'input'> {
35
35
  */
36
36
  icon?: string;
37
37
  /**
38
- * Highlight the input indicating some error
38
+ * Highlight the input indicating some error.
39
39
  */
40
40
  hasError?: BooleanProp;
41
41
  /**
42
- * Alternative text for toggle password/plain text icon button
42
+ * Alternative text for toggle password/plain text icon button.
43
+ *
44
+ * show: aria-label for when the password is hidden;
45
+ *
46
+ * hide: aria-label for when the password is visible;
43
47
  */
44
- togglePasswordAltIconText?: string;
48
+ togglePasswordAltIconText?: {
49
+ show: string;
50
+ hide: string;
51
+ };
45
52
  }
46
53
  export declare const InputPassword: React.ForwardRefExoticComponent<Omit<InputPasswordProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -22,5 +22,9 @@ export interface ToastProps extends Omit<ComponentPropsWithoutRef<'div'>, 'id' |
22
22
  * Alternative text to apply to the toast close button
23
23
  */
24
24
  closeLabel: string;
25
+ /**
26
+ * Callback that's invoked when the toast is dismissed
27
+ */
28
+ onDismiss?: () => void;
25
29
  }
26
30
  export declare const Toast: FC<ToastProps>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ama-pt/agora-design-system",
3
3
  "description": "Ágora Design system",
4
- "version": "2.2.4",
4
+ "version": "2.2.5",
5
5
  "main": "artifacts/dist/index.mjs",
6
6
  "module": "artifacts/dist/index.umd.js",
7
7
  "files": [