@zendeskgarden/react-forms 8.69.2 → 8.69.4

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.
Files changed (91) hide show
  1. package/dist/index.cjs.js +59 -59
  2. package/dist/index.esm.js +59 -59
  3. package/dist/typings/elements/Checkbox.d.ts +12 -12
  4. package/dist/typings/elements/FileUpload.d.ts +15 -15
  5. package/dist/typings/elements/Input.d.ts +12 -12
  6. package/dist/typings/elements/MediaInput.d.ts +12 -12
  7. package/dist/typings/elements/MultiThumbRange.d.ts +12 -12
  8. package/dist/typings/elements/Radio.d.ts +12 -12
  9. package/dist/typings/elements/Range.d.ts +12 -12
  10. package/dist/typings/elements/Select.d.ts +12 -12
  11. package/dist/typings/elements/Textarea.d.ts +12 -12
  12. package/dist/typings/elements/Toggle.d.ts +12 -12
  13. package/dist/typings/elements/common/Field.d.ts +18 -18
  14. package/dist/typings/elements/common/Fieldset.d.ts +15 -15
  15. package/dist/typings/elements/common/Hint.d.ts +11 -11
  16. package/dist/typings/elements/common/Label.d.ts +12 -12
  17. package/dist/typings/elements/common/Legend.d.ts +11 -11
  18. package/dist/typings/elements/common/Message.d.ts +12 -12
  19. package/dist/typings/elements/faux-input/FauxInput.d.ts +27 -27
  20. package/dist/typings/elements/faux-input/components/EndIcon.d.ts +15 -15
  21. package/dist/typings/elements/faux-input/components/StartIcon.d.ts +15 -15
  22. package/dist/typings/elements/file-list/FileList.d.ts +14 -14
  23. package/dist/typings/elements/file-list/components/Close.d.ts +11 -11
  24. package/dist/typings/elements/file-list/components/Delete.d.ts +11 -11
  25. package/dist/typings/elements/file-list/components/File.d.ts +17 -17
  26. package/dist/typings/elements/file-list/components/Item.d.ts +11 -11
  27. package/dist/typings/elements/file-list/utils.d.ts +10 -10
  28. package/dist/typings/elements/input-group/InputGroup.d.ts +12 -12
  29. package/dist/typings/elements/tiles/Tiles.d.ts +21 -21
  30. package/dist/typings/elements/tiles/components/Description.d.ts +11 -11
  31. package/dist/typings/elements/tiles/components/Icon.d.ts +11 -11
  32. package/dist/typings/elements/tiles/components/Label.d.ts +11 -11
  33. package/dist/typings/elements/tiles/components/Tile.d.ts +12 -12
  34. package/dist/typings/index.d.ts +35 -38
  35. package/dist/typings/styled/checkbox/StyledCheckHint.d.ts +16 -16
  36. package/dist/typings/styled/checkbox/StyledCheckInput.d.ts +16 -16
  37. package/dist/typings/styled/checkbox/StyledCheckLabel.d.ts +17 -17
  38. package/dist/typings/styled/checkbox/StyledCheckMessage.d.ts +16 -16
  39. package/dist/typings/styled/checkbox/StyledCheckSvg.d.ts +10 -10
  40. package/dist/typings/styled/checkbox/StyledDashSvg.d.ts +10 -10
  41. package/dist/typings/styled/common/StyledField.d.ts +15 -15
  42. package/dist/typings/styled/common/StyledFieldset.d.ts +15 -15
  43. package/dist/typings/styled/common/StyledHint.d.ts +10 -10
  44. package/dist/typings/styled/common/StyledLabel.d.ts +17 -17
  45. package/dist/typings/styled/common/StyledLegend.d.ts +18 -18
  46. package/dist/typings/styled/common/StyledMessage.d.ts +15 -15
  47. package/dist/typings/styled/common/StyledMessageIcon.d.ts +17 -17
  48. package/dist/typings/styled/file-list/StyledFile.d.ts +18 -18
  49. package/dist/typings/styled/file-list/StyledFileClose.d.ts +10 -10
  50. package/dist/typings/styled/file-list/StyledFileDelete.d.ts +13 -13
  51. package/dist/typings/styled/file-list/StyledFileIcon.d.ts +11 -11
  52. package/dist/typings/styled/file-list/StyledFileList.d.ts +13 -13
  53. package/dist/typings/styled/file-list/StyledFileListItem.d.ts +10 -10
  54. package/dist/typings/styled/file-upload/StyledFileUpload.d.ts +16 -16
  55. package/dist/typings/styled/index.d.ts +87 -87
  56. package/dist/typings/styled/input-group/StyledInputGroup.d.ts +15 -15
  57. package/dist/typings/styled/radio/StyledRadioHint.d.ts +13 -13
  58. package/dist/typings/styled/radio/StyledRadioInput.d.ts +15 -15
  59. package/dist/typings/styled/radio/StyledRadioLabel.d.ts +18 -18
  60. package/dist/typings/styled/radio/StyledRadioMessage.d.ts +13 -13
  61. package/dist/typings/styled/radio/StyledRadioSvg.d.ts +10 -10
  62. package/dist/typings/styled/range/StyledRangeInput.d.ts +13 -13
  63. package/dist/typings/styled/range/StyledSlider.d.ts +10 -10
  64. package/dist/typings/styled/range/StyledSliderThumb.d.ts +13 -13
  65. package/dist/typings/styled/range/StyledSliderTrack.d.ts +14 -14
  66. package/dist/typings/styled/range/StyledSliderTrackRail.d.ts +11 -11
  67. package/dist/typings/styled/select/StyledSelect.d.ts +16 -16
  68. package/dist/typings/styled/select/StyledSelectWrapper.d.ts +10 -10
  69. package/dist/typings/styled/text/StyledTextFauxInput.d.ts +18 -18
  70. package/dist/typings/styled/text/StyledTextInput.d.ts +17 -17
  71. package/dist/typings/styled/text/StyledTextMediaFigure.d.ts +20 -20
  72. package/dist/typings/styled/text/StyledTextMediaInput.d.ts +11 -11
  73. package/dist/typings/styled/text/StyledTextarea.d.ts +16 -16
  74. package/dist/typings/styled/tiles/StyledTile.d.ts +14 -14
  75. package/dist/typings/styled/tiles/StyledTileDescription.d.ts +15 -15
  76. package/dist/typings/styled/tiles/StyledTileIcon.d.ts +15 -15
  77. package/dist/typings/styled/tiles/StyledTileInput.d.ts +7 -7
  78. package/dist/typings/styled/tiles/StyledTileLabel.d.ts +15 -15
  79. package/dist/typings/styled/toggle/StyledToggleHint.d.ts +13 -13
  80. package/dist/typings/styled/toggle/StyledToggleInput.d.ts +19 -19
  81. package/dist/typings/styled/toggle/StyledToggleLabel.d.ts +21 -21
  82. package/dist/typings/styled/toggle/StyledToggleMessage.d.ts +13 -13
  83. package/dist/typings/styled/toggle/StyledToggleSvg.d.ts +10 -10
  84. package/dist/typings/types/index.d.ts +147 -147
  85. package/dist/typings/utils/useFieldContext.d.ts +26 -26
  86. package/dist/typings/utils/useFieldsetContext.d.ts +16 -16
  87. package/dist/typings/utils/useFileContext.d.ts +13 -13
  88. package/dist/typings/utils/useInputContext.d.ts +14 -14
  89. package/dist/typings/utils/useInputGroupContext.d.ts +16 -16
  90. package/dist/typings/utils/useTilesContext.d.ts +10 -10
  91. package/package.json +3 -3
@@ -1,147 +1,147 @@
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 { FieldsetHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, SelectHTMLAttributes, SVGAttributes, TextareaHTMLAttributes } from 'react';
8
- export declare const VALIDATION: readonly ["success", "warning", "error"];
9
- export declare const FILE_VALIDATION: readonly ["success", "error"];
10
- export declare const FILE_TYPE: readonly ["pdf", "zip", "image", "document", "spreadsheet", "presentation", "generic"];
11
- export type Validation = (typeof VALIDATION)[number];
12
- export type FileValidation = (typeof FILE_VALIDATION)[number];
13
- export type FileType = (typeof FILE_TYPE)[number];
14
- export interface IFieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
15
- /** Applies compact styling */
16
- isCompact?: boolean;
17
- }
18
- export interface IInputGroupProps extends Pick<IFieldsetProps, 'isCompact'>, HTMLAttributes<HTMLDivElement> {
19
- }
20
- export interface ILabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
21
- /** Applies regular (non-bold) font weight */
22
- isRegular?: boolean;
23
- /** Hides the label visually without hiding it from screen readers */
24
- hidden?: LabelHTMLAttributes<HTMLLabelElement>['hidden'];
25
- }
26
- export interface IMessageProps extends HTMLAttributes<HTMLDivElement> {
27
- /** Applies validation state styling */
28
- validation?: Validation;
29
- /** Defines the aria-label for the validation icon */
30
- validationLabel?: string;
31
- }
32
- export interface IRadioProps extends InputHTMLAttributes<HTMLInputElement> {
33
- /** Applies compact styling */
34
- isCompact?: IFieldsetProps['isCompact'];
35
- }
36
- export interface IToggleProps extends IRadioProps {
37
- }
38
- export interface ICheckboxProps extends IRadioProps {
39
- /**
40
- * Sets the checkbox state to
41
- * [indeterminate](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes)
42
- */
43
- indeterminate?: boolean;
44
- }
45
- export interface IInputProps extends IRadioProps {
46
- /** Removes borders and padding */
47
- isBare?: boolean;
48
- /** Applies inset `box-shadow` styling on focus */
49
- focusInset?: boolean;
50
- /** Applies validation state styling */
51
- validation?: Validation;
52
- }
53
- export interface IMediaInputProps extends IInputProps {
54
- /** Accepts a "start" icon to display */
55
- start?: any;
56
- /** Accepts an "end" icon to display */
57
- end?: any;
58
- /** Applies props to the wrapping [FauxInput](#fauxinput) element */
59
- wrapperProps?: any;
60
- /** Applies a ref to the wrapping [FauxInput](#fauxinput) element */
61
- wrapperRef?: any;
62
- }
63
- export interface IFauxInputProps extends Pick<IInputProps, 'isCompact' | 'isBare' | 'focusInset' | 'validation'>, HTMLAttributes<HTMLDivElement> {
64
- /** Indicates that the element is not interactive */
65
- disabled?: IInputProps['disabled'];
66
- /** Applies read-only styling */
67
- readOnly?: IInputProps['readOnly'];
68
- /** Applies focus stying */
69
- isFocused?: boolean;
70
- /** Applies hover stying */
71
- isHovered?: boolean;
72
- }
73
- export interface IFauxInputIconProps extends Pick<IFauxInputProps, 'isHovered' | 'isFocused'>, SVGAttributes<SVGElement> {
74
- /** Applies disabled styling */
75
- isDisabled?: IFauxInputProps['disabled'];
76
- /** Rotates icon 180 degrees */
77
- isRotated?: boolean;
78
- }
79
- export interface ITextareaProps extends Pick<IInputProps, 'isCompact' | 'isBare' | 'focusInset' | 'validation'>, TextareaHTMLAttributes<HTMLTextAreaElement> {
80
- /** Enables manual vertical resize */
81
- isResizable?: boolean;
82
- /** Defines the minimum height in rows */
83
- minRows?: number;
84
- /** Defines the maximum height in rows */
85
- maxRows?: number;
86
- }
87
- export interface ISelectProps extends Pick<IInputProps, 'isCompact' | 'isBare' | 'focusInset' | 'validation'>, SelectHTMLAttributes<HTMLSelectElement> {
88
- }
89
- export interface IFileUploadProps extends Pick<IInputProps, 'disabled' | 'isCompact'>, HTMLAttributes<HTMLDivElement> {
90
- /** Indicates that the element is not interactive */
91
- disabled?: IInputProps['disabled'];
92
- /** Applies drag styling */
93
- isDragging?: boolean;
94
- }
95
- export interface IFileProps extends Pick<IInputProps, 'isCompact' | 'focusInset'>, HTMLAttributes<HTMLDivElement> {
96
- /** Determines the icon to display */
97
- type?: FileType;
98
- /** Applies validation state styling */
99
- validation?: FileValidation;
100
- }
101
- export interface IRangeProps extends InputHTMLAttributes<HTMLInputElement> {
102
- /** @ignore */
103
- hasLowerTrack?: boolean;
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
- export interface ITilesProps extends HTMLAttributes<HTMLDivElement> {
133
- /** Sets the value of the selected radio button */
134
- value?: IRadioProps['value'];
135
- /** Handles radio selection */
136
- onChange?: IRadioProps['onChange'];
137
- /** Sets the name used to reference the value of the control */
138
- name: NonNullable<IRadioProps['name']>;
139
- /** Centers tile content */
140
- isCentered?: boolean;
141
- }
142
- export interface ITilesTileProps extends HTMLAttributes<HTMLLabelElement> {
143
- /** Sets the value of the input */
144
- value?: IRadioProps['value'];
145
- /** Indicates that the element is not interactive */
146
- disabled?: IRadioProps['disabled'];
147
- }
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 { FieldsetHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, SelectHTMLAttributes, SVGAttributes, TextareaHTMLAttributes } from 'react';
8
+ export declare const VALIDATION: readonly ["success", "warning", "error"];
9
+ export declare const FILE_VALIDATION: readonly ["success", "error"];
10
+ export declare const FILE_TYPE: readonly ["pdf", "zip", "image", "document", "spreadsheet", "presentation", "generic"];
11
+ export type Validation = (typeof VALIDATION)[number];
12
+ export type FileValidation = (typeof FILE_VALIDATION)[number];
13
+ export type FileType = (typeof FILE_TYPE)[number];
14
+ export interface IFieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
15
+ /** Applies compact styling */
16
+ isCompact?: boolean;
17
+ }
18
+ export interface IInputGroupProps extends Pick<IFieldsetProps, 'isCompact'>, HTMLAttributes<HTMLDivElement> {
19
+ }
20
+ export interface ILabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
21
+ /** Applies regular (non-bold) font weight */
22
+ isRegular?: boolean;
23
+ /** Hides the label visually without hiding it from screen readers */
24
+ hidden?: LabelHTMLAttributes<HTMLLabelElement>['hidden'];
25
+ }
26
+ export interface IMessageProps extends HTMLAttributes<HTMLDivElement> {
27
+ /** Applies validation state styling */
28
+ validation?: Validation;
29
+ /** Defines the aria-label for the validation icon */
30
+ validationLabel?: string;
31
+ }
32
+ export interface IRadioProps extends InputHTMLAttributes<HTMLInputElement> {
33
+ /** Applies compact styling */
34
+ isCompact?: IFieldsetProps['isCompact'];
35
+ }
36
+ export interface IToggleProps extends IRadioProps {
37
+ }
38
+ export interface ICheckboxProps extends IRadioProps {
39
+ /**
40
+ * Sets the checkbox state to
41
+ * [indeterminate](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes)
42
+ */
43
+ indeterminate?: boolean;
44
+ }
45
+ export interface IInputProps extends IRadioProps {
46
+ /** Removes borders and padding */
47
+ isBare?: boolean;
48
+ /** Applies inset `box-shadow` styling on focus */
49
+ focusInset?: boolean;
50
+ /** Applies validation state styling */
51
+ validation?: Validation;
52
+ }
53
+ export interface IMediaInputProps extends IInputProps {
54
+ /** Accepts a "start" icon to display */
55
+ start?: any;
56
+ /** Accepts an "end" icon to display */
57
+ end?: any;
58
+ /** Applies props to the wrapping [FauxInput](#fauxinput) element */
59
+ wrapperProps?: any;
60
+ /** Applies a ref to the wrapping [FauxInput](#fauxinput) element */
61
+ wrapperRef?: any;
62
+ }
63
+ export interface IFauxInputProps extends Pick<IInputProps, 'isCompact' | 'isBare' | 'focusInset' | 'validation'>, HTMLAttributes<HTMLDivElement> {
64
+ /** Indicates that the element is not interactive */
65
+ disabled?: IInputProps['disabled'];
66
+ /** Applies read-only styling */
67
+ readOnly?: IInputProps['readOnly'];
68
+ /** Applies focus stying */
69
+ isFocused?: boolean;
70
+ /** Applies hover stying */
71
+ isHovered?: boolean;
72
+ }
73
+ export interface IFauxInputIconProps extends Pick<IFauxInputProps, 'isHovered' | 'isFocused'>, SVGAttributes<SVGElement> {
74
+ /** Applies disabled styling */
75
+ isDisabled?: IFauxInputProps['disabled'];
76
+ /** Rotates icon 180 degrees */
77
+ isRotated?: boolean;
78
+ }
79
+ export interface ITextareaProps extends Pick<IInputProps, 'isCompact' | 'isBare' | 'focusInset' | 'validation'>, TextareaHTMLAttributes<HTMLTextAreaElement> {
80
+ /** Enables manual vertical resize */
81
+ isResizable?: boolean;
82
+ /** Defines the minimum height in rows */
83
+ minRows?: number;
84
+ /** Defines the maximum height in rows */
85
+ maxRows?: number;
86
+ }
87
+ export interface ISelectProps extends Pick<IInputProps, 'isCompact' | 'isBare' | 'focusInset' | 'validation'>, SelectHTMLAttributes<HTMLSelectElement> {
88
+ }
89
+ export interface IFileUploadProps extends Pick<IInputProps, 'disabled' | 'isCompact'>, HTMLAttributes<HTMLDivElement> {
90
+ /** Indicates that the element is not interactive */
91
+ disabled?: IInputProps['disabled'];
92
+ /** Applies drag styling */
93
+ isDragging?: boolean;
94
+ }
95
+ export interface IFileProps extends Pick<IInputProps, 'isCompact' | 'focusInset'>, HTMLAttributes<HTMLDivElement> {
96
+ /** Determines the icon to display */
97
+ type?: FileType;
98
+ /** Applies validation state styling */
99
+ validation?: FileValidation;
100
+ }
101
+ export interface IRangeProps extends InputHTMLAttributes<HTMLInputElement> {
102
+ /** @ignore */
103
+ hasLowerTrack?: boolean;
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
+ export interface ITilesProps extends HTMLAttributes<HTMLDivElement> {
133
+ /** Sets the value of the selected radio button */
134
+ value?: IRadioProps['value'];
135
+ /** Handles radio selection */
136
+ onChange?: IRadioProps['onChange'];
137
+ /** Sets the name used to reference the value of the control */
138
+ name: NonNullable<IRadioProps['name']>;
139
+ /** Centers tile content */
140
+ isCentered?: boolean;
141
+ }
142
+ export interface ITilesTileProps extends HTMLAttributes<HTMLLabelElement> {
143
+ /** Sets the value of the input */
144
+ value?: IRadioProps['value'];
145
+ /** Indicates that the element is not interactive */
146
+ disabled?: IRadioProps['disabled'];
147
+ }
@@ -1,26 +1,26 @@
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 { MutableRefObject } from 'react';
8
- import { IUseFieldPropGetters } from '@zendeskgarden/container-field';
9
- interface IFieldContext extends IUseFieldPropGetters {
10
- getMessageProps: (messageProps: any) => any;
11
- isLabelActive: boolean;
12
- isLabelHovered: boolean;
13
- setIsLabelHovered: (isLabelHovered: boolean) => void;
14
- setIsLabelActive: (isLabelActive: boolean) => void;
15
- multiThumbRangeRef: MutableRefObject<HTMLDivElement | null>;
16
- setHasHint: (hintPresent: boolean) => void;
17
- hasHint: boolean;
18
- setHasMessage: (messagePresent: boolean) => void;
19
- hasMessage: boolean;
20
- }
21
- export declare const FieldContext: import("react").Context<IFieldContext | undefined>;
22
- /**
23
- * Retrieve Field component context
24
- */
25
- declare const useFieldContext: () => IFieldContext | undefined;
26
- export default useFieldContext;
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 { MutableRefObject } from 'react';
8
+ import { IUseFieldPropGetters } from '@zendeskgarden/container-field';
9
+ interface IFieldContext extends IUseFieldPropGetters {
10
+ getMessageProps: (messageProps: any) => any;
11
+ isLabelActive: boolean;
12
+ isLabelHovered: boolean;
13
+ setIsLabelHovered: (isLabelHovered: boolean) => void;
14
+ setIsLabelActive: (isLabelActive: boolean) => void;
15
+ multiThumbRangeRef: MutableRefObject<HTMLDivElement | null>;
16
+ setHasHint: (hintPresent: boolean) => void;
17
+ hasHint: boolean;
18
+ setHasMessage: (messagePresent: boolean) => void;
19
+ hasMessage: boolean;
20
+ }
21
+ export declare const FieldContext: import("react").Context<IFieldContext | undefined>;
22
+ /**
23
+ * Retrieve Field component context
24
+ */
25
+ declare const useFieldContext: () => IFieldContext | undefined;
26
+ export default useFieldContext;
@@ -1,16 +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
- /// <reference types="react" />
8
- interface IFieldsetContext {
9
- isCompact?: boolean;
10
- }
11
- export declare const FieldsetContext: import("react").Context<IFieldsetContext | undefined>;
12
- /**
13
- * Retrieve Fieldset component context
14
- */
15
- declare const useFieldsetContext: () => IFieldsetContext | undefined;
16
- export default useFieldsetContext;
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
+ /// <reference types="react" />
8
+ interface IFieldsetContext {
9
+ isCompact?: boolean;
10
+ }
11
+ export declare const FieldsetContext: import("react").Context<IFieldsetContext | undefined>;
12
+ /**
13
+ * Retrieve Fieldset component context
14
+ */
15
+ declare const useFieldsetContext: () => IFieldsetContext | undefined;
16
+ export default useFieldsetContext;
@@ -1,13 +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
- /// <reference types="react" />
8
- interface IFileContext {
9
- isCompact?: boolean;
10
- }
11
- export declare const FileContext: import("react").Context<IFileContext | undefined>;
12
- declare const useFileContext: () => IFileContext | undefined;
13
- export default useFileContext;
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
+ /// <reference types="react" />
8
+ interface IFileContext {
9
+ isCompact?: boolean;
10
+ }
11
+ export declare const FileContext: import("react").Context<IFileContext | undefined>;
12
+ declare const useFileContext: () => IFileContext | undefined;
13
+ export default useFileContext;
@@ -1,14 +1,14 @@
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
- /// <reference types="react" />
8
- type INPUT_CONTEXT_VALUE = 'checkbox' | 'radio' | 'toggle' | undefined;
9
- export declare const InputContext: import("react").Context<INPUT_CONTEXT_VALUE>;
10
- /**
11
- * Retrieve input component context
12
- */
13
- declare const useInputContext: () => INPUT_CONTEXT_VALUE;
14
- export default useInputContext;
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
+ /// <reference types="react" />
8
+ type INPUT_CONTEXT_VALUE = 'checkbox' | 'radio' | 'toggle' | undefined;
9
+ export declare const InputContext: import("react").Context<INPUT_CONTEXT_VALUE>;
10
+ /**
11
+ * Retrieve input component context
12
+ */
13
+ declare const useInputContext: () => INPUT_CONTEXT_VALUE;
14
+ export default useInputContext;
@@ -1,16 +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
- /// <reference types="react" />
8
- interface IInputGroupContext {
9
- isCompact?: boolean;
10
- }
11
- export declare const InputGroupContext: import("react").Context<IInputGroupContext | undefined>;
12
- /**
13
- * Retrieve InputGroup component context
14
- */
15
- export declare const useInputGroupContext: () => IInputGroupContext | undefined;
16
- export {};
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
+ /// <reference types="react" />
8
+ interface IInputGroupContext {
9
+ isCompact?: boolean;
10
+ }
11
+ export declare const InputGroupContext: import("react").Context<IInputGroupContext | undefined>;
12
+ /**
13
+ * Retrieve InputGroup component context
14
+ */
15
+ export declare const useInputGroupContext: () => IInputGroupContext | undefined;
16
+ export {};
@@ -1,10 +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
- /// <reference types="react" />
8
- import { ITilesProps } from '../types';
9
- export declare const TilesContext: import("react").Context<Pick<ITilesProps, "value" | "onChange" | "name" | "isCentered"> | undefined>;
10
- export declare const useTilesContext: () => Pick<ITilesProps, "value" | "onChange" | "name" | "isCentered"> | undefined;
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
+ /// <reference types="react" />
8
+ import { ITilesProps } from '../types';
9
+ export declare const TilesContext: import("react").Context<Pick<ITilesProps, "value" | "onChange" | "name" | "isCentered"> | undefined>;
10
+ export declare const useTilesContext: () => Pick<ITilesProps, "value" | "onChange" | "name" | "isCentered"> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-forms",
3
- "version": "8.69.2",
3
+ "version": "8.69.4",
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>",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/lodash.debounce": "4.0.7",
40
- "@zendeskgarden/react-theming": "^8.69.2",
40
+ "@zendeskgarden/react-theming": "^8.69.4",
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": "a39f2b421375013a50990d206610e3813abc0bd7"
54
+ "gitHead": "4911fa867a3c7e72f0c78dcea8748893c3070c17"
55
55
  }