@zendeskgarden/react-forms 9.0.0-next.4 → 9.0.0-next.6

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.
@@ -5,7 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import React from 'react';
8
+ import { Hint } from './Hint';
9
+ import { Message } from './Message';
10
+ import { Label } from './Label';
11
+ export declare const FieldComponent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
12
  /**
9
13
  * @extends HTMLAttributes<HTMLDivElement>
10
14
  */
11
- export declare const Field: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
+ export declare const Field: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>> & {
16
+ Hint: typeof Hint;
17
+ Label: typeof Label;
18
+ Message: typeof Message;
19
+ };
@@ -6,6 +6,8 @@
6
6
  */
7
7
  import React from 'react';
8
8
  /**
9
+ * @deprecated use `Field.Hint` instead
10
+ *
9
11
  * @extends HTMLAttributes<HTMLDivElement>
10
12
  */
11
13
  export declare const Hint: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { ILabelProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `Field.Label` instead
11
+ *
10
12
  * @extends LabelHTMLAttributes<HTMLLabelElement>
11
13
  */
12
14
  export declare const Label: React.ForwardRefExoticComponent<ILabelProps & React.RefAttributes<HTMLLabelElement>>;
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { IMessageProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `Field.Message` instead
11
+ *
10
12
  * @extends HTMLAttributes<HTMLDivElement>
11
13
  */
12
14
  export declare const Message: React.ForwardRefExoticComponent<IMessageProps & React.RefAttributes<HTMLDivElement>>;
@@ -13,4 +13,4 @@ export declare const StyledSelect: import("styled-components").StyledComponent<"
13
13
  'data-garden-id': string;
14
14
  'data-garden-version': string;
15
15
  as: string;
16
- }, "data-garden-id" | "data-garden-version" | "as">;
16
+ }, "as" | "data-garden-id" | "data-garden-version">;
@@ -12,5 +12,5 @@ export declare const StyledTextarea: import("styled-components").StyledComponent
12
12
  as: string;
13
13
  'data-garden-id': string;
14
14
  'data-garden-version': string;
15
- } & IStyledTextareaProps, "data-garden-id" | "data-garden-version" | "as">;
15
+ } & IStyledTextareaProps, "as" | "data-garden-id" | "data-garden-version">;
16
16
  export {};
@@ -4,7 +4,7 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import { FieldsetHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, SelectHTMLAttributes, SVGAttributes, TextareaHTMLAttributes } from 'react';
7
+ import { FieldsetHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ReactElement, SelectHTMLAttributes, SVGAttributes, TextareaHTMLAttributes } from 'react';
8
8
  export declare const VALIDATION: readonly ["success", "warning", "error"];
9
9
  export declare const FILE_VALIDATION: readonly ["success", "error"];
10
10
  export declare const FILE_TYPE: readonly ["pdf", "zip", "image", "document", "spreadsheet", "presentation", "generic"];
@@ -52,9 +52,9 @@ export interface IInputProps extends IRadioProps {
52
52
  }
53
53
  export interface IMediaInputProps extends IInputProps {
54
54
  /** Accepts a "start" icon to display */
55
- start?: any;
55
+ start?: ReactElement;
56
56
  /** Accepts an "end" icon to display */
57
- end?: any;
57
+ end?: ReactElement;
58
58
  /** Applies props to the wrapping [FauxInput](#fauxinput) element */
59
59
  wrapperProps?: any;
60
60
  /** Applies a ref to the wrapping [FauxInput](#fauxinput) element */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-forms",
3
- "version": "9.0.0-next.4",
3
+ "version": "9.0.0-next.6",
4
4
  "description": "Components relating to form elements in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -32,11 +32,11 @@
32
32
  "@zendeskgarden/react-theming": "^8.67.0",
33
33
  "react": ">=16.8.0",
34
34
  "react-dom": ">=16.8.0",
35
- "styled-components": "^5.1.0"
35
+ "styled-components": "^5.3.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/lodash.debounce": "4.0.9",
39
- "@zendeskgarden/react-theming": "^9.0.0-next.4",
39
+ "@zendeskgarden/react-theming": "^9.0.0-next.6",
40
40
  "@zendeskgarden/svg-icons": "7.0.0",
41
41
  "react-dropzone": "14.2.3"
42
42
  },
@@ -50,5 +50,5 @@
50
50
  "access": "public"
51
51
  },
52
52
  "zendeskgarden:src": "src/index.ts",
53
- "gitHead": "749220247e3a22d2d502dcb3691d81e6a3d52b02"
53
+ "gitHead": "45c56ad1c73af40afba8e5415f529a2c9601c83f"
54
54
  }