@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.
@@ -1,2 +1 @@
1
1
  export { default as Footer } from './Footer';
2
- export { FooterExternal, LinksColumn, FooterMetaLink } from './FooterExternal';
@@ -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
@@ -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.FC<TextProps>;
35
+ declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
32
36
  export default Text;