@zendeskgarden/react-forms 8.38.0 → 8.40.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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React, { RefAttributes, PropsWithoutRef, ForwardRefExoticComponent } from 'react';
8
+ import { Item } from './components/Item';
9
+ interface IStaticFileListExport<T, P> extends ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>> {
10
+ Item: typeof Item;
11
+ }
12
+ /**
13
+ * @extends HTMLAttributes<HTMLUListElement>
14
+ */
15
+ export declare const FileList: IStaticFileListExport<HTMLUListElement, React.HTMLAttributes<HTMLUListElement>>;
16
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ /**
9
+ * @extends HTMLAttributes<HTMLDivElement>
10
+ */
11
+ export declare const Close: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import { RefAttributes, HTMLAttributes, PropsWithoutRef, ForwardRefExoticComponent } from 'react';
8
+ import { Close } from './Close';
9
+ import { FILE_TYPE } from '../utils';
10
+ export interface IFileProps extends HTMLAttributes<HTMLDivElement> {
11
+ /** Applies compact styling */
12
+ isCompact?: boolean;
13
+ /** Determines the icon to display */
14
+ type?: FILE_TYPE;
15
+ /** Applies inset `box-shadow` styling on focus */
16
+ focusInset?: boolean;
17
+ }
18
+ interface IStaticFileExport<T, P> extends ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>> {
19
+ Close: typeof Close;
20
+ }
21
+ /**
22
+ * @extends HTMLAttributes<HTMLDivElement>
23
+ */
24
+ export declare const File: IStaticFileExport<HTMLDivElement, IFileProps>;
25
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ /**
9
+ * @extends LiHTMLAttributes<HTMLLIElement>
10
+ */
11
+ export declare const Item: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ export declare enum FileType {
9
+ pdf = "pdf",
10
+ zip = "zip",
11
+ image = "image",
12
+ document = "document",
13
+ spreadsheet = "spreadsheet",
14
+ presentation = "presentation"
15
+ }
16
+ export declare type FILE_TYPE = keyof typeof FileType;
17
+ export declare const ARRAY_FILE_TYPE: FILE_TYPE[];
18
+ export declare const fileIcons: Record<FILE_TYPE, React.ReactNode>;
@@ -38,6 +38,10 @@ export type { IInputGroupProps } from './elements/input-group/InputGroup';
38
38
  /** File Upload */
39
39
  export { FileUpload } from './elements/FileUpload';
40
40
  export type { IFileUploadProps } from './elements/FileUpload';
41
+ /** File List */
42
+ export { FileList } from './elements/file-list/FileList';
43
+ export { File } from './elements/file-list/components/File';
44
+ export type { IFileProps } from './elements/file-list/components/File';
41
45
  /** Other */
42
46
  export { FauxInput } from './elements/FauxInput';
43
47
  export type { IFauxInputProps, IStaticFauxInputExport, IIconProps } from './elements/FauxInput';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import { DefaultTheme } from 'styled-components';
8
+ interface IStyledFileProps {
9
+ isCompact?: boolean;
10
+ focusInset?: boolean;
11
+ }
12
+ export declare const StyledFile: import("styled-components").StyledComponent<"div", DefaultTheme, {
13
+ 'data-garden-id': string;
14
+ 'data-garden-version': string;
15
+ } & IStyledFileProps, "data-garden-id" | "data-garden-version">;
16
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ export declare const StyledFileClose: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
+ 'data-garden-id': string;
9
+ 'data-garden-version': string;
10
+ }, "data-garden-id" | "data-garden-version">;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ export declare const StyledFileIcon: import("styled-components").StyledComponent<({ children, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
9
+ 'data-garden-id': string;
10
+ 'data-garden-version': string;
11
+ }, "data-garden-id" | "data-garden-version">;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ /**
8
+ * 1. <ul> reset.
9
+ */
10
+ export declare const StyledFileList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {
11
+ 'data-garden-id': string;
12
+ 'data-garden-version': string;
13
+ }, "data-garden-id" | "data-garden-version">;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ export declare const StyledFileListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
8
+ 'data-garden-id': string;
9
+ 'data-garden-version': string;
10
+ }, "data-garden-id" | "data-garden-version">;
@@ -39,6 +39,14 @@ export * from './checkbox/StyledDashSvg';
39
39
  * FileUpload styles
40
40
  */
41
41
  export * from './file-upload/StyledFileUpload';
42
+ /**
43
+ * FileList styles
44
+ */
45
+ export * from './file-list/StyledFile';
46
+ export * from './file-list/StyledFileClose';
47
+ export * from './file-list/StyledFileIcon';
48
+ export * from './file-list/StyledFileList';
49
+ export * from './file-list/StyledFileListItem';
42
50
  /**
43
51
  * Radio styles
44
52
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-forms",
3
- "version": "8.38.0",
3
+ "version": "8.40.1",
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>",
@@ -22,7 +22,7 @@
22
22
  "types": "dist/typings/index.d.ts",
23
23
  "dependencies": {
24
24
  "@zendeskgarden/container-field": "^1.3.6",
25
- "@zendeskgarden/container-utilities": "^0.5.5",
25
+ "@zendeskgarden/container-utilities": "^0.6.0",
26
26
  "lodash.debounce": "^4.0.8",
27
27
  "polished": "^4.0.0",
28
28
  "prop-types": "^15.5.7"
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/lodash.debounce": "4.0.6",
38
- "@zendeskgarden/react-theming": "^8.38.0",
38
+ "@zendeskgarden/react-theming": "^8.40.1",
39
39
  "@zendeskgarden/svg-icons": "6.30.2",
40
- "react-dropzone": "11.3.2"
40
+ "react-dropzone": "11.4.0"
41
41
  },
42
42
  "keywords": [
43
43
  "components",
@@ -49,5 +49,5 @@
49
49
  "access": "public"
50
50
  },
51
51
  "zendeskgarden:src": "src/index.ts",
52
- "gitHead": "275611910f485c64e06cd8a7f7b9296aca30d73a"
52
+ "gitHead": "7feeb65e934f41f48757fcd3bd0d36287b893fae"
53
53
  }