@zendeskgarden/react-forms 8.62.2 → 8.63.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.
@@ -6,6 +6,9 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import { IFileUploadProps } from '../types';
9
+ /**
10
+ * [1] A generic div is used for best support with `react-dropzone`.
11
+ */
9
12
  /**
10
13
  * @extends HTMLAttributes<HTMLDivElement>
11
14
  */
@@ -6,6 +6,6 @@
6
6
  */
7
7
  import React from 'react';
8
8
  /**
9
- * @extends HTMLAttributes<HTMLDivElement>
9
+ * @extends ButtonHTMLAttributes<HTMLButtonElement>
10
10
  */
11
- export declare const Close: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const Close: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
@@ -6,6 +6,6 @@
6
6
  */
7
7
  import React from 'react';
8
8
  /**
9
- * @extends HTMLAttributes<HTMLDivElement>
9
+ * @extends ButtonHTMLAttributes<HTMLButtonElement>
10
10
  */
11
- export declare const Delete: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const Delete: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
@@ -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
- export declare const StyledFileClose: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
+ export declare const StyledFileClose: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
8
8
  'data-garden-id': string;
9
9
  'data-garden-version': string;
10
10
  }, "data-garden-id" | "data-garden-version">;
@@ -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
- export declare const StyledFileDelete: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
+ export declare const StyledFileDelete: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
8
8
  'data-garden-id': string;
9
9
  'data-garden-version': string;
10
10
  } & {
@@ -8,9 +8,9 @@ import { FieldsetHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLA
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"];
11
- export declare type Validation = typeof VALIDATION[number];
12
- export declare type FileValidation = typeof FILE_VALIDATION[number];
13
- export declare type FileType = typeof FILE_TYPE[number];
11
+ export type Validation = (typeof VALIDATION)[number];
12
+ export type FileValidation = (typeof FILE_VALIDATION)[number];
13
+ export type FileType = (typeof FILE_TYPE)[number];
14
14
  export interface IFieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
15
15
  /** Applies compact styling */
16
16
  isCompact?: boolean;
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  /// <reference types="react" />
8
- declare type INPUT_CONTEXT_VALUE = 'checkbox' | 'radio' | 'toggle' | undefined;
8
+ type INPUT_CONTEXT_VALUE = 'checkbox' | 'radio' | 'toggle' | undefined;
9
9
  export declare const InputContext: import("react").Context<INPUT_CONTEXT_VALUE>;
10
10
  /**
11
11
  * Retrieve input component context
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-forms",
3
- "version": "8.62.2",
3
+ "version": "8.63.0",
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>",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@zendeskgarden/container-field": "^2.1.0",
25
25
  "@zendeskgarden/container-slider": "^0.1.1",
26
- "@zendeskgarden/container-utilities": "^0.7.0",
26
+ "@zendeskgarden/container-utilities": "^1.0.0",
27
27
  "lodash.debounce": "^4.0.8",
28
28
  "polished": "^4.0.0",
29
29
  "prop-types": "^15.5.7",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/lodash.debounce": "4.0.7",
40
- "@zendeskgarden/react-theming": "^8.62.2",
40
+ "@zendeskgarden/react-theming": "^8.63.0",
41
41
  "@zendeskgarden/svg-icons": "6.33.0",
42
42
  "react-dropzone": "14.2.3"
43
43
  },
@@ -51,5 +51,5 @@
51
51
  "access": "public"
52
52
  },
53
53
  "zendeskgarden:src": "src/index.ts",
54
- "gitHead": "27a7d6c021f3360396af60d51ecbf66e9076a405"
54
+ "gitHead": "4b8715305a769881b143c7195c5b31e687422926"
55
55
  }