@progressiveui/react 2.0.10 → 2.2.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/components/Footer/index.d.ts +0 -1
- package/dist/components/NumberInput/NumberInput.d.ts +5 -1
- package/dist/components/PasswordInput/PasswordInput-test.d.ts +1 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +14 -0
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/Text/Text.d.ts +5 -1
- package/dist/index.cjs.js +16 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +1935 -2070
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +16 -16
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
- package/dist/components/Footer/FooterExternal.d.ts +0 -22
- package/dist/index.ac50ead3.js +0 -132
- package/dist/index.ac50ead3.js.map +0 -1
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputProps } from '../Input';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface PasswordInputProps extends Omit<InputProps, "type">, Omit<React.ComponentPropsWithRef<"input">, "type"> {
|
|
4
|
+
/**
|
|
5
|
+
* Accessible label for the toggle when the password is hidden
|
|
6
|
+
*/
|
|
7
|
+
showPasswordLabelText?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Accessible label for the toggle when the password is visible
|
|
10
|
+
*/
|
|
11
|
+
hidePasswordLabelText?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const PasswordInput: React.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
14
|
+
export default PasswordInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PasswordInput';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Spacing, TextKind } from '../../utils';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
interface TextProps extends React.AllHTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Overrides the rendered HTML tag or React component.
|
|
6
|
+
*/
|
|
7
|
+
as?: React.ElementType;
|
|
4
8
|
/**
|
|
5
9
|
* Specifies the kind of text to be displayed. This could be an enumeration that defines various text styles or types.
|
|
6
10
|
*/
|
|
@@ -28,5 +32,5 @@ export declare const textLookup: {
|
|
|
28
32
|
/**
|
|
29
33
|
*Text is a component for displaying paragraphs. You can use Text to standardize text across your web app. For longer sections or full articles use the <Story /> component instead.
|
|
30
34
|
*/
|
|
31
|
-
declare const Text: React.
|
|
35
|
+
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
|
|
32
36
|
export default Text;
|