@procore/core-react 10.20.0-rc.25 → 10.20.0-rc.26

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 (188) hide show
  1. package/dist/esm/components/AvatarStack/AvatarStack.js +1 -1
  2. package/dist/esm/components/AvatarStack/AvatarStack.js.map +1 -1
  3. package/dist/esm/components/Badge/Badge.d.ts +2 -2
  4. package/dist/esm/components/Badge/Badge.styles.d.ts +3 -2
  5. package/dist/esm/components/Badge/Badge.styles.js.map +1 -1
  6. package/dist/esm/components/Badge/Badge.types.d.ts +5 -0
  7. package/dist/esm/components/Badge/Badge.types.js +2 -0
  8. package/dist/esm/components/Badge/Badge.types.js.map +1 -0
  9. package/dist/esm/components/Badge/index.d.ts +1 -0
  10. package/dist/esm/components/Button/Button.types.d.ts +3 -2
  11. package/dist/esm/components/Calendar/Calendar.types.d.ts +4 -0
  12. package/dist/esm/components/Card/Card.types.d.ts +1 -1
  13. package/dist/esm/components/Checkbox/Checkbox.types.d.ts +20 -0
  14. package/dist/esm/components/DateInput/DateInput.types.d.ts +15 -0
  15. package/dist/esm/components/DateSelect/DateSelect.d.ts +1 -12
  16. package/dist/esm/components/DateSelect/DateSelect.js.map +1 -1
  17. package/dist/esm/components/DateSelect/DateSelect.types.d.ts +12 -0
  18. package/dist/esm/components/DateSelect/DateSelect.types.js +2 -0
  19. package/dist/esm/components/DateSelect/DateSelect.types.js.map +1 -0
  20. package/dist/esm/components/DateSelect/index.d.ts +2 -1
  21. package/dist/esm/components/DateSelect/index.js.map +1 -1
  22. package/dist/esm/components/Dropdown/Dropdown.types.d.ts +37 -0
  23. package/dist/esm/components/DropdownFlyout/DropdownFlyout.helpers.d.ts +6 -6
  24. package/dist/esm/components/DropdownFlyout/DropdownFlyout.helpers.js.map +1 -1
  25. package/dist/esm/components/DropdownFlyout/DropdownFlyout.types.d.ts +44 -8
  26. package/dist/esm/components/Dropzone/Dropzone.types.d.ts +92 -5
  27. package/dist/esm/components/Dropzone/Dropzone.types.js.map +1 -1
  28. package/dist/esm/components/EmptyState/EmptyState.types.d.ts +11 -2
  29. package/dist/esm/components/FileList/FileList.d.ts +1 -17
  30. package/dist/esm/components/FileList/FileList.js.map +1 -1
  31. package/dist/esm/components/FileList/FileList.types.d.ts +16 -0
  32. package/dist/esm/components/FileList/FileList.types.js +2 -0
  33. package/dist/esm/components/FileList/FileList.types.js.map +1 -0
  34. package/dist/esm/components/FileList/index.d.ts +2 -1
  35. package/dist/esm/components/FileList/index.js.map +1 -1
  36. package/dist/esm/components/FileSelect/FileSelect.types.d.ts +132 -0
  37. package/dist/esm/components/FileSelect/GridSource/GridSource.types.d.ts +62 -0
  38. package/dist/esm/components/FileSelect/LocalSource/LocalSource.types.d.ts +103 -0
  39. package/dist/esm/components/FileSelect/TreeSource/TreeSource.types.d.ts +7 -0
  40. package/dist/esm/components/Font/Font.d.ts +2 -11
  41. package/dist/esm/components/Font/Font.js.map +1 -1
  42. package/dist/esm/components/Font/Font.types.d.ts +27 -0
  43. package/dist/esm/components/Font/Font.types.js +2 -0
  44. package/dist/esm/components/Font/Font.types.js.map +1 -0
  45. package/dist/esm/components/Font/index.d.ts +2 -1
  46. package/dist/esm/components/Font/index.js.map +1 -1
  47. package/dist/esm/components/Form/Form.types.d.ts +171 -0
  48. package/dist/esm/components/Icon/Icon.d.ts +2 -9
  49. package/dist/esm/components/Icon/Icon.js.map +1 -1
  50. package/dist/esm/components/Icon/Icon.types.d.ts +26 -0
  51. package/dist/esm/components/Icon/Icon.types.js +2 -0
  52. package/dist/esm/components/Icon/Icon.types.js.map +1 -0
  53. package/dist/esm/components/Icon/index.d.ts +2 -1
  54. package/dist/esm/components/Icon/index.js.map +1 -1
  55. package/dist/esm/components/Menu/Menu.types.d.ts +59 -0
  56. package/dist/esm/components/Modal/Modal.types.d.ts +6 -0
  57. package/dist/esm/components/MultiSelect/MultiSelect.types.d.ts +38 -0
  58. package/dist/esm/components/Notation/Notation.d.ts +2 -11
  59. package/dist/esm/components/Notation/Notation.js +0 -6
  60. package/dist/esm/components/Notation/Notation.js.map +1 -1
  61. package/dist/esm/components/Notation/Notation.types.d.ts +15 -0
  62. package/dist/esm/components/Notation/Notation.types.js +7 -0
  63. package/dist/esm/components/Notation/Notation.types.js.map +1 -0
  64. package/dist/esm/components/Notation/index.d.ts +2 -1
  65. package/dist/esm/components/Notation/index.js.map +1 -1
  66. package/dist/esm/components/NumberInput/NumberInput.types.d.ts +10 -5
  67. package/dist/esm/components/OverlayTrigger/OverlayTrigger.d.ts +33 -0
  68. package/dist/esm/components/OverlayTrigger/OverlayTrigger.js.map +1 -1
  69. package/dist/esm/components/Pagination/Pagination.js +1 -1
  70. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  71. package/dist/esm/components/Pagination/Pagination.types.d.ts +12 -0
  72. package/dist/esm/components/Panel/Panel.types.d.ts +10 -0
  73. package/dist/esm/components/Portal/Portal.d.ts +1 -1
  74. package/dist/esm/components/Portal/Portal.js.map +1 -1
  75. package/dist/esm/components/RadioButton/RadioButton.types.d.ts +9 -0
  76. package/dist/esm/components/Search/Search.types.d.ts +16 -0
  77. package/dist/esm/components/SegmentedController/SegmentedController.types.d.ts +21 -0
  78. package/dist/esm/components/Select/Select.types.d.ts +52 -0
  79. package/dist/esm/components/Spinner/Spinner.types.d.ts +16 -0
  80. package/dist/esm/components/Switch/Switch.types.d.ts +2 -1
  81. package/dist/esm/components/Table/Table.types.d.ts +79 -0
  82. package/dist/esm/components/Tabs/Tabs.types.d.ts +4 -0
  83. package/dist/esm/components/TextEditor/TextEditor.d.ts +1 -15
  84. package/dist/esm/components/TextEditor/TextEditor.js.map +1 -1
  85. package/dist/esm/components/TextEditor/TextEditor.types.d.ts +34 -0
  86. package/dist/esm/components/TextEditor/TextEditor.types.js +2 -0
  87. package/dist/esm/components/TextEditor/TextEditor.types.js.map +1 -0
  88. package/dist/esm/components/TextEditor/index.d.ts +2 -1
  89. package/dist/esm/components/TextEditor/index.js.map +1 -1
  90. package/dist/esm/components/Thumbnail/Thumbnail.types.d.ts +38 -1
  91. package/dist/esm/components/TieredSelect/TieredSelect.types.d.ts +89 -0
  92. package/dist/esm/components/Tile/Tile.types.d.ts +25 -0
  93. package/dist/esm/components/ToggleButton/ToggleButton.types.d.ts +11 -0
  94. package/dist/esm/components/Token/Token.types.d.ts +6 -0
  95. package/dist/esm/components/Tooltip/Tooltip.types.d.ts +12 -1
  96. package/dist/esm/components/Tree/Tree.js.map +1 -1
  97. package/dist/esm/components/Tree/Tree.types.d.ts +73 -0
  98. package/dist/esm/components/Typography/Typography.types.d.ts +40 -0
  99. package/dist/esm/utils/propsTypedoc.d.ts +36 -2
  100. package/dist/esm/utils/propsTypedoc.js +25 -24
  101. package/dist/esm/utils/propsTypedoc.js.map +1 -1
  102. package/dist/esm/utils/types.d.ts +9 -0
  103. package/dist/props/Avatar.json +1 -1
  104. package/dist/props/AvatarStack.json +1 -1
  105. package/dist/props/Badge.json +1 -0
  106. package/dist/props/Banner.json +1 -1
  107. package/dist/props/Breadcrumbs.json +1 -1
  108. package/dist/props/Button.json +1 -1
  109. package/dist/props/Calendar.json +1 -1
  110. package/dist/props/Card.json +1 -1
  111. package/dist/props/Checkbox.json +1 -1
  112. package/dist/props/ContactItem.json +1 -1
  113. package/dist/props/DateInput.json +1 -0
  114. package/dist/props/DateSelect.json +1 -0
  115. package/dist/props/Dropdown.json +1 -1
  116. package/dist/props/DropdownFlyout.json +1 -0
  117. package/dist/props/Dropzone.json +1 -1
  118. package/dist/props/EmptyState.json +1 -1
  119. package/dist/props/FileList.json +1 -0
  120. package/dist/props/FileSelect.json +1 -0
  121. package/dist/props/Font.json +1 -0
  122. package/dist/props/Form.json +1 -0
  123. package/dist/props/GridSource.json +1 -0
  124. package/dist/props/GroupSelect.json +1 -1
  125. package/dist/props/Icon.json +1 -0
  126. package/dist/props/Input.json +1 -0
  127. package/dist/props/Link.json +1 -1
  128. package/dist/props/LocalSource.json +1 -0
  129. package/dist/props/Menu.json +1 -0
  130. package/dist/props/MenuImperative.json +1 -0
  131. package/dist/props/Modal.json +1 -1
  132. package/dist/props/MultiSelect.json +1 -0
  133. package/dist/props/NextGrid.json +1 -1
  134. package/dist/props/Notation.json +1 -0
  135. package/dist/props/NumberInput.json +1 -0
  136. package/dist/props/OverlayTrigger.json +1 -0
  137. package/dist/props/Pagination.json +1 -0
  138. package/dist/props/Panel.json +1 -0
  139. package/dist/props/PillSelect.json +1 -1
  140. package/dist/props/Popover.json +1 -1
  141. package/dist/props/ProgressBar.json +1 -0
  142. package/dist/props/RadioButton.json +1 -1
  143. package/dist/props/Required.json +1 -1
  144. package/dist/props/Search.json +1 -0
  145. package/dist/props/SegmentedController.json +1 -1
  146. package/dist/props/Select.json +1 -0
  147. package/dist/props/Slider.json +1 -1
  148. package/dist/props/Spinner.json +1 -1
  149. package/dist/props/Switch.json +1 -1
  150. package/dist/props/Table.json +1 -0
  151. package/dist/props/Tabs.json +1 -0
  152. package/dist/props/TextArea.json +1 -0
  153. package/dist/props/TextEditor.json +1 -0
  154. package/dist/props/Thumbnail.json +1 -0
  155. package/dist/props/TieredDropdown.json +1 -0
  156. package/dist/props/TieredSelect.json +1 -0
  157. package/dist/props/Tile.json +1 -0
  158. package/dist/props/Toast.json +1 -1
  159. package/dist/props/Token.json +1 -0
  160. package/dist/props/Tooltip.json +1 -1
  161. package/dist/props/Tree.json +1 -1
  162. package/dist/props/TreeSource.json +1 -0
  163. package/dist/props/Typeahead.json +1 -1
  164. package/dist/props/Typography.json +1 -1
  165. package/dist/props/allProps.json +76148 -11669
  166. package/dist/props/utils.json +1 -0
  167. package/package.json +5 -5
  168. package/storybook-static/{0.c62066c2.iframe.bundle.js → 0.0cac026d.iframe.bundle.js} +1 -1
  169. package/storybook-static/{4.045111bc.iframe.bundle.js → 4.cd625f13.iframe.bundle.js} +3 -3
  170. package/storybook-static/{4.045111bc.iframe.bundle.js.LICENSE.txt → 4.cd625f13.iframe.bundle.js.LICENSE.txt} +0 -0
  171. package/storybook-static/4.cd625f13.iframe.bundle.js.map +1 -0
  172. package/storybook-static/{5.5ccefdff.iframe.bundle.js → 5.c0038f0a.iframe.bundle.js} +1 -1
  173. package/storybook-static/{6.bb3e7bce.iframe.bundle.js → 6.39299b0d.iframe.bundle.js} +3 -3
  174. package/storybook-static/{6.bb3e7bce.iframe.bundle.js.LICENSE.txt → 6.39299b0d.iframe.bundle.js.LICENSE.txt} +0 -0
  175. package/storybook-static/6.39299b0d.iframe.bundle.js.map +1 -0
  176. package/storybook-static/{7.de964f69.iframe.bundle.js → 7.e222524e.iframe.bundle.js} +1 -1
  177. package/storybook-static/iframe.html +1 -1
  178. package/storybook-static/main.e8e15bd6.iframe.bundle.js +1 -0
  179. package/storybook-static/{runtime~main.5d7c5fdd.iframe.bundle.js → runtime~main.bdc5a7a6.iframe.bundle.js} +1 -1
  180. package/storybook-static/vendors~main.52655d3c.iframe.bundle.js +3 -0
  181. package/storybook-static/{vendors~main.c3925d0f.iframe.bundle.js.LICENSE.txt → vendors~main.52655d3c.iframe.bundle.js.LICENSE.txt} +0 -0
  182. package/storybook-static/vendors~main.52655d3c.iframe.bundle.js.map +1 -0
  183. package/typedoc.js +12 -13
  184. package/storybook-static/4.045111bc.iframe.bundle.js.map +0 -1
  185. package/storybook-static/6.bb3e7bce.iframe.bundle.js.map +0 -1
  186. package/storybook-static/main.f0cd9943.iframe.bundle.js +0 -1
  187. package/storybook-static/vendors~main.c3925d0f.iframe.bundle.js +0 -3
  188. package/storybook-static/vendors~main.c3925d0f.iframe.bundle.js.map +0 -1
@@ -20,8 +20,28 @@ export interface FormContextAPI {
20
20
  disabled: boolean;
21
21
  enableReinitialize?: boolean;
22
22
  setFieldDifferent: (key: string, different: boolean) => void;
23
+ /**
24
+ * A <a href="https://github.com/jquense/yup">Yup</a> object schema to
25
+ * validate all values.
26
+ * <CodeBlock>
27
+ * {`Yup.object().shape({
28
+ * input_name: Yup.mixed().required()
29
+ * })`}
30
+ * </CodeBlock>
31
+ * This is a great way to get error messages into the component. In
32
+ * addition, if using Yup for required, those fields will automatically
33
+ * get the required asterisk and highlight error.
34
+ */
23
35
  validationSchema?: FormikConfig<unknown>['validationSchema'];
36
+ /**
37
+ * Toggle between modern and traditional form styles. Leave blank for the
38
+ * modern label-above layout.
39
+ */
24
40
  variant: Layout;
41
+ /**
42
+ * Determines show or edit state of form.
43
+ * @default 'create'
44
+ */
25
45
  view: View;
26
46
  }
27
47
  interface FieldMetaProps<Value> extends Omit<FormikFieldMetaProps<Value>, 'error'> {
@@ -49,9 +69,26 @@ export interface FieldAPI<Value> {
49
69
  }
50
70
  export interface FormProps<Values> extends Partial<FormikConfig<Values>> {
51
71
  children: React.ReactNode;
72
+ /**
73
+ * Enable a browser confirmation about losing of unsaved data when the
74
+ * form values are visually different from the initial values. Uses{' '}
75
+ * <Code>window.onbeforeunload</Code>
76
+ */
52
77
  enableConfirmNavigation?: boolean;
78
+ /**
79
+ * Disable all fields at once.
80
+ * @default false
81
+ */
53
82
  disabled?: boolean;
83
+ /**
84
+ * Toggle between modern and traditional form styles. Leave blank for the modern label-above layout.
85
+ *
86
+ */
54
87
  variant?: Layout;
88
+ /**
89
+ * Determines show or edit state of form.
90
+ * @default 'create'
91
+ */
55
92
  view?: View;
56
93
  }
57
94
  export declare type ValueComponentProps<Value = any> = {
@@ -59,20 +96,79 @@ export declare type ValueComponentProps<Value = any> = {
59
96
  };
60
97
  export declare type ComponentWithFieldProp<Value, Props extends ValueComponentProps<Value>> = React.FunctionComponent<Props> | React.ForwardRefExoticComponent<Props> | ((p: Props) => React.ReactNode);
61
98
  export interface BaseFieldProps<Value, ComponentProps extends ValueComponentProps<Value>> {
99
+ /**
100
+ * Customize the input component, either a single component for all views
101
+ * or an object with the keys of the views to render on that particular
102
+ * view. This input component will receive the <Code>field</Code> prop.
103
+ * If using TypeScript, these components will need to extend a specific
104
+ * type from Core React, read more about the{' '}
105
+ * <a href="#typescript-and-as-prop-components">props per view</a>.
106
+ * <br />
107
+ * <br />
108
+ * One of:
109
+ * <br />
110
+ * <Code>ReactComponent</Code>or
111
+ * <Code>
112
+ * {
113
+ * '{ read: ReactComponent, create: ReactComponent, update: ReactComponent }'
114
+ * }
115
+ </Code>
116
+ */
62
117
  as?: ComponentWithFieldProp<Value, ComponentProps> | {
63
118
  [V in View]: ComponentWithFieldProp<Value, ComponentProps>;
64
119
  };
120
+ /**
121
+ * A subcomponent to render on a particular view.
122
+ * <br />
123
+ * <br />
124
+ * One or all of:
125
+ * <br />
126
+ * <Code>Form.X.Create, Form.X.Read, Form.X.Update</Code>
127
+ */
65
128
  children?: ((field: FieldAPI<Value>) => React.ReactNode) | React.ReactNode;
129
+ /**
130
+ * Starting location of column. For traditional variant, this does not exist
131
+ * and is not necessary.
132
+ * */
66
133
  colStart?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
134
+ /**
135
+ * Width of column. For traditional variant, will be either 6 or 12.
136
+ * @default 6
137
+ */
67
138
  colWidth?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
68
139
  ['data-qa']?: string;
140
+ /**
141
+ * Specify disabled. Field disabled replaces the overall Form disabled state.
142
+ */
69
143
  disabled?: boolean;
70
144
  error?: boolean | string;
71
145
  label?: string;
146
+ /**
147
+ * Key path in store. Accepts <Code>bracket[notation]</Code> or{' '}
148
+ * <Code>dot.notation</Code>.
149
+ */
72
150
  name: string;
151
+ /**
152
+ * The required asterisk if not using Yup <Code>required</Code>
153
+ * <CodeBlock>
154
+ * {`<Form
155
+ * validationSchema={Yup.object().shape({
156
+ * input_name: Yup.mixed().required(),
157
+ * })}>`}
158
+ * </CodeBlock>
159
+ */
73
160
  required?: boolean;
74
161
  tooltip?: TooltipProps['overlay'];
162
+ /**
163
+ * The validate function from Formik for single field validation.
164
+ * <CodeBlock>
165
+ * {`(value: Value = any) => undefined | string | Promise<Value>`}
166
+ * </CodeBlock>
167
+ */
75
168
  validate?: FieldValidator;
169
+ /**
170
+ * Determines show or edit state of field.
171
+ */
76
172
  view?: View;
77
173
  }
78
174
  export interface TraditionalBaseFieldProps<Value, ComponentProps extends ValueComponentProps<Value>> extends Omit<BaseFieldProps<Value, ComponentProps>, 'colWidth' | 'colStart'> {
@@ -82,7 +178,29 @@ export interface FieldProps<Value> extends Omit<BaseFieldProps<Value, ValueCompo
82
178
  children?: React.ReactElement<BaseFieldProps<Value, ValueComponentProps<Value>>> | React.ReactElement<BaseFieldProps<Value, ValueComponentProps<Value>>>[];
83
179
  }
84
180
  export declare type OptionList<OptionShape = any> = {
181
+ /**
182
+ * <div>
183
+ * The id of an option{' '}
184
+ * <Code>{'(option: OptionItem) => string | number'}</Code>
185
+ * </div>
186
+ * <br />
187
+ * <div>
188
+ * Default:
189
+ * <Code>{'(option: OptionItem) => option.id'}</Code>
190
+ * </div>
191
+ */
85
192
  getId: (option: OptionShape) => string | number;
193
+ /**
194
+ * <div>
195
+ * The display label of an option
196
+ * <Code>{'(option: OptionItem) => string'}</Code>
197
+ * </div>
198
+ * <br />
199
+ * <div>
200
+ * Default:
201
+ * <Code>{'(option: OptionItem) => option.label || option.name'}</Code>
202
+ * </div>
203
+ */
86
204
  getLabel: (option: OptionShape) => string;
87
205
  options?: OptionShape[];
88
206
  };
@@ -152,21 +270,74 @@ export declare type FieldSelectGroupHeader = FieldSelectGroupItem & {
152
270
  export interface GroupedOptionsConfig<OptionItem, GroupItem> extends OptionList<OptionItem> {
153
271
  comparator?: (query: string, value: string) => boolean;
154
272
  getGroup: (option: OptionItem) => number | string;
273
+ /**
274
+ * <div>
275
+ * The id of group{' '}
276
+ * <Code>{'(group: GroupItem) => string | number'}</Code>
277
+ * </div>
278
+ * <br />
279
+ * <div>
280
+ * Default:
281
+ * <Code>{'(group) => group.id'}</Code>
282
+ * </div>
283
+ */
155
284
  groupGetId: (group: GroupItem) => number | string;
156
285
  optgroups?: GroupItem[];
157
286
  value?: OptionItem;
158
287
  }
159
288
  export interface FieldSelectComponentProps<Value = FieldSelectValueType, OptionItem = FieldSelectOptionItem, GroupItem = FieldSelectGroupItem> extends ValueComponentProps<Value>, Partial<OptionList<OptionItem>>, Omit<SelectProps, 'onClear' | 'onSearch' | 'error' | 'children'> {
289
+ /**
290
+ * Callback for each entry in <Code>options</Code> to define relation to
291
+ * group in <Code>optgroups</Code>
292
+ * <Code>{'(option: OptionItem) => string | number'}</Code>
293
+ * */
160
294
  getGroup?: (option: OptionItem) => number | string;
161
295
  groupGetId?: (group: GroupItem) => number | string;
296
+ /**
297
+ * <div>
298
+ * The display label of a group
299
+ * <Code>{'(group: GroupItem) => string'}</Code>
300
+ * </div>
301
+ * <br />
302
+ * <div>
303
+ * Default:
304
+ * <Code>{'(group: GroupItem) => group.label || group.name'}</Code>
305
+ * </div>
306
+ */
162
307
  groupGetLabel?: (group: GroupItem) => string;
308
+ /**
309
+ * Callback for rendering header for each entry in <Code>optgroups</Code>
310
+ * <Code>{'(group: GroupItem) => React.ReactNode'}</Code>
311
+ */
163
312
  groupHeaderRenderer?: (group: GroupItem) => React.ReactNode;
313
+ /**
314
+ * If nothing is selected, suggest this option. From{' '}
315
+ * <Code>{'Select.Option suggested'}</Code>.
316
+ * <Code>{'(option: OptionItem) => boolean'}</Code>
317
+ */
164
318
  isSuggestedOption?: (option: OptionItem) => boolean;
319
+ /**
320
+ * Array of available option groups
321
+ */
165
322
  optgroups?: GroupItem[];
323
+ /**
324
+ * Callback for rendering each <Code>option</Code>
325
+ * <Code>{'(option: OptionItem) => React.ReactNode'}</Code>
326
+ */
166
327
  optionRenderer?: (option: OptionItem) => React.ReactNode;
167
328
  onBlur?: (e: React.FocusEvent<HTMLDivElement>) => void;
329
+ /**
330
+ * Callback for when cleared. Default enabled, has clear icon.
331
+ */
168
332
  onClear?: false | SelectButtonProps['onClear'];
333
+ /**
334
+ * Callback for when searching. Default enabled, has seach bar in menu.
335
+ */
169
336
  onSearch?: false | SelectProps['onSearch'];
337
+ /**
338
+ * <div>Customize how search works</div>
339
+ * <Code>{'(query: string, value: string) => boolean'}</Code>
340
+ */
170
341
  searchComparator?: (query: string, value: string) => boolean;
171
342
  }
172
343
  export interface FieldSelectProps<Value = FieldSelectValueType, OptionItem = FieldSelectOptionItem, GroupItem = FieldSelectGroupItem> extends FieldProps<Value>, Partial<OptionList<OptionItem>>, Pick<FieldSelectComponentProps<Value, OptionItem, GroupItem>, 'getGroup' | 'groupGetId' | 'groupGetLabel' | 'groupHeaderRenderer' | 'isSuggestedOption' | 'onBlur' | 'onClear' | 'optgroups' | 'onSearch' | 'optionRenderer' | 'searchComparator'>, Omit<SelectProps, 'onClear' | 'onSearch' | 'error' | 'children' | 'label'> {
@@ -1,13 +1,6 @@
1
1
  import React from 'react';
2
- import { Props, Size, SpanAttributes } from '../../utils/types';
3
- export declare type IconSize = Extract<Size, 'inherit' | 'sm' | 'md' | 'lg'>;
4
- declare type IconVariant = '' | 'hover-circle' | 'hover-fill';
5
- export interface IconProps extends Props {
6
- clickable?: boolean;
7
- icon: string;
8
- size?: IconSize;
9
- variant?: IconVariant;
10
- }
2
+ import { SpanAttributes } from '../../utils/types';
3
+ import { IconProps } from './Icon.types';
11
4
  /**
12
5
  * @deprecated The `Icon` component has been deprecated and will be removed in a future version.
13
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,MAAM,MAAM,6CAA6C,CAAA;AAChE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,IAAM,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAE7C,IAAM,SAAS,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAA;AAmBhE,IAAM,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;AAElC,IAAM,KAAK,GAAgC;IACzC,OAAO,EAAE,SAAS;IAClB,EAAE,EAAE,MAAM;IACV,EAAE,EA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,uCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,MAAM;gBAEJ,iBAAiB,EAAE,SAAS;;YAC5B,GAAC,WAAS,OAAS,IAAG,OAAO;iBAE/B,SAAS,CACV,0BACoB,MAAM,IACvB,KAAK;QAET,oBAAC,OAAO,IAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,GAAI,CACzC,CACR,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAA;AAEzB,eAAe,IAAI,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { Props, Size } from '../../utils/types';
2
+ export declare type IconSize = Extract<Size, 'inherit' | 'sm' | 'md' | 'lg'>;
3
+ declare type IconVariant = '' | 'hover-circle' | 'hover-fill';
4
+ export interface SVGIconProps {
5
+ path: string;
6
+ fill?: string;
7
+ size: IconSize;
8
+ }
9
+ export interface IconProps extends Props {
10
+ clickable?: boolean;
11
+ /**
12
+ * The core-icon to show
13
+ */
14
+ icon: string;
15
+ /**
16
+ * The size of the icon
17
+ * @default 'sm'
18
+ */
19
+ size?: IconSize;
20
+ /**
21
+ * The icon variant
22
+ * @default ''
23
+ */
24
+ variant?: IconVariant;
25
+ }
26
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Icon.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.types.js","sourceRoot":"","sources":["../../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
- export { Icon as default, Icon, IconProps } from './Icon';
1
+ export { Icon as default, Icon } from './Icon';
2
+ export { IconProps } from './Icon.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA"}
@@ -17,23 +17,43 @@ export interface NavigationProps extends Props {
17
17
  export interface ItemProps extends NavigationProps {
18
18
  children?: React.ReactNode;
19
19
  className?: string;
20
+ /**
21
+ * Value which can be passed around various callback functions. Can be anything!
22
+ */
20
23
  item?: any;
21
24
  onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => any;
25
+ /**
26
+ * Is the item selected
27
+ * @default false
28
+ */
22
29
  selected?: boolean;
23
30
  suggested?: boolean;
24
31
  }
25
32
  export interface GroupProps {
26
33
  className?: string;
34
+ /**
35
+ * Can the group item be clicked
36
+ */
27
37
  clickable?: boolean;
38
+ /**
39
+ * Value which can be passed around various callback functions. Can be anything!
40
+ */
28
41
  item?: any;
29
42
  }
30
43
  export interface OptionsProps {
31
44
  children?: React.ReactNode;
32
45
  className?: string;
33
46
  padding?: string;
47
+ /**
48
+ * @default true
49
+ */
34
50
  scrollable?: boolean;
35
51
  }
36
52
  export interface MenuSearchProps extends SearchProps, Props {
53
+ /**
54
+ * The i18n key to use for the menu search's configurable strings. Defaults to
55
+ * using the core library's default strings.
56
+ */
37
57
  i18nScope?: string;
38
58
  }
39
59
  export interface HeaderProps extends Props {
@@ -42,6 +62,12 @@ export interface HeaderProps extends Props {
42
62
  export interface FooterProps extends Omit<BoxProps, 'as'> {
43
63
  }
44
64
  export interface MenuHookConfig {
65
+ /**
66
+ * @deprecated
67
+ * <CodeBlock>
68
+ * (element: any, index?: number, list?: any[]) => boolean
69
+ * </CodeBlock>
70
+ */
45
71
  isSelectable?: MenuHook['isSelectable'];
46
72
  keyHandlerRef?: React.RefObject<HTMLElement>;
47
73
  multiple?: boolean;
@@ -56,18 +82,51 @@ export interface MenuHook {
56
82
  onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
57
83
  };
58
84
  highlighted: React.MutableRefObject<HTMLDivElement | null>;
85
+ /**
86
+ * @deprecated
87
+ * <CodeBlock>
88
+ * (element: any, index?: number, list?: any[]) => boolean
89
+ * </CodeBlock>
90
+ */
59
91
  isSelectable: ElementTypeChecker;
60
92
  listNavigation: ListNavigationApi;
61
93
  multiple: boolean;
62
94
  onScrollBottom?: (e: Event) => void;
95
+ /**
96
+ * @default true
97
+ */
63
98
  scrollable: boolean;
64
99
  search: SearchHook;
65
100
  selectItem: (selection: Selection) => void;
66
101
  }
67
102
  export interface MenuProps extends Props, Omit<OptionsProps, 'padding'> {
103
+ /**
104
+ * @deprecated
105
+ * <CodeBlock>
106
+ * (element: any, index?: number, list?: any[]) => boolean
107
+ * </CodeBlock>
108
+ */
68
109
  isSelectable?: ElementTypeChecker;
110
+ /**
111
+ * Ref object which will get the key handler listeners
112
+ */
69
113
  keyHandlerRef?: React.RefObject<HTMLElement>;
70
114
  onScrollBottom?: (e: Event) => void;
115
+ /**
116
+ * <div>Callback for selecting an item from the menu</div>
117
+ * <CodeBlock>
118
+ * {
119
+ * '({ event: ReactEvent, item: Menu.Item.props.item, group: bool }) => void'
120
+ * }
121
+ * </CodeBlock>
122
+ * <div>
123
+ * <Code>item</Code> will be the <Code>item</Code> prop supplied to the{' '}
124
+ * <Code>Item</Code> component
125
+ * <br />
126
+ * <Code>group</Code> will be <Code>true</Code> if the clicked item was
127
+ * a group label
128
+ * </div>
129
+ */
71
130
  onSelect?: (selection: Selection) => any;
72
131
  usingHook?: MenuHook;
73
132
  UNSAFE_closesOnSelect?: boolean;
@@ -26,7 +26,13 @@ export interface ModalContainerProps extends Props {
26
26
  width?: ModalWidth;
27
27
  }
28
28
  export interface ConfirmModalProps extends ModalProps {
29
+ /**
30
+ * Headline message
31
+ */
29
32
  headline?: string;
33
+ /**
34
+ * The dismiss onClick callback
35
+ */
30
36
  onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
31
37
  }
32
38
  export interface ModalCloseableHeaderProps extends Props {
@@ -78,11 +78,36 @@ export interface MultiSelectProps {
78
78
  afterShow?: OverlayTriggerProps['afterShow'];
79
79
  beforeHide?: OverlayTriggerProps['beforeHide'];
80
80
  beforeShow?: OverlayTriggerProps['beforeShow'];
81
+ /**
82
+ * Callback for each entry in <Code>options</Code> to define relation to
83
+ * group in <Code>groups</Code>
84
+ * <CodeBlock>{'(option: OptionItem) => React.ReactNode'}</CodeBlock>
85
+ */
81
86
  getGroup?: MultiSelectConfig['getGroup'];
87
+ /**
88
+ * Callback for each entry in <Code>options</Code> for keying and
89
+ * optimizations
90
+ * <CodeBlock>{'(option: OptionItem) => number | string'}</CodeBlock>*
91
+ */
82
92
  getId?: MultiSelectConfig['getId'];
93
+ /**
94
+ * Callback for each entry in <Code>options</Code> to generate the token
95
+ * label.
96
+ * <CodeBlock>{'(option: OptionItem) => string'}</CodeBlock>
97
+ */
83
98
  getLabel?: MultiSelectConfig['getLabel'];
99
+ /**
100
+ * Callback for when a user types into the multiselect input
101
+ <CodeBlock>{'(event: KeyboardEvent) => void'}</CodeBlock>
102
+ */
84
103
  onSearch?: MultiSelectConfig['onSearch'];
104
+ /**
105
+ * Array of available option groups
106
+ */
85
107
  optgroups?: MultiSelectConfig['optgroups'];
108
+ /**
109
+ * Array of available options
110
+ */
86
111
  options?: MultiSelectConfig['options'];
87
112
  onScrollBottom?: MenuProps['onScrollBottom'];
88
113
  block?: boolean;
@@ -91,6 +116,10 @@ export interface MultiSelectProps {
91
116
  isOptionDisabled?: (option: OptionItem) => boolean;
92
117
  emptyMessage?: string;
93
118
  error?: boolean;
119
+ /**
120
+ * Callback for rendering header for each entry in <Code>groups</Code>
121
+ * <CodeBlock>{'(group: GroupItem) => React.ReactNode'}</CodeBlock>
122
+ */
94
123
  groupHeaderRenderer?: (group: GroupItem) => React.ReactNode;
95
124
  loading?: boolean;
96
125
  onBlur?: React.SelectHTMLAttributes<HTMLDivElement>['onBlur'];
@@ -101,6 +130,15 @@ export interface MultiSelectProps {
101
130
  placement?: DropdownPlacement;
102
131
  qa?: QaTags;
103
132
  tabIndex?: number;
133
+ /**
134
+ * Callback for rendering each selected value
135
+ * <CodeBlock>
136
+ * {'(props: TokenRendererProps) => React.ReactNode'}
137
+ * </CodeBlock>
138
+ */
104
139
  tokenRenderer?: (props: TokenRendererProps) => React.ReactNode;
140
+ /**
141
+ * Array of the currently selected values
142
+ */
105
143
  value?: OptionItem[];
106
144
  }
@@ -1,15 +1,6 @@
1
1
  import React from 'react';
2
- import { Props, SpanAttributes } from '../../utils/types';
3
- export declare const notationVariant: {
4
- readonly error: "error";
5
- readonly none: "";
6
- readonly pagination: "pagination";
7
- readonly required: "required";
8
- };
9
- declare type NotationVariant = typeof notationVariant[keyof typeof notationVariant];
10
- export interface NotationProps extends Props {
11
- variant?: NotationVariant;
12
- }
2
+ import { SpanAttributes } from '../../utils/types';
3
+ import { NotationProps } from './Notation.types';
13
4
  /**
14
5
  * @deprecated Please use `<Typography italic />` component for plain text
15
6
  * notations or the `<Required />` component for required notations. `Notation`
@@ -29,12 +29,6 @@ import styled from 'styled-components';
29
29
  import { useDeprecation } from '../../effects/Deprecation';
30
30
  import { colors } from '../../styles/colors';
31
31
  import { getTypographyIntent } from '../Typography/Typography.styles';
32
- export var notationVariant = {
33
- error: 'error',
34
- none: '',
35
- pagination: 'pagination',
36
- required: 'required',
37
- };
38
32
  var variantColorMap = {
39
33
  required: 'orange50',
40
34
  error: 'red50',
@@ -1 +1 @@
1
- {"version":3,"file":"Notation.js","sourceRoot":"","sources":["../../../../src/components/Notation/Notation.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAA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
+ readonly pagination: "pagination";
6
+ readonly required: "required";
7
+ };
8
+ declare type NotationVariant = typeof notationVariant[keyof typeof notationVariant];
9
+ export interface NotationProps extends Props {
10
+ /**
11
+ * The notation color variant
12
+ */
13
+ variant?: NotationVariant;
14
+ }
15
+ export {};
@@ -0,0 +1,7 @@
1
+ export var notationVariant = {
2
+ error: 'error',
3
+ none: '',
4
+ pagination: 'pagination',
5
+ required: 'required',
6
+ };
7
+ //# sourceMappingURL=Notation.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notation.types.js","sourceRoot":"","sources":["../../../../src/components/Notation/Notation.types.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACZ,CAAA"}
@@ -1 +1,2 @@
1
- export { Notation as default, Notation, NotationProps } from './Notation';
1
+ export { Notation as default, Notation } from './Notation';
2
+ export { NotationProps } from './Notation.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Notation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Notation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
@@ -11,7 +11,7 @@ export interface ValueChange {
11
11
  parsedNumber: number | null;
12
12
  }
13
13
  export declare type InputValue = string | number | undefined | null;
14
- export interface QaTags {
14
+ interface QaTags {
15
15
  wrapper?: string;
16
16
  increment?: string;
17
17
  decrement?: string;
@@ -27,9 +27,13 @@ export interface NumberInputProps extends Omit<InputProps, 'value' | 'defaultVal
27
27
  */
28
28
  defaultValue?: InputValue;
29
29
  /**
30
- * `none` prevents from adding zeros to match given `decimalScale`.
31
- * `always` automatically adds zeros to match given `decimalScale`.
32
- * `onBlur` automatically adds zeros to match given `decimalScale` when input has lost focus.
30
+ * <Code>none</Code> prevents from adding zeros to match given
31
+ * <Code>decimalScale</Code>.<br /> <Code>always</Code> automatically adds
32
+ * zeros to match given
33
+ * <Code>decimalScale</Code>. <br />
34
+ * <Code>onBlur</Code> automatically adds zeros to match given{' '}
35
+ * <Code>decimalScale</Code> when input has lost focus.
36
+ * @default 'none'
33
37
  */
34
38
  fillDecimalScale?: FillDecimalScaleVariant;
35
39
  /**
@@ -46,7 +50,7 @@ export interface NumberInputProps extends Omit<InputProps, 'value' | 'defaultVal
46
50
  */
47
51
  prefix?: string;
48
52
  /**
49
- * A stepping interval which is used in incremeter. Zero value turns off incrementer.
53
+ * A stepping interval which is used in incrementer. Zero value turns off incrementer.
50
54
  * @defaultValue 0
51
55
  */
52
56
  step?: number;
@@ -78,3 +82,4 @@ export interface CursorPosition {
78
82
  selectionEnd: number;
79
83
  selection: string;
80
84
  }
85
+ export {};