@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.
- package/dist/components/Modal/Modal.d.ts +6 -0
- package/dist/components/NumberInput/NumberInput.d.ts +5 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +2 -2
- package/dist/index.cjs.js +12 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +871 -868
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +14 -14
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
|
@@ -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?:
|
|
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?:
|
|
7
|
+
showPasswordLabelText?: React.ReactNode;
|
|
8
8
|
/**
|
|
9
9
|
* Accessible label for the toggle when the password is visible
|
|
10
10
|
*/
|
|
11
|
-
hidePasswordLabelText?:
|
|
11
|
+
hidePasswordLabelText?: React.ReactNode;
|
|
12
12
|
}
|
|
13
13
|
declare const PasswordInput: React.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
14
14
|
export default PasswordInput;
|