@zendeskgarden/react-forms 9.0.0-next.2 → 9.0.0-next.20
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/README.md +4 -4
- package/dist/esm/elements/Checkbox.js +97 -0
- package/dist/esm/elements/FileUpload.js +75 -0
- package/dist/esm/elements/Input.js +93 -0
- package/dist/esm/elements/MediaInput.js +156 -0
- package/dist/esm/elements/Radio.js +81 -0
- package/dist/esm/elements/Range.js +108 -0
- package/dist/esm/elements/Select.js +98 -0
- package/dist/esm/elements/Textarea.js +170 -0
- package/dist/esm/elements/Toggle.js +81 -0
- package/dist/esm/elements/common/Field.js +97 -0
- package/dist/esm/elements/common/Fieldset.js +73 -0
- package/dist/esm/elements/common/Hint.js +92 -0
- package/dist/esm/elements/common/Label.js +134 -0
- package/dist/esm/elements/common/Legend.js +63 -0
- package/dist/esm/elements/common/Message.js +113 -0
- package/dist/esm/elements/faux-input/FauxInput.js +100 -0
- package/dist/esm/elements/faux-input/components/EndIcon.js +72 -0
- package/dist/esm/elements/faux-input/components/StartIcon.js +72 -0
- package/dist/esm/elements/file-list/FileList.js +66 -0
- package/dist/esm/elements/file-list/components/Close.js +75 -0
- package/dist/esm/elements/file-list/components/Delete.js +75 -0
- package/dist/esm/elements/file-list/components/File.js +95 -0
- package/dist/esm/elements/file-list/components/Item.js +64 -0
- package/dist/esm/elements/file-list/utils.js +50 -0
- package/dist/esm/elements/input-group/InputGroup.js +75 -0
- package/dist/esm/elements/tiles/Tiles.js +64 -0
- package/dist/esm/elements/tiles/components/Description.js +64 -0
- package/dist/esm/elements/tiles/components/Icon.js +64 -0
- package/dist/esm/elements/tiles/components/Label.js +73 -0
- package/dist/esm/elements/tiles/components/Tile.js +89 -0
- package/dist/esm/index.js +26 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-circle-stroke.svg.js +33 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-sm-fill.svg.js +29 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/circle-sm-fill.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/dash-fill.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-document-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-error-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-generic-stroke.svg.js +26 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-image-stroke.svg.js +33 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-pdf-stroke.svg.js +35 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-presentation-stroke.svg.js +26 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-spreadsheet-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-zip-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/trash-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/x-stroke.svg.js +26 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js +37 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js +32 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-circle-stroke.svg.js +33 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +25 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/circle-sm-fill.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-document-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-error-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-generic-stroke.svg.js +26 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-image-stroke.svg.js +32 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-pdf-stroke.svg.js +35 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-presentation-stroke.svg.js +26 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-spreadsheet-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-zip-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/trash-stroke.svg.js +27 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +26 -0
- package/dist/esm/styled/checkbox/StyledCheckHint.js +23 -0
- package/dist/esm/styled/checkbox/StyledCheckInput.js +78 -0
- package/dist/esm/styled/checkbox/StyledCheckLabel.js +23 -0
- package/dist/esm/styled/checkbox/StyledCheckMessage.js +23 -0
- package/dist/esm/styled/checkbox/StyledCheckSvg.js +25 -0
- package/dist/esm/styled/checkbox/StyledDashSvg.js +25 -0
- package/dist/esm/styled/common/StyledField.js +22 -0
- package/dist/esm/styled/common/StyledFieldset.js +24 -0
- package/dist/esm/styled/common/StyledHint.js +25 -0
- package/dist/esm/styled/common/StyledLabel.js +26 -0
- package/dist/esm/styled/common/StyledLegend.js +24 -0
- package/dist/esm/styled/common/StyledMessage.js +57 -0
- package/dist/esm/styled/common/StyledMessageIcon.js +45 -0
- package/dist/esm/styled/file-list/StyledFile.js +97 -0
- package/dist/esm/styled/file-list/StyledFileClose.js +25 -0
- package/dist/esm/styled/file-list/StyledFileDelete.js +26 -0
- package/dist/esm/styled/file-list/StyledFileIcon.js +42 -0
- package/dist/esm/styled/file-list/StyledFileList.js +22 -0
- package/dist/esm/styled/file-list/StyledFileListItem.js +24 -0
- package/dist/esm/styled/file-upload/StyledFileUpload.js +116 -0
- package/dist/esm/styled/input-group/StyledInputGroup.js +35 -0
- package/dist/esm/styled/radio/StyledRadioHint.js +24 -0
- package/dist/esm/styled/radio/StyledRadioInput.js +122 -0
- package/dist/esm/styled/radio/StyledRadioLabel.js +30 -0
- package/dist/esm/styled/radio/StyledRadioMessage.js +24 -0
- package/dist/esm/styled/radio/StyledRadioSvg.js +25 -0
- package/dist/esm/styled/range/StyledRangeInput.js +210 -0
- package/dist/esm/styled/select/StyledSelect.js +60 -0
- package/dist/esm/styled/select/StyledSelectWrapper.js +32 -0
- package/dist/esm/styled/text/StyledTextFauxInput.js +69 -0
- package/dist/esm/styled/text/StyledTextInput.js +152 -0
- package/dist/esm/styled/text/StyledTextMediaFigure.js +68 -0
- package/dist/esm/styled/text/StyledTextMediaInput.js +24 -0
- package/dist/esm/styled/text/StyledTextarea.js +33 -0
- package/dist/esm/styled/tiles/StyledTile.js +114 -0
- package/dist/esm/styled/tiles/StyledTileDescription.js +34 -0
- package/dist/esm/styled/tiles/StyledTileIcon.js +77 -0
- package/dist/esm/styled/tiles/StyledTileInput.js +18 -0
- package/dist/esm/styled/tiles/StyledTileLabel.js +34 -0
- package/dist/esm/styled/toggle/StyledToggleHint.js +24 -0
- package/dist/esm/styled/toggle/StyledToggleInput.js +65 -0
- package/dist/esm/styled/toggle/StyledToggleLabel.js +28 -0
- package/dist/esm/styled/toggle/StyledToggleMessage.js +25 -0
- package/dist/esm/styled/toggle/StyledToggleSvg.js +23 -0
- package/dist/esm/types/index.js +11 -0
- package/dist/esm/utils/useFieldContext.js +15 -0
- package/dist/esm/utils/useFieldsetContext.js +15 -0
- package/dist/esm/utils/useFileContext.js +14 -0
- package/dist/esm/utils/useInputContext.js +14 -0
- package/dist/esm/utils/useInputGroupContext.js +14 -0
- package/dist/esm/utils/useTilesContext.js +14 -0
- package/dist/index.cjs.js +1239 -919
- package/dist/typings/elements/common/Field.d.ts +10 -9
- package/dist/typings/elements/common/Hint.d.ts +2 -0
- package/dist/typings/elements/common/Label.d.ts +2 -0
- package/dist/typings/elements/common/Message.d.ts +2 -0
- package/dist/typings/elements/faux-input/FauxInput.d.ts +1 -11
- package/dist/typings/elements/faux-input/components/EndIcon.d.ts +1 -1
- package/dist/typings/elements/faux-input/components/StartIcon.d.ts +1 -1
- package/dist/typings/index.d.ts +3 -4
- package/dist/typings/styled/file-list/StyledFileIcon.d.ts +8 -2
- package/dist/typings/styled/index.d.ts +0 -4
- package/dist/typings/styled/select/StyledSelect.d.ts +1 -4
- package/dist/typings/styled/select/StyledSelectWrapper.d.ts +3 -1
- package/dist/typings/styled/text/StyledTextFauxInput.d.ts +0 -4
- package/dist/typings/styled/text/StyledTextMediaFigure.d.ts +7 -7
- package/dist/typings/styled/text/StyledTextarea.d.ts +1 -1
- package/dist/typings/styled/tiles/StyledTile.d.ts +4 -7
- package/dist/typings/types/index.d.ts +6 -33
- package/dist/typings/utils/useFieldContext.d.ts +1 -2
- package/package.json +8 -9
- package/dist/index.esm.js +0 -2921
- package/dist/typings/elements/MultiThumbRange.d.ts +0 -14
- package/dist/typings/styled/range/StyledSlider.d.ts +0 -10
- package/dist/typings/styled/range/StyledSliderThumb.d.ts +0 -13
- package/dist/typings/styled/range/StyledSliderTrack.d.ts +0 -14
- package/dist/typings/styled/range/StyledSliderTrackRail.d.ts +0 -11
|
@@ -4,15 +4,16 @@
|
|
|
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 React
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
/** Sets the field ID and the prefix for the generated label, input, and hint IDs */
|
|
13
|
-
id?: string;
|
|
14
|
-
}
|
|
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>>;
|
|
15
12
|
/**
|
|
16
13
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
17
14
|
*/
|
|
18
|
-
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>>;
|
|
@@ -4,20 +4,10 @@
|
|
|
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 React
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import { IFauxInputProps } from '../../types';
|
|
9
9
|
import { StartIcon } from './components/StartIcon';
|
|
10
10
|
import { EndIcon } from './components/EndIcon';
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated use IFauxInputStartIconProps or IFauxInputEndIconProps instead
|
|
13
|
-
*/
|
|
14
|
-
export interface IIconProps extends HTMLAttributes<HTMLElement> {
|
|
15
|
-
isHovered?: boolean;
|
|
16
|
-
isFocused: boolean;
|
|
17
|
-
isDisabled: boolean;
|
|
18
|
-
isRotated: boolean;
|
|
19
|
-
children: any;
|
|
20
|
-
}
|
|
21
11
|
/**
|
|
22
12
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
23
13
|
*/
|
|
@@ -10,6 +10,6 @@ import { IFauxInputIconProps } from '../../../types';
|
|
|
10
10
|
* @extends SVGAttributes<SVGElement>
|
|
11
11
|
*/
|
|
12
12
|
export declare const EndIcon: {
|
|
13
|
-
(props: IFauxInputIconProps): React.JSX.Element;
|
|
13
|
+
({ isDisabled, isFocused, isHovered, isRotated, ...props }: IFauxInputIconProps): React.JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
@@ -10,6 +10,6 @@ import { IFauxInputIconProps } from '../../../types';
|
|
|
10
10
|
* @extends SVGAttributes<SVGElement>
|
|
11
11
|
*/
|
|
12
12
|
export declare const StartIcon: {
|
|
13
|
-
(props: IFauxInputIconProps): React.JSX.Element;
|
|
13
|
+
({ isDisabled, isFocused, isHovered, isRotated, ...props }: IFauxInputIconProps): React.JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
/** Common */
|
|
8
|
-
export { Field
|
|
8
|
+
export { Field } from './elements/common/Field';
|
|
9
9
|
export { Fieldset } from './elements/common/Fieldset';
|
|
10
10
|
export { Hint } from './elements/common/Hint';
|
|
11
11
|
export { Label } from './elements/common/Label';
|
|
@@ -18,7 +18,6 @@ export { Range } from './elements/Range';
|
|
|
18
18
|
export { Textarea } from './elements/Textarea';
|
|
19
19
|
export { Toggle } from './elements/Toggle';
|
|
20
20
|
export { Select } from './elements/Select';
|
|
21
|
-
export { MultiThumbRange } from './elements/MultiThumbRange';
|
|
22
21
|
/** Tiles */
|
|
23
22
|
export { Tiles } from './elements/tiles/Tiles';
|
|
24
23
|
/** Input Group */
|
|
@@ -29,7 +28,7 @@ export { FileUpload } from './elements/FileUpload';
|
|
|
29
28
|
export { FileList } from './elements/file-list/FileList';
|
|
30
29
|
export { File } from './elements/file-list/components/File';
|
|
31
30
|
/** Other */
|
|
32
|
-
export { FauxInput
|
|
31
|
+
export { FauxInput } from './elements/faux-input/FauxInput';
|
|
33
32
|
export { MediaInput } from './elements/MediaInput';
|
|
34
33
|
/** types */
|
|
35
|
-
export { VALIDATION, type IFieldsetProps, type ILabelProps, type IMessageProps, type ICheckboxProps, type IRadioProps, type IToggleProps, type IInputProps, type ITextareaProps, type ISelectProps, type IFileUploadProps, type IFileProps, type IRangeProps, type
|
|
34
|
+
export { VALIDATION, type IFieldsetProps, type ILabelProps, type IMessageProps, type ICheckboxProps, type IRadioProps, type IToggleProps, type IInputProps, type ITextareaProps, type ISelectProps, type IFileUploadProps, type IFileProps, type IRangeProps, type IInputGroupProps, type ITilesProps, type ITilesTileProps, type IFauxInputProps, type IFauxInputIconProps as IFauxInputStartIconProps, type IFauxInputIconProps as IFauxInputEndIconProps, type IMediaInputProps } from './types';
|
|
@@ -4,8 +4,14 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import { DefaultTheme } from 'styled-components';
|
|
9
|
+
import { FileValidation } from '../../types';
|
|
10
|
+
export interface IStyledFileIconProps {
|
|
11
|
+
$isCompact?: boolean;
|
|
12
|
+
$validation?: FileValidation;
|
|
13
|
+
}
|
|
14
|
+
export declare const StyledFileIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
9
15
|
'data-garden-id': string;
|
|
10
16
|
'data-garden-version': string;
|
|
11
17
|
}, "data-garden-id" | "data-garden-version">;
|
|
@@ -73,10 +73,6 @@ export * from './select/StyledSelectWrapper';
|
|
|
73
73
|
* Range styles
|
|
74
74
|
*/
|
|
75
75
|
export * from './range/StyledRangeInput';
|
|
76
|
-
export * from './range/StyledSlider';
|
|
77
|
-
export * from './range/StyledSliderThumb';
|
|
78
|
-
export * from './range/StyledSliderTrack';
|
|
79
|
-
export * from './range/StyledSliderTrackRail';
|
|
80
76
|
/**
|
|
81
77
|
* Tile styles
|
|
82
78
|
*/
|
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { DefaultTheme } from 'styled-components';
|
|
8
8
|
import { IStyledTextInputProps } from '../text/StyledTextInput';
|
|
9
|
-
/**
|
|
10
|
-
* 1. Select reset.
|
|
11
|
-
*/
|
|
12
9
|
export declare const StyledSelect: import("styled-components").StyledComponent<"input", DefaultTheme, IStyledTextInputProps & {
|
|
13
10
|
'data-garden-id': string;
|
|
14
11
|
'data-garden-version': string;
|
|
15
12
|
as: string;
|
|
16
|
-
}, "data-garden-id" | "data-garden-version"
|
|
13
|
+
}, "as" | "data-garden-id" | "data-garden-version">;
|
|
@@ -4,7 +4,9 @@
|
|
|
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
|
-
|
|
7
|
+
import { DefaultTheme } from 'styled-components';
|
|
8
|
+
import { IStyledTextFauxInputProps } from '../text/StyledTextFauxInput';
|
|
9
|
+
export declare const StyledSelectWrapper: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledTextFauxInputProps & {
|
|
8
10
|
'data-garden-id': string;
|
|
9
11
|
'data-garden-version': string;
|
|
10
12
|
}, "data-garden-id" | "data-garden-version">;
|
|
@@ -11,8 +11,4 @@ export interface IStyledTextFauxInputProps extends IStyledTextInputProps {
|
|
|
11
11
|
isDisabled?: boolean;
|
|
12
12
|
isReadOnly?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare function getValidationHue(validation?: IStyledTextFauxInputProps['validation'], defaultHue?: string): string;
|
|
15
|
-
/**
|
|
16
|
-
* [1] removes inner input styles when focused
|
|
17
|
-
*/
|
|
18
14
|
export declare const StyledTextFauxInput: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledTextFauxInputProps, never>;
|
|
@@ -4,16 +4,16 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
7
8
|
import { DefaultTheme } from 'styled-components';
|
|
8
|
-
import React from 'react';
|
|
9
9
|
interface IStyledTextMediaFigureProps {
|
|
10
|
-
isRotated?: boolean;
|
|
11
|
-
isHovered?: boolean;
|
|
12
|
-
isFocused?: boolean;
|
|
13
|
-
isDisabled?: boolean;
|
|
14
|
-
position: 'start' | 'end';
|
|
10
|
+
$isRotated?: boolean;
|
|
11
|
+
$isHovered?: boolean;
|
|
12
|
+
$isFocused?: boolean;
|
|
13
|
+
$isDisabled?: boolean;
|
|
14
|
+
$position: 'start' | 'end';
|
|
15
15
|
}
|
|
16
|
-
export declare const StyledTextMediaFigure: import("styled-components").StyledComponent<({ children,
|
|
16
|
+
export declare const StyledTextMediaFigure: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
17
17
|
'data-garden-id': string;
|
|
18
18
|
'data-garden-version': string;
|
|
19
19
|
} & IStyledTextMediaFigureProps, "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"
|
|
15
|
+
} & IStyledTextareaProps, "as" | "data-garden-id" | "data-garden-version">;
|
|
16
16
|
export {};
|
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import { DefaultTheme } from 'styled-components';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
export declare const StyledTile: import("styled-components").StyledComponent<"label", DefaultTheme, IStyledTileProps, never>;
|
|
14
|
-
export {};
|
|
8
|
+
export declare const StyledTile: import("styled-components").StyledComponent<"label", DefaultTheme, {
|
|
9
|
+
'data-garden-id': string;
|
|
10
|
+
'data-garden-version': string;
|
|
11
|
+
}, "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
|
-
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?:
|
|
55
|
+
start?: ReactElement;
|
|
56
56
|
/** Accepts an "end" icon to display */
|
|
57
|
-
end?:
|
|
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 */
|
|
@@ -102,37 +102,10 @@ export interface IRangeProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
102
102
|
/** @ignore */
|
|
103
103
|
hasLowerTrack?: boolean;
|
|
104
104
|
}
|
|
105
|
-
export interface IMultiThumbRangeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
106
|
-
/** Sets the minimum permitted value */
|
|
107
|
-
min?: number;
|
|
108
|
-
/** Sets the maximum permitted value */
|
|
109
|
-
max?: number;
|
|
110
|
-
/** Sets the minimum thumb value */
|
|
111
|
-
minValue?: number;
|
|
112
|
-
/** Sets the maximum thumb value */
|
|
113
|
-
maxValue?: number;
|
|
114
|
-
/** Defines the stepping interval */
|
|
115
|
-
step?: number;
|
|
116
|
-
/** Defines the jumping interval for keyboard page up/down navigation. Defaults to `step`. */
|
|
117
|
-
jump?: number;
|
|
118
|
-
/** Indicates that the element is not interactive */
|
|
119
|
-
disabled?: IRangeProps['disabled'];
|
|
120
|
-
/**
|
|
121
|
-
* Handles change events
|
|
122
|
-
*
|
|
123
|
-
* @param {Object} updatedValues The values that have changed
|
|
124
|
-
* @param {number} [updatedValues.minValue] The optional minimum value
|
|
125
|
-
* @param {number} [updatedValues.maxValue] The optional maximum value
|
|
126
|
-
* */
|
|
127
|
-
onChange?: (updatedValues: {
|
|
128
|
-
minValue?: number;
|
|
129
|
-
maxValue?: number;
|
|
130
|
-
}) => void;
|
|
131
|
-
}
|
|
132
105
|
export interface ITilesProps extends HTMLAttributes<HTMLDivElement> {
|
|
133
|
-
/** Sets the value
|
|
106
|
+
/** Sets the selected value in a controlled tiles component */
|
|
134
107
|
value?: IRadioProps['value'];
|
|
135
|
-
/** Handles
|
|
108
|
+
/** Handles selection change event */
|
|
136
109
|
onChange?: IRadioProps['onChange'];
|
|
137
110
|
/** Sets the name used to reference the value of the control */
|
|
138
111
|
name: NonNullable<IRadioProps['name']>;
|
|
@@ -140,7 +113,7 @@ export interface ITilesProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
140
113
|
isCentered?: boolean;
|
|
141
114
|
}
|
|
142
115
|
export interface ITilesTileProps extends HTMLAttributes<HTMLLabelElement> {
|
|
143
|
-
/** Sets the value of the
|
|
116
|
+
/** Sets the value of the tile */
|
|
144
117
|
value?: IRadioProps['value'];
|
|
145
118
|
/** Indicates that the element is not interactive */
|
|
146
119
|
disabled?: IRadioProps['disabled'];
|
|
@@ -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
|
-
|
|
7
|
+
/// <reference types="react" />
|
|
8
8
|
import { IUseFieldReturnValue } from '@zendeskgarden/container-field';
|
|
9
9
|
interface IFieldContext extends IUseFieldReturnValue {
|
|
10
10
|
getMessageProps: (messageProps: any) => any;
|
|
@@ -12,7 +12,6 @@ interface IFieldContext extends IUseFieldReturnValue {
|
|
|
12
12
|
isLabelHovered: boolean;
|
|
13
13
|
setIsLabelHovered: (isLabelHovered: boolean) => void;
|
|
14
14
|
setIsLabelActive: (isLabelActive: boolean) => void;
|
|
15
|
-
multiThumbRangeRef: MutableRefObject<HTMLDivElement | null>;
|
|
16
15
|
setHasHint: (hintPresent: boolean) => void;
|
|
17
16
|
hasHint: boolean;
|
|
18
17
|
setHasMessage: (messagePresent: boolean) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-forms",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.20",
|
|
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>",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/zendeskgarden/react-components/issues"
|
|
11
11
|
},
|
|
12
12
|
"main": "dist/index.cjs.js",
|
|
13
|
-
"module": "dist/index.
|
|
13
|
+
"module": "dist/esm/index.js",
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
@@ -22,23 +22,22 @@
|
|
|
22
22
|
"types": "dist/typings/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@zendeskgarden/container-field": "^3.0.0",
|
|
25
|
-
"@zendeskgarden/container-slider": "^0.1.1",
|
|
26
25
|
"@zendeskgarden/container-utilities": "^2.0.0",
|
|
27
26
|
"lodash.debounce": "^4.0.8",
|
|
28
|
-
"polished": "^4.
|
|
27
|
+
"polished": "^4.3.1",
|
|
29
28
|
"prop-types": "^15.5.7",
|
|
30
29
|
"react-merge-refs": "^2.0.0"
|
|
31
30
|
},
|
|
32
31
|
"peerDependencies": {
|
|
33
|
-
"@zendeskgarden/react-theming": "
|
|
32
|
+
"@zendeskgarden/react-theming": ">=9.0.0-next",
|
|
34
33
|
"react": ">=16.8.0",
|
|
35
34
|
"react-dom": ">=16.8.0",
|
|
36
|
-
"styled-components": "^5.1
|
|
35
|
+
"styled-components": "^5.3.1"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@types/lodash.debounce": "4.0.9",
|
|
40
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
41
|
-
"@zendeskgarden/svg-icons": "7.
|
|
39
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.20",
|
|
40
|
+
"@zendeskgarden/svg-icons": "7.1.1",
|
|
42
41
|
"react-dropzone": "14.2.3"
|
|
43
42
|
},
|
|
44
43
|
"keywords": [
|
|
@@ -51,5 +50,5 @@
|
|
|
51
50
|
"access": "public"
|
|
52
51
|
},
|
|
53
52
|
"zendeskgarden:src": "src/index.ts",
|
|
54
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "eab087ac0d6e74b3a4489d37d067baf7a225e7a8"
|
|
55
54
|
}
|