@progressiveui/react 2.1.0 → 2.2.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.
@@ -86,6 +86,12 @@ export interface ModalProps {
86
86
  */
87
87
  inPortal?: boolean;
88
88
  width?: "narrow" | "wide" | "full";
89
+ kind?: "dialog" | "fullscreen";
90
+ kindMobile?: "dialog" | "bottomsheet" | "fullscreen";
91
+ /**
92
+ * Overscroll behavior for modal content
93
+ */
94
+ overscrollBehavior?: "modal" | "inside";
89
95
  /**
90
96
  * If true the Modal will be wider then the regular Modal
91
97
  */
@@ -28,7 +28,7 @@ interface NumberInputProps extends InputProps, Omit<React.ComponentPropsWithRef<
28
28
  /**
29
29
  * Provide text that is used alongside the control label for additional help
30
30
  */
31
- helperText?: string;
31
+ helperText?: React.ReactNode;
32
32
  /**
33
33
  * Specify whether you want the underlying label to be visually hidden
34
34
  */
@@ -45,6 +45,10 @@ interface NumberInputProps extends InputProps, Omit<React.ComponentPropsWithRef<
45
45
  * Specify the regular expression that the value should match using the html pattern attribute
46
46
  */
47
47
  pattern?: string;
48
+ /**
49
+ * Provide a label for the control
50
+ */
51
+ labelText?: React.ReactNode;
48
52
  /**
49
53
  * The new value is available in 'imaginaryTarget.value'
50
54
  * i.e. to get the value: evt.imaginaryTarget.value or in th second argument provided to the onChange prop
@@ -4,11 +4,11 @@ interface PasswordInputProps extends Omit<InputProps, "type">, Omit<React.Compon
4
4
  /**
5
5
  * Accessible label for the toggle when the password is hidden
6
6
  */
7
- showPasswordLabelText?: string;
7
+ showPasswordLabelText?: React.ReactNode;
8
8
  /**
9
9
  * Accessible label for the toggle when the password is visible
10
10
  */
11
- hidePasswordLabelText?: string;
11
+ hidePasswordLabelText?: React.ReactNode;
12
12
  }
13
13
  declare const PasswordInput: React.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
14
14
  export default PasswordInput;