@procore/core-react 12.13.0 → 12.15.0

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 (315) hide show
  1. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  2. package/dist/Avatar/Avatar.styles.js +5 -5
  3. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  4. package/dist/Badge/Badge.styles.js +2 -2
  5. package/dist/Banner/Banner.js +3 -3
  6. package/dist/Banner/Banner.js.map +1 -1
  7. package/dist/Banner/Banner.styles.d.ts +3 -3
  8. package/dist/Banner/Banner.styles.js +16 -16
  9. package/dist/Banner/Banner.styles.js.map +1 -1
  10. package/dist/Box/Box.styles.js +1 -1
  11. package/dist/Breadcrumbs/Breadcrumbs.js +5 -2
  12. package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -1
  13. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  14. package/dist/Button/Button.styles.js +5 -5
  15. package/dist/Calendar/Calendar.styles.js +8 -8
  16. package/dist/Card/Card.styles.js +1 -1
  17. package/dist/Checkbox/Checkbox.styles.js +6 -6
  18. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  19. package/dist/ContactItem/ContactItem.styles.js +5 -5
  20. package/dist/Content/Content.styles.js +2 -2
  21. package/dist/DateInput/DateInput.js +1 -1
  22. package/dist/DateInput/DateInput.js.map +1 -1
  23. package/dist/DateInput/DateInput.styles.d.ts +1 -1
  24. package/dist/DateInput/DateInput.styles.js +6 -6
  25. package/dist/DateInput/DateInput.styles.js.map +1 -1
  26. package/dist/DetailPage/DetailPage.styles.js +7 -7
  27. package/dist/DetailPageTemplate/DetailPageTemplate.d.ts +11 -0
  28. package/dist/DetailPageTemplate/DetailPageTemplate.js +38 -0
  29. package/dist/DetailPageTemplate/DetailPageTemplate.js.map +1 -0
  30. package/dist/DetailPageTemplate/DetailPageTemplate.types.d.ts +13 -0
  31. package/dist/DetailPageTemplate/DetailPageTemplate.types.js +2 -0
  32. package/dist/DetailPageTemplate/DetailPageTemplate.types.js.map +1 -0
  33. package/dist/Dropdown/Dropdown.styles.js +3 -3
  34. package/dist/Dropdown/Dropdown.types.d.ts +5 -11
  35. package/dist/Dropdown/Dropdown.types.js.map +1 -1
  36. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  37. package/dist/DropdownFlyout/DropdownFlyout.types.d.ts +12 -14
  38. package/dist/DropdownFlyout/DropdownFlyout.types.js.map +1 -1
  39. package/dist/Dropzone/Dropzone.js +3 -2
  40. package/dist/Dropzone/Dropzone.js.map +1 -1
  41. package/dist/Dropzone/Dropzone.styles.js +9 -9
  42. package/dist/Dropzone/Dropzone.types.d.ts +22 -20
  43. package/dist/Dropzone/Dropzone.types.js.map +1 -1
  44. package/dist/EmptyState/EmptyState.js +1 -1
  45. package/dist/EmptyState/EmptyState.js.map +1 -1
  46. package/dist/EmptyState/EmptyState.styles.d.ts +1 -1
  47. package/dist/EmptyState/EmptyState.styles.js +14 -14
  48. package/dist/EmptyState/EmptyState.styles.js.map +1 -1
  49. package/dist/Field/Field.styles.js +3 -3
  50. package/dist/FileList/FileList.styles.js +4 -4
  51. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  52. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  53. package/dist/FileSelect/FileSelect.styles.js +2 -2
  54. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  55. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  56. package/dist/FileSelect/GridSource/GridSource.js +3 -3
  57. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  58. package/dist/FileSelect/GridSource/GridSource.styles.d.ts +3 -3
  59. package/dist/FileSelect/GridSource/GridSource.styles.js +12 -12
  60. package/dist/FileSelect/GridSource/GridSource.styles.js.map +1 -1
  61. package/dist/FileSelect/GridSource/GridSource.types.d.ts +14 -23
  62. package/dist/FileSelect/GridSource/GridSource.types.js.map +1 -1
  63. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  64. package/dist/FileSelect/LocalSource/LocalSource.types.d.ts +43 -47
  65. package/dist/FileSelect/LocalSource/LocalSource.types.js.map +1 -1
  66. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  67. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  68. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  69. package/dist/FileSelect/TreeSource/TreeSource.types.d.ts +3 -1
  70. package/dist/FileSelect/TreeSource/TreeSource.types.js.map +1 -1
  71. package/dist/FileToken/FileToken.styles.js +4 -4
  72. package/dist/FilterToken/FilterToken.styles.js +2 -2
  73. package/dist/FlexList/FlexList.styles.js +1 -1
  74. package/dist/Form/Form.js +14 -8
  75. package/dist/Form/Form.js.map +1 -1
  76. package/dist/Form/Form.styles.js +14 -14
  77. package/dist/Form/Form.types.d.ts +67 -69
  78. package/dist/Form/Form.types.js.map +1 -1
  79. package/dist/Form/StyledFormikForm.styles.js +2 -2
  80. package/dist/Form/index.d.ts +1 -1
  81. package/dist/Form/index.js.map +1 -1
  82. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  83. package/dist/Grid/Grid.styles.js +2 -2
  84. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  85. package/dist/Input/Input.styles.js +1 -1
  86. package/dist/Link/Link.styles.js +1 -1
  87. package/dist/ListPage/ListPage.styles.js +8 -8
  88. package/dist/Loader/Loader.styles.js +2 -2
  89. package/dist/MenuImperative/MenuImperative.js +8 -5
  90. package/dist/MenuImperative/MenuImperative.js.map +1 -1
  91. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  92. package/dist/Modal/Modal.js +2 -2
  93. package/dist/Modal/Modal.js.map +1 -1
  94. package/dist/Modal/Modal.styles.d.ts +2 -2
  95. package/dist/Modal/Modal.styles.js +17 -17
  96. package/dist/Modal/Modal.styles.js.map +1 -1
  97. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  98. package/dist/MultiSelect/MultiSelect.types.d.ts +23 -16
  99. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  100. package/dist/NextMenu/NextMenu.styles.js +3 -3
  101. package/dist/Notation/Notation.js +1 -1
  102. package/dist/NumberInput/NumberInput.js +2 -2
  103. package/dist/NumberInput/NumberInput.js.map +1 -1
  104. package/dist/NumberInput/NumberInput.styles.d.ts +2 -2
  105. package/dist/NumberInput/NumberInput.styles.js +11 -11
  106. package/dist/NumberInput/NumberInput.styles.js.map +1 -1
  107. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  108. package/dist/PageFooterTemplate/PageFooterTemplate.d.ts +3 -0
  109. package/dist/PageFooterTemplate/PageFooterTemplate.js +28 -0
  110. package/dist/PageFooterTemplate/PageFooterTemplate.js.map +1 -0
  111. package/dist/PageFooterTemplate/PageFooterTemplate.styles.d.ts +1 -0
  112. package/dist/PageFooterTemplate/PageFooterTemplate.styles.js +8 -0
  113. package/dist/PageFooterTemplate/PageFooterTemplate.styles.js.map +1 -0
  114. package/dist/PageFooterTemplate/PageFooterTemplate.types.d.ts +6 -0
  115. package/dist/PageFooterTemplate/PageFooterTemplate.types.js +2 -0
  116. package/dist/PageFooterTemplate/PageFooterTemplate.types.js.map +1 -0
  117. package/dist/PageHeaderTemplate/PageHeaderTemplate.d.ts +3 -0
  118. package/dist/PageHeaderTemplate/PageHeaderTemplate.js +41 -0
  119. package/dist/PageHeaderTemplate/PageHeaderTemplate.js.map +1 -0
  120. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.d.ts +2 -0
  121. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js +8 -0
  122. package/dist/PageHeaderTemplate/PageHeaderTemplate.styles.js.map +1 -0
  123. package/dist/PageHeaderTemplate/PageHeaderTemplate.types.d.ts +12 -0
  124. package/dist/PageHeaderTemplate/PageHeaderTemplate.types.js +2 -0
  125. package/dist/PageHeaderTemplate/PageHeaderTemplate.types.js.map +1 -0
  126. package/dist/PageLayout/PageLayout.styles.js +16 -16
  127. package/dist/PageTemplate/PageTemplate.d.ts +3 -0
  128. package/dist/PageTemplate/PageTemplate.js +18 -0
  129. package/dist/PageTemplate/PageTemplate.js.map +1 -0
  130. package/dist/PageTemplate/PageTemplate.types.d.ts +8 -0
  131. package/dist/PageTemplate/PageTemplate.types.js +2 -0
  132. package/dist/PageTemplate/PageTemplate.types.js.map +1 -0
  133. package/dist/Pagination/Pagination.styles.js +5 -5
  134. package/dist/Panel/Panel.styles.js +11 -11
  135. package/dist/Pill/Pill.styles.js +2 -2
  136. package/dist/Pill/Pill.types.d.ts +3 -1
  137. package/dist/Pill/Pill.types.js.map +1 -1
  138. package/dist/PillSelect/PillSelect.styles.js +4 -4
  139. package/dist/Popover/Popover.styles.js +2 -2
  140. package/dist/Portal/Portal.styles.js +1 -1
  141. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  142. package/dist/RadioButton/RadioButton.styles.js +3 -3
  143. package/dist/Required/Required.styles.js +3 -3
  144. package/dist/Required/Required.types.d.ts +1 -1
  145. package/dist/Required/Required.types.js.map +1 -1
  146. package/dist/Search/Search.styles.js +5 -5
  147. package/dist/Search/Search.types.d.ts +4 -2
  148. package/dist/Search/Search.types.js.map +1 -1
  149. package/dist/Section/Section.styles.js +7 -7
  150. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  151. package/dist/Select/Select.js +6 -3
  152. package/dist/Select/Select.js.map +1 -1
  153. package/dist/Select/Select.styles.js +7 -7
  154. package/dist/Select/Select.types.d.ts +9 -1
  155. package/dist/Select/Select.types.js.map +1 -1
  156. package/dist/Semantic/Semantic.d.ts +3 -7
  157. package/dist/Semantic/Semantic.js +14 -2
  158. package/dist/Semantic/Semantic.js.map +1 -1
  159. package/dist/Semantic/Semantic.styles.d.ts +3 -3
  160. package/dist/Semantic/Semantic.styles.js +11 -11
  161. package/dist/Semantic/Semantic.styles.js.map +1 -1
  162. package/dist/Semantic/Semantic.types.d.ts +5 -0
  163. package/dist/Semantic/Semantic.types.js.map +1 -1
  164. package/dist/SettingsPageTemplate/SettingsPageTemplate.d.ts +7 -0
  165. package/dist/SettingsPageTemplate/SettingsPageTemplate.js +34 -0
  166. package/dist/SettingsPageTemplate/SettingsPageTemplate.js.map +1 -0
  167. package/dist/SettingsPageTemplate/SettingsPageTemplate.types.d.ts +9 -0
  168. package/dist/SettingsPageTemplate/SettingsPageTemplate.types.js +2 -0
  169. package/dist/SettingsPageTemplate/SettingsPageTemplate.types.js.map +1 -0
  170. package/dist/Slider/Slider.js +2 -2
  171. package/dist/Slider/Slider.js.map +1 -1
  172. package/dist/Slider/Slider.styles.d.ts +2 -2
  173. package/dist/Slider/Slider.styles.js +9 -9
  174. package/dist/Slider/Slider.styles.js.map +1 -1
  175. package/dist/Spinner/Spinner.js +2 -2
  176. package/dist/Spinner/Spinner.js.map +1 -1
  177. package/dist/Spinner/Spinner.styles.d.ts +1 -1
  178. package/dist/Spinner/Spinner.styles.js +9 -9
  179. package/dist/Spinner/Spinner.styles.js.map +1 -1
  180. package/dist/Spinner/Spinner.types.d.ts +2 -5
  181. package/dist/Spinner/Spinner.types.js.map +1 -1
  182. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  183. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  184. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  185. package/dist/Switch/Switch.styles.js +4 -4
  186. package/dist/Table/Table.styles.js +28 -28
  187. package/dist/TableShelf/TableShelf.styles.js +5 -5
  188. package/dist/Tabs/Tabs.styles.js +15 -15
  189. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  190. package/dist/TextArea/TextArea.styles.js +1 -1
  191. package/dist/TextEditor/TextEditor.types.d.ts +12 -9
  192. package/dist/TextEditor/TextEditor.types.js.map +1 -1
  193. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  194. package/dist/Thumbnail/Thumbnail.js +25 -10
  195. package/dist/Thumbnail/Thumbnail.js.map +1 -1
  196. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  197. package/dist/Thumbnail/Thumbnail.types.d.ts +2 -3
  198. package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
  199. package/dist/Thumbnail/ThumbnailCaption.js +2 -2
  200. package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
  201. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  202. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  203. package/dist/TieredSelect/TieredSelect.types.d.ts +64 -40
  204. package/dist/TieredSelect/TieredSelect.types.js.map +1 -1
  205. package/dist/Tile/Tile.styles.js +8 -8
  206. package/dist/Tile/Tile.types.d.ts +1 -1
  207. package/dist/Tile/Tile.types.js.map +1 -1
  208. package/dist/Title/Title.styles.js +7 -7
  209. package/dist/Toast/Toast.styles.js +3 -3
  210. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  211. package/dist/ToggleButton/ToggleButton.types.d.ts +1 -1
  212. package/dist/ToggleButton/ToggleButton.types.js.map +1 -1
  213. package/dist/Token/Token.styles.js +3 -3
  214. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  215. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  216. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.d.ts +5 -0
  217. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.js +44 -0
  218. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.js.map +1 -0
  219. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.d.ts +7 -0
  220. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.js +2 -0
  221. package/dist/ToolLandingPageTemplate/ToolLandingPageTemplate.types.js.map +1 -0
  222. package/dist/Tooltip/Tooltip.styles.js +2 -2
  223. package/dist/Tree/Tree.js +3 -3
  224. package/dist/Tree/Tree.js.map +1 -1
  225. package/dist/Tree/Tree.styles.d.ts +9 -3
  226. package/dist/Tree/Tree.styles.js +23 -15
  227. package/dist/Tree/Tree.styles.js.map +1 -1
  228. package/dist/Tree/Tree.types.d.ts +40 -19
  229. package/dist/Tree/Tree.types.js.map +1 -1
  230. package/dist/Typeahead/Typeahead.styles.js +3 -3
  231. package/dist/Typography/Typography.js +1 -1
  232. package/dist/Typography/Typography.js.map +1 -1
  233. package/dist/Typography/Typography.styles.d.ts +2 -1
  234. package/dist/Typography/Typography.styles.js +3 -3
  235. package/dist/Typography/Typography.styles.js.map +1 -1
  236. package/dist/Typography/Typography.table.story.js +2 -2
  237. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  238. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  239. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  240. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  241. package/dist/_typedoc/Box/Box.types.json +68 -68
  242. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  243. package/dist/_typedoc/Button/Button.types.json +12 -12
  244. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  245. package/dist/_typedoc/Card/Card.types.json +6 -6
  246. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  247. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  248. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  249. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  250. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  251. package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
  252. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +35 -35
  253. package/dist/_typedoc/Dropzone/Dropzone.types.json +53 -53
  254. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  255. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  256. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  257. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +42 -42
  258. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +30 -30
  259. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +27 -27
  260. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  261. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  262. package/dist/_typedoc/Form/Form.types.json +1088 -972
  263. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  264. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  265. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
  266. package/dist/_typedoc/Input/Input.types.json +2 -2
  267. package/dist/_typedoc/Link/Link.types.json +4 -4
  268. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  269. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  270. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  271. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  272. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +36 -36
  273. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  274. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  275. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  276. package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
  277. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  278. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  279. package/dist/_typedoc/Pill/Pill.types.json +4 -4
  280. package/dist/_typedoc/PillSelect/PillSelect.types.json +58 -48
  281. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  282. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  283. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  284. package/dist/_typedoc/Required/Required.types.json +7 -7
  285. package/dist/_typedoc/Search/Search.types.json +22 -22
  286. package/dist/_typedoc/Section/Section.types.json +15 -15
  287. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  288. package/dist/_typedoc/Select/Select.types.json +78 -58
  289. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  290. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  291. package/dist/_typedoc/Spinner/Spinner.types.json +11 -11
  292. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  293. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  294. package/dist/_typedoc/Table/Table.types.json +112 -102
  295. package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
  296. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  297. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  298. package/dist/_typedoc/TextEditor/TextEditor.types.json +13 -13
  299. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  300. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +23 -23
  301. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +56 -56
  302. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +44 -44
  303. package/dist/_typedoc/Tile/Tile.types.json +32 -32
  304. package/dist/_typedoc/Title/Title.types.json +1 -1
  305. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  306. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +6 -6
  307. package/dist/_typedoc/Token/Token.types.json +4 -4
  308. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  309. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  310. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  311. package/dist/_typedoc/Tree/Tree.types.json +110 -110
  312. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  313. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  314. package/dist/_typedoc/_utils/types.json +3 -3
  315. package/package.json +9 -9
@@ -26,15 +26,14 @@ export interface GridSourceProps {
26
26
  title: string;
27
27
  /**
28
28
  * Allows controlling the search input value. Can be used with
29
- * <Code>onSearch</Code> to customize the default string-based search
29
+ * `onSearch` to customize the default string-based search
30
30
  * @since 10.19.0
31
31
  */
32
32
  searchQuery?: string;
33
33
  /**
34
34
  * Allows customizing the default string-based search by passing a
35
- * different set of <Code>items</Code> every time
36
- * <Code>onSearch</Code> is called with query string as a single
37
- * parameter
35
+ * different set of `items` every time `onSearch` is called with
36
+ * query string as a single parameter
38
37
  * @since 10.19.0
39
38
  */
40
39
  onSearch?: (q: string) => void;
@@ -44,22 +43,19 @@ export interface GridSourceProps {
44
43
  */
45
44
  children?: React.ReactNode;
46
45
  /**
47
- * An array of arbitrarily-shaped objects representing grid items.{' '}
48
- * <Code>getId</Code> <Code>getName</Code> and <Code>getThumbnail</Code>{' '}
49
- * should be used to bind the target shape to a view.
46
+ * An array of arbitrarily-shaped objects representing grid items.
47
+ * `getId`, `getName` and `getThumbnail` should be used to bind the target shape to a view.
50
48
  * @since 10.19.0
51
49
  */
52
50
  items: GridItem[];
53
51
  /**
54
- * <Code>{`{ id: string | number, title: string }[]`}</Code> object
55
- * representing file groups
52
+ * `{ id: string | number, title: string }[]` object representing file groups
56
53
  * @since 10.19.0
57
54
  */
58
55
  groups?: ThumbnailGridGroup[];
59
56
  /**
60
- * <Code>{`{ text: string, image: string }`}</Code> props for{' '}
61
- * <Code>EmptyState</Code> component shown when there are no items in
62
- * grid
57
+ * `{ text: string, image: string }` props for `EmptyState`
58
+ * component shown when there are no items in grid
63
59
  * @since 10.19.0
64
60
  */
65
61
  emptyState?: {
@@ -77,43 +73,38 @@ export interface GridSourceProps {
77
73
  */
78
74
  isLoading?: boolean;
79
75
  /**
80
- * Optional <Code>function</Code> that automatically executes when
76
+ * Optional `function` that automatically executes when
81
77
  * scrolling reaches the last item.
82
78
  * @since 10.19.0
83
79
  */
84
80
  onScrollBottom?: () => Promise<any>;
85
81
  /**
86
82
  * A function called returning ID of a given grid item that is used to
87
- * identify the item. Returns <Code>item.id</Code> by default.
83
+ * identify the item. Returns `item.id` by default.
88
84
  * @since 10.19.0
89
85
  */
90
86
  getId?: GetId;
91
87
  /**
92
88
  * A function called returning thumbnail URL of a given grid item that is
93
- * used to display the item's thumbnail image. Returns{' '}
94
- * <Code>item.src</Code>
95
- * by default.
89
+ * used to display the item's thumbnail image. Returns `item.src` by default.
96
90
  * @since 10.19.0
97
91
  */
98
92
  getThumbnailSource?: GetThumbnailSource;
99
93
  /**
100
94
  * A function called returning name of a given grid item that is used to
101
- * display the item's thumbnail name. Returns <Code>item.name</Code> by
102
- * default.
95
+ * display the item's thumbnail name. Returns `item.name` by default.
103
96
  * @since 10.19.0
104
97
  */
105
98
  getThumbnailName?: GetThumnbnailName;
106
99
  /**
107
100
  * A function called returning label of a given grid item that is used to
108
- * display the item's thumbnail label. Returns <Code>item.label</Code>
109
- * by default.
101
+ * display the item's thumbnail label. Returns `item.label` by default.
110
102
  * @since 10.19.0
111
103
  */
112
104
  getThumbnailLabel?: GetThumbnailLabel;
113
105
  /**
114
106
  * A function called returning group ID of a given grid item that is used
115
- * to sort items by group. Returns <Code>item.groupId</Code>
116
- * by default.
107
+ * to sort items by group. Returns `item.groupId` by default.
117
108
  * @since 10.19.0
118
109
  */
119
110
  getGroupId?: GetGroupId;
@@ -1 +1 @@
1
- {"version":3,"file":"GridSource.types.js","names":[],"sources":["../../../src/FileSelect/GridSource/GridSource.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { ThumbnailGridGroup } from '../../ThumbnailGrid/ThumbnailGrid.types'\n\ninterface QaTags {\n grid?: string\n}\n\nexport type GridItem = object\n\nexport type GetId = (item: GridItem) => string | number\n\nexport type GetThumnbnailName = (item: GridItem) => string\n\nexport type GetThumbnailSource = (item: GridItem) => string\n\nexport type GetThumbnailLabel = (item: GridItem) => string\n\nexport type GetGroupId = (item: GridItem) => string | number\n\nexport interface GridSourceProps {\n /**\n * @since 10.19.0\n */\n sourceId: string\n /**\n * @deprecated String icon variant is deprecated, use the React components\n * directly from the `@procore/core-icons/dist` package\n * @since 10.19.0\n */\n icon: React.ReactNode\n /**\n * @since 10.19.0\n */\n title: string\n\n /**\n * Allows controlling the search input value. Can be used with\n * <Code>onSearch</Code> to customize the default string-based search\n * @since 10.19.0\n */\n searchQuery?: string\n\n /**\n * Allows customizing the default string-based search by passing a\n * different set of <Code>items</Code> every time\n * <Code>onSearch</Code> is called with query string as a single\n * parameter\n * @since 10.19.0\n */\n onSearch?: (q: string) => void\n\n /**\n * React nodes to be displayed next to the search bar\n * @since 10.19.0\n */\n children?: React.ReactNode\n\n /**\n * An array of arbitrarily-shaped objects representing grid items.{' '}\n * <Code>getId</Code> <Code>getName</Code> and <Code>getThumbnail</Code>{' '}\n * should be used to bind the target shape to a view.\n * @since 10.19.0\n */\n items: GridItem[]\n\n /**\n * <Code>{`{ id: string | number, title: string }[]`}</Code> object\n * representing file groups\n * @since 10.19.0\n */\n groups?: ThumbnailGridGroup[]\n\n /**\n * <Code>{`{ text: string, image: string }`}</Code> props for{' '}\n * <Code>EmptyState</Code> component shown when there are no items in\n * grid\n * @since 10.19.0\n */\n emptyState?: {\n text?: string\n image?: string\n }\n\n /**\n * Show/Hide loading indicator at the list bottom\n * @since 10.19.0\n */\n isLoadingMore?: boolean\n\n /**\n * Show/Hide loading indicator of the content\n * @since 10.19.0\n */\n isLoading?: boolean\n\n /**\n * Optional <Code>function</Code> that automatically executes when\n * scrolling reaches the last item.\n * @since 10.19.0\n */\n onScrollBottom?: () => Promise<any>\n\n /**\n * A function called returning ID of a given grid item that is used to\n * identify the item. Returns <Code>item.id</Code> by default.\n * @since 10.19.0\n */\n getId?: GetId\n\n /**\n * A function called returning thumbnail URL of a given grid item that is\n * used to display the item's thumbnail image. Returns{' '}\n * <Code>item.src</Code>\n * by default.\n * @since 10.19.0\n */\n getThumbnailSource?: GetThumbnailSource\n\n /**\n * A function called returning name of a given grid item that is used to\n * display the item's thumbnail name. Returns <Code>item.name</Code> by\n * default.\n * @since 10.19.0\n */\n getThumbnailName?: GetThumnbnailName\n\n /**\n * A function called returning label of a given grid item that is used to\n * display the item's thumbnail label. Returns <Code>item.label</Code>\n * by default.\n * @since 10.19.0\n */\n getThumbnailLabel?: GetThumbnailLabel\n\n /**\n * A function called returning group ID of a given grid item that is used\n * to sort items by group. Returns <Code>item.groupId</Code>\n * by default.\n * @since 10.19.0\n */\n getGroupId?: GetGroupId\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface SearchBarProps {\n /**\n * @since 10.19.0\n */\n onChange: (e: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n query: string\n}\n"],"mappings":""}
1
+ {"version":3,"file":"GridSource.types.js","names":[],"sources":["../../../src/FileSelect/GridSource/GridSource.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { ThumbnailGridGroup } from '../../ThumbnailGrid/ThumbnailGrid.types'\n\ninterface QaTags {\n grid?: string\n}\n\nexport type GridItem = object\n\nexport type GetId = (item: GridItem) => string | number\n\nexport type GetThumnbnailName = (item: GridItem) => string\n\nexport type GetThumbnailSource = (item: GridItem) => string\n\nexport type GetThumbnailLabel = (item: GridItem) => string\n\nexport type GetGroupId = (item: GridItem) => string | number\n\nexport interface GridSourceProps {\n /**\n * @since 10.19.0\n */\n sourceId: string\n /**\n * @deprecated String icon variant is deprecated, use the React components\n * directly from the `@procore/core-icons/dist` package\n * @since 10.19.0\n */\n icon: React.ReactNode\n /**\n * @since 10.19.0\n */\n title: string\n\n /**\n * Allows controlling the search input value. Can be used with\n * `onSearch` to customize the default string-based search\n * @since 10.19.0\n */\n searchQuery?: string\n\n /**\n * Allows customizing the default string-based search by passing a\n * different set of `items` every time `onSearch` is called with\n * query string as a single parameter\n * @since 10.19.0\n */\n onSearch?: (q: string) => void\n\n /**\n * React nodes to be displayed next to the search bar\n * @since 10.19.0\n */\n children?: React.ReactNode\n\n /**\n * An array of arbitrarily-shaped objects representing grid items.\n * `getId`, `getName` and `getThumbnail` should be used to bind the target shape to a view.\n * @since 10.19.0\n */\n items: GridItem[]\n\n /**\n * `{ id: string | number, title: string }[]` object representing file groups\n * @since 10.19.0\n */\n groups?: ThumbnailGridGroup[]\n\n /**\n * `{ text: string, image: string }` props for `EmptyState`\n * component shown when there are no items in grid\n * @since 10.19.0\n */\n emptyState?: {\n text?: string\n image?: string\n }\n\n /**\n * Show/Hide loading indicator at the list bottom\n * @since 10.19.0\n */\n isLoadingMore?: boolean\n\n /**\n * Show/Hide loading indicator of the content\n * @since 10.19.0\n */\n isLoading?: boolean\n\n /**\n * Optional `function` that automatically executes when\n * scrolling reaches the last item.\n * @since 10.19.0\n */\n onScrollBottom?: () => Promise<any>\n\n /**\n * A function called returning ID of a given grid item that is used to\n * identify the item. Returns `item.id` by default.\n * @since 10.19.0\n */\n getId?: GetId\n\n /**\n * A function called returning thumbnail URL of a given grid item that is\n * used to display the item's thumbnail image. Returns `item.src` by default.\n * @since 10.19.0\n */\n getThumbnailSource?: GetThumbnailSource\n\n /**\n * A function called returning name of a given grid item that is used to\n * display the item's thumbnail name. Returns `item.name` by default.\n * @since 10.19.0\n */\n getThumbnailName?: GetThumnbnailName\n\n /**\n * A function called returning label of a given grid item that is used to\n * display the item's thumbnail label. Returns `item.label` by default.\n * @since 10.19.0\n */\n getThumbnailLabel?: GetThumbnailLabel\n\n /**\n * A function called returning group ID of a given grid item that is used\n * to sort items by group. Returns `item.groupId` by default.\n * @since 10.19.0\n */\n getGroupId?: GetGroupId\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface SearchBarProps {\n /**\n * @since 10.19.0\n */\n onChange: (e: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n query: string\n}\n"],"mappings":""}
@@ -15,21 +15,21 @@ var dropzoneHeightWithIcon = 176;
15
15
  var sourceWidth = 568;
16
16
  export var StyledLocalSource = /*#__PURE__*/styled.div.withConfig({
17
17
  displayName: "StyledLocalSource",
18
- componentId: "core-12_13_0__sc-psqe8z-0"
18
+ componentId: "core-12_15_0__sc-psqe8z-0"
19
19
  })(["display:flex;flex-grow:1;flex-direction:column;align-items:stretch;height:", "px;max-height:", "px;padding:", "px ", "px ", "px ", "px;overflow-y:hidden;"], contentHeight, contentHeight, spacing.xl, spacing.xl + spacing.lg, spacing.xl, spacing.xl);
20
20
  export var StyledDropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBanner).withConfig({
21
21
  displayName: "StyledDropzoneErrorBanner",
22
- componentId: "core-12_13_0__sc-psqe8z-1"
22
+ componentId: "core-12_15_0__sc-psqe8z-1"
23
23
  })(["margin-top:", "px;margin-bottom:", "px;margin-right:2px;"], errorBannerMarginTop, errorBannerMarginBottom);
24
24
  export var StyledDropzoneWrapper = /*#__PURE__*/styled(Dropzone).withConfig({
25
25
  displayName: "StyledDropzoneWrapper",
26
- componentId: "core-12_13_0__sc-psqe8z-2"
26
+ componentId: "core-12_15_0__sc-psqe8z-2"
27
27
  })(["display:flex;height:auto;min-height:", "px;> div:first-child{display:flex;height:auto;}> ", "{display:none;}@media ", "{width:", "px;> div:first-child{height:100%;}}"], function (_ref) {
28
28
  var isIconVisible = _ref.isIconVisible;
29
29
  return isIconVisible ? dropzoneHeightWithIcon : dropzoneHeight;
30
30
  }, DropzoneErrorBanner, mediaIE11Hack, sourceWidth);
31
31
  export var StyledThumbnailList = /*#__PURE__*/styled(ThumbnailList).withConfig({
32
32
  displayName: "StyledThumbnailList",
33
- componentId: "core-12_13_0__sc-psqe8z-3"
33
+ componentId: "core-12_15_0__sc-psqe8z-3"
34
34
  })(["margin-top:", "px;border:", "px solid ", ";"], listMarginTop, listBorderWidth, colors.gray85);
35
35
  //# sourceMappingURL=LocalSource.styles.js.map
@@ -21,23 +21,24 @@ export interface UploaderProps extends Omit<DropzoneHookProps, 'value'> {
21
21
  value: ThumbnailListItem[];
22
22
  /**
23
23
  * Callback function fired with currently selected array of items.
24
- * <CodeBlock>(items: ThumbnailListItem[]) => void</CodeBlock>
24
+ * ```
25
+ * (items: ThumbnailListItem[]) => void
26
+ * ```
25
27
  * @since 10.19.0
26
28
  */
27
29
  onChange: (items: ThumbnailListItem[]) => void;
28
30
  /**
29
31
  * Callback function fired when a previously selected file is removed.
30
- * <br />
31
- * <br />
32
- * <Code>(item: ThumbnailListItem) => void</Code>
32
+ *
33
+ * `(item: ThumbnailListItem) => void`
33
34
  * @since 10.19.0
34
35
  */
35
36
  onCancel?: (item: ThumbnailListItem) => void;
36
37
  /**
37
38
  * Error message if dropped files is rejected
38
- * <CodeBlock>
39
- * {`{ type: DropErrorType, title: string, message: string }`}
40
- * </CodeBlock>
39
+ * ```
40
+ * { type: DropErrorType, title: string, message: string }
41
+ * ```
41
42
  * @since 10.19.0
42
43
  */
43
44
  dropError?: DropError;
@@ -46,8 +47,8 @@ export interface UploaderProps extends Omit<DropzoneHookProps, 'value'> {
46
47
  */
47
48
  onDropError: (err: DropError) => void;
48
49
  /**
49
- * An optional content renderer for the dropzone. Accepts{' '}
50
- * <Code>{'{ open, disabled, errorMessage }'}</Code> as a single argument,
50
+ * An optional content renderer for the dropzone.
51
+ * Accepts `{ open, disabled, errorMessage }` as a single argument,
51
52
  * allowing to control the dropzone and display different content depending
52
53
  * on dropzone state
53
54
  * @since 10.19.0
@@ -65,9 +66,8 @@ export interface LocalSourceProps {
65
66
  sourceId: string;
66
67
  /**
67
68
  * Callback function fired when a previously selected file is removed.
68
- * <br />
69
- * <br />
70
- * <Code>(item: ThumbnailListItem) => void</Code>
69
+ *
70
+ * `(item: ThumbnailListItem) => void`
71
71
  * @since 10.19.0
72
72
  */
73
73
  onCancel?: UploaderProps['onCancel'];
@@ -77,28 +77,27 @@ export interface LocalSourceProps {
77
77
  */
78
78
  accept?: UploaderProps['accept'];
79
79
  /**
80
- * <Code>(file: File) => string</Code>
81
- * <br />
82
- * <br />A function returning an upload URL for a given file. An
83
- * alternative to <Code>uploadFile</Code> which allows manual control of
80
+ * `(file: File) => string`
81
+ *
82
+ * A function returning an upload URL for a given file. An
83
+ * alternative to `uploadFile` which allows manual control of
84
84
  * the network request for file upload.
85
85
  * @since 10.19.0
86
86
  */
87
87
  getEndpoint?: (file: File) => string;
88
88
  /**
89
- * <Code>(file: File) => HTTPRequestMethod</Code>
90
- * <br />
91
- * <br />A function returning an upload HTTP method for a given file.
92
- * Returns <Code>POST</Code> by default.
89
+ * `(file: File) => HTTPRequestMethod`
90
+ *
91
+ * A function returning an upload HTTP method for a given file.
92
+ * Returns `POST` by default.
93
93
  * @since 10.19.0
94
94
  */
95
95
  getMethod?: (file: File) => Method;
96
96
  /**
97
- * <Code>(file: File) => FormData</Code>
98
- * <br />
99
- * <br />A function returning an upload payload <Code>FormData</Code>{' '}
100
- * object for a given file. When defined, <Code>getPayloadKey</Code> is
101
- * ignored.
97
+ * `(file: File) => FormData`
98
+ *
99
+ * A function returning an upload payload `FormData` object for
100
+ * a given file. When defined, `getPayloadKey` is ignored.
102
101
  * @since 10.19.0
103
102
  */
104
103
  getPayload?: (file: File) => FormData;
@@ -107,39 +106,37 @@ export interface LocalSourceProps {
107
106
  * local file. If you want to restrict certain uploads, you can use this
108
107
  * callback. Returning true continues the upload, while false will prevent
109
108
  * upload.
110
- * <Code>{'(files: ThumbnailListItem[]) => Promise<boolean>'}</Code>
109
+ * `(files: ThumbnailListItem[]) => Promise<boolean>`
111
110
  * @since 10.19.0
112
111
  */
113
112
  beforeLocalFileUpload: (files: ThumbnailListItem[]) => Promise<boolean>;
114
113
  /**
115
- * <Code>(file: File) => string</Code>
116
- * <br />
117
- * <br />A function returning an upload payload <Code>FormData</Code> key
118
- * for a given file. Returns <Code>file</Code> by default.
114
+ * `(file: File) => string`
115
+ *
116
+ * A function returning an upload payload `FormData` key for
117
+ * a given file. Returns `file` by default.
119
118
  * @since 10.19.0
120
119
  */
121
120
  getPayloadKey?: (file: File) => string;
122
121
  /**
123
- * <Code>(file: File) => object</Code>
124
- * <br />
125
- * <br />A function returning an upload request headers. Returns empty
126
- * object by default.
122
+ * `(file: File) => object`
123
+ *
124
+ * A function returning an upload request headers.
125
+ * Returns empty object by default.
127
126
  * @since 10.19.0
128
127
  */
129
128
  getHeaders?: (file: File) => Record<string, string>;
130
129
  /**
131
- * <Code>
132
- * (file: File,{' '}
133
- * {`{
130
+ * ```
131
+ * (file: File, {
134
132
  * onProgress: (progress: number) => void
135
133
  * onSuccess: (response: unknown) => void
136
134
  * onError: (error: unknown) => void
137
- * }`}
138
- * ) => string
139
- * </Code>
140
- * <br />
141
- * <br />A function for manually controlling the network request for file
142
- * upload. An alternative to using <Code>getEndpoint</Code> which handles
135
+ * }) => string
136
+ * ```
137
+ *
138
+ * A function for manually controlling the network request for file
139
+ * upload. An alternative to using `getEndpoint` which handles
143
140
  * the network request itself.
144
141
  * @since 10.19.0
145
142
  */
@@ -155,10 +152,9 @@ export interface LocalSourceProps {
155
152
  */
156
153
  minFileSize?: number;
157
154
  /**
158
- * An optional content renderer for the dropzone. Accepts{' '}
159
- * <Code>{'{ open, disabled, errorMessage }'}</Code> as a single argument,
160
- * allowing to control the dropzone and display different content depending
161
- * on dropzone state
155
+ * An optional content renderer for the dropzone. Accepts `{ open, disabled, errorMessage }` as
156
+ * a single argument, allowing to control the dropzone and
157
+ * display different content depending on dropzone state
162
158
  * @since 10.19.0
163
159
  */
164
160
  dropzoneContentRenderer?: (props: DropzoneContentProps) => React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"LocalSource.types.js","names":[],"sources":["../../../src/FileSelect/LocalSource/LocalSource.types.ts"],"sourcesContent":["import type { Method } from 'axios'\nimport type {\n DropError,\n DropzoneContentProps,\n DropzoneHookProps,\n QaTags,\n} from '../../Dropzone/Dropzone.types'\nimport type { UNSAFE_UploadFile } from '../../_hooks/useFileUploader'\nimport type { ThumbnailListItem } from '../ThumbnailList/ThumbnailList.types'\n\nexport type ValueId = string | number\n\nexport interface UploaderProps extends Omit<DropzoneHookProps, 'value'> {\n /**\n * Allow drag 'n' drop (or selection from the file dialog) of multiple files\n * @since 10.19.0\n */\n multiple: boolean\n\n /**\n * @since 10.19.0\n */\n uploadedValue: ThumbnailListItem[]\n\n /**\n * Array of already selected items\n * @since 10.19.0\n */\n value: ThumbnailListItem[]\n\n /**\n * Callback function fired with currently selected array of items.\n * <CodeBlock>(items: ThumbnailListItem[]) => void</CodeBlock>\n * @since 10.19.0\n */\n onChange: (items: ThumbnailListItem[]) => void\n\n /**\n * Callback function fired when a previously selected file is removed.\n * <br />\n * <br />\n * <Code>(item: ThumbnailListItem) => void</Code>\n * @since 10.19.0\n */\n onCancel?: (item: ThumbnailListItem) => void\n\n /**\n * Error message if dropped files is rejected\n * <CodeBlock>\n * {`{ type: DropErrorType, title: string, message: string }`}\n * </CodeBlock>\n * @since 10.19.0\n */\n dropError?: DropError\n\n /**\n * @since 10.19.0\n */\n onDropError: (err: DropError) => void\n\n /**\n * An optional content renderer for the dropzone. Accepts{' '}\n * <Code>{'{ open, disabled, errorMessage }'}</Code> as a single argument,\n * allowing to control the dropzone and display different content depending\n * on dropzone state\n * @since 10.19.0\n */\n dropzoneContentRenderer?: (props: DropzoneContentProps) => React.ReactNode\n\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface LocalSourceProps {\n /**\n * @since 10.19.0\n */\n sourceId: string\n\n /**\n * Callback function fired when a previously selected file is removed.\n * <br />\n * <br />\n * <Code>(item: ThumbnailListItem) => void</Code>\n * @since 10.19.0\n */\n onCancel?: UploaderProps['onCancel']\n\n /**\n * Set accepted file types. Accepts everything if left undefined\n * @since 10.19.0\n */\n accept?: UploaderProps['accept']\n\n /**\n * <Code>(file: File) => string</Code>\n * <br />\n * <br />A function returning an upload URL for a given file. An\n * alternative to <Code>uploadFile</Code> which allows manual control of\n * the network request for file upload.\n * @since 10.19.0\n */\n getEndpoint?: (file: File) => string\n\n /**\n * <Code>(file: File) => HTTPRequestMethod</Code>\n * <br />\n * <br />A function returning an upload HTTP method for a given file.\n * Returns <Code>POST</Code> by default.\n * @since 10.19.0\n */\n getMethod?: (file: File) => Method\n\n /**\n * <Code>(file: File) => FormData</Code>\n * <br />\n * <br />A function returning an upload payload <Code>FormData</Code>{' '}\n * object for a given file. When defined, <Code>getPayloadKey</Code> is\n * ignored.\n * @since 10.19.0\n */\n getPayload?: (file: File) => FormData\n\n /**\n * Optional async function that is invoked when selecting or dropping in a\n * local file. If you want to restrict certain uploads, you can use this\n * callback. Returning true continues the upload, while false will prevent\n * upload.\n * <Code>{'(files: ThumbnailListItem[]) => Promise<boolean>'}</Code>\n * @since 10.19.0\n */\n beforeLocalFileUpload: (files: ThumbnailListItem[]) => Promise<boolean>\n\n /**\n * <Code>(file: File) => string</Code>\n * <br />\n * <br />A function returning an upload payload <Code>FormData</Code> key\n * for a given file. Returns <Code>file</Code> by default.\n * @since 10.19.0\n */\n getPayloadKey?: (file: File) => string\n\n /**\n * <Code>(file: File) => object</Code>\n * <br />\n * <br />A function returning an upload request headers. Returns empty\n * object by default.\n * @since 10.19.0\n */\n getHeaders?: (file: File) => Record<string, string>\n\n /**\n * <Code>\n * (file: File,{' '}\n * {`{\n * onProgress: (progress: number) => void\n * onSuccess: (response: unknown) => void\n * onError: (error: unknown) => void\n * }`}\n * ) => string\n * </Code>\n * <br />\n * <br />A function for manually controlling the network request for file\n * upload. An alternative to using <Code>getEndpoint</Code> which handles\n * the network request itself.\n * @since 10.19.0\n */\n uploadFile?: UNSAFE_UploadFile\n\n /**\n * Maximum file size (in bytes)\n * @since 10.19.0\n */\n maxFileSize?: number\n\n /**\n * Minimum file size (in bytes)\n * @since 10.19.0\n */\n minFileSize?: number\n\n /**\n * An optional content renderer for the dropzone. Accepts{' '}\n * <Code>{'{ open, disabled, errorMessage }'}</Code> as a single argument,\n * allowing to control the dropzone and display different content depending\n * on dropzone state\n * @since 10.19.0\n */\n dropzoneContentRenderer?: (props: DropzoneContentProps) => React.ReactNode\n /**\n * @since 10.19.0\n */\n qa?: UploaderProps['qa']\n}\n"],"mappings":""}
1
+ {"version":3,"file":"LocalSource.types.js","names":[],"sources":["../../../src/FileSelect/LocalSource/LocalSource.types.ts"],"sourcesContent":["import type { Method } from 'axios'\nimport type {\n DropError,\n DropzoneContentProps,\n DropzoneHookProps,\n QaTags,\n} from '../../Dropzone/Dropzone.types'\nimport type { UNSAFE_UploadFile } from '../../_hooks/useFileUploader'\nimport type { ThumbnailListItem } from '../ThumbnailList/ThumbnailList.types'\n\nexport type ValueId = string | number\n\nexport interface UploaderProps extends Omit<DropzoneHookProps, 'value'> {\n /**\n * Allow drag 'n' drop (or selection from the file dialog) of multiple files\n * @since 10.19.0\n */\n multiple: boolean\n\n /**\n * @since 10.19.0\n */\n uploadedValue: ThumbnailListItem[]\n\n /**\n * Array of already selected items\n * @since 10.19.0\n */\n value: ThumbnailListItem[]\n\n /**\n * Callback function fired with currently selected array of items.\n * ```\n * (items: ThumbnailListItem[]) => void\n * ```\n * @since 10.19.0\n */\n onChange: (items: ThumbnailListItem[]) => void\n\n /**\n * Callback function fired when a previously selected file is removed.\n *\n * `(item: ThumbnailListItem) => void`\n * @since 10.19.0\n */\n onCancel?: (item: ThumbnailListItem) => void\n\n /**\n * Error message if dropped files is rejected\n * ```\n * { type: DropErrorType, title: string, message: string }\n * ```\n * @since 10.19.0\n */\n dropError?: DropError\n\n /**\n * @since 10.19.0\n */\n onDropError: (err: DropError) => void\n\n /**\n * An optional content renderer for the dropzone.\n * Accepts `{ open, disabled, errorMessage }` as a single argument,\n * allowing to control the dropzone and display different content depending\n * on dropzone state\n * @since 10.19.0\n */\n dropzoneContentRenderer?: (props: DropzoneContentProps) => React.ReactNode\n\n /**\n * @since 10.19.0\n */\n qa?: QaTags\n}\n\nexport interface LocalSourceProps {\n /**\n * @since 10.19.0\n */\n sourceId: string\n\n /**\n * Callback function fired when a previously selected file is removed.\n *\n * `(item: ThumbnailListItem) => void`\n * @since 10.19.0\n */\n onCancel?: UploaderProps['onCancel']\n\n /**\n * Set accepted file types. Accepts everything if left undefined\n * @since 10.19.0\n */\n accept?: UploaderProps['accept']\n\n /**\n * `(file: File) => string`\n *\n * A function returning an upload URL for a given file. An\n * alternative to `uploadFile` which allows manual control of\n * the network request for file upload.\n * @since 10.19.0\n */\n getEndpoint?: (file: File) => string\n\n /**\n * `(file: File) => HTTPRequestMethod`\n *\n * A function returning an upload HTTP method for a given file.\n * Returns `POST` by default.\n * @since 10.19.0\n */\n getMethod?: (file: File) => Method\n\n /**\n * `(file: File) => FormData`\n *\n * A function returning an upload payload `FormData` object for\n * a given file. When defined, `getPayloadKey` is ignored.\n * @since 10.19.0\n */\n getPayload?: (file: File) => FormData\n\n /**\n * Optional async function that is invoked when selecting or dropping in a\n * local file. If you want to restrict certain uploads, you can use this\n * callback. Returning true continues the upload, while false will prevent\n * upload.\n * `(files: ThumbnailListItem[]) => Promise<boolean>`\n * @since 10.19.0\n */\n beforeLocalFileUpload: (files: ThumbnailListItem[]) => Promise<boolean>\n\n /**\n * `(file: File) => string`\n *\n * A function returning an upload payload `FormData` key for\n * a given file. Returns `file` by default.\n * @since 10.19.0\n */\n getPayloadKey?: (file: File) => string\n\n /**\n * `(file: File) => object`\n *\n * A function returning an upload request headers.\n * Returns empty object by default.\n * @since 10.19.0\n */\n getHeaders?: (file: File) => Record<string, string>\n\n /**\n * ```\n * (file: File, {\n * onProgress: (progress: number) => void\n * onSuccess: (response: unknown) => void\n * onError: (error: unknown) => void\n * }) => string\n * ```\n *\n * A function for manually controlling the network request for file\n * upload. An alternative to using `getEndpoint` which handles\n * the network request itself.\n * @since 10.19.0\n */\n uploadFile?: UNSAFE_UploadFile\n\n /**\n * Maximum file size (in bytes)\n * @since 10.19.0\n */\n maxFileSize?: number\n\n /**\n * Minimum file size (in bytes)\n * @since 10.19.0\n */\n minFileSize?: number\n\n /**\n * An optional content renderer for the dropzone. Accepts `{ open, disabled, errorMessage }` as\n * a single argument, allowing to control the dropzone and\n * display different content depending on dropzone state\n * @since 10.19.0\n */\n dropzoneContentRenderer?: (props: DropzoneContentProps) => React.ReactNode\n /**\n * @since 10.19.0\n */\n qa?: UploaderProps['qa']\n}\n"],"mappings":""}
@@ -8,7 +8,7 @@ var sourceItemPadding = spacing.xl;
8
8
  var focused = /*#__PURE__*/css(["", " padding:0 ", "px 0 ", "px;"], getFocus(), sourceItemPadding - 1, sourceItemPadding - 1);
9
9
  export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
10
10
  displayName: "StyledSourceItem",
11
- componentId: "core-12_13_0__sc-plcozv-0"
11
+ componentId: "core-12_15_0__sc-plcozv-0"
12
12
  })(["position:relative;display:flex;align-items:center;padding:0 ", "px 0 ", "px;color:", ";", " cursor:pointer;height:", "px;&:before{content:'';position:absolute;top:0;left:0;display:block;width:4px;height:100%;background-color:", ";transform:scaleX(0);transform-origin:center left;transition:transform 200ms ease-out;z-index:1;}", " ", " ", " ", " ", " &:focus{", "}"], sourceItemPadding, sourceItemPadding, colors.gray45, getTypographyIntent('body'), sourceItemHeight, colors.blue45, function (_ref) {
13
13
  var selected = _ref.selected;
14
14
  return selected && "\n font-weight: 700;\n background-color: ".concat(colors.blue96, ";\n color: ").concat(colors.blue45, ";\n\n ").concat(StyledIcon, " {\n color: ").concat(colors.blue50, ";\n }\n\n &:before {\n transform: scaleX(1);\n }\n ");
@@ -28,10 +28,10 @@ export var StyledSourceItem = /*#__PURE__*/styled.div.withConfig({
28
28
  }, focused);
29
29
  export var StyledIcon = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledIcon",
31
- componentId: "core-12_13_0__sc-plcozv-1"
31
+ componentId: "core-12_15_0__sc-plcozv-1"
32
32
  })(["display:flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;"]);
33
33
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledLabel",
35
- componentId: "core-12_13_0__sc-plcozv-2"
35
+ componentId: "core-12_15_0__sc-plcozv-2"
36
36
  })(["", ""], getEllipsis());
37
37
  //# sourceMappingURL=SourceItem.styles.js.map
@@ -7,23 +7,23 @@ import { colors } from '../../_styles/colors';
7
7
  import { spacing } from '../../_styles/spacing';
8
8
  export var StyledThumbnailListContainer = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledThumbnailListContainer",
10
- componentId: "core-12_13_0__sc-1fz4ynb-0"
10
+ componentId: "core-12_15_0__sc-1fz4ynb-0"
11
11
  })(["display:flex;flex-direction:column;align-items:stretch;outline:none;"]);
12
12
  export var StyledThumbnailList = /*#__PURE__*/styled(List).withConfig({
13
13
  displayName: "StyledThumbnailList",
14
- componentId: "core-12_13_0__sc-1fz4ynb-1"
14
+ componentId: "core-12_15_0__sc-1fz4ynb-1"
15
15
  })(["outline:none;"]);
16
16
  export var StyledThumbnail = /*#__PURE__*/styled(Thumbnail).withConfig({
17
17
  displayName: "StyledThumbnail",
18
- componentId: "core-12_13_0__sc-1fz4ynb-2"
18
+ componentId: "core-12_15_0__sc-1fz4ynb-2"
19
19
  })(["flex-grow:1;justify-content:flex-start;"]);
20
20
  export var StyledProgress = /*#__PURE__*/styled.div.withConfig({
21
21
  displayName: "StyledProgress",
22
- componentId: "core-12_13_0__sc-1fz4ynb-3"
22
+ componentId: "core-12_15_0__sc-1fz4ynb-3"
23
23
  })(["width:146px;padding:0 ", "px 0 ", "px;margin-left:auto;"], spacing.lg, spacing.xl);
24
24
  export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
25
25
  displayName: "StyledThumbnailListItem",
26
- componentId: "core-12_13_0__sc-1fz4ynb-4"
26
+ componentId: "core-12_15_0__sc-1fz4ynb-4"
27
27
  })(["display:flex;flex-grow:1;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, getTypographyIntent('body'), function (_ref) {
28
28
  var error = _ref.error;
29
29
  return !error && "\n &:hover {\n background-color: ".concat(colors.gray96, ";\n }\n ");
@@ -37,6 +37,6 @@ export var StyledThumbnailListItem = /*#__PURE__*/styled.div.withConfig({
37
37
  });
38
38
  export var StyledDeleteIcon = /*#__PURE__*/styled(Button).withConfig({
39
39
  displayName: "StyledDeleteIcon",
40
- componentId: "core-12_13_0__sc-1fz4ynb-5"
40
+ componentId: "core-12_15_0__sc-1fz4ynb-5"
41
41
  })([""]);
42
42
  //# sourceMappingURL=ThumbnailList.styles.js.map
@@ -2,6 +2,6 @@ import styled from 'styled-components';
2
2
  import { modalBodyHeight } from '../FileExplorer/FileExplorer.styles';
3
3
  export var StyledFileTreeSpinner = /*#__PURE__*/styled.div.withConfig({
4
4
  displayName: "StyledFileTreeSpinner",
5
- componentId: "core-12_13_0__sc-wwu3n8-0"
5
+ componentId: "core-12_15_0__sc-wwu3n8-0"
6
6
  })(["display:flex;align-items:center;justify-content:center;height:", "px;"], modalBodyHeight);
7
7
  //# sourceMappingURL=TreeSource.styles.js.map
@@ -13,7 +13,9 @@ export interface TreeSourceRef {
13
13
  export interface FileTreeProps extends Pick<TreeProps<TreeNode>, 'options' | 'getRoot' | 'getChildren' | 'getLabel' | 'getParentId' | 'getType' | 'isSelectable' | 'isExpandable' | 'onExpand' | 'expanded'> {
14
14
  /**
15
15
  * Callback function fired with currently selected array of nodes.
16
- * <CodeBlock>(nodes: TreeDefaultNode[]) => void</CodeBlock>
16
+ * ```
17
+ * (nodes: TreeDefaultNode[]) => void
18
+ * ```
17
19
  * @since 10.19.0
18
20
  */
19
21
  onChange?: (nodes: TreeNode[]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"TreeSource.types.js","names":[],"sources":["../../../src/FileSelect/TreeSource/TreeSource.types.ts"],"sourcesContent":["import type {\n Node as TreeNode,\n TreeNodeId,\n TreeProps,\n} from '../../Tree/Tree.types'\n\nexport interface TreeSourceRef {\n /**\n * @since 10.19.0\n */\n setExpandedNodes: (expanded: TreeNodeId[]) => void\n /**\n * @since 10.19.0\n */\n setValue: <Node extends TreeNode = TreeNode>(nodes: Node[]) => void\n}\n\nexport interface FileTreeProps\n extends Pick<\n TreeProps<TreeNode>,\n | 'options'\n | 'getRoot'\n | 'getChildren'\n | 'getLabel'\n | 'getParentId'\n | 'getType'\n | 'isSelectable'\n | 'isExpandable'\n | 'onExpand'\n | 'expanded'\n > {\n /**\n * Callback function fired with currently selected array of nodes.\n * <CodeBlock>(nodes: TreeDefaultNode[]) => void</CodeBlock>\n * @since 10.19.0\n */\n onChange?: (nodes: TreeNode[]) => void\n /**\n * @since 10.19.0\n */\n sourceId: string\n /**\n * @since 10.19.0\n */\n title: string\n /**\n * @deprecated String icon variant is deprecated, use the React components\n * directly from the `@procore/core-icons/dist` package\n * @since 10.19.0\n */\n icon: React.ReactNode\n\n /**\n * Show/Hide loading indicator of the content\n * @since 10.19.0\n */\n isLoading?: boolean\n}\n"],"mappings":""}
1
+ {"version":3,"file":"TreeSource.types.js","names":[],"sources":["../../../src/FileSelect/TreeSource/TreeSource.types.ts"],"sourcesContent":["import type {\n Node as TreeNode,\n TreeNodeId,\n TreeProps,\n} from '../../Tree/Tree.types'\n\nexport interface TreeSourceRef {\n /**\n * @since 10.19.0\n */\n setExpandedNodes: (expanded: TreeNodeId[]) => void\n /**\n * @since 10.19.0\n */\n setValue: <Node extends TreeNode = TreeNode>(nodes: Node[]) => void\n}\n\nexport interface FileTreeProps\n extends Pick<\n TreeProps<TreeNode>,\n | 'options'\n | 'getRoot'\n | 'getChildren'\n | 'getLabel'\n | 'getParentId'\n | 'getType'\n | 'isSelectable'\n | 'isExpandable'\n | 'onExpand'\n | 'expanded'\n > {\n /**\n * Callback function fired with currently selected array of nodes.\n * ```\n * (nodes: TreeDefaultNode[]) => void\n * ```\n * @since 10.19.0\n */\n onChange?: (nodes: TreeNode[]) => void\n /**\n * @since 10.19.0\n */\n sourceId: string\n /**\n * @since 10.19.0\n */\n title: string\n /**\n * @deprecated String icon variant is deprecated, use the React components\n * directly from the `@procore/core-icons/dist` package\n * @since 10.19.0\n */\n icon: React.ReactNode\n\n /**\n * Show/Hide loading indicator of the content\n * @since 10.19.0\n */\n isLoading?: boolean\n}\n"],"mappings":""}
@@ -6,19 +6,19 @@ export var pulseAnimationDuration = 600;
6
6
  var focusPulse = /*#__PURE__*/keyframes(["0%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}25%{box-shadow:0 0 0 0 ", ",0 0 0 0 ", ",0 0 0 0 ", ";}50%{box-shadow:0 0 0 1px ", ",0 0 0 3px ", ",0 0 0 2px ", ";}100%{box-shadow:0 0 0 1.5px ", ",0 0 0 3px ", ",0 0 0 6px ", ";}"], colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94, colors.blue60, colors.blue90, colors.blue94);
7
7
  export var StyledFilenameShortcut = /*#__PURE__*/styled.div.withConfig({
8
8
  displayName: "StyledFilenameShortcut",
9
- componentId: "core-12_13_0__sc-13jx4bx-0"
9
+ componentId: "core-12_15_0__sc-13jx4bx-0"
10
10
  })(["display:flex;"]);
11
11
  export var StyledFilename = /*#__PURE__*/styled.span.withConfig({
12
12
  displayName: "StyledFilename",
13
- componentId: "core-12_13_0__sc-13jx4bx-1"
13
+ componentId: "core-12_15_0__sc-13jx4bx-1"
14
14
  })(["flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;"]);
15
15
  export var StyledExtension = /*#__PURE__*/styled.span.withConfig({
16
16
  displayName: "StyledExtension",
17
- componentId: "core-12_13_0__sc-13jx4bx-2"
17
+ componentId: "core-12_15_0__sc-13jx4bx-2"
18
18
  })(["flex-shrink:0;"]);
19
19
  export var StyledFileToken = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledFileToken",
21
- componentId: "core-12_13_0__sc-13jx4bx-3"
21
+ componentId: "core-12_15_0__sc-13jx4bx-3"
22
22
  })(["background-color:", ";border-radius:200px;max-width:100%;outline:none;overflow:hidden;position:relative;&:focus,&.focus{box-shadow:0 0 0 2px ", ";outline:none;", "{border-color:transparent;", "}}", "{background:none;color:", ";display:flex;user-select:none;}", "{overflow:hidden;", "{border-radius:200px 0 0 200px;color:", ";padding-right:0;transition:color 0s linear,background-color 0s linear;user-select:none;", "{flex:0 0 auto;}}}", ""], colors.gray96, colors.blue40, StyledToken, function (_ref) {
23
23
  var $progressComplete = _ref.$progressComplete;
24
24
  return $progressComplete && css(["background-color:", ";"], colors.blue45);
@@ -5,11 +5,11 @@ import { getEllipsis, getFocus } from '../_styles/mixins';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
7
7
  displayName: "StyledLabel",
8
- componentId: "core-12_13_0__sc-1l1h29r-0"
8
+ componentId: "core-12_15_0__sc-1l1h29r-0"
9
9
  })(["", " ", " ", " flex:0 1 auto;"], getTypographyIntent('body'), getEllipsis, semiboldRules);
10
10
  export var StyledFilterToken = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledFilterToken",
12
- componentId: "core-12_13_0__sc-1l1h29r-1"
12
+ componentId: "core-12_15_0__sc-1l1h29r-1"
13
13
  })(["align-items:center;background-color:", ";border-radius:4px;border:1px solid transparent;color:", ";cursor:default;display:inline-flex;height:36px;justify-content:space-between;line-height:1;max-width:360px;min-width:48px;padding:", "px ", "px;&:hover,&.hover{background-color:", ";}", ""], colors.blue96, colors.blue45, spacing.sm, spacing.md, colors.blue90, function (_ref) {
14
14
  var _ref$$focused = _ref.$focused,
15
15
  $focused = _ref$$focused === void 0 ? false : _ref$$focused;
@@ -3,7 +3,7 @@ import { StyledBox } from '../Box/Box.styles';
3
3
  import { Flex } from '../Flex/Flex';
4
4
  export var StyledFlex = /*#__PURE__*/styled(Flex).withConfig({
5
5
  displayName: "StyledFlex",
6
- componentId: "core-12_13_0__sc-1quvv61-0"
6
+ componentId: "core-12_15_0__sc-1quvv61-0"
7
7
  })(["> ", "{", "}"], StyledBox, function (_ref) {
8
8
  var $direction = _ref.$direction;
9
9
  if ($direction !== null && $direction !== void 0 && $direction.includes('reverse')) {
package/dist/Form/Form.js CHANGED
@@ -411,13 +411,18 @@ export function WXPField(_ref5) {
411
411
  // but if not we want to render requiredMark and tooltip at FieldHeader
412
412
  var hasLabelOrDoesntHaveBoth = label || !label && !singleCheckboxInlineLabel;
413
413
  var hasInlineLabelAndDoesntHaveLabel = singleCheckboxInlineLabel && !label;
414
- var singleCheckboxComponentProps = hasInlineLabelAndDoesntHaveLabel ? {
415
- tooltip: tooltip,
416
- hasRequiredMark: hasRequiredMark,
417
- inlineLabel: singleCheckboxInlineLabel
418
- } : {
419
- inlineLabel: singleCheckboxInlineLabel
420
- };
414
+ var singleCheckboxComponentProps = {};
415
+ if (hasInlineLabelAndDoesntHaveLabel) {
416
+ singleCheckboxComponentProps = {
417
+ tooltip: tooltip,
418
+ hasRequiredMark: hasRequiredMark,
419
+ inlineLabel: singleCheckboxInlineLabel
420
+ };
421
+ } else if (singleCheckboxInlineLabel) {
422
+ singleCheckboxComponentProps = {
423
+ inlineLabel: singleCheckboxInlineLabel
424
+ };
425
+ }
421
426
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledFormFieldHeader, {
422
427
  $colIeSpan: colWidth,
423
428
  $colStart: colStart,
@@ -1208,7 +1213,7 @@ export var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(_ref
1208
1213
  onSearch: _onSearch || _onSearch === undefined || searchComparator ? onSearch : undefined,
1209
1214
  onSelect: onSelect,
1210
1215
  ref: ref
1211
- }, props), menu.list.map(function (option) {
1216
+ }, props), menu.list.map(function (option, index) {
1212
1217
  if (option.isGroupHeader) {
1213
1218
  return groupHeaderRenderer(option, {
1214
1219
  getId: groupGetId,
@@ -1219,6 +1224,7 @@ export var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(_ref
1219
1224
  });
1220
1225
  }
1221
1226
  return optionRenderer(option, {
1227
+ index: index,
1222
1228
  getId: getId,
1223
1229
  getLabel: getLabel,
1224
1230
  // @ts-ignore