@zendeskgarden/react-forms 9.0.0-next.1 → 9.0.0-next.10

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 (135) hide show
  1. package/README.md +4 -4
  2. package/dist/esm/elements/Checkbox.js +97 -0
  3. package/dist/esm/elements/FileUpload.js +75 -0
  4. package/dist/esm/elements/Input.js +93 -0
  5. package/dist/esm/elements/MediaInput.js +156 -0
  6. package/dist/esm/elements/Radio.js +81 -0
  7. package/dist/esm/elements/Range.js +108 -0
  8. package/dist/esm/elements/Select.js +97 -0
  9. package/dist/esm/elements/Textarea.js +170 -0
  10. package/dist/esm/elements/Toggle.js +81 -0
  11. package/dist/esm/elements/common/Field.js +97 -0
  12. package/dist/esm/elements/common/Fieldset.js +73 -0
  13. package/dist/esm/elements/common/Hint.js +92 -0
  14. package/dist/esm/elements/common/Label.js +134 -0
  15. package/dist/esm/elements/common/Legend.js +63 -0
  16. package/dist/esm/elements/common/Message.js +113 -0
  17. package/dist/esm/elements/faux-input/FauxInput.js +100 -0
  18. package/dist/esm/elements/faux-input/components/EndIcon.js +68 -0
  19. package/dist/esm/elements/faux-input/components/StartIcon.js +68 -0
  20. package/dist/esm/elements/file-list/FileList.js +66 -0
  21. package/dist/esm/elements/file-list/components/Close.js +75 -0
  22. package/dist/esm/elements/file-list/components/Delete.js +75 -0
  23. package/dist/esm/elements/file-list/components/File.js +94 -0
  24. package/dist/esm/elements/file-list/components/Item.js +64 -0
  25. package/dist/esm/elements/file-list/utils.js +50 -0
  26. package/dist/esm/elements/input-group/InputGroup.js +75 -0
  27. package/dist/esm/elements/tiles/Tiles.js +64 -0
  28. package/dist/esm/elements/tiles/components/Description.js +64 -0
  29. package/dist/esm/elements/tiles/components/Icon.js +64 -0
  30. package/dist/esm/elements/tiles/components/Label.js +73 -0
  31. package/dist/esm/elements/tiles/components/Tile.js +91 -0
  32. package/dist/esm/index.js +26 -0
  33. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-circle-stroke.svg.js +33 -0
  34. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-sm-fill.svg.js +29 -0
  35. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/circle-sm-fill.svg.js +27 -0
  36. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/dash-fill.svg.js +27 -0
  37. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-document-stroke.svg.js +27 -0
  38. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-error-stroke.svg.js +27 -0
  39. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-generic-stroke.svg.js +26 -0
  40. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-image-stroke.svg.js +33 -0
  41. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-pdf-stroke.svg.js +35 -0
  42. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-presentation-stroke.svg.js +26 -0
  43. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-spreadsheet-stroke.svg.js +27 -0
  44. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-zip-stroke.svg.js +27 -0
  45. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/trash-stroke.svg.js +27 -0
  46. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/x-stroke.svg.js +26 -0
  47. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js +37 -0
  48. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js +32 -0
  49. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-circle-stroke.svg.js +33 -0
  50. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +25 -0
  51. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/circle-sm-fill.svg.js +27 -0
  52. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-document-stroke.svg.js +27 -0
  53. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-error-stroke.svg.js +27 -0
  54. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-generic-stroke.svg.js +26 -0
  55. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-image-stroke.svg.js +32 -0
  56. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-pdf-stroke.svg.js +35 -0
  57. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-presentation-stroke.svg.js +26 -0
  58. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-spreadsheet-stroke.svg.js +27 -0
  59. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-zip-stroke.svg.js +27 -0
  60. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/trash-stroke.svg.js +27 -0
  61. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +26 -0
  62. package/dist/esm/styled/checkbox/StyledCheckHint.js +23 -0
  63. package/dist/esm/styled/checkbox/StyledCheckInput.js +34 -0
  64. package/dist/esm/styled/checkbox/StyledCheckLabel.js +23 -0
  65. package/dist/esm/styled/checkbox/StyledCheckMessage.js +23 -0
  66. package/dist/esm/styled/checkbox/StyledCheckSvg.js +25 -0
  67. package/dist/esm/styled/checkbox/StyledDashSvg.js +25 -0
  68. package/dist/esm/styled/common/StyledField.js +22 -0
  69. package/dist/esm/styled/common/StyledFieldset.js +24 -0
  70. package/dist/esm/styled/common/StyledHint.js +22 -0
  71. package/dist/esm/styled/common/StyledLabel.js +23 -0
  72. package/dist/esm/styled/common/StyledLegend.js +24 -0
  73. package/dist/esm/styled/common/StyledMessage.js +40 -0
  74. package/dist/esm/styled/common/StyledMessageIcon.js +45 -0
  75. package/dist/esm/styled/file-list/StyledFile.js +76 -0
  76. package/dist/esm/styled/file-list/StyledFileClose.js +22 -0
  77. package/dist/esm/styled/file-list/StyledFileDelete.js +23 -0
  78. package/dist/esm/styled/file-list/StyledFileIcon.js +22 -0
  79. package/dist/esm/styled/file-list/StyledFileList.js +22 -0
  80. package/dist/esm/styled/file-list/StyledFileListItem.js +24 -0
  81. package/dist/esm/styled/file-upload/StyledFileUpload.js +47 -0
  82. package/dist/esm/styled/input-group/StyledInputGroup.js +35 -0
  83. package/dist/esm/styled/radio/StyledRadioHint.js +24 -0
  84. package/dist/esm/styled/radio/StyledRadioInput.js +61 -0
  85. package/dist/esm/styled/radio/StyledRadioLabel.js +30 -0
  86. package/dist/esm/styled/radio/StyledRadioMessage.js +24 -0
  87. package/dist/esm/styled/radio/StyledRadioSvg.js +25 -0
  88. package/dist/esm/styled/range/StyledRangeInput.js +160 -0
  89. package/dist/esm/styled/select/StyledSelect.js +36 -0
  90. package/dist/esm/styled/select/StyledSelectWrapper.js +24 -0
  91. package/dist/esm/styled/text/StyledTextFauxInput.js +61 -0
  92. package/dist/esm/styled/text/StyledTextInput.js +107 -0
  93. package/dist/esm/styled/text/StyledTextMediaFigure.js +43 -0
  94. package/dist/esm/styled/text/StyledTextMediaInput.js +24 -0
  95. package/dist/esm/styled/text/StyledTextarea.js +33 -0
  96. package/dist/esm/styled/tiles/StyledTile.js +55 -0
  97. package/dist/esm/styled/tiles/StyledTileDescription.js +34 -0
  98. package/dist/esm/styled/tiles/StyledTileIcon.js +38 -0
  99. package/dist/esm/styled/tiles/StyledTileInput.js +18 -0
  100. package/dist/esm/styled/tiles/StyledTileLabel.js +36 -0
  101. package/dist/esm/styled/toggle/StyledToggleHint.js +24 -0
  102. package/dist/esm/styled/toggle/StyledToggleInput.js +40 -0
  103. package/dist/esm/styled/toggle/StyledToggleLabel.js +28 -0
  104. package/dist/esm/styled/toggle/StyledToggleMessage.js +25 -0
  105. package/dist/esm/styled/toggle/StyledToggleSvg.js +23 -0
  106. package/dist/esm/types/index.js +11 -0
  107. package/dist/esm/utils/useFieldContext.js +15 -0
  108. package/dist/esm/utils/useFieldsetContext.js +15 -0
  109. package/dist/esm/utils/useFileContext.js +14 -0
  110. package/dist/esm/utils/useInputContext.js +14 -0
  111. package/dist/esm/utils/useInputGroupContext.js +14 -0
  112. package/dist/esm/utils/useTilesContext.js +14 -0
  113. package/dist/index.cjs.js +443 -654
  114. package/dist/typings/elements/common/Field.d.ts +10 -9
  115. package/dist/typings/elements/common/Hint.d.ts +2 -0
  116. package/dist/typings/elements/common/Label.d.ts +2 -0
  117. package/dist/typings/elements/common/Message.d.ts +2 -0
  118. package/dist/typings/elements/faux-input/FauxInput.d.ts +1 -11
  119. package/dist/typings/elements/faux-input/components/EndIcon.d.ts +1 -1
  120. package/dist/typings/elements/faux-input/components/StartIcon.d.ts +1 -1
  121. package/dist/typings/index.d.ts +3 -4
  122. package/dist/typings/styled/file-list/StyledFileIcon.d.ts +2 -2
  123. package/dist/typings/styled/index.d.ts +0 -4
  124. package/dist/typings/styled/select/StyledSelect.d.ts +1 -1
  125. package/dist/typings/styled/text/StyledTextMediaFigure.d.ts +7 -7
  126. package/dist/typings/styled/text/StyledTextarea.d.ts +1 -1
  127. package/dist/typings/types/index.d.ts +3 -30
  128. package/dist/typings/utils/useFieldContext.d.ts +1 -2
  129. package/package.json +6 -7
  130. package/dist/index.esm.js +0 -2921
  131. package/dist/typings/elements/MultiThumbRange.d.ts +0 -14
  132. package/dist/typings/styled/range/StyledSlider.d.ts +0 -10
  133. package/dist/typings/styled/range/StyledSliderThumb.d.ts +0 -13
  134. package/dist/typings/styled/range/StyledSliderTrack.d.ts +0 -14
  135. 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, { HTMLAttributes } from 'react';
8
- /**
9
- * @deprecated
10
- */
11
- export interface IFieldProps extends HTMLAttributes<HTMLDivElement> {
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, { HTMLAttributes } from '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, 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, isRotated, ...props }: IFauxInputIconProps): React.JSX.Element;
14
14
  displayName: string;
15
15
  };
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  /** Common */
8
- export { Field, type IFieldProps } from './elements/common/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, type IIconProps } from './elements/faux-input/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 IMultiThumbRangeProps, type IInputGroupProps, type ITilesProps, type ITilesTileProps, type IFauxInputProps, type IFauxInputIconProps as IFauxInputStartIconProps, type IFauxInputIconProps as IFauxInputEndIconProps, type IMediaInputProps } from './types';
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,8 @@
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 from 'react';
8
- export declare const StyledFileIcon: import("styled-components").StyledComponent<({ children, isCompact, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
7
+ /// <reference types="react" />
8
+ export declare const StyledFileIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
9
9
  'data-garden-id': string;
10
10
  'data-garden-version': string;
11
11
  }, "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
  */
@@ -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">;
@@ -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, position, isHovered, isFocused, isDisabled, isRotated, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
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" | "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 */
@@ -102,33 +102,6 @@ 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
106
  /** Sets the value of the selected radio button */
134
107
  value?: IRadioProps['value'];
@@ -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 { MutableRefObject } from 'react';
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.1",
3
+ "version": "9.0.0-next.10",
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.esm.js",
13
+ "module": "dist/esm/index.js",
14
14
  "files": [
15
15
  "dist"
16
16
  ],
@@ -22,7 +22,6 @@
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
27
  "polished": "^4.0.0",
@@ -30,14 +29,14 @@
30
29
  "react-merge-refs": "^2.0.0"
31
30
  },
32
31
  "peerDependencies": {
33
- "@zendeskgarden/react-theming": "^8.67.0",
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.0"
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.1",
39
+ "@zendeskgarden/react-theming": "^9.0.0-next.10",
41
40
  "@zendeskgarden/svg-icons": "7.0.0",
42
41
  "react-dropzone": "14.2.3"
43
42
  },
@@ -51,5 +50,5 @@
51
50
  "access": "public"
52
51
  },
53
52
  "zendeskgarden:src": "src/index.ts",
54
- "gitHead": "a9e4e776bf6ad8860a198fc24f27b2b5cbc83320"
53
+ "gitHead": "818e6100aa6676af7e972198b82516d330307d60"
55
54
  }